#header {
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-main {
    display: flex;
    align-items: center;
    padding: 12px 0;
    gap: 30px;
}

.header-logo {
    flex-shrink: 0;
}

.logo-img {
    height: 42px;
    width: auto;
}

.header-nav {
    flex: 1;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 30px;
}

.nav-item {
    position: relative;
}

.nav-item a {
    font-size: 15px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 0;
    transition: color 0.25s ease;
    display: flex;
    align-items: center;
}

.nav-item a:hover {
    color: var(--primary);
}

.nav-item.active a {
    color: var(--primary);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    border-radius: 2px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-search {
    position: relative;
    width: 280px;
}

.search-input {
    width: 100%;
    padding: 9px 36px 9px 15px;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    outline: none;
    transition: all 0.25s ease;
    box-sizing: border-box;
    background: var(--bg-soft);
}

.search-input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

.search-input::placeholder {
    color: var(--text-light);
}

.search-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    width: 28px;
    height: 28px;
    cursor: pointer;
    transition: color 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    color: var(--primary);
}

.search-icon {
    width: 16px;
    height: 16px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 5px;
}

.header-action-item {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-sub);
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.25s ease;
}

.header-action-item:hover {
    color: var(--primary);
    background: rgba(255, 107, 157, 0.1);
}

.header-action-item svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 992px) {
    .header-main {
        padding: 10px 0;
        gap: 20px;
    }
    
    .logo-img {
        height: 35px;
    }
    
    .nav-list {
        gap: 20px;
    }
    
    .nav-item a {
        font-size: 14px;
    }
    
    .header-search {
        width: 220px;
    }
}

@media (max-width: 768px) {
    .header-nav {
        display: none;
    }
    
    .header-search {
        width: 180px;
    }
}