/* Extracted from inline <style> in templates/storefront/partials/pdp_hover_zoom.html */

/* --- Block 1 --- */

.pdp-hzoom-panel {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  width: 380px;
  height: 380px;
  margin-left: 12px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 30px rgba(0,0,0,.12);
  overflow: hidden;
  z-index: 30;
  pointer-events: none;
}
.pdp-hzoom-panel img {
  position: absolute;
  top: 0; left: 0;
  width: auto; height: auto;
  max-width: none; max-height: none;
  pointer-events: none;
}
.pdp-hzoom-lens {
  display: none;
  position: absolute;
  width: 120px; height: 120px;
  border: 2px solid rgba(37, 99, 235, .5);
  border-radius: 8px;
  background: rgba(37, 99, 235, .08);
  pointer-events: none;
  z-index: 10;
}
/* Only on desktop with fine pointer */
@media (hover: hover) and (pointer: fine) and (min-width: 769px) {
  .product__gallery-main:hover .pdp-hzoom-panel,
  .product__gallery-main:hover .pdp-hzoom-lens {
    display: block;
  }
  /* Override the subtle scale from site.css when hover zoom is active */
  .product__gallery-main.pdp-hzoom-active:hover .product__image {
    transform: none !important;
  }
  .product__gallery-main.pdp-hzoom-active {
    cursor: crosshair !important;
  }
}
/* When panel would overflow right edge, show on left */
.pdp-hzoom-panel--left {
  left: auto;
  right: 100%;
  margin-left: 0;
  margin-right: 12px;
}
@media (max-width: 768px) {
  .pdp-hzoom-panel, .pdp-hzoom-lens { display: none !important; }
}
@media print {
  .pdp-hzoom-panel, .pdp-hzoom-lens { display: none !important; }
}
