/* ===== متغيرات أساسية ===== */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --text-gradient: linear-gradient(135deg, #667eea, #764ba2);
    --shadow-hover: 0 15px 40px rgba(0,0,0,0.12);
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== تدرج النصوص ===== */
.text-gradient {
    background: var(--text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== قسم الهيرو ===== */
.hero-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* العناصر العائمة */
.floating {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.floating-badge {
    position: absolute;
    background: white;
    padding: 8px 16px;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    font-size: 0.85rem;
    font-weight: 500;
    animation: floatBadge 4s ease-in-out infinite;
}

.badge-1 { top: 10%; right: 5%; animation-delay: 0s; }
.badge-2 { bottom: 20%; left: 5%; animation-delay: 2s; }

@keyframes floatBadge {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(3deg); }
}

/* موجة الفاصل */
.wave-divider {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

/* ===== بطاقات التصنيفات ===== */
.category-card {
    background: white;
    border-radius: 16px;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
}

.category-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.category-icon {
    display: inline-block;
    transition: var(--transition-smooth);
}

.category-card:hover .category-icon {
    transform: scale(1.2) rotate(-10deg);
}

/* ===== بطاقات المنتجات ===== */
.product-card {
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.product-card .card-img-top {
    transition: var(--transition-smooth);
}

.product-card:hover .card-img-top {
    transform: scale(1.05);
}

.quick-add {
    opacity: 0;
    transition: var(--transition-smooth);
    width: 40px;
    height: 40px;
}

.product-card:hover .quick-add {
    opacity: 1;
}

.quick-add:hover {
    transform: scale(1.15);
}

/* ===== بطاقات العروض ===== */
.offer-card {
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    min-height: 200px;
}

.offer-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    transition: var(--transition-smooth);
}

.offer-card:hover::before {
    transform: scale(1.5);
}

.offer-card:hover {
    transform: scale(1.03);
}

/* ===== بطاقات الميزات ===== */
.feature-card {
    background: white;
    border-radius: 16px;
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-card i {
    transition: var(--transition-smooth);
}

.feature-card:hover i {
    transform: scale(1.15) rotate(-10deg);
}

/* ===== صناديق الإحصائيات ===== */
.stat-box {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    transition: var(--transition-smooth);
}

.stat-box:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.counter {
    font-size: 2rem;
}

/* ===== تأثير hover-lift ===== */
.hover-lift {
    transition: var(--transition-smooth);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

/* ===== أزرار ===== */
.btn-primary {
    background: var(--text-gradient);
    border: none;
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    transition: var(--transition-smooth);
}

.btn-outline-primary:hover {
    background: var(--text-gradient);
    border-color: transparent;
    transform: translateY(-3px);
}

/* ===== نماذج الطلب ===== */
.modal-content {
    border-radius: 20px;
    border: none;
}

.modal-header {
    border-radius: 20px 20px 0 0;
}

.input-group-text {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* ===== شريط التمرير ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--text-gradient);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

/* ===== استجابة للجوال ===== */
@media (max-width: 768px) {
    .hero-section {
        min-height: 450px;
        padding: 40px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem !important;
    }
    
    .counter {
        font-size: 1.5rem;
    }
    
    .product-card .card-img-top {
        height: 150px !important;
    }
    
    .offer-card {
        padding: 25px !important;
        min-height: 150px;
    }
    
    .offer-card h3 {
        font-size: 1.5rem !important;
    }
    
    .floating-badge {
        display: none;
    }
    
    .category-card {
        padding: 15px !important;
    }
    
    .category-icon i {
        font-size: 2rem !important;
    }
    
    .feature-card {
        padding: 15px !important;
    }
    
    .feature-card i {
        font-size: 2rem !important;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 350px;
        padding: 20px 0;
    }
    
    .hero-section h1 {
        font-size: 1.6rem !important;
    }
    
    .btn-lg {
        padding: 10px 20px !important;
        font-size: 0.95rem !important;
    }
    
    .counter {
        font-size: 1.2rem;
    }
    
    .stat-box p {
        font-size: 0.7rem !important;
    }
    
    .product-card .card-img-top {
        height: 120px !important;
    }
}

/* ===== تأثيرات التحميل ===== */
.animate__animated {
    animation-duration: 0.8s;
}

/* ===== Toast Notifications ===== */
.toast-custom {
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}