/* ========================================================
   تحديثات الهيدر والمينيو المودرن - براند آل ميرا السعودي 2026
   ======================================================== */

/* تعديل عام للخطوط والخلفية المودرن */
body {
    background-color: var(--white);
    color: var(--text-dark);
 }
 a:hover, a:focus {
    color: var(--green-primary); 
}

/* شريط الإعلانات العلوي */
.modern-announcement-bar {
    background-color: #613e76; 
    color: var(--white);
    padding: 5px 0;
    font-size: 11px;
    font-weight: 500;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* الهيدر الرئيسي الثابت */
.modern-header-fixed {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 500;
    padding: 8px 0;
    transition: all 0.3s ease;
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    direction: rtl;
}

/* شعار الموقع */
.header-right-logo #logo img {
    max-height: 48px;
    width: auto;
    object-fit: contain;
}

/* أزرار التفاعل (البحث، المفضلة، السلة، الحساب) */
.header-left-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.header-left-actions a {
    color: var(--text-dark);
    font-size: 18px;
    text-decoration: none;
    transition: color 0.25s ease;
}
.header-left-actions a:hover {
    color: var(--main-purple);
}

/* بادج سلة المشتريات المودرن */
.modern-cart-wrapper .badge, 
#cart-total-badge {
    background-color: var(--accent-mustard);
    color: var(--main-purple);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 50%;
    position: relative;
    top: -10px;
    right: -5px;
}

/* قائمة الديسكتوب النظيفة */
.header-center-menu .navbar-nav {
    display: flex !important;
    gap: 22px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.header-center-menu .navbar-nav > li > a {
    color: var(--text-dark) !important;
     font-size: 15px;
    padding: 8px 0;
    text-decoration: none;
    transition: color 0.25s ease;
}
.header-center-menu .navbar-nav > li > a:hover {
    color: var(--accent-mustard) !important;
}

/* قائمة المنسدلة والـ Mega Menu */
.all-categories-menu {
    display: block !important;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 130%;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 15px 45px rgba(0,0,0,0.07);
    border: 1px solid rgba(0,0,0,0.04);
    padding: 20px;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.all-categories-item:hover .all-categories-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-wrapper {
    width: 75vw;
    right: -100px;
}
.all-categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    list-style: none;
    padding: 0;
}
.category-title {
    font-weight: 600 !important;
    color: var(--main-purple) !important;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 6px;
    margin-bottom: 8px;
}

/* ========================================================
   شريط التنقل السفلي للموبايل (App UX) وقائمة الـ Drawer
   ======================================================== */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 -4px 25px rgba(0,0,0,0.04);
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    z-index: 99999;
    border-top: 1px solid rgba(0,0,0,0.04);
}
.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 500;
    text-decoration: none;
    gap: 3px;
}
.mobile-bottom-nav .nav-item i {
    font-size: 19px;
}
.mobile-bottom-nav .nav-item:hover,
.mobile-bottom-nav .nav-item.active {
    color: var(--main-purple);
}

/* القائمة الجانبية الموبايل (Drawer) */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 290px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -10px 0 40px rgba(0,0,0,0.08);
    z-index: 100000;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 24px;
}
.mobile-drawer.open {
    right: 0;
}
.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--main-purple);
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 12px;
    margin-bottom: 18px;
}
.close-drawer {
    background: none;
    border: none;
    font-size: 26px;
    color: #aaa;
    cursor: pointer;
}
/* منع السكرول العرضي تماماً */
html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    margin: 0;
    padding: 0;
}

/* حل مشكلة اختفاء المينيو وإجبارها على الظهور في الديسكتوب */
@media (min-width: 769px) {
    .spec-menu-show {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    .spec-menu-show #menu {
        display: block !important;
    }
}

/* تظبيط الـ Flexbox عشان ما يرحلش العناصر بره الشاشة */
.header-wrapper {
    max-width: 100%;
    box-sizing: border-box;
}
/* إجبار المينيو تظهر كـ Flex وتلغي الاستايل القديم */
.header-center-menu #menu {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.header-center-menu #menu .navbar-nav {
    display: flex !important;
    flex-direction: row !important;
    gap: 25px !important; /* المسافة بين الكلمات */
    justify-content: center !important;
    align-items: center !important;
    float: none !important;
    list-style: none !important;
}

 

/* تأثير الـ Hover */
.header-center-menu #menu .navbar-nav > li > a:hover {
    color: var(--accent-mustard) !important;
    background: none !important;
}

/* إلغاء أي سهم أو أيقونة مضافة تلقائياً مشوهة المظهر */
.header-center-menu #menu .navbar-nav > li > a i {
    display: none !important; 
}

/* تنسيق حاوية الأزرار اليسرى */
.header-left-actions {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important; /* المسافة بين كل أيقونة والثانية */
    justify-content: flex-start !important;
}

/* تنسيق موحد لجميع الأيقونات */
.header-left-actions a, 
.header-left-actions button,
.header-left-actions .modern-search-wrapper i {
    color: var(--text-dark) !important;
    font-size: 15px !important; /* حجم الأيقونات النظيف */
    text-decoration: none !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    cursor: pointer !important;
    transition: color 0.2s ease !important;
    box-shadow: none !important;
}

/* تأثير الـ Hover للأيقونات */
.header-left-actions a:hover, 
.header-left-actions button:hover {
    color: var(--main-purple) !important;
}

/* ضبط موديول السلة الافتراضي عشان يتماشى مع الـ Flex */
#cart, .modern-cart-wrapper {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
}
#cart button {
    display: flex !important;
    align-items: center !important;
}

/* بادج عدد المنتجات في السلة (الدائرة الصغيرة) */
#cart-total, .modern-cart-wrapper .badge {
    display:none !important;
}

/* تصفير الفلوت القديم لأوبن كارت */
#search, #cart, #wishlist-total {
    float: none !important;
}
.header-wrapper {
    display: flex !important;
    align-items: center !important; /* محاذاة سنتر عمودياً */
    justify-content: space-between !important;
    width: 100% !important;
    height: 70px !important; /* ارتفاع الهيدر النظيف */
}

/* الحفاظ على حجم اللوجو متناسق مع الارتفاع الجديد */
.header-right-logo #logo img {
    max-height:55px !important;
    width: auto !important;
	transition: all 0.3s ease;
}
  

/* إضافة الخطوط الفاصلة الشيك بين عناصر المينيو */
.header-center-menu .navbar-nav {
    display: flex !important;
    align-items: center;
    gap: 0 !important; /* تصغير الفراغ الافتراضي لاعتماد الـ Padding */
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-center-menu .navbar-nav > li {
    position: relative;
    padding: 0 5px; /* توزيع متساوي حول الفاصل */
}

/* رسم الخط الفاصل جهة اليمين لكل عنصر ما عدا العنصر الأول */
.header-center-menu .navbar-nav > li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0; /* يوضع على الحد الفاصل بين العناصر */
    transform: translateY(-50%);
    width: 1px;
    height: 14px; /* طول الخط الفاصل */
    background-color: rgba(0, 0, 0, 0.15); /* لون رمادي خفيف جداً وشيك */
} 
/* خط سفلي متحرك ناعم يظهر أثناء الـ Hover */
.header-center-menu .navbar-nav > li:hover > a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-mustard);
    transition: width 0.3s ease;
}

.header-center-menu .navbar-nav > li > a:hover::after {
    width: 100%;
}
/* إجبار الهيدر على الترتيب من اليمين لليسار */
.header-wrapper {
    display: flex !important;
    flex-direction: row !important; /* الترتيب الطبيعي حسب كود الـ HTML */
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
 

/* موازنة الأيقونات في اليسار */
.header-left-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}
  
.modern-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--text-dark) !important;
    font-size: 19px !important; /* حجم أيقونة مريح للعين */
    font-weight: 300 !important; /* جعل الخطوط أنحف ومودرن */
    text-decoration: none !important;
    border-radius: 50%;
    transition: all 0.25s ease;
}

/* تأثير ناعم عند الوقوف على الأيقونة */
.modern-icon-btn:hover {
    background-color: rgba(74, 21, 75, 0.05); /* خلفية خفيفة جداً بلون الموف */
    color: var(--main-purple) !important;
}

/* تنسيق قائمة الحساب المنسدلة لتكون مودرن */
.modern-dropdown-menu {
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08) !important;
    padding: 8px 0 !important;
    border: 1px solid rgba(0,0,0,0.03) !important;
    margin-top: 10px !important;
}
.modern-dropdown-menu li a {
    
    font-size: 13px !important;
    color: var(--text-dark) !important;
    padding: 10px 20px !important;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s ease;
}
.modern-dropdown-menu li a i {
    color: var(--text-muted);
    font-size: 14px;
}
.modern-dropdown-menu li a:hover {
    background-color: var(--light-bg) !important;
    color: var(--main-purple) !important;
}
/* ========================================================
   التنسيق النهائي والجذري للـ Mega Menu لمتجر آل ميرا
   ======================================================== */

/* 1. ضبط موضع الـ Mega Menu الرئيسي بالنسبة للهيدر */
#menu .navbar-nav > li.mega-dropdown {
    position: relative !important;
}

