/* Add custom CSS styles below */
/* ===== هوية متجر الأمل للذهب — خلفية بيج شمبانيا مع لمسات ذهبية ===== */
/* المتغيّرات الأساسية */
:root {
  --color-primary: #C9A24B;          /* الذهب اللامع — الأزرار والروابط */
  --color-primary-dark: #A9842F;     /* ذهب أغمق للـ hover */
  --page-bg: #F3EEE4;                /* بيج شمبانيا — خلفية المتجر */
  --color-navy: #0A1428;             /* الكحلي الفخم — عناصر داكنة */
}

/* خلفية المتجر العامة */
body,
.s-block,
main,
.main-content {
  background-color: #F3EEE4 !important;
}

/* الهيدر — كحلي فخم بنص ذهبي */
header,
.s-header,
.store-header {
  background-color: #0A1428 !important;
}
header a,
.s-header a {
  color: #E8D9B5 !important;
}

/* كروت المنتجات — بيضا نضيفة بحد ذهبي خفيف */
.s-product-card-entry,
.product-entry,
.s-product-card {
  background-color: #FFFFFF !important;
  border: 1px solid #E6DECF !important;
  border-radius: 12px !important;
}

/* أسعار المنتجات — ذهبي غامق */
.s-product-card-price,
.product-price,
.price {
  color: #9A7B32 !important;
  font-weight: 600 !important;
}

/* الأزرار الأساسية — ذهب لامع */
.btn,
.s-button-primary,
button.add-to-cart,
.btn--primary {
  background-color: #C9A24B !important;
  border-color: #C9A24B !important;
  color: #0A1428 !important;
  font-weight: 600 !important;
}
.btn:hover,
.s-button-primary:hover,
.btn--primary:hover {
  background-color: #A9842F !important;
  color: #FFFFFF !important;
}

/* الروابط العامة */
a {
  color: #A9842F;
}
a:hover {
  color: #C9A24B;
}

/* الفوتر — كحلي فخم متناسق مع الهيدر */
footer,
.s-footer,
.store-footer {
  background-color: #0A1428 !important;
  color: #E8D9B5 !important;
}
footer a,
.s-footer a {
  color: #C9A24B !important;
}
/* ===== خلفية متجر الأمل — بيج بموجات ذهبية متشابكة خفيفة ===== */
body,
.s-block,
main,
.main-content {
  background-color: #F3EEE4 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='200' viewBox='0 0 400 200' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%23C9A24B' stroke-width='0.6' opacity='0.14' stroke-linecap='round'%3E%3Cpath d='M0 20 C100 5 150 45 250 25 C330 9 360 38 400 28'/%3E%3Cpath d='M0 40 C90 60 160 25 240 48 C320 68 360 35 400 50'/%3E%3Cpath d='M0 65 C110 48 150 88 260 65 C330 50 370 78 400 66'/%3E%3Cpath d='M0 88 C80 105 150 72 230 92 C310 110 360 78 400 95'/%3E%3Cpath d='M0 112 C120 95 180 130 280 108 C340 96 375 122 400 110'/%3E%3Cpath d='M0 135 C90 152 160 120 240 140 C320 158 360 128 400 142'/%3E%3Cpath d='M0 160 C110 143 150 182 260 160 C330 146 370 175 400 162'/%3E%3Cpath d='M0 183 C80 198 150 168 230 188 C310 205 360 175 400 190'/%3E%3C/g%3E%3C/svg%3E") !important;
  background-size: 100% auto !important;
  background-repeat: repeat-y !important;
}

/* ===== توحيد لون الهيدر مع الكحلي بتاع البانرات والفوتر ===== */
header.store-header,
header.store-header .header-components,
header.store-header .main-nav-container,
#mainnav {
  background-color: #0A1428 !important;
}

