/* Garage Parts — frontend styles */
:root {
  --black: #0A0A0B;
  --black-2: #050506;
  --graphite: #141517;
  --graphite-2: #1C1D20;
  --line: #2A2C30;
  --line-soft: #1E1F22;
  --white: #F4F4F2;
  --text-2: #C9CBCE;
  --muted: #9A9DA2;
  --muted-2: #5B5E63;
  --light: #EDEDEA;
  --light-tile: #FAFAF8;
  --light-line: #D3D4D1;
  --metal: #B9BDC3;
  --ok: #7FB069;
  --warn: #D9A441;
  --gutter: 64px;
  --section: 120px;
  --font: 'Archivo', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.on-light :focus-visible { outline-color: var(--black); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
.display {
  font-family: var(--font);
  font-stretch: 125%;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0;
}
.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow { color: var(--muted); }
.on-light .eyebrow { color: var(--muted-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 56px; padding: 0 22px;
  font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid transparent; background: none;
  transition: background .15s, color .15s, border-color .15s;
}
.btn svg { transition: transform .15s; }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--white); color: var(--black); }
.btn--primary:hover { background: #FFFFFF; }
.btn--ghost { border-color: #4A4D52; color: var(--white); }
.btn--ghost:hover { border-color: var(--white); }
.btn--dark-outline { border-color: var(--black); color: var(--black); }
.btn--dark-outline:hover { background: var(--black); color: var(--white); }
.btn--sm { height: 52px; }
.btn--block { width: 100%; }

.text-link {
  display: inline-flex; align-items: center; gap: 10px;
  border-bottom: 1px solid currentColor; padding-bottom: 4px; white-space: nowrap;
}

.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: square; flex-shrink: 0; }
.icon--sm { width: 18px; height: 18px; }
.icon--lg { width: 24px; height: 24px; }

/* ---------- Layout ---------- */
.wrap { padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: var(--section); padding-bottom: var(--section); }
.on-light { background: var(--light); color: var(--black); }

.section-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  margin-bottom: 48px;
}
.section-head__title { display: flex; flex-direction: column; gap: 16px; }
.section-head h2 { font-size: 56px; line-height: .95; }

/* ---------- Utility bar ---------- */
.utility {
  height: 36px; display: flex; align-items: center; justify-content: space-between;
  background: var(--black-2); border-bottom: 1px solid var(--line-soft);
  font-size: 11px; color: var(--muted);
}
.utility__group { display: flex; gap: 32px; }
.utility a:hover { color: var(--white); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: rgba(10,10,11,.96); border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(8px);
}
.header__left { display: flex; align-items: center; gap: 56px; }
.header__logo img { height: 30px; width: auto; }
.nav { display: flex; gap: 28px; }
.nav a, .cart-btn, .btn { white-space: nowrap; }
.nav a {
  font-size: 14px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase;
  padding: 6px 0; border-bottom: 1px solid transparent;
}
.nav a:hover { border-bottom-color: var(--white); }
.header__right { display: flex; align-items: center; gap: 12px; }
.search {
  display: flex; align-items: center; gap: 10px;
  width: 280px; height: 44px; padding: 0 14px;
  border: 1px solid #2E3034; color: var(--muted);
}
.search:focus-within { border-color: var(--white); }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: 14px; color: var(--white); }
.search input::placeholder { color: var(--muted); }
.icon-btn {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 1px solid #2E3034; color: var(--white); position: relative;
}
.icon-btn:hover { border-color: var(--white); }
.cart-btn {
  height: 44px; display: inline-flex; align-items: center; gap: 10px; padding: 0 16px;
  background: var(--white); color: var(--black);
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
}
.header__menu, .header__search-m, .cart-icon-m { display: none; }
.badge {
  position: absolute; top: 6px; right: 4px; min-width: 16px; height: 16px;
  background: var(--white); color: var(--black); font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 100; background: var(--black);
  display: flex; flex-direction: column; padding: 0 20px 32px;
  transform: translateX(-100%); transition: transform .25s ease; visibility: hidden;
}
.drawer.is-open { transform: none; visibility: visible; }
.drawer__top { height: 60px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line-soft); margin: 0 -20px; padding: 0 8px 0 20px; }
.drawer__top img { height: 20px; width: auto; }
.drawer nav { display: flex; flex-direction: column; margin-top: 16px; }
.drawer nav a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0; border-bottom: 1px solid var(--line);
  font-stretch: 125%; font-weight: 800; font-size: 24px; text-transform: uppercase;
}
.drawer__foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }

