/* ============================================================
   AUTOMATIC PLATFORM — Supplemental Styles
   Bridge classes used by JS templates that extend or override
   the base layout/component CSS written earlier.
   ============================================================ */

/* ── Main Header Inner ───────────────────────────────────── */
.main-header {
  background: var(--ap-black);
  padding: var(--sp-3) 0;
}

.main-header__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

/* ── Logo ────────────────────────────────────────────────── */
.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  padding: 4px 0;
}

.site-logo__img {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
  /* Converts black→white, preserves gold, white background becomes invisible on dark header */
  filter: invert(1) hue-rotate(180deg);
  mix-blend-mode: screen;
}

/* ── Search Trigger ──────────────────────────────────────── */
.header-search-trigger {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex: 1;
  max-width: 560px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
  padding: var(--sp-2) var(--sp-4);
  cursor: pointer;
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease);
  text-align: left;
}

.header-search-trigger:hover {
  background: rgba(255,255,255,0.11);
  border-color: rgba(255,255,255,0.2);
}

.header-search-trigger__icon {
  width: 16px;
  height: 16px;
  color: var(--n-400);
  flex-shrink: 0;
}

.header-search-trigger__text {
  flex: 1;
  font-size: var(--text-sm);
  color: var(--n-500);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-search-trigger__kbd {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  padding: 2px var(--sp-2);
  font-size: var(--text-2xs);
  color: var(--n-500);
  font-family: var(--font-mono);
}

@media (max-width: 767px) {
  .header-search-trigger__text,
  .header-search-trigger__kbd { display: none; }
}

/* ── Header Actions ──────────────────────────────────────── */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  margin-left: auto;
}

.header-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: var(--sp-2) var(--sp-3);
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  border-radius: var(--radius);
  transition: color var(--t) var(--ease), background var(--t) var(--ease);
  font-size: var(--text-2xs);
  font-weight: var(--weight-medium);
  cursor: pointer;
  background: none;
  border: none;
  position: relative;
}

.header-action-btn svg { width: 20px; height: 20px; }
.header-action-btn:hover { color: #ffffff; background: rgba(255,255,255,0.07); }

.wishlist-btn__count {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--radius-full);
  background: var(--ap-orange);
  color: #ffffff;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: var(--weight-bold);
  line-height: 1;
}

@media (max-width: 639px) {
  .header-action-btn span { display: none; }
}

.cart-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: var(--sp-2) var(--sp-3);
  background: var(--ap-orange);
  color: #ffffff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: var(--text-2xs);
  font-weight: var(--weight-semibold);
  transition: background var(--t) var(--ease);
  position: relative;
}

.cart-btn svg { width: 20px; height: 20px; }
.cart-btn:hover { background: var(--ap-orange-dark, #C88000); }

.cart-btn__count {
  position: absolute;
  top: 4px;
  right: 4px;
  background: #ffffff;
  color: var(--ap-orange);
  font-size: 10px;
  font-weight: var(--weight-black);
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  color: #ffffff;
  cursor: pointer;
}

.mobile-menu-btn svg { width: 20px; height: 20px; }
.mobile-menu-btn:hover { background: rgba(255,255,255,0.12); }

@media (max-width: 1023px) { .mobile-menu-btn { display: flex; } }

/* ── Nav Bar ─────────────────────────────────────────────── */
.nav-bar {
  background: rgba(10,10,10,0.98);
  border-top: 1px solid rgba(255,255,255,0.06);
  position: relative;
}

.nav-bar__inner {
  display: flex;
  align-items: center;
  gap: 0;
  height: 44px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-bar__inner::-webkit-scrollbar { display: none; }

.nav-all-categories {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0 var(--sp-4);
  height: 100%;
  color: #ffffff;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  white-space: nowrap;
  background: rgba(240,165,0,0.15);
  transition: background var(--t) var(--ease);
  border: none;
  flex-shrink: 0;
}

.nav-all-categories svg { width: 16px; height: 16px; }
.nav-all-categories__arrow { margin-left: auto; }
.nav-all-categories:hover { background: rgba(240,165,0,0.25); }

.nav-divider {
  width: 1px;
  height: 24px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
  margin: 0 var(--sp-2);
}

.nav-links {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar { display: none; }

.nav-link {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 var(--sp-4);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--t) var(--ease), background var(--t) var(--ease);
  border-bottom: 2px solid transparent;
}

.nav-link:hover { color: #ffffff; background: rgba(255,255,255,0.04); }
.nav-link.active { color: var(--ap-orange); border-bottom-color: var(--ap-orange); }
.nav-link--deals { color: var(--ap-orange); font-weight: var(--weight-semibold); }
.nav-link--deals:hover { color: var(--ap-orange); }

/* ── Mega Menu ───────────────────────────────────────────── */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 2px solid var(--ap-orange);
  box-shadow: var(--shadow-dropdown);
  z-index: var(--z-sticky);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease), visibility var(--t-slow);
}

.mega-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-menu__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-8);
  padding: var(--sp-6) 0;
}

.mega-menu__col {}

.mega-menu__col-title {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--ap-black);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--sp-3);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--n-100);
}

.mega-menu__link {
  display: block;
  padding: var(--sp-2) 0;
  font-size: var(--text-sm);
  color: var(--n-700);
  text-decoration: none;
  transition: color var(--t) var(--ease), padding-left var(--t) var(--ease);
}

.mega-menu__link:hover {
  color: var(--ap-orange);
  padding-left: var(--sp-2);
}

/* ── Mobile Nav ──────────────────────────────────────────── */
.mobile-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: var(--z-overlay);
}

.mobile-nav-backdrop.open { display: block; }

.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(300px, 85vw);
  background: var(--ap-black);
  z-index: var(--z-drawer);
  transform: translateX(-100%);
  transition: transform var(--t-slow) var(--ease);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.mobile-nav.open { transform: translateX(0); }

.mobile-nav__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mobile-nav__title {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mobile-nav__close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  font-size: 18px;
  padding: var(--sp-1);
  transition: color var(--t) var(--ease);
}

.mobile-nav__close:hover { color: #ffffff; }

.mobile-nav__body {
  flex: 1;
  padding: var(--sp-4) 0;
  display: flex;
  flex-direction: column;
}

.mobile-nav-link {
  display: block;
  padding: var(--sp-3) var(--sp-5);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color var(--t) var(--ease), background var(--t) var(--ease);
  border-left: 2px solid transparent;
}

.mobile-nav-link:hover {
  color: #ffffff;
  background: rgba(255,255,255,0.04);
}

.mobile-nav-link--deals {
  color: var(--ap-orange);
  font-weight: var(--weight-semibold);
}

.mobile-nav-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin: var(--sp-3) var(--sp-5);
}

/* ── Cart Drawer ─────────────────────────────────────────── */
.cart-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: var(--z-overlay);
}

.cart-backdrop.open { display: block; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100vw);
  background: #ffffff;
  z-index: var(--z-drawer);
  transform: translateX(100%);
  transition: transform var(--t-slow) var(--ease);
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(0,0,0,0.12);
}

.cart-drawer.open { transform: translateX(0); }

.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--n-100);
  flex-shrink: 0;
}

.cart-drawer__title {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--ap-black);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.cart-drawer__title-count {
  font-size: var(--text-sm);
  font-weight: var(--weight-regular);
  color: var(--n-500);
}

.cart-drawer__close {
  background: none;
  border: none;
  color: var(--n-500);
  cursor: pointer;
  font-size: 18px;
  padding: var(--sp-1);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  transition: background var(--t) var(--ease), color var(--t) var(--ease);
}

.cart-drawer__close:hover { background: var(--n-100); color: var(--ap-black); }

.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: var(--sp-4) var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  padding: var(--sp-12) var(--sp-5);
  text-align: center;
  color: var(--n-400);
  height: 100%;
}

.cart-empty svg { opacity: 0.3; }
.cart-empty p { font-size: var(--text-sm); color: var(--n-500); }

/* Cart Item */
.cart-item {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--n-100);
}

.cart-item:last-child { border-bottom: none; }

.cart-item__img {
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--n-100);
}

.cart-item__body { flex: 1; min-width: 0; }

.cart-item__brand {
  font-size: var(--text-xs);
  color: var(--n-500);
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cart-item__name {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--ap-black);
  line-height: var(--leading-snug);
  margin-bottom: var(--sp-1);
}

.cart-item__name a {
  color: inherit;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-item__name a:hover { color: var(--ap-orange); }

.cart-item__price {
  font-size: var(--text-sm);
  color: var(--n-600);
  margin-bottom: var(--sp-2);
}

.cart-item__footer {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.cart-item__line-total {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--ap-black);
}

.cart-item__remove {
  background: none;
  border: none;
  color: var(--n-400);
  cursor: pointer;
  font-size: 14px;
  padding: var(--sp-1);
  border-radius: var(--radius-sm);
  transition: color var(--t) var(--ease), background var(--t) var(--ease);
  margin-left: auto;
}

.cart-item__remove:hover { color: var(--ap-error); background: rgba(220,38,38,0.08); }

/* Qty Selector compact variant */
.qty-selector--sm {
  height: 30px;
}

.qty-selector--sm .qty-selector__btn {
  width: 28px;
  height: 28px;
  font-size: 16px;
}

.qty-selector--sm .qty-selector__value {
  min-width: 28px;
  font-size: var(--text-sm);
}


/* ── Hero V2 — Static Split Hero ─────────────────────────── */
.hero { min-height: 0; }
.hero__slides-container { width: 100%; }
.hero__controls { display: none !important; }

.hero-v2 {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #ffffff;
}

.hero-v2__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-v2__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-v2__glow {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(ellipse, rgba(240,165,0,0.10) 0%, transparent 65%);
}

.hero-v2__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 7rem 0 6rem;
  width: 100%;
}

@media (max-width: 1023px) {
  .hero-v2__inner { grid-template-columns: 1fr; padding: 5rem 0 4rem; }
  .hero-v2__right { display: none; }
}

.hero-v2__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(240,165,0,0.10);
  border: 1px solid rgba(240,165,0,0.22);
  border-radius: 3px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ap-orange);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}

