/* Pahadi Magic Product Image Manager v2.2 — compact single product media gallery */
body.single-product div.product div.images.woocommerce-product-gallery{
  width:45% !important;
  max-width:610px !important;
  margin:0 0 28px !important;
}
body.single-product div.product div.summary{
  width:50% !important;
  margin-top:0 !important;
}
body.single-product .woocommerce-product-gallery .flex-viewport{
  background:#fff !important;
  border-radius:18px !important;
}
body.single-product .woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image{
  height:var(--pm-pim-single-desktop-height) !important;
  min-height:var(--pm-pim-single-desktop-height) !important;
  max-height:var(--pm-pim-single-desktop-height) !important;
  background:#fff !important;
  box-sizing:border-box !important;
  overflow:hidden !important;
}
body.single-product .woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image>a{
  width:100% !important;
  height:100% !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:12px !important;
  box-sizing:border-box !important;
  background:#fff !important;
}
body.single-product .woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image img{
  width:auto !important;
  height:auto !important;
  max-width:100% !important;
  max-height:100% !important;
  object-fit:contain !important;
  object-position:center center !important;
  margin:auto !important;
}
body.single-product .woocommerce-product-gallery ol.flex-control-thumbs{
  display:grid !important;
  grid-template-columns:repeat(6,minmax(0,1fr)) !important;
  gap:9px !important;
  margin:12px 0 0 !important;
  padding:0 !important;
  list-style:none !important;
}
body.single-product .woocommerce-product-gallery ol.flex-control-thumbs li{
  width:auto !important;
  float:none !important;
  margin:0 !important;
  position:relative !important;
  aspect-ratio:1/1 !important;
  border:1px solid #dedede !important;
  border-radius:10px !important;
  overflow:hidden !important;
  background:#fff !important;
  box-sizing:border-box !important;
}
body.single-product .woocommerce-product-gallery ol.flex-control-thumbs li img{
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
  padding:4px !important;
  box-sizing:border-box !important;
  opacity:.76 !important;
}
body.single-product .woocommerce-product-gallery ol.flex-control-thumbs li img.flex-active{
  opacity:1 !important;
  outline:2px solid #d7aa36 !important;
  outline-offset:-2px !important;
  border-radius:9px !important;
}
body.single-product .woocommerce-product-gallery ol.flex-control-thumbs li.pm-pim-video-thumb::after{
  content:'▶';
  position:absolute;
  left:50%;top:50%;transform:translate(-50%,-50%);
  width:32px;height:32px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:rgba(9,58,38,.9);color:#fff;font-size:13px;line-height:1;
  pointer-events:none;box-shadow:0 2px 10px rgba(0,0,0,.16);
}
body.single-product .pm-pim-video-stage{
  width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:#081f16;
}
body.single-product .pm-pim-product-video{
  width:100%;height:100%;object-fit:contain;background:#081f16;display:block;
}
@media (max-width:782px){
 body.single-product div.product div.images.woocommerce-product-gallery,
 body.single-product div.product div.summary{width:100% !important;max-width:none !important;float:none !important;}
 body.single-product .woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image{
   height:var(--pm-pim-single-mobile-height) !important;
   min-height:var(--pm-pim-single-mobile-height) !important;
   max-height:var(--pm-pim-single-mobile-height) !important;
 }
 body.single-product .woocommerce-product-gallery ol.flex-control-thumbs{
   grid-template-columns:repeat(6,64px) !important;
   overflow-x:auto !important;
   overscroll-behavior-inline:contain;
   scrollbar-width:thin;
   padding-bottom:4px !important;
 }
}
@media (max-width:420px){
 body.single-product .woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image>a{padding:8px !important;}
 body.single-product .woocommerce-product-gallery ol.flex-control-thumbs{grid-template-columns:repeat(6,56px) !important;gap:7px !important;}
}
