/* ================================================================
   1. DESIGN TOKENS & GLOBAL RESET (أساسيات التصميم)
   ================================================================ */
:root {
    /* Brand Colors - ألوان الهوية */
    --brand-primary: #F37021;
    --brand-secondary: #003B5C;
    --brand-dark: #0f172a;

    /* Backgrounds - الخلفيات */
    --bg-body: #f8fafc;
    --surface: #ffffff;

    /* Typography - النصوص */
    --text-main: #1e293b;
    --text-muted: #64748b;

    /* UI Elements - عناصر الواجهة */
    --border-color: #e2e8f0;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    /* Shadows - الظلال الاحترافية */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-premium: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 25px 50px -12px rgba(0, 59, 92, 0.25);

    /* Status Colors - حالات النظام */
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;

    /* Animations - الحركة */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--brand-secondary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--brand-primary);
}

body {
    font-family: 'Cairo', 'Poppins', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    direction: rtl;
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    width: 92%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    display: inline-block;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

/* Loading Spinner */
.page-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px;
    min-height: 200px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #eee;
    border-top-color: var(--brand-primary);
    border-radius: 50%;
    animation: spin 1s infinite cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* ================================================================
   2. HEADER & NAVIGATION (تعديلات الهيدر واللوجو)
   ================================================================ */
/* شريط التنبيهات العلوي */
.promo-alert {
    background: linear-gradient(90deg, #F37021, #FF4D4D);
    color: white;
    padding: 10px 0;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    position: relative;
    z-index: 1001;
}

.promo-alert span {
    background: rgba(255, 255, 255, 0.25);
    padding: 2px 12px;
    border-radius: 20px;
    margin: 0 8px;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 1px;
}

/* الهيدر الرئيسي */
.header-master {
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    will-change: transform; /* تحسين الأداء */
}

.header-master.is-scrolled {
    box-shadow: var(--shadow-sm);
}

.header-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 0;
}

/* === تعديل اللوجو === */
.logo-box {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-box img {
    height: 90px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--brand-secondary);
    letter-spacing: -1px;
    line-height: 1;
}

.logo-text span {
    color: var(--brand-primary);
}

/* محرك البحث */
.search-engine {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 20px;
}

.search-input {
    width: 100%;
    padding: 12px 25px;
    padding-left: 55px;
    background: #f1f5f9;
    border: 2px solid transparent;
    border-radius: 50px;
    font-size: 0.95rem;
    transition: var(--transition);
    color: var(--brand-dark);
}

.search-input:focus {
    background: #fff;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 4px rgba(243, 112, 33, 0.1);
}

.search-btn {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    background: var(--brand-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(243, 112, 33, 0.3);
}

.search-btn:hover {
    transform: translateY(-50%) scale(1.1);
}

/* أيقونات الإجراءات */
.action-tray {
    display: flex;
    gap: 12px;
}

.action-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-secondary);
    font-size: 1.1rem;
    position: relative;
    transition: var(--transition);
}

.action-circle:hover {
    background: var(--brand-secondary);
    color: #fff;
    border-color: var(--brand-secondary);
    transform: translateY(-3px);
}
/* تنسيقات منطقة أسفل القائمة الجانبية */
.mobile-nav-footer {
    padding: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: #ffffff;
    margin-top: auto; /* يضمن بقاء الزرار في أسفل القائمة دائماً */
}

/* الزرار نفسه */
.logout-btn-mobile {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #fef2f2; /* إطار خفيف جداً */
    background: #fff5f5; /* لون خلفية أحمر هادي جداً */
    color: #ef4444; /* لون النص الأحمر التحذيري */
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Cairo', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.05);
}

/* أيقونة تسجيل الخروج */
.logout-btn-mobile i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

/* تأثير عند مرور الماوس (أو الضغط في الموبايل) */
.logout-btn-mobile:hover {
    background: #ef4444; /* تحول اللون للأحمر الكامل */
    color: #ffffff;      /* تحول النص للأبيض */
    border-color: #ef4444;
    box-shadow: 0 10px 15px -3px rgba(239, 68, 68, 0.25);
    transform: translateY(-2px); /* حركة رفع بسيطة */
}

/* حركة الأيقونة عند الـ Hover */
.logout-btn-mobile:hover i {
    transform: translateX(-5px); /* الأيقونة بتتحرك لبره كأنها بتخرج فعلاً */
}

/* تأثير عند الضغط الفعلي (Active State) */
.logout-btn-mobile:active {
    transform: scale(0.97); /* تأثير تصغير بسيط يحسسك بالضغط */
}
.badge-marker {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--danger);
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* القائمة السفلية */
.mega-nav {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    display: block;
    position: relative;
}

.nav-links-wrap {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 15px 0;
}

.nav-links-wrap a {
    font-weight: 700;
    color: var(--text-muted);
    font-size: 1rem;
    position: relative;
    padding: 5px 0;
}

.nav-links-wrap a:hover,
.nav-links-wrap a.active {
    color: var(--brand-secondary);
}

.nav-links-wrap a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--brand-primary);
    transition: 0.3s ease;
    border-radius: 2px;
}

.nav-links-wrap a:hover::after,
.nav-links-wrap a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.8rem;
    color: var(--brand-secondary);
    cursor: pointer;
}

/* تغتيم الخلفية للموبايل */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

/* ================================================================
   3. HERO SECTION & BANNERS (تصميم البانر الاحترافي)
   ================================================================ */
/* [هام] تخصيص الستايلات للبانر الرئيسي فقط باستخدام كلاس mySwiper */
.mySwiper {
    width: 100%;
    height: 480px;
}