.hero-v2__headline {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}

.hero-v2__line1 {
  display: block;
  font-size: clamp(3.5rem, 7.5vw, 7.5rem);
  color: #111111;
}

.hero-v2__line2 {
  display: block;
  font-size: clamp(3.5rem, 7.5vw, 7.5rem);
  color: var(--ap-orange);
}

.hero-v2__desc {
  font-size: 1rem;
  color: rgba(0,0,0,0.5);
  line-height: 1.65;
  max-width: 460px;
  margin-bottom: 2.5rem;
}

.hero-v2__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 3rem;
}

.hero-v2__stats {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.hero-v2__stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hero-v2__stat strong {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 800;
  color: #111111;
  line-height: 1;
}

.hero-v2__stat span {
  font-size: 0.7rem;
  color: rgba(0,0,0,0.38);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-v2__stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(0,0,0,0.12);
}

/* Right column */
.hero-v2__right {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ── Hero Product Scene ───────────────────────────────────── */
.hero-product-scene {
  position: relative;
  width: 480px;
  height: 500px;
}

/* Glow orbs */
.hps__glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.hps__glow--gold {
  width: 380px;
  height: 380px;
  background: radial-gradient(ellipse, rgba(240,165,0,0.13) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hps__glow--white {
  width: 200px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(0,0,0,0.03) 0%, transparent 70%);
  top: 8%;
  right: 12%;
}

/* Oil Bottles */
.hps__bottle {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

.hps__bottle--main {
  left: 50%;
  top: 4%;
  transform: translateX(-65%);
}

.hps__bottle--secondary {
  right: 4%;
  top: 14%;
  transform: scale(0.68);
  transform-origin: top right;
  opacity: 0.88;
  z-index: 1;
}

.hps__bottle-body {
  width: 104px;
  height: 250px;
  border-radius: 14px 14px 8px 8px;
  background: linear-gradient(160deg, #1c1c1c 0%, #0d0d0d 60%, #141414 100%);
  border: 1px solid rgba(255,255,255,0.07);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow:
    0 24px 72px rgba(0,0,0,0.65),
    inset 2px 0 10px rgba(255,255,255,0.04),
    inset -1px 0 4px rgba(0,0,0,0.5);
}

.hps__bottle-cap {
  height: 30px;
  background: linear-gradient(160deg, #999 0%, #555 100%);
  border-radius: 8px 8px 3px 3px;
  margin: 6px 8px 0;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0,0,0,0.5);
}

.hps__bottle-cap--dark {
  background: linear-gradient(160deg, #444 0%, #222 100%);
}

.hps__bottle-label {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 6px 8px;
  gap: 3px;
  position: relative;
}

.hps__bottle-brand {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 30px;
  font-weight: 900;
  color: var(--ap-orange);
  letter-spacing: 3px;
  line-height: 1;
}

.hps__bottle-spec {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1px;
  line-height: 1;
}

.hps__bottle-name {
  font-size: 8px;
  font-weight: 600;
  color: rgba(255,255,255,0.35);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.3;
  margin-top: 2px;
}

.hps__bottle-stripe {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--ap-orange);
  opacity: 0.7;
}

.hps__bottle-stripe--alt {
  background: var(--ap-silver);
  opacity: 0.4;
}

.hps__bottle-base {
  height: 18px;
  background: linear-gradient(90deg, #2a2a2a 0%, #1a1a1a 50%, #2a2a2a 100%);
  flex-shrink: 0;
  border-radius: 0 0 8px 8px;
}

/* Brake disc */
.hps__disc {
  position: absolute;
  bottom: 3%;
  left: 3%;
  width: 188px;
  height: 188px;
  z-index: 1;
}

.hps__disc-ring {
  position: absolute;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hps__disc-ring--1 {
  width: 100%;
  height: 100%;
  border: 2px solid rgba(255,255,255,0.10);
  background: radial-gradient(circle, #1a1a1a 40%, #111 100%);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), inset 0 2px 8px rgba(255,255,255,0.04);
}

.hps__disc-ring--2 {
  width: 68%;
  height: 68%;
  border: 3px solid rgba(240,165,0,0.18);
}

.hps__disc-ring--3 {
  width: 38%;
  height: 38%;
  border: 1px solid rgba(255,255,255,0.06);
  background: radial-gradient(circle, #252525 0%, #111 100%);
}

.hps__disc-hub {
  position: absolute;
  width: 18%;
  height: 18%;
  border-radius: 50%;
  background: radial-gradient(circle, #555 0%, #222 100%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(255,255,255,0.12);
  z-index: 3;
}

.hps__disc-slots {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.hps__disc-slot {
  position: absolute;
  width: 5px;
  height: 36px;
  background: rgba(0,0,0,0.55);
  border-radius: 3px;
  top: 50%;
  left: 50%;
}

.hps__disc-slot:nth-child(1) { transform: translate(-50%,-50%) rotate(0deg) translateY(-52px); }
.hps__disc-slot:nth-child(2) { transform: translate(-50%,-50%) rotate(60deg) translateY(-52px); }
.hps__disc-slot:nth-child(3) { transform: translate(-50%,-50%) rotate(120deg) translateY(-52px); }
.hps__disc-slot:nth-child(4) { transform: translate(-50%,-50%) rotate(180deg) translateY(-52px); }
.hps__disc-slot:nth-child(5) { transform: translate(-50%,-50%) rotate(240deg) translateY(-52px); }
.hps__disc-slot:nth-child(6) { transform: translate(-50%,-50%) rotate(300deg) translateY(-52px); }

/* Floating promo badge */
.hps__badge {
  position: absolute;
  top: 8%;
  right: 8%;
  background: var(--ap-orange);
  color: #000;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 1px;
  padding: 8px 14px;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(240,165,0,0.4);
  z-index: 4;
  animation: hps-badge-pulse 2.5s ease-in-out infinite;
}

@keyframes hps-badge-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 8px 24px rgba(240,165,0,0.4); }
  50% { transform: scale(1.05); box-shadow: 0 12px 32px rgba(240,165,0,0.6); }
}

/* Cart footer */
.cart-drawer__footer {
  padding: var(--sp-4) var(--sp-5);
  border-top: 1px solid var(--n-100);
  flex-shrink: 0;
  background: #ffffff;
}

.cart-shipping-progress {
  margin-bottom: var(--sp-4);
}

.cart-shipping-progress__label {
  font-size: var(--text-xs);
  color: var(--n-600);
  margin-bottom: var(--sp-2);
}

.cart-shipping-progress__track {
  height: 4px;
  background: var(--n-200);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.cart-shipping-progress__fill {
  height: 100%;
  background: var(--ap-success);
  border-radius: var(--radius-full);
  transition: width 0.5s var(--ease);
}

.cart-totals {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}

.cart-totals__row {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-sm);
  color: var(--n-700);
}

.cart-totals__row--total {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--ap-black);
  padding-top: var(--sp-2);
  border-top: 1px solid var(--n-100);
  margin-top: var(--sp-2);
}

.cart-actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

/* ── Search Overlay ──────────────────────────────────────── */
.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: var(--z-modal);
  backdrop-filter: blur(4px);
}

.search-overlay.open { display: block; }

.search-overlay__panel {
  background: #ffffff;
  width: 100%;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-bottom: 3px solid var(--ap-orange);
  animation: fadeDown 0.2s var(--ease) both;
}

.search-overlay__input-wrap {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--n-100);
}

.search-overlay__icon { width: 20px; height: 20px; color: var(--n-400); flex-shrink: 0; }

.search-overlay__input {
  flex: 1;
  font-size: var(--text-base);
  color: var(--ap-black);
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-sans);
}

.search-overlay__input::placeholder { color: var(--n-400); }

.search-overlay__close {
  background: none;
  border: none;
  color: var(--n-500);
  cursor: pointer;
  font-size: 18px;
  padding: var(--sp-1);
  transition: color var(--t);
}

.search-overlay__close:hover { color: var(--ap-black); }

.search-overlay__body {
  overflow-y: auto;
  padding: var(--sp-4) 0;
  max-height: calc(80vh - 80px);
}

.search-section-title {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--n-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--sp-3);
}

.search-suggestions { }
.search-trending { margin-bottom: var(--sp-5); }

.search-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.search-chip {
  display: inline-block;
  padding: var(--sp-1-5) var(--sp-3);
  background: var(--n-100);
  border: 1px solid var(--n-200);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--n-700);
  text-decoration: none;
  transition: all var(--t-fast) var(--ease);
}

.search-chip:hover {
  background: var(--ap-orange);
  border-color: var(--ap-orange);
  color: #ffffff;
}

.search-results { }

.search-result-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3);
  border-bottom: 1px solid var(--n-100);
  text-decoration: none;
  transition: background var(--t-fast) var(--ease);
}

.search-result-item:hover { background: var(--n-50); }

.search-result-item__image {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--n-100);
}

.search-result-item__body { flex: 1; min-width: 0; }
.search-result-item__brand { font-size: var(--text-xs); color: var(--n-500); }
.search-result-item__name {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--ap-black);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-item:hover .search-result-item__name { color: var(--ap-orange); }
.search-result-item__price { font-size: var(--text-sm); font-weight: var(--weight-bold); color: var(--ap-orange); }

.search-view-all {
  display: block;
  padding: var(--sp-3);
  font-size: var(--text-sm);
  color: var(--ap-orange);
  text-decoration: none;
  font-weight: var(--weight-medium);
  transition: background var(--t-fast) var(--ease);
  border-top: 1px solid var(--n-100);
}

.search-view-all:hover { background: var(--n-50); }

.search-no-results {
  padding: var(--sp-8) 0;
  text-align: center;
  color: var(--n-500);
  font-size: var(--text-sm);
}

/* ── Footer bridge classes ───────────────────────────────── */
.footer-brand-col,
.footer-links-col,
.footer-newsletter-col { }

.footer-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin-bottom: var(--sp-4);
}

.footer-logo__img {
  height: 52px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: invert(1) hue-rotate(180deg);
  mix-blend-mode: screen;
}

