/* Global store/checkout header */
.shop-header {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: 100%;
    z-index: 80;
    background: #ffffff;
    color: #111111;
    border-bottom: 1px solid #e8e8e8;
    box-shadow: none;
    transform: none;
    -webkit-transform: none;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: auto;
    padding-top: env(safe-area-inset-top, 0px);
    font-family: "Sora", "Montserrat", "Segoe UI", Arial, sans-serif;
}

.shop-header a {
    color: inherit;
    text-decoration: none;
}

.shop-header button {
    font: inherit;
}

.header-spacer {
    display: none;
    height: 0;
    transition: none;
}

.header-main {
    width: min(var(--container-width, 1200px), 94vw);
    margin-inline: auto;
    height: 66px;
    min-height: 66px;
    display: grid;
    grid-template-columns: 46px 1fr 46px;
    align-items: center;
    gap: 0.6rem;
    transition: height 0.25s ease, min-height 0.25s ease;
}

.header-main.is-home {
    grid-template-columns: 46px 1fr auto;
}

.icon-btn {
    appearance: none;
    border: 0;
    background: transparent;
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    border-radius: 4px;
    cursor: pointer;
}

.header-icon,
.header-menu-btn {
    display: inline-grid;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.header-icon-placeholder {
    display: block;
    width: 40px;
    height: 40px;
}

.icon-btn svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: #111111;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.header-logo {
    justify-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 800;
    font-size: 1.05rem;
    color: #111111;
    letter-spacing: 0;
}

.header-logo-wordmark {
    display: inline-block;
    font-family: "Montserrat", "League Spartan", Arial, sans-serif;
    font-weight: 900;
    font-size: clamp(1.7rem, 4.6vw, 2.2rem);
    line-height: 0.92;
    letter-spacing: 0;
    text-transform: uppercase;
    color: #111111;
}

