/* ملف أنماط مخصص لمتجر إلكتروني - الإصدار الاحترافي */

/* أيقونة الشعار المخصصة */
.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
    color: var(--primary-color);
    font-weight: 800;
    font-size: 1.4rem;
    border-radius: 10px;
    margin-left: 0.5rem;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
    transition: var(--transition-base);
    font-family: 'Inter', sans-serif;
}

.navbar-brand:hover .brand-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.4);
}

.footer-section .brand-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
}

/* متغيرات الألوان والتصميم */
:root {
    /* الألوان الرئيسية */
    --primary-color: #1a56db;
    --primary-light: #3b82f6;
    --primary-dark: #1e40af;
    --primary-gradient: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    
    /* الألوان الثانوية */
    --accent-color: #06b6d4;
    --accent-light: #22d3ee;
    --accent-dark: #0891b2;
    --accent-gradient: linear-gradient(135deg, #0891b2 0%, #22d3ee 100%);
    
    /* ألوان التمييز */
    --highlight-color: #f59e0b;
    --highlight-light: #fbbf24;
    --highlight-dark: #d97706;
    
    /* ألوان النجاح والخطأ */
    --success-color: #10b981;
    --error-color: #ef4444;
    
    /* تدرجات الرمادي */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* الخطوط */
    --font-arabic: 'Cairo', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-english: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

    /* الحواف */
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    /* الظلال */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 40px rgba(26, 86, 219, 0.15);
    --shadow-colored: 0 20px 40px -10px rgba(26, 86, 219, 0.3);

    /* الانتقالات */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* المسافات */
    --spacing-section: 100px;
}

/* إعدادات عامة */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-arabic);
    line-height: 1.7;
    color: var(--gray-800);
    background-color: var(--gray-50);
    padding-top: 80px;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
    letter-spacing: -0.01em;
}

/* تغيير الخط للإنجليزية */
[lang="en"], .english-font {
    font-family: var(--font-english);
}

/* تحسينات للروابط */
a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

/* أدوات مساعدة للألوان */
.text-accent {
    color: var(--accent-color) !important;
}

.text-highlight {
    color: var(--highlight-color) !important;
}

.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* تحسين التركيز للوصولية */
:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.4);
    border-radius: var(--radius-sm);
}

/* ===================== الأزرار الاحترافية ===================== */
.btn {
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left var(--transition-slow);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--primary-gradient);
    border: none;
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-colored);
    background: var(--primary-gradient);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-accent {
    background: var(--accent-gradient);
    border: none;
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -10px rgba(6, 182, 212, 0.4);
    background: var(--accent-gradient);
    color: white;
}

.btn-outline-primary {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-colored);
}

.btn-outline-light {
    border-width: 2px;
    font-weight: 600;
}

.btn-outline-light:hover {
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: var(--radius-md);
}

/* خلفية أقسام */
.bg-primary {
    background: var(--primary-gradient) !important;
}

.bg-accent {
    background: var(--accent-gradient) !important;
}

.bg-highlight {
    background-color: var(--highlight-color) !important;
}

.bg-accent-light {
    background: linear-gradient(180deg, rgba(6, 182, 212, 0.05) 0%, rgba(6, 182, 212, 0.02) 100%) !important;
}

/* ===================== قسم Hero الاحترافي ===================== */
.hero-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0fdfa 100%);
    position: relative;
    overflow: hidden;
    padding: 80px 0 !important;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 70%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 50%;
    height: 100%;
    background: radial-gradient(ellipse, rgba(26, 86, 219, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

.hero-section .lead {
    font-size: 1.25rem;
    color: var(--gray-600);
    line-height: 1.8;
}

.hero-section .position-relative img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    transition: transform var(--transition-slow);
}

.hero-section .position-relative:hover img {
    transform: scale(1.02);
}

.hero-section .bg-warning {
    background: var(--highlight-color) !important;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0 !important;
    font-size: 0.95rem;
    padding: 0.75rem 1.25rem !important;
    box-shadow: var(--shadow-md);
}

/* ===================== شريط التنقل الاحترافي ===================== */
.navbar {
    padding: 1rem 0;
    transition: all var(--transition-base);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.navbar.bg-primary {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.97) 0%, rgba(26, 86, 219, 0.97) 100%) !important;
    box-shadow: 0 4px 30px rgba(26, 86, 219, 0.3);
}

