/* Add custom CSS styles below */ 
/* 1. تحرير السلايدر ومنع أي قيود أو قص عمودي على أبعاد الكروت الفاخرة */
.yasmeen-squares-slider,
.yasmeen-squares-slider salla-slider,
.yasmeen-squares-slider .swiper,
.yasmeen-squares-slider .swiper-wrapper {
    height: 440px !important; 
    overflow: visible !important;
}

/* 2. التأطير الذهبي الموحد - شفاف بالكامل من الداخل ويحتوي كامل عناصر التصنيف */
.yasmeen-squares-slider .yasmeen-square-slide {
    position: relative !important;
    display: block !important;
    background: transparent !important;         
    background-color: transparent !important;   
    border: 1px solid #c5a880 !important;       /* الحد الذهبي الموحد الخارجي */
    border-radius: 28px !important;             
    height: 360px !important;                   
    padding: 0 !important;
    margin-top: 25px !important;                /* مساحة علوية إضافية لمنع اصطدام الرمز الطائر */
    box-shadow: none !important;
    overflow: visible !important;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

/* تأثير البروز الفخم عند تمرير الماوس فوق الكارت */
.yasmeen-squares-slider .yasmeen-square-slide:hover {
    transform: translateY(-8px) !important;
    border-color: #5d1624 !important;          
}

/* 3. الرمز الذهبي العلوي الوحيد - يطفو بالكامل فوق الحد وليس عليه وبشفافية مطلقة */
.yasmeen-squares-slider .yasmeen-square-slide::before {
    content: '⚜' !important;
    position: absolute !important;
    bottom: 100% !important;                    /* رفع الرمز بالكامل فوق الحافة العلوية */
    top: auto !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin-bottom: 8px !important;              /* المسافة السحرية لجعله يطفو فوق الحد دون أن يلمسه */
    color: #c5a880 !important;
    font-size: 14px !important;
    background: transparent !important;         /* شفافية مطلقة تماماً */
    background-color: transparent !important;
    padding: 0 !important;
    z-index: 10 !important;
    display: block !important;
}

/* 4. إخفاء وحذف الرمزين السفليين تماماً لمنع ظهور 3 رموز */
.yasmeen-squares-slider .yasmeen-square-slide::after,
.yasmeen-squares-slider .yasmeen-square-slide h4::before {
    display: none !important;
    content: none !important;
}

/* 5. تراجع الصورة للداخل ليحتويها الإطار الذهبي بالكامل (تأثير البرواز الفاخر) */
.yasmeen-squares-slider .yasmeen-square-slide a:first-child {
    position: absolute !important;
    top: 16px !important;                       
    left: 16px !important;                      
    right: 16px !important;                     
    height: 255px !important;                   
    display: block !important;
    border-radius: 20px !important;             
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 1 !important;
}

.yasmeen-squares-slider .yasmeen-square-slide a:first-child img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* 6. تموضع بوكس اسم التصنيف ليتداخل بدقة مع أسفل الصورة */
.yasmeen-squares-slider .yasmeen-square-slide a:last-child {
    position: absolute !important;
    top: 245px !important;                      
    left: 0 !important;
    right: 0 !important;
    display: flex !important;
    justify-content: center !important;
    z-index: 30 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 7. تصميم بوكس الاسم بشكل كبسولة دائرية ناعمة ومطابقة تماماً للصورة المرجعية */
.yasmeen-squares-slider .yasmeen-square-slide h4 {
    background-color: #ffffff !important;       /* قاعدة بيضاء ناصعة للبوكس تبرز الاسم */
    color: #5d1624 !important;                 /* لون خط لانير العنابي الفاخر */
    border: 1px solid #c5a880 !important;       /* خط حدودي ذهبي ناعم يلف بوكس الاسم */
    border-radius: 50px !important;             /* تحويل الحواف لشكل دائرى كامل (كبسولة) مطابق للصورة */
    padding: 10px 28px !important;              /* مساحات داخلية متناسقة ومريحة جداً للقراءة */
    font-size: 14px !important;
    font-weight: bold !important;               
    box-shadow: 0 6px 20px rgba(197, 168, 128, 0.1) !important;
    display: inline-block !important;
    white-space: nowrap !important;
    margin: 0 !important;
    position: relative !important;
}

/* =================================================================
   كود إضافي ومستقل لشاشات الجوال فقط (يوضع في نهاية صندوق الـ CSS)
   نسخة مصفرة وموزونة بالكامل وبدون أي رموز علوية أو سفلية
   ================================================================= */
@media (max-width: 768px) {
    /* 1. تصفير شامل وحر لكافة أبعاد الحاويات لتقبل التوسط مئة بالمئة */
    .yasmeen-squares,
    .yasmeen-squares .container,
    .yasmeen-squares-slider,
    .yasmeen-squares-slider salla-slider,
    .yasmeen-squares-slider .swiper {
        height: auto !important;
        overflow: visible !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* 2. تحويل الحاوية إلى Flexbox متناظر التوزيع يتمركز في السنتر بالملي */
    .yasmeen-squares-slider .swiper-wrapper {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;  /* التوسط الحقيقي والكامل في منتصف الشاشة */
        align-items: flex-start !important;
        align-content: center !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        transform: none !important;          /* تجميد وإلغاء حركة السحب التلقائية */
        flex-direction: row !important;
        padding: 20px 4px !important;        /* مسافة أمان علوية وسفلية */
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }

    /* 3. إعدادات كارت التصنيف للجوال - إطار ذهبي مفرغ وشفاف بالكامل */
    .yasmeen-squares-slider .yasmeen-square-slide {
        position: relative !important;
        display: block !important;
        background: transparent !important;         /* شفافية كاملة ومطلقة لداخل الإطار */
        background-color: transparent !important;   
        border: 1px solid #c5a880 !important;       /* الحد الذهبي الموحد الخارجي */
        border-radius: 28px !important;             /* انحناء زوايا الكارت */
        
        /* الحساب الهندسي المتناظر */
        flex: 0 0 calc(50% - 16px) !important;
        width: calc(50% - 16px) !important;
        max-width: calc(50% - 16px) !important;
        height: 340px !important;                   /* الارتفاع الطولي المثالي للجوال */
        
        /* هوامش جانبية متناظرة تمنع الميلان (تم تقليل الهامش العلوي لعدم وجود رمز) */
        margin: 15px 8px !important; 
        padding: 0 !important;
        overflow: visible !important;
        box-shadow: none !important;
        box-sizing: border-box !important;
    }

    /* تأثير بروز ناعم عند الضغط فوق الكارت بالجوال */
    .yasmeen-squares-slider .yasmeen-square-slide:hover {
        transform: translateY(-5px) !important;
        border-color: #5d1624 !important;     
    }

    /* 4. حذف وإخفاء جميع الرموز تماماً (العلوية والسفلية وداخل البوكس) بناءً على طلبك */
    .yasmeen-squares-slider .yasmeen-square-slide::before,
    .yasmeen-squares-slider .yasmeen-square-slide::after,
    .yasmeen-squares-slider .yasmeen-square-slide h4::before {
        display: none !important;
        content: none !important;
    }

    /* 5. برواز وتراجع الصورة الداخلي الاحترافي */
    .yasmeen-squares-slider .yasmeen-square-slide a:first-child {
        position: absolute !important;
        top: 16px !important;                 
        left: 16px !important;                
        right: 16px !important;               
        height: 235px !important;             
        display: block !important;
        border-radius: 20px !important;       
        overflow: hidden !important;
        z-index: 1 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .yasmeen-squares-slider .yasmeen-square-slide a:first-child img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    /* 6. تموضع بوكس اسم التصنيف ليتداخل مع أسفل الصورة */
    .yasmeen-squares-slider .yasmeen-square-slide a:last-child {
        position: absolute !important;
        top: 225px !important;                
        left: 0 !important;
        right: 0 !important;
        display: flex !important;
        justify-content: center !important;
        z-index: 30 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* 7. تصميم بوكس الاسم بشكل كبسولة دائرية فخمة باللون الأبيض والخط العنابي */
    .yasmeen-squares-slider .yasmeen-square-slide h4 {
        background-color: #ffffff !important; 
        color: #5d1624 !important;           /* لون خط لانير العنابي الفاخر */
        border: 1px solid #c5a880 !important; 
        border-radius: 50px !important;       /* شكل كبسولة دائرية كاملة */
        padding: 10px 24px !important;        
        font-size: 13px !important;
        font-weight: bold !important;         
        box-shadow: 0 6px 20px rgba(197, 168, 128, 0.1) !important;
        display: inline-block !important;
        white-space: nowrap !important;
    }

    /* 8. هندسة وتوسط الكارت الخامس بمفرده في السطر الثالث متزن في المنتصف تماماً */
    .yasmeen-squares-slider .yasmeen-square-slide:nth-child(5) {
        flex: 0 0 calc(50% - 16px) !important; 
        margin: 15px auto !important;          
    }
}

/* 1. توسيط حاوية العنوان بالكامل في منتصف الشاشة */
.yasmeen-squares-title {
    justify-content: center !important; /* التوسط الأفقي */
}

/* 2. محاذاة النصوص داخلياً لتصبح في السنتر */
.yasmeen-squares-title .flex-col {
    align-items: center !important;
    text-align: center !important;
}

/* 3. استهداف عنصر (استكشف مجموعاتنا) وتلوينه بالذهبي الغامق */
.yasmeen-squares-title span {
    color: #9A7B43 !important;     /* درجة ذهبي غامق ملكية وفخمة */
}

/* =================================================================
   1. اسم المنتج - استهدافه الدقيق عبر الحاوية وتلوينه بالعنابي الغامق
   ================================================================= */
.yasmeen-main-content h1,
.main-content h1 {
    color: #5d1624 !important; /* لون عنابي غامق ملكي (هوية لانير) */
    font-weight: bold !important;
}

/* =================================================================
   2. الاسم الوصفي (أسفل العنوان) - تلوينه بالذهبي الغامق الصريح
   ================================================================= */
.yasmeen-main-content .product-entry__sub-title,
.product-entry__sub-title {
    color: #9A7B43 !important; /* لون ذهبي غامق دافئ */
    opacity: 1 !important;     /* إلغاء البهتان أو الشفافية التلقائية لتوضيح اللون */
    font-weight: 500 !important;
}

/* =================================================================
   3. زر الشراء / اعلمني عند التوفر - ذهبي غامق ويتحول لذهبي فاتح عند التمرير
   ================================================================= */
/* الحالة المستقرة والأساسية للزر */
salla-add-product-button button,
salla-add-product-button .s-button-element,
.s-add-product-button-main,
.s-add-product-button-element {
    background-color: #c19867 !important; /* الخلفية: ذهبي غامق */
    border-color: #9A7B43 !important;     /* الإطار: ذهبي غامق */
    color: #ffffff !important;             /* لون النص الداخلي: أبيض ناصع */
    transition: all 0.3s ease-in-out !important; /* نعومة انسيابية عند التحول */
}

/* حالة تمرير الماوس أو الضغط (Hover) */
salla-add-product-button button:hover,
salla-add-product-button .s-button-element:hover,
.s-add-product-button-main:hover,
.s-add-product-button-element:hover {
    background-color: #c5a880 !important; /* الخلفية عند التمرير: ذهبي فاتح */
    border-color: #c5a880 !important;     /* الإطار عند التمرير: ذهبي فاتح */
    color: #5d1624 !important;             /* تحول لون الخط إلى العنابي ليعطي لمسة بريميوم */
}

/* =================================================================
   1. استهداف لون عنوان قسم (جديد لانير)
   ================================================================= */
section:has(salla-products-list) h2,
section:has(.s-products-list) h2 {
    color: #9a2e49 !important; /* ضع هنا لون الخط المفضل لعنوان جديد لانير */
}

/* =================================================================
   2. استهداف لون عنوان قسم (الأعلى طلباً)
   ================================================================= */
.s-block--best-offers .s-slider-block__title-right h2,
#best-offers-5-slider h2 {
    color: #9a2e49 !important; /* ضع هنا لون الخط المفضل لعنوان الأعلى طلباً */
}

/* =================================================================
   3. استهداف خلفية بوكس (عميل راضي / الإحصائيات)
   ================================================================= */
.yasmeen-components-statistics .grid > div,
.yasmeen-components-statistics .bg-gray-100 {
    background-color: transparent !important; /* ضع هنا لون الخلفية المطلوب لبوكسات الأرقام */
    border-color: #8d6a40 !important;     /* اختياري: لتغيير لون حدود البوكس الصغير إذا أردت */
}