/* Image-only navigation: fixed stage size, contained images, native touch scrolling. */
.product .gallery .gallery-inner{position:relative;min-height:0;flex:none;aspect-ratio:1;max-height:480px}
.product .gallery .product-image-open{display:flex;align-items:center;justify-content:center;width:100%;height:100%;padding:12px 38px}
.product .gallery #mainProductImage{width:100%;height:100%;max-height:100%;object-fit:contain}
.gallery-controls{position:absolute;inset:0;pointer-events:none}
.gallery-controls button{position:absolute;top:50%;transform:translateY(-50%);display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border:1px solid #e3dac5;border-radius:50%;background:rgba(255,253,247,.94);color:var(--olive);box-shadow:0 2px 8px #302b1515;cursor:pointer;touch-action:manipulation;pointer-events:auto}
.gallery-controls button[data-gallery-step="-1"]{left:8px}.gallery-controls button[data-gallery-step="1"]{right:8px}
.gallery-controls button svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.gallery-controls button:hover{background:#fffdf7;border-color:var(--olive)}.gallery-controls button:focus-visible{outline:3px solid var(--teal);outline-offset:2px}
.gallery-controls [data-gallery-counter]{position:absolute;right:12px;bottom:12px;padding:3px 10px;border:1px solid #dad7cb;border-radius:20px;background:rgba(255,253,247,.94);text-align:center;font-size:12px;line-height:1.5;font-variant-numeric:tabular-nums;color:var(--muted);white-space:nowrap}
[data-gallery-multiple] .product-image-open,[data-gallery-multiple] .image-viewer-stage{touch-action:pan-y pinch-zoom}
[data-gallery-multiple] [data-gallery-zoomed=true]{touch-action:manipulation}
[data-product-gallery] .thumbnails{flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;gap:10px;padding:12px 3px 4px}
[data-product-gallery] .thumbnail{flex-shrink:0;scroll-snap-align:start;width:72px;height:60px}
.gallery .gallery-note{font-size:12px;line-height:1.65;margin-top:10px}.gallery .image-zoom-hint{display:block;margin-bottom:5px}
.gallery-fallback{font-size:14px;line-height:2}.gallery-fallback a{display:inline-block;min-height:44px;margin-right:12px}
.product-image-dialog{max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);overflow-y:auto}
.image-viewer-stage{position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:min(68vh,720px);height:min(68dvh,720px);min-height:60px;flex-shrink:1;overflow:hidden;padding:8px 46px}
.product-image-dialog .image-viewer-stage img{width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain}
.product-image-dialog>[data-image-close],.product-image-dialog>[data-image-status]{flex-shrink:0}
@media(max-width:900px){.product .gallery .gallery-inner{height:min(72vw,50vh,380px);height:min(72vw,50svh,380px);aspect-ratio:auto}}
@media(max-width:600px){.product .gallery .gallery-inner{height:min(76vw,48vh,320px);height:min(76vw,48svh,320px)}.product .gallery .product-image-open{padding:10px 30px}.gallery-controls button[data-gallery-step="-1"]{left:4px}.gallery-controls button[data-gallery-step="1"]{right:4px}.gallery-controls [data-gallery-counter]{right:9px;bottom:9px}[data-product-gallery] .thumbnail{width:64px;height:54px}.image-viewer-stage{padding:6px 38px}}
