/* Storefront design system. Tokens follow the approved 16 Oct mock:
   warm dark ground, sand field for packshots, Gambarino + General Sans. */
:root {
  --bg: #211a11;
  --bg-2: #2b2216;
  --surface: #382d1e;
  --surface-2: #4a3c29;
  --line: #4f412d;
  --ink: #ece8df;
  --muted: #a89f90;
  --accent: #c9ad8f;
  --accent-ink: #1c150d;
  --field: #bda38b;
  --field-ink: #1c150d;
  --ok: #9fc49a;
  --warn: #e3b46b;
  --bad: #e08a75;

  --font-display: "Gambarino", Georgia, serif;
  --font-text: "General Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --step-lead: clamp(1.125rem, 1.02rem + 0.5vw, 1.4rem);
  --step-3: clamp(1.35rem, 1.2rem + 0.6vw, 1.75rem);
  --step-head: clamp(2rem, 1.4rem + 2.6vw, 3.5rem);
  --step-display: clamp(2.9rem, 1.4rem + 5.6vw, 6.25rem);

  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 82rem;
  --space: clamp(3.5rem, 7vw, 6.5rem);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  color-scheme: dark;
}
:root[lang="ar"] {
  --font-display: "IBM Plex Sans Arabic", "Gambarino", Georgia, serif;
  --font-text: "IBM Plex Sans Arabic", "General Sans", system-ui, sans-serif;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-text); font-size: var(--step-body); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p, figure, ul, ol, dl, dd, blockquote { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 0.06em; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.015em; line-height: 1; text-wrap: balance; }
