/* Add custom CSS styles below */ 
.s-product-card-vertical h3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  line-height: 1.2em;
  max-height: 2.4em;
}

.s-product-card-content-subtitle {
  display: none !important;
}
.s-product-card-vertical img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}


.s-product-card-vertical .s-product-card-wishlist-btn {
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

.s-product-card-promotion-title,
.product-single__promotion-title,
.product-promotion-title,
[class*="promotion-title"],
[class*="promotion-badge"] {
  background-color: #e3689b !important;
  color: #ffffff !important;
  padding: 4px 10px !important;
  border-radius: 0px !important;
  font-weight: bold !important;
  display: inline-block !important;
}


.navbar-brand {
  position: relative !important;
  display: inline-block !important;
  right: 70% !important;
  transform: translateX(-50%) !important;
  text-align: center !important;
  margin: 0 auto !important;
}

.navbar-brand img {
  max-width: 140px !important;
  height: auto !important;
  display: inline-block !important;
}


button.s-button-btn.s-button-outline,
button.s-button-btn.s-button-outline:hover,
button.s-button-btn.s-button-outline:active,
button.s-button-btn.s-button-outline:focus,
.s-product-detail-add-to-cart-btn,
.s-product-detail-add-to-cart-btn-wrap button {
  background: #e3689b !important;
  background-color: #e3689b !important;
  color: #ffffff !important;
  border-color: #e3689b !important;
  box-shadow: none !important;
  
  /* إجبار النص على الظهور كاملاً ومنع الاختصار */
  white-space: normal !important;
  word-break: keep-all !important;
  overflow: visible !important;
  text-overflow: clip !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  max-width: 100% !important;
  min-width: max-content !important;
}

button.s-button-btn.s-button-outline .s-button-text,
button.s-button-btn.s-button-outline .s-button-text *,
button.s-button-btn.s-button-outline span,
.s-product-detail-add-to-cart-btn *,
.s-product-detail-add-to-cart-btn span {
  color: #ffffff !important;
  white-space: normal !important;
  overflow: visible !important;
}



/* تطبيق الإطار والزوايا المتقابلة على كامل البطاقة */
.s-product-card-vertical {
  border: 1px solid #e3689b !important;
  border-radius: 25px 0px 25px 0px !important;
  overflow: hidden !important;
}

/* قَص حواف الصورة العلوية لتتماشى مع تدوير الزاوية العلوية اليمنى للبطاقة */
.s-product-card-image,
.s-product-card-image img,
.s-product-card-image-wrap {
  border-radius: 23px 0px 0px 0px !important;
  overflow: hidden !important;
}






/* الحاوية الخارجية - شفافة تماماً ولها أبعاد ثابتة تمنع الاختفاء */
.subcategories-bar {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 15px !important;
  align-items: flex-start !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  padding: 15px 5px !important;
  background: transparent !important; /* الخلفية العامة شفافة تماماً كما طلبت */
  border: none !important;
  box-shadow: none !important;
  margin-bottom: 20px !important;
  clear: both !important;
  direction: rtl !important;
  width: 100% !important;
  min-height: 110px !important;
}

/* إخفاء شريط التمرير السفلي تماماً */
.subcategories-bar::-webkit-scrollbar {
  display: none !important;
  height: 0px !important;
}
.subcategories-bar {
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}

/* حاوية الدائرة والنص */
.subcategory-circle-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 8px !important;
  text-decoration: none !important;
  flex: 0 0 auto !important;
  width: 75px !important;
  cursor: pointer !important;
}

/* الدائرة الملونة المحيطة بالصورة - تم تعديلها للون الوردي الفاخر */
.subcategory-image-wrapper {
  width: 65px !important;
  height: 65px !important;
  border-radius: 50% !important;
  padding: 3px !important;
  background: linear-gradient(to left, #ff69b4, #ffb6c1, #db7093) !important; /* تدرج وردي منوع وناعم */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: transform 0.2s ease !important;
}

/* الصورة داخل الدائرة */
.subcategory-image-wrapper img {
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  background: #fff !important;
  border: 2px solid #fff !important; /* الفاصل الأبيض ليعطي فخامة وبروز للشعار */
}

/* النص تحت الدائرة */
.subcategory-circle-title {
  color: #222 !important; /* لون نص غامق وواضح للأقسام */
  font-size: 12px !important;
  font-weight: 600 !important;
  text-align: center !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  width: 100% !important;
}


/* رفع شريط المنتج الملتصق ليكون فوق أزرار التنقل السفلية */
.sticky-product-bar,
section.sticky-product-bar {
  bottom: 60px !important; /* رفعه بمقدار كافٍ يمنع التداخل */
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.08) !important; /* إضافة ظل خفيف ليميزه عن الخلفية */
}



/* رفع نافذة تسجيل الدخول المنبثقة لتظهر فوق شريط التنقل السفلي */
.s-modal-body.s-modal-xs {
  bottom: 65px !important; /* رفع النافذة بمقدار يتناسب مع طول الشريط */
  position: relative !important;
}

/* ضبط موضع النافذة على الجوال لضمان الارتفاع الصحيح */
@media (max-width: 768px) {
  .s-modal-body {
    transform: translateY(-25px) !important; /* دفع إضافي للأعلى عند فتحها على الشاشات الصغيرة */
  }
}