/* Keep both desktop catalog columns within the space below the header. */
@media (min-width: 992px) {
    .fn_catalog_menu .catalog-megamenu-wrapper {
        box-sizing: border-box;
        max-height: var(--catalog-menu-available-height, calc(100vh - 148px));
        min-height: 0;
        overflow: hidden;
    }

    .fn_catalog_menu .megamenu-parents,
    .fn_catalog_menu .megamenu-content {
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior-y: contain;
    }

    .fn_catalog_menu .megamenu-parents {
        flex-shrink: 0;
    }

    .fn_catalog_menu .megamenu-content {
        min-width: 0;
    }

    .fn_catalog_menu .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
        align-items: start;
    }

    .fn_catalog_menu .menu-item-group {
        min-width: 0;
        overflow-wrap: break-word;
    }
}

