:root {
  --kova-dark:        #171717;   /* لون الأزرار والسعر والأيقونات */
  --kova-dark-hover:  #333333;
  --kova-old-price:   #9ca3af;   /* السعر القديم المشطوب */
  --kova-card-bg:     #ffffff;
  --kova-img-bg:      #f4f4f5;   /* خلفية صورة المنتج */
  --kova-border:      #ececec;
  --kova-radius:      18px;
  --kova-heart:       #e11d48;   /* لون القلب عند التفعيل */
  --kova-star:        #f5a623;   /* لون نجوم التقييم */
}

.whatsapp-icon {
position: fixed;
bottom: 20px;
right: 20px;
background-color: #25D366;
color: white;
font-size: 28px;
padding: 11px;
border-radius: 50%;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
transition: transform 0.3s ease-in-out;
text-align: center;
z-index: 1;
}

.whatsapp-icon::before {
content: "";
position: absolute;
top: 50%;
left: 50%;
width: 60px;
height: 60px;
background-color: rgba(37, 211, 102, 0.5);
border-radius: 50%;
transform: translate(-50%, -50%);
z-index: -1;
animation: pulse-animation 1.5s infinite;
}

@keyframes pulse-animation {
0% {
transform: translate(-50%, -50%) scale(1);
opacity: 0.7;
}
50% {
transform: translate(-50%, -50%) scale(1.4);
opacity: 0;
}
100% {
transform: translate(-50%, -50%) scale(1);
opacity: 0;
}
}

.whatsapp-icon:hover {
transform: scale(1.1);
}

/* ═══════════════════ 1) البنرات بعرض الشاشة ═══════════════════ */
.s-block--fixed-banner .container {
  max-width: 100% !important;
  width: 100% !important;
  padding-inline: 0 !important;
}
.s-block--fixed-banner .banner--fixed {
  border-radius: 0 !important;
  display: block !important;
  line-height: 0 !important;
}
.s-block--fixed-banner .banner--fixed picture,
.s-block--fixed-banner .banner--fixed img {
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

/* ═══════════════ 2) تحويل السلايدر إلى شبكة (عمودين) ═══════════════ */
.s-products-slider-wrapper .swiper-wrapper {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 22px !important;
  transform: none !important;
  transition: none !important;
  width: 100% !important;
}
.s-products-slider-wrapper .swiper-slide {
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
}
/* إخفاء أسهم التنقل لأنها بقت شبكة ثابتة */
.s-products-slider-wrapper .s-slider-block__title-nav,
.s-products-slider-wrapper .s-slider-block__title-left {
  display: none !important;
}

/* ═══════════ بطاقة المنتج بشكل أفقي (أكبر من الأول) ═══════════ */
.s-product-card-entry.s-product-card-vertical {
  display: flex !important;
  flex-direction: row !important;      /* في RTL: الصورة يمين والمحتوى شمال */
  align-items: stretch !important;
  min-height: 230px !important;        /* يخلي الكارت أكبر */
  background: var(--kova-card-bg) !important;
  border: 1px solid var(--kova-border) !important;
  border-radius: var(--kova-radius) !important;
  overflow: hidden !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .03) !important;
  transition: box-shadow .25s ease, transform .25s ease !important;
}
.s-product-card-entry.s-product-card-vertical:hover {
  box-shadow: 0 14px 34px rgba(0, 0, 0, .10) !important;
  transform: translateY(-3px) !important;
}

/* ---- صورة المنتج (على اليمين) — أكبر ---- */
.s-product-card-entry .s-product-card-image {
  width: 47% !important;
  flex: 0 0 47% !important;
  background: var(--kova-img-bg) !important;
  position: relative !important;
  padding: 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}
