[data-sp-gallery] .product-main-image{position:relative;touch-action:pan-y;cursor:zoom-in;overflow:hidden}
[data-sp-gallery] .sp-gallery-zoom{position:absolute;right:6px;bottom:6px;display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:12px;border:0;border-radius:50%;background:#ffffffd9;color:#555;cursor:zoom-in}
[data-sp-gallery] .sp-gallery-zoom svg{width:18px;height:18px}
.sp-gallery-progress{display:flex;justify-content:center;gap:5px;margin:12px auto 16px;max-width:180px}
.sp-gallery-progress span{flex:1;max-width:24px;height:3px;border-radius:3px;background:#dedede}
.sp-gallery-progress span.is-active{background:#111}
[data-sp-gallery] .gallery-thumbs button[aria-pressed="true"]{border-color:#111;box-shadow:inset 0 0 0 1px #111}
.sp-gallery-viewer{position:fixed;inset:0;width:100%;max-width:none;height:100%;height:100dvh;max-height:none;margin:0;padding:0;border:0;background:#fff;color:#111;overscroll-behavior:contain}
.sp-gallery-viewer[open]{display:flex;flex-direction:column}
.sp-gallery-viewer::backdrop{background:#fff}
.sp-gallery-viewer__top{display:flex;align-items:center;justify-content:center;position:relative;flex:0 0 64px;padding-top:env(safe-area-inset-top);box-sizing:content-box}
.sp-gallery-viewer__top span{font:12px/1.4 Arial,sans-serif;color:#777}
.sp-gallery-viewer button{display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:10px;border:0;background:transparent;color:#111;border-radius:0}
.sp-gallery-viewer__top button{position:absolute;right:12px;bottom:10px}
.sp-gallery-stage{flex:1;min-height:0;position:relative;overflow:hidden;touch-action:none;user-select:none;cursor:zoom-in}
.sp-gallery-stage img{width:100%;height:100%;object-fit:contain;max-width:none;transform-origin:center;will-change:transform;pointer-events:none}
.sp-gallery-viewer__bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:0 0 56px;padding:0 16px env(safe-area-inset-bottom);box-sizing:content-box}
.sp-gallery-viewer__bottom span{font:12px/1.4 Arial,sans-serif;color:#777;text-align:center}
.sp-gallery-viewer__bottom button{font:28px/1 Arial,sans-serif}
.sp-gallery-viewer button:disabled{opacity:.2}

[data-sp-gallery] .product-main-image{touch-action:auto;-webkit-tap-highlight-color:transparent}
[data-sp-gallery] .sp-gallery-source{visibility:hidden;pointer-events:none}
[data-sp-gallery] .sp-gallery-track{position:absolute;inset:0;display:flex;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y pinch-zoom}
[data-sp-gallery] .sp-gallery-track::-webkit-scrollbar{display:none}
[data-sp-gallery] .sp-gallery-slide{flex:0 0 100%;min-width:0;width:100%;height:100%;object-fit:contain;scroll-snap-align:center;scroll-snap-stop:always;user-select:none;-webkit-user-drag:none}
[data-sp-gallery] .sp-gallery-progress{position:absolute;left:50%;bottom:10px;transform:translateX(-50%);width:112px;max-width:calc(100% - 116px);gap:5px;margin:0;pointer-events:none;z-index:1}
[data-sp-gallery] .sp-gallery-progress[hidden]{display:none}
[data-sp-gallery] .sp-gallery-progress span{height:3px;max-width:24px}
[data-sp-gallery] .sp-gallery-zoom{right:2px;bottom:0;z-index:2}
[data-sp-gallery] .sp-gallery-zoom svg{aspect-ratio:auto;mix-blend-mode:normal}
[data-sp-gallery] .gallery-thumbs{padding-block:10px 0}
[data-sp-gallery] .product-main-image:focus,[data-sp-gallery] .sp-gallery-zoom:focus,[data-sp-gallery] .gallery-thumbs button:focus,.sp-gallery-viewer button:focus{outline:none!important}
[data-sp-gallery] .product-main-image:focus-visible,[data-sp-gallery] .sp-gallery-zoom:focus-visible,[data-sp-gallery] .gallery-thumbs button:focus-visible,.sp-gallery-viewer button:focus-visible{outline:2px solid #111!important;outline-offset:-3px}
[data-sp-gallery] button,.sp-gallery-viewer button{-webkit-tap-highlight-color:transparent}
@media(max-width:749px){[data-sp-gallery] .gallery-thumbs{gap:8px;padding-block:8px 0}[data-sp-gallery] .gallery-thumbs button{width:72px;min-width:60px;flex:0 0 calc((100% - 24px)/4);max-width:84px}.product-detail [data-sp-gallery]+.sp-gallery-viewer+.product-info,.product-detail .product-layout>.product-info{padding-top:18px}}
@media(prefers-reduced-motion:reduce){[data-sp-gallery] .sp-gallery-track{scroll-behavior:auto}}

[data-sp-gallery] .product-main-image .sp-gallery-slide{transform:none!important;transition:none!important}

.sp-gallery-viewer .sp-gallery-stage{touch-action:auto;cursor:zoom-in;-webkit-tap-highlight-color:transparent}
.sp-viewer-track{position:absolute;inset:0;display:flex;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain;touch-action:pan-x pan-y pinch-zoom;-webkit-overflow-scrolling:touch}
.sp-viewer-track::-webkit-scrollbar{display:none}
.sp-viewer-slide{flex:0 0 100%;width:100%;height:100%;min-width:0;overflow:hidden;scroll-snap-align:center;scroll-snap-stop:always}
.sp-gallery-viewer .sp-viewer-slide img{display:block;width:100%;height:100%;object-fit:contain;transform-origin:center;transition:transform .2s ease;user-select:none;-webkit-user-drag:none}
.sp-gallery-viewer.is-zoomed .sp-viewer-track{overflow:hidden;touch-action:none}
.sp-gallery-viewer.is-zoomed .sp-gallery-stage{touch-action:none;cursor:grab}
.sp-gallery-viewer.is-dragging .sp-gallery-stage{cursor:grabbing}
.sp-gallery-viewer.is-dragging .sp-viewer-slide img{transition:none}
.sp-gallery-viewer .sp-gallery-viewer__top .sp-viewer-zoom{left:12px;right:auto;cursor:zoom-in}
.sp-gallery-viewer .sp-viewer-zoom[aria-pressed="true"]{cursor:zoom-out}
[data-sp-gallery] .product-main-image:focus-visible,[data-sp-gallery] .sp-gallery-zoom:focus-visible,[data-sp-gallery] .gallery-thumbs button:focus-visible,.sp-gallery-viewer button:focus-visible,.sp-gallery-viewer .sp-gallery-stage:focus{outline:none!important;box-shadow:none!important}
[data-sp-gallery][data-keyboard-focus] .product-main-image:focus,[data-sp-gallery][data-keyboard-focus] button:focus,.sp-gallery-viewer[data-keyboard-focus] button:focus,.sp-gallery-viewer[data-keyboard-focus] .sp-gallery-stage:focus{outline:2px solid #111!important;outline-offset:-3px}
.sp-gallery-viewer .sp-gallery-stage,.sp-gallery-viewer .sp-gallery-stage *{-webkit-tap-highlight-color:transparent}
@media(prefers-reduced-motion:reduce){.sp-gallery-viewer .sp-viewer-slide img{transition:none}}
