/* Header Navigation (isolated) */

.header-nav {
    width: 100%;
    display: flex;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 200;
    background: #FFFFFF33;
    border-bottom: 1px solid transparent;
    border-image-source: linear-gradient(90.38deg, rgba(255, 255, 255, 0.05) 0.59%, rgba(153, 153, 153, 0.05) 100%);
    border-image-slice: 1;
    backdrop-filter: blur(5.63px);
    -webkit-backdrop-filter: blur(5.63px);
    box-shadow: -2.96px 2.96px 8.98px 0 #28525157 inset;
}

.header-nav .nav-container {
    min-height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-nav .logo {
    width: clamp(70px, 6vw, 120px);
    min-width: 80px;
    flex: 0 0 auto;
}

.header-nav .logo img {
    width: 100%;
    height: auto;
    display: block;
}

.header-nav .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    gap: 10px;
    min-width: 0;
}

.header-nav .nav-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    gap: 18px;
}

.header-nav .mobile-menu {
    display: none;
    background: transparent;
    border: 0;
    padding: 0;
    line-height: 0;
    cursor: pointer;
}

.header-nav .mobile-menu__icon {
    display: none;
}

.header-nav a:not(.static):not(.btn) {
    text-decoration: none;
    font-size: 16px;
    font-family: 'TASA Orbiter Regular', sans-serif;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: #000;
    padding: 8px 18px;
    transition: color 0.2s ease;
}

.header-nav .nav-links a:hover,
.header-nav .nav-links a:focus-visible,
.header-nav .login-link:hover,
.header-nav .login-link:focus-visible {
    color: #00B0A9;
}

.header-nav .nav-tools .header-cta {
    white-space: nowrap;
    background: #00B0A9;
    color: #fff;
    border-radius: 30px;
    height: 37px;
    min-height: 37px;
    padding: 0 22px;
    min-width: 161px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'TASA Orbiter Medium', sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.3;
    letter-spacing: 0;
}

.header-nav .nav-tools .header-cta:hover {
    background: #029f99;
}

/* Mobile drawer */
.mobile-nav-overlay,
.mobile-nav-drawer {
    display: none;
}

.mobile-nav-close {
    display: none;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: #0000000D;
    backdrop-filter: blur(80px);
    -webkit-backdrop-filter: blur(80px);
    line-height: 0;
    cursor: pointer;
}

.mobile-nav-close svg {
    width: 14px;
    height: 14px;
    fill: #000;
}

/* Tablet */
@media screen and (max-width: 1200px) {
    .header-nav .nav-container {
        gap: 14px;
    }

    .header-nav .nav-links {
        gap: 30px;
    }

    .header-nav .nav-links a {
        font-size: 14px;
    }
}

