/* ============================================================
   FindCarParts — Additions for new functions
   Promo strip, drawers, modals, compare bar, autocomplete,
   recents, brand showcase, how-it-works, newsletter
   ============================================================ */

/* ============================================================
   UTILITY BAR — 3-column with inline rotating promo (center)
   ============================================================ */
/* Make the utility shell behave as a 3-column row: left | center | right */
.utility .shell { gap: 18px; }
.utility-left  { display: flex; gap: 18px; align-items: center; flex: 0 0 auto; }
.utility-right { display: flex; gap: 18px; align-items: center; flex: 0 0 auto; }
.utility-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}
.utility-promo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.promo-tag {
  font-family: var(--display);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.14em;
  background: var(--yellow);
  color: var(--carbon);
  padding: 2px 7px;
  border-radius: 2px;
  flex-shrink: 0;
}
.promo-text {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.utility-promo-dots { display: inline-flex; gap: 4px; flex-shrink: 0; }
.utility-promo-dots .udot {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255,255,255,0.22);
  cursor: pointer;
  transition: background 0.15s;
}
.utility-promo-dots .udot.on { background: var(--yellow); }
.utility-promo-dots .udot:hover { background: rgba(255,255,255,0.5); }

/* Trade deals — kept subtle now that it lives in the utility bar */
.utility-right a:first-child {
  color: var(--yellow);
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ============================================================
   ACTIVE-VEHICLE CHIP — sits in the topbar actions
   ============================================================ */
.tb-veh-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-2);
  border: 1px solid var(--carbon);
  border-radius: 2px;
  padding: 6px 10px;
  color: var(--carbon);
  cursor: pointer;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  margin-right: 6px;
  transition: background 0.15s, border-color 0.15s;
}
.tb-veh-chip:hover { background: var(--yellow); border-color: var(--carbon); }
.tb-veh-plate {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}
.tb-veh-more {
  background: var(--carbon);
  color: var(--yellow);
  padding: 1px 5px;
  border-radius: 2px;
  font-size: 10px;
  font-weight: 700;
}

/* ============================================================
   SEARCH AUTOCOMPLETE
   ============================================================ */
