/* Only the inline product gallery; enlarged-viewer styles stay page-owned. */
.main-image-wrap.sg-gallery { display:block; isolation:isolate; }
.main-image-wrap.sg-gallery .sg-track { display:flex; width:100%; height:100%; overflow-x:auto; overflow-y:hidden; scroll-snap-type:x mandatory; scroll-behavior:auto; scrollbar-width:none; -ms-overflow-style:none; -webkit-overflow-scrolling:touch; overscroll-behavior-x:contain; touch-action:pan-x pan-y pinch-zoom; direction:ltr; }
.main-image-wrap.sg-gallery .sg-track::-webkit-scrollbar { display:none; }
.main-image-wrap.sg-gallery .sg-slide { position:relative; flex:0 0 100%; min-width:0; width:100%; height:100%; scroll-snap-align:start; scroll-snap-stop:always; display:flex; align-items:center; justify-content:center; }
.main-image-wrap.sg-gallery .sg-image { display:block; width:100%; height:100%; object-fit:contain; padding:12px 12px 48px; box-sizing:border-box; user-select:none; -webkit-user-select:none; -webkit-user-drag:none; transform:none; transition:none; }
.main-image-wrap.sg-gallery .sg-unavailable { position:absolute; bottom:61px; left:50%; transform:translateX(-50%); max-width:calc(100% - 32px); padding:5px 10px; border:1px solid #e2e8ed; border-radius:8px; background:rgba(255,255,255,.96); color:#475569; font-size:12px; font-weight:600; line-height:1.4; text-align:center; pointer-events:none; }
.main-image-wrap.sg-gallery .sg-arrow,.main-image-wrap.sg-gallery .sg-open { position:absolute; z-index:1; display:inline-flex; align-items:center; justify-content:center; min-width:44px; min-height:44px; margin:0; border:1px solid #dce8e3; border-radius:12px; background:rgba(255,255,255,.94); color:#28564b; font-family:inherit; cursor:pointer; box-shadow:0 2px 8px #173d3908; touch-action:manipulation; }
.main-image-wrap.sg-gallery .sg-arrow { top:50%; transform:translateY(-50%); width:44px; height:44px; padding:0 0 3px; font-family:Arial,sans-serif; font-size:32px; line-height:1; }
.main-image-wrap.sg-gallery .sg-prev { left:8px; }
.main-image-wrap.sg-gallery .sg-next { right:8px; }
.main-image-wrap.sg-gallery .sg-arrow:disabled { opacity:.35; cursor:default; }
.main-image-wrap.sg-gallery .sg-open { right:8px; bottom:8px; padding:8px 12px; font-size:11px; line-height:1.25; font-weight:700; }
.main-image-wrap.sg-gallery .sg-counter { position:absolute; z-index:1; left:10px; bottom:17px; padding:4px 9px; border-radius:99px; background:rgba(255,255,255,.94); color:#28564b; border:1px solid #e2e8ed; font-size:11px; line-height:1.3; font-weight:700; pointer-events:none; }
.main-image-wrap.sg-gallery [hidden] { display:none; }
.main-image-wrap.sg-gallery .sg-track:focus-visible,.main-image-wrap.sg-gallery button:focus-visible { outline:2px solid #008080; outline-offset:-3px; }
@media (max-width:767px) {
    .main-image-wrap.sg-gallery .sg-image { padding:8px 8px 48px; }
}
@media (prefers-reduced-motion:reduce) {
    .main-image-wrap.sg-gallery .sg-track { scroll-behavior:auto; }
}
