/* ============================================================================
   YIWAN HOME (壹宛家居) · B2B Trade Catalog Stylesheet
   ============================================================================ */

/* 自托管子集字体（思源黑体 / 思源宋体，SIL OFL 1.1），不依赖任何境外 CDN */
@font-face {
  font-family: "SHS-Sans";
  src: url("/fonts/source-han-sans-sc-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "SHS-Sans";
  src: url("/fonts/source-han-sans-sc-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "SHS-Serif";
  src: url("/fonts/source-han-serif-sc-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "SHS-Serif";
  src: url("/fonts/source-han-serif-sc-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-page: #ffffff;
  --bg-subtle: #f5f7f8;
  --bg-studio-well: #f4f4f2;
  --bg-header-utility: #5f8299;
  --bg-header-announce: #23262a;
  --bg-footer: #23262a;

  --text-primary: #1f2328;
  --text-secondary: #5c636d;
  --text-muted: #78808a;
  --accent-primary: #5f8299;
  --accent-hover: #49677b;

  --border-hairline: #e4e6e8;
  --border-control: #d8dce0;

  --font-serif: "SHS-Serif", "Songti SC", "STSong", Georgia, serif;
  --font-sans: "SHS-Sans", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --container-max: 1240px;
  --header-height: 68px;
  --radius-sm: 3px;
  --radius-md: 6px;
  --shadow-modal: 0 24px 60px rgba(0, 0, 0, 0.24);
  --shadow-drawer: -12px 0 40px rgba(0, 0, 0, 0.16);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
button, input, select, textarea { font-family: inherit; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 28px;
}

.icon {
  width: 15px;
  height: 15px;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --------------------------------------------------------------------------
   1. Three-Tier Trade Header
   -------------------------------------------------------------------------- */
.top-utility {
  background: var(--bg-header-utility);
  color: #ffffff;
  font-size: 11px;
  letter-spacing: 0.06em;
}
.top-utility .inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 8px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.top-links { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.top-links button,
.top-links a {
  background: none;
  border: 0;
  color: #ffffff;
  font-size: 11px;
  letter-spacing: 0.06em;
  cursor: pointer;
  padding: 0;
  opacity: 0.94;
  white-space: nowrap;
}
.top-links button:hover,
.top-links a:hover { opacity: 1; text-decoration: underline; }
.sep { opacity: 0.4; }

.lang-toggle {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: var(--radius-sm);
  padding: 2px 9px;
  font-size: 11px;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.lang-toggle:hover { background: rgba(255, 255, 255, 0.26); }

.announce-bar {
  background: var(--bg-header-announce);
  color: #e6e8eb;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 8px 16px;
  line-height: 1.6;
}

.navbar {
  background: var(--bg-page);
  border-bottom: 1px solid var(--border-hairline);
  position: sticky;
  top: 0;
  z-index: 200;
}
.navbar .inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 28px;
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
}
.nav-group { display: flex; align-items: center; gap: 18px; min-width: 0; }
.nav-group.right { justify-content: flex-end; }

.nav-link {
  background: none;
  border: 0;
  border-bottom: 1.5px solid transparent;
  padding: 6px 0;
  font-size: 12px;
  letter-spacing: 0.06em;
  font-weight: 500;
  color: #2a2d32;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s;
}
.nav-link:hover,
.nav-link.active {
  color: var(--accent-primary);
  border-bottom-color: var(--accent-primary);
}

.brand-logo {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-primary);
  line-height: 1.1;
  cursor: pointer;
  white-space: nowrap;
  padding: 10px 0;
}
.brand-logo span {
  display: block;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-top: 4px;
}

.icon-btn {
  background: none;
  border: 0;
  color: #2a2d32;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  padding: 6px;
  white-space: nowrap;
}
.icon-btn:hover { color: var(--accent-primary); }
#nav-inquiry-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  background: var(--text-primary);
  color: #fff;
  border-radius: 999px;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  padding: 0 4px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border-control);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  cursor: pointer;
  color: var(--text-primary);
}
.mobile-drawer {
  display: none;
  border-top: 1px solid var(--border-hairline);
  background: #ffffff;
  padding: 10px 16px 16px;
}
.mobile-drawer.open { display: grid; gap: 4px; }
.mobile-drawer button {
  background: none; border: 0; text-align: left; padding: 10px 4px;
  font-size: 14px; border-bottom: 1px solid #f2f3f5; cursor: pointer;
}
.mobile-drawer button.active { color: var(--accent-primary); font-weight: 700; }

/* --------------------------------------------------------------------------
   2. Editorial Lifestyle Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  height: 440px;
  overflow: hidden;
  background: #e9e6df;
}
.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(22, 25, 29, 0.76) 0%, rgba(22, 25, 29, 0.42) 48%, rgba(22, 25, 29, 0.06) 100%);
  display: flex;
  align-items: center;
}
.hero-content { max-width: 560px; color: #ffffff; }
.hero-eyebrow {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 12px;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.24;
}
.hero p {
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.9);
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-white {
  background: #ffffff;
  color: var(--text-primary);
  border: 1px solid #ffffff;
  padding: 11px 24px;
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-white:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #ffffff;
}
.btn-outline-light {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.65);
  padding: 11px 22px;
  font-size: 12px;
  letter-spacing: 0.08em;
  cursor: pointer;
  backdrop-filter: blur(4px);
}
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.2); }

/* --------------------------------------------------------------------------
   3. Catalog Toolbar & Studio Grid
   -------------------------------------------------------------------------- */
.catalog-head { text-align: center; padding: 44px 0 18px; }
.catalog-head h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px;
}
.catalog-head p { margin: 0; font-size: 13px; color: var(--text-secondary); }

.filter-bar {
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.filter-left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.filter-label { font-size: 11px; letter-spacing: 0.1em; color: var(--text-muted); font-weight: 700; }
.select-ctrl {
  border: 1px solid var(--border-control);
  background: #ffffff;
  color: var(--text-primary);
  padding: 7px 10px;
  font-size: 13px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  max-width: 240px;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border-control);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  background: #fafbfc;
}
.search-box input {
  border: 0;
  background: transparent;
  outline: none;
  font-size: 13px;
  width: 190px;
}
.cam-btn {
  background: none;
  border: 0;
  color: var(--accent-primary);
  cursor: pointer;
  padding: 2px;
  display: inline-flex;
  align-items: center;
}

.sku-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px 20px;
  padding-bottom: 40px;
}
.sku-card { cursor: pointer; position: relative; }
.sku-card-img {
  aspect-ratio: 1 / 1;
  background: var(--bg-studio-well);
  position: relative;
  overflow: hidden;
  margin-bottom: 10px;
}
.sku-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.sku-card:hover .sku-card-img img { transform: scale(1.04); }
.sku-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--accent-primary);
  color: #ffffff;
  font-size: 10px;
  letter-spacing: 0.06em;
  padding: 3px 7px;
  font-weight: 600;
}
.sku-quick {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: flex;
  gap: 6px;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.2s ease;
}
.sku-card:hover .sku-quick { opacity: 1; transform: translateY(0); }
.sku-quick button {
  flex: 1;
  padding: 8px 6px;
  font-size: 11px;
  letter-spacing: 0.04em;
  border: 1px solid #23262a;
  cursor: pointer;
  font-weight: 500;
}
.sku-quick .btn-view { background: rgba(255, 255, 255, 0.95); color: #23262a; }
.sku-quick .btn-add { background: #23262a; color: #ffffff; }
.sku-quick .btn-add:hover { background: var(--accent-primary); border-color: var(--accent-primary); }

.card-add { display: none; }

.sku-tags-row { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; flex-wrap: wrap; }
.sku-cat {
  font-size: 10px;
  color: var(--accent-primary);
  background: rgba(95, 130, 153, 0.1);
  padding: 2px 6px;
  border-radius: 2px;
  letter-spacing: 0.02em;
}
.sku-mat { font-size: 10px; color: var(--text-muted); }
.sku-title {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 4px;
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.sku-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}
.sku-meta .dim { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sku-code { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); white-space: nowrap; }

.pagination-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding-bottom: 52px;
  font-size: 13px;
  color: var(--text-secondary);
  flex-wrap: wrap;
}
.pagination-bar .btn-light { padding: 7px 14px; }

/* --------------------------------------------------------------------------
   4. Trade Strip & Footer
   -------------------------------------------------------------------------- */
.trade-strip {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-hairline);
  padding: 42px 0;
}
.trade-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.trade-box {
  background: #ffffff;
  border: 1px solid var(--border-hairline);
  padding: 24px;
}
.trade-box h3 { font-family: var(--font-serif); font-size: 17px; font-weight: 700; margin: 0 0 8px; }
.trade-box p { margin: 0; font-size: 13px; line-height: 1.75; color: var(--text-secondary); }

