/* Add custom CSS styles below */ 
salla-button[product-id="1570919783"],
salla-button.s-button-wrap,
.s-add-product-button-mini,
.s-fast-checkout-button,
button.s-fast-checkout-button {
    background-color: #4CAF7D;
    background: #4CAF7D;
    border-color: #4CAF7D;
    color: #ffffff;
}

salla-button[product-id="1570919783"] *,
.s-fast-checkout-button * {
    color: #ffffff;
}

salla-button[product-id="1570919783"]:hover,
.s-fast-checkout-button:hover {
    background-color: #3e8e65;
    background: #3e8e65;
    border-color: #3e8e65;
}
/* ================================
   NiX 48 Pack Separate RTL Badges
================================ */

/* Reset old messy badge effects */
.s-product-card-entry .s-product-card-promotion-title::before,
.s-product-card-entry .s-product-card-promotion-title::after,
.s-product-card-entry .s-product-card-badge::before,
.s-product-card-entry .s-product-card-badge::after,
.s-product-card-entry .promotion-title::before,
.s-product-card-entry .promotion-title::after {
  content: none !important;
  display: none !important;
}

/* Normal badges for all other products */
.s-product-card-entry .s-product-card-promotion-title,
.s-product-card-entry .s-product-card-badge,
.s-product-card-entry .promotion-title {
  background: #4CAF7D !important;
  color: #ffffff !important;
  font-family: "Cairo", Arial, sans-serif !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  padding: 7px 12px !important;
  border-radius: 999px !important;
  box-shadow: 0 10px 24px rgba(76, 175, 125, 0.28) !important;
}

/* Target only 48-pack product */
.s-product-card-entry:has(a[href*="48"]) {
  position: relative !important;
  overflow: visible !important;
}

/* Hide the original badge box on 48 product */
.s-product-card-entry:has(a[href*="48"]) .s-product-card-promotion-title,
.s-product-card-entry:has(a[href*="48"]) .s-product-card-badge,
.s-product-card-entry:has(a[href*="48"]) .promotion-title {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  left: auto !important;
  z-index: 9999 !important;

  width: auto !important;
  max-width: 150px !important;

  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  padding: 0 !important;

  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
}

/* Create visually separate stacked badges */
.s-product-card-entry:has(a[href*="48"]) .s-product-card-promotion-title::after,
.s-product-card-entry:has(a[href*="48"]) .s-product-card-badge::after,
.s-product-card-entry:has(a[href*="48"]) .promotion-title::after {
  content: "الأكثر طلبًا\A شحن مجاني\A جلسة إرشادية للمنتج" !important;

  display: inline !important;
  white-space: pre-line !important;
  direction: rtl !important;
  text-align: center !important;

  color: #ffffff !important;
  background: #4CAF7D !important;

  font-family: "Cairo", Arial, sans-serif !important;
  font-size: 10.5px !important;
  font-weight: 900 !important;
  line-height: 2.45 !important;

  padding: 4px 10px !important;
  border-radius: 999px !important;

  box-decoration-break: clone !important;
  -webkit-box-decoration-break: clone !important;

  filter: drop-shadow(0 10px 22px rgba(76, 175, 125, 0.34)) !important;
}

/* Mobile */
@media (max-width: 768px) {
  .s-product-card-entry:has(a[href*="48"]) .s-product-card-promotion-title,
  .s-product-card-entry:has(a[href*="48"]) .s-product-card-badge,
  .s-product-card-entry:has(a[href*="48"]) .promotion-title {
    top: 10px !important;
    right: 10px !important;
    left: auto !important;
    max-width: 145px !important;
  }

  .s-product-card-entry:has(a[href*="48"]) .s-product-card-promotion-title::after,
  .s-product-card-entry:has(a[href*="48"]) .s-product-card-badge::after,
  .s-product-card-entry:has(a[href*="48"]) .promotion-title::after {
    font-size: 10px !important;
    line-height: 3.02 !important;
    padding: 4px 9px !important;
  }
}
/* Reset old messy badge effects */
.s-product-card-entry .s-product-card-promotion-title::before,
.s-product-card-entry .s-product-card-promotion-title::after,
.s-product-card-entry .s-product-card-badge::before,
.s-product-card-entry .s-product-card-badge::after,
.s-product-card-entry .promotion-title::before,
.s-product-card-entry .promotion-title::after {
  content: none !important;
  display: none !important;
}

/* Normal badges for all other products */
.s-product-card-entry .s-product-card-promotion-title,
.s-product-card-entry .s-product-card-badge,
.s-product-card-entry .promotion-title {
  background: #4CAF7D !important;
  color: #ffffff !important;
  font-family: "Cairo", Arial, sans-serif !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  padding: 7px 12px !important;
  border-radius: 999px !important;
  box-shadow: 0 10px 24px rgba(76, 175, 125, 0.28) !important;
}

