/* ═══════════════════════════════════════════
   RC CARS — Premium Dark Theme
   ═══════════════════════════════════════════ */

/* ── Design Tokens ──────────────────────── */
:root {
  /* Palette — dark-first */
  --bg-primary:    #0a0a0f;
  --bg-surface:    #111118;
  --bg-elevated:   #18182200;
  --bg-card:       rgba(255,255,255,.03);
  --bg-card-hover: rgba(255,255,255,.06);
  --glass-border:  rgba(255,255,255,.07);
  --glass-border-hover: rgba(232,113,42,.25);

  /* Accent */
  --accent:       #e8712a;
  --accent-light: #f5944f;
  --accent-dark:  #c85a18;
  --accent-glow:  rgba(232,113,42,.18);

  /* Text */
  --text:          #f0ede8;
  --text-secondary: rgba(255,255,255,.5);
  --text-muted:    rgba(255,255,255,.3);
  --text-dark:     #111;

  /* Functional */
  --green:  #4ade80;
  --blue:   #60a5fa;
  --red:    #f87171;

  /* Spacing (8px base) */
  --sp-1: 8px;   --sp-2: 16px;  --sp-3: 24px;
  --sp-4: 32px;  --sp-5: 40px;  --sp-6: 48px;
  --sp-7: 56px;  --sp-8: 64px;  --sp-10: 80px;
  --sp-12: 96px; --sp-16: 128px;

  /* Shape */
  --radius:      12px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --radius-pill:  999px;

  /* Effects */
  --shadow-sm:  0 2px 8px rgba(0,0,0,.3);
  --shadow-md:  0 8px 32px rgba(0,0,0,.4);
  --shadow-lg:  0 16px 64px rgba(0,0,0,.5);
  --shadow-glow: 0 0 40px var(--accent-glow);
  --blur:       blur(20px);
  --transition:  .35s cubic-bezier(.4,0,.2,1);

  --header-h: 72px;
}

/* ── Reset ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; overflow-x: hidden; }
body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--bg-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
h1,h2,h3,h4,h5,h6 {
  font-family: 'Outfit', sans-serif;
  line-height: 1.1;
  letter-spacing: -.02em;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }
.container { width: 100%; max-width: 1300px; margin: 0 auto; padding: 0 var(--sp-3); }

/* ── Selection / highlight ── */
::selection { background: rgba(232,113,42,.35); color: #fff; }
::-moz-selection { background: rgba(232,113,42,.35); color: #fff; }

/* ── Custom Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.1); border-radius: 4px;
  border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover { background: rgba(232,113,42,.4); }

/* ── Grain Overlay (hidden on mobile for perf) ── */
.grain {
  position: fixed; inset: 0; z-index: 9999;
  pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px 180px;
}
@media (max-width: 768px) { .grain { display: none; } }

/* ── Scroll Progress Bar ── */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-light));
  z-index: 9998; width: 0%; transition: width .15s linear;
  box-shadow: 0 0 12px var(--accent-glow);
}

/* ══════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'Outfit', sans-serif; font-weight: 600; font-size: .88rem;
  padding: 13px 30px; border-radius: var(--radius-pill);
  transition: var(--transition); white-space: nowrap;
  position: relative; overflow: hidden;
  letter-spacing: .01em;
}
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.1), transparent);
  opacity: 0; transition: opacity .3s;
}
.btn:hover::after { opacity: 1; }

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(232,113,42,.35);
}

.btn--outline {
  border: 1.5px solid var(--glass-border);
  color: var(--text);
  background: rgba(255,255,255,.03);
}
.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(232,113,42,.06);
}
.btn--outline-dark {
  border: 1.5px solid var(--glass-border);
  color: var(--text-secondary);
}
.btn--outline-dark:hover {
  border-color: var(--text);
  color: var(--text);
}
.btn--outline-blk {
  border: 1.5px solid rgba(255,255,255,.15);
  color: var(--text-secondary);
  font-size: .8rem; padding: 9px 22px;
}
.btn--outline-blk:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn--hero {
  background: transparent; color: #fff;
  border: 2px solid rgba(255,255,255,.4);
  font-size: 1rem; padding: 16px 56px; letter-spacing: .12em;
  text-transform: uppercase;
  background: rgba(255,255,255,.04);
}
.btn--hero:hover {
  border-color: var(--accent);
  background: rgba(232,113,42,.12);
  box-shadow: 0 0 40px var(--accent-glow);
  color: #fff;
}
.btn--orange {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn--orange:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(232,113,42,.35);
}
.btn--sm { font-size: .78rem; padding: 9px 20px; }
.btn--lg { font-size: 1rem; padding: 16px 40px; }
.btn--block { width: 100%; }

/* ══════════════════════════════════════════
   HEADER — Glass morphism
   ══════════════════════════════════════════ */