.navbar-brand {
    font-family: var(--font-arabic);
    font-weight: 800;
    font-size: 1.35rem !important;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: white !important;
    white-space: nowrap;
    flex-shrink: 0;
}

.navbar-brand i {
    font-size: 1.5rem;
    color: white;
}

.navbar .nav-link {
    font-weight: 600;
    padding: 0.5rem 0.85rem !important;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    position: relative;
    font-size: 0.95rem;
    white-space: nowrap;
}

.navbar .nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
}

.navbar .nav-link.active {
    background: rgba(255, 255, 255, 0.2);
}

/* شريط البحث في الـ Navbar */
.navbar-search {
    width: 280px;
    flex-shrink: 0;
}

.navbar .input-group {
    border-radius: var(--radius-full);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    background: white;
}

.navbar .form-control {
    border-radius: 0 !important;
    border: none;
    background: transparent;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    height: 42px;
}

.navbar .form-control:focus {
    background: transparent;
    box-shadow: none;
}

.navbar .form-control::placeholder {
    color: var(--gray-400);
    font-size: 0.85rem;
}

.navbar .input-group .btn-accent {
    border-radius: 0 !important;
    padding: 0.5rem 1rem;
    border: none;
    height: 42px;
}

.navbar .dropdown-menu {
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.75rem;
    margin-top: 0.5rem !important;
}

.navbar .dropdown-item {
    border-radius: var(--radius-sm);
    padding: 0.6rem 1rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.navbar .dropdown-item:hover {
    background: var(--gray-100);
    color: var(--primary-color);
    transform: translateX(-4px);
}

/* أيقونة السلة */
#cartBtn {
    position: relative;
}

#cartBtn i {
    transition: transform var(--transition-fast);
}

#cartBtn:hover i {
    transform: scale(1.15);
}

#cartCount {
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, 0) scale(1); }
    50% { transform: translate(-50%, 0) scale(1.1); }
}

/* ===================== بطاقات المنتجات الاحترافية ===================== */
.product-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
    box-shadow: var(--shadow-xs);
    transition: all var(--transition-base);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform var(--transition-base);
    z-index: 2;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.product-card:hover::before {
    transform: scaleX(1);
}

/* صورة المنتج */
.product-image-wrapper {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--gray-50) 0%, white 100%);
}

.product-img {
    height: 200px;
    object-fit: contain;
    padding: 20px;
    transition: transform var(--transition-base);
}

.product-card:hover .product-img {
    transform: scale(1.08);
}

/* شارة الخصم */
.product-discount {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, var(--highlight-color) 0%, var(--highlight-dark) 100%);
    color: white;
    font-weight: 700;
    padding: 0.35rem 0.65rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    z-index: 1;
}

.product-out-of-stock {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--danger-color, #ef4444);
    color: white;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    z-index: 1;
}

/* أزرار الإجراءات السريعة */
.product-actions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    z-index: 2;
}

.product-card:hover .product-actions {
    opacity: 1;
    visibility: visible;
}

.product-action-btn {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    border: none;
    background: white;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
    transform: translateY(20px);
}

.product-card:hover .product-action-btn {
    transform: translateY(0);
}

.product-card:hover .product-action-btn:nth-child(1) { transition-delay: 0s; }
.product-card:hover .product-action-btn:nth-child(2) { transition-delay: 0.05s; }
.product-card:hover .product-action-btn:nth-child(3) { transition-delay: 0.1s; }

.product-action-btn:hover {
    background: var(--primary-gradient);
    color: white;
    transform: translateY(0) scale(1.1);
}

