/* Products use the full content column beside the shared site menu. */
body[data-product-category-layout] {
    --product-page-gap: clamp(16px, 2vw, 32px);
    color: #222;
    background: #fff;
}
body[data-product-category-layout] #page { min-height: 100svh; }
body[data-product-category-layout] #page > .inner-banner,
body[data-product-category-layout] :is(footer.footer, .mobile-bottom-nav) { display: none !important; }
body[data-product-category-layout] .product-box,
body[data-product-category-layout] .search-box { padding: 32px 0 64px; }
body[data-product-category-layout] .main .m-width-content { width: 100%; max-width: none; padding: 0 var(--product-page-gap); box-sizing: border-box; }
body[data-product-category-layout] .main .m-width-content > .ipd-20 { padding: 0; }
body[data-product-category-layout] .product-flex { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; }
body[data-product-category-layout] .product-menu { display: none !important; }

body[data-product-category-layout] .product-flex > :is(.product-list, .product-dis-content, .product-search-content) { width: 100%; min-width: 0; margin: 0; padding: 0; overflow-wrap: anywhere; }
body[data-product-category-layout] .product-list > ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
body[data-product-category-layout] .product-list > ul > li:nth-child(n) { width: auto; min-width: 0; margin: 0; }
body[data-product-category-layout] .product-list > ul > li .img-box { aspect-ratio: 3 / 4; padding: 0; }
body[data-product-category-layout] .product-list > ul > li .img-box img { width: 100%; height: 100%; object-fit: contain; }
body[data-product-category-layout] .product-list > ul > li .tit { padding: 20px 16px; }
body[data-product-category-layout] .product-list .page-box { padding: 32px 0; }
body[data-product-category-layout] .product-dis-content .photo-text { display: grid; grid-template-columns: minmax(0, min(36%, 420px)) minmax(0, 1fr); gap: clamp(24px, 2.5vw, 48px); align-items: start; }
body[data-product-category-layout] .product-dis-content .photo-text > :is(.photo, .text) { width: 100%; min-width: 0; margin: 0; }
/* Cap the entire gallery, including the large image and thumbnails. */
body[data-product-category-layout] .product-dis-content .photo-text .photo { max-width: 420px; }
body[data-product-category-layout] .product-dis-content .photo .mySwiper2 .img-box { position: relative; padding: 0; aspect-ratio: 3 / 4; }
body[data-product-category-layout] .product-dis-content .photo .mySwiper2 .img-box img { width: 100%; height: 100%; object-fit: contain; }
body[data-product-category-layout] .product-dis-content .photo-text .text .t { font-size: clamp(26px, 2.2vw, 42px); line-height: 1.45; }
body[data-product-category-layout] .product-dis-content .photo-text .text .link { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
body[data-product-category-layout] .product-dis-content .photo-text .text .link a:nth-child(n) { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 4px; width: 100%; height: auto; min-height: 48px; margin: 0; padding: 10px 6px; line-height: 1.4; }
body[data-product-category-layout] .product-dis-content .table-box { overflow-x: auto; }
body[data-product-category-layout] .product-dis-content .prodis-edit img { max-width: 100%; height: auto; }
body[data-product-category-layout] .product-box .ipd-20 > .msg-box { margin-left: 0; scroll-margin-top: 24px; }
body[data-product-category-layout] .product-search-content .search-list { padding-top: 0; }

@media (max-width: 1199px) {
    body[data-product-category-layout] .product-list > ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body[data-product-category-layout] .product-dis-content .photo-text { grid-template-columns: minmax(0, 1fr); }
    body[data-product-category-layout] .product-dis-content .photo-text .photo { max-width: 420px; }
}
@media (max-width: 767px) {
    body[data-product-category-layout] { --product-page-gap: 16px; }
    body[data-product-category-layout] .product-dis-content .photo-text .photo { max-width: 360px; }
    body[data-product-category-layout] .product-box,
    body[data-product-category-layout] .search-box { padding-top: 24px; }
    body[data-product-category-layout] .product-list > ul { gap: 20px 12px; }
    body[data-product-category-layout] .product-list > ul > li .tit { padding: 16px 10px; }
}
@media (max-width: 389px) {
    body[data-product-category-layout] .product-list > ul { grid-template-columns: minmax(0, 1fr); }
}