/* Target 48-pack AND 72-pack products */
.s-product-card-entry:has(a[href*="48"]),
.s-product-card-entry:has(a[href*="1261613666"]) {
  position: relative !important;
  overflow: visible !important;
}

/* Hide the original badge box on targeted products */
.s-product-card-entry:has(a[href*="48"]) .s-product-card-promotion-title,
.s-product-card-entry:has(a[href*="48"]) .s-product-card-badge,
.s-product-card-entry:has(a[href*="48"]) .promotion-title,
.s-product-card-entry:has(a[href*="1261613666"]) .s-product-card-promotion-title,
.s-product-card-entry:has(a[href*="1261613666"]) .s-product-card-badge,
.s-product-card-entry:has(a[href*="1261613666"]) .promotion-title {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  left: auto !important;
  z-index: 9999 !important;

  width: auto !important;
  max-width: 150px !important;

  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  padding: 0 !important;

  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
}

/* Create visually separate stacked badges */
.s-product-card-entry:has(a[href*="1261613666"]) .s-product-card-promotion-title::after,
.s-product-card-entry:has(a[href*="1261613666"]) .s-product-card-badge::after,
.s-product-card-entry:has(a[href*="1261613666"]) .promotion-title::after {
  content: " أعلى توفير\A شحن مجاني\A جلسة إرشادية للمنتج" !important;

  display: inline !important;
  white-space: pre-line !important;
  direction: rtl !important;
  text-align: center !important;

  color: #ffffff !important;
  background: #4CAF7D !important;

  font-family: "Cairo", Arial, sans-serif !important;
  font-size: 10.5px !important;
  font-weight: 900 !important;
  line-height: 2.45 !important;

  padding: 4px 10px !important;
  border-radius: 999px !important;

  box-decoration-break: clone !important;
  -webkit-box-decoration-break: clone !important;

  filter: drop-shadow(0 10px 22px rgba(76, 175, 125, 0.34)) !important;
}

/* Mobile */
@media (max-width: 768px) {
  .s-product-card-entry:has(a[href*="48"]) .s-product-card-promotion-title,
  .s-product-card-entry:has(a[href*="48"]) .s-product-card-badge,
  .s-product-card-entry:has(a[href*="48"]) .promotion-title,
  .s-product-card-entry:has(a[href*="1261613666"]) .s-product-card-promotion-title,
  .s-product-card-entry:has(a[href*="1261613666"]) .s-product-card-badge,
  .s-product-card-entry:has(a[href*="1261613666"]) .promotion-title {
    top: 10px !important;
    right: 10px !important;
    left: auto !important;
    max-width: 145px !important;
  }

  .s-product-card-entry:has(a[href*="48"]) .s-product-card-promotion-title::after,
  .s-product-card-entry:has(a[href*="48"]) .s-product-card-badge::after,
  .s-product-card-entry:has(a[href*="48"]) .promotion-title::after,
  .s-product-card-entry:has(a[href*="1261613666"]) .s-product-card-promotion-title::after,
  .s-product-card-entry:has(a[href*="1261613666"]) .s-product-card-badge::after,
  .s-product-card-entry:has(a[href*="1261613666"]) .promotion-title::after {
    font-size: 10px !important;
    line-height: 3.02 !important;
    padding: 4px 9px !important;
  }
}
/* Reset old messy badge effects */
.s-product-card-entry .s-product-card-promotion-title::before,
.s-product-card-entry .s-product-card-promotion-title::after,
.s-product-card-entry .s-product-card-badge::before,
.s-product-card-entry .s-product-card-badge::after,
.s-product-card-entry .promotion-title::before,
.s-product-card-entry .promotion-title::after {
  content: none !important;
  display: none !important;
}

/* Normal badges for all other products */
.s-product-card-entry .s-product-card-promotion-title,
.s-product-card-entry .s-product-card-badge,
.s-product-card-entry .promotion-title {
  background: #4CAF7D !important;
  color: #ffffff !important;
  font-family: "Cairo", Arial, sans-serif !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  padding: 7px 12px !important;
  border-radius: 999px !important;
  box-shadow: 0 10px 24px rgba(76, 175, 125, 0.28) !important;
}
.s-product-card-button span, 
.s-add-to-cart-btn span {
    font-size: 0 !important;
}
salla-button,
.s-button-btn,
button.s-button-btn,
salla-add-product-button,
.s-add-product-button,
[class*="product-card-content-footer"] {
    background-color: #4CAF7D !important;
    background: #4CAF7D !important;
    border-color: #4CAF7D !important;
}

/* تلوين نصوص وأيقونات الزر باللون الأبيض لضمان وضوحها */
salla-button *,
.s-button-btn *,
salla-add-product-button * {
    color: #ffffff !important;
    fill: #ffffff !important;
}