.mySwiper .swiper-slide {
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* التراكب اللوني (Overlay) يطبق فقط على السلايدر الرئيسي */
.mySwiper .swiper-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 59, 92, 0.85) 10%, rgba(15, 23, 42, 0.3) 100%);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 10;
    padding: 0 80px;
    max-width: 800px;
    color: #fff;
    opacity: 1 !important;
    transform: none !important;
}

.slide-content h1 {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 15px;
}

.slide-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 25px;
    max-width: 600px;
}

/* تنسيق نقاط التقليب في البانر */
.mySwiper .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.5;
    width: 10px;
    height: 10px;
}

.mySwiper .swiper-pagination-bullet-active {
    background: var(--brand-primary) !important;
    opacity: 1;
    width: 25px; /* شكل بيضاوي */
    border-radius: 5px;
}

/* الأزرار الاحترافية */
.btn-elite {
    background: var(--brand-primary);
    color: #fff;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(243, 112, 33, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.btn-elite:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 30px rgba(243, 112, 33, 0.5);
    background: #ff7e36;
}

.btn-elite.outline {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    box-shadow: none;
    backdrop-filter: blur(5px);
}

.btn-elite.outline:hover {
    background: #fff;
    color: var(--brand-secondary);
    border-color: #fff;
}

/* كروت الفئات (Categories) - تداخل مع الهيرو */
.main-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: -80px; 
    position: relative;
    z-index: 20;
    padding: 0 20px;
}

.cat-banner-card {
    height: 360px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: var(--shadow-premium);
    transition: var(--transition);
    background: #fff;
}

.cat-banner-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-hover);
}

.cat-banner-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.cat-banner-card:hover img {
    transform: scale(1.1);
}

.cat-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 59, 92, 0.95) 10%, rgba(0, 59, 92, 0.3) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 35px;
    color: #fff;
}

.cat-banner-overlay h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.cat-banner-overlay p {
    opacity: 0.9;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cat-banner-overlay i {
    background: rgba(255, 255, 255, 0.2);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* البانرات العريضة للأقسام */
.special-section {
    padding: 80px 0;
    background: var(--surface);
    position: relative;
}

.special-section:nth-of-type(odd) {
    background: #f1f5f9;
}

.wide-promo-banner {
    height: 450px;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-premium);
}

.wide-promo-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 59, 92, 0.95) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
}

.wide-banner-content {
    position: relative;
    z-index: 2;
    padding: 0 80px;
    max-width: 700px;
    color: #fff;
}

.wide-banner-content h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.wide-banner-content p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.6;
}
/* ================================================================
   4. PRODUCT CARDS (كروت المنتجات المتقدمة)
   ================================================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding-bottom: 20px;
}

.product-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(243, 112, 33, 0.3);
}

/* بادجات الكارت */
.product-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.badge {
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.new {
    background: var(--success);
}

.badge.discount {
    background: var(--danger);
}

.badge.hot {
    background: #ff9f43;
    color: #fff;
}

/* صورة المنتج */
.product-visual-box {
    height: 240px;
    padding: 0; /* إزالة البادينج لتأخذ الصورة المساحة كاملة */
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.product-visual-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(241, 245, 249, 1) 100%);
    z-index: 1;
}

.product-visual-box img {
    height: 100%; /* ارتفاع كامل */
    width: 100%; /* عرض كامل */
    object-fit: contain; /* الاحتفاظ بالنسبة مع ملء المساحة */
    padding: 10px; /* بادينج صغير جداً للصورة فقط */
    position: relative;
    z-index: 2;
    mix-blend-mode: multiply;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-card:hover .product-visual-box img {
    transform: scale(1.1) rotate(-2deg);
}

/* تفاصيل المنتج */
.product-content-box {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
}

.product-cat {
    font-size: 0.8rem;
    color: var(--brand-primary);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--brand-secondary);
    margin: 0 0 15px;
    line-height: 1.4;
    height: 48px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    cursor: pointer;
    transition: color 0.2s;
}

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

/* المواصفات */
.specs-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.spec-badge {
    background: #f1f5f9;
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid #e2e8f0;
}

/* الفوتر بتاع الكارت (السعر وزرار الإضافة) */
.price-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 15px;
    border-top: 2px dashed #f1f5f9;
}

.price-current {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--brand-secondary);
    line-height: 1;
}

.price-old {
    font-size: 0.9rem;
    color: #94a3b8;
    text-decoration: line-through;
    display: block;
    margin-top: 5px;
}

.add-cart-btn {
    width: 45px;
    height: 45px;
    background: var(--brand-secondary);
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 5px 15px rgba(0, 59, 92, 0.2);
}

.add-cart-btn:hover {
    background: var(--brand-primary);
    transform: translateY(-3px) rotate(90deg);
    box-shadow: 0 10px 20px rgba(243, 112, 33, 0.3);
}

/* ================================================================
   5. FOOTER & EXTRAS (الفوتر النظيف والاحترافي)
   ================================================================ */
.footer-elite {
    background: #fff;
    border-top: 6px solid var(--brand-primary);
    padding-top: 80px;
    margin-top: 70px;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 0.8fr 0.8fr 0.8fr 1.5fr;
    gap: 20px;
    align-items: start;
}

.footer-grid h2 {
    color: var(--brand-secondary);
    font-weight: 900;
    font-size: 2rem;
    margin-bottom: 20px;
}

.footer-grid h4 {
    color: var(--brand-secondary);
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.footer-grid h4::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--brand-primary);
    border-radius: 20px;
}

.footer-grid ul li {
    margin-bottom: 15px;
}

