/* CP366 compatibility rules: product imagery stays on the standard site surface. */
html body.pg-visual-system .pg-fx-product-stage,
html body.pg-fx-visual-repair .pg-fx-product-stage,
html body.pg-visual-system .page.subpage-shell .product-page[data-pg-product-id] .product-layout > picture.product-image-wrap.pg-fx-product-stage {
  background-color: #020811 !important;
  background-image: none !important;
  background-size: 270% auto !important;
  background-position: center top !important;
  background-repeat: no-repeat !important;
}

html body.pg-visual-system .pg-fx-product-stage::before,
html body.pg-fx-visual-repair .pg-fx-product-stage::before {
  background-image: none !important;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

/* Give the desktop Hero copy the same visual weight as its approved artwork. */
@media (min-width: 1024px) {
  html body.pg-fx-visual-repair.pg-page-home .pgd-hero-section > .pg-home-hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: clamp(32px, 3.2vw, 58px) !important;
  }

  html body.pg-fx-visual-repair.pg-page-home .pgd-hero-section .pgd-hero-copy {
    width: 100% !important;
    max-width: 720px !important;
  }

  html body.pg-fx-visual-repair.pg-page-home .pgd-hero-section .pgd-hero-copy h1 {
    font-size: clamp(46px, 4.15vw, 72px) !important;
    line-height: .98 !important;
  }

  html body.pg-fx-visual-repair.pg-page-home .pgd-hero-section .pgd-hero-copy > p:not(.pgd-hero-eyebrow) {
    max-width: 680px !important;
    font-size: clamp(18px, 1.25vw, 21px) !important;
    line-height: 1.55 !important;
  }

  html body.pg-fx-visual-repair.pg-page-home .pgd-hero-section .pgd-hero-eyebrow {
    font-size: clamp(13px, .95vw, 15px) !important;
  }

  html body.pg-fx-visual-repair.pg-page-home .pgd-hero-section .pgd-cms-benefits {
    width: 100% !important;
    max-width: none !important;
    gap: 8px 12px !important;
  }

  html body.pg-fx-visual-repair.pg-page-home .pgd-hero-section .pgd-cms-benefits > span {
    font-size: clamp(11px, .82vw, 13px) !important;
  }

  html body.pg-fx-visual-repair.pg-page-home .pgd-hero-section .pgd-cms-quote {
    min-height: 48px !important;
    padding-inline: 20px !important;
    font-size: 15px !important;
  }

  html body.pg-fx-visual-repair.pg-page-home .pgd-hero-section .pgd-hero-flow > span {
    font-size: clamp(11px, .8vw, 13px) !important;
  }
}

/* A product with no approved photo keeps the site surface and category icon,
   without showing a verification/pending message to shoppers. */
html body.pg-visual-system .product-page .pg-product-visual-fallback {
  display: grid !important;
  place-items: center !important;
  align-content: center !important;
  min-height: clamp(18rem, 42vw, 34rem) !important;
  padding: 24px !important;
  text-align: center !important;
}