.footer-brand-desc {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--sp-4);
}

.footer-socials {
  display: flex;
  gap: var(--sp-2);
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: background var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease);
}

.footer-social svg { width: 16px; height: 16px; }
.footer-social:hover { background: var(--ap-orange); border-color: var(--ap-orange); color: #ffffff; }

.footer-col-title {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--sp-4);
}

.footer-link {
  display: block;
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  padding: var(--sp-1) 0;
  transition: color var(--t) var(--ease);
}

.footer-link:hover { color: rgba(255,255,255,0.9); }

.footer-newsletter-sub {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--sp-3);
  line-height: var(--leading-relaxed);
}

.footer-newsletter-form {
  display: flex;
  gap: var(--sp-2);
  margin-bottom: var(--sp-2);
}

.footer-newsletter-input {
  flex: 1;
  padding: var(--sp-2) var(--sp-3);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  color: #ffffff;
  font-size: var(--text-sm);
  font-family: var(--font-sans);
  transition: border-color var(--t) var(--ease);
}

.footer-newsletter-input::placeholder { color: rgba(255,255,255,0.35); }
.footer-newsletter-input:focus { outline: none; border-color: var(--ap-orange); }

.footer-newsletter-legal {
  font-size: var(--text-2xs);
  color: rgba(255,255,255,0.3);
  line-height: var(--leading-relaxed);
}

.footer-bottom__links {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.footer-bottom__links a {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color var(--t) var(--ease);
}

.footer-bottom__links a:hover { color: rgba(255,255,255,0.7); }

.footer-payment-badges {
  display: none;
  gap: var(--sp-1-5);
  flex-wrap: wrap;
}

.payment-badge {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  padding: 3px var(--sp-2);
  font-size: var(--text-2xs);
  font-weight: var(--weight-bold);
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.05em;
}

/* footer-trust item inner content */
.footer-trust__grid {
  align-items: stretch;
}

.footer-trust__item {
  align-items: center;
  min-height: 54px;
}

.footer-trust__item > svg {
  width: 32px;
  height: 32px;
  color: var(--ap-orange);
  flex-shrink: 0;
}

.footer-trust__item > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

.footer-trust__item > div > strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--ap-black);
  margin-bottom: 2px;
}

.footer-trust__item > div > span {
  font-size: var(--text-xs);
  color: var(--n-500);
}

/* ── Product Card bridge classes ─────────────────────────── */
.product-card__image-link { display: block; }

.product-card__image-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--n-100);
}

.product-card__badges {
  position: absolute;
  top: var(--sp-2);
  left: var(--sp-2);
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  z-index: 2;
}

.product-card__wishlist {
  position: absolute;
  top: var(--sp-2);
  right: var(--sp-2);
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.95);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background var(--t) var(--ease), color var(--t) var(--ease);
  color: var(--n-400);
}

.product-card__wishlist:hover { background: #ffffff; color: var(--ap-error); }
.product-card__wishlist.active,
#wishlist-toggle.active {
  background: var(--ap-orange);
  border-color: var(--ap-orange);
  color: #ffffff;
}

.product-card__wishlist.active svg,
#wishlist-toggle.active svg {
  fill: currentColor;
}
.product-card__wishlist svg { width: 14px; height: 14px; }

.product-card__quick-add {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10,10,10,0.9);
  padding: var(--sp-3);
  transform: translateY(100%);
  transition: transform var(--t-slow) var(--ease);
  z-index: 2;
}

.product-card:hover .product-card__quick-add {
  transform: translateY(0);
}

.product-card__body {
  padding: var(--sp-3) var(--sp-4) var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-1-5);
}

.product-card__brand {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--ap-orange);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-card__name {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--ap-black);
  line-height: var(--leading-snug);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__name:hover { color: var(--ap-orange); }

.product-card__rating { display: flex; align-items: center; gap: var(--sp-1); }

.product-card__vehicles {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
}

.vehicle-tag {
  display: inline-block;
  font-size: var(--text-2xs);
  color: var(--n-600);
  background: var(--n-100);
  border: 1px solid var(--n-200);
  border-radius: var(--radius-sm);
  padding: 2px var(--sp-2);
  font-weight: var(--weight-medium);
}

.product-card__price {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  margin-top: var(--sp-1);
}

/* Product card base */
.product-card {
  background: #ffffff;
  border: 1px solid var(--n-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: var(--shadow-product, 0 8px 32px rgba(0,0,0,0.12));
  transform: translateY(-2px);
}

/* Product image placeholder */
.product-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-height: 140px;
}

.product-img-placeholder__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

.product-img-placeholder__initial {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: var(--weight-black);
  color: rgba(255,255,255,0.15);
  user-select: none;
  position: relative;
  z-index: 1;
  letter-spacing: -0.04em;
}

.product-img-placeholder__label {
  position: absolute;
  bottom: var(--sp-2);
  left: var(--sp-2);
  font-size: var(--text-2xs);
  font-weight: var(--weight-bold);
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(0,0,0,0.3);
  padding: 2px var(--sp-2);
  border-radius: var(--radius-sm);
}

/* Star Rating */
.star-rating {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
}

.stars { display: inline-flex; gap: 1px; }

.star { font-size: 12px; }
.star--filled { color: var(--ap-gold, #F0A500); }
.star--empty { color: var(--n-300); }

.rating-score {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--ap-black);
}

.rating-count {
  font-size: var(--text-xs);
  color: var(--n-400);
}

/* Skeleton shimmer */
.skeleton {
  background: linear-gradient(90deg, var(--n-100) 25%, var(--n-200) 50%, var(--n-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease infinite;
}

/* ── Qty Selector ────────────────────────────────────────── */
.qty-selector {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--n-200);
  border-radius: var(--radius);
  overflow: hidden;
  height: 38px;
}

.qty-selector__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 100%;
  background: var(--n-50);
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: var(--ap-black);
  transition: background var(--t-fast) var(--ease);
}

.qty-selector__btn:hover { background: var(--n-100); }

.qty-selector__value {
  min-width: 36px;
  text-align: center;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--ap-black);
  padding: 0 var(--sp-2);
}

/* ── Deal card bridge ────────────────────────────────────── */
.deal-card__image-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--n-100);
}

.deal-card__badge {
  position: absolute;
  top: var(--sp-2);
  left: var(--sp-2);
  z-index: 2;
}

.deal-card__timer-overlay {
  position: absolute;
  bottom: var(--sp-2);
  right: var(--sp-2);
  background: rgba(0,0,0,0.8);
  border-radius: var(--radius-sm);
  padding: 3px var(--sp-2);
  display: flex;
  align-items: center;
  gap: var(--sp-1-5);
  z-index: 2;
}

.deal-card__timer-text {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ap-orange);
  font-weight: var(--weight-bold);
  letter-spacing: 0.05em;
}

.deal-card__body {
  padding: var(--sp-3) var(--sp-4) var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.deal-card__brand {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--ap-orange);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.deal-card__name {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: #ffffff;
  text-decoration: none;
  line-height: var(--leading-snug);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.deal-card__name:hover { color: var(--ap-orange); }

.deal-card__price {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
}

.deal-card__progress { }
.deal-card__progress-label {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--sp-1-5);
}

.deal-card__progress-track {
  height: 5px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.deal-card__progress-fill {
  height: 100%;
  background: var(--ap-orange);
  border-radius: var(--radius-full);
}

/* ── Spacing utilities ───────────────────────────────────── */
.gap-1-5 { gap: var(--sp-1-5, 0.375rem); }
.gap-2-5 { gap: var(--sp-2-5, 0.625rem); }
.gap-3-5 { gap: var(--sp-3-5, 0.875rem); }

/* ensure sp-1-5, sp-2-5, sp-3-5 exist if not in variables */
:root {
  --sp-1-5: 0.375rem;
  --sp-2-5: 0.625rem;
  --sp-3-5: 0.875rem;
}

/* ── Products empty state ────────────────────────────────── */
.products-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-16) var(--sp-4);
  text-align: center;
  color: var(--n-400);
}

.products-empty p { font-size: var(--text-sm); color: var(--n-500); }

/* ── Hero Slider bridge ──────────────────────────────────── */
.hero__slides-container {
  position: relative;
  min-height: 520px;
}

@media (min-width: 1024px) { .hero__slides-container { min-height: 620px; } }

.hero__slide {
  display: none;
  position: relative;
  min-height: 520px;
}

@media (min-width: 1024px) { .hero__slide { min-height: 620px; } }

.hero__slide--active { display: block; }

.hero__controls {
  position: absolute;
  bottom: var(--sp-6);
  left: 0;
  right: 0;
  z-index: 10;
}

.hero__controls-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.hero__control-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
  transition: background var(--t) var(--ease);
  flex-shrink: 0;
}

.hero__control-btn:hover { background: rgba(255,255,255,0.2); }

/* ── Section Head ────────────────────────────────────────── */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
  flex-wrap: wrap;
}

.section-head__label {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--ap-orange);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--sp-2);
}

.section-head__label--light { color: rgba(255,255,255,0.5); }

.section-head__link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--ap-orange);
  text-decoration: none;
  white-space: nowrap;
  transition: gap var(--t) var(--ease);
  flex-shrink: 0;
}

.section-head__link:hover { gap: var(--sp-2); }

.section-head--light .section-head__link { color: rgba(255,255,255,0.6); }

/* ── Platform Stats (home.js generates .platform-stat) ────── */
.platform-stat {
  text-align: center;
  padding: var(--sp-6);
  border-radius: var(--radius-lg);
  background: var(--n-50);
  border: 1px solid var(--n-100);
}

.platform-stat__number {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 3vw, var(--text-4xl));
  font-weight: var(--weight-black);
  color: var(--ap-black);
  letter-spacing: -0.03em;
}

.platform-stat__label {
  font-size: var(--text-sm);
  color: var(--n-500);
  margin-top: var(--sp-1);
  font-weight: var(--weight-medium);
}

/* ── Category card bridge ────────────────────────────────── */
.category-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.category-card__accent-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ap-orange);
  transform: scaleX(0);
  transition: transform var(--t-slow) var(--ease);
}

