/* =========================================
   Maher Jewellery — Product Cards
   النسخة التجريبية فقط
   ========================================= */

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

:root {
  --mj-bg: #E8DCCB;
  --mj-card: #FFFEF9;
  --mj-text: #5F5248;
  --mj-gold: #C1A46B;
  --mj-soft-gold: #BCA97B;
  --mj-black: #000000;
  --mj-muted: #8A8179;
}

/* خلفية المتجر والخط */
html,
body,
#app,
.app-inner,
.main-content,
.s-layout,
main {
  background-color: var(--mj-bg) !important;
  color: var(--mj-text) !important;
  font-family: "Tajawal", Arial, sans-serif !important;
}

/* بطاقة المنتج */
.s-product-card-entry {
  background: var(--mj-card) !important;
  border: 1px solid var(--mj-gold) !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 3px 12px rgba(95, 82, 72, 0.10) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: hover) {
  .s-product-card-entry:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(95, 82, 72, 0.16) !important;
  }
}

/* صورة المنتج */
.s-product-card-image {
  position: relative !important;
  aspect-ratio: 1 / 1 !important;
  overflow: hidden !important;
  border-radius: 15px 15px 0 0 !important;
}

.s-product-card-image-cover {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 15px 15px 0 0 !important;
}

/* اسم المنتج */
.s-product-card-content-title,
.s-product-card-content-title a {
  color: var(--mj-text) !important;
  font-family: "Tajawal", Arial, sans-serif !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
}

/* السعر */
.s-product-card-price {
  color: var(--mj-gold) !important;
  font-family: "Tajawal", Arial, sans-serif !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  font-variant-numeric: tabular-nums;
}

/* السعر القديم المشطوب */
.s-product-card-sale-price .line-through,
.s-product-card-price .line-through {
  color: var(--mj-muted) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  opacity: 0.8;
}

/* شارة الخصم أعلى يمين الصورة */
.s-product-card-promotion-title {
  top: 12px !important;
  right: 12px !important;
  left: auto !important;
  background: var(--mj-black) !important;
  color: var(--mj-gold) !important;
  border: 1px solid var(--mj-gold) !important;
  border-radius: 12px !important;
  padding: 6px 11px !important;
  font-family: "Tajawal", Arial, sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18) !important;
}

/* زر المفضلة */
.s-product-card-wishlist-btn {
  width: 38px !important;
  height: 38px !important;
  background: rgba(255, 254, 249, 0.92) !important;
  color: var(--mj-text) !important;
  border: 1px solid rgba(193, 164, 107, 0.55) !important;
  border-radius: 50% !important;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.12) !important;
}

.s-product-card-wishlist-btn i,
.s-product-card-wishlist-btn svg {
  color: var(--mj-text) !important;
}

/* المفضلة بعد التفعيل */
.s-product-card-wishlist-btn[aria-pressed="true"],
.s-product-card-wishlist-btn.is-added,
.s-product-card-wishlist-btn.added,
.s-product-card-wishlist-btn.favorited {
  background: var(--mj-gold) !important;
  color: var(--mj-black) !important;
}

.s-product-card-wishlist-btn[aria-pressed="true"] i,
.s-product-card-wishlist-btn.is-added i,
.s-product-card-wishlist-btn.added i,
.s-product-card-wishlist-btn.favorited i {
  color: var(--mj-black) !important;
}

/* زر إضافة للسلة */
salla-add-product-button {
  width: 100% !important;
}

salla-add-product-button button.s-button-btn {
  width: 100% !important;
  min-height: 48px !important;
  background: var(--mj-black) !important;
  color: #FFFFFF !important;
  border: 1px solid var(--mj-black) !important;
  border-radius: 11px !important;
  font-family: "Tajawal", Arial, sans-serif !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

salla-add-product-button button.s-button-btn i,
salla-add-product-button button.s-button-btn span,
salla-add-product-button button.s-button-btn svg {
  color: #FFFFFF !important;
}

salla-add-product-button button.s-button-btn:hover {
  background: var(--mj-text) !important;
  border-color: var(--mj-text) !important;
}

/* عداد السلة بدل الدائرة الحمراء */
.s-cart-summary-count {
  background: var(--mj-gold) !important;
  color: var(--mj-black) !important;
  border: 1px solid var(--mj-card) !important;
  font-family: "Tajawal", Arial, sans-serif !important;
  font-weight: 700 !important;
}

/* ضبط الجوال */
@media (max-width: 768px) {
  .s-product-card-entry {
    border-radius: 14px !important;
  }

  .s-product-card-image {
    border-radius: 13px 13px 0 0 !important;
  }

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

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

  salla-add-product-button button.s-button-btn {
    min-height: 44px !important;
    font-size: 13px !important;
  }

  .s-product-card-promotion-title {
    top: 8px !important;
    right: 8px !important;
    padding: 5px 9px !important;
  }

  .s-product-card-wishlist-btn {
    width: 35px !important;
    height: 35px !important;
  }
}
/* تنسيق قلب المفضلة */
.s-product-card-wishlist-btn {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.s-product-card-wishlist-btn button,
.s-product-card-wishlist-btn .s-button-btn {
  width: 40px !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 !important;
  background: #FFFEF9 !important;
  color: #5F5248 !important;
  border: 1px solid #C1A46B !important;
  border-radius: 50% !important;
  box-shadow: 0 2px 7px rgba(95,82,72,.14) !important;
}

.s-product-card-wishlist-btn i,
.s-product-card-wishlist-btn svg {
  color: #5F5248 !important;
  font-size: 19px !important;
}
/* إظهار كلمة إضافة للسلة كاملة على الجوال */
@media (max-width: 768px) {
  salla-add-product-button button.s-button-btn {
    padding-inline: 6px !important;
    gap: 4px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
  }

  salla-add-product-button .s-button-text,
  salla-add-product-button button.s-button-btn span {
    width: auto !important;
    max-width: none !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
    font-size: 12px !important;
  }

  salla-add-product-button button.s-button-btn svg,
  salla-add-product-button button.s-button-btn i {
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0 !important;
  }
}
/* لون الفوتر العاجي المتناسق مع الموقع */
.store-footer,
.store-footer__inner {
 background-color: #E8DCCB !important; 
  color: #5F5248 !important;
}

.store-footer h3,
.store-footer h4,
.store-footer .font-bold {
  color: #5F5248 !important;
}

.store-footer p,
.store-footer a,
.store-footer span {
  color: #5F5248 !important;
}