

#globalnav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 48px;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.6, 1), background 0.4s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#globalnav.nav-hidden { transform: translateY(-100%); }
#globalnav.nav-transparent { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }

.globalnav-content {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 22px;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

.globalnav-list {
    display: flex;
    list-style: none;
    height: 100%;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

.globalnav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.globalnav-link {
    color: #1d1d1f;
    text-decoration: none;
    font-size: 12px;
    line-height: 1;
    padding: 0 10px;
    height: 100%;
    display: flex;
    align-items: center;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
}

.globalnav-link:hover { opacity: 1; }

.globalnav-link-text {
    font-weight: 400;
    letter-spacing: 0.02em;
}

.globalnav-link-apple .globalnav-logo {
    display: block;
    height: 20px;
    width: auto;
}

.globalnav-menuback { display: none; }
.globalnav-menutrigger { display: none; }
.globalnav-menuclose { display: none; }

.globalnav-menutrigger-button {
    background: none;
    border: none;
    color: #1d1d1f;
    cursor: pointer;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.globalnav-menutrigger-lines {
    width: 18px;
    height: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.globalnav-menutrigger-line {
    width: 100%;
    height: 1.5px;
    background: #1d1d1f;
    transition: all 0.3s ease;
    transform-origin: center;
}

.globalnav-menutrigger-button.active .globalnav-menutrigger-line:nth-child(1) {
    transform: translateY(6.25px) rotate(45deg);
}

.globalnav-menutrigger-button.active .globalnav-menutrigger-line:nth-child(2) {
    opacity: 0;
}

.globalnav-menutrigger-button.active .globalnav-menutrigger-line:nth-child(3) {
    transform: translateY(-6.25px) rotate(-45deg);
}

.globalnav-flyout {
    position: absolute;
    top: 48px;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    min-width: 220px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 12px 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
    pointer-events: none;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.globalnav-item:hover .globalnav-flyout {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.globalnav-flyout-content { padding: 8px 0; }

.globalnav-flyout-item {
    display: block;
    padding: 8px 24px;
    color: #1d1d1f;
    text-decoration: none;
    font-size: 13px;
    opacity: 0.8;
    transition: opacity 0.2s ease, background 0.2s ease;
}

.globalnav-flyout-item:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.03);
}

#globalnav-curtain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 9998;
    pointer-events: none;
}

#globalnav-curtain.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.globalnav-search .globalnav-link { font-size: 16px; }
.globalnav-bag .globalnav-link { font-size: 16px; }

.globalnav-bag-badge {
    font-size: 11px;
    background: #0071e3;
    color: white;
    border-radius: 10px;
    padding: 1px 6px;
    margin-left: 4px;
}

@media (max-width: 834px) {
    .globalnav-menutrigger { display: flex; order: 1; margin-left: auto; }
    .globalnav-bag { order: 2; margin-left: auto; }

    .globalnav-menuclose {
        display: none;
        position: fixed;
        top: 12px;
        right: 16px;
        width: 36px;
        height: 36px;
        z-index: 10003;
        background: none;
        border: none;
        color: #1d1d1f;
        cursor: pointer;
        align-items: center;
        justify-content: center;
        padding: 0;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .globalnav-menuclose.show {
        display: flex;
        opacity: 1;
        visibility: visible;
    }

    .globalnav-list {
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100vh;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: saturate(180%) blur(20px);
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        padding: 80px 40px 40px;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease;
        z-index: 10000;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }

    .globalnav-list.mobile-open { opacity: 1; visibility: visible; }

    .globalnav-item {
        width: 100%;
        height: auto;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .globalnav-link { font-size: 22px; padding: 16px 0; width: 100%; }

    .globalnav-menuback {
        display: flex;
        position: absolute;
        top: 0; left: 0;
        width: 100%; height: 48px;
        z-index: 10001;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease;
    }

    .globalnav-menuback.active { opacity: 1; visibility: visible; }

    .globalnav-menuback-button {
        background: none; border: none;
        color: #1d1d1f; font-size: 14px;
        padding: 0 20px; cursor: pointer;
        display: flex; align-items: center; gap: 6px;
    }

    .globalnav-flyout {
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100vh;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: saturate(180%) blur(20px);
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        border-radius: 0;
        padding: 80px 40px 40px;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 10002;
        overflow-y: auto;
        overflow-x: hidden;
        border: none;
        box-shadow: none;
        -webkit-transform: translateX(100%) translateZ(0);
    }

    .globalnav-flyout.mobile-open { transform: translateX(0); }

    .globalnav-item:hover .globalnav-flyout {
        opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(-10px);
    }

    .globalnav-item.mobile-active .globalnav-flyout {
        opacity: 1; visibility: visible; transform: translateX(0);
    }
}
