.product-gallery{min-width:0;position:relative;overflow:visible;z-index:2;--gallery-radius:6px}
.official-interface .product-gallery{--gallery-radius:3px}
.product-gallery-stage{position:relative;isolation:isolate;user-select:none;aspect-ratio:3/2;border:1px solid color-mix(in srgb,var(--border,#dce3e4) 60%,white);border-radius:var(--gallery-radius);background:var(--card_bg,#fff)}
.product-gallery-stage>a{position:absolute;inset:5px;display:block;padding:0;cursor:zoom-in;touch-action:pan-y pinch-zoom;overflow:hidden;border-radius:var(--gallery-radius)}
.detail-grid .product-gallery-stage [data-gallery-main]{display:block;width:100%;height:100%;max-height:none;aspect-ratio:auto;object-fit:contain;background:var(--card_bg,#fff);border-radius:0;will-change:transform;user-select:none;-webkit-user-drag:none}
.product-gallery-stage.is-swiping>a{cursor:grabbing}
.product-gallery-lens{position:absolute;background:color-mix(in srgb,var(--accent,#2580b8) 15%,transparent);border:1px solid color-mix(in srgb,var(--accent,#2580b8) 60%,white);pointer-events:none;z-index:2}
.product-gallery-zoom{position:absolute;left:calc(100% + 12px);top:0;overflow:hidden;background:var(--card_bg,#fff);border:1px solid #e2e7ec;border-radius:var(--gallery-radius);box-shadow:0 3px 12px #142b4612;pointer-events:none;z-index:10}
.detail-grid .product-gallery-zoom img{position:absolute;max-width:none!important;max-height:none!important;object-fit:fill;border-radius:0;margin:0}
.product-gallery [hidden]{display:none!important}
.product-gallery .product-gallery-thumbnails{display:flex;flex-wrap:nowrap;gap:8px;margin-top:10px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;padding:2px 0 6px}
.product-gallery-thumbnails button{padding:3px;width:72px;height:72px;flex:0 0 72px;border:1px solid #e2e7ec;border-radius:var(--gallery-radius);background:var(--card_bg,#fff);cursor:pointer}
.product-gallery-thumbnails button[aria-pressed=true],.product-gallery-thumbnails button:focus-visible{border-color:var(--accent,#2580b8);box-shadow:inset 0 0 0 1px var(--accent,#2580b8);outline-offset:2px}
.detail-grid .product-gallery-thumbnails img{width:100%;height:100%;object-fit:contain;border-radius:2px}
.product-gallery-thumbnails button:hover{border-color:var(--accent,#2580b8)}
.product-gallery .product-gallery-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:3;width:32px;height:44px;min-width:0;padding:0;border:1px solid #dce3e8;border-radius:5px;background:#fffffff0;color:#40586b;font-size:28px;line-height:1;box-shadow:0 1px 4px #152c4010;cursor:pointer;opacity:.88}
.product-gallery .product-gallery-arrow:hover{opacity:1;background:#fff}.product-gallery .product-gallery-arrow:disabled{opacity:.3;cursor:default}
.gallery-previous{left:9px}.gallery-next{right:9px}.product-gallery-status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@media(max-width:767px){.product-gallery-zoom,.product-gallery-lens{display:none!important}.product-gallery-thumbnails button{width:60px;height:60px;flex-basis:60px}}
@media(prefers-reduced-motion:reduce){.product-gallery *{scroll-behavior:auto!important}}
.detail-grid>div{min-width:0}.product-gallery .product-gallery-thumbnails{min-width:0;max-width:100%}.product-gallery:focus{outline:none}.product-gallery:focus-visible{outline:1px solid #b8ccd9;outline-offset:3px}
.product-gallery .product-gallery-arrow{display:none!important}
.product-gallery .product-gallery-thumbnails::-webkit-scrollbar{height:7px}.product-gallery .product-gallery-thumbnails::-webkit-scrollbar-track{background:#f1f4f7;border-radius:8px}.product-gallery .product-gallery-thumbnails::-webkit-scrollbar-thumb{background:#c1ccd6;border-radius:8px}
