.storefront-document {
    --storefront-blue: #2e368f;
    --storefront-blue-hover: #252c78;
    --storefront-ink: #202538;
    --storefront-line: #e2e5ec;
    --storefront-gradient: linear-gradient(90deg, #e93e3a, #ed683c);
    --storefront-gutter: clamp(16px, 3.8vw, 58px);
}

@media (hover: hover) and (pointer: fine) and (forced-colors: none) {
    .storefront-document {
        --scrollbar-thumb: #707bad;
        --scrollbar-track: #edf0f8;
        scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
        scrollbar-gutter: stable;
    }

    @supports selector(::-webkit-scrollbar) {
        .storefront-document { scrollbar-color: auto; }
        .storefront-document::-webkit-scrollbar { width: 13px; }
        .storefront-document::-webkit-scrollbar-track { background: var(--scrollbar-track); }
        .storefront-document::-webkit-scrollbar-thumb {
            border: 2px solid var(--scrollbar-track);
            border-radius: 999px;
            background: var(--scrollbar-thumb);
        }
        .storefront-document::-webkit-scrollbar-thumb:hover { background: var(--storefront-blue); }
        .storefront-document::-webkit-scrollbar-thumb:active { background: var(--storefront-blue-hover); }
    }
}

header.storefront-header {
    min-height: 0;
    padding: 0;
    border-bottom: 1px solid var(--storefront-line);
    color: var(--storefront-ink);
    background: #fff;
}

.storefront-header__wrap {
    width: min(calc(100% - var(--storefront-gutter) * 2), 1280px);
    margin-inline: auto;
}

.storefront-header .storefront-icon {
    flex: none;
    width: 22px;
    height: 22px;
}

.storefront-header a {
    text-decoration: none;
}

.storefront-header :focus-visible {
    outline: 2px solid var(--storefront-blue);
    outline-offset: 3px;
}

.storefront-utility {
    color: #fff;
    background: var(--storefront-blue);
}

.storefront-utility__links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(13px, 3.25vw, 50px);
    min-height: 37px;
}

.storefront-utility__links a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: inherit;
    white-space: nowrap;
    font-size: .81rem;
    font-weight: 700;
}

