/* =========================
   تحسينات عامة + إصلاحات
   ========================= */

/* اجعل النصوص وسط وحجم موحد بدون مبالغة بالـ !important */
.s-product-card-content-title a,
.s-product-card-content-subtitle{
  text-align:center;
  font-size:1rem;
}

/* محاذاة القائمة */
.main-menu,
.s-product-card-content-sub{
  justify-content:center;
}

/* مسافات السلايدر */
.swiper-wrapper{
  margin:30px 0;
}

/* السعر */
.s-product-card-price,
.s-product-card-sale-price *{
  font-size:1rem;
}

/* كرت المنتج */
.s-product-card-entry,
salla-products-list{
  padding:10px;
}

.s-product-card-entry{
  outline:1px solid var(--color-primary);
  transition:transform .2s ease, box-shadow .2s ease;
}
.s-product-card-entry:hover{
  transform:translateY(-4px);
  box-shadow:0 10px 20px rgba(0,0,0,.08);
}

/* صور المنتج (ارتفاع متوازن) */
.s-product-card-image{ flex:unset; }

.s-product-card-fit-height .s-product-card-image{
  max-height:21rem;
  height:470px;
}
@media (max-width: 640px){
  .s-product-card-fit-height .s-product-card-image{
    max-height:11rem;
    height:166px;
  }
}

/* =========================
   تحسين عرض الهيدر/الحاويات
   ========================= */
@media (min-width: 640px){
  #mainnav .container,
  .s-block.s-block--banners.container{
    width:85%;
    max-width:1200px; /* بديل منطقي بدل 850% */
  }
}

/* =========================
   أزرار الشراء (تدرج أزرق + نبض)
   ========================= */

/* زر "إضافة إلى السلة" داخل كرت المنتج */
button.undefined.s-button-element.s-button-btn.s-button-outline.s-button-wide.s-button-primary-outline.s-button-loader-center{
  padding-right:0;
  padding-left:0;
  font-size:1rem;
  color:#fff;
  text-align:center;
  font-weight:700;
  border-radius:19px;
  box-shadow:0 2px 4px rgba(0,0,0,.15), 0 7px 13px -3px rgba(0,0,0,0), 0 -3px 0 inset rgba(255,255,255,.66);

  /* ✅ تدرج أزرق متحرك */
  background-image:linear-gradient(-225deg,
    #0ea5ff 1%,
    rgba(0,140,255,.85) 45%,
    #083a78 100%
  );
  background-size:200% auto;
  animation:textclip 4s linear infinite, signal 1200ms infinite;
}

/* زر إضافة للسلة داخل صفحة المنتج (احتياط لاختلاف القوالب) */
salla-add-product-button .s-button-primary,
salla-add-product-button button,
.product-cart-add button,
button.s-button-primary,
body.product-single button.s-button-primary{
  color:#fff !important;
  border-radius:19px !important;

  /* ✅ نفس التدرج الأزرق */
  background-image:linear-gradient(-225deg,
    #0ea5ff 1%,
    rgba(0,140,255,.85) 45%,
    #083a78 100%
  ) !important;
  background-size:200% auto !important;
  animation:textclip 4s linear infinite, signal 1200ms infinite !important;
  border:0 !important;
}

/* keyframes موحّد */
@keyframes textclip{
  to{ background-position:200% center; }
}

/* ✅ نبض/Glow أزرق */
@keyframes signal{
  0%{ box-shadow:0 0 0 0 rgba(0,140,255,.35); }
  100%{ box-shadow:0 0 0 7px rgba(0,140,255,.10);