/* Layout: steel-dark header and hero plate over a cool concrete page; products in a dense, scannable grid. */
[hidden] { display: none !important; }
/* Layout: Offroad Animal house style. White page, black header and footer, one hard red, heavy uppercase Archivo. */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f3f3f3;
  --ink: #000000;
  --ink-2: #545454;
  --ink-3: #737373;
  --line: #e2e2e2;
  --steel: #000000;
  --steel-2: #222121;
  --on-steel: #ffffff;
  --on-steel-2: #a3a1a1;
  --accent: #d90000;
  --accent-hover: #b30000;
  --on-accent: #ffffff;
  --accent-tint: #fde8e8;
  --good: #1f7a46;
  --good-tint: #dff2e6;
  --warn: #8a5a00;
  --warn-tint: #fbefd2;
  --sale: #d90000;
  --focus: #2563eb;

  --f-display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --r: 2px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --maxw: 1280px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0d0d; --surface: #171717; --surface-2: #1f1f1f; --ink: #f2f2f2; --ink-2: #b5b5b5; --ink-3: #8a8a8a;
    --line: #2c2c2c; --steel: #000000; --steel-2: #1c1c1c; --on-steel: #ffffff; --on-steel-2: #a3a1a1;
    --accent: #ff2b2b; --accent-hover: #ff5252; --on-accent: #ffffff; --accent-tint: #3a1414;
    --good: #5fcf8c; --good-tint: #163323; --warn: #f0c060; --warn-tint: #3a2e12; --sale: #ff4a4a; --focus: #7aa7ff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d0d0d; --surface: #171717; --surface-2: #1f1f1f; --ink: #f2f2f2; --ink-2: #b5b5b5; --ink-3: #8a8a8a;
  --line: #2c2c2c; --steel: #000000; --steel-2: #1c1c1c; --on-steel: #ffffff; --on-steel-2: #a3a1a1;
  --accent: #ff2b2b; --accent-hover: #ff5252; --on-accent: #ffffff; --accent-tint: #3a1414;
  --good: #5fcf8c; --good-tint: #163323; --warn: #f0c060; --warn-tint: #3a2e12; --sale: #ff4a4a; --focus: #7aa7ff;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.55 var(--f-body);
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--steel);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 8px 12px; border-radius: var(--r); }
.skip:focus { left: 16px; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 800; font-stretch: 82%; line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: .005em; }
p { margin: 0; }
.eyebrow { font-family: var(--f-display); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: 13px; color: var(--accent); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .02em; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */
.btn {
  font-stretch: 90%;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: var(--r); border: 1px solid transparent;
  font-family: var(--f-display); font-weight: 700; font-size: 17px; letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn-steel { background: transparent; border-color: rgba(255,255,255,.28); color: var(--on-steel); }
.btn-steel:hover { border-color: var(--on-steel); }
.btn-sm { min-height: 36px; font-size: 15px; padding: 0 12px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r);
  background: transparent; border: 0; cursor: pointer; color: inherit; position: relative;
}
.icon-btn svg, .garage-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; background: none; border: 0; padding: 0; font: inherit; }

