/* Add custom CSS styles below */ 
/* إعادة ضبط شاملة - الهوية الملكية الجديدة
   الألوان: الرمادي الفحمي (#4A484B) والذهبي الزيتوني (#B5A035)
*/

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

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

header, .main-nav-container, .top-header {
  border-bottom: 1px solid #353436 !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: #B5A035 !important; 
  color: #4A484B !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. العناوين */
.s-block__title h2, 
.s-slider-block__title h2, 
.s-block-header h2,
h2.text-lg, 
.title-main {
  background: linear-gradient(90deg, #4A484B 0%, #353436 100%) !important;
  color: #B5A035 !important;
  padding: 12px 25px !important;
  border-radius: 5px 25px !important;
  border-right: 4px solid #B5A035 !important; 
  display: inline-block !important;
}

/* 4. قسم المميزات */
.s-block--features {
  background-color: transparent !important; 
  padding: 20px 0 !important;
  margin: 0 !important;
}

.s-block--features .grid {
  background: linear-gradient(135deg, #4A484B 0%, #353436 100%) !important;
  border-radius: 3rem !important;
  border: 1px solid #353436 !important; 
  border-right: 10px solid #B5A035 !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 h2 {
  color: #ffffff !important; 
  font-weight: bold !important;
  font-size: 1rem !important;
  margin-top: 10px !important;
}

/* أيقونات المميزات */
i.sicon-store2, i.sicon-shipping-fast, i.sicon-fire {
  filter: brightness(0) saturate(100%) invert(75%) sepia(20%) saturate(1000%) hue-rotate(15deg) !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; }

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

.s-button-element {
  background-color: #4A484B !important;
  color: #B5A035 !important;
  border: 1px solid #B5A035 !important;
}

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

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

.store-footer h3, .store-footer a, .store-footer p, .store-footer span {
  color: #B5A035 !important;
}

.social-link {
  background-color: #B5A035 !important; 
  color: #4A484B !important;
  border-radius: 8px !important;
}

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

/* بدون خلفية */
body {
    background-color: #f6f6f6;
}

/* أنيميشن نبض الشعار */
@keyframes heartbeat {
    0% { transform: scale(1); }
    10% { transform: scale(0.91); }
    17% { transform: scale(0.98); }
    33% { transform: scale(0.87); }
    45% { transform: scale(1); }
}
.navbar-brand { animation: heartbeat 2.5s ease-in-out infinite both; }

/* تأثير اللمعان */
@keyframes smooth-shine {
    0% { left: -100%; }
    30% { left: 100%; }
    100% { left: 100%; }
}
.s-button-wide::after, .s-block__title h2::after {
    content: "";
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: smooth-shine 3s infinite;
}

/* شريط الإعلانات */
.salla-announcement {
    background-color: #4A484B !important;
    border-bottom: 2px solid #B5A035 !important;
}
.salla-announcement::after {
    content: "🌙 مبارك عليكم الشهر .. تسوق الآن بكج بهارات رمضان الأكثر مبيعاً 🌙 ✨ استخدم كود الخصم: RAMADAN ✨ 🚚 شحن مجاني للطلبات فوق 299 ريال 🚚 🌙 جودة براند جنوبيات تجمّل مائدتك 🌙";
    color: #B5A035 !important;
    animation: css-ticker 25s linear infinite;
}

@keyframes css-ticker {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* السعر */
.s-product-card-content-footer .s-product-card-price {
    color: #B5A035 !important;
    font-weight: 900 !important;
}