.storefront-utility__links a:hover { text-decoration: underline; }
.storefront-utility__links a:focus-visible { outline-color: #ffb59d; }
.storefront-utility__links .storefront-icon { width: 17px; height: 17px; color: #ffbba4; }

.storefront-header__main {
    display: grid;
    grid-template-columns: 145px minmax(0, 660px) auto;
    align-items: center;
    justify-content: space-between;
    gap: clamp(18px, 4.15vw, 63px);
    min-height: 82px;
}

.storefront-logo {
    display: inline-flex;
    align-items: center;
    width: fit-content;
}

.storefront-logo img {
    width: 128px;
    height: 60px;
    object-fit: contain;
    object-position: left center;
}

.storefront-search {
    container: storefront-search / inline-size;
    position: relative;
    z-index: 90;
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 3px;
    border: 1px solid #cfd6e6;
    border-radius: 14px;
    background: #f7f8fc;
}

.storefront-search:focus-within {
    border-color: var(--storefront-blue);
    background: #fff;
    box-shadow: 0 0 0 3px #2e368f24;
}

.storefront-search input {
    flex: 1;
    min-width: 0;
    min-height: 44px;
    padding: .58rem .76rem;
    border: 0;
    border-radius: inherit;
    color: var(--storefront-ink);
    background: transparent;
}

.storefront-search input:focus-visible { outline: none; }
.storefront-search input::placeholder { color: #535b6d; opacity: 1; }
.storefront-search input::-webkit-search-cancel-button { display: none; }

.storefront-search__submit {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 46px;
    min-height: 44px;
    padding: 0 14px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: var(--storefront-gradient);
    font-size: .86rem;
    font-weight: 800;
    text-shadow: 0 1px 2px #64261ab3;
    cursor: pointer;
}

.storefront-search__submit .storefront-icon { width: 19px; height: 19px; }
.storefront-search__submit:hover { box-shadow: inset 0 0 0 100px #0001; }
.storefront-search__submit:active { box-shadow: inset 0 0 0 100px #0002; }
.storefront-search__submit:focus-visible { outline-color: #fff; outline-offset: -4px; }

.storefront-search__clear {
    flex: none;
    display: none;
    place-items: center;
    width: 40px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
}

.storefront-search input.open + .storefront-search__clear { display: grid; }
.storefront-search__clear:hover { background: #eef1fa; }
.storefront-search #search_results.open { top: calc(100% + 8px); }

@container storefront-search (max-width: 316px) {
    .storefront-search__submit { padding-inline: 0; }
    .storefront-search__submit span { display: none; }
}

header.storefront-header .storefront-header__actions {
    align-items: center;
    gap: clamp(12px, 2vw, 28px);
    margin: 0;
    padding: 0;
    color: var(--storefront-ink);
}

.storefront-action {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 3px;
    min-width: 48px;
    min-height: 45px;
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
    font-size: .81rem;
    font-weight: 750;
    white-space: nowrap;
}

button.storefront-action { cursor: pointer; }

.storefront-action:hover,
.storefront-action[aria-expanded="true"] { color: var(--storefront-blue); }

.storefront-action .storefront-icon { width: 25px; height: 25px; color: var(--storefront-blue); }
.storefront-action__cart { position: relative; }
.storefront-action__cart .storefront-icon { display: block; }

.storefront-action .dyn-items-in-cart {
    position: absolute;
    top: -4px;
    right: -9px;
    min-width: 17px;
    padding: 0 4px;
    border: 1px solid #fff;
    border-radius: 99px;
    color: #fff;
    background: #c54231;
    text-align: center;
    font-size: 10px;
    font-weight: 800;
    line-height: 15px;
}

.storefront-action__label { position: relative; }

header.storefront-header .account-menu-chevron {
    position: absolute;
    top: 50%;
    right: -9px;
    width: 5px;
    height: 5px;
    border-color: currentColor;
    transform: translateY(-75%) rotate(45deg);
}

header.storefront-header [aria-expanded="true"] .account-menu-chevron {
    transform: translateY(-25%) rotate(225deg);
}

header.storefront-header .my-account #account_sub_menu {
    z-index: 600;
    top: calc(100% + 10px);
    right: 0;
    width: min(286px, calc(100vw - var(--storefront-gutter) * 2));
    max-height: calc(100dvh - 100px);
    justify-content: flex-start;
    overflow-y: auto;
}

header.storefront-header #account_sub_menu .account-menu-avatar {
    font-size: 16px;
    font-weight: 800;
}

header.storefront-header #account_sub_menu .account-menu-label {
    font-size: 10px;
    font-weight: 800;
}

header.storefront-header .storefront-nav {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2.6vw, 36px);
    min-height: 49px;
    padding-bottom: 7px;
}

.storefront-nav__dialogs { display: flex; gap: 8px; }

header.storefront-header .storefront-nav > a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0;
    color: var(--storefront-ink);
    font-size: .9rem;
    font-weight: 750;
    white-space: nowrap;
}

header.storefront-header .storefront-nav > a:hover { color: #9b3c21; }

.storefront-header #show_categories_btn,
.storefront-nav__brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    min-width: 0;
    height: auto;
    min-height: 43px;
    padding: .56rem .95rem;
    border: 1px solid transparent;
    border-radius: 9px;
    box-shadow: none;
    font: inherit;
    font-size: .89rem;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
}

.storefront-header #show_categories_btn { color: #fff; background: var(--storefront-blue); }
.storefront-header #show_categories_btn:hover,
.storefront-header #show_categories_btn[aria-expanded="true"] { background: var(--storefront-blue-hover); }

.storefront-header #show_categories_btn:focus-visible {
    outline: 2px solid var(--storefront-blue);
    outline-offset: 3px;
}

.storefront-header #show_categories_btn .storefront-icon { width: 19px; height: 19px; }
.storefront-nav__brand { border-color: #c6cce6; color: var(--storefront-blue); background: #f5f6fc; }
.storefront-nav__brand:hover,
.storefront-nav__brand[aria-expanded="true"] { border-color: #9da7d5; background: #eaeefb; }
.storefront-nav__brand .storefront-icon { width: 17px; height: 17px; transform: rotate(90deg); }

header.storefront-header #category_nav.category-menu,
header.storefront-header #brands_menu.brand-menu {
    position: fixed;
    inset: 0;
    z-index: 90001;
    display: flex;
    width: min(var(--storefront-dialog-width, 1120px), calc(100% - 48px));
    height: fit-content;
    max-height: min(800px, calc(100dvh - 48px));
    margin: auto;
    border: 1px solid #e0e4ee;
    border-radius: 20px;
    transform: translateY(8px) scale(.985);
    transform-origin: center;
}

header.storefront-header #brands_menu.brand-menu { --storefront-dialog-width: 720px; }

header.storefront-header #category_nav.category-menu.is-open,
header.storefront-header #brands_menu.brand-menu.is-open { transform: none; }

header.storefront-header .category-menu__backdrop,
header.storefront-header .brand-menu__backdrop { z-index: 90000; }

.storefront-header .category-menu__header,
.storefront-header .brand-menu__header { align-items: center; }

.storefront-header .category-menu__grid,
.storefront-header .brand-menu__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 997px) {
    header.storefront-header #category_nav.category-menu,
    header.storefront-header #brands_menu.brand-menu {
        width: min(var(--storefront-dialog-width, 760px), calc(100% - 32px));
        max-height: min(800px, calc(100dvh - 32px));
    }

    .storefront-header .category-menu__grid,
    .storefront-header .brand-menu__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
    .storefront-header__main { grid-template-columns: 120px minmax(0, 1fr) auto; gap: 18px; }
    .storefront-logo img { width: 112px; }
}

