/* ===== RUTA — Llantas + Servicio ===== */

:root {
  /* Palette - Dark (default) */
  --bg: #0a0a0a;
  --bg-elev: #111111;
  --bg-elev-2: #181818;
  --bg-elev-3: #1f1f1f;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f3ee;
  --text-mute: #a5a29b;
  --text-dim: #6b6862;

  /* Brand */
  --accent: #fdb827;
  --accent-hot: #ff8a00;
  --accent-ink: #0a0a0a;

  /* Status */
  --green: #4ade80;
  --red: #ff5a5a;
  --blue: #6ab7ff;

  /* Type */
  --font-display: "Antonio", "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Menlo", monospace;

  /* Geometry */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;

  /* Speed */
  --t-fast: 120ms cubic-bezier(.2,.7,.3,1);
  --t-med: 240ms cubic-bezier(.2,.7,.3,1);
  --t-slow: 480ms cubic-bezier(.2,.7,.3,1);
}

[data-theme="light"] {
  --bg: #f5f3ee;
  --bg-elev: #ffffff;
  --bg-elev-2: #eeebdf;
  --bg-elev-3: #e1ddcc;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.16);
  --text: #0a0a0a;
  --text-mute: #5b5852;
  --text-dim: #8c8a82;
  --accent-ink: #0a0a0a;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  /* Kill horizontal scroll globally — `clip` keeps sticky working unlike hidden */
  overflow-x: clip;
  max-width: 100%;
}
img, svg, video, canvas {
  max-width: 100%;
  height: auto;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior-y: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

button, input, select, textarea { font-family: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; padding: 0; }
a { color: inherit; text-decoration: none; }

/* Type utilities */
.display { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; line-height: 0.9; text-transform: uppercase; }
.mono { font-family: var(--font-mono); font-feature-settings: "tnum" 1; letter-spacing: -0.01em; }
.eyebrow { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-mute); }

/* ===== Layout ===== */
.app-root { min-height: 100vh; background: var(--bg); }

/* Top utility bar */
.utilbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 28px;
  background: #000;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 1px solid var(--line);
}
.utilbar .scroller { display: flex; gap: 32px; align-items: center; }
.utilbar .pulse { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); margin-right: 8px; animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: 0.4; } }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  /* Prevent the header from creating a stacking context that interferes with scroll on mobile */
  transform: translateZ(0);
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 14px 28px;
  max-width: 1600px;
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.logo-img {
  height: 52px;
  width: auto;
  display: block;
  /* Logo PNG already has black bg → bleed it into the header */
  filter: drop-shadow(0 4px 16px rgba(253,184,39,0.18));
  transition: filter 240ms ease, transform 240ms cubic-bezier(.2,.7,.3,1);
}
.logo:hover .logo-img {
  filter: drop-shadow(0 6px 20px rgba(253,184,39,0.36));
  transform: translateY(-1px);
}
[data-theme="light"] .logo-img {
  /* Invert so the white text becomes dark on light bg */
  filter: invert(1) drop-shadow(0 4px 16px rgba(0,0,0,0.12));
}

.nav { display: flex; gap: 4px; justify-self: center; }
.nav-item {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mute);
  border-radius: var(--r-md);
  transition: all var(--t-fast);
  position: relative;
}
.nav-item:hover { color: var(--text); }
.nav-item.active { color: var(--text); }
.nav-item.active::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--accent);
}

.header-actions { display: flex; gap: 6px; align-items: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--r-md);
  transition: all var(--t-fast);
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover { background: var(--accent-hot); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { background: var(--bg-elev-2); border-color: var(--text-mute); }
.btn-dark {
  background: var(--bg-elev-3);
  color: var(--text);
}
.btn-dark:hover { background: var(--bg-elev-2); }
.btn-icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  color: var(--text);
  position: relative;
  transition: background var(--t-fast);
}
.btn-icon:hover { background: var(--bg-elev-2); }
.btn-icon .badge {
  position: absolute;
  top: 4px; right: 4px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  display: grid; place-items: center;
  border-radius: 8px;
}
.btn-lg { padding: 16px 24px; font-size: 15px; }
.btn-block { display: flex; justify-content: center; width: 100%; }

/* Chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--bg-elev-2);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.chip-accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chip-outline { background: transparent; }
.chip-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* Cards */
.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all var(--t-med);
}
.card:hover { border-color: var(--line-strong); }

/* Page transitions */
.page-fade { animation: pageFade 320ms cubic-bezier(.2,.7,.3,1) both; }
@keyframes pageFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* Form controls */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-mute);
}
.field input, .field select, .field textarea {
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  padding: 12px 14px;
  border-radius: var(--r-md);
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color var(--t-fast);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent);
}

/* Page container */
.page { max-width: 1600px; margin: 0 auto; padding: 32px 28px 80px; }
.page-tight { max-width: 1280px; }
.page-narrow { max-width: 880px; }

/* Section heading */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.section-head .t { font-family: var(--font-display); font-size: 56px; line-height: 0.9; text-transform: uppercase; }
.section-head .s { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-mute); }

/* Marquee */
.marquee {
  overflow: hidden;
  background: var(--accent);
  color: var(--accent-ink);
  border-block: 1px solid var(--accent);
  padding: 14px 0;
}
.marquee-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: 700;
  animation: marquee 40s linear infinite;
}
.marquee-track span::after {
  content: '★';
  margin-left: 48px;
  font-size: 18px;
  vertical-align: middle;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Footer */
.footer {
  background: #000;
  color: var(--text-mute);
  padding: 80px 28px 32px;
  margin-top: 80px;
  border-top: 1px solid var(--line);
}
.footer-inner { max-width: 1600px; margin: 0 auto; }
.footer .big {
  font-family: var(--font-display);
  font-size: clamp(80px, 14vw, 220px);
  color: var(--text);
  line-height: 0.85;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 40px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-col h4 { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text); margin: 0 0 12px; }
.footer-col a { display: block; padding: 4px 0; font-size: 13px; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 40px; margin-top: 40px; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; }

/* Scroll lock when overlay (drawer / modal) open */
html.has-overlay,
html.has-overlay body {
  overflow: hidden !important;
  overscroll-behavior: contain;
}
html.has-overlay body {
  /* body is position:fixed (set inline by JS), need touch-action to disable scroll-chaining */
  touch-action: none;
}
html.has-overlay .drawer,
html.has-overlay .filters {
  touch-action: pan-y;
  overscroll-behavior: contain;
}

/* Cart head responsive */
.cart-page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}
.cart-page-title {
  font-size: clamp(26px, 5vw, 56px);
  margin: 8px 0 0;
  line-height: 1;
  word-break: break-word;
}

/* ===== Home ===== */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 540px;
  gap: 40px;
  padding: 60px 28px 100px;
  max-width: 1600px;
  margin: 0 auto;
  min-height: 720px;
  overflow: hidden;
}
.hero-left { display: flex; flex-direction: column; justify-content: space-between; position: relative; z-index: 2; }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(60px, 11vw, 200px);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  font-weight: 700;
}
.hero-title br { line-height: 1.5; }
.hero-title .accent { color: var(--accent); }
.hero-title .outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--text);
}
.hero-meta {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero-meta .item .k { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-mute); margin-bottom: 6px; }
.hero-meta .item .v { font-family: var(--font-display); font-size: 28px; text-transform: uppercase; }

