/* متجر الوسام - تنسيق الهوية البصرية (مسودة)
   تُطبَّق يدوياً وبعد الاعتماد فقط، ويُفضَّل اختبارها على نسخة تجريبية من الثيم.
   أسماء الفئات (selectors) مأخوذة من هيكل ثيمات سلة المعتاد ولم أتحقق منها على صفحات متجرك،
   فراجعها بأداة فحص العناصر في المتصفح قبل التطبيق وعدّل ما لا يطابق. */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@600;700;800&family=Tajawal:wght@400;500;700&display=swap');

:root {
  --w-footer-bg: #176B52; /* لون الفوتر */
  --w-font-head: 'Cairo', 'Tajawal', sans-serif; /* خط العناوين: غيّره هنا */
  --w-font-body: 'Tajawal', 'Cairo', sans-serif; /* خط النصوص: غيّره هنا */
  --w-ink: #10201C;
  --w-emerald: #0E5A47;
  --w-emerald-deep: #0A3D31;
  --w-gold: #B8903A;
  --w-gold-light: #efc564;
  --w-ivory: #F7F3EA;
  --w-sand: #EAE3D3;
  --w-line: #D9D0BC;
  --w-muted: #55655F;
  --w-card: #FFFDF8;
}

body {
  background: var(--w-ivory);
  color: var(--w-ink);
  font-family: var(--w-font-body);
}

h1, h2, h3.section-title, .s-block__title h2, .s-block__title {
  font-family: var(--w-font-head);
  font-weight: 700;
  color: var(--w-ink);
}

/* عنوان القسم مع خط ذهبي */
.s-block__title h2::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 3px;
  background: var(--w-gold);
  margin-inline-end: 10px;
  vertical-align: middle;
}

/* الشريط العلوي */
.top-navbar {
  background: var(--w-emerald-deep);
  color: var(--w-ivory);
}
.top-navbar a { color: var(--w-ivory); }

/* الهيدر والقائمة */
.store-header, .main-nav-container {
  background: var(--w-card);
  border-bottom: 1px solid var(--w-line);
}
.main-menu a { font-weight: 500; }
.main-menu a:hover { color: var(--w-emerald); }

/* الأزرار */
.s-button-primary,
.btn--primary {
  background: var(--w-emerald);
  color: var(--w-ivory);
  border-radius: 4px;
  font-weight: 600;
}
.s-button-primary:hover { background: var(--w-emerald-deep); }

