/* The ordinary product list remains the source of truth and the no-motion layout. */
:root { --shop-experience-ready: 1; }
.shop-stage { display: contents; }
.shop-liquid, .shop-copy-curtain, .shop-controls, .shop-live-status { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .shop-section.shop-experience {
    position: relative;
    padding: 0;
    height: var(--shop-scene-height);
    overflow-anchor: none;
  }
  .shop-experience > .shop-stage {
    position: sticky;
    top: var(--shop-stage-top);
    display: block;
    height: var(--shop-stage-height);
    isolation: isolate;
    overflow: hidden;
    background: var(--soft-grey);
  }
  .shop-experience .shop-liquid {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: visible;
  }
  /* The curtain shares the liquid's stage coordinates and SVG gradient. Only
     its four clipped rows move, so the colour never slides across the copy. */
  .shop-experience .shop-copy-curtain {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    z-index: 4;
    pointer-events: none;
  }
  .shop-experience .section-heading {
    position: absolute;
    top: clamp(30px, 4.5vh, 54px);
    left: var(--gutter);
    right: calc(54% + 12px);
    z-index: 3;
    display: block;
    margin: 0;
    pointer-events: none;
  }
  .shop-experience .section-heading .eyebrow { margin-bottom: 9px; color: #d9e2ff; }
  .shop-experience .section-heading h1 { font-size: clamp(25px, 2.3vw, 40px); }
  .shop-experience .section-heading > p { margin-top: 15px; font-size: 11px; line-height: 1.65; color: #d9e2ff; }
  .shop-experience .product-grid { position: absolute; inset: 0; display: block; }
  .shop-experience .product {
    position: absolute;
    inset: 0;
    display: block;
    padding: 0;
    margin: 0;
    pointer-events: none;
    visibility: hidden;
  }
  .shop-experience .product.is-visible { visibility: visible; }
  .shop-experience .product-info {
    position: absolute;
    z-index: 3;
    left: var(--gutter);
    top: 50%;
    width: calc(43% - var(--gutter));
    /* Keep the copy before the embedded spark's leftmost tip at every phase. */
    max-width: calc(49% - min(204.6px, 14.52vw) - var(--gutter) - 18px);
    padding: 0;
    visibility: hidden;
    transform: translateY(-28%);
  }
  .shop-experience .product.is-copy-current .product-info { visibility: visible; pointer-events: auto; }
  .shop-experience .product-title { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }
  .shop-experience .product-title h2 { font-size: clamp(35px, 4.1vw, 70px); line-height: 1.05; }
  .shop-experience .product-title > span { order: -1; color: #e3eaff; font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
  .shop-experience .product-info > p { max-width: 38ch; margin-top: 23px; color: #eef2ff; font-size: clamp(14px, 1vw, 17px); line-height: 1.75; }
  .shop-experience .product-info .text-link { margin-top: 25px; padding: 11px 18px; min-height: 46px; font-size: 13px; }
  .shop-experience .product-info a:focus-visible { outline-color: white; }
  .shop-experience .product-media {
    position: absolute;
    z-index: 0;
    inset: 0 0 0 49%;
    aspect-ratio: auto;
    overflow: hidden;
    opacity: var(--shop-product-opacity, 0);
    transform: translateX(var(--shop-image-offset, 0px));
    background: var(--soft-grey);
  }
  .shop-experience .product-media > img {
    position: absolute;
    inset: 9% 9% 13%;
    width: 82%;
    height: 78%;
    max-width: none;
    object-fit: contain;
    mix-blend-mode: darken;
    mask-image: linear-gradient(#000 94%, transparent);
  }
  .shop-experience .product--sticker .product-media > img { inset: 0 3% 0 23%; width: 74%; height: 100%; }
  .shop-experience .product-category { top: 42px; left: 28%; color: #303030; }
  .shop-experience .product-caption { bottom: 45px; right: var(--gutter); color: #303030; }
  .shop-experience .shop-controls {
    position: absolute;
    z-index: 4;
    left: var(--gutter);
    bottom: 26px;
    width: calc(43% - var(--gutter));
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 18px;
  }
  .shop-controls button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 0;
    border: 0;
    background: transparent;
    color: white;
    font-size: 12px;
    line-height: 1.5;
  }
  .shop-controls button { border-bottom: 1px solid #a5baff; }
  .shop-controls :focus-visible { outline-color: white; outline-offset: 4px; }
  .shop-experience .shop-live-status {
    position: absolute;
    display: block;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: no-preference) and (max-width: 767px) {
  .shop-experience .section-heading { top: 22px; left: 24px; right: 24px; }
  .shop-experience .section-heading > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
  .shop-experience .section-heading .eyebrow { margin: 0; font-size: 9px; }
  .shop-experience .section-heading h1 { font-size: 23px; }
  .shop-experience .section-heading > p { margin-top: 9px; max-width: none; font-size: 10px; }
  .shop-experience .product-info { top: 115px; left: 24px; width: calc(100% - 48px); max-width:none; transform: none; }
  .shop-experience .product-title { gap: 8px; }
  .shop-experience .product-title h2 { font-size: clamp(30px, 8vw, 40px); }
  .shop-experience .product-title > span { font-size: 9px; }
  .shop-experience .product-info > p { margin-top: 13px; max-width: 40ch; font-size: 13px; line-height: 1.65; }
  .shop-experience .product-info .text-link { margin-top: 13px; min-height: 44px; padding: 8px 13px; font-size: 12px; }
  .shop-experience .product-media { inset: var(--shop-mobile-boundary) 0 50px; }
  .shop-experience .product-media > img { inset: 8% 13%; width: 74%; height: 84%; }
  .shop-experience .product--sticker .product-media > img { inset: -18% 11%; width: 78%; height: 130%; }
  .shop-experience .product-category { top: 25px; left: 24px; font-size: 9px; }
  .shop-experience .product-caption { bottom: 8px; right: 24px; font-size: 9px; }
  .shop-experience .shop-controls { left: 24px; right: 24px; bottom: 5px; width: auto; gap: 4px 20px; }
  .shop-controls button { color: #151515; font-size: 11px; }
  .shop-controls button { border-bottom-color: #737373; }
  .shop-controls :focus-visible { outline-color: #0046ff; }
}

@media print {
  .shop-section.shop-experience { height: auto; padding: 40px var(--gutter); }
  .shop-experience > .shop-stage { position: static; display: contents; }
  .shop-experience .shop-liquid, .shop-experience .shop-copy-curtain, .shop-experience .shop-controls, .shop-experience .shop-live-status { display: none; }
  .shop-experience .section-heading, .shop-experience .product-grid, .shop-experience .product,
  .shop-experience .product-info, .shop-experience .product-media { position: static; visibility: visible; width: auto; max-width:none; height: auto; opacity: 1; transform: none; }
  .shop-experience .product-media { aspect-ratio: 1.5; }
}