.search { position: relative; }
.autocomplete {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--line-dark);
  border-radius: 3px;
  box-shadow: var(--shadow-lg);
  z-index: 80;
  max-height: 480px;
  overflow-y: auto;
}
.ac-section { padding: 10px 12px; border-bottom: 1px solid var(--line-2); }
.ac-section:last-child { border-bottom: none; }
.ac-label {
  font-family: var(--display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.ac-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ac-chip {
  background: var(--orange-soft);
  color: var(--orange-2);
  border: none;
  padding: 5px 10px;
  border-radius: 2px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.15s;
}
.ac-chip:hover { background: var(--orange); color: white; }
.ac-chip.steel { background: var(--surface-2); color: var(--carbon); }
.ac-chip.steel:hover { background: var(--carbon); color: white; }

.ac-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.12s;
}
.ac-row:hover { background: var(--surface-2); }
.ac-thumb {
  width: 48px; height: 48px;
  background: linear-gradient(170deg, #F8F7F1 0%, #DAD8CD 100%);
  border: 1px solid var(--line);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.ac-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin-bottom: 2px;
}
.ac-meta { font-size: 12px; color: var(--muted); font-family: var(--mono); }
.ac-price { font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--carbon); }
.ac-empty { text-align: center; padding: 18px 12px; }
.ac-empty strong { display: block; font-family: var(--display); font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.ac-empty span { font-size: 12px; color: var(--muted); }

/* ============================================================
   PART CARD — additions (wishlist/compare tools, in-cart state)
   ============================================================ */
.card-tools {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 4;
  opacity: 0;
  transform: translateX(4px);
  transition: all 0.18s;
}
.part-card:hover .card-tools { opacity: 1; transform: translateX(0); }
.card-tool {
  width: 30px; height: 30px;
  background: rgba(255,255,255,0.95);
  border: 1px solid var(--line);
  border-radius: 2px;
  display: grid;
  place-items: center;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
}
.card-tool:hover { background: var(--carbon); border-color: var(--carbon); color: var(--orange); }
.card-tool.on { background: var(--orange); border-color: var(--orange); color: white; }
.card-tool.on:hover { background: var(--orange-2); color: white; }

.part-card .add.in-cart {
  background: var(--green);
  color: white;
}
.part-card:hover .add.in-cart { background: var(--green); }

/* List view: add-to-cart pip */
.parts-list .action-cell { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.parts-list .row-add {
  width: 32px; height: 32px;
  background: var(--carbon);
  color: white;
  border: none;
  border-radius: 2px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s;
}
.parts-list .row-add:hover { background: var(--orange); }

/* ============================================================
   DRAWER (shared, side-docked locker)
   ============================================================ */
.drawer-scrim {
  position: fixed;
  inset: 0;
  background: rgba(15,15,15,0.55);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.drawer-scrim.open { opacity: 1; pointer-events: auto; }

.side-drawer {
  position: fixed;
  top: 0; bottom: 0;
  background: var(--surface);
  border-left: 4px solid var(--orange);
  z-index: 95;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(.4,.0,.2,1);
  max-width: 92vw;
  box-shadow: -10px 0 40px rgba(0,0,0,0.2);
}
.side-drawer.side-right { right: 0; transform: translateX(100%); border-left: 4px solid var(--orange); }
.side-drawer.side-right.open { transform: translateX(0); }
.side-drawer.side-left { left: 0; transform: translateX(-100%); border-right: 4px solid var(--orange); border-left: none; }
.side-drawer.side-left.open { transform: translateX(0); }

.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 22px 24px 16px;
  background: var(--carbon);
  color: white;
  border-bottom: 3px solid var(--orange);
}
.drawer-eyebrow {
  font-family: var(--display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 4px;
}
.drawer-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0;
  color: white;
  line-height: 1;
}
.drawer-close {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  width: 34px; height: 34px;
  border-radius: 2px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.15s;
}
.drawer-close:hover { background: var(--orange); border-color: var(--orange); }

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px;
}
.drawer-foot {
  padding: 18px 22px;
  background: var(--surface-2);
  border-top: 1px solid var(--line);
}

.drawer-empty {
  text-align: center;
  padding: 50px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.drawer-empty .empty-glyph {
  width: 70px; height: 70px;
  background: var(--carbon);
  color: var(--orange);
  border-radius: 4px;
  display: grid;
  place-items: center;
}
.drawer-empty h4 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 6px 0 0;
}
.drawer-empty p { font-size: 13px; color: var(--muted); margin: 0 0 14px; max-width: 240px; }

/* ============================================================
   CART DRAWER
   ============================================================ */
.cart-list { display: flex; flex-direction: column; gap: 10px; }
.cart-row {
  display: grid;
  grid-template-columns: 80px 1fr 24px;
  gap: 12px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  position: relative;
}
.cart-thumb {
  width: 80px; height: 80px;
  background: linear-gradient(170deg, #F8F7F1 0%, #DAD8CD 100%);
  border: 1px solid var(--line);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.cart-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cart-cat {
  font-family: var(--display);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}
.cart-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
}
.cart-name:hover { color: var(--orange); }
.cart-sku { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.cart-row-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}
.cart-price {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
}
.cart-x {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  align-self: flex-start;
  width: 20px; height: 20px;
  display: grid;
  place-items: center;
  transition: color 0.15s;
}
.cart-x:hover { color: var(--red); }

.qty.qty-sm { border-width: 1.5px; }
.qty.qty-sm button { width: 30px; font-size: 14px; }
.qty.qty-sm input { width: 36px; font-size: 14px; padding: 4px 0; }

.cart-totals { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.cart-line {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-2);
}
.cart-line.total {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cart-line.total span:last-child { color: var(--orange); font-size: 22px; }

.free-bar { margin: 10px 0 14px; }
.free-track {
  width: 100%;
  height: 6px;
  background: var(--line-2);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}
.free-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--yellow));
  transition: width 0.3s;
}
.free-text { font-size: 12px; color: var(--muted); text-align: center; }
.free-text strong { color: var(--green); font-family: var(--display); letter-spacing: 0.06em; text-transform: uppercase; }

/* ============================================================
   GARAGE DRAWER
   ============================================================ */
.garage-add {
  padding: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 3px;
  margin-bottom: 16px;
}
.garage-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 12px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.garage-divider::before, .garage-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.garage-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.garage-card {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--line);
  border-radius: 3px;
  transition: all 0.15s;
}
.garage-card.active {
  border-left-color: var(--orange);
  background: var(--orange-soft);
}
.garage-icon {
  width: 40px; height: 40px;
  background: var(--carbon);
  color: var(--yellow);
  border-radius: 2px;
  display: grid;
  place-items: center;
}
.garage-card.active .garage-icon { background: var(--orange); color: white; }
.garage-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.garage-meta { font-size: 11px; color: var(--muted); font-family: var(--mono); margin-top: 2px; }
.garage-actions { display: flex; gap: 4px; align-items: center; }
.g-btn {
  font-family: var(--display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 2px;
  border: 1px solid var(--line-dark);
  background: transparent;
  cursor: pointer;
  transition: all 0.15s;
}
.g-btn.primary { background: var(--carbon); color: white; border-color: var(--carbon); }
.g-btn.primary:hover { background: var(--orange); border-color: var(--orange); }
.g-btn.ghost {
  width: 26px; height: 26px;
  padding: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  border: none;
}
.g-btn.ghost:hover { color: var(--red); }
.g-badge {
  background: var(--green);
  color: white;
  font-family: var(--display);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 2px;
}

.service-card {
  background: var(--carbon);
  color: white;
  border-radius: 3px;
  padding: 16px;
  border-left: 3px solid var(--yellow);
}
.service-head { margin-bottom: 10px; }
.service-head strong {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: white;
  margin-top: 2px;
}
.service-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.service-list li {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
}
.service-list .s-mileage {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255,255,255,0.55);
}
.s-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
}
.s-dot.due  { background: var(--yellow); box-shadow: 0 0 0 2px rgba(255,204,0,0.25); }
.s-dot.warn { background: var(--orange); box-shadow: 0 0 0 2px rgba(255,90,31,0.25); }
.s-dot.ok   { background: var(--green); }
.service-card .btn-ghost {
  background: transparent;
  color: var(--yellow);
  border-color: rgba(255,255,255,0.2);
}
.service-card .btn-ghost:hover { background: var(--yellow); color: var(--carbon); border-color: var(--yellow); }

