.product-page .product-gallery{min-width:0}
.product-page .product-gallery.gs-gallery-single,.product-page .product-gallery.gs-gallery-empty{grid-template-columns:minmax(0,1fr)}
.product-page .product-gallery.gs-gallery-single .product-main-image,.product-page .product-gallery.gs-gallery-empty .product-main-image{grid-column:1}
.product-page .product-main-image[data-gallery-hero]{position:relative;touch-action:pan-y pinch-zoom}
.product-page .gs-gallery-open{display:block;width:100%;height:100%;color:#222;cursor:zoom-in}
.product-page .gs-gallery-open img{user-select:none;-webkit-user-drag:none}
.gs-gallery-hint,.gs-gallery-count{position:absolute;z-index:1;pointer-events:none;border-radius:4px;background:#fffE;color:#222;font-size:12px;line-height:1.5;padding:6px 9px}
.gs-gallery-hint{left:50%;bottom:10px;transform:translateX(-50%);max-width:calc(100% - 24px);text-align:center;white-space:normal}
.gs-gallery-count{left:10px;top:10px}
.gs-gallery-arrow{display:inline-flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;padding:0;border:1px solid #ccc;border-radius:50%;background:#fff;color:#111;font-size:30px;line-height:1;cursor:pointer}
.gs-gallery-arrow[hidden]{display:none!important}
.product-page .product-main-image>.gs-gallery-arrow{position:absolute;z-index:2;top:50%;transform:translateY(-50%);box-shadow:0 2px 6px #0001}
.gs-gallery-prev{left:8px}.gs-gallery-next{right:8px}
.product-page .product-thumbnail{display:flex;align-items:center;justify-content:center;flex:none;min-width:54px;min-height:54px;box-sizing:border-box}
.product-page .product-thumbnail[aria-current=true]{border:2px solid #ad0010;box-shadow:0 0 0 1px #ad0010}
.product-page .product-thumbnails{max-height:520px;overflow:auto;overscroll-behavior:contain}
.product-page .gs-gallery-open:focus-visible,.product-page .product-thumbnail:focus-visible,.gs-gallery-arrow:focus-visible,.gs-gallery-dialog button:focus-visible,.gs-gallery-view:focus-visible{outline:2px solid #ad0010;outline-offset:-3px}
.gs-gallery-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.gs-gallery-dialog{width:100vw;max-width:none;height:100vh;height:100dvh;max-height:none;inset:0;margin:0;padding:0;border:0;background:#f8f8f8;color:#111;box-sizing:border-box;overflow:hidden}
.gs-gallery-dialog:not([open]){display:none!important}
.gs-gallery-dialog[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:0}
.gs-gallery-dialog::backdrop{background:#000b}
.gs-gallery-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:max(8px,env(safe-area-inset-top)) 12px 8px 16px;background:#fff;border-bottom:1px solid #ddd}
.gs-gallery-dialog-head h2{margin:0;font:700 17px/1.5 Arial,Helvetica,sans-serif;overflow-wrap:anywhere}
.gs-gallery-close{flex:none;width:44px;height:44px;padding:0;border:0;background:#fff;color:#111;font:28px/1 Arial,Helvetica,sans-serif;cursor:pointer}
.gs-gallery-view{min-width:0;min-height:0;width:100%;height:100%;overflow:auto;overscroll-behavior:contain;touch-action:pan-y pinch-zoom}
.gs-gallery-canvas{display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-width:100%;min-height:100%}
.gs-gallery-dialog .gs-gallery-canvas>img{display:block;width:100%;height:100%;max-width:none;max-height:none;object-fit:contain;user-select:none;-webkit-user-drag:none}
.gs-gallery-view.is-zoomed{touch-action:pan-x pan-y pinch-zoom;cursor:move}
.gs-gallery-dialog-footer{padding:8px 12px max(8px,env(safe-area-inset-bottom));background:#fff;border-top:1px solid #ddd}
.gs-gallery-dialog-controls{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px;font:14px/1.5 Arial,Helvetica,sans-serif}
.gs-gallery-dialog-controls>span{min-width:42px;text-align:center}
.gs-gallery-zoom{min-height:44px;padding:8px 14px;border:1px solid #999;border-radius:5px;background:#fff;color:#111;font:14px/1.4 Arial,Helvetica,sans-serif;cursor:pointer}
.gs-gallery-zoom:disabled{color:#777;cursor:default}
.gs-gallery-load-status{min-height:18px;margin:6px 0 0;color:#555;text-align:center;font:12px/1.5 Arial,Helvetica,sans-serif}
.gs-gallery-empty .product-main-image{font-size:14px;color:#666}
@media(max-width:750px){.product-page .product-thumbnails{max-width:100%;max-height:none;padding:3px;scroll-padding:3px}.gs-gallery-dialog-controls{gap:8px}.gs-gallery-dialog-head h2{font-size:16px}}