/* إجبار القائمة العريضة على الظهور بشكل متناسق في المنتصف */
@media (min-width: 769px) {
    #menu .mega-menu-wrapper {
        width: 750px !important; /* العرض المثالي للأعمدة بجانب بعضها */
        right: 50% !important;
        left: auto !important;
        transform: translateX(50%) !important; /* توسيط القائمة تماماً تحت الكلمة */
        background: #ffffff !important;
        border-radius: 16px !important;
        box-shadow: 0 20px 40px rgba(74, 21, 75, 0.08) !important;
        border: 1px solid rgba(0, 0, 0, 0.04) !important;
        padding: 24px !important;
        display: none;
    }
    
    /* إظهار القائمة بسلاسة عند الـ Hover */
    #menu .mega-dropdown:hover .mega-menu-wrapper {
        display: block !important;
        animation: menuFadeIn 0.25s ease-out;
    }

    /* 2. تحويل الشبكة (Grid) إلى أعمدة متساوية ونظيفة */
    .all-categories-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important; /* تقسيم الأقسام الرئيسية لـ 3 أعمدة */
        gap: 25px !important;
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* 3. تنسيق القسم الرئيسي (مثل: البشرة، الجسم، الشعر) */
    .all-categories-grid .main-category {
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* عنوان القسم الرئيسي الموف العريض */
    .all-categories-grid .main-category .category-title {
        
        font-weight: 700 !important;
        font-size: 15px !important;
        color: var(--main-purple) !important; /* لون البراند الموف */
        display: block !important;
        padding-bottom: 8px !important;
        border-bottom: 1.5px solid rgba(74, 21, 75, 0.08) !important; /* خط خفيف جداً تحت القسم */
        margin-bottom: 10px !important;
        text-decoration: none !important;
    }

    /* 4. تنسيق قائمة الأقسام الفرعية (مثل: تجميل تحت البشرة) */
    .all-categories-grid .sub-categories {
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .all-categories-grid .sub-categories .sub-category {
        margin-bottom: 6px !important;
    }

    .all-categories-grid .sub-categories .sub-category a {
        
        font-weight: 500 !important;
        font-size: 13.5px !important;
        color: var(--text-muted) !important; /* لون رمادي ناعم هادئ */
        text-decoration: none !important;
        display: block !important;
        padding: 4px 0 !important;
        transition: all 0.2s ease-in-out !important;
    }

    /* تأثير الـ Hover على القسم الفرعي */
    .all-categories-grid .sub-categories .sub-category a:hover {
        color: var(--accent-mustard) !important; /* يقلب مسطردة ذهبي عند الوقوف عليه */
        padding-right: 6px !important; /* إزاحة يمنية خفيفة تعطي شعور بالتفاعل */
    }
}

/* ========================================================
   تنسيق صندوق الدروب داون الصغير العادي (مثل المنتجات المصنعة)
   ======================================================== */
#menu .all-categories-menu:not(.mega-menu-wrapper) {
    min-width: 220px !important;
    right: 0 !important;
    left: auto !important;
}
#menu .all-categories-list .sub-category a {
    
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: var(--text-dark) !important;
    padding: 10px 12px !important;
    display: block !important;
    border-bottom: 1px solid #f9f9f9 !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
}
#menu .all-categories-list .sub-category:last-child a {
    border-bottom: none !important;
}
#menu .all-categories-list .sub-category a:hover {
    background-color: var(--light-bg) !important;
    color: var(--main-purple) !important;
}

/* أنيميشن الظهور السلس */
@keyframes menuFadeIn {
    from { opacity: 0; transform: translate(50%, 10px); }
    to { opacity: 1; transform: translate(50%, 0); }
}
/* ========================================================
   إخفاء الأقسام الفرعية وإظهارها بذكاء ونعومة عند الهوفر فقط
   ======================================================== */

@media (min-width: 769px) {
    /* 1. إخفاء قائمة الأقسام الفرعية في الوضع الطبيعي */
    .all-categories-grid .main-category .sub-categories {
        display: block !important; /* نثبته كبلوك لتفعيل الأنيميشن */
        opacity: 0 !important;
        visibility: hidden !important;
        max-height: 0 !important; /* جعل المساحة صفر عشان مياخدش حيز */
        overflow: hidden !important;
        padding-right: 10px !important; /* مسافة جمالية جهة اليمين */
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important; /* تأثير حركي ناعم */
    }

    /* 2. الإظهار السحري للأقسام الفرعية بمجرد الوقوف بالماوس على القسم الأب (مثل البشرة) */
    .all-categories-grid .main-category:hover .sub-categories {
        opacity: 1 !important;
        visibility: visible !important;
        max-height: 300px !important; /* فتح المساحة الرأسية لتسع العناصر */
        margin-top: 8px !important;
    }

    /* 3. إضافة سهم ناعم جداً جمب القسم الأب عشان العميل يعرف إن جواه أقسام */
    .all-categories-grid .main-category .category-title::after {
        content: "\f105"; /* سهم يشير لليسار في الـ RTL */
        font-family: "FontAwesome";
        font-size: 12px;
        display: inline-block;
        margin-right: 8px;
        color: var(--accent-mustard);
        transition: transform 0.25s ease;
    }

    /* دوران السهم لأسفل عند الهوفر ليعطي تجربة مستخدم (UX) ممتازة */
    .all-categories-grid .main-category:hover .category-title::after {
        transform: rotate(-90deg); /* تدوير السهم ليتجه لأسفل بشكل شيك */
    }
}
/* ========================================================
   التعديل النهائي والذري لحركة وأسهم الأقسام الفرعية
   ======================================================== */

@media (min-width: 769px) {
    /* 1. إخفاء الأقسام الفرعية وضبط ظهورها مباشرة أسفل الأب بدون فراغات زاوية */
    .all-categories-grid .main-category .sub-categories {
        display: none !important; /* الاعتماد على display لمنع التباعد الرأسي السيئ */
        opacity: 0;
        visibility: hidden;
        list-style: none !important;
        padding: 0 !important;
        padding-right: 15px !important; /* مسافة جمالية لداخل القسم الفرعي */
        margin: 5px 0 0 0 !important; /* تقليل الفراغ العلوي تماماً لتبدو ملتصقة ومتناسقة */
        transition: opacity 0.2s ease-in-out;
    }

    /* 2. الإظهار الفوري والأنيق عند الهوفر */
    .all-categories-grid .main-category:hover .sub-categories {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* 3. تصليح اتجاه السهم في الـ RTL (ليشير لليسار افتراضياً) */
    .all-categories-grid .main-category .category-title::after {
        content: "\f104" !important; /* كود السهم الأيسر المتوافق مع العربي ‹ */
        font-family: "FontAwesome" !important;
        font-size: 13px !important;
        display: inline-block !important;
        margin-right: 6px !important;
        color: var(--accent-mustard) !important;
        transition: transform 0.2s ease !important;
    }

    /* 4. تدوير السهم لأسفل بنعومة عند الهوفر ليعطي مظهر احترافي */
    .all-categories-grid .main-category:hover .category-title::after {
        transform: rotate(-90deg) !important; /* تدوير السهم ليتجه للأسفل بسلاسة */
        color: var(--main-purple) !important;
    }
    
    /* تنسيق إضافي لروابط الأقسام الفرعية لتبدو أرتب وأصغر قليلاً */
    .all-categories-grid .sub-categories .sub-category a {
        font-size: 13px !important;
        padding: 3px 0 !important;
        border: none !important; /* التأكد من عدم وجود خطوط قديمة مكسورة */
    }
}
/* ========================================================
   إعادة بناء وهيكلة الـ Mega Menu بالكامل لمتجر آل ميرا
   ======================================================== */

@media (min-width: 769px) {

    /* تنظيف وفرش الميجا منيو بعرض مناسب */
    #menu .mega-menu-wrapper {
        width: 800px !important;
        right: 50% !important;
        left: auto !important;
        transform: translateX(50%) !important;
        background: #ffffff !important;
        border-radius: 16px !important;
        box-shadow: 0 20px 40px rgba(74, 21, 75, 0.08) !important;
        padding: 24px !important;
        border: 1px solid rgba(0,0,0,0.04) !important;
    }

    /* إجبار شبكة الأقسام على التحول لـ 3 أعمدة نظيفة بجانب بعضها */
    .all-categories-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important; /* 3 أعمدة */
        gap: 30px !important;
        direction: rtl !important;
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* تصفير خواص الـ table-cell والـ float القديمة تماماً عن الأعمدة */
    .all-categories-grid .main-category {
        display: block !important;
        float: none !important;
        position: relative !important;
        text-align: right !important; /* محاذاة الكلام لليمين */
    }

    /* تنسيق القسم الرئيسي (الأب: البشرة، الجسم... إلخ) */
    .all-categories-grid .main-category .category-title {
        
        font-weight: 700 !important;
        font-size: 15px !important;
        color: var(--main-purple) !important;
        display: block !important;
        padding-bottom: 8px !important;
        border-bottom: 1.5px solid rgba(74, 21, 75, 0.08) !important;
        margin-bottom: 12px !important;
        text-decoration: none !important;
    }

    /* تنسيق حاوية الأقسام الفرعية (تجميل) وإجبارها تظهر كقائمة مرنة تحت الأب مباشرة */
    .all-categories-grid .sub-categories {
        display: flex !important;
        flex-direction: column !important; /* رص العناصر تحت بعضها طردياً */
        position: static !important; /* إلغاء الـ absolute القديم اللي بيرميها برة */
        opacity: 1 !important;
        visibility: visible !important;
        background: none !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        list-style: none !important;
    }

    /* تنسيق الرابط الفرعي نفسه (تجميل) */
    .all-categories-grid .sub-categories .sub-category {
        display: block !important;
        float: none !important;
        padding: 0 !important;
        margin-bottom: 8px !important;
    }

    .all-categories-grid .sub-categories .sub-category a {
        
        font-weight: 500 !important;
        font-size: 13.5px !important;
        color: var(--text-muted) !important;
        text-decoration: none !important;
        display: block !important;
        transition: all 0.2s ease !important;
    }

    /* حركة خفيفة وشيك عند الهوفر على القسم الفرعي */
    .all-categories-grid .sub-categories .sub-category a:hover {
        color: var(--accent-mustard) !important;
        padding-right: 5px !important; /* زقة خفيفة لليسار تدل على التفاعل */
    }
}
/* ========================================================
   إعادة بناء وهيكلة الـ Mega Menu بالكامل لمتجر آل ميرا
   ======================================================== */

