.ecommerce-header {
    background: #fff;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 9999;
    width: 100%;
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1.5rem;
}
.site-logo a {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
}
.site-logo img {
    height: 44px;
    max-width: 160px;
    object-fit: contain;
}
.brand-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: #222;
    letter-spacing: 1px;
}
.main-nav {
    flex: 1;
    text-align: center;
}
.nav-list {
    display: flex;
    gap: 2.2rem;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-list li {
    position: relative;
}
.nav-list a {
    color: #222;
    font-size: 1.08rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    transition: background 0.18s, color 0.18s;
}
.nav-list a:hover, .nav-list .current-menu-item > a {
    background: #f1f7ff;
    color: #007bff;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}
.header-cart {
    position: relative;
    color: #007bff;
    font-size: 1.3rem;
    text-decoration: none;
}
.cart-count-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #e74c3c;
    color: #fff;
    font-size: 0.9rem;
    border-radius: 50%;
    padding: 2px 7px;
    font-weight: 700;
}
.header-account, .header-login {
    color: #222;
    font-size: 1.3rem;
    text-decoration: none;
    transition: color 0.18s;
}
.header-account:hover, .header-login:hover {
    color: #007bff;
}

/* Hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    margin-left: 1rem;
}
.nav-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: #222;
    border-radius: 2px;
    transition: all 0.2s;
}

/* Mobile Drawer */
.mobile-nav-drawer {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 80vw;
    max-width: 320px;
    background: #fff;
    box-shadow: 2px 0 24px rgba(0,0,0,0.12);
    z-index: 2001;
    transform: translateX(-100%);
    transition: transform 0.25s;
    display: flex;
    flex-direction: column;
    padding: 0;
}
.mobile-nav-drawer.open {
    transform: translateX(0);
}
.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.2rem 0.7rem 1.2rem;
    border-bottom: 1px solid #eee;
}
.mobile-nav-header a {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
}
.mobile-nav-header img {
    height: 38px;
    max-width: 120px;
    object-fit: contain;
}
.mobile-nav-header .brand-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: #222;
}
.nav-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #888;
    cursor: pointer;
}
.mobile-main-nav {
    padding: 1.2rem 1.2rem 0.7rem 1.2rem;
}
.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
.mobile-nav-list a {
    color: #222;
    font-size: 1.08rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    transition: background 0.18s, color 0.18s;
}
.mobile-nav-list a:hover, .mobile-nav-list .current-menu-item > a {
    background: #f1f7ff;
    color: #007bff;
}
.mobile-nav-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.18);
    z-index: 2000;
    display: none;
}
.mobile-nav-overlay.open {
    display: block;
}

/* 响应式 */
@media (max-width: 900px) {
    .main-nav {
        display: none;
    }
    .nav-toggle {
        display: flex;
    }
}
@media (max-width: 600px) {
    .header-inner {
        padding: 0.5rem 0.7rem;
    }
    .site-logo img {
        height: 34px;
        max-width: 90px;
    }
    .brand-name {
        font-size: 1.1rem;
    }
}

/* 心愿单图标样式 */
.header-wishlist {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #333;
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.header-wishlist:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #e74c3c;
    transform: scale(1.1);
}

.header-wishlist i {
    font-size: 1.2rem;
}

/* 心愿单数量徽章 */
.wishlist-count-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
}

/* 移动端样式 */
@media (max-width: 768px) {
    .header-wishlist {
        width: 36px;
        height: 36px;
        margin-left: 8px;
    }
    
    .header-wishlist i {
        font-size: 1.1rem;
    }
    
    .wishlist-count-badge {
        font-size: 0.65rem;
        min-width: 16px;
        height: 16px;
    }
}
