/* Product page layout only; no product data changes. */
body:has(.product) > .breadcrumb,body:has(.product) > .product,body:has(.product) > .popular{width:calc(100% - 48px);max-width:1320px;box-sizing:border-box;margin-inline:auto}
.product > main{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(300px,392px);gap:24px;align-items:start}
.product > main > h1{grid-column:1 / -1;width:100%;min-width:0;overflow-wrap:anywhere}
.product > main > .block{width:100%;min-width:0;display:flex;flex-direction:column}
.product .product_purchase{width:100%;min-width:0;max-width:100%}
.product_cart_mobile:empty{display:none}
.product .gallery{box-sizing:border-box;min-width:0;width:100%}
.product .gallery .ms3-gallery:not(.no-gallery){height:492px;grid-template-columns:92px minmax(0,1fr);grid-template-areas:"thumbs main"}
.product .gallery .ms3-gallery-main{height:100%;min-width:0}
.product .gallery .ms3-gallery-main a{height:100%;min-height:0;box-sizing:border-box;padding:16px}
.product .gallery .ms3-gallery-main img{width:100%;height:100%;max-height:440px;object-fit:contain}
.product .gallery .ms3-gallery-thumbs{max-width:92px;height:100%}
.product .gallery .ms3-gallery-thumbs .splide__list{gap:0!important}
.product .about{min-width:0;box-sizing:border-box;width:100%;overflow-wrap:anywhere}
.product .about .text{max-width:100%;min-width:0}
.product .about table{display:block;max-width:100%;overflow-x:auto}
.product .about img{max-width:100%;height:auto}
.product .price{flex-wrap:wrap}
.product .price .article:empty{display:none}
.product .cart_button,.product .qty_btn,.product .favorite button{min-height:44px}
.product .info{flex-wrap:wrap}
.product .product_purchase .common{width:100%;box-sizing:border-box}
.product .product_purchase .info:empty{display:none}
body:has(.product) > .popular:not(:has(.swiper-wrapper > *)){display:none}
@media(max-width:1000px){.product > main{grid-template-columns:minmax(0,1fr) minmax(270px,320px);gap:20px}}
@media(max-width:768px){
body:has(.product) > .breadcrumb,body:has(.product) > .product,body:has(.product) > .popular{width:calc(100% - 32px)}
.product > main{grid-template-columns:minmax(0,1fr);gap:16px}
.product > main > .block{width:100%;gap:16px}
.product .product_cart_mobile{display:block;min-width:0;width:100%;margin:0}
.product .product_cart_mobile > .product_purchase{width:100%;max-width:100%}
.product .gallery .ms3-gallery:not(.no-gallery){height:auto;grid-template-columns:minmax(0,1fr);grid-template-areas:"main" "thumbs";grid-template-rows:300px 64px;gap:12px}
.product .gallery .ms3-gallery-thumbs{max-width:none;width:100%;height:64px}
.product .gallery .ms3-gallery-thumbs .splide__track{height:64px!important}
.product .gallery .ms3-gallery-main img{max-height:268px}
.product .about{margin-top:0;padding:20px}
.product .product_purchase .general,.product .product_purchase .delivery{padding:20px}
.breadcrumb .breadcrumb_list{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:6px 8px}
.breadcrumb .breadcrumb_item{flex:0 1 auto;min-width:0;overflow-wrap:anywhere}
.breadcrumb .breadcrumb_item.current{flex-basis:100%}
.breadcrumb .breadcrumb_sep{flex:0 0 auto}
}
header .header_quicknav{width:100%;min-width:0;max-width:100%}
@media(max-width:1192px){header .header_quicknav_wrap{width:calc(100% - 48px)}}
@media(min-width:992px) and (max-width:1192px){
header .info{width:calc(100% - 48px)}
header .header_actions{min-width:0;gap:8px}
header .header_phone{min-width:0;padding-inline:10px;gap:8px}
header .header_phone_icon{display:none}
header .header_cart:not(.header_cart_mobile){min-width:0;padding-inline:10px;gap:8px}
header .header_cart:not(.header_cart_mobile) .header_cart_count{right:0}}
@media(max-width:767px){header .header_quicknav_wrap{width:calc(100% - 32px)}}

body:has(.product) > .breadcrumb > .common{width:100%;max-width:none}
.breadcrumb .breadcrumb_list > li{margin:0}
.product .general .price{margin-bottom:16px}
.product .price + .ms3-product-card{margin-top:0}
.product .price .article:not(:has(span)){display:none}
.product .product_specs{width:100%;max-width:100%;box-sizing:border-box;background:#fff;border-radius:12px;padding:24px;margin-top:16px}
.product .product_specs h2{font-size:24px;line-height:1.2;margin:0 0 16px}
.product .product_specs table{display:table;width:100%;border-collapse:collapse}
.product .product_specs th,.product .product_specs td{padding:10px 0;border-bottom:1px solid #eee8df;text-align:left;vertical-align:top;overflow-wrap:anywhere}
.product .product_specs th{width:42%;font-weight:500;color:#666;padding-right:12px}
@media(max-width:768px){
.product .gallery .ms3-gallery:not(.no-gallery){grid-template-rows:260px 64px}
.product .gallery .ms3-gallery-main img{max-height:228px}
.product .gallery .ms3-gallery-thumbs .splide__slide{width:64px!important;height:64px!important}
.product .gallery .ms3-gallery-thumbs img{box-sizing:border-box;padding:6px;max-width:100%;max-height:100%}
.product .product_specs{padding:20px;margin-top:0}
}

.product .general .cart_inline{grid-template-columns:44px minmax(0,1fr) 44px!important}
.product .general .qty_btn{min-width:44px!important;width:44px!important;min-height:44px}

/* Keep intrinsic thumbnail height inside the fixed gallery row. */
.product .gallery .ms3-gallery-main,.product .gallery .ms3-gallery-thumbs{min-height:0}
@media(min-width:769px){.product .gallery .ms3-gallery:not(.no-gallery){grid-template-rows:minmax(0,1fr)}}