.hero-right {
  position: relative;
  background: radial-gradient(ellipse at center, rgba(253, 184, 39, 0.15), transparent 70%);
}
.hero-tire {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.tire-svg-big { width: 100%; height: 100%; max-width: 540px; }
.hero-spec {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-mute);
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-spec::before { content: ''; width: 24px; height: 1px; background: var(--accent); }
.hero-spec.top-left { top: 20px; left: 20px; }
.hero-spec.top-right { top: 80px; right: 20px; flex-direction: row-reverse; }
.hero-spec.top-right::before { background: var(--accent); }
.hero-spec.bottom-left { bottom: 60px; left: 20px; }
.hero-spec.bottom-right { bottom: 30px; right: 20px; flex-direction: row-reverse; }

/* Tire 3D-ish illustration */
.tire-art {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.tire-art .outer {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #2a2a2a, #050505 70%);
  box-shadow: inset 0 0 80px #000, 0 60px 100px rgba(0,0,0,0.6);
}
.tire-art .tread {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg, transparent 0deg 6deg, rgba(0,0,0,0.7) 6deg 8deg),
    radial-gradient(circle, #1a1a1a, #0a0a0a 80%);
  box-shadow: inset 0 0 40px rgba(0,0,0,0.8);
}
.tire-art .inner {
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #2a2a2a, #0a0a0a 80%);
  box-shadow: inset 0 0 30px #000;
}
.tire-art .rim {
  position: absolute;
  inset: 30%;
  border-radius: 50%;
  background:
    conic-gradient(from 0deg, #c8c8c8, #555555 25%, #c8c8c8 50%, #555 75%, #c8c8c8);
  box-shadow: inset 0 0 20px rgba(0,0,0,0.6), 0 0 30px rgba(0,0,0,0.4);
}
.tire-art .hub {
  position: absolute;
  inset: 44%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #888, #222);
  z-index: 2;
}
.tire-art .spokes {
  position: absolute;
  inset: 30%;
  z-index: 1;
}
.tire-art .spoke {
  position: absolute;
  width: 14%;
  height: 50%;
  left: 43%;
  top: 0;
  background: linear-gradient(to bottom, #999, #444);
  transform-origin: 50% 100%;
  clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%);
}
.tire-art .label {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 1px dashed rgba(253,184,39,0.4);
  display: grid;
  place-items: center;
  pointer-events: none;
}

/* Quick search bar */
.quicksearch {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}
.quicksearch .label-col { padding-right: 16px; border-right: 1px solid var(--line); }
.quicksearch .label-col .eyebrow { margin-bottom: 4px; }
.quicksearch .label-col .t { font-family: var(--font-display); font-size: 20px; text-transform: uppercase; line-height: 1; }
.quicksearch .selects { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; flex: 1; }
.quicksearch select {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 10px 12px;
  border-radius: var(--r-md);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%23a5a29b' stroke-width='1.4' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 30px;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 80px;
}
.feature-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  cursor: pointer;
  transition: all var(--t-med);
  position: relative;
  overflow: hidden;
}
.feature-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.feature-card:hover .feature-art { color: var(--accent); }
.feature-card .feature-num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-mute);
  letter-spacing: 0.14em;
}
.feature-card h3 { font-family: var(--font-display); font-size: 28px; text-transform: uppercase; margin: 0; line-height: 0.95; }
.feature-card p { color: var(--text-mute); font-size: 13px; margin: 0; }
.feature-art {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  color: var(--text);
  transition: color var(--t-med);
}
.feature-card .go {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}

/* Product strip */
.scroller-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* ===== Catalog ===== */
.catalog-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}
.filters {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  padding-right: 8px;
}
.filters::-webkit-scrollbar { width: 4px; }
.filters::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 4px; }

.filter-group {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px;
}
.filter-group h4 { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-mute); margin: 0 0 14px; display: flex; justify-content: space-between; }
.filter-group h4 .count { color: var(--accent); }
.filter-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; user-select: none; }
.filter-row:hover .name { color: var(--text); }
.checkbox {
  width: 16px; height: 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: 4px;
  display: grid; place-items: center;
  transition: all var(--t-fast);
  flex-shrink: 0;
}
.checkbox.on { background: var(--accent); border-color: var(--accent); }
.checkbox.on::after { content: ''; width: 8px; height: 4px; border-left: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink); transform: rotate(-45deg) translateY(-1px); }
.filter-row .name { color: var(--text-mute); font-size: 13px; flex: 1; transition: color var(--t-fast); }
.filter-row.on .name { color: var(--text); }
.filter-row .num { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); }

.slider-track {
  position: relative;
  height: 36px;
  margin: 8px 0 4px;
}
.slider-track input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  width: 100%;
  height: 36px;
  background: transparent;
  pointer-events: none;
}
.slider-track input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  pointer-events: auto;
  cursor: pointer;
  margin-top: -7px;
}
.slider-track input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg); pointer-events: auto; cursor: pointer;
}
.slider-bar { position: absolute; top: 16px; left: 0; right: 0; height: 4px; background: var(--bg-elev-3); border-radius: 2px; }
.slider-fill { position: absolute; top: 16px; height: 4px; background: var(--accent); border-radius: 2px; }
.slider-vals { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; color: var(--text-mute); margin-top: 4px; }

.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.catalog-toolbar .count {
  font-family: var(--font-display);
  font-size: 32px;
  text-transform: uppercase;
}
.catalog-toolbar .count .num { color: var(--accent); }
.catalog-toolbar .actions { display: flex; gap: 8px; align-items: center; }
.toggle-group { display: flex; background: var(--bg-elev-2); border-radius: var(--r-md); padding: 3px; }
.toggle-group button { padding: 6px 10px; border-radius: 6px; color: var(--text-mute); font-size: 12px; }
.toggle-group button.on { background: var(--bg-elev); color: var(--text); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Product card */
.product {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all var(--t-med);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
}
.product:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.product-img {
  aspect-ratio: 1;
  position: relative;
  background: #050505;
  display: grid;
  place-items: center;
  transition: background var(--t-med);
  overflow: hidden;
}
.product-img svg { width: 78%; height: 78%; transition: transform 600ms cubic-bezier(.2,.7,.3,1); }

/* === Real tire photo block (used in cards, PDP gallery, cart) === */
.tire-photo {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 50%, var(--glow-2, #1a1a1a) 0%, #050505 65%, #000 100%);
  isolation: isolate;
}
.tire-photo-glow {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(circle at 65% 50%, var(--glow-1, #c93a3a) 0%, transparent 38%),
    radial-gradient(circle at 35% 55%, var(--glow-2, #3a0a0a) 0%, transparent 45%);
  opacity: 0.55;
  filter: blur(8px);
  z-index: 0;
  transition: opacity 480ms cubic-bezier(.2,.7,.3,1), filter 480ms cubic-bezier(.2,.7,.3,1);
  animation: tire-glow-breathe 6s ease-in-out infinite;
}
@keyframes tire-glow-breathe {
  0%, 100% { opacity: 0.45; filter: blur(10px); }
  50% { opacity: 0.62; filter: blur(6px); }
}
.tire-photo-spin {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  transform-origin: 50% 50%;
  will-change: transform;
  transform: rotate(0deg);
  transition: transform 900ms cubic-bezier(.2,.7,.3,1);
}
.tire-photo-spin img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  mix-blend-mode: screen;
  filter: contrast(1.08) saturate(1.05);
}

/* Hero variant — horizontal drift, no rotation */
.tire-photo.tire-photo-drift .tire-photo-spin {
  animation: tire-drift 7s ease-in-out infinite alternate;
  transition: none;
}
@keyframes tire-drift {
  from { transform: translateX(-3.5%); }
  to   { transform: translateX(3.5%); }
}
.tire-photo-wm {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  z-index: 3;
  pointer-events: none;
  mix-blend-mode: screen;
}
.tire-photo-wm .dot { color: var(--accent); }

/* Hover state — slow tilt ~30°, intensify glow */
.product:hover .tire-photo-glow,
.tire-photo-hover:hover .tire-photo-glow {
  opacity: 0.95;
  filter: blur(4px);
}
.product:hover .tire-photo-spin,
.tire-photo-hover:hover .tire-photo-spin {
  transform: rotate(30deg);
}
.product:hover .tire-photo-spin img,
.tire-photo-hover:hover .tire-photo-spin img {
  filter: contrast(1.18) saturate(1.2) brightness(1.06);
}
.product-tags {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  z-index: 2;
}
.product-fav {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  display: grid;
  place-items: center;
  color: var(--text);
  backdrop-filter: blur(4px);
  z-index: 2;
}
.product-fav.on { color: var(--red); }
.product-spec-overlay {
  position: absolute;
  bottom: 12px;
  left: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: rgba(0,0,0,0.6);
  padding: 4px 8px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}
.product-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-brand {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-mute);
}
.product-name { font-family: var(--font-display); font-size: 22px; text-transform: uppercase; line-height: 1; margin: 0; }
.product-meta { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.price { font-family: var(--font-display); font-size: 26px; }
.price .currency { font-size: 14px; color: var(--text-mute); margin-right: 4px; }
.price .from { font-family: var(--font-mono); font-size: 10px; color: var(--text-mute); display: block; line-height: 1; }

.dna-mini {
  display: flex;
  gap: 4px;
  align-items: center;
}
.dna-mini .bar {
  width: 4px;
  border-radius: 2px;
  background: var(--bg-elev-3);
  position: relative;
  height: 18px;
}
.dna-mini .bar-fill { position: absolute; bottom: 0; left: 0; right: 0; background: var(--accent); border-radius: 2px; }

/* Product list view */
.product-list { display: flex; flex-direction: column; gap: 12px; }
.product-list-item {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px;
  display: grid;
  grid-template-columns: 120px 1fr auto auto;
  align-items: center;
  gap: 24px;
  cursor: pointer;
  transition: border-color var(--t-fast);
}
.product-list-item:hover { border-color: var(--line-strong); }

/* ===== Product Detail ===== */
.pdp {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  margin-top: 24px;
}
.pdp-gallery {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.pdp-gallery svg { width: 75%; height: 75%; }
.gallery-thumbs {
  position: absolute;
  bottom: 20px; left: 20px;
  display: flex;
  gap: 8px;
}
.gallery-thumb {
  width: 64px; height: 64px;
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-mute);
  letter-spacing: 0.1em;
}
.gallery-thumb.on { border-color: var(--accent); color: var(--accent); }
.ar-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--bg-elev-2);
  border: 1px solid var(--line-strong);
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--r-md);
  display: flex; gap: 8px; align-items: center;
  color: var(--text);
  cursor: pointer;
  transition: all var(--t-fast);
}
.ar-btn:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.spec-tag {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-mute);
  display: flex;
  align-items: center;
  gap: 8px;
}
.spec-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.spec-tag .line { width: 40px; height: 1px; background: var(--line-strong); }

.pdp-info { display: flex; flex-direction: column; gap: 20px; }
.pdp-title { font-family: var(--font-display); font-size: clamp(48px, 6vw, 72px); line-height: 0.9; text-transform: uppercase; margin: 0; }
.pdp-brand { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; color: var(--accent); text-transform: uppercase; }
.pdp-price-row { display: flex; align-items: baseline; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pdp-price { font-family: var(--font-display); font-size: 56px; line-height: 1; }
.pdp-price .currency { font-size: 24px; color: var(--text-mute); margin-right: 4px; }
.pdp-price-each { font-family: var(--font-mono); font-size: 11px; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.12em; }

.qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
}
.qty button { width: 36px; height: 36px; display: grid; place-items: center; color: var(--text); }
.qty button:hover { color: var(--accent); }
.qty input {
  width: 50px; height: 36px;
  background: transparent; border: none;
  font-family: var(--font-mono); font-size: 14px;
  text-align: center;
  outline: none;
  border-left: 1px solid var(--line); border-right: 1px solid var(--line);
}

.size-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.size-tile {
  padding: 12px 10px;
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all var(--t-fast);
}
.size-tile:hover { border-color: var(--line-strong); }
.size-tile.on { border-color: var(--accent); background: rgba(253,184,39,0.06); }
.size-tile .size { font-family: var(--font-mono); font-size: 12px; }
.size-tile .stock { font-family: var(--font-mono); font-size: 9px; color: var(--green); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.1em; }
.size-tile .stock.low { color: var(--accent-hot); }

/* TIRE DNA Radar */
.dna-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 24px;
}
.dna-header { display: flex; justify-content: space-between; margin-bottom: 16px; }
.dna-header .t { font-family: var(--font-display); font-size: 28px; text-transform: uppercase; line-height: 1; }
.dna-header .tag { font-family: var(--font-mono); font-size: 10px; color: var(--accent); letter-spacing: 0.14em; text-transform: uppercase; }
.dna-body { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: center; }
.dna-legend { display: flex; flex-direction: column; gap: 10px; }
.dna-stat { display: flex; align-items: center; gap: 12px; }
.dna-stat .lbl { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-mute); width: 60px; }
.dna-stat .bar { flex: 1; height: 4px; background: var(--bg-elev-3); border-radius: 2px; position: relative; overflow: hidden; }
.dna-stat .bar-f { height: 100%; background: var(--accent); border-radius: 2px; transition: width 600ms ease; }
.dna-stat .num { font-family: var(--font-mono); font-size: 11px; color: var(--text); width: 30px; text-align: right; }