/* Mobile */
@media screen and (max-width: 900px) {
    .header-nav {
        padding: 0;
        background: linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0%, rgba(236, 236, 236, 0.06) 100%);
        border-bottom: 1px solid transparent;
        border-image-source: linear-gradient(90.38deg, rgba(255, 255, 255, 0.05) 0.59%, rgba(153, 153, 153, 0.05) 100%);
        border-image-slice: 1;
        backdrop-filter: blur(5.63px);
        -webkit-backdrop-filter: blur(19.63px);
        box-shadow: -2.96px 2.96px 8.98px 0 #28525157 inset;
    }

    .header-nav .logo img{
        max-width: 60px;
    }

    .header-nav .nav-container {
        border-radius: 0;
        min-height: 56px;
        padding: 12px 0px;
    }

    .header-nav .nav-links--desktop,
    .header-nav .nav-tools--desktop {
        display: none !important;
    }

    .header-nav .mobile-menu {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        margin-left: auto;
        position: relative;
        width: 30px;
        height: 30px;
        padding: 0;
        border: 0;
        border-radius: 5px;
        background: #0000000D;
        backdrop-filter: blur(80px);
        -webkit-backdrop-filter: blur(80px);
        box-shadow: none;
        cursor: pointer;
        overflow: hidden;
    }

    .header-nav .mobile-menu__icon {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 15px;
        height: 11.25px;
        pointer-events: none;
    }

    .header-nav .mobile-menu__bar {
        display: block;
        width: 15px;
        height: 2.25px;
        border-radius: 999px;
        background: #000000;
    }

    .mobile-nav-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(40, 82, 81, 0.35);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 300ms ease-out, visibility 300ms ease-out;
        z-index: 1000;
    }

    .mobile-nav-drawer {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: min(340px, 88vw);
        height: 100%;
        max-height: 100dvh;
        padding: 0;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(243, 245, 240, 0.98) 42%, #F3F5F0 100%);
        border-left: 1px solid rgba(255, 255, 255, 0.55);
        box-shadow:
            -12px 0 40px rgba(40, 82, 81, 0.14),
            inset 2.96px 2.96px 8.98px 0 rgba(255, 255, 255, 0.45);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateX(100%);
        transition:
            transform 300ms ease-out,
            opacity 300ms ease-out,
            visibility 300ms ease-out;
        z-index: 1001;
        overflow: hidden;
    }

    .mobile-nav-drawer__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        flex-shrink: 0;
        padding: 14px 20px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        background: rgba(255, 255, 255, 0.28);
    }

    .mobile-nav-drawer__logo {
        display: block;
        width: 60px;
        flex: 0 0 auto;
    }

    .mobile-nav-drawer__logo img {
        width: 100%;
        height: auto;
        display: block;
    }

    .mobile-nav-close {
        display: inline-flex;
        margin-left: auto;
    }

    .mobile-nav-links {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        flex: 1 1 auto;
        min-height: 0;
        padding: 20px 16px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .mobile-nav-links a {
        display: block;
        padding: 14px 16px;
        border-radius: 16px;
        font-family: 'TASA Orbiter Medium', sans-serif;
        font-size: 20px;
        font-weight: 500;
        line-height: 1.25;
        letter-spacing: -0.02em;
        color: #1A1A1A;
        text-decoration: none;
        transition: background-color 0.2s ease, color 0.2s ease;
    }

    .mobile-nav-links a:hover,
    .mobile-nav-links a:focus-visible {
        background: transparent;
        color: #00B0A9;
    }

    .mobile-nav-actions {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        flex-shrink: 0;
        margin-top: auto;
        padding: 20px;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
        background: rgba(255, 255, 255, 0.35);
    }

    .mobile-nav-actions .login-link {
        align-self: flex-start;
        padding: 4px 2px;
        font-family: 'TASA Orbiter Regular', sans-serif;
        font-size: 16px;
        font-weight: 400;
        line-height: 1.3;
        letter-spacing: -0.02em;
        color: #000;
        text-decoration: none;
        text-align: left;
        background: transparent;
        border: 0;
    }

    .mobile-nav-actions .login-link:hover,
    .mobile-nav-actions .login-link:focus-visible {
        color: #00B0A9;
    }

    .mobile-nav-actions .header-cta.btn.primary {
        width: 100%;
        min-height: 44px;
        height: 44px;
        padding: 0 22px;
        border: 0;
        border-radius: 999px;
        background: #00B0A9 !important;
        color: #fff !important;
        font-family: 'TASA Orbiter Medium', sans-serif;
        font-weight: 700;
        font-size: 14px;
        line-height: 1.3;
        text-align: center;
        justify-content: center;
        display: flex;
        align-items: center;

        box-shadow: 0 4px 14px rgba(0, 176, 169, 0.28);
    }

    .mobile-nav-actions .header-cta.btn.primary:hover {
        background: #029f99 !important;
        color: #fff !important;
    }

    .header-nav.is-open ~ .mobile-nav-overlay {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .header-nav.is-open ~ .mobile-nav-drawer {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(0);
    }

    body.mobile-nav-open {
        overflow: hidden;
    }
}

/* WooCommerce: keep layout intact */
.woocommerce-cart .header-nav {
    margin-bottom: 100px;
}