/* ---------- Header ---------- */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--steel); color: var(--on-steel); }
.head-inner {
  max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r);
  display: flex; align-items: center; gap: 14px; min-height: 64px;
}
.brand { text-decoration: none; display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 54px; width: auto; display: block; }
.wordmark { font-stretch: 78%; display: flex; flex-direction: column; line-height: .86; font-family: var(--f-display); font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
.wordmark span:first-child { font-size: 15px; color: var(--accent); letter-spacing: .26em; }
.wordmark span:last-child { font-size: 27px; }
.wordmark.small span:first-child { font-size: 13px; }
.wordmark.small span:last-child { font-size: 23px; }
.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav > a, .nav-drop-btn {
  font-family: var(--f-display); font-weight: 600; font-size: 17px; letter-spacing: .05em; text-transform: uppercase;
  text-decoration: none; padding: 8px 10px; border-radius: var(--r); background: none; border: 0; cursor: pointer; color: var(--on-steel-2);
}
.main-nav > a:hover, .nav-drop-btn:hover, .main-nav > a[aria-current="page"] { color: var(--on-steel); }
.main-nav > a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.nav-drop { position: relative; }
.nav-drop-btn::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.nav-drop-menu {
  position: absolute; left: 0; top: calc(100% + 6px); min-width: 240px; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 12px 32px rgba(0,0,0,.18); padding: 6px; display: none;
}
.nav-drop.open .nav-drop-menu { display: grid; }
.nav-drop-menu a { padding: 9px 12px; border-radius: 4px; text-decoration: none; font-weight: 500; }
.nav-drop-menu a:hover { background: var(--surface-2); }
.head-search { flex: 1; min-width: 0; max-width: 360px; margin-left: auto; }
.head-search input {
  width: 100%; height: 40px; border-radius: var(--r); border: 1px solid var(--steel-2); background: var(--steel-2);
  color: var(--on-steel); padding: 0 12px; font-size: 15px;
}
.head-search input::placeholder { color: var(--on-steel-2); }
.head-search input:focus { border-color: var(--accent); outline: none; }
.garage-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: var(--r);
  background: var(--steel-2); border: 1px solid transparent; color: var(--on-steel); cursor: pointer; white-space: nowrap;
  font-weight: 600; font-size: 14px; max-width: 220px;
}
.garage-btn span { overflow: hidden; text-overflow: ellipsis; }
.garage-btn.set { border-color: var(--accent); }
.list-btn .count {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--accent); color: var(--on-accent); font: 700 11px/18px var(--f-body); text-align: center;
}
.menu-btn { display: none; color: var(--on-steel); }

@media (max-width: 1020px) {
  .menu-btn { display: inline-grid; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--steel);
    flex-direction: column; align-items: stretch; padding: 8px var(--gutter-r) 16px var(--gutter); border-top: 1px solid var(--steel-2);
  }
  .main-nav.open { display: flex; }
  .nav-drop-menu { position: static; box-shadow: none; margin: 4px 0 8px; }
  .head-search { order: 5; flex-basis: 100%; max-width: none; margin: 0 0 10px; }
  .head-inner { flex-wrap: wrap; row-gap: 0; }
  .garage-btn { margin-left: auto; }
}
@media (max-width: 480px) {
  .garage-btn span { max-width: 92px; }
  .wordmark span:last-child { font-size: 23px; }
}

/* ---------- Hero ---------- */
.hero { background: var(--steel); color: var(--on-steel); position: relative; overflow: hidden; }
.hero.has-photo { background-size: cover; background-position: center; }
.hero.has-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.6) 55%, rgba(0,0,0,.35) 100%); }
.hero-inner { position: relative; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--accent); }
.hero-inner { max-width: var(--maxw); margin: 0 auto; padding: 48px var(--gutter-r) 56px var(--gutter); display: grid; gap: 36px; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; }
.hero h1 { font-size: clamp(44px, 7vw, 84px); font-weight: 800; text-transform: uppercase; line-height: .9; letter-spacing: -.005em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lede { margin-top: 18px; color: var(--on-steel-2); font-size: 18px; max-width: 46ch; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; padding: 0; list-style: none; font-size: 14px; color: var(--on-steel-2); }
.hero-points li::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--accent); margin-right: 8px; transform: rotate(45deg) translateY(-1px); }

.plate {
  background: var(--surface); color: var(--ink); border-radius: var(--r); border-top: 6px solid var(--accent); padding: 24px; position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.plate h2 { font-size: 30px; text-transform: uppercase; }
.plate p.sub { color: var(--ink-2); font-size: 15px; margin-top: 4px; }
.selector { display: grid; gap: 10px; margin-top: 18px; }
.field label, .field .label { display: block; font-family: var(--f-display); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; color: var(--ink-2); margin-bottom: 5px; }
.field select, .field input, .field textarea {
  width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2);
  padding: 0 12px; font-size: 16px; color: var(--ink);
}
.field textarea { padding: 10px 12px; min-height: 110px; resize: vertical; }
.field select:disabled { opacity: .55; }
.field select:focus, .field input:focus, .field textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-tint); }
.selector-step { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: end; }
.step-n { width: 28px; height: 46px; display: grid; place-items: center; font: 700 18px var(--f-display); color: var(--ink-3); }
.plate .btn-primary { margin-top: 6px; }
.plate .saved { margin-top: 12px; font-size: 14px; color: var(--ink-2); }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); padding-top: 32px; padding-bottom: 36px; gap: 24px; }
}

