/* =========================================
   1. تنسيقات الصفحة العامة والشريط العلوي الثابت
   ========================================= */
body {
  padding-top: 50px; /* لتجنب تداخل الشريط مع المحتوى */
  background-color: #E7CAAA !important; /* اللون البيج الفاتح */
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important; /* منع التمرير الجانبي */
}

/* الشريط العلوي الثابت */
#top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #c49c6e;
  color: #f2e5d5;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  padding: 10px 0;
  z-index: 9999;
  overflow: hidden;
  height: 50px;
}

#top-bar span {
  display: inline-block;
  animation: scrollText 10s linear infinite;
  white-space: nowrap;
  will-change: transform; /* تحسين أداء الحركة */
}

#top-bar .separator {
  margin: 0 15px;
  color: black;
  font-weight: bold;
}

/* القائمة الرئيسية */
#mainnav {
  background-color: #000 !important;
}

#mainnav a {
  color: #f2e5d5 !important;
}

#mainnav a:hover {
  color: #c49c6e !important;
}

/* حاوية المحتوى الرئيسي */
.main-content-wrapper {
  margin-top: 80px !important;
  width: 100%;
}

/* =========================================
   2. تنسيقات السلايدر (Slider Optimization)
   ========================================= */
/* إزالة الهوامش والفراغات لضمان العرض الكامل */
/* =========================================
   تعديل السلايدر لإضافة مسافة للبنر السفلي
   ========================================= */

/* أولاً: إزالة الهوامش العامة */
.s-block--photos-slider,
.home-slider.photos-slider,
.s-slider-wrapper,
.s-slider-container {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  border-radius: 0 !important;
}

/* ثانياً: تخصيص حاوية السلايدر */
.s-block--photos-slider {
  position: relative; /* ضروري لتموضع الشريط */
  
  /* هنا التغيير المهم: 
     50px (ارتفاع الشريط التقريبي) + 30px (مسافة فراغ إضافية) = 80px
  */
  margin-bottom: 80px !important; 
}

/* في حال كنت تريد المسافة أكبر أو أصغر، غير رقم 80px */

/* تنسيق الصور داخل السلايدر */
.s-slider-wrapper .swiper-slide img {
  width: 100% !important;
  height: auto !important;
  object-fit: cover !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  display: block; /* إزالة الفراغ السفلي الافتراضي للصور */
}

.swiper-wrapper {
  display: flex !important;
  gap: 0 !important;
}

.swiper-slide {
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  height: auto !important;
}

@media (min-width: 768px) {
  .swiper-slide { margin-right: 0 !important; }
}

/* =========================================
   3. الشريط المتحرك أسفل السلايدر (Dynamic Bar)
   ========================================= */
.scrolling-bar {
  background-color: #c49c6e;
  color: #f2e5d5;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  width: 100%;
  padding: 10px 0;
  overflow: hidden;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
}

.scrolling-bar .scroll-content {
  display: inline-flex;
  animation: scrollText 15s linear infinite;
  white-space: nowrap;
  will-change: transform; /* تحسين أداء الحركة */
  align-items: center;
}

.scrolling-bar .text {
  margin: 0 20px;
}

.scrolling-bar .separator {
  display: inline-block;
  width: 30px;
  height: 30px;
  margin: 0 20px;
}

/* تعريف الحركة (Animation) - موحد للجميع */
@keyframes scrollText {
  from { transform: translateX(100%); }
  to { transform: translateX(-100%); }
}

/* =========================================
   4. تنسيقات الفوتر وتفاصيل المنتجات
   ========================================= */
.store-footer {
  border-radius: 100px 100px 0 0;
  overflow: hidden;
}

.store-footer a.flex.items-center h3 {
  display: none;
}

