/* ==========================================================================
   AS MOTORSPORT — site styles v4 (mobile-first)
   Base rules target phones. Larger screens are layered on with min-width
   queries at 640px (sm), 900px (md) and 1200px (lg).
   Dark: header, hero, services, footer. Light: catalogue, brands, forms.
   ========================================================================== */

@font-face {
  font-family: "EnterSansman";
  src: url("../fonts/enter-sansman/entsani.ttf") format("truetype");
  font-weight: 700; font-style: italic; font-display: swap;
}

:root {
  /* dark surfaces */
  --ink: oklch(0.155 0.008 25);
  --ink-2: oklch(0.2 0.01 25);
  --ink-3: oklch(0.27 0.012 25);
  --ink-line: oklch(0.32 0.012 25);
  --on-ink: oklch(0.97 0.003 25);
  --on-ink-2: oklch(0.84 0.008 25);
  --on-ink-3: oklch(0.72 0.01 25);

  /* light surfaces — true neutral, not cream */
  --paper: oklch(0.972 0.002 25);
  --white: #fff;
  --line: oklch(0.89 0.004 25);
  --line-2: oklch(0.82 0.006 25);
  --text: oklch(0.2 0.01 25);
  --text-2: oklch(0.4 0.01 25);
  --text-3: oklch(0.5 0.01 25);

  /* brand */
  --red: #e31b23;
  --red-deep: #b5121a;
  --red-text: #c4121a;              /* red text on light, 5.9:1 */
  --red-on-ink: oklch(0.7 0.19 25); /* red text on dark, 5.6:1 */
  --wa: #189d4d;
  --wa-deep: #12803e;
  --ok: oklch(0.52 0.13 155);

  --font-display: "EnterSansman", "Barlow Condensed", system-ui, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, sans-serif;
  --font-ui: "Barlow Condensed", "Barlow", system-ui, sans-serif;

  --gutter: 1rem;
  --max: 1240px;
  --radius: 6px;
  --header-h: 60px;
  --bar-h: 64px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);

  --z-sticky: 100;
  --z-header: 200;
  --z-bar: 250;
  --z-overlay: 300;
  --z-toast: 400;
}
@media (min-width: 640px) { :root { --gutter: 1.5rem; } }
@media (min-width: 900px) { :root { --gutter: 2rem; --header-h: 72px; } }

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  font-family: var(--font-body); font-size: 1rem; line-height: 1.6;
  color: var(--text); background: var(--paper);
  overflow-x: clip; -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom));
}
@media (min-width: 900px) { body { padding-bottom: 0; font-size: 1.0625rem; } }
img, svg { display: block; max-width: 100%; }
img { height: auto; } /* let aspect-ratio win over the height attribute */
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
::selection { background: var(--red); color: #fff; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: var(--z-toast); background: var(--red); color: #fff; padding: .6rem 1rem; }
.skip:focus { top: .5rem; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- type ---------- */
.display, h1, h2 {
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  line-height: 1.05; letter-spacing: -0.005em; text-wrap: balance;
}
h1 { font-size: clamp(1.85rem, 1.2rem + 3.2vw, 3.9rem); }
h2 { font-size: clamp(1.45rem, 1.1rem + 1.8vw, 2.5rem); }
h3, h4 { font-family: var(--font-ui); font-weight: 700; line-height: 1.2; letter-spacing: .01em; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }
p { text-wrap: pretty; max-width: 66ch; }
.lead { font-size: 1.075rem; line-height: 1.6; }
@media (min-width: 900px) { .lead { font-size: 1.2rem; } }
.kicker { font-family: var(--font-ui); font-weight: 600; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; }
.red { color: var(--red-text); }
.dark .red, .hero .red, .page-head .red { color: var(--red-on-ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .65rem 1.2rem; border-radius: var(--radius);
  font-family: var(--font-ui); font-weight: 700; font-size: 1.05rem; letter-spacing: .03em;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .15s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-deep); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-deep); }
.btn-line { border-color: var(--line-2); color: var(--text); background: var(--white); }
.btn-line:hover { border-color: var(--text); }
.dark .btn-line, .hero .btn-line { background: transparent; color: var(--on-ink); border-color: oklch(1 0 0 / .35); }
.dark .btn-line:hover, .hero .btn-line:hover { border-color: var(--on-ink); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: oklch(0.26 0.01 25); }
.btn-sm { min-height: 40px; padding: .4rem .85rem; font-size: .98rem; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: .35rem; font-family: var(--font-ui); font-weight: 700; font-size: 1.05rem; text-decoration: none; color: var(--red-text); }
.link-arrow svg { width: 1.1em; height: 1.1em; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }
.dark .link-arrow { color: var(--red-on-ink); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header); height: var(--header-h);
  background: var(--ink); color: var(--on-ink); border-bottom: 1px solid var(--ink-3);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 1rem; }
