/* Category layout v8: restore educational and brand sections. */
@import url('category-layout-v7.css');

body.category-metal-shelving .category-brands-section {
    background: #f3f6f8;
    box-sizing: border-box;
    clear: both;
    margin: 18px 0 48px;
    padding: 36px;
    width: 100%;
}

body.category-metal-shelving .category-section-heading {
    margin: 0 auto 28px;
    max-width: 700px;
    text-align: center;
}

body.category-metal-shelving .category-section-heading > span {
    color: #b87300;
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 7px;
    text-transform: uppercase;
}

body.category-metal-shelving .category-section-heading h2 {
    color: #102d50;
    font-size: 32px;
    margin: 0 0 8px;
}

body.category-metal-shelving .category-section-heading p {
    margin: 0;
}

body.category-metal-shelving .category-brands-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.category-metal-shelving .category-brands-grid .catbox {
    background: #fff;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

body.category-metal-shelving .category-brands-grid .catbox > a:first-child {
    align-items: center;
    background: #fff;
    display: flex;
    height: 220px;
    justify-content: center;
    padding: 16px;
}

body.category-metal-shelving .category-brands-grid .catbox > a:first-child img {
    height: 100% !important;
    max-width: 100% !important;
    object-fit: contain !important;
    width: 100% !important;
}

@media only screen and (max-width: 767px) {
    body.category-metal-shelving .category-brands-section {
        margin: 12px 0 34px;
        padding: 28px 20px;
    }

    body.category-metal-shelving .category-brands-grid {
        grid-template-columns: 1fr;
    }

    body.category-metal-shelving .category-brands-grid .catbox > a:first-child {
        height: 210px;
    }
}

/* Reserve the full desktop height of the product navigator before the
   membership and footer sections begin. */
@media only screen and (min-width: 768px) {
    body.page-products .innerpages:not(.mezzanine-page) > .container {
        align-items: flex-start !important;
        min-height: 720px !important;
    }

    body.page-products .innerpages:not(.mezzanine-page) .cat-ll {
        align-self: flex-start !important;
        height: auto !important;
    }

    body.page-products .innerpages:not(.mezzanine-page) .cat-ll::after {
        clear: both;
        content: "";
        display: table;
    }

    body.page-products .innerpages:not(.mezzanine-page) .cat-ll .child-cat-list {
        display: flex !important;
        flex-direction: column !important;
        float: none !important;
        height: auto !important;
        overflow: visible !important;
        position: static !important;
        top: auto !important;
    }

    body.page-products .innerpages:not(.mezzanine-page) .cat-ll .child-cat-list > li {
        display: block !important;
        flex: 0 0 auto !important;
        float: none !important;
        width: 100% !important;
    }
}
