/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white1);
    font-weight: 600;
}

.site-header.is-stuck {
    box-shadow: 0 2px 8px rgb(37 37 37 / 8%);
}

.header-top {
    background: var(--gray1);
}

.header-top-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    min-height: 52px;
    padding-top: 16px;
    padding-bottom: 16px;
}

.header-notice {
    text-align: center;
    grid-column: 2;
}

.header-socials {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
}

.header-socials a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.header-desktop-socials {
    justify-self: end;
    grid-column: 3;
}

.header-main {
    display: grid;
    grid-template-columns: 1fr 256px 1fr;
    align-items: center;
    gap: 24px;
    min-height: 80px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.header-logo {
    grid-column: 2;
    grid-row: 1;
}

.header-logo img {
    max-width: none;
}

.header-logo-desktop {
    object-fit: scale-down;
}

.header-panel {
    grid-column: 1;
    grid-row: 1;
}

.header-links {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0;
    font-size: 16px;
}

.header-links a {
    white-space: nowrap;
}

.header-actions {
    grid-column: 3;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 24px;
    font-size: 16px;
}

.header-actions a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.header-user-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.littlename-cart-count {
    color: var(--green1);
}

.header-logo-mobile,
.header-mobile-extras,
.header-menu-toggle,
.header-icon-mobile {
    display: none;
}

.site-header a:hover,
.site-header a:focus-visible,
.header-language summary:hover {
    color: var(--green1);
}

.site-header :focus-visible {
    outline: 2px solid var(--green1);
    outline-offset: 4px;
}

/* Icons */
.header-icon {
    display: inline-block;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    background-color: currentColor;
    -webkit-mask: var(--header-icon) center / contain no-repeat;
    mask: var(--header-icon) center / contain no-repeat;
}

.header-icon-facebook {
    --header-icon: url('../icons/facebook.svg');
}

.header-icon-instagram {
    --header-icon: url('../icons/instagram.svg');
}

.header-icon-user {
    --header-icon: url('../icons/user.svg');
    width: 13.2px;
    height: 17.6px;
}

.header-icon-user-mobile {
    --header-icon: url('../icons/user-mobile.svg');
    width: 14.625px;
    height: 19.2292px;
}

.header-icon-bag {
    --header-icon: url('../icons/bag.svg');
    width: 24px;
    height: 24px;
}

.header-icon-bag-mobile {
    --header-icon: url('../icons/bag-mobile.svg');
    width: 26px;
    height: 26px;
}

.header-icon-menu {
    --header-icon: url('../icons/menu.svg');
    width: 26px;
    height: 26px;
}

.header-icon.header-icon-mobile {
    display: none;
}

/* Language */
.header-language {
    position: relative;
    width: fit-content;
    font-size: 14px;
}

.header-language summary,
.header-language a {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.header-language summary {
    list-style: none;
}

.header-language summary::-webkit-details-marker {
    display: none;
}

.header-language img {
    border-radius: 3px;
    object-fit: cover;
}

.header-language ul {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 2;
    padding: 8px;
    min-width: 150px;
    background: var(--white1);
    border: 1px solid var(--gray4);
    border-radius: 8px;
}

.header-language ul a {
    padding: 8px;
    white-space: nowrap;
}

/* Mobile */
@media (max-width: 1350px) {
    .header-top-inner {
        display: block;
        min-height: 0;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .header-notice {
        font-size: 13px;
    }

    .header-desktop-language,
    .header-desktop-socials,
    .header-top-no-notice,
    .header-logo-desktop,
    .header-action-label,
    .header-icon-desktop {
        display: none;
    }

    .header-main {
        display: flex;
        justify-content: space-between;
        gap: 16px;
        padding-top: 8px;
        padding-bottom: 8px;
        min-height: 86px;
    }

    .header-logo-mobile,
    .header-icon.header-icon-mobile {
        display: block;
    }

    .header-icon.header-icon-desktop {
        display: none;
    }

    .header-actions {
        gap: 0;
        font-size: 14px;
    }

    .header-account,
    .header-menu-toggle {
        width: 40px;
        height: 40px;
        justify-content: center;
    }

    .header-user-icon {
        width: 26px;
        height: 26px;
    }

    .header-actions .header-cart {
        height: 40px;
        padding: 0 8px;
        gap: 2px;
    }

    .littlename-cart-count {
        color: var(--black1);
    }

    .header-menu-toggle {
        display: flex;
        align-items: center;
        padding: 0;
        border: 0;
        background: none;
        color: inherit;
        cursor: pointer;
    }

    .header-menu-toggle:hover,
    .header-menu-toggle:focus-visible,
    .menu-is-open .header-menu-toggle {
        color: var(--green1);
    }

    .header-panel {
        display: none;
        position: fixed;
        inset: var(--header-height, 146px) 0 0;
        background: var(--gray1);
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 24px 16px 40px;
    }

    .menu-is-open .header-panel {
        display: block;
    }

    .header-panel-card {
        background: var(--white1);
        border-radius: 16px;
        padding: 16px;
    }

    .header-links {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
    }

    .header-links a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        white-space: normal;
    }

    .header-links a::after {
        content: '';
        width: 20px;
        height: 20px;
        flex-shrink: 0;
        background: url('../icons/chevron.svg') center no-repeat;
        transform: rotate(-90deg);
    }

    .header-mobile-extras {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .header-navigation + .header-mobile-extras:not(:empty) {
        border-top: 1px solid var(--gray4);
        margin-top: 24px;
        padding-top: 24px;
    }

    .header-extra-title {
        text-transform: uppercase;
        color: var(--green1);
        font-size: 12px;
        margin-bottom: 8px;
    }

    .header-contact a {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 14px;
        overflow-wrap: anywhere;
    }

    .header-contact img {
        flex-shrink: 0;
    }

    .header-language ul {
        position: static;
        margin-top: 8px;
    }

    body.header-menu-is-open {
        overflow: hidden;
    }
}
