:root {
  --brand: #1a365d;
  --brand-dark: #152a4a;
  --accent: #ea580c;
  --accent-dark: #c2410c;
  --accent-soft: #fff7ed;
  --paper: #f8fafc;
  --ink: #1e293b;
  --muted: #64748b;
  --panel: #fff;
  --line: #e2e8f0;
  --success: #16a34a;
  --success-soft: #f0fdf4;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, "Segoe UI", Arial, sans-serif; }
a { color: inherit; }
.top-strip {
  background: var(--brand);
  color: #fff;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  padding: 8px 16px;
}
.site-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px max(18px, calc((100vw - 1180px) / 2));
  background: var(--brand);
  color: #fff;
  border-bottom: 3px solid var(--accent);
}
.logo { display: flex; gap: 10px; align-items: center; text-decoration: none; }
.logo strong { display: block; font-size: 18px; letter-spacing: -.03em; color: #fff; }
.logo small { display: block; color: var(--accent); font-size: 10px; letter-spacing: .16em; font-weight: 800; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--accent); color: #fff; font-size: 13px; font-weight: 900; letter-spacing: -.04em;
}
.stats-bar {
  display: flex; gap: 18px; flex-wrap: wrap; align-items: center;
  padding: 10px max(18px, calc((100vw - 1180px) / 2));
  background: #fff; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted);
}
.stats-bar b { color: var(--brand); font-size: 15px; }
.privacy-pill {
  margin-left: auto; background: var(--success-soft); color: var(--success);
  font-size: 11px; font-weight: 800; letter-spacing: .04em;
  padding: 6px 10px; border-radius: 999px;
}
.header-actions .ghost.active { border-color: var(--accent); color: #fff; background: rgba(234,88,12,.15); }
.breadcrumb {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  font-size: 13px; color: var(--muted); margin-bottom: 16px;
}
.breadcrumb a { color: var(--brand); text-decoration: none; font-weight: 700; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { opacity: .45; }
.pager { display: flex; gap: 12px; align-items: center; justify-content: flex-end; margin-top: 18px; }
.pager a[aria-disabled="true"] { opacity: .4; pointer-events: none; }
.promo-btn { margin-top: 14px; align-self: flex-start; }
.checkout-tabs { display: flex; gap: 10px; margin: 16px 0; }
.hidden { display: none !important; }
.three-ds-mount:empty { display: none; }
.search { display: flex; background: #fff; border-radius: 999px; overflow: hidden; border: 2px solid transparent; }
.search:focus-within { border-color: var(--accent); }
.search input {
  flex: 1; border: 0; padding: 13px 18px; font: inherit; outline: none; color: var(--ink);
}
.search button {
  width: 52px; border: 0; background: var(--accent); color: #fff; font-size: 20px; cursor: pointer;
}
.search button:hover { background: var(--accent-dark); }
.header-actions { display: flex; gap: 10px; align-items: center; }
.ghost, .cart-link, a.ghost {
  text-decoration: none; font-weight: 800; font-size: 13px;
  padding: 10px 14px; border-radius: 10px;
}
.header-actions .ghost { color: #e2e8f0; border: 1px solid rgba(255,255,255,.25); background: transparent; }
.header-actions .ghost:hover { border-color: var(--accent); color: #fff; }
a.ghost { color: var(--ink); border: 1px solid var(--line); background: #fff; }
a.ghost:hover { border-color: var(--accent); color: var(--accent); }
.cart-link { background: var(--accent); color: #fff; }
.cart-link:hover { background: var(--accent-dark); }
.cart-link b {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px;
  margin-left: 6px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 11px;
}
.brands {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding: 12px max(18px, calc((100vw - 1180px) / 2));
  background: var(--brand-dark); border-bottom: 1px solid rgba(255,255,255,.08);
}
.brands a {
  text-decoration: none; font-size: 12px; font-weight: 800; letter-spacing: .08em;
  padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.08); color: #cbd5e1;
}
.brands a.active, .brands a:hover { background: var(--accent); color: #fff; }
#app { max-width: 1180px; margin: 0 auto; padding: 22px 18px 64px; overflow-x: hidden; }
.hero {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 28px;
}
.finder, .promo, .card, .empty, .product-layout, .cart-box, .trust {
  background: var(--panel); border-radius: 16px;
}
.finder, .promo { padding: 22px; min-height: 280px; }
.finder h1 { margin: 0 0 8px; font-size: 28px; line-height: 1.15; color: var(--ink); }
.finder p, .muted { color: var(--muted); }
.finder form, .inquiry { display: grid; gap: 10px; margin-top: 16px; }
.vin-box { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.vin-box label { display: block; font-size: 11px; font-weight: 900; letter-spacing: .12em; color: var(--brand); margin-bottom: 8px; }
.vin-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.mono { font-family: ui-monospace, Consolas, monospace; letter-spacing: .08em; }
.vehicle-card {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px;
  background: var(--panel); border-radius: 16px; padding: 22px; margin-bottom: 22px;
  border-left: 4px solid var(--accent);
}
.vehicle-card h1 { margin: 8px 0 4px; font-size: 26px; color: var(--ink); }
.vehicle-specs { display: grid; gap: 8px; align-content: start; }
.vehicle-specs div { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); padding-bottom: 7px; font-size: 14px; }
select, .finder input, .inquiry input, .inquiry textarea {
  font: inherit; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink);
}
select:focus, .finder input:focus, .inquiry input:focus, .inquiry textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(234, 88, 12, .12);
}
.primary, .buy {
  border: 0; background: var(--accent); color: #fff; font-weight: 800;
  padding: 12px 16px; border-radius: 10px; cursor: pointer; text-decoration: none; display: inline-block; text-align: center;
}
.primary:hover, .buy:hover { background: var(--accent-dark); }
.buy:disabled { background: #cbd5e1; color: #64748b; cursor: not-allowed; }
.promo {
  background: var(--brand); color: #fff;
  display: grid; place-items: center;
  background-image: linear-gradient(135deg, rgba(234, 88, 12, .22), var(--brand) 58%);
  border: 1px solid rgba(255,255,255,.08);
}
.promo-n {
  color: #fff;
  font-size: clamp(120px, 22vw, 220px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.08em;
  text-transform: lowercase;
  user-select: none;
}
.trust {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line);
  overflow: hidden; margin: 0 0 28px;
}
.trust div { background: #fff; padding: 16px 18px; }
.trust b { display: block; margin-bottom: 4px; color: var(--brand); }
.section-head { display: flex; justify-content: space-between; align-items: end; margin: 8px 0 14px; }
.section-head h2 { margin: 0; font-size: 22px; color: var(--ink); }
.section-head a { color: var(--accent); font-weight: 800; text-decoration: none; }
.section-head a:hover { color: var(--accent-dark); }
.grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.card { position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 340px; border: 1px solid var(--line); }
.card:hover { border-color: var(--accent); box-shadow: 0 8px 24px rgba(26, 54, 93, .08); }
.card a.cover { position: absolute; inset: 0; z-index: 2; }
.card .buy { position: relative; z-index: 3; }
.card a.thumb {
  aspect-ratio: 1; background: #fff; display: block; text-decoration: none; overflow: hidden;
}
.card img, .card a.thumb img {
  width: 100%; height: auto; aspect-ratio: 1; max-height: none; object-fit: contain; display: block; background: #fff;
}
.ship-note { margin: 0; color: var(--muted); font-size: 12px; font-weight: 700; line-height: 1.35; }
.ship-row { display: flex; justify-content: space-between; font-size: 15px; margin: -6px 0 8px; color: var(--ink); }
.card .body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.brand-tag { font-size: 10px; font-weight: 900; letter-spacing: .12em; color: var(--brand); }
.card h3 { margin: 0; font-size: 15px; line-height: 1.3; color: var(--ink); }
.card h3 a:hover { color: var(--accent); }
.oem { font-size: 12px; color: var(--muted); }
.price { font-size: 20px; margin-top: auto; color: var(--accent); font-weight: 800; }
.stock { font-size: 12px; font-weight: 800; }
.stock.in { color: var(--success); }
.stock.low { color: var(--accent); }
.stock.out { color: var(--muted); }
.empty { padding: 48px 24px; text-align: center; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.filters .primary { background: var(--accent); color: #fff; }
.product-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 0; overflow: hidden; border: 1px solid var(--line); max-width: 100%; }
.product-layout .photo, .product-layout .info { min-width: 0; max-width: 100%; }
.product-layout .photo { background: #fff; min-height: 0; display: block; padding: 16px; }
.product-layout .photo img { width: 100%; height: auto; max-width: 100%; max-height: 520px; object-fit: contain; display: block; }
.product-layout .info { padding: 28px; }
.product-layout h1 { margin: 8px 0 10px; font-size: 28px; color: var(--ink); }
.product-layout .price { font-size: 28px; }
.specs { display: grid; gap: 8px; margin: 18px 0; }
.specs div { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); padding-bottom: 7px; font-size: 14px; }
.qty { display: flex; gap: 8px; align-items: center; margin: 16px 0; }
.qty button { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--ink); }
.qty button:hover { border-color: var(--accent); color: var(--accent); }
.cart-box { padding: 22px; border: 1px solid var(--line); }
.cart-row { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-row img { width: 72px; height: 72px; object-fit: contain; background: var(--paper); border-radius: 8px; }
.total { display: flex; justify-content: space-between; font-size: 22px; margin: 16px 0; color: var(--ink); }
.total b { color: var(--accent); }
.site-footer {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px;
  padding: 36px max(18px, calc((100vw - 1180px) / 2));
  background: var(--brand); color: #cbd5e1;
  border-top: 3px solid var(--accent);
}
.site-footer span { display: block; color: var(--accent); font-size: 11px; font-weight: 900; letter-spacing: .14em; margin-bottom: 8px; }
.site-footer p { margin: 0 0 6px; font-size: 14px; line-height: 1.5; }
.site-footer a { display: block; color: #e2e8f0; text-decoration: none; font-weight: 700; margin: 0 0 8px; font-size: 14px; }
.site-footer a:hover { color: #fdba74; }
.pay-band {
  display: flex; gap: 18px; flex-wrap: wrap; align-items: center; justify-content: space-between;
  padding: 16px max(18px, calc((100vw - 1180px) / 2));
  background: #fff; border-top: 1px solid var(--line);
}
.pay-logos { display: inline-flex; background: #fff; line-height: 0; }
.pay-logos img { height: 32px; width: auto; }
.pay-band p { margin: 0; color: var(--muted); font-size: 12px; font-weight: 700; max-width: 420px; }
.pay-marks { display: flex; align-items: center; gap: 12px; margin: 4px 0 8px; }
.pay-marks img { height: 48px; width: auto; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--ink); }
.consent input { margin-top: 3px; }
.consent a { color: var(--brand); font-weight: 800; }
.legal { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px 32px 36px; }
.legal h1 { margin: 0 0 8px; font-size: 30px; color: var(--ink); }
.legal h2 { margin: 22px 0 8px; font-size: 18px; color: var(--brand); }
.legal p, .legal li { line-height: 1.65; }
.legal ul { margin: 8px 0 0; padding-left: 18px; }
.cookie a { color: #fdba74; font-weight: 800; }
.cookie {
  position: fixed; right: 16px; bottom: 16px; max-width: 360px;
  background: var(--brand); color: #fff; padding: 16px; border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
}
.cookie button {
  margin-top: 8px; border: 0; background: var(--accent); color: #fff;
  font-weight: 800; padding: 8px 14px; border-radius: 8px; cursor: pointer;
}
.remove { border: 0; background: none; color: var(--accent); cursor: pointer; font-weight: 700; }
.notice { background: var(--accent-soft); color: var(--ink); padding: 12px 14px; border-radius: 10px; margin-bottom: 14px; border-left: 4px solid var(--accent); }
@media (max-width: 980px) {
  .site-header, .hero, .grid, .trust, .site-footer, .vehicle-card, .legal { grid-template-columns: 1fr; }
  .product-layout { grid-template-columns: minmax(0, 1fr); }
  .legal { padding: 20px 16px 28px; }
  .site-header { padding-top: 16px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
}
