/* ============================================================
   CAR SPA LK · carspa.lk
   Design system: full-bleed rounded hero, cream sections,
   pill buttons, marquee ribbon, curved dividers, rounded cards
   ============================================================ */

/* Archivo + Archivo Black, self-hosted so the fonts always load
   even if Google Fonts is slow, blocked or offline */
@import url('assets/fonts/fonts.css');

:root {
  --ink: #1c1f23;          /* deep charcoal (headings, footer) */
  --ink-soft: #5f6469;     /* body text gray */
  --cream: #f4f2ee;        /* warm section background */
  --cream-2: #ece9e3;      /* deeper cream */
  --white: #ffffff;
  --accent: #e0332b;       /* vetek red (buttons, highlights) */
  --accent-dark: #b3241d;
  --accent-ink: #ffffff;   /* text on accent */
  --hero-bg-1: #26292e;    /* graphite hero gradient */
  --hero-bg-2: #33373d;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --font: 'Archivo', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-black: 'Archivo Black', 'Archivo', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; }

body {
  font-family: var(--font);
  color: var(--ink-soft);
  background: var(--white);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
h1, h2, h3, h4, h5 { color: var(--ink); font-weight: 800; line-height: 1.15; }
button { cursor: pointer; font-family: var(--font); }
button:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px;
}

/* Anchor targets land clear of the fixed header */
[id] { scroll-margin-top: 112px; }

.container {
  width: 100%; max-width: 1440px; margin: 0 auto;
  padding-left: clamp(20px, 4vw, 64px);
  padding-right: clamp(20px, 4vw, 64px);
}

strong.hl, .hl { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font); font-weight: 700; font-size: 16px;
  padding: 16px 22px 16px 28px; border-radius: 999px;
  cursor: pointer; border: none; transition: transform .25s ease, box-shadow .25s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.16); }