.header {
  position: fixed; top: 0; left: 0; width: 100%;
  height: var(--header-h); background: transparent;
  z-index: 900; transition: background .4s, box-shadow .4s, backdrop-filter .4s;
}
.header--scrolled {
  background: rgba(10,10,15,.92);
  box-shadow: 0 1px 0 rgba(255,255,255,.05);
}
@media (min-width: 769px) {
  .header--scrolled {
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
  }
}
.header--scrolled .logo__icon { color: #fff; }
.header--scrolled .logo__text { color: var(--text); }
.header--scrolled .logo__accent { color: var(--accent); }
.header--scrolled .nav__link { color: var(--text-secondary); }
.header--scrolled .nav__link:hover,
.header--scrolled .nav__link.active { color: #fff; background: rgba(255,255,255,.08); }
.header--scrolled .search__icon { color: var(--text-muted); }
.header--scrolled .search__input {
  border-color: rgba(255,255,255,.1);
  background: rgba(255,255,255,.05);
  color: var(--text);
}
.header--scrolled .cart-toggle { color: var(--text); }
.header--scrolled .hamburger span { background: var(--text); }

.header__inner { display: flex; align-items: center; height: 100%; gap: 32px; }

.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo__icon { display: flex; align-items: center; color: #fff; transition: color .3s; }
.logo__text {
  font-family: 'Russo One', 'Outfit', sans-serif;
  font-weight: 400; font-size: 1.6rem;
  color: #fff; transition: color .3s; letter-spacing: .04em; line-height: 1;
}
.logo__accent {
  font-family: 'Outfit', sans-serif;
  font-weight: 800; font-style: italic;
  color: var(--accent); font-size: 1.65rem; margin-left: 3px;
}

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav__link {
  font-size: .82rem; font-weight: 500; padding: 8px 16px;
  border-radius: var(--radius-pill); transition: var(--transition);
  color: rgba(255,255,255,.6); letter-spacing: .02em;
}
.nav__link:hover, .nav__link.active { color: #fff; background: rgba(255,255,255,.1); }

.header__actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.search { position: relative; display: flex; align-items: center; }
.search__icon {
  position: absolute; left: 12px;
  color: rgba(255,255,255,.4); pointer-events: none; transition: color .3s;
}
.search__input {
  width: 180px; padding: 9px 14px 9px 36px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05); font-size: .82rem;
  transition: var(--transition); color: #fff;
}
.search__input::placeholder { color: rgba(255,255,255,.3); }
.search__input:focus {
  outline: none; border-color: var(--accent);
  width: 230px; background: rgba(255,255,255,.08);
  box-shadow: 0 0 20px var(--accent-glow);
}

.cart-toggle { position: relative; padding: 8px; color: #fff; transition: color .3s; }
.cart-toggle__count {
  position: absolute; top: 0; right: -4px; width: 18px; height: 18px;
  background: var(--accent); color: #fff; font-size: .62rem; font-weight: 700;
  border-radius: 50%; display: grid; place-items: center;
  box-shadow: 0 2px 8px var(--accent-glow);
}

.hamburger { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.hamburger span {
  width: 22px; height: 2px; background: #fff;
  border-radius: 2px; transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: absolute; top: var(--header-h); left: 0; width: 100%;
  background: rgba(10,10,15,.97);
  border-bottom: 1px solid var(--glass-border);
  display: none; flex-direction: column; padding: 16px var(--sp-3) 24px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 12px 0; font-weight: 500; font-size: .95rem;
  color: var(--text-secondary); transition: color .2s;
}
.mobile-nav a:hover { color: var(--accent); }

/* ══════════════════════════════════════════
   HERO — Cinematic video grid
   ══════════════════════════════════════════ */
.hero { position: relative; overflow: hidden; background: #050508; }
.hero__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  height: 100vh; height: 100dvh; min-height: 500px;
}
.hero__cell { position: relative; overflow: hidden; contain: layout style paint; }

/* ── Shimmer placeholder while video loads ── */
.hero__cell--shimmer {
  background: linear-gradient(110deg, #0a0a12 0%, #0a0a12 40%, #14141f 50%, #0a0a12 60%, #0a0a12 100%);
  background-size: 200% 100%;
  animation: heroShimmer 1.8s ease-in-out infinite;
}
.hero__cell--shimmer.loaded { animation: none; background: #050508; }
@keyframes heroShimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.hero__vid {
  width: 100%; height: 100%; object-fit: cover;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  transform: translateZ(0) scale(1.05);
  image-rendering: auto;
  pointer-events: none; filter: saturate(1.1);
  opacity: 0; transition: opacity .6s ease;
  contain: strict;
}
.hero__vid.hero__vid--loaded { opacity: 1; }
.hero__cell-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5,5,8,.3) 0%,
    rgba(5,5,8,.5) 50%,
    rgba(5,5,8,.7) 100%
  );
  contain: strict;
}
.hero__cell + .hero__cell { border-left: 1px solid rgba(255,255,255,.06); }
.hero__cell-label { display: none !important; }

.hero__content {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; z-index: 2; padding: var(--sp-6) var(--sp-3);
  pointer-events: none;
}
.hero__content > * { pointer-events: auto; }

.hero__title, .hero__subtitle {
  font-family: 'Outfit', sans-serif; font-weight: 900;
  color: #fff; text-transform: uppercase;
}
.hero__title {
  font-size: clamp(2.4rem, 6.5vw, 5.5rem);
  margin-bottom: var(--sp-3);
  text-shadow: 0 4px 40px rgba(0,0,0,.5);
}
.hero__subtitle {
  font-size: clamp(2.4rem, 6.5vw, 5.5rem);
  margin-top: var(--sp-3);
  text-shadow: 0 4px 40px rgba(0,0,0,.5);
}
.hero__line { display: block; letter-spacing: .2em; }

/* Animated reveal for hero lines */
.hero__line {
  animation: heroReveal .9s cubic-bezier(.16,1,.3,1) backwards;
}
.hero__title .hero__line:nth-child(1) { animation-delay: .2s; }
.hero__title .hero__line:nth-child(2) { animation-delay: .4s; }
.hero__subtitle .hero__line:nth-child(1) { animation-delay: .6s; }
.hero__subtitle .hero__line:nth-child(2) { animation-delay: .8s; }
@keyframes heroReveal {
  from { opacity: 0; transform: translateY(30px); filter: blur(6px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

/* Hero scroll indicator */
.hero__scroll-hint {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,.35); font-size: .68rem; letter-spacing: .15em;
  text-transform: uppercase; font-weight: 500;
  animation: scrollHintFloat 2s ease-in-out infinite;
}
.hero__scroll-hint span {
  width: 1px; height: 32px;
  background: linear-gradient(180deg, rgba(255,255,255,.4), transparent);
}
@keyframes scrollHintFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* ══════════════════════════════════════════
   SECTIONS — Global
   ══════════════════════════════════════════ */
.section { padding: var(--sp-12) 0; }
.section--light  { background: var(--bg-surface); }
.section--white  { background: var(--bg-primary); }
.section--neutral { background: var(--bg-elevated); }
.section--dark   { background: #050508; color: #fff; }
.section__head   { text-align: center; margin-bottom: var(--sp-8); }
.section__label {
  display: inline-block; font-size: .7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .16em;
  color: var(--accent); margin-bottom: var(--sp-1);
}
.section__label--light { color: var(--accent-light); }
.section__title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900; color: var(--text);
  letter-spacing: -.03em;
}
.section__title--accent {
  background: linear-gradient(135deg, var(--accent) 20%, var(--accent-light) 80%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Arrivals heading — editorial mixed typography ── */
.arrivals-heading {
  display: flex; align-items: baseline; justify-content: center; gap: 14px;
  margin-bottom: 4px;
}
.arrivals-heading__thin {
  font-family: 'Outfit', sans-serif;
  font-weight: 300; font-size: clamp(2.4rem, 5vw, 4rem);
  color: var(--text-secondary);
  letter-spacing: .06em; text-transform: uppercase;
}
.arrivals-heading__serif {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900; font-style: italic;
  font-size: clamp(2.8rem, 5.5vw, 4.6rem);
  background: linear-gradient(135deg, var(--accent) 10%, var(--accent-light) 90%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.section__sub {
  color: var(--text-secondary); max-width: 540px;
  margin: var(--sp-2) auto 0; font-size: .92rem;
}
.section__cta { text-align: center; margin-top: var(--sp-6); }

/* ══════════════════════════════════════════
   NEW ARRIVALS — Infinite Ticker
   ══════════════════════════════════════════ */
.ticker {
  overflow: hidden;
  padding: var(--sp-2) 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker__track {
  display: flex; gap: 28px;
  width: max-content;
  animation: tickerScroll var(--ticker-duration, 40s) linear infinite;
}
.ticker:hover .ticker__track {
  animation-play-state: paused;
}
@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Product slide card — Glass dark ─── */
.product-slide {
  flex: 0 0 320px;
  background: transparent; text-align: center;
  cursor: pointer;
  transition: transform .45s cubic-bezier(.25,.46,.45,.94), box-shadow .45s;
}
@media (hover: hover) { .product-slide:hover { transform: translateY(-8px) scale(1.02); } }
.product-slide__img {
  height: 400px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  display: grid; place-items: center;
  overflow: hidden; position: relative;
  border-radius: var(--radius-lg);
  transition: border-color .3s;
  contain: content;
}
@media (hover: hover) {
  .product-slide:hover .product-slide__img {
    border-color: var(--glass-border-hover);
  }
  /* Shine sweep on hover */
  .product-slide__img::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.06) 45%, rgba(255,255,255,.12) 50%, rgba(255,255,255,.06) 55%, transparent 60%);
    transform: translateX(-150%);
    transition: transform .6s ease;
    z-index: 2; pointer-events: none;
  }
  .product-slide:hover .product-slide__img::after {
    transform: translateX(150%);
  }
}
.product-slide__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s cubic-bezier(.25,.46,.45,.94);
}
@media (hover: hover) { .product-slide:hover .product-slide__img img { transform: scale(1.05); } }
.product-slide__img svg { opacity: .06; width: 120px; height: 120px; }
.product-slide__badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--accent); color: #fff;
  font-size: .62rem; font-weight: 700;
  padding: 4px 12px; border-radius: var(--radius-pill);
  text-transform: uppercase; letter-spacing: .06em;
  box-shadow: 0 4px 12px var(--accent-glow);
}
.product-slide__body { padding: 20px 8px 8px; }
.product-slide__name { display: none; }
.product-slide__price {
  font-size: 1.1rem; font-weight: 700; color: var(--text);
}
.product-slide__price del {
  font-weight: 500; font-size: .92rem; color: var(--accent);
  margin-right: 8px; text-decoration: line-through;
}
.product-slide__gst {
  font-size: .75rem; color: var(--text-muted);
  margin-top: 4px; text-decoration: underline; font-style: italic;
}
.product-slide__stock { display: none; }
.product-slide__action { display: none; }

/* ══════════════════════════════════════════
   GALLERY — Cinematic race cards
   ══════════════════════════════════════════ */
.types-section { padding: 0; }
.types-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }

.race-card {
  position: relative; overflow: hidden;
  min-height: 480px;
  display: flex; align-items: flex-end;
  text-decoration: none; color: #fff;
  cursor: pointer;
}

/* Full-bleed background image */
.race-card__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.55) saturate(1.2);
  transition: transform .5s ease;
}
@media (hover: hover) {
  .race-card:hover .race-card__bg {
    transform: scale(1.06);
  }
}

/* Diagonal racing stripe accent — desktop only */
.race-card__stripe {
  position: absolute; top: 0; right: -30%; bottom: 0;
  width: 40%;
  background: var(--stripe-color, #e8712a);
  opacity: 0; transform: skewX(-12deg);
  mix-blend-mode: soft-light;
  z-index: 1;
  display: none;
}
@media (hover: hover) {
  .race-card__stripe {
    display: block;
    transition: opacity .5s, right .5s ease;
  }
  .race-card:hover .race-card__stripe {
    opacity: .35; right: -10%;
  }
}

/* Bottom gradient overlay */
.race-card::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    180deg,
    transparent 30%,
    rgba(0,0,0,.4) 60%,
    rgba(0,0,0,.85) 100%
  );
  transition: background .4s;
}
.race-card:hover::before {
  background: linear-gradient(
    180deg,
    transparent 20%,
    rgba(0,0,0,.3) 50%,
    rgba(0,0,0,.8) 100%
  );
}

/* Content pinned bottom-left */
.race-card__content {
  position: relative; z-index: 2;
  padding: var(--sp-5) var(--sp-5) var(--sp-4);
  display: flex; flex-direction: column; gap: 10px;
}

/* Tag pill */
.race-card__tag {
  display: inline-flex; align-self: flex-start;
  padding: 4px 14px; border-radius: var(--radius-pill);
  font-family: 'Outfit', sans-serif;
  font-weight: 700; font-size: .68rem;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--tag-color, #e8712a);
  border: 1px solid var(--tag-color, #e8712a);
  background: rgba(0,0,0,.45);
}

/* Big title — Playfair serif for italic subtitle */
.race-card__title {
  font-family: 'Outfit', sans-serif; font-weight: 900;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: .95; text-transform: uppercase;
  letter-spacing: -.02em;
  text-shadow: 0 4px 30px rgba(0,0,0,.6);
}
.race-card__title em {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic; font-weight: 700;
  text-transform: none;
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  display: block; margin-top: 2px;
  opacity: .8;
}

/* Explore CTA */
.race-card__cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600; font-size: .82rem;
  text-transform: uppercase; letter-spacing: .12em;
  color: rgba(255,255,255,.65);
}
@media (hover: hover) {
  .race-card__cta {
    color: rgba(255,255,255,.5);
    transition: color .3s, transform .3s;
  }
  .race-card__cta svg { transition: transform .3s; }
  .race-card:hover .race-card__cta {
    color: #fff; transform: translateX(4px);
  }
  .race-card:hover .race-card__cta svg {
    transform: translateX(6px);
  }
}

/* Thin separator lines between cards */
.race-card + .race-card { border-left: 1px solid rgba(255,255,255,.06); }
.race-card:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.06); }
.race-card:nth-child(3) { border-left: none; }