.footer-grid ul li a {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    padding-right: 0;
    transition: 0.3s;
}

.footer-grid ul li a:hover {
    color: var(--brand-primary);
    padding-right: 10px;
}

.footer-grid ul li a::before {
    content: '\f104';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 0;
    opacity: 0;
    transition: 0.3s;
    color: var(--brand-primary);
}

.footer-grid ul li a:hover::before {
    right: -15px;
    opacity: 1;
}

/* حاوية اللوجو والنص */
.footer-grid .logo-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    text-align: right !important;
    position: relative;
    overflow: hidden;
    margin-top: -50px;
    margin-bottom: -15px;
    width: 100%;
    padding: 10px 0;
    gap: 15px;
}

/* تنسيق صورة اللوجو */
.footer-grid .logo-box img {
    margin-right: 0 !important;
    margin-left: auto;
    display: block;
    height: 140px;
    width: auto;
    object-fit: contain;
    transition: 0.3s;
    transform: scale(1.1);
}

.footer-grid .logo-box::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.3) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-20deg);
}

.footer-grid .logo-box:hover::after {
    left: 150%;
    transition: 0.7s;
}

.logo-text-v2 {
    font-size: 1.6rem;
    font-weight: 900;
    color: #003B5C;
    margin-bottom: 5px;
    margin-right: 20px !important;
    text-align: right;
    margin-top: -10px !important;
    width: 100%;
}

.logo-text-v2 span {
    color: #FF6B00;
}

.footer-grid .logo-box+p {
    text-align: right !important;
    margin: 5px 0 0 !important;
    margin-top: -10px !important;
    font-size: 0.95rem;
    color: #666;
    max-width: 240px;
    line-height: 1.4;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    color: var(--text-main);
    font-weight: 700;
    font-size: 1rem;
    padding: 15px;
    background: #f8fafc;
    border-radius: 12px;
    transition: 0.3s;
    text-decoration: none;
    border: 1px solid transparent;
}

.contact-link:hover {
    background: #ffffff;
    color: var(--brand-primary);
    border-color: var(--brand-primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transform: translateY(-3px);
}

.contact-link i {
    font-size: 1.2rem;
    color: var(--brand-primary);
    transition: 0.3s;
}

.social-links {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 10px !important;
    margin-top: 10px !important;
    width: 100% !important;
    padding-right: 0px;
}

.social-links .action-circle {
    width: 38px !important;
    height: 38px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    background: #f8fafc !important;
    border-radius: 50% !important;
    border: 1px solid #e2e8f0 !important;
    color: #003B5C !important;
    text-decoration: none !important;
    transition: 0.3s ease;
}

.social-links .action-circle:hover {
    background: #FF6B00 !important;
    color: #fff !important;
    transform: translateY(-3px);
}

.footer-bottom {
    background: #fff;
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    color: var(--text-muted);
    font-size: .95rem;
    text-align: center;
    position: relative; /* لضمان التموضع الصحيح */
    z-index: 10;
}

/* تنسيق حاوية الفوتر السفلي لضمان التوسط في الموبايل */
.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom strong {
    color: var(--brand-secondary);
}

.footer-bottom a {
    background: linear-gradient(to right, #2962ff, #a517ba, #d500f9);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    text-decoration: none;
    border-bottom: 1px dotted #a517ba;
    padding-bottom: 2px;
    transition: 0.3s;
}

.footer-bottom a:hover {
    filter: brightness(1.2);
    border-color: #d500f9;
}

/* ================================================================
   6. SECTIONS STYLES (Reviews & Features)
   ================================================================ */

/* قسم المميزات */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 40px 0;
    margin-top: -80px;
    position: relative;
    z-index: 20;
}

.feature-card {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2rem;
    color: var(--brand-primary);
    margin-bottom: 15px;
}

/* === [تحديث] قسم آراء العملاء (Simple & Clean) === */
.reviews-section {
    background: #f8fafc;
    padding: 40px 0;
    overflow: hidden; 
}

/* تنسيق السلايدر */
.reviews-swiper {
    padding-bottom: 40px !important;
    width: 100%;
}

.reviews-swiper .swiper-slide {
    height: auto;
    display: flex;
    justify-content: center;
}

/* [هام] إزالة التراكب من سلايدر التقييمات */
.reviews-swiper .swiper-slide::after {
    display: none !important;
    content: none !important;
}

.reviews-swiper .swiper-pagination-bullet {
    background: #cbd5e1;
    opacity: 1;
    width: 8px;
    height: 8px;
    transition: 0.3s;
}

.reviews-swiper .swiper-pagination-bullet-active {
    background: var(--brand-primary) !important;
    width: 20px;
    border-radius: 4px;
}

.review-card {
    background: #fff; /* خلفية بيضاء نظيفة */
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e2e8f0; /* حدود خفيفة */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    text-align: center;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
    position: relative;
    z-index: 5;
}

.review-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    border-color: var(--brand-primary);
}

.review-card .stars {
    color: #FFC107;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.review-card p {
    font-size: 1rem !important;
    color: #475569 !important; /* لون رمادي داكن للنص */
    line-height: 1.6;
    margin-bottom: 15px;
    font-style: italic;
}

.review-card h5 {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: var(--brand-secondary);
    margin-top: 0 !important;
}

/* زر الواتساب العائم */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: 0.3s;
    cursor: pointer;
    text-decoration: none;
    will-change: transform; /* أداء أفضل للموبايل */
}

.floating-whatsapp:hover {
    transform: scale(1.1);
}