.btn-cream { background: var(--cream); color: var(--ink); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-outline {
  background: transparent; color: var(--ink);
  border: 2px solid var(--ink); padding: 12px 26px;
}
.btn-outline:hover { background: var(--ink); color: var(--white); }

.btn .arrow {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto; transition: transform .3s cubic-bezier(.22,1,.36,1);
}
.btn .arrow svg { width: 18px; height: 18px; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-accent .arrow { background: var(--white); color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 26px 0;
  transition: background-color .4s ease, padding .35s ease, box-shadow .35s ease;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.site-header.scrolled {
  background: rgba(28,31,35,.85);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding: 15px 0;
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
}
.nav-left { display: flex; gap: 28px; }
.nav-left a {
  color: #fff; font-size: 13px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  opacity: .92; transition: opacity .2s;
}
.nav-left a:hover { opacity: 1; }

.logo-mark {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; color: #fff;
}
.logo-mark svg, .logo-mark-img { height: 46px; width: auto; transition: height .3s ease; display: block; }

.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-right .icon-link { color: #fff; opacity: .9; display: inline-flex; align-items: center; transition: opacity .2s ease, transform .3s ease; }
.nav-right .icon-link:hover { opacity: 1; transform: translateY(-2px); }
.nav-right .icon-link svg { width: 22px; height: 22px; }
/* The search trigger is a <button>: strip the default chrome so it renders
   exactly like the cart <a> beside it and shares the same hover lift */
button.icon-link {
  background: none; border: 0; padding: 0; margin: 0;
  color: inherit; font: inherit; cursor: pointer;
}

.btn-shop {
  background: var(--accent); color: #fff; font-weight: 800;
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  padding: 15px 28px; border-radius: 999px; transition: transform .2s, box-shadow .2s;
}
.btn-shop:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(224,51,43,.4); }

.burger {
  width: 52px; height: 52px; border-radius: 50%;
  background: #fff; border: none; display: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  transition: transform .3s ease; flex: 0 0 auto;
}
.burger:hover { transform: scale(1.08); }
.burger span { display: block; width: 20px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile nav drawer + backdrop (markup reused from .nav-left) */
.nav-backdrop {
  position: fixed; inset: 0; background: rgba(20,21,23,.55);
  opacity: 0; pointer-events: none; transition: opacity .35s ease; z-index: 90;
}
.nav-backdrop.open { opacity: 1; pointer-events: auto; }
body.menu-open { overflow: hidden; }

/* Solid header variant (inner pages) */
.site-header.solid {
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding: 20px 0; border-bottom: 1px solid #e8e5df;
}
.site-header.solid.scrolled { padding: 14px 0; background: rgba(255,255,255,.95); box-shadow: 0 10px 26px rgba(28,31,35,.08); }
.site-header.solid .nav-left a { color: var(--ink); }
.site-header.solid .nav-right .icon-link { color: var(--ink); }
.site-header.solid .logo-mark { color: var(--ink); }

/* Fixed header takes elements out of flow, compensate on inner pages */
.site-header.solid + .page-hero,
.site-header.solid + .container { padding-top: 112px; }

/* ---------- Hero ---------- */
.hero {
  padding: 14px;
}
.hero-panel {
  position: relative; overflow: hidden;
  /* svh tracks the real visible height on mobile (URL bar collapsed or not),
     so the bottom of the hero is never cropped behind browser chrome */
  min-height: 94vh; min-height: 94svh;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--hero-bg-1), var(--hero-bg-2));
  display: flex; flex-direction: column; justify-content: space-between;
}
/* Relight stack: the same car rendered with three key-light directions.
   JS crossfades the layers so the light appears to follow the mouse.
   Absent images remove themselves; with one image it is a static centerpiece. */
.hero-relight {
  position: absolute; z-index: 2; pointer-events: none;
  left: 0; right: 0; top: 42%;
  display: flex; justify-content: center;
}
.hero-relight img {
  position: absolute; top: 0;
  width: clamp(340px, 52vw, 860px); display: block;
  filter: drop-shadow(0 40px 54px rgba(0,0,0,.5));
  opacity: 0;
}
.hero-relight img[data-light="center"] { opacity: 1; }
/* the dusk "lamps off" base eases in and out around a blink so the body
   color never jumps; the lamp flashes themselves stay crisp */
.hero-relight img[data-light="off"] { transition: opacity .28s ease; }
/* Mouse-tracked light pool sweeping the whole hero photo */
.hero-spotlight {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  mix-blend-mode: soft-light;
  background:
    radial-gradient(clamp(260px, 30vw, 460px) circle at var(--sx, 50%) var(--sy, 42%),
      rgba(255,255,255,.95), rgba(255,255,255,.3) 45%, transparent 72%),
    radial-gradient(clamp(160px, 18vw, 280px) circle at var(--sx, 50%) var(--sy, 42%),
      rgba(224,51,43,.5), transparent 70%);
}
/* Background slideshow: the container takes the scroll-parallax transform,
   each image takes the ambient Ken Burns zoom, so the two never fight over
   the same transform property. Oversized so neither move exposes an edge. */
.hero-bg {
  position: absolute; z-index: 0; inset: -6%; width: 112%; height: 112%;
  pointer-events: none;
}
.hero-bg-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0;
  transition: opacity 1.8s ease;
  animation: heroKenBurns 24s ease-in-out infinite alternate;
}
.hero-bg-img.active { opacity: 1; }
@keyframes heroKenBurns {
  from { transform: scale(1); }
  to   { transform: scale(1.09); }
}
/* Ambient dust: soft glowing motes drifting slowly up through the hero */
.hero-dust {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  overflow: hidden;
}
.hero-dust span {
  position: absolute; bottom: -3%;
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255,255,255,.5);
  box-shadow: 0 0 8px rgba(255,255,255,.35);
  opacity: 0;
  animation: dustRise 14s linear infinite;
}
.hero-dust span:nth-child(3n) {
  background: rgba(224,51,43,.55);
  box-shadow: 0 0 10px rgba(224,51,43,.5);
}
.hero-dust span:nth-child(1)  { left: 6%;  width: 4px; height: 4px; animation-duration: 15s; animation-delay: 0s; }
.hero-dust span:nth-child(2)  { left: 14%; width: 6px; height: 6px; animation-duration: 12s; animation-delay: 4s; }
.hero-dust span:nth-child(3)  { left: 23%; width: 3px; height: 3px; animation-duration: 17s; animation-delay: 8s; }
.hero-dust span:nth-child(4)  { left: 31%; width: 5px; height: 5px; animation-duration: 13s; animation-delay: 2s; }
.hero-dust span:nth-child(5)  { left: 42%; width: 4px; height: 4px; animation-duration: 16s; animation-delay: 10s; }
.hero-dust span:nth-child(6)  { left: 51%; width: 6px; height: 6px; animation-duration: 11s; animation-delay: 6s; }
.hero-dust span:nth-child(7)  { left: 59%; width: 3px; height: 3px; animation-duration: 18s; animation-delay: 1s; }
.hero-dust span:nth-child(8)  { left: 67%; width: 5px; height: 5px; animation-duration: 12s; animation-delay: 9s; }
.hero-dust span:nth-child(9)  { left: 74%; width: 4px; height: 4px; animation-duration: 15s; animation-delay: 5s; }
.hero-dust span:nth-child(10) { left: 82%; width: 6px; height: 6px; animation-duration: 13s; animation-delay: 12s; }
.hero-dust span:nth-child(11) { left: 89%; width: 3px; height: 3px; animation-duration: 16s; animation-delay: 3s; }
.hero-dust span:nth-child(12) { left: 95%; width: 5px; height: 5px; animation-duration: 14s; animation-delay: 7s; }
.hero-dust span:nth-child(13) { left: 3%;  width: 6px; height: 6px; animation-duration: 13s; animation-delay: 6s; }
.hero-dust span:nth-child(14) { left: 10%; width: 3px; height: 3px; animation-duration: 17s; animation-delay: 11s; }
.hero-dust span:nth-child(15) { left: 19%; width: 5px; height: 5px; animation-duration: 12s; animation-delay: 1s; }
.hero-dust span:nth-child(16) { left: 27%; width: 4px; height: 4px; animation-duration: 15s; animation-delay: 9s; }
.hero-dust span:nth-child(17) { left: 37%; width: 6px; height: 6px; animation-duration: 11s; animation-delay: 5s; }
.hero-dust span:nth-child(18) { left: 46%; width: 3px; height: 3px; animation-duration: 18s; animation-delay: 13s; }
.hero-dust span:nth-child(19) { left: 55%; width: 5px; height: 5px; animation-duration: 12s; animation-delay: 3s; }
.hero-dust span:nth-child(20) { left: 63%; width: 4px; height: 4px; animation-duration: 16s; animation-delay: 8s; }
.hero-dust span:nth-child(21) { left: 71%; width: 6px; height: 6px; animation-duration: 13s; animation-delay: 12s; }
.hero-dust span:nth-child(22) { left: 78%; width: 4px; height: 4px; animation-duration: 15s; animation-delay: 2s; }
.hero-dust span:nth-child(even) { animation-name: dustRiseSway; }
@keyframes dustRise {
  0%   { transform: translate(0, 0); opacity: 0; }
  8%   { opacity: .75; }
  85%  { opacity: .2; }
  100% { transform: translate(34px, -92vh); opacity: 0; }
}
@keyframes dustRiseSway {
  0%   { transform: translate(0, 0); opacity: 0; }
  8%   { opacity: .65; }
  85%  { opacity: .18; }
  100% { transform: translate(-40px, -88vh); opacity: 0; }
}
/* Base + scroll-driven darkening (opacity raised by JS as the hero scrolls by) */
.hero-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(1200px 600px at 80% 110%, rgba(224,51,43,.28), transparent 60%),
    radial-gradient(900px 500px at 10% -10%, rgba(255,255,255,.07), transparent 55%),
    linear-gradient(rgba(28,31,35,.58), rgba(28,31,35,.8));
  opacity: .78;
}
/* Continuous glow, sitting above the darkened photo, behind the wordmark */
.hero-panel::before {
  content: ""; position: absolute; z-index: 2; pointer-events: none;
  width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  left: 50%; top: 42%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(224,51,43,.4), rgba(224,51,43,0) 68%);
  animation: heroGlow 6s ease-in-out infinite alternate;
}
@keyframes heroGlow {
  0%   { opacity: .5; transform: translate(-50%, -50%) scale(.9); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}
.hero-panel::after {
  content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1.5px);
  background-size: 26px 26px;
}
.hero-top { position: relative; z-index: 3; }
.hero-wordmark {
  margin-top: 15vh;
  text-align: center;
  font-family: var(--font-black);
  font-size: clamp(64px, 12.5vw, 190px);
  letter-spacing: .01em;
  color: #fff; line-height: .95;
  user-select: none;
  animation: heroFadeUp .9s cubic-bezier(.22,1,.36,1) both;
  transition: letter-spacing .6s cubic-bezier(.22,1,.36,1), text-shadow .6s ease;
  cursor: default;
}
.hero-wordmark:hover {
  letter-spacing: .045em;
  text-shadow: 0 0 34px rgba(224,51,43,.65), 0 0 90px rgba(224,51,43,.35);
}
.hero-wordmark .lk { color: var(--accent); transition: text-shadow .6s ease; }
.hero-wordmark:hover .lk { text-shadow: 0 0 30px rgba(255,255,255,.5); }
.hero-sub {
  text-align: center; color: rgba(255,255,255,.75);
  letter-spacing: .3em; text-transform: uppercase; font-size: clamp(11px, 1.3vw, 14px);
  margin-top: 18px; font-weight: 600;
  animation: heroFadeUp .9s cubic-bezier(.22,1,.36,1) .15s both;
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-bottom {
  position: relative; z-index: 4;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 20px;
  padding: 34px;
  animation: heroFadeUp .9s cubic-bezier(.22,1,.36,1) .3s both;
}
.hero-bottom > .btn { justify-self: start; }
.hero-bottom > .hero-toggle { justify-self: end; }
/* Quick picks: bottom-center strip, swaps content with the car/bike toggle */
.hero-picks { text-align: center; }
.hero-picks-label {
  display: block; color: rgba(255,255,255,.6); font-size: 11px;
  font-weight: 800; letter-spacing: .22em; text-transform: uppercase;
  margin-bottom: 10px;
}
.hero-picks-row { display: flex; gap: 12px; justify-content: center; }
.hero-picks-row.swap-in .hero-pick { animation: pickSwapIn .55s cubic-bezier(.22,1,.36,1) both; }
.hero-picks-row.swap-in .hero-pick:nth-child(2) { animation-delay: .08s; }
.hero-picks-row.swap-in .hero-pick:nth-child(3) { animation-delay: .16s; }
@keyframes pickSwapIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-pick {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 999px; padding: 7px 16px 7px 8px;
  transition: background .3s ease, border-color .3s ease, transform .3s ease;
}
.hero-pick:hover { background: rgba(224,51,43,.85); border-color: rgba(224,51,43,.9); transform: translateY(-3px); }
.hero-pick img {
  width: 38px; height: 38px; border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(255,255,255,.25); flex: 0 0 auto;
}
.hero-pick span {
  color: #fff; font-size: 12.5px; font-weight: 700; line-height: 1.25;
  text-align: left; white-space: nowrap;
}
.hero-pick span small { display: block; color: rgba(255,255,255,.62); font-size: 11px; font-weight: 600; }
/* Segmented vehicle toggle: labelled buttons + a sliding thumb */
.hero-toggle {
  position: relative;
  background: var(--cream); border-radius: 999px; padding: 8px;
  display: inline-flex; align-items: center;
}
.tog-thumb {
  position: absolute; top: 8px; bottom: 8px; left: 8px;
  width: calc(50% - 8px); border-radius: 999px; background: var(--accent);
  transition: transform .45s cubic-bezier(.22,1,.36,1);
  pointer-events: none;
}
.hero-toggle.bike .tog-thumb { transform: translateX(100%); }
.hero-toggle .tog {
  position: relative; z-index: 1;
  width: 110px; padding: 12px 0; border-radius: 999px; border: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: transparent; color: var(--ink);
  font-weight: 800; font-size: 14px; letter-spacing: .02em;
  transition: color .35s ease;
}
.hero-toggle .tog.active { color: #fff; }
.hero-toggle .tog svg { width: 22px; height: 22px; flex: 0 0 auto; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
  transition-delay: var(--rd, 0s);
}
.reveal-left { transform: translate(-44px, 0); }
.reveal-right { transform: translate(44px, 0); }
.reveal-zoom { transform: scale(.93); }
.reveal.in-view { opacity: 1; transform: none; }

/* ---------- Scroll progress bar (injected by main.js) ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; width: 100%; height: 3px;
  background: var(--accent); transform: scaleX(0); transform-origin: 0 50%;
  z-index: 200; pointer-events: none;
}

/* ---------- Parallax ---------- */
[data-parallax] { will-change: transform; }

/* ---------- Section basics ---------- */
section { padding: 90px 0; }
.section-cream { background: var(--cream); }
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 18px;
}
.section-lead { max-width: 640px; font-size: 17px; }
.center { text-align: center; }
.center .section-lead { margin: 0 auto; }

/* Curved top divider */
.curve-top { position: relative; }
.curve-top::before {
  content: ""; display: block; height: 90px; background: var(--white);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  margin: 0 -6%; width: 112%;
}
.section-cream.curve-top::before { background: var(--white); }

/* ---------- Category cards ---------- */
.cat-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 48px;
}
.cat-card {
  background: var(--white); border-radius: var(--radius-md);
  padding: 28px 20px 24px; text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
  border: 1px solid #eceae5;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(28,31,35,.12); }
.cat-card .cat-icon {
  width: 84px; height: 84px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--cream); display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.cat-card .cat-icon svg { width: 42px; height: 42px; transition: transform .5s cubic-bezier(.34,1.56,.64,1); }
.cat-card:hover .cat-icon svg { transform: scale(1.15) rotate(-6deg); }
.cat-card h4 { font-size: 16px; letter-spacing: .02em; }
.cat-card p { font-size: 13px; margin-top: 6px; color: var(--ink-soft); }

/* ---------- Story split ---------- */
.eyebrow {
  letter-spacing: .2em; font-weight: 800; font-size: 12px;
  color: var(--accent); text-transform: uppercase; margin-bottom: 14px;
}
.story-grid {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center;
}
.story-media {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(500px 400px at 80% 100%, rgba(224,51,43,.25), transparent 60%),
    linear-gradient(150deg, var(--hero-bg-1), var(--hero-bg-2));
}
.story-media img {
  position: absolute; left: 0; top: -8%; width: 100%; height: 116%;
  object-fit: cover;
}
.story-copy .section-title { margin-top: 6px; }
.story-copy > p { max-width: 520px; }
.story-stats { display: flex; gap: 44px; margin: 36px 0 40px; flex-wrap: wrap; }
.story-stats b {
  display: block; font-family: var(--font-black); font-size: 40px;
  color: var(--ink); line-height: 1.1;
}
.story-stats small { color: var(--ink-soft); font-size: 13.5px; }

/* ---------- Product finder ---------- */
.finder {
  background: var(--ink); border-radius: var(--radius-lg);
  padding: 56px; color: #cfd2d6;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
}
.finder h2 { color: #fff; font-size: clamp(26px, 3.4vw, 40px); }
.finder p { margin-top: 14px; }
.finder-options { display: flex; flex-direction: column; gap: 14px; }
.finder-options a {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px; padding: 16px 26px; color: #fff; font-weight: 700;
  display: flex; justify-content: space-between; align-items: center;
  transition: background .2s, border-color .2s;
}
.finder-options a:hover { background: var(--accent); border-color: var(--accent); }
.finder-options a span.arr {
  color: var(--accent); flex: 0 0 auto; display: inline-flex;
  transition: transform .3s cubic-bezier(.22,1,.36,1), color .2s ease;
}
.finder-options a span.arr svg { width: 17px; height: 17px; }
.finder-options a:hover span.arr { color: #fff; transform: translateX(4px); }
.finder-media {
  position: relative; margin-top: 30px; border-radius: var(--radius-md); overflow: hidden;
  aspect-ratio: 16 / 10; background: rgba(255,255,255,.05);
}
.finder-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .8s ease;
}
.finder-media img.active {
  opacity: 1;
  animation: finderKen 9s ease-in-out infinite alternate;
}
@keyframes finderKen {
  from { transform: scale(1); }
  to   { transform: scale(1.09); }
}

/* ---------- Product cards ---------- */
.prod-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 44px; flex-wrap: wrap; }
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.prod-grid.three { grid-template-columns: repeat(3, 1fr); }

/* ---------- Featured carousel (homepage) ---------- */
.prod-carousel { position: relative; }
.prod-carousel-viewport {
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; -ms-overflow-style: none;
  margin: 0 -2px; padding: 2px;
}
.prod-carousel-viewport::-webkit-scrollbar { display: none; }
.prod-carousel .prod-grid {
  display: flex; gap: 20px;
}
.prod-carousel .prod-card {
  flex: 0 0 calc(30% - 14px); min-width: 272px; scroll-snap-align: start;
}
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 48px; height: 48px; border-radius: 50%; border: none;
  background: var(--ink); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(28,31,35,.25);
  transition: background .25s ease, transform .25s ease, opacity .25s ease;
}
.carousel-btn:hover { background: var(--accent); transform: translateY(-50%) scale(1.08); }
.carousel-btn svg { width: 18px; height: 18px; }
.carousel-btn.prev { left: -12px; }
.carousel-btn.prev svg { transform: rotate(180deg); }
.carousel-btn.next { right: -12px; }

