/* Production STANDARD weekend WooCommerce gallery; exact approved DEV interaction. */
.jb-prod-gallery.images{
  position:relative;box-sizing:border-box;max-width:100%;min-width:0;
}
.jb-prod-gallery.images *{box-sizing:border-box}
.jb-prod-gallery .jb-dev-prod-main-photo{
  aspect-ratio:1.04;display:block;width:100%;padding:0;overflow:hidden;
  background:#f0f5f6;border-radius:12px;border:1px solid #e0e8ea;position:relative
}
.jb-prod-gallery .jb-dev-prod-main-photo>img{
  height:100%!important;width:100%!important;object-fit:cover;margin:0!important;float:none!important
}
.jb-prod-gallery .jb-dev-prod-thumbs{
  display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-top:12px
}
.jb-prod-gallery .jb-dev-prod-thumbs button{
  display:block;padding:0;overflow:hidden;border:2px solid transparent;background:transparent;
  cursor:pointer;border-radius:8px;aspect-ratio:1;min-width:0;margin:0;box-shadow:none
}
.jb-prod-gallery .jb-dev-prod-thumbs button:is(.is-active,:focus-visible){border-color:#f5a623}
.jb-prod-gallery .jb-dev-prod-thumbs img{
  width:100%!important;height:100%!important;object-fit:cover!important;margin:0!important
}
@media(max-width:780px){
  .jb-prod-gallery .jb-dev-prod-main-photo{aspect-ratio:1.15}
  .jb-prod-gallery .jb-dev-prod-thumbs{gap:7px}
}

/* Product image remains the original Woo featured image. Added photos = gallery only. */
.jb-dev-prod-main-photo{display:block;position:relative;width:100%;padding:0;cursor:zoom-in;text-align:inherit}
.jb-dev-prod-main-photo:focus-visible{outline:3px solid #f5a623;outline-offset:3px}
.jb-dev-prod-main-zoom{position:absolute;top:10px;left:10px;bottom:auto;right:auto;background:rgba(11,41,53,.82);color:#fff;
 padding:5px 8px;border-radius:7px;font-size:11px;line-height:1.2;font-weight:700;pointer-events:none}
.jb-dev-prod-gallery-caption{margin:17px 0 7px!important;color:#4c6b77;font-size:12px!important;
 font-weight:800;letter-spacing:.07em;text-align:left}
.jb-dev-prod-reset-main{margin:14px 0 0;border:1px solid #c8d9df;border-radius:8px;background:white;color:#187b9b;
 font-weight:700;font-size:12px;padding:10px 14px;cursor:pointer}
.jb-dev-prod-reset-main:disabled{opacity:.5;cursor:default}
.jb-dev-prod-gallery-unavailable{font-size:13px;color:#8a5a16}
.jb-dev-prod-lightbox{inset:0;margin:auto;padding:0;width:min(98vw,1600px);max-width:98vw;
 height:min(95dvh,980px);max-height:95dvh;background:#061922;border:1px solid #375361;border-radius:14px;
 overflow:hidden;color:#fff;box-shadow:0 25px 100px rgba(0,0,0,.5)}
.jb-dev-prod-lightbox::backdrop{background:rgba(0,8,14,.92)}
.jb-dev-prod-lightbox-tools{display:flex;justify-content:center;align-items:center;gap:8px;
 padding:10px;background:#0b2935;min-height:58px}
.jb-dev-prod-lightbox-tools button{width:44px;height:40px;padding:0;border:1px solid #496471;
 border-radius:8px;background:#133948;color:#fff;font-size:20px;cursor:pointer}
.jb-dev-prod-lightbox-tools button:focus-visible{outline:3px solid #f5a623}
.jb-dev-prod-lightbox-tools span{font-size:13px;font-weight:800;min-width:72px;text-align:center}
.jb-dev-prod-lightbox-stage{height:calc(100% - 106px);width:100%;display:grid;place-items:center;
 overflow:hidden;touch-action:none;user-select:none;cursor:grab}
.jb-dev-prod-lightbox-stage:active{cursor:grabbing}
.jb-dev-prod-lightbox-stage img{max-width:100%;max-height:100%;height:auto;width:auto;object-fit:contain;
 transform-origin:center center;transition:none;pointer-events:none;user-select:none}
.jb-dev-prod-lightbox-hint{color:#b9cdd7;text-align:center;margin:8px 10px;font-size:12px}
@media(max-width:640px){
 .jb-dev-prod-lightbox{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0}
 .jb-dev-prod-lightbox-tools{gap:4px}
 .jb-dev-prod-lightbox-tools button{width:37px;height:38px;min-width:0;font-size:17px}
 .jb-dev-prod-lightbox-tools span{min-width:52px}
 .jb-dev-prod-lightbox-hint{font-size:11px}
}

/* Override Woo / theme float rules so 15-17 thumbnails stay inside gallery column. */
div.qode-product-with-gallery.product:is(.post-11749,.post-11753) .jb-prod-gallery.images,
div.qode-product-with-gallery.product:is(.post-11749,.post-11753) .summary.entry-summary{float:none!important;width:100%!important;max-width:none!important;margin:0!important;clear:none!important}
.jb-prod-gallery .jb-dev-prod-main-photo img{margin:0!important;float:none!important}
.jb-prod-gallery .jb-dev-prod-thumbs button{display:block!important;float:none!important;width:100%!important;max-width:100%}
.jb-prod-gallery .jb-dev-prod-thumbs img{width:100%!important;height:100%!important;object-fit:cover!important}


/* PROD parity: faithful DEV two-column single-product overview.
 * Keep Woo cart/stock/price functions untouched; only the outer layout changes.
 * These rules are intentionally scoped to the two approved gallery products.
 */
div.qode-product-with-gallery.product:is(.post-11749,.post-11753){
  display:grid!important;
  grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr)!important;
  column-gap:clamp(24px,4vw,55px)!important;
  align-items:start!important;
  width:100%;
}
div.qode-product-with-gallery.product:is(.post-11749,.post-11753) > .jb-prod-gallery.images{
  grid-column:1!important;grid-row:1!important;
  float:none!important;clear:none!important;display:block!important;
  width:100%!important;max-width:none!important;min-width:0!important;
  margin:0!important;position:relative!important;z-index:1;
}
div.qode-product-with-gallery.product:is(.post-11749,.post-11753) > .summary.entry-summary{
  grid-column:2!important;grid-row:1!important;
  float:none!important;clear:none!important;display:block!important;
  width:100%!important;max-width:none!important;min-width:0!important;
  margin:0!important;text-align:left!important;
}
div.qode-product-with-gallery.product:is(.post-11749,.post-11753) > :not(.jb-prod-gallery):not(.summary):not(.onsale){
  grid-column:1/-1;
}
div.qode-product-with-gallery.product:is(.post-11749,.post-11753) > .onsale{
  position:absolute;top:0;left:0;z-index:4;
}
body.single-product .jb-prod-gallery .jb-dev-prod-main-photo,
body.single-product .jb-prod-gallery .jb-dev-prod-thumbs button,
body.single-product .jb-prod-gallery .jb-dev-prod-reset-main{
  position:relative;z-index:2;pointer-events:auto!important;cursor:pointer;
}
body.single-product .jb-prod-gallery .jb-dev-prod-main-photo img,
body.single-product .jb-prod-gallery .jb-dev-prod-thumbs img{
  pointer-events:none!important;
}
@media(max-width:780px){
  div.qode-product-with-gallery.product:is(.post-11749,.post-11753){
    grid-template-columns:minmax(0,1fr)!important;column-gap:0!important;
  }
  div.qode-product-with-gallery.product:is(.post-11749,.post-11753) > .jb-prod-gallery.images{
    grid-column:1!important;grid-row:1!important;
  }
  div.qode-product-with-gallery.product:is(.post-11749,.post-11753) > .summary.entry-summary{
    grid-column:1!important;grid-row:2!important;margin-top:25px!important;
  }
}

/* Bridge wraps Woo's .summary in .qode-single-product-summary (not a direct .product child).
   Target the real grid item; never change cart, price, stock or gallery media. */
div.qode-product-with-gallery.product:is(.post-11749,.post-11753) > .qode-single-product-summary{
  grid-column:2!important;grid-row:1!important;min-width:0!important;
  width:100%!important;max-width:none!important;margin:0!important;
  float:none!important;clear:none!important;
}
div.qode-product-with-gallery.product:is(.post-11749,.post-11753) > .qode-single-product-summary .summary.entry-summary{
  width:100%!important;max-width:none!important;margin:0!important;
  float:none!important;clear:none!important;
}
@media(max-width:780px){
  div.qode-product-with-gallery.product:is(.post-11749,.post-11753) > .qode-single-product-summary{
    grid-column:1!important;grid-row:2!important;margin-top:25px!important;
  }
}