.vehicle-saved-btn {
  margin-left: auto;
  background: transparent;
  border: none;
  color: inherit;
  font-family: var(--display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: underline;
}

/* ============================================================
   COMPARE BAR (bottom dock)
   ============================================================ */
.compare-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--carbon);
  color: white;
  z-index: 70;
  border-top: 3px solid var(--orange);
  box-shadow: 0 -8px 30px rgba(0,0,0,0.3);
  animation: cbSlide 0.3s ease-out both;
}
@keyframes cbSlide { from { transform: translateY(100%); } to { transform: translateY(0); } }
.compare-bar-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px 32px;
}
.cb-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.cb-label strong { color: var(--orange); }
.cb-label span { color: rgba(255,255,255,0.55); font-weight: 500; font-size: 12px; }
.cb-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.cb-slot {
  background: var(--carbon-2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 2px;
  padding: 6px 10px;
  display: grid;
  grid-template-columns: 36px 1fr 20px;
  gap: 10px;
  align-items: center;
  position: relative;
  min-width: 200px;
}
.cb-slot.empty {
  border-style: dashed;
  border-color: rgba(255,255,255,0.15);
  background: transparent;
  color: rgba(255,255,255,0.4);
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px;
  justify-content: center;
  text-align: center;
  display: flex;
}
.cb-mini {
  width: 36px; height: 36px;
  background: linear-gradient(170deg, #2A2E36 0%, #14171C 100%);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.cb-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.2;
  color: white;
}
.cb-x {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 16px;
  cursor: pointer;
  padding: 0;
  width: 20px; height: 20px;
}
.cb-x:hover { color: var(--orange); }
.cb-actions { display: flex; gap: 8px; align-items: center; }
.cb-actions .action-link {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border-color: rgba(255,255,255,0.18);
}
.cb-actions .action-link:hover {
  background: rgba(255,255,255,0.06);
  color: white;
  border-color: rgba(255,255,255,0.3);
}
.cb-actions .btn:disabled { opacity: 0.4; cursor: not-allowed; }

.compare-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--orange-soft);
  color: var(--orange-2);
  padding: 5px 10px;
  border-radius: 2px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Push page above compare bar */
body.has-compare { padding-bottom: 90px; }

/* ============================================================
   MODAL SHELL (compare, quick view)
   ============================================================ */
.modal-scrim {
  position: fixed;
  inset: 0;
  background: rgba(15,15,15,0.65);
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 32px;
  opacity: 0;
  pointer-events: none;
  animation: msIn 0.2s ease-out forwards;
}
.modal-scrim.open { opacity: 1; pointer-events: auto; }
@keyframes msIn { from { opacity: 0; } to { opacity: 1; } }
.modal-shell {
  background: var(--surface);
  border-radius: 4px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-top: 4px solid var(--orange);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  animation: modalIn 0.25s cubic-bezier(.4,.0,.2,1) forwards;
}
@keyframes modalIn { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 18px 24px 14px;
  background: var(--carbon);
  color: white;
  border-bottom: 3px solid var(--orange);
}

/* Compare modal */
.compare-modal { max-width: 1200px; }
.compare-grid {
  display: grid;
  overflow-y: auto;
  font-size: 13px;
}
.cmp-cell {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-2);
  border-left: 1px solid var(--line-2);
  background: var(--surface);
}
.cmp-cell:nth-child(1) { border-left: none; }
.cmp-th {
  background: var(--surface-2);
  font-family: var(--display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.cmp-cell.mono { font-family: var(--mono); font-size: 12px; }
.cmp-card-cell {
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 16px;
}
.cmp-stage {
  aspect-ratio: 1 / 1;
  background: linear-gradient(170deg, #F8F7F1 0%, #DAD8CD 100%);
  border: 1px solid var(--line);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  margin-bottom: 6px;
}
.cmp-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.15;
}
.cmp-sub { font-size: 12px; color: var(--muted); min-height: 32px; }
.cmp-price {
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
  color: var(--orange);
  margin: 4px 0;
}
.cmp-actions { display: flex; flex-direction: column; gap: 4px; }
.cmp-actions .btn { padding: 8px 10px; font-size: 12px; }
.cmp-actions .action-link { padding: 6px 8px; font-size: 11px; background: transparent; }

/* Quick view modal */
.qv-modal { max-width: 1000px; position: relative; }
.qv-close {
  position: absolute;
  top: 14px; right: 14px;
  background: rgba(15,15,15,0.85);
  border: none;
  color: white;
  width: 34px; height: 34px;
  border-radius: 2px;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 5;
  transition: background 0.15s;
}
.qv-close:hover { background: var(--orange); }
.qv-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 0;
  flex: 1;
  min-height: 0;
}
.qv-stage {
  aspect-ratio: 1 / 1;
  background: linear-gradient(160deg, #F8F7F1 0%, #DAD8CD 100%);
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--line);
}
.qv-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(20,20,20,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,20,20,0.045) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.qv-info {
  padding: 28px 28px 24px;
  overflow-y: auto;
}
.qv-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 8px 0 6px;
}
.qv-price-row { margin: 14px 0; }

/* ============================================================
   HERO additions (rating block, balance)
   ============================================================ */
.hero-left { display: flex; flex-direction: column; }
.hero-rating {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px dashed var(--line-dark);
}
.hero-rating-num {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
}
.hero-rating-num .stars { font-size: 16px; }
.hero-rating-meta { font-size: 12px; color: var(--muted); line-height: 1.4; }
.hero-rating-meta strong { color: var(--carbon); font-family: var(--display); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }

/* ============================================================
   RECENTLY VIEWED RAIL
   ============================================================ */
.recents { margin-top: 32px; }
.recents-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 14px;
}
.recents-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  margin: 4px 0 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.recents-rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
}
.recents-rail::-webkit-scrollbar { height: 6px; }
.recents-rail::-webkit-scrollbar-track { background: var(--surface-2); }
.recents-rail::-webkit-scrollbar-thumb { background: var(--line-dark); border-radius: 3px; }
.recent-card {
  flex: 0 0 200px;
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  flex-direction: column;
}
.recent-card:hover { border-color: var(--carbon); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.recent-stage {
  aspect-ratio: 4 / 3;
  background: linear-gradient(170deg, #F8F7F1 0%, #DAD8CD 100%);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.recent-body { padding: 10px 12px; }
.recent-cat {
  font-family: var(--display);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 2px;
}
.recent-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.15;
  margin-bottom: 6px;
  min-height: 30px;
}
.recent-price {
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  color: var(--carbon);
}

/* ============================================================
   HOW IT WORKS (3 steps)
   ============================================================ */
.how-section { margin-top: 64px; }
.hazard-rule {
  height: 6px;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 10px, var(--carbon) 10px 20px);
  margin-bottom: 32px;
  border-radius: 1px;
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 20px;
}
.how-step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--carbon);
  border-radius: 3px;
  padding: 22px 22px 20px;
  position: relative;
  transition: all 0.18s;
}
.how-step:hover { border-top-color: var(--orange); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.how-num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 36px;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.how-step h4 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 8px;
  line-height: 1.15;
}
.how-step p { font-size: 14px; color: var(--ink-2); margin: 0; line-height: 1.55; }