.header-logo-image {
    display: block;
    width: min(180px, 46vw);
    height: auto;
    max-height: 34px;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.header-logo img {
    width: auto;
    max-height: 34px;
}

.cart-button {
    position: relative;
    justify-self: end;
}

.cart-button svg {
    width: 23px;
    height: 23px;
    stroke-width: 1.45;
}

.cart-count {
    position: absolute;
    right: 1px;
    top: 1px;
    min-width: 1.1rem;
    height: 1.1rem;
    border-radius: 4px;
    background: var(--secondary-color, #28A745);
    color: #111111;
    font-size: 0.72rem;
    font-weight: 800;
    display: grid;
    place-items: center;
}

.cart-count[hidden] {
    display: none !important;
}

.header-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.header-actions-home {
    justify-self: end;
}

.desktop-nav {
    display: none;
    border-top: 1px solid #000000;
    background: #000000;
}

.desktop-nav.is-open {
    display: block;
}

.desktop-nav-wrap {
    width: min(var(--container-width, 1200px), 94vw);
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.3rem;
    height: 46px;
    color: #ffffff;
    font-size: 0.94rem;
    font-weight: 600;
}

.desktop-nav-wrap a {
    opacity: 0.95;
}

.desktop-nav-wrap a:hover {
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.desktop-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-nav-header,
.mobile-nav-body,
.mobile-nav-section-title,
.mobile-nav-footer,
.menu-overlay,
.desktop-nav-close {
    display: none;
}

@media (max-width: 767px) {
    body.menu-open {
        overflow: hidden;
        touch-action: none;
    }

    body.menu-open .shop-header {
        transform: none !important;
        -webkit-transform: none !important;
    }

    .desktop-nav {
        position: absolute;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100dvh;
        z-index: 10040;
        border-top: 0;
        display: flex;
        visibility: hidden;
        opacity: 0;
        transition: opacity 0.22s ease;
    }

    .desktop-nav.is-open {
        visibility: visible;
        opacity: 1;
    }

    .menu-overlay {
        display: block;
        position: absolute;
        inset: 0;
        background: rgba(15, 16, 18, 0.32);
    }

    .desktop-nav-wrap {
        position: absolute;
        left: 0;
        top: 0;
        width: min(460px, 96vw);
        height: 100%;
        background: #ffffff;
        box-shadow: 0 16px 36px rgba(15, 16, 18, 0.2);
        display: grid;
        grid-template-rows: auto 1fr auto;
        padding: 0;
        overflow: hidden;
        transform: translateX(-100%);
        transition: transform 0.24s cubic-bezier(0.4, 0, 0.2, 1);
        color: #202124;
        z-index: 1;
    }

    .desktop-nav.is-open .desktop-nav-wrap {
        transform: translateX(0);
    }

    .mobile-nav-header {
        display: flex;
    }

    .mobile-nav-header h2 {
        margin: 0;
    }

    .desktop-nav-close {
        display: inline-grid;
        place-items: center;
        line-height: 1;
    }

    .mobile-nav-body {
        display: block;
        overflow-y: auto;
        padding: 0.8rem 1rem;
    }

    .mobile-nav-section-title {
        display: block;
        margin: 0;
        padding: 0 0 0.45rem;
        font-size: 0.69rem;
        font-weight: 700;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: #7e8693;
    }

    .desktop-nav-wrap a.desktop-nav-link {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.78rem 0;
        color: #202124;
        font-size: 1rem;
        font-weight: 600;
        line-height: 1.35;
        text-decoration: none;
        border: 0;
        border-bottom: 1px solid #f0f2f5;
        background: #ffffff;
        box-shadow: none;
        opacity: 1;
        margin: 0;
    }

    .desktop-nav-wrap a.desktop-nav-link:hover {
        background: #f7f9fc;
        color: #111111;
        transform: none;
        border-color: #f0f2f5;
        box-shadow: none;
    }

    .mobile-nav-footer {
        display: grid;
        gap: 0.34rem;
        margin-top: 0;
        padding: 1rem;
        border-top: 1px solid var(--border-color, #dedede);
        background: #ffffff;
    }

    .mobile-nav-footer p {
        margin: 0;
        color: #6b7280;
        font-size: 0.82rem;
        line-height: 1.35;
    }

    .mobile-nav-footer p:first-child {
        color: #202124;
        font-weight: 700;
    }
}

@media (min-width: 768px) {
    .header-main {
        grid-template-columns: 54px 1fr 54px;
        height: 74px;
        min-height: 74px;
    }

    .header-main.is-home {
        grid-template-columns: 54px 1fr auto;
    }

    .header-main.is-product {
        grid-template-columns: 54px 1fr 54px;
        height: 74px;
        min-height: 74px;
    }

    .desktop-nav {
        display: block;
    }

    .desktop-nav.is-open .desktop-nav-wrap {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 1.3rem;
        height: 46px;
        padding: 0;
    }

    .desktop-nav.is-open .desktop-nav-wrap a {
        width: auto;
        padding: 0;
        border: 0;
    }
}

@media (min-width: 1024px) {
    .header-main,
    .header-main.is-product {
        width: min(var(--container-width, 1280px), 92vw);
        height: 80px;
        min-height: 80px;
        grid-template-columns: 58px 1fr 58px;
        gap: 1rem;
    }

    .desktop-nav-wrap {
        width: min(var(--container-width, 1280px), 92vw);
        justify-content: flex-start;
        gap: 0.45rem;
        height: 52px;
        font-size: 0.96rem;
    }

    .desktop-nav-link {
        padding: 0.42rem 0.78rem;
        border-radius: 999px;
        transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
    }

    .desktop-nav-wrap a:hover {
        text-decoration: none;
        background: rgba(225, 231, 35, 0.18);
    }

    .page-home-collection .header-main.is-home {
        grid-template-columns: minmax(180px, 1fr) auto;
    }

    .page-home-collection .header-main.is-home .header-menu-btn {
        display: none;
    }

    .page-home-collection .header-logo {
        justify-self: start;
    }

    .page-home-collection .header-actions-home {
        justify-self: end;
    }
}
