
/* V62 — Product gallery must never widen the product-detail grid.
   Thumbnails stay inside gallery column and scroll horizontally. */

.product-detail{
    grid-template-columns:minmax(0,1fr) minmax(320px,1fr) !important;
    align-items:start !important;
}
.product-detail > .product-gallery,
.product-detail > .product-info,
.inc-product-gallery{
    min-width:0 !important;
    width:100% !important;
    max-width:100% !important;
    box-sizing:border-box !important;
}
.inc-gallery-stage{
    width:100% !important;
    max-width:100% !important;
    aspect-ratio:4/5 !important;
    overflow:hidden !important;
}
.inc-gallery-thumbs{
    display:flex !important;
    flex-wrap:nowrap !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    gap:10px !important;
    padding:12px 1px 6px !important;
    box-sizing:border-box !important;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:thin;
}
.inc-gallery-thumb{
    flex:0 0 72px !important;
    width:72px !important;
    min-width:72px !important;
    max-width:72px !important;
    aspect-ratio:4/5 !important;
    height:auto !important;
}
.product-info{
    min-width:0 !important;
    overflow-wrap:anywhere;
}

@media(max-width:900px){
    .product-detail{
        grid-template-columns:1fr !important;
    }
    .product-detail > .product-gallery,
    .product-detail > .product-info{
        width:100% !important;
        max-width:100% !important;
    }
}
@media(max-width:600px){
    .inc-gallery-thumb{
        flex-basis:60px !important;
        width:60px !important;
        min-width:60px !important;
        max-width:60px !important;
    }
}