.category-card:hover .category-card__accent-bar { transform: scaleX(1); }

/* ── Vehicle card bridge ─────────────────────────────────── */
.vehicle-card__body { padding: var(--sp-5); position: relative; z-index: 2; }
.vehicle-card__name {
  font-size: var(--text-xl);
  font-weight: var(--weight-black);
  color: #ffffff;
  margin-bottom: var(--sp-1);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.vehicle-card__grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

/* ── Supplier content bridge ─────────────────────────────── */
.supplier-content {}
.supplier-label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: rgba(240,165,0,0.15);
  border: 1px solid rgba(240,165,0,0.25);
  border-radius: var(--radius-sm);
  padding: 6px var(--sp-3);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--ap-orange);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--sp-6);
}

.supplier-sub {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.55);
  margin-top: var(--sp-5);
  line-height: var(--leading-relaxed);
}

.supplier-stats-panel {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.supplier-stat-box__number {
  font-size: var(--text-2xl);
  font-weight: var(--weight-black);
  color: #ffffff;
  margin-bottom: 2px;
}

.supplier-stat-box__label {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
}

.supplier-mini-cards {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-top: var(--sp-2);
}

.supplier-mini-card {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: var(--sp-3) var(--sp-4);
}

.supplier-mini-card__avatar {
  width: 36px;
  height: 36px;
  background: rgba(240,165,0,0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--weight-black);
  color: var(--ap-orange);
  font-size: var(--text-sm);
  flex-shrink: 0;
}

.supplier-mini-card__name {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: #ffffff;
}

.supplier-mini-card__meta {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
  margin-top: 2px;
}

/* ── Newsletter bridge ───────────────────────────────────── */
.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  align-items: center;
}

@media (min-width: 1024px) {
  .newsletter-inner { grid-template-columns: 1fr 1fr; gap: var(--sp-16); }
}

.newsletter-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--ap-orange);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--sp-3);
}

.newsletter-form-wrap { position: relative; z-index: 2; }

.newsletter-legal {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.25);
  margin-top: var(--sp-3);
}

/* ── Trust card bridge ───────────────────────────────────── */
.trust-card__desc {
  font-size: var(--text-sm);
  color: var(--n-500);
  line-height: var(--leading-relaxed);
  margin-top: 4px;
}

/* ── Brands grid bridge ──────────────────────────────────── */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
  margin-bottom: var(--sp-8);
}

@media (min-width: 480px)  { .brands-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px)  { .brands-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1280px) { .brands-grid { grid-template-columns: repeat(5, 1fr); } }

.brand-card {
  display: block;
  text-decoration: none;
  border: 1.5px solid var(--n-200);
  border-radius: var(--radius-lg);
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease), transform var(--t-slow) var(--ease);
  background: #ffffff;
}

.brand-card:hover {
  border-color: var(--ap-orange);
  box-shadow: 0 4px 16px rgba(240,165,0,0.1);
  transform: translateY(-2px);
}

.brand-card__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--sp-5) var(--sp-4);
  text-align: center;
  gap: var(--sp-2);
}

.brand-card__initial {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--weight-black);
  color: var(--n-200);
  line-height: 1;
  letter-spacing: -0.03em;
}

.brand-card:hover .brand-card__initial { color: var(--ap-orange); }

.brand-card__name {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--ap-black);
  line-height: 1.2;
}

.brand-card__country {
  font-size: var(--text-xs);
  color: var(--n-400);
}

.brand-card__verified {
  font-size: var(--text-2xs);
  font-weight: var(--weight-bold);
  color: var(--ap-success);
  letter-spacing: 0.04em;
}

/* ── Deals header right ──────────────────────────────────── */
.deals-header__right {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.deals-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1-5);
  background: var(--ap-orange);
  color: #ffffff;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px var(--sp-3);
  border-radius: var(--radius-sm);
  margin-bottom: var(--sp-2);
}

/* ── Form input bridge ───────────────────────────────────── */
.form-input {
  width: 100%;
  border: 1.5px solid var(--n-200);
  border-radius: var(--radius);
  padding: var(--sp-2-5) var(--sp-3);
  font-size: var(--text-sm);
  color: var(--ap-black);
  font-family: var(--font-sans);
  transition: border-color var(--t) var(--ease);
  background: #ffffff;
}

.form-input:focus {
  outline: none;
  border-color: var(--ap-orange);
  box-shadow: 0 0 0 3px rgba(240,165,0,0.08);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--ap-black);
  margin-bottom: var(--sp-1-5);
}

/* ── Toast bridge ────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: var(--sp-5);
  right: var(--sp-5);
  z-index: var(--z-modal);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: var(--ap-black);
  color: #ffffff;
  border-left: 3px solid var(--ap-success);
  border-radius: var(--radius);
  box-shadow: var(--shadow-dropdown);
  font-size: var(--text-sm);
  min-width: 240px;
  max-width: 360px;
  pointer-events: all;
  opacity: 0;
  transform: translateX(100%);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
}

.toast--visible {
  opacity: 1;
  transform: translateX(0);
}

.toast--success { border-left-color: var(--ap-success); }
.toast--error   { border-left-color: var(--ap-error); }
.toast--info    { border-left-color: var(--ap-orange); }

.toast__close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  font-size: 14px;
  padding: 0;
  margin-left: auto;
  flex-shrink: 0;
  transition: color var(--t) var(--ease);
}

.toast__close:hover { color: #ffffff; }

/* ── Vehicle section bridge ──────────────────────────────── */
.vehicle-section {
  background: var(--ap-black);
  padding: var(--sp-10) 0 var(--sp-12);
}

.vehicle-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}

@media (min-width: 640px)  { .vehicle-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .vehicle-grid { grid-template-columns: repeat(4, 1fr); } }

.vehicle-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform var(--t-slow) var(--ease), box-shadow var(--t-slow) var(--ease);
}

.vehicle-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.vehicle-card__accent-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ap-orange);
  opacity: 0;
  transition: opacity var(--t) var(--ease);
}

.vehicle-card:hover .vehicle-card__accent-bar { opacity: 1; }

.vehicle-card__sub {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--sp-3);
}

.vehicle-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1-5);
  margin-bottom: var(--sp-4);
}

.vehicle-card__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--ap-orange);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: gap var(--t) var(--ease);
}

.vehicle-card:hover .vehicle-card__cta { gap: var(--sp-3); }

/* ── Categories section bridge ───────────────────────────── */
.categories-section {
  padding: var(--sp-10) 0 var(--sp-12);
  background: #ffffff;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
}

@media (min-width: 640px)  { .category-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .category-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1280px) { .category-grid { grid-template-columns: repeat(5, 1fr); } }

.category-card {
  display: block;
  text-decoration: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ap-black);
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform var(--t-slow) var(--ease), box-shadow var(--t-slow) var(--ease);
  position: relative;
}

.category-card:hover { transform: scale(1.025); box-shadow: 0 8px 32px rgba(0,0,0,0.2); }

.category-card__inner {
  position: relative;
  min-height: 140px;
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--sp-2);
}

.category-card__name {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: #ffffff;
  line-height: var(--leading-tight);
}

.category-card__count {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.45);
}

.category-card__icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--sp-2);
  transition: background var(--t) var(--ease), color var(--t) var(--ease);
  flex-shrink: 0;
}

.category-card:hover .category-card__icon-wrap {
  background: rgba(240,165,0,0.2);
  color: var(--ap-orange);
}

.category-card__arrow {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  transition: background var(--t) var(--ease), color var(--t) var(--ease);
}

.category-card:hover .category-card__arrow {
  background: var(--ap-orange);
  color: #ffffff;
}

.category-card__grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

/* ── Brands section ──────────────────────────────────────── */
.brands-section {
  padding: var(--sp-10) 0 var(--sp-12);
  background: var(--n-50);
}

/* ── Supplier section bridge ─────────────────────────────── */
.supplier-section {
  background: var(--ap-navy);
  padding: var(--sp-12) 0 var(--sp-16);
  position: relative;
}

/* ── Countdown stacked layout ────────────────────────────── */
.countdown-seg {
  flex-direction: column !important;
  gap: 2px;
}

.countdown-val {
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  font-weight: var(--weight-black);
  color: var(--ap-orange);
  line-height: 1;
}

.countdown-unit {
  font-size: var(--text-2xs);
  font-weight: var(--weight-bold);
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.countdown-label {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
}

/* ── Deals hero section ──────────────────────────────────── */
.deals-page-hero {
  background: var(--ap-navy);
  position: relative;
  overflow: hidden;
  padding: var(--sp-12) 0 var(--sp-10);
}

.deals-page-hero__inner { text-align: center; position: relative; z-index: 1; }

.deals-page-hero__label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--ap-orange);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--sp-3);
}

.deals-page-hero__heading {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: var(--weight-black);
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: var(--sp-4);
}

.deals-page-hero__heading em {
  color: var(--ap-orange);
  font-style: normal;
}

.deals-global-countdown {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-4);
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
  padding: var(--sp-3) var(--sp-6);
  margin-top: var(--sp-3);
}

/* ── Deals section on homepage dark bg ───────────────────── */
.deals-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-bottom: var(--sp-6);
}

.deals-header .section-title { color: #ffffff; }
.text-white { color: #ffffff !important; }

/* Marketplace body refresh */
.marketplace-promos-section,
.category-products-section,
.seller-section {
  padding: var(--sp-10) 0;
}

.marketplace-promos-section {
  background: var(--n-50);
  border-top: 1px solid var(--n-100);
  border-bottom: 1px solid var(--n-100);
}

.marketplace-promo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-3);
}

@media (min-width: 900px) {
  .marketplace-promo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.marketplace-promo-card {
  min-height: 112px;
  border: 1px solid var(--n-200);
  border-radius: var(--radius-md);
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--sp-2);
  text-decoration: none;
  color: var(--ap-black);
  background: #ffffff;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}

.marketplace-promo-card:hover,
.marketplace-promo-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--ap-orange);
}

