.shop-header {
    --header-ink: #101c4b;
    --header-blue: #164bbc;
    color: var(--header-ink);
    background: #fff;
    border-bottom: 1px solid #d8e1ee;
}

.shop-header a {
    color: inherit;
}
.shop-header a:hover {
    color: var(--header-blue);
    text-underline-offset: 4px;
}
.shop-header a:focus-visible,
.shop-header button:focus-visible {
    outline: 3px solid var(--header-blue);
    outline-offset: 3px;
}

.shop-header__utility {
    color: #edf3ff;
    background: #101c3d;
    font-size: .75rem;
}

.shop-header__utility-content {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    min-height: 34px;
}

.shop-header__message {
    margin-right: auto;
}
.shop-header__trust,
.shop-header__trust li,
.shop-header__currency {
    display: flex;
    align-items: center;
    white-space: nowrap;
}
.shop-header__trust {
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.shop-header__trust li,
.shop-header__currency {
    gap: .4rem;
}
.shop-header__trust svg {
    width: 21px;
    height: 21px;
    flex-shrink: 0;
}
.shop-header__currency img {
    object-fit: contain;
}

.shop-header__main {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr) auto;
    align-items: center;
    gap: 2.25rem;
    padding-top: .7rem;
    padding-bottom: .7rem;
}

.shop-header__brand {
    display: block;
    min-width: 0;
}
.shop-header__brand img {
    display: block;
    width: 100%;
    height: auto;
}
.shop-header__search {
    min-width: 0;
}

.shop-search-form {
    display: flex;
    align-items: center;
    min-width: 0;
    height: 48px;
    border: 1px solid #c4cfdf;
    border-radius: 6px;
    background: #fbfcff;
}

.shop-search-form:focus-within {
    border-color: #164bbc;
    box-shadow: 0 0 0 2px #164bbc26;
}
.shop-search-form > svg {
    width: 21px;
    height: 21px;
    margin-left: 16px;
    flex-shrink: 0;
    color: #496081;
}
.shop-search-form input {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0 12px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #101c4b;
    font-size: .9375rem;
}
.shop-search-form input::placeholder {
    color: #697a91;
}
.shop-search-form button {
    align-self: stretch;
    padding: 0 22px;
    border: 0;
    border-radius: 0 5px 5px 0;
    background: #101c4b;
    color: #fff;
    font: inherit;
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
}
.shop-search-form button:hover {
    background: #243c75;
}

/* The catalogue teleports its connected controls here; other pages use the native links/form. */
#shop-search:has(.shop-search-form--connected) > .shop-search-form--fallback,
#shop-upload:has(.shop-header__upload--connected) > .shop-header__upload--fallback {
    display: none;
}

.shop-header__navigation {
    border-top: 1px solid #f0f3f7;
}
.shop-header__navigation-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: .75rem;
}
.shop-header__departments {
    grid-column: 2;
}
.shop-header__upload {
    grid-column: 3;
    justify-self: end;
}
.shop-header__departments ul {
    display: flex;
    align-items: center;
    gap: 1.3rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.shop-header__departments a,
.shop-header__upload-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: .6rem 0;
    font-size: .875rem;
    font-weight: 500;
    white-space: nowrap;
}
.shop-header__upload-link {
    gap: .5rem;
    border: 0;
    color: #164bbc !important;
    background: transparent;
    cursor: pointer;
}
.shop-header__upload-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}
.shop-header__upload-link svg {
    width: 18px;
    height: 18px;
}

.shop-header__cart-button,
.shop-header__menu-toggle {
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: .5rem;
    border: 0;
    border-radius: 4px;
    color: #101c4b;
    background: transparent;
    cursor: pointer;
}
.shop-header__cart-button {
    display: flex;
    gap: .6rem;
    font-size: .875rem;
    font-weight: 600;
    white-space: nowrap;
}
.shop-header__cart-button svg {
    width: 28px;
    height: 28px;
    color: #164bbc;
}
.shop-header__cart-button:hover,
.shop-header__cart-button.focused,
.shop-header__menu-toggle:hover,
.shop-header__menu-toggle[aria-expanded="true"] {
    background: #edf5fc;
}
.shop-header__menu-toggle {
    display: none;
    gap: .5rem;
    padding-left: 0;
    font-size: .875rem;
    font-weight: 600;
}
.shop-header__menu-toggle svg {
    width: 22px;
    height: 22px;
}

@media (min-width: 992px) {
    .shop-header__departments.collapse {
        display: block;
    }
}

@media (max-width: 1199px) {
    .shop-header__main {
        grid-template-columns: 190px minmax(0, 1fr) auto;
        gap: 1.5rem;
    }
    .shop-header__departments ul {
        gap: .9rem;
    }
}

@media (max-width: 991px) {
    .shop-header__utility-content {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 0 .75rem;
        padding-top: .25rem;
        padding-bottom: .25rem;
    }
    .shop-header__message {
        flex-basis: 100%;
        margin: 0;
        padding: .25rem 0;
        text-align: center;
    }
    .shop-header__trust {
        gap: .75rem;
    }
    .shop-header__main {
        grid-template-columns: 170px minmax(0, 1fr) auto;
        gap: 1rem;
    }
    .shop-header__navigation-content {
        display: flex;
        flex-wrap: wrap;
        gap: 0 1rem;
    }
    .shop-header__menu-toggle {
        display: flex;
    }
    .shop-header__departments {
        order: 2;
        flex-basis: 100%;
    }
    .shop-header__departments ul {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: .25rem 1rem;
        padding-bottom: .5rem;
        border-top: 1px solid #e3e8ef;
    }
    .shop-header__upload {
        margin-left: auto;
    }
    .shop-search-form button {
        padding: 0 16px;
    }
}

@media (max-width: 767px) {
    .shop-header__main {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: .5rem 1rem;
    }
    .shop-header__brand {
        width: 185px;
        max-width: 100%;
    }
    .shop-header__search {
        grid-column: 1 / -1;
        grid-row: 2;
    }
    .shop-header__cart {
        grid-column: 2;
        grid-row: 1;
    }
    .shop-header__departments ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .shop-header__message {
        font-size: .7rem;
    }
    .shop-header__trust {
        padding: .2rem 0;
    }
    .shop-search-form input {
        font-size: 16px;
        padding: 0 8px;
    }
    .shop-search-form > svg {
        margin-left: 10px;
    }
    .shop-header__cart-button {
        gap: .35rem;
        padding-left: .25rem;
        padding-right: .25rem;
    }
}
