/* إعادة ضبط شاملة لثيم رايد - الهوية الملكية الكاملة
   الألوان: العنابي (#592525) والذهبي (#D2AE60)
*/

/* 1. ضبط المتغيرات الأساسية للمنصة بالكامل */
:root {
  --color-primary: #592525 !important;
  --color-primary-dark: #3d1a1a !important;
  --color-primary-reverse: #D2AE60 !important;
  --main-color: #592525 !important;
  --secondary-color: #D2AE60 !important;
}

/* 2. قسم الهيدر والقائمة العلوية (Header Section) */
div#mainnav {
  background-color: #592525 !important; 
  border-bottom: 2px solid #3d1a1a !important; 
}

header, .main-nav-container, .top-header {
  border-bottom: 1px solid #3d1a1a !important; 
}

.main-menu li.root-level > a, .main-menu li > a {
  color: #fff !important; 
  font-weight: bold !important;
}

.main-menu li.root-level > a:hover {
  color: var(--color-primary-reverse) !important;
}

/* أيقونات المستخدم والسلة في الهيدر */
i.header-btn__icon.sicon-user-circle, 
i.header-btn__icon.sicon-shopping-bag,
.header-btn__icon {
  background-color: #D2AE60 !important; 
  color: #592525 !important; 
  border: none !important;
  border-radius: 8px !important;
}

.s-cart-summary-count {
  background-color: var(--color-primary-reverse) !important;
  color: var(--color-primary) !important;
}