/* ============================================================
   BRAND SHOWCASE
   ============================================================ */
.brand-showcase { margin-top: 64px; }
.brand-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.brand-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  height: 80px;
  display: grid;
  place-items: center;
  transition: all 0.15s;
  cursor: pointer;
}
.brand-tile span {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.1em;
  color: var(--ink-2);
  text-transform: uppercase;
}
.brand-tile:hover {
  background: var(--carbon);
  border-color: var(--carbon);
  transform: translateY(-2px);
}
.brand-tile:hover span { color: var(--orange); }

/* ============================================================
   NEWSLETTER (above footer)
   ============================================================ */
.newsletter {
  background: var(--carbon-2);
  border-top: 4px solid var(--orange);
  position: relative;
}
.newsletter::after {
  content: "";
  position: absolute;
  top: -4px; left: 0; right: 0;
  height: 4px;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 10px, var(--carbon) 10px 20px);
}
.newsletter-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 40px 32px;
}
.newsletter-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 28px;
  margin: 4px 0 6px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: white;
  line-height: 1.05;
}
.newsletter-tag {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  margin: 0;
  line-height: 1.5;
}
.newsletter-form {
  display: flex;
  gap: 0;
  background: white;
  border-radius: 2px;
  overflow: hidden;
  border: 2px solid var(--yellow);
}
.newsletter-form input {
  flex: 1;
  border: none;
  padding: 14px 16px;
  font-size: 15px;
  outline: none;
  font-family: var(--mono);
}
.newsletter-form .btn { border-radius: 0; border: none; padding: 14px 20px; }

/* ============================================================
   action-link "on" state
   ============================================================ */
.action-link.on { background: var(--orange-soft); border-color: var(--orange); color: var(--orange-2); }

/* ============================================================
   CAR EXPLORER (interactive 3D atlas)
   ============================================================ */
.car-explorer-section { margin-top: 64px; }
.car-explorer {
  position: relative;
  height: 640px;
  background: var(--bg);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(15,15,15,0.12);
  box-shadow: 0 1px 0 rgba(15,15,15,0.04);
}
.car-explorer::before {
  /* blueprint grid — faint dark strokes on the concrete page bg */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15,15,15,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,15,15,0.07) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 1;
}
.car-explorer::after {
  /* hazard tape strip top */
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 10px, var(--carbon) 10px 20px);
  z-index: 6;
  pointer-events: none;
}
.car-stage {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.car-stage canvas {
  display: block;
  cursor: grab;
  touch-action: none;
}
.car-stage canvas:active { cursor: grabbing; }

/* Marker overlay (3D-projected HTML markers) */
.car-markers {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}
.car-marker {
  position: absolute;
  left: 0; top: 0;
  transform: translate(-9999px, -9999px); /* will be set by JS */
  pointer-events: auto;
  cursor: pointer;
  transition: opacity 0.18s;
}
.car-marker .marker-dot {
  position: absolute;
  left: -16px; top: -16px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--orange);
  color: white;
  border: 2px solid var(--carbon);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.02em;
  box-shadow: 0 3px 10px rgba(0,0,0,0.5);
  transition: all 0.2s;
}
.car-marker .marker-dot::before {
  content: "";
  position: absolute;
  inset: -6px;
  border: 2px solid var(--orange);
  border-radius: 50%;
  opacity: 0.5;
  animation: cmRing 2s ease-out infinite;
}
@keyframes cmRing {
  0%   { transform: scale(0.7); opacity: 0.7; }
  100% { transform: scale(1.6); opacity: 0; }
}
.car-marker .marker-line {
  position: absolute;
  left: 16px; top: -1px;
  height: 2px;
  width: 0;
  background: var(--orange);
  transition: width 0.25s 0.05s;
  transform-origin: left center;
}
.car-marker .marker-label {
  position: absolute;
  left: 16px; top: -28px;
  background: var(--carbon);
  border-left: 3px solid var(--orange);
  padding: 6px 10px 6px 12px;
  border-radius: 2px;
  white-space: nowrap;
  transform: translate(8px, 0);
  opacity: 0;
  transition: all 0.25s 0.1s;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: var(--shadow-md);
}
.car-marker .ml-cat {
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: white;
  line-height: 1;
}
.car-marker .ml-meta {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--yellow);
  letter-spacing: 0.04em;
}
.car-marker.hover .marker-dot,
.car-marker:hover .marker-dot {
  background: var(--yellow);
  color: var(--carbon);
  transform: scale(1.15);
  border-color: var(--carbon);
}
.car-marker.hover .marker-dot::before,
.car-marker:hover .marker-dot::before { border-color: var(--yellow); }
.car-marker.hover .marker-line,
.car-marker:hover .marker-line { width: 60px; }
.car-marker.hover .marker-label,
.car-marker:hover .marker-label {
  opacity: 1;
  transform: translate(60px, 0);
}
.car-marker.hidden { opacity: 0 !important; pointer-events: none; }
.car-marker.active .marker-dot { background: var(--yellow); color: var(--carbon); }

