/* Shared catalogue geometry; colours remain controlled by store-theme.css. */
.detail {
    width: min(100%, 1600px);
    margin-inline: auto;
    grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
    min-height: 0;
    align-items: start;
}
.detail .product-photo-viewer { position: static; height: auto; min-height: 0; }
.detail .product-photo-stage {
    width: 100%;
    height: clamp(420px, 42vw, 640px);
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
    background: var(--theme-surface);
}
.detail .product-photo img { display: block; object-position: center; }
.detail .product-photo-viewer__header { min-height: 72px; padding: 16px 24px; }
.detail .product-photo-tabs { min-height: 48px; }
.detail .product-photo-tabs button { min-height: 48px; }
.detail .detail-info { padding: clamp(28px, 3vw, 48px); position: static; }
.detail .detail-info h1 { font-size: clamp(2rem, 3vw, 3.4rem); line-height: 1.06; margin: 12px 0 20px; }
.detail .detail-info > .kicker { margin-top: 0; }
.detail .detail-info > p { margin-bottom: 20px; }
.detail .shipping-calculator { margin-top: 24px; }
.detail .shipping-calculator__form { margin: 0; padding: 20px; }
.detail .shipping-calculator__status:empty,
.detail .shipping-results:empty { display: none; }
.product-secondary-info { max-width: 1600px; margin-inline: auto; padding: 28px clamp(20px, 3vw, 48px); }
.related-products { padding-block: 32px; }
.related-products .related-products__header,
.related-products .related-products__grid { max-width: 1504px; }
.related-products .related-products__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.related-products .related-product-card { flex: 0 0 calc((100% - 36px) / 4); min-width: 0; }
.related-products .related-product-card__copy { display: flex; flex-direction: column; }
.related-products .related-product-card__copy h3 { min-height: 2.1em; }
.related-products .related-product-card__link { min-height: 44px; margin-top: auto; }
.collection-directory .collection-tile-image { width: 100%; }
.detail ~ #avaliacoes { max-width: 1600px; margin-inline: auto; padding: 32px clamp(20px, 3vw, 48px); }
.home-gallery .home-shelf .gallery-info h3 { line-height: 1.08; height: 3.24em; }
.home-gallery .home-shelf .gallery-info { gap: 12px; }
.home-gallery .home-shelf .gallery-grid { align-items: stretch; }
@media (max-width: 1000px) {
    .related-products .related-product-card { flex-basis: calc((100% - 12px) / 2); }
}
@media (max-width: 800px) {
    .detail { grid-template-columns: minmax(0, 1fr); }
    .detail .product-photo-stage { height: clamp(340px, 95vw, 600px); }
    .detail .detail-info { padding: 28px 5vw; }
    .detail .detail-info h1 { font-size: clamp(2rem, 7vw, 3rem); }
}
@media (max-width: 600px) {
    .detail .product-photo-viewer__header { padding: 14px 5vw; }
    .detail .product-photo-stage { height: clamp(320px, 105vw, 520px); }
    .related-products .related-products__grid { gap: 10px; }
    .related-products .related-product-card { flex-basis: calc((100% - 10px) / 2); }
    .related-products .related-product-card__copy h3 { min-height: 3.1em; }
    .home-gallery .home-shelf .gallery-info h3 { font-size: clamp(18px, 5vw, 23px); }
}