.s-product-card-entry .s-product-card-image > a {
  width: 100% !important;
  height: 100% !important;
  min-height: 200px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.s-product-card-entry .s-product-card-image-cover {
  width: 100% !important;
  height: 100% !important;
  max-height: 245px !important;
  object-fit: contain !important;
  mix-blend-mode: multiply !important;   /* يدمج خلفية الصور مع الرمادي */
  transition: transform .35s ease !important;
}
.s-product-card-entry:hover .s-product-card-image-cover {
  transform: scale(1.05) !important;
}

/* ---- المحتوى (على الشمال) ---- */
.s-product-card-entry .s-product-card-content {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 20px !important;
  min-width: 0 !important;
}
.s-product-card-entry .s-product-card-content-title a {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--kova-dark) !important;
  line-height: 1.55 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

/* السعر */
.s-product-card-entry .s-product-card-price,
.s-product-card-entry .s-product-card-sale-price h4 {
  font-size: 22px !important;
  font-weight: 800 !important;
  color: var(--kova-dark) !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}
.s-product-card-entry .s-product-card-sale-price {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}
.s-product-card-entry .s-product-card-sale-price span {
  font-size: 14px !important;
  color: var(--kova-old-price) !important;
  text-decoration: line-through !important;
  font-weight: 500 !important;
}

/* التقييم */
.s-product-card-entry .s-product-card-rating {
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
  font-size: 13px !important;
  color: #6b7280 !important;
}
.s-product-card-entry .s-product-card-rating .sicon-star2 { color: var(--kova-star) !important; }

/* شارة العرض / الشحن المجاني فوق الصورة */
.s-product-card-entry .s-product-card-promotion-title {
  position: absolute !important;
  top: 12px !important;
  inset-inline-start: 12px !important;
  background: rgba(23, 23, 23, .92) !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  padding: 4px 11px !important;
  border-radius: 999px !important;
  z-index: 3 !important;
  max-width: calc(100% - 24px) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* زر المفضلة (القلب) — دائري فوق الصورة */
.s-product-card-entry .s-product-card-image salla-button.s-product-card-wishlist-btn {
  position: absolute !important;
  top: 12px !important;
  inset-inline-end: 12px !important;
  z-index: 4 !important;
}
.s-product-card-entry button.s-product-card-wishlist-btn {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  border-radius: 50% !important;
  border: 1px solid var(--kova-border) !important;
  background: #fff !important;
  color: #4b5563 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: color .2s ease, border-color .2s ease !important;
}
.s-product-card-entry button.s-product-card-wishlist-btn:hover,
.s-product-card-entry .s-product-card-wishlist-btn.favorited button {
  color: var(--kova-heart) !important;
  border-color: #fca5a5 !important;
}

/* ═════════ زر «إضافة للسلة» — أسود + بعرض كامل + كتابة بيضاء واضحة ═════════ */
.s-product-card-entry .s-product-card-content-footer {
  margin-top: auto !important;
  display: block !important;
}
.s-product-card-entry .s-product-card-content-footer salla-add-product-button,
.s-product-card-entry .s-product-card-content-footer salla-add-product-button > div,
.s-product-card-entry .s-product-card-content-footer .w-full,
.s-product-card-entry .s-product-card-content-footer salla-button.s-button-wrap {
  display: block !important;
  width: 100% !important;
}
.s-product-card-entry .s-product-card-content-footer button.s-button-btn {
  width: 100% !important;
  height: 48px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  background: var(--kova-dark) !important;
  background-color: var(--kova-dark) !important;
  border: 1px solid var(--kova-dark) !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  transition: background .2s ease, transform .1s ease !important;
}
.s-product-card-entry .s-product-card-content-footer button.s-button-btn:hover {
  background: var(--kova-dark-hover) !important;
  background-color: var(--kova-dark-hover) !important;
}
.s-product-card-entry .s-product-card-content-footer button.s-button-btn:active {
  transform: scale(.98) !important;
}
/* تأكيد إن كل الكتابة والأيقونة جوه الزر بيضاء */
.s-product-card-entry .s-product-card-content-footer button.s-button-btn,
.s-product-card-entry .s-product-card-content-footer button.s-button-btn .s-button-text,
.s-product-card-entry .s-product-card-content-footer button.s-button-btn .s-button-text *,
.s-product-card-entry .s-product-card-content-footer button.s-button-btn i {
  color: #ffffff !important;
}

/* ═══════════════ 3) عناوين الأقسام في نص الصفحة ═══════════════ */
.s-products-slider-wrapper .s-slider-block__title {
  display: block !important;
  text-align: center !important;
  margin-bottom: 26px !important;
}
.s-products-slider-wrapper .s-slider-block__title-right {
  width: 100% !important;
  text-align: center !important;
}
.s-products-slider-wrapper .s-slider-block__title h2 {
  display: inline-block !important;
  font-size: 26px !important;
  font-weight: 800 !important;
  color: var(--kova-dark) !important;
  position: relative !important;
  padding-bottom: 12px !important;
}
.s-products-slider-wrapper .s-slider-block__title h2::after {
  content: "" !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  width: 52px !important;
  height: 3px !important;
  border-radius: 3px !important;
  background: var(--kova-dark) !important;
}

/* مسافات الأقسام */
.s-block--best-offers { padding-block: 30px !important; }

/* ═══════════════ 4) تحسين قسم مميزات الموقع ═══════════════ */
.s-block--features { padding-block: 36px !important; }
.s-block--features__item {
  background: #fff !important;
  border: 1px solid var(--kova-border) !important;
  border-radius: 16px !important;
  padding: 28px 18px !important;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 10px !important;
  transition: box-shadow .25s ease, transform .25s ease !important;
}
.s-block--features__item:hover {
  box-shadow: 0 14px 32px rgba(0, 0, 0, .08) !important;
  transform: translateY(-4px) !important;
}
.s-block--features .feature-icon {
  width: 66px !important;
  height: 66px !important;
  border-radius: 50% !important;
  background: var(--kova-dark) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 4px !important;
}
.s-block--features .feature-icon i {
  color: #fff !important;
  font-size: 27px !important;
}
.s-block--features__item h2 {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: var(--kova-dark) !important;
  margin: 0 !important;
}
.s-block--features__item p {
  font-size: 13.5px !important;
  color: #6b7280 !important;
  line-height: 1.7 !important;
  margin: 0 !important;
}

/* ═══════════════ 5) تحسين قسم آراء العملاء ═══════════════ */
.s-block--testimonials { padding-block: 36px !important; }
.s-block--testimonials .s-reviews-header-wrapper { text-align: center !important; }
.s-block--testimonials .s-reviews-header {
  display: inline-block !important;
  text-align: center !important;
  font-size: 26px !important;
  font-weight: 800 !important;
  color: var(--kova-dark) !important;
  position: relative !important;
  padding-bottom: 12px !important;
  margin-bottom: 28px !important;
}
.s-block--testimonials .s-reviews-header::after {
  content: "" !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 52px !important;
  height: 3px !important;
  border-radius: 3px !important;
  background: var(--kova-dark) !important;
}
.s-block--testimonials .s-reviews-testimonial { padding: 10px !important; }
.s-block--testimonials .s-reviews-testimonial__inner {
  background: #fff !important;
  border: 1px solid var(--kova-border) !important;
  border-radius: 18px !important;
  padding: 30px 28px !important;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .05) !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  gap: 22px !important;
}
.s-block--testimonials .s-reviews-testimonial__avatar img {
  width: 74px !important;
  height: 74px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 3px solid #f1f1f1 !important;
}
.s-block--testimonials .s-reviews-testimonial__text p {
  font-size: 15px !important;
  line-height: 1.9 !important;
  color: #374151 !important;
  margin-bottom: 12px !important;
}
.s-block--testimonials .s-reviews-testimonial__info h2 {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--kova-dark) !important;
}
.s-block--testimonials .s-reviews-testimonial__icon {
  position: absolute !important;
  top: 18px !important;
  inset-inline-start: 22px !important;
  opacity: .06 !important;
}
.s-block--testimonials .s-reviews-testimonial__icon svg {
  width: 46px !important;
  height: 46px !important;
}
/* نجوم التقييم باللون الذهبي */
.s-block--testimonials .s-rating-stars-selected svg { fill: var(--kova-star) !important; }

    .s-products-slider-card {
        max-width: 100% !important;
    }