.product-action-btn.add-to-wishlist-btn:hover {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.product-action-btn.add-to-wishlist-btn.active {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.product-action-btn.add-to-wishlist-btn.active i::before {
    content: "\F415";
}

/* محتوى البطاقة */
.product-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.product-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-xs);
}

.product-badge-brand {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
}

.product-badge-category {
    background: var(--gray-100);
    color: var(--gray-600);
}

.product-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.4rem;
    color: var(--gray-900);
    height: 2.5rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color var(--transition-fast);
}

.product-card:hover .product-title {
    color: var(--primary-color);
}

.product-description {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

/* السعر */
.product-price-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.product-price {
    font-weight: 800;
    font-size: 1.25rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-old-price {
    text-decoration: line-through;
    color: var(--gray-400);
    font-size: 0.9rem;
    font-weight: 500;
}

/* أزرار الشراء */
.product-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.btn-add-to-cart {
    flex: 1;
    padding: 0.6rem 0.75rem;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--primary-gradient);
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-add-to-cart:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.35);
}

.btn-add-to-cart:disabled {
    background: var(--gray-300);
    cursor: not-allowed;
}

.btn-buy-now {
    padding: 0.6rem 0.75rem;
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.btn-buy-now:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-buy-now:disabled {
    border-color: var(--gray-300);
    color: var(--gray-400);
    cursor: not-allowed;
}

/* تقييم النجوم */
.rating-stars {
    color: var(--highlight-color);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 2px;
}

.rating-stars i {
    filter: drop-shadow(0 1px 2px rgba(245, 158, 11, 0.3));
}

.rating-count {
    color: var(--gray-500);
    font-size: 0.85rem;
    font-weight: 500;
    margin-right: 0.5rem;
}

/* ===================== بطاقات الفئات الاحترافية ===================== */
.category-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    position: relative;
    height: 100%;
}

.category-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.75rem 1rem;
    text-decoration: none;
    color: inherit;
    height: 100%;
    position: relative;
    min-height: 200px;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform var(--transition-base);
    z-index: 2;
}

.category-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(var(--primary-rgb), 0.15);
    border-color: rgba(var(--primary-rgb), 0.2);
}

.category-card:hover::before {
    transform: scaleX(1);
}

/* أيقونة الفئة */
.category-icon-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

.category-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.08) 0%, rgba(var(--primary-rgb), 0.15) 100%);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    position: relative;
    z-index: 1;
}

.category-icon i {
    font-size: 2.25rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all var(--transition-base);
}

.category-icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    border-radius: var(--radius-lg);
    opacity: 0;
    filter: blur(20px);
    transition: all var(--transition-base);
    z-index: 0;
}

.category-card:hover .category-icon {
    background: var(--primary-gradient);
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.3);
}

.category-card:hover .category-icon i {
    -webkit-text-fill-color: white;
}

.category-card:hover .category-icon-glow {
    opacity: 0.3;
    width: 120%;
    height: 120%;
}

/* محتوى الفئة */
.category-content {
    text-align: center;
}

.category-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--gray-800);
    margin-bottom: 0.4rem;
    transition: color var(--transition-fast);
}

.category-card:hover .category-name {
    color: var(--primary-color);
}

.category-count {
    font-size: 0.8rem;
    color: var(--gray-500);
    display: inline-flex;
    align-items: center;
    background: var(--gray-100);
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.category-card:hover .category-count {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
}

/* سهم الفئة */
.category-arrow {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    transition: all var(--transition-fast);
    color: var(--primary-color);
    font-size: 1.25rem;
}

.category-card:hover .category-arrow {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* استجابة الشاشات الصغيرة */
@media (max-width: 768px) {
    .category-link {
        padding: 1.25rem 0.75rem;
        min-height: 160px;
    }
    
    .category-icon {
        width: 64px;
        height: 64px;
    }
    
    .category-icon i {
        font-size: 1.75rem;
    }
    
    .category-name {
        font-size: 0.9rem;
    }
    
    .category-arrow {
        display: none;
    }
}

/* ===================== أقسام المنتجات حسب الفئات ===================== */
.category-products-section {
    position: relative;
    overflow: hidden;
}

.category-section-header {
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-200);
    margin-bottom: 1.5rem !important;
}

.category-section-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    border-radius: var(--radius-md);
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.25);
}

