.site-header .brand span {
    color: #57616e;
}

/* The intermediate layout has three controls in its header. */
@media (min-width: 801px) and (max-width: 950px) {
    .site-header {
        grid-template-columns: minmax(160px, 0.8fr) minmax(200px, 1.3fr) auto;
        height: auto;
    }
    .home-focus .hf-header {
        padding-block: 16px;
    }
    .home-focus .hf-contact {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
    }
    .home-focus .hf-search {
        grid-row: 2;
    }
}

@media (max-width: 600px) {
    /* Keep both the name and the item count in the cart link's accessible name. */
    .site-header .request-nav > span {
        display: inline;
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
}

/* Keep the close control outside the scrolling list on short touch screens. */
#catalog-menu[open] {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
#catalog-menu [data-close-menu] {
    flex: none;
    align-self: flex-start;
}
#catalog-menu .sidebar {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}
html:has(#catalog-menu[open]) {
    overflow-y: hidden;
}

.product-row .row-actions > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
}

@media (max-width: 800px) {
    .product-row .row-actions > a { min-height: 44px; }
    .home-focus .hf-nav .hf-cart {
        display: flex;
        grid-column: 1 / -1;
        justify-content: flex-start;
        margin-left: 0;
        min-height: 44px;
        border-top: 1px solid #e0e5ec;
    }
    .site-header .mobile-menu {
        min-width: 44px;
        min-height: 44px;
    }
}