/* بطاقات المنتجات */
.s-product-card-entry {
  background: var(--w-card);
  border: 1px solid var(--w-line);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: none;
}
.s-product-card-image { background: var(--w-sand); }
.s-product-card-content-title a {
  font-weight: 500;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.s-product-card-price { color: var(--w-emerald-deep); font-weight: 600; }

/* الفوتر */
.store-footer {
  background: var(--w-emerald-deep);
  color: #DCE6E1;
}
.store-footer a { color: #DCE6E1; }
.store-footer a:hover { color: var(--w-gold-light); }
.store-footer h3, .store-footer .footer-title {
  font-family: var(--w-font-head);
  color: var(--w-gold-light);
}

/* الجوال: مسافات أنيقة وأهداف لمس لا تقل عن ٤٤ بكسل */
@media (max-width: 640px) {
  .s-button-primary { min-height: 44px; }
  .s-block__title h2 { font-size: 26px; }
}

/* ===== تصحيحات v2 بعد معاينة النسخة التجريبية ===== */

/* الفوتر: الخلفية لم تتغير وبقي النص فاتحاً عليها، فصار غير مقروء.
   نستهدف وسم footer نفسه وما بداخله بدل الاعتماد على اسم فئة غير مؤكد. */
footer,
footer > div,
footer > section,
footer .container {
  background-color: var(--w-footer-bg) !important;
}
footer,
footer p,
footer span,
footer li,
footer a {
  color: #ffffff !important;
}
footer a:hover { color: var(--w-gold-light) !important; }
footer h2, footer h3, footer h4 {
  color: var(--w-gold-light) !important;
  font-family: var(--w-font-head);
}

/* زر «أضف إلى السلة»: كان إطاراً أسود، نجعله زمردياً ثابتاً */
.s-product-card-content button,
.s-product-card-content .s-button-element,
.s-product-card-content [class*="s-button"] {
  background: var(--w-emerald) !important;
  color: var(--w-ivory) !important;
  border: 1px solid var(--w-emerald) !important;
  border-radius: 4px !important;
}
.s-product-card-content button:hover { background: var(--w-emerald-deep) !important; }

/* شارة المنتج: من العنابي إلى الذهبي */
.s-product-card-promotion-title,
[class*="promotion-title"] {
  background: var(--w-gold) !important;
  color: var(--w-ink) !important;
}

/* ===== v3: بطاقات منتجات أصغر وبلاطات تصنيفات أنيقة على الجوال ===== */

/* بطاقة المنتج: صورة أقصر، بلا وصف، خطوط ومسافات أصغر */
.s-product-card-entry .s-product-card-image {
  aspect-ratio: 4 / 5;
  max-height: 240px;
}
.s-product-card-entry .s-product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* نخفي الوصف فقط. السعر داخل .s-product-card-content-sub فلا نخفيه */
.s-product-card-description { display: none !important; }
.s-product-card-content-sub,
.s-product-card-price,
.s-product-card-sale-price,
.s-product-card-sale-price h4,
.s-product-card-sale-price span {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}
.s-product-card-content { padding: 10px 12px !important; gap: 6px; }
.s-product-card-content-title a { font-size: 14px; line-height: 1.5; }
.s-product-card-price { font-size: 15px; }
.s-product-card-content button,
.s-product-card-content [class*="s-button"] {
  min-height: 40px;
  font-size: 13px;
}
@media (max-width: 640px) {
  .s-product-card-entry .s-product-card-image { max-height: 190px; }
  .s-product-card-content-title a { font-size: 13px; }
}

/* =====================================================================
   v4: بطاقة المنتج، الأزرار، أيقونات التواصل، وتصنيفات دائرية متحركة
   (يُلصق الملف كاملاً مكان v3 في خانة CSS للنسخة التجريبية فقط)
   ===================================================================== */

:root {
  --w-shadow: 0 8px 22px rgba(10, 61, 49, .16);
  --w-shadow-lg: 0 14px 30px rgba(10, 61, 49, .24);
  --w-gold-grad: linear-gradient(135deg, #E3C98A 0%, #B8903A 100%);
  --w-emerald-grad: linear-gradient(135deg, #218566 0%, #166B52 100%); /* لون الأزرار */
}

/* ---------- 1) بطاقة المنتج: إزالة الفراغ فوق «أضف للسلة» ---------- */
.s-product-card-entry {
  border-radius: 14px !important;
  box-shadow: 0 4px 14px rgba(16, 32, 28, .08) !important;
  transition: transform .25s ease, box-shadow .25s ease;
  height: auto !important;
}
.s-product-card-entry:hover { transform: translateY(-3px); box-shadow: var(--w-shadow) !important; }

.s-product-card-content {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  gap: 6px !important;
  min-height: 0 !important;
  height: auto !important;
  flex-grow: 0 !important;
  padding: 10px 12px 12px !important;
}
.s-product-card-content > *,
.s-product-card-content-main,
.s-product-card-content-footer,
.s-product-card-content-sub {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  min-height: 0 !important;
}
.s-product-card-content > *:empty,
.s-product-card-content-footer:empty,
.s-product-card-content-sub:empty { display: none !important; }
.s-product-card-content-footer { padding-top: 4px !important; }
.s-product-card-content [class*="mt-auto"],
.s-product-card-content [class*="flex-grow"] { margin-top: 0 !important; flex-grow: 0 !important; }

/* زر «أضف للسلة»: نُنسّق عنصر <button> فقط، وننزع أي إطار/خلفية/ظل عن العناصر الداخلية لمنع تراكب الطبقات */
.s-product-card-entry .s-product-card-content [class*="s-button"]:not(button),
.s-product-card-entry .s-product-card-content salla-button,
.s-product-card-entry .s-product-card-content salla-add-product-button {
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  outline: 0 !important;
  color: inherit !important;
}
.s-product-card-entry .s-product-card-content salla-add-product-button,
.s-product-card-entry .s-product-card-content salla-button { display: block !important; width: 100% !important; }

.s-product-card-entry .s-product-card-content button {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100% !important;
  min-height: 44px !important;
  padding: 0 14px !important;
  background: var(--w-emerald-grad) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 12px !important;
  font-family: var(--w-font-body);
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  box-shadow: 0 6px 14px rgba(10, 61, 49, .28) !important;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.s-product-card-entry .s-product-card-content button:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(10, 61, 49, .35) !important;
}
.s-product-card-entry .s-product-card-content button:active { transform: scale(.98); }
.s-product-card-entry .s-product-card-content button span,
.s-product-card-entry .s-product-card-content button i,
.s-product-card-entry .s-product-card-content button svg {
  color: #fff !important;
  background: none !important;
  fill: currentColor;
  margin: 0 !important;
}
/* أيقونة السلة بلمسة ذهبية */
.s-product-card-entry .s-product-card-content button i,
.s-product-card-entry .s-product-card-content button svg { color: var(--w-gold-light) !important; }

/* ---------- 2) الأزرار العامة ---------- */
.s-button-primary,
.btn--primary,
.s-button-element.s-button-solid,
a.btn, button.btn {
  background: var(--w-emerald-grad) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 12px !important;
  font-weight: 600;
  letter-spacing: .2px;
  box-shadow: var(--w-shadow);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.s-button-primary:hover,
.btn--primary:hover,
a.btn:hover, button.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--w-shadow-lg);
  filter: brightness(1.08);
}
.s-button-outline, .s-button-element.s-button-outline {
  border: 1.5px solid var(--w-gold) !important;
  color: var(--w-emerald-deep) !important;
  background: transparent !important;
  border-radius: 12px !important;
}
.s-button-outline:hover { background: var(--w-gold) !important; color: #fff !important; }
/* زر البنر */
.s-block--fixed-banner a[class*="btn"],
.s-block--fixed-banner a[class*="button"] {
  background: var(--w-gold-grad) !important;
  color: var(--w-emerald-deep) !important;
  border-radius: 999px !important;
  padding-inline: 28px !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
}

/* ---------- 3) أيقونات التواصل الاجتماعي في الفوتر ---------- */
footer [class*="social"] ul,
footer .s-social-list,
footer [class*="social"] {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
  align-items: center;
}
footer [class*="social"] a,
footer .s-social-link a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08) !important;
  border: 1.5px solid rgba(217, 188, 120, .55);
  color: var(--w-gold-light) !important;
  font-size: 19px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
  transition: transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease;
}
footer [class*="social"] a:hover,
footer .s-social-link a:hover {
  background: var(--w-gold-grad) !important;
  color: var(--w-emerald-deep) !important;
  border-color: transparent;
  transform: translateY(-4px) rotate(-6deg);
  box-shadow: 0 10px 20px rgba(184, 144, 58, .45);
}
footer [class*="social"] a i,
footer [class*="social"] a svg { color: inherit !important; fill: currentColor; }

/* ---------- 3) أيقونات التواصل الاجتماعي في الفوتر ---------- */
footer [class*="social"] ul,
footer .s-social-list,
footer [class*="social"] {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
  align-items: center;
}
footer [class*="social"] a,
footer .s-social-link a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08) !important;
  border: 1.5px solid rgba(217, 188, 120, .55);
  color: var(--w-gold-light) !important;
  font-size: 19px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
  transition: transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease;
}
footer [class*="social"] a:hover,
footer .s-social-link a:hover {
  background: var(--w-gold-grad) !important;
  color: var(--w-emerald-deep) !important;
  border-color: transparent;
  transform: translateY(-4px) rotate(-6deg);
  box-shadow: 0 10px 20px rgba(184, 144, 58, .45);
}
footer [class*="social"] a i,
footer [class*="social"] a svg { color: inherit !important; fill: currentColor; }

