/**
 * OEM ASTRA J — Phase 2: Desktop Hero Workshop Redesign
 * CSS only · Desktop ≥901px
 * No search in Hero (header owns search). Keeps IDs + JS hooks.
 */

@media (min-width: 901px) {
  :root {
    --ws-hero-blue: #1e5bb8;
    --ws-hero-blue-hover: #174a96;
    --ws-hero-ink: #1a2332;
    --ws-hero-muted: #5b6575;
    --ws-hero-bg: #f5f7fa;
    --ws-hero-card: #ffffff;
    --ws-hero-border: #e8edf3;
    --ws-hero-shadow: 0 8px 24px rgba(26, 35, 50, 0.06);
    --ws-hero-radius: 12px;
    /*
     * Hero sits in normal flow; Best Selling is a sibling below (no overlap).
     * Keep the +4cm downward growth; do not subtract a topsell-overlap strip.
     */
    --ws-hero-topsell-overlap: 0px;
    /* +4cm original growth + 2cm to fill former white gap above Best Selling */
    --ws-hero-h: calc(520px - 1cm + 4cm + 2cm);
  }

  /* ── Band: hero height ── */
  body.is-home-page .home-cinematic-band {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    background: var(--ws-hero-bg) !important;
    display: flex !important;
    flex-direction: column !important;
  }

  body.is-home-page .home-cinematic-band .mob-v2-hero-compose {
    display: contents !important;
  }

  body.is-home-page .home-cinematic-band > .mob-card--hero,
  body.is-home-page .home-cinematic-band .mob-card--hero {
    flex: 0 0 auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    background: transparent !important;
  }

  /* ── Hero shell ── */
  body.is-home-page .home-cinematic-band .mob-card--hero .hero.hero-v2,
  body.is-home-page .home-cinematic-band .hero.hero-v2,
  body.is-home-page .hero.hero-v2.hero--static,
  body.is-home-page .hero.hero-v2.hero--carousel {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: var(--ws-hero-h) !important;
    min-height: var(--ws-hero-h) !important;
    max-height: var(--ws-hero-h) !important;
    flex: 0 0 var(--ws-hero-h) !important;
    margin: 0 !important;
    overflow: hidden !important;
    background:
      linear-gradient(180deg, #f8fafc 0%, var(--ws-hero-bg) 55%, #eef2f7 100%) !important;
    border-bottom: 1px solid var(--ws-hero-border);
  }

  body.is-home-page .hero .mob-v2-hero-copy {
    display: none !important;
  }

  /* ── Full-bleed hero art (copy is baked into the image) ── */
  body.is-home-page .home-cinematic-band .hero-static-bg,
  body.is-home-page .hero.hero--static .hero-static-bg,
  body.is-home-page .home-cinematic-band .hero.hero--carousel .hero-slider,
  body.is-home-page .hero.hero--carousel .hero-slider {
    position: absolute !important;
    inset: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: auto !important;
    z-index: 1 !important;
    overflow: hidden !important;
    pointer-events: none !important;
    background: #dfe6ef !important;
  }

  html[dir="rtl"] body.is-home-page .home-cinematic-band .hero-static-bg,
  html[dir="rtl"] body.is-home-page .hero.hero--static .hero-static-bg,
  html[dir="rtl"] body.is-home-page .hero.hero--carousel .hero-slider {
    right: 0 !important;
    left: 0 !important;
  }

  body.is-home-page .home-cinematic-band .hero-static-bg picture,
  body.is-home-page .hero.hero--static .hero-static-bg picture,
  body.is-home-page .hero.hero--carousel .hero-slide picture {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
  }

  body.is-home-page .home-cinematic-band .hero-static-img,
  body.is-home-page .hero.hero--static .hero-static-img,
  body.is-home-page .hero.hero--carousel .hero-slide-img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    filter: none;
  }

  /*
   * Slide 1 (hero-1): dense edge-to-edge 16:9 marketing banner.
   * Desktop hero band (~633px × full vw) is much wider than 16:9, so
   * object-fit:cover crops top/bottom (badge, CTA, logos). Contain keeps
   * the full artwork visible; navy letterbox matches banner edges.
   */
  body.is-home-page .hero.hero--carousel .hero-slide[data-slide="0"] {
    background: #001023 !important;
  }

  body.is-home-page .hero.hero--carousel .hero-slide[data-slide="0"] .hero-slide-img {
    object-fit: contain !important;
    /* Nudge slide 1 artwork down 1.5cm within the hero band */
    object-position: center calc(50% + 1.5cm) !important;
  }

  html[dir="rtl"] body.is-home-page .home-cinematic-band .hero-static-img,
  html[dir="rtl"] body.is-home-page .hero.hero--static .hero-static-img,
  html[dir="rtl"] body.is-home-page .hero.hero--carousel .hero-slide-img {
    object-position: center center !important;
  }

  html[dir="rtl"] body.is-home-page .hero.hero--carousel .hero-slide[data-slide="0"] .hero-slide-img {
    object-position: center calc(50% + 1.5cm) !important;
  }

  /* Slide 2 (hero-2 / data-slide="1"): nudge artwork down 2cm */
  body.is-home-page .hero.hero--carousel .hero-slide[data-slide="1"] .hero-slide-img,
  html[dir="rtl"] body.is-home-page .hero.hero--carousel .hero-slide[data-slide="1"] .hero-slide-img {
    object-position: center calc(50% + 2cm) !important;
  }

  /* Workshop light theme: suppress dark cinematic fade from home-premium */
  body.is-home-page .home-cinematic-band .hero-static-bg::after,
  body.is-home-page .hero.hero--static .hero-static-bg::after,
  body.is-home-page .hero.hero--static .hero-static-bg::before {
    content: none !important;
    display: none !important;
  }

  body.is-home-page .hero.hero--carousel .hero-slide {
    position: absolute !important;
    inset: 0 !important;
    pointer-events: none !important;
  }

  /* HTML copy stays in DOM (IDs preserved) — hidden while art includes text */
  body.is-home-page .home-cinematic-band .hero.hero--static .hero-v2-layout,
  body.is-home-page .hero.hero--static .hero-v2-layout,
  body.is-home-page .home-cinematic-band .hero.hero--carousel .hero-v2-layout,
  body.is-home-page .hero.hero--carousel .hero-v2-layout {
    display: none !important;
    visibility: hidden !important;
  }

  body.is-home-page .hero.hero--carousel .slider-dots {
    display: flex !important;
    bottom: 16px !important;
    z-index: 8 !important;
    pointer-events: auto !important;
    gap: 8px;
  }

  body.is-home-page .hero.hero--carousel .slider-dots .dot {
    width: 4mm;
    height: 2px;
    border-radius: 1px;
    border: none;
    background: rgba(255, 255, 255, 0.55);
    box-shadow: 0 1px 3px rgba(26, 35, 50, 0.2);
    cursor: pointer;
    padding: 0;
  }

  body.is-home-page .hero.hero--carousel .slider-dots .dot.active {
    background: var(--ws-hero-blue);
    border: none;
    box-shadow: 0 0 0 2px rgba(30, 91, 184, 0.18);
  }

  /* ── Copy styles (kept for when HTML overlay is re-enabled) ── */
  body.is-home-page .home-cinematic-band .hero.hero--static .hero-v2-layout.is-html-copy,
  body.is-home-page .hero.hero--static .hero-v2-layout.is-html-copy {
    display: flex !important;
    visibility: visible !important;
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    right: auto !important;
    width: 50% !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
    padding: 36px 28px 32px 36px !important;
    box-sizing: border-box !important;
    align-items: center !important;
    z-index: 5 !important;
    pointer-events: none !important;
    background: linear-gradient(
      90deg,
      #f5f7fa 0%,
      #f5f7fa 32%,
      rgba(245, 247, 250, 0.94) 46%,
      rgba(245, 247, 250, 0.68) 60%,
      rgba(245, 247, 250, 0.32) 74%,
      rgba(245, 247, 250, 0.1) 88%,
      rgba(245, 247, 250, 0) 100%
    ) !important;
  }

  html[dir="rtl"] body.is-home-page .home-cinematic-band .hero.hero--static .hero-v2-layout,
  html[dir="rtl"] body.is-home-page .hero.hero--static .hero-v2-layout {
    left: auto !important;
    right: 0 !important;
    padding: 36px 36px 32px 28px !important;
    background: linear-gradient(
      270deg,
      #f5f7fa 0%,
      #f5f7fa 32%,
      rgba(245, 247, 250, 0.94) 46%,
      rgba(245, 247, 250, 0.68) 60%,
      rgba(245, 247, 250, 0.32) 74%,
      rgba(245, 247, 250, 0.1) 88%,
      rgba(245, 247, 250, 0) 100%
    ) !important;
  }

  body.is-home-page .home-cinematic-band .hero.hero--static .hero-v2-copy,
  body.is-home-page .hero.hero--static .hero-v2-copy {
    display: flex !important;
    visibility: visible !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 0 !important;
    width: 100% !important;
    max-width: 520px !important;
    padding: 0 !important;
    pointer-events: auto !important;
    text-align: start !important;
  }

  html[dir="rtl"] body.is-home-page .hero.hero--static .hero-v2-copy {
    text-align: right !important;
    padding: 0 !important;
    margin-inline-start: auto !important;
  }

  /* Headline — slightly smaller; Brand Promise is the focus */
  body.is-home-page .hero.hero--static .hero-v2-desc--highlight,
  body.is-home-page .home-cinematic-band .hero.hero--static .hero-v2-desc--highlight {
    display: block !important;
    position: static !important;
    top: auto !important;
    margin: 0 0 8px !important;
    max-width: none !important;
    font-family: var(--font-en, "Segoe UI", sans-serif) !important;
    font-size: clamp(20px, 2.05vw, 30px) !important;
    font-weight: 700 !important;
    line-height: 1.22 !important;
    letter-spacing: 0.01em !important;
    text-transform: uppercase !important;
    color: #3a4556 !important;
    -webkit-text-fill-color: #3a4556 !important;
    background: none !important;
    filter: none !important;
    animation: wsHeroFadeIn 0.55s ease both;
  }

  html[dir="rtl"] body.is-home-page .hero.hero--static .hero-v2-desc--highlight {
    font-family: var(--font-ar, Cairo, sans-serif) !important;
    text-transform: none !important;
    font-size: clamp(18px, 1.9vw, 26px) !important;
    line-height: 1.4 !important;
  }

  body.is-home-page .hero.hero--static .hero-v2-desc__en-lead,
  body.is-home-page .hero.hero--static .hero-v2-desc__en-tail {
    display: block !important;
  }

  body.is-home-page .hero.hero--static .hero-v2-desc__en-tail {
    margin-top: 0.18em !important;
    font-size: 0.72em !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em !important;
    text-transform: none !important;
    color: #5b6575 !important;
    -webkit-text-fill-color: #5b6575 !important;
  }

  /* Respect AR/EN toggle from existing JS (do not force-show hidden EN block) */
  body.is-home-page .hero.hero--static #premiumHeroDescEn[hidden],
  body.is-home-page .hero.hero--static .hero-v2-desc__en[hidden] {
    display: none !important;
  }

  body.is-home-page .hero.hero--static #premiumHeroDescAr[hidden],
  body.is-home-page .hero.hero--static .hero-v2-desc__ar[hidden] {
    display: none !important;
  }

  body.is-home-page .hero.hero--static .hero-opel-mark {
    display: none !important;
  }

  body.is-home-page .hero.hero--static .astra-j-de,
  body.is-home-page .hero.hero--static .hero-v2-desc--highlight .astra-j-de,
  body.is-home-page .hero.hero--static .hero-astra-mark,
  body.is-home-page .hero.hero--static .hero-v2-desc--highlight .hero-astra-mark {
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    color: #1e5bb8 !important;
    -webkit-text-fill-color: #1e5bb8 !important;
    font-weight: 800 !important;
    font-style: normal !important;
  }

  /* Brand Promise — visual focus (~25% larger than prior headline scale) */
  body.is-home-page .hero.hero--static .hero-v2-brand,
  body.is-home-page .home-cinematic-band .hero.hero--static .hero-v2-brand {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-direction: column !important;
    gap: 2px !important;
    margin: 2cm 0 18px !important;
    max-width: none !important;
    font-family: var(--font-en, "Segoe UI", sans-serif) !important;
    font-size: clamp(18px, 1.7vw, 24px) !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    letter-spacing: 0.03em !important;
    text-transform: uppercase !important;
    color: #3a4556 !important;
    -webkit-text-fill-color: #3a4556 !important;
    filter: none !important;
    animation: none !important;
  }

  body.is-home-page .hero.hero--static .hero-v2-brand > span {
    display: block !important;
    white-space: nowrap !important;
  }

  body.is-home-page .hero.hero--static .hero-v2-brand em {
    font-style: normal !important;
    font-weight: 900 !important;
    color: var(--ws-hero-blue) !important;
    -webkit-text-fill-color: var(--ws-hero-blue) !important;
  }

  /* Trust cards 2×2 */
  body.is-home-page .home-cinematic-band .hero.hero--static .hero-v2-features,
  body.is-home-page .hero.hero--static .hero-v2-features {
    display: grid !important;
    visibility: visible !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
    top: auto !important;
    animation: wsHeroFadeIn 0.65s ease both;
    animation-delay: 0.06s;
  }

  body.is-home-page .hero.hero--static .hero-v2-features li {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    min-width: 0 !important;
    padding: 12px 14px !important;
    background: var(--ws-hero-card) !important;
    border: 1px solid var(--ws-hero-border) !important;
    border-radius: var(--ws-hero-radius) !important;
    box-shadow: var(--ws-hero-shadow) !important;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease !important;
  }

  body.is-home-page .hero.hero--static .hero-v2-features li:hover {
    border-color: rgba(30, 91, 184, 0.35) !important;
    box-shadow: 0 10px 28px rgba(30, 91, 184, 0.1) !important;
    transform: translateY(-1px) !important;
  }

  body.is-home-page .hero.hero--static .hero-v2-feature-icon {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    border-radius: 8px !important;
    background: rgba(30, 91, 184, 0.08) !important;
    color: var(--ws-hero-blue) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  body.is-home-page .hero.hero--static .hero-v2-feature-icon svg {
    width: 15px !important;
    height: 15px !important;
    stroke: currentColor !important;
    fill: none !important;
    stroke-width: 1.8 !important;
  }

  body.is-home-page .hero.hero--static .hero-v2-feature-text strong {
    font-family: var(--font-en, "Segoe UI", sans-serif) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em !important;
    text-transform: none !important;
    line-height: 1.25 !important;
    color: var(--ws-hero-ink) !important;
    -webkit-text-fill-color: var(--ws-hero-ink) !important;
    background: none !important;
  }

  html[dir="rtl"] body.is-home-page .hero.hero--static .hero-v2-feature-text strong {
    font-family: var(--font-ar, Cairo, sans-serif) !important;
  }

  body.is-home-page .hero.hero--static .hero-v2-desc--highlight,
  body.is-home-page .home-cinematic-band .hero.hero--static .hero-v2-desc--highlight,
  body.is-home-page .hero.hero--static .hero-v2-brand,
  body.is-home-page .hero.hero--static .hero-v2-features li,
  body.is-home-page .hero.hero--static .hero-v2-copy > * {
    visibility: visible !important;
    opacity: 1 !important;
  }

  body.is-home-page .hero.hero--static .hero-v2-desc--highlight {
    animation: wsHeroFadeIn 0.55s ease both !important;
  }

  body.is-home-page .hero.hero--static .hero-v2-features {
    animation: wsHeroFadeIn 0.65s ease both !important;
    animation-delay: 0.06s !important;
  }

  /* Hide all Hero CTAs on desktop (buttons remain in DOM for IDs/JS) */
  body.is-home-page .hero-cta-overlay,
  body.is-home-page .home-cinematic-band .hero-cta-overlay,
  body.is-home-page .hero.hero--static .hero-v2-copy .hero-cta-overlay,
  body.is-home-page .hero-cta-overlay .btn-hero-find,
  body.is-home-page .hero-cta-overlay .btn-hero-learn,
  body.is-home-page .hero-cta-overlay .btn-hero-flash {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  body.is-home-page .hero .hero-scroll-down {
    display: none !important;
  }

  body.is-home-page .hero .hero-premium-fx,
  body.is-home-page .hero .hero-gold-streak,
  body.is-home-page .hero .hero-smoke,
  body.is-home-page .hero .hero-particle {
    display: none !important;
  }

  body.is-home-page .home-cinematic-band > #topParts.top-selling-section,
  body.is-home-page .home-cinematic-band #topParts.top-selling-section {
    background: #ffffff !important;
    padding: 16px 0 16px !important;
    margin: 0 !important;
  }

  body.is-home-page .home-cinematic-band #topParts.top-selling-section::before {
    display: none !important;
  }

  /*
   * Carousel: Best Selling must stay fully below the hero (never tucked into
   * the hero’s bottom strip). Slider-dots stay inside the hero box only.
   */
  body.is-home-page .home-cinematic-band:has(.hero.hero--carousel) > .mob-card--hero,
  body.is-home-page .home-cinematic-band:has(.hero.hero--carousel) .mob-card--hero {
    z-index: 0 !important;
  }

  body.is-home-page .home-cinematic-band:has(.hero.hero--carousel) > #topParts.top-selling-section,
  body.is-home-page .home-cinematic-band:has(.hero.hero--carousel) #topParts.top-selling-section {
    position: relative !important;
    z-index: 2 !important;
    margin-top: 0 !important;
    padding: 16px 0 16px !important;
    background: #ffffff !important;
  }

  body.is-home-page .home-cinematic-band:has(.hero.hero--carousel) #topParts.top-selling-section .section-inner {
    padding-top: 0 !important;
  }

  body.is-home-page .home-cinematic-band:has(.hero.hero--carousel) #topParts.top-selling-section .section-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 2 !important;
    margin-bottom: 4px !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  body.is-home-page .home-cinematic-band:has(.hero.hero--carousel) #topPartsBestSellingBtn,
  body.is-home-page .home-cinematic-band:has(.hero.hero--carousel) #topParts.top-selling-section .btn-all-gold {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 2 !important;
  }

  body.is-home-page .home-cinematic-band:has(.hero.hero--carousel) .hero.hero--carousel .slider-dots {
    bottom: 18px !important;
    z-index: 3 !important;
  }

  @keyframes wsHeroFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @media (prefers-reduced-motion: reduce) {
    body.is-home-page .hero.hero--static .hero-v2-desc--highlight,
    body.is-home-page .hero.hero--static .hero-v2-features,
    body.is-home-page .hero.hero--static .hero-enter-item {
      animation: none !important;
    }

    body.is-home-page .hero.hero--static .hero-v2-features li:hover,
    body.is-home-page .hero-cta-overlay .btn-hero-find.btn-hero-expand:hover {
      transform: none !important;
    }
  }
}

@media (max-width: 900px) {
  .btn-hero-learn {
    display: none !important;
  }
}