/* ══════════════════════════════════════════
   CART DRAWER — Dark glass
   ══════════════════════════════════════════ */
.drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6); backdrop-filter: blur(4px);
  z-index: 1000; opacity: 0; pointer-events: none; transition: opacity .35s;
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; top: 0; right: -440px; width: 420px; max-width: 92vw;
  height: 100vh;
  background: rgba(15,15,22,.95);
  backdrop-filter: blur(32px);
  border-left: 1px solid var(--glass-border);
  z-index: 1001;
  display: flex; flex-direction: column;
  transition: right .4s cubic-bezier(.4,0,.2,1);
  box-shadow: -8px 0 40px rgba(0,0,0,.4);
}
.cart-drawer.open { right: 0; }
.drawer__header {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--sp-3); border-bottom: 1px solid var(--glass-border);
}
.drawer__header h3 {
  font-size: 1.1rem; display: flex; align-items: center; gap: 10px;
  color: var(--text);
}
.drawer__badge {
  font-size: .68rem; background: var(--accent); color: #fff;
  padding: 3px 10px; border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px var(--accent-glow);
}
.drawer__close { color: var(--text-secondary); padding: 4px; transition: color .2s; }
.drawer__close:hover { color: var(--accent); }
.drawer__body { flex: 1; overflow-y: auto; padding: var(--sp-2) var(--sp-3); }
.drawer__empty { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.drawer__item {
  display: flex; gap: 14px; padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.drawer__item-img {
  width: 64px; height: 64px;
  background: var(--bg-card); border: 1px solid var(--glass-border);
  border-radius: var(--radius); display: grid; place-items: center;
  flex-shrink: 0; overflow: hidden;
}
.drawer__item-img img { width: 100%; height: 100%; object-fit: cover; }
.drawer__item-info { flex: 1; }
.drawer__item-title { font-weight: 600; font-size: .85rem; margin-bottom: 2px; color: var(--text); }
.drawer__item-price { font-size: .82rem; color: var(--text-secondary); }
.drawer__item-qty { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.drawer__item-qty button {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--bg-card);
  display: grid; place-items: center; font-size: .88rem;
  color: var(--text); transition: var(--transition);
}
.drawer__item-qty button:hover { border-color: var(--accent); color: var(--accent); }
.drawer__item-qty span { font-weight: 600; font-size: .85rem; min-width: 18px; text-align: center; }
.drawer__item-remove {
  font-size: .72rem; color: var(--red); margin-top: 6px;
  cursor: pointer; background: none; border: none; transition: opacity .2s;
}
.drawer__item-remove:hover { opacity: .7; }
.drawer__footer { padding: var(--sp-3); border-top: 1px solid var(--glass-border); }
.drawer__totals {
  display: flex; justify-content: space-between;
  font-weight: 700; font-size: 1.05rem; margin-bottom: 6px; color: var(--text);
}
.drawer__shipping-note { font-size: .72rem; color: var(--text-muted); margin-bottom: 16px; }

/* ══════════════════════════════════════════
   CATEGORIES — Horizontal snap-scroll showcase
   ══════════════════════════════════════════ */
.cat-showcase {
  padding: var(--sp-10) 0 var(--sp-8);
  background: var(--bg-primary);
  overflow: hidden;
}

/* Section heading — same editorial style */
.cat-showcase__header {
  padding: 0 var(--sp-6);
  margin-bottom: var(--sp-5);
}
.cat-showcase__heading {
  display: flex; align-items: baseline; gap: .4em;
}
.cat-showcase__thin {
  font-family: 'Outfit', sans-serif;
  font-weight: 300; font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: .08em;
}
.cat-showcase__serif {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900; font-style: italic;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cat-showcase__sub {
  font-family: 'Outfit', sans-serif;
  font-size: .82rem; color: rgba(255,255,255,.25);
  text-transform: uppercase; letter-spacing: .15em;
  margin-top: 6px;
}

/* Horizontal scrollable strip */
.cat-showcase__strip {
  display: flex; gap: 16px;
  padding: 0 var(--sp-6);
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  overscroll-behavior-x: contain;
}
.cat-showcase__strip::-webkit-scrollbar { display: none; }
.cat-showcase__strip:active { cursor: grabbing; }

/* Individual tall card */
.cat-card {
  flex: 0 0 320px; height: 480px;
  position: relative; overflow: hidden;
  border-radius: 16px;
  scroll-snap-align: start;
  text-decoration: none; color: #fff;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  transition: flex .45s cubic-bezier(.25,.46,.45,.94);
}
@media (hover: hover) { .cat-card:hover { flex: 0 0 380px; } }

/* Full-bleed background image */
.cat-card__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.5) saturate(1.15);
  transition: transform .5s ease;
}
@media (hover: hover) {
  .cat-card:hover .cat-card__bg {
    transform: scale(1.08);
  }
}

/* Dark gradient overlay */
.cat-card::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    180deg,
    transparent 25%,
    rgba(0,0,0,.3) 55%,
    rgba(0,0,0,.88) 100%
  );
}

