/* نسخة معدّلة لقالب رائد الجديد (React)
   - أُبقيت الأسماء القديمة، وأُضيف بجانبها أسماء عامة تناسب القالب الجديد
   - أُصلح قوس ناقص كان يخلي آخر التعديلات تشتغل على الجوال بس */

/* خط النسخ على عنوان الهيدر الرئيسي */
h1, .hero-luxury h1, [class*="hero"] h1 {
  font-family: 'خط النسخ', serif !important;
}

/* خلفية الموقع كريمي */
body {
  background-color: #F4EADF !important;
}

/* الأزرار */
.btn, button, .add-to-cart, .s-button-add-to-cart,
[class*="add-to-cart"], [class*="addToCart"] {
  background-color: #56C1B6 !important;
  color: #804C3C !important;
}

/* نصوص الشريط العلوي والقائمة والفوتر كريمي */
.top-navbar, .top-navbar *,
#mainnav, #mainnav *,
footer, footer *,
[role="contentinfo"], [role="contentinfo"] *,
.sub-menu, .sub-menu * {
  color: #F4EADF !important;
}

/* القائمة الرئيسية شفافة */
#mainnav, .main-nav-container {
  background-color: transparent !important;
  box-shadow: none !important;
}

/* الشعار في منتصف الهيدر (كمبيوتر) */
@media (min-width: 1024px) {
  a[data-testid="store-header-logo"],
  header a[href$="/"]:has(img) {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    align-items: center !important;
  }
  a[data-testid="store-header-logo"] img,
  header a[href$="/"]:has(img) img {
    max-width: 170px !important;
    width: auto !important;
    height: auto !important;
    max-height: 55px !important;
  }
}

/* بطاقات المنتجات ومميزات المتجر */
custom-salla-product-card,
.s-product-card-content,
.s-block--features__item,
[class*="product-card"],
[class*="features__item"] {
  background-color: #F4EADF !important;
}

/* قائمة الحساب */
.s-user-menu-trigger {
  background-color: transparent !important;
}
[class*="s-user-menu-dropdown"],
[class*="user-menu-dropdown"] {
  background-color: #804C3C !important;
  color: #F4EADF !important;
}
[class*="user-menu-dropdown"] a,
[class*="user-menu-dropdown"] span,
[class*="user-menu-dropdown"] li {
  color: #F4EADF !important;
}

/* قائمة الجوال والقوائم الفرعية */
.mm-spn, .sub-menu {
  background-color: #804C3C !important;
}
.mm-spn a, .mm-spn span, .mm-spn li,
.sub-menu a, .sub-menu span, .sub-menu li {
  color: #F4EADF !important;
}

/* منع التمرير الأفقي اللي يسبب فراغ أبيض بالجوال */
html {
  max-width: 100vw;
  overflow-x: hidden;
}

/* نص مميزات المتجر بني (عشان يبان فوق الخلفية الكريمي) */
.s-block--features p,
.s-block--features__item p,
.s-block--features .text-gray-500,
.s-block--features .text-gray-400,
section[class*="features"] p,
[class*="features__item"] p {
  color: #632D15 !important;
}

/* اسم المنتج بلون القائمة الرئيسية */
.product-single h1,
.product-details h1,
.product__title,
main h1 {
  color: #632D15 !important;
}

/* المنتج النافد: صورة رمادية */
.s-product-card-out-of-stock .s-product-card-image img,
[class*="out-of-stock"] img {
  filter: grayscale(100%) brightness(0.45);
}

/* النص المائل في وصف المنتج: أحمر عريض */
.product__description em,
.product-entry__description em,
article em,
[class*="description"] em {
  color: #DE3C36 !important;
  font-weight: 700 !important;
  font-style: normal !important;
}

/* إخفاء الشريط العلوي (سياسة الاسترجاع، اللغة، الإيميل) في القالب الجديد */
.site-header__topnav {
  display: none !important;
}

/* أيقونات الهيدر بدون دوائر خلفية (البحث، السلة، الحساب) */
.site-header .header-action,
.site-header__search,
.site-header__actions button,
.site-header__actions a,
.s-user-menu-trigger {
  background-color: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

/* قسم الصورة الرئيسية: ما يظهر إلا بعد ما تجهز صورة المبخرة (عشان ما تطلع الخلفية الحمراء الافتراضية) */
@keyframes heroShowFallback { to { opacity: 1; } }
.s-block--bundle-hero-luxury {
  opacity: 0;
  background-color: #2b211d;
  animation: heroShowFallback 0.3s ease 4s forwards; /* احتياط: يظهر بعد ٤ ثواني لو تأخر الكود */
}
.s-block--bundle-hero-luxury.hero-ready {
  opacity: 1;
  animation: none;
  transition: opacity 0.4s ease;
}

/* قائمة الجوال: كل النصوص بلون واحد بني */
nav:not(footer nav):not(.mobile-bottom-bar) a,
nav:not(footer nav):not(.mobile-bottom-bar) span,
nav:not(footer nav):not(.mobile-bottom-bar) li,
[role="dialog"] nav a,
[role="dialog"] nav span,
[class*="drawer"] a,
[class*="drawer"] span,
[class*="mobile-menu"] a,
[class*="mobile-menu"] span {
  color: #632D15 !important;
}

/* شريط الجوال السفلي: كل الأيقونات بني (ما عدا الزر النشط اللي خلفيته بني) */
.mobile-bottom-bar__item:not(.is-active),
.mobile-bottom-bar__item:not(.is-active) * {
  color: #632D15 !important;
}
.mobile-bottom-bar__item:not(.is-active) svg,
.mobile-bottom-bar__item:not(.is-active) svg * {
  stroke: #632D15 !important;
}

/* شارة الخصم على بطاقة المنتج: أحمر واضح ونص أبيض */
.s-product-card-promotion-title,
[class*="promotion-title"],
[class*="product-card"] [class*="promotion"] {
  background-color: #DE3C36 !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
}