/* Critical product grid overrides loaded in head to avoid first-paint 4-card layout. */
@media (min-width: 1100px) {
    .ds-category-products,
    .ds-module:not(.ds-category-products):not([data-type="carousel"]) {
        --bs-gutter-x: .5rem;
        --bs-gutter-y: .5rem;
    }

    .ds-category-products .product-grid.ds-module-col,
    .ds-module:not(.ds-category-products):not([data-type="carousel"]) > .ds-module-col {
        flex: 0 0 16.666667% !important;
        max-width: 16.666667% !important;
        width: 16.666667% !important;
    }
}

@media (min-width: 1200px) {
    .ds-category-products .product-grid.ds-module-col,
    .ds-module:not(.ds-category-products):not([data-type="carousel"]) > .ds-module-col {
        flex: 0 0 14.285714% !important;
        max-width: 14.285714% !important;
        width: 14.285714% !important;
    }

    .ds-category > #column-left.ds-column {
        flex: 0 0 17% !important;
        max-width: 17% !important;
        width: 17% !important;
    }

    .ds-category > #content.col-xl-9 {
        flex: 0 0 83% !important;
        max-width: 83% !important;
        width: 83% !important;
    }
}

@media (min-width: 1400px) {
    .ds-category-products .product-grid.ds-module-col,
    .ds-module:not(.ds-category-products):not([data-type="carousel"]) > .ds-module-col {
        flex: 0 0 14.285714% !important;
        max-width: 14.285714% !important;
        width: 14.285714% !important;
    }
}

@media (min-width: 1680px) {
    .ds-category-products,
    .ds-module:not(.ds-category-products):not([data-type="carousel"]) {
        --bs-gutter-x: .75rem;
        --bs-gutter-y: .75rem;
    }

    .ds-category-products .product-grid.ds-module-col,
    .ds-module:not(.ds-category-products):not([data-type="carousel"]) > .ds-module-col {
        flex: 0 0 14.285714% !important;
        max-width: 14.285714% !important;
        width: 14.285714% !important;
    }
}