:root[lang="ar"] h1, :root[lang="ar"] h2, :root[lang="ar"] h3 { font-weight: 600; letter-spacing: 0; line-height: 1.25; }
h1 { font-size: var(--step-head); }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem); }
h3 { font-size: var(--step-3); }
p { text-wrap: pretty; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: calc(46rem + 2 * var(--gutter)); }
.lead { font-size: var(--step-lead); line-height: 1.4; max-width: 44ch; }
.small { font-size: var(--step-small); line-height: 1.45; }
.muted { color: var(--muted); }
.nums { font-variant-numeric: tabular-nums; }
.eyebrow { font-size: var(--step-small); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
:root[lang="ar"] .eyebrow { letter-spacing: 0; text-transform: none; }
.eyebrow + h1, .eyebrow + h2 { margin-top: 0.6rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 1rem; top: -4rem; z-index: 50; background: var(--accent); color: var(--accent-ink); padding: 0.6rem 1rem; }
.skip:focus { top: 1rem; }

/* ---------- buttons ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; min-height: 3.25rem; padding: 0 1.5rem; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 500; border-radius: 2px; white-space: nowrap; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease; }
.button svg { width: 1.15em; height: 1.15em; flex: none; }
.button:active { transform: scale(0.97); }
.button.small { min-height: 2.6rem; padding: 0 1rem; font-size: var(--step-small); }
.button.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.button.block { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--ink); color: var(--bg); }
  .button.ghost:hover { background: var(--surface); color: var(--ink); }
}
.wa-line { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1rem; color: var(--accent); text-decoration: none; font-weight: 500; }
.wa-line svg { width: 1.2em; height: 1.2em; }
.wa-line:hover { text-decoration: underline; }
.amazon-buy { margin-top: 1rem; }
.or-cod { margin: 0.9rem 0 0.4rem; }
.amazon-box { border: 1px solid var(--line); padding: 1.25rem 1.5rem; }
.amazon-box h2 { margin-top: 0; }
.amazon-box ul { list-style: none; margin: 0; padding: 0; }
.amazon-box li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-top: 1px solid var(--line); }
.amazon-box li:first-child { border-top: 0; }
@media (max-width: 560px) { .amazon-box li { flex-direction: column; align-items: flex-start; } }

/* ---------- header ---------- */
.announce { background: var(--field); color: var(--field-ink); font-size: var(--step-small); }
.announce .wrap { display: flex; justify-content: center; gap: 2.5rem; min-height: 2.25rem; align-items: center; }
.announce a { font-weight: 500; }
.site-head { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 2rem; min-height: 4.25rem; }
.wordmark { font-family: var(--font-display); font-size: 1.6rem; line-height: 1; text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; }
.wordmark img { height: 2.6rem; width: auto; }
.foot-logo img { height: 4.25rem; }
.main-nav { display: flex; align-items: center; gap: 1.75rem; font-size: var(--step-small); font-weight: 500; }
.main-nav > a, .drop-btn { text-decoration: none; padding-block: 0.6rem; color: var(--ink); }
.main-nav > a:hover, .drop-btn:hover { color: var(--accent); }
.drop { position: relative; }
.drop-btn { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 500; }
.drop-btn::after { content: ""; width: 0.4rem; height: 0.4rem; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); transition: transform var(--t-hover) var(--ease-out); }
.drop.open .drop-btn::after { transform: translateY(1px) rotate(-135deg); }
.drop-panel { position: absolute; top: calc(100% + 0.75rem); inset-inline-start: -1rem; min-width: 17rem; background: var(--bg-2); border: 1px solid var(--line); padding: 0.5rem; display: grid; box-shadow: 0 24px 48px rgb(0 0 0 / 0.35); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity var(--t-hover) ease, transform 240ms var(--ease-out), visibility 0s linear var(--t-hover); }
.drop.open .drop-panel, .drop:focus-within .drop-panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
@media (hover: hover) and (pointer: fine) { .drop:hover .drop-panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; } }
.drop-panel a { display: grid; padding: 0.6rem 0.75rem; text-decoration: none; font-size: var(--step-body); }
.drop-panel a small { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.drop-panel a:hover { background: var(--surface); }
.drop-panel .drop-all { margin-top: 0.25rem; border-top: 1px solid var(--line); color: var(--accent); font-size: var(--step-small); }
.head-tools { margin-inline-start: auto; display: flex; align-items: center; gap: 1.25rem; }
.lang { font-size: var(--step-small); text-decoration: none; }
.lang:hover { color: var(--accent); }
.cart-link { position: relative; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; }
.badge { position: absolute; top: 0.1rem; inset-inline-end: 0; min-width: 1.2rem; height: 1.2rem; border-radius: 1rem; background: var(--accent); color: var(--accent-ink); font-size: 0.72rem; font-weight: 600; display: grid; place-items: center; padding-inline: 0.25rem; }

.menu { display: none; }
.menu summary { list-style: none; width: 2.75rem; height: 2.75rem; display: grid; place-items: center; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.burger, .burger::before, .burger::after { display: block; width: 1.25rem; height: 1.5px; background: currentColor; transition: transform 240ms var(--ease-out), opacity 120ms; }
.burger { position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; }
.burger::before { top: -6px; } .burger::after { top: 6px; }
.menu[open] .burger { background: transparent; }
.menu[open] .burger::before { transform: translateY(6px) rotate(45deg); }
.menu[open] .burger::after { transform: translateY(-6px) rotate(-45deg); }
.menu-panel { position: fixed; inset: 6.5rem 0 0; background: var(--bg); padding: 1.25rem var(--gutter) 3rem; display: grid; align-content: start; gap: 0.1rem; overflow-y: auto; z-index: 40; }
.menu-panel a { text-decoration: none; font-size: 1.25rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.menu-panel hr { border: 0; height: 1.5rem; margin: 0; }
.menu-label { font-size: var(--step-small); color: var(--muted); padding-bottom: 0.35rem; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(2rem, 5vw, 4.5rem) clamp(3rem, 6vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.display { font-size: var(--step-display); line-height: 0.92; max-width: 10ch; }
:root[lang="ar"] .display { line-height: 1.15; }
.hero .lead { margin-top: 1.5rem; max-width: 36ch; color: color-mix(in srgb, var(--ink) 82%, var(--bg)); }
.finder { margin-top: 2.25rem; background: var(--bg-2); border: 1px solid var(--line); padding: 1.25rem; max-width: 40rem; }
.finder-title { font-weight: 500; margin-bottom: 0.85rem; }
.finder-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 0.5rem; }
.finder label span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.finder-note { margin-top: 0.75rem; }
.hero-art { position: relative; padding-block-end: 12%; padding-inline-start: 6%; }
.hero-main { aspect-ratio: 1; overflow: hidden; background: var(--surface); }
.hero-main img { width: 100%; height: 100%; object-fit: cover; }
.hero-art .hero-chip { position: absolute; inset-inline-start: 0; bottom: 0; width: 42%; outline: 10px solid var(--bg); }
.hero-chip figcaption { position: absolute; inset-inline-start: 0; bottom: 0; background: var(--field); color: var(--field-ink); font-size: var(--step-small); font-weight: 500; padding: 0.3rem 0.6rem; }

/* ---------- forms ---------- */
select, input[type="text"], input[type="tel"], input[type="email"], input[type="number"], input[type="password"], textarea {
  width: 100%; min-height: 3.25rem; padding: 0.7rem 0.9rem; background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: 2px; transition: border-color var(--t-hover) ease;
}
select { appearance: none; padding-inline-end: 2.4rem; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 1.15rem) 55%, calc(100% - 0.85rem) 55%; background-size: 0.3rem 0.3rem; background-repeat: no-repeat; }
:root[dir="rtl"] select { background-position: 0.85rem 55%, 1.15rem 55%; }
select:disabled { opacity: 0.5; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; }
textarea { min-height: 6rem; resize: vertical; }
::placeholder { color: color-mix(in srgb, var(--muted) 70%, var(--bg)); }
.form { display: grid; gap: 2rem; }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 1rem; }
.form legend { font-family: var(--font-display); font-size: var(--step-3); margin-bottom: 1rem; }
.field label { display: block; font-size: var(--step-small); font-weight: 500; margin-bottom: 0.4rem; }
.field .hint { font-size: var(--step-small); color: var(--muted); margin-top: 0.35rem; }
.field .err { font-size: var(--step-small); color: var(--bad); margin-top: 0.35rem; }
.field.bad input, .field.bad select, .field.bad textarea { border-color: var(--bad); }
.notice { background: var(--surface); border-inline-start: 3px solid var(--ok); padding: 0.9rem 1.1rem; margin-bottom: 1.5rem; }
.notice.error { border-color: var(--bad); margin: 0; }

/* ---------- sections ---------- */
.section { padding-block: var(--space); }
.section.tight { padding-block: clamp(1.5rem, 3vw, 2.5rem); }
.section + .section:not(.tight) { padding-top: 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.more { font-size: var(--step-small); font-weight: 500; color: var(--accent); text-decoration: none; white-space: nowrap; }
.more:hover { text-decoration: underline; }
.page-head { padding-block: clamp(1.25rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2.5rem); }
.page-head h1 { margin-top: 0.4rem; }
.page-head .lead { margin-top: 1rem; }
.page-head .crumbs + h1 { margin-top: 1.25rem; }
.page-head .eyebrow { margin-top: 1.25rem; }
.answer { max-width: 60ch; }
.crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-inline-end: 0.5rem; opacity: 0.5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs { padding-top: 1.25rem; }

.band { background: var(--bg-2); border-block: 1px solid var(--line); padding-block: clamp(1.5rem, 3vw, 2.25rem); }
.assure { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem 2rem; }
.assure li { display: flex; gap: 0.9rem; align-items: start; }
.assure svg { flex: none; width: 1.75rem; height: 1.75rem; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.assure strong { display: block; font-weight: 500; }
.assure span { display: block; font-size: var(--step-small); color: var(--muted); margin-top: 0.15rem; }

/* car tiles */
.cars-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.car-tile { position: relative; aspect-ratio: 4 / 3; overflow: hidden; text-decoration: none; background: var(--surface); isolation: isolate; }
.car-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.car-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(20 15 9 / 0.88), rgb(20 15 9 / 0.1) 55%, transparent); z-index: 1; }
.car-tile-text { position: absolute; inset-inline: 1.1rem; bottom: 1rem; z-index: 2; display: grid; gap: 0.1rem; }
.car-tile-text small { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.car-tile-text strong { font-family: var(--font-display); font-weight: 400; font-size: var(--step-3); line-height: 1.1; }
.car-tile-text .nums { font-size: var(--step-small); color: color-mix(in srgb, var(--ink) 80%, transparent); }
@media (hover: hover) and (pointer: fine) { .car-tile:hover img { transform: scale(1.04); } }

/* product cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.card-link { display: block; text-decoration: none; height: 100%; }
.plate { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--field); }
.plate img { width: 100%; height: 100%; object-fit: cover; }
.plate img.pack { mix-blend-mode: multiply; }
.card-plate img { transition: transform 900ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .card-link:hover .card-plate img { transform: scale(1.04); } .card-link:hover .card-title { color: var(--accent); } }
.no-photo { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 1rem; color: var(--field-ink); background: repeating-linear-gradient(135deg, var(--field) 0 14px, color-mix(in srgb, var(--field) 88%, #000) 14px 15px); font-size: var(--step-small); font-weight: 500; }
.flag { position: absolute; top: 0.75rem; inset-inline-start: 0.75rem; background: var(--field-ink); color: var(--field); font-size: 0.75rem; font-weight: 500; padding: 0.3rem 0.6rem; }
.card-body { padding-top: 0.9rem; display: grid; gap: 0.3rem; }
.card-title { font-family: var(--font-text); font-size: var(--step-body); font-weight: 500; line-height: 1.35; letter-spacing: 0; transition: color var(--t-hover) ease; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 0.2rem; }
.price { font-weight: 500; }
.swatches { display: flex; gap: 0.3rem; }
.dot { display: inline-block; width: 0.9rem; height: 0.9rem; border-radius: 50%; background: var(--c, #222); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.25); flex: none; }

/* feature split */
.feature { display: grid; grid-template-columns: 1fr 1fr; background: var(--field); color: var(--field-ink); margin-block: var(--space); }
.feature-media { min-height: 28rem; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-copy { padding: clamp(2.5rem, 6vw, 5.5rem) clamp(1.25rem, 5vw, 5rem); align-self: center; }
.feature-copy .eyebrow { color: #5b4632; }
.feature-copy h2 + p { margin-top: 1.25rem; max-width: 44ch; }
.specs { margin-top: 1.75rem; display: grid; gap: 0; }
.specs div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding-block: 0.7rem; border-top: 1px solid rgb(28 21 13 / 0.18); }
.specs dt { font-weight: 600; }

/* order slip */
.how-grid { display: grid; grid-template-columns: 1fr minmax(0, 32rem); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.how-grid .lead { margin-top: 1.25rem; }
.slip { background: var(--ink); color: var(--bg); padding: 1.75rem 1.5rem 3rem; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), 95% 100%, 90% calc(100% - 12px), 85% 100%, 80% calc(100% - 12px), 75% 100%, 70% calc(100% - 12px), 65% 100%, 60% calc(100% - 12px), 55% 100%, 50% calc(100% - 12px), 45% 100%, 40% calc(100% - 12px), 35% 100%, 30% calc(100% - 12px), 25% 100%, 20% calc(100% - 12px), 15% 100%, 10% calc(100% - 12px), 5% 100%, 0 calc(100% - 12px)); }
.slip-title { font-family: var(--font-display); font-size: 1.75rem; }
.slip ol { margin-top: 1.25rem; }
.slip li { display: flex; align-items: baseline; gap: 0.6rem; padding: 0.7rem 0; }
.slip li span:first-child { max-width: 68%; }
.slip li i { flex: 1; border-bottom: 2px dotted #9b8d78; transform: translateY(-0.3em); }
.slip li span:last-child { flex: none; color: #5b4a37; }
.slip li.total { background: var(--bg); color: var(--ink); margin: 0.75rem -0.75rem 0; padding: 0.85rem 0.75rem; }
.slip li.total span:last-child { color: var(--accent); }

/* guides */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 1rem; }
.guide-card { display: grid; align-content: start; gap: 0.6rem; padding: 1.5rem; background: var(--bg-2); border: 1px solid var(--line); text-decoration: none; transition: border-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.guide-card strong, .guide-card h2, .guide-card h3 { font-family: var(--font-display); font-weight: 400; font-size: var(--step-3); line-height: 1.15; }
.guide-card:hover { border-color: var(--accent); }
.guide-card:active { transform: scale(0.99); }

/* faq */
.faq-list { margin-top: 1.5rem; display: grid; gap: 4px; }
.faq-list details { background: var(--bg-2); padding-inline: 1.15rem; }
.faq-list summary { list-style: none; cursor: pointer; padding: 1.1rem 0; padding-inline-end: 2.5rem; font-weight: 500; position: relative; line-height: 1.35; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary h3 { font: inherit; margin: 0; color: inherit; letter-spacing: inherit; }
.faq-list summary::after { content: "+"; position: absolute; inset-inline-end: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--accent); transition: transform var(--t-hover) var(--ease-out); }
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p { padding-bottom: 1.2rem; color: color-mix(in srgb, var(--ink) 82%, var(--bg)); max-width: 62ch; }

/* cta */
.cta { background: var(--bg-2); border-top: 1px solid var(--line); padding-block: clamp(2.5rem, 5vw, 4rem); }
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.cta-inline { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; flex-wrap: wrap; background: var(--bg-2); border: 1px solid var(--line); padding: 1.5rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.section-head + .chips { margin-top: 0; }
.chip { min-height: 2.6rem; display: inline-flex; align-items: center; padding: 0 1rem; border: 1px solid var(--line); text-decoration: none; font-size: var(--step-small); transition: background-color var(--t-hover) ease, border-color var(--t-hover) ease; }
.chip:hover { background: var(--surface); border-color: var(--accent); }

/* ---------- collection ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
.fit-table { width: 100%; border-collapse: collapse; min-width: 36rem; font-size: var(--step-small); }
.fit-table caption { text-align: start; font-family: var(--font-display); font-size: var(--step-3); padding: 1rem 1rem 0.75rem; }
.fit-table th, .fit-table td { text-align: start; padding: 0.85rem 1rem; border-top: 1px solid var(--line); }
.fit-table thead th { color: var(--muted); font-weight: 500; background: var(--bg-2); }
.fit-table tbody th { font-weight: 500; }
.fit-table a { text-decoration: none; }
.fit-table a:hover { color: var(--accent); text-decoration: underline; }

/* ---------- product page ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); padding-block: 1.5rem var(--space); align-items: start; }
.gallery { position: sticky; top: 5.5rem; }
.gallery-main img { position: absolute; inset: 0; opacity: 0; transition: opacity 400ms ease; }
.gallery-main img.on { opacity: 1; }
.thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.5rem; margin-top: 0.5rem; }
.thumbs button { opacity: 0.55; transition: opacity var(--t-hover) ease; }
.thumbs button.on, .thumbs button:hover { opacity: 1; }
.thumbs button.on { outline: 2px solid var(--accent); outline-offset: -2px; }
.buy h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); margin-top: 0.5rem; }
.years { margin-top: 0.75rem; color: var(--muted); }
.years strong { color: var(--ink); font-weight: 500; }
.price-row { display: flex; align-items: baseline; gap: 0.75rem; margin-top: 1.5rem; }
.price-big { font-family: var(--font-display); font-size: clamp(2.25rem, 1.8rem + 1.6vw, 3rem); line-height: 1; }
.stock { margin-top: 0.75rem; font-size: var(--step-small); display: flex; align-items: center; gap: 0.5rem; }
.stock::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--ok); flex: none; }
.stock-made_to_order::before { background: var(--warn); }
.stock-coming_soon::before { background: var(--muted); }
.summary { margin-top: 1.25rem; color: color-mix(in srgb, var(--ink) 85%, var(--bg)); max-width: 52ch; }
.colours { border: 0; padding: 0; margin: 1.75rem 0 0; }
.colours legend { font-size: var(--step-small); color: var(--muted); margin-bottom: 0.6rem; padding: 0; }
.colours legend strong { color: var(--ink); font-weight: 500; }
.colour-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.colour { display: inline-flex; align-items: center; gap: 0.55rem; min-height: 3rem; padding: 0 1rem; border: 1px solid var(--line); text-decoration: none; font-size: var(--step-small); transition: border-color var(--t-hover) ease, background-color var(--t-hover) ease; }
.colour:hover { border-color: var(--muted); }
.colour.on { border-color: var(--accent); background: var(--surface); }
.buy-form { display: grid; grid-template-columns: 5.5rem 1fr; gap: 0.5rem; margin-top: 1.75rem; }
.buy-form .ghost { grid-column: 1 / -1; }
.mini-assure { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--line); display: grid; gap: 0.45rem; color: var(--muted); }
.mini-assure li, .ticks li { position: relative; padding-inline-start: 1.5rem; }
.mini-assure li::before, .ticks li::before { content: ""; position: absolute; inset-inline-start: 0.1rem; top: 0.4em; width: 0.7rem; height: 0.4rem; border: solid var(--accent); border-width: 0 0 1.5px 1.5px; transform: rotate(-45deg); }
.pdp-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); }
.pdp-detail h2 { margin-bottom: 1.25rem; }
.pdp-detail p { max-width: 62ch; }
.fitment div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding-block: 0.75rem; border-top: 1px solid var(--line); }
.fitment div:last-child { border-bottom: 1px solid var(--line); }
.fitment dt { color: var(--muted); }
.ticks { margin-top: 1.25rem; display: grid; gap: 0.6rem; padding: 0; list-style: none; }
.buy-bar { position: fixed; inset-inline: 0; bottom: 0; z-index: 25; display: none; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.65rem var(--gutter); padding-bottom: max(0.65rem, env(safe-area-inset-bottom)); background: var(--bg-2); border-top: 1px solid var(--line); transform: translateY(100%); transition: transform 300ms var(--ease-out); }
.buy-bar > span { display: grid; min-width: 0; font-size: var(--step-small); }
.buy-bar strong { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buy-bar.show { transform: none; }

/* ---------- cart / checkout ---------- */
.cart-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.line { display: grid; grid-template-columns: 5.5rem 1fr 6.5rem auto; gap: 1rem; align-items: center; padding-block: 1rem; border-bottom: 1px solid var(--line); }
.line:first-child { border-top: 1px solid var(--line); }
.line-img { aspect-ratio: 1; }
.line-info { display: grid; gap: 0.15rem; }
.line-info a { text-decoration: none; }
.line-total { font-weight: 500; min-width: 5.5rem; text-align: end; }
.line select { min-height: 2.75rem; }
.summary-box { background: var(--bg-2); border: 1px solid var(--line); padding: 1.5rem; display: grid; gap: 1rem; position: sticky; top: 5.5rem; }
.summary-box h2 { font-size: var(--step-3); }
.totals div { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.45rem; }
.totals dt { color: var(--muted); }
.totals .grand { border-top: 1px solid var(--line); margin-top: 0.4rem; padding-top: 0.85rem; font-size: var(--step-lead); }
.totals .grand dt { color: var(--ink); }
.mini-lines { display: grid; gap: 0.6rem; font-size: var(--step-small); }
.mini-lines li { display: flex; justify-content: space-between; gap: 1rem; }
.empty { display: grid; gap: 1.25rem; justify-items: start; padding-block: 2rem; }
.confirm { display: grid; gap: 1.25rem; justify-items: start; }
.confirm .summary-box { width: 100%; position: static; margin-top: 1rem; }

/* ---------- prose (guides, info pages) ---------- */
.prose { padding-bottom: var(--space); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { max-width: 66ch; color: color-mix(in srgb, var(--ink) 88%, var(--bg)); }
.prose ul, .prose ol { padding-inline-start: 1.25rem; }
.prose li + li { margin-top: 0.4em; }
.prose a { color: var(--accent); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--step-small); display: block; overflow-x: auto; }
.prose th, .prose td { text-align: start; padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--muted); font-weight: 500; background: var(--bg-2); }
.prose blockquote { border-inline-start: 3px solid var(--accent); padding-inline-start: 1rem; color: var(--muted); }
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; margin-bottom: 1.5rem; }
.contact-card { display: grid; gap: 0.35rem; padding: 1.25rem; background: var(--bg-2); border: 1px solid var(--line); text-decoration: none; transition: border-color var(--t-hover) ease; overflow-wrap: anywhere; }
.contact-card svg { width: 1.5rem; height: 1.5rem; color: var(--accent); }
.contact-card:hover { border-color: var(--accent); }

/* ---------- footer ---------- */
.site-foot { background: #1a140d; border-top: 1px solid var(--line); padding-top: clamp(3rem, 6vw, 4.5rem); margin-top: var(--space); }
.cta + .site-foot, main:has(> .cta:last-child) + .site-foot { margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.foot-grid nav, .foot-grid > div:not(.foot-brand) { display: grid; align-content: start; gap: 0.55rem; font-size: var(--step-small); }
.foot-grid a { text-decoration: none; color: color-mix(in srgb, var(--ink) 80%, var(--bg)); }
.foot-grid a:hover { color: var(--ink); text-decoration: underline; }
.foot-brand { display: grid; gap: 1rem; justify-items: start; }
.foot-brand p { font-size: var(--step-small); max-width: 34ch; }
.foot-brand .button { color: var(--accent-ink); }
.foot-h { font-weight: 500; color: var(--ink); margin-bottom: 0.25rem; }
.foot-base { display: flex; justify-content: space-between; gap: 0.5rem 2rem; flex-wrap: wrap; padding-block: 1.5rem; margin-top: 3rem; border-top: 1px solid var(--line); }
.wa-fab { position: fixed; inset-inline-end: 1.25rem; bottom: 1.25rem; z-index: 26; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: #25d366; color: #0b2e17; display: grid; place-items: center; box-shadow: 0 10px 28px rgb(0 0 0 / 0.35); transition: transform var(--t-press) var(--ease-out); }
.wa-fab svg { width: 1.75rem; height: 1.75rem; }
.wa-fab:active { transform: scale(0.94); }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .is-home .hero-copy > * { animation: rise 800ms var(--ease-out) both; }
  .is-home .hero-copy > :nth-child(2) { animation-delay: 80ms; }
  .is-home .hero-copy > :nth-child(3) { animation-delay: 160ms; }
  .is-home .hero-copy > :nth-child(4) { animation-delay: 240ms; }
  .is-home .hero-main { animation: open 1100ms var(--ease-in-out) both 120ms; }
  .is-home .hero-main img { animation: settle 1500ms var(--ease-out) both 120ms; }
  .is-home .hero-chip { animation: rise 900ms var(--ease-out) both 600ms; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes open { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
@keyframes settle { from { transform: scale(1.12); } }

/* ---------- tablet ---------- */
@media (max-width: 64em) {
  .main-nav { display: none; }
  .menu { display: block; margin-inline-start: -0.6rem; }
  .head-row { gap: 0.75rem; }
  .assure { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 56em) {
  .hero-grid, .how-grid, .pdp, .pdp-detail, .cart-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 34rem; }
  .feature { grid-template-columns: 1fr; }
  .feature-media { min-height: 0; aspect-ratio: 4 / 3; }
  .cars-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery, .summary-box { position: static; }
  .buy-bar { display: flex; }
  .pdp + .section { padding-top: 0; }
  body:has(.buy-bar) .wa-fab { bottom: 5.25rem; }
}
/* ---------- phone ---------- */
@media (max-width: 40em) {
  .announce .announce-opt { display: none; }
  .wordmark { font-size: 1.35rem; }
  .wordmark img { height: 2.15rem; }
  .head-tools { gap: 0.5rem; }
  .finder { padding: 1rem; }
  .finder-row { grid-template-columns: 1fr 1fr; }
  .finder-row label:first-child { grid-column: 1 / -1; }
  .finder-row .button { grid-column: 1 / -1; }
  .assure { grid-template-columns: 1fr; gap: 1.1rem; }
  .cars-grid { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .car-tile { aspect-ratio: 1; }
  .car-tile-text { inset-inline: 0.75rem; bottom: 0.7rem; }
  .car-tile-text strong { font-size: 1.1rem; }
  .grid { grid-template-columns: 1fr 1fr; gap: 1.25rem 0.75rem; }
  .card-foot { flex-wrap: wrap; gap: 0.4rem; }
  .card-title { font-size: 0.95rem; }
  .specs div, .fitment div { grid-template-columns: 1fr; gap: 0.15rem; }
  .slip li span:first-child { max-width: 62%; }
  .line { grid-template-columns: 4.5rem 1fr auto; }
  .line .qty { grid-column: 2; }
  .line-total { grid-column: 3; grid-row: 1; align-self: start; }
  .contact-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .cta-row .button, .cta-inline .button { width: 100%; }
  .thumbs { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.35rem; }
}