/* ---------- 4) «تسوّق حسب التصنيف»: دوائر أفقية متحركة بظل ---------- */
/* بنية سلة: .square-photos-grid > a.banner-entry.square-photos > div.lazy__bg + h3.text-with-border > span */
.square-photos-grid {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  grid-template-columns: none !important;
  grid-template-areas: none !important;
  gap: 20px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 16px 12px 62px !important;
  justify-content: flex-start !important;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.square-photos-grid::-webkit-scrollbar { display: none; }

.square-photos-grid > a.banner-entry {
  flex: 0 0 auto !important;
  position: relative !important;
  width: 132px !important;
  height: 132px !important;
  min-height: 0 !important;
  aspect-ratio: 1 / 1;
  padding: 0 !important;
  margin: 0 !important;
  grid-area: auto !important;
  border-radius: 50% !important;
  overflow: visible !important;
  background: #fff;
  scroll-snap-align: center;
  box-shadow: 0 12px 26px rgba(10, 61, 49, .30), 0 0 0 4px #fff, 0 0 0 6px var(--w-gold);
  animation: w-float 4.5s ease-in-out infinite;
  transition: transform .3s ease, box-shadow .3s ease;
}
.square-photos-grid > a.banner-entry:nth-child(2n) { animation-delay: -1.2s; }
.square-photos-grid > a.banner-entry:nth-child(3n) { animation-delay: -2.4s; }
.square-photos-grid > a.banner-entry:hover {
  animation-play-state: paused;
  transform: scale(1.08);
  box-shadow: 0 18px 32px rgba(10, 61, 49, .36), 0 0 0 4px #fff, 0 0 0 7px var(--w-gold);
}
.square-photos-grid > a.banner-entry::before,
.square-photos-grid > a.banner-entry::after { display: none !important; }

/* الصورة تملأ الدائرة */
.square-photos-grid > a.banner-entry .lazy__bg {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  border-radius: 50% !important;
  overflow: hidden;
  background-size: cover !important;
  background-position: center !important;
}
/* الاسم تحت الدائرة */
.square-photos-grid > a.banner-entry h3,
.square-photos-grid > a.banner-entry h3.text-with-border {
  position: absolute !important;
  top: calc(100% + 16px) !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translateX(-50%) !important;
  width: 150px;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  text-align: center;
  font-family: var(--w-font-head);
  font-size: 15px;
  line-height: 1.35;
  opacity: 1 !important;
  visibility: visible !important;
}
.square-photos-grid > a.banner-entry h3::before,
.square-photos-grid > a.banner-entry h3::after { display: none !important; }
.square-photos-grid > a.banner-entry h3 span {
  color: var(--w-ink) !important;
  text-shadow: none !important;
  background: none !important;
}

@keyframes w-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) {
  .square-photos-grid > a.banner-entry { animation: none; }
}
@media (max-width: 640px) {
  .square-photos-grid { gap: 16px !important; padding: 14px 14px 56px !important; }
  .square-photos-grid > a.banner-entry {
    width: 92px !important;
    height: 92px !important;
    box-shadow: 0 8px 18px rgba(10, 61, 49, .30), 0 0 0 3px #fff, 0 0 0 5px var(--w-gold);
  }
  .square-photos-grid > a.banner-entry h3 { width: 108px; top: calc(100% + 12px) !important; font-size: 12.5px; }
}