/* AR overlay */
.ar-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.96);
  display: grid;
  place-items: center;
  animation: pageFade 240ms ease both;
}
.ar-stage {
  position: relative;
  width: min(92vw, 900px);
  aspect-ratio: 16/10;
  background: linear-gradient(180deg, #1a1a1a 0%, #050505 100%);
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line);
}
.ar-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 80px, rgba(255,255,255,0.02) 80px 81px),
    repeating-linear-gradient(0deg, transparent 0 80px, rgba(255,255,255,0.02) 80px 81px);
  pointer-events: none;
}
.ar-car-silhouette {
  position: absolute;
  bottom: 18%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
}
.ar-chrome {
  position: absolute;
  top: 16px; left: 16px; right: 16px;
  display: flex; justify-content: space-between; align-items: center;
}
.ar-rec { display: flex; gap: 8px; align-items: center; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.ar-rec .blink { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: pulse 1s infinite; }
.ar-corners::before, .ar-corners::after, .ar-corners > span::before, .ar-corners > span::after {
  content: ''; position: absolute; width: 32px; height: 32px;
  border: 2px solid var(--accent);
}
.ar-corners::before { top: 60px; left: 30px; border-right: none; border-bottom: none; }
.ar-corners::after { top: 60px; right: 30px; border-left: none; border-bottom: none; }
.ar-corners > span::before { bottom: 30px; left: 30px; border-right: none; border-top: none; }
.ar-corners > span::after { bottom: 30px; right: 30px; border-left: none; border-top: none; }
.ar-corners > span { position: absolute; inset: 0; }
.ar-bottom {
  position: absolute;
  bottom: 16px; left: 16px; right: 16px;
  display: flex; justify-content: space-between; gap: 16px;
}
.ar-close {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 10;
  background: rgba(0,0,0,0.7);
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--text);
  border: 1px solid var(--line);
}

/* ===== Garage (visual car selector) ===== */
.garage {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
}
.garage-side {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: fit-content;
  position: sticky;
  top: 90px;
}
.garage-side h2 { font-family: var(--font-display); font-size: 36px; text-transform: uppercase; line-height: 1; margin: 0; }
.garage-step { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.garage-step:last-child { border-bottom: none; }
.garage-step .num { width: 28px; height: 28px; border-radius: 50%; background: var(--bg-elev-2); display: grid; place-items: center; font-family: var(--font-mono); font-size: 12px; color: var(--text-mute); border: 1px solid var(--line); }
.garage-step.done .num { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.garage-step.active .num { background: var(--text); color: var(--bg); border-color: var(--text); }
.garage-step .lbl { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-mute); flex: 1; }
.garage-step.active .lbl, .garage-step.done .lbl { color: var(--text); }
.garage-step .val { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }

.garage-main {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 32px;
  min-height: 600px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.garage-stage {
  flex: 1;
  display: grid;
  place-items: center;
  position: relative;
  background:
    radial-gradient(ellipse at 50% 70%, rgba(253,184,39,0.08), transparent 60%);
}
.garage-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 60px, rgba(255,255,255,0.02) 60px 61px),
    repeating-linear-gradient(0deg, transparent 0 60px, rgba(255,255,255,0.02) 60px 61px);
  pointer-events: none;
}
.car-select-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
}
.car-tile {
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all var(--t-med);
  position: relative;
}
.car-tile:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.car-tile:hover .car-photo img { transform: scale(1.04); filter: contrast(1.1) saturate(1) brightness(1); }
.car-tile:hover .car-photo::after { opacity: 0.35; }
.car-tile.on { border-color: var(--accent); background: rgba(253,184,39,0.04); }
.car-tile.on .car-photo::before { opacity: 1; }
.car-tile.on .car-photo-tag { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.car-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(180deg, #2a2a2a 0%, #0e0e0e 100%);
  isolation: isolate;
}
.car-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  /* Tame the bright studio bg so the silver cars fit the dark theme */
  filter: contrast(1.08) saturate(0.85) brightness(0.92);
  transition: transform 600ms cubic-bezier(.2,.7,.3,1), filter 320ms ease;
}
/* Vignette + accent ring overlays */
.car-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.55) 100%),
    radial-gradient(ellipse at 50% 30%, transparent 40%, rgba(0,0,0,0.5) 95%);
  opacity: 0.6;
  transition: opacity 320ms ease;
  pointer-events: none;
  z-index: 1;
}
.car-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--accent);
  opacity: 0;
  transition: opacity 240ms ease;
  pointer-events: none;
  z-index: 2;
  box-shadow: inset 0 0 30px rgba(253,184,39,0.18);
}
.car-photo-tag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 3;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  background: rgba(0,0,0,0.55);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: all var(--t-fast);
}
.car-tile .lbl {
  font-family: var(--font-display);
  font-size: 18px;
  text-transform: uppercase;
  line-height: 1;
  padding: 14px 14px 4px;
}
.car-tile .sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0 14px 16px;
}

/* === Garage result — real photo with rotating wheel overlay === */
.car-display-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: linear-gradient(180deg, #1c1c1c, #050505);
  border: 1px solid var(--line);
}
.car-display-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  filter: contrast(1.08) saturate(0.85) brightness(0.9);
}
.car-display-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, transparent 35%, rgba(0,0,0,0.6) 95%),
    linear-gradient(180deg, transparent 50%, rgba(253,184,39,0.06) 100%);
  pointer-events: none;
}
.car-display-badge {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(0,0,0,0.65);
  border: 1px solid var(--line);
  border-radius: 6px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text);
}
.car-display-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.car-display-badge .dot.green {
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}
.car-display-badge.top-left { top: 16px; left: 16px; }
.car-display-badge.bottom-right { bottom: 16px; right: 16px; }
.car-display-wheel {
  position: absolute;
  bottom: 20px;
  left: 20px;
  width: 72px;
  height: 72px;
  z-index: 2;
  border: 2px dashed rgba(253,184,39,0.6);
  border-radius: 50%;
  padding: 4px;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
}
.car-display-wheel svg { width: 100%; height: 100%; }

