/* Party Liquors responsive product image guardrails - Build 20261026ZZ */
/* White presentation stage + hard layout bounds. Source images are never stretched or cropped. */
.product-card .product-image,
.product-card .product-image-wrap,
.product-card .image-wrap,
.product-card .product-media,
.product-card .media,
.product-tile .product-image,
.product-tile .product-image-wrap,
.product-tile .image-wrap,
.product-tile .product-media,
.product-tile .media,
.store-pick-card .product-image,
.store-pick-card .image-wrap,
.product-grid article > a:first-child:has(img) {
  height: clamp(180px, 22vw, 240px) !important;
  max-height: 240px !important;
  min-height: 180px;
  background: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 12px;
  box-sizing: border-box;
  border-radius: 10px;
}
.product-card .product-image img,
.product-card .product-image-wrap img,
.product-card .image-wrap img,
.product-card .product-media img,
.product-card .media img,
.product-tile .product-image img,
.product-tile .product-image-wrap img,
.product-tile .image-wrap img,
.product-tile .product-media img,
.product-tile .media img,
.store-pick-card .product-image img,
.store-pick-card .image-wrap img,
.product-grid article > a:first-child img,
.product-card > a img,
.product-tile > a img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
}
/* Product detail gets more room, but remains bounded on tall source photography. */
.product-detail .product-image,
.product-detail .image-wrap,
.product-detail .product-media,
.product-detail-image,
.product-hero-image {
  width: 100%;
  height: clamp(300px, 48vw, 520px) !important;
  max-height: 520px !important;
  background: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: clamp(14px, 2vw, 24px);
  box-sizing: border-box;
  border-radius: 12px;
}
.product-detail .product-image img,
.product-detail .image-wrap img,
.product-detail .product-media img,
.product-detail-image img,
.product-hero-image img,
img.product-detail-image,
img.product-hero-image {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 520px !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: #fff !important;
}
/* Broad safety net for known product images that are direct children rather than wrapped. */
.product-card > img,
.product-tile > img,
.products-grid img.product-image,
.product-grid img.product-image {
  display: block;
  width: 100% !important;
  height: clamp(180px, 22vw, 240px) !important;
  max-height: 240px !important;
  object-fit: contain !important;
  object-position: center !important;
  box-sizing: border-box;
  padding: 12px;
  background: #fff !important;
  border-radius: 10px;
}
@media (max-width: 700px) {
  .product-card .product-image,.product-card .product-image-wrap,.product-card .image-wrap,.product-card .product-media,.product-card .media,
  .product-tile .product-image,.product-tile .product-image-wrap,.product-tile .image-wrap,.product-tile .product-media,.product-tile .media,
  .store-pick-card .product-image,.store-pick-card .image-wrap,.product-grid article > a:first-child:has(img),
  .product-card > img,.product-tile > img,.products-grid img.product-image,.product-grid img.product-image {
    height: 200px !important;
    min-height: 0;
    max-height: 200px !important;
    padding: 10px;
  }
  .product-detail .product-image,.product-detail .image-wrap,.product-detail .product-media,.product-detail-image,.product-hero-image {
    height: min(420px, 72vw) !important;
    max-height: 420px !important;
  }
}
