/* =========================================
   1. الخلفية الملونة (التدرج الأزرق الفخم)
   ========================================= */
body, .store-wrapper, .main-content, html {
    /* تدرج لوني فخم وناعم يتماشى مع "سمارت كول" */
    background: linear-gradient(135deg, #09152b 0%, #152b52 50%, #1e3c72 100%) !important;
    background-attachment: fixed !important; /* خلفية ثابتة أثناء التمرير */
    background-size: cover !important;
}

/* =========================================
   2. إغلاق الفراغات الشاسعة بين الأقسام (طلبك الأول)
   ========================================= */
.s-block {
    margin-top: 15px !important;
    margin-bottom: 15px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
.container {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}

/* =========================================
   3. حل مشكلة المربعات البيضاء والنصوص المختفية
   ========================================= */
/* إجبار خلفيات الأقسام على الشفافية ليظهر التدرج الأزرق الجميل */
.s-block, 
.s-block [style*="background-color"], 
.s-block--features, 
.banner-entry,
.bg-white, 
.bg-gray-50 {
    background-color: transparent !important;
    background: transparent !important;
}

/* إجبار كل النصوص على اللون الأبيض لتقرأ بوضوح على الخلفية الزرقاء */
.s-block h1, .s-block h2, .s-block h3, .s-block p, .s-block span, .slider-title {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4) !important; /* ظل خفيف لزيادة الوضوح */
    line-height: 1.6 !important;
}

/* =========================================
   4. إبراز أزرار "تسوق الآن" (CTA)
   ========================================= */
/* تحويل الروابط الضعيفة إلى أزرار احترافية بارزة */
.s-block .btn, 
.s-block .s-button-element, 
.s-block a[href*="category"],
.banner-entry a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(to right, #10b981, #059669) !important; /* لون أخضر متدرج للفت الانتباه */
    color: #ffffff !important;
    padding: 10px 24px !important;
    border-radius: 8px !important;
    font-weight: bold !important;
    font-size: 16px !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3) !important;
    margin-top: 15px !important;
    text-shadow: none !important;
}

/* =========================================
   5. حماية بطاقات المنتجات (يجب أن تظل بيضاء)
   ========================================= */
.s-product-card-entry {
    background-color: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2) !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}

/* نصوص بطاقات المنتجات داكنة لتناسب الخلفية البيضاء للبطاقة */
.s-product-card-entry h3, 
.s-product-card-entry p, 
.s-product-card-entry span,
.s-product-card-content-title,
.s-product-card-price {
    color: #1e293b !important;
    text-shadow: none !important;
}

/* توحيد أبعاد الصور بالبطاقات (لحل اختفاء الأزرار) */
.s-product-card-image {
    aspect-ratio: 1 / 1 !important;
    background-color: #ffffff !important;
    padding: 10px !important;
}
.s-product-card-image img {
    object-fit: contain !important;
    width: 100% !important;
    height: 100% !important;
    mix-blend-mode: multiply !important;
}

/* تثبيت زر السلة في أسفل البطاقة دائماً */
.s-product-card-content-footer {
    margin-top: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}
.s-product-card-content-footer salla-add-product-button .s-button-wrap {
    background: #25397d !important;
    width: 100% !important;
}