/* ==========================================================================
   main.css — components + layout + responsive for Royal Holding USA Plus.
   Consumes css/tokens.css variables only (no hardcoded brand hex).
   Order: base utils · buttons · chips · utility bar · header · search · nav +
   mega · drawer · fitbar · hero · fitment · trust · category tiles · product
   card · grid · breadcrumb · filters/PLP · PDP · cart · secondary · footer ·
   toast · modal · responsive.
   ========================================================================== */

/* ------------------------------------------------------------- base / utils */
body.no-scroll { overflow: hidden; }
/* let the sticky .header stick across the whole page, not just within its wrapper */
#site-header { display: contents; }
main { display: block; min-height: 50vh; }
.section { padding: var(--s-7) 0; }
.section--tight { padding: var(--s-6) 0; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-5); flex-wrap: wrap; }
.section__head h2 { font-size: 28px; }
.section__link { color: var(--mps-red); font-weight: 600; font-size: 14px; }
.section__link:hover { text-decoration: underline; }
.muted { color: var(--text-muted); }
.center { text-align: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.lede { font-size: 18px; color: var(--steel-600); line-height: 1.6; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  height: 44px; padding: 0 var(--s-5); border: 1px solid transparent; border-radius: var(--r-md);
  font-family: var(--font-body); font-weight: 600; font-size: 15px; line-height: 1; color: var(--ink-900);
  background: var(--surface-100); cursor: pointer; transition: background var(--t), border-color var(--t), transform var(--t), color var(--t);
  text-align: center; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--mps-red); color: #fff; }
.btn--primary:hover { background: var(--mps-red-600); }
.btn--primary:active { background: var(--mps-red-700); }
.btn--secondary { background: var(--ink-800); color: #fff; }
.btn--secondary:hover { background: var(--ink-700); }
.btn--outline { background: transparent; border-color: var(--line); color: var(--ink-900); }
.btn--outline:hover { background: var(--surface-100); border-color: var(--steel-400); }
.btn--ghost { background: transparent; color: var(--mps-red); padding: 0 var(--s-2); height: auto; }
.btn--ghost:hover { text-decoration: underline; transform: none; }
.btn--sm { height: 36px; padding: 0 var(--s-4); font-size: 14px; }
.btn--lg { height: 52px; padding: 0 var(--s-6); font-size: 17px; }
.btn--block { width: 100%; }
.btn--uppercase { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .03em; font-weight: 600; }
.btn[disabled], .btn.is-disabled { background: var(--surface-200); color: var(--steel-400); cursor: not-allowed; transform: none; }
.btn svg { width: 18px; height: 18px; }

/* ----------------------------------------------------------------- chips */
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 var(--s-3);
  border-radius: var(--r-pill); background: var(--surface-100); color: var(--steel-600);
  font-size: 12.5px; font-weight: 600; border: 1px solid transparent; white-space: nowrap;
}
.chip--ghost { background: var(--surface-100); color: var(--ink-800); transition: background var(--t), color var(--t); }
.chip--ghost:hover { background: var(--mps-red); color: #fff; }
.chip--vmrs { background: var(--surface-100); color: var(--steel-600); font-family: var(--font-body); cursor: help; font-variant-numeric: tabular-nums; }
.chip--removable { background: var(--mps-red-tint); color: var(--mps-red-700); border-color: var(--mps-red-tint); }
.chip--removable button { background: none; border: 0; color: inherit; font-size: 15px; line-height: 1; padding: 0; cursor: pointer; }

/* ---------------------------------------------------------------- utility bar */
.utilbar { background: var(--ink-900); color: var(--steel-400); font-size: 13px; }
.utilbar__inner { display: flex; align-items: center; justify-content: space-between; height: 38px; gap: var(--s-4); }
.utilbar__left { display: flex; align-items: center; gap: var(--s-4); min-width: 0; }
.utilbar__phone { color: #fff; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.utilbar__phone:hover { color: var(--mps-red); }
.utilbar__experts { color: var(--steel-400); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.utilbar__right { display: flex; align-items: center; gap: var(--s-4); }
.utilbar__right a { color: var(--steel-400); }
.utilbar__right a:hover { color: #fff; }

/* -------------------------------------------------------------------- header */
.header { background: var(--ink-800); position: sticky; top: 0; z-index: 60; transition: box-shadow var(--t); }
.header.is-stuck { box-shadow: var(--sh-2); }
.header__inner { display: flex; align-items: center; gap: var(--s-5); height: 78px; }
.header__burger { display: none; background: none; border: 0; color: #fff; padding: 6px; border-radius: var(--r-sm); }
.logo { display: inline-flex; align-items: center; flex: 0 0 auto; }
.logo .logo__svg { height: 40px; width: auto; display: block; }
.header__actions { display: flex; align-items: center; gap: var(--s-3); margin-left: auto; }
.header__action { display: inline-flex; align-items: center; gap: 8px; color: #fff; padding: 8px 10px; border-radius: var(--r-md); transition: background var(--t); position: relative; }
.header__action:hover { background: var(--ink-700); }
.header__action svg { color: #fff; }
.header__action-tx { font-size: 13px; font-weight: 600; }
.cart-badge {
  position: absolute; top: 2px; left: 26px; min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--mps-red); color: #fff; border-radius: var(--r-pill); font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; line-height: 1;
}
.cart-badge.bump { animation: badgepop .3s var(--t); }
@keyframes badgepop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* -------------------------------------------------------------------- search */
.search { flex: 1 1 auto; display: flex; align-items: stretch; max-width: 720px; background: #fff; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--sh-1); }
.search__cat { border: 0; background: var(--surface-100); color: var(--ink-800); font-size: 13px; font-weight: 600; padding: 0 var(--s-3); max-width: 150px; border-right: 1px solid var(--line); }
.search__input { flex: 1 1 auto; border: 0; padding: 0 var(--s-4); font-size: 15px; min-width: 0; height: 48px; }
.search__input:focus-visible { box-shadow: none; outline: none; }
.search__btn { border: 0; background: var(--mps-red); color: #fff; width: 56px; display: flex; align-items: center; justify-content: center; transition: background var(--t); }
.search__btn:hover { background: var(--mps-red-600); }

/* ---------------------------------------------------------------- nav + mega */
.nav { background: var(--ink-700); position: relative; z-index: 55; }
.nav__inner { display: flex; align-items: center; justify-content: space-between; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; gap: 0; overflow: visible; }
.nav__link {
  display: inline-flex; align-items: center; height: 48px; padding: 0 var(--s-3);
  font-family: var(--font-display); text-transform: uppercase; font-weight: 600; font-size: 13px; letter-spacing: .01em;
  color: #E6E9EB; border-bottom: 3px solid transparent; transition: color var(--t), border-color var(--t), background var(--t); white-space: nowrap;
}
.nav__item:hover .nav__link, .nav__link:hover { color: #fff; background: rgba(255,255,255,.05); }
.nav__link.is-active { color: #fff; border-bottom-color: var(--mps-red); }
.nav__deals { color: var(--amber-400); font-family: var(--font-display); text-transform: uppercase; font-weight: 700; font-size: 13.5px; letter-spacing: .03em; padding: 0 var(--s-3); }
.nav__deals:hover { color: var(--amber-500); }

.mega {
  position: absolute; left: 0; right: 0; top: 100%; background: #fff; box-shadow: var(--sh-3);
  border-top: 3px solid var(--mps-red); opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity var(--t), transform var(--t), visibility var(--t); pointer-events: none; z-index: 70;
}
.nav__item.is-open .mega { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.mega__inner { display: grid; grid-template-columns: 1.2fr 2fr; gap: var(--s-7); padding: var(--s-6) var(--s-4); }
.mega__title { font-size: 16px; margin-bottom: var(--s-3); color: var(--ink-900); }
.mega__links { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: var(--s-5); }
.mega__link { display: block; padding: 8px 10px; border-left: 3px solid transparent; color: var(--steel-600); font-size: 14px; border-radius: 0 var(--r-sm) var(--r-sm) 0; transition: background var(--t), color var(--t), border-color var(--t); break-inside: avoid; }
.mega__link:hover { background: var(--surface-100); color: var(--ink-900); border-left-color: var(--mps-red); }
.mega__all { color: var(--mps-red); font-weight: 600; }
.mega__rail { display: grid; gap: var(--s-4); align-content: start; border-left: 1px solid var(--line); padding-left: var(--s-6); }
.mega__railgrp h4 { font-family: var(--font-display); text-transform: uppercase; font-size: 12px; letter-spacing: .06em; color: var(--steel-500); margin-bottom: var(--s-3); }

/* ------------------------------------------------------------------- fitbar */
.fitbar { background: var(--surface-100); border-bottom: 1px solid var(--line); }
.fitbar__inner { display: flex; align-items: center; gap: var(--s-3); height: 46px; flex-wrap: wrap; }
.fitbar__label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--steel-600); font-weight: 600; }
.fleet-chip { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill); padding: 5px 8px 5px 14px; font-size: 13.5px; }
.fleet-chip strong { color: var(--ink-900); }
.fleet-chip__x { background: var(--surface-100); border: 0; border-radius: var(--r-pill); width: 22px; height: 22px; color: var(--steel-600); font-size: 16px; line-height: 1; cursor: pointer; }
.fleet-chip__x:hover { background: var(--mps-red); color: #fff; }
.fitbar__change { color: var(--mps-red); font-weight: 600; font-size: 13px; }

/* -------------------------------------------------------------- mobile drawer */
.drawer-scrim { position: fixed; inset: 0; background: rgba(14,17,19,.5); z-index: 90; }
.navdrawer { position: fixed; top: 0; left: 0; bottom: 0; width: min(340px, 86vw); background: #fff; z-index: 95; transform: translateX(-100%); transition: transform var(--t); display: flex; flex-direction: column; overflow-y: auto; }
.navdrawer[hidden] { display: none; } /* keep the closed off-canvas drawer out of the layout entirely */
.navdrawer.is-open { transform: none; }
.navdrawer__head { display: flex; align-items: center; justify-content: space-between; padding: var(--s-4); border-bottom: 1px solid var(--line); font-family: var(--font-display); text-transform: uppercase; font-weight: 700; }
.navdrawer__close { background: none; border: 0; color: var(--ink-900); }
.drawer__list { list-style: none; margin: 0; padding: var(--s-2) 0; flex: 1; }
.drawer__grp-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; background: none; border: 0; padding: 14px var(--s-4); font-family: var(--font-display); text-transform: uppercase; font-weight: 600; font-size: 14px; color: var(--ink-900); border-bottom: 1px solid var(--surface-100); }
.drawer__grp-btn svg { transition: transform var(--t); }
.drawer__group.is-open .drawer__grp-btn svg { transform: rotate(180deg); }
.drawer__sub { list-style: none; margin: 0; padding: 0; max-height: 0; overflow: hidden; transition: max-height var(--t); background: var(--surface-50); }
.drawer__group.is-open .drawer__sub { max-height: 420px; }
.drawer__sub a { display: block; padding: 11px var(--s-5); font-size: 14px; color: var(--steel-600); border-bottom: 1px solid var(--surface-100); }
.drawer__sub a:hover { color: var(--mps-red); }
.navdrawer__foot { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
.navdrawer__foot a { background: #fff; padding: 14px var(--s-4); font-size: 13px; font-weight: 600; }

/* --------------------------------------------------------------------- hero */
.hero { position: relative; background: var(--ink-900); color: #fff; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(90deg, rgba(14,17,19,.94) 0%, rgba(14,17,19,.78) 45%, rgba(14,17,19,.45) 100%), url("https://images.unsplash.com/photo-1601584115197-04ecc0da31d7?auto=format&fit=crop&w=1600&q=70");
  background-size: cover; background-position: center; opacity: 1;
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--s-7); align-items: center; padding: var(--s-8) var(--s-4); min-height: 440px; }
.hero__copy { max-width: 560px; }
.hero__eyebrow { color: var(--mps-red); }
.hero h1 { font-size: 52px; line-height: 1.02; margin: var(--s-3) 0; color: #fff; }
.hero__sub { font-size: 18px; color: #D7DBDE; max-width: 460px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-6); margin-top: var(--s-5); }
.hero__stat strong { display: block; font-family: var(--font-display); font-size: 26px; color: #fff; }
.hero__stat span { font-size: 13px; color: var(--steel-400); }

/* --------------------------------------------------------------- fitment card */
.fitment-card { background: #fff; color: var(--ink-900); border-radius: var(--r-lg); box-shadow: var(--sh-3); padding: var(--s-5); }
.fitment-card h2 { font-size: 20px; }
.fitment-card__sub { font-size: 13.5px; color: var(--steel-500); margin: 4px 0 var(--s-4); }
.fitment-tabs { display: flex; gap: 4px; background: var(--surface-100); padding: 4px; border-radius: var(--r-md); margin-bottom: var(--s-4); }
.fitment-tab { flex: 1; border: 0; background: transparent; height: 36px; border-radius: var(--r-sm); font-weight: 600; font-size: 13px; color: var(--steel-600); cursor: pointer; }
.fitment-tab.is-active { background: #fff; color: var(--ink-900); box-shadow: var(--sh-1); }
.fitment-panel { display: none; }
.fitment-panel.is-active { display: block; }
.fitment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.fitment-grid .full { grid-column: 1 / -1; }
.fitment-field label { display: block; font-size: 12px; font-weight: 600; color: var(--steel-500); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .04em; }
.fitment-field select, .fitment-field input { width: 100%; height: 44px; border: 1px solid var(--line); border-radius: var(--r-md); padding: 0 var(--s-3); background: #fff; color: var(--ink-900); }
.fitment-field select:disabled { background: var(--surface-50); color: var(--steel-400); }
.fitment-card .btn { margin-top: var(--s-4); }
.fitment-note { font-size: 12.5px; color: var(--steel-500); margin-top: var(--s-3); }

/* --------------------------------------------------------------- trust strip */
.trust { background: var(--ink-900); color: #fff; }
.trust__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--ink-700); }
.trust__item { background: var(--ink-900); display: flex; align-items: center; gap: var(--s-3); padding: var(--s-4) var(--s-4); }
.trust__ic { color: var(--mps-red); flex: 0 0 auto; }
.trust__item strong { display: block; font-size: 14px; }
.trust__item span { font-size: 12.5px; color: var(--steel-400); }

/* ------------------------------------------------------------- category tiles */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s-4); }
.cat-tile { display: flex; flex-direction: column; align-items: center; gap: var(--s-2); padding: var(--s-5) var(--s-3); background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--sh-1); transition: box-shadow var(--t), border-color var(--t), transform var(--t); text-align: center; }
.cat-tile:hover { box-shadow: var(--sh-2); border-color: var(--mps-red); transform: translateY(-2px); }
.cat-tile__ic { width: 44px; height: 44px; color: var(--steel-600); transition: color var(--t); }
.cat-tile:hover .cat-tile__ic { color: var(--mps-red); }
.cat-tile__name { font-family: var(--font-display); text-transform: uppercase; font-size: 13.5px; font-weight: 600; color: var(--ink-900); line-height: 1.15; }
.cat-tile:hover .cat-tile__name { color: var(--mps-red); }
.cat-tile__count { font-size: 12px; color: var(--steel-500); }

/* ---------------------------------------------------------------- make wall */
.make-wall { display: grid; grid-template-columns: repeat(7, 1fr); gap: var(--s-3); }
.make-chip { display: flex; align-items: center; justify-content: center; height: 64px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); font-family: var(--font-display); text-transform: uppercase; font-weight: 700; font-size: 14px; color: var(--ink-800); transition: border-color var(--t), color var(--t), box-shadow var(--t); text-align: center; padding: 0 8px; }
.make-chip:hover { border-color: var(--mps-red); color: var(--mps-red); box-shadow: var(--sh-1); }
.brand-wall { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.brand-pill { padding: 8px var(--s-4); background: var(--surface-100); border-radius: var(--r-pill); font-weight: 600; font-size: 14px; color: var(--steel-600); }
.brand-pill:hover { background: var(--ink-800); color: #fff; }

/* value band */
.value-band { background: var(--surface-100); }
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); }
.value-item h3 { font-size: 18px; color: var(--ink-900); margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.value-item h3 svg { color: var(--mps-red); }
.value-item p { font-size: 14px; color: var(--steel-600); }

/* promo */
.promo { background: var(--ink-800); color: #fff; border-radius: var(--r-lg); padding: var(--s-6); display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); flex-wrap: wrap; }
.promo h2 { color: #fff; font-size: 26px; }
.promo p { color: var(--steel-400); margin-top: 6px; }

/* ------------------------------------------------------------- product card */
.product-grid { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--sh-1); overflow: hidden; transition: box-shadow var(--t), border-color var(--t), transform var(--t); }
.card:hover { box-shadow: var(--sh-2); border-color: var(--mps-red); transform: translateY(-2px); }
.card__media { position: relative; display: block; aspect-ratio: 1 / 1; background: #fff; padding: var(--s-4); }
.card__badges { position: absolute; top: var(--s-3); left: var(--s-3); display: flex; flex-direction: column; gap: 4px; z-index: 2; }
.badge { font-family: var(--font-display); text-transform: uppercase; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; padding: 3px 7px; border-radius: var(--r-sm); }
.badge--sale { background: var(--amber-500); color: var(--ink-900); }
.badge--stock { background: var(--success-tint); color: var(--success-600); }
.badge--back { background: var(--warning-tint); color: var(--warning-600); }
.card__img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.card__body { display: flex; flex-direction: column; gap: 6px; padding: var(--s-4); border-top: 1px solid var(--surface-100); flex: 1; }
.card__brand { font-family: var(--font-display); text-transform: uppercase; font-size: 11px; letter-spacing: .05em; color: var(--steel-500); }
.card__name { font-size: 14.5px; font-weight: 600; color: var(--ink-900); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.card__name:hover { color: var(--mps-red); }
.card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.card__partno { font-size: 12px; color: var(--steel-500); }
.card__fit { font-size: 12.5px; font-weight: 600; }
.card__fit.is-fit { color: var(--success-600); }
.card__fit.is-maybe { color: var(--warning-600); }
.card__fit.is-known { color: var(--steel-600); }
.card__fit.is-check { color: var(--steel-400); }
.card__spacer { flex: 1; }
.card__price-row { display: flex; align-items: baseline; gap: var(--s-2); }
.card__price { font-size: 20px; font-weight: 700; color: var(--ink-900); }
.card__was { font-size: 14px; color: var(--steel-400); text-decoration: line-through; }
.card__add { width: 100%; margin-top: 4px; }
.card__add-ic { display: inline-flex; }
.card__add svg { width: 18px; height: 18px; }

/* ---------------------------------------------------------------- breadcrumb */
.breadcrumb { font-size: 13px; color: var(--steel-500); padding: var(--s-4) 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumb a:hover { color: var(--mps-red); }
.breadcrumb .sep { color: var(--steel-400); }
.breadcrumb [aria-current] { color: var(--ink-900); font-weight: 600; }

/* ----------------------------------------------------------------- PLP layout */
.plp { display: grid; grid-template-columns: 264px 1fr; gap: var(--s-6); padding-bottom: var(--s-8); align-items: start; }
.plp__head { margin-bottom: var(--s-4); }
.plp__head h1 { font-size: 30px; }
.plp__count { color: var(--steel-500); font-size: 14px; margin-top: 4px; }
.plp__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-4); flex-wrap: wrap; }
.plp__active { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
.sort { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--steel-600); }
.sort select { height: 40px; border: 1px solid var(--line); border-radius: var(--r-md); padding: 0 var(--s-3); background: #fff; font-size: 14px; }
.clear-all { color: var(--mps-red); font-weight: 600; font-size: 13px; background: none; border: 0; cursor: pointer; }
.clear-all:hover { text-decoration: underline; }

/* filter rail */
.filters { position: sticky; top: 92px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.filters__head { display: none; }
.facet { border-bottom: 1px solid var(--surface-100); }
.facet:last-child { border-bottom: 0; }
.facet__btn { width: 100%; display: flex; align-items: center; justify-content: space-between; background: none; border: 0; padding: 14px var(--s-4); font-family: var(--font-display); text-transform: uppercase; font-weight: 600; font-size: 13px; letter-spacing: .03em; color: var(--ink-900); }
.facet__btn svg { transition: transform var(--t); color: var(--steel-500); }
.facet.is-collapsed .facet__btn svg { transform: rotate(-90deg); }
.facet__body { padding: 0 var(--s-4) var(--s-4); display: grid; gap: 8px; }
.facet.is-collapsed .facet__body { display: none; }
.facet__row { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; color: var(--steel-600); }
.facet__row input { width: 16px; height: 16px; accent-color: var(--mps-red); }
.facet__row .cnt { margin-left: auto; color: var(--steel-400); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.facet__row.is-zero { opacity: .4; }
.facet__price { display: flex; align-items: center; gap: 8px; }
.facet__price input { width: 100%; height: 38px; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0 8px; font-size: 14px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px var(--s-4); font-size: 14px; font-weight: 600; color: var(--ink-900); border-bottom: 1px solid var(--surface-100); }
.switch { position: relative; width: 40px; height: 22px; flex: 0 0 auto; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track { position: absolute; inset: 0; background: var(--surface-200); border-radius: var(--r-pill); transition: background var(--t); }
.switch .track::before { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; background: #fff; border-radius: 50%; transition: transform var(--t); box-shadow: var(--sh-1); }
.switch input:checked + .track { background: var(--mps-red); }
.switch input:checked + .track::before { transform: translateX(18px); }

/* PLP toolbar mobile button */
.plp__mobilebar { display: none; gap: var(--s-3); margin-bottom: var(--s-4); }
.plp__filterbtn { flex: 1; }

.fitbanner { background: var(--success-tint); border: 1px solid var(--success-600); color: var(--success-600); border-radius: var(--r-md); padding: 12px var(--s-4); font-size: 14px; font-weight: 600; margin-bottom: var(--s-4); display: flex; align-items: center; gap: 8px; }
.empty-state { text-align: center; padding: var(--s-8) var(--s-4); color: var(--steel-500); }
.empty-state h3 { color: var(--ink-900); font-size: 22px; margin-bottom: 8px; }
mark { background: var(--amber-tint); color: inherit; padding: 0 2px; border-radius: 2px; }

/* --------------------------------------------------------------------- PDP */
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--s-7); padding-bottom: var(--s-7); align-items: start; }
.gallery__main { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-6); aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; }
.gallery__main img { max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.gallery__thumbs { display: flex; gap: var(--s-2); margin-top: var(--s-3); }
.gallery__thumb { width: 72px; height: 72px; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 6px; background: #fff; }
.gallery__thumb.is-active { border-color: var(--mps-red); }
.identity__brand { font-family: var(--font-display); text-transform: uppercase; color: var(--steel-500); font-size: 13px; letter-spacing: .05em; }
.identity h1 { font-size: 30px; margin: 6px 0 var(--s-3); line-height: 1.1; }
.identity__ids { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; margin-bottom: var(--s-4); }
.identity__partno { font-size: 15px; font-weight: 700; color: var(--ink-900); font-variant-numeric: tabular-nums; }
.identity__sku { font-size: 13px; color: var(--steel-500); }
.fitment-block { background: var(--surface-50); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-4); margin-bottom: var(--s-4); }
.fitment-block.is-fit { background: var(--success-tint); border-color: var(--success-600); }
.fitment-block__row { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.exact-fit { display: inline-flex; align-items: center; gap: 4px; background: var(--success-600); color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 3px 8px; border-radius: var(--r-sm); }
.buybox { border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-5); background: #fff; }
.buybox__price { display: flex; align-items: baseline; gap: var(--s-3); }
.buybox__price .now { font-size: 32px; font-weight: 700; }
.buybox__price .ea { font-size: 14px; color: var(--steel-500); }
.buybox__price .was { font-size: 18px; color: var(--steel-400); text-decoration: line-through; }
.availability { display: flex; align-items: center; gap: 8px; margin: var(--s-3) 0; font-size: 14px; font-weight: 600; color: var(--success-600); }
.availability.is-back { color: var(--warning-600); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.buybox__row { display: flex; gap: var(--s-3); align-items: stretch; margin: var(--s-4) 0; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.qty button { width: 44px; height: 44px; background: var(--surface-50); border: 0; font-size: 20px; color: var(--ink-900); }
.qty button:hover { background: var(--surface-100); }
.qty input { width: 52px; height: 44px; text-align: center; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); font-size: 16px; font-variant-numeric: tabular-nums; }
.buybox__row .btn { flex: 1; }
.buybox__secondary { display: flex; gap: var(--s-3); }
.buybox__secondary .btn { flex: 1; }
.buybox__trust { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--surface-100); font-size: 12.5px; color: var(--steel-600); }
.buybox__trust div { display: flex; align-items: center; gap: 6px; }
.buybox__trust svg { color: var(--mps-red); flex: 0 0 auto; }
.buybox__help { margin-top: var(--s-3); font-size: 13px; }
.buybox__help a { color: var(--mps-red); font-weight: 600; }

.tabs { margin-top: var(--s-7); }
.tabs__nav { display: flex; gap: var(--s-2); border-bottom: 2px solid var(--surface-100); flex-wrap: wrap; }
.tab { background: none; border: 0; padding: 12px var(--s-4); font-family: var(--font-display); text-transform: uppercase; font-weight: 600; font-size: 14px; color: var(--steel-500); border-bottom: 3px solid transparent; margin-bottom: -2px; cursor: pointer; }
.tab.is-active { color: var(--ink-900); border-bottom-color: var(--mps-red); }
.tabpanel { display: none; padding: var(--s-5) 0; font-size: 15px; color: var(--steel-600); line-height: 1.7; max-width: 760px; }
.tabpanel.is-active { display: block; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { text-align: left; padding: 10px var(--s-3); border-bottom: 1px solid var(--surface-100); font-size: 14px; }
.spec-table th { width: 220px; color: var(--steel-500); font-weight: 600; }
.spec-note { background: var(--surface-50); border: 1px dashed var(--line); border-radius: var(--r-md); padding: var(--s-4); color: var(--steel-500); font-size: 13.5px; }

/* -------------------------------------------------------------------- cart */
.cart { display: grid; grid-template-columns: 1fr 360px; gap: var(--s-6); padding-bottom: var(--s-8); align-items: start; }
.cart-lines { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); }
.cart-line { display: grid; grid-template-columns: 96px 1fr auto; gap: var(--s-4); padding: var(--s-4); border-bottom: 1px solid var(--surface-100); align-items: center; }
.cart-line:last-child { border-bottom: 0; }
.cart-line__img { width: 96px; height: 96px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; padding: 8px; object-fit: contain; mix-blend-mode: multiply; }
.cart-line__name { font-weight: 600; color: var(--ink-900); font-size: 15px; }
.cart-line__meta { font-size: 12.5px; color: var(--steel-500); margin-top: 2px; display: flex; gap: 8px; flex-wrap: wrap; }
.cart-line__bottom { display: flex; align-items: center; gap: var(--s-4); margin-top: var(--s-3); }
.cart-line__remove { background: none; border: 0; color: var(--steel-500); font-size: 13px; cursor: pointer; }
.cart-line__remove:hover { color: var(--error-600); }
.cart-line__price { text-align: right; font-weight: 700; font-size: 16px; }
.cart-empty { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-8) var(--s-4); text-align: center; }
.summary { position: sticky; top: 92px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-5); }
.summary h2 { font-size: 20px; margin-bottom: var(--s-4); }
.summary__row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; color: var(--steel-600); }
.summary__row.total { border-top: 1px solid var(--line); margin-top: var(--s-2); padding-top: var(--s-4); font-size: 20px; font-weight: 700; color: var(--ink-900); }
.freeship { background: var(--surface-50); border-radius: var(--r-md); padding: var(--s-3); margin: var(--s-3) 0; font-size: 12.5px; color: var(--steel-600); }
.freeship__bar { height: 6px; background: var(--surface-200); border-radius: var(--r-pill); margin-top: 6px; overflow: hidden; }
.freeship__bar > span { display: block; height: 100%; background: var(--success-600); transition: width var(--t); }
.promo-code { display: flex; gap: 8px; margin: var(--s-4) 0; }
.promo-code input { flex: 1; height: 42px; border: 1px solid var(--line); border-radius: var(--r-md); padding: 0 var(--s-3); }
.cart-bottombar { display: none; }

/* -------------------------------------------------------------- secondary pages */
.page-hero { background: var(--ink-900); color: #fff; padding: var(--s-7) 0; }
.page-hero h1 { font-size: 38px; color: #fff; }
.page-hero p { color: var(--steel-400); margin-top: 8px; max-width: 640px; }
.prose { max-width: 760px; font-size: 16px; line-height: 1.75; color: var(--steel-600); }
.prose h2 { color: var(--ink-900); font-size: 24px; margin: var(--s-6) 0 var(--s-3); }
.prose p { margin: 0 0 var(--s-4); }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.infocard { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-5); }
.infocard h3 { font-size: 18px; color: var(--ink-900); margin-bottom: 8px; }
.infocard p { font-size: 14px; color: var(--steel-600); }
.form-grid { display: grid; gap: var(--s-4); max-width: 620px; }
.form-grid.two { grid-template-columns: 1fr 1fr; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--ink-900); }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px var(--s-3); font-size: 15px; background: #fff; }
.field textarea { min-height: 130px; resize: vertical; }
.qo-grid { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.qo-grid th { background: var(--surface-100); text-align: left; padding: 12px var(--s-3); font-size: 13px; }
.qo-grid td { padding: 10px var(--s-3); border-top: 1px solid var(--surface-100); }
.qo-grid input { width: 100%; height: 42px; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0 10px; }
.tabs-mock { display: flex; gap: var(--s-2); border-bottom: 2px solid var(--surface-100); margin-bottom: var(--s-5); flex-wrap: wrap; }
.branch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.branch { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-4); }
.branch h3 { font-size: 16px; color: var(--ink-900); }
.branch p { font-size: 13.5px; color: var(--steel-600); margin-top: 4px; }
.map-img { width: 100%; border-radius: var(--r-md); border: 1px solid var(--line); }

/* ------------------------------------------------------------------- footer */
.footer__top { background: var(--ink-900); color: #fff; border-top: 3px solid var(--mps-red); padding: var(--s-7) 0 var(--s-6); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.4fr; gap: var(--s-5); }
.footer__brand .logo__svg { height: 34px; width: auto; margin-bottom: var(--s-3); }
.footer__brand p { color: var(--steel-400); font-size: 13.5px; max-width: 260px; }
.footer__phone { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 700; font-size: 16px; margin-top: var(--s-3); }
.footer__phone:hover { color: var(--mps-red); }
.footer__hours { font-size: 12.5px; color: var(--steel-500); margin-top: 6px; }
.footer__col h4 { font-family: var(--font-display); text-transform: uppercase; font-size: 13px; letter-spacing: .05em; margin-bottom: var(--s-3); color: #fff; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__col a { color: var(--steel-400); font-size: 13.5px; }
.footer__col a:hover { color: #fff; }
.footer__news p { color: var(--steel-400); font-size: 13px; margin-bottom: var(--s-3); }
.newsletter { display: flex; gap: 8px; }
.newsletter input { flex: 1; min-width: 0; height: 44px; border: 0; border-radius: var(--r-md); padding: 0 var(--s-3); font-size: 14px; }
.footer__pay { margin-top: var(--s-3); font-size: 12px; color: var(--steel-500); letter-spacing: .03em; }
.footer__bottom { background: var(--ink-800); color: var(--steel-400); }
.footer__bottom-in { display: flex; align-items: center; justify-content: space-between; padding: var(--s-3) 0; font-size: 12.5px; flex-wrap: wrap; gap: 8px; }
.footer__legal { display: flex; gap: var(--s-4); }
.footer__legal a:hover { color: #fff; }
.footer__pvm { background: none; border: 0; color: var(--steel-400); font-family: inherit; font-size: 12.5px; cursor: pointer; padding: 0; }
.footer__pvm strong { color: #fff; letter-spacing: .04em; font-weight: 700; }
.footer__pvm:hover strong { color: var(--mps-red); }
.footer__legalbar { background: #0A0C0D; color: var(--steel-500); }
.footer__legalbar-in { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: 8px 0; font-size: 11px; flex-wrap: wrap; }
.footer__build { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .02em; white-space: nowrap; }

/* credits easter egg overlay */
.pvm-scrim { position: fixed; inset: 0; background: rgba(8,10,11,.86); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); z-index: 300; display: flex; align-items: center; justify-content: center; padding: var(--s-4); animation: pvmfade .25s ease; }
@keyframes pvmfade { from { opacity: 0; } to { opacity: 1; } }
.pvm-modal { background: linear-gradient(180deg, #14181B, #0E1113); border: 1px solid #23292E; border-radius: var(--r-lg); max-width: 780px; width: 100%; max-height: 86vh; display: flex; flex-direction: column; box-shadow: 0 24px 80px rgba(0,0,0,.6); overflow: hidden; animation: pvmpop .3s cubic-bezier(.2,.7,.2,1); }
@keyframes pvmpop { from { transform: translateY(14px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.pvm-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: 20px 28px; border-bottom: 1px solid #23292E; }
.pvm-tag { color: var(--mps-red); font-size: 11px; letter-spacing: .2em; font-weight: 700; }
.pvm-head h2 { color: #fff; font-family: var(--font-display); text-transform: uppercase; font-size: 22px; letter-spacing: .03em; margin-top: 2px; }
.pvm-close { background: #171B1F; border: 0; color: #fff; width: 36px; height: 36px; border-radius: var(--r-md); font-size: 20px; line-height: 1; cursor: pointer; }
.pvm-close:hover { background: var(--mps-red); }
.pvm-body { padding: 24px 28px; overflow: auto; }
.pvm-intro { color: var(--steel-400); font-size: 13.5px; margin: 0 0 var(--s-5); }
.pvm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 32px; }
.pvm-dept h3 { font-family: var(--font-display); text-transform: uppercase; font-size: 12px; letter-spacing: .08em; color: var(--mps-red); margin-bottom: 8px; }
.pvm-dept ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.pvm-dept li { color: #C9CFD3; font-size: 13px; }
.pvm-dept li span { color: var(--steel-500); }
.pvm-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: 16px 28px; border-top: 1px solid #23292E; color: var(--steel-500); font-size: 12px; flex-wrap: wrap; }
.pvm-foot a { color: var(--mps-red); font-weight: 600; }
@media (max-width: 560px) { .pvm-grid { grid-template-columns: 1fr; } .pvm-head, .pvm-body, .pvm-foot { padding-left: 20px; padding-right: 20px; } }

/* -------------------------------------------------------------------- toast */
.toasts { position: fixed; right: var(--s-4); bottom: var(--s-4); z-index: 200; display: flex; flex-direction: column; gap: 8px; max-width: 360px; }
.toast { display: flex; align-items: center; gap: 10px; background: var(--ink-900); color: #fff; border-radius: var(--r-md); padding: 12px var(--s-4); box-shadow: var(--sh-3); transform: translateY(12px); opacity: 0; transition: transform var(--t), opacity var(--t); border-left: 3px solid var(--success-600); }
.toast.is-in { transform: none; opacity: 1; }
.toast__check { color: var(--success-600); font-weight: 700; }
.toast__msg { font-size: 14px; flex: 1; }
.toast__action { color: #fff; font-weight: 700; font-size: 13px; text-decoration: underline; white-space: nowrap; }

/* -------------------------------------------------------------------- modal */
.modal-scrim { position: fixed; inset: 0; background: rgba(14,17,19,.55); z-index: 150; display: flex; align-items: center; justify-content: center; padding: var(--s-4); }
.modal { background: #fff; border-radius: var(--r-lg); max-width: 440px; width: 100%; padding: var(--s-6); text-align: center; box-shadow: var(--sh-3); }
.modal__check { width: 64px; height: 64px; border-radius: 50%; background: var(--success-tint); color: var(--success-600); display: flex; align-items: center; justify-content: center; margin: 0 auto var(--s-4); font-size: 32px; }
.modal h2 { font-size: 24px; margin-bottom: var(--s-3); }
.modal p { color: var(--steel-600); font-size: 14.5px; margin-bottom: var(--s-2); }
.modal__order { font-weight: 700; color: var(--ink-900); font-variant-numeric: tabular-nums; }
.modal .btn { margin-top: var(--s-4); }

/* ============================================================== responsive */
@media (max-width: 1200px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.4fr; }
  .footer__col:nth-child(4) { display: none; }
}
@media (max-width: 1024px) {
  .nav { display: none; }
  /* burger mode: burger left · logo centered · actions right · search full-width below */
  .header__inner {
    display: grid; align-items: center; height: auto;
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas: "burger logo actions" "search search search";
    column-gap: var(--s-3); row-gap: 10px;
    padding-top: 10px; padding-bottom: 10px;
  }
  .header__burger { display: inline-flex; grid-area: burger; justify-self: start; }
  .logo { grid-area: logo; justify-self: center; }
  .header__actions { grid-area: actions; justify-self: end; margin-left: 0; }
  .search { grid-area: search; max-width: none; }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .make-wall { grid-template-columns: repeat(4, 1fr); }
  .hero__inner { grid-template-columns: 1fr; gap: var(--s-6); }
  .hero { padding-bottom: var(--s-6); }
  .pdp { grid-template-columns: 1fr; }
  .cart { grid-template-columns: 1fr; }
  .plp { grid-template-columns: 1fr; }
  .filters { position: fixed; top: 0; left: 0; bottom: 0; width: min(360px, 88vw); z-index: 95; border-radius: 0; transform: translateX(-100%); transition: transform var(--t); overflow-y: auto; box-shadow: var(--sh-3); }
  .filters.is-open { transform: none; }
  .filters__head { display: flex; align-items: center; justify-content: space-between; padding: var(--s-4); border-bottom: 1px solid var(--line); font-family: var(--font-display); text-transform: uppercase; font-weight: 700; }
  .plp__mobilebar { display: flex; }
  .summary { position: static; }
}
@media (max-width: 768px) {
  .utilbar__experts, .utilbar__right { display: none; }
  .utilbar__inner { justify-content: flex-start; }
  .utilbar__phone { white-space: nowrap; }
  .header__inner { column-gap: var(--s-2); }
  .logo .logo__svg { height: 34px; }
  .header__actions { gap: 2px; }
  .header__action { padding: 8px; }
  .header__action:not(.header__cart) { display: none; } /* account moves into the menu on phones */
  .header__action-tx { display: none; }
  .trust__inner { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-3, .branch-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .make-wall { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { font-size: 34px; }
  .fitment-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__news { grid-column: 1 / -1; }
  .newsletter { max-width: 340px; }
  .footer__bottom-in { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer__legalbar-in { flex-direction: column; align-items: flex-start; gap: 4px; }
  .footer__pvm { text-align: left; }
  .form-grid.two { grid-template-columns: 1fr; }
  .buybox__trust { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 72px 1fr; }
  .cart-line__price { grid-column: 2; text-align: left; }
  .cart-line__img { width: 72px; height: 72px; }
  .cart-bottombar { display: flex; position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding: var(--s-3) var(--s-4); align-items: center; justify-content: space-between; gap: var(--s-3); z-index: 40; box-shadow: 0 -2px 8px rgba(14,17,19,.08); }
  .cart-bottombar .btn { flex: 1; }
}
@media (max-width: 480px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .make-wall { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-3); }
  .hero h1 { font-size: 30px; }
  .section { padding: var(--s-6) 0; }
}