.brand-link { flex: none; display: block; }
.brand-link img { height: 22px; width: auto; }
.header-call { display: none; }
.menu-btn {
  margin-left: auto; width: 44px; height: 44px; display: grid; place-items: center;
  background: transparent; border: 1px solid var(--ink-line); border-radius: var(--radius); cursor: pointer; color: var(--on-ink);
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform .25s var(--ease), background-color .2s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
.nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: var(--z-overlay);
  background: var(--ink); padding: 1rem var(--gutter) 2rem; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility 0s .22s;
}
.nav.open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav ul { list-style: none; padding: 0; }
.nav a {
  display: flex; justify-content: space-between; align-items: center; padding: 1rem 0;
  border-bottom: 1px solid var(--ink-3); text-decoration: none;
  font-family: var(--font-ui); font-weight: 700; font-size: 1.5rem; color: var(--on-ink);
}
.nav a[aria-current="page"] { color: var(--red-on-ink); }
.nav-extra { margin-top: 1.5rem; display: grid; gap: .6rem; color: var(--on-ink-3); font-size: .95rem; }
@media (min-width: 900px) {
  .brand-link img { height: 28px; }
  .menu-btn { display: none; }
  .nav { position: static; inset: auto; opacity: 1; visibility: visible; transform: none; background: none; padding: 0; overflow: visible; margin-left: auto; transition: none; }
  .nav ul { display: flex; gap: .25rem; }
  .nav a { border: 0; padding: .5rem .75rem; font-size: 1.05rem; font-weight: 600; color: var(--on-ink-2); position: relative; }
  .nav a:hover { color: var(--on-ink); }
  .nav a::after { content: ""; position: absolute; left: .75rem; right: .75rem; bottom: .2rem; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
  .nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
  .nav a[aria-current="page"] { color: var(--on-ink); }
  .nav-extra { display: none; }
  .header-call { display: inline-flex; }
}

/* ---------- mobile action bar ---------- */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-bar);
  display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: .5rem;
  padding: .5rem var(--gutter) calc(.5rem + env(safe-area-inset-bottom));
  background: oklch(0.155 0.008 25 / .96); border-top: 1px solid var(--ink-3);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.action-bar .btn { min-height: 46px; padding-inline: .5rem; font-size: 1rem; }
.action-bar .btn-line { background: transparent; color: var(--on-ink); border-color: var(--ink-line); }
@media (min-width: 900px) { .action-bar { display: none; } }

/* ---------- sections ---------- */
.section { padding-block: 3.5rem; }
@media (min-width: 900px) { .section { padding-block: 6rem; } }
.dark { background: var(--ink); color: var(--on-ink-2); }
.dark h1, .dark h2, .dark h3 { color: var(--on-ink); }
.white { background: var(--white); }
.head { display: grid; gap: .75rem; margin-bottom: 1.75rem; }
.head p { color: var(--text-2); }
.dark .head p { color: var(--on-ink-3); }
@media (min-width: 900px) {
  .head { grid-template-columns: 1fr minmax(0, 28rem); align-items: end; gap: 2rem; margin-bottom: 2.75rem; }
  .head.stack { grid-template-columns: 1fr; }
}

