/* === Product card image: fill the full card without left gap === */
.slide--one-fourth custom-salla-product-card .product-entry__image,
.slide--one-fourth custom-salla-product-card .product-entry__image > a,
.slide--one-fourth custom-salla-product-card .product-slider,
.slide--one-fourth custom-salla-product-card .product-slider .s-slider-wrapper,
.slide--one-fourth custom-salla-product-card .product-slider .s-slider-container,
.slide--one-fourth custom-salla-product-card .product-slider .swiper-wrapper,
.slide--one-fourth custom-salla-product-card .product-slider .swiper-slide {
  box-sizing: border-box;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* أوقف سلوك السلايدر داخل الكارت */
.slide--one-fourth custom-salla-product-card .product-slider .s-slider-container .swiper-wrapper {
  transform: none !important;
  display: block !important;
}
.slide--one-fourth custom-salla-product-card .product-slider .swiper-pagination,
.slide--one-fourth custom-salla-product-card .product-slider .swiper-button-prev,
.slide--one-fourth custom-salla-product-card .product-slider .swiper-button-next {
  display: none !important;
}

/* الصورة نفسها تملأ الكارت */
.slide--one-fourth custom-salla-product-card .product-slider .swiper-slide img {
  display: block !important;
  width: 100% !important;
  max-width: none !important;   /* يلغي أي max-width من الثيم */
  height: auto !important;
  margin: 0 !important;
  object-fit: cover;            /* يملأ الإطار بدون فراغات */
  object-position: center;      /* وسط الصورة */
}

/* في بعض الثيمات بيبقى فيه padding على رابط الصورة */
.slide--one-fourth custom-salla-product-card .product-entry__image > a.relative {
  display: block !important;
  padding: 0 !important;
}

/* اختياري: توحيد ارتفاع الكروت بنسبة أبعاد ثابتة (يرسّم مساحة للصورة) */
.slide--one-fourth custom-salla-product-card .product-entry__image {
  aspect-ratio: 1 / 1;          /* جرّب 4/5 أو 3/4 حسب تصميمك */
  overflow: hidden;              /* يخفي أي بروز للصورة مع cover */
}

/* موبايل: اعرض الصورة كاملة بدون قص لو تحب */
@media (max-width: 768px) {
  .slide--one-fourth custom-salla-product-card .product-entry__image {
    aspect-ratio: auto;          /* سيب الارتفاع يتحدد طبيعي في الموبايل */
  }
  .slide--one-fourth custom-salla-product-card .product-slider .swiper-slide img {
    object-fit: contain !important;
    height: auto !important;
  }
}





/* =========================
   1) إلغاء الانيميشن/اللمعة على حواف الكارت نهائيًا
   ========================= */

/* بعض الثيمات بتستخدم متغيّر للّمعان المستمر */
.slide--one-fourth {
  --infinte-color: transparent !important; /* spelling حسب الثيم عندك */
}

/* شيل أي تأثير/Gradient/Mask أو حركة على البوردر */
.slide--one-fourth .product-entry,
.slide--one-fourth .product-entry::before,
.slide--one-fourth .product-entry::after,
.slide--one-fourth .card-border,
.slide--one-fourth .card-border::before,
.slide--one-fourth .card-border::after,
.slide--one-fourth .group:hover .card-border,
.slide--one-fourth .group:focus .card-border,
.slide--one-fourth .group:active .card-border,
.slide--one-fourth .product-entry:hover .card-border,
.slide--one-fourth .product-entry:focus .card-border,
.slide--one-fourth .product-entry:active .card-border,
.slide--one-fourth .product-entry:focus-visible .card-border {
  animation: none !important;
  transition: none !important;
  transform: none !important;

  background: none !important;
  background-image: none !important;
  background-size: auto !important;
  background-position: center !important;

  -webkit-mask: none !important;
  mask: none !important;

  box-shadow: none !important;
  outline: none !important;
  border: 1px solid rgba(0,0,0,0.12) !important; /* ثابت وناعم */
  border-radius: 14px !important;
}

/* إطفاء أي ring/focus من تايلويند */
.slide--one-fourth .product-entry {
  --tw-ring-color: transparent !important;
  --tw-ring-offset-width: 0 !important;
  --tw-ring-offset-color: transparent !important;
  --tw-ring-shadow: 0 0 transparent !important;
}

/* كسر أي keyframes محتملة باسم شائع */
@keyframes moving-border { from {opacity:1;} to {opacity:1;} }
@-webkit-keyframes moving-border { from {opacity:1;} to {opacity:1;} }

/* =========================
   2) تنحيف الكارت وتطويله سنة
   ========================= */

/* خليه أرفع من الافتراضي (كان ~250px) */
.slide--one-fourth .product-entry {
  max-width: 210px !important;               /* جرّب 200–220 حسب ذوقك */
  margin-inline: auto;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}

/* خلي الصورة طولها أكبر شوية (إحساس "كارت رفيع طويل") */
.slide--one-fourth .product-entry__image {
  aspect-ratio: 2 / 3 !important;            /* أطول من 1:1؛ جرّب 9/14 لو عايز أطول */
}

/* صور السوايبر تملأ الإطار بدون تشويه */
.slide--one-fourth .product-entry__image .swiper-wrapper,
.slide--one-fourth .product-entry__image .swiper-slide {
  height: 100% !important;
}
.slide--one-fourth .product-entry__image .swiper-slide img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
}

/* تقليل البادنغ والخطوط لتأكيد النحافة */
.slide--one-fourth .s-product-card-content {
  padding: 8px 10px !important;
}
.slide--one-fourth .s-product-card-content-title a {
  font-size: 0.95rem !important;
  line-height: 1.28 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.slide--one-fourth .total-price { font-size: 1rem !important; }

/* موبايل: توازن أفضل */
@media (max-width: 768px) {
  .slide--one-fourth .product-entry { max-width: 78% !important; }
  .slide--one-fourth .product-entry__image { aspect-ratio: 10 / 16 !important; }
  .slide--one-fourth .s-product-card-content { padding: 8px 9px !important; }
}