/* ================================================================
   7. RESPONSIVE & MEDIA QUERIES (التجاوب الكامل)
   ================================================================ */

/* ================================================================
   1. DESIGN TOKENS & GLOBAL RESET (أساسيات التصميم)
   ================================================================ */
:root {
    /* Brand Colors - ألوان الهوية */
    --brand-primary: #F37021;
    --brand-secondary: #003B5C;
    --brand-dark: #0f172a;

    /* Backgrounds - الخلفيات */
    --bg-body: #f8fafc;
    --surface: #ffffff;

    /* Typography - النصوص */
    --text-main: #1e293b;
    --text-muted: #64748b;

    /* UI Elements - عناصر الواجهة */
    --border-color: #e2e8f0;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    /* Shadows - الظلال الاحترافية */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-premium: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 25px 50px -12px rgba(0, 59, 92, 0.25);

    /* Status Colors - حالات النظام */
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;

    /* Animations - الحركة */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--brand-secondary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--brand-primary);
}

body {
    font-family: 'Cairo', 'Poppins', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    direction: rtl;
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    width: 92%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    display: inline-block;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

/* Loading Spinner */
.page-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px;
    min-height: 200px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #eee;
    border-top-color: var(--brand-primary);
    border-radius: 50%;
    animation: spin 1s infinite cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* ================================================================
   2. HEADER & NAVIGATION (تعديلات الهيدر واللوجو)
   ================================================================ */
/* شريط التنبيهات العلوي */
.promo-alert {
    background: linear-gradient(90deg, #F37021, #FF4D4D);
    color: white;
    padding: 10px 0;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    position: relative;
    z-index: 1001;
}

.promo-alert span {
    background: rgba(255, 255, 255, 0.25);
    padding: 2px 12px;
    border-radius: 20px;
    margin: 0 8px;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 1px;
}

/* الهيدر الرئيسي */
.header-master {
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    will-change: transform; /* تحسين الأداء */
}

.header-master.is-scrolled {
    box-shadow: var(--shadow-sm);
}

.header-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 0;
}

/* === تعديل اللوجو === */
.logo-box {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-box img {
    height: 90px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--brand-secondary);
    letter-spacing: -1px;
    line-height: 1;
}

.logo-text span {
    color: var(--brand-primary);
}

/* محرك البحث */
.search-engine {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 20px;
}

.search-input {
    width: 100%;
    padding: 12px 25px;
    padding-left: 55px;
    background: #f1f5f9;
    border: 2px solid transparent;
    border-radius: 50px;
    font-size: 0.95rem;
    transition: var(--transition);
    color: var(--brand-dark);
}

.search-input:focus {
    background: #fff;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 4px rgba(243, 112, 33, 0.1);
}

.search-btn {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    background: var(--brand-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(243, 112, 33, 0.3);
}

.search-btn:hover {
    transform: translateY(-50%) scale(1.1);
}

/* أيقونات الإجراءات */
.action-tray {
    display: flex;
    gap: 12px;
}

.action-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-secondary);
    font-size: 1.1rem;
    position: relative;
    transition: var(--transition);
}

.action-circle:hover {
    background: var(--brand-secondary);
    color: #fff;
    border-color: var(--brand-secondary);
    transform: translateY(-3px);
}
/* تنسيقات منطقة أسفل القائمة الجانبية */
.mobile-nav-footer {
    padding: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: #ffffff;
    margin-top: auto; /* يضمن بقاء الزرار في أسفل القائمة دائماً */
}

/* الزرار نفسه */
.logout-btn-mobile {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #fef2f2; /* إطار خفيف جداً */
    background: #fff5f5; /* لون خلفية أحمر هادي جداً */
    color: #ef4444; /* لون النص الأحمر التحذيري */
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Cairo', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.05);
}

/* أيقونة تسجيل الخروج */
.logout-btn-mobile i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

/* تأثير عند مرور الماوس (أو الضغط في الموبايل) */
.logout-btn-mobile:hover {
    background: #ef4444; /* تحول اللون للأحمر الكامل */
    color: #ffffff;      /* تحول النص للأبيض */
    border-color: #ef4444;
    box-shadow: 0 10px 15px -3px rgba(239, 68, 68, 0.25);
    transform: translateY(-2px); /* حركة رفع بسيطة */
}

/* حركة الأيقونة عند الـ Hover */
.logout-btn-mobile:hover i {
    transform: translateX(-5px); /* الأيقونة بتتحرك لبره كأنها بتخرج فعلاً */
}

/* تأثير عند الضغط الفعلي (Active State) */
.logout-btn-mobile:active {
    transform: scale(0.97); /* تأثير تصغير بسيط يحسسك بالضغط */
}
.badge-marker {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--danger);
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* القائمة السفلية */
.mega-nav {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    display: block;
    position: relative;
}

.nav-links-wrap {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 15px 0;
}

.nav-links-wrap a {
    font-weight: 700;
    color: var(--text-muted);
    font-size: 1rem;
    position: relative;
    padding: 5px 0;
}

.nav-links-wrap a:hover,
.nav-links-wrap a.active {
    color: var(--brand-secondary);
}

.nav-links-wrap a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--brand-primary);
    transition: 0.3s ease;
    border-radius: 2px;
}

.nav-links-wrap a:hover::after,
.nav-links-wrap a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.8rem;
    color: var(--brand-secondary);
    cursor: pointer;
}

/* تغتيم الخلفية للموبايل */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

/* ================================================================
   3. HERO SECTION & BANNERS (تصميم البانر الاحترافي)
   ================================================================ */
