/* Product media has an explicit height, including while an image is loading. */
.product-card .catalog-product-media,.product-dialog .catalog-product-media{position:relative;display:grid;place-items:center;width:100%;height:280px;height:clamp(220px,24vw,340px);min-height:220px;aspect-ratio:auto;overflow:hidden;background:#edf2f8;border:1px solid #dbe3ef;border-radius:8px}
.product-card .catalog-product-media>.catalog-product-photo,.product-dialog .catalog-product-media>.catalog-product-photo{position:absolute;inset:0;width:100%;height:100%;max-width:100%;display:block;visibility:visible;opacity:1;object-fit:contain;z-index:1;padding:12px}
.catalog-product-media>.product-image-empty{font-size:14px;line-height:1.6;letter-spacing:.4px;color:#64748b;padding:20px;text-align:center}
.catalog-product-media>.product-image-empty[hidden]{display:none!important}
.catalog-product-media.photo-unavailable{background:#f5f7fb}
.product-dialog .catalog-product-media{height:360px;min-height:260px}
@media(max-width:600px){.product-card .catalog-product-media{height:280px}.product-dialog .catalog-product-media{height:300px}}
