/* =====================================================
   الهوية البصرية الجديدة للمتجر الإلكتروني
   ===================================================== */

/* نظام الألوان الجديد */
:root {
    /* الألوان الأساسية */
    --primary-blue: #2563eb;
    --primary-blue-light: #3b82f6;
    --primary-blue-dark: #1d4ed8;
    
    /* الألوان الثانوية */
    --secondary-purple: #7c3aed;
    --secondary-purple-light: #8b5cf6;
    --secondary-purple-dark: #6d28d9;
    
    /* ألوان النجاح */
    --success-green: #10b981;
    --success-green-light: #34d399;
    
    /* ألوان التحذير */
    --warning-orange: #f59e0b;
    --warning-orange-light: #fbbf24;
    
    /* ألوان الخطأ */
    --error-red: #ef4444;
    --error-red-light: #f87171;
    
    /* ألوان النصوص */
    --text-dark: #1f2937;
    --text-medium: #6b7280;
    --text-light: #9ca3af;
    
    /* ألوان الخلفيات */
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --bg-gray: #f3f4f6;
    
    /* ألوان الحدود */
    --border-light: #e5e7eb;
    --border-medium: #d1d5db;
    
    /* الظلال */
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --shadow-heavy: rgba(0, 0, 0, 0.2);
}

/* تطبيق الخطوط الجديدة */
body {
    font-family: 'Cairo', 'Inter', sans-serif;
    color: var(--text-dark);
    background: var(--bg-light);
}

/* الترويسة الجديدة */
.main-header {
    background: #2c3e50;
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.logo-link {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    font-size: 1.8rem;
}

.logo-icon {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-purple) 100%);
    color: white;
    border-radius: 12px;
    padding: 8px;
    font-size: 1.5rem;
}

/* الأزرار الجديدة */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-purple) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--text-dark);
    border: 2px solid var(--border-light);
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    transform: translateY(-1px);
}

/* بطاقات المنتجات الجديدة */
.product-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px var(--shadow-light);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-purple) 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px var(--shadow-medium);
}

.product-image {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
}

.product-image img {
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-title {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.product-price {
    color: var(--primary-blue);
    font-weight: 800;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.add-to-cart-btn {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-purple) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

/* القسم الرئيسي الجديد */
.hero-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-purple) 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="hero-pattern" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="2" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23hero-pattern)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* الفلاتر الجديدة */
.filters-section {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px var(--shadow-light);
    border: 1px solid var(--border-light);
}

.search-input {
    border: 2px solid var(--border-light);
    border-radius: 12px;
    padding: 15px 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

.filter-select {
    border: 2px solid var(--border-light);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 1rem;
    background: var(--bg-white);
    transition: all 0.3s ease;
}

.filter-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

/* الإشعارات الجديدة */
.notification {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: 0 4px 20px var(--shadow-medium);
    border-left: 4px solid var(--primary-blue);
    margin: 10px 0;
}

.notification-success {
    border-left-color: var(--success-green);
}

.notification-error {
    border-left-color: var(--error-red);
}

.notification-warning {
    border-left-color: var(--warning-orange);
}

/* التذييل الجديد */
.main-footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-logo {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    font-size: 1.8rem;
}

/* تأثيرات حركية */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeInUp 0.6s ease;
}

/* تحسينات الجوال */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .product-card {
        padding: 15px;
    }
    
    .filters-section {
        padding: 20px;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .product-card {
        padding: 12px;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
} 