.category-section-title {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--gray-900);
}

.category-section-subtitle {
    font-size: 0.9rem;
    color: var(--gray-500);
}

.view-all-btn {
    padding: 0.6rem 1.25rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.view-all-btn:hover {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
    transform: translateX(-4px);
}

/* شريط المنتجات المتحرك */
.products-slider-wrapper {
    position: relative;
    padding: 0 50px;
}

.products-slider {
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 0;
}

.products-slider::-webkit-scrollbar {
    display: none;
}

.products-slider-track {
    display: flex;
    gap: 1rem;
}

.slider-product-card {
    flex: 0 0 280px;
    min-width: 280px;
}

/* أزرار التمرير */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: white;
    border: 1px solid var(--gray-200);
    color: var(--gray-700);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 10;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-md);
}

.slider-arrow:hover {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-lg);
}

.slider-arrow-right {
    right: 0;
}

.slider-arrow-left {
    left: 0;
}

/* استجابة الشاشات الصغيرة */
@media (max-width: 768px) {
    .products-slider-wrapper {
        padding: 0 40px;
    }
    
    .slider-product-card {
        flex: 0 0 250px;
        min-width: 250px;
    }
    
    .slider-arrow {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .category-section-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1rem;
    }
    
    .category-section-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
    
    .category-section-title {
        font-size: 1.25rem;
    }
    
    .view-all-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .products-slider-wrapper {
        padding: 0 35px;
    }
    
    .slider-product-card {
        flex: 0 0 220px;
        min-width: 220px;
    }
    
    .slider-arrow {
        width: 32px;
        height: 32px;
    }
}

/* ===================== Carousel احترافي ===================== */
.carousel {
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.carousel-inner {
    border-radius: var(--radius-xl);
}

.carousel-item .row {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: 2.5rem !important;
}

.carousel-item img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base);
}

.carousel-item:hover img {
    transform: scale(1.03);
}

.carousel-item h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.carousel-item .lead {
    color: var(--gray-600);
    font-size: 1.1rem;
    line-height: 1.7;
}

.carousel-control-prev, .carousel-control-next {
    width: 56px;
    height: 56px;
    background: white;
    border-radius: var(--radius-full);
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
}

.carousel-control-prev:hover, .carousel-control-next:hover {
    background: var(--primary-gradient);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev-icon, .carousel-control-next-icon {
    filter: invert(1) grayscale(100%) brightness(0.3);
    width: 1.25rem;
    height: 1.25rem;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    filter: none;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.carousel-indicators {
    bottom: -50px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    background: var(--gray-300);
    border: none;
    margin: 0 6px;
    transition: all var(--transition-fast);
}

.carousel-indicators button.active {
    background: var(--primary-gradient);
    width: 36px;
}

/* ===================== البحث الاحترافي ===================== */
#searchSuggestions {
    max-height: 350px;
    overflow-y: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-xl);
    padding: 0.5rem;
    background: white;
}

.search-suggestion-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    border-radius: var(--radius-sm);
    margin-bottom: 4px;
}

.search-suggestion-item:last-child {
    margin-bottom: 0;
}

.search-suggestion-item:hover {
    background: var(--gray-100);
    transform: translateX(-4px);
}

.search-suggestion-item img {
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-xs);
}

/* ===================== Footer احترافي ===================== */
.footer-section {
    background: linear-gradient(180deg, #1a1d23 0%, #0d0f12 100%);
    color: white;
    padding-top: 3rem;
    position: relative;
}

.footer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

/* عناوين الفوتر */
.footer-title {
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

/* روابط الفوتر */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    font-size: 0.95rem;
}

.footer-links a::before {
    content: '←';
    margin-left: 0.5rem;
    opacity: 0;
    transform: translateX(10px);
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: white;
    padding-right: 0.5rem;
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* معلومات الاتصال */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--gray-400);
}

