/* For Her 1.20.316 — consistent home rhythm and configurable PDP commerce. */
html body[data-template="home"] #main section[section-id]:is(.elite-section,.elite-who){
  margin-block:0!important;padding-block:min(var(--ew-spacing,24px),24px)!important;
}
html body[data-template="home"] #main section[section-id].elite-stories{
  padding-block:10px!important;margin-block:0!important;
}
html body[data-template="home"] #main .elite-stories .elite-section-heading{margin-bottom:12px!important}
html body[data-template="home"] #main section[section-id]:is(.elite-promos,.elite-split-banner){
  margin-block:0!important;padding-block:8px!important;
}
html body[data-template="home"] #main section[section-id].elite-hero{margin-block:0!important;padding-block:0!important}
html body[data-template="home"] #main section[section-id]:is(.elite-promos,.elite-split-banner,.elite-hero)+section[section-id]:is(.elite-promos,.elite-split-banner,.elite-hero){padding-block-start:0!important;margin-block-start:0!important}
html body[data-template="home"] #main section[section-id] .elite-section-heading{margin-bottom:18px!important}
html body[data-template="home"] #main section.featured-product-section[section-id]{margin-block:min(var(--mrg-t-desktop,24px),24px) 20px!important}

/* Neutralise legacy arrows (including dynamically inserted ones); dots stay
   at the bottom and are independent of banner header overlap settings. */
html body .elite-hero[data-hero-slider] :is([data-hero-prev],[data-hero-next],.elite-hero__arrow){display:none!important}
html body .elite-hero[data-hero-slider] [data-hero-dots]{left:0!important;right:0!important;inset-inline:0!important;transform:none!important;max-width:none!important;justify-content:center!important}