/* [هام] تخصيص الستايلات للبانر الرئيسي فقط باستخدام كلاس mySwiper */
.mySwiper {
    width: 100%;
    height: 480px;
}

.mySwiper .swiper-slide {
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* التراكب اللوني (Overlay) يطبق فقط على السلايدر الرئيسي */
.mySwiper .swiper-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 59, 92, 0.85) 10%, rgba(15, 23, 42, 0.3) 100%);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 10;
    padding: 0 80px;
    max-width: 800px;
    color: #fff;
    opacity: 1 !important;
    transform: none !important;
}

.slide-content h1 {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 15px;
}

.slide-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 25px;
    max-width: 600px;
}

/* تنسيق نقاط التقليب في البانر */
.mySwiper .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.5;
    width: 10px;
    height: 10px;
}

.mySwiper .swiper-pagination-bullet-active {
    background: var(--brand-primary) !important;
    opacity: 1;
    width: 25px; /* شكل بيضاوي */
    border-radius: 5px;
}

/* الأزرار الاحترافية */
.btn-elite {
    background: var(--brand-primary);
    color: #fff;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(243, 112, 33, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.btn-elite:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 30px rgba(243, 112, 33, 0.5);
    background: #ff7e36;
}

.btn-elite.outline {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    box-shadow: none;
    backdrop-filter: blur(5px);
}

.btn-elite.outline:hover {
    background: #fff;
    color: var(--brand-secondary);
    border-color: #fff;
}

/* كروت الفئات (Categories) - تداخل مع الهيرو */
.main-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: -80px; 
    position: relative;
    z-index: 20;
    padding: 0 20px;
}

.cat-banner-card {
    height: 360px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: var(--shadow-premium);
    transition: var(--transition);
    background: #fff;
}

.cat-banner-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-hover);
}

.cat-banner-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.cat-banner-card:hover img {
    transform: scale(1.1);
}

.cat-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 59, 92, 0.95) 10%, rgba(0, 59, 92, 0.3) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 35px;
    color: #fff;
}

.cat-banner-overlay h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.cat-banner-overlay p {
    opacity: 0.9;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cat-banner-overlay i {
    background: rgba(255, 255, 255, 0.2);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* البانرات العريضة للأقسام */
.special-section {
    padding: 80px 0;
    background: var(--surface);
    position: relative;
}

.special-section:nth-of-type(odd) {
    background: #f1f5f9;
}

.wide-promo-banner {
    height: 450px;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-premium);
}

.wide-promo-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 59, 92, 0.95) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
}

.wide-banner-content {
    position: relative;
    z-index: 2;
    padding: 0 80px;
    max-width: 700px;
    color: #fff;
}

.wide-banner-content h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.wide-banner-content p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.6;
}
/* ================================================================
   4. PRODUCT CARDS (كروت المنتجات المتقدمة)
   ================================================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding-bottom: 20px;
}

.product-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(243, 112, 33, 0.3);
}

/* بادجات الكارت */
.product-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.badge {
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.new {
    background: var(--success);
}

.badge.discount {
    background: var(--danger);
}

.badge.hot {
    background: #ff9f43;
    color: #fff;
}

/* صورة المنتج */
.product-visual-box {
    height: 240px;
    padding: 0; /* إزالة البادينج لتأخذ الصورة المساحة كاملة */
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.product-visual-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(241, 245, 249, 1) 100%);
    z-index: 1;
}

.product-visual-box img {
    height: 100%; /* ارتفاع كامل */
    width: 100%; /* عرض كامل */
    object-fit: contain; /* الاحتفاظ بالنسبة مع ملء المساحة */
    padding: 10px; /* بادينج صغير جداً للصورة فقط */
    position: relative;
    z-index: 2;
    mix-blend-mode: multiply;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-card:hover .product-visual-box img {
    transform: scale(1.1) rotate(-2deg);
}

/* تفاصيل المنتج */
.product-content-box {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
}

.product-cat {
    font-size: 0.8rem;
    color: var(--brand-primary);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--brand-secondary);
    margin: 0 0 15px;
    line-height: 1.4;
    height: 48px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    cursor: pointer;
    transition: color 0.2s;
}

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

/* المواصفات */
.specs-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.spec-badge {
    background: #f1f5f9;
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid #e2e8f0;
}

/* الفوتر بتاع الكارت (السعر وزرار الإضافة) */
.price-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 15px;
    border-top: 2px dashed #f1f5f9;
}

.price-current {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--brand-secondary);
    line-height: 1;
}

.price-old {
    font-size: 0.9rem;
    color: #94a3b8;
    text-decoration: line-through;
    display: block;
    margin-top: 5px;
}

.add-cart-btn {
    width: 45px;
    height: 45px;
    background: var(--brand-secondary);
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 5px 15px rgba(0, 59, 92, 0.2);
}

.add-cart-btn:hover {
    background: var(--brand-primary);
    transform: translateY(-3px) rotate(90deg);
    box-shadow: 0 10px 20px rgba(243, 112, 33, 0.3);
}

/* ================================================================
   5. FOOTER & EXTRAS (الفوتر النظيف والاحترافي)
   ================================================================ */
.footer-elite {
    background: #fff;
    border-top: 6px solid var(--brand-primary);
    padding-top: 80px;
    margin-top: 70px;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 0.8fr 0.8fr 0.8fr 1.5fr;
    gap: 20px;
    align-items: start;
}

.footer-grid h2 {
    color: var(--brand-secondary);
    font-weight: 900;
    font-size: 2rem;
    margin-bottom: 20px;
}

.footer-grid h4 {
    color: var(--brand-secondary);
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.footer-grid h4::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--brand-primary);
    border-radius: 20px;
}

