/* Add custom CSS styles below */ 
/* 1. تصميم الكارت نفسه (الرابط) */
.s-slider-swiper-wrapper .slide--cat-entry {
    display: flex !important;
    flex-direction: column !important;
    background-color: #ffffff !important;      /* خلفية بيضاء للكارت */
    border-radius: 12px !important;            /* حواف دائرية للكارت */
    padding: 12px !important;                  /* مسافة داخلية حول الصورة والنص */
    box-shadow: 0 2px 10px rgba(0,0,0,0.03) !important; /* ظل خفيف جداً يبرز الكارت */
    border: 1px solid #f2f2f2 !important;      /* إطار خفيف زي اللي في الصورة */
    box-sizing: border-box !important;
    height: 100% !important;
}

/* 2. تصميم الصورة (مستطيلة بالطول) */
.s-slider-swiper-wrapper .slide--cat-entry img {
    width: 100% !important;                    /* الصورة تأخذ عرض الكارت بالكامل (داخل الـ padding) */
    max-width: 100% !important;
    height: 220px !important;                  /* طول الصورة لتبدو مستطيلة (يمكنك تعديل الرقم) */
    object-fit: cover !important;              /* الحفاظ على جودة وأبعاد الصورة */
    border-radius: 8px !important;             /* حواف منحنية للصورة نفسها */
    margin: 0 0 15px 0 !important;             /* مسافة سفلية تفصل الصورة عن النص */
}

/* 3. تصميم النص (عنوان القسم) */
.s-slider-swiper-wrapper .slide--cat-entry h2 {
    font-size: 15px !important;
    font-weight: bold !important;
    color: #222 !important;
    margin: 0 !important;
    text-align: right !important;              /* محاذاة النص لليمين كما في الصورة */
    width: 100% !important;
    line-height: 1.4 !important;
}



/* استهداف شاشات الجوال فقط */
@media (max-width: 768px) {
  
  /* منع خروج الجدول عن الشاشة */
  .s-block-product-comparison .table-wrapper {
    overflow-x: hidden !important;
    padding: 5px !important;
  }
  
  .s-block-product-comparison .comparison-table {
    min-width: 100% !important;
  }

  /* 1. تظبيط الهيدر (صور وأسماء المنتجات) */
  .comparison-table .products-header {
    display: flex !important;
    flex-wrap: wrap !important;
    padding: 10px 0 !important;
    border-bottom: 2px solid #eee !important;
  }
  
  /* إخفاء كلمة "المنتج" الفاضية */
  .comparison-table .header-label {
    display: none !important;
  }
  
  /* إعطاء مساحة 50% لكل منتج عشان يكونوا جنب بعض */
  .comparison-table .product-header {
    width: 50% !important;
    text-align: center !important;
    padding: 0 5px !important;
    box-sizing: border-box !important;
  }
  
  /* تصغير الصور في الجوال */
  .comparison-table .product-image {
    max-width: 55px !important;
    height: auto !important;
    margin: 0 auto 8px auto !important;
  }
  
  /* تظبيط خط عناوين المنتجات */
  .comparison-table .product-title {
    font-size: 13px !important;
    line-height: 1.4 !important;
    font-weight: bold !important;
  }

  /* 2. تظبيط صفوف المقارنة */
  .comparison-table .comparison-row {
    display: flex !important;
    flex-wrap: wrap !important;
    padding: 15px 0 !important;
    border-bottom: 1px solid #eaeaea !important;
  }
  
  /* وجه المقارنة (ياخد السطر كله 100%) */
  .comparison-table .row-label {
    width: 100% !important;
    text-align: center !important;
    background-color: #f8f9fa !important; /* لون خلفية رصاصي فاتح للتمييز */
    padding: 8px !important;
    margin-bottom: 10px !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: bold !important;
    color: #333 !important;
    box-sizing: border-box !important;
  }
  
  /* قيم المنتجات (كل واحد ياخد 50% عشان يكونوا تحت العنوان مباشرة وجنب بعض) */
  .comparison-table .row-value {
    width: 50% !important;
    text-align: center !important;
    padding: 5px 8px !important;
    font-size: 12px !important;
    line-height: 1.6 !important;
    box-sizing: border-box !important;
    border: none !important;
  }
  
  /* عمل خط فاصل طولي خفيف بين نتيجة المنتجين */
  .comparison-table .row-value:nth-child(2) {
    border-left: 1px solid #eaeaea !important;
  }
}