/* Featured product: central gallery, one corner badge and a clear red price. */
html body section.featured-product-section.featured-product-reference .featured-product-images{position:relative!important;align-items:center!important}
html body section.featured-product-section.featured-product-reference .main-image-wrapper{
  display:grid!important;place-items:center!important;justify-self:center!important;
  width:100%!important;margin-inline:auto!important;padding:14px!important;box-sizing:border-box!important;
}
html body section.featured-product-section.featured-product-reference img.featured-product-main-img{
  display:block!important;object-fit:contain!important;object-position:center!important;
  width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;
  margin:0!important;transform:none!important;
}
html body section.featured-product-section.featured-product-reference .thumbnails-wrapper{justify-content:center!important;margin-inline:auto!important}
html body section.featured-product-section.featured-product-reference .featured-product-images>.featured-product-offer-badge{
  position:absolute!important;inset-block-start:12px!important;inset-inline:auto!important;
  right:12px!important;left:auto!important;z-index:5!important;display:inline-flex!important;align-items:center!important;
  justify-content:center!important;isolation:isolate;overflow:hidden!important;
  min-height:34px!important;max-width:calc(100% - 24px)!important;margin:0!important;padding:7px 16px!important;
  border:1px solid #c2a45f!important;border-radius:8px!important;background:#303a50!important;
  color:#fff!important;font-size:12px!important;font-weight:700!important;line-height:1.4!important;
  box-shadow:0 3px 12px rgba(30,40,60,.14)!important;
}
html body section.featured-product-section.featured-product-reference .featured-product-images>.featured-product-offer-badge::after{
  content:"";position:absolute;inset-block:-30%;inset-inline-start:-80%;width:45%;pointer-events:none;
  background:linear-gradient(100deg,transparent,rgba(255,255,255,.52),transparent);
  transform:skewX(-18deg);animation:forher-offer-shine 4.2s ease-in-out infinite;
}
@keyframes forher-offer-shine{0%,45%{inset-inline-start:-80%}80%,100%{inset-inline-start:150%}}
html body section.featured-product-section.featured-product-reference .product-formatted-price{color:#c82032!important}

/* Use theme-aware surfaces with gold ratings and readable copy. */
html body .elite-pdp :is(.pdp-review-item,.pdp-reference-review-summary),
html body .featured-product-reference .featured-product-rating{
  border:1px solid color-mix(in srgb,var(--elite-text,#303a50) 14%,transparent)!important;
  border-radius:14px!important;background:var(--elite-surface,#fff)!important;
  color:var(--elite-text,#263044)!important;padding:16px!important;box-sizing:border-box;
}
html body .elite-pdp .pdp-reviews-list{display:grid!important;gap:12px!important;border-top:0!important}
html body .elite-pdp :is(.pdp-review-body,.pdp-review-text,.pdp-review-name){color:var(--elite-text,#263044)!important}
html body .elite-pdp :is(.pdp-review-date,.pdp-review-person small){color:var(--elite-muted,#626b78)!important}
html body .elite-pdp :is(.pdp-reference-rating--price-inline,.pdp-misk-card--rating){border:1px solid color-mix(in srgb,var(--elite-text,#303a50) 16%,transparent)!important;border-radius:10px!important;background:var(--elite-surface,#fff)!important;color:var(--elite-text,#263044)!important;padding:8px 10px!important}
html body .elite-pdp :is(.pdp-reference-rating__star,.pdp-review-stars .star-icon.filled,.pdp-reviews-stars .star-icon.filled){color:#b57800!important;fill:#b57800!important}
html body .elite-pdp.pdp-mobile-layout-misk .pdp-misk-mobile-summary .pdp-misk-card--rating{border:1px solid color-mix(in srgb,var(--elite-text,#303a50) 16%,transparent)!important;border-radius:10px!important;background:var(--elite-surface,#fff)!important;padding:9px 11px!important}
html body .elite-pdp.pdp-mobile-layout-misk .pdp-misk-mobile-summary .pdp-misk-card--rating :is(small,b,.pdp-misk-card__meta){color:var(--elite-text,#263044)!important}
html body .elite-pdp.pdp-mobile-layout-misk .pdp-misk-mobile-summary .pdp-misk-card--rating svg{color:#b57800!important;fill:#b57800!important}
html body .elite-pdp [data-pdp-rating-bar]{background:#b57800!important}
html body :is(.featured-product-reference,.elite-pdp) :is(.featured-product-rating__stars-fill,.pdp-review-stars,.pdp-reference-rating-stars){color:#b57800!important}
html body .elite-pdp .pdp-reference-rating-distribution :is(.rating-bar__fill,.pdp-rating-bar-fill){background:#b57800!important}

/* In-page action retains the original product form and stock/variant checks. */
html body .elite-pdp [data-pdp-primary-purchase]{display:block!important;width:100%!important;margin-block:14px!important}
html body .elite-pdp [data-pdp-primary-purchase]>.btn-add-to-cart{display:flex!important;align-items:center;justify-content:center;width:100%!important;min-height:46px!important;border:0;border-radius:10px;background:var(--elite-primary,#303a50);color:var(--elite-on-primary,#fff)}
html body .elite-pdp[data-pdp-has-sticky="false"]{padding-bottom:24px!important}
html body:has(.elite-pdp[data-pdp-has-sticky="false"]){padding-bottom:0!important}
html body [data-pdp-sticky-cart][data-sticky-pinned="true"]{position:fixed!important;bottom:0!important;inset-block-end:0!important;transform:none!important;opacity:1!important;visibility:visible!important}
html body .sticky-cart-bar[data-pdp-sticky-cart][data-sticky-pinned="false"][aria-hidden="true"]{transform:translate3d(0,110%,0)!important;opacity:0!important;visibility:hidden!important;pointer-events:none!important}
html body [data-pdp-sticky-apple-pay][hidden]{display:none!important}
html body [data-pdp-sticky-apple-pay].has-native-apple-pay:not([hidden]){display:flex!important;align-items:center!important;min-width:100px;flex:1 1 0}
html body [data-pdp-sticky-apple-pay] [data-pdp-sticky-apple-native]{width:100%;min-width:0}

/* A small native-scroll payment rail; JS adds seamless, inaccessible clones. */
html body .elite-pdp .pdp-reference-payment-methods[data-pdp-payment-logos]{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px!important;min-width:0!important;margin-block:14px!important;padding:0!important}
html body .elite-pdp [data-pdp-payment-logos] .pdp-reference-payment-methods__label{font-size:12px!important;color:var(--elite-muted,#626b78)!important}
html body .elite-pdp [data-payment-viewport]{width:100%;min-width:0;overflow-x:auto!important;overflow-y:hidden!important;direction:ltr!important;touch-action:pan-x pan-y pinch-zoom;scroll-behavior:auto!important;scrollbar-width:none;cursor:grab;padding-block:5px;outline-offset:3px}
html body .elite-pdp [data-payment-viewport]::-webkit-scrollbar{display:none}
html body .elite-pdp [data-payment-viewport].is-dragging{cursor:grabbing;user-select:none}
html body .elite-pdp [data-payment-track]{display:flex!important;flex-wrap:nowrap!important;gap:16px!important;align-items:center!important;width:max-content!important;min-width:100%!important;max-width:none!important;transform:none!important;animation:none!important}
html body .elite-pdp [data-payment-set]{display:flex!important;flex-wrap:nowrap!important;flex:0 0 auto;align-items:center;direction:rtl;gap:16px}
html body .elite-pdp [data-pdp-payment-logos] .pdp-reference-payment-method{width:52px!important;min-width:52px!important;flex:0 0 52px!important;height:26px!important;margin:0!important;padding:0!important;border:0!important;overflow:visible!important;background:transparent!important}
html body .elite-pdp [data-pdp-payment-logos] .pdp-reference-payment-method img{width:52px!important;max-width:52px!important;height:24px!important;max-height:24px!important;object-fit:contain!important;user-select:none;-webkit-user-drag:none}
html body .elite-pdp [data-payment-clone]{pointer-events:none}
@media(max-width:767px){
  html body .sticky-cart-bar.sticky-cart-style-misk .sticky-cart-controls:has(.pdp-misk-dock-buy-now):has(.pdp-sticky-apple-pay.has-native-apple-pay):not(:has(.pdp-misk-dock-quick)){grid-template-columns:repeat(3,minmax(0,1fr))!important}
  html body[data-template="home"] #main section[section-id]:is(.elite-section,.elite-who){padding-block:min(var(--ew-mobile-spacing,16px),16px)!important}
  html body[data-template="home"] #main section[section-id].elite-stories{padding-block:6px!important}
  html body[data-template="home"] #main section[section-id]:is(.elite-promos,.elite-split-banner){padding-block:6px!important}
  html body[data-template="home"] #main section[section-id].elite-hero{padding-block:0!important}
  html body[data-template="home"] #main section.featured-product-section[section-id]{margin-block:min(var(--mrg-t-mobile,16px),16px) 12px!important}
  html body section.featured-product-section.featured-product-reference .main-image-wrapper{padding:10px!important}
  html body section.featured-product-section.featured-product-reference .featured-product-images>.featured-product-offer-badge{inset-block-start:9px!important;right:9px!important;left:auto!important;min-height:28px!important;padding:5px 12px!important;font-size:11px!important}
  html body .featured-product-reference .featured-product-rating{padding:8px!important}
  html body .elite-pdp :is(.pdp-review-item,.pdp-reference-review-summary){padding:13px!important}
  html body .elite-pdp [data-pdp-payment-logos] .pdp-reference-payment-method{width:44px!important;min-width:44px!important;flex-basis:44px!important;height:24px!important}
  html body .elite-pdp [data-pdp-payment-logos] .pdp-reference-payment-method img{width:44px!important;max-width:44px!important;height:22px!important;max-height:22px!important}
}
@media(prefers-reduced-motion:reduce){html body .featured-product-offer-badge::after{animation:none!important;display:none!important}}
