/* Product sourcing layout shared by curated Brasero Plancha and Chimenea pages. */
.curated-detail-gallery {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 3rem) / 4);
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
}
.curated-detail-gallery > a { scroll-snap-align: start; display: block; }
.curated-detail-gallery img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; background: #f6f5f2; border-radius: .5rem; }
.product-grid.curated-category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.curated-oem-banner { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 2rem; margin: 3rem 0; background: #242723; color: #fff; border-radius: 1rem; overflow: hidden; }
.curated-oem-banner img { width: 100%; display: block; }
.curated-oem-banner div { padding: 1rem 2rem 1rem 0; }
.curated-oem-banner h2 { color: #fff; margin-bottom: 1rem; }
@media (max-width: 820px) {
    .curated-detail-gallery { grid-auto-columns: calc((100% - 1rem) / 2); }
    .product-grid.curated-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .curated-oem-banner { grid-template-columns: 1fr; gap: 0; }
    .curated-oem-banner div { padding: 1.5rem; }
}

/* Let gallery and copy shrink inside the detail grid on narrow screens. */
.product-detail-main > .product-gallery,
.product-detail-main > .product-info { min-width: 0; }
.product-detail-main .product-gallery-thumbs { max-width: 100%; overflow-x: auto; }
@media (max-width: 820px) {
    .product-detail-main { grid-template-columns: minmax(0, 1fr); }
}