.prod-card {
  background: var(--white); border-radius: var(--radius-md);
  border: 1px solid #eceae5; overflow: hidden; position: relative;
  display: flex; flex-direction: column;
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s ease, border-color .35s ease;
}
.prod-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--accent); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .4s cubic-bezier(.22,1,.36,1); z-index: 2;
}
.prod-card:hover::before { transform: scaleX(1); }
.prod-card:hover { transform: translateY(-8px); box-shadow: 0 22px 44px rgba(28,31,35,.14); border-color: #e2ded7; }
.prod-media {
  position: relative;
  background: linear-gradient(160deg, #f7f5f1, #edeae4);
  aspect-ratio: 1 / 1; overflow: hidden;
}
.prod-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s cubic-bezier(.22,1,.36,1);
}
.prod-card:hover .prod-media img { transform: scale(1.06); }
.prod-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.prod-body h4 { font-size: 16.5px; letter-spacing: -.01em; }
.prod-rating { color: #f5a623; font-size: 11px; letter-spacing: 2px; }
.prod-size { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 2px; }
.prod-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; }
.prod-price { font-weight: 800; color: var(--ink); font-size: 17px; }
.prod-view {
  width: 38px; height: 38px; border-radius: 50%; background: var(--cream); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  transition: background .3s ease, color .3s ease, transform .3s cubic-bezier(.22,1,.36,1);
}
.prod-view svg { width: 15px; height: 15px; }
.prod-card:hover .prod-view { background: var(--accent); color: #fff; transform: translateX(3px); }

.badge-cat {
  align-self: flex-start; font-size: 11px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent);
  background: rgba(224,51,43,.08); padding: 5px 12px; border-radius: 999px;
}
.prod-media .badge-cat {
  position: absolute; top: 14px; left: 14px; z-index: 1;
  background: rgba(255,255,255,.92); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 4px 14px rgba(28,31,35,.1);
}

/* ---------- Benefits ---------- */
/* Optional photographic band behind "Why Car Spa": the solid-color layers
   are always there, so this looks identical until why-us-band.webp exists */
#why-us {
  position: relative;
  background:
    linear-gradient(rgba(255,255,255,.9), rgba(255,255,255,.96)),
    url("assets/img/site/why-us-band.webp") center/cover no-repeat,
    linear-gradient(var(--white), var(--white));
}
.benefits-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 28px; margin-top: 56px;
}
.benefit { text-align: center; position: relative; }
.benefit .b-icon {
  width: 92px; height: 92px; margin: 0 auto 20px; border-radius: 50%;
  background: var(--white); border: 1px solid #eceae5;
  display: flex; align-items: center; justify-content: center; color: var(--accent);
}
.benefit .b-icon svg { width: 44px; height: 44px; transition: transform .5s cubic-bezier(.34,1.56,.64,1); }
.benefit:hover .b-icon svg { transform: scale(1.12) rotate(6deg); }
.benefit h4 { font-size: 18px; margin-bottom: 8px; }
.benefit p { font-size: 14.5px; }