@media (min-width: 769px) {
    
    /* تنظيف وفرش الميجا منيو بعرض مناسب */
    #menu .mega-menu-wrapper {
        width: 800px !important;
        right: 50% !important;
        left: auto !important;
        transform: translateX(50%) !important;
        background: #ffffff !important;
        border-radius: 16px !important;
        box-shadow: 0 20px 40px rgba(74, 21, 75, 0.08) !important;
        padding: 24px !important;
        border: 1px solid rgba(0,0,0,0.04) !important;
    }

    /* إجبار شبكة الأقسام على التحول لـ 3 أعمدة نظيفة بجانب بعضها */
    .all-categories-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important; /* 3 أعمدة */
        gap: 30px !important;
        direction: rtl !important;
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* تصفير خواص الـ table-cell والـ float القديمة تماماً عن الأعمدة */
    .all-categories-grid .main-category {
        display: block !important;
        float: none !important;
        position: relative !important;
        text-align: right !important; /* محاذاة الكلام لليمين */
    }

    /* تنسيق القسم الرئيسي (الأب: البشرة، الجسم... إلخ) */
    .all-categories-grid .main-category .category-title {
        
        font-weight: 700 !important;
        font-size: 15px !important;
        color: var(--main-purple) !important;
        display: block !important;
        padding-bottom: 8px !important;
        border-bottom: 1.5px solid rgba(74, 21, 75, 0.08) !important;
        margin-bottom: 12px !important;
        text-decoration: none !important;
    }

    /* تنسيق حاوية الأقسام الفرعية (تجميل) وإجبارها تظهر كقائمة مرنة تحت الأب مباشرة */
    .all-categories-grid .sub-categories {
        display: flex !important;
        flex-direction: column !important; /* رص العناصر تحت بعضها طردياً */
        position: static !important; /* إلغاء الـ absolute القديم اللي بيرميها برة */
        opacity: 1 !important;
        visibility: visible !important;
        background: none !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        list-style: none !important;
    }

    /* تنسيق الرابط الفرعي نفسه (تجميل) */
    .all-categories-grid .sub-categories .sub-category {
        display: block !important;
        float: none !important;
        padding: 0 !important;
        margin-bottom: 8px !important;
    }

    .all-categories-grid .sub-categories .sub-category a {
        
        font-weight: 500 !important;
        font-size: 13.5px !important;
        color: var(--text-muted) !important;
        text-decoration: none !important;
        display: block !important;
        transition: all 0.2s ease !important;
    }

    /* حركة خفيفة وشيك عند الهوفر على القسم الفرعي */
    .all-categories-grid .sub-categories .sub-category a:hover {
        color: var(--accent-mustard) !important;
        padding-right: 5px !important; /* زقة خفيفة لليسار تدل على التفاعل */
    }
}
 
/* ========================================================
   تنسيق الديسكتوب النهائي للميجا منيو - متجر آل ميرا (Desktop Only)
   ======================================================== */

@media (min-width: 992px) {
    
    /* 1. إجبار العناصر الأبوية للمينيو أن تكون نقطة ارتكاز ثابتة */
    #menu .navbar-nav > li {
        position: relative !important;
    }

    /* 2. حاوية الميجا منيو وتلاصقها مباشرة أسفل كلمة "جميع الأقسام" */
    #menu .mega-menu-wrapper {
        display: none; /* إخفاء افتراضي لمنع التداخل */
        position: absolute !important;
        top: 100% !important; /* الالتصاق بنهاية ارتفاع الهيدر مباشرة */
        margin-top: 4px !important; /* فراغ بسيط جداً وناعم */
        width: 820px !important; /* عرض مفرود للأعمدة */
        right: 50% !important;
        left: auto !important;
        transform: translateX(50%) !important; /* توسيط القائمة بالملي */
        background: #ffffff !important;
        border-radius: 16px !important;
        box-shadow: 0 20px 45px rgba(74, 21, 75, 0.08) !important;
        padding: 24px !important;
        border: 1px solid rgba(0, 0, 0, 0.04) !important;
        z-index: 99999 !important;
    }
    
    /* إظهار الميجا منيو بسلاسة تامة عند الهوفر */
    #menu .mega-dropdown:hover .mega-menu-wrapper {
        display: block !important;
    }

    /* موازنة وتلاصق القوائم المنسدلة العادية الأخرى (مثل المنتجات) */
    #menu .all-categories-menu:not(.mega-menu-wrapper) {
        top: 100% !important;
        margin-top: 4px !important;
        position: absolute !important;
        min-width: 220px !important;
        right: 0 !important;
        left: auto !important;
    }

    /* 3. إظهار وتلوين السهم (fa-angle-down) المختفي بجانب الكلمات الرئيسية */
    #menu .navbar-nav > li > a i.fa-angle-down {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        margin-right: 6px !important; /* مسافة جمالية بين الكلمة والسهم */
        color: var(--accent-mustard) !important; /* تلوين السهم باللون الذهبي/المسطردة ليظهر بوضوح */
        font-size: 14px !important;
        transition: transform 0.25s ease !important;
    }

    /* تأثير حركي ناعم للسهم عند الهوفر (يلف لفوق خفيف) */
    #menu .navbar-nav > li:hover > a i.fa-angle-down {
        transform: rotate(180deg) !important;
        color: var(--main-purple) !important; /* يقلب موف متناسق مع الهوفر */
    }

    /* 4. شبكة توزيع الأعمدة داخل الميجا منيو */
    .all-categories-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important; /* 3 أعمدة متساوية للديسك توب */
        gap: 30px !important;
        direction: rtl !important;
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* تصفير كامل لأي خواص قديمة موروثة قد تكسر المحاذاة */
    .all-categories-grid .main-category {
        display: block !important;
        float: none !important;
        position: relative !important;
        text-align: right !important;
    }

    /* 5. تنسيق القسم الرئيسي الأب (مثل: البشرة، الجسم) */
    .all-categories-grid .main-category .category-title {
        
        font-weight: 700 !important;
        font-size: 15px !important;
        color: var(--main-purple) !important; /* الموف الملكي للبراند */
        display: block !important;
        padding-bottom: 8px !important;
        border-bottom: 1.5px solid rgba(74, 21, 75, 0.08) !important;
        margin-bottom: 12px !important;
        text-decoration: none !important;
    }

    /* 6. تنسيق الأقسام الفرعية (مثل: تجميل) لتنزل مستقيمة تماماً تحت الأب */
    .all-categories-grid .sub-categories {
        display: flex !important;
        flex-direction: column !important; /* رص طولي متناسق */
        position: static !important; /* إلغاء الـ absolute القديم */
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
        background: none !important;
        box-shadow: none !important;
        border: none !important;
    }

    .all-categories-grid .sub-categories .sub-category {
        display: block !important;
        float: none !important;
        margin-bottom: 8px !important;
        padding: 0 !important;
    }

    .all-categories-grid .sub-categories .sub-category a {
        
        font-weight: 500 !important;
        font-size: 13.5px !important;
        color: var(--text-muted) !important; /* رمادي ناعم مريح للعين */
        text-decoration: none !important;
        display: block !important;
        padding: 2px 0 !important;
        transition: color 0.2s ease, padding-right 0.2s ease !important;
    }

    /* تأثير الـ Hover على الأقسام الفرعية */
    .all-categories-grid .sub-categories .sub-category a:hover {
        color: var(--accent-mustard) !important;
        padding-right: 5px !important; /* إزاحة طفيفة جداً لليمين تعطي مرونة للتصفح */
    }
}
/* ========================================================
   تنسيق الموبايل فقط (Mobile ONLY - Max width 991px)
   ======================================================== */

@media (max-width: 991px) {
    
    /* 1. جعل السلايدر يملأ الشاشة بالكامل على الموبايل فـقـط */
    .main-slider, 
    .main-slider .swiper-viewport, 
    .main-slider .swiper-container,
    .main-slider .swiper-slide {
        height: calc(100vh - 135px) !important;
        max-height: calc(100vh - 135px) !important;
    }

    .main-slider .swiper-slide img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
    }

    .swiper-pager {
        display: none !important;
    }

    /* 2. إخفاء زر الفلتر القديم المتشعلَق وتحويل الحاوية إلى منبثقة مودرن */
    .sidebarFilter > .filter-icon {
        display: none !important; /* إخفاء الكلمة والأيقونة الطايرة */
    }
    
    .sidebarFilter {
        position: static !important; /* إلغاء التثبيت القديم على اليسار */
    }

    /* تنسيق صندوق خيارات الفلتر عند فتحه بـ الـ JavaScript */
    .sidebarFilter .filterbox-wrapper {
        display: none; /* يكون مخفي في البداية ويفتح بالضغط */
        position: fixed !important;
        bottom: 65px !important; /* يفتح فوق شريط الأزرار السفلي مباشرة */
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-height: 85vh !important; /* أقصى طول له 70% من الشاشة عشان ميبقاش مغطي الشاشة كلها */
        overflow-y: auto !important; /* تفعيل السكرول الداخلي للفلاتر */
        background: #ffffff !important;
        z-index: 999998 !important;
        box-shadow: 0 -10px 30px rgba(0,0,0,0.15) !important;
        border-radius: 24px 24px 0 0 !important; /* انحناء شيك من الأعلى */
        padding: 20px !important;
    }

    /* 3. بناء وتنسيق شريط الموبايل السفلي المنحني */
    .modern-bottom-nav {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 65px !important;
        background: #ffffff !important;
        display: flex !important;
        justify-content: space-around !important;
        align-items: center !important;
        box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.08) !important;
        border-top: 1px solid rgba(0, 0, 0, 0.02) !important; 
        z-index: 999999 !important;
        padding-bottom: env(safe-area-inset-bottom) !important;
    }

    .bottom-nav-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        color: #8e8e93 !important;
        text-decoration: none !important;
        
        font-size: 11px !important;
        font-weight: 600 !important;
        width: 20% !important;
        height: 100% !important;
        transition: all 0.2s ease;
    }

    .bottom-nav-item i {
        font-size: 20px !important;
        margin-bottom: 4px !important;
    }

    .bottom-nav-item:hover,
    .bottom-nav-item.active {
        color: var(--green-primary, #398361) !important; /* متوافق مع كود الألوان الأخضر للموقع بتاج stylesheetnew1 */
    }

    .bottom-nav-item.whatsapp-nav-item i {
        color: #25D366 !important;
    }
    .bottom-nav-item.whatsapp-nav-item:hover span {
        color: #25D366 !important;
    }

    body {
        padding-bottom: 80px !important;
    }
}

