/* HECHOapps · Zoom puntual en pantalla ampliada. No cambia la lupa de la galería. */
.product-gallery .gallery-lightbox-window{
  height:min(94dvh,1000px);
  max-height:calc(100dvh - 48px);
}
.product-gallery .gallery-lightbox-view{
  flex:1 1 auto;
  min-width:0;
  min-height:0;
  overflow:hidden;
  grid-template-columns:49px minmax(0,1fr) 49px;
  grid-template-rows:minmax(0,1fr);
  align-items:center;
}
.product-gallery .gallery-zoom-viewport{
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  align-self:stretch;
  width:100%;
  height:100%;
  min-width:0;
  min-height:0;
  overflow:hidden;
  border-radius:8px;
  background:#e9edf3;
  cursor:zoom-in;
  touch-action:none;
  user-select:none;
  -webkit-user-select:none;
}
.product-gallery .gallery-zoom-viewport:focus-visible{
  outline:3px solid #2563eb;
  outline-offset:-4px;
}
.product-gallery .gallery-zoom-viewport img{
  display:block;
  flex:0 1 auto;
  width:auto;
  height:auto;
  max-width:100%;
  max-height:100%;
  margin:auto;
  object-fit:contain;
  pointer-events:auto;
  user-select:none;
  -webkit-user-select:none;
  -webkit-user-drag:none;
  touch-action:none;
  transform-origin:center center;
  transition:none;
  will-change:transform;
  cursor:zoom-in;
}
.product-gallery .gallery-zoom-viewport.is-zoomed,
.product-gallery .gallery-zoom-viewport.is-zoomed img{cursor:zoom-out}
.product-gallery .gallery-zoom-viewport.is-panning,
.product-gallery .gallery-zoom-viewport.is-panning img{cursor:grabbing}
.product-gallery .gallery-zoom-viewport.is-panning img{transition:none}
.product-gallery .gallery-lightbox-zoom-footer{
  flex:none;
  min-width:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:9px 16px;
  border-top:1px solid #e2e8f0;
  background:#fff;
}
.product-gallery .gallery-lightbox-zoom-footer .gallery-lightbox-help{
  padding:0;
  text-align:left;
  font-size:11px;
  line-height:1.5;
  color:#64748b;
  margin:0;
  min-width:0;
}
.product-gallery .gallery-lightbox-zoom-actions{
  display:flex;
  flex:none;
  align-items:center;
  gap:9px;
}
.product-gallery .gallery-zoom-percent{
  display:inline-flex;
  justify-content:center;
  min-width:49px;
  padding:6px 8px;
  border-radius:7px;
  background:#f0f5fb;
  color:#334155;
  font-size:11px;
  font-weight:800;
  font-variant-numeric:tabular-nums;
}
.product-gallery .gallery-zoom-reset{
  appearance:none;
  padding:7px 10px;
  border:1px solid #dce5f1;
  border-radius:7px;
  background:#fff;
  color:#2563eb;
  font-size:11px;
  font-weight:700;
  cursor:pointer;
}
.product-gallery .gallery-zoom-reset:hover:not(:disabled),
.product-gallery .gallery-zoom-reset:focus-visible{
  background:#eff6ff;
  border-color:#a6c4f5;
}
.product-gallery .gallery-zoom-reset:disabled{
  color:#94a3b8;
  background:#f9fbfe;
  cursor:default;
}
@media(max-width:700px){
  .product-gallery .gallery-lightbox-window{
    height:calc(100dvh - 16px);
    max-height:calc(100dvh - 16px);
  }
  .product-gallery .gallery-lightbox-view{
    grid-template-columns:30px minmax(0,1fr) 30px;
    padding:7px;
    gap:5px;
  }
  .product-gallery .gallery-lightbox-zoom-footer{
    align-items:flex-start;
    flex-direction:column;
    padding:10px 12px;
    gap:7px;
  }
  .product-gallery .gallery-lightbox-zoom-actions{
    width:100%;
    justify-content:space-between;
  }
  .product-gallery .gallery-lightbox-zoom-footer .gallery-lightbox-help{
    font-size:10px;
  }
}
@media(prefers-reduced-motion:reduce){
  .product-gallery .gallery-zoom-viewport img{transition:none!important}
}
