/* ==========================================================================
   تصميم "رزين التميز" الملكي (CSS) - النسخة الكاملة
   ========================================================================== */

/* 1. الشريط الإخباري (News Ticker) */
.ticker-wrap {
    width: 100%;
    height: 40px;
    background-color: #6a1b2d; /* عنابي */
    border-bottom: 1px solid #d4af37; /* ذهبي */
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    z-index: 99990;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    direction: ltr; /* لضمان حركة الشريط من اليمين لليسار بشكل صحيح */
}
.ticker-move {
    display: flex;
    animation: ticker-slide-right 120s linear infinite;
}
.ticker-item {
    flex-shrink: 0;
    color: white;
    font-size: 14px;
    font-weight: bold;
    padding: 0 15px;
    display: inline-block;
}
@keyframes ticker-slide-right {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(0); }
}

/* 2. إلغاء الفراغات بين الهيدر والبنر (تلاصق تام) */
.store-header, header.s-header, .s-header, #site-header {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
    box-shadow: none !important;
}
#main-content, .app-inner, .content-wrapper, main.content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}
#main-content > section:first-child,
.s-block--banners:first-child,
.section:first-of-type,
.s-block:first-of-type {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* 3. العناوين الفخمة (توسط + تكبير + خطوط ذهبية) */
/* استهداف شامل: عناوين الأقسام، الآراء، المزايا، الأسئلة */
.s-block__title, 
.section-title, 
.s-block-title, 
.product-section-title, 
h2.title, 
.faq-title,
.s-block--testimonials .s-block__title, 
.s-block--testimonials h2,
.s-block--features .s-block__title, 
.s-block--features h2,
h1.s-reviews-header {
    text-align: center !important;
    font-size: 36px !important;
    font-weight: 900 !important;
    color: #6a1b2d !important;
    margin-bottom: 35px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 20px !important;
    position: relative;
    line-height: 1.4 !important;
    width: 100% !important;
    float: none !important;
}

/* إصلاح حاوية عنوان الآراء */
.s-reviews-header-wrapper {
    justify-content: center !important;
    width: 100% !important;
}

/* الخطوط الجانبية الذهبية */
.s-block__title::before, .s-block__title::after,
.section-title::before, .section-title::after,
.faq-title::before, .faq-title::after,
.s-block--testimonials .s-block__title::before, .s-block--testimonials .s-block__title::after,
.s-block--f wa eatures .s-block__title::before, .s-block--features .s-block__title::after,
h1.s-reviews-header::before, h1.s-reviews-header::after {
    content: "" !important;
    display: block !important;
    width: 80px !important;
    height: 5px !important;
    background-color: #f4a15d !important;
    border-radius: 10px !important;
    flex-shrink: 0 !important;
}

/* ضبط للجوال */
@media (max-width: 768px) {
    .s-block__title, .s-block--testimonials .s-block__title, .faq-title, h1.s-reviews-header {
        font-size: 24px !important;
        gap: 10px !important;
    }
    .s-block__title::before, .s-block__title::after,
    h1.s-reviews-header::before, h1.s-reviews-header::after { 
        width: 40px !important;
        height: 4px !important;
    }
}

/* 4. تقليل المسافات بين الأقسام */
.s-block, section.section, .content-entry,
.s-block--products, .s-block--features, .s-block--testimonials {
    margin-bottom: 15px !important;
    padding-top: 15px !important;
    padding-bottom: 15px !important;
}

/* 5. أيقونات الهيدر (عود وذهبي) */
.s-header .s-header__action-btn, 
.s-header .s-header__action, 
.s-header button[class*="btn"], 
.cart-btn-container {
    background-color: #6a1b2d !important;
    color: #d4af37 !important;
    border: 1px solid #6a1b2d !important;
    border-radius: 50% !important;
    width: 45px !important;
    height: 45px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center !important;
    margin: 0 5px !important;
    transition: all 0.4s ease !important;
    box-shadow: 0 4px 10px rgba(106, 27, 45, 0.15) !important;
}
.s-header .s-header__action-btn i, 
.s-header .sicon-shopping-bag, 
.s-header .sicon-user, 
.s-header .sicon-search {
    color: #d4af37 !important;
    font-size: 22px !important;
}
/* تأثير التمرير */
.s-header .s-header__action-btn:hover, .s-header button[class*="btn"]:hover {
    background-color: #d4af37 !important;
    border-color: #d4af37 !important;
    transform: translateY(-3px);
}
.s-header .s-header__action-btn:hover i, .s-header button:hover i {
    color: #6a1b2d !important;
}
/* رقم السلة */
.s-header .cart-badge, .cart-icon .badge {
    background-color: #ffffff !important;
    color: #6a1b2d !important;
    border: 1px solid #6a1b2d !important;
    font-weight: bold;
    top: -5px !important;
    right: -5px !important;
}

/* 6. تكبير خط المنيو */
.main-menu a, .site-nav__link, .s-header-menu-item, .s-header .nav-link {
    font-size: 19px !important;
    font-weight: 800 !important;
    color: #333 !important;
    transition: color 0.3s !important;
}
.main-menu a:hover, .site-nav__link:hover { color: #6a1b2d !important; }

/* 7. تثبيت الواتساب */
.whatsapp-contact, .s-whatsapp-btn, #whatsapp-widget, a[href*="wa.me"] {
    z-index: 2147483647 !important;
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* 8. عداد الشراء والنجوم */
.sales-counter-widget {
    margin-top: 15px;
    padding: 10px;
    background: #fffafa;
    border: 1px dashed #d4af37;
    border-radius: 8px;
    text-align: center;
    color: #6a1b2d;
    font-weight: bold;
    width: 100%;
    box-sizing: border-box;
    animation: fadeIn 1s ease;
}
.custom-product-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    margin-bottom: 8px;
}
.custom-product-rating i { color: #f4a15d !important; font-size: 14px !important; }
.product-details .custom-product-rating { justify-content: flex-start; margin-top: 10px; margin-bottom: 10px; }
.product-details .custom-product-rating i { font-size: 18px !important; }
.rating-text { color: #777; font-size: 12px; margin-right: 5px; font-weight: bold; padding-top: 2px; }

/* 9. الأسئلة الشائعة */
.custom-faq-section {
    padding: 50px 20px;
    background-color: #fffafa;
    margin-top: 10px !important;
    direction: rtl;
}
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 1200px; margin: 0 auto; }
@media (max-width: 768px) { .faq-grid { grid-template-columns: 1fr; } }
.faq-item { background: #ffffff; border: 1px solid #e0e0e0; border-radius: 12px; overflow: hidden; transition: all 0.3s ease; }
.faq-item:hover { border-color: #d4af37; }
.faq-question { padding: 15px 20px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: bold; color: #333; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; background-color: #fcfcfc; padding: 0 20px; color: #555; }
.faq-item.active .faq-answer { padding: 15px 20px; border-top: 1px solid #f0f0f0; }

/* 10. تحسين كروت المنتجات */
custom-salla-product-card, .s-product-card-entry {
    border-radius: 16px !important;
    background: #ffffff !important;
    border: 1px solid #f2f2f2 !important;
    transition: all 0.4s ease !important;
    overflow: hidden !important;
}
custom-salla-product-card:hover, .s-product-card-entry:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 15px 30px rgba(106, 27, 45, 0.1) !important;
    border-color: #d4af37 !important;
}
.product-entry__cart-btn, .s-product-card-content .s-button-primary, .btn--add-to-cart { 
    background-color: #6a1b2d !important;
    color: #ffffff !important;
    border: 1px solid #6a1b2d !important;
}
.product-entry__cart-btn:hover, .btn--add-to-cart:hover {
    background-color: #4a121f !important;
}


/* عنوان الأقسام الرئيسي */
.s-block__title h2 {
    font-size: 1.75rem;      /* ← حجم العنوان */
    font-weight: 800;        /* ← سماكة قوية */
    line-height: 1.4;        /* ← تباعد مريح */
}

/* عناوين فرعية */
h2 {
    font-size: 1.6rem;
    line-height: 1.45;
}

h3 {
    font-size: 1.35rem;
    line-height: 1.5;
}


/* تصغير عناوين كروت المميزات على الجوال فقط */
@media (max-width: 767px){

  /* العنوان غالبًا يكون عنصر text-xl / text-2xl / font-bold داخل الكرت */
  .s-block--features__item h2,
  .s-block--features__item h3,
  .s-block--features__item h4,
  .s-block--features__item .text-2xl,
  .s-block--features__item .text-xl,
  .s-block--features__item [class*="text-2xl"],
  .s-block--features__item [class*="text-xl"],
  .s-block--features__item [class*="font-bold"]{
    font-size: 1rem !important;     /* صغر العنوان */
    line-height: 1.35 !important;
  }

}

/* إعادة ترتيب الهيدر: منيو يمين | شعار وسط | سلة وحساب يسار */

/* 1. ضبط الحاوية الرئيسية لتوزيع العناصر */
#mainnav .flex.items-stretch.justify-between {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
}

/* 2. دفع زر المنيو (الهامبرغر) لأقصى اليمين */
#mainnav .flex.items-center-reverse, 
.lg\:hidden.mburger {
    order: 1 !important;
    margin-right: 0 !important;
    margin-left: auto !important;
}

/* 3. وضع الشعار في المنتصف تماماً */
.navbar-brand {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    order: 2 !important;
    margin: 0 !important;
    z-index: 10 !important;
}

/* تكبير الشعار كما طلبته سابقاً */
.navbar-brand img {
    max-height: 6rem !important; /* يمكنك تعديل الحجم من هنا */
    width: auto !important;
}

/* 4. دفع أيقونات السلة والحساب لأقصى اليسار */
#mainnav .flex.items-center.justify-end {
    order:}

/* ضبط المسافات في الجوال لضمان عدم التداخل */
@media (max-width: 768px) {
    .navbar-brand img {
        max-height: 4.5rem !important;
    }
    #mainnav .container {
        position: relative !important;
        height: 80px !important; /* زيادة ارتفاع الهيدر ليتناسب مع الشعار */
    }
}