/* NXB-06X: galería fluida. Capa final: evita que la fotografía invada la ficha. */
body.nxb-premium-store .product-detail-page .product-detail-shell {
  display:grid!important;
  grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr)!important;
  align-items:start!important;
  max-width:100%!important;
  min-width:0!important;
  gap:clamp(16px,2.2vw,30px)!important;
}
body.nxb-premium-store .product-detail-page .product-detail-shell > :is(.product-gallery,.product-info) {
  min-width:0!important;max-width:100%!important;width:100%!important;
  box-sizing:border-box!important;
}
body.nxb-premium-store .product-detail-page .nxb-be-gallery {
  display:grid!important;
  grid-template-columns:clamp(60px,5.5vw,80px) minmax(0,1fr)!important;
  grid-template-rows:auto!important;
  align-items:start!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  gap:clamp(8px,1vw,13px)!important;
}
body.nxb-premium-store .product-detail-page .nxb-be-gallery .product-gallery-main {
  grid-column:2!important;grid-row:1!important;
  width:100%!important;max-width:100%!important;min-width:0!important;
  min-height:0!important;height:min(36vw,60dvh,520px)!important;
  max-height:520px!important;aspect-ratio:auto!important;
  overflow:hidden!important;box-sizing:border-box!important;
  position:relative!important;isolation:isolate!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
}
body.nxb-premium-store .product-detail-page .nxb-be-gallery .product-gallery-main img {
  display:block!important;position:relative!important;
  width:100%!important;height:100%!important;
  min-width:0!important;min-height:0!important;
  max-width:100%!important;max-height:100%!important;
  object-fit:contain!important;object-position:center!important;
  padding:clamp(9px,1.5vw,18px)!important;box-sizing:border-box!important;
}
body.nxb-premium-store .product-detail-page .nxb-be-gallery .product-gallery-main::before,
body.nxb-premium-store .product-detail-page .nxb-be-gallery .product-gallery-main::after {pointer-events:none!important;}
body.nxb-premium-store .product-detail-page .nxb-be-gallery .nxb-be-thumbs {
  grid-column:1!important;grid-row:1!important;
  width:100%!important;min-width:0!important;
  max-width:100%!important;max-height:min(60dvh,520px)!important;
  overflow-x:hidden!important;overflow-y:auto!important;
  display:flex!important;flex-direction:column!important;gap:8px!important;
}
body.nxb-premium-store .product-detail-page .nxb-be-gallery .nxb-be-thumbs button {
  width:100%!important;max-width:100%!important;height:72px!important;min-width:0!important;
  flex:0 0 72px!important;
}
body.nxb-premium-store .product-detail-page .product-info {padding:clamp(10px,1.4vw,22px)!important;position:relative!important;z-index:auto!important;overflow-wrap:anywhere!important;}
@media (max-width:1100px){
  body.nxb-premium-store .product-detail-page .product-detail-shell {grid-template-columns:minmax(0,1fr)!important;}
  body.nxb-premium-store .product-detail-page .nxb-be-gallery {width:min(100%,760px)!important;margin-inline:auto!important;}
  body.nxb-premium-store .product-detail-page .nxb-be-gallery .product-gallery-main {height:clamp(280px,52dvh,470px)!important;}
}
@media (max-width:700px){
  body.nxb-premium-store .product-detail-page .nxb-be-gallery {grid-template-columns:minmax(0,1fr)!important;gap:10px!important;}
  body.nxb-premium-store .product-detail-page .nxb-be-gallery .product-gallery-main {
    grid-column:1!important;grid-row:1!important;
    height:clamp(230px,75vw,410px)!important;max-height:55dvh!important;
  }
  body.nxb-premium-store .product-detail-page .nxb-be-gallery .nxb-be-thumbs {
    grid-column:1!important;grid-row:2!important;
    display:flex!important;flex-direction:row!important;overflow-x:auto!important;overflow-y:hidden!important;
    max-height:82px!important;max-width:100%!important;
  }
  body.nxb-premium-store .product-detail-page .nxb-be-gallery .nxb-be-thumbs button {
    width:70px!important;max-width:70px!important;height:70px!important;flex:0 0 70px!important;
  }
}
