/* =========================================
   عبارة بداية الموقع
========================================= */

#gold-splash-screen{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:#ffffff;
display:flex;
align-items:center;
justify-content:center;
z-index:9999999;
transition:opacity .6s ease;
}

#gold-splash-text{
font-size:26px;
font-weight:500;
color:#39404D;
font-family:'Cairo', sans-serif;
text-align:center;
letter-spacing:0;
}

.splash-hide{
opacity:0;
}

/* =========================================
   إطار دائري للتصنيفات
========================================= */

.s-block--categories a,
.s-block--categories .category-item,
.s-block--categories li{
  border:1.5px solid #e6e6e6 !important;
  border-radius:18px !important;
  padding:18px 12px !important;
  background:#fff !important;
  box-shadow:none !important;
}

.s-block--categories img{
  border-radius:50% !important;
}

/* =========================================
   شريط العروض المتحرك
========================================= */

#promo-bar { background: #E0C79F; 
             color: #000; 
             font-weight: 600; 
             font-size: 1rem; 
             padding: 10px 0; 
             overflow: hidden;
             white-space: nowrap;
         
           }

#promo-bar .promo-viewport { width:
  100%; overflow: hidden;
    
                           } 
#promo-bar .promo-track { display:
  flex; width: max-content; 
    will-change: transform; 
                   
                        } 

#promo-bar .promo-text 
{ padding: 0 10px; white-space: 
  nowrap; flex-shrink: 0;
}

/* ===========================================
   توسيط كروت قسم المميزات — #s-block--features-10
   (كمبيوتر: توسيط الثلاثة)
   (جوال: توسيط الكرت الأخير فقط)
============================================ */
/* الكمبيوتر */
@media (min-width: 769px){
  #s-block--features-10 .features-home-grid{
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 280px)) !important;
    justify-content: center !important;   /* يوسّط المجموعة */
    justify-items: center !important;     /* يوسّط كل كرت */
    gap: 24px !important;
  }
}

/* الجوال */
@media (max-width: 768px){
  #s-block--features-10 .features-home-grid{
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    justify-content: center !important;
    gap: 16px !important;
  }

  /* توسيط الكرت الذي يبقى لوحده في الصف الأخير (آخر عنصر) */
  #s-block--features-10 .features-home-grid > *:last-child{
    grid-column: 1 / -1 !important;
    justify-self: center !important;
    max-width: 520px;
    width: 100%;
  }
}


/* =========================================
   توسيط الفوتر
========================================== */

/* توسيط محتوى الفوتر بالكامل */
.store-footer__top .footer-content {
    justify-content: center !important;
    text-align: center;
}

/* توسيط كل عمود */
.store-footer__top .footer-content > div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* الجوال: كل عنصر سطر كامل */
@media (max-width: 768px) {
    .store-footer__top .footer-content {
        display: flex !important;
        flex-direction: column;
        align-items: center;
    }
}

/* ===== إصلاح توسيط الفوتر في الكمبيوتر ===== */

@media (min-width: 768px) {

    /* ألغِ التمدد */
    .store-footer__top .footer-content > div {
        flex: 0 0 auto !important;
        max-width: 280px; /* عرض متوازن لكل عمود */
    }

    /* توسيط الأعمدة */
    .store-footer__top .footer-content {
        justify-content: center !important;
    }

}

/* زيادة المسافة بين أعمدة الفوتر في الكمبيوتر */
@media (min-width: 1024px) {

    .store-footer__top .footer-content {
        gap: 60px !important; /* عدل الرقم حسب الذوق */
    }

}

/* =========================================
   زر واتساب عائم
========================================== */

#whatsapp-float{
position:fixed;left:18px;bottom:22px;width:42px;height:42px;background:#25D366;
border-radius:50%;display:flex;align-items:center;justify-content:center;
z-index:9999;text-decoration:none;opacity:0;transition:opacity .6s ease,transform .6s ease
}

/* الرئيسية: نفس الحركة الأصلية */
.home #whatsapp-float{transform:translateY(20px)}
.home #whatsapp-float.show{opacity:1;transform:translateY(0)}

/* الداخلية: شفافية فقط */
body:not(.home) #whatsapp-float{transform:none}
body:not(.home) #whatsapp-float.show{opacity:1}

#whatsapp-float img{width:30px;height:30px}

/* =========================================
   ظهور تدريجي للموقع
   ========================================= */

body{
animation:pageBlur .7s ease;
}

@keyframes pageBlur{
0%{filter:blur(8px);opacity:.8}
100%{filter:blur(0);opacity:1}
}

/* =========================================
   زر الرجوع للأعلى مع تقدم التمرير
========================================= */

#jd-scroll{
position:fixed;right:18px;bottom:22px;width:44px;height:44px;
background:#fff;border:0;border-radius:50%;display:flex;
align-items:center;justify-content:center;cursor:pointer;
z-index:9999;box-shadow:0 4px 12px rgba(0,0,0,.15);
opacity:0;transform:translateY(10px);transition:.3s
}
#jd-scroll.show{opacity:1;transform:translateY(0)}

