/* =========================================
   كفو آي تي | KafuIT — تخصيص متقدم (CSS)
   ثيم رائد — ألوان الهوية من الشعار
   ========================================= */

:root {
  --kafu-blue: #0A3DF0;      /* الأزرق الملكي (أسفل حرف K) */
  --kafu-cyan: #00D4FF;      /* السماوي (أعلى حرف K) */
  --kafu-navy: #0B1A4A;      /* الكحلي (حدود الشعار) */
  --kafu-gradient: linear-gradient(135deg, #00D4FF 0%, #0A3DF0 100%);
  --kafu-soft: rgba(10, 61, 240, .08);
  --kafu-radius: 14px;
}

/* ---------- 1) الأزرار الرئيسية بتدرّج الشعار ---------- */
.s-button-primary,
.btn--primary,
salla-add-product-button .s-button-primary {
  background: var(--kafu-gradient) !important;
  border: none !important;
  color: #fff !important;
  font-weight: 700 !important;
  transition: filter .2s ease, transform .2s ease;
}
.s-button-primary:hover,
.btn--primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* ---------- 2) بطاقات المنتجات ---------- */
.s-product-card-entry {
  border-radius: var(--kafu-radius) !important;
  border: 1px solid rgba(11, 26, 74, .08) !important;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
@media (hover: hover) {
  .s-product-card-entry:hover {
    transform: translateY(-4px);
    border-color: var(--kafu-cyan) !important;
    box-shadow: 0 10px 24px rgba(10, 61, 240, .15);
  }
}

/* اسم المنتج: كحلي وسطرين كحد أقصى */
.s-product-card-content-title,
.s-product-card-content-title a {
  color: var(--kafu-navy) !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.6;
}

/* السعر بالأزرق الملكي */
.s-product-card-price {
  font-weight: 700 !important;
  color: var(--kafu-blue) !important;
}

/* ملصق العرض (🎁 +60 شدة إضافية) بتدرّج الشعار */
.s-product-card-promotion-title {
  background: var(--kafu-gradient) !important;
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 11.5px !important;
  line-height: 1 !important;

  /* ارتفاع ثابت ومتناسق */
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 26px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;

  /* سطر واحد بدون التفاف، ولا يتجاوز عرض البطاقة */
  white-space: nowrap !important;
  max-width: calc(100% - 20px) !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;

  /* مسافة مريحة عن حواف الصورة */
  margin: 10px !important;
  box-shadow: 0 3px 8px rgba(10, 61, 240, .25);
}

@media (max-width: 480px) {
  .s-product-card-promotion-title {
    height: 22px !important;
    padding: 0 9px !important;
    font-size: 10.5px !important;
    margin: 8px !important;
  }
}

/* ---------- 3) صفحة المنتج: خانات الـ ID ---------- */
.s-product-options-option-label,
.s-product-options-option-label b {
  font-weight: 700 !important;
  color: var(--kafu-navy) !important;
}
.s-product-options-wrapper input[type="text"] {
  border: 2px solid var(--kafu-blue) !important;
  border-radius: 10px !important;
  font-size: 16px !important; /* يمنع تكبير الشاشة في الآيفون */
  letter-spacing: .5px;
  direction: ltr;
  text-align: left;
  background: #fff !important;
}
.s-product-options-wrapper input[type="text"]:focus {
  outline: none !important;
  border-color: var(--kafu-cyan) !important;
  box-shadow: 0 0 0 4px rgba(0, 212, 255, .22) !important;
}

/* ---------- 4) الروابط والعناوين ---------- */
.main-content h1,
.main-content h2 {
  color: var(--kafu-navy);
}
.product-description a,
.article-content a {
  color: var(--kafu-blue) !important;
  font-weight: 600;
}

/* ---------- 5) زر واتساب العائم (يُضاف من JS) ---------- */
/* يبقى أخضر لأن العملاء يعرفونه بلونه */
.kafu-wa {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 999;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  border: 3px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(11, 26, 74, .3);
  transition: transform .2s ease;
}
.kafu-wa:hover { transform: scale(1.08); }
.kafu-wa svg { width: 28px; height: 28px; fill: #fff; }

/* لا يغطي زر الشراء المثبّت في الجوال */
@media (max-width: 768px) {
  .kafu-wa { bottom: 90px; left: 14px; width: 50px; height: 50px; }
}