.footer-grid ul li {
    margin-bottom: 15px;
}

.footer-grid ul li a {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    padding-right: 0;
    transition: 0.3s;
}

.footer-grid ul li a:hover {
    color: var(--brand-primary);
    padding-right: 10px;
}

.footer-grid ul li a::before {
    content: '\f104';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 0;
    opacity: 0;
    transition: 0.3s;
    color: var(--brand-primary);
}

.footer-grid ul li a:hover::before {
    right: -15px;
    opacity: 1;
}

/* حاوية اللوجو والنص */
.footer-grid .logo-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    text-align: right !important;
    position: relative;
    overflow: hidden;
    margin-top: -50px;
    margin-bottom: -15px;
    width: 100%;
    padding: 10px 0;
    gap: 15px;
}

/* تنسيق صورة اللوجو */
.footer-grid .logo-box img {
    margin-right: 0 !important;
    margin-left: auto;
    display: block;
    height: 140px;
    width: auto;
    object-fit: contain;
    transition: 0.3s;
    transform: scale(1.1);
}

.footer-grid .logo-box::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.3) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-20deg);
}

.footer-grid .logo-box:hover::after {
    left: 150%;
    transition: 0.7s;
}

.logo-text-v2 {
    font-size: 1.6rem;
    font-weight: 900;
    color: #003B5C;
    margin-bottom: 5px;
    margin-right: 20px !important;
    text-align: right;
    margin-top: -10px !important;
    width: 100%;
}

.logo-text-v2 span {
    color: #FF6B00;
}

.footer-grid .logo-box+p {
    text-align: right !important;
    margin: 5px 0 0 !important;
    margin-top: -10px !important;
    font-size: 0.95rem;
    color: #666;
    max-width: 240px;
    line-height: 1.4;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    color: var(--text-main);
    font-weight: 700;
    font-size: 1rem;
    padding: 15px;
    background: #f8fafc;
    border-radius: 12px;
    transition: 0.3s;
    text-decoration: none;
    border: 1px solid transparent;
}

.contact-link:hover {
    background: #ffffff;
    color: var(--brand-primary);
    border-color: var(--brand-primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transform: translateY(-3px);
}

.contact-link i {
    font-size: 1.2rem;
    color: var(--brand-primary);
    transition: 0.3s;
}

.social-links {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 10px !important;
    margin-top: 10px !important;
    width: 100% !important;
    padding-right: 0px;
}

.social-links .action-circle {
    width: 38px !important;
    height: 38px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    background: #f8fafc !important;
    border-radius: 50% !important;
    border: 1px solid #e2e8f0 !important;
    color: #003B5C !important;
    text-decoration: none !important;
    transition: 0.3s ease;
}

.social-links .action-circle:hover {
    background: #FF6B00 !important;
    color: #fff !important;
    transform: translateY(-3px);
}

.footer-bottom {
    background: #fff;
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    color: var(--text-muted);
    font-size: .95rem;
    text-align: center;
    position: relative; /* لضمان التموضع الصحيح */
    z-index: 10;
}

/* تنسيق حاوية الفوتر السفلي لضمان التوسط في الموبايل */
.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom strong {
    color: var(--brand-secondary);
}

.footer-bottom a {
    background: linear-gradient(to right, #2962ff, #a517ba, #d500f9);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    text-decoration: none;
    border-bottom: 1px dotted #a517ba;
    padding-bottom: 2px;
    transition: 0.3s;
}

.footer-bottom a:hover {
    filter: brightness(1.2);
    border-color: #d500f9;
}

/* ================================================================
   6. SECTIONS STYLES (Reviews & Features)
   ================================================================ */

/* قسم المميزات */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 40px 0;
    margin-top: -80px;
    position: relative;
    z-index: 20;
}

.feature-card {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2rem;
    color: var(--brand-primary);
    margin-bottom: 15px;
}

/* === [تحديث] قسم آراء العملاء (Simple & Clean) === */
.reviews-section {
    background: #f8fafc;
    padding: 40px 0;
    overflow: hidden; 
}

/* تنسيق السلايدر */
.reviews-swiper {
    padding-bottom: 40px !important;
    width: 100%;
}

.reviews-swiper .swiper-slide {
    height: auto;
    display: flex;
    justify-content: center;
}

/* [هام] إزالة التراكب من سلايدر التقييمات */
.reviews-swiper .swiper-slide::after {
    display: none !important;
    content: none !important;
}

.reviews-swiper .swiper-pagination-bullet {
    background: #cbd5e1;
    opacity: 1;
    width: 8px;
    height: 8px;
    transition: 0.3s;
}

.reviews-swiper .swiper-pagination-bullet-active {
    background: var(--brand-primary) !important;
    width: 20px;
    border-radius: 4px;
}

.review-card {
    background: #fff; /* خلفية بيضاء نظيفة */
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e2e8f0; /* حدود خفيفة */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    text-align: center;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
    position: relative;
    z-index: 5;
}

.review-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    border-color: var(--brand-primary);
}

.review-card .stars {
    color: #FFC107;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.review-card p {
    font-size: 1rem !important;
    color: #475569 !important; /* لون رمادي داكن للنص */
    line-height: 1.6;
    margin-bottom: 15px;
    font-style: italic;
}

.review-card h5 {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: var(--brand-secondary);
    margin-top: 0 !important;
}

/* زر الواتساب العائم */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: 0.3s;
    cursor: pointer;
    text-decoration: none;
    will-change: transform; /* أداء أفضل للموبايل */
}

.floating-whatsapp:hover {
    transform: scale(1.1);
}

