/* V26.4 - WooCommerce catalogue only.
 * V25 layout: 2 columns below 1024px; 4 columns at 1024px and above.
 * Scope to ms-catalogue: do not change the home page, product details or checkout.
 * The native product UL is the grid; remove WooCommerce legacy floats and widths.
 */
body.ms-wp .ms-catalogue{
    display:block;width:100%;min-width:0;margin:30px 0 70px;
}
body.ms-wp .ms-catalogue ul.products{
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px 24px;
    align-items:stretch;width:100%;max-width:100%;min-width:0;
    float:none;clear:both;list-style:none;margin:0;padding:0;
}
/* Legacy clearfix pseudo-elements must not consume grid cells. */
body.ms-wp .ms-catalogue ul.products::before,
body.ms-wp .ms-catalogue ul.products::after{
    display:none;content:none;
}
body.ms-wp .ms-catalogue ul.products > li.product,
body.ms-wp .ms-catalogue ul.products > li.product-category{
    float:none;clear:none;width:100%;min-width:0;max-width:none;
    margin:0;padding:0;list-style:none;display:flex;flex-direction:column;
}
body.ms-wp .ms-catalogue ul.products > li.product .product-photo{
    display:block;flex:none;position:relative;width:100%;margin:0;
    aspect-ratio:4/5;overflow:hidden;background:#fff;border-radius:24px;
}
body.ms-wp .ms-catalogue ul.products > li.product .product-photo img{
    display:block;width:100%;height:100%;max-width:100%;margin:0;
    object-fit:contain;object-position:center;transform:none;box-shadow:none;
}
body.ms-wp .ms-catalogue .product-content{
    display:flex;flex:1;flex-direction:column;min-width:0;margin-top:16px;padding:0 4px;
}
body.ms-wp .ms-catalogue .product-title{
    font-family:var(--font-heading);font-size:18px;line-height:1.375;
    font-weight:400;margin:0;padding:0;min-height:2.75em;overflow-wrap:anywhere;
}
body.ms-wp .ms-catalogue .price-line{
    display:block;min-width:0;margin:8px 0 12px;font-family:var(--font-body);
    font-size:16px;line-height:1.5;color:hsl(var(--foreground));
}
body.ms-wp .ms-catalogue ul.products > li.product .price-line .price{
    display:inline;font:inherit;color:inherit;margin:0;
}
body.ms-wp .ms-catalogue .price-line bdi{white-space:nowrap}
body.ms-wp .ms-catalogue .price-line ins{background:none}
body.ms-wp .ms-catalogue .add-button{
    width:100%;min-height:44px;margin-top:auto;padding:10px 6px;
    font-size:14px;line-height:1.4;text-align:center;white-space:normal;
}
body.ms-wp .ms-catalogue nav.woocommerce-pagination{
    width:100%;clear:both;margin-top:36px;
}
@media(min-width:768px){
    body.ms-wp .ms-catalogue ul.products{gap:32px}
    body.ms-wp .ms-catalogue ul.products > li.product .product-photo{border-radius:32px}
    body.ms-wp .ms-catalogue .price-line{font-size:18px}
}
@media(min-width:1024px){
    body.ms-wp .ms-catalogue ul.products{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:389px){
    body.ms-wp .ms-catalogue .product-title{font-size:17px}
    body.ms-wp .ms-catalogue .add-button{font-size:12px}
}
@media(max-width:359px){
    body.ms-wp .ms-catalogue ul.products{column-gap:16px}
    body.ms-wp .ms-catalogue .product-content{padding-left:2px;padding-right:2px}
    body.ms-wp .ms-catalogue .price-line{font-size:14px}
}