.marketplace-promo-card strong {
  font-size: var(--text-lg);
  line-height: var(--leading-snug);
}

.marketplace-promo-card span {
  color: var(--n-600);
  font-size: var(--text-sm);
}

.marketplace-promo-card__label {
  color: var(--ap-orange) !important;
  font-size: var(--text-xs) !important;
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0;
}

.marketplace-promo-card--dark {
  background: var(--ap-black);
  border-color: var(--ap-black);
  color: #ffffff;
}

.marketplace-promo-card--dark span:not(.marketplace-promo-card__label) { color: var(--n-300); }
.marketplace-promo-card--gold { border-top: 3px solid var(--ap-orange); }
.marketplace-promo-card--blue { border-top: 3px solid #1B3A6B; }

.marketplace-band {
  background: #ffffff;
  border-top: 1px solid var(--n-100);
}

.category-products-section { background: #ffffff; }

.category-product-panels {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}

@media (min-width: 800px) {
  .category-product-panels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.category-product-panel {
  border: 1px solid var(--n-200);
  border-radius: var(--radius-md);
  background: #ffffff;
  overflow: hidden;
}

.category-product-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-4);
  background: var(--n-50);
  border-bottom: 1px solid var(--n-200);
}

.category-product-panel__head h3 {
  font-size: var(--text-lg);
  margin: 0 0 var(--sp-1);
  color: var(--ap-black);
}

.category-product-panel__head span,
.category-product-panel__head a {
  font-size: var(--text-sm);
}

.category-product-panel__head a {
  color: var(--ap-orange);
  font-weight: var(--weight-semibold);
  text-decoration: none;
  white-space: nowrap;
}

.category-product-panel__items {
  display: grid;
}

.mini-product-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--n-100);
}

.mini-product-row:last-child { border-bottom: none; }
.mini-product-row:hover { background: var(--n-50); }

.mini-product-row__image {
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--n-100);
}

.mini-product-row__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mini-product-row__body strong {
  font-size: var(--text-sm);
  color: var(--ap-black);
  line-height: var(--leading-snug);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mini-product-row__body span {
  font-size: var(--text-xs);
  color: var(--n-500);
}

.mini-product-row__body em {
  font-style: normal;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--ap-black);
}

.seller-section {
  background: var(--ap-navy);
}

.seller-section .supplier-grid {
  display: none;
}

.seller-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}

@media (min-width: 800px) {
  .seller-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.seller-card {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: var(--sp-4);
  padding: var(--sp-4);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: #ffffff;
  text-decoration: none;
  transition: background var(--t) var(--ease), transform var(--t) var(--ease);
}

.seller-card:hover,
.seller-card:focus-visible {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

.seller-card__avatar,
.detail-seller-card__avatar {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--ap-orange);
  color: var(--ap-black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--weight-black);
  font-size: var(--text-xl);
}

.seller-card__body,
.detail-seller-card__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.seller-card__top {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.seller-card__body span,
.seller-card__body p,
.seller-card__meta {
  color: rgba(255,255,255,0.72);
  font-size: var(--text-sm);
}

.seller-card__body p { margin: 0; }

.seller-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-2);
}

.trust-section .trust-grid:not(#trust-benefits-grid) {
  display: none;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-card {
  min-width: 0;
  border-radius: var(--radius-md);
}

.product-card__image-wrap {
  aspect-ratio: 4 / 3;
}

.product-card__body {
  flex: 1;
  gap: var(--sp-2);
}

.product-card__seller,
.product-card__delivery {
  font-size: var(--text-xs);
  color: var(--n-500);
}

.product-card__footer {
  align-items: center;
}

.product-card__details {
  flex-shrink: 0;
}

.product-card__mobile-cart {
  display: none;
}

.product-card .add-to-cart-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (hover: none), (max-width: 760px) {
  .product-card__quick-add { display: none; }
  .product-card__mobile-cart { display: inline-flex; }
  .product-card__wishlist {
    opacity: 1;
    visibility: visible;
  }
}

.active-filters {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
  margin: 0 0 var(--sp-4);
}

.active-filter-chip,
.active-filter-clear,
.filter-drawer-close {
  border: 1px solid var(--n-200);
  border-radius: var(--radius-full);
  background: #ffffff;
  color: var(--n-700);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  padding: var(--sp-2) var(--sp-3);
  cursor: pointer;
}

.active-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}

.active-filter-chip span {
  color: var(--ap-orange);
  font-weight: var(--weight-black);
}

.active-filter-clear {
  color: var(--ap-orange);
  border-color: rgba(240,165,0,0.35);
}

.filter-drawer-close {
  display: none;
  border-radius: var(--radius);
}

@media (max-width: 1023px) {
  .filter-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(340px, 90vw);
    z-index: var(--z-drawer);
    transform: translateX(-105%);
    transition: transform var(--t-slow) var(--ease);
    overflow-y: auto;
    border-radius: 0;
    box-shadow: var(--shadow-dropdown);
  }

  .filter-sidebar.open {
    transform: translateX(0);
  }

  .filter-drawer-close {
    display: inline-flex;
  }

  .products-toolbar {
    align-items: stretch;
  }

  .toolbar-left,
  .toolbar-right {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 520px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .marketplace-promo-grid {
    grid-template-columns: 1fr;
  }
}

.detail-seller-card {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: var(--sp-4);
  padding: var(--sp-4);
  border: 1px solid var(--n-200);
  border-radius: var(--radius-md);
  background: var(--n-50);
}

.detail-seller-card__body span {
  color: var(--n-500);
  text-transform: uppercase;
  font-weight: var(--weight-bold);
  font-size: var(--text-2xs);
  letter-spacing: 0;
}

.detail-seller-card__body strong {
  color: var(--ap-black);
}

.detail-seller-card__body p {
  margin: 0;
  color: var(--n-600);
  font-size: var(--text-sm);
}

.review-card--empty {
  border-style: dashed;
  background: var(--n-50);
}

/* ── Section head on dark bg ─────────────────────────────── */
.vehicle-section .section-head .section-title,
.vehicle-section .section-head__label { color: #ffffff; }
.supplier-section .section-head .section-title { color: #ffffff; }

/* ── Deal card base ──────────────────────────────────────── */
.deal-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--t-slow) var(--ease), box-shadow var(--t-slow) var(--ease);
}

.deal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}

/* ── Button outline-white ────────────────────────────────── */
.btn--outline-white {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.35);
  color: #ffffff;
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease);
}

.btn--outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
}

/* Override outline button in white hero */
.hero-v2 .btn--outline-white {
  border-color: rgba(0,0,0,0.2);
  color: #111111;
}

.hero-v2 .btn--outline-white:hover {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.4);
}

/* ── Btn base if not defined ─────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-family: var(--font-sans);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--t) var(--ease);
  white-space: nowrap;
  padding: var(--sp-2-5) var(--sp-5);
  font-size: var(--text-sm);
}

.btn--primary {
  background: var(--ap-orange);
  color: #ffffff;
  border-color: var(--ap-orange);
}

.btn--primary:hover { background: #C88000; border-color: #C88000; }

.btn--ghost {
  background: transparent;
  color: var(--ap-black);
  border-color: var(--n-200);
}

.btn--ghost:hover { background: var(--n-50); border-color: var(--n-300); }

.btn--sm { padding: var(--sp-1-5) var(--sp-3); font-size: var(--text-xs); }
.btn--lg { padding: var(--sp-3) var(--sp-6); font-size: var(--text-base); }
.btn--xl { padding: var(--sp-4) var(--sp-8); font-size: var(--text-base); }
.btn--full { width: 100%; }
.btn--dark { background: var(--ap-black); color: #ffffff; border-color: var(--ap-black); }
.btn--dark:hover { background: #222; }

/* ============================================================
   Reference Concept Refresh
   Dense black/yellow automotive storefront inspired by the
   supplied Automatic Platform reference.
   ============================================================ */

:root {
  --ap-yellow: #f5c400;
  --ap-ink: #070809;
  --ap-panel: #111417;
  --ap-soft: #f4f5f6;
  --header-total-h: 92px;
}

body {
  background: #f4f5f6;
  color: #111111;
}

h1, h2, h3, h4, h5, h6,
.display-heading {
  letter-spacing: 0;
}

.announcement-bar {
  display: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  box-shadow: 0 12px 36px rgba(0,0,0,0.18);
}

.main-header {
  background: linear-gradient(180deg, #171a1d 0%, #08090a 100%);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.main-header__inner {
  min-height: 48px;
  gap: 18px;
}

.site-logo__img {
  height: 48px;
  max-width: 230px;
  filter: none;
  mix-blend-mode: normal;
}

.header-search-trigger {
  height: 42px;
  max-width: 760px;
  background: #ffffff;
  border: 0;
  border-radius: 4px;
  padding: 0;
  gap: 0;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
}

.header-search-trigger::before {
  content: "All Categories";
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  color: #1d1d1d;
  font-size: 12px;
  font-weight: 700;
  background: #f7f7f7;
  border-right: 1px solid #dedede;
}

.header-search-trigger::after {
  content: "Search";
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  padding: 0 22px;
  color: #080808;
  font-size: 12px;
  font-weight: 800;
  background: var(--ap-yellow);
}

.header-search-trigger:hover {
  background: #ffffff;
  border-color: transparent;
}

.header-search-trigger__icon {
  display: none;
}

.header-search-trigger__text {
  color: #777777;
  font-size: 12px;
  padding: 0 16px;
}

.header-search-trigger__kbd {
  display: none;
}

.header-action-btn {
  color: rgba(255,255,255,0.86);
  border-radius: 4px;
  padding: 7px 10px;
  font-size: 11px;
}

.cart-btn {
  background: transparent;
  color: #ffffff;
  padding: 7px 10px;
}

.cart-btn:hover,
.header-action-btn:hover {
  background: rgba(255,255,255,0.08);
}

.cart-btn__count,
.wishlist-btn__count {
  background: var(--ap-yellow);
  color: #111111;
}

.nav-bar {
  background: #050607;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.nav-bar__inner {
  height: 42px;
}

.nav-all-categories {
  height: 30px;
  margin-right: 12px;
  padding: 0 18px;
  border-radius: 3px;
  color: #090909;
  background: var(--ap-yellow);
  font-size: 12px;
  font-weight: 800;
}

.nav-all-categories:hover {
  background: #ffd31a;
}

.nav-divider {
  display: none;
}

.nav-link {
  color: rgba(255,255,255,0.82);
  font-size: 12px;
  font-weight: 600;
  padding: 0 16px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--ap-yellow);
  background: transparent;
}