.store-footer a.flex.items-center::before {
  content: "";
  display: block;
  background-image: url('https://cdn.salla.sa/cdn-cgi/image/fit=scale-down,width=400,height=400,onerror=redirect,format=auto/zvyWEO/SEJMUxosjkCbrZ8la2Y18SchCy3DXoxD1LWuHbqJ.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  height: 100px;
  width: 200px;
  margin: 0 auto;
}

/* خلفيات العناوين والمنتجات */
.s-block__title .right-side {
  padding-left: 0.5rem;
  background: #F2E5D5;
  border-radius: 5px;
  padding: 5px 10px;
  display: inline-block;
  color: black;
  font-weight: bold;
}

.s-product-card-entry {
  background-color: #F2E5D5;
}

/* فواصل الأقسام */
.section-divider {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2px 0;
}

.section-divider img {
  width: 60%;
  max-width: 300px;
  height: auto;
  margin: 0 auto;
} 























/* =========================================
   تنسيق عداد العروض - تحديث الخلفية
   ========================================= */
.offer-countdown-container {
    background: #f4e7d7 !important; /* تم تعديل لون الخلفية هنا */
    border: 2px solid #c49c6e;
    border-radius: 8px;
    padding: 15px;
    margin: 15px auto;
    text-align: center;
    direction: rtl;
    width: 100%;
    box-sizing: border-box;
    display: block !important;
    position: relative;
    z-index: 99;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.offer-title {
    color: #c49c6e;
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.timer-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #fff; /* جعلت خلفية المربعات بيضاء لتبرز فوق الخلفية الجديدة */
    border: 1px solid #eaddd0; /* حدود خفيفة متناسقة */
    color: #333;
    border-radius: 6px;
    width: 60px;
    height: 60px;
}

.timer-number {
    font-size: 20px;
    font-weight: bold;
    color: #c49c6e;
    line-height: 1.2;
}

.timer-label {
    font-size: 10px;
    color: #777;
} 



































/* =========================================
   1. تنسيق حاوية عداد الوقت (الجزء العلوي)
   ========================================= */
.offer-countdown-container {
    background: #f4e7d7 !important; /* الخلفية البيج */
    border: 1px solid #e0cbae; /* حدود ناعمة بلون الهوية */
    border-bottom: none; /* إزالة الحد السفلي للدمج */
    border-radius: 12px 12px 0 0; /* تدوير الزوايا العلوية فقط */
    padding: 15px;
    margin: 20px auto 0 auto; /* إزالة الهامش السفلي */
    text-align: center;
    direction: rtl;
    width: 100%;
    box-sizing: border-box;
    display: block !important;
    position: relative;
    z-index: 2;
}

.offer-title {
    color: #8d6e63; /* لون بني هادئ للعنوان */
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 12px;
    display: block;
}

/* تنسيق مربعات الوقت */
.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.timer-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border: 1px solid #eaddd0;
    color: #333;
    border-radius: 8px; /* تدوير ناعم للمربعات */
    width: 55px;
    height: 55px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03); /* ظل خفيف جداً */
}

.timer-number {
    font-size: 19px;
    font-weight: 800; /* خط عريض جداً */
    color: #c49c6e; 
    line-height: 1;
    margin-bottom: 3px;
    font-family: sans-serif; /* لضمان وضوح الأرقام */
}

.timer-label {
    font-size: 9px;
    color: #999;
}

/* =========================================
   2. تنسيق شريط المبيعات (الجزء السفلي)
   ========================================= */
.enhanced-sold-counter {
    background-color: #fff !important; /* خلفية بيضاء نظيفة */
    border: 1px solid #e0cbae !important; /* نفس لون حدود العداد */
    border-top: 1px dashed #e0cbae !important; /* فاصل منقط خفيف بينهما */
    border-radius: 0 0 12px 12px !important; /* تدوير الزوايا السفلية فقط */
    color: #555 !important;
    width: 100% !important;
    justify-content: center !important;
    padding: 10px !important;
    margin-top: 0 !important; /* إلصاقه بالعداد */
    margin-bottom: 20px !important;
    display: flex !important;
    align-items: center;
    gap: 5px;
    font-size: 13px !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03); /* ظل للبطاقة كاملة */
}

/* تنسيق الرقم المميز */
.enhanced-sold-counter span span {
    color: #d32f2f; /* رقم أحمر */
    font-weight: 900;
    font-size: 15px !important;
    background: #ffebee; /* خلفية حمراء باهتة جداً للرقم */
    padding: 2px 8px;
    border-radius: 4px;
    margin: 0 4px;
    display: inline-block;
}

/* أيقونة النار */
.enhanced-sold-counter .sicon-fire {
    color: #ff5722 !important;
    font-size: 16px !important;
    margin-left: 5px;
    animation: firePulse 1.5s infinite ease-in-out;
}

/* أنيميشن النار الهادئ */
@keyframes firePulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}