/* Editorial campaign scenes have their own stable palette in either UI theme. */
.home-shop-hero {
  padding: 18px 24px 0;
  background: var(--theme-canvas);
  border-bottom: 0;
}

.product-story {
  --story-ink: #111a2b;
  --story-action: #0035c6;
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 1440px;
  height: clamp(640px, 50vw, 740px);
  margin-inline: auto;
  overflow: hidden;
  border-radius: 12px;
  background: #edb28a;
  color: var(--story-ink);
  touch-action: pan-y;
}

.product-story__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.product-story__slides,
.product-story__slide,
.product-story__picture { position: absolute; inset: 0; }
.product-story__slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 700ms ease, visibility 700ms;
}
.product-story__slide[data-current] { opacity: 1; visibility: visible; }
.product-story__slide[hidden] { display: none; }
.product-story__picture { z-index: 0; display: block; }
.product-story__picture img { display: block; width: 100%; height: 100%; object-fit: cover; }

.product-story__topline,
.product-story__bottomline {
  position: absolute;
  z-index: 3;
  inset-inline: clamp(28px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.product-story__topline { top: 21px; }
.product-story .home-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--story-ink);
  font-size: 12px;
  letter-spacing: .09em;
}
.product-story .home-hero-eyebrow::before {
  content: "";
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background: currentColor;
  clip-path: polygon(50% 0%, 59% 32%, 85% 15%, 68% 41%, 100% 50%, 68% 59%, 85% 85%, 59% 68%, 50% 100%, 41% 68%, 15% 85%, 32% 59%, 0% 50%, 32% 41%, 15% 15%, 41% 32%);
}
.product-story svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.product-story .product-story__toplinks {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  align-self: auto;
  gap: 26px;
  width: auto;
  margin: 0;
  padding: 0;
}
.product-story .product-story__toplinks a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: auto;
  min-height: 44px;
  margin: 0;
  padding: 6px 0;
  white-space: nowrap;
  background: transparent;
  color: var(--story-ink);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.product-story__toplinks a:hover { text-decoration: underline; text-underline-offset: 5px; }
.product-story__toplinks a > span { margin-left: 10px; }