/* ================================================================
   7. RESPONSIVE & MEDIA QUERIES (التجاوب الكامل)
   ================================================================ */

/* ============================================================
   1. أجهزة اللابتوب والشاشات الكبيرة (أقل من 1350px)
   ============================================================ */
@media (max-width: 1350px) {
    .container { width: 95%; max-width: 100%; }
    .main-categories-grid { gap: 20px; }
}

/* ============================================================
   2. إخفاء عناصر الموبايل في الكمبيوتر (أكبر من 1024px)
   ============================================================ */
@media (min-width: 1025px) {
    /* دمجنا أكواد الـ min-width 992 و min-width 1025 هنا */
    #mobileNav, 
    .mobile-nav-header, 
    .mobile-nav-footer, 
    .menu-overlay,
    .nav-content,
    .nav-section small,
    .mobile-only {
        display: none !important;
    }

    .mega-nav {
        background: #fff;
        border-bottom: 1px solid var(--border-color);
        display: block;
        position: relative;
    }

    .nav-links-wrap {
        display: flex; justify-content: center; gap: 40px;
        padding: 15px 0; list-style: none;
    }
}

/* ============================================================
   3. التابلت والقائمة الجانبية (أقل من 1024px) - دمج 3 بلوكات هنا
   ============================================================ */