/* ========================================================
   تأمين الديسكتوب (إلغاء التأثير تماماً على الشاشات الكبيرة)
   ======================================================== */
@media (min-width: 992px) {
    .main-slider, 
    .main-slider .swiper-viewport, 
    .main-slider .swiper-container,
    .main-slider .swiper-slide {
        height: auto !important;
        max-height: none !important;
    }
    .main-slider .swiper-slide img {
        object-fit: fill !important;
    }
    
}
/* ========================================================
   تنسيق الموبايل فقط (Mobile ONLY - Max width 991px)
   ======================================================== */

@media (max-width: 991px) {
    
    /* 1. جعل السلايدر يملأ الشاشة بالكامل على الموبايل فـقـط */
    .main-slider, 
    .main-slider .swiper-viewport, 
    .main-slider .swiper-container,
    .main-slider .swiper-slide {
        height: calc(100vh - 135px) !important;
        max-height: calc(100vh - 135px) !important;
    }

    .main-slider .swiper-slide img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
    }

    .swiper-pager {
        display: none !important;
    }

    /* 2. إخفاء زر الفلتر القديم المتشعلَق تماماً */
    .sidebarFilter > .filter-icon {
        display: none !important; 
    }
    
    .sidebarFilter {
        position: static !important; 
    }

    /* إجبار الفلتر والـ Form على الإخفاء التام عند فتح الموقع */
    .sidebarFilter .filterbox-wrapper,
    .filterbox-wrapper {
        display: none !important; /* !important هنا عشان نلغي أي أمر ظهور جاي من ملفات تانية */
        position: fixed !important;
        bottom: 65px !important; /* يفتح فوق شريط الأزرار السفلي مباشرة */
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-height:85vh !important; 
        overflow-y: auto !important; 
        background: #ffffff !important;
        z-index: 999998 !important;
        box-shadow: 0 -10px 30px rgba(0,0,0,0.15) !important;
        border-radius: 24px 24px 0 0 !important; 
        padding: 20px !important;
    }

    /* 3. بناء وتنسيق شريط الموبايل السفلي المنحني */
    .modern-bottom-nav {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 65px !important;
        background: #ffffff !important;
        display: flex !important;
        justify-content: space-around !important;
        align-items: center !important;
        box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.08) !important;
        border-top: 1px solid rgba(0, 0, 0, 0.02) !important; 
        z-index: 999999 !important;
        padding-bottom: env(safe-area-inset-bottom) !important;
    }

    .bottom-nav-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        color: #8e8e93 !important;
        text-decoration: none !important;
        
        font-size: 11px !important;
        font-weight: 600 !important;
        width: 20% !important;
        height: 100% !important;
        transition: all 0.2s ease;
    }

    .bottom-nav-item i {
        font-size: 20px !important;
        margin-bottom: 4px !important;
    }

    .bottom-nav-item:hover,
    .bottom-nav-item.active {
        color: var(--green-primary, #398361) !important; 
    }

    .bottom-nav-item.whatsapp-nav-item i {
        color: #25D366 !important;
    }
    .bottom-nav-item.whatsapp-nav-item:hover span {
        color: #25D366 !important;
    }

    body {
        padding-bottom: 80px !important;
    }
}
 /* ========================================================
   تنسيق الموبايل فقط (Mobile ONLY - Max width 991px)
   ======================================================== */

@media (max-width: 991px) {
    
    /* 1. جعل السلايدر يملأ الشاشة بالكامل على الموبايل فـقـط */
    .main-slider, 
    .main-slider .swiper-viewport, 
    .main-slider .swiper-container,
    .main-slider .swiper-slide {
        height: calc(100vh - 135px) !important;
        max-height: calc(100vh - 135px) !important;
    }

    .main-slider .swiper-slide img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
    }

    .swiper-pager {
        display: none !important;
    }

     .sidebarFilter > .filter-icon {
        display: none !important; 
    }
    
    .sidebarFilter {
        position: static !important; 
    }

     .sidebarFilter .filterbox-wrapper,
    .filterbox-wrapper {
        display: none !important;  
        position: fixed !important;
        bottom: 65px !important;  
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-height: 85vh !important; 
        overflow-y: auto !important; 
        background: #ffffff !important;
        z-index: 999998 !important;
        box-shadow: 0 -10px 30px rgba(0,0,0,0.15) !important;
        border-radius: 24px 24px 0 0 !important; 
        padding: 20px !important;
    }

    /* 3. بناء وتنسيق شريط الموبايل السفلي المنحني */
    .modern-bottom-nav {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 65px !important;
        background: #ffffff !important;
        display: flex !important;
        justify-content: space-around !important;
        align-items: center !important;
        box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.08) !important;
        border-top: 1px solid rgba(0, 0, 0, 0.02) !important; 
        z-index: 999999 !important;
        padding-bottom: env(safe-area-inset-bottom) !important;
    }

    .bottom-nav-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        color: #8e8e93 !important;
        text-decoration: none !important;
        
        font-size: 11px !important;
        font-weight: 600 !important;
        width: 20% !important;
        height: 100% !important;
        transition: all 0.2s ease;
    }

    .bottom-nav-item i {
        font-size: 20px !important;
        margin-bottom: 4px !important;
    }

    .bottom-nav-item:hover,
    .bottom-nav-item.active {
        color: var(--green-primary, #398361) !important; 
    }

    .bottom-nav-item.whatsapp-nav-item i {
        color: #25D366 !important;
    }
    .bottom-nav-item.whatsapp-nav-item:hover span {
        color: #25D366 !important;
    }

    body {
        padding-bottom: 80px !important;
    }
}

/* ========================================================
   تأمين الديسكتوب (إلغاء التأثير تماماً على الشاشات الكبيرة)
   ======================================================== */
@media (min-width: 992px) {
    .main-slider, 
    .main-slider .swiper-viewport, 
    .main-slider .swiper-container,
    .main-slider .swiper-slide {
        height: auto !important;
        max-height: none !important;
    }
    .main-slider .swiper-slide img {
        object-fit: fill !important;
    }
    .sidebarFilter .filterbox-wrapper,
    .filterbox-wrapper {
        display: block !important; /* يظل ظاهر كقائمة جانبية عادية في الديسكتوب */
    }
}

@media (max-width: 991px) {
  

    /* 2. إخفاء النص الطويل داخل الزرار على الموبايل تماماً */
    #notify span, 
    button[data-target="#stockNotifyModal"] span {
        display: none !important;
    }

    /* 3. تكبير حجم أيقونة الجرس لتكون واضحة للضغط */
    #notify i, 
    button[data-target="#stockNotifyModal"] i {
        font-size: 16px !important;
        margin: 0 !important; /* إلغاء المسافات الجانبية */
    }
}
/* ========================================================
   تنسيق بلوك الماركات المودرن والـ Elegant (Al-Mira Style)
   ======================================================== */
.manufacturers-slider-golden  {
         margin-bottom: 70px; 
}
/* 1. العنوان الرئيسي للبلوك */
.manufacturers-slider-golden .slider-header {
    text-align: center !important;
    margin-bottom: 25px !important;
}

.manufacturers-slider-golden .slider-title {
    
    font-size: 20px !important;
    font-weight: 700 !important;
    color: var(--green-primary) !important; /* اللون الموف الأساسي */
    margin-bottom: 8px !important;
}

.manufacturers-slider-golden .slider-title i {
    color: var(--green-secondary) !important; /* أيقونة التاج بالمسطردة الذهبي */
    margin-left: 6px !important;
}

/* خط ديكوري ناعم تحت العنوان */
.manufacturers-slider-golden .title-line {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
}
.manufacturers-slider-golden .line-part {
    width: 40px !important;
    height: 1px !important;
    background: #eebd32 !important;
}
.manufacturers-slider-golden .gold-dot {
    color: var(--green-secondary) !important;
    font-size: 8px !important;
}

/* 2. تنسيق كروت اللوغوهات (جعلها دائرية وناعمة) */
.manufacturers-slider-golden .brand-card {
    background: #ffffff !important;
    border: 1px solid #f3eff6 !important; /* حدود بنفسجية خفيفة جداً */
    border-radius: 50% !important; /* تحويل الكارت لشكل دائرى Elegant */
    aspect-ratio: 1 / 1 !important; /* ضمان القطر المتساوي */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 15px !important;
    box-shadow: 0 4px 15px rgba(74, 34, 93, 0.04) !important; /* ظل موف ناعم */
    transition: all 0.3s ease-in-out !important;
}