/* روابط وأيقونات الهيدر — ذهبي فاتح واضح على الكحلي */
header.store-header a {
  color: #E8D9B5 !important;
}
header.store-header a:hover {
  color: #C9A24B !important;
}
header.store-header i,
header.store-header svg {
  color: #D4AF63 !important;
  fill: #D4AF63 !important;
}
/* ===== كروت عروض طرق الدفع — هوية الأمل ===== */
#alamalPay { margin: 20px 0; direction: rtl; font-family: inherit; }
#alamalPay .alamal-pay-title { text-align: center; color: #9A7B32; font-size: 16px; font-weight: 700; letter-spacing: .3px; margin-bottom: 14px; }
#alamalPay .alamal-pay-list { display: flex; flex-direction: column; gap: 10px; }
#alamalPay .alamal-pay-row { display: flex; align-items: center; justify-content: space-between; background: #FBF7EF; border: 1px solid #E6DECF; border-radius: 12px; padding: 14px 18px; position: relative; }
#alamalPay .alamal-pay-price { font-size: 17px; font-weight: 700; color: #0A1428; direction: ltr; }
#alamalPay .alamal-pay-cur { font-size: 12px; color: #9A7B32; }
#alamalPay .alamal-pay-method { display: flex; align-items: center; gap: 10px; }
#alamalPay .alamal-pay-text { text-align: right; display: flex; flex-direction: column; gap: 2px; }
#alamalPay .alamal-pay-name { font-size: 15px; font-weight: 700; color: #0A1428; }
#alamalPay .alamal-pay-note { font-size: 12px; color: #8A8578; }
#alamalPay .alamal-pay-save { font-size: 12px; }
#alamalPay .alamal-pay-save-green { color: #3B6D11; }
#alamalPay .alamal-pay-save-gold { color: #854F0B; }
#alamalPay .alamal-pay-icon { width: 40px; height: 40px; border-radius: 9px; background: #0A1428; color: #D4AF63; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
#alamalPay .alamal-pay-icon-mada { background: #fff; border: 1px solid #eee; width: auto; padding: 4px 8px; border-radius: 6px; font-size: 13px; font-weight: 800; direction: ltr; }
#alamalPay .alamal-pay-best { border: 1.5px solid #0A1428; }
#alamalPay .alamal-pay-best-tag { position: absolute; top: -11px; right: 16px; background: #0A1428; color: #D4AF63; font-size: 11px; font-weight: 700; padding: 2px 10px; border-radius: 999px; }

