/* Add custom CSS styles below */ 
body, .page-wrapper, .salla-theme-matcha {
    background-color: #e8e9e4 !important;
}
.matcha-faq {
    background-color: #e8e9e4 !important;
}
.matcha-features {
    background-color: #e8e9e4 !important;
}
.s-block--testimonials .s-block-title,
.s-block--testimonials .s-title,
.s-block--testimonials h2 {
    display: none !important;
}
/* الإخفاء الإجباري للتبويب الثاني (الأكثر مبيعاً) بكل الطرق الممكنة */
html body .tabs.hide-scroll salla-button:last-child,
html body .tabs-wrapper salla-button.tab-trigger:last-child,
html body div.tabs salla-button:nth-of-type(2) {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    overflow: hidden !important;
}
/* ========================================= */
/* 1. إعدادات عامة (إخفاء الأبيض وتدوير الزوايا) */
/* ========================================= */
.s-block--banners {
    background-color: #e8e9e4 !important;
}

.s-block--banners .banner-entry {
    border-radius: 15px !important;
    overflow: hidden !important;
    border: none !important;
    background-color: transparent !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.s-block--banners .lazy_bg {
    background-size: cover !important;
    background-position: center !important;
    width: 100% !important;
}

/* ========================================= */
/* 2. شاشات الكمبيوتر (1 كبير فوق + 2 صغيرين تحت) */
/* ========================================= */
@media (min-width: 768px) {
    .s-block--banners .grid.one-row {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
    
    .s-block--banners .banner-entry:nth-child(1) {
        grid-column: span 2 !important;
    }
    .s-block--banners .banner-entry:nth-child(1) .lazy_bg {
        padding-bottom: 30% !important; /* ارتفاع البنر الكبير */
    }
    
    .s-block--banners .banner-entry:nth-child(n+2) {
        grid-column: span 1 !important;
    }
    .s-block--banners .banner-entry:nth-child(n+2) .lazy_bg {
        padding-bottom: 45% !important; /* ارتفاع البنرات الصغيرة */
    }
}

/* ========================================= */
/* 1. إعدادات الصندوق الخارجي والصور */
/* ========================================= */
html body .s-block--banners {
    background-color: #e8e9e4 !important;
}

html body .s-block--banners a.banner-entry {
    border-radius: 15px !important;
    overflow: hidden !important;
    border: none !important;
    background-color: transparent !important;
    display: block !important;
    position: relative !important; /* مهم جداً لضبط الأبعاد */
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
}

html body .s-block--banners a.banner-entry .lazy_bg {
    background-size: cover !important;
    background-position: center !important;
    position: absolute !important; /* مهم جداً لتعبئة الصندوق */
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
}

/* ========================================= */
/* 2. شاشات الكمبيوتر (1 كبير مفرود فوق + 2 تحت) */
/* ========================================= */
@media (min-width: 768px) {
    html body .s-block--banners .grid.one-row {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
        width: 100% !important;
    }
    
    html body .s-block--banners a.banner-entry:nth-child(1) {
        grid-column: span 2 !important; /* يتفرد بعرض الشاشة */
        padding-bottom: 25% !important; /* ارتفاع البنر الكبير */
    }
    
    html body .s-block--banners a.banner-entry:nth-child(n+2) {
        grid-column: span 1 !important; /* كل بنر ياخد النص */
        padding-bottom: 40% !important; /* ارتفاع البنرات الصغيرة */
    }
}

/* ========================================= */
/* 3. شاشات الموبايل (التلاتة تحت بعض) */
/* ========================================= */
@media (max-width: 767px) {
    html body .s-block--banners .grid.one-row {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important; /* مسافة ضيقة وأنيقة للموبايل */
        width: 100% !important;
    }
    
    html body .s-block--banners a.banner-entry {
        padding-bottom: 45% !important; /* الارتفاع الموحد للبنرات على الموبايل */
    }
}
/* جعل البنر الرئيسي يمتد لعرض الشاشة بالكامل */

/* 1. توسيع الحاوية الداخلية (الكونتينر) للبنر */
.s-block--hero-slider .container,
.matcha-hero-slider .container,
.s-block--fixed-banner .container,
.s-container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* 2. إزالة الهوامش الجانبية من قسم البنر نفسه */
.s-block--hero-slider,
.matcha-hero-slider,
.s-block--fixed-banner {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* 3. التأكد من أن الصورة نفسها تمتد لتملأ المساحة المتاحة */
.s-block--hero-slider img,
.matcha-hero-slider img,
.s-block--fixed-banner img {
    width: 100% !important;
    max-width: none !important;
    object-fit: cover !important; /* لضمان تغطية المساحة دون تشويه الصورة */
}
/* --- إصلاح تمدد البنرات على شاشات الكمبيوتر --- */
@media (min-width: 768px) {
    html body .s-block--banners .banner-entry {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    html body .s-block--banners .banner-entry:nth-child(1) {
        grid-column: 1 / -1 !important; /* إجبار البنر الأول على أخذ العرض بالكامل */
    }
}
/* ========================================= */
/* إزالة الخلفية الغامقة من قسم التصنيفات (ثيم ماتشا) */
/* ========================================= */

/* 1. إخفاء طبقة التدرج الأسود (Overlay) تماماً */
html body .matcha.categories .category-card div[class*="bg-gradient-to-t"],
html body .category-card div[class*="bg-gradient-to-t"] {
    display: none !important;
    background: transparent !important;
    opacity: 0 !important;
}

/* 2. جعل المربع نفسه شفاف وإلغاء الظلال */
html body .matcha.categories .category-card,
html body .category-card {
    background-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

/* 3. منع ظهور الظل عند تمرير الماوس (Hover) */
html body .category-card:hover {
    box-shadow: none !important;
    background-color: transparent !important;
}