.single-product .woocommerce-product-gallery{position:relative;max-width:100%}
.single-product .woocommerce-product-gallery.sm-static-product-gallery .woocommerce-product-gallery__wrapper,
.single-product .woocommerce-product-gallery.sm-static-product-gallery .flex-control-nav,
.single-product .woocommerce-product-gallery.sm-static-product-gallery .flex-direction-nav{display:none!important}

.sm-static-gallery-shell{width:100%;max-width:100%}
.sm-static-gallery-stage{width:100%;min-height:540px;display:flex;align-items:center;justify-content:center;background:#171717;border-radius:14px;overflow:hidden}
.sm-static-main-media{display:block;max-width:100%;width:100%;max-height:720px;object-fit:contain;background:#171717}
.sm-static-main-image{cursor:zoom-in}

.sm-static-gallery-thumbs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin-top:10px}
.sm-static-thumb{border:1px solid rgba(0,0,0,.12);border-radius:9px;overflow:hidden;background:#171717;padding:0;cursor:pointer;aspect-ratio:4/5;min-width:0}
.sm-static-thumb.is-active{outline:2px solid #d8b77a;outline-offset:1px}
.sm-static-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.sm-static-video-thumb{display:grid;place-items:center;width:100%;height:100%;color:#fff;font-size:28px;background:linear-gradient(145deg,#151515,#292522)}

.sm-static-lightbox{position:fixed;inset:0;background:rgba(0,0,0,.94);z-index:999999;display:none;align-items:center;justify-content:center;padding:20px}
.sm-static-lightbox.is-open{display:flex}
.sm-static-lightbox-stage{width:100%;height:100%;display:flex;align-items:center;justify-content:center}
.sm-static-lightbox-stage img{max-width:94vw;max-height:90vh;object-fit:contain}
.sm-static-lightbox-close{position:absolute;top:16px;right:16px;width:46px;height:46px;border:0;border-radius:999px;background:rgba(255,255,255,.13);color:#fff;cursor:pointer;z-index:2;font-size:32px}

@media(max-width:900px){
  .sm-static-gallery-thumbs{grid-template-columns:repeat(5,minmax(0,1fr))}
  .sm-static-gallery-stage{min-height:440px}
}
@media(max-width:640px){
  .sm-static-gallery-stage{min-height:360px}
  .sm-static-main-media{max-height:540px}
  .sm-static-gallery-thumbs{display:flex;gap:7px;overflow-x:auto;padding-bottom:4px;scrollbar-width:thin}
  .sm-static-thumb{flex:0 0 64px;width:64px;height:80px;aspect-ratio:auto}
  .sm-static-lightbox{padding:6px}
  .sm-static-lightbox-close{top:8px;right:8px}
}