.site-footer {
  background: var(--bg-footer);
  color: #c7ccd2;
  padding: 40px 0 26px;
  font-size: 12px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 26px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.site-footer h4 { color: #ffffff; font-size: 11px; letter-spacing: 0.1em; margin: 0 0 12px; }
.site-footer p,
.site-footer li { line-height: 1.85; color: #aeb5be; margin: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer a:hover { color: #ffffff; text-decoration: underline; }
.footer-qr { margin-top: 10px; border-radius: 2px; background: #fff; padding: 3px; }
.link-btn {
  background: none; border: 0; color: #aeb5be; padding: 0;
  cursor: pointer; font-size: 12px; line-height: 1.85;
}
.link-btn:hover { color: #ffffff; text-decoration: underline; }
.footer-bottom {
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  color: #848c96;
  flex-wrap: wrap;
  gap: 8px;
}

/* --------------------------------------------------------------------------
   5. Modals, Inquiry Drawer & Print Tearsheet
   -------------------------------------------------------------------------- */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(18, 17, 15, 0.56);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop.open { display: flex; }

.sku-modal {
  background: #ffffff;
  width: min(900px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-modal);
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 5;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e0ddd5;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover { background: var(--text-primary); color: #ffffff; }

.sku-modal-left {
  background: var(--bg-studio-well);
  padding: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sku-modal-main-img { aspect-ratio: 1 / 1; width: 100%; overflow: hidden; }
.sku-modal-main-img img { width: 100%; height: 100%; object-fit: contain; }

.sku-modal-right { padding: 30px 30px 26px; display: flex; flex-direction: column; }
.sku-modal-tags { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.sku-tag { font-size: 11px; padding: 3px 9px; background: #f2f0eb; color: #565249; border-radius: 2px; }
.sku-modal-title { font-family: var(--font-serif); font-size: 22px; font-weight: 700; margin: 0 0 6px; line-height: 1.3; }
.sku-modal-code { font-family: var(--font-mono); font-size: 12px; color: var(--accent-primary); margin-bottom: 16px; }

.spec-list { border-top: 1px solid #e7e3da; margin: 0 0 16px; }
.spec-row {
  display: grid;
  grid-template-columns: 104px 1fr;
  padding: 9px 0;
  border-bottom: 1px solid #efece5;
  font-size: 13px;
}
.spec-row dt { color: #7a7468; }
.spec-row dd { margin: 0; font-weight: 500; word-break: break-word; }

.modal-related { margin-top: 12px; padding-top: 14px; border-top: 1px solid #e7e3da; }
.modal-related-title { font-size: 12px; color: #7a7468; margin-bottom: 10px; }
.modal-related-list { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.related-mini {
  display: flex; align-items: center; gap: 8px; padding: 6px;
  border: 1px solid #e7e3da; border-radius: 4px; cursor: pointer; min-width: 180px; background: #faf9f6;
  flex: none;
}
.related-mini:hover { border-color: var(--accent-primary); }
.related-mini img { width: 42px; height: 42px; object-fit: cover; background: var(--bg-studio-well); flex: none; }
.related-mini div { font-size: 12px; line-height: 1.3; }
.related-mini small { display: block; color: #7a7468; font-family: var(--font-mono); font-size: 10px; }

.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 16px; }
.btn-dark {
  background: var(--text-primary);
  color: #ffffff;
  border: 1px solid var(--text-primary);
  padding: 10px 18px;
  font-size: 13px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-dark:hover { background: var(--accent-primary); border-color: var(--accent-primary); }
.btn-dark:disabled { opacity: 0.6; cursor: default; }
.btn-light {
  background: #ffffff;
  color: var(--text-primary);
  border: 1px solid var(--border-control);
  padding: 10px 16px;
  font-size: 13px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-light:hover { border-color: var(--text-primary); }
.btn-light:disabled { opacity: 0.45; cursor: default; }

.mini-modal {
  background: #ffffff;
  width: min(460px, 100%);
  padding: 28px;
  border-radius: var(--radius-md);
  position: relative;
  box-shadow: var(--shadow-modal);
  max-height: 88vh;
  overflow-y: auto;
}
.mini-modal h3 { font-family: var(--font-serif); font-size: 21px; font-weight: 700; margin: 0 0 8px; }
.mini-modal > p { font-size: 13px; line-height: 1.7; color: var(--text-secondary); margin: 0 0 16px; }

.login-form { display: grid; gap: 10px; margin-bottom: 12px; }
.login-form input {
  padding: 11px 12px;
  border: 1px solid #d5d0c5;
  border-radius: var(--radius-sm);
  font-size: 14px;
  outline: none;
  width: 100%;
}
.login-form input:focus { border-color: var(--accent-primary); }
.form-err { margin: 0; font-size: 12px; color: #b4232b; min-height: 0; }
.tier-note { margin: 12px 0 0; font-size: 11px; color: var(--text-muted); line-height: 1.6; }

.visual-modal { width: min(560px, 100%); }
.vis-drop {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #c9cfd6;
  border-radius: var(--radius-sm);
  background: #fafbfc;
  padding: 26px 16px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.vis-drop:hover { border-color: var(--accent-primary); color: var(--accent-primary); }
.vis-drop input { display: none; }
.is-status { margin-bottom: 12px; }
.is-status.hidden { display: none; }
.is-bar-wrap { height: 4px; background: #e9ecef; border-radius: 2px; overflow: hidden; }
.is-bar { height: 100%; width: 0; background: var(--accent-primary); transition: width 0.2s; }
.is-msg { font-size: 12px; color: var(--text-muted); margin-top: 6px; }
.is-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.is-item { border: 1px solid #e7e3da; cursor: pointer; background: #fff; }
.is-item:hover { border-color: var(--accent-primary); }
.is-item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--bg-studio-well); }
.is-item .n { font-size: 11px; padding: 4px 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.is-item .s { font-size: 10px; padding: 0 6px 5px; color: var(--accent-primary); font-family: var(--font-mono); }

.drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 950;
  background: rgba(18, 17, 15, 0.48);
  justify-content: flex-end;
}
.drawer-backdrop.open { display: flex; }
.drawer-panel {
  width: min(440px, 100%);
  background: #ffffff;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-drawer);
}
.drawer-head { padding: 18px 22px; border-bottom: 1px solid #e7e3da; display: flex; justify-content: space-between; align-items: center; }
.drawer-head h3 { font-family: var(--font-serif); font-size: 19px; font-weight: 700; margin: 0; }
.drawer-body { padding: 16px 22px; overflow-y: auto; flex: 1; }
.drawer-item {
  display: grid; grid-template-columns: 58px 1fr auto; gap: 12px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid #efece5;
}
.drawer-item img { width: 58px; height: 58px; object-fit: cover; background: var(--bg-studio-well); }
.drawer-qty { display: inline-flex; align-items: center; border: 1px solid #dad5ca; border-radius: 3px; }
.drawer-qty button { background: none; border: 0; padding: 3px 8px; cursor: pointer; font-size: 14px; }
.drawer-qty span { font-size: 12px; min-width: 30px; text-align: center; }
.drawer-foot { padding: 16px 22px; border-top: 1px solid #e7e3da; background: #faf9f6; }
.drawer-summary { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; margin-bottom: 12px; color: #534e45; flex-wrap: wrap; gap: 6px; }
.drawer-hint { flex-basis: 100%; font-size: 11px; color: #8a857a; }
.drawer-btns { display: flex; gap: 8px; }
.drawer-btns button { flex: 1; }

#toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%) translateY(16px);
  background: var(--text-primary);
  color: #f4f1ea;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.22s ease;
  max-width: calc(100vw - 40px);
  text-align: center;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* --------------------------------------------------------------------------
   6. Print
   -------------------------------------------------------------------------- */
#print-sheet { display: none; }
@media print {
  .top-utility, .announce-bar, .navbar, .hero, main, .trade-strip, .site-footer,
  .modal-backdrop, .drawer-backdrop, #toast { display: none !important; }
  #print-sheet { display: block !important; padding: 16px; color: #111111; }
  .ps-header {
    display: flex; justify-content: space-between; align-items: flex-end;
    border-bottom: 2px solid #1f2328; padding-bottom: 14px; margin-bottom: 22px;
  }
  .ps-grid { display: grid; grid-template-columns: 260px 1fr; gap: 26px; }
  .ps-grid img { width: 100%; border: 1px solid #ddd; padding: 8px; background: #f7f7f5; }
  .ps-table { width: 100%; border-collapse: collapse; font-size: 13px; }
  .ps-table th, .ps-table td { border-bottom: 1px solid #dddddd; padding: 7px 6px; text-align: left; }
  .ps-table th { width: 34%; color: #555; font-weight: 400; }
}

/* --------------------------------------------------------------------------
   7. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .sku-grid { grid-template-columns: repeat(3, 1fr); }
  .nav-group { gap: 12px; }
  .nav-link { font-size: 11px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .brand-logo { font-size: 18px; letter-spacing: 0.1em; }
  .brand-logo span { display: none; }
  .nav-group.right .lbl { display: none; }
}
@media (max-width: 780px) {
  .container, .top-utility .inner, .navbar .inner { padding-left: 16px; padding-right: 16px; }
  .navbar .inner { grid-template-columns: auto 1fr auto; gap: 8px; }
  .nav-group.left { display: none; }
  .mobile-menu-btn { display: inline-flex; }
  .brand-logo { font-size: 16px; letter-spacing: 0.08em; }
  .top-utility .top-links:first-child { display: none; }
  .top-utility .inner { justify-content: flex-end; }
  .hero { height: 380px; }
  .hero h1 { font-size: 26px; }
  .hero p { font-size: 13px; }
  .hero-scrim { background: linear-gradient(180deg, rgba(22, 25, 29, 0.72) 0%, rgba(22, 25, 29, 0.34) 60%, rgba(22, 25, 29, 0.5) 100%); }
  .catalog-head { padding: 30px 0 14px; }
  .catalog-head h2 { font-size: 23px; }
  .filter-bar { gap: 10px; padding: 10px 0; }
  .filter-left { flex: 1 1 100%; gap: 8px; }
  .filter-left .select-ctrl { flex: 1; min-width: 0; max-width: none; }
  .filter-label { display: none; }
  .search-box { flex: 1 1 100%; }
  .search-box input { width: 100%; }
  .sku-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
  .sku-title { font-size: 13px; }
  .sku-meta { font-size: 11px; }
  .sku-cat { font-size: 9px; }
  .sku-quick { opacity: 1; transform: none; position: static; margin-top: -46px; padding: 0 8px 8px; display: none; }
  .card-add {
    display: flex;
    position: absolute;
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.92);
    color: #23262a;
    font-size: 19px;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(2px);
  }
  .card-add:active { background: var(--accent-primary); color: #fff; }
  .sku-quick button { padding: 7px 4px; font-size: 10px; }
  .trade-cols, .footer-grid { grid-template-columns: 1fr; }
  .footer-grid { gap: 20px; }
  .sku-modal { grid-template-columns: 1fr; max-height: 92vh; }
  .sku-modal-left { padding: 16px; }
  .sku-modal-right { padding: 20px; }
  .sku-modal-title { font-size: 18px; }
  .spec-row { grid-template-columns: 92px 1fr; font-size: 12px; }
  .is-results { grid-template-columns: repeat(2, 1fr); }
  .mini-modal { padding: 22px; }
  .drawer-panel { width: 100%; }
}
@media (max-width: 380px) {
  .sku-grid { gap: 16px 10px; }
  .sku-title { font-size: 12px; }
}