/* ---------- Hero ---------- */
.hero { display: flex; height: 780px; }
.hero__copy {
  width: 640px; flex-shrink: 0;
  padding: 64px 56px 56px var(--gutter);
  display: flex; flex-direction: column; justify-content: space-between;
}
.hero__main { display: flex; flex-direction: column; gap: 32px; }
.hero h1 {
  /* The hero copy column is 44vw wide with a --gutter each side, and the
     longest word needs ~10.3em. calc() keeps the type as large as will fit
     rather than picking one size that only works at one viewport. */
  font-size: clamp(28px, calc(4.1vw - 14px), 76px);
  line-height: .9;
  /* Safety net: if a longer word is ever used, break it instead of letting it
     escape the column. */
  overflow-wrap: break-word;
}
.hero p { margin: 0; max-width: 470px; font-size: 18px; line-height: 1.55; color: var(--text-2); }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__perks { display: flex; gap: 40px; border-top: 1px solid var(--line); padding-top: 20px; }
.perk { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); }
.perk .icon { color: var(--metal); }
.hero__media { position: relative; flex: 1; overflow: hidden; background: var(--graphite); }
.hero__slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .8s ease;
}
.hero__slide.is-active { opacity: 1; }
.hero__meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px;
  padding: 28px 32px;
}
.tag { white-space: nowrap; background: var(--black); padding: 10px 14px; font-size: 11px; color: var(--white); }
.pager { display: flex; align-items: center; gap: 10px; background: var(--black); padding: 4px 14px; font-size: 11px; }
.pager button {
  width: 40px; height: 32px; padding: 0; background: none; border: 0; position: relative;
}
.pager button::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: #4A4D52; }
.pager button[aria-current="true"]::after { background: var(--white); }
.pager__total { color: var(--muted); }

/* ---------- Vehicle selector ---------- */
.selector {
  background: var(--graphite); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding-top: 32px; padding-bottom: 32px;
  display: flex; align-items: flex-end; gap: 48px;
}
.selector__intro { width: 300px; flex-shrink: 0; display: flex; flex-direction: column; gap: 8px; padding-bottom: 4px; }
.selector__intro h2 { font-size: 22px; }
.selector__intro p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.45; }
.selector__form { flex: 1; display: flex; gap: 12px; align-items: flex-end; }
.field { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 11px; color: var(--muted); }
.select { position: relative; }
.select select {
  appearance: none; -webkit-appearance: none;
  width: 100%; height: 52px; padding: 0 44px 0 16px;
  background: var(--black); color: var(--white);
  border: 1px solid #3A3C40; border-radius: 0; font-size: 15px; font-weight: 500;
}
.select select:disabled { color: var(--muted-2); }
.select select:hover:not(:disabled) { border-color: var(--muted); }
.select .icon { position: absolute; right: 14px; top: 50%; margin-top: -10px; color: var(--muted); pointer-events: none; }
.selector__submit { flex-shrink: 0; height: 52px; border: 0; }
.selector__status { font-size: 11px; color: var(--muted); margin-top: 12px; min-height: 14px; }

/* ---------- Platforms ---------- */
.platforms__grid { display: flex; gap: 64px; }
.platforms__list { flex: 1; display: flex; flex-direction: column; border-bottom: 1px solid var(--line); }
.platform {
  display: grid; grid-template-columns: 200px minmax(0,1fr) 40px; align-items: center; gap: 24px;
  height: 128px; border-top: 1px solid var(--line); color: #6B6E73; transition: color .15s;
}
.platform__code { font-size: 64px; line-height: 1; }
.platform__models { font-size: 16px; font-weight: 500; color: var(--white); }
.platform__meta { font-size: 11px; color: var(--muted); margin-top: 8px; }
.platform__arrow { display: flex; justify-content: flex-end; }
.platform.is-active, .platform:hover { color: var(--white); }
.platforms__media { position: relative; width: 500px; flex-shrink: 0; overflow: hidden; background: var(--graphite); }
.platforms__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; transition: opacity .3s; }
.platforms__media .tag { position: absolute; left: 20px; bottom: 20px; }
.platforms__empty {
  position: absolute; inset: 0; display: none; align-items: center; justify-content: center;
  font-size: 140px; color: #26282B; background: var(--graphite);
  border: 1px solid var(--line);
}
.platforms__media.is-empty .platforms__empty { display: flex; }
.platforms__media.is-empty img { opacity: 0; }

