/* JS controls only horizontal motion; layout remains in CSS. */
.product {
    --product-paper: #fff6e2;
    --product-ink: #502c2c;
    --product-title-font: 'TT Tricks Variable', Georgia, serif;
    --product-body-font: 'TT Backwards Sans', 'Arial Narrow', sans-serif;
    --product-duration: 1500ms;
    --product-easing: cubic-bezier(.42, 0, .58, 1);
    --product-offset: 2060px;
    --product-scale: 1;
    --product-center: 1080px;
    --product-mobile-scale: .5;
    position: relative;
    width: 100%;
    max-width: 1440px;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 1440 / 962;
    margin-inline: auto;
    background: var(--product-paper);
    color: var(--product-ink);
    overflow: hidden;
    isolation: isolate;
    touch-action: pan-y;
}
.product *, .product *::before, .product *::after { box-sizing: border-box; }
.product img { display: block; max-width: none; pointer-events: none; user-select: none; }
.product:focus-visible { outline: 2px solid #0d1d66; outline-offset: -3px; }
/* Remove obsolete carousel decorations from the old global stylesheet. */
.product::before, .product::after, .product__scene::before, .product__scene::after { content: none; }
.product__stage { position: absolute; inset: 0 auto auto 0; width: 1440px; height: 962px; transform: scale(var(--product-scale)); transform-origin: 0 0; }
.product__art, .product__scene { position: absolute; inset: 0; width: 1440px; height: 962px; }
.product__track { position: absolute; left: 440px; top: -19px; display: flex; width: max-content; height: 1000px; transition: transform var(--product-duration) var(--product-easing); }
.product__background { position: relative; flex: 0 0 1200px; height: 1000px; overflow: hidden; }
.product__background img { position: absolute; inset: 0; width: 1200px; height: 1000px; object-fit: cover; }
/* Original cider scene and crop from Figma 312:8868. */
.product__background--cider img { inset: auto; left: -727.91px; top: .2px; width: 2517.11px; height: 1208.56px; }
.product__background--cider::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--product-paper), transparent 160px, transparent 1040px, var(--product-paper)), linear-gradient(180deg, var(--product-paper), transparent 200px, transparent 800px, var(--product-paper)); }
/* Correct original Kriek art from Figma 312:8761, instead of the duplicated IPA background. */
.product__background--product3 img { inset: auto; left: -309.6px; top: -39.06px; width: 1638.375px; height: 1255.27px; }
.product__background--product3::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--product-paper), transparent 200px, transparent 1040px, var(--product-paper)), linear-gradient(180deg, var(--product-paper), transparent 200px, transparent 800px, var(--product-paper)); }
.product__bridge { position: relative; flex: 0 0 860px; height: 1000px; overflow: hidden; background: var(--product-paper); }
.product__bridge img { width: 100%; height: 100%; object-fit: cover; }
.product__bridge::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--product-paper), transparent 208px, transparent 712px, var(--product-paper)); }
/* The visible bottom of each transparent bottle rests at y ≈ 898 on the scene floor. */
.product__bottle { --bottle-x: 2500px; --bottle-opacity: 0; position: absolute; left: calc(var(--product-center) - 187px); top: 99px; right: auto; width: 374px; height: 840px; transform: translateX(var(--bottle-x)); opacity: var(--bottle-opacity); transition: transform var(--product-duration) var(--product-easing), opacity var(--product-duration) var(--product-easing); pointer-events: none; }
.product__bottle[aria-hidden='false'] { --bottle-x: 0px; --bottle-opacity: 1; }
.product__bottle--product4 { top: 101px; }
.product__bottle img { width: 100%; height: 100%; object-fit: contain; }
/* Gentle contact shadow follows the bottle, including the previously floating Blanche. */
.product__bottle::before { content: ''; position: absolute; width: 250px; height: 16px; left: 62px; bottom: 32px; border-radius: 50%; background: radial-gradient(ellipse, rgb(69 42 23 / .24), transparent 70%); }
/* Transparent PNG margins are asymmetric. Center the visible silhouette, not the canvas.
   Offsets use opaque alpha bounds at the rendered height of 840px. */
