html { scroll-padding-top: 270px; }

.storefront-header .header-main {
    background: linear-gradient(180deg, #fff, #f4f8fe);
    border-block-end: 1px solid #d9e4f1;
}

.storefront-header .storefront-header-grid {
    display: grid;
    grid-template-columns: minmax(170px, 235px) minmax(0, 1fr) minmax(144px, 200px);
    grid-template-areas:
        "brand support companions"
        "brand tools tools";
    align-items: center;
    gap: .85rem clamp(.85rem, 1.8vw, 1.7rem);
    padding-block: 1.1rem;
}

.storefront-header .utility-inner { min-height: 30px; }
.storefront-header .brand-lockup { grid-area: brand; align-items: flex-start; gap: .24rem; }
.storefront-header .official-brand { line-height: 1.12; max-inline-size: 100%; text-decoration: none; }
.storefront-header .official-brand img {
    inline-size: clamp(178px, 17vw, 232px);
    block-size: clamp(57px, 5.6vw, 76px);
    max-inline-size: 100%;
    object-fit: contain;
    object-position: right center;
}

.storefront-header .storefront-wordmark {
    display: flex;
    align-items: center;
    color: var(--ink);
    font-size: clamp(1.58rem, 3vw, 2.25rem);
    font-weight: 900;
    line-height: 1.12;
    min-block-size: 1.9em;
}

.storefront-header .storefront-phone {
    display: inline-flex;
    align-items: center;
    min-block-size: 34px;
    color: var(--blue);
    font-size: clamp(1.14rem, 2vw, 1.6rem);
    font-weight: 800;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    text-decoration: none;
    white-space: nowrap;
}

.storefront-header .storefront-phone:hover,
.storefront-header .storefront-phone:focus-visible { text-decoration: underline; }
.storefront-header .brand-subtitle { color: #546681; font-size: .76rem; line-height: 1.35; }

.storefront-header .storefront-companions {
    grid-area: companions;
    justify-self: end;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem;
    inline-size: min(100%, 200px);
}

.storefront-header .storefront-companion {
    display: grid;
    place-items: center;
    min-inline-size: 0;
    min-block-size: 46px;
    padding: .35rem;
    background: #fff;
    border: 1px solid #dbe5f0;
    border-radius: 9px;
    color: var(--ink);
    font-size: .88rem;
    font-weight: 800;
    line-height: 1.15;
}

.storefront-header .storefront-companion a { display: block; inline-size: 100%; }
.storefront-header .storefront-companion img {
    display: block;
    inline-size: 100%;
    block-size: 32px;
    object-fit: contain;
}

.storefront-header .storefront-support {
    grid-area: support;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: .55rem;
    min-inline-size: 0;
}

.storefront-header .header-info-item {
    display: flex;
    padding: .5rem .55rem;
    min-inline-size: 0;
    border: 1px solid #e0e9f4;
    border-radius: 10px;
    background: #fff;
    gap: .52rem;
}

.storefront-header .header-info-item strong,
.storefront-header .header-info-item small {
    white-space: normal;
    overflow-wrap: anywhere;
}

.storefront-header .header-info-item strong,
.storefront-header .product-count-item small { font-size: clamp(.91rem, 1.2vw, 1.06rem); }
.storefront-header .header-info-item small { color: #50637f; line-height: 1.45; font-size: .8rem; }
.storefront-header .product-count-item small { color: var(--ink); font-weight: 800; }
.storefront-header .product-count-item strong { font-size: 1.36rem; }
.storefront-header .hours-copy > span { display: inline-block; white-space: nowrap; }

.storefront-header .storefront-tools {
    grid-area: tools;
    display: flex;
    align-items: stretch;
    gap: .7rem;
    min-inline-size: 0;
}

.storefront-header .header-search {
    flex: 1;
    height: 54px;
    background: #fff;
    border-color: #9fb4d1;
    border-radius: 10px;
}

.storefront-header .header-search input { font-size: 1rem; }
.storefront-header .header-search input::placeholder { color: #596d89; }
.storefront-header .header-search button { min-inline-size: 106px; padding-inline: 1rem; font-size: 1rem; }

.storefront-header .store-cart-link {
    justify-content: center;
    flex-wrap: wrap;
    gap: .35rem .6rem;
    padding: .48rem .8rem;
    min-block-size: 48px;
    max-inline-size: 48%;
    border-radius: 10px;
    background: var(--blue);
    font-size: 1rem;
    text-align: center;
}

.storefront-header .store-cart-figures { white-space: nowrap; font-variant-numeric: tabular-nums; }
.storefront-header .mobile-menu-button { width: auto; min-width: 48px; height: auto; flex: 0 0 auto; font-size: .91rem; }

.storefront-header .category-nav { border-block-end: 3px solid var(--blue); }
.storefront-header .category-nav-inner {
    align-items: stretch;
    gap: .4rem;
    min-block-size: 58px;
    padding-block: .4rem;
}

.storefront-header .category-dropdown { flex: 1.55 1 165px; }
.storefront-header .category-nav-inner > a {
    display: inline-flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    min-inline-size: 0;
    min-block-size: 44px;
    padding: .4rem .35rem;
    border: 1px solid rgb(255 255 255 / 14%);
    border-radius: 7px;
    background: rgb(255 255 255 / 6%);
    font-size: clamp(.85rem, 1.15vw, 1rem);
    text-align: center;
    text-decoration: none;
}

.storefront-header .category-nav-inner > a:hover,
.storefront-header .category-nav-inner > a:focus-visible,
.storefront-header .category-nav-inner > a[aria-current="page"] {
    color: #fff;
    background: rgb(255 255 255 / 16%);
}

.storefront-header .category-menu-trigger {
    justify-content: space-between;
    inline-size: 100%;
    min-inline-size: 0;
    min-block-size: 44px;
    border-radius: 7px;
    font-size: 1.04rem;
    padding-inline: .8rem;
}

@media (max-width: 991.98px) {
    html { scroll-padding-top: 255px; }

    .storefront-header .storefront-header-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-areas:
            "brand companions"
            "support support"
            "tools tools";
        gap: .65rem .8rem;
        padding-block: .78rem;
    }

    .storefront-header .storefront-companions { inline-size: min(100%, 192px); }
    .storefront-header .official-brand img { inline-size: min(100%, 176px); }
}

@media (max-width: 575.98px) {
    html { scroll-padding-top: 330px; }

    .storefront-header .storefront-header-grid { gap: .55rem .6rem; padding-block: .65rem; }
    .storefront-header .storefront-phone { font-size: 1.08rem; min-block-size: 30px; }
    .storefront-header .storefront-companion { min-block-size: 38px; padding: .2rem; font-size: .74rem; }
    .storefront-header .storefront-companion img { block-size: 26px; }
    .storefront-header .storefront-support { gap: .3rem; grid-auto-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.25fr); }
    .storefront-header .header-info-item { gap: .25rem; padding: .35rem .24rem; }
    .storefront-header .header-info-item strong,
    .storefront-header .product-count-item small { font-size: .77rem; }
    .storefront-header .header-info-item small { font-size: .71rem; }
    .storefront-header .product-count-item strong { font-size: 1.06rem; }
    .storefront-header .header-info-icon { flex-basis: 20px; inline-size: 20px; block-size: 22px; border-radius: 5px; }
    .storefront-header .header-info-icon img { inline-size: 15px; block-size: 15px; }
    .storefront-header .storefront-tools { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .5rem; }
    .storefront-header .header-search { grid-column: 1 / -1; grid-row: 2; height: 49px; }
    .storefront-header .header-search input { padding-inline: .65rem; font-size: .92rem; }
    .storefront-header .header-search button { min-inline-size: 68px; padding-inline: .55rem; font-size: .92rem; }
    .storefront-header .store-cart-link { grid-area: 1 / 2; justify-self: end; max-inline-size: 100%; font-size: .93rem; }
}

@media (max-width: 359.98px) {
    .storefront-header .hours-item .header-info-icon { display: none; }
}

@media (max-width: 991.98px) and (max-height: 540px) {
    html { scroll-padding-top: 0; }
    .storefront-header { position: relative; }
}
