/* All component styles stay inside the product stage. The host opt-in enables fallback replacement. */
[data-product-stage][hidden] { display: none !important; }
body[data-product-stage-demo] #hub-hero[data-product-stage-ready="true"] [data-stage-fallback] { display: none !important; }
[data-product-stage] {
  --stage-bg: #F1EDE4;
  --stage-ink: #173D33;
  --stage-muted: #53645C;
  position: relative;
  width: 100%;
  min-width: 0;
  color: var(--stage-ink);
  isolation: isolate;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
[data-product-stage] *, [data-product-stage] *::before, [data-product-stage] *::after { box-sizing: border-box; }
[data-product-stage] button { font: inherit; color: inherit; border: 0; cursor: pointer; background: transparent; appearance: none; box-shadow: none; text-transform: none; }
[data-product-stage] button:focus-visible, [data-product-stage] a:focus-visible, [data-product-stage] [data-stage-viewport]:focus-visible { outline: 2px solid var(--stage-ink); outline-offset: 5px; }
[data-product-stage] svg { display: block; width: 24px; height: 24px; flex-shrink: 0; }
[data-product-stage] svg[hidden] { display: none; }
[data-product-stage] .product-stage__viewport {
  position: relative;
  height: clamp(280px, 37vw, 390px);
  perspective: 1500px;
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
  contain: layout paint;
}
[data-product-stage][data-dragging="true"] .product-stage__viewport { cursor: grabbing; }
[data-product-stage] .product-stage__product {
  position: absolute;
  top: 45%;
  left: 50%;
  width: clamp(210px, 27vw, 305px);
  height: calc(100% - 40px);
  min-height: 0;
  padding: 0;
  border-radius: 0;
  transform-origin: 50% 82%;
  transform: translate(-50%, -50%);
  background: transparent;
  will-change: auto;
  cursor: grab;
}
[data-product-stage] .product-stage__product[hidden] { display: none !important; }
[data-product-stage] .product-stage__product:not([hidden]) { will-change: transform, opacity; }
[data-product-stage] .product-stage__product img[hidden] { display: none !important; }
[data-product-stage] .product-stage__product[data-unavailable="true"]::after { content: attr(data-unavailable-label); position: absolute; inset: 0; display: grid; place-content: center; padding: 24px; font-size: 13px; line-height: 1.5; text-align: center; }
[data-product-stage] .product-stage__product img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 15px 14px rgb(51 32 39 / 12%));
}
[data-product-stage] .product-stage__product[aria-current="true"] { cursor: grab; }
[data-product-stage] .product-stage__product:not([aria-current="true"]) { cursor: pointer; }
[data-product-stage][data-dragging="true"] .product-stage__product { cursor: grabbing; }
[data-product-stage] .product-stage__gesture { position: absolute; left: 50%; bottom: 5px; transform: translateX(-50%); display: flex; align-items: center; gap: 9px; font-size: 12px; line-height: 1.4; color: var(--stage-muted); pointer-events: none; white-space: nowrap; }
[data-product-stage] .product-stage__gesture svg { width: 25px; height: 16px; }
[data-product-stage] .product-stage__details { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 21px; }
[data-product-stage] .product-stage__copy { min-width: 0; }
[data-product-stage] .product-stage__category { font-size: 11px; font-weight: 500; line-height: 1.5; letter-spacing: .12em; margin: 0 0 7px; text-transform: uppercase; color: var(--stage-muted); }
[data-product-stage] .product-stage__name { font-family: var(--font-serif, "Bodoni 72", "Didot", "Times New Roman", serif); font-weight: 400; font-size: clamp(31px, 3.1vw, 47px); letter-spacing: -.035em; line-height: 1.12; margin: 0; color: var(--stage-ink); }
[data-product-stage] .product-stage__description { font-size: 13px; line-height: 1.6; margin: 8px 0 0; color: var(--stage-muted); }
[data-product-stage] .product-stage__actions { display: flex; align-items: center; gap: 22px; flex-shrink: 0; }
[data-product-stage] .product-stage__browse { display: inline-flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 53px; padding: 13px 22px; color: var(--stage-bg); background: var(--stage-ink); text-decoration: none; border: 1px solid var(--stage-ink); border-radius: 60px; font-size: 13px; line-height: 1.4; white-space: nowrap; transition: transform 180ms ease, background-color 350ms ease, color 350ms ease; }
[data-product-stage] .product-stage__browse:hover { transform: translateY(-2px); }
[data-product-stage] .product-stage__browse svg { width: 20px; height: 20px; }
[data-product-stage] .product-stage__arrows { display: flex; gap: 9px; }
/* Physical arrow directions and the current/total counter stay unambiguous in RTL. */
[data-product-stage] .product-stage__arrows, [data-product-stage] .product-stage__count { direction: ltr; }
html[dir="rtl"] [data-product-stage] .product-stage__count { text-align: right; }
[data-product-stage] .product-stage__arrows button { display: grid; place-items: center; width: 47px; height: 47px; padding: 0; border: 1px solid color-mix(in srgb, var(--stage-ink) 23%, transparent); border-radius: 50%; transition: background-color 180ms ease, transform 180ms ease; }
[data-product-stage] .product-stage__arrows button:hover { background: rgb(255 255 255 / 30%); transform: translateY(-2px); }
[data-product-stage] .product-stage__arrows button svg { width: 20px; height: 20px; }
[data-product-stage] .product-stage__footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; margin-top: 24px; padding-top: 17px; border-top: 1px solid color-mix(in srgb, var(--stage-ink) 17%, transparent); }
/* Stable family colours remain distinct from the changing product backdrop. */
[data-product-stage] .product-stage__choices { display: flex; align-items: center; gap: 24px; }
[data-product-stage] .product-stage__choices button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; min-width: 100px; padding: 10px 18px; border-radius: 999px;
  font-size: 13px; font-weight: 500; line-height: 1.4;
  color: var(--choice-ink); background: var(--choice-surface);
  outline: 2px solid transparent; outline-offset: 3px;
  transition: outline-color 180ms ease, background-color 180ms ease;
}
[data-product-stage] [data-stage-select="face"] { --choice-surface: #F0E3E5; --choice-ink: #784651; --choice-dot: #AE6676; }
[data-product-stage] [data-stage-select="hair"] { --choice-surface: #E1EAE5; --choice-ink: #365A4B; --choice-dot: #5A7D70; }
[data-product-stage] [data-stage-select="body"] { --choice-surface: #EEE5D9; --choice-ink: #725535; --choice-dot: #96734C; }
[data-product-stage] .product-stage__choices button:hover { background: color-mix(in srgb, var(--choice-surface) 80%, white); }
[data-product-stage] .product-stage__choices button[aria-pressed="true"] { outline-color: var(--choice-ink); font-weight: 700; }
[data-product-stage] .product-stage__choices button:focus-visible { outline: 3px solid var(--stage-ink); outline-offset: 6px; }
[data-product-stage] .product-stage__swatch { position: relative; display: inline-block; width: 18px; height: 18px; flex-shrink: 0; border-radius: 50%; background: var(--choice-dot); }
[data-product-stage] .product-stage__swatch::after { content: ""; position: absolute; width: 5px; height: 9px; left: 7px; top: 3px; border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg); opacity: 0; transition: opacity 180ms ease; }
[data-product-stage] .product-stage__choices button[aria-pressed="true"] .product-stage__swatch::after { opacity: 1; }
[data-product-stage] .product-stage__count { font-size: 11px; letter-spacing: .09em; color: var(--stage-muted); font-variant-numeric: tabular-nums; }
[data-product-stage] .product-stage__autoplay { justify-self: end; display: inline-flex; align-items: center; gap: 8px; padding: 4px 0 4px 6px; min-height: 44px; font-size: 12px; white-space: nowrap; color: var(--stage-muted); }
[data-product-stage] .product-stage__autoplay svg { width: 19px; height: 19px; }
[data-product-stage] .product-stage__autoplay:disabled { opacity: .75; cursor: default; }
@media (max-width: 900px) {
  [data-product-stage] .product-stage__details { gap: 18px; }
  [data-product-stage] .product-stage__actions { gap: 12px; }
  [data-product-stage] .product-stage__browse { padding-inline: 17px; gap: 15px; }
  [data-product-stage] .product-stage__arrows { gap: 7px; }
  [data-product-stage] .product-stage__arrows button { width: 43px; height: 43px; }
  [data-product-stage] .product-stage__description { max-width: 36ch; }
}
@media (min-width: 651px) and (max-width: 900px) {
  [data-product-stage] .product-stage__copy { min-height: 132px; }
}
@media (max-width: 650px) {
  [data-product-stage] .product-stage__viewport { height: 290px; margin-inline: -20px; width: calc(100% + 40px); }
  [data-product-stage] .product-stage__product { width: 208px; height: 253px; top: 44%; }
  [data-product-stage] .product-stage__details { display: block; margin-top: 17px; }
  [data-product-stage] .product-stage__copy { min-height: 124px; }
  [data-product-stage] .product-stage__name { font-size: 34px; }
  [data-product-stage] .product-stage__category { font-size: 10px; margin-bottom: 5px; }
  [data-product-stage] .product-stage__description { font-size: 12px; max-width: none; margin-top: 6px; }
  [data-product-stage] .product-stage__actions { justify-content: space-between; gap: 12px; margin-top: 13px; }
  [data-product-stage] .product-stage__browse { min-width: 0; min-height: 49px; font-size: 12px; padding: 12px 18px; gap: 16px; white-space: normal; }
  [data-product-stage] .product-stage__arrows { flex-shrink: 0; }
  [data-product-stage] .product-stage__arrows button { width: 43px; height: 43px; }
  [data-product-stage] .product-stage__footer { grid-template-columns: 1fr auto; gap: 12px; margin-top: 22px; padding-top: 13px; }
  [data-product-stage] .product-stage__count { display: none; }
  [data-product-stage] .product-stage__choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; width: 100%; }
  [data-product-stage] .product-stage__choices button { min-width: 0; min-height: 46px; padding: 10px 8px; font-size: 12px; gap: 7px; }
  [data-product-stage] .product-stage__choices button span { min-width: 0; overflow-wrap: anywhere; }
  [data-product-stage] .product-stage__autoplay { font-size: 11px; gap: 5px; }
}
@media (max-width: 360px) {
  [data-product-stage] .product-stage__copy { min-height: 132px; }
  [data-product-stage] .product-stage__name { font-size: 30px; }
  [data-product-stage] .product-stage__choices { gap: 12px; }
  [data-product-stage] .product-stage__choices button { flex-direction: column; gap: 6px; padding-block: 10px; }
  [data-product-stage] .product-stage__browse { padding-inline: 14px; gap: 12px; }
  [data-product-stage] .product-stage__footer { gap: 8px; }
  [data-product-stage] .product-stage__autoplay { max-width: 74px; gap: 4px; white-space: normal; text-align: left; }
}
@media (max-width: 900px) {
  /* Reserve the verified translated-title space without measuring during a gesture. */
  [data-stage-language]:not([data-stage-language="en"]) .product-stage__copy { min-height: 168px; }
}
@media (min-width: 651px) and (max-width: 767px) {
  [data-stage-language="en"] .product-stage__copy { min-height: 152px; }
  [data-stage-language]:not([data-stage-language="en"]) .product-stage__copy { min-height: 232px; }
}
@media (max-width: 650px) {
  /* Keep all three family controls together, clear of the autoplay hit area. */
  body[data-product-stage-demo] #hub-hero [data-product-stage] .product-stage__choices { grid-column: 1 / -1; grid-row: 1; justify-self: stretch; }
  body[data-product-stage-demo] #hub-hero [data-product-stage] .product-stage__autoplay { grid-column: 2; grid-row: 2; }
  [data-stage-language]:not([data-stage-language="en"]) .product-stage__footer { grid-template-columns: minmax(0, 1fr) auto; }
  [data-stage-language]:not([data-stage-language="en"]) .product-stage__autoplay { max-width: 90px; white-space: normal; text-align: start; }
  [data-stage-language]:not([data-stage-language="en"]) .product-stage__autoplay span { min-width: 0; overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  [data-product-stage] *, [data-product-stage] *::before, [data-product-stage] *::after { transition-duration: 0s !important; animation: none !important; scroll-behavior: auto !important; }
}