/* 3. العناوين (Titles Style) */
.s-block__title h2, 
.s-slider-block__title h2, 
.s-block-header h2,
h2.text-lg, 
.title-main {
  background: linear-gradient(90deg, #592525 0%, #3d1a1a 100%) !important;
  color: #D2AE60 !important;
  padding: 12px 25px !important;
  border-radius: 5px 25px !important;
  border-right: 4px solid #D2AE60 !important; 
  display: inline-block !important;
}

/* 4. قسم المميزات/المخيمات (Features Section) - ترتيب أفقي وأيقونات أصغر */
.s-block--features {
  background-color: transparent !important; 
  padding: 20px 0 !important;
  margin: 0 !important;
}

.s-block--features .grid {
  background: linear-gradient(135deg, #592525 0%, #3d1a1a 100%) !important;
  border-radius: 3rem !important;
  border: 1px solid #3d1a1a !important; 
  border-right: 10px solid #D2AE60 !important; 
  padding: 25px 15px !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2) !important;
  
  /* العودة للترتيب الأفقي */
  display: flex !important;
  flex-direction: row !important; 
  justify-content: space-around !important;
  align-items: center !important;
  flex-wrap: nowrap !important; /* منع النزول لسطر جديد في الشاشات الواسعة */
  gap: 10px !important;
}

.s-block--features__item {
  background-color: transparent !important; 
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  flex: 1 !important;
}

.s-block--features__item h2 {
  color: #ffffff !important; 
  font-weight: bold !important;
  font-size: 1rem !important; /* تصغير حجم الخط ليتناسب مع الأيقونات الصغير */
  margin-top: 10px !important;
  width: 100% !important;
}

/* أيقونات المميزات المخصصة - حجم أصغر (2.2rem) وتوسيط */
i.sicon-store2, i.sicon-shipping-fast, i.sicon-fire {
  filter: brightness(0) saturate(100%) invert(80%) sepia(26%) saturate(1028%) hue-rotate(352deg) brightness(91%) contrast(85%) !important;
  width: 2.2rem !important; /* حجم أصغر للأيقونات */
  height: auto !important;
  margin: 0 auto !important;
  display: block !important;
}

i.sicon-store2 { content: url(https://i.ibb.co/ZMVgXQ4/100.png) !important; }
i.sicon-shipping-fast { content: url(https://i.ibb.co/42FcRvm/Untitled-2.png) !important; }
i.sicon-fire { content: url(https://i.ibb.co/PgZLm56/image.png) !important; }

.s-block--features__item p {
  display: none !important;
}

/* 5. بطاقة المنتج والأزرار */
.s-product-card-promotion-title {
  background: #D2AE60 !important;
  color: #592525 !important;
}

.s-button-element {
  background-color: #592525 !important;
  color: #D2AE60 !important;
  border: 1px solid #D2AE60 !important;
}

/* 6. المفوتر (Footer Section) */
footer.store-footer {
  background-color: #000 !important; 
}

.store-footer__inner {
  background-color: #592525 !important; 
  padding-inline: 30px !important;
  border-top: 5px solid #D2AE60 !important; 
}

.store-footer h3, 
.store-footer .footer-title,
.store-footer a, 
.store-footer p,
.store-footer span,
.store-footer .contact-item {
  color: #D2AE60 !important;
}

.social-link {
  background-color: #D2AE60 !important; 
  color: #592525 !important;
  border-radius: 8px !important;
}

/* 7. سكرول بار */
::-webkit-scrollbar-thumb {
  background: #D2AE60 !important;
}

/* تنسيقات الجوال */
@media (max-width: 768px) {
  .s-block--features .grid {
    flex-wrap: wrap !important; /* السماح بالنزول لسطر جديد فقط في الجوال لضمان الوضوح */
    justify-content: center !important;
  }
  .s-block--features__item {
    min-width: 30% !important; /* توزيع العناصر بجانب بعضها حتى في الجوال */
  }
  .store-footer__inner * {
    text-align: center !important;
    justify-content: center !important;
  }
/* --- تأثير رمضان الهادئ والفخم --- */

body {
    background-image: url('https://cdn.salla.sa/form-builder/rk533KyU53V27cR4dzHLiBBXHkBc1qE3LCpTQEE7.png');
    background-color: #f6f6f6;
    background-repeat: repeat;
    background-position: center center;
    background-size: 50%;
}
}
}

/* تنسيق زر "أضف للسلة" أو الأزرار العريضة */
.s-button-wide {
    width: 100%;
    border-radius: 15px;
}/* 1. ربط الحركة بالشعار */
.navbar-brand {
    animation: heartbeat 2.5s ease-in-out infinite both;
}

/* 2. تفاصيل حركة التكبير والتصغير (النبض) */
@keyframes heartbeat {
    0% {
        transform: scale(1);
        transform-origin: center center;
        animation-timing-function: ease-out;
    }
    10% {
        transform: scale(0.91);
        animation-timing-function: ease-in;
    }
    17% {
        transform: scale(0.98);
        animation-timing-function: ease-out;
    }
    33% {
        transform: scale(0.87);
        animation-timing-function: ease-in;
    }
    45% {
        transform: scale(1);
        animation-timing-function: ease-out;
    }
}

/* 3. ضبط حجم الشعار على الجوال لضمان ظهور الحركة بوضوح */
@media only screen and (max-width: 700px) {
    .navbar-brand {
        width: 20vw;
    }
/* 1. تأثير اللمعان للأزرار (أهدأ وأوضح) */
.s-button-wide {
    position: relative;
    overflow: hidden;
}

.s-button-wide::after {
    content: "";
    background: linear-gradient(
        90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.6) 50%, 
        transparent 100%
    );
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    /* سرعة الحركة 3 ثواني لتكون واضحة للعين */
    animation: smooth-shine 3s infinite;
}

/* 2. تأثير اللمعان للعناوين (الخلفيات الملونة للعنوان) */
.s-block__title h2, .s-slider-block__title h2 {
    position: relative;
    overflow: hidden;
}

.s-block__title h2::after, .s-slider-block__title h2::after {
    content: "";
    background: linear-gradient(
        90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%
    );
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    animation: smooth-shine 4s infinite; /* أبطأ قليلاً للعناوين */
}

/* الحركة الموحدة */
@keyframes smooth-shine {
    0% {
        left: -100%;
    }
    30% {
        left: 100%;
    }
    100% {
        left: 100%;
    }/* --- إلصاق البنرات بالهيدر تماماً --- */

/.s-product-card-content-footer .s-product-card-price {
    color: #D2AE60 !important;
    font-weight: 900 !important;
    text-shadow: 0 0 8px rgba(210, 174, 96, 0.3);
    position: relative;
}

.s-product-card-content-footer .s-product-card-price::after {
    content: '🌙';
    font-size: 10px;
    position: absolute;
    top: -10px;
    right: -15px;
    opacity: 0.6;
}/* 1. إعداد حاوية شريط الإعلانات */
.salla-announcement {
    background-color: #592525 !important; /* العنابي الملكي */
    height: 45px !important;
    overflow: hidden !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    border-bottom: 2px solid #D2AE60 !important; /* خط ذهبي */
}

/* 2. إخفاء أي نص قديم موجود في سلة وإضافة النص الجديد عبر CSS */
.salla-announcement .swiper-wrapper, 
.salla-announcement .swiper-slide {
    display: none !important; /* إخفاء النص الأصلي */
}

/* 3. إنشاء النص المتحرك الجديد */
.salla-announcement::after {
    /* ضع النص الذي تريده هنا بين علامات التنصيص */
    content: "🌙 مبارك عليكم الشهر .. تسوق الآن بكج بهارات رمضان الأكثر مبيعاً 🌙         ✨ استخدم كود الخصم: RAMADAN ✨         🚚 شحن مجاني للطلبات فوق 299 ريال 🚚         🌙 جودة براند جنوبيات تجمّل مائدتك 🌙";
    
    position: absolute;
    white-space: nowrap;
    display: block;
    color: #D2AE60 !important; /* اللون الذهبي */
    font-weight: bold;
    font-size: 15px;
    padding-right: 100%; /* بداية الحركة من خارج الشاشة */
    animation: css-ticker 25s linear infinite; /* سرعة الحركة */
}

/* 4. تعريف حركة الشريط من اليمين إلى اليسار */
@keyframes css-ticker {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* 5. توقف الحركة عند وضع الماوس لسهولة القراءة */
.salla-announcement:hover::after {
    animation-play-state: paused !important;
    cursor: pointer;
}