@media (max-width: 1024px) {
    .header-grid { gap: 15px; }

    /* --- تنسيق القائمة الجانبية (Mega Nav) --- */
    .mega-nav {
        display: flex !important;
        flex-direction: column;
        position: fixed !important;
        top: 0; right: -320px;
        width: 300px !important;
        height: 100vh !important;
        height: 100dvh !important; /* لدعم iOS */
        background: #fff !important;
        z-index: 2000 !important;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow: hidden; /* منع السكرول الخارجي */
        will-change: right;
    }

    .mega-nav.active { right: 0 !important; }

    /* --- محتوى القائمة --- */
    .nav-content {
        flex: 1; overflow-y: auto; padding: 15px 0;
        -webkit-overflow-scrolling: touch;
    }

    .mobile-nav-header {
        display: flex; align-items: center; justify-content: space-between;
        padding: 20px; background: #f8fafc; border-bottom: 1px solid #e2e8f0;
    }
    .mobile-nav-header img { height: 35px; }

    .mobile-nav-footer {
        display: block; background: #fff;
        border-top: 1px solid #eee; margin-top: auto;
        padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
        z-index: 10;
    }

    /* --- روابط القائمة --- */
    .nav-section {
        padding: 0 20px 20px; border-bottom: 1px solid #f1f5f9; margin-bottom: 15px;
    }
    .nav-section small {
        display: block; color: var(--text-muted); font-size: 0.75rem;
        font-weight: 800; text-transform: uppercase; margin-bottom: 12px;
        letter-spacing: 1px;
    }

    .nav-links-wrap {
        display: flex; flex-direction: column; gap: 8px; padding: 0; list-style: none;
    }

    .nav-links-wrap li a {
        display: flex; align-items: center; gap: 12px;
        padding: 12px 15px; color: var(--text-main); font-weight: 600;
        border-radius: var(--radius-sm); font-size: 1rem; transition: 0.2s;
    }

    .nav-links-wrap li a i { color: var(--brand-primary); width: 20px; text-align: center; }
    .nav-links-wrap li a:hover, .nav-links-wrap li a.active {
        background: #f8fafc; color: var(--brand-primary); padding-right: 20px;
    }

    /* --- أزرار وأجزاء أخرى --- */
    .close-sidebar-btn {
        width: 35px; height: 35px; background: #fff; border: 1px solid #e2e8f0;
        border-radius: 50%; display: flex; align-items: center; justify-content: center;
        color: var(--danger); font-size: 1.1rem; transition: 0.3s;
    }
    .close-sidebar-btn:hover { background: var(--danger); color: #fff; transform: rotate(90deg); }

    .logout-btn-mobile {
        width: 100%; padding: 14px; background: #fff5f5; color: var(--danger);
        border: 2px solid #fee2e2; border-radius: var(--radius-md); font-weight: 700;
        display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer;
    }

    .mobile-menu-btn { display: flex; align-items: center; gap: 8px; font-size: 1.6rem; }
    .search-engine { display: none; }
    .hero-static { height: 60vh; max-height: 600px; min-height: 400px; }
    .main-categories-grid { grid-template-columns: repeat(2, 1fr); margin-top: -50px; }
    .wide-promo-banner { height: auto; flex-direction: column; text-align: center; padding: 40px 20px; }
    .wide-banner-content { padding: 0; margin-bottom: 30px; max-width: 100%; }
}

/* ============================================================
   4. الموبايل (أقل من 768px) - تم دمج 767px و 768px معاً
   ============================================================ */
@media (max-width: 768px) {
    .header-grid { padding: 10px 0; }
    .action-tray { display: none; }
    .logo-box img { height: 70px; }
    .logo-text { font-size: 1.5rem; }

    .hero-static { height: 450px; align-items: center; justify-content: center; text-align: center; }
    .hero-content { padding: 0 20px; max-width: 100%; }
    .hero-content h1 { font-size: 2rem; margin-bottom: 15px; }
    .hero-content p { display: block !important; font-size: 0.9rem; margin-bottom: 15px; line-height: 1.3; }
    .btn-elite { padding: 8px 20px; font-size: 0.9rem; }

    .main-categories-grid { grid-template-columns: 1fr; margin-top: 30px; gap: 20px; }
    .cat-banner-card { height: 220px; }
    .cat-banner-overlay h3 { font-size: 1.4rem; }

    .products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 15px; }
    .product-visual-box { height: 160px; padding: 15px; }
    .product-title { font-size: 0.9rem; height: 40px; }
    .price-current { font-size: 1.1rem; }
    .add-cart-btn { width: 35px; height: 35px; font-size: 1rem; }

    /* --- المميزات --- */
    .features-grid {
        display: flex; flex-wrap: nowrap; overflow-x: auto;
        justify-content: space-between; gap: 10px; margin-top: 15px;
        padding: 10px 5px; grid-template-columns: none;
    }
    .feature-card {
        background: transparent; box-shadow: none; padding: 5px; min-width: auto;
        flex: 1; display: flex; flex-direction: column; align-items: center;
        border: none; margin-bottom: 0;
    }
    .feature-icon {
        background: #fff; width: 55px; height: 55px; border-radius: 50%;
        display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.08); margin-bottom: 6px;
        color: var(--brand-primary); border: 1px solid #eee;
    }
    .feature-card h4 {
        font-size: 0.7rem; font-weight: 700; margin-bottom: 0;
        white-space: nowrap; color: var(--brand-secondary);
    }
    .feature-card p { display: none; }

    /* --- السلايدر --- */
    .mySwiper { height: 400px; position: relative; }
    .mySwiper .slide-content { padding: 0 15px 60px; text-align: center; margin: 0 auto; }
    .mySwiper .slide-content h1 { font-size: 1.6rem; margin-top: 0; }
    .mySwiper .swiper-slide { justify-content: center; }
    .mySwiper .swiper-pagination { bottom: 10px !important; }

    /* --- الفوتر --- */
    .footer-elite { padding: 40px 0 0; background: #fff; border-top: 5px solid var(--brand-primary); text-align: center; margin-top:30px;}
    .footer-grid { display: flex; flex-direction: column; align-items: center; gap: 40px; padding: 0 20px; }
    
    .footer-grid .logo-box { flex-direction: column; gap: 10px; margin: 0 auto !important; width: 100%;}
    .footer-grid .logo-box img { height: 110px; margin: 0 auto !important; }
    .logo-text-v2 { font-size: 1.6rem; margin: 0 !important; width: 100%;}
    .footer-grid p { max-width: 300px; margin: 10px auto 0; font-size: 0.95rem; }

    .footer-grid > div:not(:first-child):not(:last-child) { width: 100%; max-width: 320px; }
    .footer-grid h4 { font-size: 1.2rem; margin-bottom: 20px; position: relative; display: block; width: 100%; }
    .footer-grid h4::after { right: 50%; transform: translateX(50%); width: 35px; bottom: -10px; }
    
    .footer-grid ul { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; padding: 0; text-align: right; }
    .footer-grid ul li { margin-bottom: 0; padding-right: 15px; position: relative; }
    .footer-grid ul li a::before {
        content: '\f104'; font-family: "Font Awesome 6 Free"; font-weight: 900;
        position: absolute; right: 0; font-size: 0.8rem; color: var(--brand-primary);
        top: 50%; transform: translateY(-50%);
    }

    .footer-grid > div:last-child {
        width: 100%; background: #f8fafc; padding: 25px 20px;
        border-radius: 20px; display: flex; flex-direction: column; align-items: center; gap: 15px;
    }
    .contact-link {
        width: 100%; justify-content: flex-start; background: transparent; border: 1px solid #e2e8f0;
        padding: 5px; border-radius: 12px; font-size: 0.8rem; gap: 5px;
    }
    .social-links { display: flex; gap: 10px !important; justify-content: center !important; width: 100% !important; margin-top: 5px; }

    .footer-bottom { margin-top: 40px; padding: 20px 0; border-top: 1px solid #f1f5f9; }
    .footer-bottom .container { flex-direction: column; gap: 10px; align-items: center; justify-content: center !important; text-align: center !important; }
    .footer-bottom div { text-align: center !important; width: 100%; justify-content: center !important; }
    
    .wide-banner-content h2 { font-size: 1.8rem; }
    .floating-whatsapp { width: 50px; height: 50px; font-size: 1.5rem; bottom: 20px; left: 20px; }
}

/* ============================================================
   5. الموبايلات الصغيرة جداً (أقل من 400px)
   ============================================================ */
@media (max-width: 400px) {
    .products-grid { grid-template-columns: 1fr; }
    .cat-banner-card { height: 180px; }
    .hero-content h1 { font-size: 1.8rem; }
}

/* ============================================================
   6. أكواد عامة بدون Media Query (كود التنبيهات والأوفرلاي)
   ============================================================ */
.menu-overlay {
    position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5);
    z-index: 1999; display: none; backdrop-filter: blur(3px);
}
.menu-overlay.active { display: block; }

.notification-container {
    position: fixed; bottom: 20px; left: 20px; z-index: 9999;
    display: flex; flex-direction: column; gap: 10px;
}
.cart-alert {
    min-width: 250px; padding: 15px 20px; border-radius: 12px; color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex; justify-content: space-between; align-items: center;
    direction: rtl; box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    animation: slideIn 0.4s ease-out forwards;
}

.alert-success { background-color: #2ecc71; border-right: 5px solid #27ae60; }
.alert-error { background-color: #e74c3c; border-right: 5px solid #c0392b; }
.alert-warning { background-color: #f1c40f; border-right: 5px solid #f39c12; }
.close-alert { cursor: pointer; margin-right: 15px; font-weight: bold; }

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-100%); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeOut {
    to { opacity: 0; transform: translateY(20px); }
}