.hero {
  background: #050607;
}

.hero-v2 {
  min-height: 430px;
  background:
    linear-gradient(90deg, rgba(5,6,7,0.96) 0%, rgba(5,6,7,0.88) 44%, rgba(5,6,7,0.65) 100%),
    radial-gradient(circle at 70% 40%, rgba(255,255,255,0.12), transparent 34%),
    linear-gradient(180deg, #15191b 0%, #050607 100%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.hero-v2__grid {
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  opacity: 0.7;
}

.hero-v2__glow {
  display: none;
}

.hero-v2__inner {
  min-height: 430px;
  padding: 46px 0 42px;
  grid-template-columns: minmax(0, 0.95fr) minmax(430px, 1.05fr);
  gap: 28px;
}

.hero-v2__label {
  background: rgba(245,196,0,0.12);
  border: 1px solid rgba(245,196,0,0.38);
  color: var(--ap-yellow);
  letter-spacing: 0;
}

.hero-v2__headline {
  letter-spacing: 0;
  margin-bottom: 18px;
}

.hero-v2__line1,
.hero-v2__line2 {
  font-size: 4.25rem;
  letter-spacing: 0;
}

.hero-v2__line1 {
  color: #ffffff;
}

.hero-v2__line2 {
  color: var(--ap-yellow);
}

.hero-v2__desc {
  color: rgba(255,255,255,0.86);
  max-width: 500px;
  margin-bottom: 24px;
}

.hero-v2__actions {
  margin-bottom: 26px;
}

.hero-v2__stat strong {
  color: #ffffff;
}

.hero-v2__stat span {
  color: rgba(255,255,255,0.52);
  letter-spacing: 0;
}

.hero-v2__stat-divider {
  background: rgba(255,255,255,0.18);
}

.hero-v2 .btn--outline-white {
  border-color: rgba(255,255,255,0.3);
  color: #ffffff;
}

.hero-v2 .btn--outline-white:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.56);
}

.btn--primary {
  background: var(--ap-yellow);
  border-color: var(--ap-yellow);
  color: #111111;
  box-shadow: 0 8px 18px rgba(245,196,0,0.2);
}

.btn--primary:hover {
  background: #dcae00;
  border-color: #dcae00;
  color: #111111;
}

.hero-product-scene {
  width: min(100%, 620px);
  height: 350px;
}

.hps__glow {
  display: none;
}

.hps__bottle--main {
  left: 35%;
  top: 2%;
  transform: translateX(-50%) scale(1.12);
}

.hps__bottle--secondary {
  right: 25%;
  top: 15%;
  transform: scale(0.9);
}

.hps__bottle-body {
  border-radius: 18px 18px 9px 9px;
  box-shadow: 0 22px 55px rgba(0,0,0,0.55), inset 12px 0 16px rgba(255,255,255,0.06);
}

.hps__disc {
  left: auto;
  right: 0;
  bottom: 9%;
}

