/* Add custom CSS styles below */ 
/* الصفحة الرئيسية فقط */

body.index [class*="product-card"],

body.index custom-salla-product-card,

body.index salla-product-card {

  margin-inline: auto !important;

}



body.index [class*="product-card"] [class*="image"],

body.index custom-salla-product-card [class*="image"],

body.index salla-product-card [class*="image"] {

  display: flex !important;

  justify-content: center !important;

  align-items: center !important;

}



body.index [class*="product-card"] img,

body.index custom-salla-product-card img,

body.index salla-product-card img {

  margin-inline: auto !important;

  object-fit: contain !important;

  object-position: center !important;

}



/* لو القسم فيه منتج واحد: وسّط البطاقة نفسها */

body.index section *:has(> [class*="product-card"]:only-child),

body.index section *:has(> custom-salla-product-card:only-child),

body.index .swiper-wrapper:has(> .swiper-slide:only-child) {

  display: flex !important;

  justify-content: center !important;

}

/* زر أضف للسلة: أعرض وأكبر */

body.index salla-add-product-button,

body.index salla-add-product-button salla-button,

body.index salla-add-product-button button,

body.index salla-add-product-button .s-button-element,

body.index [class*="product-card"] .s-button-element {

  display: block !important;

  width: 100% !important;

  max-width: 100% !important;

}

body.index salla-add-product-button button,

body.index [class*="product-card"] .s-button-element {

  padding: 12px 0 !important;

  font-size: 16px !important;

  justify-content: center !important;

}



/* توسيط عنوان القسم */

body.index section h2,

body.index [class*="block__title"],

body.index [class*="section-title"],

body.index [class*="title-wrapper"] {

  text-align: center !important;

  justify-content: center !important;

  width: 100% !important;

}

body.index section h2,

body.index [class*="block__title"],

body.index [class*="section-title"] {

  display: none !important;

}

/* إخفاء السجل التجاري من الفوتر */

salla-trust-badges,

.s-trust-badges,

.s-trust-badges-wrapper,

footer [class*="trust-badge"],

footer [class*="commercial"] {

  display: none !important;

}

/* توسيع بطاقة المنتج في الرئيسية */

body.index [class*="product-card"],

body.index custom-salla-product-card,

body.index salla-product-card {

  width: 100% !important;

  max-width: 420px !important;

}



/* كل حاويات الزر بعرض كامل */

body.index [class*="product-card"] [class*="footer"],

body.index [class*="product-card"] [class*="actions"],

body.index [class*="product-card"] [class*="content"],

body.index [class*="product-card"] salla-add-product-button,

body.index [class*="product-card"] salla-button,

body.index custom-salla-product-card salla-add-product-button,

body.index custom-salla-product-card salla-button {

  display: block !important;

  width: 100% !important;

  max-width: 100% !important;

}



/* شكل الزر مثل صفحة التصنيف */

body.index [class*="product-card"] button,

body.index custom-salla-product-card button,

body.index salla-product-card button {

  width: 100% !important;

  padding: 12px 0 !important;

  border-radius: 40px !important;

  font-size: 17px !important;

  justify-content: center !important;

}



/* لا تمدد أيقونة العين */

body.index [class*="product-card"] [class*="image"] button,

body.index [class*="product-card"] [class*="wishlist"] button,

body.index [class*="product-card"] [class*="quick"] button {

  width: auto !important;

  padding: revert !important;

  border-radius: 50% !important;

}/* إرجاع العلامة الترويجية لحجمها */

body.index [class*="promotion"],



body.index [class*="product-card"][class*="title"],

body.index [class*="product-card"][class*="label"],

body.index [class*="product-card"][class*="tag"] {

  width: auto !important;

  max-width: max-content !important;

  display: inline-block !important;

}

/* حاوية العنوان: عمودية وفي المنتصف */

body.index [class*="product-card"] *:has(> [class*="subtitle"]),

body.index [class*="product-card"] *:has(> [class*="content-title"]) {

  display: flex !important;

  flex-direction: column !important;

  align-items: center !important;

  text-align: center !important;

}



/* العنوان والعنوان الفرعي: كل واحد بسطر وفي المنتصف */

body.index [class*="product-card"] [class*="content-title"],

body.index [class*="product-card"] h3,

body.index [class*="product-card"] [class*="subtitle"] {

  display: block !important;

  width: 100% !important;

  text-align: center !important;

  margin-inline: auto !important;

}

body.index [class*="product-card"] [class*="subtitle"] {

  margin-top: 4px !important;

}/* توسيط السعر */

body.index [class*="product-card"] [class*="price"],

body.index [class*="product-card"] *:has(> [class*="price"]) {

  display: flex !important;

  flex-direction: column !important;

  align-items: center !important;

  justify-content: center !important;

  text-align: center !important;

  width: 100% !important;

}



/* إخفاء أيقونة العين (العرض السريع) */

body.index [class*="product-card"] [class*="quick"],

body.index [class*="product-card"] [class*="eye"],

body.index [class*="product-card"] button:has(.sicon-eye),

body.index [class*="product-card"] a:has(.sicon-eye),

body.index [class*="product-card"] *:has(> .sicon-eye),

body.index salla-quick-view {

  display: none !important;

}

/* الحاوية: الأسعار تحت بعض في المنتصف */

body.index [class*="product-card"] *:has(> [class*="price"]),

body.index [class*="product-card"] [class*="price"]:has([class*="price"]) {

  display: flex !important;

  flex-direction: column !important;

  align-items: center !important;

  justify-content: center !important;

  width: 100% !important;

  text-align: center !important;

}



/* السعر نفسه: الرقم والريال في سطر واحد */

body.index [class*="product-card"] [class*="price"]:not(:has([class*="price"])) {

  display: inline-flex !important;

  flex-direction: row !important;

  align-items: center !important;

  justify-content: center !important;

  gap: 4px !important;

  width: auto !important;

}

/* عبارة الكاش باك أسفل الفوتر */

footer::after {

  content: "أرغد مايبيــع أرغد يبهــر ";

  display: block !important;

  text-align: center !important;

  font-family: "Lalezar", "Tajawal", inherit !important;

  font-size: 22px !important;

  font-weight: 900 !important;

  color: #1d9f9d !important;

  padding: 20px 16px 90px !important;

  line-height: 1.6 !important;