/* Uniform shop previews; full photographs remain in the item gallery. */
.product-card .product-image,
.product-gallery .product-image{aspect-ratio:auto;height:auto;min-height:0;border:0;padding:0;background:transparent;overflow:visible}
.product-card .product-image{aspect-ratio:4/3;overflow:hidden;background:var(--stripe-paper)}
.product-card .product-image img{position:absolute;inset:0;display:block;width:100%;height:100%;border:1px solid var(--purple);border-radius:16px;object-fit:contain;object-position:center;transform:none}
.product-gallery .product-image{width:fit-content;max-width:100%;margin-inline:auto}
.product-gallery .photo-expand{position:relative;inset:auto;display:block;width:fit-content;max-width:100%;height:auto;margin:0;padding:0}
.product-gallery .product-image img{position:static;display:block;width:auto;height:auto;max-width:100%;max-height:min(64vh,560px);max-height:min(64dvh,560px);border:1px solid var(--purple);border-radius:14px;object-fit:contain}
@media(max-width:760px){.product-gallery .product-image img{max-height:min(42vh,320px);max-height:min(42dvh,320px)}}
@media(max-width:480px){.product-card .product-image img{border-radius:12px}}

/* Give the item photograph more room and keep the description alongside it. */
@media(min-width:761px){
 #product-dialog .product-gallery{padding:12px}
 #product-dialog .product-gallery .product-image img{max-height:calc(90vh - 60px);max-height:calc(90dvh - 60px)}
 #product-dialog .photo-count{margin-top:8px}
 #product-dialog .detail-copy{padding:44px 24px 24px}
}
@media(min-width:1000px){
 #product-dialog{width:fit-content;max-width:96vw}
 #product-dialog .detail-layout{grid-template-columns:auto minmax(300px,480px)}
 #product-dialog .product-gallery .product-image img{max-width:min(46vw,700px)}
}
@media(max-width:760px){
 #product-dialog .product-gallery{position:relative;padding:12px}
 #product-dialog .product-gallery .product-image img{max-height:58vh;max-height:58dvh}
}

/* Keep the entire photograph visible, including on hover. */
.product-card:hover .product-image img{transform:none}

/* Keep the entire photograph visible, including on hover. */
.product-card:hover .product-image img{transform:none}

/* Keep the entire photograph visible, including on hover. */
.product-card:hover .product-image img{transform:none}

/* Fit the frame directly to each original photograph: no crop or colored bars. */
.product-card .product-image{aspect-ratio:auto;height:auto;min-height:0;background:transparent;overflow:visible;border:0;padding:0}
.product-card .product-image img{position:static;inset:auto;display:block;width:100%;height:auto;max-height:none;aspect-ratio:auto;object-fit:contain;background:transparent;transform:none;border:1px solid var(--purple)}
.product-card:hover .product-image img{transform:none}

/* Uniform launch-style cards, full photos on a neutral white field. */
.product-card .product-image{position:relative;aspect-ratio:4/5;width:100%;height:auto;min-height:0;border:1px solid var(--purple);border-radius:16px;background:#fff;overflow:hidden;padding:0;box-sizing:border-box}
.product-card .product-image img{position:absolute;inset:0;display:block;width:100%;height:100%;max-height:none;border:0;border-radius:0;aspect-ratio:auto;object-fit:contain;object-position:center;background:#fff;transform:none}
.product-card:hover .product-image img{transform:none}
@supports(grid-template-rows:subgrid){.products{row-gap:8px;align-items:stretch}.products .product-card{display:grid;grid-row:span 4;grid-template-rows:subgrid;row-gap:8px;align-items:start;margin-bottom:24px}.products .product-meta{display:contents}.products .product-name{margin:4px 0 0}.products .product-meta .price,.products .product-subtitle{margin:0;padding:0}}
@media(max-width:480px){.product-card .product-image{border-radius:12px}}

/* Uniform edge-to-edge product photography. */
.product-card .product-image{position:relative;aspect-ratio:4/3;width:100%;height:auto;min-height:0;overflow:hidden;border:1px solid var(--purple);border-radius:16px;background:transparent;padding:0;box-sizing:border-box}
.product-card .product-image img{position:absolute;inset:0;display:block;width:100%;height:100%;max-height:none;border:0;border-radius:0;aspect-ratio:auto;object-fit:cover;object-position:center;background:transparent;transform:none}
.product-card:hover .product-image img{transform:none}
@media(max-width:480px){.product-card .product-image{border-radius:12px}}

/* Keep the final bag row balanced on standard desktop screens. */
@media(min-width:1100px){.products{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* The final three bag photographs are portrait originals; preserve their launch proportions. */
.product-card .product-image:has(img[src*="/item-263/"]),
.product-card .product-image:has(img[src*="/item-266/"]),
.product-card .product-image:has(img[src*="/item-264/"]){aspect-ratio:2/3}
.product-card .product-image:has(img[src*="/item-263/"]) img,
.product-card .product-image:has(img[src*="/item-266/"]) img,
.product-card .product-image:has(img[src*="/item-264/"]) img{object-fit:cover;object-position:center}