.manufacturers-slider-golden .brand-card:hover {
    transform: translateY(-4px) !important;
    border-color: var(--green-secondary) !important; /* الهوفر يقلب مسطردة */
    box-shadow: 0 8px 25px rgba(225, 173, 1, 0.12) !important;
}

/* ضبط الصورة داخل الدائرة */
.manufacturers-slider-golden .brand-img {
    max-width: 85% !important;
    max-height: 145px !important;
    object-fit: contain !important;
    filter: grayscale(0%) !important; /* الحفاظ على ألوان اللوجو الطبيعية */
    transition: all 0.3s ease !important;
}

/* ========================================================
   لمسات الموبايل الخاصة ببلوك الماركات (Max width 991px)
   ======================================================== */
@media (max-width: 991px) {
    .manufacturers-slider-golden {
        padding: 10px 5px !important;
    }
    
    /* إخفاء الأسهم تماماً على الموبايل لتوفير المساحة */
    .manufacturers-slider-golden .swiper-button-next,
    .manufacturers-slider-golden .swiper-button-prev,
    .manufacturers-slider-golden .swiper-pager {
        display: none !important;
    }
    
    /* تصغير حجم كروت اللوجو قليلاً في الموبايل لتناسب الصف */
    .manufacturers-slider-golden .brand-card {
        padding: 10px !important;
        margin: 5px auto !important;
        max-width: 120px !important; /* حجم مثالي جداً للـ 2 Column */
    }

    .manufacturers-slider-golden .slider-title {
        font-size: 18px !important;
    }
}
/* ========================================================
   تنسيق سكشن الفيديو وآراء العملاء المودرن (Al-Mira Luxury Style)
   ======================================================== */

/* 1. تنسيق الحاوية الرئيسية للقسمين لضمان المحاذاة الشغل الشيك */
#czvideocmsblock, #cztestimonialcmsblock {
    display: inline-block;
    width: 50%;
    float: right;
    padding: 15px;
    box-sizing: border-box;
}

/* تنظيف العوامات بعد البلوكين */
#cztestimonialcmsblock::after {
    content: "";
    display: table;
    clear: both;
}

/* 2. تجميل بلوك الفيديو */
.video-cms-block .cms-banner-inner {
    position: relative !important;
    border-radius: 20px !important; /* زوايا منحنية شيك */
    overflow: hidden !important;
    box-shadow: 0 10px 30px rgba(74, 34, 93, 0.06) !important;
    aspect-ratio: 16 / 9 !important; /* الحفاظ على أبعاد الفيديو */
}

.video-cms-block video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* تحويل كلمة play التقليدية لزر تشغيل زجاجي فخم (Glassmorphism) */
.video-cms-block .link-text.video {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 65px !important;
    height: 65px !important;
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(4px) !important;
    border-radius: 50% !important;
    text-indent: -9999px !important; /* إخفاء كلمة play */
    box-shadow: 0 4px 20px rgba(74, 34, 93, 0.2) !important;
    transition: all 0.3s ease-in-out !important;
}

/* رسم مثلث الـ Play الأنيق بالـ CSS باللون الموف */
.video-cms-block .link-text.video::after {
    content: "" !important;
    position: absolute !important;
    top: 50% !important;
    left: 55% !important;
    transform: translate(-50%, -50%) !important;
    border-style: solid !important;
    border-width: 10px 0 10px 16px !important;
    border-color: transparent transparent transparent var(--green-primary) !important;
}

.video-cms-block .link-text.video:hover {
    transform: translate(-50%, -50%) scale(1.1) !important;
    background: #ffffff !important;
    box-shadow: 0 4px 25px rgba(225, 173, 1, 0.4) !important;
}

/* 3. تجميل بلوك آراء العملاء وإلغاء البرواز القديم */
.testimonial_container {
    width: 100% !important;
    padding: 0 !important;
}
 
/* الكارت الأبيض الداخلي لرأي العميل */
.testimonial-item {
    background: #ffffff !important;
    border: 1px solid #f3eff6 !important; /* إطار ناعم جداً بديل الذهبي العريض */
    border-radius: 20px !important;
    padding: 35px 25px !important;
    text-align: center !important;
    box-shadow: 0 10px 30px rgba(74, 34, 93, 0.04) !important;
    min-height: 220px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.product_inner_cms {
    width: 100% !important;
}

/* تجميل علامة الاقتباس المزدوجة لجعلها رقيقة بلون مسطردة هادئ */
.quote_img {
    background: none !important; /* إلغاء الصورة القديمة إن وجدت */
    
}

.product_inner_cms::before {
    content: "“" !important;
    font-size: 70px !important;
    line-height: 20px !important;
    color: var(--green-secondary) !important; /* لون المسطردة */
    display: block !important;
    font-family: serif !important;
    margin-bottom: 15px !important;
}

/* نص الرأي المكتوب */
.product_inner_cms .des {
    
    font-size: 14px !important;
    color: #555555 !important;
    line-height: 1.6 !important;
    margin-bottom: 20px !important;
    font-style: normal !important;
}

/* خط فاصل صغير جداً بين الرأي واسم العميل */
.product_inner_cms .title {
    position: relative !important;
    padding-top: 10px !important;
}
.product_inner_cms .title::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 30px !important;
    height: 1px !important;
    background: #eebd32 !important;
}

/* اسم العميل */
.product_inner_cms .name a {
    
    font-size: 14px !important;
    font-weight: 700 !important;
    color: var(--green-primary) !important; /* موف براند */
    text-decoration: none !important;
}

/* اسم المنتج اللي اشترى العميل */
.product_inner_cms .subheading {
    display: block !important;
    
    font-size: 11px !important;
    color: #999999 !important;
    margin-top: 4px !important;
}

/* 4. تنظيف وتجميل نقاط التنقل (Pagination Dots) */
.owl-theme .owl-controls .owl-page span {
    background: #dcd6e2 !important; /* لون نقاط رمادي موف هادئ */
    opacity: 1 !important;
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
}

.owl-theme .owl-controls .owl-page.active span {
    background: var(--green-primary) !important; /* النقطة النشطة تقلب موف */
    width: 20px !important; /* تأثير مطاطي أنيق وعصري */
    border-radius: 4px !important;
}

/* ========================================================
   تجاوب الموبايل (تحت بعض بمسافات متناسقة)
   ======================================================== */
@media (max-width: 991px) {
    #czvideocmsblock, #cztestimonialcmsblock {
        width: 100% !important; /* النزول تحت بعض */
        float: none !important;
        padding: 10px 0 !important;
    }
    
    .video-cms-block .cms-banner-inner {
        margin-bottom: 10px !important;
    }
    
    .testimonial-item {
        padding: 25px 15px !important;
        min-height: 180px !important;
    }
} 
/* ===========================================================
   تنسيق فوتر آل ميرا الفاخر (موف × ذهبي)
   =========================================================== */

footer {
    background-color: #49225c; /* لون الموف الأساسي */
    /* نقشة الخلايا الهندسية (كما في الصورة التي أرسلتها) */
    background-image: url('https://www.transparenttextures.com/patterns/black-scales.png');
    background-blend-mode: overlay;
    padding-top: 60px !important;
    position: relative;
    overflow: hidden;
}

/* الفاصل الذهبي العلوي */
.footer-top-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #C9A84C; /* لون المسطردة/الذهبي */
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.3);
}

/* ----- تنسيق العمود 1 (اللوجو والتواصل) ----- */
.footer-brand-wrapper {
    margin-bottom: 30px;
}
.footer-logo img {
    max-width: 180px;
    margin-bottom: 25px;
    filter: brightness(0) invert(1); /* يجعل اللوجو أبيضاً إذا لم يكن كذلك */
}
.footer-contact-list {
    margin-bottom: 20px;
}
.footer-contact-list .contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.8); 
    font-size: 14px;
}
.footer-contact-list .contact-item i {
    color: #C9A84C; /* أيقونات ذهبية */
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* أيقونات السوشيال ميديا */
.footer-social-icons {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}
.footer-social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: all 0.3s ease;
    font-size: 16px;
}
.footer-social-icons a:hover {
    background: #C9A84C;
    border-color: #C9A84C;
    color: #49225c;
    transform: translateY(-3px);
}

/* ----- تنسيق العناوين والروابط ----- */
footer h5 {
    
    color: #C9A84C; /* عناوين ذهبية */
    font-size: 16px !important;
    font-weight: 700 !important;
    margin-bottom: 22px !important;
    position: relative;
}
footer h5::after {
    content: "";
    position: absolute;
    bottom: -8px;
    right: 0; /* لأن التصميم RTL */
    width: 30px;
    height: 2px;
    background: #C9A84C;
    border-radius: 2px;
}

footer ul {
    padding: 0;
    list-style: none;
}
footer ul li {
    margin-bottom: 10px;
}
footer ul li a {
    
    color:#fff !important;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}
footer ul li a:hover {
    color: #C9A84C !important;
    transform: translateX(-4px);
}

/* ----- تنسيق العمود 3 (النشرة البريدية) ----- */
.footer-newsletter-wrapper h5 {
    text-align: right;
}
.footer-newsletter-wrapper .newsletter-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    margin-bottom: 20px; 
}