/* Accent color glow on bottom edge */
.cat-card::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 0; height: 3px;
  background: var(--card-accent, var(--accent));
  opacity: 0; transition: opacity .4s;
  z-index: 3;
}
.cat-card:hover::after { opacity: 1; }

/* Content overlay */
.cat-card__content {
  position: relative; z-index: 2;
  padding: var(--sp-4);
  display: flex; flex-direction: column; gap: 8px;
}

/* Index number (01, 02, etc.) */
.cat-card__idx {
  font-family: 'Outfit', sans-serif;
  font-weight: 800; font-size: .72rem;
  color: var(--card-accent, var(--accent));
  letter-spacing: .15em;
  text-transform: uppercase;
  opacity: .7;
}

/* Card title */
.cat-card__name {
  font-family: 'Outfit', sans-serif;
  font-weight: 900; font-size: 1.7rem;
  line-height: 1; text-transform: uppercase;
  letter-spacing: -.01em;
}
.cat-card__sub {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700; font-style: italic;
  font-size: 1.15rem; opacity: .7;
  margin-top: -2px;
}

/* CTA — visible on mobile, slides up on desktop hover */
.cat-card__cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600; font-size: .75rem;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--card-accent, var(--accent));
  margin-top: 4px;
}
@media (hover: hover) {
  .cat-card__cta {
    opacity: 0; transform: translateY(12px);
    transition: opacity .3s .1s, transform .3s .1s;
  }
  .cat-card__cta svg { transition: transform .3s; }
  .cat-card:hover .cat-card__cta {
    opacity: 1; transform: translateY(0);
  }
  .cat-card:hover .cat-card__cta svg {
    transform: translateX(4px);
  }
}