/* ---------- Engines ---------- */
.engines__grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); }
.engine { display: flex; flex-direction: column; gap: 24px; padding: 0 40px; border-left: 1px solid var(--light-line); }
.engine:first-child { padding-left: 0; border-left: 0; }
.engine:last-child { padding-right: 0; }
.engine__label { font-size: 11px; color: var(--muted-2); }
.engine__code { font-size: 148px; line-height: .85; }
.engine__spec { font-size: 17px; font-weight: 600; }
.engine__found { display: flex; flex-direction: column; gap: 6px; }
.engine__found span { font-size: 11px; color: var(--muted-2); }
.engine__found p { margin: 0; font-size: 15px; line-height: 1.5; color: #3A3C40; }
.engine .btn { margin-top: auto; }

/* ---------- Products ---------- */
.tabs { display: flex; gap: 28px; margin: -16px 0 32px; border-bottom: 1px solid var(--line); }
.tabs button {
  height: 40px; padding: 0 2px; background: none; border: 0; border-bottom: 2px solid transparent;
  color: var(--muted); font-size: 12px;
}
.tabs button[aria-selected="true"] { color: var(--white); border-bottom-color: var(--white); }
.products { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.product { display: flex; flex-direction: column; background: var(--graphite); border: 1px solid #232427; transition: border-color .15s; }
.product:hover { border-color: #4A4D52; }
.product__media {
  position: relative; aspect-ratio: 1 / 1; background: var(--graphite-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
}
.product__media { overflow: hidden; }
.product__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s ease, transform .6s ease; }
.product__img--alt { opacity: 0; }
.product:hover .product__img--alt { opacity: 1; }
.product:hover .product__img:only-of-type { transform: scale(1.04); }
.product__tag { z-index: 2; }
.product__media .rule { width: 56px; height: 1px; background: var(--metal); }
.product__media .mono { font-size: 10px; color: var(--muted-2); }
.product__tag { position: absolute; left: 16px; top: 16px; padding: 6px 8px; font-size: 10px; }
.product__tag--solid { background: var(--white); color: var(--black); }
.product__tag--outline { background: var(--black); border: 1px solid var(--muted-2); color: var(--white); }
.product__body { display: flex; flex-direction: column; gap: 10px; padding: 20px; flex: 1; }
.product__fit { font-size: 11px; color: var(--muted); }
.product__name { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.3; min-height: 2.6em; }
.product__row { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.product__price { font-size: 18px; font-weight: 700; }
.stock { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.stock::before { content: ""; width: 6px; height: 6px; background: var(--ok); }
.stock--warn::before { background: var(--warn); }
.product__add {
  height: 44px; background: none; border: 1px solid #3A3C40; color: var(--white); font-size: 12px;
}
.product__add:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.product__add.is-added { background: var(--white); color: var(--black); }
.products__more { display: none; margin-top: 20px; }

/* ---------- Categories ---------- */
.categories { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px; background: var(--light-line); border: 1px solid var(--light-line); }
.category {
  background: var(--light-tile); display: flex; flex-direction: column; transition: background .15s, color .15s;
}
.category__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--black); }
.category__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.category:hover .category__media img { transform: scale(1.05); }
.category__body { flex: 1; padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 28px; }
.category:hover { background: var(--black); color: var(--white); }
.category__top { display: flex; justify-content: space-between; align-items: center; }
.category__num { font-size: 11px; color: var(--muted-2); }
.category__name { font-size: 28px; line-height: 1; }
.category__desc { margin: 8px 0 0; font-size: 14px; color: var(--muted-2); }
.category:hover .category__desc, .category:hover .category__num { color: var(--muted); }

/* ---------- Pickup / Shipping ---------- */
.service { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); border-bottom: 1px solid var(--line); }
.service__media { position: relative; min-height: 640px; overflow: hidden; background: var(--graphite); }
.service__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.service__block { padding: 72px 80px; display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.service__block--flip { border-top: 1px solid var(--line); }
.service__media--flip { border-top: 1px solid var(--line); }
.service__label { display: flex; align-items: center; gap: 12px; }
.service__label .icon { color: var(--metal); width: 22px; height: 22px; }
.service__block h2 { font-size: 46px; line-height: .95; }
.service__block p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text-2); max-width: 520px; }
.facts { margin: 0; border-bottom: 1px solid var(--line); }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15px; }
.facts dt { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.facts dd { margin: 0; text-align: right; }
.service__block .btn { align-self: flex-start; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.gallery figure { position: relative; margin: 0; height: 440px; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery figure:hover img { transform: scale(1.03); }
.gallery figcaption { position: absolute; left: 16px; bottom: 16px; }

/* ---------- Footer ---------- */
.footer { background: var(--black-2); border-top: 1px solid var(--line-soft); padding-top: 80px; padding-bottom: 40px; }
.footer__top { display: flex; justify-content: space-between; gap: 64px; padding-bottom: 64px; border-bottom: 1px solid var(--line-soft); }
.footer__brand { width: 420px; display: flex; flex-direction: column; gap: 24px; }
.footer__brand img { height: 40px; width: auto; align-self: flex-start; }
.footer__brand p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.newsletter { display: flex; flex-direction: column; gap: 10px; }
.newsletter label { font-size: 11px; color: var(--muted); }
.newsletter__row { display: flex; }
.newsletter input {
  flex: 1; min-width: 0; height: 52px; padding: 0 16px;
  background: var(--black); border: 1px solid #3A3C40; border-right: 0; font-size: 15px;
}
.newsletter button { height: 52px; padding: 0 22px; background: var(--white); color: var(--black); border: 0; font-weight: 500; }
.newsletter__msg { font-size: 13px; color: var(--muted); min-height: 18px; margin: 0; }
.footer__cols { flex: 1; max-width: 760px; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 48px; }
.footer__col summary { list-style: none; font-size: 11px; color: var(--muted); margin-bottom: 20px; pointer-events: none; }
.footer__col summary::-webkit-details-marker { display: none; }
.footer__col summary .icon { display: none; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.footer__col a { font-size: 14px; color: var(--text-2); }
.footer__col a:hover { color: var(--white); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding-top: 28px; font-size: 13px; color: var(--muted); }
.footer__legal { font-size: 12px; color: var(--muted-2); max-width: 560px; text-align: center; margin: 0; }
.footer__links { display: flex; gap: 24px; }
.footer__links a:hover { color: var(--white); }

/* =========================================================
   Tablet
   ========================================================= */
@media (max-width: 1200px) {
  :root { --gutter: 40px; --section: 96px; }
  .nav { gap: 22px; }
  .nav a:nth-child(n+5) { display: none; }
  .search { width: 220px; }
  .hero__copy { width: 52%; }
  /* no fixed size here: the fluid rule above already fits this width */
  .selector { flex-direction: column; align-items: stretch; gap: 20px; }
  .selector__intro { width: auto; }
  .platforms__media { width: 400px; }
  .engine__code { font-size: 112px; }
  .products { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .service__block { padding: 56px 48px; }
  .footer__top { flex-direction: column; }
  .footer__brand { width: auto; max-width: 520px; }
  .footer__cols { max-width: none; }
}

@media (max-width: 960px) {
  .nav, .search { display: none; }
  .header__menu, .header__search-m { display: inline-flex; }
  .hero { flex-direction: column-reverse; height: auto; }
  .hero__copy { width: auto; padding: 48px var(--gutter) 56px; gap: 40px; }
  .hero__media { height: 560px; flex: none; }
  .hero h1 { font-size: clamp(36px, 7.4vw, 76px); }
  .platforms__grid { flex-direction: column-reverse; gap: 40px; }
  .platforms__media { width: 100%; height: 420px; }
  .engines__grid { grid-template-columns: 1fr; }
  .engine { padding: 36px 0; border-left: 0; border-top: 1px solid var(--light-line); }
  .engine:first-child { padding-top: 0; border-top: 0; }
  .engine .btn { margin-top: 0; align-self: flex-start; min-width: 280px; }
  .products { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .categories { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .service { grid-template-columns: 1fr; }
  .service__media { min-height: 420px; }
  .service__media--flip { order: 3; }
  .service__block--flip { order: 4; }
  .gallery { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .footer__legal { text-align: left; }
}

/* =========================================================
   Mobile
   ========================================================= */
@media (max-width: 640px) {
  :root { --gutter: 20px; --section: 64px; }
  .utility { height: 32px; justify-content: center; font-size: 10px; }
  .utility__group:last-child { display: none; }
  .utility__group { gap: 16px; white-space: nowrap; }
  .utility__group span + span { display: none; }
  .header { height: 60px; padding-left: 8px; padding-right: 8px; }
  .header__left { gap: 0; }
  .header__logo { position: absolute; left: 50%; transform: translateX(-50%); }
  .header__logo img { height: 20px; }
  .header__right { gap: 0; }
  .icon-btn { border: 0; }
  .header__account, .cart-btn { display: none; }
  .cart-icon-m { display: inline-flex; }

  .hero__media { height: 440px; }
  .hero__meta { padding: 16px 20px; }
  .hero__copy { padding-top: 32px; padding-bottom: 40px; gap: 32px; }
  .hero__main { gap: 22px; }
  .hero h1 { font-size: clamp(26px, 8.4vw, 56px); }
  .hero p { font-size: 16px; }
  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { width: 100%; height: 54px; }
  .hero__perks { flex-direction: column; gap: 12px; }
  .pager { padding: 0 10px; }
  .pager button { width: 24px; }

  .section-head { margin-bottom: 28px; flex-wrap: wrap; align-items: flex-start; }
  .section-head h2 { font-size: 34px; }
  .section-head__title { gap: 12px; }
  .text-link { font-size: 11px; gap: 6px; }
  .text-link .icon { display: none; }

  .selector { padding-top: 28px; padding-bottom: 28px; gap: 16px; }
  .selector__intro h2 { font-size: 20px; }
  .selector__form { flex-wrap: wrap; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  .select select { height: 48px; }
  .selector__submit { grid-column: 1 / -1; width: 100%; }

  .platforms__media { height: 300px; }
  .platform { grid-template-columns: 96px minmax(0,1fr) 18px; gap: 16px; height: auto; padding: 20px 0; }
  .platform__code { font-size: 36px; }
  .platform__models { font-size: 13px; line-height: 1.4; }
  .platform__meta { font-size: 10px; margin-top: 6px; }
  .platform__arrow .icon { width: 18px; height: 18px; }

  .engine { gap: 14px; padding: 28px 0; }
  .engine__label { display: none; }
  .engine__code { font-size: 84px; }
  .engine__spec { font-size: 15px; }
  .engine__found p { font-size: 14px; }
  .engine .btn { width: 100%; min-width: 0; height: 52px; }

  .tabs { gap: 22px; margin: -8px 0 20px; }
  .tabs button { height: 36px; font-size: 11px; }
  .products { gap: 10px; }
  .product:nth-child(n+7) { display: none; }
  .product__tag { left: 8px; top: 8px; font-size: 9px; padding: 4px 6px; }
  .product__body { padding: 14px; gap: 8px; }
  .product__fit { font-size: 10px; }
  .product__name { font-size: 14px; }
  .product__price { font-size: 16px; }
  .stock { font-size: 11px; }
  .product__add { display: none; }
  .products__more { display: flex; }

  .category__body { padding: 14px 14px 16px; gap: 14px; }
  .category__name { font-size: 17px; font-stretch: 110%; }
  .category__desc { display: none; }
  .category .icon { width: 16px; height: 16px; }

  .service__media { min-height: 280px; }
  .service__block { padding: 44px 20px; gap: 16px; }
  .service__block h2 { font-size: 32px; }
  .service__block p { font-size: 15px; }
  .facts div { font-size: 14px; }
  .service__block .btn { align-self: stretch; }

  .gallery { gap: 8px; }
  .gallery figure { height: 250px; }
  .gallery figcaption { left: 8px; bottom: 8px; padding: 6px 8px; font-size: 9px; }

  .footer { padding-top: 48px; padding-bottom: 32px; }
  .footer__top { gap: 28px; padding-bottom: 0; border-bottom: 0; }
  .footer__brand img { height: 30px; }
  .footer__cols { grid-template-columns: 1fr; gap: 0; border-bottom: 1px solid var(--line-soft); }
  .footer__col { border-top: 1px solid var(--line-soft); }
  .footer__col summary {
    display: flex; justify-content: space-between; align-items: center;
    height: 56px; margin: 0; color: var(--white); pointer-events: auto; cursor: pointer;
  }
  .footer__col summary .icon { display: block; transition: transform .2s; }
  .footer__col[open] summary .icon { transform: rotate(45deg); }
  .footer__col ul { padding-bottom: 20px; }
  .footer__links { gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* =========================================================
   Store components
   Added for the PHP build: page headers, hub pages, product
   pages, cart, checkout and forms. Same language as above —
   square corners, no gradients, no glows, no rounded cards.
   ========================================================= */

/* ---------- Page header ---------- */
.page-head { padding-top: 56px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: 56px; line-height: .95; }
.page-head__sub { margin: 16px 0 0; font-size: 16px; color: var(--muted); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 24px; }
.crumbs a:hover { color: var(--white); }
.crumbs [aria-current] { color: var(--text-2); }
.on-light .crumbs { color: var(--muted-2); }

/* ---------- Prose ---------- */
.prose { max-width: 72ch; font-size: 16px; line-height: 1.65; color: var(--text-2); }
.prose p { margin: 0 0 18px; }
.prose p:last-child { margin-bottom: 0; }
.prose h2 { font-family: var(--font); font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: 22px; line-height: 1.1; margin: 32px 0 14px; color: var(--white); }
.prose h3 { font-size: 17px; font-weight: 700; margin: 24px 0 10px; color: var(--white); }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.prose a { border-bottom: 1px solid var(--muted-2); }
.prose a:hover { border-bottom-color: var(--white); }
.prose strong { color: var(--white); }
.on-light .prose { color: #3A3C40; }
.on-light .prose h2, .on-light .prose h3, .on-light .prose strong { color: var(--black); }
.hub-intro { margin-bottom: 48px; }
.muted { color: var(--muted); }
.empty { color: var(--muted); font-size: 16px; }

/* ---------- Notices ---------- */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 16px; margin: 20px 0; border: 1px solid var(--warn); background: rgba(217,164,65,.06); }
.notice .icon { color: var(--warn); margin-top: 2px; }
.notice p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text-2); }
.notice strong { color: var(--white); }
.notice a { border-bottom: 1px solid currentColor; }
.notice--inline { margin: 16px 0; }
.on-light .notice p { color: #3A3C40; }
.on-light .notice strong { color: var(--black); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 20px 0; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom-color: var(--metal); white-space: nowrap; }
.table td { color: var(--text-2); }
.table .mono { font-size: 10px; }
.on-light .table td { color: #3A3C40; }
.on-light .table th, .on-light .table td { border-bottom-color: var(--light-line); }

/* ---------- Tick lists ---------- */
.ticks { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 10px; max-width: 72ch; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.ticks .icon { color: var(--metal); margin-top: 3px; }
.ticks--plain li { padding-left: 0; }

/* ---------- Facts (compact variant) ---------- */
.facts--compact { margin-top: 24px; }
.facts a { border-bottom: 1px solid var(--muted-2); }
.facts a:hover { border-bottom-color: currentColor; }
.on-light .facts div { border-top-color: var(--light-line); }
.on-light .facts { border-bottom-color: var(--light-line); }
.on-light .facts dt { color: var(--muted-2); }

/* ---------- Hub lists ---------- */
.hub-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.hub-list__item { display: grid; grid-template-columns: 160px minmax(0,1fr) 60px 24px; align-items: center; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); color: var(--text-2); transition: color .15s; }
.hub-list__item:hover { color: var(--white); }
.hub-list__code { font-size: 40px; line-height: 1; }
.hub-list__title { font-size: 16px; font-weight: 500; }
.hub-list__meta { font-size: 11px; color: var(--muted); margin-top: 6px; }
.hub-list__count { font-size: 12px; color: var(--muted); text-align: right; }
.hub-list--light .hub-list__item { border-bottom-color: var(--light-line); color: #3A3C40; }
.hub-list--light { border-top-color: var(--light-line); }
.hub-list--light .hub-list__item:hover { color: var(--black); }

.hub-links { display: flex; flex-wrap: wrap; gap: 10px; }
.hub-links__item { display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border: 1px solid var(--line); font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.hub-links__item:hover { border-color: var(--white); }
.on-light .hub-links__item { border-color: var(--light-line); }
.on-light .hub-links__item:hover { border-color: var(--black); }

/* ---------- Search ---------- */
.search { position: relative; }
.search__suggest { position: absolute; top: calc(100% + 4px); left: -1px; right: -1px; z-index: 60; background: var(--graphite); border: 1px solid var(--line); max-height: 400px; overflow-y: auto; }
.search__hit { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.search__hit:hover { background: var(--graphite-2); }
.search__hit-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search__hit-price { color: var(--muted); white-space: nowrap; }
.search__hit--all { justify-content: center; color: var(--muted); border-bottom: 0; }
.search--page { width: 100%; max-width: 640px; height: 56px; margin-bottom: 40px; }
.search--page button { background: none; border: 0; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.search--page button:hover { color: var(--white); }

/* ---------- Vehicle selector results ---------- */
.selector__results { margin-top: 16px; }
.selector__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.selector__list a { display: inline-block; padding: 10px 14px; border: 1px solid var(--line); font-size: 13px; }
.selector__list a:hover { border-color: var(--white); }

/* ---------- Product page ---------- */
.pdp { display: grid; grid-template-columns: minmax(0,1fr) 480px; gap: 64px; padding-top: 16px; padding-bottom: 64px; }
.pdp__main-image { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--graphite); }
.pdp__main-image img { width: 100%; height: 100%; object-fit: cover; }
.pdp__thumbs { display: flex; gap: 8px; margin-top: 8px; }
.pdp__thumb { width: 88px; height: 88px; padding: 0; background: none; border: 1px solid var(--line); overflow: hidden; }
.pdp__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp__thumb.is-active { border-color: var(--white); }
.pdp__info { display: flex; flex-direction: column; gap: 16px; padding-top: 8px; }
.pdp__eyebrow { color: var(--muted); }
.pdp__title { font-size: 36px; line-height: 1.05; }
.pdp__price-row { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.pdp__price { font-size: 30px; font-weight: 700; }
.pdp__compare { font-size: 17px; color: var(--muted); text-decoration: line-through; }
.pdp__sku { font-size: 11px; color: var(--muted); }
.pdp__buy { display: flex; gap: 12px; align-items: stretch; margin-top: 8px; }
.pdp__buy .btn { flex: 1; }
.pdp__buy-msg { margin: 0; font-size: 13px; color: var(--warn); min-height: 18px; }
.pdp__oos { margin: 0; font-size: 15px; color: var(--muted); }
.pdp__oos a { border-bottom: 1px solid currentColor; }
.pdp__detail { padding-bottom: 96px; display: flex; flex-direction: column; gap: 56px; }
.pdp__section h2 { font-size: 26px; margin-bottom: 16px; }

/* ---------- Quantity stepper ---------- */
.qty { display: inline-flex; align-items: stretch; border: 1px solid var(--line); }
.qty__btn { width: 48px; background: none; border: 0; color: var(--text-2); font-size: 18px; line-height: 1; }
.qty__btn:hover { color: var(--white); background: var(--graphite-2); }
.qty__input { width: 56px; height: 56px; background: none; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; font-size: 15px; -moz-appearance: textfield; }
.qty__input::-webkit-outer-spin-button, .qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------- FAQ ---------- */
.faq h2 { font-size: 34px; margin-bottom: 32px; }
.faq__list { display: grid; gap: 28px; max-width: 76ch; }
.faq__item h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; }
.faq__answer { font-size: 15px; line-height: 1.6; color: var(--text-2); }
.faq__answer p { margin: 0 0 12px; }
.faq__answer p:last-child { margin-bottom: 0; }
.on-light .faq__answer { color: #3A3C40; }

/* ---------- Cart ---------- */
.cart { display: grid; grid-template-columns: minmax(0,1fr) 380px; gap: 64px; align-items: start; }
.cart__items { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.cart-line { display: grid; grid-template-columns: 120px minmax(0,1fr) auto auto; gap: 24px; align-items: start; padding: 24px 0; border-bottom: 1px solid var(--line); }
.cart-line__media { display: block; width: 120px; height: 120px; overflow: hidden; background: var(--graphite); }
.cart-line__media img { width: 100%; height: 100%; object-fit: cover; }
.cart-line__name { margin: 0 0 6px; font-size: 16px; font-weight: 600; line-height: 1.35; }
.cart-line__sku { font-size: 10px; color: var(--muted); }
.cart-line__flag { margin-top: 8px; font-size: 10px; color: var(--warn); }
.cart-line__qty { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.cart-line__remove { background: none; border: 0; padding: 0; font-size: 10px; color: var(--muted); text-decoration: underline; }
.cart-line__remove:hover { color: var(--white); }
.cart-line__price { text-align: right; }
.cart-line__total { font-size: 18px; font-weight: 700; }
.cart-line__unit { font-size: 10px; color: var(--muted); margin-top: 6px; }
.cart__summary { position: sticky; top: 104px; border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.cart__summary h2 { font-size: 22px; }
.cart__summary .btn { margin-top: 4px; }
.cart__note { margin: 4px 0 0; font-size: 12px; line-height: 1.55; color: var(--muted); }
.cart__note a { border-bottom: 1px solid currentColor; }

/* ---------- Order confirmation ---------- */
.order { display: grid; grid-template-columns: minmax(0,1fr) 380px; gap: 64px; align-items: start; }
.order__main h2 { font-size: 24px; margin: 40px 0 16px; }
.order__main h2:first-child { margin-top: 0; }
.order__address { font-style: normal; font-size: 15px; line-height: 1.7; color: var(--text-2); }
.order__summary { position: sticky; top: 104px; border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.order__summary h2 { font-size: 22px; }

/* ---------- Forms ---------- */
.form, .checkout { display: block; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.form__row--3 { grid-template-columns: minmax(0,2fr) minmax(0,1.4fr) minmax(0,1fr); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field input[type="password"], .field input[type="number"], .field input[type="search"], .field textarea {
  width: 100%; height: 52px; padding: 0 14px; background: var(--graphite);
  border: 1px solid var(--line); color: var(--white); font-size: 15px; outline: none;
}
.field textarea { height: auto; padding: 14px; line-height: 1.5; resize: vertical; }
.field input:focus, .field textarea:focus, .select select:focus { border-color: var(--white); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field__hint { margin: 8px 0 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
.field__error { margin: 8px 0 0; font-size: 12px; color: var(--warn); min-height: 0; }
.field__error:empty { margin: 0; }
.form .field, .checkout .field { margin-bottom: 16px; }
.form__msg { margin: 16px 0 0; font-size: 14px; color: var(--text-2); }
.form--contact { max-width: 720px; margin-top: 32px; }
/* Honeypot: off-screen rather than display:none, which some bots detect. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.checkbox { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.55; color: var(--text-2); cursor: pointer; }
.checkbox input { width: 20px; height: 20px; margin: 0; flex-shrink: 0; accent-color: var(--white); }

/* ---------- Checkout ---------- */
.checkout { display: grid; grid-template-columns: minmax(0,1fr) 380px; gap: 64px; align-items: start; }
.checkout__main { display: flex; flex-direction: column; gap: 40px; }
.checkout__step { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 28px 0 0; }
.checkout__step:first-child { border-top: 0; padding-top: 0; }
.checkout__step legend { display: flex; align-items: center; gap: 12px; padding: 0; margin-bottom: 20px; font-family: var(--font); font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: 20px; }
.checkout__step legend .mono { font-size: 11px; color: var(--muted); font-stretch: normal; font-weight: 400; }
.checkout__summary { position: sticky; top: 104px; border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.checkout__summary h2 { font-size: 22px; }
.checkout__error { margin: 16px 0 0; font-size: 14px; color: var(--warn); }
.checkout__error:empty { margin: 0; }

.choice { display: flex; flex-direction: column; gap: 10px; }
.choice__option { display: flex; align-items: center; gap: 16px; padding: 18px; border: 1px solid var(--line); cursor: pointer; }
.choice__option:has(input:checked) { border-color: var(--white); }
.choice__option input { width: 20px; height: 20px; margin: 0; flex-shrink: 0; accent-color: var(--white); }
.choice__body { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.choice__title { font-size: 15px; font-weight: 600; }
.choice__meta { font-size: 12px; color: var(--muted); }
.choice__price { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }

.card-container { min-height: 90px; padding: 14px; background: var(--white); border: 1px solid var(--line); }
.wallets { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.wallet-button { min-height: 48px; }
#apple-pay-button { -apple-pay-button-style: white-outline; -apple-pay-button-type: plain; height: 48px; display: block; cursor: pointer; }
.wallets__divider { display: flex; align-items: center; gap: 16px; margin: 20px 0; font-size: 11px; color: var(--muted); }
.wallets__divider::before, .wallets__divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.summary-lines { list-style: none; margin: 0; padding: 0 0 8px; display: flex; flex-direction: column; gap: 12px; }
.summary-lines li { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; }
.summary-lines__name { min-width: 0; }
.summary-lines__price { white-space: nowrap; }

/* ---------- Page body ---------- */
.page-body { display: flex; flex-direction: column; gap: 32px; }

/* ---------- Error page ---------- */
.error-page { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.error-page h1 { font-size: 72px; line-height: .95; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .pdp { grid-template-columns: minmax(0,1fr) 400px; gap: 40px; }
  .cart, .order, .checkout { grid-template-columns: minmax(0,1fr) 320px; gap: 40px; }
}

@media (max-width: 960px) {
  .page-head h1 { font-size: 40px; }
  .pdp { grid-template-columns: 1fr; gap: 32px; }
  .cart, .order, .checkout { grid-template-columns: 1fr; gap: 32px; }
  .cart__summary, .order__summary, .checkout__summary { position: static; }
  .hub-list__item { grid-template-columns: 100px minmax(0,1fr) 40px 20px; gap: 16px; }
  .hub-list__code { font-size: 30px; }
  .error-page h1 { font-size: 48px; }
}

@media (max-width: 640px) {
  .page-head { padding-top: 28px; padding-bottom: 24px; }
  .page-head h1 { font-size: 32px; }
  .pdp__title { font-size: 26px; }
  .pdp__price { font-size: 24px; }
  .pdp__detail { gap: 40px; padding-bottom: 56px; }
  .pdp__section h2 { font-size: 21px; }
  .form__row, .form__row--3 { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 80px minmax(0,1fr); gap: 16px; }
  .cart-line__media { width: 80px; height: 80px; }
  .cart-line__qty { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .cart-line__price { grid-column: 1 / -1; text-align: left; }
  .cart__summary, .order__summary, .checkout__summary { padding: 20px; }
  .faq h2 { font-size: 26px; }
  .error-page h1 { font-size: 36px; }
  .hub-list__item { grid-template-columns: 72px minmax(0,1fr) 20px; }
  .hub-list__count { display: none; }
  .search__suggest { position: fixed; left: 8px; right: 8px; top: 60px; }
}

/* ---------- Footer contact ---------- */
.footer__contact { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.footer__contact a { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); }
.footer__contact a:hover { color: var(--white); }
.footer__contact .icon { color: var(--metal); }

/* ---------- Floating WhatsApp button ----------
   Square, flat and monochrome, like every other control on the site: no pill,
   no gradient, no drop shadow. It sits under the mobile drawer (z-index 100)
   so an open menu covers it. */
.wa {
  position: fixed; right: 24px; bottom: 24px; z-index: 40;
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 18px;
  background: var(--white); color: var(--black);
  border: 1px solid var(--white);
  transition: background .15s, color .15s, border-color .15s;
}
.wa:hover { background: var(--black); color: var(--white); border-color: var(--white); }
.wa__icon { width: 22px; height: 22px; flex-shrink: 0; }
.wa__label { font-size: 12px; font-weight: 500; }

/* Printing a page should not print a button that cannot be clicked. */
@media print { .wa { display: none; } }

@media (max-width: 640px) {
  /* Icon only on small screens: the label costs width that the page needs
     more than the button does. */
  .wa { right: 16px; bottom: 16px; width: 52px; padding: 0; justify-content: center; }
  .wa__label { display: none; }
}