/* ---------- Sections ---------- */
.section { padding-block: 56px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); text-transform: uppercase; }
.section-head p { color: var(--ink-2); max-width: 60ch; margin-top: 6px; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.cat-tile {
  display: grid; gap: 10px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  text-decoration: none; transition: border-color .15s, transform .15s;
}
.cat-tile:hover { border-color: var(--accent); }
.cat-tile svg { width: 64px; height: 44px; color: var(--accent); }
.cat-tile h3 { font-size: 22px; text-transform: uppercase; }
.cat-tile p { font-size: 14px; color: var(--ink-2); }
.cat-tile .count { font-size: 13px; color: var(--ink-3); }

.brand-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.brand-cell { padding: 20px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; background: var(--surface); display: grid; gap: 6px; }
.brand-cell:hover { background: var(--surface-2); }
.brand-cell strong { font-family: var(--f-display); font-weight: 800; font-size: 24px; text-transform: uppercase; letter-spacing: .02em; }
.brand-cell span { font-size: 14px; color: var(--ink-2); }

/* ---------- Product cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; overflow: hidden; }
.card:hover { border-color: var(--ink-3); }
.card-media { aspect-ratio: 16 / 10; background: var(--surface-2); display: grid; place-items: center; color: var(--ink-3); position: relative; text-decoration: none; max-width: 100%; }
.card-media svg { width: 52%; height: auto; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 10px; left: 10px; font: 700 12px/1 var(--f-body); letter-spacing: .04em; text-transform: uppercase; padding: 5px 8px; border-radius: 3px; }
.badge.sale { background: var(--sale); color: #fff; }
.fit-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 3px; }
.fit-chip.yes { background: var(--good-tint); color: var(--good); }
.fit-chip.ask { background: var(--warn-tint); color: var(--warn); }
.card-body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.card-brand { font-family: var(--f-display); font-weight: 600; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.card-title { font-family: var(--f-display); font-weight: 800; font-stretch: 82%; font-size: 22px; line-height: 1.05; text-transform: uppercase; text-decoration: none; }
.card-fit { font-size: 14px; color: var(--ink-2); }
.card-sku { color: var(--ink-3); }
.card-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: end; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.price { display: grid; line-height: 1.1; }
.price .rrp { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.price .amt { font-family: var(--f-display); font-weight: 800; font-stretch: 85%; font-size: 26px; font-variant-numeric: tabular-nums; }
.price .was { font-size: 13px; color: var(--ink-3); text-decoration: line-through; }
.price .poa { font-family: var(--f-display); font-weight: 700; font-size: 19px; text-transform: uppercase; }
.price.sale .amt { color: var(--sale); }

/* ---------- Shop layout ---------- */
.shop-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.shop-head .wrap { padding-block: 26px 22px; display: grid; gap: 10px; }
.crumbs { font-size: 14px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.shop-head h1 { font-size: clamp(34px, 5vw, 52px); text-transform: uppercase; }
.shop-head p { color: var(--ink-2); max-width: 70ch; }
.veh-banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; background: var(--accent-tint); border-radius: var(--r); font-size: 15px; }
.veh-banner strong { font-weight: 600; }
.shop { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; padding-block: 28px 64px; }
.filters { display: grid; gap: 22px; align-content: start; position: sticky; top: calc(76px + env(safe-area-inset-top, 0px)); }
.filters h3 { font-size: 16px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; }
.filter-list { display: grid; gap: 2px; }
.filter-list button {
  display: flex; justify-content: space-between; gap: 8px; width: 100%; text-align: left; padding: 7px 10px; border-radius: 4px;
  background: none; border: 0; cursor: pointer; color: var(--ink); font-size: 15px;
}
.filter-list button:hover { background: var(--surface); }
.filter-list button[aria-pressed="true"] { background: var(--steel); color: var(--on-steel); }
.filter-list button span { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.filter-list button[aria-pressed="true"] span { color: var(--on-steel-2); }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .result-count { color: var(--ink-2); font-size: 15px; }
.toolbar select { height: 38px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); padding: 0 10px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; }
.chip button { border: 0; background: none; cursor: pointer; width: 22px; height: 22px; border-radius: 50%; color: var(--ink-2); }
.chip button:hover { background: var(--surface-2); }
.empty { padding: 48px 24px; text-align: center; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r); display: grid; gap: 12px; justify-items: center; }
.empty h3 { font-size: 26px; text-transform: uppercase; }
.empty p { color: var(--ink-2); max-width: 52ch; }
.filter-toggle { display: none; }
@media (max-width: 860px) {
  .shop { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .filters { position: static; display: none; background: var(--surface); padding: 16px; border-radius: var(--r); border: 1px solid var(--line); }
  .filters.open { display: grid; }
  .filter-toggle { display: inline-flex; }
}

/* ---------- Product page ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 36px; padding-block: 28px 56px; }
.pdp-media { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); aspect-ratio: 4 / 3; display: grid; place-items: center; color: var(--ink-3); max-width: 100%; }
.pdp-media svg { width: 55%; }
.pdp-media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r); }
.pdp-info { display: grid; gap: 14px; align-content: start; min-width: 0; }
.pdp-info h1 { font-size: clamp(36px, 5vw, 54px); text-transform: uppercase; }
.pdp-info .for { font-size: 19px; color: var(--ink-2); }
.pdp-info .price .amt { font-size: 40px; }
.spec { display: grid; grid-template-columns: max-content minmax(0, 1fr); border-top: 1px solid var(--line); }
.spec dt, .spec dd { margin: 0; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.spec dt { color: var(--ink-3); padding-right: 18px; }
.pdp-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.note { padding: 12px 14px; border-left: 3px solid var(--accent); background: var(--surface); font-size: 15px; color: var(--ink-2); }
.store-mini { display: grid; gap: 8px; }
.store-mini div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); font-size: 15px; flex-wrap: wrap; }
.store-mini a { font-weight: 600; text-decoration: none; color: var(--ink); font-variant-numeric: tabular-nums; user-select: all; }
@media (max-width: 860px) { .pdp { grid-template-columns: minmax(0, 1fr); gap: 20px; } }

/* ---------- Services & stores ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.svc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: grid; gap: 10px; align-content: start; }
.svc h3 { font-size: 26px; text-transform: uppercase; }
.svc p { color: var(--ink-2); font-size: 15px; }
.svc .brands { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--accent); font-family: var(--f-display); }
.svc .btn { justify-self: start; margin-top: 4px; }
.band { background: var(--steel); color: var(--on-steel); }
.band .section-head p { color: var(--on-steel-2); }
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.store {
  background: var(--steel-2); color: var(--on-steel); border-radius: var(--r); padding: 22px; display: grid; gap: 12px; align-content: start;
}
.section:not(.band) .store { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.store h3 { font-size: 28px; text-transform: uppercase; }
.store .addr { color: inherit; opacity: .85; }
.store .phone { font-family: var(--f-display); font-weight: 700; font-size: 26px; letter-spacing: .02em; text-decoration: none; color: inherit; font-variant-numeric: tabular-nums; user-select: all; }
.store .email { font-size: 15px; user-select: all; word-break: break-all; }
.store ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.store li { font-size: 12px; padding: 3px 8px; border-radius: 3px; border: 1px solid currentColor; opacity: .8; }
.store .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.hours { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 18px; font-size: 15px; }
.hours dt { opacity: .7; } .hours dd { margin: 0; font-variant-numeric: tabular-nums; }

/* ---------- Quote form ---------- */
.form-wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; padding-block: 28px 64px; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form .hint { font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.form .err { color: var(--sale); font-size: 14px; }
.quote-items { display: grid; gap: 8px; }
.qi { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.qi .meta { font-size: 13px; color: var(--ink-3); }
.result { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: grid; gap: 14px; }
.result pre { white-space: pre-wrap; background: var(--surface-2); border-radius: var(--r); padding: 14px; font: 13px/1.5 var(--f-mono); margin: 0; max-height: 320px; overflow: auto; }
@media (max-width: 860px) { .form-wrap { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .form-row { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Modal & drawer ---------- */
.modal, .drawer { position: fixed; inset: 0; z-index: 80; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(8,10,11,.6); }
.modal-card {
  position: relative; margin: max(5vh, calc(env(safe-area-inset-top, 0px) + 16px)) auto 0; width: min(760px, calc(100% - 32px));
  max-height: 86vh; overflow: auto; background: var(--surface); border-radius: 10px; padding: 22px;
}
.modal-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.modal-head h2 { font-size: 32px; text-transform: uppercase; }
.veh-crumbs { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.veh-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.veh-tile {
  min-height: 64px; padding: 12px; text-align: left; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface-2);
  cursor: pointer; display: grid; gap: 2px; align-content: center;
}
.veh-tile:hover { border-color: var(--accent); }
.veh-tile strong { font-family: var(--f-display); font-weight: 700; font-size: 21px; text-transform: uppercase; line-height: 1.05; }
.veh-tile span { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.modal-foot { margin-top: 16px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--ink-2); }
.drawer-card {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--surface); display: flex; flex-direction: column;
  padding: calc(env(safe-area-inset-top, 0px) + 18px) max(18px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 18px) 18px;
}
.drawer-body { flex: 1; overflow: auto; margin: 12px 0; }
.line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line .t { font-weight: 600; }
.line .meta { font-size: 13px; color: var(--ink-3); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r); }
.qty button { width: 30px; height: 30px; border: 0; background: none; cursor: pointer; font-size: 18px; }
.qty span { min-width: 24px; text-align: center; font-variant-numeric: tabular-nums; }
.drawer-foot { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.total { display: flex; justify-content: space-between; align-items: baseline; }
.total strong { font: 800 28px var(--f-display); font-variant-numeric: tabular-nums; }
.drawer-foot .fine { font-size: 13px; color: var(--ink-3); }

.toast {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(env(safe-area-inset-bottom, 0px) + 20px); z-index: 90;
  background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: var(--r); font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.25);
  max-width: calc(100% - 32px);
}

/* ---------- Footer ---------- */
.site-foot { background: var(--steel); color: var(--on-steel-2); }
.foot-inner { max-width: var(--maxw); margin: 0 auto; padding: 44px var(--gutter-r) 24px var(--gutter); display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, .8fr); }
.foot-brand .wordmark { color: var(--on-steel); margin-bottom: 10px; }
.foot-brand p { font-size: 14px; }
.foot-stores { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px; font-size: 14px; }
.foot-stores h4, .foot-links h4 { color: var(--on-steel); font-size: 17px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.foot-stores a { color: var(--on-steel); text-decoration: none; font-variant-numeric: tabular-nums; user-select: all; }
.foot-links { display: grid; gap: 6px; align-content: start; font-size: 14px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--on-steel); }
.fine { font-size: 13px; opacity: .8; margin-top: 6px; }
.foot-note { max-width: var(--maxw); margin: 0 auto; padding: 16px var(--gutter-r) calc(24px + env(safe-area-inset-bottom, 0px)) var(--gutter); border-top: 1px solid var(--steel-2); font-size: 13px; }
@media (max-width: 860px) { .foot-inner { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Photos & logos ---------- */
.card-media.photo { background: #ffffff; }
.card-media.photo img, .pdp-media.photo img { object-fit: contain; padding: 8px; }
.pdp-media.photo { background: #ffffff; }
.brand-cell img { height: 40px; width: auto; max-width: 160px; object-fit: contain; }
.brand-cell.has-logo strong { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.brand-cell { position: relative; }
.site-head { border-bottom: 3px solid var(--accent); }
.main-nav > a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--accent); }

/* ---------- Gallery & description ---------- */
.pdp-gallery { display: grid; gap: 10px; align-content: start; min-width: 0; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.thumb { aspect-ratio: 1; padding: 0; border: 1px solid var(--line); background: #fff; cursor: pointer; border-radius: var(--r); overflow: hidden; max-width: 100%; }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb[aria-current="true"] { border: 2px solid var(--accent); }
.desc { display: grid; gap: 10px; padding-top: 12px; max-width: 70ch; }
.desc h2 { font-size: 24px; text-transform: uppercase; }
.desc p { color: var(--ink-2); font-size: 15px; }
.store .tag { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--accent); }
.brand-logo-img { background: #fff; }

.card-media.photo img { object-fit: cover; padding: 0; }
.brand-cell img { height: 56px; max-width: 170px; background: #fff; padding: 6px; border-radius: var(--r); }
.foot-logo { height: 96px; width: auto; margin-bottom: 10px; }
.cat-tile.has-photo { padding: 0; overflow: hidden; }
.cat-tile.has-photo .cat-photo { aspect-ratio: 16 / 9; background: #fff; max-width: 100%; }
.cat-tile.has-photo .cat-photo img { width: 100%; height: 100%; object-fit: cover; }
.cat-tile.has-photo .cat-body { padding: 0 16px 16px; display: grid; gap: 8px; }
@media (max-width: 480px) { .brand img { height: 44px; } }