/* ══════════════════════════════════════════
   SPARE PARTS MARQUEE
   ══════════════════════════════════════════ */
.spare-section { padding: var(--sp-6) 0 var(--sp-3); background: var(--bg-primary); }
.spare-section__tagline {
  text-align: center; font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 400; color: var(--text-secondary); margin-bottom: var(--sp-4);
}
.spare-section__tagline strong { font-weight: 800; color: var(--accent); }
.spare-section__cta { text-align: center; padding: var(--sp-4) 0 var(--sp-3); }
.parts-marquee { overflow: hidden; white-space: nowrap; padding: 10px 0; }
.parts-marquee__track {
  display: inline-flex; gap: 36px; animation: marquee 22s linear infinite;
}
.parts-marquee__item {
  display: flex; flex-direction: column; align-items: center; gap: 10px; flex-shrink: 0;
}
.parts-marquee__circle {
  width: 120px; height: 120px; border-radius: 50%;
  background: rgba(232,113,42,.12);
  border: 1px solid rgba(232,113,42,.2);
  display: grid; place-items: center; transition: var(--transition);
}
.parts-marquee__circle:hover {
  background: rgba(232,113,42,.2);
  transform: scale(1.08); box-shadow: 0 0 24px var(--accent-glow);
}
.parts-marquee__label { font-size: .75rem; color: var(--text-secondary); font-weight: 600; }
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ══════════════════════════════════════════
   ALL PRODUCTS GRID
   ══════════════════════════════════════════ */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: var(--sp-3);
}
.product-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .4s, box-shadow .4s, border-color .4s;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 48px rgba(0,0,0,.4);
  border-color: var(--glass-border-hover);
}
.product-card__img {
  height: 240px; background: var(--bg-surface);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.product-card__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .55s cubic-bezier(.25,.46,.45,.94);
}
.product-card:hover .product-card__img img { transform: scale(1.08); }
.product-card__badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--accent); color: #fff;
  font-size: .62rem; font-weight: 700;
  padding: 4px 12px; border-radius: var(--radius-pill);
  text-transform: uppercase; letter-spacing: .06em;
  box-shadow: 0 4px 12px var(--accent-glow);
}
.product-card__body { padding: var(--sp-3); }
.product-card__cat {
  font-size: .68rem; text-transform: uppercase;
  letter-spacing: .12em; color: var(--accent); margin-bottom: 6px;
}
.product-card__name {
  font-weight: 700; font-size: .95rem; margin-bottom: 8px; color: var(--text);
}
.product-card__price { font-size: 1.1rem; font-weight: 800; color: var(--text); }
.product-card__price del {
  font-weight: 400; font-size: .82rem; color: var(--text-muted); margin-left: 8px;
}
.product-card__foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: var(--sp-2);
}

