/* Add custom CSS styles below */ 
/* Add custom CSS styles below */ 
/* 1. إجبار السكشن العلوي والسفلي والحاويات العامة على عدم القص */
.index main,
.index .s-block,
.index .s-block--hero-slider,
.index .s-block--rectangular-links {
  overflow: visible !important;
}

/* 2. رفع سكشن البطاقات وتعديل موقعه فوق البانر */
.index .s-block--rectangular-links {
  position: relative !important;
  z-index: 1 !important;
  margin-top: -60px !important; /* يمكنك تعديل هذا الرقم لرفعها أكثر أو أقل */
}
}

/* 3. التأكد من أن الحاوية الداخلية كاملة الوضوح */
.index .s-block--rectangular-links .container,
.index .s-block--rectangular-links img {
  overflow: visible !important;
  position: relative !important;
}
.index .s-block--best-offers h2.text-3xl.font-bold.tracking-tight {
  color: #004d33 !important; /* استبدل هذا الكود بلونك المفضل */
}

@media (max-width: 768px) {

  /* 1. تقليل المسافة بين سطور اسم المنتج */
  .product-card div.product-card__content a,
  .product-card div.product-card__content h3,
  .product-card div.product-card__content p {
    line-height: 1.15 !important; /* يقلل الفراغ بين السطر والأخر */
    margin-top: 2px !important;
    margin-bottom: 2px !important;
  }

  /* 2. إلغاء الفراغات العلوية والسفلية بين العناصر داخل البطاقة */
  .product-card div.product-card__content * {
    margin-top: 1px !important;
    margin-bottom: 1px !important;
    padding-top: 0px !important;
    padding-bottom: 0px !important;
  }

  /* 3. تقليل الحشوة الداخلية للبطاقات لتقريب كل المحتوى من بعضه */
  .product-card div.product-card__content {
    padding: 4px 6px !important;
    gap: 2px !important;
  }

/* إجبار الشارة على الظهور بشكل ناعم وداخل إطار الصورة على الكمبيوتر والجوال */
.product-card div.product-card__promotion {
    position: absolute !important;
    top: 10px !important;              /* مسافة من الأعلى لتدخل داخل زاوية الصورة */
    left: 10px !important;             /* مسافة من اليسار لتبتعد عن طرف الصورة المقصوص */
    right: auto !important;
    
    /* إلغاء أي أبعاد ثابتة */
    width: max-content !important;
    min-width: 0 !important;
    display: inline-block !important;
    
    /* تنحيف الشارة وجعل زواياها مدورة وناعمة */
    padding: 3px 12px !important;
    font-size: 11px !important;
    border-radius: 20px !important;    /* حواف دائرية ناعمة بالكامل */
    
    /* لمسات جمالية */
    margin: 0 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
    z-index: 10 !important;
}

/* ضمان أن البطاقة تحوي الشارة بالداخل */
.product-card {
    position: relative !important;
}
}

/* 1. تثبيت عرض الكارت مع إضافة فواصل جانبية */
.product-index .products-index div.s-slider-swiper-wrapper .swiper-slide {
    width: 130px !important;
    min-width: 130px !important;
    flex-shrink: 0 !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
    box-sizing: border-box !important;
}

/* 2. جعل الصور مربعة بحواف منحنية وتغطي المساحة */
.product-index .products-index div.s-slider-swiper-wrapper img {
    border-radius: 14px !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
}

/* 3. إلغاء القص الدائري عن الغلاف */
.product-index .products-index div.s-slider-swiper-wrapper div,
.product-index .products-index div.s-slider-swiper-wrapper a {
    border-radius: 14px !important;
    overflow: hidden !important;
}

/* 1. إلغاء الفراغ والمساحات بين البنَر وقسم الأيقونات */
.main-content,
.category-products,
div.s-blocks-wrapper {
    gap: 0 !important;
    padding-top: 0 !important;
    margin-top: 0 !important;

}
/* رفع زر الواتساب وزر الصعود للأعلى بقوة */
.index [id*="wa-selia"],
.index [class*="progress-circle"],
.index .scroll-to-top {
  bottom: 90px !important; /* الارتفاع الجديد، يمكن زيادته إذا لزم الأمر */
  transform: translateY(0) !important; /* إلغاء أي تحويلات قديمة */
  z-index: 10000 !important; /* لضمان ظهورهما فوق أي شيء آخر */
  transition: bottom 0.3s ease-in-out !important; /* حركة سلسة */
}

}

/* تكبير وتوسيط الأيقونة داخل الدائرة */
.index #wa-selia i,
.index #wa-selia svg,
.index [id*="wa-selia"] svg {
  margin: 0 !important;
  font-size: 26px !important;
  width: 26px !important;
  height: 26px !important;
}
/* تنسيق الشاشات الصغيرة والجوال */
@media (max-width: 768px) {
  .index div.selia-bottom-nav {
    position: fixed !important;
    bottom: 15px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: calc(100% - 30px) !important;
    max-width: 420px !important;
    margin: 0 !important;
    z-index: 99999 !important;

    background: rgba(255, 255, 255, 0.45) !important;
    backdrop-filter: blur(15px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(15px) saturate(160%) !important;
    border-radius: 30px !important;
    border: 1px solid rgba(255, 255, 255, 0.7) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
  }
}

/* تغيير لون النصوص والرموز داخل الشريط */
.index div.selia-bottom-nav,
.index div.selia-bottom-nav *,
.index div.selia-bottom-nav span,
.index div.selia-bottom-nav a,
.index div.selia-bottom-nav i,
.index div.selia-bottom-nav svg {
  color: #5498de !important;
  fill: #5498de !important; /* للرموز المصممة بـ SVG */
  stroke: #5498de !important;
}}

/* جعل الهيدر منبثق وعائم بحواف دائرية فقط دون أي تأثير زجاجي */
.store-header div.inner {
  position: fixed !important;
  top: 12px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  
  width: calc(100% - 24px) !important;
  max-width: 430px !important;
  height: 60px !important;
  z-index: 999999 !important;

  /* الحواف الدائرية الكيرف والحدود */
  border-radius: 35px !important;
  border: 1px solid #e5e7eb !important;
  
  /* ظل خفيف لإبراز الانبثاق فقط */
  box-shadow: 0 4px 0px rgba(0, 0, 0, 0.08) !important;

  /* المحاذاة الداخلية والتنظيف */
  padding: 0 0px !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  overflow: hidden !important;
.product-card salla-add-product-button .s-add-product-btn:hover {
    background: rgba(255, 255, 255, 0.45) !important;
    border-color: rgba(255, 255, 255, 0.7) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.25) !important;
}}