/* ---------- hero ---------- */
.hero { background: var(--ink); color: var(--on-ink-2); position: relative; isolation: isolate; overflow: hidden; }
.hero-media { position: relative; aspect-ratio: 4 / 3; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; animation: settle 1.6s var(--ease-expo) both; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 45%, var(--ink) 98%); }
.hero-body { position: relative; margin-top: -3.5rem; padding-bottom: 2.25rem; }
.hero .kicker { color: var(--red-on-ink); display: flex; align-items: center; gap: .5rem; margin-bottom: .9rem; }
.hero .kicker::before { content: ""; width: 22px; height: 3px; background: var(--red); transform: skewX(-20deg); }
.hero h1 { color: var(--on-ink); max-width: 14ch; }
.hero h1 .l { display: block; overflow: hidden; padding-bottom: .05em; }
.hero h1 .l > span { display: inline-block; animation: rise-line .9s var(--ease-expo) both; }
.hero h1 .l:nth-child(2) > span { animation-delay: .08s; }
.hero .lead { margin-top: 1rem; color: var(--on-ink-2); animation: fade .8s .25s var(--ease) both; }
.hero-cta { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: 1.5rem; animation: fade .8s .35s var(--ease) both; }
.proof { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin-top: 1.4rem; font-family: var(--font-ui); font-size: 1rem; color: var(--on-ink-3); animation: fade .8s .45s var(--ease) both; }
.proof b { color: var(--on-ink); font-weight: 700; }
.proof .star { color: #f5b301; }
@media (min-width: 640px) {
  .hero-cta { display: flex; flex-wrap: wrap; }
}
@media (min-width: 900px) {
  .hero { min-height: min(84svh, 760px); display: grid; align-items: center; }
  .hero-media { position: absolute; inset: 0; aspect-ratio: auto; z-index: -1; }
  .hero-media img { object-position: 70% 50%; }
  .hero-media::after { background: linear-gradient(90deg, var(--ink) 0%, oklch(0.155 0.008 25 / .92) 34%, oklch(0.155 0.008 25 / .25) 64%, transparent 85%), linear-gradient(to top, oklch(0.155 0.008 25 / .6), transparent 30%); }
  .hero-body { margin-top: 0; padding-block: 4rem 6rem; max-width: 36rem; }
}

/* parts finder card overlapping the hero */
.finder-card {
  position: relative; z-index: 2; background: var(--white); border-radius: 10px;
  box-shadow: 0 12px 40px oklch(0 0 0 / .14), 0 0 0 1px var(--line);
  padding: 1.1rem; margin-top: 1.25rem;
}
.finder-card h2 { font-size: 1.3rem; }
.finder-card p { color: var(--text-2); margin-top: .25rem; font-size: .98rem; }
.search {
  display: flex; align-items: center; gap: .5rem; margin-top: .9rem;
  background: var(--paper); border: 1.5px solid var(--line-2); border-radius: var(--radius); padding-left: .8rem;
}
.search:focus-within { border-color: var(--red); background: var(--white); }
.search svg { width: 20px; height: 20px; color: var(--text-3); flex: none; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: .8rem 0; font-size: 1rem; color: var(--text); }
.search input::placeholder { color: var(--text-3); }
.search input::-webkit-search-cancel-button { display: none; }
.search .btn { border-radius: 0 calc(var(--radius) - 2px) calc(var(--radius) - 2px) 0; min-height: 48px; }
.search-clear { border: 0; background: none; color: var(--text-3); padding: .5rem .7rem; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.search-clear:hover { color: var(--text); }
.quick { display: flex; gap: .4rem; margin-top: .85rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin-inline: -1.1rem; padding-inline: 1.1rem; }
.quick::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: .4rem; min-height: 38px; padding: .35rem .8rem;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--white); color: var(--text);
  font-family: var(--font-ui); font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.chip .n { color: var(--text-3); font-weight: 500; font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--text); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip[aria-pressed="true"] .n { color: var(--on-ink-3); }
@media (min-width: 900px) {
  .finder-card { margin-top: -3.5rem; padding: 1.75rem 2rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: .5rem 2.5rem; align-items: center; }
  .finder-card .search { margin-top: 0; }
  .finder-card .quick { grid-column: 1 / -1; flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; }
}

/* ---------- services ---------- */
.svc-scroller {
  display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: .75rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
}
.svc-scroller::-webkit-scrollbar { display: none; }
.svc {
  scroll-snap-align: start; position: relative; display: flex; flex-direction: column;
  background: var(--ink-2); border-radius: 10px; overflow: hidden; text-decoration: none; color: var(--on-ink-2);
  border: 1px solid var(--ink-3);
}
.svc-img { aspect-ratio: 4 / 3; overflow: hidden; }
.svc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.svc:hover .svc-img img { transform: scale(1.04); }
.svc-body { padding: 1rem 1.1rem 1.15rem; display: grid; gap: .4rem; flex: 1; align-content: start; }
.svc h3 { color: var(--on-ink); font-size: 1.35rem; }
.svc p { font-size: .98rem; color: var(--on-ink-3); }
.svc .link-arrow { margin-top: auto; padding-top: .5rem; font-size: 1rem; }
.scroll-hint { display: flex; gap: .35rem; justify-content: center; margin-top: 1rem; }
.scroll-hint i { width: 6px; height: 6px; border-radius: 3px; background: var(--ink-line); transition: width .25s var(--ease), background-color .25s; }
.scroll-hint i.on { background: var(--red); width: 18px; }
@media (min-width: 640px) { .svc-scroller { grid-auto-columns: 46%; } }
@media (min-width: 900px) {
  .svc-scroller { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: 0; padding: 0; gap: 1.25rem; }
  .svc-scroller .svc:first-child { grid-column: span 2; grid-row: span 2; }
  .svc-scroller .svc:first-child .svc-img { aspect-ratio: auto; flex: 1; min-height: 280px; }
  .svc-scroller .svc:first-child h3 { font-size: 1.8rem; }
  .scroll-hint { display: none; }
}

.recovery {
  position: relative; isolation: isolate; overflow: hidden; margin-top: 1.25rem; border-radius: 10px;
  background: var(--red); color: #fff; padding: 1.5rem 1.25rem; display: grid; gap: 1rem;
}
.recovery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.recovery::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, var(--red) 30%, oklch(0.55 0.21 25 / .82) 60%, oklch(0.45 0.18 25 / .55)); }
.recovery h3 { font-size: 1.6rem; color: #fff; }
.recovery p { color: oklch(1 0 0 / .92); }
@media (min-width: 900px) { .recovery { grid-template-columns: 1fr auto; align-items: center; padding: 2rem 2.5rem; } .recovery h3 { font-size: 2rem; } }

/* ---------- parts: category index ---------- */
.depts { display: grid; gap: 2rem; }
.dept h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); margin-bottom: .5rem; }
.cat-links { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.cat-links a {
  display: grid; grid-template-columns: 1fr auto auto; gap: .75rem; align-items: center;
  padding: .85rem .25rem; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text);
}
.cat-links .t { font-family: var(--font-ui); font-weight: 700; font-size: 1.2rem; }
.cat-links .b { display: block; font-family: var(--font-body); font-weight: 400; font-size: .9rem; color: var(--text-3); margin-top: .1rem; }
.cat-links .n { font-family: var(--font-ui); font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }
.cat-links svg { width: 18px; height: 18px; color: var(--text-3); transition: transform .2s var(--ease), color .2s; }
.cat-links a:hover .t { color: var(--red-text); }
.cat-links a:hover svg { transform: translateX(3px); color: var(--red-text); }
.parts-foot { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.parts-foot p { color: var(--text-3); font-size: .95rem; }
@media (min-width: 900px) { .depts { grid-template-columns: 1fr 1fr; gap: 3rem; } }

/* ---------- brands ---------- */
.partners { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.partner {
  display: grid; grid-template-rows: 64px auto; gap: .75rem; padding: 1rem .9rem .9rem;
  background: var(--white); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--text);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
a.partner:hover { border-color: var(--line-2); box-shadow: 0 8px 24px oklch(0 0 0 / .08); transform: translateY(-2px); }
.partner .mark { display: flex; align-items: center; justify-content: center; min-width: 0; height: 100%; overflow: hidden; }
.partner .mark img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.partner .name { font-family: var(--font-ui); font-weight: 700; font-size: 1.05rem; line-height: 1.15; }
.partner .role { display: block; font-family: var(--font-body); font-weight: 400; font-size: .88rem; color: var(--text-3); }
@media (min-width: 640px) { .partners { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; } }
@media (min-width: 1200px) { .partners { grid-template-columns: repeat(6, minmax(0, 1fr)); } .partner { grid-template-rows: 76px auto; } }

.belt { margin-top: 2.5rem; }
.belt-label { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .9rem; }
.belt-label h3 { font-size: 1.2rem; }
.belt-label a { font-family: var(--font-ui); font-weight: 600; color: var(--red-text); text-decoration: none; white-space: nowrap; }
.marquee {
  overflow: hidden; border-block: 1px solid var(--line); background: var(--white);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  margin-inline: calc(var(--gutter) * -1);
}
.marquee-track { display: flex; align-items: center; gap: 2.75rem; width: max-content; padding: 1.15rem 1.375rem; animation: belt var(--dur, 50s) linear infinite; }
.marquee.reverse .marquee-track { animation-direction: reverse; }
/* not interactive: no links, no pause on hover/tap, no text selection or image dragging */
.marquee { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.marquee-track { pointer-events: none; }
.belt-item { flex: none; display: block; }
/* logos are sized by height; --k scales compact marks (roundels, crests) up optically */
.marquee .logo { height: calc(32px * var(--k, 1)); width: auto; max-width: none; }
@media (min-width: 900px) { .marquee { margin-inline: 0; border-radius: 10px; border: 1px solid var(--line); } .marquee .logo { height: calc(40px * var(--k, 1)); } .marquee-track { gap: 3.5rem; padding: 1.4rem 1.75rem; } }

/* ---------- split (photo + text) ---------- */
.split { display: grid; gap: 1.75rem; }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.checks { list-style: none; padding: 0; display: grid; gap: .9rem; margin-top: 1.25rem; }
.checks li { display: grid; grid-template-columns: 18px 1fr; gap: .75rem; }
.checks li::before { content: ""; width: 12px; height: 12px; margin-top: .45em; background: var(--red); clip-path: polygon(0 0, 100% 0, 100% 60%, 60% 100%, 0 100%); }
.checks b { color: var(--text); font-weight: 600; }
.dark .checks b { color: var(--on-ink); }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; } .split-media img { aspect-ratio: 5 / 4; } .split.flip .split-media { order: 2; } }

/* ---------- visit ---------- */
.visit { display: grid; gap: 1rem; }
.visit-map { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--line); aspect-ratio: 4 / 3; }
.visit-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.visit-card { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 1.25rem; display: grid; gap: 1.1rem; align-content: start; }
.visit-card h3 { font-size: 1.5rem; }
.visit-card address { font-style: normal; color: var(--text-2); }
.hours { display: grid; grid-template-columns: auto 1fr; gap: .25rem 1.25rem; font-family: var(--font-ui); font-size: 1.05rem; }
.hours dt { color: var(--text-3); }
.hours dd { margin: 0; color: var(--text); font-weight: 600; }
.visit-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
@media (min-width: 900px) { .visit { grid-template-columns: 1.4fr 1fr; gap: 1.5rem; } .visit-map { aspect-ratio: auto; min-height: 440px; } .visit-card { padding: 2rem; } }