/* تعديل صندوق الإيميل (لأننا لفه داخل حاوية) */
.footer-newsletter-form-wrap input[type="text"], 
.footer-newsletter-form-wrap input[type="email"] {
    width: 100% !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 50px !important;
    padding: 12px 20px !important;
    color: #ffffff !important;
    font-size: 13px !important;
    height: 45px !important;
    margin-bottom: 15px !important;
}
.footer-newsletter-form-wrap input:focus {
    border-color: #C9A84C !important;
    background: rgba(255, 255, 255, 0.1) !important;
    outline: none !important;
}

/* زر إرسال النشرة البريدية (لونه ذهبي) */
.footer-newsletter-form-wrap .btn-primary,
.footer-newsletter-form-wrap button {
    background: #C9A84C !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 12px 25px !important;
    color: #49225c !important;
    font-weight: 700 !important;
    
    width: 100% !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}
.footer-newsletter-form-wrap .btn-primary:hover {
    background: #fff !important;
    color: #49225c !important;
    transform: translateY(-2px);
}

/* ----- الشريط السفلي (الحقوق) ----- */
#bottom-footer.bottomfooter {
    background: rgba(0, 0, 0, 0.25) !important;
    margin-top: 40px !important;
    padding: 20px 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}
#bottom-footer .footer-copyright {
    text-align: center !important;
}
#bottom-footer #powered {
    
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 13px !important;
    margin: 0 !important;
    letter-spacing: 1px;
}

/* ===========================================================
   الأزرار العائمة: واتساب + زر الأعلى
   =========================================================== */

/* زر واتساب جديد بتصميم أنيق */
.whatsapp-float-btn {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    z-index: 99999 !important;
    width: 55px !important;
    height: 55px !important;
    background: #25D366 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.whatsapp-float-btn:hover {
    transform: scale(1.08) !important;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4) !important;
}
.whatsapp-float-btn .fa {
    color: #fff !important;
    font-size: 30px !important;
}

/* زر العودة للأعلى */
.top_button {
    position: fixed !important;
    bottom: 30px !important;
    left: 30px !important;
    z-index: 99999 !important;
    width: 45px !important; height: 45px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(6px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 50% !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    cursor: pointer !important; transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
}
.top_button::after {
    content: "" !important;
    width: 10px !important; height: 10px !important;
    border-top: 2px solid #C9A84C !important;
    border-left: 2px solid #C9A84C !important;
    transform: rotate(45deg) !important;
    margin-top: 4px !important;
}
.top_button:hover {
    background: #C9A84C !important;
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 25px rgba(201, 168, 76, 0.3) !important;
}
.top_button:hover::after { border-color: #49225c !important; }
.contact-block ul span  , .contact-block a{
    color: #fff !important;
}
 
/* ===========================================================
   التجاوب (Responsive)
   =========================================================== */
@media (max-width: 991px) {
    footer .footer-blocks > .column { margin-bottom: 30px; }
    footer h5 { margin-top: 20px; }
    .footer-brand-wrapper { text-align: center; }
    .footer-contact-list .contact-item { justify-content: center; }
    .footer-social-icons { justify-content: center; }
    .footer-newsletter-wrapper h5::after { left: 0; right: auto; transform: translateX(-50%); }
}
 /* ========================================================
   تنسيق قائمة الموبايل الديناميكية الجديدة (بدون تخريب الديسكتوب)
   ======================================================== */
@media (max-width: 991px) {
    /* تنسيق حاوية الموبايل المستقلة */
    .al-mira-mobile-menu-outer {
        position: absolute !important;
        top: 100% !important; 
        right: 0 !important;
        left: 0 !important;
        width: 100% !important;
        background-color: var(--green-primary) !important; /* موف البراند */
        z-index: 999999 !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
        border-bottom: 4px solid var(--green-secondary) !important; /* شريط دهبي */
        max-height: 70vh !important;
        overflow-y: auto !important;
    }

    /* إخفاء القائمة الأصلية للديسكتوب جوة الموبايل */
    .al-mira-mobile-menu-outer .main-menu,
    .al-mira-mobile-menu-outer #menu {
        display: none !important;
    }

    /* إجبار حاوية الموبايل الداخلية والروابط على الظهور المنسق */
    .al-mira-mobile-menu-outer .al-mira-mobile-menu-inner,
    .al-mira-mobile-menu-outer .mobile-menu-list {
        display: block !important;
        list-style: none !important;
        padding: 10px 0 !important;
        margin: 0 !important;
    }

    .al-mira-mobile-menu-outer .mobile-menu-list li {
        display: block !important;
        width: 100% !important;
    }

    .al-mira-mobile-menu-outer .mobile-menu-list li a {
         display: block !important;
        padding: 14px 20px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        text-align: right !important;
        text-decoration: none !important;
        color: #000;
    }

    .al-mira-mobile-menu-outer .mobile-menu-list li a:active,
    .al-mira-mobile-menu-outer .mobile-menu-list li a:hover {
        background-color: rgba(255, 255, 255, 0.05) !important;
        color: var(--green-secondary) !important; /* دهبي مسطردة شيك عند اللمس */
    }
}
/* ============================================ */
/* Mega Menu - الديسكتوب                        */
/* ============================================ */

.modern-main-nav {
    display: flex;
    align-items: center;
    gap: 5px;
}

.modern-main-nav > li > a {
    color: #333;
    font-weight: 600;
    font-size: 14px;
    padding: 15px 12px;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.modern-main-nav > li > a:hover {
    color: var(--green-primary);
}

.modern-main-nav > li > a::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--green-primary);
    transition: width 0.3s ease;
}

.modern-main-nav > li > a:hover::after {
    width: 60%;
}

/* ========== Mega Menu Dropdown ========== */
.mega-dropdown {
    position: static !important;
}

.mega-menu-wrapper {
    width: 100vw !important;
    left: 0 !important;
    right: 0 !important;
    border-radius: 0 0 12px 12px !important;
    border: none !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15) !important;
    padding: 0 !important;
    max-height: 70vh;
    overflow-y: auto;
    animation: megaSlideDown 0.3s ease;
}

@keyframes megaSlideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mega-menu-inner {
    padding: 25px 30px;
}

.mega-menu-header {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.mega-menu-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

/* ========== الأعمدة ========== */
.mega-menu-columns {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px 30px;
}

.mega-column {
    min-width: 180px;
}

.mega-category-item {
    break-inside: avoid;
}

.mega-parent-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    font-weight: 700;
    font-size: 14px;
    color: #222 !important;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.mega-parent-link:hover {
    background: var(--green-primary);
    color: #fff !important;
}

.mega-parent-link .arrow-icon {
    font-size: 12px;
    color: #999;
    transition: transform 0.3s;
}

.mega-parent-link:hover .arrow-icon {
    color: #fff;
    transform: translateX(-3px);
}

.mega-child-list {
    list-style: none !important;
    padding: 0 12px !important;
    margin: 0 !important;
}

.mega-child-list li {
    margin: 0 !important;
}

.mega-child-list li a {
    display: block;
    padding: 6px 0;
    font-size: 13px;
    color: #666 !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
    border-bottom: 1px dotted #f0f0f0;
}

.mega-child-list li a:hover {
    color: var(--green-primary) !important;
    padding-right: 8px;
}

/* ============================================ */
/* منيو الموبايل                                 */
/* ============================================ */

.mobile-section-title {
    background: #613e761f;
    padding: 12px 20px !important;
     color: var(--green-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #e0e7ff;
}

.mobile-section-title span {
    display: block;
}

.mobile-category-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-category-row a {
    flex: 1;
    padding: 14px 20px !important;
    color: #fff;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 14px;
    border-bottom: none !important;
}

.mobile-toggle-sub {
    background: none;
    border: none;
    color: var(--green-primary);
    padding: 14px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: none !important;
}
li.mobile-category {
    background: #ece8ee;
}
.mobile-toggle-sub i {
    transition: transform 0.3s ease;
    font-size: 14px;
}

.mobile-toggle-sub i.rotated {
    transform: rotate(180deg);
}

.mobile-toggle-sub.active {
    background: rgba(255,255,255,0.1);
}

.mobile-child-categories {
    display: none;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: rgba(0, 0, 0, 0.15);
}

.mobile-child-categories li a {
    padding: 10px 35px !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    color: rgba(255,255,255,0.8) !important;
    border-bottom: 1px solid rgba(255,255,255,0.03) !important;
}

.mobile-child-categories li a:hover {
    background: rgba(255,255,255,0.05) !important;
    color: #fff !important;
}

/* ========== تحسينات RTL للموبايل ========== */
.mobile-category-row a {
    text-align: right;
}

.mobile-child-categories li a {
    text-align: right;
}

.mobile-toggle-sub {
    margin-left: 0;
    margin-right: auto;
}

/* ========== Scrollbar للميجا منيو ========== */
.mega-menu-wrapper::-webkit-scrollbar {
    width: 5px;
}

.mega-menu-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.mega-menu-wrapper::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

/* ========== Responsive ========== */
@media (max-width: 1200px) {
    .mega-menu-columns {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px 20px;
    }
}

@media (max-width: 768px) {
    .mega-menu-wrapper {
        display: none !important;
    }
}
/* ========================================================
   تنسيق وضبط منسدلة السلة (Cart Dropdown) - آل ميرا 2026
   ======================================================== */

/* 1. ضبط شكل الصندوق الكلي للسلة ليصبح منسق وأبيض ونظيف */
#cart .dropdown-menu {
    min-width: 300px !important;
    background-color: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
    border-radius: 8px !important;
    padding: 15px !important;
    z-index: 9999999 !important;
}

/* 2. تنظيف جداول المنتجات وتوسيع المسافات بينها */
#cart .table {
    margin-bottom: 10px !important;
    width: 100% !important;
}

