.header {
    background: linear-gradient(135deg, #ffffff 0%, #e6f0ff 50%, #f0e6ff 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 100, 0.1);
    padding: 15px 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 100, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #0066cc, #6600cc);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 20px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #003366;
    background: linear-gradient(45deg, #0066cc, #6600cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #003366;
    font-weight: 600;
    font-size: 16px;
    padding: 8px 0;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #6600cc;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(to right, #0066cc, #6600cc);
    border-radius: 10px;
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.search-cart {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    position: relative;
}

.search-input {
    padding: 10px 15px 10px 40px;
    border: 2px solid #d0e0ff;
    border-radius: 30px;
    font-size: 14px;
    width: 200px;
    transition: all 0.3s;
    background-color: #f0f7ff;
}

.search-input:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.2);
    width: 250px;
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #0066cc;
}

.cart-icon {
    position: relative;
    cursor: pointer;
}

.cart-count {
    position: absolute;
    top: -8px;
    left: -8px;
    background: linear-gradient(45deg, #0066cc, #6600cc);
    color: white;
    font-size: 12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.hamburger {
    display: none;
    cursor: pointer;
    background: linear-gradient(45deg, #0066cc, #6600cc);
    border: none;
    border-radius: 8px;
    padding: 10px 15px;
    color: white;
    font-weight: bold;
    font-size: 16px;
}

.login-signup {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-size: 14px;
}

.login-btn {
    background: transparent;
    color: #0066cc;
    border: 2px solid #0066cc;
}

.login-btn:hover {
    background: rgba(0, 102, 204, 0.1);
}

.signup-btn {
    background: linear-gradient(45deg, #0066cc, #6600cc);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.signup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

/* موبایل */
@media (max-width: 768px) {
    .header-container {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
        position: relative;
    }
    
    .logo {
        order: 1;
        width: 100%;
        justify-content: center;
    }
    
    .hamburger {
        display: block;
        order: 2;
        position: absolute;
        left: 5%;
        top: 15px;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        z-index: 1001;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .search-cart {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 10px;
    }
    
    .search-box {
        flex: 1;
        max-width: 70%;
    }
    
    .search-input {
        width: 100%;
        padding: 8px 10px 8px 35px;
    }
    
    .login-signup {
        order: 4;
        width: 100%;
        justify-content: center;
        gap: 8px;
    }
    
    .btn {
        padding: 8px 15px;
        font-size: 12px;
    }
    
    .cart-icon {
        transform: scale(1.2);
    }
}

@media (max-width: 480px) {
    .header {
        padding: 10px 5%;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    .search-input {
        padding: 8px 10px 8px 35px;
    }
    
    .btn {
        padding: 7px 12px;
        font-size: 11px;
    }
    
    .hamburger {
        padding: 8px 12px;
        font-size: 14px;
    }
}