/* Idle hint pill */
.car-hint {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(15,15,15,0.85);
  color: white;
  padding: 8px 16px;
  border-radius: 2px;
  border: 1px solid rgba(255,255,255,0.15);
  font-family: var(--display);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hint-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 var(--orange);
  animation: hintPulse 1.6s ease-in-out infinite;
}
@keyframes hintPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,90,31,0.6); }
  50%      { box-shadow: 0 0 0 8px rgba(255,90,31,0); }
}

/* FBX loading overlay */
.car-loading {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(15,15,15,0) 0%, rgba(15,15,15,0.35) 100%);
}
.cl-spinner {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.18);
  border-top-color: var(--orange);
  animation: clSpin 0.85s linear infinite;
}
.cl-text {
  font-family: var(--display);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  background: rgba(15,15,15,0.7);
  padding: 6px 12px;
  border-radius: 2px;
}
@keyframes clSpin {
  to { transform: rotate(360deg); }
}

/* Atlas index — sits on the left when no zone is selected */
.car-index {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 6;
  width: 220px;
  background: rgba(15,15,15,0.78);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 3px solid var(--orange);
  border-radius: 2px;
  padding: 14px 0 8px;
}
.ci-head {
  font-family: var(--display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  padding: 0 16px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 6px;
}
.ci-row {
  width: 100%;
  display: grid;
  grid-template-columns: 28px 1fr 16px;
  gap: 10px;
  padding: 7px 16px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.85);
  font-family: var(--display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s;
  align-items: center;
}
.ci-row:hover, .ci-row.hover {
  background: rgba(255,90,31,0.15);
  color: white;
}
.ci-num {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--yellow);
  letter-spacing: 0.02em;
}
.ci-arr {
  color: var(--orange);
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.15s, transform 0.15s;
  transform: translateX(-4px);
}
.ci-row:hover .ci-arr, .ci-row.hover .ci-arr { opacity: 1; transform: translateX(0); }