/* ══════════════════════════════════════════
   BRAND STORY
   ══════════════════════════════════════════ */
.brand-story { position: relative; overflow: hidden; }
.brand-story__inner { max-width: 720px; margin: 0 auto; text-align: center; }
.brand-story__heading {
  font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 800;
  margin-bottom: var(--sp-3); color: var(--text);
}
.brand-story__text {
  color: var(--text-secondary); font-size: .95rem;
  line-height: 1.8; margin-bottom: var(--sp-5);
}
.brand-story__stats { display: flex; justify-content: center; gap: var(--sp-8); flex-wrap: wrap; }
.stat { text-align: center; }
.stat__number {
  display: block; font-size: 2rem; font-weight: 800;
  font-family: 'Outfit', sans-serif; color: var(--accent);
}
.stat__label {
  font-size: .72rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .12em;
}

/* ══════════════════════════════════════════
   COMMUNITY
   ══════════════════════════════════════════ */
.community-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.community-card {
  background: var(--bg-card); border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); overflow: hidden; transition: transform .4s;
}
.community-card:hover { transform: translateY(-4px); }
.community-card--wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
.community-card__img { min-height: 180px; display: grid; place-items: center; background: var(--bg-surface); }
.community-card__content { padding: var(--sp-3); display: flex; flex-direction: column; justify-content: center; }
.community-card__content h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--text); }
.community-card__content p { font-size: .85rem; color: var(--text-secondary); }

/* ══════════════════════════════════════════
   QUOTES CAROUSEL
   ══════════════════════════════════════════ */
.quotes-section { padding: var(--sp-10) 0; background: var(--bg-surface); }
.quotes-carousel { display: flex; align-items: center; gap: 24px; }
.quotes-carousel__arrow {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%;
  background: var(--bg-card); border: 1px solid var(--glass-border);
  display: grid; place-items: center;
  transition: var(--transition); color: var(--text-secondary);
}
.quotes-carousel__arrow:hover {
  background: var(--accent); color: #fff; border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}
.quotes-carousel__body {
  flex: 1; text-align: center; min-height: 120px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.quotes-carousel__text {
  font-family: 'Outfit', sans-serif; font-size: clamp(1.1rem, 2.5vw, 1.7rem);
  font-weight: 600; font-style: italic; color: var(--text);
  line-height: 1.5; max-width: 700px;
}
.quotes-carousel__author {
  margin-top: 14px; font-size: .82rem; color: var(--accent); font-weight: 500;
}
.quotes-carousel__dots { display: flex; justify-content: center; gap: 10px; margin-top: var(--sp-3); }
.quotes-carousel__dots .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.1); cursor: pointer; transition: var(--transition);
}
.quotes-carousel__dots .dot.active {
  background: var(--accent); transform: scale(1.4);
  box-shadow: 0 0 12px var(--accent-glow);
}

/* ══════════════════════════════════════════
   FOOTER — Dark premium
   ══════════════════════════════════════════ */
.footer {
  background: #08080d; color: var(--text);
  padding: var(--sp-10) 0 0;
  border-top: none;
  position: relative;
}
.footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent 5%, var(--accent-dark), var(--accent), var(--accent-light), var(--accent-dark), transparent 95%);
}
.footer::after {
  content: ''; position: absolute; top: 0; left: 50%; width: 400px; height: 60px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(232,113,42,.12), transparent 70%);
  pointer-events: none;
}
.footer__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5);
  padding-bottom: var(--sp-5);
}
.footer__col { display: flex; flex-direction: column; }
.footer__icon-wrap {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(232,113,42,.1);
  border: 1px solid rgba(232,113,42,.15);
  display: grid; place-items: center; margin-bottom: 14px;
  color: var(--accent);
}
.footer__col h4 {
  font-family: 'Outfit', sans-serif; font-weight: 700;
  font-size: 1rem; margin-bottom: 10px; color: var(--text);
}
.footer__col p { font-size: .85rem; color: var(--text-secondary); line-height: 1.7; }
.social { display: flex; gap: 12px; margin-top: 10px; margin-bottom: 24px; }
.social a {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--glass-border);
  display: grid; place-items: center;
  transition: var(--transition); color: var(--text-secondary);
}
.social a:hover {
  background: var(--accent); border-color: var(--accent);
  color: #fff; box-shadow: 0 4px 16px var(--accent-glow);
}
.footer__links { display: flex; flex-direction: column; gap: 8px; }
.footer__links a { font-size: .8rem; color: var(--text-muted); transition: color .25s; }
.footer__links a:hover { color: var(--accent); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.05);
  padding: var(--sp-3) 0; text-align: center;
  font-size: .75rem; color: var(--text-muted);
}

