/* ===== Al-Hadaf - Cashback Card (Salla custom CSS) ===== */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;700&display=swap');
.hd-cb-src { display: none !important; }

.hd-cb {
  --hd-green: #0d7a4a;
  --hd-green-dark: #064d2e;
  --hd-gold: #f2c14e;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 16px 0;
  width: 100%;
  box-sizing: border-box;
  flex: 0 0 100%;
  padding: 16px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--hd-green) 0%, var(--hd-green-dark) 100%);
  color: #fff;
  box-shadow: 0 8px 22px rgba(6, 77, 46, .35);
  direction: rtl;
  font-family: "IBM Plex Sans Arabic", sans-serif !important;
}
.hd-cb * { font-family: "IBM Plex Sans Arabic", sans-serif !important; }

/* subtle moving shine */
.hd-cb::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; width: 40%;
  left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.18), transparent);
  animation: hd-cb-shine 3.8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes hd-cb-shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }

.hd-cb__icon {
  flex: 0 0 auto;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(242, 193, 78, .16);
  border: 1px solid rgba(242, 193, 78, .5);
  color: var(--hd-gold);
}
.hd-cb__icon svg { width: 26px; height: 26px; }

.hd-cb__body { flex: 1 1 auto; min-width: 0; line-height: 1.35; }
.hd-cb__promo {
  display: inline-block;
  font-size: 13px; font-weight: 700;
  padding: 3px 10px; margin-bottom: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .25);
  color: #fff;
}
.hd-cb__label { font-size: 13px; opacity: .85; margin: 0 0 2px; }
.hd-cb__amount { font-size: 26px; font-weight: 700; color: var(--hd-gold); letter-spacing: .3px; }
.hd-cb__amount small { font-size: 15px; font-weight: 700; margin-inline-start: 4px; color: #fff; }
.hd-cb__note { font-size: 12.5px; opacity: .9; margin-top: 2px; }
.hd-cb__terms { font-size: 10px; opacity: .65; margin-top: 3px; }

.hd-cb__badge {
  flex: 0 0 auto;
  font-size: 22px; font-weight: 700;
  padding: 10px 22px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
  border-radius: 999px;
  background: var(--hd-gold);
  color: var(--hd-green-dark);
  white-space: nowrap;
}

@media (max-width: 480px) {
  .hd-cb { padding: 14px; gap: 10px; }
  .hd-cb__icon { width: 40px; height: 40px; }
  .hd-cb__amount { font-size: 22px; }
  .hd-cb__badge { font-size: 20px; padding: 10px 16px; }
}

@media (prefers-reduced-motion: reduce) { .hd-cb::after { animation: none; display: none; } }
/* ===== الهدف · عداد الخصم — النسخة 3 =====
   احذف كود العداد السابق (النسخة 2) بالكامل، والصق هذا مكانه (أسفل كود بطاقة الكاش باك).
   يغيّر الشكل فقط، ولا يمس الأرقام أو التاريخ. */

/* 1) صفحة المنتج: بطاقة بيضاء بنفس شكل مربعات تمارا وتابي */
salla-count-down .s-count-down-list {
  display: flex !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 12px 6px !important;
  list-style: none;
  background: #fff !important;
  border: 1px solid #d9e7de !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}
salla-count-down .s-count-down-item {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 2px 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
salla-count-down .s-count-down-item + .s-count-down-item {
  border-inline-start: 1px solid #e6efe9 !important;   /* فاصل رفيع بين الوحدات */
}
salla-count-down .s-count-down-item-value {
  color: #006C35 !important;
  font-size: 28px !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  font-variant-numeric: tabular-nums;                  /* أرقام بعرض ثابت لا تهتز */
}
salla-count-down .s-count-down-item-label {
  color: #6b7c72 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}

/* 2) بطاقات المنتجات: ألوان فقط، دون أي تغيير في توزيع الخانات (سبب مشكلة النسخة 2) */
:is(custom-salla-product-card, .s-product-card-entry) *:has(> salla-count-down),
:is(custom-salla-product-card, .s-product-card-entry) salla-count-down {
  background: #006C35 !important;
}
:is(custom-salla-product-card, .s-product-card-entry) salla-count-down .s-count-down-list {
  background: transparent !important;
  border: 0 !important;
}
:is(custom-salla-product-card, .s-product-card-entry) salla-count-down .s-count-down-item + .s-count-down-item {
  border-inline-start-color: rgba(255, 255, 255, .35) !important;
}
:is(custom-salla-product-card, .s-product-card-entry) salla-count-down .s-count-down-item-value {
  color: #fff !important;
  font-size: 18px !important;
}

@media (max-width: 420px) {
  salla-count-down .s-count-down-item-value { font-size: 24px !important; }
  :is(custom-salla-product-card, .s-product-card-entry) salla-count-down .s-count-down-item-value { font-size: 16px !important; }
}