#cart .table td {
    padding: 8px 4px !important;
    
    font-size: 13px !important;
    vertical-align: middle !important;
    border: none !important; /* إزالة الحدود الداخلية المزعجة */
    border-bottom: 1px solid #f5f5f5 !important;
 }

/* ضبط صور المنتجات لتكون صغيرة ومنسقة */
#cart .table td.text-center a img {
    max-width: 50px !important;
    height: auto !important;
    border-radius: 4px !important;
}

/* اسم المنتج يكون واضح وبلون داكن شيك */
#cart .table td.text-left a {
    color: #333333 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

/* زر الحذف الـ (X) الصغير */
#cart .btn-danger.btn-xs {
    background-color: transparent !important;
    color: #999999 !important;
    border: none !important;
    font-size: 14px !important;
}
#cart .btn-danger.btn-xs:hover {
    color: #d9534f !important;
}

/* 3. تنسيق جدول الإجماليات والخصومات */
#cart .table-bordered {
    background-color: #fcfaff !important; /* خلفية موف خفيفة جداً للإجماليات */
    border-radius: 6px !important;
    margin-top: 10px !important;
}

#cart .table-bordered td {
    border: none !important;
    padding: 6px 12px !important;
}

#cart .table-bordered tr:last-child {
    font-weight: bold !important;
    color: var(--green-primary) !important; /* الإجمالي النهائي بلون البراند الموف */
    font-size: 14px !important;
    border-top: 1px dashed rgba(74, 34, 93, 0.2) !important;
}
 
/* تخصيص الأزرار المشتركة */
#cart .button-container a,
#cart p.text-right a {
    flex: 1 !important;
    display: inline-block !important;
    text-align: center !important;
    padding: 10px 15px !important;
    
    font-size: 13px !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    text-transform: none !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
}

/* زر معاينة السلة (الأول) - خلفية ذهبية مسطردة شيك */
#cart .button-container a:first-child,
#cart p.text-right a:first-child {
    background-color: var(--green-secondary) !important;
    color: #ffffff !important;
    border: 1px solid var(--green-secondary) !important;
    padding:0 10px !important;
}
#cart .button-container a:first-child:hover,
#cart p.text-right a:first-child:hover {
    background-color: #c69800 !important;
    border-color: #c69800 !important;
}

/* زر إنهاء الطلب / الدفع (الثاني) - خلفية موف آل ميرا الملكي */
#cart .button-container a:last-child,
#cart p.text-right a:last-child {
    background-color: var(--green-primary) !important;
    color: #ffffff !important;
    border: 1px solid var(--green-primary) !important;
    padding:0 10px !important;
}
#cart .button-container a:last-child:hover,
#cart p.text-right a:last-child:hover {
    background-color: var(--green-primary) !important;
    border-color: var(--green-primary) !important;
}
.btn-default {
    color: #fff;
    background: var(--green-primary);
    border: 1px solid var(--green-primary);
    line-height: inherit;
    border-radius: 5px;
    padding: 5px 32px;
}
#search .btn-lg {
    position: absolute;
    right: 0;
    top: 0;
    padding: 0;
    border: 0;
    height: 40px;
    width: 40px;
    font-size: 0px; /* لإخفاء كلمة Search المكتوبة في الـ HTML */
    background-image: none !important; /* إلغاء الصورة القديمة تماماً */
    background-color: transparent !important; /* خلفية شفافة أنيقة */
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 🌟 التحكم في شكل وحجم ولون الأيقونة الداخلية بالملي 🌟 */
#search .btn-lg i.fa-search {
    font-size: 18px !important; /* حجم الأيقونة */
    color: #4a225d !important; /* لون الموف الفخم لبراند آل ميرا */
    display: inline-block !important;
}

/* حركة تفاعلية شيك جداً لما العميل يمسك الزرار */
#search .btn-lg:hover i.fa-search {
    color: #e1ad01 !important; /* يقلب ذهبي مسطردة عند التحويم */
}
/* ===========================================================
   تنسيق قائمة الموبايل (SlideToggle) - فاخرة ونظيفة
   =========================================================== */

/* 1. الحاوية الخارجية عند فتح القائمة (تظهر من تحت الهيدر مباشرة) */
.al-mira-mobile-menu-outer {
    position: absolute !important;
    top: 100% !important; /* تظهر أسفل الهيدر مباشرة */
    right: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background: #ffffff !important;
    z-index: 99999 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06) !important; /* ظل ناعم جداً وفاخر */
    border-bottom: 3px solid #C9A84C !important; /* خط ذهبي في النهاية */
    padding: 10px 0 20px 0 !important;
    display: none; /* يبدأ مخفياً */
    max-height: 70vh !important; /* لا يتعدى 70% من الشاشة */
    overflow-y: auto !important; /* إذا كثرت الأقسام يظهر سكرول ناعم */
}

/* 2. تنسيق القائمة نفسها (لإزالة الخطوط العريضة المزعجة) */
.mobile-menu-list {
    list-style: none !important;
    padding: 0 20px !important;
    margin: 0 !important;
}

/* 3. تنسيق العنصر الواحد (الروابط الرئيسية) */
.mobile-menu-list > li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important; /* خط شفاف جداً بدلاً من الرمادي */
}
.mobile-menu-list > li:last-child {
    border-bottom: none !important; /* إزالة الخط من آخر عنصر */
}

/* 4. تنسيق الروابط (النص) */
.mobile-menu-list > li > a {
    display: block !important;
    padding: 14px 0 !important; 
    font-size: 15px !important;
    color: #2C2C2C !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}
.mobile-menu-list > li > a:hover {
    color: #C9A84C !important; /* يتحول للذهبي عند اللمس */
    padding-right: 8px !important; /* حركة ناعمة لليسار (لأنه RTL) */
}

/* 5. تنسيق الفئات الفرعية (Sub-Categories) */
.mobile-child-categories {
    list-style: none !important;
    padding: 0 !important;
    margin: 0px  10px  0px 0px !important;
    background: #f8f9fa !important;
     width: 80%;
}
.mobile-child-categories li a {
    padding: 8px 0 !important;
    display: block !important;
    color: #666 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}
.mobile-child-categories li a:hover {
    color: #C9A84C !important;
}
button.mobile-menu-toggle {
    border: 0;
    color: var(--green-primary);
}
@media (max-width: 767px) {
    .whatsapp-float-btn {
        display: none !important;
    }  
    .top_button{ 
        display: none !important
    }
}
/* ============================================
   تصميم أقسام المتجر - Style Clean & Luxurious
   ============================================ */

.luxury-categories {
    padding: 60px 0 80px;
    background: #fcfcfc; /* خلفية فاتحة جداً لإبراز البياض */
}

/* ============================================
   الهيدر - صف مرن (Flex)
   ============================================ */
.luxury-header {
    max-width: 1300px;
    margin: 0 auto 45px;
    padding: 0 20px;
}

.luxury-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.luxury-header-right {
    text-align: right;
    flex: 1;
}

.luxury-title {
    font-size: 2.8rem !important;
    font-weight: 300;
    color: #1a1a1a;
    margin: 0 0 5px 0;
    letter-spacing: 1px;
} 

.luxury-subtitle {
    font-size: 1.2rem;
    color: #999;
    font-weight: 300;
    margin: 0;
}

.luxury-header-left {
    display: flex;
    align-items: center;
    min-width: 140px;
}

.luxury-view-all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 10px 24px;
    border: 1px solid #e5e5e5;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: #ffffff;
    white-space: nowrap;
}

.luxury-view-all i {
    font-size: 14px;
    transition: all 0.4s ease;
    color: #C9A84C;
}

.luxury-view-all:hover {
    background: #C9A84C;
    border-color: #C9A84C;
    color: #ffffff;
    transform: translateX(-4px);
    box-shadow: 0 8px 25px rgba(201, 168, 76, 0.25);
}
.luxury-view-all:hover i {
    color: #ffffff;
    transform: translateX(-4px);
}

/* ============================================
   الشبكة والبطاقات
   ============================================ */
.luxury-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.luxury-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid #f0f0f0;
}


/* ----- الصور والإطار الذهبي ----- */
.luxury-image-wrapper {
    position: relative;
    padding: 30px 20px;
    text-align: center;
    background: #fafafa;
    overflow: hidden;
}