/* ══════════════════════════════════════════
   CHECKOUT — Dark glass
   ══════════════════════════════════════════ */
.page-section {
  padding: calc(var(--header-h) + 48px) 0 var(--sp-10);
  min-height: 100vh; background: var(--bg-primary);
}
.page-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: var(--sp-4); flex-wrap: wrap; gap: var(--sp-2);
}
.page-head h1 { font-size: 1.8rem; color: var(--text); }
.checkout { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--sp-4); align-items: start; }
.checkout__card {
  background: var(--bg-card); backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); padding: var(--sp-4);
}
.checkout__card--sticky { position: sticky; top: calc(var(--header-h) + 24px); }
.checkout__card h2 { font-size: 1.1rem; margin-bottom: var(--sp-3); color: var(--text); }
.co-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
.co-form__group { margin-bottom: var(--sp-2); }
.co-form__group label {
  display: block; font-size: .78rem; font-weight: 600;
  margin-bottom: 6px; color: var(--text-secondary);
}
.co-form__group input,
.co-form__group textarea {
  width: 100%; padding: 12px 16px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.04);
  color: var(--text); font-size: .88rem; transition: var(--transition);
}
.co-form__group input::placeholder,
.co-form__group textarea::placeholder { color: var(--text-muted); }
.co-form__group input:focus,
.co-form__group textarea:focus {
  border-color: var(--accent); outline: none;
  box-shadow: 0 0 16px var(--accent-glow);
  background: rgba(255,255,255,.06);
}
.co-form__note { font-size: .72rem; color: var(--text-muted); text-align: center; margin-top: 14px; }
.divider { height: 1px; background: var(--glass-border); margin: var(--sp-2) 0; }
.summary-row {
  display: flex; justify-content: space-between;
  padding: 8px 0; font-size: .9rem; color: var(--text-secondary);
}
.summary-row--total { font-weight: 800; font-size: 1.15rem; padding-top: 14px; color: var(--text); }
.checkout-item {
  display: flex; gap: 14px; padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.checkout-item__img {
  width: 52px; height: 52px;
  background: var(--bg-surface); border: 1px solid var(--glass-border);
  border-radius: var(--radius); display: grid; place-items: center;
  flex-shrink: 0; overflow: hidden;
}
.checkout-item__info { flex: 1; }
.checkout-item__name { font-weight: 600; font-size: .82rem; color: var(--text); }
.checkout-item__meta { font-size: .75rem; color: var(--text-muted); }

/* ══════════════════════════════════════════
   UTILITY
   ══════════════════════════════════════════ */

/* Back to top */
.btt {
  position: fixed; bottom: 32px; right: 32px;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 4px 20px var(--accent-glow);
  opacity: 0; transform: translateY(12px);
  transition: var(--transition); z-index: 800;
}
.btt.show { opacity: 1; transform: translateY(0); }
.btt:hover {
  background: var(--accent-dark);
  box-shadow: 0 8px 32px rgba(232,113,42,.4);
  transform: translateY(-2px);
}

/* Toast */
#toastContainer {
  position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%);
  z-index: 2000; display: flex; flex-direction: column; gap: 10px;
}
.toast {
  background: rgba(15,15,22,.9); backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  color: var(--text); padding: 14px 28px;
  border-radius: var(--radius); font-size: .84rem;
  animation: fadeInUp .35s cubic-bezier(.16,1,.3,1);
  box-shadow: var(--shadow-lg);
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Scroll reveal — stagger support */
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity .7s cubic-bezier(.16,1,.3,1),
              transform .7s cubic-bezier(.16,1,.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.stagger-children .reveal:nth-child(1) { transition-delay: .05s; }
.stagger-children .reveal:nth-child(2) { transition-delay: .1s; }
.stagger-children .reveal:nth-child(3) { transition-delay: .15s; }
.stagger-children .reveal:nth-child(4) { transition-delay: .2s; }
.stagger-children .reveal:nth-child(5) { transition-delay: .25s; }
.stagger-children .reveal:nth-child(6) { transition-delay: .3s; }
.stagger-children .reveal:nth-child(7) { transition-delay: .35s; }
.stagger-children .reveal:nth-child(8) { transition-delay: .4s; }

/* ── Image skeleton loading ── */
.product-slide__img,
.product-card__img,
.cat-card__bg {
  background: linear-gradient(110deg, var(--bg-surface) 0%, var(--bg-surface) 40%, rgba(255,255,255,.04) 50%, var(--bg-surface) 60%, var(--bg-surface) 100%);
  background-size: 200% 100%;
  animation: imgShimmer 1.6s ease-in-out infinite;
}
.product-slide__img img[src],
.product-card__img img[src] { animation: none; }
@keyframes imgShimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* ── Ambient glow for sections ── */
.section--light::before {
  content: ''; position: absolute; top: -80px; left: 50%;
  width: 600px; height: 160px;
  background: radial-gradient(ellipse, var(--accent-glow), transparent 70%);
  transform: translateX(-50%); pointer-events: none; z-index: 0;
}
.section--light { position: relative; }

/* ── Smooth page transition ── */
.page-section { animation: pageIn .45s cubic-bezier(.16,1,.3,1); }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════
   RESPONSIVE — Mobile-first priority
   ══════════════════════════════════════════ */

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: repeat(3, 1fr); height: 100vh; height: 100dvh; min-height: 500px; }
  .hero__title, .hero__subtitle { font-size: clamp(1.8rem, 5vw, 3.5rem); }
  .cat-card { flex: 0 0 280px; height: 420px; }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .hamburger { display: flex; }
  .header__inner { gap: 12px; }
  .search__input { width: 100px; }
  .search__input:focus { width: 140px; }

  /* Hero: 2 columns on mobile — cinematic split */
  .hero__grid {
    grid-template-columns: repeat(2, 1fr);
    height: 100vh; height: 100dvh; min-height: 500px;
  }
  .hero__cell:nth-child(3) { display: none; }
  .hero__title, .hero__subtitle { font-size: clamp(1.6rem, 6vw, 2.8rem); }
  .hero__line { letter-spacing: .1em; }
  .hero__scroll-hint { bottom: 16px; }

  /* Arrivals heading tighter */
  .arrivals-heading { gap: 8px; }
  .arrivals-heading__thin { font-size: clamp(1.6rem, 4vw, 2.4rem); }
  .arrivals-heading__serif { font-size: clamp(1.8rem, 4.5vw, 2.8rem); }

  .product-slide { flex: 0 0 240px; }
  .product-slide__img { height: 300px; }

  /* Race cards — still 2-col but tighter */
  .race-card { min-height: 280px; }
  .race-card__title { font-size: clamp(1.5rem, 4vw, 2.4rem); }
  .race-card__title em { font-size: clamp(1.1rem, 3vw, 1.8rem); }
  .race-card__content { padding: var(--sp-3) var(--sp-3) var(--sp-2); gap: 6px; }

  .cat-card { flex: 0 0 240px; height: 360px; }
  .cat-card__name { font-size: 1.4rem; }
  .cat-showcase__strip { gap: 12px; padding: 0 var(--sp-3); }
  .cat-showcase__header { padding: 0 var(--sp-3); }

  /* Quotes tighter */
  .quotes-carousel { gap: 12px; }
  .quotes-carousel__arrow { width: 40px; height: 40px; }
  .quotes-carousel__text { font-size: clamp(1rem, 2.5vw, 1.3rem); }

  .footer__grid { grid-template-columns: 1fr; gap: var(--sp-4); }
  .community-grid { grid-template-columns: 1fr; }
  .community-card--wide { grid-template-columns: 1fr; }
  .checkout { grid-template-columns: 1fr; }

  .products { grid-template-columns: repeat(2, 1fr); gap: var(--sp-2); }
  .product-card__img { height: 200px; }

  /* Section spacing tighter on mobile */
  .section { padding: var(--sp-8) 0; }
  .section__head { margin-bottom: var(--sp-5); }
  .cat-showcase { padding: var(--sp-6) 0 var(--sp-5); }
}