.hps__coolant {
  position: absolute;
  z-index: 3;
  right: 16%;
  bottom: 8%;
  width: 74px;
  height: 170px;
  border-radius: 18px 18px 8px 8px;
  background: linear-gradient(150deg, #202428 0%, #0d1012 58%, #1a1e21 100%);
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: 0 18px 34px rgba(0,0,0,0.45);
}

.hps__coolant-cap {
  position: absolute;
  top: -15px;
  left: 20px;
  width: 34px;
  height: 18px;
  background: #d6251f;
  border-radius: 6px 6px 2px 2px;
}

.hps__coolant-label {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 26px;
  padding: 12px 4px;
  background: linear-gradient(180deg, #155d8c, #0b314c);
  color: #ffffff;
  text-align: center;
  border-bottom: 4px solid var(--ap-yellow);
}

.hps__coolant-label strong,
.hps__coolant-label span {
  display: block;
  font-size: 9px;
  letter-spacing: 0;
}

.hps__filter {
  position: absolute;
  right: 2%;
  bottom: 2%;
  width: 76px;
  height: 120px;
  z-index: 4;
}

.hps__filter-top,
.hps__filter-bottom {
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(180deg, #9a9a9a, #343434);
  border: 1px solid rgba(255,255,255,0.12);
}

.hps__filter-ribs {
  height: 90px;
  margin: -7px 7px;
  background: repeating-linear-gradient(90deg, #d39a00 0 5px, #f5c400 5px 10px);
  border-left: 4px solid #2a2a2a;
  border-right: 4px solid #2a2a2a;
  box-shadow: inset 0 14px 22px rgba(0,0,0,0.22);
}

.hps__badge {
  top: 0;
  right: 14%;
  border-radius: 3px;
}

.marketplace-promos-section {
  background: #ffffff;
  border-bottom: 1px solid #dedede;
  padding: 0;
}

.marketplace-promo-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
}

.marketplace-promo-card {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  color: #111111;
  text-decoration: none;
  background: #ffffff;
  border-right: 1px solid #e4e4e4;
}

.marketplace-promo-card:last-child {
  border-right: 0;
}

.marketplace-promo-card__icon {
  width: 34px;
  height: 34px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f4f5f6;
  color: #111111;
  flex: 0 0 auto;
}

.marketplace-promo-card__icon svg {
  width: 19px;
  height: 19px;
}

.marketplace-promo-card__copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.marketplace-promo-card__copy strong {
  font-size: 12px;
  color: #111111;
}

.marketplace-promo-card__copy em {
  font-style: normal;
  font-size: 11px;
  color: #777777;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.categories-section,
.featured-section,
.category-products-section,
.brands-section,
.trust-section {
  background: #ffffff;
}

.categories-section {
  padding: 34px 0 40px;
}

.section-head {
  margin-bottom: 22px;
}

.section-head__label,
.brand-card__verified,
.product-card__brand {
  letter-spacing: 0;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.category-card,
.category-card--large {
  grid-column: auto;
  background: #ffffff;
  border: 1px solid #dfe2e5;
  border-radius: 7px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.11);
}

.category-card__inner {
  min-height: 176px;
  padding: 14px 12px 16px;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  gap: 9px;
}

.category-card__grid-overlay,
.category-card__arrow {
  display: none;
}

.category-card__icon-wrap {
  display: none;
}

.category-card__name {
  color: #111111;
  font-size: 13px;
}

.category-card__count {
  color: #666666;
  font-size: 11px;
}

.category-card__accent-bar {
  background: var(--ap-yellow);
}

.category-card__visual {
  height: 94px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-visual {
  position: relative;
}

.category-visual__shape {
  position: relative;
  display: block;
}

.category-visual--motor-oils .category-visual__shape,
.category-visual--lubricants .category-visual__shape,
.category-visual--coolants .category-visual__shape,
.category-visual--additives .category-visual__shape,
.category-visual--car-care .category-visual__shape {
  width: 58px;
  height: 78px;
  border-radius: 14px 14px 6px 6px;
  background: linear-gradient(145deg, #24282c, #090a0b 70%);
  box-shadow: 0 18px 28px rgba(0,0,0,0.2), inset 8px 0 10px rgba(255,255,255,0.08);
}

.category-visual--motor-oils .category-visual__shape::before,
.category-visual--lubricants .category-visual__shape::before,
.category-visual--coolants .category-visual__shape::before,
.category-visual--additives .category-visual__shape::before,
.category-visual--car-care .category-visual__shape::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 20px;
  width: 20px;
  height: 12px;
  border-radius: 4px 4px 1px 1px;
  background: #2c3034;
}

.category-visual--motor-oils .category-visual__shape::after,
.category-visual--lubricants .category-visual__shape::after,
.category-visual--coolants .category-visual__shape::after,
.category-visual--additives .category-visual__shape::after,
.category-visual--car-care .category-visual__shape::after {
  content: "AP";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 13px;
  padding: 8px 2px;
  border-radius: 3px;
  background: linear-gradient(180deg, #1b1f22, #08090a);
  border-bottom: 4px solid var(--ap-yellow);
  color: var(--ap-yellow);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
}

.category-visual--lubricants .category-visual__shape {
  width: 68px;
  height: 58px;
  border-radius: 12px;
}

.category-visual--coolants .category-visual__shape::after {
  content: "COOL";
  color: #ffffff;
  border-bottom-color: #0b86bf;
}

.category-visual--additives .category-visual__shape {
  width: 38px;
}

.category-visual--car-accessories .category-visual__shape {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 13px solid #17191b;
  background: radial-gradient(circle, #555 0 12%, transparent 13%), conic-gradient(#0b0c0d 0 12%, #34383c 12% 18%, #0b0c0d 18% 32%, #34383c 32% 38%, #0b0c0d 38% 52%, #34383c 52% 58%, #0b0c0d 58% 72%, #34383c 72% 78%, #0b0c0d 78% 100%);
  box-shadow: 0 14px 24px rgba(0,0,0,0.18);
}

.category-visual--motorcycle-accessories .category-visual__shape {
  width: 88px;
  height: 66px;
  border-radius: 48% 48% 38% 38%;
  background: linear-gradient(145deg, #24282c, #060708 70%);
  box-shadow: inset 12px -6px 0 rgba(245,196,0,0.24), 0 14px 24px rgba(0,0,0,0.18);
}

.category-visual--motorcycle-accessories .category-visual__shape::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 16px;
  width: 48px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255,255,255,0.11);
}

.category-visual--truck-accessories .category-visual__shape,
.category-visual--scooter-accessories .category-visual__shape {
  width: 96px;
  height: 58px;
  border-radius: 10px;
  background: linear-gradient(145deg, #c9cdd0, #5d6368);
  box-shadow: inset 0 0 0 10px rgba(0,0,0,0.28), 0 14px 24px rgba(0,0,0,0.16);
}

.product-card,
.filter-sidebar,
.products-toolbar,
.account-sidebar,
.account-card,
.product-gallery__main,
.tab-panel,
.detail-seller-card {
  border-radius: 7px;
  border-color: #dfe2e5;
}

.product-card__image-wrap,
.deal-card__image-wrap {
  background: #f4f5f6;
}

.ap-product-visual {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    linear-gradient(180deg, #ffffff 0%, #f2f3f4 100%);
}

.ap-product-visual__floor {
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 17%;
  height: 18px;
  border-radius: 50%;
  background: rgba(0,0,0,0.08);
  filter: blur(4px);
}

.ap-product-visual__item {
  position: relative;
  width: 64px;
  height: 100px;
  border-radius: 16px 16px 7px 7px;
  background: linear-gradient(145deg, #202428, #090a0b 70%);
  background: linear-gradient(145deg, color-mix(in srgb, var(--product-accent) 24%, #202428), #090a0b 70%);
  box-shadow: 0 18px 28px rgba(0,0,0,0.22), inset 10px 0 12px rgba(255,255,255,0.08);
}

.ap-product-visual__cap {
  position: absolute;
  top: -13px;
  left: 22px;
  width: 22px;
  height: 15px;
  border-radius: 5px 5px 2px 2px;
  background: #3a3f43;
}

.ap-product-visual__label {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 15px;
  min-height: 42px;
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #1b1e21, #070809);
  border-bottom: 4px solid var(--ap-yellow);
  text-align: center;
}

.ap-product-visual__label strong {
  color: var(--ap-yellow);
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1;
}

.ap-product-visual__label em {
  max-width: 44px;
  color: rgba(255,255,255,0.58);
  font-size: 7px;
  line-height: 1.1;
  font-style: normal;
  text-transform: uppercase;
}

.ap-product-visual--lubricants .ap-product-visual__item {
  width: 78px;
  height: 76px;
  border-radius: 13px;
}

.ap-product-visual--additives .ap-product-visual__item,
.ap-product-visual--car-care .ap-product-visual__item {
  width: 44px;
  height: 112px;
}

.ap-product-visual--coolants .ap-product-visual__label {
  border-bottom-color: #0b86bf;
}

.ap-product-visual--filter .ap-product-visual__item,
.ap-product-visual--car-accessories .ap-product-visual__item {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: radial-gradient(circle, #272b2e 0 20%, transparent 21%), repeating-linear-gradient(90deg, #d79f00 0 5px, #f5c400 5px 10px);
  border: 14px solid #24282c;
}

.ap-product-visual--filter .ap-product-visual__cap,
.ap-product-visual--filter .ap-product-visual__label,
.ap-product-visual--car-accessories .ap-product-visual__cap,
.ap-product-visual--car-accessories .ap-product-visual__label {
  display: none;
}

.ap-product-visual--motorcycle-accessories .ap-product-visual__item {
  width: 112px;
  height: 78px;
  border-radius: 46% 46% 36% 36%;
  background: linear-gradient(145deg, #262b30, #08090a 70%);
  box-shadow: inset 18px -9px 0 rgba(245,196,0,0.24), 0 18px 28px rgba(0,0,0,0.2);
}

.ap-product-visual--motorcycle-accessories .ap-product-visual__cap,
.ap-product-visual--motorcycle-accessories .ap-product-visual__label {
  display: none;
}

.page-header,
.deals-page-hero {
  background:
    linear-gradient(90deg, rgba(5,6,7,0.96), rgba(5,6,7,0.78)),
    linear-gradient(180deg, #171a1d, #050607);
  padding: 42px 0 34px;
}

.page-header__title,
.deals-page-hero__heading {
  letter-spacing: 0;
}

.flash-deals-section,
.seller-section,
.newsletter-section,
.vehicle-section {
  background: #070809;
}

.vehicle-section .section-title,
.seller-section .section-title,
.flash-deals-section .section-title,
.newsletter-heading {
  letter-spacing: 0;
}

@media (max-width: 1180px) {
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .marketplace-promo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .marketplace-promo-card {
    border-bottom: 1px solid #e4e4e4;
  }
}

@media (max-width: 900px) {
  .main-header__inner {
    flex-wrap: wrap;
  }

  .header-search-trigger {
    order: 3;
    flex-basis: 100%;
    max-width: none;
  }

  .hero-v2__inner {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-v2__right {
    display: flex;
    min-height: 260px;
  }

  .hero-product-scene {
    height: 270px;
    transform: scale(0.85);
    transform-origin: top center;
  }

  .hero-v2__line1,
  .hero-v2__line2 {
    font-size: 3rem;
  }
}

@media (max-width: 640px) {
  .site-logo__img {
    height: 38px;
    max-width: 170px;
  }

  .header-search-trigger::before {
    display: none;
  }

  .header-search-trigger::after {
    padding: 0 14px;
  }

  .marketplace-promo-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .marketplace-promo-card {
    border-right: 0;
  }

  .hero-v2__line1,
  .hero-v2__line2 {
    font-size: 2.45rem;
  }

  .hero-v2__stats {
    align-items: flex-start;
    gap: 12px;
  }
}

/* ============================================================
   RACING GREEN + GOLD CONTENT THEME (REVERSIBLE EXPERIMENT)
   Keep the navigation/header and footer black; replace the
   near-black content surfaces with racing green and metallic teal.
   ============================================================ */
:root {
  --race-midnight: #061f1e;
  --race-navy: #082b2a;
  --race-petrol: #0e4541;
  --race-steel: #17645d;
  --race-gold: #f0a500;
  --race-copper: #c96832;
}

/* Homepage hero: clearly separated from the black navigation. */
.hero,
.hero-v2 {
  background-color: var(--race-midnight);
}

.hero-v2 {
  background:
    linear-gradient(90deg, rgba(6,31,30,0.98) 0%, rgba(8,43,42,0.93) 45%, rgba(14,69,65,0.80) 100%),
    radial-gradient(circle at 76% 36%, rgba(23,100,93,0.42), transparent 38%),
    linear-gradient(145deg, var(--race-midnight), var(--race-petrol));
}

.hero-v2__grid {
  background-image:
    linear-gradient(rgba(120,200,181,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,200,181,0.06) 1px, transparent 1px);
}

/* Dark promotional sections throughout the homepage. */
.flash-deals-section,
.seller-section,
.newsletter-section,
.vehicle-section {
  background: linear-gradient(145deg, var(--race-midnight), var(--race-navy));
}

/* Inner-page banners use the same family without copying the hero. */
.page-header,
.deals-page-hero {
  background:
    linear-gradient(90deg, rgba(7,25,43,0.97), rgba(16,58,86,0.82)),
    linear-gradient(150deg, var(--race-midnight), var(--race-steel));
}

/* Product and category artwork: blue-black metal instead of neutral black. */
.hps__coolant,
.category-visual--motor-oils .category-visual__shape,
.category-visual--lubricants .category-visual__shape,
.category-visual--coolants .category-visual__shape,
.category-visual--additives .category-visual__shape,
.category-visual--car-care .category-visual__shape,
.ap-product-visual__item {
  background: linear-gradient(145deg, var(--race-steel) 0%, var(--race-navy) 52%, var(--race-midnight) 100%);
}

.category-visual--motor-oils .category-visual__shape::after,
.category-visual--lubricants .category-visual__shape::after,
.category-visual--coolants .category-visual__shape::after,
.category-visual--additives .category-visual__shape::after,
.category-visual--car-care .category-visual__shape::after,
.ap-product-visual__label {
  background: linear-gradient(180deg, var(--race-petrol), var(--race-midnight));
}

.category-visual--motorcycle-accessories .category-visual__shape,
.ap-product-visual--motorcycle-accessories .ap-product-visual__item {
  background: linear-gradient(145deg, var(--race-steel), var(--race-midnight) 72%);
}

/* Gold remains primary; copper adds a small hot-performance note. */
.hero-v2__label,
.product-card__brand,
.section-head__label {
  color: var(--race-gold);
}

.deals-page-hero .badge,
.deal-card__discount,
.flash-deals-section .badge--sale {
  background-color: var(--race-copper);
}

/* Preserve the requested black framing areas explicitly. */
.main-header {
  background: linear-gradient(180deg, #171a1d 0%, #08090a 100%);
}

.nav-bar {
  background: #050607;
}

.site-footer {
  background: var(--ap-black);
}

/* Product photography: always show the complete package without cropping. */
.product-card__image-wrap .product-img--card,
.deal-card__image-wrap .product-img {
  object-fit: contain;
  padding: 18px;
}

.product-gallery__main {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
}

.product-gallery__main .product-img--detail {
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.product-gallery__thumb .product-img {
  object-fit: contain;
  padding: 6px;
}

.product-gallery__lens {
  position: absolute;
  z-index: 5;
  width: 150px;
  height: 150px;
  border: 2px solid rgba(240,165,0,0.9);
  border-radius: 50%;
  background-color: #fff;
  background-repeat: no-repeat;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: opacity 160ms ease, transform 160ms ease;
}

.product-gallery__lens.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.product-gallery__zoom-btn {
  z-index: 7;
}

body.lightbox-open {
  overflow: hidden;
}

.product-image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(3,12,12,0.82);
  backdrop-filter: blur(7px);
  opacity: 0;
  transition: opacity 180ms ease;
}

.product-image-lightbox.open {
  opacity: 1;
}

.product-image-lightbox__content {
  width: min(900px, 88vw);
  height: min(820px, 84vh);
  padding: 28px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(0,0,0,0.42);
}

.product-image-lightbox__content img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-image-lightbox__close {
  position: fixed;
  top: 22px;
  right: 28px;
  z-index: 2;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  background: #082b2a;
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

@media (hover: none), (max-width: 700px) {
  .product-gallery__lens { display: none; }
  .product-gallery__main .product-img--detail { width: 86%; height: 86%; }
  .product-image-lightbox { padding: 16px; }
  .product-image-lightbox__content { width: 94vw; height: 78vh; padding: 14px; }
}

/* Bilingual shell and logical RTL behavior. */
.language-switcher {
  min-width: 72px;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 700;
}

html[dir="rtl"] body { text-align: right; }
html[dir="rtl"] .main-header__inner,
html[dir="rtl"] .header-actions,
html[dir="rtl"] .nav-bar__inner,
html[dir="rtl"] .section-head,
html[dir="rtl"] .product-card__footer,
html[dir="rtl"] .product-info__actions { direction: rtl; }
html[dir="rtl"] .nav-link svg,
html[dir="rtl"] .section-head__link svg,
html[dir="rtl"] .breadcrumb svg { transform: scaleX(-1); }
html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select { text-align: right; }
html[dir="rtl"] [dir="ltr"],
html[dir="rtl"] .product-info__sku,
html[dir="rtl"] .spec-value { unicode-bidi: isolate; }

@media (max-width: 720px) {
  .language-switcher { min-width: 58px; padding-inline: 8px; }
}

/* Premium multi-category marketplace hero. */
.hero-marketplace {
  min-height: 590px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 78% 40%, rgba(30, 125, 112, 0.35), transparent 34%),
    linear-gradient(112deg, #052624 0%, #07312e 52%, #0b4842 100%);
}

.hero-marketplace::after {
  content: "";
  position: absolute;
  inset: auto -8% -42% 38%;
  z-index: 0;
  height: 68%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.42), transparent 68%);
  transform: rotate(-5deg);
  pointer-events: none;
}

.hero-marketplace .hero-v2__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(460px, 0.94fr);
  grid-template-areas: "copy visual";
  align-items: center;
  min-height: 590px;
  gap: clamp(24px, 3vw, 58px);
  padding-block: 58px 44px;
}

.hero-marketplace__copy {
  grid-area: copy;
  min-width: 0;
  max-width: 720px;
}

.hero-marketplace .hero-v2__label {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding-inline: 18px;
  border: 1px solid rgba(240, 165, 0, 0.48);
  border-radius: 4px;
  background: rgba(5, 31, 30, 0.52);
  color: #f3b21a;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  backdrop-filter: blur(5px);
}

.hero-marketplace .hero-v2__headline {
  max-width: 760px;
  margin-block: 25px 19px;
  line-height: 0.98;
}

.hero-marketplace .hero-v2__line1,
.hero-marketplace .hero-v2__line2 {
  display: block;
  font-size: clamp(3rem, 4.35vw, 4.55rem);
  letter-spacing: -0.045em;
}

.hero-marketplace .hero-v2__line1 { color: #fff; }
.hero-marketplace .hero-v2__line2 { color: #ffc400; }

.hero-marketplace .hero-v2__desc {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.7;
}

.hero-marketplace .hero-v2__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-block-start: 28px;
}

.hero-marketplace .hero-v2__actions .btn {
  min-width: 176px;
  min-height: 56px;
  justify-content: center;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.hero-marketplace .hero-v2__actions .btn:hover {
  transform: translateY(-2px);
}

.hero-marketplace .hero-v2__stats {
  display: flex;
  align-items: stretch;
  gap: 24px;
  margin-block-start: 30px;
}

.hero-marketplace .hero-v2__stat {
  display: grid;
  gap: 3px;
  min-width: 84px;
}

.hero-marketplace .hero-v2__stat[hidden],
.hero-marketplace .hero-v2__stat-divider[hidden] { display: none; }

.hero-marketplace .hero-v2__stat strong {
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
}

.hero-marketplace .hero-v2__stat span {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.75rem;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.hero-marketplace__visual {
  position: relative;
  grid-area: visual;
  align-self: stretch;
  min-width: 0;
  min-height: 480px;
}

.hero-marketplace__halo {
  display: none;
}

.hero-marketplace__surface {
  position: absolute;
  z-index: 0;
  inset-inline: -2% 2%;
  bottom: 7.5%;
  height: 24%;
  border-radius: 50% 50% 10% 10% / 34% 34% 12% 12%;
  background:
    linear-gradient(180deg, rgba(28, 72, 66, 0.52), rgba(2, 20, 19, 0.76) 56%, rgba(1, 11, 11, 0.12)),
    radial-gradient(ellipse at center, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.16) 69%, transparent 72%);
  border-top: 1px solid rgba(140, 191, 179, 0.16);
  box-shadow: 0 30px 40px rgba(0, 0, 0, 0.28);
  transform: perspective(520px) rotateX(66deg);
  transform-origin: center bottom;
}

.hero-marketplace__surface::after {
  content: "";
  position: absolute;
  inset: 28% 10% 12%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.72), transparent 70%);
  filter: blur(9px);
}

.hero-marketplace .hero-product-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-marketplace__product {
  position: absolute;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 20px 22px rgba(0, 0, 0, 0.34));
  opacity: 0;
  animation: heroProductEnter 720ms cubic-bezier(.2,.7,.2,1) forwards;
}

.hero-marketplace__product--supporting {
  inset-inline-end: 4%;
  bottom: 10%;
  width: min(105%, 690px);
  height: auto;
}

.hero-marketplace__product--primary {
  z-index: 2;
  inset-inline-start: 27%;
  bottom: 8%;
  width: min(47%, 305px);
  height: auto;
  animation-delay: 130ms;
  filter: drop-shadow(0 23px 25px rgba(0, 0, 0, 0.45));
}

@keyframes heroProductEnter {
  from { opacity: 0; transform: translateY(18px) scale(0.975); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

html[dir="rtl"] .hero-marketplace .hero-v2__inner {
  grid-template-areas: "visual copy";
}

html[dir="rtl"] .hero-marketplace__copy { text-align: right; }
html[dir="rtl"] .hero-marketplace .hero-v2__actions,
html[dir="rtl"] .hero-marketplace .hero-v2__stats { direction: rtl; }

@media (max-width: 1100px) {
  .hero-marketplace .hero-v2__inner {
    grid-template-columns: minmax(0, 1fr) minmax(390px, 0.9fr);
    min-height: 550px;
    padding-block: 46px 38px;
  }
  .hero-marketplace .hero-v2__line1,
  .hero-marketplace .hero-v2__line2 { font-size: clamp(2.65rem, 4.8vw, 3.65rem); }
  .hero-marketplace__visual { min-height: 430px; }
}

@media (max-width: 820px) {
  .hero-marketplace .hero-v2__inner,
  html[dir="rtl"] .hero-marketplace .hero-v2__inner {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
    gap: 18px;
  }
  .hero-marketplace .hero-v2__actions .btn { min-width: 148px; padding-inline: 18px; }
  .hero-marketplace .hero-v2__stats { gap: 14px; }
  .hero-marketplace__product--primary { width: 52%; inset-inline-start: 28%; }
}

@media (max-width: 700px) {
  .hero-marketplace { min-height: 0; }
  .hero-marketplace > .container {
    width: 100%;
    max-width: 100%;
    padding-inline: 20px;
    overflow: hidden;
  }
  .hero-marketplace .hero-v2__inner,
  html[dir="rtl"] .hero-marketplace .hero-v2__inner {
    grid-template-columns: 1fr;
    grid-template-areas: "copy" "visual";
    gap: 12px;
    min-height: 0;
    padding-block: 38px 24px;
  }
  .hero-marketplace__copy { width: 100%; max-width: none; overflow: hidden; }
  .hero-marketplace .hero-v2__headline,
  .hero-marketplace .hero-v2__desc,
  .hero-marketplace .hero-v2__actions,
  .hero-marketplace .hero-v2__stats { width: 100%; max-width: calc(100vw - 40px); box-sizing: border-box; }
  .hero-marketplace .hero-v2__headline { margin-block: 19px 15px; }
  .hero-marketplace .hero-v2__line1,
  .hero-marketplace .hero-v2__line2 {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: clamp(2.1rem, 9.7vw, 3.7rem);
  }
  .hero-marketplace .hero-v2__actions { display: grid; grid-template-columns: 1fr; }
  .hero-marketplace .hero-v2__actions .btn { width: 100%; max-width: 100%; min-width: 0; min-height: 52px; white-space: normal; }
  .hero-marketplace .hero-v2__stats { margin-block-start: 24px; justify-content: space-between; }
  .hero-marketplace .hero-v2__stat { min-width: 0; }
  .hero-marketplace__visual { min-height: min(74vw, 390px); }
  .hero-marketplace__surface { inset-inline: 3%; bottom: 5%; height: 25%; }
  .hero-marketplace__product--supporting { inset-inline-end: 5%; bottom: 8%; width: 90%; }
  .hero-marketplace__product--primary { width: 35%; inset-inline-start: 30%; bottom: 7%; }
}

@media (max-width: 430px) {
  .hero-marketplace .hero-v2__inner { padding-block-start: 30px; }
  .hero-marketplace .hero-v2__label { min-height: 36px; padding-inline: 12px; font-size: 0.68rem; }
  .hero-marketplace .hero-v2__desc { font-size: 0.95rem; line-height: 1.58; }
  .hero-marketplace .hero-v2__actions { gap: 10px; margin-block-start: 22px; }
  .hero-marketplace .hero-v2__actions .btn { padding-inline: 10px; font-size: 0.9rem; }
  .hero-marketplace .hero-v2__stat strong { font-size: 1.45rem; }
  .hero-marketplace .hero-v2__stat span { font-size: 0.62rem; }
  .hero-marketplace__visual { min-height: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-marketplace__product { opacity: 1; animation: none; }
  .hero-marketplace .hero-v2__actions .btn { transition: none; }
}

/* Desktop catalog: keep filters anchored while product results scroll. */
@media (min-width: 1024px) {
  .products-layout > .filter-sidebar {
    position: sticky;
    top: 16px;
    align-self: start;
    max-height: calc(100vh - 32px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--n-300) transparent;
  }

  .products-layout > .filter-sidebar::-webkit-scrollbar { width: 6px; }
  .products-layout > .filter-sidebar::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: var(--n-300);
  }

  .products-layout > .filter-sidebar .filter-header {
    position: sticky;
    top: 0;
    z-index: 2;
  }
}