.product-story__copy {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: clamp(28px, 4vw, 64px);
  width: 48%;
  max-width: 630px;
  transform: translateY(-54%);
}
.product-story .product-story__category {
  color: var(--story-ink);
  margin: 0 0 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.product-story__category > span { margin-right: 12px; }
.product-story__copy h2 {
  margin: 0;
  color: var(--story-action);
  font-family: var(--font-display);
  font-size: clamp(58px, 6.8vw, 100px);
  font-weight: 800;
  letter-spacing: -.065em;
  line-height: .98;
}
.product-story__copy h2 > span { display: block; }
.product-story .product-story__copy .lead {
  max-width: 31ch;
  margin: 22px 0 26px;
  color: var(--story-ink);
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.5;
}
.product-story .product-story__cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 52px;
  width: max-content;
  max-width: 100%;
  padding: 13px 22px;
  border: 1px solid var(--story-action);
  border-radius: 5px;
  background: var(--story-action);
  color: #fff;
  font-size: 15px;
  font-family: var(--font-body);
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  box-shadow: none;
}
.product-story .product-story__cta:hover { background: #002aa0; border-color: #002aa0; transform: translateY(-2px); }
.product-story__cta > span { font-size: 21px; font-weight: 400; }
/* Price and dispatch sit under the CTA on the scene art, in the story ink. */
.product-story__commercial { display: flex; flex-direction: column; gap: 4px; margin-top: 14px; }
.product-story__price {
  color: var(--story-ink);
  font-family: var(--font-mono);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 800;
  line-height: 1.1;
}
.product-story__price small { font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.product-story__price > small:first-child { margin-right: 4px; text-transform: uppercase; }
.product-story__tax { margin-left: 6px; letter-spacing: 0; }
.product-story__dispatch { color: var(--story-ink); font-size: 13px; font-weight: 600; line-height: 1.4; }
.product-story__smallprint,
.product-story__availability { display: block; margin-top: 13px; font-size: 12px; }
.product-story__object-label {
  position: absolute;
  z-index: 1;
  top: 104px;
  right: clamp(28px, 4vw, 64px);
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
}
.product-story__object-label a { color: var(--story-ink); text-decoration: none; }
/* Compact label link with a 44px hit area. */
.product-story__object-label a { position: relative; }
.product-story__object-label a::before { content: ""; position: absolute; inset: -13px -9px; }
.product-story__object-label a:hover { text-decoration: underline; }
.product-story__object-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.product-story__bottomline { bottom: 28px; }
.product-story__picker { display: flex; flex: 1 1 auto; max-width: 620px; min-width: 0; gap: 10px; }
.product-story__pick {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1 1 0;
  min-width: 0;
  min-height: 64px;
  padding: 9px;
  overflow: hidden;
  border: 1px solid rgb(17 26 43 / 22%);
  border-radius: 5px;
  background: color-mix(in srgb, var(--theme-yellow) 32%, transparent);
  color: var(--story-ink);
  font-family: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  backdrop-filter: blur(12px);
}
.product-story__pick:hover { background: color-mix(in srgb, var(--theme-yellow) 55%, transparent); }
.product-story__pick[data-current] { background: var(--theme-yellow); border-color: var(--story-ink); }
.product-story__pick img { width: 32px; height: 40px; flex-shrink: 0; border-radius: 3px; object-fit: cover; object-position: right; }
.product-story__pick > span { min-width: 0; }
.product-story__pick small,
.product-story__pick strong { display: block; }
.product-story__pick small { margin-bottom: 3px; font-family: var(--font-mono); font-size: 12px; font-weight: 500; }
.product-story__pick strong { overflow: hidden; text-overflow: ellipsis; font-size: 12px; font-weight: 650; white-space: nowrap; }
.product-story__pick .product-story__mobile-label { display: none; }
.product-story__pick::after { content: ""; position: absolute; inset: auto 0 0; height: 2px; background: var(--story-action); transform: scaleX(0); transform-origin: left; }
.product-story[data-running] .product-story__pick[data-current]::after { animation: product-story-progress var(--story-duration, 8000ms) linear forwards; }
@keyframes product-story-progress { to { transform: scaleX(1); } }
.product-story__transport { display: flex; flex-shrink: 0; align-items: center; gap: 8px; }
.product-story__count { margin-right: 14px; font-family: var(--font-mono); font-size: 12px; white-space: nowrap; }
.product-story__transport button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgb(17 26 43 / 45%);
  border-radius: 50%;
  background: rgb(255 255 255 / 20%);
  color: var(--story-ink);
  font-size: 20px;
  cursor: pointer;
  backdrop-filter: blur(12px);
}
.product-story__transport button:hover { background: #fff5df; }
.product-story__transport button:disabled { cursor: default; opacity: .5; }
.product-story__transport .product-story__toggle { font-size: 16px; }
.product-story .product-story__play { display: none; }
.product-story__toggle[data-paused] .product-story__pause { display: none; }
.product-story .product-story__toggle[data-paused] .product-story__play { display: block; }
.product-story [hidden] { display: none; }
.product-story :is(a, button):focus-visible { outline: 3px solid var(--story-action); outline-offset: 4px; }
.product-story__scene-note { margin: 9px auto 0; max-width: 1440px; color: var(--theme-text-muted); font-size: 12px; text-align: right; }

/* Keep admin-selected products visible with their original media and status. */
.home-shop-hero > .home-hero-merchandising { max-width: 1440px; padding: 22px 0 0; }
.home-hero-merchandising .home-hero-stage { display: block; }
.home-hero-merchandising .home-hero-products { display: flex; justify-content: center; gap: 40px; background: transparent; }
.home-hero-merchandising .home-hero-product {
  display: flex;
  align-items: center;
  gap: 14px;
  width: auto;
  max-width: 460px;
  flex: 0 1 460px;
}
.home-hero-merchandising .home-hero-product-image { width: 90px; height: 74px; flex: 0 0 90px; border-radius: 4px; overflow: hidden; }
.home-hero-merchandising .home-hero-product-caption { padding: 0; background: transparent; color: var(--theme-text); font-size: 15px; text-align: left; }
.home-hero-merchandising .home-hero-product-caption small { color: var(--theme-text-muted); font-size: 12px; }
.home-hero-merchandising .home-hero-product-status { margin-top: 4px; font-size: 12px; }

@media (min-width: 700px) and (max-width: 1050px) {
  .product-story { height: 640px; }
  .product-story__copy h2 { font-size: clamp(46px, 6vw, 64px); }
  .product-story__copy { width: 50%; }
  .product-story__pick { min-width: 0; padding: 9px; }
  .product-story__pick img { display: none; }
  .product-story__count { display: none; }
  .product-story__toplinks { gap: 16px; }
  .product-story__picture img { object-position: 58% center; }
}

@media (max-width: 699px) {
  .home-shop-hero { padding: 10px 12px 0; }
  /* Reserve action-bar clearance; short screens use the content-driven layout below. */
  .product-story { height: max(620px, calc(100svh - var(--home-mobile-action-clearance, 88px) - 126px)); border-radius: 8px; }
  .product-story__picture { inset: 0; aspect-ratio: auto; mask-image: none; }
  .product-story__picture img { object-fit: cover; object-position: center; }
  .product-story__topline { top: 16px; inset-inline: 24px; gap: 10px; }
  .product-story .home-hero-eyebrow { font-size: 12px; letter-spacing: .05em; gap: 7px; }
  .product-story .home-hero-eyebrow::before { width: 14px; height: 14px; }
  .product-story .product-story__toplinks a { font-size: 12px; }
  .product-story__toplinks svg { width: 12px; height: 12px; }
  .product-story .product-story__toplinks .home-hero-secondary-link { display: none; }
  .product-story__toplinks a > span { margin-left: 3px; }
  .product-story__copy { top: 92px; left: 24px; width: calc(100% - 48px); max-width: none; transform: none; }
  .product-story__category { margin-bottom: 15px; font-size: 12px; }
  .product-story__copy h2 { font-size: clamp(42px, 12vw, 66px); letter-spacing: -.055em; }
  .product-story .product-story__copy .lead { max-width: 30ch; margin: 16px 0 19px; font-size: 15px; line-height: 1.4; }
  .product-story .product-story__cta { min-height: 47px; padding: 10px 16px; font-size: 13px; gap: 30px; }
  .product-story__commercial { margin-top: 10px; gap: 2px; }
  .product-story__price { font-size: 22px; }
  .product-story__dispatch { font-size: 12px; }
  .product-story__smallprint,
  .product-story__availability { margin-top: 9px; }
  .product-story__object-label { top: auto; bottom: 124px; right: 24px; max-width: calc(100% - 48px); padding: 6px 9px; border-radius: 4px; background: rgb(255 255 255 / 72%); backdrop-filter: blur(10px); font-size: 12px; }
  .product-story__bottomline { inset-inline: 24px; bottom: 20px; flex-direction: column; gap: 16px; }
  .product-story__picker { justify-content: space-between; flex: none; max-width: none; width: 100%; gap: 4px; }
  .product-story__pick { justify-content: center; flex: 1 1 0; gap: 0; min-width: 0; min-height: 44px; padding: 7px 5px; text-align: center; }
  .product-story__pick img,
  .product-story__pick small { display: none; }
  .product-story__pick .product-story__desktop-label { display: none; }
  .product-story__pick .product-story__mobile-label { display: block; }
  .product-story__transport { justify-content: flex-end; align-self: stretch; gap: 8px; }
  .product-story__count { margin-right: auto; }
  .home-hero-merchandising .home-hero-products { flex-direction: column; gap: 16px; }
  .home-hero-merchandising .home-hero-product { flex: none; max-width: none; }
  .home-hero-merchandising .home-hero-product-image { width: 76px; flex-basis: 76px; height: 68px; }
}

@media (max-width: 699px) and (max-height: 850px) {
  .product-story__copy { top: 68px; }
  .product-story__category { margin-bottom: 12px; }
  .product-story__copy h2 { font-size: clamp(38px, 10.8vw, 48px); }
  .product-story .product-story__copy .lead { margin: 13px 0 18px; }
  .product-story__smallprint { display: none; }
}

@media (max-width: 359px) {
  .product-story__topline,
  .product-story__bottomline { inset-inline: 18px; }
  .product-story__copy { left: 18px; width: calc(100% - 36px); }
}

/* Let short phones scroll to the picker without clipping or overlapping scene content. */
@media (max-width: 699px) and (max-height: 760px) {
  .product-story {
    --story-mobile-gutter: 24px;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 620px;
  }
  .product-story__topline,
  .product-story__bottomline { position: relative; inset: auto; }
  .product-story__topline { margin: 16px var(--story-mobile-gutter) 0; }
  .product-story__slides { position: static; flex: 1; }
  /* Inactive slides remain absolute even after the controller removes hidden. */
  .product-story__slide[data-current] { position: static; }
  .product-story__copy {
    position: relative;
    z-index: 1;
    inset: auto;
    width: auto;
    margin: 24px var(--story-mobile-gutter) 0;
  }
  .product-story__object-label {
    position: relative;
    inset: auto;
    width: fit-content;
    max-width: calc(100% - 2 * var(--story-mobile-gutter));
    min-height: 44px;
    margin: 24px var(--story-mobile-gutter) 0 auto;
  }
  .product-story__bottomline { margin: 24px var(--story-mobile-gutter) 20px; }
}

@media (max-width: 359px) and (max-height: 760px) {
  .product-story { --story-mobile-gutter: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .product-story__slide { transition: none; }
  .product-story .product-story__cta:hover { transform: none; }
  .product-story .product-story__pick::after { animation: none; }
}
