/* Use explicit grid sizing on archives too, not the parent theme's float widths. */
body.ae-theme:not(.single-product) #main ul.products,
body.ae-theme .ae-catalog ul.products {
    display: grid !important;
    grid-template-columns: repeat(var(--ae-columns, 3), minmax(0, 1fr)) !important;
    gap: 24px;
    clear: both;
}
body.ae-theme:not(.single-product) #main ul.products::before,
body.ae-theme:not(.single-product) #main ul.products::after,
body.ae-theme .ae-catalog ul.products::before,
body.ae-theme .ae-catalog ul.products::after { display: none !important; }
body.ae-theme:not(.single-product) #main ul.products > li.product,
body.ae-theme .ae-catalog ul.products > li.product {
    width: auto !important;
    max-width: none !important;
    min-width: 0;
    margin: 0 !important;
    float: none !important;
    clear: none !important;
}
@media (max-width: 991px) {
    body.ae-theme:not(.single-product) #main ul.products,
    body.ae-theme .ae-catalog ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 16px;
    }
}
@media (max-width: 480px) {
    body.ae-theme:not(.single-product) #main ul.products,
    body.ae-theme .ae-catalog ul.products {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}