#jd-scroll .r{position:absolute;width:44px;height:44px;transform:rotate(-90deg)}
#jd-scroll circle{fill:none;stroke-width:3}
#jd-scroll .bg{stroke:#e6e6e6}
#jd-scroll .p{stroke:#333A47;stroke-linecap:round}

#jd-scroll .a{width:20px;height:20px;fill:#5A6270}

/* =========================================
  موعد التوصيل صفحه المنتج
========================================= */

.delivery-wrapper {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.delivery-box {
    background: #303949;
    color: #fff;
    padding: 18px;
    border-radius: 12px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    font-family: sans-serif;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.delivery-box span {
    color: #E0C79F;
    font-weight: bold;
}

.delivery-select {
    margin: 15px auto 0;
    padding: 10px;
    border-radius: 10px;
    border: none;
    background: #E0C79F;
    color: #303949;
    font-weight: bold;
    cursor: pointer;
    width: 70%;
    display: block;
    text-align: center;
}

.countdown {
    margin-top: 10px;
    font-size: 14px;
    color: #E0C79F;
}

.delivery-note {
    margin-top: 8px;
    font-size: 12px;
    color: #ccc;
}

.delivery-box {
    border-radius: 18px;
}

.delivery-select {
    font-size: 16px;
}

.delivery-box {
    transition: all 0.3s ease;
}

.delivery-box:hover {
    transform: translateY(-3px);
}

/* الجوال والأجهزة اللوحية الصغيرة */
@media (max-width: 991px) {

    .delivery-wrapper {
        width: 100%;
        display: flex;
        justify-content: center;
        padding: 0 12px;
        box-sizing: border-box;
    }

    .delivery-box {
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
        padding: 22px 18px;
        border-radius: 18px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        box-sizing: border-box;
        box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    }

    .delivery-box > div,
    .delivery-box > p,
    .delivery-box > span {
        width: 100%;
        text-align: center;
    }

    .delivery-select {
        display: block;
        width: 85%;
        max-width: 280px;
        min-width: 220px;
        margin: 15px auto 0;
        padding: 12px 16px;
        border-radius: 12px;
        box-sizing: border-box;
        text-align: center;
        text-align-last: center;
        direction: rtl;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
    }

    .countdown {
        font-size: 15px;
        margin-top: 8px;
        text-align: center;
        width: 100%;
    }
}

/* تكبير + توسيط في اللابتوب */
@media (min-width: 1024px) {

    .delivery-wrapper {
        display: flex;
        justify-content: center; /* 👈 توسيط */
        width: 100%;
    }

    .delivery-box {
        width: 100%;
        max-width: 600px; /* 👈 تكبير */
        margin: 20px auto; /* 👈 توسيط فعلي */
        text-align: center;
        padding: 30px;
        border-radius: 20px;
    }
}
/* =========================================
  شريط اسعار الذهب العالميه
========================================= */

#gold-bar {
  width: 100%;
  background: #303949;
  padding: 8px 0;

  display: flex;
  justify-content: center;
  align-items: center;

}

/*container*/ 
#gold-bar .container {
  width: 95%;
  max-width: 1200px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  transition: transform 0.3s ease;
}

/* items */
.gold-item {
  text-align: center;
  color: #E0C79F;
  font-size: 13px;
  line-height: 1.2;
}

.gold-item span {
  display: block; /* يرجع سطر ثاني */
  margin-top: 2px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.price-row {
  display: inline-flex;  /* يخلي السعر + الأيقونة جنب بعض */
  align-items: center;
  gap: 4px;
}

.currency-icon {
  width: 14px;
  height: 14px;
  vertical-align: middle;
  margin-right: 4px;
  filter: brightness(0) invert(1);
}







/* فقط صفحه الاسعار */ 
#gold-bar.price-page {
  width: 100%;
  background: #f2f2f2;
  padding: 14px 12px;
  border-radius: 0;
  direction: rtl;
}

#gold-bar.price-page .container {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#gold-bar.price-page .section-title {
  color: #E0C79F;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  margin: 6px 0 10px;
}

#gold-bar.price-page .gold-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px 18px;
  min-height: 58px;
}

#gold-bar.price-page .item-label {
  color: #E0C79F;
  font-size: 16px;
  font-weight: 500;
}

#gold-bar.price-page span {
  display: block;
  color: #303949;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}

#gold-bar.price-page .price-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  direction: ltr;
}

#gold-bar.price-page .currency-icon {
  width: 14px;
  height: 14px;
  display: block;
  filter: brightness(0) invert(1);
}

#gold-bar.price-page .divider {
  height: 1px;
  background: rgba(224, 199, 159, 0.25);
  margin: 6px 0;
}