.garage-result {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}
.car-display {
  position: relative;
  aspect-ratio: 16/10;
  background:
    linear-gradient(180deg, transparent 0%, rgba(253,184,39,0.05) 100%),
    radial-gradient(ellipse at 50% 80%, rgba(253,184,39,0.15), transparent 70%);
  display: grid;
  place-items: center;
}
.fitment-card {
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
}
.fitment-card .row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }
.fitment-card .row:last-child { border-bottom: none; }
.fitment-card .k { font-family: var(--font-mono); font-size: 11px; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.12em; }
.fitment-card .v { font-family: var(--font-mono); font-size: 12px; color: var(--text); }

/* ===== Quiz ===== */
.quiz-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 28px;
}
.quiz-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; }
.quiz-progress .bar { flex: 1; height: 3px; background: var(--bg-elev-3); border-radius: 2px; overflow: hidden; }
.quiz-progress .bar-f { height: 100%; background: var(--accent); transition: width 400ms ease; }
.quiz-progress .num { font-family: var(--font-mono); font-size: 11px; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.14em; }

.quiz-bubble {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  align-items: flex-end;
  animation: pageFade 360ms cubic-bezier(.2,.7,.3,1) both;
}
.quiz-bubble.user { flex-direction: row-reverse; }
.quiz-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-size: 16px;
  flex-shrink: 0;
}
.quiz-bubble.user .quiz-avatar { background: var(--bg-elev-2); color: var(--text); }
.quiz-msg {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  padding: 16px 20px;
  border-radius: var(--r-lg);
  max-width: 80%;
  font-size: 15px;
}
.quiz-bubble.user .quiz-msg { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.quiz-msg .display { font-family: var(--font-display); font-size: 22px; text-transform: uppercase; line-height: 1; margin-bottom: 4px; }

.quiz-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 16px 0 16px 52px;
  animation: pageFade 360ms cubic-bezier(.2,.7,.3,1) both;
}
.quiz-option {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  padding: 14px 18px;
  border-radius: var(--r-md);
  text-align: left;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  transition: all var(--t-fast);
  display: flex;
  align-items: center;
  gap: 12px;
}
.quiz-option:hover { border-color: var(--accent); background: rgba(253,184,39,0.04); }
.quiz-option .ico { font-size: 20px; }

.quiz-typing {
  display: inline-flex;
  gap: 4px;
  padding: 8px 16px;
}
.quiz-typing span {
  width: 6px; height: 6px;
  background: var(--text-mute);
  border-radius: 50%;
  animation: bounce 1.4s infinite;
}
.quiz-typing span:nth-child(2) { animation-delay: 0.2s; }
.quiz-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-6px); opacity: 1; } }

/* ===== Cart ===== */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  margin-top: 24px;
}
.cart-line {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 20px;
  align-items: center;
  margin-bottom: 12px;
}
.cart-line .thumb {
  width: 100px; height: 100px;
  background: var(--bg-elev-2);
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
}
.cart-line .thumb svg { width: 80%; height: 80%; }
.cart-line .info { display: flex; flex-direction: column; gap: 4px; }
.cart-line .info .brand { font-family: var(--font-mono); font-size: 10px; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.12em; }
.cart-line .info .name { font-family: var(--font-display); font-size: 22px; text-transform: uppercase; line-height: 1; }
.cart-line .info .size { font-family: var(--font-mono); font-size: 12px; color: var(--text-mute); }
.cart-line .actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.cart-line .actions .price { font-family: var(--font-display); font-size: 28px; }
.cart-line .actions .rem { font-family: var(--font-mono); font-size: 10px; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.12em; cursor: pointer; }
.cart-line .actions .rem:hover { color: var(--red); }

.cart-summary {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  position: sticky;
  top: 90px;
  height: fit-content;
}
.cart-summary h3 { font-family: var(--font-display); font-size: 28px; text-transform: uppercase; line-height: 1; margin: 0 0 16px; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; color: var(--text-mute); }
.summary-row.total { font-family: var(--font-display); font-size: 28px; color: var(--text); padding-top: 16px; margin-top: 8px; border-top: 1px solid var(--line); text-transform: uppercase; }

.talacha-card {
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px;
  margin: 16px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.talacha-card.on { border-color: var(--accent); background: rgba(253,184,39,0.06); }
.talacha-card .icon { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-elev-3); display: grid; place-items: center; color: var(--accent); flex-shrink: 0; }
.talacha-card .talacha-info { flex: 1; }
.talacha-card .talacha-info .t { font-family: var(--font-display); font-size: 18px; text-transform: uppercase; line-height: 1; }
.talacha-card .talacha-info .s { font-family: var(--font-mono); font-size: 10px; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 4px; }
.talacha-card .price-tag { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }

/* Checkout */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  margin-top: 24px;
}
.checkout-step {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  margin-bottom: 12px;
}
.checkout-step-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}
.checkout-step-head .num-title { display: flex; align-items: center; gap: 12px; }
.checkout-step-head .num-title .n { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-family: var(--font-display); font-size: 14px; }
.checkout-step-head .num-title h3 { font-family: var(--font-display); font-size: 26px; text-transform: uppercase; line-height: 1; margin: 0; }
.checkout-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checkout-form .full { grid-column: 1 / -1; }

/* Schedule grid */
.cal-shell { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cal-section h4 { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-mute); margin: 0 0 10px; }
.day-strip { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; }
.day-tile {
  flex-shrink: 0;
  width: 60px;
  padding: 10px;
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all var(--t-fast);
}
.day-tile:hover { border-color: var(--line-strong); }
.day-tile.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.day-tile.full { opacity: 0.3; cursor: not-allowed; }
.day-tile .dow { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; }
.day-tile .num { font-family: var(--font-display); font-size: 22px; line-height: 1; margin: 4px 0; }
.day-tile .month { font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; letter-spacing: 0.1em; }

.time-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.time-slot {
  padding: 10px;
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
  transition: all var(--t-fast);
  text-align: center;
}
.time-slot:hover { border-color: var(--line-strong); }
.time-slot.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.time-slot.full { opacity: 0.25; cursor: not-allowed; text-decoration: line-through; }

.shop-card {
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  margin-bottom: 8px;
  transition: all var(--t-fast);
}
.shop-card.on { border-color: var(--accent); }
.shop-card .pin { width: 32px; height: 32px; border-radius: 50%; background: var(--bg-elev-3); display: grid; place-items: center; color: var(--accent); }
.shop-card .shop-info { flex: 1; }
.shop-card .shop-info .name { font-weight: 600; font-size: 14px; }
.shop-card .shop-info .addr { font-family: var(--font-mono); font-size: 10px; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.1em; }
.shop-card .dist { font-family: var(--font-mono); font-size: 11px; color: var(--accent); }

/* Account */
.account-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  margin-top: 24px;
}
.account-side {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
  height: fit-content;
  position: sticky;
  top: 90px;
}
.account-user { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.account-user .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-family: var(--font-display); font-size: 18px; }
.account-user .info .n { font-weight: 600; }
.account-user .info .s { font-family: var(--font-mono); font-size: 10px; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.1em; }
.account-nav { display: flex; flex-direction: column; gap: 2px; }
.account-nav-item { padding: 10px 12px; border-radius: var(--r-md); font-size: 13px; color: var(--text-mute); cursor: pointer; transition: all var(--t-fast); display: flex; align-items: center; gap: 10px; }
.account-nav-item:hover { background: var(--bg-elev-2); color: var(--text); }
.account-nav-item.on { background: var(--bg-elev-2); color: var(--accent); }

.order-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
  margin-bottom: 12px;
}
.order-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.order-head .order-id { font-family: var(--font-mono); font-size: 12px; color: var(--text-mute); }
.order-status { display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; }
.order-status .dot { width: 6px; height: 6px; border-radius: 50%; }
.order-status.shipped .dot { background: var(--accent); }
.order-status.delivered .dot { background: var(--green); }
.order-status.scheduled .dot { background: var(--blue); }

