/* Campaign artwork stays fixed; its controls and copy follow the site theme. */
.home-shop-hero {
  padding: 18px 24px 0;
  background: var(--theme-canvas);
  border-bottom: 0;
}

.product-story {
  --story-ink: var(--theme-home-body-text);
  --story-action: var(--theme-action);
  --story-panel: var(--theme-hero-panel);
  --story-ink-soft: var(--theme-text-muted);
  --story-panel-width: min(46%, 540px);
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 1440px;
  display: grid;
  align-content: center;
  gap: 24px;
  min-height: clamp(640px, 50vw, 740px);
  padding-block: 28px;
  margin-inline: auto;
  overflow: hidden;
  border-radius: 12px;
  background: var(--theme-surface-muted);
  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__bottomline {
  position: relative;
  z-index: 3;
  width: min(var(--story-panel-width), calc(50% - clamp(28px, 4vw, 64px) - 24px));
  margin-left: clamp(28px, 4vw, 64px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
.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; }
/* One panel holds the page heading and the current product offer. */
.product-story__panel {
  position: relative;
  z-index: 2;
  width: var(--story-panel-width);
  min-width: 0;
  margin-left: clamp(28px, 4vw, 64px);
  overflow-wrap: break-word;
  padding: 28px 32px;
  border-radius: 12px;
  background: var(--story-panel);
  color: var(--story-ink);
}
.product-story__title,
#home-hero-title.product-story__title {
  max-width: none;
  margin: 12px 0 0;
  color: var(--theme-hero-heading);
  font: 800 clamp(44px, 4.6vw, 68px)/1 var(--font-display);
  letter-spacing: -.05em;
}
.product-story .lead {
  color: var(--story-ink);
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.5;
  max-width: 36ch;
  margin: 14px 0 18px;
}
.product-story__offers { display: grid; }
.product-story__offer {
  grid-area: 1 / 1;
  visibility: hidden;
  opacity: 0;
  transition: opacity 300ms;
}
.product-story__offer[data-current] { visibility: visible; opacity: 1; }
.product-story__product {
  margin: 0 0 8px;
  font: 700 17px/1.3 var(--font-body);
  color: var(--story-ink);
}
.product-story .product-story__cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 52px;
  width: 100%;
  max-width: 320px;
  padding: 13px 22px;
  border: 1px solid var(--story-action);
  border-radius: 5px;
  background: var(--story-action);
  color: var(--theme-action-text);
  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: var(--theme-action-hover); border-color: var(--theme-action-hover); transform: translateY(-2px); }
.product-story__cta > span { font-size: 21px; font-weight: 400; }
/* Price and dispatch precede the primary CTA inside the panel. */
.product-story__commercial { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.product-story__price {
  color: var(--story-ink);
  font-family: var(--font-mono);
  font-size: clamp(28px, 2.4vw, 34px);
  font-weight: 800;
  line-height: 1.1;
}
.product-story__price small,
.product-story__tax { font-size: 13px; color: var(--story-ink-soft); }
.product-story__price small { 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: 14px; font-weight: 600; line-height: 1.4; }
.product-story__smallprint,
.product-story__availability { display: block; margin: 0 0 14px; font-size: 12px; }
.product-story__actions { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
body:has(.home-page) .home-shop-hero .product-story .btn.product-story__shop {
  min-height: 48px;
  padding: 12px 20px;
  background: transparent;
  border: 2px solid var(--theme-hero-control-border);
  color: var(--story-ink);
  font: 650 15px var(--font-body);
  text-decoration: none;
  border-radius: 5px;
}
body:has(.home-page) .home-shop-hero .product-story .btn.product-story__shop:is(:hover, :focus-visible) {
  background: var(--story-action);
  border-color: var(--story-action);
  color: var(--theme-action-text);
}
.product-story .product-story__micro {
  display: block;
  margin: 14px 0 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--story-ink-soft);
}
.product-story .product-story__micro a {
  color: var(--theme-link);
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: inherit;
}
.product-story__object-label {
  position: absolute;
  z-index: 1;
  top: 104px;
  right: clamp(28px, 4vw, 64px);
  max-width: calc(100% - var(--story-panel-width) - 2 * clamp(28px, 4vw, 64px) - 24px);
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: var(--story-ink);
  background: var(--story-panel);
  padding: 6px 10px;
  border-radius: 4px;
}
.product-story__object-label a { min-width: 0; overflow-wrap: anywhere; 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__picker { order: 1; display: flex; flex: none; width: 100%; 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;
  border: 1px solid var(--theme-hero-control-border);
  border-radius: 5px;
  background: var(--story-panel);
  color: var(--story-ink);
  font-family: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  backdrop-filter: blur(12px);
}
.product-story__pick:hover { background: var(--theme-surface-muted); }
.product-story__pick[data-current] { background: var(--theme-yellow); border-color: var(--story-action); color: var(--theme-yellow-text); }
.product-story__pick img { width: 32px; height: auto; aspect-ratio: 3 / 2; flex-shrink: 0; border-radius: 3px; object-fit: contain; object-position: center; }
.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: 13px; font-weight: 500; }
.product-story__pick strong { font-size: 13px; font-weight: 650; white-space: normal; overflow-wrap: anywhere; }
.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 { order: 0; display: flex; flex-shrink: 0; align-items: center; gap: 8px; }
.product-story__count { margin-right: auto; padding: 4px 8px; border-radius: var(--radius-sm); background: var(--story-panel); color: var(--story-ink); 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 var(--theme-hero-control-border);
  border-radius: 50%;
  background: var(--story-panel);
  color: var(--story-ink);
  font-size: 20px;
  cursor: pointer;
  backdrop-filter: blur(12px);
}
.product-story__transport button:hover { background: var(--theme-surface-muted); }
.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; }
body:has(.home-page) .home-shop-hero .product-story :is(a, button):focus-visible {
  outline: 3px solid var(--theme-hero-heading);
  outline-offset: 4px;
  box-shadow: 0 0 0 7px var(--story-panel);
}
.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: 768px) and (max-width: 1050px) {
  .product-story { --story-panel-width: min(54%, 500px); min-height: 640px; }
  .product-story__pick { flex-direction: column; justify-content: center; min-width: 0; padding: 6px; }
  .product-story__pick > span { flex: none; }
  .product-story__pick small { margin: 0; }
  .product-story__pick .product-story__desktop-label { display: none; }
  .product-story__picture img { object-position: 58% center; }
}