/* ═══════════════════════════ الموبايل ═══════════════════════════ */
@media (max-width: 768px) {
  .s-products-slider-wrapper .swiper-wrapper {
    grid-template-columns: 1fr !important;   /* عمود واحد */
    gap: 14px !important;
  }
  .s-product-card-entry.s-product-card-vertical { min-height: 180px !important; }
  .s-product-card-entry .s-product-card-image {
    width: 40% !important;
    flex-basis: 40% !important;
    padding: 10px !important;
  }
  .s-product-card-entry .s-product-card-image > a { min-height: 150px !important; }
  .s-product-card-entry .s-product-card-content { padding: 14px !important; gap: 9px !important; }
  .s-product-card-entry .s-product-card-content-title a { font-size: 14px !important; }
  .s-product-card-entry .s-product-card-price,
  .s-product-card-entry .s-product-card-sale-price h4 { font-size: 19px !important; }
  .s-product-card-entry .s-product-card-content-footer button.s-button-btn {
    height: 44px !important; font-size: 13px !important;
  }
  .s-products-slider-wrapper .s-slider-block__title h2,
  .s-block--testimonials .s-reviews-header { font-size: 22px !important; }

  .s-block--testimonials .s-reviews-testimonial__inner {
    flex-direction: column !important;
    text-align: center !important;
    padding: 24px 18px !important;
    gap: 14px !important;
  }
  .s-block--testimonials .s-reviews-testimonial__name_wrapper { justify-content: center !important; }
  .s-block--features__item { padding: 22px 14px !important; }
}