/* ---------- الأسعار: السعر بعد الخصم بارز، والسعر القديم مشطوب ---------- */
.s-product-card-content-sub {
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  min-height: 0 !important;
}
.s-product-card-price,
.s-product-card-sale-price h4 {
  color: var(--w-emerald-deep) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  margin: 0 !important;
}
.s-product-card-sale-price { flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.s-product-card-sale-price h4.s-product-card-price { color: #B3261E !important; }
.s-product-card-sale-price span,
.s-product-card-starting-price {
  color: var(--w-muted) !important;
  font-size: 13px !important;
  text-decoration: line-through;
}

/* =====================================================================
   v6: توحيد بطاقات المنتجات (نفس الارتفاع، نفس الصورة، الزر دائماً في الأسفل)
   ===================================================================== */

/* الشرائح والحاويات تتمدد لأطول بطاقة في الصف */
.swiper-slide { height: auto !important; display: flex !important; }
.swiper-slide > *,
custom-salla-product-card,
salla-product-card {
  display: flex !important;
  flex-direction: column;
  width: 100%;
  height: auto;
}

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

/* صورة موحّدة: مربعة وتملأ الإطار بالكامل */
html body .s-product-card-entry .s-product-card-image {
  aspect-ratio: 1 / 1 !important;
  max-height: none !important;
  width: 100%;
  background: var(--w-sand);
  overflow: hidden;
  flex: 0 0 auto;
}
html body .s-product-card-entry .s-product-card-image a,
html body .s-product-card-entry .s-product-card-image img {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
html body .s-product-card-entry .s-product-card-image img {
  object-fit: cover !important;
  object-position: center;
}

/* المحتوى: يتمدد، والزر يُدفع للأسفل ليتساوى موضعه في كل البطاقات */
html body .s-product-card-entry .s-product-card-content {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}
html body .s-product-card-entry .s-product-card-content > :last-child {
  margin-top: auto !important;
}

/* العنوان: سطران بالضبط (ارتفاع ثابت) */
html body .s-product-card-entry .s-product-card-content-title,
html body .s-product-card-entry .s-product-card-content-title a {
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14.5px !important;
  line-height: 1.55 !important;
  min-height: 3.1em;
  margin: 0 !important;
}

/* صف السعر: ارتفاع ثابت في سطر واحد */
html body .s-product-card-entry .s-product-card-content-sub {
  min-height: 30px !important;
  flex-wrap: nowrap !important;
  justify-content: flex-start;
  align-items: center;
  gap: 8px !important;
}
html body .s-product-card-entry .s-product-card-sale-price { flex-wrap: nowrap !important; }

/* الشارة: حجم موحّد */
html body .s-product-card-entry [class*="promotion-title"] {
  font-size: 12px !important;
  padding: 4px 10px !important;
  border-radius: 999px !important;
  max-width: 75%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 640px) {
  html body .s-product-card-entry .s-product-card-content-title,
  html body .s-product-card-entry .s-product-card-content-title a { font-size: 13px !important; }
  html body .s-product-card-entry .s-product-card-content { padding: 8px 10px 10px !important; }
}

/* =====================================================================
   v7: خطوط جديدة، إزالة الفراغات بين الأقسام، دوائر التصنيفات بعناوينها، توافق الأجهزة
   ===================================================================== */
html, body { overflow-x: hidden; max-width: 100%; }
img, video { max-width: 100%; }
body, button, input, select, textarea { font-family: var(--w-font-body); }
h1, h2, h3, h4, .s-block__title h2 { font-family: var(--w-font-head); letter-spacing: 0; }

/* ----- المسافات بين الأقسام ----- */
html body .s-block,
html body section.s-block {
  margin-top: 0 !important;
  margin-bottom: 14px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
html body .s-block:empty,
html body .s-block--banners:empty { display: none !important; margin: 0 !important; }
html body .s-block__title {
  margin: 0 0 8px !important;
  padding: 0 !important;
  min-height: 0 !important;
}
html body .s-block__title h2 { margin: 0 !important; line-height: 1.3; font-size: 24px; font-weight: 800; }
html body .s-block__title [class*="left-side"] { margin: 0 !important; }
html body .s-block--fixed-banner { margin-bottom: 14px !important; }
/* الحاوية العامة: بلا حشو رأسي زائد */
html body main, html body #app, html body .app-inner, html body .store-home { padding-top: 0 !important; }
@media (min-width: 768px) {
  html body .s-block, html body section.s-block { margin-bottom: 24px !important; }
  html body .s-block__title h2 { font-size: 30px; }
}
@media (min-width: 1200px) {
  html body .s-block, html body section.s-block { margin-bottom: 32px !important; }
}

/* ----- دوائر التصنيفات: الاسم ملاصق للدائرة ----- */
html body .square-photos-grid {
  padding: 6px 12px 8px !important;
  gap: 12px !important;
  overflow-y: visible !important;
  align-items: flex-start !important;
}
html body .square-photos-grid > a.banner-entry {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  width: 104px !important;
  height: auto !important;
  aspect-ratio: auto !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  animation: none !important;
  overflow: visible !important;
}
html body .square-photos-grid > a.banner-entry:hover { transform: none !important; box-shadow: none !important; }
html body .square-photos-grid > a.banner-entry .lazy__bg {
  position: relative !important;
  inset: auto !important;
  flex: 0 0 auto !important;
  width: 92px !important;
  height: 92px !important;
  border-radius: 50% !important;
  background-size: cover !important;
  background-position: center !important;
  box-shadow: 0 10px 22px rgba(10, 61, 49, .28), 0 0 0 3px #fff, 0 0 0 5px var(--w-gold);
  animation: w-float 4.5s ease-in-out infinite;
  transition: transform .3s ease, box-shadow .3s ease;
}
html body .square-photos-grid > a.banner-entry:nth-child(2n) .lazy__bg { animation-delay: -1.2s; }
html body .square-photos-grid > a.banner-entry:nth-child(3n) .lazy__bg { animation-delay: -2.4s; }
html body .square-photos-grid > a.banner-entry:hover .lazy__bg {
  animation-play-state: paused;
  transform: scale(1.08);
  box-shadow: 0 16px 28px rgba(10, 61, 49, .36), 0 0 0 3px #fff, 0 0 0 6px var(--w-gold);
}
html body .square-photos-grid > a.banner-entry h3,
html body .square-photos-grid > a.banner-entry h3.text-with-border {
  position: static !important;
  transform: none !important;
  inset: auto !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center;
  font-family: var(--w-font-head);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}
/* توسيط الصف إذا اتسع، وتمريره إذا ضاق */
html body .square-photos-grid > a.banner-entry:first-child { margin-inline-start: auto !important; }
html body .square-photos-grid > a.banner-entry:last-child { margin-inline-end: auto !important; }
@media (prefers-reduced-motion: reduce) {
  html body .square-photos-grid > a.banner-entry .lazy__bg { animation: none !important; }
}
@media (min-width: 641px) {
  html body .square-photos-grid { gap: 20px !important; }
  html body .square-photos-grid > a.banner-entry { width: 136px !important; }
  html body .square-photos-grid > a.banner-entry .lazy__bg { width: 112px !important; height: 112px !important; }
  html body .square-photos-grid > a.banner-entry h3 { font-size: 15px; }
}
@media (min-width: 1100px) {
  html body .square-photos-grid > a.banner-entry { width: 168px !important; }
  html body .square-photos-grid > a.banner-entry .lazy__bg { width: 136px !important; height: 136px !important; }
  html body .square-photos-grid > a.banner-entry h3 { font-size: 16px; }
}

/* ----- توافق الأجهزة ----- */
@media (max-width: 640px) {
  html body .container { padding-inline: 12px !important; }
  html body .s-block__title h2 { font-size: 21px; }
}
@media (min-width: 641px) and (max-width: 1024px) {
  html body .container { padding-inline: 20px !important; }
}

/* =====================================================================
   v8: صورة بنسبة ثابتة (تصحيح فراغ الحاسب)، الأسعار، العنوان الفرعي، لمسات تصميم
   ===================================================================== */

/* الصورة: مربعة بحيلة padding-bottom فتتجاهل أي ارتفاع يفرضه الثيم، ثم تملأ الإطار */
html body .s-product-card-entry .s-product-card-image {
  position: relative !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  padding-bottom: 100% !important;
  overflow: hidden !important;
  background: var(--w-sand);
  border-radius: 0 !important;
}
html body .s-product-card-entry .s-product-card-image > a,
html body .s-product-card-entry .s-product-card-image img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform .5s ease;
}
html body .s-product-card-entry:hover .s-product-card-image img { transform: scale(1.05); }

/* البطاقة */
html body .s-product-card-entry {
  border: 1px solid rgba(184, 144, 58, .28) !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 6px 18px rgba(16, 32, 28, .08) !important;
}
html body .s-product-card-entry .s-product-card-content { padding: 12px 14px 14px !important; gap: 8px !important; }

/* العنوان */
html body .s-product-card-entry .s-product-card-content-title a { color: var(--w-ink); font-weight: 700; }

/* العنوان الفرعي: شارة صغيرة ذهبية فاتحة */
html body .s-product-card-entry .s-product-card-content [class*="subtitle"],
html body .s-product-card-entry .s-product-card-content-main > p {
  display: block !important;
  width: fit-content;
  max-width: 100%;
  margin: 0 !important;
  padding: 3px 10px !important;
  font-size: 11.5px !important;
  font-weight: 500;
  line-height: 1.5 !important;
  color: #7A5A14 !important;
  background: rgba(217, 188, 120, .22);
  border: 1px solid rgba(184, 144, 58, .35);
  border-radius: 999px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* الأسعار: بعد الخصم أحمر بارز، والسابق رمادي مشطوب، وكلاهما واضح */
html body .s-product-card-entry .s-product-card-content-sub {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: baseline !important;
  gap: 2px 10px !important;
  padding-top: 8px;
  border-top: 1px dashed rgba(184, 144, 58, .35);
}
html body .s-product-card-entry .s-product-card-price,
html body .s-product-card-entry .s-product-card-price * {
  color: var(--w-emerald-deep) !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
}
html body .s-product-card-entry .s-product-card-sale-price,
html body .s-product-card-entry .s-product-card-sale-price > :first-child,
html body .s-product-card-entry .s-product-card-sale-price > :first-child * {
  color: #C62828 !important;
  font-size: 18px !important;
  font-weight: 800 !important;
}
html body .s-product-card-entry .s-product-card-sale-price { display: flex !important; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
html body .s-product-card-entry .s-product-card-sale-price > :not(:first-child),
html body .s-product-card-entry .s-product-card-sale-price > :not(:first-child) *,
html body .s-product-card-entry .s-product-card-starting-price,
html body .s-product-card-entry [class*="starting-price"],
html body .s-product-card-entry .s-product-card-content-sub del,
html body .s-product-card-entry .s-product-card-content-sub s {
  color: #7C746A !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  text-decoration: line-through !important;
  text-decoration-thickness: 1.5px;
  text-decoration-color: #C62828;
}

/* الزر: ملاصق للأسعار بلا فراغ معلّق، ويبقى في أسفل البطاقة */
html body .s-product-card-entry .s-product-card-content > :last-child { margin-top: auto !important; padding-top: 4px; }

/* المفضلة والشارة */
html body .s-product-card-entry [class*="wishlist"] button,
html body .s-product-card-entry .s-button-wishlist {
  width: 38px !important;
  height: 38px !important;
  min-height: 0 !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, .92) !important;
  border: 0 !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .18) !important;
  color: var(--w-emerald-deep) !important;
}
html body .s-product-card-entry [class*="promotion-title"] {
  background: var(--w-gold-grad) !important;
  color: var(--w-emerald-deep) !important;
  font-weight: 700 !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .18);
}

/* عناوين الأقسام: خط ذهبي تحتها */
html body .s-block__title h2::before { display: none !important; }
html body .s-block__title h2 {
  display: inline-block;
  position: relative;
  padding-bottom: 8px !important;
}
html body .s-block__title h2::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 56px;
  height: 3px;
  border-radius: 3px;
  background: var(--w-gold-grad);
}

/* البنرات */
html body .s-block--fixed-banner img,
html body .s-block--fixed-banner a,
html body .s-block--banners:not(:has(.square-photos-grid)) img {
  border-radius: 16px;
}
html body .s-block--fixed-banner { box-shadow: 0 10px 26px rgba(10, 61, 49, .16); border-radius: 16px; overflow: hidden; }

@media (max-width: 640px) {
  html body .s-product-card-entry .s-product-card-price,
  html body .s-product-card-entry .s-product-card-price *,
  html body .s-product-card-entry .s-product-card-sale-price > :first-child { font-size: 16px !important; }
  html body .s-product-card-entry .s-product-card-content { padding: 10px 11px 12px !important; }
}
/* تحسين أيقونات وأرقام التواصل في الفوتر فقط
   الصقه في آخر ملف CSS (بدل إضافة التواصل السابقة بالكامل). */

/* دائرة الأيقونة */
footer [class*="contacts-icon"],
.store-footer [class*="contacts-icon"] {
  width: 46px !important;
  height: 46px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--w-gold-light) !important;
  background: rgba(255, 255, 255, .12) !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .30), inset 0 1px 0 rgba(255, 255, 255, .25) !important;
  transition: transform .25s ease, box-shadow .25s ease;
}
footer [class*="contacts-icon"] i,
.store-footer [class*="contacts-icon"] i {
  color: #fff !important;
  font-size: 22px !important;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35));
}