/* =========================================================
     شركة الأمل للذهب والمجوهرات — شريط الأسعار اللحظي
     هوية بصرية: كحلي غامق + ذهبي (متوافق مع خلفية صور المنتجات)
     ========================================================= */

  :root {
    --alamal-navy: #0E1A2B;      /* كحلي غامق أساسي */
    --alamal-navy-light: #16273D; /* كحلي أفتح شوية للتباين */
    --alamal-gold: #D4A342;      /* ذهبي أساسي */
    --alamal-gold-dark: #A97821; /* ذهبي غامق */
    --alamal-silver: #B9C2C9;    /* لون الفضة */
  }

  /* ملحوظة: بدل الأرقام الثابتة (50px/40px) بقينا نستخدم --livegold-bar-h
     وهو متغيّر بيتحدّث تلقائياً من الجافاسكريبت بالارتفاع الحقيقي للشريط
     في أي حالة (لودينج/محمّل/شكل الموبايل) — فمفيش تعارض تاني مهما اتغير
     ارتفاع الشريط */
  body {
    margin-top: var(--livegold-bar-h, 50px);
  }

  .store-notify {
    margin-top: var(--livegold-bar-h, 50px) !important;
  }

  #mainnav > div.inner.bg-inherit {
    top: 56px !important;
  }

  .sticky {
    top: 46px;
  }

  .livegold_pricesBar {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    background: linear-gradient(180deg, var(--alamal-navy) 0%, var(--alamal-navy-light) 100%);
    color: #F5EFE2;
    padding: 6px 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    position: fixed;
    top: 0;
    z-index: 2147483647;
    isolation: isolate;
    transform: translateZ(0);
    border-bottom: 1px solid rgba(212, 163, 66, 0.25);
  }

  .livegold_pricesBar ul {
    display: flex;
    justify-content: space-around;
    width: 100%;
    list-style: none;
    padding: 0;
    margin: 0;
    direction: ltr;
  }

  .livegold_pricesBar ul li {
    text-align: center;
    font-size: 13px;
    position: relative;
    padding: 0 16px;
    flex: 1;
  }

  .livegold_pricesBar_loading {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 10px 0;
  }

  .livegold_pricesBar_loading span {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--alamal-gold);
    margin: 0 4px;
    animation: bounce 1.4s infinite ease-in-out both;
  }

  .livegold_pricesBar_loading span:nth-child(1) { animation-delay: -0.32s; }
  .livegold_pricesBar_loading span:nth-child(2) { animation-delay: -0.16s; }

  @keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
  }

  .livegold_pricesBar ul li .label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 1px;
  }

  .livegold_pricesBar ul li .livegold_pricesBar_priceContainer {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }

  .livegold_pricesBar ul li .price {
    font-size: 14px;
    font-weight: 700;
    margin-right: 5px;
  }

  .livegold_pricesBar_silverItem .price,
  .livegold_pricesBar_silverItem .currency {
    color: var(--alamal-silver);
  }

  .livegold_pricesBar_silverItem::after {
    background-color: var(--alamal-silver);
  }

  .livegold_pricesBar_goldItem .price,
  .livegold_pricesBar_goldItem .currency {
    color: var(--alamal-gold);
  }

  .livegold_pricesBar_goldItem::after {
    background-color: var(--alamal-gold);
  }

  .livegold_pricesBar ul li .currency {
    font-size: 11px;
    margin-right: 5px;
    opacity: 0.85;
  }

  .livegold_pricesBar ul li .arrow-icon {
    width: 20px;
    height: 20px;
  }

  .livegold_pricesBar ul li::after {
    content: "";
    height: 60%;
    width: 1px;
    position: absolute;
    right: 0;
    top: 20%;
    background-color: rgba(212, 163, 66, 0.2);
  }

  .livegold_pricesBar ul li:last-child::after {
    display: none;
  }

  @media (max-width: 768px) {
    #mainnav > div.inner.bg-inherit {
      top: 78px !important;
    }

    .livegold_pricesBar ul li .divi {
      display: flex !important;
      font-size: 15px;
      margin-top: 0;
      position: relative;
      justify-content: space-around !important;
      flex-direction: row-reverse !important;
    }

    .livegold_pricesBar ul {
      flex-direction: column;
      align-items: center;
    }

    .livegold_pricesBar ul li {
      display: none;
      width: 100%;
      margin-bottom: 8px;
    }

    .livegold_pricesBar ul li.gold-24k-item {
      display: block;
      font-size: 15px;
      margin-top: 0;
      position: relative;
    }

    .livegold_pricesBar ul li.gold-24k-item::before {
      content: "▼";
      position: absolute;
      left: 30px;
      top: 50%;
      transform: translateY(-50%);
      font-size: 11px;
      color: var(--alamal-gold);
      transition: transform 0.3s ease;
    }

    .livegold_pricesBar ul li.show {
      display: block;
    }

    .sticky { top: 40px; }

    .livegold_pricesBar ul li.gold-24k-item.expanded::before {
      transform: translateY(-50%) rotate(180deg);
    }
  }
/* =====================================================
   منع قائمة الصفحات التعريفية (#mainnav) من التثبيت
   القائمة دي (سياسة الاستبدال، سياسة الشحن، حكم الشراء، حاسبة الزكاة...)
   مؤكدة من كود المصدر: <div id="mainnav" class="main-nav-container">
   مش المفروض تتحرك مع التمرير — بس شريط الأسعار هو اللي يفضل ثابت
   ===================================================== */
#mainnav.main-nav-container,
#mainnav > div.inner,
#mainnav > div.inner.bg-inherit {
  position: static !important;
  top: auto !important;
  z-index: auto !important;
  transform: none !important;
}
.swiper-slide.has-overlay--before::before,
.swiper-lazy.has-overlay--before::before {
  content: none !important;
  display: none !important;
  background: transparent !important;
}
.btn.btn--white {
  transition: all 0.3s ease !important;
}

.btn.btn--white:hover {
  background-color: #D4A342 !important;
  color: #FFFFFF !important;
  border-color: #D4A342 !important;
  transform: translateY(-2px) scale(1.03) !important;
  box-shadow: 0 8px 20px rgba(212, 163, 66, 0.35) !important;
}
/* لون نص التبويب غير النشط - أسود واضح */
salla-button.tab-trigger:not(.is-active) .s-button-text,
salla-button.tab-trigger:not(.is-active) .s-button-text * {
  color: #1A1A1A !important;
  font-weight: 600 !important;
}

/* عند مرور الماوس - لمسة ذهبية */
salla-button.tab-trigger:not(.is-active):hover .s-button-text,
salla-button.tab-trigger:not(.is-active):hover .s-button-text * {
  color: #B88A35 !important;
}