/* Layout concept: a quiet porcelain catalogue. Filter rail + product grid on desktop,
   chip row + bottom sheet on mobile. Deep pool-teal ink, brass for prices, WhatsApp green
   reserved for the one action that matters: ordering. */
:root {
  --bg: #f2f5f4;
  --surface: #ffffff;
  --surface-2: #e8eeed;
  --ink: #14262b;
  --muted: #56686c;
  --line: #d5dedd;
  --accent: #0d6b71;
  --accent-soft: #d9ecec;
  --brass: #94661f;
  --wa: #1a8f4c;
  --wa-ink: #ffffff;
  --ad-bg: #eef1ec;
  --ad-line: #c9d1c6;
  --danger: #a33a2a;
  --ok: #1d7a45;

  --f-display: "Gloock", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
  --step-4: clamp(2.1rem, 1.4rem + 3vw, 3.4rem);

  --r-sm: 6px;
  --r: 12px;
  --shadow: 0 1px 2px rgb(20 38 43 / 0.06), 0 8px 24px -12px rgb(20 38 43 / 0.18);
  --wrap: 1240px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1719; --surface: #152024; --surface-2: #1c292e; --ink: #e4eded; --muted: #9db0b2;
    --line: #2a3a3f; --accent: #5cb9be; --accent-soft: #1b3436; --brass: #d8aa5c; --wa: #25a75c;
    --wa-ink: #ffffff; --ad-bg: #182320; --ad-line: #2f3f39; --danger: #e07a68; --ok: #4fc47f;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1719; --surface: #152024; --surface-2: #1c292e; --ink: #e4eded; --muted: #9db0b2;
  --line: #2a3a3f; --accent: #5cb9be; --accent-soft: #1b3436; --brass: #d8aa5c; --wa: #25a75c;
  --wa-ink: #ffffff; --ad-bg: #182320; --ad-line: #2f3f39; --danger: #e07a68; --ok: #4fc47f;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--step-0)/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
img, video, svg { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.12; text-wrap: balance; margin: 0; letter-spacing: -0.005em; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { font-size: var(--step--1); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: var(--r-sm); z-index: 99; }
.skip:focus { left: 16px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.brand-name { font-family: var(--f-display); font-size: 1.5rem; line-height: 1; }
.brand-tld { color: var(--accent); }
.brand-mark { width: 30px; height: 18px; align-self: center; color: var(--accent); }
.nav { display: flex; gap: 20px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a.btn-wa, .nav a.btn-wa:hover { color: var(--wa-ink); }
[hidden] { display: none !important; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.btn:hover { border-color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn-wa { background: var(--wa); border-color: var(--wa); color: var(--wa-ink); }
.btn-wa:hover { background: color-mix(in srgb, var(--wa) 88%, #000); border-color: transparent; }
.btn-lg { min-height: 54px; font-size: 1.0625rem; padding: 0 26px; width: 100%; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 0.9375rem; }
.btn svg { width: 20px; height: 20px; flex: none; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- hero ---------- */
.hero { padding-block: 44px 28px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.hero h1 { font-size: var(--step-4); max-width: 17ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lede { margin-top: 16px; color: var(--muted); font-size: var(--step-1); max-width: 46ch; }
.facts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.fact { display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding-block: 12px; border-bottom: 1px solid var(--line); align-items: baseline; }
.fact b { font-family: var(--f-body); font-weight: 600; font-size: 1.375rem; color: var(--brass); font-variant-numeric: tabular-nums; }
.fact span { color: var(--muted); font-size: 0.9375rem; }

/* ---------- ads ---------- */
.ad { position: relative; display: flex; align-items: center; gap: 16px; border: 1px dashed var(--ad-line); background: var(--ad-bg); border-radius: var(--r); overflow: hidden; text-decoration: none; color: var(--ink); }
.ad-label { position: absolute; top: 6px; right: 10px; font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ad-copy { display: grid; gap: 2px; min-width: 0; }
.ad-copy strong { font-weight: 600; }
.ad-copy span { color: var(--muted); font-size: 0.9375rem; }
.ad-cta { margin-left: auto; flex: none; font-weight: 600; color: var(--accent); white-space: nowrap; }
.ad img { width: 100%; height: 100%; object-fit: cover; }
.ad-slot-top { padding-block: 4px 8px; }
.ad-leader { height: 90px; padding: 0 24px; }
.ad-leader.ad-image, .ad-rect.ad-image, .ad-card.ad-image { padding: 0; }
.ad-rect { min-height: 250px; flex-direction: column; justify-content: center; text-align: center; padding: 24px; }
.ad-rect .ad-cta { margin: 8px 0 0; }
.ad-card { flex-direction: column; justify-content: center; text-align: center; padding: 24px; min-height: 100%; }
.ad-card .ad-cta { margin: 8px 0 0; }
.ad-html { display: block; padding: 0; }

/* ---------- catalog ---------- */
.catalog { padding-block: 24px 56px; }
.catalog-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.catalog-head h2 { font-size: var(--step-3); }
.catalog-layout { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 32px; align-items: start; }
.filters { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); display: grid; gap: 24px; }
.filter-group { display: grid; gap: 10px; border: 0; padding: 0; margin: 0; min-width: 0; }
.filter-group legend, .filter-title { font-weight: 600; font-size: 0.9375rem; padding: 0; margin-bottom: 10px; }
.type-list { display: grid; gap: 4px; }
.type-opt { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--r-sm); cursor: pointer; }
.type-opt:hover { background: var(--surface-2); }
.type-opt input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
.type-opt .count { margin-left: auto; color: var(--muted); font-size: var(--step--1); font-variant-numeric: tabular-nums; }
.type-opt.is-empty { opacity: 0.5; }

.range { position: relative; height: 32px; }
.range input[type="range"] { position: absolute; inset: 0; width: 100%; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; height: 32px; }
.range input[type="range"]::-webkit-slider-thumb { pointer-events: auto; -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); cursor: grab; box-shadow: var(--shadow); }
.range input[type="range"]::-moz-range-thumb { pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); cursor: grab; }
.range input[type="range"]::-moz-range-track { background: transparent; }
.range-track { position: absolute; left: 0; right: 0; top: 14px; height: 4px; border-radius: 2px; background: var(--line); }
.range-fill { position: absolute; top: 14px; height: 4px; border-radius: 2px; background: var(--accent); }
.range-values { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; font-size: 0.9375rem; }
.select { width: 100%; min-height: 42px; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); }
.filters-reset { justify-self: start; }

.mobile-filter-bar { display: none; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 500; cursor: pointer; white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.results-count { color: var(--muted); font-variant-numeric: tabular-nums; }
.sort { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.9375rem; }
.sort .select { width: auto; min-height: 38px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color 0.15s, box-shadow 0.2s; }
.card:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); box-shadow: var(--shadow); }
.card-media { position: relative; aspect-ratio: 1 / 1; background: var(--surface-2); max-width: 100%; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-badges { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.badge-sample { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.badge-video { margin-left: auto; }
.badge-premium { background: var(--brass); color: var(--bg); border-color: var(--brass); letter-spacing: 0.02em; }
.eyebrow-premium { color: var(--brass); font-weight: 600; }
.badge svg { width: 12px; height: 12px; }
.card-body { display: grid; gap: 6px; padding: 14px 16px 16px; flex: 1; align-content: start; }
.card-type { font-size: var(--step--1); color: var(--muted); font-weight: 500; }
.card-title { font-family: var(--f-body); font-size: 1.0625rem; font-weight: 600; line-height: 1.3; }
.card-title a { text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card-dims { font-family: var(--f-mono); font-size: 0.8125rem; color: var(--muted); }
.card-price { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.price { font-family: var(--f-body); font-weight: 600; font-size: 1.5rem; color: var(--brass); font-variant-numeric: tabular-nums; }
.price small { font-family: var(--f-body); font-size: 0.8125rem; color: var(--muted); margin-right: 4px; }
.compare { color: var(--muted); text-decoration: line-through; font-size: 0.875rem; }
.empty { padding: 48px 16px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--r); display: grid; gap: 12px; justify-items: center; }

/* ---------- process / faq ---------- */
.band { background: var(--surface); border-block: 1px solid var(--line); }
.band .wrap { padding-block: 56px; }
.section-head { display: grid; gap: 8px; margin-bottom: 28px; max-width: 60ch; }
.section-head h2 { font-size: var(--step-3); }
.section-head p { color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; gap: 8px; align-content: start; padding-top: 16px; border-top: 2px solid var(--ink); }
.steps li::before { content: counter(s); font-family: var(--f-display); font-size: 2rem; line-height: 1; color: var(--accent); }
.steps h3 { font-family: var(--f-body); font-weight: 600; font-size: 1.0625rem; }
.steps p { color: var(--muted); font-size: 0.9375rem; }
.faq { display: grid; gap: 0; max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-mono); color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 18px; color: var(--muted); max-width: 65ch; }
.notes { display: grid; gap: 10px; padding-left: 20px; margin: 0; color: var(--muted); max-width: 70ch; }

/* ---------- footer ---------- */
.site-footer { padding-block: 40px 96px; color: var(--muted); font-size: 0.9375rem; }
.site-footer .wrap { display: grid; gap: 24px; }
.footer-top { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: start; }
.footer-top .brand-name { color: var(--ink); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

/* ---------- product page ---------- */
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; padding-block: 20px 12px; font-size: 0.9375rem; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.pdp { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: start; padding-bottom: 48px; }
.gallery { display: grid; gap: 12px; min-width: 0; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); }
.stage { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); border-radius: var(--r); overflow: hidden; max-width: 100%; }
.stage img, .stage video, .stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; border: 0; background: var(--surface-2); }
.stage-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 90%, transparent); cursor: pointer; display: grid; place-items: center; }
.stage-nav.prev { left: 10px; } .stage-nav.next { right: 10px; }
.stage-nav svg { width: 18px; height: 18px; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.thumb { position: relative; flex: none; width: 84px; aspect-ratio: 4 / 3; border-radius: var(--r-sm); overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--surface-2); cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb[aria-current="true"] { border-color: var(--accent); }
.thumb .play { position: absolute; inset: 0; display: grid; place-items: center; background: rgb(0 0 0 / 0.35); color: #fff; }
.thumb .play svg { width: 22px; height: 22px; }

.buy { display: grid; gap: 20px; min-width: 0; }
.buy-head { display: grid; gap: 10px; }
.buy-head h1 { font-size: var(--step-3); }
.buy-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.buy-price .price { font-size: 2.25rem; }
.leadtime { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 500; }
.leadtime svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.summary { color: var(--muted); font-size: var(--step-1); }
.sample-note, .info-note { padding: 12px 14px; border-radius: var(--r-sm); background: var(--accent-soft); font-size: 0.9375rem; }

.order { display: grid; gap: 18px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > legend, .field > label { font-weight: 600; font-size: 0.9375rem; padding: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pill span { display: grid; gap: 1px; padding: 9px 14px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--bg); font-weight: 500; line-height: 1.25; }
.pill small { font-family: var(--f-mono); font-size: 0.75rem; color: var(--muted); font-weight: 400; }
.pill input:checked + span { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.pill input:focus-visible + span { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.input, .textarea { width: 100%; min-height: 44px; padding: 10px 12px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--bg); }
.textarea { min-height: 76px; resize: vertical; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg); width: max-content; }
.qty button { width: 44px; height: 44px; border: 0; background: none; font-size: 1.25rem; cursor: pointer; }
.qty input { width: 48px; text-align: center; border: 0; background: none; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.order-actions { display: grid; gap: 10px; }
.order-meta { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.875rem; color: var(--muted); }
.hint { font-size: 0.875rem; color: var(--muted); }

.details { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; padding-block: 8px 56px; align-items: start; }
.details-main { display: grid; gap: 40px; min-width: 0; }
.details-side { display: grid; gap: 24px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); min-width: 0; }
.block { display: grid; gap: 16px; }
.block h2 { font-size: var(--step-2); }
.prose { display: grid; gap: 12px; max-width: 65ch; }
.prose ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.detail-images { display: grid; gap: 12px; max-width: 720px; }
.detail-images img { display: block; width: 100%; height: auto; border-radius: var(--r); background: var(--surface-2); }
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.features li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; }
.features li::before { content: ""; width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: var(--accent); }
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.spec-table th, .spec-table td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { color: var(--muted); font-weight: 500; width: 40%; padding-right: 16px; }
.spec-table td { font-variant-numeric: tabular-nums; }
.table-scroll { overflow-x: auto; }

.dim-figure { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; gap: 12px; }
.dim-figure svg { width: 100%; height: auto; }
.dim-figure .tub-fill { fill: var(--accent-soft); stroke: var(--accent); }
.dim-figure .dim-line { stroke: var(--muted); }
.dim-figure text { fill: var(--ink); font-family: var(--f-mono); font-size: 13px; }
.dim-figure .view-label { fill: var(--muted); font-family: var(--f-body); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.fit { display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.fit-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fit-result { font-weight: 600; font-size: 0.9375rem; }
.fit-result.ok { color: var(--ok); } .fit-result.bad { color: var(--danger); }

.related { padding-block: 0 56px; }
.related h2 { font-size: var(--step-2); margin-bottom: 20px; }

.mobile-buy { display: none; }

/* ---------- shipping page ---------- */
.page-head { padding-block: 40px 24px; display: grid; gap: 12px; }
.page-head h1 { font-size: var(--step-4); max-width: 18ch; }
.page-head p { color: var(--muted); font-size: var(--step-1); max-width: 55ch; }
.timeline { display: grid; gap: 8px; margin-block: 8px 32px; }
.timeline-bar { display: grid; grid-template-columns: 1fr 1fr 6fr 1fr; height: 10px; border-radius: 5px; overflow: hidden; gap: 2px; }
.timeline-bar span:nth-child(1) { background: var(--wa); } .timeline-bar span:nth-child(2) { background: var(--brass); }
.timeline-bar span:nth-child(3) { background: var(--accent); } .timeline-bar span:nth-child(4) { background: var(--ink); }
.timeline-labels { display: grid; grid-template-columns: 1fr 1fr 6fr 1fr; gap: 2px; font-size: 0.8125rem; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 24px; }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: auto 0 0 0; top: auto; z-index: 50; background: var(--surface); border-radius: 18px 18px 0 0; padding: 20px var(--gutter-r) calc(20px + env(safe-area-inset-bottom, 0px)) var(--gutter-l); max-height: 82vh; overflow-y: auto; box-shadow: 0 -10px 40px rgb(0 0 0 / 0.25); transform: translateY(105%); transition: transform 0.25s ease; visibility: hidden; }
  .filters.open { transform: none; visibility: visible; }
  .filters-head { display: flex !important; }
  .scrim { position: fixed; inset: 0; background: rgb(0 0 0 / 0.4); z-index: 40; }
  .mobile-filter-bar { display: grid; gap: 12px; margin-bottom: 16px; }
  .mobile-filter-row { display: flex; gap: 8px; align-items: center; }
  .mobile-filter-row .sort { margin-left: auto; }
  .results-bar .sort { display: none; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pdp, .details { grid-template-columns: 1fr; gap: 28px; }
  .details-side, .gallery { position: static; }
  .ad-leader { height: 100px; padding: 0 16px; }
}
@media (max-width: 640px) {
  .nav .nav-link { display: none; }
  .hero { padding-block: 28px 16px; }
  .fact { grid-template-columns: 96px 1fr; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); gap: 12px; }
  .card-body { padding: 10px 12px 12px; }
  .card-title { font-size: 0.9375rem; }
  .price { font-size: 1.25rem; }
  .card-dims { font-size: 0.75rem; }
  .compare { display: none; }
  .steps { grid-template-columns: 1fr; }
  .ad-leader { flex-wrap: wrap; gap: 4px 12px; align-content: center; }
  .ad-leader .ad-cta { margin-left: 0; }
  .ad-copy span { font-size: 0.875rem; }
  .field-row, .fit-row { grid-template-columns: 1fr; }
  .mobile-buy {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; align-items: center; gap: 12px;
    background: var(--surface); border-top: 1px solid var(--line);
    padding: 10px var(--gutter-r) calc(10px + env(safe-area-inset-bottom, 0px)) var(--gutter-l);
  }
  .mobile-buy .price { font-size: 1.375rem; }
  .mobile-buy .btn { margin-left: auto; }
  .site-footer { padding-bottom: 120px; }
  .stage-nav { display: none; }
  .timeline-labels { font-size: 0.6875rem; }
}
.filters-head { display: none; justify-content: space-between; align-items: center; }
.filters-head h2 { font-size: var(--step-2); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
.grid-ad { display: flex; min-width: 0; }
.grid-ad .ad { flex: 1; }
.ad-card .ad-cta, .ad-rect .ad-cta { white-space: normal; }
.fact b { white-space: nowrap; }
@media (max-width: 640px) {
  .fact { grid-template-columns: minmax(96px, max-content) 1fr; }
  .ad-leader { height: auto; min-height: 100px; padding: 22px 16px 12px; }
  .ad-card { padding: 16px 12px; }
}

/* ---------- category pages, guides, footer columns ---------- */
.link-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.link-chips a { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 14px; font-size: 0.9375rem; text-decoration: none; white-space: nowrap; }
.link-chips a:hover { border-color: var(--accent); color: var(--accent); }
.link-chips a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--surface); }
.page-head + .link-chips { margin-bottom: 24px; }
.page-section { padding-top: 48px; display: grid; gap: 20px; }
.page-section > h2 { font-size: var(--step-3); }
.choose { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 24px; }
.choose > div { display: grid; gap: 6px; align-content: start; padding-top: 14px; border-top: 2px solid var(--ink); }
.choose h3 { font-family: var(--f-body); font-weight: 600; font-size: 1.0625rem; }
.choose p, .cta-band p { color: var(--muted); font-size: 0.9375rem; max-width: 65ch; }
.cta-band { padding-bottom: 56px; gap: 12px; }
.cta-band .hint a + a::before { content: " · "; color: var(--muted); }
.article { max-width: 72ch; display: grid; gap: 20px; }
.article .page-head { padding-bottom: 8px; }
.article-body { max-width: none; gap: 14px; }
.article-body h2 { font-size: var(--step-2); margin-top: 20px; }
.article-body p, .article-body li { line-height: 1.65; }
.article-body .table-scroll { margin-block: 4px; }
.article-sources { display: grid; gap: 10px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.9375rem; }
.article-sources h2 { font-family: var(--f-body); font-weight: 600; font-size: 1rem; }
.article-sources ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.article + .page-section { padding-bottom: 56px; }
.footer-nav { display: grid; grid-template-columns: repeat(3, auto); gap: 24px 56px; }
.footer-nav h2 { font-family: var(--f-body); font-size: var(--step--1); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); margin-bottom: 10px; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 640px) {
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-section { padding-top: 36px; }
}
.browse .wrap { display: grid; gap: 16px; padding-block: 8px 48px; }
.browse h2 { font-size: var(--step-2); }

/* ---------- header section bar ---------- */
.site-header .wrap { flex-wrap: wrap; column-gap: 20px; row-gap: 0; }
.sections { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; justify-content: center; overflow-x: auto; scrollbar-width: none; }
.sections::-webkit-scrollbar { display: none; }
.sections a { padding: 7px 11px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 500; font-size: 0.9375rem; white-space: nowrap; }
.sections a:hover { color: var(--ink); background: var(--surface-2); }
.sections a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
.sections-sep { flex: none; width: 1px; height: 18px; background: var(--line); margin-inline: 8px; }
.site-header .nav { margin-left: 0; }
@media (max-width: 1140px) {
  html { scroll-padding-top: 116px; }
  .site-header .wrap { min-height: 0; }
  .site-header .brand { height: 56px; align-items: center; }
  .site-header .nav { margin-left: auto; height: 56px; }
  .sections { order: 3; flex-basis: 100%; justify-content: flex-start; padding-bottom: 8px; margin-top: -6px;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
            mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); }
  .sections a:first-child { margin-left: -11px; }
  .filters, .gallery, .details-side { top: calc(env(safe-area-inset-top, 0px) + 116px); }
}