.luxury-image {
    width: 100%;
    max-width: 200px; /* للتحكم في حجم الصور داخل البطاقة */
    height: auto;
    aspect-ratio: 1/1;
    object-fit: contain;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: block;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* الإطار الذهبي المخفي */
.luxury-frame {
    position: absolute;
    top: 15px; left: 15px; right: 15px; bottom: 15px;
    border: 1px solid transparent;
    border-radius: 12px;
    transition: all 0.5s ease;
    z-index: 1;
    pointer-events: none;
}

/* تفاعل الكارت (Hover) */
.luxury-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.luxury-card:hover .luxury-image {
    transform: scale(1.08); /* تكبير الصورة */
}

.luxury-card:hover .luxury-frame {
    border-color: #C9A84C; /* ظهور الإطار الذهبي */
    box-shadow: inset 0 0 30px rgba(201, 168, 76, 0.05);
}

/* ----- المحتوى (النص أسفل الصورة) ----- */
.luxury-content {
    padding: 15px 20px 25px;
    text-align: center;
    border-top: 1px solid #f5f5f5;
    background: #ffffff;
}

.luxury-name {
    font-size: 1.8rem;
    font-weight: 600; /* خط عريض ليكون واضحاً */
    color: #2C2C2C;
    margin: 0;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.luxury-card:hover .luxury-name {
    color: #C9A84C; /* تحول اللون للذهبي عند الـ hover */
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .luxury-header-row {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    .luxury-header-right { text-align: center; }
    .luxury-header-left { justify-content: center; }
    .luxury-grid { grid-template-columns: repeat(3, 1fr); gap: 15px; }
    .luxury-image { max-width: 160px; }
}

@media (max-width: 768px) {
    .luxury-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 0 12px; }
    .luxury-title { font-size: 2rem !important; }
    .luxury-image { max-width: 120px; }
    .luxury-name { font-size: 1.5rem }
}

@media (max-width: 480px) {
    .luxury-categories { padding: 40px 0; }
    .luxury-header { margin-bottom: 30px; }
    .luxury-title { font-size: 1.6rem !important; }
    .luxury-subtitle { font-size: 0.8rem; }
    .luxury-grid { gap: 8px; padding: 0 8px; }
    
    .luxury-image-wrapper { padding: 15px 10px; }
    .luxury-image { max-width: 100%; }
    .luxury-content { padding: 10px 10px 15px; }
    .luxury-name { font-size:1.4rem; }
    .luxury-view-all { font-size: 1.2rem; padding: 8px 14px; }
}
/* ============================================
   تنسيق الأقسام الفرعية (Subcategories)
   ============================================ */

.luxury-sub-toggle {
    margin-top: 12px;
    border-top: 1px dashed #eee;
    padding-top: 12px;
}

.sub-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #C9A84C; 
    cursor: pointer;
    transition: all 0.3s ease; 
}

.sub-toggle-btn:hover { color: #b5953a; }

.luxury-subcategories-wrapper {
    text-align: right;
    padding-top: 15px;
}

.luxury-sub-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.luxury-sub-list > li {
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
}

.luxury-sub-list > li:last-child { border-bottom: none; }

.luxury-sub-list > li > a {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* RTL */
     text-decoration: none;  
    transition: all 0.3s ease;
}

.luxury-sub-list > li > a:hover {
    color: #C9A84C;
    padding-right: 4px;
}

.sub-icon {
    margin-left: 8px;
    color: #C9A84C;
    font-size: 0.8rem;
}
.sub-icon-img {
    width: 16px; height: 16px;
    margin-left: 8px;
    border-radius: 4px;
    object-fit: cover;
}

/* المستوى الثالث (Grandchildren) */
.luxury-child-list {
    padding-right: 20px;
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.child-link {
    display: flex;
    align-items: center;
    color: #888;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}
.child-link:hover { color: #C9A84C; padding-right: 4px; }
/* ========== المتغيرات ========== */
:root {
    --filter-danger: #dc3545;
    --filter-bg: #ffffff;
    --filter-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
    --filter-radius: 12px;
    --filter-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== زرار الفلتر العائم ========== */
.filter-toggle-btn {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    background: var(--green-primary);
    color: white;
    border: none;
    padding: 15px 12px;
    border-radius: 12px 0 0 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    transition: var(--filter-transition);
    writing-mode: vertical-lr;
    text-orientation: mixed;
    letter-spacing: 2px;
}

.filter-toggle-btn:hover {
    background: var(--green-secondary);;
    box-shadow: 0 6px 20px rgba(221, 200, 11, 0.4);
    right: 22px;
}

.filter-toggle-btn.has-active {
    background: #28a745;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    animation: pulse 2s infinite;
}

.filter-toggle-btn i {
    font-size: 20px;
}

/* Badge العداد */
.filter-badge {
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--filter-danger);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    writing-mode: horizontal-tb;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* ========== غلاف الفلتر (الشريط الجانبي) ========== */
 .filterbox-wrapper {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    max-width: 90vw;
    height: 100vh;
    background: var(--filter-bg);
    z-index: var(--filter-z-index);
    box-shadow: var(--filter-shadow);
    transition: var(--filter-transition);
    display: flex;
    flex-direction: column;
    border-radius: var(--filter-radius) 0 0 var(--filter-radius);
}

.filterbox-wrapper.active {
    right: 0;
}
/* ========== زرار الإغلاق السريع (أعلى اليمين) ========== */
 .filter-close-top {
    position: absolute;
    top: 16px;
    left: 17px;
    z-index: 10;
    background: var(--filter-danger);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 18px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--filter-transition);
}

.filter-close-top:hover {
    background: rgba(248, 93, 93, 0.1);
    color: #0e0202;
    transform: rotate(90deg);
}
/* ========== هيدر الفلتر ========== */
.filter-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border-radius: var(--filter-radius) 0 0 0;
}

.filter-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.filter-title i {
    color: var(--green-primary);
    font-size: 22px;
}

.filter-close-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 6px;
    transition: var(--filter-transition);
}

.filter-close-btn:hover {
    background: #e9ecef;
    color: #333;
}

/* ========== محتوى الفلتر ========== */
.filterbox {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.list-group-filter {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.list-group-item-wrapper {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: var(--filter-transition);
}

.list-group-item-wrapper:hover {
    border-color: #ced4da;
}

.list-group-item.group-name {
    display: block;
    padding: 12px 15px;
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
    border-bottom: 1px solid #e9ecef;
}

.list-group-item {
    padding: 10px 15px;
}

.filter_scrollbar {
    max-height: 200px;
    overflow-y: auto;
    padding-right: 5px;
}

/* ========== Checkbox & Radio مخصصين ========== */
.checkbox {
    margin: 3px 0;
}

.checkbox label {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 13px;
    color: #555;
}

.checkbox label:hover {
    background: #f0f4ff;
    color: #333;
}

.checkbox input[type="checkbox"],
.checkbox input[type="radio"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    accent-color: var(--green-primary);
    cursor: pointer;
    flex-shrink: 0;
}

/* ========== فوتر الفلتر ========== */
.filter-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: end;
    align-items: center;
    background: #f8f9fa;
}

.btn-clear-all {
    background: #fff;
    color: var(--filter-danger);
    border: 2px solid var(--filter-danger);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: var(--filter-transition);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.btn-clear-all:hover {
    background: var(--filter-danger);
    color: white;
}

.filter-active-info {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

#filter-active-count {
    color: var(--green-primary);
    font-weight: 700;
}

/* ========== Loading State ========== */
.filterbox.loading {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.2s;
}

/* ========== Overlay ========== */
.filter-overlay {
    position: fixed;
    top: 0;
    left: -300px;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--filter-transition);
}

.filter-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ========== منع تمرير الصفحة ========== */
body.filter-open {
    overflow: hidden;
}

/* ========== Scrollbar مخصص ========== */
.filterbox::-webkit-scrollbar,
.filter_scrollbar::-webkit-scrollbar {
    width: 5px;
}

.filterbox::-webkit-scrollbar-track,
.filter_scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.filterbox::-webkit-scrollbar-thumb,
.filter_scrollbar::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

.filterbox::-webkit-scrollbar-thumb:hover,
.filter_scrollbar::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* ========== Animation ========== */
@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(40, 167, 69, 0.6);
    }
    100% {
        box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    }
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    p.announcement-text {
    font-size: 10px;
    text-align: center;
    padding: 0 !important;
    margin: 0;
}
    .filterbox-wrapper {
        width: 100%;
        max-width: 100%;
        right: -100%;
        border-radius: 0;
    }
    
    .filter-toggle-btn {
        display:none;
    }
    
    .filter-header {
        border-radius: 0;
    }
    span#filter-active-count {
    opacity: 0;
    margin-right: 20px; 
}
}

.box.sidebarFilter .list-group-item-wrapper, #product-search .box.sidebarFilter .list-group-item-wrapper {
     padding: 0  !important;
}
/* ========== أزرار التوجل (Toggle) للأقسام ========== */
.toggle-section {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: var(--filter-transition);
}

.toggle-section:hover {
    background: var(--green-secondary) !important;
}

.toggle-section .toggle-icon {
    font-size: 12px;
    color: #fff;
    transition: transform 0.3s ease;
}

.toggle-section .toggle-icon.rotated {
    transform: rotate(180deg);
}

.toggle-section.collapsed {
    border-bottom: 1px solid var(--green-secondary)  !important;
}

/* ========== محتوى الفلتر المخفي/الظاهر ========== */
.filter-content {
    transition: all 0.3s ease;
}

/* ========== تحسين شكل الـ wrapper عند التوجل ========== */
.list-group-item-wrapper {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: var(--filter-transition);
}

.list-group-item-wrapper:has(.toggle-section.collapsed) {
    border-bottom-width: 1px;
}

/* ========== تأثير Hover على التوجل ========== */
.toggle-section {
    position: relative;
}

.toggle-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15px;
    right: 15px;
    height: 2px;
    background: var(--filter-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.toggle-section:hover::after {
    transform: scaleX(1);
}

/* ========== Badge للفلاتر النشطة داخل القسم ========== */
.toggle-section .section-badge {
    background: var(--filter-primary);
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 10px;
    display: none;
}

.toggle-section .section-badge.active {
    display: inline-block;
}
/* ========== عداد الفلتر في شريط الموبايل ========== */
.mobile-filter-nav-btn {
    position: relative;
}

.mobile-filter-badge {
    position: absolute;
    top: 2px;
    right: 50%;
    transform: translateX(50%);
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    animation: bounceIn 0.3s ease;
}

/* ========== Animation للعداد ========== */
@keyframes bounceIn {
    0% { transform: translateX(50%) scale(0); }
    50% { transform: translateX(50%) scale(1.2); }
    100% { transform: translateX(50%) scale(1); }
}
.filterbox-wrapper .toggle-section .mobile_togglemenu,
.filterbox-wrapper .mobile_togglemenu {
    display: none !important;
}