/* Reserve icon boxes while the Material Icons webfont loads. */
.desktop header .material-icons,
.desktop header .material-icons-outlined {
    display: inline-block;
    width: 1em;
    height: 1em;
    line-height: 1;
    overflow: hidden;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Keep one row, with the same item widths as Owl, before JS initializes it. */
.desktop .category-subcategory-slider:not(.owl-loaded) {
    --subcategory-count: 3;
    display: flex;
    flex-wrap: nowrap;
    gap: 30px;
    overflow: hidden;
}
.desktop .category-subcategory-slider:not(.owl-loaded) > .mad-grid-item {
    flex: 0 0 calc((100% - (var(--subcategory-count) - 1) * 30px) / var(--subcategory-count));
    width: calc((100% - (var(--subcategory-count) - 1) * 30px) / var(--subcategory-count));
    margin: 0;
    padding: 0;
}
.desktop .category-subcategory-slider .mad-product-category > img {
    width: 100%;
    aspect-ratio: 1;
    height: auto;
    object-fit: contain;
}
.desktop .category-subcategory-slider .mad-product-category-list {
    min-height: 64px;
}
.desktop.category img[width][height],
.desktop.products img[width][height] {
    height: auto;
}
@media (min-width: 992px) {
    .desktop .category-subcategory-slider:not(.owl-loaded) { --subcategory-count: 4; }
}
@media (min-width: 1200px) {
    .desktop .category-subcategory-slider:not(.owl-loaded) { --subcategory-count: 5; }
}
@media (min-width: 1400px) {
    .desktop .category-subcategory-slider:not(.owl-loaded) { --subcategory-count: 6; }
}
