/********************************************
 * 0. GLOBAL – منع القفزات بسبب الصور والعناصر
 ********************************************/
html, body {
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/********************************************
 * 1. الهيدر + شريط الأعلى (يمنع الاهتزاز)
 ********************************************/
header,
.site-header,
.main-header {
    min-height: 70px !important;
}

header img,
.site-header img,
.main-header img {
    max-height: 40px;
}

/********************************************
 * 2. البنر الرئيسي (Hero Banner) – تعيين مساحة ثابتة لتقليل CLS
 ********************************************/

/* [Massoud code] 2026-11-03: اتشالت قواعد قديمة كانت هنا (section:first-of-type بأقصى ارتفاع 280px
   + قص الصور 16/6). كانت بتقص أي قسم يبقى "أول section" في مكانه على الجوال
   فالكلام والكروت كانوا بيدخلوا فوق بعض. البنر الرئيسي ليه قواعده الخاصة تحت. */

/********************************************
 * 3. كروت المنتجات
 ********************************************/
.product-card,
.product-item,
.product-box {
    min-height: 330px;
}

.product-card img,
.product-item img,
.product-box img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.product-card button,
.product-item button,
.product-box button,
.add-to-cart,
.btn {
    min-height: 44px;
}

/********************************************
 * 4. قسم الآراء / التستيمونيال
 ********************************************/
.testimonials,
.testimonials-slider,
.reviews-section {
    min-height: 180px;
}

.testimonials .swiper,
.reviews-section .swiper {
    min-height: 150px;
    overflow: hidden;
}

/********************************************
 * 5. قسم الإحصائيات
 ********************************************/
.stats,
.statistics {
    min-height: 160px;
}

/********************************************
 * 6. الفوتر
 ********************************************/
footer,
.site-footer {
    min-height: 220px;
}

/********************************************
 * 7. شريط التنقل السفلي للموبايل
 ********************************************/
.bottom-nav,
.mobile-nav,
.sticky-bottom-nav,
.fixed-bottom-bar {
    min-height: 60px;
}

/********************************************
 * 8. منع الانتقالات الثقيلة
 ********************************************/
* {
    transition-property: color, background-color, border-color, box-shadow, transform;
    transition-duration: 0.15s;
}

/********************************************
 * 9. تثبيت شبكة المنتجات لتقليل التحرك
 ********************************************/
.products-grid,
.products-list,
.products-section {
    min-height: 500px;
}





.store-footer .s-payments-list>li {
    display: flex;
    height: 3rem;
    width: 4.5rem;
    border-radius: 1.25rem;
    background-color: transparent !important;
    padding: 0.5rem;
    color: var(--main-color);
    box-shadow: none !important;
}

/********************************************
 * 9. معطاء – دمج الهيدر مع سلايدر الهيرو (الصفحة الرئيسية فقط)
 *    body.index = الصفحة الرئيسية فقط، باقي الصفحات ما تتأثرش
 ********************************************/

/* (أ) الهيدر يطفو فوق السلايدر بدل ما ياخد مساحة فوقه */
body.index header.store-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

/* (ب) قبل النزول في الصفحة: هيدر شفاف + تدرج غامق خفيف عشان اللوجو والأيقونات تفضل واضحة */
body.index #mainnav:not(.fixed-pinned) {
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
body.index #mainnav:not(.fixed-pinned) .inner {
    background: transparent !important;
}

/* (ج) بعد النزول: الهيدر يثبت فوق بلون البراند البنفسجي بشفافية + تأثير زجاجي */
body.index #mainnav.fixed-pinned {
    background: rgba(49, 44, 79, .88) !important;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}
body.index #mainnav.fixed-pinned .inner {
    background: transparent !important;
}

/* (د) السلايدر يبدأ من أعلى الصفحة، ومساحة بلون خلفية البنر تحت الهيدر
      عشان الهيدر ما يغطيش عنوان البنر (غيّر 80px لو حبيت تكبر/تصغر المسافة) */