/* Services */
.services-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  padding: 40px 0;
  align-items: center;
}
.service-mega {
  font-family: var(--font-display);
  font-size: clamp(80px, 12vw, 180px);
  line-height: 0.85;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.service-mega .accent { color: var(--accent); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.service-tile {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 280px;
}
.service-tile .num { position: absolute; top: 20px; right: 24px; font-family: var(--font-display); font-size: 80px; color: var(--bg-elev-2); line-height: 0.8; }
.service-tile h3 { font-family: var(--font-display); font-size: 32px; text-transform: uppercase; line-height: 0.95; margin: auto 0 12px; }
.service-tile p { color: var(--text-mute); font-size: 13px; margin: 0; }
.service-tile .price { font-family: var(--font-display); font-size: 24px; color: var(--accent); margin-top: 16px; }

/* Stats strip */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  margin-top: 60px;
}
.stat-cell {
  background: var(--bg);
  padding: 32px 24px;
}
.stat-cell .num { font-family: var(--font-display); font-size: clamp(48px, 6vw, 80px); line-height: 0.9; }
.stat-cell .num .accent { color: var(--accent); }
.stat-cell .lbl { font-family: var(--font-mono); font-size: 11px; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.14em; margin-top: 8px; }

/* ===========================================================
   ============   STANDARDIZED INPUT SYSTEM  (v2)   ==========
   =========================================================== */

.field-v2 {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
.field-v2.field-full { grid-column: 1 / -1; }
.field-v2 > label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-mute);
}
.field-v2 .field-input {
  position: relative;
  display: flex;
  align-items: stretch;
  background: var(--bg-elev-2);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
  overflow: hidden;
}
.field-v2 .field-input:focus-within {
  border-color: var(--accent);
  background: var(--bg);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 14%, transparent);
}
.field-v2.has-error .field-input {
  border-color: var(--red);
}
.field-v2 .field-icon {
  display: grid;
  place-items: center;
  width: 48px;
  flex-shrink: 0;
  color: var(--text-mute);
  border-right: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.field-v2 .field-input:focus-within .field-icon {
  color: var(--accent);
  border-right-color: var(--accent);
  background: rgba(253, 184, 39, 0.06);
}
.field-v2 input,
.field-v2 select,
.field-v2 textarea {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  padding: 14px 14px;
  font-size: 16px; /* 16px on mobile prevents iOS zoom */
  color: var(--text);
  font-family: var(--font-body);
}
.field-v2 input::placeholder {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.field-v2 .field-suffix {
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent);
  flex-shrink: 0;
  border-left: 1px solid var(--line);
  background: rgba(253, 184, 39, 0.04);
}
.field-v2 .field-action {
  display: grid;
  place-items: center;
  width: 44px;
  flex-shrink: 0;
  color: var(--text-mute);
  background: transparent;
  border-left: 1px solid var(--line);
  cursor: pointer;
  transition: color var(--t-fast), background var(--t-fast);
}
.field-v2 .field-action:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.field-v2 .field-hint {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.field-v2 .field-hint-error { color: var(--red); }

/* Pay tabs (segmented) */
.pay-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 18px;
  padding: 4px;
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.pay-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--text-mute);
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--t-fast);
  white-space: nowrap;
}
.pay-tab.on {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}
.pay-tab .pay-glyph { font-size: 14px; }
.pay-note {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(74, 222, 128, 0.06);
  border: 1px solid rgba(74, 222, 128, 0.16);
  border-radius: var(--r-md);
  font-size: 12px;
  color: var(--text-mute);
}
.pay-note svg { color: var(--green); flex-shrink: 0; }

/* ===========================================================
   ============   MOBILE DRAWER (Header menu)  ===============
   =========================================================== */

.menu-toggle { display: none !important; }

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}
.drawer-overlay.on {
  opacity: 1;
  pointer-events: auto;
}
.drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(86vw, 360px);
  background: var(--bg);
  border-right: 1px solid var(--line);
  z-index: 100;
  transform: translateX(-100%);
  transition: transform 320ms cubic-bezier(.2, .7, .3, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.drawer.on { transform: translateX(0); }
.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}
.drawer-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 12px;
  gap: 2px;
}
.drawer-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 14px;
  border-radius: var(--r-md);
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  transition: background var(--t-fast);
}
.drawer-item:hover { background: var(--bg-elev-2); }
.drawer-item.active {
  background: var(--bg-elev-2);
  color: var(--accent);
}
.drawer-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 12px; bottom: 12px;
  width: 3px;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
}
.drawer-item > svg:first-child {
  color: var(--text-mute);
}
.drawer-item.active > svg:first-child { color: var(--accent); }
.drawer-item > span { flex: 1; }
.drawer-item > svg:last-child { color: var(--text-dim); }
.drawer-badge {
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 8px;
}
.drawer-sep {
  margin: 12px 0;
  height: 1px;
  background: var(--line);
}
.drawer-foot {
  padding: 20px;
  border-top: 1px solid var(--line);
  background: var(--bg-elev);
}
.drawer-phone {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--accent);
  text-transform: uppercase;
  margin-top: 6px;
  line-height: 1;
}
.drawer-foot-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 6px;
}

/* ===========================================================
   ============   CATALOG FILTERS DRAWER (mobile)   ==========
   =========================================================== */

.filters-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}
.filters-overlay.on {
  opacity: 1;
  pointer-events: auto;
}
.filters-mobile-head,
.filters-mobile-foot { display: none; }
.filter-btn { position: relative; }
.filter-btn-count {
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 6px;
  margin-left: 6px;
}

.catalog-sort {
  background: var(--bg-elev-2);
  color: var(--text);
  border: 1px solid var(--line);
  padding: 10px 30px 10px 12px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%23a5a29b' stroke-width='1.4' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  min-width: 0;
}

/* ===========================================================
   ============   MOBILE STICKY CTA BAR (PDP)   ==============
   =========================================================== */

.mobile-cta-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 80;
  background: color-mix(in oklab, var(--bg) 96%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line-strong);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  align-items: center;
  gap: 12px;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.3);
}
.mobile-cta-info {
  flex: 1;
  min-width: 0;
}
.mobile-cta-price {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1;
}
.mobile-cta-price span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-left: 6px;
}
.mobile-cta-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Utility classes */
.hide-sm { display: inherit; }
.mobile-only { display: none; }

/* ===========================================================
   ============   RESPONSIVE BREAKPOINTS   ===================
   =========================================================== */

