:root {
  --ink: #172127;
  --ink-soft: #52616a;
  --paper: #f4f8f9;
  --white: #ffffff;
  --line: #cbd5d9;
  --line-dark: #8a989f;
  --signal: #c51d32;
  --signal-dark: #a71327;
  --cyan: #4bd2e4;
  --blue: #235bff;
  --yellow: #ffd649;
  --shadow: 0 18px 48px rgba(23, 33, 39, .12);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Be Vietnam Pro", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  z-index: 1000;
  left: 16px;
  top: 12px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
  padding: 10px clamp(18px, 4vw, 64px);
  color: var(--white);
  background: rgba(23, 33, 39, .96);
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(18px);
}
.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark b { font-size: 28px; line-height: 1; letter-spacing: -.09em; }
.wordmark span { font-size: 9px; font-weight: 700; letter-spacing: .18em; }
.site-header nav { display: flex; justify-content: center; gap: 28px; }
.site-header nav a { color: #d7e0e3; font-size: 13px; text-decoration: none; }
.site-header nav a:hover { color: var(--white); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.print-link, .selection-trigger {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  color: var(--white);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.print-link span { color: var(--cyan); }
.selection-trigger { border-color: var(--signal); background: var(--signal); }
.selection-trigger b {
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--signal);
  background: var(--white);
}

.hero {
  min-height: 740px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
  grid-template-rows: 1fr auto;
  gap: 30px 6vw;
  padding: clamp(60px, 8vw, 116px) clamp(22px, 6vw, 96px) 36px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 72px 72px,
    var(--ink);
  overflow: hidden;
}
.hero-copy { align-self: center; max-width: 820px; }
.eyebrow {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.hero .eyebrow { color: var(--cyan); }
.hero h1 {
  margin: 0;
  font-size: clamp(48px, 6.5vw, 92px);
  line-height: .94;
  letter-spacing: -.07em;
  font-weight: 700;
}
.hero h1 span { color: transparent; -webkit-text-stroke: 1.5px #92a4ab; }
.hero-lede { max-width: 650px; margin: 34px 0 0; color: #cbd7db; font-size: clamp(17px, 1.4vw, 21px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.primary-button, .secondary-button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 21px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.primary-button { color: var(--white); background: var(--signal); }
.primary-button:hover { background: var(--signal-dark); }
.secondary-button { border: 1px solid #66777e; color: var(--white); }
.micro-note { margin: 20px 0 0; color: #8fa0a7; font-size: 12px; }

.hero-visual { position: relative; align-self: center; min-height: 500px; }
.discount-stamp {
  position: absolute;
  z-index: 4;
  top: 12px;
  right: -10px;
  width: 164px;
  height: 164px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--signal);
  box-shadow: 0 0 0 8px var(--ink), 0 0 0 9px var(--signal);
  transform: rotate(7deg);
}
.discount-stamp small { font-size: 10px; font-weight: 700; letter-spacing: .16em; }
.discount-stamp strong { font-size: 44px; line-height: 1; letter-spacing: -.06em; }
.discount-stamp span { width: 115px; margin-top: 5px; font-size: 9px; text-align: center; }
.brand-stage { position: relative; height: 520px; }
.stage-card {
  --x: calc(var(--stage-index) * 15%);
  position: absolute;
  left: calc(var(--stage-index) * 14%);
  bottom: calc((3 - var(--stage-index)) * 10px);
  width: 42%;
  height: 77%;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #dce4e6;
  box-shadow: -18px 22px 45px rgba(0, 0, 0, .35);
  overflow: hidden;
  cursor: pointer;
  transform: rotate(calc((var(--stage-index) - 1.5) * 3deg));
  transition: transform .24s ease, z-index 0s;
}
.stage-card:hover, .stage-card:focus-visible { z-index: 5; transform: translateY(-18px) rotate(0); }
.stage-card img { width: 100%; height: 100%; object-fit: cover; }
.stage-card span {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 10px 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, .9);
  border-radius: 7px;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}
.hero-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  border-top: 1px solid #45545b;
}
.hero-stats div { padding: 22px 20px 4px 0; border-right: 1px solid #45545b; }
.hero-stats div:not(:first-child) { padding-left: 24px; }
.hero-stats div:last-child { border-right: 0; }
.hero-stats dt { color: #94a4aa; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.hero-stats dd { margin: 3px 0 0; font-size: clamp(26px, 3vw, 42px); font-weight: 700; letter-spacing: -.05em; }

.brand-index, .catalog, .price-notes { padding: clamp(64px, 8vw, 112px) clamp(20px, 5.5vw, 84px); }
.section-heading, .catalog-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  align-items: end;
  gap: 40px;
  margin-bottom: 36px;
}
.section-heading h2, .catalog-heading h2, .price-notes h2, .contact-band h2 {
  margin: 0;
  font-size: clamp(34px, 4.5vw, 64px);
  line-height: 1.02;
  letter-spacing: -.055em;
}
.section-heading > p { margin: 0; color: var(--ink-soft); }
.brand-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.brand-card {
  position: relative;
  min-height: 250px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  background: var(--white);
  text-align: left;
  overflow: hidden;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.brand-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.brand-card[aria-pressed="true"] { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue); }
.brand-card img { width: 100%; height: 152px; object-fit: cover; }
.brand-card-copy { display: flex; flex-direction: column; padding: 15px; }
.brand-card strong { font-size: 17px; line-height: 1.2; }
.brand-card span span { margin-top: 3px; color: var(--ink-soft); font-size: 12px; }
.brand-card small { margin-top: 12px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.brand-card-all {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  color: var(--white);
  background:
    radial-gradient(circle at 20% 30%, #fb5a66 0 8%, transparent 8.4%),
    radial-gradient(circle at 65% 22%, #53d6e8 0 11%, transparent 11.4%),
    radial-gradient(circle at 76% 62%, #f6d33f 0 12%, transparent 12.4%),
    radial-gradient(circle at 28% 70%, #6d64d7 0 9%, transparent 9.4%), var(--ink);
}
.brand-card-all strong { font-size: 28px; }
.brand-card-all span { color: #d6e1e4; font-size: 12px; }

.catalog { padding-top: 70px; background: var(--white); }
.catalog-files { display: flex; justify-content: flex-end; gap: 10px; }
.catalog-files a {
  min-width: 170px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink-soft);
  font-size: 12px;
  text-decoration: none;
}
.catalog-files b { display: block; color: var(--ink); font-size: 15px; }
.filter-console {
  position: sticky;
  top: 72px;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(260px, 1.8fr) repeat(3, minmax(150px, 1fr)) auto;
  gap: 10px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(244, 248, 249, .96);
  box-shadow: 0 12px 24px rgba(23, 33, 39, .07);
  backdrop-filter: blur(14px);
}
.filter-console label { display: flex; flex-direction: column; gap: 6px; color: var(--ink-soft); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.filter-console select, .input-shell { height: 46px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--white); }
.filter-console select { width: 100%; padding: 0 34px 0 12px; }
.input-shell { display: flex; align-items: center; gap: 9px; padding: 0 12px; }
.input-shell svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.input-shell input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; }
.filter-console > button {
  align-self: end;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  color: var(--white);
  background: var(--ink);
  font-weight: 700;
  cursor: pointer;
}
.family-rail { display: flex; gap: 9px; margin: 18px 0 0; padding: 2px 2px 10px; overflow-x: auto; scrollbar-width: thin; }
.family-chip {
  min-width: 150px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 8px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: var(--white);
  text-align: left;
  cursor: pointer;
}
.family-chip[aria-pressed="true"] { color: var(--white); background: var(--ink); border-color: var(--ink); }
.family-swatches { grid-column: 1 / -1; display: flex; height: 8px; border-radius: 999px; overflow: hidden; }
.family-swatches i { flex: 1; background: var(--swatch); }
.family-chip strong { font-size: 12px; }
.family-chip small { font-size: 10px; opacity: .72; }
.catalog-statusbar { display: flex; justify-content: space-between; gap: 20px; margin: 20px 0 34px; color: var(--ink-soft); font-size: 12px; }
.catalog-statusbar p { margin: 0; }
.status-dot { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; background: #1da67a; box-shadow: 0 0 0 4px rgba(29, 166, 122, .13); }

.state-panel { padding: 70px 24px; border: 1px dashed var(--line-dark); border-radius: 14px; text-align: center; }
.state-mark { width: 52px; height: 52px; display: grid; place-items: center; margin: 0 auto 15px; border-radius: 50%; color: var(--white); background: var(--ink); font-weight: 700; }
.state-panel h3 { margin: 0; font-size: 24px; }
.state-panel p { max-width: 530px; margin: 8px auto 0; color: var(--ink-soft); }
.state-panel button { margin-top: 18px; padding: 10px 16px; border: 0; border-radius: 7px; color: var(--white); background: var(--ink); cursor: pointer; }
.product-groups { display: grid; gap: 80px; }
.brand-group { min-width: 0; }
.brand-group-header {
  min-height: 190px;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 24px;
  margin-bottom: 28px;
  border-top: 5px solid var(--ink);
  border-bottom: 1px solid var(--line-dark);
  background: var(--paper);
}
.brand-group-header > div { align-self: center; padding: 28px; }
.brand-group-header .eyebrow { margin-bottom: 8px; }
.brand-group-header h3 { margin: 0; font-size: clamp(42px, 6vw, 78px); line-height: .95; letter-spacing: -.07em; }
.brand-group-header span { display: block; margin-top: 14px; color: var(--ink-soft); font-size: 13px; }
.brand-group-header img { width: min(32%, 330px); object-fit: cover; }
.line-group { margin-top: 48px; }
.line-group-header { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding-bottom: 18px; border-bottom: 2px solid var(--ink); }
.line-group-header .eyebrow { margin-bottom: 6px; }
.line-group-header h4 { margin: 0; font-size: clamp(27px, 3vw, 44px); line-height: 1; letter-spacing: -.05em; }
.line-group-header div > span { display: block; margin-top: 8px; color: var(--ink-soft); font-size: 12px; }
.line-price {
  position: relative;
  min-width: 220px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2px 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}
.line-price small { grid-column: 1; color: var(--ink-soft); font-size: 10px; }
.line-price strong { grid-column: 1; color: var(--signal); font-size: 20px; }
.line-price s { grid-column: 1; color: var(--ink-soft); font-size: 11px; }
.line-price b { grid-column: 2; grid-row: 1 / 4; padding: 6px; border-radius: 6px; color: var(--white); background: var(--signal); font-size: 12px; }
.family-group { margin-top: 28px; }
.family-group-header { display: grid; grid-template-columns: minmax(130px, 240px) auto 1fr; align-items: center; gap: 12px; margin-bottom: 13px; }
.family-group-header h5 { margin: 0; font-size: 14px; }
.family-group-header > span:last-child { color: var(--ink-soft); font-size: 11px; }
.family-line { height: 9px; display: flex; border-radius: 999px; overflow: hidden; }
.family-line i { flex: 1; background: var(--swatch); }
.shade-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.shade-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--white);
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.shade-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(23, 33, 39, .1); }
.shade-card.is-selected { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue); }
.shade-visual { height: 182px; display: grid; grid-template-columns: 1fr 1.08fr; border-bottom: 1px solid var(--line); overflow: hidden; }
.semantic-swatch {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
  color: var(--swatch-text);
  background: var(--swatch);
}
.semantic-swatch small { font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.semantic-swatch strong { font-size: clamp(22px, 2.5vw, 34px); line-height: .9; letter-spacing: -.05em; overflow-wrap: anywhere; }
.shade-visual img { width: 100%; height: 100%; object-fit: cover; min-width: 0; min-height: 0; }
.shade-body { position: relative; z-index: 1; flex: 1; display: grid; grid-template-columns: 1fr auto; gap: 14px; padding: 15px; background: var(--white); }
.shade-identity p { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -.03em; }
.shade-identity h6 { margin: 3px 0 0; font-size: 12px; line-height: 1.4; }
.shade-identity span { display: block; margin-top: 7px; color: var(--ink-soft); font-size: 10px; }
.shade-price { min-width: 98px; text-align: right; }
.shade-price span { display: block; color: var(--signal); font-size: 9px; font-weight: 700; }
.shade-price strong { display: block; margin-top: 2px; color: var(--signal); font-size: 16px; white-space: nowrap; }
.shade-price s { display: block; color: var(--ink-soft); font-size: 10px; white-space: nowrap; }
.stock-meter { padding: 0 15px 12px; color: var(--ink-soft); font-size: 10px; }
.stock-meter i { position: relative; height: 4px; display: block; margin-top: 7px; border-radius: 999px; background: #e6ecee; overflow: hidden; }
.stock-meter i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--stock); background: #1da67a; border-radius: inherit; }
.detail-trigger {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 15px 13px;
  padding: 0 13px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  color: var(--white);
  background: var(--ink);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}
.detail-trigger span:last-child { color: var(--cyan); font-size: 16px; }
.detail-trigger:hover { color: var(--ink); background: var(--white); }
.detail-trigger:active { transform: translateY(1px); }
.product-proof { border-top: 1px solid var(--line); }
.product-proof summary { padding: 11px 15px; color: var(--ink-soft); font-size: 10px; font-weight: 700; cursor: pointer; }
.lot-list { max-height: 160px; padding: 0 15px 10px; overflow-y: auto; }
.lot-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid #e4eaec; }
.lot-row span { display: flex; flex-direction: column; }
.lot-row b { font-size: 10px; }
.lot-row small { color: var(--ink-soft); font-size: 9px; }
.lot-row a { font-size: 9px; font-weight: 700; }
.order-row { min-height: 55px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-top: 1px solid var(--line); background: var(--paper); }
.order-row > span { color: var(--ink-soft); font-size: 10px; font-weight: 700; }
.stepper { height: 36px; display: grid; grid-template-columns: 34px 42px 34px; border: 1px solid var(--line-dark); border-radius: 8px; overflow: hidden; }
.stepper button, .stepper input { min-width: 0; border: 0; color: var(--ink); background: var(--white); text-align: center; }
.stepper button { font-size: 18px; cursor: pointer; }
.stepper button:disabled { color: #aeb8bc; cursor: not-allowed; }
.stepper input { width: 42px; border-inline: 1px solid var(--line); appearance: textfield; font-size: 12px; font-weight: 700; }
.stepper input::-webkit-inner-spin-button { appearance: none; }

.price-notes { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 7vw, 110px); color: var(--white); background: var(--ink); }
.price-note-copy { align-self: start; position: sticky; top: 108px; }
.price-note-copy .eyebrow { color: var(--cyan); }
.price-note-copy > p:not(.eyebrow) { max-width: 510px; color: #c4d1d5; }
.price-note-copy .fine-print { padding-top: 20px; border-top: 1px solid #4a5960; color: #91a2a9 !important; font-size: 12px; }
.source-ledger { border-top: 1px solid #59676d; }
.source-item { display: grid; grid-template-columns: 42px 1fr auto; gap: 18px; padding: 22px 0; border-bottom: 1px solid #46555c; }
.source-number { color: var(--cyan); font: 700 11px/1 "Be Vietnam Pro", sans-serif; }
.source-item h3 { margin: 0; font-size: 14px; line-height: 1.35; }
.source-item p { margin: 7px 0; color: #aebdc2; font-size: 11px; }
.source-item small { color: #768a92; font-size: 10px; }
.source-item > a { align-self: start; color: var(--cyan); font-size: 11px; font-weight: 700; white-space: nowrap; }
.contact-band { display: grid; grid-template-columns: 1fr 1fr; gap: 10vw; padding: clamp(60px, 8vw, 110px) clamp(20px, 6vw, 96px); background: var(--yellow); }
.contact-band > div:last-child { align-self: end; }
.contact-band p { max-width: 560px; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 24px; }
.contact-actions button { min-height: 48px; padding: 0 19px; border: 0; border-radius: 8px; color: var(--white); background: var(--ink); font-weight: 700; cursor: pointer; }
.contact-actions a { font-size: 13px; font-weight: 700; }
footer { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px clamp(20px, 5vw, 80px); color: var(--white); background: #0d1418; }
footer p, footer > a:last-child { color: #84969e; font-size: 11px; }

.selection-dialog { width: min(800px, calc(100vw - 24px)); max-height: min(850px, calc(100dvh - 24px)); padding: 0; border: 0; border-radius: 16px; color: var(--ink); background: var(--white); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.selection-dialog::backdrop { background: rgba(9, 15, 18, .72); backdrop-filter: blur(5px); }
.dialog-shell { padding: 24px; }
.dialog-header { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 2px solid var(--ink); }
.dialog-header .eyebrow { margin-bottom: 5px; }
.dialog-header h2 { margin: 0; font-size: 34px; letter-spacing: -.05em; }
.icon-button { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: var(--white); font-size: 27px; cursor: pointer; }
.dialog-summary { display: grid; grid-template-columns: 1fr auto; gap: 2px 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.dialog-summary p { grid-row: 1 / 3; align-self: center; margin: 0; color: var(--ink-soft); }
.dialog-summary strong { color: var(--signal); font-size: 24px; text-align: right; }
.dialog-summary small { color: var(--ink-soft); font-size: 9px; text-align: right; }
.selection-lines { max-height: 48vh; overflow-y: auto; }
.selection-line { display: grid; grid-template-columns: 22px 1fr auto auto; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.selection-line > i { width: 22px; height: 40px; border-radius: 5px; background: var(--swatch); }
.selection-line > div:not(.order-row) { display: flex; flex-direction: column; min-width: 0; }
.selection-line small { color: var(--ink-soft); font-size: 9px; }
.selection-line strong { font-size: 12px; }
.selection-line span { color: var(--signal); font-size: 10px; }
.selection-line .order-row { min-height: auto; padding: 0; border: 0; background: transparent; }
.selection-line .order-row > span { display: none; }
.remove-line { border: 0; color: var(--signal); background: transparent; font-size: 10px; font-weight: 700; cursor: pointer; }
.selection-empty { padding: 55px 20px; text-align: center; }
.selection-empty > span { width: 52px; height: 52px; display: grid; place-items: center; margin: auto; border-radius: 50%; color: var(--white); background: var(--ink); font-size: 28px; }
.selection-empty h3 { margin: 14px 0 0; }
.selection-empty p { max-width: 430px; margin: 7px auto 17px; color: var(--ink-soft); font-size: 12px; }
.selection-empty button { padding: 10px 14px; border: 0; border-radius: 7px; color: var(--white); background: var(--ink); cursor: pointer; }
.selection-actions { display: flex; gap: 8px; padding-top: 18px; }
.selection-actions > * { min-height: 44px; flex: 1; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ink); border-radius: 7px; color: var(--ink); background: var(--white); font-size: 11px; font-weight: 700; text-decoration: none; cursor: pointer; }
.selection-actions a { color: var(--white); background: var(--ink); }
.dialog-note { margin: 14px 0 0; color: var(--ink-soft); font-size: 10px; }
.product-detail-dialog {
  width: min(1180px, calc(100vw - 32px));
  max-width: none;
  max-height: min(900px, calc(100dvh - 32px));
  padding: 0;
  border: 0;
  border-radius: 18px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 34px 90px rgba(12, 25, 31, .38);
  overflow: hidden;
}
.product-detail-dialog::backdrop { background: rgba(9, 15, 18, .78); backdrop-filter: blur(7px); }
.product-detail-shell { max-height: min(900px, calc(100dvh - 32px)); display: grid; grid-template-rows: auto minmax(0, 1fr); }
.product-detail-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .97);
}
.product-detail-heading { min-width: 0; }
.product-detail-heading .eyebrow { margin-bottom: 5px; color: var(--signal); }
.product-detail-heading h2 { margin: 0; font-size: clamp(26px, 3vw, 42px); line-height: 1.05; letter-spacing: -.05em; text-wrap: balance; }
.product-detail-content { min-height: 0; display: grid; grid-template-columns: minmax(0, 1.38fr) minmax(310px, .62fr); gap: 24px; padding: 24px; overflow-y: auto; background: #eef3f4; }
.detail-media-grid { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-self: start; }
.detail-media-card { min-width: 0; margin: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 13px; background: var(--white); overflow: hidden; }
.detail-media-frame { position: relative; min-height: 0; flex: 1; display: grid; place-items: center; background: #e6edef; overflow: hidden; }
.detail-media-card .detail-media-frame { min-height: 260px; }
.detail-media-card--official .detail-media-frame, .detail-media-card--shade .detail-media-frame { background: var(--white); }
.detail-media-frame img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.detail-media-card--official .detail-media-frame img, .detail-media-card--shade .detail-media-frame img { object-fit: contain; padding: 18px; }
.detail-media-fallback { width: 100%; height: 100%; min-height: 210px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; padding: 24px; color: var(--white); background: var(--swatch); text-align: center; }
.detail-media-fallback strong { font-size: clamp(34px, 6vw, 72px); line-height: .9; letter-spacing: -.06em; }
.detail-media-fallback span { max-width: 240px; font-size: 11px; font-weight: 600; }
.detail-media-card figcaption { min-height: 118px; padding: 13px 14px 14px; border-top: 1px solid var(--line); }
.detail-media-card figcaption h3 { margin: 7px 0 0; font-size: 13px; }
.detail-media-card figcaption p { margin: 5px 0 0; color: var(--ink-soft); font-size: 10px; line-height: 1.45; text-wrap: pretty; }
.media-match { display: inline-flex; padding: 4px 6px; border-radius: 4px; color: var(--ink); background: #e5ebed; font-size: 8px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.media-match--exact_shade { color: #0a6046; background: #d7f3e8; }
.media-match--formula_reference { color: #7c3d00; background: #ffe3c5; }
.media-match--family_reference { color: #785a00; background: #fff0b3; }
.media-match--line_reference { color: #204c8d; background: #dce9ff; }
.media-match--brand_reference { color: #5c5960; background: #ece9ee; }
.media-match--exact_inventory { color: var(--white); background: var(--ink); }
.media-source { display: inline-block; margin-top: 9px; color: var(--blue); font-size: 9px; font-weight: 700; }
.detail-info { min-width: 0; align-self: start; display: grid; gap: 12px; }
.detail-identity { display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: stretch; padding: 14px; border-radius: 13px; background: var(--white); }
.detail-swatch { min-height: 112px; display: flex; flex-direction: column; justify-content: space-between; padding: 12px; border-radius: 9px; color: var(--swatch-text); background: var(--swatch); }
.detail-swatch small { font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.detail-swatch strong { font-size: 26px; line-height: .9; letter-spacing: -.05em; overflow-wrap: anywhere; }
.detail-identity > div:last-child { align-self: center; min-width: 0; }
.detail-identity p { margin: 0 0 4px; color: var(--ink-soft); font-size: 10px; }
.detail-identity h3 { margin: 0; font-size: 19px; line-height: 1.18; letter-spacing: -.025em; text-wrap: balance; }
.detail-identity span { display: block; margin-top: 9px; color: var(--ink-soft); font-size: 10px; }
.detail-price { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; padding: 15px; border-radius: 13px; color: var(--white); background: var(--ink); }
.detail-price small, .detail-price strong, .detail-price s { display: block; }
.detail-price small { color: #aebcc1; font-size: 9px; }
.detail-price strong { margin-top: 2px; color: var(--cyan); font-size: 25px; font-variant-numeric: tabular-nums; }
.detail-price s { color: #8da0a7; font-size: 10px; }
.detail-price > b { align-self: center; padding: 8px; border-radius: 6px; color: var(--white); background: var(--signal); font-size: 12px; }
.detail-price-source { grid-column: 1 / -1; margin-top: 4px; color: var(--cyan); font-size: 9px; font-weight: 700; }
.detail-facts { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0; border: 1px solid var(--line); border-radius: 13px; background: var(--white); overflow: hidden; }
.detail-facts div { min-width: 0; padding: 11px 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-facts div:nth-child(2n) { border-right: 0; }
.detail-facts div:nth-last-child(-n + 2) { border-bottom: 0; }
.detail-facts dt { color: var(--ink-soft); font-size: 8px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.detail-facts dd { margin: 3px 0 0; font-size: 11px; font-weight: 700; overflow-wrap: anywhere; }
.detail-order-panel { padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--white); }
.detail-order-panel.is-selected { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.detail-order-copy { margin-bottom: 9px; font-size: 11px; font-weight: 700; }
.detail-order-row { min-height: auto; padding: 0; border: 0; background: transparent; }
.detail-order-row > span { font-size: 9px; }
.detail-lot-proof { border: 1px solid var(--line); border-radius: 13px; background: var(--white); overflow: hidden; }
.detail-lot-proof summary { padding-block: 13px; }
.detail-disclaimer { margin: 0; padding: 13px 14px; border-left: 3px solid var(--yellow); color: var(--ink-soft); background: #fff9df; font-size: 9px; line-height: 1.55; text-wrap: pretty; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 24px; max-width: min(460px, calc(100vw - 30px)); padding: 12px 17px; border-radius: 999px; color: var(--white); background: var(--ink); box-shadow: var(--shadow); font-size: 12px; transform: translateX(-50%); }
.loading-inline { color: var(--ink-soft); font-size: 12px; }

@media (max-width: 1180px) {
  .site-header nav { display: none; }
  .site-header { grid-template-columns: 1fr auto; }
  .hero { grid-template-columns: 1fr minmax(350px, .7fr); }
  .brand-cards { grid-template-columns: repeat(3, 1fr); }
  .filter-console { grid-template-columns: 1.6fr repeat(2, 1fr); }
  .filter-console label:nth-of-type(4), .filter-console > button { grid-row: 2; }
  .shade-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 820px) {
  html { scroll-padding-top: 64px; }
  .site-header { min-height: 64px; padding: 9px 14px; }
  .wordmark span, .print-link { display: none; }
  .selection-trigger { min-height: 40px; }
  .hero { min-height: auto; grid-template-columns: 1fr; grid-template-rows: auto auto auto; padding: 64px 20px 24px; }
  .hero-copy { order: 1; }
  .hero-visual { order: 2; min-height: 410px; }
  .brand-stage { height: 420px; }
  .discount-stamp { width: 126px; height: 126px; right: 0; }
  .discount-stamp strong { font-size: 34px; }
  .hero-stats { order: 3; grid-template-columns: repeat(2, 1fr); }
  .hero-stats div:nth-child(2) { border-right: 0; }
  .hero-stats div:nth-child(3), .hero-stats div:nth-child(4) { border-top: 1px solid #45545b; }
  .section-heading, .catalog-heading { grid-template-columns: 1fr; align-items: start; gap: 18px; }
  .brand-cards { grid-template-columns: repeat(2, 1fr); }
  .catalog-files { justify-content: flex-start; overflow-x: auto; }
  .filter-console { position: static; grid-template-columns: 1fr 1fr; }
  .filter-console .search-field { grid-column: 1 / -1; }
  .filter-console > button { grid-row: auto; }
  .brand-group-header { min-height: 150px; }
  .brand-group-header > div { padding: 20px; }
  .brand-group-header img { width: 34%; }
  .shade-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-detail-dialog { width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .product-detail-shell { max-height: 100dvh; height: 100%; }
  .product-detail-content { display: flex; flex-direction: column; padding: 16px; }
  .detail-media-grid { display: contents; }
  .detail-media-card--official { order: 1; }
  .detail-info { order: 2; }
  .detail-media-card--shade { order: 3; }
  .detail-media-card--result { order: 4; }
  .detail-media-card--inventory { order: 5; }
  .detail-media-card--official .detail-media-frame { min-height: 390px; }
  .price-notes { grid-template-columns: 1fr; }
  .price-note-copy { position: static; }
  .contact-band { grid-template-columns: 1fr; gap: 30px; }
  footer { flex-wrap: wrap; }
}

@media (max-width: 540px) {
  body { font-size: 14px; }
  .hero h1 { font-size: 46px; }
  .hero h1 br { display: none; }
  .hero-actions { flex-direction: column; }
  .hero-actions a { width: 100%; }
  .hero-visual { min-height: 340px; }
  .brand-stage { height: 350px; }
  .stage-card { width: 48%; height: 76%; left: calc(var(--stage-index) * 12%); }
  .hero-stats div { padding: 15px 8px 6px 0; }
  .hero-stats div:not(:first-child) { padding-left: 14px; }
  .brand-index, .catalog, .price-notes { padding-inline: 14px; }
  .brand-cards { grid-template-columns: 1fr 1fr; gap: 8px; }
  .brand-card { min-height: 205px; }
  .brand-card img { height: 116px; }
  .filter-console { grid-template-columns: 1fr; padding: 10px; }
  .filter-console .search-field { grid-column: auto; }
  .family-chip { min-width: 134px; }
  .catalog-statusbar { align-items: flex-start; flex-direction: column; }
  .brand-group-header { min-height: 130px; }
  .brand-group-header h3 { font-size: 40px; overflow-wrap: anywhere; }
  .brand-group-header img { width: 36%; }
  .line-group-header { align-items: stretch; flex-direction: column; }
  .line-price { width: 100%; }
  .family-group-header { grid-template-columns: 1fr auto; }
  .family-line { grid-column: 1 / -1; }
  .shade-grid { grid-template-columns: 1fr; }
  .shade-visual { height: 205px; }
  .semantic-swatch strong { font-size: 34px; }
  .product-detail-header { padding: 15px 14px; }
  .product-detail-heading h2 { font-size: 25px; }
  .product-detail-content { padding: 10px; gap: 10px; }
  .detail-media-card--official .detail-media-frame { min-height: 330px; }
  .detail-media-card--shade .detail-media-frame, .detail-media-card--result .detail-media-frame, .detail-media-card--inventory .detail-media-frame { min-height: 260px; }
  .detail-media-card figcaption { min-height: auto; }
  .source-item { grid-template-columns: 30px 1fr; }
  .source-item > a { grid-column: 2; }
  .contact-band { padding-inline: 18px; }
  footer { padding-inline: 18px; }
  .selection-line { grid-template-columns: 18px 1fr auto; }
  .selection-line .order-row { grid-column: 2; }
  .selection-line .remove-line { grid-column: 3; grid-row: 1 / 3; }
  .selection-actions { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

@media print {
  .site-header, .hero, .brand-index, .filter-console, .family-rail, .catalog-statusbar,
  .price-notes, .contact-band, footer, .order-row, .product-proof, .product-detail-dialog { display: none !important; }
  .catalog { padding: 0; }
  .shade-grid { grid-template-columns: repeat(4, 1fr); }
  .shade-card { break-inside: avoid; }
}