body.index main > section.s-block:first-of-type {
    margin-top: 0 !important;
    padding-top: 80px !important;
    /* اللون البنفسجي يغطي مساحة الهيدر (أول 80px) فقط، وما يظهرش تحت البنر */
    background: linear-gradient(#1e1936, #1e1936) top / 100% 80px no-repeat !important;
    padding-bottom: 0 !important;
    min-height: 0 !important;
    max-height: none !important;
}

/* (هـ) البنر يظهر كامل بدون قص (يلغي قاعدة 16/6 اللي فوق للسلايدر بس) */
body.index main > section.s-block:first-of-type img {
    aspect-ratio: auto !important;
    object-fit: contain !important;
}


/* (و) تدرج ناعم يدمج الشريط اللي تحت الهيدر مع أعلى صورة البنر (يخفي خط الفصل) */
body.index main > section.s-block:first-of-type {
    position: relative;
}
body.index main > section.s-block:first-of-type::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 80px;          /* نفس قيمة padding-top في (د) */
    height: 70px;       /* طول التدرج */
    background: linear-gradient(180deg, #1e1936 0%, rgba(30, 25, 54, 0) 100%);
    pointer-events: none; /* عشان الضغط على البنر يفضل شغال */
    z-index: 2;
}

/* (ز) البنر ينتهي مع نهاية السكشن بالظبط: نشيل أي مسافة تحت الصورة
      ونخلي نقاط السلايدر فوق الصورة من تحت بدل ما تاخد مساحة لوحدها */
body.index main > section.s-block:first-of-type .swiper,
body.index main > section.s-block:first-of-type .swiper-slide {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}
body.index main > section.s-block:first-of-type .swiper-pagination {
    position: absolute !important;
    bottom: 14px !important;
    z-index: 3;
}

/********************************************
 * 10. معطاء – دمج عنصرين الأسئلة الشائعة في قسم واحد
 *    (سلة بتسمح بـ 6 أسئلة بس في العنصر، فعملنا عنصرين ورا بعض)
 *    :has() = "السكشن اللي جواه أسئلة"، و + = "السكشن اللي جاي مباشرة بعده"
 ********************************************/

/* (أ) العنصر الأول: نشيل المسافة اللي تحته */
body.index section.s-block:has(.faqs):has(+ section.s-block .faqs) {
    padding-bottom: 0 !important;
}
body.index section.s-block:has(.faqs):has(+ section.s-block .faqs) .faqs {
    padding-bottom: 0 !important;
}

/* (ب) العنصر التاني: نشيل المسافة اللي فوقه ونخفي عنوانه الفاضي */
body.index section.s-block:has(.faqs) + section.s-block:has(.faqs) {
    padding-top: 0 !important;
}
body.index section.s-block:has(.faqs) + section.s-block:has(.faqs) .f_block__title {
    display: none !important;
}
body.index section.s-block:has(.faqs) + section.s-block:has(.faqs) .faqs {
    padding-top: 1rem !important; /* نفس المسافة بين الأسئلة */
}

/* ===== [Massoud code] معطاء – ستايل الرئيسية بروح "أضحيتي" | 2026-10-30 =====
   الفكرة: نفس لاي أوت أضحيتي (أقسام بخلفيات متبادلة كريمي/أبيض، عناوين كبيرة،
   كروت نظيفة، شريط أرقام غامق، أسئلة بعمودين) بس بألوان معطاء.
   ✏️ الألوان كلها في المتغيرات تحت — غيّر أي لون من هنا ويتغير في كل الصفحة. */
body.index {
  --m3-dark: #2b2452;      /* البنفسجي الغامق (بدل الأخضر في أضحيتي) */
  --m3-gold: #e2c27f;      /* الذهبي للأزرار والأرقام */
  --m3-cream: #f8f3ea;     /* الخلفية الكريمي للأقسام المتبادلة */
  --m3-white: #fffdf9;     /* الأبيض الدافي */
  --m3-text: #1c1830;
  --m3-muted: #6f6a7d;
  background: var(--m3-white) !important;
}

/* ---------- 1) كل الأقسام: مسافات أكبر ---------- */
body.index main > section.s-block:not(.f_enhanced-slider):not(.f_animated-text-bar) { padding-top: 56px !important; padding-bottom: 56px !important; margin: 0 !important; }

/* ---------- 2) العناوين: كبيرة وبالنص ومن غير خط تحت ---------- */
body.index .s-block__title, body.index .f_block__title { justify-content: center !important; text-align: center !important; margin-bottom: 8px; }
body.index .s-block__title .right-side, body.index .f_block__title > div { width: 100%; text-align: center; }
body.index .s-block__title .right-side, body.index .s-block__title .right-side h2 { display: block !important; width: 100% !important; text-align: center !important; }
body.index main h2 { font-size: clamp(24px, 3vw, 38px) !important; font-weight: 800 !important; color: var(--m3-dark) !important; line-height: 1.3 !important; }
body.index .s-block__title p, body.index .f_block__title p { color: var(--m3-muted) !important; font-size: 15px !important; margin-top: 6px; }
body.index .underlined-title h2:after, body.index .f_block__title h2:after, body.index .underlined-title h2::before { display: none !important; }

/* ---------- 3) خلفيات متبادلة (كريمي) ---------- */
body.index section.s-block--testimonials,
body.index section.f_enhanced-square-photos:not(:has(.m3-videos)),
body.index section.s-block:has(.m3-videos) + section.s-block:has(.m3-videos) { background: var(--m3-cream) !important; max-width: none !important; }
body.index section.f_enhanced-square-photos.container { width: 100% !important; padding-inline: max(16px, calc((100% - 1200px) / 2)) !important; }

/* ---------- 4) آراء العملاء: كروت بيضا ناعمة ---------- */
body.index .s-block--testimonials .testimonial { background: #fff !important; border: 1px solid #ece4d6 !important; border-radius: 16px !important; box-shadow: none !important; }

/* ---------- 5) كروت المنتجات ---------- */
/* الكروت في النص حتى لو 2 أو 3 (غيّر 25% لـ 33.33% لو عايز 3 في الصف) */
body.index .s-products-list-vertical-cards { display: flex !important; flex-wrap: wrap !important; justify-content: center !important; gap: 24px !important; }
body.index .s-products-list-vertical-cards > * { width: calc(25% - 18px) !important; flex: 0 0 auto; }
body.index main > section.s-block:has(salla-products-list) { padding-top: 24px !important; padding-bottom: 24px !important; }

/* ---------- 6) شريط الأرقام: بنفسجي غامق + أرقام ذهبي ---------- */
body.index section.f_statistics { background: var(--m3-dark) !important; max-width: none !important; width: 100% !important; padding-inline: max(16px, calc((100% - 1100px) / 2)) !important; }
body.index section.f_statistics h2 { color: #f8f0df !important; }
body.index section.f_statistics * { box-shadow: none !important; }
body.index section.f_statistics .f_statistics-item { background: rgb(255 255 255 / .05) !important; border: 1px solid rgb(226 194 127 / .25) !important; border-radius: 20px !important; }
body.index section.f_statistics h3 { color: var(--m3-gold) !important; }
body.index section.f_statistics p, body.index section.f_statistics span { color: #e9e3f5 !important; }
body.index section.f_statistics img { filter: brightness(0) invert(.85) sepia(.6) saturate(3) hue-rotate(5deg); } /* الأيقونات ذهبي */

/* ---------- 7) الأسئلة الشائعة: عمودين (محتاج كود الـ JS اللي بيدمج القسمين) ---------- */
body.index section.m3-faq-merged > .container { display: grid !important; grid-template-columns: 1fr 2fr; gap: 48px; align-items: start; }
body.index section.m3-faq-merged .f_block__title, body.index section.m3-faq-merged .s-block__title { text-align: start !important; justify-content: flex-start !important; position: sticky; top: 110px; }
body.index section.m3-faq-merged .f_block__title > div, body.index section.m3-faq-merged .f_block__title p, body.index section.m3-faq-merged h2 { text-align: start !important; }
body.index section.m3-faq-merged .faqs { display: block !important; padding: 0 !important; }
body.index section.m3-faq-merged .faqs__item { background: transparent !important; border: 0 !important; border-bottom: 1px solid #e6dfd2 !important; border-radius: 0 !important; box-shadow: none !important; margin: 0 !important; }
.m3-faq-help { margin-top: 28px; }
.m3-faq-help p { color: var(--m3-muted); font-size: 15px; margin-bottom: 12px; }
.m3-faq-help a { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 10px; background: var(--m3-dark); color: #fff !important; font-weight: 700; font-size: 15px; }

/* ---------- 8) الشريط المتحرك ---------- */
body.index section.f_animated-text-bar > * { background: var(--m3-dark) !important; color: var(--m3-gold) !important; border-radius: 0 !important; }

/* ---------- 9) الفوتر الغامق ---------- */
body.index .store-footer { background: var(--m3-dark) !important; color: #e9e3f5 !important; }
body.index .store-footer__inner { background: transparent !important; }
body.index .store-footer a, body.index .store-footer p, body.index .store-footer span { color: #e9e3f5 !important; }
body.index .store-footer h3, body.index .store-footer h4, body.index .store-footer .font-bold { color: var(--m3-gold) !important; }
body.index .store-footer .about-us-block { background: rgb(255 255 255 / .06) !important; border: 1px solid rgb(226 194 127 / .2) !important; }
body.index .store-footer .about-us-block img { filter: brightness(0) invert(1); }
body.index .store-footer__bottom { background: #1f1a3d !important; }
body.index .store-footer .s-payments-list li, body.index .store-footer .s-payments-list > * { background: #fff !important; border-radius: 6px; padding: 3px 6px; }
body.index .store-footer .f_certificates, body.index .store-footer .f_certificates * { color: var(--m3-dark) !important; }

/* ---------- 10) الموبايل ---------- */
@media (max-width: 767px) {
  body.index main > section.s-block:not(.f_enhanced-slider):not(.f_animated-text-bar) { padding-top: 36px !important; padding-bottom: 36px !important; }
  body.index .s-products-list-vertical-cards { gap: 12px !important; }
  body.index .s-products-list-vertical-cards > * { width: calc(50% - 6px) !important; }
  body.index section.m3-faq-merged > .container { grid-template-columns: 1fr; gap: 16px; }
  body.index section.m3-faq-merged .f_block__title { position: static; }
}
/* ===== نهاية [Massoud code] ستايل الرئيسية بروح أضحيتي ===== */

/* ===== [Massoud code] معطاء – مراجعة وتظبيط الرئيسية | 2026-10-30 ===== */
/* 1) الشريط الأخير في الفوتر (حقوق النشر): بعرض الشاشة كله بدل ما يكون مربع في النص */
body.index .store-footer__bottom { max-width: none !important; width: 100% !important; margin: 0 !important; background: #1f1a3d !important; border-top: 1px solid rgb(226 194 127 / .15) !important; }
body.index .store-footer__bottom p, body.index .store-footer__bottom a { color: #cfc8e3 !important; }
/* 2) أيقونات التواصل في الفوتر: كانت أبيض على أبيض (مش باينة) → دواير شفافة بأيقونة ذهبي */
body.index .store-footer .s-social-list a { background: rgb(255 255 255 / .08) !important; border: 1px solid rgb(226 194 127 / .3) !important; border-radius: 50% !important; }
body.index .store-footer .s-social-list svg, body.index .store-footer .s-social-list svg path { fill: var(--m3-gold) !important; }
/* 3) قسم "منتجات على ذوقك" لما يكون فاضي كان سايب مساحة بيضا → نخفيه لحد ما يكون فيه منتجات */
body.index section.s-block--bundle-personalized-shoppers-who-bought:not(:has(.product-entry, custom-salla-product-card, img)) { display: none !important; }
/* 4) آراء العملاء: الكروت كانت لازقة في أطراف الشاشة → نفس عرض باقي الأقسام */
body.index section.s-block--testimonials { padding-inline: max(16px, calc((100% - 1200px) / 2)) !important; }
/* 5) الشريط المتحرك: بعرض الشاشة وملزوق في شريط الأرقام (كان مربع وحواليه أبيض) */
body.index section.f_animated-text-bar { max-width: none !important; width: 100% !important; padding: 0 !important; background: var(--m3-dark) !important; border-block: 1px solid rgb(226 194 127 / .25); }
body.index section.f_animated-text-bar p, body.index section.f_animated-text-bar a { color: var(--m3-gold) !important; font-weight: 700 !important; }
/* 6) كلام وزر الواتساب في الأسئلة: من اليمين زي العنوان */
body.index .m3-faq-help, body.index .m3-faq-help p { text-align: start !important; width: 100%; }
body.index .m3-faq-help { display: flex; flex-direction: column; align-items: flex-start; }
/* ===== نهاية [Massoud code] مراجعة وتظبيط الرئيسية ===== */

/* ===== [Massoud code] توسيط الأقسام على الشاشات العريضة | 2026-10-31 =====
   المشكلة: قاعدة margin:0 اللي فوق كانت بتلغي margin:auto بتاع الـ container
   فالأقسام كانت بتلزق يمين لما الشاشة تبقى أعرض من 1280px */
html body.index main > section.s-block.container.page-content-section:not(.f_enhanced-slider):not(.f_animated-text-bar) { margin-inline: auto !important; }
/* أقسام الفيديو والصور: بعرض الشاشة والمحتوى في النص */
body.index section.f_enhanced-square-photos.container { max-width: none !important; width: 100% !important; }
/* فيديوهات السفراء نفس حجم فيديوهات التوزيع (عرض 1100px في النص) */
body.index .m3-videos { margin-inline: auto !important; width: 100% !important; max-width: 1100px !important; }
/* ===== نهاية [Massoud code] توسيط الأقسام ===== */

/* ===== [Massoud code] تصليح البنر الرئيسي (جوال + ديسكتوب) | 2026-10-31 =====
   1) شلنا التدرج الغامق اللي كان نازل فوق البنر وبيغطي الكلام
   2) قواعد قديمة في أول الملف (min/max-height + aspect-ratio 16/6) كانت بتقص البنر على الجوال
      → هنا بنلغيها للسلايدر بس، والبنر يظهر كامل بمقاسه الحقيقي
   3) خلفية السكشن غامقة بدل الأبيض، عشان لو السلايدر بيقلّب ميبانش أبيض */
body.index main > section.s-block:first-of-type::after { display: none !important; }
html body.index main > section.f_enhanced-slider { min-height: 0 !important; max-height: none !important; background: #1e1936 !important; overflow: hidden !important; }
/* كل شريحة بعرض الشاشة كامل (مفيش جزء من الشريحة اللي بعدها يبان) */
body.index section.f_enhanced-slider .swiper-slide { width: 100% !important; flex-shrink: 0 !important; }
/* صورة البنر كاملة من غير قص */
body.index section.f_enhanced-slider .swiper-slide img { display: block !important; width: 100% !important; height: auto !important; aspect-ratio: auto !important; object-fit: contain !important; max-height: none !important; }
/* ===== نهاية [Massoud code] تصليح البنر ===== */

/* ===== [Massoud code] معطاء – ستايل صفحة المنتج بروح أضحيتي | 2026-10-31 =====
   ✏️ الألوان في المتغيرات تحت (نفس ألوان الرئيسية) */
body.m3-product {
  --m3-dark: #2b2452; --m3-gold: #e2c27f; --m3-gold-d: #b8914f; --m3-cream: #f8f3ea;
  --m3-white: #fffdf9; --m3-text: #1c1830; --m3-muted: #6f6a7d; --m3-line: #ece4d6;
}

/* ---------- 1) تحت السعر: تم طلبه + المميزات ---------- */
.m3p-info { margin: 14px 0 18px; }
.m3p-sold { display: inline-block; background: var(--m3-cream); border: 1px solid var(--m3-line); color: var(--m3-dark);
  font-size: 14px; font-weight: 700; padding: 8px 14px; border-radius: 10px; margin-bottom: 14px; }
.m3p-sold b { color: var(--m3-gold-d); }
.m3p-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.m3p-checks li, .m3p-g li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--m3-text); line-height: 1.6; }
.m3p-checks svg, .m3p-g svg, .m3p-why svg { flex: 0 0 22px; width: 22px; height: 22px; padding: 4px; border-radius: 50%;
  background: var(--m3-cream); color: var(--m3-dark); margin-top: 1px; }
.m3p-checks a { color: var(--m3-gold-d); text-decoration: underline; }

/* ---------- 2) الفورم: حقول نظيفة ---------- */
body.m3-product form.product-form .s-form-control,
body.m3-product form.product-form select {
  border-radius: 10px !important; border: 1px solid var(--m3-line) !important; background-color: #fff !important;
  min-height: 48px; font-size: 15px !important; box-shadow: none !important;
}
body.m3-product form.product-form .s-form-control:focus { border-color: var(--m3-dark) !important; }
body.m3-product form.product-form .s-product-options-option-label { font-weight: 700 !important; color: var(--m3-text) !important; }
body.m3-product form.product-form salla-add-product-button button,
body.m3-product form.product-form .s-button-element.s-button-btn { border-radius: 10px !important; min-height: 50px; font-weight: 800 !important; font-size: 16px !important; }

/* ---------- 3) كارت المواصفات + الوصف القديم ---------- */
.m3p-specs { margin-top: 22px; background: #fff; border: 1px solid var(--m3-line); border-radius: 16px; padding: 20px; }
.m3p-specs h3, .m3p-reviews h3 { font-size: 18px; font-weight: 800; color: var(--m3-dark); margin-bottom: 12px; }
.m3p-specs dl { margin: 0; }
.m3p-specs dl > div { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--m3-line); font-size: 15px; }
.m3p-specs dl > div:last-child { border-bottom: 0; }
.m3p-specs dt { flex: 0 0 120px; color: var(--m3-muted); }
.m3p-specs dd { margin: 0; color: var(--m3-text); font-weight: 600; }
.m3p-more { margin-top: 14px; background: var(--m3-cream); border-radius: 14px; overflow: hidden; }
.m3p-more > summary { cursor: pointer; padding: 16px 20px; font-weight: 800; color: var(--m3-dark); list-style: none; display: flex; justify-content: space-between; }
.m3p-more > summary::after { content: "+"; font-size: 20px; line-height: 1; }
.m3p-more[open] > summary::after { content: "−"; }
.m3p-more > summary::-webkit-details-marker, .m3p-sec summary::-webkit-details-marker { display: none; }
.m3p-more .product__description { background: #fff; }

/* ---------- 4) كارت آراء العملاء جنب المنتج ---------- */
.m3p-reviews { background: var(--m3-cream); border: 1px solid var(--m3-line); border-radius: 16px; padding: 18px; margin-bottom: 18px; }
.m3p-reviews > p { color: var(--m3-muted); font-size: 14px; margin: -6px 0 12px; }
.m3p-reviews .m3p-videos { grid-template-columns: repeat(2, 1fr); }

/* ---------- 5) الأقسام تحت المنتج ---------- */
.m3p-sections { margin-top: 40px; }
.m3p-sec { padding: 56px max(16px, calc((100% - 1100px) / 2)); background: var(--m3-white); }
.m3p-cream { background: var(--m3-cream); }
.m3p-dark { background: var(--m3-dark); color: #fff; }
.m3p-head { text-align: center; margin-bottom: 28px; }
.m3p-head h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 800; color: var(--m3-dark); line-height: 1.3; }
.m3p-head p { color: var(--m3-muted); font-size: 15px; margin-top: 6px; }
.m3p-dark .m3p-head h2 { color: #f8f0df; }

/* الخطوات */
.m3p-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.m3p-steps li { background: #fff; border: 1px solid var(--m3-line); border-radius: 16px; padding: 20px; }
.m3p-steps span { display: inline-flex; width: 36px; height: 36px; border-radius: 50%; align-items: center; justify-content: center;
  background: var(--m3-dark); color: var(--m3-gold); font-weight: 800; margin-bottom: 10px; }
.m3p-steps b { display: block; font-size: 17px; color: var(--m3-dark); margin-bottom: 4px; }
.m3p-steps p { color: var(--m3-muted); font-size: 14px; line-height: 1.7; }

/* الكروت */
.m3p-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.m3p-card { background: #fff; border: 1px solid var(--m3-line); border-radius: 16px; padding: 20px; }
.m3p-card b { display: flex; align-items: center; gap: 8px; font-size: 17px; color: var(--m3-dark); margin-bottom: 6px; }
.m3p-card p { color: var(--m3-muted); font-size: 14px; line-height: 1.8; }
.m3p-card a { color: var(--m3-gold-d); text-decoration: underline; }

/* لماذا إفريقيا */
.m3p-why-africa { background: var(--m3-dark); border-radius: 20px; padding: 32px; text-align: center; margin-bottom: 48px; }
.m3p-why-africa h2 { color: var(--m3-gold); font-size: clamp(24px, 3vw, 34px); font-weight: 800; }
.m3p-why-africa p { color: #efeaf8; font-size: 18px; margin-top: 8px; }
.m3p-why-africa b { color: var(--m3-gold); }

/* الفيديوهات */
.m3p-videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1100px; margin: 0 auto; justify-content: center; }
.m3p-video video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 16px; background: #000; display: block; }
.m3p-video h3 { font-size: 15px; font-weight: 700; color: var(--m3-dark); margin-top: 10px; text-align: center; }
.m3p-video small { display: block; text-align: center; color: var(--m3-gold-d); font-size: 13px; }
/* لو فيديو واحد أو اتنين: يفضلوا في النص بنفس الحجم */
.m3p-sec .m3p-videos:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 340px)); }
.m3p-sec .m3p-videos:has(> :only-child) { grid-template-columns: minmax(0, 340px); }

/* الأرقام */
.m3p-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.m3p-nums > div { text-align: center; border: 1px solid rgb(226 194 127 / .3); background: rgb(255 255 255 / .05); border-radius: 20px; padding: 24px; }
.m3p-nums b { display: block; font-size: clamp(28px, 4vw, 44px); font-weight: 800; color: var(--m3-gold); line-height: 1.2; margin-bottom: 10px; } /* مسافة بين الرقم والكلام */
.m3p-nums span { color: #e9e3f5; font-size: 15px; }

/* الضمانات */
.m3p-gs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.m3p-g { background: #fff; border: 1px solid var(--m3-line); border-radius: 16px; padding: 20px; }
.m3p-g summary { cursor: pointer; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.m3p-g-n { width: 36px; height: 36px; border-radius: 50%; background: var(--m3-gold); color: var(--m3-dark); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.m3p-g summary b { font-size: 17px; color: var(--m3-dark); }
.m3p-g summary small { color: var(--m3-muted); font-size: 14px; }
.m3p-g summary u { color: var(--m3-gold-d); font-size: 14px; font-weight: 700; }
.m3p-g[open] summary u { display: none; }
.m3p-g ul { list-style: none; padding: 14px 0 0; margin: 14px 0 0; border-top: 1px dashed var(--m3-line); display: grid; gap: 10px; }
.m3p-g li { font-size: 14px; }

/* سؤال وجواب */
.m3p-faq { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: start; }
.m3p-faq .m3p-head { text-align: start; }
.m3p-wa { display: inline-flex; padding: 12px 20px; border-radius: 10px; background: var(--m3-dark); color: #fff !important; font-weight: 700; font-size: 14px; }
.m3p-faq details { border-bottom: 1px solid var(--m3-line); }
.m3p-faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 700; color: var(--m3-text); display: flex; justify-content: space-between; gap: 12px; }
.m3p-faq summary::after { content: "+"; color: var(--m3-dark); font-size: 20px; line-height: 1; }
.m3p-faq details[open] summary::after { content: "−"; }
.m3p-faq details p { color: var(--m3-muted); font-size: 15px; line-height: 1.8; padding-bottom: 16px; }

/* CTA الأخير */
.m3p-cta { margin: 0 max(16px, calc((100% - 1100px) / 2)) 56px; border-radius: 24px; padding: 48px 20px; text-align: center;
  background: radial-gradient(circle at 50% 0%, #5a4aa8 0%, rgba(90, 74, 168, 0) 60%), linear-gradient(160deg, #2b2452, #1a1636); }
.m3p-cta h2 { color: var(--m3-gold); font-size: clamp(24px, 3.4vw, 40px); font-weight: 800; margin-bottom: 20px; }
.m3p-go { font-weight: 800; font-size: 17px; color: var(--m3-dark); padding: 14px 40px; border-radius: 999px; background: linear-gradient(180deg, #f0cf93, #c4954f); }

/* ---------- 6) شريط الشراء الثابت ---------- */
.m3p-bar { position: fixed; inset-inline: 0; bottom: 0; z-index: 5; /* أقل من زر الواتساب عشان يفضل ظاهر فوقه */ background: #fff; border-top: 1px solid var(--m3-line);
  box-shadow: 0 -8px 24px rgb(43 36 82 / .08); transform: translateY(110%); transition: transform .3s ease; }
.m3p-bar.show { transform: none; }
.m3p-bar-in { max-width: 1100px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; }
.m3p-bar img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; }
.m3p-bar-name { font-weight: 700; color: var(--m3-dark); flex: 1; }
.m3p-bar-price { font-weight: 800; color: var(--m3-dark); white-space: nowrap; }
.m3p-bar button { background: var(--m3-dark); color: #fff; font-weight: 800; padding: 12px 26px; border-radius: 10px; }
/* شريط الثيم الأصلي الثابت: نخفيه عشان مايبقاش فيه شريطين */
body.m3-product .PS__price--sticky { display: none !important; }

/* ---------- 7) الجوال ---------- */
@media (max-width: 767px) {
  .m3p-sec { padding: 36px 16px; }
  .m3p-steps, .m3p-cards, .m3p-gs { grid-template-columns: 1fr; }
  .m3p-nums { grid-template-columns: 1fr; }
  .m3p-faq { grid-template-columns: 1fr; gap: 16px; }
  .m3p-sec .m3p-videos, .m3p-sec .m3p-videos:has(> :nth-child(2):last-child), .m3p-sec .m3p-videos:has(> :only-child) {
    grid-template-columns: none; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 6px; }
  .m3p-sec .m3p-video { flex: 0 0 72%; scroll-snap-align: center; }
  /* الجوال: السعر + الزر بس، ومسافة على اليمين عشان زر الواتساب */
  .m3p-bar img, .m3p-bar-name { display: none; }
  .m3p-bar-in { padding-inline-start: 140px; justify-content: flex-end; }
  .m3p-bar button { padding: 11px 18px; }
}
/* ===== نهاية [Massoud code] ستايل صفحة المنتج ===== */

/* ===== [Massoud code] خط Alexandria لكل صفحات المتجر | 2026-11-01 =====
   الخط بيتحمّل من Google Fonts عن طريق الـ JS. هنا بنطبقه على كل النصوص،
   ومستثنيين الأيقونات (sicon / icon / fi-) عشان ماتتحولش لمربعات */
:root { --font-main: 'Alexandria' !important; }
html body,
body *:not(i):not([class*="sicon"]):not([class*="icon"]):not([class^="fi-"]):not([class*=" fi-"]):not(.fa) {
  font-family: 'Alexandria', sans-serif !important;
}
/* ===== نهاية [Massoud code] خط Alexandria ===== */

/* ===== [Massoud code] زر واتساب الأسئلة: صغير وفي النص تحت الأسئلة | 2026-11-01 ===== */
/* الرئيسية */
body.index .m3-faq-help { grid-column: 1 / -1; display: flex !important; justify-content: center; align-items: center !important; margin-top: 24px !important; width: 100%; }
body.index .m3-faq-help a { padding: 9px 18px !important; font-size: 13px !important; border-radius: 999px !important; font-weight: 600 !important; }
/* صفحة المنتج */
.m3p-faq-help { grid-column: 1 / -1; text-align: center; margin-top: 8px; }
.m3p-wa { padding: 9px 18px !important; font-size: 13px !important; border-radius: 999px !important; font-weight: 600 !important; }

/* ملاحظة الاشتراك الدوري (بتظهر لما العميل يختار "اشتراك دوري") */
.m3p-subnote { margin: 10px 0 0; background: #fff8e8; border: 1px solid #f0d9a8; color: #6b4e16; border-radius: 10px; padding: 10px 14px; font-size: 13px; line-height: 1.7; }
/* ===== نهاية [Massoud code] زر واتساب + ملاحظة الاشتراك ===== */
/* [Massoud code] زر واتساب الأسئلة: مسافة تحته عشان مايلزقش في السكشن اللي بعده + مقاس الجوال | 2026-11-01 */
body.index .m3-faq-help { margin-bottom: 32px !important; }
.m3p-faq-help { margin-bottom: 16px; }
@media (max-width: 767px) {
  body.index .m3-faq-help a, .m3p-wa { font-size: 12px !important; padding: 8px 14px !important; max-width: 92%; text-align: center; line-height: 1.6; }
  body.index .m3-faq-help { margin-top: 16px !important; margin-bottom: 24px !important; }
}
/* [Massoud code] الأسئلة في الجوال كانت بتتقص بـ "..." (سطر واحد) → نخليها تنزل سطر جديد */
body.index .faqs__item h3.line-clamp-1 { -webkit-line-clamp: unset !important; display: block !important; overflow: visible !important; }
/* [Massoud code] صور وصف المنتج: تملى عرض الكارت حتى لو صغيرة (بتتمط) + مفيش مسافة بين الأجزاء | 2026-11-02 */
.product__description article img { display: block; width: 100% !important; max-width: 100% !important; height: auto !important; margin: 0 !important; }
/* [Massoud code] خطوات التنفيذ بقت 4 بس → في صف واحد على الديسكتوب، واتنين في الصف على التابلت، وواحد على الجوال | 2026-11-02 */
.m3p-steps { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1023px) { .m3p-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .m3p-steps { grid-template-columns: 1fr; } }
/* [Massoud code] المميزات والتفاصيل: ظاهرة دايمًا (من غير زرار) | 2026-11-02 */
.m3p-more--open { background: #fff; border: 1px solid var(--m3-line); }
.m3p-more-title { padding: 16px 20px 6px; font-size: 18px; font-weight: 800; color: var(--m3-dark); }
/* [Massoud code] الجوال: الشريط الثابت فوق قائمة الثيم السفلية (بحث / السلة) بدل ما يتغطى تحتها | 2026-11-03 */
@media (max-width: 767px) {
  body.m3-product .m3p-bar { bottom: 82px; border-radius: 14px 14px 0 0; }
}
/* [Massoud code] الجوال: شريط الشراء بتاع الثيم كان ثابت تحت وكبير وبيغطي الصفحة.
   مش بنخفيه (لأن جواه خيار "اشتراك دوري" والكمية) — بنرجّعه جزء عادي من الصفحة تحت الخيارات زي الديسكتوب،
   وشريطنا m3p-bar هو اللي ثابت تحت | 2026-11-08 */
html body.m3-product form.product-form section.sticky-product-bar {
  display: block !important; position: static !important; inset: auto !important;
  transform: none !important; box-shadow: none !important; z-index: auto !important;
  width: auto !important; max-width: 100% !important; height: auto !important;
}

/* [Massoud code] بنر "هل أنت مستعد لبناء عطائك؟" (صور متحركة محسنة): إزالة الخلفية البنفسجية والمسافة حوالين الصورة عشان تبقى ملء العرض | 2026-11-07 */
#E_slider_sec_13 {
  background: transparent !important; /* شيل لون الخلفية */
  padding-top: 0 !important;          /* شيل المسافة فوق الصورة */
  padding-bottom: 0 !important;       /* شيل المسافة تحت الصورة */
}

/* [Massoud code] شكل العنوان الفرعي في سكشنات "منتجات ثابتة" (بيتعمل بالـ JS من علامة | في العنوان) | 2026-11-07 */
section[id^="fixed_prod_sec_"] .m3-section-subtitle {
  font-size: 15px;        /* حجم الخط - كبّره أو صغّره براحتك */
  font-weight: 400;       /* سُمك الخط (400 عادي - 700 عريض) */
  color: #6f6a7d;         /* لون رمادي بنفسجي زي باقي العناوين الفرعية في المتجر */
  margin-top: 6px;        /* المسافة بينه وبين العنوان الرئيسي */
  text-align: center;
  padding: 0 !important;  /* الثيم كان حاطط مسافة 64px على الشمال لكل <p> في العنوان، فكانت مزحلقة النص */
}

/* [Massoud code] الصفحة الرئيسية بس: شيل المسافة البيضاء (64px) اللي فوق الفوتر عشان يلزق في بنر "هل أنت مستعد" | 2026-11-07 */
body.index .store-footer {
  margin-top: 0 !important;
}

/* [Massoud code] الجوال: كارت المنتج — القلب (المفضلة) كان بيطلع برّه الكارت جنب زرار السلة.
   خليناه جنب الزرار زي الكمبيوتر بس جوه الكارت: القلب 32px، والزرار ياخد الباقي،
   وشيلنا أيقونة الشنطة من الزرار وصغرنا الخط شوية عشان "أضف إلى السلة" تظهر كاملة | 2026-11-08 */
@media (max-width: 767px) {
  html body custom-salla-product-card.product-entry .f_btn-container.f_btn-container { display: flex !important; gap: 4px; width: 100%; }
  html body custom-salla-product-card.product-entry .f_btn-container.f_btn-container salla-add-product-button { flex: 1 1 auto; min-width: 0; }
  html body custom-salla-product-card.product-entry .f_btn-container.f_btn-container salla-add-product-button button { font-size: 12px !important; padding-inline: 6px !important; }
  html body custom-salla-product-card.product-entry .f_btn-container.f_btn-container salla-add-product-button button i { display: none !important; }
  html body custom-salla-product-card.product-entry .f_btn-container.f_btn-container .btn--wishlist.btn--wishlist { position: static !important; flex: 0 0 32px; width: 32px !important; height: 32px !important; margin: 0 !important; }
  html body custom-salla-product-card.product-entry .f_btn-container.f_btn-container .btn--wishlist.btn--wishlist button { width: 32px !important; height: 32px !important; min-width: 0 !important; padding: 0 !important; }
}

/* [Massoud code] بوكس شرح "اشتراك دوري" بتاع تطبيق الاشتراكات: يظهر بس لما العميل يختار الاشتراك
   (الكلاس m3-sub-on بيتحط على الـ body من JS صفحة المنتج) | 2026-11-08 */
body.m3-product:not(.m3-sub-on) #lemoscribe-explanation-badge-container { display: none !important; }

/* [Massoud code] منع "نطّة" الصفحة (Layout Shift) | 2026-11-08
   1) الهيدر: لما تنزل شوية الثيم بيثبّت القائمة فوق ويضيف مسافة 80px للـ body، والهيدر نفسه بيفضل 70px
      فالصفحة كلها كانت بتنط 70px لتحت. بنثبّت مكان الهيدر 80px ونلغي المسافة الزيادة */
html body { padding-top: 0 !important; }
html body header.store-header { height: 80px !important; min-height: 80px !important; }
/* 2) سلايدر آراء العملاء: قبل ما يشتغل كانت كل الآراء بتظهر تحت بعض (حوالي 3000px) وبعدين تتلم */
.s-block--testimonials .swiper:not(.swiper-initialized) .swiper-wrapper { display: flex; overflow: hidden; }
.s-block--testimonials .swiper:not(.swiper-initialized) .swiper-slide:nth-child(n+2) { display: none !important; }
@media (min-width: 768px) { .s-block--testimonials .swiper:not(.swiper-initialized) .swiper-slide:nth-child(2) { display: block !important; } }
/* 3) الجوال: نحجز مساحة للأقسام اللي بتتحمل متأخر عشان اللي تحتها ميتزقش */
@media (max-width: 767px) {
  section.s-block--testimonials { min-height: 366px; }
  section[id^="fixed_prod_sec_"] { min-height: 540px; }
  nav.breadcrumbs { min-height: 60px; }
  .details-slider .s-slider-thumbs { height: 64px !important; max-height: 64px; overflow: hidden; }
  .details-slider:not(.hydrated) > .btn--wishlist { position: absolute; }
}

/* [Massoud code] صور المنتج أول ما الصفحة تفتح: قبل ما السلايدر يشتغل كانت كل الصور بتظهر جنب بعض
   شرايح رفيعة (لاج/لخبطة). دلوقتي لحد ما السلايدر يجهز بتظهر أول صورة بس بالعرض الكامل + المصغرات مترتبة | 2026-11-08 */
salla-slider.details-slider:not(.hydrated) { display: block; position: relative; overflow: hidden; }
salla-slider.details-slider:not(.hydrated) > div[slot="items"] { display: block; padding: 0 !important; margin: 0 !important; }
salla-slider.details-slider:not(.hydrated) > div[slot="items"] > .swiper-slide { display: none !important; }
salla-slider.details-slider:not(.hydrated) > div[slot="items"] > .swiper-slide:first-child { display: block !important; width: 100% !important; }
salla-slider.details-slider:not(.hydrated) > div[slot="thumbs"] { display: flex; gap: 8px; height: 64px; overflow: hidden; margin-top: 12px; }
salla-slider.details-slider:not(.hydrated) > div[slot="thumbs"] > * { flex: 0 0 calc(25% - 6px); width: auto !important; height: 64px !important; overflow: hidden; }
salla-slider.details-slider:not(.hydrated) > div[slot="thumbs"] img { width: 100%; height: 100%; object-fit: cover; }