/* Shared, full-screen product image viewer */
.gallery .main, .gallery .thumb { cursor: zoom-in; }
.gallery .main:focus-visible, .gallery .thumb:focus-visible { outline: 3px solid #12B4D6; outline-offset: 3px; }
.product-image-viewer[hidden] { display: none; }
.product-image-viewer { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(5, 13, 23, .92); }
.product-image-viewer__dialog { position: relative; display: flex; flex-direction: column; width: min(1120px, calc(100vw - 48px)); height: min(820px, calc(100vh - 48px)); max-height: calc(100vh - 48px); height: min(820px, calc(100dvh - 48px)); max-height: calc(100dvh - 48px); color: #fff; }
.product-image-viewer__stage { flex: 1 1 0; min-height: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; background: #fff; cursor: zoom-in; touch-action: pan-y; }
.product-image-viewer__stage.is-zoomed { cursor: zoom-out; }
.product-image-viewer__image { display: block; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; transform-origin: center; transition: transform .16s ease; user-select: none; }
.product-image-viewer__stage.is-zoomed .product-image-viewer__image { transform: scale(2.25); }
.product-image-viewer__controls { display: flex; align-items: center; justify-content: center; gap: 12px; padding-top: 14px; }
.product-image-viewer button { border: 1px solid rgba(255,255,255,.4); border-radius: 7px; padding: 9px 13px; background: rgba(11,24,38,.78); color: #fff; font: 600 .82rem/1 Inter, sans-serif; cursor: pointer; }
.product-image-viewer button:hover, .product-image-viewer button:focus-visible { background: #12B4D6; color: #08131e; outline: none; }
.product-image-viewer__close { position: absolute; top: 12px; right: 12px; z-index: 1; }
.product-image-viewer__previous, .product-image-viewer__next { position: absolute; z-index: 1; top: 50%; transform: translateY(-50%); font-size: 1.25rem !important; }
.product-image-viewer__previous { left: 12px; }.product-image-viewer__next { right: 12px; }
.product-image-viewer__counter { min-width: 3.5em; text-align: center; font: 500 .8rem/1 'IBM Plex Mono', monospace; }
body.product-viewer-open { overflow: hidden; }
@media (max-width: 600px) { .product-image-viewer { padding: 12px; } .product-image-viewer__dialog { width: calc(100vw - 24px); height: min(700px, calc(100vh - 24px)); max-height: calc(100vh - 24px); height: min(700px, calc(100dvh - 24px)); max-height: calc(100dvh - 24px); } .product-image-viewer__previous { left: 6px; } .product-image-viewer__next { right: 6px; } }