@media (min-width: 1024px) {
  .product-story { min-height: 0; height: clamp(640px, 50vw, 700px); align-content: end; gap: 16px; padding-block: 24px; }
  .product-story__panel { padding: 18px 24px; }
  .product-story__title,
  #home-hero-title.product-story__title { margin-top: 8px; }
  .product-story .lead { margin: 8px 0 12px; line-height: 1.35; }
  .product-story__product { margin-bottom: 6px; line-height: 1.2; }
  .product-story__commercial { gap: 3px; margin-bottom: 10px; }
  .product-story__dispatch { line-height: 1.3; }
  .product-story__smallprint,
  .product-story__availability { margin-bottom: 10px; }
  .product-story__actions { margin-top: 8px; }
  .product-story .product-story__micro { display: flex; align-items: center; gap: 12px; margin-top: 8px; line-height: 1.35; }
  .product-story__micro > span { flex: 1; min-width: 0; }
  .product-story .product-story__micro a { flex-shrink: 0; }
  .product-story__bottomline { flex-direction: row; align-items: center; gap: 12px; }
  .product-story__picker { order: 0; flex: 1 1 0; width: auto; gap: 4px; }
  .product-story__pick { flex-direction: column; justify-content: center; min-height: 56px; padding: 4px; }
  .product-story__pick img { width: 24px; height: 16px; }
  .product-story__pick > span { flex: none; }
  .product-story__pick small { margin: 0; line-height: 1; }
  .product-story__pick .product-story__desktop-label { display: none; }
  .product-story__transport { order: 1; gap: 6px; }
  .product-story__count { margin-right: 0; padding-inline: 6px; }
}

@media (max-width: 767px) {
  .home-shop-hero { padding: 10px 12px 0; }
  .product-story { min-height: 0; padding-block: 0; display: flex; flex-direction: column; gap: 0; border-radius: 8px; }
  .product-story__slides { order: 0; position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 3 / 2; flex: none; }
  .product-story__picture { inset: 0; aspect-ratio: auto; mask-image: none; }
  .product-story__picture img { object-fit: contain; object-position: 50% 50%; }
  .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__panel { order: 2; position: static; transform: none; width: auto; margin: 0; border-radius: 0 0 8px 8px; padding: 12px; background: var(--story-panel); }
  .product-story__title,
  #home-hero-title.product-story__title { margin-top: 4px; font-size: clamp(36px, 10.5vw, 44px); }
  .product-story .lead { font-size: 15px; max-width: none; margin: 6px 0 8px; }
  .product-story__product { margin-bottom: 4px; }
  .product-story__commercial { margin-bottom: 8px; }
  .product-story .product-story__cta { width: 100%; max-width: none; }
  .product-story__actions { flex-direction: column; align-items: stretch; margin-top: 6px; }
  .product-story .product-story__micro { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
  .product-story__micro > span { flex: 1; min-width: 0; }
  .product-story .product-story__micro a { flex-shrink: 0; }
  .product-story .product-story__shop { width: 100%; text-align: center; justify-content: center; }
  .product-story__object-label { display: none; }
  .product-story__bottomline { order: 1; position: relative; width: auto; margin: 0; padding: 8px 12px; gap: 6px; background: var(--story-panel); }
  .product-story__picker { justify-content: space-between; gap: 4px; }
  .product-story__pick { justify-content: center; flex: 1 1 0; gap: 4px; min-width: 0; min-height: 44px; padding: 6px 5px; text-align: center; }
  .product-story__pick img { width: 24px; height: 16px; }
  .product-story__pick small { margin: 0; }
  .product-story__pick > span { flex: none; }
  .product-story__pick .product-story__desktop-label { display: none; }
  .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: 419px) {
  #home-hero-title.product-story__title { font-size: 36px; }
}

@media (max-width: 767px) and (max-height: 850px) {
  .product-story__smallprint { display: none; }
}

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