/* Add custom CSS styles below */ 
/* ===== الإصلاحات السابقة ===== */
.s-product-card-promotion-title {
  font-size: 11px !important;
  padding: 3px 8px !important;
  line-height: 1.4 !important;
  max-width: 70%;
}
.s-product-card-content-title a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
  font-size: 14px !important;
  line-height: 1.4 !important;
}
.s-product-card-entry .s-button-element {
  font-size: 13px !important;
  padding-inline: 8px !important;
  white-space: nowrap;
}

/* ===== تنقل سلس ===== */
html { scroll-behavior: smooth; }
body { animation: tm-page .6s ease both; }
@keyframes tm-page { from { opacity: 0; } to { opacity: 1; } }
::selection { background: #004d73; color: #fff; }

/* ===== بطاقة المنتج الفاخرة ===== */
.s-product-card-entry {
  border-radius: 18px !important;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0, 77, 115, .10);
  box-shadow: 0 6px 18px rgba(0, 40, 65, .08);
  transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s ease;
  animation: tm-rise .7s cubic-bezier(.2, .7, .2, 1) both;
}
.s-product-card-entry:hover,
.s-product-card-entry:active {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(0, 77, 115, .22);
}
.s-product-card-entry img {
  transition: transform .8s cubic-bezier(.2, .7, .2, 1);
}
.s-product-card-entry:hover img { transform: scale(1.06); }

/* السعر والزر */
.s-product-card-price,
.s-product-card-sale-price { color: #004d73; font-weight: 700; }
.s-product-card-entry .s-button-element {
  border-radius: 12px !important;
  transition: background .3s ease, color .3s ease, transform .2s ease;
}
.s-product-card-entry .s-button-element:hover {
  background: #004d73 !important;
  color: #fff !important;
}
.s-product-card-entry .s-button-element:active { transform: scale(.97); }

/* ظهور المنتجات تدريجيًا */
@keyframes tm-rise {
  from { opacity: 0; transform: translateY(28px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
.s-product-card-entry:nth-child(2) { animation-delay: .08s; }
.s-product-card-entry:nth-child(3) { animation-delay: .16s; }
.s-product-card-entry:nth-child(4) { animation-delay: .24s; }

/* ذكي: يظهر المنتج عند وصولك له أثناء التمرير (بدون جافاسكربت) */
@supports (animation-timeline: view()) {
  .s-product-card-entry {
    animation: tm-rise linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 45%;
    animation-delay: 0s !important;
  }
}

/* وضوح عند التنقل بلوحة المفاتيح */
a:focus-visible, button:focus-visible {
  outline: 2px solid #4fd1ff;
  outline-offset: 3px;
}


/* احترام من يفضّل تقليل الحركة */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
}

[class*="s-block"] {
  margin-top: 0 !important;
  margin-bottom: 14px !important;
}
[class*="s-block"]:empty {
  display: none !important;
}



}