/* تصغير الفوتر على الشاشات الصغيرة (أقل من 640px) */
@media (max-width: 639px) {

  /* مسافات الفوتر العامة */
  footer.store-footer {
    padding-top: 10px !important;
  }
  footer.store-footer .store-footer__inner {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }

  /* تقليل المسافات بين بلوكات الفوتر */
  footer.store-footer .store-footer__inner .container {
    gap: 12px !important;      /* بدل gap-4 */
    row-gap: 12px !important;
  }

  /* العناوين */
  footer.store-footer h3 {
    font-size: 14px !important;
    margin-bottom: 8px !important;
  }

  /* روابط الفوتر (كانت mb-5) */
  footer.store-footer .footer-list a {
    margin-bottom: 10px !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
  }

  /* وصف المتجر */
  footer.store-footer .footer-description {
    margin-top: 6px !important;
    margin-bottom: 10px !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
  }

  /* اللوجو */
  footer.store-footer a img.img-fluid {
    height: 48px !important;
    width: auto !important;
  }

  /* شارة/بادجات الثقة */
  footer.store-footer .footer-badges {
    gap: 6px !important;
  }
  footer.store-footer .s-trust-badges-image {
    width: 42px !important;
    height: 42px !important;
  }
  footer.store-footer .s-trust-badges-label {
    font-size: 11px !important;
  }
  footer.store-footer .s-trust-badges-number {
    font-size: 12px !important;
  }

  /* صف التواصل */
  footer.store-footer .store-footer__contacts-row {
    padding: 8px 0 !important;
  }
  footer.store-footer .enhanced_rounded_contacts {
    gap: 6px !important;
  }
  footer.store-footer .enhanced-contact-item {
    padding: 6px 8px !important;
    font-size: 12px !important;
  }

  /* أسفل الفوتر (الحقوق + الدفع) */
  footer.store-footer .footer-bottom .container {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }
  footer.store-footer .footer-rights,
  footer.store-footer .footer-rights p {
    font-size: 12px !important;
    margin-bottom: 6px !important;
    line-height: 1.3 !important;
  }

  /* أيقونات الدفع */
  footer.store-footer .s-payments-list img {
    width: 34px !important;
    height: 34px !important;
  }

  /* المنحنى العلوي للفوتر (SVG) خليّه أصغر */
  footer.store-footer .store-footer__curve {
    height: 10px !important;
    margin-top: -8px !important;
  }
}
/* @media (max-width: 639px) {
  footer.store-footer .store-footer__curve { display: none !important; }
} */

/* ========== Product Card Enhancement (Salla) ========== */

/* الكارت نفسه: بوردر خفيف + shadow-xs + حركة بسيطة */
custom-salla-product-card.product-card{
  border: 1px solid rgba(15, 23, 42, .08) !important;   /* light border */
  box-shadow: 0 1px 2px rgba(15, 23, 42, .08) !important; /* shadow-xs */
  background: #fff !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

custom-salla-product-card.product-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, .10) !important; /* still light */
  border-color: rgba(15, 23, 42, .14) !important;
}

/* منطقة الصورة: ترتيب وتهوية أفضل */
custom-salla-product-card.product-card .product-card__image{
  position: relative;
  background: #fff;
  padding: 10px;
}

custom-salla-product-card.product-card .product-card__image img.main-image{
  border-radius: 12px;
  transition: transform .2s ease, opacity .2s ease;
}

custom-salla-product-card.product-card:hover .product-card__image img.main-image{
  transform: scale(1.02);
  opacity: .95;
}

/* شارة الاسم (promotion) أجمل ومثبتة */
custom-salla-product-card.product-card .product-card__promotion{
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #111;
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
}

/* أزرار القلب والعين: شكل أنظف وخلفية خفيفة */
custom-salla-product-card.product-card .product-card__actions{
  gap: 8px;
}

custom-salla-product-card.product-card .product-card__actions .s-button-element{
  background: rgba(255,255,255,.92) !important;
  border: 1px solid rgba(15, 23, 42, .10) !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .08) !important;
  border-radius: 999px !important;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

custom-salla-product-card.product-card .product-card__actions .s-button-element:hover{
  transform: translateY(-1px);
  background: #fff !important;
  border-color: rgba(15, 23, 42, .16) !important;
}

/* محتوى الكارت: padding وتوسيط أجمل */
custom-salla-product-card.product-card .product-card__content{
  padding: 10px 12px 12px !important;
}

custom-salla-product-card.product-card .product-card__title a{
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
  font-weight: 800;
}

/* سطر سنة الصنع */
custom-salla-product-card.product-card .product-card__subtitle{
  margin-bottom: 8px !important;
  opacity: .85;
}

/* السعر: وضوح أكثر ومسافات ألطف */
custom-salla-product-card.product-card .product-card__price{
  margin-top: 4px;
  gap: 10px !important;
}

custom-salla-product-card.product-card .total-price{
  font-size: 18px !important;
}

custom-salla-product-card.product-card .before-price{
  font-size: 13px !important;
  opacity: .7;
}

/* الخصم: شارة صغيرة لطيفة */
custom-salla-product-card.product-card .product-card__discount{
  margin-top: 6px;
}

custom-salla-product-card.product-card .product-card__discount span{
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(220, 38, 38, .08);
  border: 1px solid rgba(220, 38, 38, .16);
}

/* زر إضافة للسلة (mini cart) */
custom-salla-product-card.product-card .product-card__mini-cart .s-button-element{
  border-radius: 12px !important;
  border: 1px solid rgba(15, 23, 42, .12) !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .08) !important; /* shadow-xs */
}

custom-salla-product-card.product-card .product-card__mini-cart .s-button-element:hover{
  border-color: rgba(15, 23, 42, .18) !important;
}

/* لو فيه زر AddToCart داخل الصورة (بعض الثيمات)، خلي شكله أنظف */
custom-salla-product-card.product-card .product-card__addToCart .s-button-element{
  border-radius: 12px !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .08) !important;
}

@media (max-width: 991px) {
    .product-single .phone-selia.wa-enabled {
        bottom: 221px;
    }
}