@media (max-width: 655px) {
    .storefront-header__main { grid-template-columns: 1fr auto; gap: 4px 17px; padding-block: 3px 7px; }
    .storefront-search { grid-row: 2; grid-column: 1 / -1; }
    .storefront-search input { font-size: .88rem; }
}

@media (max-width: 578px) {
    .storefront-search #search_results.open { top: var(--catalog-search-mobile-top, 165px); }
}

@media (max-width: 560px) {
    .storefront-utility__links { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 12px; padding-block: 5px; }
    .storefront-utility__shipping { grid-column: 1 / -1; justify-self: center; }
    .storefront-utility__links > a:last-child { justify-self: end; }
    .storefront-utility__links a { font-size: .76rem; }
    .storefront-logo img { width: 107px; height: 50px; }
    .storefront-action { min-width: 44px; gap: 0; font-size: .72rem; }
    .storefront-action .storefront-icon { width: 22px; height: 22px; }
    header.storefront-header .storefront-nav { flex-wrap: wrap; gap: 2px 14px; }
    header.storefront-header .storefront-nav > a { min-height: 38px; font-size: .83rem; }
    .storefront-header #show_categories_btn,
    .storefront-nav__brand { min-height: 40px; padding-inline: .65rem; font-size: .83rem; }

    header.storefront-header #category_nav.category-menu,
    header.storefront-header #brands_menu.brand-menu {
        width: calc(100% - 24px);
        max-height: calc(100dvh - 24px);
        border-radius: 16px;
    }

    .storefront-header .category-menu__grid,
    .storefront-header .brand-menu__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    header.storefront-header #category_nav.category-menu,
    header.storefront-header #brands_menu.brand-menu { transition: none; }
}

footer.storefront-footer {
    padding-block: 27px 16px;
    color: #e7e9f3;
    background: var(--storefront-blue);
    font-size: .87rem;
}

.storefront-footer__columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 28px);
}

.storefront-footer h2 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
}

.storefront-footer :is(address, p) { margin: 0; }

.storefront-footer :is(a, button) {
    display: block;
    width: fit-content;
    padding: 2px 0;
    color: inherit;
    white-space: normal;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.storefront-footer button {
    border: 0;
    background: none;
    font: inherit;
    cursor: pointer;
}

.storefront-footer :is(a, button):hover { text-decoration: underline; }
.storefront-footer :focus-visible { outline: 2px solid #ffb59d; outline-offset: 3px; }

.storefront-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 21px;
    padding-top: 12px;
    border-top: 1px solid #ffffff38;
}

.storefront-footer__bottom nav { display: flex; flex-wrap: wrap; gap: 1px 16px; }
.storefront-footer__bottom small a { display: inline; }

@media (max-width: 560px) {
    .storefront-footer__columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .storefront-footer__location { grid-column: 1 / -1; }
}