/* ---------- closer ---------- */
.closer { background: var(--red); color: #fff; padding-block: 3rem; position: relative; overflow: hidden; isolation: isolate; }
.closer::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .12; background: repeating-linear-gradient(-62deg, transparent 0 20px, #000 20px 21px); }
.closer h2 { color: #fff; }
.closer .wrap { display: grid; gap: 1.25rem; }
.closer .row { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
@media (min-width: 900px) { .closer { padding-block: 4.5rem; } .closer .wrap { grid-template-columns: 1fr auto; align-items: center; } .closer .row { display: flex; } }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--on-ink-3); padding-block: 2.5rem 1.5rem; font-size: .97rem; }
.footer-grid { display: grid; gap: 2rem; }
.footer-logo { width: 190px; height: auto; }
.footer-grid h4 { color: var(--on-ink); font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .65rem; }
.footer-grid ul { list-style: none; padding: 0; display: grid; gap: .35rem; }
.footer-grid a { color: var(--on-ink-2); text-decoration: none; }
.footer-grid a:hover { color: var(--on-ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-grid address { font-style: normal; color: var(--on-ink-2); }
.footer-grid p { color: var(--on-ink-3); }
.social { display: flex; gap: .5rem; margin-top: 1rem; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--ink-line); border-radius: var(--radius); color: var(--on-ink-2); }
.social a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.footer-base { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--ink-3); display: grid; gap: .4rem; font-size: .88rem; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } .footer-base { display: flex; justify-content: space-between; } }

/* ---------- inner page head ---------- */
.page-head { background: var(--ink); color: var(--on-ink-2); padding-block: 2rem 1.75rem; position: relative; overflow: hidden; isolation: isolate; }
.page-head::after { content: ""; position: absolute; right: -30%; top: -60%; width: 80%; height: 220%; z-index: -1; background: linear-gradient(100deg, transparent 0 40%, oklch(0.6 0.22 25 / .16) 40% 41.5%, transparent 41.5% 55%, oklch(0.6 0.22 25 / .09) 55% 63%, transparent 63%); }
.page-head h1 { color: var(--on-ink); }
.page-head .lead { margin-top: .6rem; color: var(--on-ink-2); }
@media (min-width: 900px) { .page-head { padding-block: 3.5rem 3rem; } .page-head::after { right: -6%; width: 50%; } }
.crumbs { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; padding: 0; font-family: var(--font-ui); font-size: .98rem; color: var(--text-3); }
.crumbs li + li::before { content: "/"; margin-right: .35rem; color: var(--line-2); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }

/* ---------- catalogue ---------- */
.toolbar { position: sticky; top: var(--header-h); z-index: var(--z-sticky); background: var(--white); border-bottom: 1px solid var(--line); padding-block: .75rem .6rem; }
.toolbar .search { margin-top: 0; }
.toolbar .quick { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); margin-top: .65rem; }
.toolbar-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .6rem; }
.count { font-family: var(--font-ui); font-size: 1.02rem; color: var(--text-3); }
.count b { color: var(--text); }
.tools { display: flex; gap: .4rem; }
.select {
  appearance: none; min-height: 40px; padding: .4rem 2rem .4rem .75rem; border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23666' stroke-width='1.6'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E") no-repeat right .7rem center;
  font-family: var(--font-ui); font-weight: 600; font-size: 1rem; color: var(--text);
}
.active-filters { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.active-filters:empty { display: none; }
.pill { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .3rem .25rem .7rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line-2); font-family: var(--font-ui); font-weight: 600; font-size: .95rem; }
.pill button { width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; display: grid; place-items: center; line-height: 1; }
.pill button:hover { background: var(--red); color: #fff; }

.cat-layout { padding-block: .5rem 3rem; }
.rail { display: none; }
@media (min-width: 1024px) {
  .cat-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 2.5rem; align-items: start; padding-top: 1.5rem; }
  .rail { display: grid; gap: 1.75rem; position: sticky; top: calc(var(--header-h) + 1rem); max-height: calc(100vh - var(--header-h) - 2rem); overflow: auto; scrollbar-width: thin; padding-right: .25rem; }
  .toolbar .quick { display: none; }
  .toolbar { position: static; background: transparent; border: 0; padding: 0 0 .5rem; }
  .brand-btn { display: none; }
}
.rail h4, .sheet h4 { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-bottom: .45rem; }
.rail-list { list-style: none; padding: 0; display: grid; gap: 1px; }
.rail-btn {
  width: 100%; display: flex; justify-content: space-between; gap: .75rem; align-items: center; padding: .45rem .6rem; border: 0; border-radius: var(--radius);
  background: none; text-align: left; cursor: pointer; font-family: var(--font-ui); font-weight: 600; font-size: 1.05rem; color: var(--text-2);
}
.rail-btn .n { font-weight: 500; color: var(--text-3); font-variant-numeric: tabular-nums; }
.rail-btn:hover { background: var(--white); color: var(--text); }
.rail-btn[aria-pressed="true"] { background: var(--ink); color: #fff; }
.rail-btn[aria-pressed="true"] .n { color: var(--on-ink-3); }
.rail-sub { padding-left: .6rem; }
.rail-sub .rail-btn { font-weight: 500; font-size: 1rem; padding-block: .35rem; }
.brand-list { list-style: none; padding: 0; display: grid; gap: 2px; }
.brand-opt {
  width: 100%; display: grid; grid-template-columns: 64px 1fr auto; gap: .65rem; align-items: center; padding: .35rem .5rem; border: 1px solid transparent; border-radius: var(--radius);
  background: none; cursor: pointer; text-align: left; font-family: var(--font-ui); font-weight: 600; font-size: 1rem; color: var(--text);
}
.brand-opt .lg { height: 28px; display: flex; align-items: center; overflow: hidden; }
.brand-opt .lg img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.brand-opt .lg .wm { font-size: .72rem; font-weight: 800; letter-spacing: .03em; color: var(--text-3); text-transform: uppercase; line-height: 1; }
.brand-opt .n { color: var(--text-3); font-weight: 500; }
.brand-opt:hover { background: var(--white); border-color: var(--line); }
.brand-opt[aria-pressed="true"] { background: var(--white); border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.brand-group + .brand-group { margin-top: 1.25rem; }

.cat-group { margin-top: 1.75rem; }
.cat-group-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-bottom: .5rem; border-bottom: 2px solid var(--ink); }
.cat-group-head h2 { font-size: 1.3rem; color: var(--text); }
.cat-group-head span { font-family: var(--font-ui); color: var(--text-3); }
@media (min-width: 900px) { .cat-group-head h2 { font-size: 1.6rem; } }

.prod { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: .55rem .9rem; padding-block: 1rem; border-bottom: 1px solid var(--line); }
.prod-logo { width: 64px; height: 44px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px; }
.prod-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.prod-logo .wm { font-family: var(--font-ui); font-weight: 800; font-size: .62rem; line-height: 1.05; text-transform: uppercase; text-align: center; color: var(--text-2); letter-spacing: .02em; }
.prod-brand { font-family: var(--font-ui); font-weight: 700; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; color: var(--red-text); }
.prod-name { font-family: var(--font-body); font-weight: 600; font-size: 1.06rem; line-height: 1.3; color: var(--text); }
.prod-name a { text-decoration: none; }
.prod-name a::after { content: ""; position: absolute; inset: 0; }
.prod:hover .prod-name a { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; }
.prod-fit { margin-top: .2rem; font-size: .93rem; color: var(--text-3); line-height: 1.45; }
.prod-fit b { color: var(--text-2); font-weight: 600; }
.prod-side { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; position: relative; z-index: 1; }
.prod-side .left { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.sizes { display: flex; flex-wrap: wrap; gap: .3rem; }
.sizes button, .size-tag {
  min-height: 34px; padding: .25rem .6rem; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--white);
  font-family: var(--font-ui); font-weight: 600; font-size: .95rem; color: var(--text-2); cursor: pointer; font-variant-numeric: tabular-nums;
}
.size-tag { cursor: default; display: inline-flex; align-items: center; }
.sizes button:hover { border-color: var(--text); color: var(--text); }
.sizes button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.price { font-family: var(--font-ui); font-weight: 700; font-size: 1.35rem; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.price small { font-size: .78rem; font-weight: 600; letter-spacing: .05em; color: var(--text-3); margin-left: .3rem; }
.price.ask { font-size: 1rem; color: var(--text-2); }
.prod .btn { min-height: 40px; }
@media (min-width: 640px) {
  .prod { grid-template-columns: 84px minmax(0, 1fr) auto; align-items: center; gap: .5rem 1.25rem; }
  .prod-logo { width: 84px; height: 56px; padding: 8px; }
  .prod-side { grid-column: auto; justify-content: flex-end; flex-wrap: nowrap; }
  .prod-side .left { flex-wrap: nowrap; }
}
@media (min-width: 640px) and (max-width: 1100px) {
  .prod { grid-template-columns: 84px minmax(0, 1fr); }
  .prod-side { grid-column: 2; justify-content: space-between; flex-wrap: wrap; }
}
.empty { padding: 3rem 0; display: grid; gap: .9rem; justify-items: start; }
.empty h3 { font-size: 1.5rem; }
.empty p { color: var(--text-2); }
.note { margin-top: 2rem; padding: 1rem 1.1rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); font-size: .93rem; color: var(--text-3); }
.note b { color: var(--text); }

/* bottom sheet (brand filter on mobile) */
dialog.sheet {
  width: 100%; max-width: 560px; max-height: 85vh; margin: auto auto 0; padding: 0; border: 0; border-radius: 14px 14px 0 0;
  background: var(--paper); color: var(--text); box-shadow: 0 -10px 40px oklch(0 0 0 / .3);
}
dialog.sheet::backdrop { background: oklch(0 0 0 / .5); }
dialog.sheet[open] { animation: sheet-up .3s var(--ease) both; }
.sheet-head { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; padding: 1rem var(--gutter); background: var(--paper); border-bottom: 1px solid var(--line); }
.sheet-head h3 { font-size: 1.3rem; }
.sheet-body { padding: 1rem var(--gutter) 2rem; }
@media (min-width: 640px) { dialog.sheet { margin: auto; border-radius: 14px; } }

/* ---------- product detail ---------- */
.pd { display: grid; gap: 1.5rem; padding-block: 1.25rem 2.5rem; }
.pd-brand { display: flex; align-items: center; gap: .75rem; }
.pd-brand .prod-logo { width: 84px; height: 56px; }
.pd h1 { font-size: clamp(1.6rem, 1.1rem + 2.4vw, 2.8rem); color: var(--text); margin-top: .75rem; }
.pd-meta { display: flex; flex-wrap: wrap; gap: .35rem 1rem; margin-top: .6rem; font-family: var(--font-ui); font-size: 1rem; color: var(--text-3); }
.pd-main { display: grid; gap: 2rem; }
.stock { display: inline-flex; align-items: center; gap: .35rem; color: var(--ok); font-weight: 600; }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.buy { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 1.1rem; display: grid; gap: 1rem; }
.buy .sizes button { min-height: 44px; padding-inline: .9rem; font-size: 1.05rem; }
.buy .price { font-size: 2.1rem; }
.fine { font-size: .93rem; color: var(--text-3); }
.buy-actions { display: grid; gap: .5rem; }
.buy-actions .row { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.pd-section h2 { font-size: 1.25rem; margin-bottom: .75rem; color: var(--text); }
.fit-list { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; }
.fit-list li { padding: .35rem .75rem; border: 1px solid var(--line-2); border-radius: 999px; background: var(--white); font-family: var(--font-ui); font-weight: 600; font-size: 1rem; }
.pd-section .fine { margin-top: .75rem; }
.spec { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-size: .97rem; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: .75rem .9rem; border-bottom: 1px solid var(--line); }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.spec th { width: 38%; font-family: var(--font-ui); font-weight: 600; color: var(--text-3); }
.related { padding-block: 2rem 3rem; border-top: 1px solid var(--line); }
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-bar); display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .55rem var(--gutter) calc(.55rem + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px oklch(0 0 0 / .08); }
.buybar .price { font-size: 1.3rem; }
.buybar .price small { display: block; margin: .2rem 0 0; }
body.has-buybar .action-bar { display: none; }
@media (min-width: 900px) {
  .pd { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-areas: "head side" "main side"; gap: 2rem 3rem; padding-block: 2rem 4rem; align-items: start; }
  .pd-head { grid-area: head; } .pd-main { grid-area: main; }
  .pd-side { grid-area: side; position: sticky; top: calc(var(--header-h) + 1.25rem); }
  .buy { padding: 1.5rem; }
  .buybar { display: none; }
}

/* ---------- forms ---------- */
.form-shell { display: grid; gap: 2rem; padding-block: 1.5rem 3rem; }
.form { display: grid; gap: 1.75rem; }
fieldset { border: 0; padding: 0; min-width: 0; display: grid; gap: .9rem; }
legend { display: flex; align-items: center; gap: .6rem; padding: 0; margin-bottom: .9rem; font-family: var(--font-ui); font-weight: 700; font-size: 1.35rem; color: var(--text); }
legend .step { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--red); color: #fff; font-size: .95rem; }
.fields { display: grid; gap: .9rem; }
@media (min-width: 640px) { .fields { grid-template-columns: 1fr 1fr; } .fields .full { grid-column: 1 / -1; } }
.field { display: grid; gap: .35rem; align-content: start; }
.field label { font-family: var(--font-ui); font-weight: 600; font-size: 1.02rem; color: var(--text); }
.field label .opt { color: var(--text-3); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .7rem .85rem; border: 1.5px solid var(--line-2); border-radius: var(--radius); background: var(--white);
  font-size: 1rem; color: var(--text); transition: border-color .2s;
}
.field select { appearance: none; padding-right: 2.4rem; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23666' stroke-width='1.6'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E") no-repeat right .9rem center; }
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--red); }
.field [aria-invalid="true"] { border-color: var(--red); background: oklch(0.97 0.02 25); }
.err { font-size: .92rem; color: var(--red-text); }
.err:empty { display: none; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
@media (min-width: 640px) { .choices { grid-template-columns: repeat(3, 1fr); } }
.choice { position: relative; }
.choice input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.choice span { display: grid; gap: .1rem; height: 100%; padding: .75rem .85rem; border: 1.5px solid var(--line-2); border-radius: var(--radius); background: var(--white); transition: border-color .2s, background-color .2s; }
.choice b { font-family: var(--font-ui); font-weight: 700; font-size: 1.05rem; color: var(--text); }
.choice small { font-size: .88rem; color: var(--text-3); line-height: 1.35; }
.choice input:checked + span { border-color: var(--red); background: oklch(0.97 0.02 25); box-shadow: inset 0 0 0 1px var(--red); }
.choice input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.form-foot { display: grid; gap: .75rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.form-foot p { font-size: .93rem; color: var(--text-3); }
.aside { display: grid; gap: 1rem; align-content: start; }
.aside-card { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 1.1rem 1.2rem; display: grid; gap: .5rem; }
.aside-card h3 { font-size: 1.15rem; }
.aside-card p, .aside-card address { color: var(--text-2); font-style: normal; }
.aside-card a { color: var(--text); font-weight: 600; }
@media (min-width: 900px) {
  .form-shell { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 3.5rem; padding-block: 3rem 5rem; }
  .aside { position: sticky; top: calc(var(--header-h) + 1.5rem); }
  .form-foot { grid-template-columns: 1fr auto; align-items: center; }
}

/* ---------- about ---------- */
.values { display: grid; gap: 1.5rem; }
.value h3 { font-size: 1.25rem; margin-bottom: .35rem; }
.value p { color: var(--text-2); }
.value::before { content: ""; display: block; width: 30px; height: 4px; background: var(--red); transform: skewX(-20deg); margin-bottom: .8rem; }
@media (min-width: 640px) { .values { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (min-width: 1200px) { .values { grid-template-columns: repeat(4, 1fr); } }
.caps { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.caps li { padding: .85rem 0; border-bottom: 1px solid var(--line); font-weight: 500; }
@media (min-width: 900px) { .caps { columns: 2; column-gap: 3rem; } .caps li { break-inside: avoid; } }
.photo-row { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.photo-row img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.photo-row img:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
@media (min-width: 900px) { .photo-row { grid-template-columns: 2fr 1fr 1fr; gap: 1rem; } .photo-row img:first-child { grid-column: auto; aspect-ratio: auto; height: 100%; } .photo-row img { aspect-ratio: 3 / 4; } }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(var(--bar-h) + 1rem); z-index: var(--z-toast); transform: translate(-50%, 1rem); opacity: 0; pointer-events: none; background: var(--ink); color: #fff; padding: .8rem 1.1rem; border-radius: var(--radius); font-weight: 600; width: max-content; max-width: calc(100vw - 2rem); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 900px) { .toast { bottom: 1.5rem; } }

/* ---------- motion ---------- */
@keyframes rise-line { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }
@keyframes belt { to { transform: translateX(-50%); } }
@keyframes sheet-up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@supports (animation-timeline: view()) {
  .reveal { animation: fade linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; row-gap: 1.25rem; }
  .marquee-track [aria-hidden="true"] { display: none; }
}

/* finder sits between hero and services; on desktop it overlaps the hero */
.finder-wrap { position: relative; z-index: 2; padding-bottom: 2.5rem; }
@media (min-width: 900px) { .finder-wrap { padding-bottom: 4rem; } }

/* ---------- desktop refinements ---------- */
.svc-img picture { display: block; height: 100%; }
@media (min-width: 900px) {
  .hero-body { max-width: 46rem; }
  .hero h1 { max-width: none; font-size: clamp(2.4rem, 1rem + 2.6vw, 3.4rem); }
  .hero .lead { max-width: 34rem; }
  .svc-scroller .svc:first-child .svc-body { flex: none; }
  .split-media img { aspect-ratio: 4 / 3; }
}

/* storefront photo in the visit block */
.visit-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.visit-photo figcaption { margin-top: .5rem; font-size: .93rem; color: var(--text-3); }
@media (min-width: 900px) {
  .visit { grid-template-columns: 1.3fr 1fr; }
  .visit-map { grid-column: 1 / -1; min-height: 360px; }
  .visit-photo { grid-column: 1; grid-row: 1; }
  .visit-card { grid-column: 2; grid-row: 1; }
  .visit-map { grid-row: 2; }
  .visit-photo img { aspect-ratio: 16 / 10; }
}

/* Instagram strip: swipe on phones, 6-up on desktop */
.ig-grid {
  display: grid; grid-auto-flow: column; grid-auto-columns: 44%; gap: .6rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
}
.ig-grid::-webkit-scrollbar { display: none; }
.ig-grid a { scroll-snap-align: start; display: block; border-radius: 8px; overflow: hidden; }
.ig-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .4s var(--ease); }
.ig-grid a:hover img { transform: scale(1.04); }
@media (min-width: 640px) { .ig-grid { grid-auto-columns: 30%; } }
@media (min-width: 900px) { .ig-grid { grid-auto-flow: row; grid-template-columns: repeat(6, 1fr); overflow: visible; margin: 0; padding: 0; gap: .9rem; } }

/* product photos (packshots) */
.prod-photo { width: 64px; height: 72px; display: flex; align-items: center; justify-content: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px; overflow: hidden; }
.prod-photo picture { display: contents; }
.prod-photo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
@media (min-width: 640px) { .prod-photo { width: 84px; height: 92px; padding: 6px; } }
.pd-photo { display: flex; align-items: center; justify-content: center; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 1.25rem; height: 300px; margin-bottom: 1.25rem; }
.pd-photo picture { display: contents; }
.pd-photo img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; }
@media (min-width: 900px) { .pd-photo { height: 420px; } }

/* ==========================================================================
   Shop: cart button, drawer, add-to-cart, checkout
   ========================================================================== */
.cart-btn {
  position: relative; width: 44px; height: 44px; display: grid; place-items: center; margin-left: auto;
  background: transparent; border: 1px solid var(--ink-line); border-radius: var(--radius); color: var(--on-ink); cursor: pointer;
}
.cart-btn svg { width: 22px; height: 22px; }
.cart-btn:hover { border-color: var(--on-ink-3); }
.cart-count {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--red); color: #fff; font-family: var(--font-ui); font-weight: 700; font-size: .78rem; line-height: 20px; text-align: center;
  box-shadow: 0 0 0 2px var(--ink);
}
.cart-count[hidden] { display: none; }
.site-header .menu-btn { margin-left: 0; }
@media (min-width: 900px) { .cart-btn { margin-left: 0; order: 3; } .header-call { order: 2; } }

.row-btns { display: flex; gap: .4rem; }
.btn-icon { width: 40px; padding: 0; }
.btn.added { animation: pop .35s var(--ease); }
@keyframes pop { 40% { transform: scale(1.08); } }

/* quantity stepper */
.qty { display: inline-flex; align-items: stretch; border: 1.5px solid var(--line-2); border-radius: var(--radius); background: var(--white); height: 44px; }
.qty button { width: 40px; border: 0; background: none; font-size: 1.25rem; line-height: 1; cursor: pointer; color: var(--text); }
.qty button:hover { background: var(--paper); }
.qty input { width: 44px; border: 0; text-align: center; font-family: var(--font-ui); font-weight: 700; font-size: 1.05rem; background: transparent; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { outline: 2px solid var(--red); outline-offset: -2px; }
.lines .qty { height: 36px; }
.lines .qty button { width: 34px; }
.lines .qty input { width: 36px; font-size: .98rem; }
.buy-row { display: grid; grid-template-columns: auto 1fr; gap: .5rem; }
.buy-row .btn { min-height: 44px; }

/* drawer */
dialog.drawer {
  margin: 0 0 0 auto; width: min(440px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; padding: 0; border: 0;
  background: var(--paper); color: var(--text); display: none; flex-direction: column; box-shadow: -10px 0 40px oklch(0 0 0 / .3);
}
dialog.drawer[open] { display: flex; animation: drawer-in .3s var(--ease) both; }
dialog.drawer::backdrop { background: oklch(0 0 0 / .5); }
@keyframes drawer-in { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 1rem var(--gutter); border-bottom: 1px solid var(--line); background: var(--white); }
.drawer-head h2 { font-size: 1.35rem; }
.drawer-x { width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--white); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.drawer-body { flex: 1; overflow-y: auto; padding: .25rem var(--gutter) 1rem; }
.drawer-foot { padding: 1rem var(--gutter) calc(1rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--white); display: grid; gap: .6rem; }
.drawer-foot:empty { display: none; }
.cart-empty { padding: 3rem 0; display: grid; gap: 1rem; justify-items: start; color: var(--text-2); }

/* cart lines (drawer, checkout, confirmation) */
.lines { list-style: none; padding: 0; }
.line { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .75rem; align-items: start; padding-block: .9rem; border-bottom: 1px solid var(--line); }
.line .prod-photo, .line .prod-logo { width: 56px; height: 64px; }
.line-name { display: block; font-weight: 600; line-height: 1.3; color: var(--text); text-decoration: none; }
a.line-name:hover { text-decoration: underline; }
.line-meta { font-size: .9rem; color: var(--text-3); margin-top: .15rem; }
.line-actions { display: flex; align-items: center; gap: .75rem; margin-top: .5rem; }
.line-total { font-family: var(--font-ui); font-weight: 700; font-size: 1.1rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.link-btn { border: 0; background: none; padding: .25rem 0; color: var(--text-3); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: .92rem; }
.link-btn:hover { color: var(--red-text); }
.sum { display: grid; gap: .4rem; padding-top: .9rem; }
.sum-row { display: flex; justify-content: space-between; gap: 1rem; font-family: var(--font-ui); font-size: 1.05rem; color: var(--text-2); }
.sum-row b { color: var(--text); font-size: 1.3rem; }
.sum-row.total { padding-top: .6rem; margin-top: .3rem; border-top: 1px solid var(--line); color: var(--text); font-weight: 700; }

/* checkout */
.co-shell { display: grid; gap: 2rem; padding-block: 1.5rem 3rem; }
.co-summary { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.1rem; }
.co-summary h2 { font-size: 1.25rem; }
.choices-3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .choices-3 { grid-template-columns: repeat(3, 1fr); } }
.pay-options { display: grid; gap: .5rem; }
.choice.is-disabled span { opacity: .55; background: var(--paper); }
.choice.is-disabled input { cursor: not-allowed; }
.co-form [data-when][hidden] { display: none; }
@media (min-width: 900px) {
  .co-shell { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); grid-template-areas: "form summary"; gap: 3rem; padding-block: 2.5rem 5rem; align-items: start; }
  .co-form { grid-area: form; }
  .co-summary { grid-area: summary; position: sticky; top: calc(var(--header-h) + 1.25rem); padding: 1.5rem; }
}

/* confirmation */
.conf { display: grid; gap: 1.25rem; max-width: 900px; }
.conf h1 { color: var(--text); }
.conf-grid { display: grid; gap: 1rem; }
@media (min-width: 900px) { .conf-grid { grid-template-columns: 1.4fr 1fr; } }

/* toast action */
.toast { display: flex; align-items: center; gap: 1rem; }
.toast.show { pointer-events: auto; }
.toast button { border: 0; background: var(--red); color: #fff; font-family: var(--font-ui); font-weight: 700; padding: .4rem .75rem; border-radius: 4px; cursor: pointer; white-space: nowrap; }
body.is-checkout .action-bar { display: none; }
body.is-checkout { padding-bottom: 0; }

/* sale prices, stock states, promo */
.price.sale { color: var(--red-text); }
.price s { margin-left: .4rem; font-size: .7em; font-weight: 600; color: var(--text-3); }
.price.sale small { color: var(--red-text); }
.line-meta s { color: var(--text-3); margin-left: .25rem; }
.stock.out { color: var(--text-3); }
.stock.out::before { background: var(--text-3); }
.stock.low { color: oklch(0.55 0.15 60); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.line-warn, .notice { font-size: .9rem; color: var(--red-text); }
.notice { padding: .7rem .85rem; margin-bottom: .75rem; border: 1px solid oklch(0.85 0.06 25); background: oklch(0.97 0.02 25); border-radius: var(--radius); }
.sum-row.discount { color: var(--ok); }
.promo-row { display: grid; grid-template-columns: 1fr auto; gap: .5rem; }
.promo-row input { text-transform: uppercase; }
.promo-msg { font-size: .92rem; min-height: 1.2em; }
.promo-msg.ok { color: var(--ok); }
.promo-msg.bad { color: var(--red-text); }
.is-loading .sum { opacity: .55; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