.product__bottle--product1 { --bottle-optical-offset: -4.29px; }
.product__bottle--product2 { --bottle-optical-offset: -4.57px; }
.product__bottle--product3 { --bottle-optical-offset: -3.43px; }
.product__bottle--product4 { --bottle-optical-offset: -5.15px; }
.product__bottle img { position: relative; transform: translateX(var(--bottle-optical-offset, 0px)); }
/* The cider source has a wider transparent canvas; retain the shared bottle height. */
.product__bottle--cider { top: 101.68px; --bottle-optical-offset: -.31px; }
.product__bottle--cider img { left: 50%; width: auto; transform: translateX(calc(-50% + var(--bottle-optical-offset))); }
.product__bottle--cider::before { bottom: 36px; }
.product__copy { position: absolute; left: 100px; top: 0; width: 400px; height: 962px; display: grid; align-items: center; background: none; z-index: 10; isolation: isolate; }
.product__copy::before { content: ''; position: absolute; z-index: -1; left: -100px; top: -19px; width: 600px; height: 1000px; background: url('images/product/line/fade.webp') center / 100% 100% no-repeat; pointer-events: none; }
.product__slide { --copy-x: -1600px; --copy-opacity: 0; position: relative; inset: auto; grid-area: 1 / 1; display: flex; flex-direction: column; align-items: flex-start; width: 400px; height: auto; padding: 0; gap: 0; visibility: visible; transform: translateX(var(--copy-x)); opacity: var(--copy-opacity); transition: transform var(--product-duration) var(--product-easing), opacity var(--product-duration) var(--product-easing); }
.product__slide[aria-hidden='false'] { --copy-x: 0px; --copy-opacity: 1; }
.product__slide[aria-hidden='true'] { pointer-events: none; }
.product__title { display: block; width: 400px; max-width: 100%; margin: 0 0 20px; font: 500 50px/1 var(--product-title-font); text-transform: uppercase; letter-spacing: -.5px; color: #0d1d66; text-align: left; }
.product__description { width: 380px; max-width: 100%; min-height: 0; margin: 0 0 32px; font: 400 22px/1.2 var(--product-body-font); color: var(--product-ink); text-align: left; }
.product__stats { display: flex; flex-direction: row; width: auto; max-width: none; align-items: flex-start; justify-content: flex-start; gap: 40px; font-family: var(--product-body-font); }
.product__stat { display: flex; flex-direction: column; align-items: center; margin: 0; gap: 0; }
.product__stat-value { order: -1; margin: 0; font-size: 40px; line-height: 1.2; font-weight: 400; white-space: nowrap; color: var(--product-ink); }
.product__stat-label { margin: 4px 0 0; font-size: 24px; line-height: 1.4; color: rgb(80 44 44 / .7); }
.product__controls { position: absolute; left: calc(var(--product-center) - 228px); top: 520px; right: auto; width: 456px; display: flex; justify-content: space-between; z-index: 20; }
.product__arrow { display: grid; place-items: center; flex: 0 0 88px; width: 88px; height: 88px; padding: 0; margin: 0; border: 0; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.product__arrow img { width: 88px; height: 88px; transition: transform 100ms ease-out; }
.product__arrow[aria-disabled='true'] { cursor: default; opacity: .4; }
@media (hover: hover) { .product__arrow:not([aria-disabled='true']):hover img { transform: scale(1.085, 1.1); } }
.product__arrow:focus-visible { outline: 3px solid #0d1d66; outline-offset: 5px; border-radius: 50%; }
.product[data-carousel-reset] .product__track, .product[data-carousel-reset] .product__bottle, .product[data-carousel-reset] .product__slide { transition: none; }
.product__sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 768px) {
    .product { aspect-ratio: auto; height: auto; min-height: 0; max-height: none; }
    .product__stage { position: relative; width: 100%; height: auto; transform: none; }
    .product__art { position: relative; width: 100%; height: calc(962px * var(--product-mobile-scale)); overflow: hidden; }
    .product__scene { left: 50%; transform: scale(var(--product-mobile-scale)) translateX(calc(-1 * var(--product-center))); transform-origin: 0 0; }
    .product__copy { position: relative; left: auto; top: auto; width: auto; height: auto; margin: 0; padding: 24px 20px 40px; display: grid; align-items: start; }
    .product__copy::before { content: none; }
    .product__slide { position: relative; width: 100%; grid-area: 1 / 1; align-items: center; padding: 0; gap: 0; }
    .product__title { width: 100%; font-size: clamp(32px, 7vw, 44px); line-height: 1.05; text-align: center; margin: 0 0 18px; }
    .product__description { width: 100%; max-width: 520px; font-size: 20px; line-height: 1.3; text-align: center; margin: 0 auto 24px; }
    .product__stats { width: 100%; max-width: none; justify-content: center; gap: 30px; }
    .product__stat-value { font-size: 32px; }
    .product__stat-label { font-size: 20px; }
    .product__arrow { min-width: calc(44px / var(--product-mobile-scale)); min-height: calc(44px / var(--product-mobile-scale)); }
}
@media (prefers-reduced-motion: reduce) {
    .product { --product-duration: 0ms; }
    .product__arrow img { transition: none; }
}