/* Side panel — slides in when a zone is selected */
.car-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 420px;
  background: var(--surface);
  border-left: 3px solid var(--orange);
  z-index: 7;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(.4,.0,.2,1);
  display: flex;
  flex-direction: column;
}
.car-panel.open { transform: translateX(0); }
.cp-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: var(--carbon);
  color: white;
  border-bottom: 1px solid var(--carbon-2);
}
.cp-back {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
  color: white;
  padding: 8px 12px;
  border-radius: 2px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s;
}
.cp-back:hover { background: var(--orange); border-color: var(--orange); }
.cp-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--yellow);
  letter-spacing: 0.06em;
}
.cp-title-block {
  padding: 18px 22px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.cp-eyebrow {
  font-family: var(--display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
}
.cp-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 4px 0 6px;
  line-height: 1;
}
.cp-meta { font-size: 12px; color: var(--muted); }

.cp-parts {
  flex: 1;
  overflow-y: auto;
  padding: 14px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cp-part {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  padding: 10px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s;
}
.cp-part:hover { border-color: var(--carbon); transform: translateX(-2px); box-shadow: var(--shadow-md); }
.cp-stage {
  width: 80px; height: 80px;
  background: linear-gradient(170deg, #F8F7F1 0%, #DAD8CD 100%);
  border: 1px solid var(--line);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.cp-info { display: flex; flex-direction: column; min-width: 0; }
.cp-cat {
  font-family: var(--display);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}
.cp-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.15;
  margin: 2px 0;
}
.cp-sub { font-size: 12px; color: var(--muted); line-height: 1.3; }
.cp-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}
.cp-price {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  color: var(--carbon);
}
.cp-add {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  background: var(--carbon);
  color: white;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.15s;
}
.cp-add:hover { background: var(--orange); }

.car-panel .btn { margin: 0 22px 18px; width: calc(100% - 44px); }

/* Responsive */
@media (max-width: 1100px) {
  .car-explorer { height: 540px; }
  .car-panel { width: 360px; }
  .car-index { width: 180px; }
}
@media (max-width: 700px) {
  .car-explorer { height: 480px; }
  .car-panel { width: 100%; }
  .car-index { display: none; }
}

/* Adjust hero — finder card balanced (desktop only; mobile stacks via the
   existing @media (max-width: 1100px) rule in styles.css). */
@media (min-width: 1101px) {
  .hero { grid-template-columns: 1.1fr 0.95fr; gap: 48px; align-items: stretch; }
  .vehicle-finder { align-self: center; }
  /* Categories — 5 per row on desktop, narrower screens have their own rule */
  .cats-grid { grid-template-columns: repeat(5, 1fr); }
}

/* ============================================================
   Responsive — additions
   ============================================================ */
@media (max-width: 1100px) {
  .compare-bar-inner { grid-template-columns: 1fr; gap: 12px; }
  body.has-compare { padding-bottom: 200px; }
  .cb-slots { grid-template-columns: repeat(3, 1fr); }
  .qv-grid { grid-template-columns: 1fr; }
  .qv-stage { aspect-ratio: 16 / 10; border-right: none; border-bottom: 1px solid var(--line); }
  .how-grid { grid-template-columns: 1fr; }
  .brand-grid { grid-template-columns: repeat(4, 1fr); }
  .newsletter-inner { grid-template-columns: 1fr; }
  .cats-grid { grid-template-columns: repeat(3, 1fr); }
  .compare-modal { max-width: 95vw; }
  .compare-grid { font-size: 12px; }
  /* Hide the inline promo center on narrower screens — left/right stay legible */
  .utility-center { display: none; }
  .tb-veh-chip .tb-veh-plate { max-width: 80px; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 700px) {
  .utility-right { flex-wrap: wrap; gap: 12px; }
  .side-drawer { width: 100% !important; }
  .cats-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .cb-slots { grid-template-columns: 1fr; }
  body.has-compare { padding-bottom: 320px; }
  .compare-bar-inner { padding: 10px 16px; }
}

/* ============================================================
   Zone Alignment Tool — author-only overlay
   ============================================================ */
.align-toggle {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 7;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--carbon);
  color: #fff;
  border: none;
  padding: 7px 12px;
  border-radius: 2px;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0.55;
}
.align-toggle:hover { opacity: 1; }
.align-tool {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 7;
  width: 320px;
  max-height: calc(100% - 36px);
  overflow-y: auto;
  background: var(--carbon);
  color: #f4f4f0;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 14px 40px rgba(0,0,0,0.35);
  font-family: var(--display);
}
.at-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 8px, var(--carbon) 8px 16px);
  background-blend-mode: multiply;
  background-color: rgba(15,15,15,0.92);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.at-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  opacity: 0.7;
}
.at-close:hover { opacity: 1; }
.at-body { padding: 14px; }
.at-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #b9b8ad;
  margin: 0 0 6px;
}
.at-body select {
  width: 100%;
  background: #1d1d1d;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
  padding: 7px 9px;
  font-family: var(--mono);
  font-size: 12px;
  border-radius: 2px;
}
.at-section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255,255,255,0.08);
}
.at-xyz {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  margin-bottom: 8px;
}
.at-xyz label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--mono);
  font-size: 10px;
  color: #8b8a82;
  text-transform: uppercase;
}
.at-xyz input {
  width: 100%;
  background: #1a1a1a;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 5px 6px;
  font-family: var(--mono);
  font-size: 12px;
  border-radius: 2px;
}
.at-xyz input:focus { outline: 1px solid var(--orange); border-color: var(--orange); }
.at-btn {
  width: 100%;
  padding: 7px 10px;
  background: #1d1d1d;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 2px;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 2px;
}
.at-btn:hover { background: #262626; border-color: rgba(255,255,255,0.25); }
.at-btn.active { background: var(--orange); border-color: var(--orange); color: var(--carbon); }
.at-btn.primary { background: var(--orange); border-color: var(--orange); color: var(--carbon); }
.at-btn.primary:hover { background: #ff7637; }
.at-btn.ghost { background: transparent; opacity: 0.7; }
.at-btn.ghost:hover { opacity: 1; }
.at-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 14px 0 6px;
}
.at-toast {
  margin-top: 8px;
  padding: 6px 10px;
  background: rgba(118, 192, 67, 0.18);
  color: #b8e89a;
  border: 1px solid rgba(118, 192, 67, 0.4);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  text-align: center;
}
.car-explorer.is-picking .car-stage canvas { cursor: crosshair !important; }
.car-explorer.is-picking .car-marker { pointer-events: none; }
.at-hint {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 10px;
  color: #c8a070;
}

/* ============================================================
   UK Reg Lookup — input chrome, validation hints, result card
   ============================================================ */
.reg-plate {
  display: flex;
  align-items: stretch;
  border: 2px solid var(--carbon);
  border-radius: 4px;
  overflow: hidden;
  background: #FCD33B;        /* GB yellow rear plate */
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.reg-plate .reg-flag {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  background: #003399;        /* GB blue stripe */
  color: #FFD200;
  font-family: var(--display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
}
.reg-plate input {
  flex: 1;
  border: none;
  background: #FCD33B;
  color: var(--carbon);
  padding: 12px 14px;
  font-family: "Charles Wright", var(--mono);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  outline: none;
}
.reg-plate input::placeholder { color: rgba(15,15,15,0.35); font-weight: 600; letter-spacing: 0.08em; }
.reg-plate.is-valid   { border-color: #2f9e44; box-shadow: 0 0 0 3px rgba(47,158,68,0.18); }
.reg-plate.is-invalid { border-color: #c92a2a; box-shadow: 0 0 0 3px rgba(201,42,42,0.16); }

.reg-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 2px;
  background: var(--bg-2);
  color: var(--ink);
}
.reg-hint code { background: var(--carbon); color: var(--yellow); padding: 1px 5px; border-radius: 2px; font-family: var(--mono); }
.reg-hint .rh-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.reg-hint.ok  { background: rgba(47,158,68,0.10); color: #1c5f2e; }
.reg-hint.ok  .rh-dot { background: #2f9e44; }
.reg-hint.err { background: rgba(201,42,42,0.10); color: #8a1f1f; }
.reg-hint.err .rh-dot { background: #c92a2a; }

.reg-samples {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.reg-chip {
  background: var(--bg-2);
  border: 1px solid rgba(15,15,15,0.15);
  border-radius: 2px;
  padding: 4px 8px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--carbon);
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease;
}
.reg-chip:hover { background: #FCD33B; border-color: var(--carbon); }

.reg-spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  animation: regSpin 0.85s linear infinite;
  display: inline-block;
  margin-right: 6px;
  vertical-align: middle;
}
@keyframes regSpin { to { transform: rotate(360deg); } }

/* Result card */
.reg-result {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 3px;
  background: var(--bg-2);
  border: 1px solid rgba(15,15,15,0.12);
  border-left: 4px solid var(--carbon);
  animation: regFadeIn 220ms ease-out;
}
.reg-result.hit     { border-left-color: #2f9e44; }
.reg-result.partial { border-left-color: var(--yellow); }
.reg-result.invalid { border-left-color: #c92a2a; }
@keyframes regFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rr-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.rr-badge {
  display: inline-flex;
  align-items: center;
  background: #2f9e44;
  color: #fff;
  padding: 3px 8px;
  font-family: var(--display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
}
.rr-badge.warn { background: var(--yellow); color: var(--carbon); }
.rr-badge.err  { background: #c92a2a; }
.rr-plate {
  margin-left: auto;
  background: #FCD33B;
  color: var(--carbon);
  padding: 3px 10px;
  border: 1.5px solid var(--carbon);
  border-radius: 2px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
}
.rr-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  color: var(--carbon);
  letter-spacing: -0.005em;
  line-height: 1.15;
}
.rr-subtitle {
  margin-top: 4px;
  color: var(--ink-2);
  font-size: 13px;
}
.rr-subtitle code {
  background: var(--carbon);
  color: var(--yellow);
  padding: 1px 5px;
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 12px;
}
.rr-specs {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 14px;
}
.rr-specs > div {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding-top: 6px;
  border-top: 1px dashed rgba(15,15,15,0.12);
}
.rr-specs span {
  font-family: var(--display);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.rr-specs strong {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--carbon);
  font-weight: 600;
}
.rr-actions {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.rr-actions .btn { flex: 1 1 auto; }

@media (max-width: 700px) {
  .rr-specs { grid-template-columns: repeat(2, 1fr); }
  .reg-plate input { font-size: 18px; padding: 10px 12px; }
}

/* Inferred-match variant for the reg result card */
.rr-badge.info { background: #1f6feb; color: #fff; }
.reg-result.hit { border-left-color: #2f9e44; }
.reg-result.hit:has(.rr-badge.info) { border-left-color: #1f6feb; }
.rr-note {
  margin-top: 12px;
  padding: 10px 12px;
  background: rgba(31,111,235,0.08);
  border: 1px dashed rgba(31,111,235,0.35);
  border-radius: 2px;
  font-size: 12px;
  line-height: 1.5;
  color: #1d3a78;
}
.rr-note-link {
  background: none;
  border: none;
  padding: 0;
  margin-left: 4px;
  font: inherit;
  color: #1f6feb;
  text-decoration: underline;
  cursor: pointer;
}
.rr-note-link:hover { color: #0a4ec9; }

/* DVLA result variants (overrides the older inferred-match colour) */
.rr-badge.dvla { background: #1f6feb; color: #fff; }
.reg-result.hit:has(.rr-badge.dvla) { border-left-color: #1f6feb; }
.reg-result.not_registered { border-left-color: var(--yellow); background: #faf7e8; }
.reg-result.unverified     { border-left-color: var(--yellow); background: #faf7e8; }
.reg-result.not_registered .rr-subtitle code,
.reg-result.unverified     .rr-subtitle code {
  background: var(--carbon); color: var(--yellow); padding: 1px 5px; border-radius: 2px; font-family: var(--mono); font-size: 11px;
}

/* Inline model picker for DVLA hits */
.rr-model-pick {
  margin-top: 14px;
  padding: 12px 12px 10px;
  background: rgba(31,111,235,0.06);
  border: 1px dashed rgba(31,111,235,0.35);
  border-radius: 3px;
}
.rr-model-pick label {
  display: block;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1d3a78;
  margin-bottom: 6px;
}
.rr-model-pick select,
.rr-model-pick input {
  width: 100%;
  background: #fff;
  border: 1.5px solid rgba(31,111,235,0.45);
  border-radius: 2px;
  padding: 8px 10px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--carbon);
}
.rr-model-pick select:focus,
.rr-model-pick input:focus {
  outline: none;
  border-color: #1f6feb;
  box-shadow: 0 0 0 3px rgba(31,111,235,0.18);
}
.rr-model-other { margin-top: 8px; }

/* Support dropdown in the utility row */
.utility-support { position: relative; }
.support-trigger {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}
.support-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--carbon);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 2px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.4);
  min-width: 170px;
  z-index: 80;
  padding: 4px 0;
}
.support-menu::before {
  /* tiny chevron up to anchor the menu to the trigger */
  content: "";
  position: absolute;
  top: -5px;
  right: 12px;
  width: 8px;
  height: 8px;
  background: var(--carbon);
  border-left: 1px solid rgba(255,255,255,0.12);
  border-top: 1px solid rgba(255,255,255,0.12);
  transform: rotate(45deg);
}
.support-item {
  display: block;
  padding: 8px 14px;
  color: rgba(255,255,255,0.85);
  font-size: 12px;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.support-item:hover { background: rgba(255,255,255,0.06); color: var(--yellow); }

/* Icon-only globe at the far right of the utility row */
.utility-globe { padding: 0 2px; }
.utility-globe svg { width: 14px; height: 14px; }

/* ============================================================
   Mobile compatibility — hamburger menu, topbar collapse,
   responsive layout tweaks for <900px and <500px viewports.
   ============================================================ */

/* Hamburger button — hidden on desktop, shown on mobile */
.mobile-burger {
  display: none;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--carbon);
  border-radius: 2px;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}
.mobile-burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--carbon);
  border-radius: 1px;
}
.mobile-burger:hover { background: var(--bg-2); }

/* Mobile slide-down menu */
.mobile-menu {
  display: none;
  background: var(--carbon);
  color: #fff;
  padding: 12px 0;
  border-top: 3px solid var(--yellow);
}
.mm-section {
  padding: 8px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.08);
}
.mm-section:last-child { border-bottom: none; }
.mm-head {
  padding: 6px 24px;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--yellow);
}
.mm-item {
  display: block;
  width: 100%;
  padding: 11px 24px;
  background: transparent;
  border: none;
  text-align: left;
  color: #fff;
  font-family: var(--body);
  font-size: 15px;
  cursor: pointer;
  transition: background 0.12s;
}
.mm-item:hover, .mm-item:active { background: rgba(255,255,255,0.06); }

/* ---- Breakpoint 1: <900px (tablets, small laptops) ---- */
@media (max-width: 900px) {
  .mobile-burger { display: inline-flex; }
  .mobile-menu { display: block; }

  /* Hide dept-nav row on mobile — menu lives in hamburger now */
  .depts { display: none; }

  /* Utility bar: only the open-now status remains; everything else goes to hamburger */
  .utility-right { display: none; }
  .utility-left a { display: none; }  /* hide the phone number too, save space */
  .utility-center { display: none; }
  .utility .shell { padding: 6px 16px; }

  /* Topbar: hamburger | logo | actions on one row, search wraps below.
     Extra top padding to give breathing room after the utility-bar hazard tape. */
  .topbar-main {
    grid-template-columns: auto 1fr auto !important;
    grid-template-areas: "burger logo actions"
                         "search search search";
    gap: 12px;
    padding: 20px 16px 12px;
  }
  .topbar-main .mobile-burger { grid-area: burger; }
  .topbar-main .logo          { grid-area: logo; }
  .topbar-main .search        { grid-area: search; width: 100%; }
  .topbar-main .topbar-actions { grid-area: actions; gap: 4px; }

  /* Compress logo on tighter widths */
  .logo-tag { display: none; }
  .logo-name { font-size: 16px; }
  .logo-mark { width: 36px; height: 36px; }

  /* Action buttons become icon-only */
  .action-btn .label { display: none; }
  .action-btn { padding: 6px 8px; min-width: 36px; }

  /* Vehicle chip stays compact */
  .tb-veh-chip .tb-veh-plate { max-width: 64px; }

  /* Search bar: hide the category dropdown to save horizontal space */
  .search > select { display: none; }
  .search-btn .icon-text { display: none; }   /* if any wrapper exists */
  .search-btn { padding: 8px 12px; }

  /* Page padding */
  .shell { padding: 0 16px; }
}

/* Hero bullets — single column from tablet down (was 2 cols by default) */
@media (max-width: 1100px) {
  .hero-bullets { grid-template-columns: 1fr; gap: 10px; }
  .hero-rating { flex-wrap: wrap; gap: 8px; }
  .hero-rating-meta { font-size: 12px; }
  .vehicle-finder { margin-top: 0; }
}

/* ---- Breakpoint 2: <600px (phones) ---- */
@media (max-width: 600px) {
  /* Hide the GARAGE/SAVED/ACCOUNT buttons too — they live in hamburger.
     Keep only the cart icon. */
  .topbar-actions .action-btn:not([title="Cart"]) { display: none; }

  /* Hero finder card — full-width, tighter padding */
  .hero { gap: 24px; }
  .hero h1 { font-size: 40px; line-height: 1.05; }
  .hero .lede { font-size: 15px; }
  .vehicle-finder { width: 100%; }
  .vehicle-header { padding: 12px 14px; }
  .vehicle-body { padding: 14px; }

  /* Reg plate input — shrink so it doesn't overflow at 360px */
  .reg-plate input { font-size: 16px; padding: 10px 12px; letter-spacing: 0.06em; }
  .reg-plate .reg-flag { width: 32px; font-size: 11px; }
  .reg-samples { gap: 4px; }
  .reg-chip { font-size: 10px; padding: 3px 6px; }

  /* Vehicle tabs — wrap on very small screens */
  .vehicle-tabs { flex-wrap: wrap; gap: 4px; }
  .vehicle-tab { flex: 1 1 30%; font-size: 11px; padding: 7px 6px; }

  /* Brand strip — horizontal scroll (recents-rail already does this in its base styles) */
  .brand-strip { overflow-x: auto; flex-wrap: nowrap; }

  /* Catalog grid — 1 column */
  .parts-grid { grid-template-columns: 1fr !important; }
  .cats-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* Catalog filter sidebar — stacks above the grid instead of beside it */
  .catalog-body { grid-template-columns: 1fr !important; }
  .catalog-filters {
    position: static;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 16px;
  }
  .filter-group { margin-bottom: 12px; }

  /* Footer — single column */
  .footer-grid { grid-template-columns: 1fr !important; gap: 24px; }

  /* Buttons: comfortable tap target */
  .btn { min-height: 44px; }
  .reg-result .btn { min-height: 40px; font-size: 11px; }

  /* Mini-3D thumbnails in cards — slightly smaller */
  .part-card { padding: 12px; }
}

/* ---- Breakpoint 3: <420px (very narrow) ---- */
@media (max-width: 420px) {
  .hero h1 { font-size: 32px; }
  .logo-name { font-size: 14px; }
  .logo-mark { width: 32px; height: 32px; }
  .shell { padding: 0 12px; }
  .topbar-main { padding: 10px 12px; }

  /* Drop the "STEP 01/02" indicator to free space */
  .step-count { display: none; }
}

/* ---- Car explorer: extra mobile tightening ---- */
@media (max-width: 600px) {
  .car-explorer { height: 420px; }
  /* Bigger marker dots for finger tap targets (44px) */
  .car-marker .marker-dot {
    width: 40px; height: 40px;
    left: -20px; top: -20px;
    font-size: 12px;
  }
  .car-marker .marker-label { display: none; }   /* labels overlap heavily — keep only the dot */
  .car-marker.active .marker-label { display: flex; }
  .car-panel { padding: 16px; }
  .cp-parts { gap: 10px; }
  .align-toggle { display: none; }                /* author tool hidden on phones */
  .align-tool { display: none; }
}

/* ---- Compare bar: collapsed footer on mobile ---- */
@media (max-width: 600px) {
  .compare-bar { padding: 10px 12px; }
  body.has-compare { padding-bottom: 280px; }
  .cb-slots { grid-template-columns: 1fr 1fr; gap: 6px; }
}

/* ---- Drawer panels: already 100% width via existing rule; tighten content ---- */
@media (max-width: 600px) {
  .drawer-content { padding: 16px; }
  .drawer-head { padding: 14px 16px; }
}