/* ---------- Marquee ---------- */
.marquee-band {
  background: var(--accent); transform: rotate(-1.6deg); margin: 40px -2% ;
  padding: 18px 0; overflow: hidden;
}
.marquee-track {
  display: flex; gap: 48px; white-space: nowrap; width: max-content;
  animation: marquee 28s linear infinite;
  color: #fff; font-family: var(--font-black); font-size: 22px; letter-spacing: .06em;
  text-transform: uppercase;
}
.marquee-track span::before { content: "★"; margin-right: 48px; font-size: 16px; vertical-align: 3px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Mini marquee (slim strip before the footer, moves left to right) ---------- */
.marquee-mini {
  background: var(--ink); border-top: 1px solid rgba(255,255,255,.08);
  padding: 13px 0; overflow: hidden; margin-top: 90px;
}
.marquee-mini + footer { margin-top: 0; }
.marquee-mini-track {
  display: flex; gap: 42px; white-space: nowrap; width: max-content;
  animation: marqueeMini 34s linear infinite;
  color: rgba(255,255,255,.66); font-size: 13px; font-weight: 600; letter-spacing: .06em;
}
.marquee-mini-track span::before { content: "✦"; margin-right: 42px; color: var(--accent); font-size: 11px; }
@keyframes marqueeMini { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* ---------- Testimonials ticker ---------- */
.testi-carousel { position: relative; width: 100%; margin: 50px auto 0; }
.testi-viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 64px, #000 calc(100% - 64px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 64px, #000 calc(100% - 64px), transparent 100%);
}
.testi-track {
  display: flex; gap: 24px; width: max-content;
  animation: testiTicker 44s linear infinite;
}
.testi-carousel:hover .testi-track,
.testi-carousel:focus-within .testi-track { animation-play-state: paused; }
/* -1212px = exactly 3 cards (380px) + 3 gaps (24px), the true repeat
   pitch, NOT -50%, since flex `gap` doesn't scale evenly with % transforms */
@keyframes testiTicker { from { transform: translateX(0); } to { transform: translateX(-1212px); } }
.testi-slide { flex: 0 0 380px; padding: 2px; }
.review-card {
  background: var(--white); border-radius: var(--radius-md); border: 1px solid #eceae5;
  padding: 32px 30px; text-align: left; height: 100%;
  display: flex; flex-direction: column;
}
.review-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.avatar {
  width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px;
  flex: 0 0 auto;
}
.review-top h5 { font-size: 15px; }
.review-top small { color: var(--ink-soft); font-size: 12.5px; display: block; }
.stars { color: #f5a623; letter-spacing: 2px; font-size: 14px; margin-bottom: 10px; }
.review-card p { font-size: 15px; }
.review-score { display: flex; align-items: center; gap: 16px; justify-content: center; margin-top: 44px; }
.review-score .score { font-family: var(--font-black); font-size: 44px; color: var(--ink); }
.review-score small { color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 860px; margin: 50px auto 0; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--white); border: 1px solid #eceae5; border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer; list-style: none; padding: 22px 26px;
  font-weight: 800; color: var(--ink); font-size: 17px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 26px; color: var(--accent); font-weight: 400;
  transition: transform .25s ease; line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 26px 24px; font-size: 15px; }
.faq-item .faq-body ul { list-style: disc; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(800px 400px at 85% 120%, rgba(224,51,43,.35), transparent 60%),
    linear-gradient(rgba(28,31,35,.64), rgba(28,31,35,.8)),
    url("assets/img/site/cta-garage.webp") center/cover no-repeat,
    linear-gradient(135deg, var(--hero-bg-1), var(--hero-bg-2));
  border-radius: var(--radius-lg); padding: 80px 56px; text-align: center; color: #fff;
}
.cta-band h2 { color: #fff; font-size: clamp(26px, 3.6vw, 42px); margin-bottom: 28px; }

/* ---------- Footer ---------- */
footer {
  background: var(--ink); color: #b9bdc2; margin-top: 90px;
  padding: 80px 0 40px; font-size: 14.5px;
  position: relative; overflow: hidden;
}
/* Breathing red glow behind the footer content */
footer::before {
  content: ""; position: absolute; pointer-events: none;
  width: min(70vw, 760px); height: min(70vw, 760px);
  left: 50%; top: 100%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(224,51,43,.2), transparent 65%);
  animation: footerGlow 7s ease-in-out infinite alternate;
}
@keyframes footerGlow {
  from { opacity: .4; transform: translate(-50%, -50%) scale(.85); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1.12); }
}
footer .container { position: relative; z-index: 1; }
.footer-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 44px; margin-bottom: 56px;
}
.footer-grid h5 {
  color: #fff; font-size: 16px; margin-bottom: 20px; font-weight: 800;
}
.footer-grid a { display: block; padding: 4px 0; transition: color .2s; }
.footer-grid a:hover { color: var(--accent); }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a {
  width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.footer-social a:hover { background: var(--accent); color: #fff; }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 28px;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13px;
}
.footer-logo { font-family: var(--font-black); color: #fff; font-size: 26px; letter-spacing: .02em; margin-bottom: 14px; }
.footer-logo .lk { color: var(--accent); }

/* ---------- Product detail page ---------- */
.breadcrumb { font-size: 13px; margin: 26px 0 8px; color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--accent); }
.pd-wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; padding: 40px 0 20px;
}
.pd-media-col { position: sticky; top: 128px; }
.pd-media {
  background: linear-gradient(160deg, #f7f5f1, #ece9e3);
  border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1 / 1;
}
.pd-media img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s ease; }
.pd-thumbs { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.pd-thumb {
  width: 74px; height: 74px; border-radius: 12px; overflow: hidden;
  border: 2px solid #e2ded7; padding: 0; background: none;
  transition: border-color .25s ease, transform .25s ease;
}
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-thumb:hover { transform: translateY(-2px); }
.pd-thumb.active { border-color: var(--accent); }
.pd-info h1 { font-size: clamp(28px, 3.6vw, 42px); margin: 10px 0 14px; }
.pd-price { font-size: 26px; font-weight: 800; color: var(--ink); margin: 18px 0 4px; }
.pd-price small { font-size: 14px; color: var(--ink-soft); font-weight: 600; }
.pd-desc { margin: 18px 0; }
.pd-features { margin: 22px 0; display: flex; flex-direction: column; gap: 10px; }
.pd-features li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); font-weight: 600; font-size: 15px; }
.pd-features li::before {
  content: "✓"; color: #fff; background: var(--accent); border-radius: 50%;
  width: 22px; height: 22px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; margin-top: 2px;
}
.pd-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.pd-meta { margin-top: 26px; padding-top: 22px; border-top: 1px solid #e8e5df; font-size: 13.5px; }
.pd-meta span { display: inline-block; margin-right: 22px; }
.pd-meta b { color: var(--ink); }

.related { padding-top: 40px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 14px; }
.page-hero-panel {
  border-radius: var(--radius-lg); padding: 90px 56px 70px; text-align: center; color: #fff;
  background:
    radial-gradient(800px 400px at 85% 130%, rgba(224,51,43,.32), transparent 60%),
    linear-gradient(rgba(28,31,35,.6), rgba(28,31,35,.76)),
    url("assets/img/site/hero-products.webp") center/cover no-repeat,
    linear-gradient(135deg, var(--hero-bg-1), var(--hero-bg-2));
}
.page-hero-panel h1 { color: #fff; font-size: clamp(34px, 5vw, 60px); }
.page-hero-panel p { color: rgba(255,255,255,.75); margin-top: 12px; }

/* Filter pills */
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 44px 0 10px; }
.filter-pill {
  border: 2px solid var(--ink); background: transparent; color: var(--ink);
  border-radius: 999px; padding: 10px 22px; font-weight: 700; font-size: 14px; cursor: pointer;
  transition: all .2s;
}
.filter-pill.active, .filter-pill:hover { background: var(--ink); color: #fff; }

/* ---------- Go-to-top button (injected by main.js, shows near the footer) ---------- */
.to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 150;
  width: 52px; height: 52px; border-radius: 50%; border: none;
  background: var(--accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px rgba(224,51,43,.4);
  opacity: 0; transform: translateY(18px) scale(.9); pointer-events: none;
  transition: opacity .35s ease, transform .35s cubic-bezier(.22,1,.36,1), background .25s ease;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--accent-dark); transform: translateY(-3px); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Cursor follower: red dot + trailing ring ---------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 300; pointer-events: none;
  border-radius: 50%; opacity: 0; transition: opacity .3s ease;
}
.cursor-dot { width: 8px; height: 8px; background: var(--accent); }
.cursor-ring {
  width: 38px; height: 38px; border: 1.5px solid rgba(224,51,43,.55);
  transition: opacity .3s ease, width .25s ease, height .25s ease,
              margin .25s ease, border-color .25s ease, background-color .25s ease;
}
.cursor-dot.visible, .cursor-ring.visible { opacity: 1; }
.cursor-ring.hover {
  width: 56px; height: 56px; margin: -9px 0 0 -9px;
  border-color: rgba(224,51,43,.9); background: rgba(224,51,43,.08);
}
@media (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

/* ---------- Header cart icon ---------- */
.cart-link { position: relative; }
.cart-count {
  position: absolute; top: -7px; right: -9px;
  min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 800;
  display: none; align-items: center; justify-content: center; line-height: 1;
}
.cart-count.show { display: inline-flex; }

/* ---------- Add to cart button ---------- */
.add-to-cart.added { background: #1d7a3d; }
.add-to-cart .arrow { transition: transform .25s ease; }

/* ---------- Page shell for utility pages (cart, checkout, contact, legal, 404) ---------- */
.page-shell { padding: 60px 0 70px; min-height: 44vh; }
/* When the shell sits directly under the fixed header (no page-hero band),
   clear the header height plus a gap that matches the bottom padding */
.site-header.solid + .page-shell { padding-top: 172px; }
.page-shell h1 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 10px; }
.page-lead { max-width: 620px; }

/* ---------- Cart page ---------- */
.cart-items { margin-top: 40px; display: flex; flex-direction: column; gap: 14px; }
.cart-row {
  display: grid; grid-template-columns: 88px 1fr auto auto auto;
  gap: 20px; align-items: center;
  background: var(--white); border: 1px solid #eceae5; border-radius: var(--radius-md);
  padding: 14px 20px 14px 14px;
}
.cart-thumb { width: 88px; height: 88px; border-radius: 14px; overflow: hidden; display: block; background: linear-gradient(160deg,#f7f5f1,#edeae4); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-info h4 { font-size: 16px; }
.cart-info small { color: var(--ink-soft); display: block; margin: 2px 0; }
.cart-unit { font-size: 13px; color: var(--ink-soft); }
.cart-qty {
  display: inline-flex; align-items: center; gap: 14px;
  border: 1.5px solid #e2ded7; border-radius: 999px; padding: 6px 10px;
}
.cart-qty span { min-width: 20px; text-align: center; font-weight: 800; color: var(--ink); }
.qty-btn {
  width: 28px; height: 28px; border-radius: 50%; border: none; background: var(--cream);
  color: var(--ink); font-size: 16px; font-weight: 700; display: inline-flex;
  align-items: center; justify-content: center; transition: background .2s, color .2s;
}
.qty-btn:hover { background: var(--accent); color: #fff; }
.cart-line { font-weight: 800; color: var(--ink); min-width: 90px; text-align: right; }
.cart-remove {
  width: 36px; height: 36px; border-radius: 50%; border: none; background: transparent;
  color: var(--ink-soft); display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s;
}
.cart-remove:hover { background: rgba(224,51,43,.1); color: var(--accent); }
.cart-remove svg { width: 15px; height: 15px; }
.cart-summary {
  margin-top: 30px; display: flex; justify-content: flex-end; align-items: center;
  gap: 34px; flex-wrap: wrap;
}
.cart-total { font-size: 15px; color: var(--ink-soft); }
.cart-total b { display: block; font-family: var(--font-black); font-size: 30px; color: var(--ink); }
.cart-empty, .co-empty, .co-done { text-align: center; padding: 70px 0 30px; }
.cart-empty svg, .co-empty svg, .co-done svg { width: 74px; height: 74px; color: #d9d4cb; margin: 0 auto 22px; display: block; }
.co-done svg { color: #1d7a3d; }
.cart-empty h2, .co-empty h2, .co-done h2 { margin-bottom: 10px; }
.cart-empty p, .co-empty p, .co-done p { margin-bottom: 26px; }

/* ---------- Checkout page ---------- */
.co-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 44px; margin-top: 40px; align-items: start; }
.co-panel {
  background: var(--white); border: 1px solid #eceae5; border-radius: var(--radius-md);
  padding: 32px;
}
.co-panel h3 { margin-bottom: 20px; font-size: 20px; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-weight: 700; color: var(--ink); font-size: 14px; margin-bottom: 6px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; border: 1.5px solid #e2ded7; border-radius: 12px;
  padding: 12px 16px; font-family: var(--font); font-size: 15px; color: var(--ink);
  background: var(--white); transition: border-color .25s ease, box-shadow .25s ease;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(224,51,43,.12);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pay-options { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 20px; }
.pay-option {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  border: 1.5px solid #e2ded7; border-radius: 12px; padding: 13px 16px;
  font-weight: 700; color: var(--ink); font-size: 14.5px;
  transition: border-color .25s ease, background .25s ease;
}
.pay-option:hover { border-color: var(--accent); }
.pay-option input { accent-color: var(--accent); width: 17px; height: 17px; }
.co-items { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.co-item { display: flex; align-items: center; gap: 14px; }
.co-item img { width: 54px; height: 54px; border-radius: 10px; object-fit: cover; flex: 0 0 auto; }
.co-item div { flex: 1; }
.co-item h4 { font-size: 14.5px; }
.co-item small { color: var(--ink-soft); }
.co-item b { color: var(--ink); white-space: nowrap; }
.co-total {
  border-top: 1px solid #eceae5; padding-top: 16px; display: flex;
  justify-content: space-between; align-items: baseline; font-weight: 800; color: var(--ink);
}
.co-total-value { font-family: var(--font-black); font-size: 24px; }
.co-note { font-size: 13px; color: var(--ink-soft); margin-top: 14px; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 44px; margin-top: 40px; align-items: start; }
.contact-cards { display: flex; flex-direction: column; gap: 14px; }
.contact-card {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--white); border: 1px solid #eceae5; border-radius: var(--radius-md);
  padding: 22px 24px; transition: transform .3s ease, box-shadow .3s ease;
}
.contact-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(28,31,35,.09); }
.contact-card .cc-icon {
  width: 46px; height: 46px; border-radius: 50%; background: var(--cream);
  color: var(--accent); display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.contact-card .cc-icon svg { width: 21px; height: 21px; }
.contact-card h4 { font-size: 15.5px; margin-bottom: 3px; }
.contact-card p, .contact-card a { font-size: 14.5px; color: var(--ink-soft); }
.contact-card a:hover { color: var(--accent); }
.form-note { margin-top: 14px; font-size: 14px; color: #1d7a3d; font-weight: 700; }

/* ---------- Legal pages ---------- */
.legal-body { max-width: 820px; margin-top: 34px; }
.legal-body h2 { font-size: 22px; margin: 36px 0 12px; scroll-margin-top: 130px; }
.legal-body h3 { font-size: 17px; margin: 24px 0 8px; }
.legal-body p { margin-bottom: 12px; font-size: 15.5px; }
.legal-body ul { list-style: disc; padding-left: 22px; margin-bottom: 14px; }
.legal-body li { margin-bottom: 6px; font-size: 15.5px; }

/* ---------- 404 ---------- */
.nf-wrap { text-align: center; padding: 90px 0 60px; }
.nf-code {
  font-family: var(--font-black); font-size: clamp(110px, 22vw, 260px);
  line-height: 1; color: var(--ink); letter-spacing: .02em;
}
.nf-code .lk { color: var(--accent); }
.nf-wrap h1 { font-size: clamp(22px, 3vw, 32px); margin: 6px 0 12px; }
.nf-wrap p { max-width: 460px; margin: 0 auto 30px; }
.nf-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .prod-grid, .prod-grid.three { grid-template-columns: repeat(3, 1fr); }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .finder { grid-template-columns: 1fr; padding: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .testi-slide { flex: 0 0 320px; }
  .story-grid { grid-template-columns: 1fr; gap: 40px; }
  .story-media { aspect-ratio: 16 / 11; }
  @keyframes testiTicker { from { transform: translateX(0); } to { transform: translateX(-1032px); } }
  .hero-picks { display: none; }
}
@media (max-width: 760px) {
  .burger { display: inline-flex; }
  .nav-left {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(78vw, 320px);
    background: var(--ink); flex-direction: column; align-items: flex-start;
    padding: 110px 32px 32px; gap: 26px; z-index: 100; margin: 0;
    transform: translateX(100%); transition: transform .4s cubic-bezier(.22,1,.36,1);
    box-shadow: -20px 0 50px rgba(0,0,0,.25);
  }
  .nav-left.open { transform: translateX(0); }
  .nav-left a, .site-header.solid .nav-left a { color: #fff; font-size: 16px; opacity: 1; }
  .logo-mark { position: static; transform: none; }
  .site-header .container { justify-content: space-between; }
  .site-header.solid + .page-hero,
  .site-header.solid + .container { padding-top: 96px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .prod-grid, .prod-grid.three { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .review-card { padding: 26px 22px; }
  .testi-slide { flex: 0 0 270px; }
  @keyframes testiTicker { from { transform: translateX(0); } to { transform: translateX(-882px); } }
  .testi-viewport {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%);
  }
  .pd-wrap { grid-template-columns: 1fr; }
  .pd-media-col { position: static; }
  .co-grid, .contact-grid { grid-template-columns: 1fr; }
  .cart-row { grid-template-columns: 68px 1fr auto; grid-template-areas: "thumb info remove" "thumb qty line"; row-gap: 10px; }
  .cart-thumb { grid-area: thumb; width: 68px; height: 68px; }
  .cart-info { grid-area: info; }
  .cart-qty { grid-area: qty; justify-self: start; }
  .cart-line { grid-area: line; }
  .cart-remove { grid-area: remove; justify-self: end; }
  .form-row { grid-template-columns: 1fr; }
  .hero-bottom { grid-template-columns: 1fr; padding: 22px; }
  .hero-bottom > .btn { justify-self: center; width: fit-content; }
  /* Picks are gone below 1080 and the toggle drives them, so drop it too
     and let the single CTA sit centered */
  .hero-toggle { display: none; }
  .hero-wordmark { margin-top: 72px; }
  .hero-relight { top: 40%; }
  .hero-relight img { width: min(84vw, 420px); }
  .carousel-btn { display: none; }
  .prod-carousel .prod-card { min-width: 74vw; }
  .site-header.solid + .page-shell { padding-top: 140px; }
  section { padding: 60px 0; }
}
@media (max-width: 480px) {
  .cat-grid, .prod-grid, .prod-grid.three { grid-template-columns: 1fr; }
  .btn-shop { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .review-card { padding: 22px 20px; }
  .testi-slide { flex: 0 0 78vw; }
  @keyframes testiTicker { from { transform: translateX(0); } to { transform: translateX(calc(-234vw - 72px)); } }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   Live search overlay + mini-cart drawer
   Markup lives in views/partials/footer.ejs, logic in main.js
   ============================================================ */

body.so-open, body.mc-open { overflow: hidden; }

/* ---------- Search overlay ---------- */
.search-overlay {
  position: fixed; inset: 0; z-index: 200;
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility 0s linear .3s;
}
.search-overlay.open {
  opacity: 1; visibility: visible;
  transition: opacity .3s ease;
}
.search-backdrop {
  position: absolute; inset: 0;
  background: rgba(20,21,23,.62);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.search-panel {
  position: relative;
  width: min(560px, calc(100% - 40px));
  margin: clamp(72px, 14vh, 150px) auto 0;
  display: flex; flex-direction: column; gap: 14px;
  transform: translateY(16px);
  transition: transform .35s cubic-bezier(.22,1,.36,1);
}
.search-overlay.open .search-panel { transform: translateY(0); }
.search-box {
  display: flex; align-items: center; gap: 12px;
  background: var(--white); border-radius: 18px;
  padding: 8px 10px 8px 20px;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.search-box > svg { width: 20px; height: 20px; color: var(--ink-soft); flex: 0 0 auto; }
.search-input {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  font-family: var(--font); font-size: 19px; font-weight: 600; color: var(--ink);
  padding: 12px 0;
}
.search-input::placeholder { color: #a9adb2; font-weight: 500; }
.search-close, .mini-cart-close {
  width: 40px; height: 40px; border-radius: 50%; border: none;
  background: var(--cream); color: var(--ink); flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s ease, color .2s ease;
}
.search-close:hover, .mini-cart-close:hover { background: var(--accent); color: #fff; }
.search-close svg, .mini-cart-close svg { width: 16px; height: 16px; }
.search-results {
  background: var(--white); border-radius: 16px;
  overflow-y: auto; overflow-x: hidden;
  max-height: min(52vh, 430px);
  box-shadow: 0 24px 60px rgba(0,0,0,.3);
}
.search-results:empty { display: none; }
.search-hint { padding: 22px 24px; color: var(--ink-soft); font-size: 14.5px; }
.search-row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 20px 12px 14px;
  transition: background .15s ease;
}
.search-row + .search-row { border-top: 1px solid #f0eee9; }
.search-row:hover, .search-row.active { background: var(--cream); }
.search-thumb {
  width: 48px; height: 48px; border-radius: 12px; object-fit: cover; flex: 0 0 auto;
  background: linear-gradient(160deg, #f7f5f1, #edeae4);
}
.search-row-info { flex: 1; min-width: 0; }
.search-row-info h4 {
  font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.search-row-info small { color: var(--ink-soft); display: block; }
.search-row-price { font-weight: 800; color: var(--ink); white-space: nowrap; }

/* ---------- Mini-cart drawer ---------- */
.mini-cart {
  position: fixed; inset: 0; z-index: 200;
  visibility: hidden;
  transition: visibility 0s linear .45s;
}
.mini-cart.open { visibility: visible; transition: none; }
.mini-cart-backdrop {
  position: absolute; inset: 0;
  background: rgba(20,21,23,.55);
  opacity: 0; transition: opacity .35s ease;
}
.mini-cart.open .mini-cart-backdrop { opacity: 1; }
.mini-cart-panel {
  position: absolute; top: 0; right: 0; height: 100%;
  width: min(400px, 92vw);
  background: var(--white);
  display: flex; flex-direction: column;
  border-radius: 18px 0 0 18px;
  box-shadow: -24px 0 60px rgba(0,0,0,.22);
  transform: translateX(102%);
  transition: transform .45s cubic-bezier(.22,1,.36,1);
}
.mini-cart.open .mini-cart-panel { transform: translateX(0); }
.mini-cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid #eceae5; flex: 0 0 auto;
}
.mini-cart-head h3 { font-size: 20px; }
.mini-cart-body {
  flex: 1; overflow-y: auto; padding: 18px 20px;
  display: flex; flex-direction: column; gap: 12px;
}
.mc-row {
  display: flex; align-items: center; gap: 14px;
  border: 1px solid #eceae5; border-radius: var(--radius-sm);
  padding: 12px; background: var(--white);
}
.mc-thumb {
  width: 64px; height: 64px; border-radius: 12px; overflow: hidden; flex: 0 0 auto;
  background: linear-gradient(160deg, #f7f5f1, #edeae4);
}
.mc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mc-info { flex: 1; min-width: 0; }
.mc-name {
  display: block; font-weight: 700; font-size: 14.5px; line-height: 1.3;
  color: var(--ink); transition: color .2s ease;
}
.mc-name:hover { color: var(--accent); }
.mc-info small { display: block; color: var(--ink-soft); margin: 2px 0 8px; }
.mc-qty {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 14px; color: var(--ink);
}
.mc-side {
  display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
  flex: 0 0 auto;
}
.mc-side b { color: var(--ink); font-size: 14.5px; white-space: nowrap; }
.mc-remove { width: 30px; height: 30px; }
.mc-empty {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  text-align: center; padding: 46px 12px; color: var(--ink-soft);
}
.mc-empty svg { width: 46px; height: 46px; color: #cfcbc4; }
.mini-cart-foot {
  border-top: 1px solid #eceae5; padding: 18px 24px 24px; flex: 0 0 auto;
}
.mini-cart-foot:empty { display: none; }
.mc-subtotal {
  display: flex; justify-content: space-between; align-items: baseline;
  font-weight: 800; color: var(--ink); margin-bottom: 16px;
}
.mc-subtotal b { font-family: var(--font-black); font-size: 22px; }
.mc-actions { display: flex; gap: 12px; }
.mc-btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 18px; border-radius: 999px;
  font-weight: 800; font-size: 14px; letter-spacing: .04em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.mc-btn:hover { transform: translateY(-2px); }
.mc-btn.outline { border: 2px solid var(--ink); color: var(--ink); padding: 12px 18px; }
.mc-btn.outline:hover { background: var(--ink); color: var(--white); }
.mc-btn.accent { background: var(--accent); color: var(--accent-ink); }
.mc-btn.accent:hover { background: var(--accent-dark); box-shadow: 0 10px 24px rgba(224,51,43,.35); }
.mc-empty .mc-btn { flex: none; padding: 14px 26px; }

/* The global rule above shortens durations but not delays, so clear the
   visibility delays too and both layers snap instantly for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .search-overlay, .mini-cart { transition-delay: 0s !important; }
}

/* ============================================================
   Products listing pagination (views/products.ejs)
   ============================================================ */
.pg-nav { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; align-items: center; margin: 48px 0 10px; }
.pg-btn, .pg-num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; padding: 0 18px;
  border: 2px solid var(--ink); border-radius: 999px;
  font-weight: 700; font-size: 14px; color: var(--ink);
  transition: all .2s;
}
.pg-num { padding: 0; }
.pg-btn:hover, .pg-num:hover { background: var(--ink); color: #fff; }
.pg-num.active { background: var(--ink); color: #fff; cursor: default; }
.pg-btn.disabled { opacity: .35; border-color: var(--ink-soft); color: var(--ink-soft); pointer-events: none; }

/* ============================================================
   Mobile size and spacing pass: tighter buttons, paddings and
   type below 760px, tighter still below 480px
   ============================================================ */

/* Home appears in the burger menu only; on desktop the logo covers it */
.nav-home { display: none; }

@media (max-width: 760px) {
  .nav-home { display: block; }

  .logo-mark svg, .logo-mark-img { height: 36px; }

  .burger { width: 40px; height: 40px; }
  .burger span { width: 16px; }

  .btn { font-size: 14.5px; padding: 12px 16px 12px 20px; gap: 10px; }
  .btn .arrow { width: 34px; height: 34px; }
  .btn .arrow svg { width: 15px; height: 15px; }
  .btn-outline { padding: 10px 18px; }

  section { padding: 52px 0; }
  .section-title { margin-bottom: 12px; }
  .section-lead { font-size: 15px; }
  .curve-top::before { height: 48px; }
  .cat-grid { gap: 12px; margin-top: 28px; }
  .cat-card { padding: 20px 14px 16px; }
  .benefits-grid { gap: 26px 18px; margin-top: 36px; }

  .finder { padding: 22px 16px; gap: 26px; }
  .finder p { margin-top: 10px; }
  .finder-options { gap: 10px; }
  .finder-options a { padding: 13px 20px; }
  .finder-media { margin-top: 18px; }

  .hero-wordmark { font-size: clamp(34px, 12vw, 190px); }
  .hero-sub { font-size: 10px; letter-spacing: .24em; margin-top: 12px; }
  .hero-bottom { padding: 16px; gap: 14px; }

  .prod-body { padding: 12px 14px 14px; }
  .prod-body h4 { font-size: 15px; }
  .prod-price { font-size: 15.5px; }
  .prod-view { width: 32px; height: 32px; }
  .prod-foot { padding-top: 10px; }
  .badge-cat { font-size: 10px; padding: 4px 10px; }

  .page-hero-panel { padding: 54px 22px 44px; }
  .filter-row { margin: 26px 0 6px; gap: 8px; }
  .filter-pill { padding: 8px 16px; font-size: 13px; border-width: 1.5px; }
  .pg-nav { margin: 32px 0 6px; gap: 8px; }
  .pg-btn, .pg-num { min-width: 38px; height: 38px; padding: 0 14px; font-size: 13px; border-width: 1.5px; }
  .pg-num { padding: 0; }

  .faq-wrap { margin-top: 28px; gap: 10px; }
  .faq-item summary { padding: 15px 18px; font-size: 15px; gap: 12px; }
  .faq-item summary::after { font-size: 22px; }
  .faq-item .faq-body { padding: 0 18px 16px; font-size: 14px; }

  .cta-band { padding: 48px 22px; }
  .cta-band h2 { margin-bottom: 20px; }

  footer { margin-top: 56px; padding: 50px 0 26px; font-size: 14px; }
  .footer-grid { gap: 30px; margin-bottom: 34px; }
  .footer-grid h5 { margin-bottom: 12px; }
  .footer-logo { font-size: 22px; margin-bottom: 10px; }
  .footer-social a { width: 38px; height: 38px; }
  .footer-bottom { padding-top: 20px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-bottom .dot-sep { display: none; }
  .footer-legal { display: flex; flex-direction: column; }
  .footer-legal a { display: block; padding: 5px 0; }

  .breadcrumb { margin: 18px 0 6px; }
  .pd-wrap { gap: 28px; padding: 24px 0 10px; }
  .pd-price { font-size: 22px; margin: 12px 0 2px; }
  .pd-features { margin: 16px 0; gap: 8px; }
  .pd-actions { gap: 10px; margin-top: 20px; }
  .pd-meta { margin-top: 18px; padding-top: 16px; }

  .page-shell { padding: 36px 0 46px; }
  .cart-items { margin-top: 24px; }
  .cart-summary { margin-top: 22px; gap: 22px; }
  .cart-total b { font-size: 25px; }
  .cart-empty, .co-empty, .co-done { padding: 46px 0 20px; }
  .co-grid, .contact-grid { gap: 24px; margin-top: 24px; }
  .co-panel { padding: 20px 18px; }
  .co-panel h3 { margin-bottom: 14px; font-size: 18px; }
  .contact-card { padding: 16px 16px; gap: 14px; }
  .contact-card .cc-icon { width: 40px; height: 40px; }
  .legal-body { margin-top: 24px; }
  .legal-body h2 { font-size: 19px; margin: 26px 0 10px; }
  .nf-wrap { padding: 50px 0 36px; }

  .to-top { width: 44px; height: 44px; right: 16px; bottom: 16px; }
  .to-top svg { width: 17px; height: 17px; }
  .search-panel { margin-top: 56px; }
  .search-box { border-radius: 14px; padding: 6px 8px 6px 14px; }
  .search-input { font-size: 16px; padding: 10px 0; }
  .search-close, .mini-cart-close { width: 36px; height: 36px; }
  .mini-cart-panel { border-radius: 14px 0 0 14px; }
}

@media (max-width: 480px) {
  .container { padding-left: 16px; padding-right: 16px; }
  section { padding: 44px 0; }
  .btn { font-size: 14px; padding: 11px 14px 11px 18px; }
  .hero-bottom { padding: 14px; gap: 12px; }
  .finder { padding: 16px 12px; gap: 22px; }
  .page-hero { padding: 10px; }
  .page-hero-panel { padding: 44px 18px 36px; }
  .cta-band { padding: 40px 18px; }
  .footer-bottom { font-size: 12px; }
  .prod-carousel .prod-card { min-width: 78vw; }
}
