.global-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 44px;
    background: rgba(255, 255, 255, 0.8); 
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    z-index: 9999;
    transition: background 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-content {
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: relative;
    z-index: 20;
}

.header-logo {
    color: #1d1d1f; 
    opacity: 0.8;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    text-decoration: none;
}
.header-logo:hover { opacity: 1; }
.header-logo span { padding: 0 10px; font-size: 1.2rem; font-weight: 700;}
.header-logo img { width: 32px; height: 32px; }

.header-nav { flex-grow: 1; height: 100%; }
.nav-links { display: flex; justify-content: space-evenly; align-items: center; height: 100%; list-style: none; margin: 0; padding: 0 40px; }
.nav-links > li { height: 100%; display: flex; align-items: center; }

.nav-links a {
    color: #1d1d1f; 
    opacity: 0.8;
    text-decoration: none;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: -0.01em;
    transition: opacity 0.3s;
}
.nav-links a:hover { opacity: 1; }

.hamburger-btn { display: none; background: none; border: none; cursor: pointer; width: 20px; height: 44px; position: relative; z-index: 10000; }
.hamburger-btn .line { position: absolute; width: 16px; height: 1.5px; background: #1d1d1f; left: 2px; transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1); }
.hamburger-btn .top-line { top: 19px; }
.hamburger-btn .bottom-line { top: 24px; }


.mega-menu {
    position: fixed;
    top: 44px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
}

.mega-menu-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px 50px;
    display: flex;
    gap: 80px;
}

.mega-group h4 { font-size: 0.85rem; color: #86868b; font-weight: 400; margin: 0 0 15px 0; }
.mega-group ul { list-style: none; padding: 0; margin: 0; }
.mega-group li { margin-bottom: 12px; }
.mega-group a { font-size: 1.2rem !important; font-weight: 600 !important; color: #1d1d1f !important; opacity: 1 !important; transition: color 0.2s !important; }
.mega-group a:hover { color: #06c !important; }

.has-submenu:hover .mega-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.header-backdrop {
    position: fixed; top: 44px; left: 0; width: 100%; height: 100vh;
    background: rgba(0, 0, 0, 0.2); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
    visibility: hidden; opacity: 0; transition: all 0.4s ease; z-index: 5;
}
.global-header.is-hovering-menu .header-backdrop {
    visibility: visible; opacity: 1;
}


.store-info-bar { background: #ffffff; border-bottom: 1px solid #d2d2d7; padding: 15px 0; text-align: center; font-size: 0.9rem; position: relative; margin-top: 44px; }
.store-info-bar .swiper-slide { padding: 0 45px; box-sizing: border-box; display: flex; justify-content: center; align-items: center; }
.store-info-bar p { margin: 0; }
.store-info-bar a { color: #06c; text-decoration: none; }
.store-info-bar a:hover { text-decoration: underline; }
.info-arrow { color: #1d1d1f !important; transform: scale(0.4); }


@media (max-width: 768px) {
    .hamburger-btn { display: block; }
    
    .header-backdrop { display: none !important; }

    .header-nav {
        position: absolute; top: 44px; left: 0; width: 100%; height: 0;
        background: #ffffff; overflow-y: auto; overflow-x: hidden;
        transition: height 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    }

    .nav-links { flex-direction: column; justify-content: flex-start; align-items: flex-start; padding: 0 40px 40px; height: auto; }
    .nav-links > li { width: 100%; display: block; height: auto; border-bottom: 1px solid rgba(0, 0, 0, 0.1); }
    .nav-links > li > a {
        display: flex; justify-content: space-between; align-items: center;
        font-size: 17px; padding: 15px 0; opacity: 0; transform: translateY(-10px);
        transition: opacity 0.3s, transform 0.3s; width: 100%;
    }

    .mega-menu {
        position: static;
        background: transparent;
        backdrop-filter: none;
        border: none;
        visibility: visible;
        
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.7s ease-in-out;
    }
    
    .mega-menu-inner { 
        padding: 0 0 20px 15px; 
        flex-direction: column; 
        gap: 20px; 
        opacity: 0;
        transform: translateY(-8px);
        transition: opacity 0.5s ease, transform 0.5s ease;
    }
    
    .mega-group h4 { margin-bottom: 10px; font-size: 0.8rem; }
    .mega-group a { font-size: 1rem !important; }
    
    .has-submenu.is-open .mega-menu { 
        max-height: 400px; 
    }

    .has-submenu.is-open .mega-menu-inner {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0.2s; 
    }
    
    .submenu-toggle::after {
        content: '+'; font-size: 18px; font-weight: 300; 
        transition: transform 0.4s ease-in-out;
    }
    .has-submenu.is-open .submenu-toggle::after { transform: rotate(45deg); }

    .global-header.nav-open { background: #ffffff; }
    .global-header.nav-open .header-nav { height: calc(100vh - 44px); }
    .global-header.nav-open .nav-links > li > a { opacity: 1; transform: translateY(0); }
    .global-header.nav-open .top-line { transform: translateY(2.5px) rotate(45deg); }
    .global-header.nav-open .bottom-line { transform: translateY(-2.5px) rotate(-45deg); }
    
    .global-header.nav-open .nav-links > li:nth-child(1) > a { transition-delay: 0.1s; }
    .global-header.nav-open .nav-links > li:nth-child(2) > a { transition-delay: 0.2s; }
    .global-header.nav-open .nav-links > li:nth-child(3) > a { transition-delay: 0.3s; }
    .global-header.nav-open .nav-links > li:nth-child(4) > a { transition-delay: 0.4s; }
    .global-header.nav-open .nav-links > li:nth-child(5) > a { transition-delay: 0.5s; }
    .global-header.nav-open .nav-links > li:nth-child(6) > a { transition-delay: 0.6s; }
    .global-header.nav-open .nav-links > li:nth-child(7) > a { transition-delay: 0.7s; }
    .global-header.nav-open .nav-links > li:nth-child(8) > a { transition-delay: 0.8s; }
}