/* 2026-09-03: one calmer product distance across the full range.
   Product information stays on paper white; every packshot stage uses the
   official silver paper. Real product artwork keeps its original colour. */

/* Product dossiers open beneath a transparent navigation layer. Once the page
   moves, or a navigation surface opens, the header returns to the shared white
   paper used across the site. */
.product-editorial-dossier .site-header {
  border-bottom-color: transparent !important;
  background: transparent !important;
  backdrop-filter: none !important;
}

html.is-site-header-scrolled .product-editorial-dossier .site-header,
html.is-menu-open .product-editorial-dossier .site-header,
html.is-nav-panel-open .product-editorial-dossier .site-header,
html.is-site-search-open .product-editorial-dossier .site-header {
  border-bottom-color: var(--pdp-line, rgba(24, 25, 24, 0.2)) !important;
  background: var(--paper, #fafaf8) !important;
  backdrop-filter: none !important;
}

.product-editorial-dossier {
  --pdp-packshot-height: 46%;
  --pdp-packshot-max-width: 50%;
}

.product-editorial-dossier[data-product-id="serumOil"],
.product-editorial-dossier[data-product-id="peptideOil"],
.product-editorial-dossier[data-product-id="renewalSerum"],
.product-editorial-dossier[data-product-id="repairMask"] {
  --pdp-packshot-height: 42%;
}

.product-editorial-dossier[data-product-id="avocadoButter"],
.product-editorial-dossier[data-product-id="lavenderButter"] {
  --pdp-packshot-height: 48%;
  --pdp-packshot-max-width: 42%;
}

.product-editorial-dossier[data-product-id="lavenderScrub"] {
  --pdp-packshot-height: 46%;
  --pdp-packshot-max-width: 42%;
}

.product-editorial-dossier .pdp-dossier-hero .product-design2-media.pdp-clean-product-stage {
  background: #d3d5d1;
}

.product-editorial-dossier .pdp-dossier-hero .product-design2-copy {
  border-right: 0;
}

/* On desktop the transparent masthead must sit on one continuous paper field.
   Crop the silver packshot stage below the 88px two-row navigation (plus its
   1px rule) instead of letting the right half tint the header. The product and
   its real transparent artwork keep their existing scale and position. */
@media (min-width: 981px) {
  .product-editorial-dossier .product-detail--design2 > .product-design2-media {
    clip-path: inset(89px 0 0);
  }
}

.product-editorial-dossier .pdp-dossier-hero .pdp-clean-product-stage img.product-design2-product-anchor {
  bottom: 12%;
  left: 54%;
  width: auto;
  max-width: var(--pdp-packshot-max-width);
  height: var(--pdp-packshot-height);
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 20px 26px rgba(24, 25, 24, 0.14));
  transform: translateX(-50%);
}

/* Use the same quiet outline language as the homepage series cards. */
.product-editorial-dossier .pdp-dossier-hero .product-purchase-link {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: min(100%, 276px);
  min-width: 0;
  min-height: 50px;
  place-items: center;
  padding: 0 52px;
  border: 1px solid rgba(85, 87, 84, 0.28);
  background: transparent;
  box-shadow: none;
  color: rgba(24, 25, 24, 0.68);
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1;
  text-align: center;
}

.product-editorial-dossier .pdp-dossier-hero .product-purchase-link::after {
  position: absolute;
  top: 50%;
  right: 19px;
  display: block;
  width: 22px;
  height: 22px;
  background: url("../icons/heroicons-arrow-long-right.svg") center / 19px 19px no-repeat;
  content: "";
  opacity: 0.68;
  transform: translateY(-50%);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.product-editorial-dossier .pdp-dossier-hero .product-purchase-link:is(:hover, :focus-visible) {
  border-color: rgba(85, 87, 84, 0.46);
  background: rgba(228, 229, 225, 0.34);
  color: #181918;
}

.product-editorial-dossier .pdp-dossier-hero .product-purchase-link:is(:hover, :focus-visible)::after {
  opacity: 1;
  transform: translate(3px, -50%);
}

/* Product directory: the transparent source canvases stay intact and are
   pulled back as a group. Shape corrections preserve a believable visual
   relationship between tall bottles, dropper bottles, jars and the wide scrub. */
.product-directory-page .product-series-chapter .product-card--packshot {
  --directory-packshot-scale: 0.56;
}

.product-directory-page #product-avocado-body-butter,
.product-directory-page #product-lavender-body-butter {
  --directory-packshot-scale: 0.62;
}

.product-directory-page #product-lavender-scrub {
  --directory-packshot-scale: 0.6;
}

.product-directory-page .product-series-chapter .product-card--packshot .product-image {
  background: #d3d5d1;
}

.product-directory-page .product-series-chapter .product-card--packshot .product-image img,
.product-directory-page .product-series-chapter .product-card--packshot:hover .product-image img {
  transform: scale(var(--directory-packshot-scale));
}

/* These three legacy cards carried id-level scale rules; repeat their targets
   here so they obey the same full-range distance system. */
.product-directory-page #product-muguang .product-image img,
.product-directory-page #product-muguang:hover .product-image img,
.product-directory-page #product-repair-mask .product-image img,
.product-directory-page #product-repair-mask:hover .product-image img,
.product-directory-page #product-lavender-scrub .product-image img,
.product-directory-page #product-lavender-scrub:hover .product-image img {
  transform: scale(var(--directory-packshot-scale));
}

@media (max-width: 760px) {
  .product-editorial-dossier .pdp-dossier-hero .pdp-clean-product-stage img.product-design2-product-anchor {
    bottom: 12%;
    left: 52%;
    max-width: min(56%, var(--pdp-packshot-max-width));
  }

  .product-editorial-dossier .pdp-dossier-hero .product-purchase-link {
    width: 100%;
    min-height: 64px;
    margin-top: 30px;
    padding: 0 58px;
    font-size: 11px;
  }

  .product-editorial-dossier .pdp-dossier-hero .product-purchase-link::after {
    right: 22px;
    width: 24px;
    height: 24px;
    background-size: 20px 20px;
    opacity: 0.72;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-editorial-dossier .pdp-dossier-hero .product-purchase-link::after {
    transition: none;
  }
}