@media (max-width: 480px) {
  .search { display: none; }

  .header__inner { gap: 8px; }
  .hero__grid { height: 100vh; height: 100dvh; min-height: 480px; }
  .hero__title, .hero__subtitle { font-size: clamp(1.3rem, 5.5vw, 2rem); }
  .hero__line { letter-spacing: .06em; }
  .btn--hero { padding: 12px 36px; font-size: .85rem; letter-spacing: .08em; }

  .product-slide { flex: 0 0 200px; }
  .product-slide__img { height: 260px; }

  /* Race cards — single column on small phones */
  .types-grid { grid-template-columns: 1fr; }
  .race-card { min-height: 260px; }
  .race-card__title { font-size: clamp(1.6rem, 5vw, 2.2rem); }
  .race-card__title em { font-size: clamp(1.1rem, 3.5vw, 1.6rem); }
  .race-card__content { padding: var(--sp-3); gap: 6px; }
  .race-card__tag { font-size: .6rem; padding: 3px 10px; }
  .race-card + .race-card { border-left: none; }
  .race-card:nth-child(n+2) { border-top: 1px solid rgba(255,255,255,.06); }

  .cat-card { flex: 0 0 200px; height: 300px; border-radius: 12px; }
  .cat-card__name { font-size: 1.15rem; }
  .cat-card__sub { font-size: .9rem; }
  .cat-showcase__heading { flex-direction: column; gap: 0; }
  .cat-showcase__strip { gap: 10px; padding: 0 var(--sp-2); }
  .cat-showcase__header { padding: 0 var(--sp-2); }
  .cat-showcase__thin { font-size: 1.4rem; }
  .cat-showcase__serif { font-size: 1.6rem; }

  .arrivals-heading { gap: 6px; flex-direction: column; align-items: center; }
  .arrivals-heading__thin { font-size: 1.3rem; }
  .arrivals-heading__serif { font-size: 1.6rem; }

  .brand-story__stats { gap: var(--sp-3); }
  .stat__number { font-size: 1.5rem; }

  .products { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-card__img { height: 160px; }
  .product-card__body { padding: 12px; }
  .product-card__name { font-size: .8rem; }
  .product-card__price { font-size: .88rem; }
  .product-card__foot .btn { font-size: .7rem; padding: 7px 12px; }

  /* Tighter spacing */
  .section { padding: var(--sp-6) 0; }
  .section__head { margin-bottom: var(--sp-4); }
  .section__cta { margin-top: var(--sp-4); }
  .cat-showcase { padding: var(--sp-5) 0 var(--sp-4); }
  .quotes-section { padding: var(--sp-6) 0; }

  /* Footer tighter */
  .footer { padding: var(--sp-6) 0 0; }
  .btt { bottom: 16px; right: 16px; width: 42px; height: 42px; }
}
