/**
 * OEM ASTRA J — Premium header + hero (black / graphite / racing yellow).
 * Scope: <nav> header and the first hero slide (.hp-hero) only.
 */
:root {
  --hp-black: #08090a;
  --hp-graphite: #121416;
  --hp-graphite-2: #1a1d20;
  --hp-line: rgba(255, 255, 255, .08);
  --hp-line-strong: rgba(255, 255, 255, .16);
  --hp-yellow: #f5c518;
  --hp-yellow-2: #ffd84a;
  --hp-text: #f2f4f5;
  --hp-muted: #9aa1a7;
  --hp-red: #d71920;
}

/* ===================== HERO (shared) ===================== */
html body:not(#hp-x) .hp-hero {
  position: absolute;
  inset: 0;
  overflow: hidden;
  color: var(--hp-text);
  background:
    radial-gradient(120% 90% at 72% 78%, rgba(245, 197, 24, .10) 0%, rgba(245, 197, 24, 0) 42%),
    radial-gradient(90% 120% at 70% 40%, #262a2e 0%, var(--hp-graphite) 48%, var(--hp-black) 100%);
  isolation: isolate;
}
html body:not(#hp-x) .hp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(168deg, transparent 0 74%, rgba(245, 197, 24, .55) 74% 74.35%, transparent 74.35% 75.6%, rgba(245, 197, 24, .22) 75.6% 75.8%, transparent 75.8%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 72px);
  pointer-events: none;
}
html body:not(#hp-x) .hp-hero__copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}
html body:not(#hp-x) .hp-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--hp-yellow);
  font-family: var(--font-en, Inter, system-ui, sans-serif);
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
html body:not(#hp-x) .hp-hero__eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  background: var(--hp-yellow);
  border-radius: 2px;
}
html body:not(#hp-x) .hp-hero__title {
  margin: 0;
  color: #fff;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -.01em;
  text-shadow: none;
}
html body:not(#hp-x) .hp-hero__model {
  display: inline-block;
  color: var(--hp-yellow);
  font-family: var(--font-en, Inter, system-ui, sans-serif);
  font-style: italic;
  font-weight: 900;
  letter-spacing: .02em;
  white-space: nowrap;
}
html body:not(#hp-x) .hp-hero__sub {
  margin: 0;
  color: var(--hp-muted);
  font-weight: 600;
  line-height: 1.5;
}
html body:not(#hp-x) .hp-hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; }
html body:not(#hp-x) .hp-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  color: var(--hp-text);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--hp-line-strong);
  border-radius: 10px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
html body:not(#hp-x) .hp-hero__cta:hover { border-color: var(--hp-yellow); color: #fff; }
html body:not(#hp-x) .hp-hero__cta--primary {
  color: #111;
  background: linear-gradient(180deg, var(--hp-yellow-2) 0%, var(--hp-yellow) 100%);
  border-color: var(--hp-yellow);
  box-shadow: 0 10px 26px rgba(245, 197, 24, .25);
}
html body:not(#hp-x) .hp-hero__cta--primary:hover { color: #111; transform: translateY(-1px); filter: brightness(1.04); }
html body:not(#hp-x) .hp-hero__cta svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
html[dir="rtl"] body:not(#hp-x) .hp-hero__cta svg { transform: scaleX(-1); }
html body:not(#hp-x) .hp-hero__cta:focus-visible { outline: 2px solid var(--hp-yellow); outline-offset: 2px; }
html body:not(#hp-x) .hp-hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #c7ccd0;
  font-weight: 700;
}
html body:not(#hp-x) .hp-hero__trust li { display: inline-flex; align-items: center; gap: 7px; }
html body:not(#hp-x) .hp-hero__trust li::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--hp-yellow);
  border-radius: 50%;
}
html body:not(#hp-x) .hp-hero img.hp-hero__car {
  position: static;
  display: block;
  max-width: none;
  height: auto;
  margin: 0;
  padding: 0;
  object-fit: contain;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter: none;
  opacity: 1;
  transform: none;
}

/* ===================== HERO — desktop slide ===================== */
html body:not(#hp-x) .hp-hero--desktop {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 8px;
  padding: 0 clamp(28px, 3.4vw, 56px);
}
html body:not(#hp-x) .hp-hero--desktop .hp-hero__copy { gap: 14px; }
html body:not(#hp-x) .hp-hero--desktop .hp-hero__eyebrow { font-size: 12px; }
html body:not(#hp-x) .hp-hero--desktop .hp-hero__title { font-size: clamp(28px, 2.5vw, 44px); }
html body:not(#hp-x) .hp-hero--desktop .hp-hero__model { font-size: 1.12em; }
html body:not(#hp-x) .hp-hero--desktop .hp-hero__sub { font-size: clamp(13px, .95vw, 16px); }
html body:not(#hp-x) .hp-hero--desktop .hp-hero__cta { min-height: 46px; font-size: 15px; }
html body:not(#hp-x) .hp-hero--desktop .hp-hero__trust { font-size: 13px; }
html body:not(#hp-x) .hp-hero--desktop .hp-hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-width: 0;
}
html body:not(#hp-x) .hp-hero--desktop .hp-hero__visual::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 9%;
  height: 16%;
  z-index: 0;
  background: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, .65) 0%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}
html body:not(#hp-x) #desktopHeroCarousel .hp-hero--desktop img.hp-hero__car {
  position: relative !important;
  inset: auto !important;
  z-index: 1 !important;
  width: 100% !important;
  height: auto !important;
  max-height: 92% !important;
  object-fit: contain !important;
  transform: none !important;
}

/* ===================== HERO — mobile slide ===================== */
html body:not(#hp-x) .hp-hero--mobile { padding: 18px 16px 0; }
html body:not(#hp-x) .hp-hero--mobile .hp-hero__copy { gap: 6px; max-width: 58%; }
html body:not(#hp-x) .hp-hero--mobile .hp-hero__eyebrow { gap: 7px; font-size: 9.5px; letter-spacing: .16em; }
html body:not(#hp-x) .hp-hero--mobile .hp-hero__eyebrow::before { width: 18px; height: 2px; }
html body:not(#hp-x) .hp-hero--mobile .hp-hero__title { font-size: 21px; }
html body:not(#hp-x) .hp-hero--mobile .hp-hero__model { font-size: 1.08em; }
html body:not(#hp-x) .hp-hero--mobile .hp-hero__sub { font-size: 11.5px; }
html body:not(#hp-x) .hp-hero--mobile .hp-hero__ctas { margin-top: 6px; }
html body:not(#hp-x) .hp-hero--mobile .hp-hero__cta { min-height: 38px; padding: 0 16px; border-radius: 9px; font-size: 13px; }
html body:not(#hp-x) .hp-hero--mobile .hp-hero__cta svg { width: 16px; height: 16px; }
html body:not(#hp-x) #heroSlider .hp-hero--mobile img.hp-hero__car {
  position: absolute !important;
  z-index: 1 !important;
  top: auto !important;
  bottom: 8% !important;
  left: auto !important;
  right: auto !important;
  inset-inline-end: 3% !important;
  width: min(58%, 420px) !important;
  height: auto !important;
  max-width: none !important;
  max-height: 56% !important;
  object-fit: contain !important;
  object-position: center bottom !important;
  transform: none !important;
}
html body:not(#hp-x) .hp-hero--mobile::after {
  content: "";
  position: absolute;
  inset-inline-end: 3%;
  bottom: 7%;
  width: min(56%, 400px);
  height: 12%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, .7) 0%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}
@media (max-width: 360px) {
  html body:not(#hp-x) #heroSlider .hp-hero--mobile img.hp-hero__car {
    inset-inline-end: 2% !important;
    width: 54% !important;
  }
}
@media (max-width: 320px) {
  html body:not(#hp-x) #heroSlider .hp-hero--mobile img.hp-hero__car { width: 48% !important; }
  html body:not(#hp-x) .hp-hero--mobile::after { width: 46%; }
}

/* ===================== HEADER — desktop ===================== */
@media (min-width: 901px) {
  html body:not(#hp-x) > nav:not(#hp-y) {
    background: linear-gradient(180deg, #0d0e10 0%, var(--hp-black) 100%) !important;
    border-bottom: 1px solid var(--hp-line) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35) !important;
  }
  html body:not(#hp-x) > nav:not(#hp-y) .nav-main,
  html body:not(#hp-x) > nav:not(#hp-y) .nav-main-row { background: transparent !important; }
  html body:not(#hp-x) > nav:not(#hp-y) .nav-logo { gap: 12px !important; align-items: center !important; align-self: center !important; }
  html body:not(#hp-x) > nav:not(#hp-y) .nav-brand-suffix { transform: none !important; align-self: center !important; }
  html body:not(#hp-x) > nav:not(#hp-y) .nav-logo-img {
    content: url("../assets/garage/oem-logo-light.webp?v=1");
    width: auto !important;
    height: 26px !important;
    max-height: none !important;
    margin: 0 !important;
    transform: none !important;
    object-fit: contain !important;
  }
  html body:not(#hp-x) > nav:not(#hp-y) .nav-brand-divider { background: var(--hp-line-strong) !important; }
  html body:not(#hp-x) > nav:not(#hp-y) .nav-brand-suffix,
  html body:not(#hp-x) > nav:not(#hp-y) .nav-brand-suffix span { color: #fff !important; }
  html body:not(#hp-x) > nav:not(#hp-y) .nav-brand-suffix .nav-brand-suffix__j { color: var(--hp-red) !important; -webkit-text-fill-color: var(--hp-red) !important; }

  html body:not(#hp-x) > nav:not(#hp-y) .nav-search {
    background: var(--hp-graphite-2) !important;
    border: 1px solid var(--hp-line-strong) !important;
    box-shadow: none !important;
  }
  html body:not(#hp-x) > nav:not(#hp-y) .nav-search:focus-within { border-color: var(--hp-yellow) !important; }
  html body:not(#hp-x) > nav:not(#hp-y) .nav-search input,
  html body:not(#hp-x) > nav:not(#hp-y) .nav-search select {
    color: var(--hp-text) !important;
    background: transparent !important;
    -webkit-text-fill-color: var(--hp-text) !important;
  }
  html body:not(#hp-x) > nav:not(#hp-y) .nav-search select option { color: #111; background: #fff; }
  html body:not(#hp-x) > nav:not(#hp-y) .nav-search input::placeholder { color: var(--hp-muted) !important; -webkit-text-fill-color: var(--hp-muted) !important; }
  html body:not(#hp-x) > nav:not(#hp-y) .nav-search-filter { border-color: var(--hp-line-strong) !important; background: transparent !important; }
  html body:not(#hp-x) > nav:not(#hp-y) .nav-search-filter-chevron { stroke: var(--hp-muted) !important; color: var(--hp-muted) !important; }
  html body:not(#hp-x) > nav:not(#hp-y) .nav-search-btn {
    color: #111 !important;
    background: var(--hp-yellow) !important;
    border-color: var(--hp-yellow) !important;
  }
  html body:not(#hp-x) > nav:not(#hp-y) .nav-search-btn svg { stroke: #111 !important; color: #111 !important; }

  html body:not(#hp-x) > nav:not(#hp-y) .nav-util-cluster .nav-util-btn {
    color: var(--hp-text) !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    box-shadow: none !important;
  }
  html body:not(#hp-x) > nav:not(#hp-y) .nav-util-cluster .nav-util-btn:hover {
    border-color: var(--hp-line-strong) !important;
    background: rgba(255, 255, 255, .04) !important;
  }
  html body:not(#hp-x) > nav:not(#hp-y) .nav-util-cluster .nav-util-btn :is(svg, .nav-util-btn__label, span) { color: var(--hp-text) !important; }
  html body:not(#hp-x) > nav:not(#hp-y) .nav-util-cluster .nav-util-btn svg:not(.nav-garage-icon-svg) { stroke: currentColor !important; }
  html body:not(#hp-x) > nav:not(#hp-y) .nav-util-cluster .nav-util-btn__icon {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }
  html body:not(#hp-x) > nav:not(#hp-y) .nav-cart-btn .cart-badge,
  html body:not(#hp-x) > nav:not(#hp-y) .nav-cart-btn .cart-badge span {
    color: #111 !important;
    background: var(--hp-yellow) !important;
    border-color: var(--hp-black) !important;
    -webkit-text-fill-color: #111 !important;
  }

  html body:not(#hp-x) > nav:not(#hp-y) #navLinksRow {
    background: var(--hp-graphite) !important;
    border-top: 1px solid var(--hp-line) !important;
    box-shadow: none !important;
  }
  html body:not(#hp-x) > nav:not(#hp-y) #navLinksRow .nav-links-item,
  html body:not(#hp-x) > nav:not(#hp-y) #navLinksRow .nav-links-item span { color: #c9ced2 !important; }
  html body:not(#hp-x) > nav:not(#hp-y) #navLinksRow .nav-links-item:hover,
  html body:not(#hp-x) > nav:not(#hp-y) #navLinksRow .nav-links-item:hover span { color: var(--hp-yellow) !important; }
  html body:not(#hp-x) > nav:not(#hp-y) #navLinksRow .nav-links-shop-btn {
    color: #111 !important;
    background: var(--hp-yellow) !important;
    border-color: var(--hp-yellow) !important;
    box-shadow: none !important;
  }
  html body:not(#hp-x) > nav:not(#hp-y) #navLinksRow .nav-links-shop-btn :is(span, svg) { color: #111 !important; stroke: #111 !important; }
  html body:not(#hp-x) > nav:not(#hp-y) #navEnginePicker #navEngineTrigger#navEngineTrigger {
    color: var(--hp-text) !important;
    background: var(--hp-graphite-2) !important;
    border: 1px solid var(--hp-line-strong) !important;
    box-shadow: none !important;
  }
  html body:not(#hp-x) > nav:not(#hp-y) #navEnginePicker #navEngineTrigger#navEngineTrigger :is(span, strong) { color: var(--hp-text) !important; -webkit-text-fill-color: var(--hp-text) !important; }
  html body:not(#hp-x) > nav:not(#hp-y) #navEnginePicker #navEngineTrigger#navEngineTrigger .nav-engine-picker__shopping { color: var(--hp-muted) !important; -webkit-text-fill-color: var(--hp-muted) !important; }
  html body:not(#hp-x) > nav:not(#hp-y) #navEnginePicker #navEngineTrigger#navEngineTrigger svg { stroke: var(--hp-yellow) !important; color: var(--hp-yellow) !important; }

  html body:not(#hp-x) #desktopHeroCarousel,
  html body:not(#hp-x) .desktop-hero-3070__visual { background: var(--hp-black) !important; }
}

/* ===================== HEADER — mobile ===================== */
@media (max-width: 900px) {
  html body:not(#hp-x) > nav:not(#hp-y):not(.mob-bottom-bar),
  html body:not(#hp-x) > nav:not(#hp-y) .nav-main-row {
    background: var(--hp-black) !important;
  }
  html body:not(#hp-x) > nav:not(#hp-y):not(.mob-bottom-bar) { border-bottom: 1px solid var(--hp-line) !important; }
  html body:not(#hp-x) > nav:not(#hp-y) .nav-brand-suffix .nav-brand-suffix__j { color: var(--hp-red) !important; -webkit-text-fill-color: var(--hp-red) !important; }
  html body:not(#hp-x) > nav:not(#hp-y) .nav-cart-btn .cart-badge {
    color: var(--hp-yellow) !important;
    background: transparent !important;
    -webkit-text-fill-color: var(--hp-yellow) !important;
  }
  html body:not(#hp-x) #hero,
  html body:not(#hp-x) #heroSlider { background: var(--hp-black) !important; }
}
