/* Portrait stage and the catalogue directly below it. */
.home-page .hero-launch.jar-showcase {
    --jar-unit: min(138vw, 70svh, 735px);
    --ring: min(41vw, 31svh, 235px);
    height: 100vh;
    /* Reserve the largest viewport even while the browser toolbar moves. */
    height: 100lvh;
    min-height: 0;
    pointer-events: auto;
    touch-action: pan-y pinch-zoom;
    -webkit-user-select: none;
    user-select: none;
}
.jar-showcase .jar-anchor {
    width: var(--jar-unit);
    left: 50%;
    top: calc(50% + 16px);
    top: calc(50svh + 16px);
    pointer-events: none;
}
.jar-showcase .jar-anchor[data-mobile-slot="0"] { --rx: 0; --ry: 0; --rs: 1; --rz: 6; }
.jar-showcase .jar-anchor[data-mobile-slot="1"] { --rx: 1; --ry: -.077; --rs: .735; --rz: 3; }
.jar-showcase .jar-anchor[data-mobile-slot="2"] { --rx: 0; --ry: -.154; --rs: .47; --rz: 1; }
.jar-showcase .jar-anchor[data-mobile-slot="3"] { --rx: -1; --ry: -.077; --rs: .735; --rz: 2; }
.jar-showcase .jar-anchor { z-index: var(--portrait-z, var(--rz)); }
.jar-showcase:not(.portrait-moving) .jar-anchor > :is(.jar-motion,.jar-ground) {
    transform: translate(calc(var(--ring) * var(--rx)), calc(var(--jar-unit) * var(--ry))) scale(var(--rs));
}
.jar-showcase .jar-shading { opacity: .42; }
.jar-controls::before { content: ""; display: block; width: var(--ring); }
/* The side pots themselves are tap targets; the centre stays clear for swiping. */
.jar-controls[hidden] { display: none; }
.jar-controls {
    --side-hit: clamp(44px, 16vw, 98px);
    position: absolute; inset: 0; z-index: 140;
    pointer-events: none;
}
.jar-controls button {
    position: absolute; top: calc(50% + 16px);
    top: calc(50svh + 16px);
    width: var(--side-hit); height: min(32svh, 185px);
    transform: translateY(-50%);
    color: #483529; background: transparent; border: 0; padding: 0;
    pointer-events: auto; cursor: pointer; touch-action: pan-y pinch-zoom;
    -webkit-tap-highlight-color: transparent;
}
.jar-controls button:first-child { left: max(0px, calc(50% - var(--ring) - var(--side-hit) / 2)); }
.jar-controls button:nth-child(2) { right: max(0px, calc(50% - var(--ring) - var(--side-hit) / 2)); }
.jar-controls button:focus-visible, .jar-scroll:focus-visible {
    outline: 2px solid #5c4532; outline-offset: -4px; border-radius: 12px;
}
.jar-controls button:focus-visible::after {
    content: "‹"; padding: 2px 9px; border-radius: 50%;
    background: #f2e9df; color: #3c2a20; font: 26px/1 Georgia, serif;
}
.jar-controls button:nth-child(2):focus-visible::after { content: "›"; }
.jar-status {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
}
.jar-showcase .jar-scroll {
    position: absolute; left: 50%; bottom: max(14px,env(safe-area-inset-bottom,0px));
    bottom: calc(100% - 100svh + max(14px, env(safe-area-inset-bottom, 0px)));
    transform: translateX(-50%); display: grid; place-items: center; z-index: 141;
    width: 48px; height: 46px; color: #654c38; pointer-events: auto;
    opacity: var(--picker-visibility,1);
}
#saveurs { scroll-margin-top: 0; }
.home-page .home-flavors { padding-block: 8px 26px; }
.jars-travelling #saveurs > h2 { opacity: var(--jar-heading-opacity, 0) !important; }
.jars-travelling .home-flavors :is(.card-heading, .card-detail) {
    opacity: var(--card-copy-opacity, 1);
}
.jars-travelling .home-flavors .product-card:focus-within :is(.card-heading, .card-detail) { opacity: 1; }
@media (max-width: 650px) {
    /* Show the catalogue even before the first animation frame runs. */
    #saveurs { --jar-heading-opacity: 1; --photo-visible: 1; }
}
.home-flavors > h2 { translate: none !important; margin: 0 0 6px; font-size: clamp(27px,7vw,38px); text-shadow: none; }
.home-flavors .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px 13px; }
.home-flavors .product-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 0 0 10px;
    min-width: 0;
    border: 0;
    border-bottom: 1px solid var(--line);
}
.home-flavors .product-card-image { width: 100%; aspect-ratio: 1; display:block; }
.home-flavors .card-heading { align-self: stretch; align-items:flex-start; display:flex; flex-direction:column; gap:2px; margin: 2px 0 0; }
.home-flavors .card-heading h3 { font-size: clamp(18px,5.3vw,26px); line-height:1.04; min-height:0; text-shadow:none; }
.home-flavors .price { font-size:13px; line-height:1.45; }
.home-flavors .card-detail { align-self:stretch; margin:3px 0 0; font-size:13px; line-height:1.35; }
.home-flavors .flavor-invitation { margin-top:18px; }
@media (max-height: 420px) {
    .home-page .hero-launch.jar-showcase { --jar-unit: min(100vw,70svh); }
}
.home-page .hero-launch.jar-showcase::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: radial-gradient(ellipse at 48% 50%, rgba(255,248,226,.48), transparent 70%);
    pointer-events: none;
}
