body{
  background: #F3F6FC;
}
.banner--fixed img,
.banner-entry {
  background: transparent;
}
/* 4 كروت جمب بعض (ديسكتوب) */
.s-block--square-photos > div.grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
}

/* تابلت: 2 في الصف */
@media (max-width: 1024px) {
  .s-block--square-photos > div.grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
}


@media (max-width: 640px) {
  .s-block--square-photos > div.grid {
    grid-auto-rows: auto !important;
    grid-template-rows: none !important;
    align-items: start !important;
    row-gap: 10px !important;
  }

  .s-block--square-photos .banner-entry.square-photos {
    height: 72px !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    transform: none !important;
    align-self: start !important;
  }

  /* ألغي أي إزاحة على أول عنصر أو العناصر الفردية */
  .s-block--square-photos .banner-entry.square-photos:nth-child(n) {
    margin-top: 0 !important;
    top: auto !important;
    transform: none !important;
  }
}
/* شيل الخلفية الرمادية بس */
.s-block--square-photos .banner-entry.square-photos {
  background-color: transparent !important;
}
/* ===== الكارت ===== */
.s-product-card-entry {
  background: #fff !important;
  border: 0 !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 18px rgba(31, 107, 255, 0.15) !important;
  transition: transform .25s ease, box-shadow .25s ease;
}

.s-product-card-entry:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 26px rgba(31, 107, 255, 0.28) !important;
}

/* ===== الصورة ===== */
.s-product-card-entry .s-product-card-image {
  position: relative;
  background: #fff !important;
  border-radius: 0 !important;
}

.s-product-card-entry .s-product-card-image-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== المحتوى ===== */
.s-product-card-entry .s-product-card-content {
  background: #fff !important;
  padding: 12px 14px 14px !important;
}

.s-product-card-entry .s-product-card-content-title,
.s-product-card-entry .s-product-card-content-title a {
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.6 !important;
  color: #1a1f36 !important;
}

/* ===== السعر ===== */
.s-product-card-entry .s-product-card-price {
  font-size: 17px !important;
  font-weight: 800 !important;
  color: #1a1f36 !important;
}

.s-product-card-entry .s-product-card-price .sicon-sar {
  font-size: 14px;
}

/* السعر القديم */
.s-product-card-entry .s-product-card-starting-price,
.s-product-card-entry .s-product-card-sale-price span,
.s-product-card-entry .s-product-card-price del {
  color: #e53935 !important;
  font-size: 12px !important;
  text-decoration: line-through;
}

/* ===== زرار أضف إلى السلة ===== */
.s-product-card-entry .s-button-element.s-button-btn.s-button-solid {
  background: #1F6BFF !important;
  border: 0 !important;
  color: #fff !important;
  width: 100% !important;
  height: 42px !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  transition: background .2s ease, box-shadow .2s ease;
}

.s-product-card-entry .s-button-element.s-button-btn.s-button-solid:hover {
  background: #1658d6 !important;
  box-shadow: 0 6px 16px rgba(31, 107, 255, 0.35);
}

/* ===== زرار القلب: فوق الصورة بدل ما يبقى جنب الزرار ===== */
.s-product-card-entry .s-product-card-image .s-button-wrap {
  position: absolute !important;
  top: 10px;
  left: 10px;
  z-index: 3;
}

.s-product-card-entry .s-product-card-image .s-product-card-wishlist-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0 !important;
  background: #fff !important;
  border: 0 !important;
  border-radius: 50% !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  color: #1a1f36 !important;
}

/* شيل القلب المكرر اللي جنب زرار السلة */
.s-product-card-entry .s-product-card-content-footer .s-product-card-wishlist-btn {
  display: none !important;
}

.s-product-card-entry .s-product-card-content-footer > div {
  width: 100%;
}

/* ===== بادج الخصم ===== */
.s-product-card-entry .s-product-card-promotion-title,
.s-product-card-entry .s-product-card-badge {
  background: #e53935 !important;
  color: #fff !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}
/* فوتر أبيض بالكامل */
.store-footer,
.store-footer__inner,
.store-footer__inner > .container,
.store-footer__brand,
.store-footer__contact-list,
.store-footer__bottom,
footer.store-footer > div {
  background: #fff !important;
  background-color: #fff !important;
}

/* لو الخلفية جاية من الـ footer tag نفسه أو من أي سكشن جواه */
footer,
footer > div,
footer > div > div {
  background-color: #fff !important;
}

/* ===== كل الكروت بنفس الارتفاع ===== */
.s-products-carousel__slide,
.s-products-slider-slide,
.s-products-list-wrapper > div {
  height: auto !important;
  display: flex !important;
}

.s-product-card-entry {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  width: 100%;
}

/* ===== الصورة: نفس المقاس دايمًا ===== */
.s-product-card-entry .s-product-card-image {
  flex-shrink: 0;
}

.s-product-card-entry .s-product-card-image > a > div {
  aspect-ratio: 1 / 1 !important;
  width: 100%;
}

/* ===== المحتوى ياخد المساحة المتبقية ===== */
.s-product-card-entry .s-product-card-content {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
}

/* ===== العنوان: سطرين بس والباقي ... ===== */
.s-product-card-entry .s-product-card-content-title {
  margin: 0 0 6px !important;
}

.s-product-card-entry .s-product-card-content-title a {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.6 !important;
  min-height: calc(1.6em * 2) !important; /* يحجز مكان سطرين حتى لو العنوان قصير */
  max-height: calc(1.6em * 2) !important;
}

/* ===== السعر ===== */
.s-product-card-entry .s-product-card-content-sub {
  margin-bottom: 10px !important;
}

/* ===== الفوتر (زرار السلة) ينزل لآخر الكارت ===== */
.s-product-card-entry .s-product-card-content-footer {
  margin-top: auto !important;
}

/* ===== فون: تصغير بسيط عشان الكروت تبان متناسقة ===== */
@media (max-width: 640px) {
  .s-product-card-entry .s-product-card-content {
    padding: 10px 10px 12px !important;
  }

  .s-product-card-entry .s-product-card-content-title a {
    font-size: 13px !important;
  }

  .s-product-card-entry .s-product-card-price {
    font-size: 15px !important;
  }

  .s-product-card-entry .s-button-element.s-button-btn.s-button-solid {
    height: 38px !important;
    font-size: 13px !important;
  }
}