.footer-contact li i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-rgb), 0.15);
    color: var(--primary-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    flex-shrink: 0;
}

.footer-contact li a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-contact li a:hover {
    color: white;
}

/* أيقونات التواصل الاجتماعي */
.social-icons {
    display: flex;
    gap: 0.5rem;
}

.social-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 1.15rem;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.social-icon:hover {
    background: var(--primary-gradient);
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.3);
}

/* أيقونات وسائل الدفع */
.payment-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.payment-icon {
    width: 60px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    color: var(--gray-400);
    font-size: 1.35rem;
    transition: all var(--transition-fast);
}

.payment-icon:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transform: translateY(-2px);
}

/* حقوق النشر */
.footer-copyright {
    background: rgba(0, 0, 0, 0.2);
    margin-top: 1rem;
}

/* ===================== Modal احترافي ===================== */
.modal-content {
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.modal-header {
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    padding: 1.25rem 1.5rem;
}

.modal-title {
    font-weight: 700;
    color: var(--gray-900);
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    padding: 1.25rem 1.5rem;
}

.modal-backdrop.show {
    opacity: 0.7;
}

/* ===================== قسم النشرة البريدية ===================== */
.bg-light {
    background: linear-gradient(180deg, white 0%, var(--gray-100) 100%) !important;
}

#newsletterForm .form-control {
    border-radius: var(--radius-full);
    border: 2px solid var(--gray-300);
    padding: 1rem 1.5rem;
    font-size: 1rem;
    transition: all var(--transition-fast);
}

#newsletterForm .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(26, 86, 219, 0.15);
}

#newsletterForm .btn {
    border-radius: var(--radius-full) !important;
}

/* ===================== عناوين الأقسام ===================== */
section h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

section > .container > .row:first-child p {
    color: var(--gray-500);
    font-size: 1.1rem;
}

/* فاصل زخرفي للعناوين */
section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-gradient);
    margin-top: 1rem;
    border-radius: var(--radius-full);
}

section h2.text-center::after {
    margin-left: auto;
    margin-right: auto;
}

/* ===================== زر تحميل المزيد ===================== */
#loadMoreBtn {
    padding: 1rem 3rem;
    font-size: 1.1rem;
    border-radius: var(--radius-full);
    border-width: 2px;
}

/* ===================== تحسينات الإشعارات ===================== */
.alert {
    border-radius: var(--radius-md);
    border: none;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
}

.alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.95) 0%, rgba(5, 150, 105, 0.95) 100%);
    color: white;
}

/* ===================== تحسينات الحركة ===================== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        transition: none !important;
        animation: none !important;
    }
}

/* ===================== التصميم المتجاوب ===================== */
@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    section h2 {
        font-size: 1.85rem;
    }
    
    :root {
        --spacing-section: 70px;
    }
    
    .navbar-search {
        width: 100%;
        order: 3;
        margin: 0.75rem 0 !important;
    }
    
    .navbar .navbar-nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.25rem;
    }
    
    .navbar .nav-link {
        padding: 0.4rem 0.6rem !important;
        font-size: 0.85rem;
    }
    
    .navbar .d-flex.align-items-center {
        width: 100%;
        justify-content: center;
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .hero-section {
        padding: 50px 0 !important;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .carousel-control-prev, .carousel-control-next {
        width: 44px;
        height: 44px;
    }
    
    .product-img {
        height: 180px;
    }
    
    .category-icon {
        width: 64px;
        height: 64px;
        font-size: 2rem;
    }
    
    section h2::after {
        width: 40px;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .product-img {
        height: 150px;
    }
    
    .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 1rem;
    }
    
    section h2 {
        font-size: 1.5rem;
    }
    
    .carousel-item .row {
        padding: 1.5rem !important;
    }
    
    .carousel-item h3 {
        font-size: 1.25rem;
    }
}