/* ألوان حسب النوع: واتساب أخضر، جوال ذهبي، هاتف أبيض لؤلؤي */
footer li:has(i.sicon-whatsapp) [class*="contacts-icon"] {
  background: linear-gradient(135deg, #3FD97A 0%, #1FAF5A 100%) !important;
  border-color: #fff !important;
  box-shadow: 0 8px 18px rgba(31, 175, 90, .50) !important;
}
footer li:has(i.sicon-mobile) [class*="contacts-icon"],
footer li:has(i.sicon-tablet) [class*="contacts-icon"] {
  background: var(--w-gold-grad) !important;
  border-color: #fff !important;
}
footer li:has(i.sicon-phone) [class*="contacts-icon"] {
  background: rgba(255, 255, 255, .22) !important;
}

/* الرقم نفسه */
footer salla-contacts a,
.store-footer salla-contacts a {
  color: #fff !important;
  font-weight: 700;
  letter-spacing: .5px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .35);
}
footer salla-contacts a:hover { color: var(--w-gold-light) !important; }

/* حركة خفيفة عند المرور */
footer li:hover [class*="contacts-icon"] {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 12px 22px rgba(0, 0, 0, .38) !important;
}
@media (prefers-reduced-motion: reduce) {
  footer [class*="contacts-icon"] { transition: none; }
}