/* EthnicHaat – desktop 2-column product image grid. The grid is rendered by product.php (no JS needed for first paint);
   eh-pdp-grid.js only rebuilds it on colour change. Phones/tablets keep the swipe slider. */
.eh-pdp-grid { display: none; }

@media (min-width: 1024px) {
  /* wider image column, details on the right stay in view while the photos scroll */
  .product-main.eh-gridmode { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) !important; align-items: start; gap: 32px !important; }
  .eh-gridmode .product-images { position: static !important; top: auto !important; }
  .eh-gridmode .product-info { position: sticky; top: 132px; align-self: start; }

  /* the gallery is a flex row (thumbs | big image) – the grid needs the full width */
  .eh-gridmode .product-gallery { display: block !important; width: 100% !important; }

  /* the old single big image + thumbnail strip are phone/tablet only */
  .eh-gridmode .product-gallery .main-image,
  .eh-gridmode .product-gallery .thumbstrip-wrap,
  .eh-gridmode .product-gallery #thumbRow { display: none !important; }

  .eh-gridmode .eh-pdp-grid { display: grid; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .eh-gridmode .eh-pdp-grid.is-single { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .eh-pdp-tile { position: relative; display: block; padding: 0; margin: 0; border: 0; background: #f6efe6; cursor: zoom-in; overflow: hidden; aspect-ratio: 4 / 5; border-radius: 4px; }
  .eh-pdp-tile picture { display: block; width: 100%; height: 100%; }
  .eh-pdp-tile img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .5s ease; }
  .eh-pdp-tile:hover img { transform: scale(1.04); }
  .eh-pdp-tile:focus-visible { outline: 3px solid #8f0c2d; outline-offset: 2px; }
  /* wishlist / share icons sit on the first photo */
  .eh-pdp-tile .product-share-icons { position: absolute; top: 12px; right: 12px; z-index: 2; }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .product-main.eh-gridmode { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) !important; gap: 24px !important; }
  .eh-gridmode .eh-pdp-grid { gap: 8px; }
}
