:root {
  --bg: #f6f7f6;
  --pearl: #fbfbf8;
  --linen: #f2eee6;
  --charcoal: #101214;
  --charcoal-2: #1b1d1f;
  --champagne: #c8a35c;
  --champagne-2: #e4cf9b;
  --rose: #9f5b64;
  --emerald: #2f7d68;
  --surface: #ffffff;
  --surface-2: #eef3f0;
  --ink: #151918;
  --muted: #66706d;
  --line: #dce2df;
  --jade: #2f7d68;
  --jade-dark: #1f5d4d;
  --brass: #b58a3b;
  --shadow: 0 18px 50px rgba(25, 33, 31, .09);
}

/* Quantity comparisons: own scrolling region, never widen the mobile cart. */
.quantity-nodes { grid-column: 1 / -1; min-width: 0; max-width: 100%; padding: 12px 0; border-top: 1px solid #cfdcca; }
.quantity-nodes-heading { display: flex; flex-wrap: wrap; gap: 6px 12px; justify-content: space-between; font-size: 13px; }
.quantity-nodes-context, .quantity-nodes-moq { font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; margin: 7px 0; }
.quantity-node-graph { width: 100%; height: 140px; }
.quantity-node-graph svg { width: 100%; height: 100%; }
.quantity-node-graph path { fill: none; stroke: #086a32; stroke-width: 3; stroke-linecap: round; }
.quantity-node-graph circle { fill: #fff; stroke: #086a32; stroke-width: 2; }
.quantity-node-graph circle.is-current { fill: #086a32; stroke: #a6d092; stroke-width: 4; }
.quantity-node-graph text { font-size: 11px; font-weight: 700; fill: #15592b; }
.quantity-node-strip { display: flex; gap: 8px; max-width: 100%; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; padding: 5px 2px 10px; }
.quantity-node { flex: 0 0 148px; min-height: 112px; padding: 9px; border: 1px solid #aac5a4; border-radius: 12px; background: #fff; color: #233b28; display: flex; flex-direction: column; gap: 6px; text-align: left; white-space: normal; overflow-wrap: anywhere; }
.quantity-node b { font-size: 13px; }
.quantity-node span { font-size: 13px; font-weight: 700; }
.quantity-node small { font-size: 10px; line-height: 1.4; }
.quantity-node.is-current { background: #e0f3d7; border: 2px solid #086a32; }
.quantity-node[aria-pressed="true"] { box-shadow: inset 0 0 0 2px #086a32; }
.quantity-nodes button:focus-visible { outline: 3px solid #226bbc; outline-offset: 2px; }
.quantity-node-detail { display: flex; flex-direction: column; gap: 5px; font-size: 12px; line-height: 1.5; padding: 10px; border-radius: 10px; background: #fff; overflow-wrap: anywhere; }
.quantity-node-detail b { font-size: 18px; color: #086a32; }
.quantity-node-pagination, .quantity-style-switch { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; font-size: 11px; }
.quantity-node-pagination button, .quantity-style-switch button { min-height: 44px; padding: 8px; border: 1px solid #aac5a4; border-radius: 8px; background: #fff; overflow-wrap: anywhere; max-width: 100%; }
.quantity-style-switch button[aria-pressed="true"] { background: #e0f3d7; border-color: #086a32; }

/* H5 upgrade 42 item 23/27, 2026-10-01: mobile-first product access.
   Keep one real search field in filters; shorten hero and move secondary filters behind details. */
@media (max-width: 720px) {
  .customer-page {
    padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px));
  }
  .customer-hero {
    padding: 9px 10px 10px;
    border-radius: 0 0 18px 18px;
  }
  .customer-nav {
    min-height: 34px;
    gap: 8px;
  }
  .brand-lockup {
    gap: 7px;
  }
  .brand-lockup svg {
    width: 30px;
    height: 30px;
  }
  .brand-lockup strong {
    font-size: 13px;
  }
  .brand-lockup small,
  .privacy-chip {
    display: none;
  }
  .language-toggle {
    min-height: 30px;
    padding: 6px 9px;
    font-size: 11px;
  }
  .hero-stage {
    margin-top: 6px;
  }
  .client-line {
    margin: 0;
    font-size: 10px;
    letter-spacing: .11em;
  }
  .customer-hero h1 {
    margin-top: 4px;
    max-width: 340px;
    font-size: clamp(22px, 6.5vw, 29px);
    line-height: .98;
  }
  .customer-hero .hero-copy > p:not(.client-line) {
    display: none;
  }
  .hero-tools {
    margin-top: 7px;
  }
  .hero-link {
    min-height: 32px;
    padding: 7px 10px;
    font-size: 11px;
  }
  .customer-filters {
    margin: 8px 10px 6px;
    box-sizing: border-box;
    width: calc(100% - 20px);
    max-width: calc(100vw - 20px);
    padding: 8px;
    grid-template-columns: minmax(0, 1.35fr) minmax(112px, .65fr);
    gap: 7px;
    border-radius: 16px;
  }
  .customer-filter-search {
    grid-column: auto;
  }
  .customer-filter-search input,
  .customer-filters select {
    min-height: 36px;
    padding: 8px 9px;
    border-radius: 11px;
    font-size: 12px;
  }
  .advanced-customer-filters {
    grid-column: 1 / -1;
    padding: 0;
    border: 0;
    background: transparent;
  }
  .advanced-customer-filters summary {
    min-height: 30px;
    padding: 6px 8px;
    border-radius: 11px;
    border: 1px solid rgba(112, 82, 42, .14);
    background: rgba(255,255,255,.72);
    font-size: 11px;
  }
  .advanced-customer-filters div {
    margin-top: 7px;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }
  .clear-customer-filters {
    grid-column: 1 / -1;
    min-height: 30px;
    padding: 6px 10px;
    font-size: 11px;
  }
  .catalog-toolbar {
    margin: 6px 10px 8px;
    padding: 8px;
    border-radius: 15px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
  }
  .catalog-toolbar strong {
    font-size: 13px;
  }
  .catalog-toolbar span {
    display: none;
  }
  .catalog-toolbar-actions {
    grid-template-columns: minmax(112px, 1fr);
    gap: 6px;
  }
  .catalog-toolbar-actions > button {
    display: none;
  }
  .catalog-toolbar-actions label,
  .catalog-toolbar-actions select {
    min-height: 34px;
    font-size: 11px;
  }
  .customer-grid {
    margin-top: 8px;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}
button, input, select { font: inherit; }
button { cursor: pointer; }
svg { flex: 0 0 auto; }
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { background: #111615; color: #f7fbf9; padding: 22px; display: flex; flex-direction: column; gap: 28px; }
.brandmark { display: flex; gap: 12px; align-items: center; }
.brand-symbol { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(181,138,59,.6); color: var(--brass); border-radius: 8px; font-weight: 900; }
.brandmark strong { display: block; font-size: 16px; }
.brandmark span:last-child { color: #aeb8b4; font-size: 12px; }
.sidebar nav { display: grid; gap: 8px; }
.sidebar a { padding: 10px 11px; color: #cad4d0; text-decoration: none; border-radius: 8px; font-size: 14px; }
.sidebar a.active { background: rgba(47, 125, 104, .22); color: white; }
.sidebar-note { margin-top: auto; display: flex; gap: 10px; align-items: flex-start; color: #d9e2df; font-size: 12px; line-height: 1.45; padding: 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; }
.workspace { padding: 26px; min-width: 0; }
.topbar { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; margin-bottom: 18px; }
h1, h2, h3, p { margin: 0; }
.topbar h1 { font-size: 28px; line-height: 1.15; }
.topbar p, .panel p, .preview-head p { margin-top: 7px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.primary, .wide-action, .supplier-form button { border: 0; background: var(--jade); color: white; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 8px; padding: 11px 14px; font-weight: 700; box-shadow: 0 12px 24px rgba(47, 125, 104, .2); }
.notice { background: #eaf4ef; border: 1px solid #cfe5db; color: var(--jade-dark); border-radius: 8px; padding: 10px 12px; margin-bottom: 16px; font-size: 14px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(300px, .92fr) minmax(360px, 1.08fr) 210px; gap: 16px; align-items: stretch; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 16px; box-shadow: var(--shadow); }
.panel-head, .preview-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.panel h2, .preview-head h2 { font-size: 17px; }
.icon-button { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); background: white; border-radius: 8px; color: var(--ink); }
.supplier-form, .control-grid { display: grid; gap: 10px; }
.supplier-form input, .control-grid input, .control-grid select, .customer-filters select { width: 100%; border: 1px solid var(--line); background: #fbfcfc; border-radius: 8px; padding: 10px 11px; color: var(--ink); outline: none; }
.supplier-form input:focus, .control-grid input:focus, .control-grid select:focus, .customer-filters select:focus { border-color: var(--jade); box-shadow: 0 0 0 3px rgba(47, 125, 104, .12); }
.supplier-list { display: grid; gap: 8px; margin-top: 13px; max-height: 214px; overflow: auto; }
.supplier-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px; background: var(--surface-2); border-radius: 8px; font-size: 13px; }
.supplier-row strong, .supplier-row small { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.supplier-row small { color: var(--muted); }
.status-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--jade); }
.control-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.control-grid label, .customer-filters label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 700; }
.wide-action { width: 100%; margin-top: 12px; }
.latest-link { display: block; margin-top: 10px; color: var(--jade-dark); font-size: 13px; overflow-wrap: anywhere; }
.stats-panel { display: grid; gap: 10px; }
.stat { padding: 13px; border-radius: 8px; background: #f8faf9; border: 1px solid var(--line); }
.stat strong { display: block; font-size: 24px; }
.stat span { color: var(--muted); font-size: 12px; }
.preview-area { margin-top: 18px; background: #e8eeeb; border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.preview-head span { display: inline-flex; align-items: center; gap: 6px; color: var(--jade-dark); background: white; border: 1px solid #cfe0d8; border-radius: 999px; padding: 7px 10px; font-size: 12px; font-weight: 700; }
.phone-frame { width: min(100%, 430px); min-height: 720px; margin: 0 auto; background: white; border: 10px solid #161b1a; border-radius: 34px; overflow: hidden; box-shadow: 0 28px 70px rgba(17, 22, 21, .28); }
.phone-top { height: 42px; display: flex; align-items: center; justify-content: center; gap: 8px; background: #151918; color: white; font-size: 12px; font-weight: 800; }
.phone-top span { width: 58px; height: 5px; background: #343b39; border-radius: 999px; }
.phone-hero { padding: 24px 18px 18px; background: linear-gradient(135deg, #f7faf9, #eaf3ef); }
.phone-hero h2 { font-size: 26px; line-height: 1.1; }
.phone-hero p { margin-top: 7px; color: var(--muted); }
.phone-search { margin-top: 16px; display: flex; align-items: center; gap: 8px; background: white; border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; color: var(--muted); font-size: 13px; }
.phone-products, .customer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 14px; }
.product-tile { background: white; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.product-tile.is-selected { border-color: var(--jade); box-shadow: 0 0 0 2px rgba(47, 125, 104, .18); }
.product-detail-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: clamp(12px, 3vw, 32px); }
.product-detail-backdrop { position: absolute; inset: 0; border: 0; background: rgba(10, 12, 12, .72); cursor: zoom-out; }
.product-detail { position: relative; z-index: 1; width: min(1120px, 100%); max-height: min(900px, 92vh); overflow: auto; padding: clamp(16px, 3vw, 26px); border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 32px 90px rgba(0,0,0,.34); }
.product-detail-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.product-detail-head button { border: 1px solid var(--line); background: #111315; color: #fff; border-radius: 999px; padding: 9px 14px; font-weight: 800; }
.product-detail-layout { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(240px, .72fr); gap: 22px; align-items: start; }
.product-detail-image-stage { position: relative; overflow: hidden; background: #f5f5f3; border-radius: 10px; }
.product-detail-image-zoom { position: relative; overflow: hidden; display: grid; place-items: center; min-height: min(72vh, 520px); cursor: zoom-in; }
.product-detail-image-zoom img { display: block; width: 100%; max-height: min(72vh, 720px); object-fit: contain; transform-origin: var(--zoom-x, 50%) var(--zoom-y, 50%); transition: transform .16s ease; will-change: transform; }
@media (hover: hover) and (pointer: fine) { .product-detail-image-zoom:hover img { transform: scale(2.15); } }
.detail-image-nav { position: absolute; top: 50%; z-index: 3; width: 42px; height: 58px; transform: translateY(-50%); border: 0; border-radius: 999px; background: rgba(17,19,21,.68); color: #fff; font-size: 34px; line-height: 1; cursor: pointer; display: grid; place-items: center; box-shadow: 0 12px 24px rgba(0,0,0,.22); }
.detail-image-nav:hover { background: rgba(17,19,21,.88); }
.detail-image-prev { left: 10px; }
.detail-image-next { right: 10px; }
.product-detail-count { margin-top: 8px; color: var(--muted); font-size: 12px; font-weight: 800; text-align: center; }
.product-detail-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.product-detail-thumbs button { padding: 0; width: 82px; height: 82px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.product-detail-thumbs button.active { border-color: var(--jade); box-shadow: 0 0 0 2px rgba(47, 125, 104, .18); }
.product-detail-thumbs img { display: block; width: 100%; height: 100%; object-fit: cover; }
.product-detail-copy { color: var(--ink); line-height: 1.62; }
@media (max-width: 700px) { .product-detail-modal { align-items: end; padding: 8px; } .product-detail { max-height: 94vh; border-radius: 14px 14px 0 0; } .product-detail-layout { grid-template-columns: 1fr; } .detail-image-nav { width: 36px; height: 48px; font-size: 28px; } }
.product-image { position: relative; aspect-ratio: 1 / 1; background: #edf1ef; cursor: pointer; }
.product-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-image:focus-visible { outline: 3px solid rgba(47, 125, 104, .45); outline-offset: 2px; }
.product-image button { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 999px; background: rgba(255,255,255,.9); color: var(--jade-dark); cursor: pointer; }
.product-image .product-image-detail-button {
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  overflow: hidden;
}
.product-image .product-image-detail-button:focus-visible {
  outline: 3px solid rgba(47, 125, 104, .45);
  outline-offset: -3px;
}
.product-image .product-image-detail-button .image-fallback {
  pointer-events: none;
}
.product-image .select-chip { left: 8px; right: auto; width: auto; min-width: 76px; height: 30px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 0 9px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.product-image .select-chip.selected { background: var(--jade); color: #fff; }
.product-image .select-chip svg { width: 13px; height: 13px; }
.product-copy { padding: 10px; }
.meta-row { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 11px; }
.product-copy h3 { margin-top: 5px; min-height: 34px; font-size: 13px; line-height: 1.25; }
.price-grid { display: grid; gap: 3px; margin-top: 8px; color: var(--jade-dark); font-size: 11px; font-weight: 700; }
.tile-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 9px; }
.tile-actions button { min-height: 30px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--jade-dark); font-size: 11px; font-weight: 800; }
.product-tile.compact .tile-actions { grid-template-columns: 1fr; }
.empty { color: var(--muted); font-size: 13px; line-height: 1.5; }
.customer-page {
  min-height: 100vh;
  background: var(--pearl);
  color: var(--charcoal);
  padding-bottom: 42px;
  overflow-x: hidden;
}
.customer-hero {
  min-height: min(760px, 92vh);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px clamp(16px, 4vw, 46px) 36px;
  background:
    radial-gradient(circle at 100% 18%, rgba(200, 163, 92, .18), transparent 30%),
    linear-gradient(135deg, #0c0e10 0%, #1b1d1f 56%, #31453d 100%);
  color: white;
  position: relative;
  overflow: hidden;
}
.customer-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 30%;
  background: linear-gradient(180deg, transparent, rgba(251,251,248,.08));
  pointer-events: none;
}
.customer-nav {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  color: rgba(255,255,255,.78);
  font-size: 12px;
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}
.brand-lockup span {
  min-width: 0;
}
.brand-lockup img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border: 1px solid rgba(228,207,155,.42);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0,0,0,.3);
}
.brand-logo {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border: 1px solid rgba(228,207,155,.42);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0,0,0,.3);
}
.brand-logo img {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.brand-logo-fallback {
  display: none;
  color: var(--champagne-2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 700;
}
.brand-logo.image-failed .brand-logo-fallback {
  display: block;
}
.brand-lockup strong {
  display: block;
  color: white;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
}
.brand-lockup small {
  display: block;
  max-width: 280px;
  color: rgba(255,255,255,.65);
  font-size: 11px;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.privacy-chip,
.language-toggle {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(228,207,155,.28);
  background: rgba(255,255,255,.08);
  color: white;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}
.language-toggle:hover { background: rgba(255,255,255,.14); }
.hero-stage {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  margin: 54px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, .72fr);
  align-items: end;
  gap: clamp(24px, 5vw, 70px);
}
.hero-copy { padding-bottom: 16px; }
.client-line {
  color: var(--champagne-2);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}
.customer-hero h1 {
  margin-top: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 8vw, 92px);
  line-height: .95;
  max-width: 800px;
  font-weight: 500;
}
.customer-hero p {
  margin-top: 18px;
  color: rgba(255,255,255,.8);
  max-width: 640px;
  line-height: 1.65;
  font-size: 16px;
}
.hero-tools {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.hero-search,
.hero-link {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-radius: 8px;
  padding: 12px 14px;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
}
.hero-search {
  width: min(100%, 360px);
  color: rgba(255,255,255,.74);
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.16);
}
.hero-link {
  background: var(--champagne);
  color: #171717;
  box-shadow: 0 16px 36px rgba(200,163,92,.24);
}
.hero-media {
  min-height: 520px;
  position: relative;
  border-radius: 8px;
  border: 1px solid rgba(228,207,155,.26);
  background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.03));
  box-shadow: 0 28px 90px rgba(0,0,0,.34);
  overflow: hidden;
}
.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  display: block;
  object-fit: cover;
}
.image-fallback {
  display: none;
}
.image-failed .image-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(228,207,155,.76);
  background:
    linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,0) 38%),
    radial-gradient(circle at 50% 10%, rgba(200,163,92,.18), transparent 34%),
    #1d2220;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(12,14,16,.68));
  pointer-events: none;
}
.hero-card {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(228,207,155,.32);
  background: rgba(16,18,20,.78);
  border-radius: 8px;
  backdrop-filter: blur(18px);
}
.hero-card span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.78);
  font-size: 12px;
  font-weight: 800;
}
.hero-card strong {
  color: var(--champagne-2);
  font-size: 34px;
  line-height: 1;
}
.customer-filters {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 12px clamp(12px, 4vw, 44px);
  background: rgba(251,251,248,.94);
  border-bottom: 1px solid #e3ded2;
  backdrop-filter: blur(16px);
}
.customer-filters label {
  color: #6c6356;
  text-transform: uppercase;
  font-size: 10px;
}
.customer-filters select {
  background: #fff;
  border-color: #dfd6c5;
  color: var(--charcoal);
}
.category-strip,
.section-tabs,
.editorial-band,
.reserved-consultation {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}
.category-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 22px 0 6px;
}
.category-strip button,
.section-tabs button {
  border: 1px solid #ded5c4;
  background: #fff;
  color: #4b443a;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 800;
}
.category-strip button.active,
.section-tabs button.active {
  border-color: var(--champagne);
  background: #191b1d;
  color: white;
}
.editorial-band {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  border-top: 1px solid #ded5c4;
  border-bottom: 1px solid #ded5c4;
  padding: 24px 0;
}
.editorial-band h2,
.reserved-consultation h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 500;
}
.editorial-band p,
.reserved-consultation p {
  color: #746b60;
  margin-top: 8px;
  line-height: 1.55;
}
.mini-rail {
  display: grid;
  grid-template-columns: repeat(3, 74px);
  gap: 8px;
}
.mini-thumb {
  position: relative;
  display: block;
  width: 74px;
  height: 92px;
  overflow: hidden;
  border: 1px solid #ded5c4;
  border-radius: 8px;
  background: #eee9df;
}
.mini-rail img {
  width: 74px;
  height: 92px;
  object-fit: cover;
  display: block;
}
.mini-thumb.image-failed .image-fallback {
  font-size: 9px;
  text-align: center;
  padding: 8px;
}
.section-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 24px 0 4px;
}
.section-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.section-tabs span {
  color: inherit;
  opacity: .7;
  font-size: 12px;
}

.catalog-toolbar {
  width: min(1180px, calc(100% - 32px));
  margin: 14px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid #ded5c4;
  border-radius: 8px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 12px 30px rgba(16,18,20,.05);
}
.catalog-toolbar strong {
  display: block;
  color: #1b1d1f;
  font-size: 14px;
}
.catalog-toolbar span {
  display: block;
  margin-top: 2px;
  color: #746b60;
  font-size: 12px;
}
.catalog-toolbar label {
  min-width: min(240px, 48vw);
  display: grid;
  gap: 5px;
  color: #6c6356;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}
.catalog-toolbar select {
  width: 100%;
  border: 1px solid #dfd6c5;
  background: #fff;
  color: var(--charcoal);
  border-radius: 8px;
  padding: 10px 11px;
  outline: none;
}
.catalog-load-more {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 28px;
  display: grid;
  place-items: center;
  gap: 8px;
}
.catalog-load-more button {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  background: #191b1d;
  color: var(--champagne-2);
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 16px 36px rgba(16,18,20,.14);
}
.catalog-load-more button span {
  opacity: .72;
  margin-left: 6px;
}
.catalog-load-more small {
  color: #746b60;
  font-size: 12px;
}

.customer-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 16px 30px;
  gap: 16px;
}
.customer-page .product-tile {
  border-color: #e1d9ca;
  background: #fff;
  box-shadow: 0 14px 34px rgba(16,18,20,.06);
}
.customer-page .product-tile.is-selected {
  border-color: #c8a35c;
  box-shadow: 0 0 0 2px rgba(200,163,92,.22), 0 14px 34px rgba(16,18,20,.06);
}
.customer-page .product-image {
  position: relative;
  background: #eee9df;
  aspect-ratio: 4 / 5;
}
.customer-page .product-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.customer-page .product-image.image-failed .image-fallback {
  z-index: 1;
}
.customer-page .product-image button {
  position: absolute;
  z-index: 2;
  color: #1b1d1f;
  border: 1px solid rgba(200,163,92,.34);
}
.customer-page .product-image .product-image-detail-button {
  z-index: 1;
  color: inherit;
  border: 0;
}
.customer-page .product-image button.saved {
  background: #191b1d;
  color: var(--champagne-2);
}
.customer-page .meta-row {
  color: #82776a;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 10px;
}
.customer-page .product-copy { padding: 12px; }
.customer-page .product-copy h3 {
  font-family: Georgia, "Times New Roman", serif;
  min-height: 42px;
  font-size: 17px;
  line-height: 1.22;
  font-weight: 500;
}
.color-line {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #6f665b;
  font-size: 12px;
  font-weight: 700;
}
.color-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.16);
  background: #c8c2b5;
}
.color-dot.red { background: #9f3f46; }
.color-dot.black { background: #171717; }
.color-dot.brown { background: #7b563b; }
.color-dot.gold { background: #c8a35c; }
.color-dot.green { background: #2f7d68; }
.color-dot.white { background: #fff; }
.price-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.customer-page .tile-actions button {
  border-color: #e1d9ca;
  background: #fbf8f1;
  color: #5e4b2a;
}
.customer-page .tile-actions {
  grid-template-columns: 1fr;
}
.customer-page .tile-actions button:first-child {
  border-color: #191b1d;
  background: #191b1d;
  color: var(--champagne-2);
}
.customer-page .tile-actions button:nth-child(2) {
  background: #fff;
  color: #5e4b2a;
}
.customer-page .tile-actions button:hover {
  background: #191b1d;
  color: var(--champagne-2);
}
.batch-selection-bar {
  position: sticky;
  bottom: 12px;
  z-index: 20;
  width: min(720px, calc(100% - 28px));
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #d6c9ad;
  background: rgba(25, 27, 29, .94);
  color: #fff;
  border-radius: 8px;
  padding: 10px 12px;
  box-shadow: 0 16px 40px rgba(16,18,20,.22);
}
.batch-selection-bar span {
  font-size: 13px;
}
.batch-selection-note {
  flex: 1 1 220px;
  color: #dceee6;
  line-height: 1.35;
  text-align: center;
}
.batch-selection-bar div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.batch-selection-bar button {
  min-height: 34px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 8px;
  background: #fff;
  color: #191b1d;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.batch-selection-bar button + button {
  background: transparent;
  color: #fff;
}
.customer-notice {
  width: min(1180px, calc(100% - 28px));
  margin: 14px auto 0;
  border: 1px solid #d6c9ad;
  background: #fbf8f1;
  color: #5e4b2a;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 800;
}
.customer-error {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  border-color: rgba(153, 73, 35, .18);
  background: #fff4eb;
  color: #7d3b20;
}
.customer-error button {
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: #17120d;
  color: #fff;
  font-weight: 900;
}
.customer-page .price-grid span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border-radius: 8px;
  background: #f6f2ea;
  color: #5e4b2a;
  font-size: 11px;
}
.style-room {
  width: min(1180px, calc(100% - 32px));
  margin: 12px auto 26px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid #ded5c4;
  border-radius: 8px;
  background:
    radial-gradient(circle at 92% 12%, rgba(200,163,92,.2), transparent 28%),
    linear-gradient(135deg, #111315 0%, #1c211f 52%, #2d3d36 100%);
  color: white;
  overflow: hidden;
}
.style-room-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 24px;
  align-items: end;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(228,207,155,.22);
}
.style-room h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1;
  font-weight: 500;
}
.style-room-head p {
  max-width: 680px;
  margin-top: 12px;
  color: rgba(255,255,255,.72);
  line-height: 1.6;
}
.style-room-product {
  display: grid;
  gap: 10px;
  justify-items: end;
}
.style-room-product img {
  width: 164px;
  height: 204px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(228,207,155,.32);
}
.style-room-product span {
  max-width: 220px;
  text-align: right;
  color: var(--champagne-2);
  font-size: 12px;
  font-weight: 800;
}
.style-room-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1.1fr .9fr .95fr;
  gap: 14px;
}
.style-panel {
  min-height: 260px;
  border: 1px solid rgba(228,207,155,.22);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255,255,255,.075);
}
.style-panel > span,
.style-actions span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--champagne-2);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.style-panel h3 {
  margin-top: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1.12;
  font-weight: 500;
}
.look-list,
.batch-list {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}
.look-list div,
.batch-list div {
  padding: 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: rgba(0,0,0,.16);
}
.look-list strong,
.batch-list strong {
  display: block;
  color: white;
  font-size: 13px;
}
.look-list p,
.batch-list p,
.toolkit-panel p {
  margin-top: 5px;
  color: rgba(255,255,255,.68);
  line-height: 1.48;
  font-size: 12px;
}
.toolkit-panel p {
  padding: 12px;
  border-left: 2px solid rgba(228,207,155,.5);
  background: rgba(0,0,0,.16);
  border-radius: 0 8px 8px 0;
}
.style-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.style-actions button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(228,207,155,.38);
  border-radius: 8px;
  padding: 11px 13px;
  background: var(--champagne);
  color: #171717;
  font-size: 12px;
  font-weight: 900;
}
.style-actions button + button {
  background: rgba(255,255,255,.08);
  color: white;
}
.reserved-consultation {
  margin-top: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 28px;
  border: 1px solid #ded5c4;
  background:
    linear-gradient(135deg, #191b1d, #29352f);
  color: white;
  border-radius: 8px;
}
.reserved-consultation span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--champagne-2);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.reserved-consultation p { color: rgba(255,255,255,.72); }
.reserved-consultation button {
  min-height: 44px;
  border: 1px solid rgba(228,207,155,.45);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.7);
  border-radius: 8px;
  padding: 12px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  cursor: not-allowed;
}
.public-portal { padding-bottom: 0; }
.portal-hero {
  min-height: 100vh;
}
.portal-stage {
  align-items: center;
}
.portal-panel {
  border: 1px solid rgba(228,207,155,.28);
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  padding: 24px;
  backdrop-filter: blur(18px);
  box-shadow: 0 26px 80px rgba(0,0,0,.28);
}
.portal-panel span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--champagne-2);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.portal-panel ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 13px;
}
.portal-panel li {
  padding: 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  color: rgba(255,255,255,.84);
  background: rgba(255,255,255,.05);
}
.public-empty { min-height: 100vh; display: grid; place-items: center; color: var(--muted); }
@media (max-width: 1120px) {
  .admin-shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .dashboard-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .workspace { padding: 14px; }
  .topbar { display: grid; }
  .topbar h1 { font-size: 23px; }
  .control-grid { grid-template-columns: 1fr; }
  .hero-stage { grid-template-columns: 1fr; margin: 34px 0 0; }
  .hero-media { min-height: 380px; }
  .hero-media img { min-height: 380px; }
  .customer-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phone-frame { min-height: 640px; border-width: 6px; border-radius: 24px; }
  .phone-products { gap: 9px; padding: 10px; }
  .customer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 10px; gap: 10px; }
  .customer-page .tile-actions { grid-template-columns: 1fr 1fr; }
  .product-copy h3 { font-size: 12px; }
}
@media (max-width: 720px) {
  .customer-hero { min-height: auto; padding-bottom: 24px; }
  .customer-nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: flex-start;
    max-width: calc(100vw - 32px);
    min-height: 44px;
  }
  .brand-lockup { max-width: 250px; }
  .brand-lockup img,
  .brand-logo {
    width: 42px;
    height: 42px;
  }
  .brand-lockup strong {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .brand-lockup small { max-width: 160px; }
  .nav-actions {
    position: absolute;
    top: 0;
    right: 0;
    max-width: none;
    justify-content: flex-end;
  }
  .privacy-chip { display: none; }
  .language-toggle {
    min-height: 34px;
    min-width: 48px;
    justify-content: center;
    padding: 7px 9px;
  }
  .hero-stage,
  .hero-copy,
  .hero-tools,
  .customer-hero h1,
  .customer-hero p {
    width: 100%;
    max-width: min(350px, calc(100vw - 40px));
  }
  .customer-hero h1 {
    font-size: 38px;
    overflow-wrap: normal;
  }
  .customer-hero p { font-size: 14px; }
  .hero-tools { display: grid; }
  .hero-search, .hero-link { width: 100%; max-width: 100%; }
  .hero-media { min-height: 310px; }
  .hero-media img { min-height: 310px; }
  .hero-media { width: 100%; max-width: min(350px, calc(100vw - 40px)); }
  .customer-filters {
    grid-template-columns: 1fr 1fr;
    box-sizing: border-box;
    width: calc(100% - 20px);
    max-width: calc(100vw - 20px);
    margin-left: auto;
    margin-right: auto;
    padding: 10px;
  }
  .category-strip,
  .section-tabs,
  .editorial-band,
  .style-room,
  .reserved-consultation {
    width: calc(100% - 20px);
  }
  .editorial-band,
  .style-room-head,
  .style-room-grid,
  .reserved-consultation {
    grid-template-columns: 1fr;
  }
  .style-room { padding: 20px; }
  .style-room-product {
    justify-items: start;
  }
  .style-room-product span {
    text-align: left;
  }
  .style-room-product img {
    width: 100%;
    max-width: 310px;
    height: 260px;
  }
  .style-panel {
    min-height: auto;
  }
  .style-actions {
    display: grid;
  }
  .style-actions button,
  .style-actions span {
    width: 100%;
    justify-content: center;
  }
  .mini-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .mini-thumb {
    width: 100%;
    height: 96px;
  }
  .mini-rail img {
    width: 100%;
    height: 96px;
  }
  .customer-page .product-copy h3 {
    min-height: 2.7em;
    font-size: 15px;
  }
  .price-grid { grid-template-columns: 1fr; }
  .batch-selection-bar {
    display: grid;
    width: calc(100% - 20px);
    bottom: 8px;
  }
  .batch-selection-note {
    width: 100%;
    text-align: left;
  }
  .batch-selection-bar div,
  .batch-selection-bar button {
    width: 100%;
    justify-content: center;
  }
  .reserved-consultation { padding: 20px; }
}

/* H5_FRONTEND_UPGRADE_42_20260930: mobile quote builder keeps the chosen savings curve,
   but makes it a compact overview so the first editable row is visible immediately. */
@media (max-width: 720px) {
  .quote-savings-card {
    padding: 10px 12px;
    border-radius: 18px;
  }
  .quote-savings-copy {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px 10px;
  }
  .quote-savings-copy p {
    margin: 0;
    font-size: 10px;
    letter-spacing: .08em;
  }
  .quote-savings-copy h3,
  .quote-savings-copy small,
  .quote-savings-prompt {
    display: none;
  }
  .quote-savings-copy strong {
    font-size: clamp(21px, 7vw, 28px);
    line-height: 1;
  }
  .quote-savings-curve {
    height: 58px;
    margin-top: 4px;
  }
  .quote-savings-curve svg {
    inset: 6px 0 0;
    height: 48px;
  }
  .quote-savings-curve path {
    stroke-width: 3;
  }
  .curve-dot {
    width: 11px;
    height: 11px;
    border-width: 2px;
  }
  .curve-dot-start { top: 20px; }
  .curve-dot-mid { top: 43px; }
  .curve-dot-end { top: 47px; }
  .curve-label {
    display: none;
  }
}


/* Tier prices stay readable without taking over dense product lists. */
.tier-price-panel {
  margin-top: 9px;
  border: 1px solid #e1d9ca;
  border-radius: 8px;
  background: #fbf8f1;
  overflow: hidden;
}
.tier-price-panel summary {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  cursor: pointer;
  color: #5e4b2a;
  font-size: 12px;
  font-weight: 850;
  list-style: none;
}
.tier-price-panel summary::-webkit-details-marker { display: none; }
.tier-price-panel summary::after {
  content: "+";
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #191b1d;
  color: #f3dfb4;
  font-size: 14px;
  line-height: 1;
  flex: 0 0 auto;
}
.tier-price-panel[open] summary::after { content: "-"; }
.tier-price-panel .price-grid {
  margin: 0;
  padding: 0 10px 10px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
}
.customer-page .tier-price-panel .price-grid span {
  min-height: 28px;
  padding: 6px 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f2eadb;
  color: #4e412d;
  font-size: 12px;
}
.tier-price-panel .price-grid b {
  font-weight: 800;
}
.tier-price-panel .price-grid em {
  font-style: normal;
  font-weight: 900;
  color: #1f4f3e;
}
.detail-tier-prices .tier-price-panel {
  margin-top: 12px;
  background: #fffaf2;
}
.detail-tier-prices .tier-price-panel summary {
  font-size: 13px;
}

.shipping-mini-hint {
  margin-top: 7px;
  padding: 7px 9px;
  border: 1px solid #e6dac3;
  border-radius: 8px;
  background: #fffaf0;
  color: #6a5127;
  font-size: 11px;
  font-weight: 850;
}
.shipping-deal-panel {
  margin-top: 12px;
  padding: 12px 13px;
  border: 1px solid #d7c39f;
  border-radius: 12px;
  background: linear-gradient(135deg, #fff9ec, #f4efe4);
  color: #4a3a1e;
}
.shipping-deal-title {
  font-size: 13px;
  font-weight: 950;
  color: #1f4f3e;
  margin-bottom: 7px;
}
.shipping-deal-panel ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 5px;
}
.shipping-deal-panel li,
.detail-pricing-note {
  font-size: 12px;
  line-height: 1.48;
}
.detail-pricing-note {
  margin-top: 10px;
  color: #6c5a39;
}
@media (max-width: 640px) {
  .tier-price-panel summary {
    font-size: 12px;
    padding: 8px;
  }
  .tier-price-panel .price-grid {
    padding: 0 8px 8px;
  }
}

/* Shopify-style customer discovery: keep the first view simple and put rarely used facets behind More filters. */
.customer-filter-search {
  grid-column: span 2;
}
.customer-filters input {
  width: 100%;
  border: 1px solid #dfd6c5;
  background: #fff;
  border-radius: 8px;
  padding: 10px 11px;
  color: var(--charcoal);
  outline: none;
}
.customer-filters input:focus {
  border-color: var(--jade);
  box-shadow: 0 0 0 3px rgba(47, 125, 104, .12);
}
.advanced-customer-filters {
  grid-column: 1 / -1;
  border: 1px solid #e6ddcd;
  border-radius: 10px;
  background: rgba(255,255,255,.74);
  overflow: hidden;
}
.advanced-customer-filters summary {
  cursor: pointer;
  padding: 10px 12px;
  color: #4b443a;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.advanced-customer-filters div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0 12px 12px;
}
.clear-customer-filters {
  border: 1px solid #191b1d;
  border-radius: 8px;
  background: #191b1d;
  color: var(--champagne-2);
  font-size: 12px;
  font-weight: 900;
  min-height: 39px;
  align-self: end;
}
@media (max-width: 720px) {
  .customer-filter-search,
  .advanced-customer-filters {
    grid-column: 1 / -1;
  }
  .advanced-customer-filters div {
    grid-template-columns: 1fr 1fr;
  }
}


.catalog-toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.catalog-toolbar-actions > button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}
.catalog-toolbar-actions > button:hover {
  border-color: var(--jade);
  color: var(--jade-dark);
}
.product-detail-head h2 {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}
@media (max-width: 680px) {
  .catalog-toolbar-actions {
    justify-content: flex-start;
  }
  .catalog-toolbar-actions label,
  .catalog-toolbar-actions select,
  .catalog-toolbar-actions > button {
    width: 100%;
  }
}


.product-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.product-detail-meta span,
.detail-inquiry-hint {
  border: 1px solid #e2d9ca;
  border-radius: 999px;
  padding: 7px 10px;
  background: #fbf8f1;
  color: #6c5a39;
  font-size: 12px;
  font-weight: 800;
}
.detail-inquiry-hint {
  border-radius: 10px;
  line-height: 1.45;
  font-weight: 700;
}
.detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}
.detail-actions button {
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--jade-dark);
  font-weight: 900;
  cursor: pointer;
}
.detail-actions button:first-child {
  border: 0;
  background: var(--jade);
  color: #fff;
}
@media (max-width: 700px) {
  .detail-actions { grid-template-columns: 1fr; }
}

.public-sku-line {
  margin-top: -0.3rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(78, 61, 48, 0.62);
  font-weight: 700;
}
.quote-cart-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: stretch end;
}
.quote-cart-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(17, 15, 13, 0.46);
  backdrop-filter: blur(4px);
  cursor: default;
}
.quote-cart-panel {
  position: relative;
  width: min(560px, 100vw);
  height: 100%;
  overflow: auto;
  background:
    radial-gradient(circle at 20% 4%, rgba(205, 174, 111, .18), transparent 32%),
    linear-gradient(180deg, #fffaf0, #fffdf9 72%, #fbf1df);
  color: #16120e;
  box-shadow: -28px 0 80px rgba(29, 22, 15, 0.30);
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.quote-cart-pull {
  display: none;
  width: 72px;
  height: 6px;
  border-radius: 999px;
  background: rgba(68, 50, 31, 0.25);
  align-self: center;
  margin-bottom: 2px;
}
.quote-cart-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.quote-cart-head span {
  display: inline-flex;
  margin-bottom: 10px;
  color: #9f793f;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.quote-cart-head h2 {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(30px, 3vw, 42px);
  letter-spacing: -.05em;
  line-height: .98;
}
.quote-cart-head p {
  margin: 10px 0 0;
  color: rgba(38, 31, 24, 0.68);
  line-height: 1.45;
  font-size: 15px;
}
.quote-cart-close {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: #15110d;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}
.quote-savings-card {
  padding: 20px;
  border-radius: 26px;
  background: rgba(255, 253, 247, 0.88);
  border: 1px solid rgba(126, 93, 50, 0.16);
  box-shadow: 0 16px 48px rgba(92, 67, 36, .08);
}
.quote-savings-copy {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 7px 18px;
  align-items: start;
}
.quote-savings-copy p {
  margin: 0 0 5px;
  color: #806640;
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.quote-savings-copy h3 {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(19px, 2.1vw, 24px);
  line-height: 1.12;
  letter-spacing: -.02em;
}
.quote-savings-copy strong {
  color: #076733;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(32px, 7vw, 58px);
  line-height: .9;
  white-space: nowrap;
}
.quote-savings-copy small {
  grid-column: 1 / -1;
  max-width: none;
  color: rgba(39, 31, 23, .58);
  font-size: 12px;
  line-height: 1.32;
}
.quote-savings-curve {
  position: relative;
  height: 154px;
  margin-top: 12px;
}
.quote-savings-curve svg {
  position: absolute;
  inset: 14px 0 0;
  width: 100%;
  height: 124px;
  overflow: visible;
}
.quote-savings-curve path {
  fill: none;
  stroke: #086a32;
  stroke-width: 4;
  stroke-linecap: round;
  filter: drop-shadow(0 8px 12px rgba(8, 106, 50, .15));
}
.curve-dot {
  position: absolute;
  z-index: 2;
  width: 17px;
  height: 17px;
  border-radius: 999px;
  background: #086a32;
  border: 3px solid #e8f3df;
  box-shadow: 0 7px 16px rgba(8, 106, 50, .18);
}
.curve-dot-start { left: 2%; top: 43px; }
.curve-dot-mid { left: 56%; top: 105px; }
.curve-dot-end { right: 6%; top: 114px; }
.curve-label {
  position: absolute;
  z-index: 3;
  color: #251b12;
  font-size: 12px;
  line-height: 1.16;
  font-weight: 900;
}
.curve-label-start { left: 0; top: 0; }
.curve-label-mid { left: 43%; top: 61px; }
.curve-label-end { right: 0; top: 72px; text-align: right; }
.quote-savings-prompt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 5px;
  padding: 13px 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #eff9ee, #e6f4e4);
  color: #086a32;
  font-weight: 900;
  text-align: center;
}
.quote-savings-expand {
  margin-top: 10px;
}
.quote-savings-expand summary {
  display: none;
}
@media (min-width: 901px) {
  .quote-cart-panel {
    width: min(740px, calc(100vw - 56px));
    padding: 14px 18px 18px;
    gap: 10px;
  }
  .quote-cart-head h2 { font-size: clamp(26px, 2.4vw, 34px); }
  .quote-cart-head p { margin-top: 6px; font-size: 13px; line-height: 1.32; }
  .quote-cart-head span { margin-bottom: 6px; }
  .quote-savings-card {
    padding: 13px 15px;
    border-radius: 20px;
  }
  .quote-savings-copy {
    grid-template-columns: minmax(240px, 1fr) minmax(160px, auto);
    gap: 5px 14px;
  }
  .quote-savings-copy p { margin-bottom: 3px; font-size: 11px; }
  .quote-savings-copy h3 { font-size: clamp(18px, 1.7vw, 22px); }
  .quote-savings-copy strong {
    max-width: 180px;
    font-size: clamp(30px, 3vw, 40px);
    line-height: .98;
    white-space: normal;
    text-align: right;
  }
  .quote-savings-copy small {
    font-size: 11px;
    line-height: 1.22;
  }
  .quote-savings-curve {
    height: 112px;
    margin-top: 5px;
  }
  .quote-savings-curve svg {
    inset: 6px 0 0;
    height: 90px;
  }
  .curve-dot { width: 14px; height: 14px; border-width: 2px; }
  .curve-dot-start { top: 31px; }
  .curve-dot-mid { top: 76px; }
  .curve-dot-end { top: 82px; }
  .curve-label { font-size: 11px; line-height: 1.12; }
  .curve-label-mid { top: 43px; }
  .curve-label-end { top: 50px; }
  .quote-savings-prompt {
    margin-top: 1px;
    padding: 8px 11px;
    border-radius: 18px;
    font-size: 12px;
  }
  .quote-cart-lines { gap: 9px; }
}
.quote-cart-lines {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.quote-cart-line {
  display: grid;
  grid-template-columns: 92px 1fr 132px 102px 30px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 22px;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(107, 80, 45, 0.13);
  box-shadow: 0 10px 30px rgba(74, 55, 31, .05);
}
.quote-cart-thumb {
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  background: #f1e8db;
}
.quote-cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.quote-cart-line-main strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px;
  line-height: 1.12;
}
.quote-cart-line-main small {
  display: block;
  margin-top: 6px;
  color: rgba(40, 33, 26, 0.55);
  font-weight: 800;
}
.quote-line-unit { margin-top: 8px; display: flex; align-items: baseline; gap: 5px; }
.quote-line-unit b { font-size: 22px; }
.quote-line-unit span { color: rgba(37, 30, 24, .62); }
.quote-line-save {
  display: inline-flex;
  margin-top: 7px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #e8f6e9;
  color: #076733;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}
.quote-line-save.muted { color: #85683b; background: #f5eddc; }
.quote-cart-stepper {
  display: grid;
  grid-template-columns: 40px 52px 40px;
  min-height: 44px;
  border: 1px solid rgba(111, 85, 52, .2);
  border-radius: 15px;
  overflow: hidden;
  background: #fff;
}
.quote-cart-stepper button,
.quote-cart-stepper input {
  min-width: 40px;
  min-height: 44px;
  border: 0;
  background: transparent;
  text-align: center;
  font: inherit;
  font-weight: 900;
  color: #17120d;
}
.quote-cart-stepper button { cursor: pointer; font-size: 22px; }
.quote-cart-stepper input { border-left: 1px solid rgba(111, 85, 52, .12); border-right: 1px solid rgba(111, 85, 52, .12); }
.quote-line-total { text-align: right; display: grid; gap: 4px; }
.quote-line-total del { color: rgba(37, 30, 24, .42); font-weight: 700; }
.quote-line-total strong { font-size: 22px; }
.quote-cart-remove {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  display: grid;
  place-items: center;
  background: transparent;
  color: rgba(38, 31, 24, .58);
  font-size: 24px;
  cursor: pointer;
}
.quote-cart-empty {
  min-height: 160px;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px dashed rgba(111, 85, 52, 0.28);
  border-radius: 22px;
  color: rgba(78, 61, 48, 0.62);
  background: rgba(255,255,255,0.56);
  font-weight: 800;
}
.quote-estimate-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(135deg, #f7fbf0, #fffaf1);
  border: 1px solid rgba(13, 96, 44, .12);
}
.quote-estimate-summary h3 {
  grid-column: 1 / -1;
  margin: 0 0 14px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 22px;
}
.quote-estimate-summary div {
  display: grid;
  gap: 4px;
  padding: 0 14px;
  border-left: 1px solid rgba(92, 70, 38, .16);
}
.quote-estimate-summary div:nth-of-type(1) { border-left: 0; padding-left: 0; }
.quote-estimate-summary span { color: #5e4b31; font-weight: 800; }
.quote-estimate-summary strong { font-size: 26px; color: #086a32; }
.quote-estimate-summary small { color: rgba(37, 30, 24, .55); line-height: 1.25; }

.quote-total-strip {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 4px 14px;
  padding: 14px 16px;
  border: 1px solid rgba(8, 106, 50, .18);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(8, 106, 50, .08), rgba(255, 247, 222, .92));
  color: #17120d;
}
.quote-total-strip span {
  color: #5e4b31;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.quote-total-strip strong {
  color: #086a32;
  font-size: 24px;
  font-weight: 950;
  text-align: right;
}
.quote-total-strip small {
  grid-column: 1 / -1;
  color: rgba(37, 30, 24, .62);
  line-height: 1.35;
}

.quote-cart-customer { display: grid; gap: 10px; }
.quote-cart-customer label { display: grid; gap: 6px; color: #6a5637; font-size: 12px; font-weight: 900; }
.quote-cart-customer input,
.quote-cart-customer textarea {
  border: 1px solid rgba(100, 76, 43, 0.20);
  border-radius: 14px;
  background: #fff;
  padding: 11px 12px;
  color: var(--ink);
  font: inherit;
}
.quote-cart-customer textarea { min-height: 74px; resize: vertical; }
.quote-contact-card { display: grid; gap: 8px; border: 1px solid rgba(111, 85, 52, .14); border-radius: 16px; padding: 12px; background: rgba(255, 250, 242, .74); }
.quote-contact-label { color: #6a5637; font-size: 12px; font-weight: 900; }
.quote-contact-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.quote-contact-chip { border: 1px solid rgba(111, 85, 52, .18); background: #fff; color: #7c633e; border-radius: 999px; padding: 7px 10px; font-size: 12px; font-weight: 900; cursor: pointer; }
.quote-contact-chip.active { background: #14110c; color: #fff8e7; border-color: #14110c; box-shadow: 0 10px 22px rgba(20,17,12,.16); }
.quote-contact-card small { color: #8a7656; line-height: 1.45; font-size: 11px; }
.quote-contact-card select { width:100%; min-height:44px; border:1px solid #cdbd9e; border-radius:8px; background:#fff; padding:8px; font:inherit; }
.quote-contact-card label:has(input[type="checkbox"]) { display:flex; align-items:flex-start; gap:8px; font-size:12px; line-height:1.5; }
.quote-contact-card input[type="checkbox"] { width:18px; height:18px; flex:0 0 18px; }
.inquiry-receipt-controls { display:flex; flex-wrap:wrap; gap:8px; padding:10px 0; }
.inquiry-receipt-controls small { flex-basis:100%; font-size:11px; line-height:1.5; }
.quote-cart-secondary-actions,
.quote-cart-actions {
  display: grid;
  gap: 10px;
}
.quote-cart-secondary-actions {
  grid-template-columns: repeat(3, 1fr);
}
.quote-cart-actions {
  grid-template-columns: minmax(120px, .72fr) minmax(170px, 1fr);
  position: sticky;
  bottom: 0;
  padding-top: 10px;
  background: linear-gradient(180deg, rgba(255,250,242,0), #fffaf2 28%);
}
.quote-cart-sticky-total {
  min-height: 52px;
  border: 1px solid rgba(8, 106, 50, .18);
  border-radius: 18px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, .92);
  display: grid;
  align-content: center;
  gap: 2px;
}
.quote-cart-sticky-total span {
  color: #5e4b31;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.quote-cart-sticky-total strong {
  color: #086a32;
  font-size: 20px;
  line-height: 1;
}
.quote-cart-secondary-actions button,
.quote-cart-actions button {
  min-height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(101, 76, 45, 0.18);
  padding: 0 18px;
  font-weight: 900;
  cursor: pointer;
}
.quote-cart-actions button[data-action="submit-quote-cart"] {
  border: 0;
  background: linear-gradient(135deg, #a87a32, #c0964f);
  color: #fff;
  font-size: 15px;
  box-shadow: 0 15px 34px rgba(144, 100, 38, .24);
}
.quote-cart-secondary-actions button {
  min-height: 42px;
  background: #fff;
  color: #5b421f;
}
.quote-cart-secondary-actions button[data-action="clear-quote-cart"] {
  background: transparent;
}
.quote-cart-actions button:disabled,
.quote-cart-secondary-actions button:disabled { opacity: .45; cursor: not-allowed; }
.quote-cart-disclaimer {
  margin: -4px 0 0;
  color: rgba(38, 31, 24, .58);
  text-align: center;
  line-height: 1.35;
  font-size: 13px;
}
@media (max-width: 700px) {
  .quote-cart-modal { place-items: end stretch; }
  .quote-cart-panel {
    width: 100vw;
    height: min(92vh, 844px);
    border-radius: 28px 28px 0 0;
    padding: 18px 15px 18px;
  }
  .quote-cart-pull { display: block; }
  .quote-cart-head { align-items: start; }
  .quote-cart-line {
    grid-template-columns: 74px minmax(0, 1fr) 34px;
    grid-template-areas:
      "thumb main remove"
      "step step step"
      "total total total";
    gap: 10px;
  }
  .quote-cart-thumb { grid-area: thumb; }
  .quote-cart-line-main { grid-area: main; }
  .quote-cart-stepper { grid-area: step; grid-template-columns: 38px minmax(48px, 1fr) 38px; max-width: 100%; }
  .quote-line-total {
    grid-area: total;
    width: 100%;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
  }
  .quote-line-total del,
  .quote-line-total strong { white-space: nowrap; }
  .quote-cart-remove { grid-area: remove; }
  .quote-savings-copy { grid-template-columns: 1fr; }
  .quote-savings-copy small { grid-column: 1; max-width: none; }
  .quote-savings-curve { height: 130px; }
  .curve-label { font-size: 11px; }
  .curve-label-mid { left: 39%; }
  .quote-estimate-summary { grid-template-columns: 1fr; gap: 12px; }
  .quote-estimate-summary div { border-left: 0; border-top: 1px solid rgba(92,70,38,.12); padding: 10px 0 0; }
  .quote-estimate-summary div:nth-of-type(1) { border-top: 0; }
}

/* Quote cart refinement: keep the selected curved proposal style, add buyer-friendly controls. */
.quote-cart-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}
.quote-cart-meta span {
  display: inline-flex;
  margin: 0;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(8, 106, 50, 0.08);
  color: #086a32;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
}
.quote-cart-thumb {
  border: 0;
  padding: 0;
  cursor: zoom-in;
}


.quote-cart-line.is-size-required {
  border-color: rgba(181, 90, 30, .52);
  background:
    linear-gradient(135deg, rgba(255, 243, 224, .98), rgba(255, 255, 255, .92));
  box-shadow: 0 14px 34px rgba(181, 90, 30, .12);
}

.quote-cart-line.is-unavailable {
  border-color: rgba(132, 42, 42, .34);
  background:
    linear-gradient(135deg, rgba(255, 247, 244, .98), rgba(255, 255, 255, .92));
  box-shadow: 0 14px 34px rgba(132, 42, 42, .10);
}

.quote-cart-status-warning {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(132, 42, 42, .24);
  border-radius: 8px;
  background: #fff7f4;
  color: #7c332b;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.quote-cart-missing-thumb {
  display: grid;
  place-items: center;
  background: #f4e7dc;
  color: #7c332b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.quote-line-required {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #b55a1e;
  color: #fff;
  font-size: 11px;
  font-weight: 950;
}

.quote-cart-line.is-recently-added {
  border-color: rgba(8, 106, 50, .42);
  background:
    linear-gradient(135deg, rgba(232, 248, 232, .96), rgba(255, 255, 255, .92));
  box-shadow: 0 14px 34px rgba(8, 106, 50, .12);
  outline: 3px solid rgba(8, 106, 50, .08);
}
.quote-cart-line:focus { outline: 3px solid rgba(8, 106, 50, .16); }
.quote-line-recent {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #086a32;
  color: #fff;
  font-size: 11px;
  font-weight: 950;
}

.quote-cart-line-main .quote-line-sku {
  margin: 0 0 6px;
  color: #8b6b37;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.quote-cart-line.has-size-matrix {
  grid-template-rows: auto auto;
}
.quote-size-matrix {
  grid-column: 2 / 5;
  width: 100%;
  margin-top: -2px;
  padding: 11px;
  border: 1px solid rgba(8, 106, 50, .14);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(239, 249, 238, .88), rgba(255, 250, 242, .88));
}
.quote-size-matrix-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}
.quote-size-matrix-head span {
  color: #086a32;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.quote-size-matrix-head small {
  color: rgba(37, 30, 24, .55);
  font-size: 11px;
  line-height: 1.25;
  text-align: right;
}
.quote-size-picker-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
}
.quote-size-picker-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px;
  border: 1px solid rgba(111, 85, 52, .16);
  border-radius: 14px;
  background: rgba(255,255,255,.84);
}
.quote-size-picker-row.is-selected {
  border-color: rgba(8, 106, 50, .36);
  background: linear-gradient(135deg, rgba(232, 248, 232, .98), rgba(255, 255, 255, .94));
  box-shadow: 0 10px 22px rgba(8, 106, 50, .08);
}
.quote-size-name {
  display: grid;
  gap: 3px;
  min-height: 46px;
  padding: 8px 10px;
  border: 0;
  border-radius: 11px;
  background: rgba(250, 245, 235, .9);
  color: #3b3024;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.quote-size-name span {
  font-size: 13px;
  font-weight: 950;
}
.quote-size-name small {
  color: rgba(59, 48, 36, .55);
  font-size: 11px;
  font-weight: 850;
}
.quote-size-stepper {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px;
  border: 1px solid rgba(111, 85, 52, .16);
  border-radius: 999px;
  background: #fff;
}
.quote-size-stepper button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: #17120d;
  color: #fff;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}
.quote-size-stepper button:disabled {
  background: rgba(23, 18, 13, .12);
  color: rgba(23, 18, 13, .32);
  cursor: not-allowed;
}
.quote-size-stepper strong {
  min-width: 26px;
  color: #17120d;
  font-size: 13px;
  font-weight: 950;
  text-align: center;
}
.quote-estimate-summary {
  grid-template-columns: repeat(4, 1fr);
}
.batch-selection-bar {
  width: min(860px, calc(100% - 28px));
}
.batch-selection-bar button:first-child {
  background: linear-gradient(135deg, #f3dfb4, #fff7de);
  color: #191b1d;
}
@media (max-width: 700px) {
  .quote-cart-line.has-size-matrix {
    grid-template-areas:
      "thumb main remove"
      "step step step"
      "total total total"
      "size size size";
  }
  .quote-size-matrix {
    grid-area: size;
    grid-column: auto;
    margin-top: 4px;
  }
  .quote-size-matrix-head {
    display: grid;
  }
  .quote-size-matrix-head small {
    text-align: left;
  }
  .quote-size-picker-list {
    grid-template-columns: 1fr;
  }
  .quote-size-picker-row {
    grid-template-columns: minmax(96px, 1fr) minmax(108px, auto);
    gap: 6px;
    padding: 6px;
  }
  .quote-size-name {
    min-height: 42px;
    padding: 7px 8px;
  }
  .quote-size-name span,
  .quote-size-name small {
    white-space: nowrap;
  }
  .quote-size-stepper {
    min-width: 108px;
  }
}


/* Mobile blank/error guard and modal fit hardening, 2026-09-29. */
.public-empty {
  padding: 24px;
  text-align: center;
}
.public-empty > div {
  display: grid;
  gap: 8px;
  max-width: 360px;
}
.public-empty strong {
  color: var(--ink);
  font-size: 18px;
}
.public-empty span {
  color: var(--muted);
  line-height: 1.45;
}
.public-error button {
  justify-self: center;
  margin-top: 8px;
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  background: var(--jade);
  color: #fff;
  font-weight: 900;
}

@media (max-width: 700px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  .product-detail-modal {
    place-items: end stretch;
    padding: max(6px, env(safe-area-inset-top)) max(6px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));
    overflow: hidden;
  }
  .product-detail {
    width: 100%;
    max-width: 100vw;
    max-height: calc(100dvh - max(12px, env(safe-area-inset-top)) - max(6px, env(safe-area-inset-bottom)));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 12px;
  }
  .product-detail-head {
    position: sticky;
    top: -12px;
    z-index: 5;
    margin: -12px -12px 12px;
    padding: 12px;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
  }
  .product-detail-head h2 {
    font-size: 17px;
    line-height: 1.2;
  }
  .product-detail-gallery,
  .product-detail-copy,
  .product-detail-image-stage,
  .product-detail-image-zoom {
    min-width: 0;
    max-width: 100%;
  }
  .product-detail-image-zoom {
    min-height: 0;
    height: min(72vw, 42dvh);
    max-height: 42dvh;
  }
  .product-detail-image-zoom img {
    width: 100%;
    height: 100%;
    max-height: 42dvh;
    object-fit: contain;
    transform: none !important;
  }
  .detail-image-nav {
    width: 34px;
    height: 42px;
    font-size: 26px;
  }
  .detail-image-prev { left: 6px; }
  .detail-image-next { right: 6px; }
  .product-detail-thumbs {
    max-width: 100%;
    gap: 6px;
    padding-bottom: 8px;
  }
  .product-detail-thumbs button {
    width: 58px;
    height: 58px;
  }
  .quote-cart-modal {
    place-items: end stretch;
    overflow: hidden;
  }
  .quote-cart-panel {
    width: 100%;
    max-width: 100vw;
    height: min(92dvh, calc(100dvh - env(safe-area-inset-top)));
    max-height: calc(100dvh - env(safe-area-inset-top));
    overflow-x: hidden;
    overscroll-behavior: contain;
    padding-bottom: max(18px, env(safe-area-inset-bottom));
  }
  .quote-cart-head,
  .quote-savings-card,
  .quote-cart-lines,
  .quote-cart-line,
  .quote-size-matrix,
  .quote-size-picker-list,
  .quote-size-picker-row,
  .quote-estimate-summary,
  .quote-total-strip,
  .quote-cart-customer,
  .quote-cart-secondary-actions,
  .quote-cart-actions {
    min-width: 0;
    max-width: 100%;
  }
  .quote-cart-line {
    overflow: hidden;
  }
  .quote-cart-line-main strong,
  .quote-cart-line-main small,
  .quote-line-unit,
  .quote-line-save {
    overflow-wrap: anywhere;
  }
  .quote-size-picker-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .quote-size-stepper {
    flex: 0 0 auto;
  }
  .quote-cart-actions {
    bottom: calc(-1 * env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* Phase 1 showroom polish, 2026-09-29: copy hierarchy, quieter cards, clearer filters, mobile bottom bar. */
.customer-filters {
  align-items: end;
  box-shadow: 0 14px 34px rgba(36, 31, 24, 0.06);
}
.customer-filter-search {
  grid-column: span 2;
}
.customer-filter-search input {
  min-height: 43px;
  font-size: 14px;
  background: #fffdf8;
}
.advanced-customer-filters {
  background: rgba(255, 255, 255, 0.88);
}
.advanced-customer-filters summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.advanced-customer-filters summary::after {
  content: 'Open';
  color: #8f6a2d;
  font-size: 10px;
  letter-spacing: .1em;
}
.advanced-customer-filters[open] summary::after {
  content: 'Close';
}
.product-tile .meta-row {
  min-height: 24px;
  align-items: center;
}
.product-tile .meta-row span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.product-tile .meta-row span + span {
  color: rgba(79, 64, 45, 0.64);
  background: rgba(180, 134, 58, 0.10);
}
.product-tile .public-sku-line {
  opacity: .58;
  font-size: 10px;
  letter-spacing: .06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-tile .shipping-mini-hint {
  color: #7b5b21;
  background: rgba(180, 134, 58, 0.10);
  border: 1px solid rgba(180, 134, 58, 0.18);
}
@media (max-width: 720px) {
  .customer-page {
    padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px));
  }
  .customer-filters {
    position: relative;
    top: auto;
    grid-template-columns: 1fr 1fr;
    box-shadow: none;
  }
  .customer-filter-search {
    grid-column: 1 / -1;
  }
  .advanced-customer-filters,
  .clear-customer-filters {
    grid-column: 1 / -1;
  }
}

/* H5 upgrade 42, 2026-10-01: compact real-search hero and safer mobile wholesale drawer. */
.customer-hero {
  min-height: auto;
  padding-top: 14px;
  padding-bottom: 16px;
}
.hero-stage {
  grid-template-columns: minmax(0, 1fr);
  max-width: 980px;
  margin-top: 16px;
}
.hero-media,
.category-strip,
.editorial-band,
.section-tabs {
  display: none;
}
.customer-hero h1 {
  max-width: 760px;
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1;
}
.customer-hero p {
  margin-top: 10px;
  max-width: 760px;
  line-height: 1.42;
  font-size: 15px;
}
.hero-tools {
  margin-top: 14px;
}
.hero-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fffdf6;
  font: inherit;
  font-weight: 800;
}
.hero-search input::placeholder {
  color: rgba(255,255,255,.72);
}
.quote-cart-inline-notice button {
  margin-left: 8px;
  border: 1px solid rgba(132, 42, 42, .24);
  border-radius: 999px;
  padding: 5px 10px;
  background: #fff;
  color: #7c332b;
  font-weight: 900;
  cursor: pointer;
}
@media (min-width: 721px) {
  .hero-stage {
    margin-top: 16px;
    align-items: center;
    gap: clamp(18px, 3vw, 42px);
  }
  .customer-hero h1 {
    margin-top: 10px;
    font-size: clamp(34px, 4.8vw, 58px);
  }
  .customer-hero p {
    margin-top: 10px;
    line-height: 1.45;
    font-size: 15px;
  }
  .hero-tools {
    margin-top: 16px;
  }
}
@media (max-width: 720px) {
  .customer-hero {
    padding-top: 12px;
    padding-bottom: 14px;
  }
  .hero-stage {
    margin-top: 12px;
  }
  .customer-hero h1 {
    margin-top: 6px;
    font-size: clamp(27px, 8vw, 34px);
  }
  .customer-hero p {
    margin-top: 8px;
    line-height: 1.34;
    font-size: 14px;
  }
  .hero-tools {
    margin-top: 12px;
  }
  .hero-search,
  .hero-link {
    min-height: 42px;
    padding: 10px 12px;
  }
  .hero-media {
    display: none;
  }
  .category-strip,
  .editorial-band,
  .section-tabs {
    display: none;
  }
  .customer-filters {
    padding: 10px;
    gap: 8px;
  }
  .customer-filters label,
  .customer-filters select,
  .customer-filters input {
    font-size: 12px;
  }
  .catalog-toolbar {
    margin: 8px 10px 10px;
    padding: 10px;
  }
  .catalog-toolbar > div {
    gap: 8px;
  }
  .catalog-toolbar strong {
    font-size: 16px;
  }
  .quote-cart-head {
    position: sticky;
    top: 0;
    z-index: 6;
    margin: -18px -15px 0;
    padding: 12px 15px 10px;
    background: rgba(255, 250, 242, .96);
    border-bottom: 1px solid rgba(101, 76, 45, .13);
    backdrop-filter: blur(10px);
  }
  .quote-cart-head h2 {
    font-size: 22px;
  }
  .quote-cart-head p,
  .quote-cart-meta {
    display: none;
  }
  .quote-cart-close {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: rgba(255,255,255,.9);
    box-shadow: 0 8px 20px rgba(48, 37, 24, .12);
  }
  .quote-cart-secondary-actions {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .quote-cart-secondary-actions button {
    min-height: 38px;
    padding: 0 12px;
    font-size: 12px;
  }
  .quote-cart-secondary-actions button[data-action="clear-quote-cart"] {
    grid-column: 1 / -1;
    justify-self: center;
    width: auto;
    min-height: 32px;
    padding: 0 14px;
    background: transparent;
  }
  .quote-cart-actions {
    grid-template-columns: minmax(90px, .66fr) minmax(150px, 1fr);
    gap: 8px;
  }
  .quote-savings-card {
    padding: 8px 10px;
    border-radius: 16px;
  }
  .quote-savings-copy {
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 1px 8px;
    align-items: center;
  }
  .quote-savings-copy p {
    grid-column: 1 / -1;
    margin: 0;
    font-size: 8px;
    letter-spacing: .11em;
  }
  .quote-savings-copy h3 {
    display: none;
  }
  .quote-savings-copy strong {
    max-width: none;
    font-size: clamp(20px, 5.8vw, 24px);
    line-height: 1;
    white-space: nowrap;
    text-align: right;
  }
  .quote-savings-copy small {
    display: none;
  }
  .quote-savings-curve {
    height: 86px;
    margin-top: 4px;
  }
  .quote-savings-curve svg {
    inset: 2px 0 0;
    height: 76px;
  }
  .curve-dot {
    width: 13px;
    height: 13px;
    border-width: 2px;
  }
  .curve-dot-start { top: 24px; }
  .curve-dot-mid { top: 56px; }
  .curve-dot-end { top: 61px; }
  .curve-label {
    display: none;
  }
  .quote-savings-prompt {
    margin-top: 0;
    padding: 5px 8px;
    border-radius: 16px;
    gap: 5px;
    font-size: 11px;
    line-height: 1.12;
  }
  .quote-savings-expand {
    margin-top: 3px;
  }
  .quote-savings-expand summary {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    border-radius: 999px;
    background: rgba(8, 106, 50, .08);
    color: #086a32;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
  }
  .quote-savings-expand[open] summary {
    margin-bottom: 4px;
  }
  .quote-savings-expand:not([open]) + .quote-savings-prompt {
    display: none;
  }
  .quote-estimate-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
    border-radius: 16px;
    overflow: hidden;
  }
  .quote-estimate-summary h3 {
    grid-column: 1 / -1;
    margin: 0 0 2px;
    font-size: 16px;
    line-height: 1.12;
  }
  .quote-estimate-summary div,
  .quote-estimate-summary div:nth-of-type(1) {
    min-width: 0;
    border-left: 0;
    border-top: 1px solid rgba(92,70,38,.12);
    padding: 7px 0 0;
  }
  .quote-estimate-summary span {
    font-size: 11px;
    line-height: 1.12;
    overflow-wrap: anywhere;
  }
  .quote-estimate-summary strong {
    font-size: 18px;
    line-height: 1.05;
    overflow-wrap: anywhere;
  }
  .quote-estimate-summary small {
    font-size: 10px;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }
  .quote-cart-actions button[data-action="submit-quote-cart"] {
    min-height: 48px;
    padding: 0 12px;
    font-size: 12px;
  }
  .quote-cart-sticky-total {
    min-height: 48px;
    border-radius: 15px;
    padding: 7px 10px;
  }
  .quote-cart-sticky-total span {
    font-size: 10px;
  }
  .quote-cart-sticky-total strong {
    font-size: 18px;
  }
  .quote-cart-line {
    scroll-margin-top: 118px;
  }
  .quote-cart-line.has-size-matrix {
    grid-template-areas:
      "thumb main remove"
      "step step step"
      "total total total"
      "size size size";
    overflow: visible;
  }
  .quote-size-matrix {
    grid-area: size;
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 4px;
  }
  .quote-size-picker-row {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 7px;
    width: 100%;
  }
  .quote-size-name {
    width: 100%;
    min-width: 100%;
    min-height: 44px;
  }
  .quote-size-stepper {
    display: grid;
    grid-template-columns: minmax(44px, 1fr) minmax(38px, .8fr) minmax(44px, 1fr);
    width: 100%;
    min-width: 0;
    padding: 4px;
  }
  .quote-size-stepper button {
    width: auto;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
  }
  .quote-size-stepper strong {
    min-width: 38px;
    display: grid;
    place-items: center;
  }
}