/* Tablet (≤ 1100px) */
@media (max-width: 1100px) {
  /* Hero — keep two columns but tighter; user wants image on the right */
  .hero {
    grid-template-columns: 1.3fr 0.9fr;
    gap: 24px;
    padding: 48px 24px 80px;
    min-height: 0;
  }
  .hero-right { min-height: 360px; }
  .hero-meta .item .v { font-size: 22px; }

  .pdp { grid-template-columns: 1fr; gap: 24px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .scroller-row { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .services-hero { grid-template-columns: 1fr; }
  .car-select-grid { grid-template-columns: repeat(2, 1fr); }
  .garage-result { grid-template-columns: 1fr; }

  /* Home brand strip — wrap on 2 rows */
  div[style*="grid-template-columns: repeat(8, 1fr)"],
  div[style*="grid-template-columns:repeat(8, 1fr)"] {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
  }

  /* Services process grid */
  div[style*="grid-template-columns: 'repeat(4, 1fr)'"][style*="background: 'var(--line)'"],
  div[style*="grid-template-columns:repeat(4, 1fr)"][style*="background:var(--line)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Services shop locator */
  div[style*="grid-template-columns: 400px 1fr"],
  div[style*="grid-template-columns:400px 1fr"] {
    grid-template-columns: 1fr !important;
  }

  .catalog-grid { grid-template-columns: 1fr; }
  .filters {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: min(88vw, 380px);
    max-height: none;
    z-index: 95;
    background: var(--bg);
    transform: translateX(-100%);
    transition: transform 320ms cubic-bezier(.2, .7, .3, 1);
    padding: 0;
    overflow-y: auto;
    border-right: 1px solid var(--line);
  }
  .filters.open { transform: translateX(0); }
  .filters > .filter-group { margin: 0 16px 16px; }
  .filters > .filter-group:first-of-type { margin-top: 16px; }
  .filters-overlay { display: block; }
  .filters-mobile-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 2;
  }
  .filters-mobile-foot {
    display: block;
    padding: 16px 20px calc(20px + env(safe-area-inset-bottom));
    background: var(--bg);
    border-top: 1px solid var(--line);
    position: sticky;
    bottom: 0;
  }
  .filter-btn.mobile-only { display: inline-flex; }
}

/* Mobile (≤ 768px) */
@media (max-width: 768px) {
  body { font-size: 14px; }

  /* Header */
  .utilbar { padding: 6px 14px; font-size: 9px; gap: 8px; overflow: hidden; }
  .utilbar .scroller { gap: 14px; min-width: 0; }
  .utilbar .scroller > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hide-sm { display: none !important; }
  .mobile-only { display: inherit; }
  .header-inner {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    padding: 10px 14px;
  }
  .menu-toggle { display: grid !important; }
  .logo-img { height: 38px; }
  .nav { display: none; }
  .header-actions { gap: 2px; }
  .btn-icon { width: 38px; height: 38px; }

  /* Generic page padding */
  .page { padding: 20px 14px 100px; }

  /* Buttons */
  .btn { padding: 11px 14px; font-size: 13px; min-height: 44px; }
  .btn-lg { padding: 14px 18px; font-size: 14px; min-height: 50px; }

  /* Section heads */
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 18px;
  }
  .section-head .t { font-size: clamp(28px, 7vw, 38px); }
  .display { line-height: 0.95; }

  /* ==== HERO: keep 2-col, smaller image on the right (per Rayo) ==== */
  .hero {
    grid-template-columns: 1.35fr 0.85fr;
    gap: 14px;
    padding: 24px 14px 36px;
    min-height: 0;
    align-items: start;
  }
  .hero-left { min-width: 0; }
  .hero-right {
    aspect-ratio: 1 / 1;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    align-self: center;
    overflow: hidden;
    position: relative;
    border-radius: var(--r-lg);
  }
  .hero-tire { position: absolute !important; inset: 0 !important; }
  .hero-left > div > div[style*="display: flex"][style*="gap: 10px"],
  .hero-left > div > div[style*="display:flex"][style*="gap:10"] {
    flex-wrap: wrap;
    gap: 6px !important;
    margin-bottom: 18px !important;
  }
  .hero-left > div > div[style*="display: flex"][style*="gap: 10px"] .chip,
  .hero-left > div > div[style*="display:flex"][style*="gap:10"] .chip {
    font-size: 9px;
    padding: 4px 8px;
  }
  .hero-title {
    font-size: clamp(32px, 9vw, 56px);
    line-height: 1.02;
    letter-spacing: -0.01em;
  }
  .hero-title span.outline { -webkit-text-stroke-width: 1.5px; }
  .hero-left p { font-size: 12px !important; max-width: 100% !important; margin-top: 16px !important; }
  .hero-left > div > div[style*="margin-top: 28px"],
  .hero-left > div > div[style*="margin-top:28px"] {
    flex-direction: column;
    align-items: stretch;
    margin-top: 18px !important;
    gap: 6px !important;
  }
  .hero-left .btn-lg { padding: 12px 14px; font-size: 12px; min-height: 44px; }
  .hero-meta {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding-top: 12px;
    margin-top: 16px;
  }
  .hero-meta .item .v { font-size: 14px; }
  .hero-meta .item .k { font-size: 8px; letter-spacing: 0.08em; }
  .hero-right { min-height: 0; aspect-ratio: 1 / 1; }
  /* Hide all spec floating labels on small screens - they crowd the image */
  .hero-spec { display: none; }

  /* Quick search → stacked */
  .quicksearch {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px;
  }
  .quicksearch .label-col {
    padding-right: 0;
    border-right: none;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
  }
  .quicksearch .selects { grid-template-columns: 1fr 1fr; }
  .quicksearch select { padding: 14px 12px; font-size: 13px; min-height: 48px; }

  /* Feature/Service grids → 1 col */
  .feature-grid,
  .service-grid,
  .scroller-row,
  .car-select-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .feature-card { padding: 20px; }
  .feature-card h3 { font-size: 22px; }
  .service-tile { padding: 22px; min-height: 200px; }
  .service-tile h3 { font-size: 26px; }
  .service-tile .num { font-size: 56px; }

  /* Marquee smaller */
  .marquee { padding: 10px 0; }
  .marquee-track { font-size: 18px; gap: 28px; }
  .marquee-track span::after { margin-left: 28px; font-size: 14px; }

  /* Brand strip: become flex wrap */
  div[style*="grid-template-columns: repeat(8, 1fr)"],
  div[style*="grid-template-columns:repeat(8, 1fr)"] {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 22px !important;
  }
  div[style*="grid-template-columns: repeat(8, 1fr)"] > div,
  div[style*="grid-template-columns:repeat(8, 1fr)"] > div {
    font-size: 15px !important;
    flex: 0 0 auto;
  }

  /* Stats */
  .stats-strip { grid-template-columns: 1fr 1fr; margin-top: 32px; }
  .stat-cell { padding: 22px 16px; }
  .stat-cell .num { font-size: 44px; }
  .stat-cell .lbl { font-size: 10px; }

  /* Newsletter cta */
  div[style*="grid-template-columns: 1fr auto"][style*="border-radius: 24px"],
  div[style*="grid-template-columns:1fr auto"][style*="border-radius:24px"] {
    grid-template-columns: 1fr !important;
    padding: 24px 18px !important;
    gap: 16px !important;
    border-radius: 16px !important;
  }
  div[style*="grid-template-columns: 1fr auto"][style*="border-radius: 24px"] h2,
  div[style*="grid-template-columns:1fr auto"][style*="border-radius:24px"] h2 {
    font-size: 28px !important;
  }

  /* Footer */
  .footer { padding: 48px 14px 24px; margin-top: 48px; }
  .footer .big { font-size: clamp(56px, 18vw, 96px); margin-bottom: 24px; padding-bottom: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    font-size: 10px;
  }

  /* Catalog */
  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .product-body { padding: 12px; gap: 6px; }
  .product-name { font-size: 16px; }
  .product-brand { font-size: 9px; }
  .price { font-size: 18px; }
  .price .from { font-size: 9px; }
  .product-meta { padding-top: 8px; gap: 6px; }
  .product-meta .btn { padding: 8px 10px; font-size: 11px; min-height: 36px; }
  .product-tags { top: 8px; left: 8px; }
  .product-tags .chip { font-size: 9px; padding: 3px 6px; }
  .product-fav { top: 8px; right: 8px; width: 28px; height: 28px; }
  .product-spec-overlay { bottom: 8px; left: 8px; font-size: 9px; padding: 3px 6px; }
  .dna-mini .bar { height: 14px; }

  .catalog-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 14px;
  }
  .catalog-toolbar .count { font-size: 22px; }
  .catalog-toolbar .count-lbl { font-size: 14px; color: var(--text-mute); }
  .catalog-toolbar .actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }
  .catalog-toolbar .catalog-sort { flex: 1; min-width: 140px; }
  .product-list-item {
    grid-template-columns: 80px 1fr;
    grid-template-rows: auto auto auto;
    gap: 12px;
  }
  .product-list-item > div:first-child { grid-row: 1 / 3; }
  .product-list-item > .btn { grid-column: 1 / -1; }

  /* PDP */
  .pdp-gallery { border-radius: var(--r-lg); }
  .pdp-title { font-size: clamp(28px, 8vw, 40px); }
  .pdp-price { font-size: 38px; }
  .pdp-price-row { padding: 12px 0; gap: 12px; flex-wrap: wrap; }
  .pdp-info { gap: 16px; }
  .pdp-info .pdp-brand { font-size: 10px; }
  .pdp-info p { font-size: 13px; }
  .ar-btn { font-size: 9px; padding: 8px 10px; top: 12px !important; right: 12px !important; }
  .size-grid { grid-template-columns: repeat(3, 1fr); }
  .size-tile { padding: 10px 8px; }
  .size-tile .size { font-size: 11px; }
  .size-tile .stock { font-size: 8px; }
  .gallery-thumbs { bottom: 12px; left: 12px; gap: 6px; }
  .gallery-thumb { width: 48px; height: 48px; font-size: 9px; }
  .pdp-gallery .spec-tag { display: none; }

  /* Sticky CTA visible */
  .mobile-cta-bar { display: flex; }

  /* DNA + Specs side-by-side breaks on mobile */
  div[style*="grid-template-columns: 1.4fr 1fr"],
  div[style*="grid-template-columns:1.4fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* DNA card */
  .dna-body { grid-template-columns: 1fr; gap: 16px; }
  .dna-card { padding: 18px; }
  .dna-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .dna-header .t { font-size: 22px; }
  .dna-card svg { max-width: 280px; margin: 0 auto; }

  /* Cart talacha-add-on card + Quiz match cards: stack the 3-col grid */
  div[style*="grid-template-columns: auto 1fr auto"],
  div[style*="grid-template-columns:auto 1fr auto"] {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    text-align: left;
  }
  div[style*="grid-template-columns: auto 1fr auto"] .btn,
  div[style*="grid-template-columns:auto 1fr auto"] .btn {
    justify-content: center;
    width: 100%;
  }
  /* The chip placed absolutely on quiz match card still works fine */

  /* Cart line */
  .cart-layout, .checkout-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .cart-line {
    grid-template-columns: 72px 1fr;
    grid-template-rows: auto auto;
    gap: 12px;
    padding: 14px;
  }
  .cart-line .thumb { width: 72px; height: 72px; }
  .cart-line .info .name { font-size: 17px; }
  .cart-line .info .brand { font-size: 9px; }
  .cart-line .info .size { font-size: 11px; }
  .cart-line .actions {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }
  .cart-line .actions .price { font-size: 22px; }
  .cart-summary {
    position: static;
    padding: 18px;
  }
  .cart-summary h3 { font-size: 22px; }
  .summary-row.total { font-size: 22px; }
  .summary-row { font-size: 13px; }

  /* Cart empty state */
  div.page.page-narrow[style*="text-align: center"] {
    padding: 60px 18px !important;
  }
  div.page.page-narrow[style*="text-align: center"] h1.display { font-size: clamp(36px, 9vw, 48px) !important; }
  div.page.page-narrow[style*="text-align: center"] > div[style*="display: flex"][style*="gap: 8"] {
    flex-direction: column;
    align-items: stretch;
  }

  /* Checkout */
  .checkout-step { padding: 18px; }
  .checkout-step-head .num-title h3 { font-size: 20px; }
  .checkout-form { grid-template-columns: 1fr; }
  .cal-shell { grid-template-columns: 1fr; gap: 20px; }
  .time-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .time-slot { min-height: 44px; display: grid; place-items: center; font-size: 14px; }
  .day-tile { width: 56px; padding: 10px 6px; }
  .day-tile .num { font-size: 20px; }
  .pay-tabs { grid-template-columns: repeat(3, 1fr); }
  .pay-tab { padding: 12px 4px; font-size: 9px; min-height: 44px; letter-spacing: 0.06em; }
  .pay-tab .pay-glyph { font-size: 13px; }

  /* Order confirmation grid */
  div[style*="grid-template-columns: repeat(2, 1fr)"][style*="gap: 16"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }

  /* Services */
  .service-mega { font-size: clamp(48px, 12vw, 80px); }
  /* Process steps grid → 1 col */
  div[style*="grid-template-columns: 'repeat(4, 1fr)'"],
  div[style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1px !important;
  }

  /* Garage */
  .garage {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .garage-side {
    position: static;
    padding: 18px;
    gap: 8px;
  }
  .garage-side h2 { font-size: 24px; }
  .garage-step { padding: 8px 0; }
  .garage-main { padding: 20px 14px; min-height: 440px; }
  .car-tile { padding: 0; }

  /* Garage brand / model / year grids → 2-3 cols */
  .garage-main > div > div[style*="grid-template-columns:repeat(4, 1fr)"],
  .garage-main > div > div[style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .garage-main > div > div[style*="grid-template-columns:repeat(3, 1fr)"],
  .garage-main > div > div[style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .garage-main > div > div[style*="grid-template-columns:repeat(6, 1fr)"],
  .garage-main > div > div[style*="grid-template-columns: repeat(6, 1fr)"] {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  /* Garage recommended cards (3-col) → 1 col */
  div[style*="grid-template-columns:repeat(3, 1fr)"][style*="gap: 12"],
  div[style*="grid-template-columns: repeat(3, 1fr)"][style*="gap: 12"] {
    grid-template-columns: 1fr !important;
  }

  /* Garage two-button row → stack */
  div[style*="grid-template-columns: 1fr 1fr"][style*="gap: 12"]:has(> .btn-lg),
  div[style*="grid-template-columns:1fr 1fr"][style*="gap: 12"]:has(> .btn-lg) {
    grid-template-columns: 1fr !important;
  }

  /* Quiz */
  .quiz-shell { padding: 32px 14px; }
  .quiz-options {
    grid-template-columns: 1fr;
    margin-left: 0;
  }
  .quiz-bubble.user .quiz-msg,
  .quiz-msg {
    max-width: 88%;
  }
  .quiz-msg .display { font-size: 18px; }
  /* Quiz: kill the nested scroller (was causing scroll jitter on mobile) */
  .quiz-shell > div[style*="max-height"][style*="overflow-y"] {
    max-height: none !important;
    overflow-y: visible !important;
    padding-right: 0 !important;
  }
  /* Quiz results buttons row */
  .quiz-shell > div > div > div[style*="display: flex"][style*="gap: 8"][style*="margin-left: 52"] {
    flex-direction: column;
    margin-left: 0 !important;
  }

  /* Account */
  .account-grid { grid-template-columns: 1fr; gap: 20px; }
  .account-side { position: static; padding: 14px; }
  /* Account stats triple-col → 1 */
  div[style*="grid-template-columns: repeat(3, 1fr)"][style*="margin-bottom: 24"] {
    grid-template-columns: 1fr !important;
  }
  /* Order card 4-col → stack */
  div[style*="grid-template-columns: auto 1fr auto auto"],
  div[style*="grid-template-columns:auto 1fr auto auto"] {
    grid-template-columns: auto 1fr !important;
    grid-template-rows: auto auto !important;
    gap: 12px !important;
  }
  div[style*="grid-template-columns: auto 1fr auto auto"] > .btn,
  div[style*="grid-template-columns:auto 1fr auto auto"] > .btn {
    grid-column: 1 / -1;
    width: 100%;
  }
  div[style*="grid-template-columns: auto 1fr auto auto"] > .price {
    grid-column: 1 / -1;
  }

  /* Account tires 4-col stats → 2 col */
  div[style*="grid-template-columns:repeat(4, 1fr)"][style*="gap: 12"],
  div[style*="grid-template-columns: repeat(4, 1fr)"][style*="gap: 12"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Section heads in PDP */
  .pdp-info .size-tile { padding: 10px 8px; }

  /* PDP qty + Add-to-cart row: stack on mobile */
  .pdp-info > div[style*="display: flex"][style*="gap: 12"][style*="align-items: center"] {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
  }
  .pdp-info > div[style*="display: flex"][style*="gap: 12"][style*="align-items: center"] > div:first-child {
    width: 100%;
  }
  .pdp-info > div[style*="display: flex"][style*="gap: 12"][style*="align-items: center"] > div:first-child .qty {
    width: 100%;
    display: flex !important;
  }
  .pdp-info > div[style*="display: flex"][style*="gap: 12"][style*="align-items: center"] > div:first-child .qty input {
    flex: 1;
    width: auto;
  }
  /* The "empty eyebrow" on the action row hidden on mobile */
  .pdp-info > div[style*="display: flex"][style*="gap: 12"][style*="align-items: center"] .eyebrow[style*="opacity: 0"] {
    display: none;
  }
  .pdp-info .btn-lg svg { flex-shrink: 0; }
  .pdp-info .btn-primary.btn-lg {
    font-size: 12px;
    padding: 14px 12px;
    text-align: center;
    white-space: normal;
  }

  /* PDP talacha-card layout: keep horizontal but shrink */
  .talacha-card { padding: 12px; gap: 10px; }
  .talacha-card .icon { width: 34px; height: 34px; }
  .talacha-card .icon svg { width: 16px !important; height: 16px !important; }
  .talacha-card .talacha-info .t { font-size: 15px; }
  .talacha-card .talacha-info .s { font-size: 9px; }
  .talacha-card .price-tag { font-size: 11px; }

  /* PDP delivery + warranty cards: 1 col on mobile */
  .pdp-info > div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  /* ==== CHECKOUT — shop cards, day strip, time grid all fit ==== */
  /* Shop card layout — stack icon+info, dist absolute right */
  .checkout-step .shop-card,
  .cal-shell .shop-card {
    padding: 12px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .checkout-step .shop-card .shop-info,
  .cal-shell .shop-card .shop-info {
    min-width: 0;
    flex: 1;
  }
  .checkout-step .shop-card .shop-info .name,
  .cal-shell .shop-card .shop-info .name {
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .checkout-step .shop-card .shop-info .addr,
  .cal-shell .shop-card .shop-info .addr {
    font-size: 9px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .checkout-step .shop-card .pin,
  .cal-shell .shop-card .pin { width: 28px; height: 28px; flex-shrink: 0; }
  .checkout-step .shop-card .dist,
  .cal-shell .shop-card .dist { font-size: 10px; }

  /* Day strip — bigger touch targets, smooth scroll */
  .day-strip {
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    margin: 0 -4px;
    padding: 0 4px 8px;
  }
  .day-tile { width: 60px; scroll-snap-align: start; }

  /* Time grid: 3 cols still fits */
  .time-grid { gap: 6px; }
  .time-slot { padding: 12px 4px; font-size: 13px; }

  /* Pay tabs — much tighter on mobile */
  .pay-tabs { gap: 4px; padding: 3px; }
  .pay-tab {
    padding: 12px 2px;
    font-size: 10px;
    letter-spacing: 0.04em;
    min-height: 44px;
    gap: 4px;
    flex-direction: column;
  }
  .pay-tab .pay-glyph { font-size: 13px; }
  .pay-tab svg { width: 14px; height: 14px; }

  /* Checkout step "EDITAR" chip smaller */
  .checkout-step-head .chip { font-size: 9px; padding: 4px 8px; }

  /* Order confirmation card on mobile */
  .page.page-narrow > .card[style*="text-align: left"] {
    padding: 18px !important;
  }
  .page.page-narrow > .card[style*="text-align: left"] > div[style*="grid-template-columns: repeat(2, 1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  /* Order confirmation page padding */
  div.page.page-narrow[style*="padding: '60px 28px'"],
  div.page.page-narrow[style*="padding: 60px 28px"] {
    padding: 32px 14px !important;
  }
  div.page.page-narrow[style*="padding: '60px 28px'"] h1.display,
  div.page.page-narrow[style*="padding: 60px 28px"] h1.display {
    font-size: clamp(36px, 9vw, 56px) !important;
  }

  /* Section heads in PDP — duplicate to keep order */

  /* AR */
  .ar-overlay { padding: 12px; }
  .ar-stage { aspect-ratio: 9/14; width: 100%; }
  .ar-chrome { top: 10px; left: 10px; right: 10px; }
  .ar-rec { font-size: 9px; }
  .ar-bottom {
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
    bottom: 10px; left: 10px; right: 10px;
  }
  .ar-bottom > div { flex-wrap: wrap; }
  .ar-close { top: 10px; right: 10px; width: 38px; height: 38px; }
}

/* ===========================================================
   ============   AUTH (Login + Register)   ==================
   =========================================================== */

.auth-page {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  min-height: calc(100vh - 110px);
  background: var(--bg);
}

/* Left — brand visual aside */
.auth-aside {
  position: relative;
  padding: 56px 56px 56px 48px;
  background: linear-gradient(155deg, #1a1a1a 0%, #050505 70%);
  color: var(--text);
  overflow: hidden;
  border-right: 1px solid var(--line);
  display: flex;
}
.auth-tire {
  position: absolute;
  inset: -10% -20% -10% 10%;
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}
.auth-tire::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(10,10,10,0.6) 0%, transparent 60%);
}
.auth-aside-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
}
.auth-back {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
}
.auth-back:hover { color: var(--accent); }
.auth-headline {
  font-family: var(--font-display);
  font-size: clamp(56px, 6vw, 96px);
  line-height: 0.88;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 8px 0 12px;
  font-weight: 700;
}
.auth-headline span {
  color: var(--accent);
}
.auth-sub {
  max-width: 420px;
  color: var(--text-mute);
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
}
.auth-benefits {
  list-style: none;
  margin: 0;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.auth-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.auth-benefits .bullet {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(253, 184, 39, 0.08);
  border: 1px solid rgba(253, 184, 39, 0.18);
  color: var(--accent);
}
.auth-benefits li > div { display: flex; flex-direction: column; gap: 2px; }
.auth-benefits strong { font-size: 14px; color: var(--text); font-weight: 600; }
.auth-benefits span { font-size: 12px; color: var(--text-mute); }
.auth-foot { margin-top: auto; }

/* Right — form card */
.auth-main {
  display: grid;
  place-items: center;
  padding: 56px 28px;
  background: var(--bg);
}
.auth-card {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.auth-tabs {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 4px;
}
.auth-tab {
  position: relative;
  z-index: 2;
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--text-mute);
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  transition: color var(--t-fast);
}
.auth-tab.on { color: var(--accent-ink); }
.auth-tab-indicator {
  position: absolute;
  top: 4px; bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  background: var(--accent);
  border-radius: 6px;
  transition: transform 280ms cubic-bezier(.2, .7, .3, 1);
  z-index: 1;
}
.auth-tab-indicator[data-mode="register"] {
  transform: translateX(calc(100% + 0px));
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.auth-head {
  margin-bottom: 4px;
}
.auth-head .display {
  font-size: clamp(40px, 5vw, 56px);
  line-height: 0.9;
  margin: 0 0 12px;
}
.auth-head p {
  color: var(--text-mute);
  font-size: 14px;
  margin: 0;
  line-height: 1.5;
}
.auth-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 4px 0 8px;
}
.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  user-select: none;
}
.auth-check input { position: absolute; opacity: 0; pointer-events: none; }
.auth-check-box {
  width: 18px; height: 18px;
  flex-shrink: 0;
  border: 1.5px solid var(--line-strong);
  border-radius: 4px;
  display: grid;
  place-items: center;
  transition: all var(--t-fast);
  background: var(--bg-elev-2);
}
.auth-check input:checked + .auth-check-box {
  background: var(--accent);
  border-color: var(--accent);
}
.auth-check input:checked + .auth-check-box::after {
  content: '';
  width: 9px; height: 5px;
  border-left: 2px solid var(--accent-ink);
  border-bottom: 2px solid var(--accent-ink);
  transform: rotate(-45deg) translateY(-1px);
}
.auth-check-full { padding: 4px 0; align-items: flex-start; }
.auth-check-full .auth-check-box { margin-top: 2px; }
.auth-check-full span:last-child { font-size: 12px; color: var(--text-mute); line-height: 1.5; }
.auth-link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
}
.auth-link:hover { text-decoration: underline; }
.auth-error {
  padding: 12px 14px;
  background: rgba(255, 90, 90, 0.08);
  border: 1px solid rgba(255, 90, 90, 0.3);
  border-radius: var(--r-md);
  font-size: 13px;
  color: var(--red);
}
.auth-submit { margin-top: 4px; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.auth-divider span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.auth-social {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.auth-social-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 14px;
  background: var(--bg-elev-2);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t-fast);
  min-height: 48px;
}
.auth-social-btn:hover {
  background: var(--bg-elev);
  border-color: var(--text-mute);
}
.auth-switch {
  text-align: center;
  font-size: 13px;
  color: var(--text-mute);
  margin: 8px 0 0;
}
.auth-switch a {
  color: var(--accent);
  cursor: pointer;
  font-weight: 600;
}
.auth-switch a:hover { text-decoration: underline; }

/* Logout item visual tweak */
.account-logout {
  margin-top: 8px;
  padding-top: 16px !important;
  border-top: 1px solid var(--line);
  color: var(--text-mute) !important;
}
.account-logout:hover {
  color: var(--red) !important;
  background: rgba(255, 90, 90, 0.06) !important;
}

/* Auth responsive */
@media (max-width: 1100px) {
  .auth-page { grid-template-columns: 1fr; min-height: 0; }
  .auth-aside {
    padding: 48px 28px;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .auth-tire { opacity: 0.25; inset: -20% -30% -30% -10%; }
  .auth-headline { font-size: clamp(48px, 9vw, 80px); }
  .auth-benefits { padding: 16px 0; gap: 12px; }
  .auth-main { padding: 32px 14px 56px; }
  .auth-card { max-width: 560px; }
}
@media (max-width: 640px) {
  .auth-aside { padding: 36px 18px; }
  .auth-headline { font-size: clamp(42px, 11vw, 68px); }
  .auth-sub { font-size: 13px; }
  .auth-benefits li:nth-child(n+3) { display: none; } /* trim to top 2 on tight screens */
  .auth-social { grid-template-columns: 1fr; }
  .auth-card { gap: 16px; }
  .auth-head .display { font-size: 36px; }
  .auth-tabs { padding: 3px; }
  .auth-tab { padding: 11px 8px; font-size: 11px; }
}
@media (max-width: 480px) {
  .header-inner { padding: 8px 12px; gap: 8px; }
  .logo-img { height: 34px; }
  .page { padding: 16px 12px 100px; }

  /* Hero — even tighter, image still on the right */
  .hero {
    grid-template-columns: 1.45fr 0.7fr;
    gap: 10px;
    padding: 16px 12px 28px;
  }
  .hero-title { font-size: clamp(28px, 9.5vw, 44px); }
  .hero-left p { font-size: 11px !important; margin-top: 10px !important; }
  .hero-left .btn-lg { font-size: 10px; padding: 10px 10px; }
  .hero-meta .item .v { font-size: 12px; }
  .hero-meta .item .k { font-size: 7px; }
  .hero-meta { margin-top: 10px; padding-top: 8px; gap: 4px; }

  /* Hide secondary chip on tightest screens */
  .hero-left > div > div[style*="display: flex"][style*="gap: 10px"] .chip-outline,
  .hero-left > div > div[style*="display:flex"][style*="gap:10"] .chip-outline {
    display: none;
  }
  /* Hero buttons stack full width */
  .hero-left > div > div[style*="margin-top: 28px"],
  .hero-left > div > div[style*="margin-top:28px"] {
    display: flex !important;
    flex-direction: column;
  }

  /* Allow 2-col on smallest, but cards get tighter */
  .product-grid { gap: 8px; }
  .product-name { font-size: 14px; }
  .price { font-size: 16px; }
  .price .currency { font-size: 11px; }
  .product-meta .btn { font-size: 10px; padding: 6px 8px; }
  .product-meta .btn svg { width: 12px; height: 12px; }
  .dna-mini .bar { width: 3px; height: 12px; }

  .section-head .t { font-size: clamp(24px, 7vw, 30px); }

  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer .big { font-size: clamp(40px, 18vw, 72px); }

  /* Time grid */
  .time-grid { grid-template-columns: repeat(2, 1fr); }

  /* Garage selectors → 2 col */
  .garage-main > div > div[style*="grid-template-columns:repeat(6, 1fr)"],
  .garage-main > div > div[style*="grid-template-columns: repeat(6, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .garage-main > div > div[style*="grid-template-columns:repeat(4, 1fr)"],
  .garage-main > div > div[style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Stats - single col stacked */
  .stats-strip { grid-template-columns: 1fr; }

  /* DNA radar smaller */
  .dna-card svg { max-width: 240px; }

  /* Marquee tiny */
  .marquee-track { font-size: 14px; gap: 20px; }

  /* Mobile CTA bar smaller */
  .mobile-cta-bar { padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
  .mobile-cta-price { font-size: 20px; }
  .mobile-cta-meta { font-size: 9px; }
  .mobile-cta-bar .btn-lg { padding: 12px 14px; font-size: 12px; }

  /* Garage stage smaller */
  .garage-main { padding: 14px 12px; min-height: 380px; }
  .car-tile .lbl { font-size: 16px; padding: 12px 12px 4px; }
  .car-tile .sub { font-size: 9px; padding: 0 12px 12px; }

  /* PDP price row stacks */
  .pdp-price-row { flex-direction: column; align-items: flex-start; gap: 6px; }

  /* Cart empty state buttons stack */
  .page.page-narrow > div[style*="display: flex"][style*="justify-content: center"] {
    flex-direction: column;
    align-items: stretch;
  }

  /* Account orders status & header */
  .order-head { flex-direction: column; align-items: flex-start; gap: 6px; }
}
