/* ===== خط الموقع PingARLT (2026-09-18): نسخة من https://cdn.salla.network/fonts/pingarlt.css?v=0.2 بروابط مطلقة =====
   لأن حقل «رابط الخط» في الثيم يضع هذا الملف في رأس الصفحة بدل ملف الخط، فتُعرَّف الخطوط هنا ليبقى خط الموقع كما هو. */
@font-face{font-family:PingARLT;src:url('https://cdn.salla.network/fonts/lib/pingarlt/PingARLT-Regular.woff2?v=0.2') format('woff2'),url('https://cdn.salla.network/fonts/lib/pingarlt/PingARLT-Regular.woff?v=0.2') format('woff');font-weight:400;font-style:normal;font-display:swap}@font-face{font-family:PingARLT;src:url('https://cdn.salla.network/fonts/lib/pingarlt/PingARLT-Light.woff2?v=0.2') format('woff2'),url('https://cdn.salla.network/fonts/lib/pingarlt/PingARLT-Light.woff?v=0.2') format('woff');font-weight:300;font-style:normal;font-display:swap}@font-face{font-family:PingARLT;src:url('https://cdn.salla.network/fonts/lib/pingarlt/PingARLT-ExtraLight.woff2?v=0.2') format('woff2'),url('https://cdn.salla.network/fonts/lib/pingarlt/PingARLT-ExtraLight.woff?v=0.2') format('woff');font-weight:200;font-style:normal;font-display:swap}@font-face{font-family:PingARLT;src:url('https://cdn.salla.network/fonts/lib/pingarlt/PingARLT-Thin.woff2?v=0.2') format('woff2'),url('https://cdn.salla.network/fonts/lib/pingarlt/PingARLT-Thin.woff?v=0.2') format('woff');font-weight:100;font-style:normal;font-display:swap}@font-face{font-family:PingARLT;src:url('https://cdn.salla.network/fonts/lib/pingarlt/PingARLT-Hairline.woff2?v=0.2') format('woff2'),url('https://cdn.salla.network/fonts/lib/pingarlt/PingARLT-Hairline.woff?v=0.2') format('woff');font-weight:100;font-style:normal;font-display:swap}@font-face{font-family:PingARLT;src:url('https://cdn.salla.network/fonts/lib/pingarlt/PingARLT-Medium.woff2?v=0.2') format('woff2'),url('https://cdn.salla.network/fonts/lib/pingarlt/PingARLT-Medium.woff?v=0.2') format('woff');font-weight:500;font-style:normal;font-display:swap}@font-face{font-family:PingARLT;src:url('https://cdn.salla.network/fonts/lib/pingarlt/PingARLT-Bold.woff2?v=0.2') format('woff2'),url('https://cdn.salla.network/fonts/lib/pingarlt/PingARLT-Bold.woff?v=0.2') format('woff');font-weight:700;font-style:normal;font-display:swap}@font-face{font-family:PingARLT;src:url('https://cdn.salla.network/fonts/lib/pingarlt/PingARLT-Black.woff2?v=0.2') format('woff2'),url('https://cdn.salla.network/fonts/lib/pingarlt/PingARLT-Black.woff?v=0.2') format('woff');font-weight:900;font-style:normal;font-display:swap}@font-face{font-family:PingARLT;src:url('https://cdn.salla.network/fonts/lib/pingarlt/PingARLT-Heavy.woff2?v=0.2') format('woff2'),url('https://cdn.salla.network/fonts/lib/pingarlt/PingARLT-Heavy.woff?v=0.2') format('woff');font-weight:800;font-style:normal;font-display:swap}

/* تنسيق جسم الصفحة */
body#app {
    background-color: var(--bg-color); /* يأخذ القيمة #ffffff من المتغيرات */
}

/* تنسيق شريط الإعلانات العلوي */
.angel-ad {
    background-color: #805e00;
}

.angel-ad__slider {
    animation-duration: 54000ms;
}

.angel-ad__item {
    color: #ffffff;
}

/* تنسيق شعار الموقع (اللوقو) */
.logo-light {
    width: auto;
    height: 4rem;
}
.s-slider-block__title,
.s-slider-block__title * {
    text-align: center !important;
    justify-content: center !important;
}
.s-slider-nav-arrow {
    position: absolute;
    left: 20px !important;
}

.s-slider-prev {
    left: 20px !important;
}

.s-slider-next {
    left: 60px !important; /* المسافة بين السهمين */
}.s-block.s-block-statistics {
    padding-top: 10px !important;
    padding-bottom: 20px !important;
}

/* ===== أداء (2026-09-18): منع اهتزاز الصفحة CLS، بلا أي تغيير في الشكل ===== */
/* الشعار 500×500 مربّع ويُعرض 48×48 و80×80 (مقاس)، بينما سماتاه 200×100 ⇒ نثبّت النسبة المربّعة قبل تحميله.
   تنبيه: إن صار الشعار غير مربّع تُحدَّث هذه القيمة */
img.logo-light { aspect-ratio: 1 / 1; object-fit: contain; }
/* صورة الكاتب: تتبع حاويتها (32×32 في المدونة و24×24 في المقال) فتبقى بأبعاد صريحة بلا مطّ. كانت 2rem فمطّتها في المقال (صُحّح 2026-09-18) */
img.profile-photo { width: 100%; height: 100%; }

/* ===== أداء (2026-09-18): صفحات الأقسام: منع اهتزاز الصفحة CLS، والشكل النهائي كما هو =====
   شبكة المنتجات تُرسم بالجافاسكربت بعد ظهور الصفحة، وقبلها يظهر قسم الآراء والتذييل تحت العنوان مباشرة
   ثم تدفعهما الشبكة للأسفل (PageSpeed: 0.87 جوال و0.69 كمبيوتر · الزوار في قسم تيك توك: 0.76).
   فنُخفي ما تحت الشبكة حتى تُرسم، فيظهر في مكانه النهائي مباشرة (مُختبَر في كروم: 0.112 ← 0.0003).
   أمان: يظهر كل شيء تلقائياً بعد 10 ثوانٍ مهما حدث، والقسم الفارغ يظهر فوراً مع «لا توجد منتجات».
   الشرط الثالث (صُحّح 2026-09-18): سلة تضع البطاقات قبل رسمها بنحو 40 مللي، فننتظر حتى تُرسم أول بطاقة
   (تحمل s-product-card-entry). وأول بطاقة وحدها، حتى لا يومض ما تحت الشبكة كلما أضاف التمرير بطاقات. */
@keyframes nayef-grid-reveal { to { visibility: visible; opacity: 1; } }
body.product-index .app-inner:has(salla-products-list:not(.hydrated), .s-products-list-wrapper:empty, .s-products-list-wrapper > :is(custom-salla-product-card, salla-product-card):first-child:not(.s-product-card-entry)) > .container ~ * {
  visibility: hidden;
  opacity: 0;
  animation: nayef-grid-reveal 0s linear 10s forwards;
}

/* ===== أداء (2026-09-18): الصفحات التعريفية الست: خط الموقع بدل Tajawal (بموافقة نايف) =====
   محتواها ملفوف بعنصر عليه font-family:'Tajawal',...، وهذا الخط لا يحمّله القالب بل ملف CSS الخاص بـ walax،
   فيتبدّل العنوان الكبير حين يصل ملف walax فتهتز الصفحة (الأسئلة الشائعة 0.17 جوال و0.22 كمبيوتر).
   الأثر في الشكل: خمسة عناصر فقط (العنوان الكبير وأربع تسميات صغيرة)، والباقي بخط الموقع أصلاً. */
.content-entry [style*="Tajawal" i] { font-family: inherit !important; }

/* ===== أداء (2026-09-18): عناصر تُرسم متأخّرة فتدفع الصفحة للأسفل (بموافقة نايف) =====
   كل قيمة مقاسة بعد اكتمال الرسم في المنتجات الـ42 على عروض 430 و767 و1920، والمحجوز يساوي أصغرها،
   فلا يتغيّر الشكل النهائي (مُختبَر: المواضع متطابقة بالبكسل مع القاعدة وبدونها). */
/* مسار التنقّل (الرئيسية › ...) في كل الصفحات: فارغ حتى يُرسم، وأقلّه سطر واحد 20 بكسل */
salla-breadcrumb { display: block; min-height: 20px; }
/* صفحة المنتج: صف التقييم 32 بكسل، ولا يوجد أصلاً في المنتج الذي بلا تقييمات */
body.product-single salla-rating-stars[reviews] { min-height: 32px; }
/* صفحة المنتج: الوصف المختصر يبدأ بـ«قراءة المزيد» وحده ثم يُضاف نصّه: سطران، وثلاثة على الجوال */
body.product-single #more-details { min-height: 52px; }
@media (max-width: 430px) { body.product-single #more-details { min-height: 78px; } }
/* صفحة المنتج: أيقونات الدفع تُرسم متأخّرة، وصفّها الواحد 32 بكسل */
body.product-single salla-payments { display: block; min-height: 32px; }

/* ===== أداء (2026-09-18): walax قبل وصول ملفه، وشريط التمرير =====
   walax يضيف زرّه ولوحته إلى آخر الصفحة قبل أن يصل ملف تنسيقه، فيظهران بلا تنسيق لحظةً ويدفعان ما تحتهما.
   القواعد التالية منسوخة من ملف walax نفسه (pixel.rtl.min.css?v=2.05) لموضع الزر واللوحة فقط،
   وملفوفة بـ :where() فوزنها صفر: تسري قبل وصول ملف walax، وحين يصل تغلبها قواعده هو دائماً.
   تنبيه: إن غيّر walax تصميم زرّه أو موضعه تُراجَع هذه القواعد */
:where(.walax-fixed-bottom){position:fixed;bottom:40px;width:auto;height:auto;text-align:center;z-index:999;max-width:110px;left:50px}
:where(.walax-fixed-bottom.side_right){right:0;top:50%;transform:rotate(-90deg);width:110px;height:0}
:where(.walax-fixed-bottom.side_left){top:50%;height:110px;transform:rotate(90deg);width:110px;left:0}
:where(div#walax-open-button.rotate_btn){height:10px!important}
button:where(.walax-main-button){border:0;padding:15px;width:auto;display:inline-block;white-space:nowrap;border-radius:8px}
button:where(.walax-main-button.small){font-size:14px!important;font-weight:400!important}
button:where(.walax-main-button.medium){font-size:16px!important;font-weight:700!important}
button:where(.walax-main-button.large){font-size:18px!important;font-weight:700!important;padding:20px!important}
:where(.walax-slide-up){position:fixed;width:400px;bottom:-850px;z-index:9999;left:10px;max-height:850px;height:auto}
:where(.walax-slide-up.side_right){bottom:auto;top:50%;transform:translateY(-50%);right:-400px}
:where(.walax-slide-up.side_left){bottom:auto;top:50%;transform:translateY(-50%);left:-400px}
@media (max-width:767.98px){
:where(.walax-slide-up){width:340px;height:650px}
:where(.walax-fixed-bottom){top:85vh;max-width:60px;min-height:60px}
:where(.walax-fixed-bottom.side_right){right:0!important;top:50%;height:60px;transform:rotate(-90deg);width:60px!important}
:where(.walax-fixed-bottom.side_left){left:0!important;top:50%;height:60px;transform:rotate(90deg);width:60px!important}
:where(.walax-slide-up.side_right){bottom:auto;top:50%;transform:translateY(-50%);right:-340px}
:where(.walax-slide-up.side_left){bottom:auto;top:50%;transform:translateY(-50%);left:-340px}
}
@media only screen and (max-width:575.98px){
:where(.walax-slide-up){width:100%!important;height:100%!important;max-height:100vh!important;left:0!important;right:0!important;top:100%!important;bottom:auto!important;transform:none!important}
}
/* شريط التمرير على الكمبيوتر: طول الصفحة يتجاوز الشاشة ثم ينقص ثم يطول أثناء التحميل، فيظهر الشريط ويختفي
   وتتحرّك الصفحة كلها 6 بكسل كل مرة. حجز مساحته دائماً يُبقيها ثابتة (لا أثر له على الجوال) */
html{scrollbar-gutter:stable}

/* ===== أداء (2026-09-18): سلايدر المدونة =====
   لحظة تركيب مكوّن السلايدر تنكمش شرائحه الخمس في صفّ واحد (78 بكسل على الجوال و204 على الكمبيوتر)،
   ثم يضع Swiper عليها flex-shrink:0 فتتمدّد الأولى إلى العرض الكامل (PageSpeed: 0.33 جوال و0.36 كمبيوتر).
   نضع القيمة نفسها من البداية لشرائح سلايدر المدونة وحده، فتظهر الأولى بعرضها النهائي. */
salla-slider.blog-slider .swiper-wrapper > .swiper-lazy-wrap { flex-shrink: 0; }

/* ===== أداء (2026-09-19): مسار التنقّل في صفحة المنتج، ورأس لوحة walax المخفية =====
   1) مسار التنقّل يصل من الخادم فارغاً بارتفاع سطر واحد، ثم تملؤه سلة بعد التحميل، وعلى الجوال يلتفّ في أكثر المنتجات
      إلى سطرين فيدفع الصفحة كلها 20 بكسل (PageSpeed على الجوال: 0.021 في كل قياس، وبلغ مرة 0.124).
      نحجز له على الجوال مساحة سطرين من البداية، ويتوسّط فيها إن جاء سطراً واحداً، فلا يتحرّك تحته شيء.
   2) لوحة walax المخفية: قبل وصول ملف walax يكون رأسها قصيراً، فيطلّ شريطها المنحني 29 بكسل أسفل الشاشة ثم يختفي.
      ارتفاع الرأس منسوخ من ملف walax (pixel.rtl.min.css?v=2.05)، وقواعده تسري فوقه حين يصل. */
@media (max-width: 767.98px) {
  body.product-single nav.breadcrumbs { min-height: 4rem; display: flex; flex-direction: column; justify-content: center; }
  body.product-single nav.breadcrumbs .s-breadcrumb-wrapper { max-height: 2.5rem; overflow: hidden; }
}
:where(.walax-top){height:150px}
:where(.walax-top.preview-top){height:210px}

/* ===== أداء (2026-10-13): حجز ارتفاع رأس الصفحة الثابت =====
   الثيم يجعل .header-inner ثابتاً (fixed) عند التمرير، ولا يحجز ارتفاعه في #mainnav إلا بعد حدث load بنصف ثانية.
   وحين يعمل الثيم بعد load (اتصال أو جهاز أبطأ) لا يُحجز أبداً، فيقفز المحتوى 72 بكسل عند التمرير وعند العودة إلى الأعلى
   (Search Console جوال 2026-10-11: CLS 0.28 لمجموعة المنتجات · محاكاة الجيل الرابع البطيء: 0.27 ثم 0.006 بهذه القاعدة).
   ارتفاع الرأس 72 بكسل في كل العروض من 320 إلى 1920 (قياس 2026-10-13). */
#mainnav.main-nav-container{min-height:72px}

/* ===== أداء (2026-10-13): السلة الفارغة لا تهتزّ =====
   مكوّن سلة salla-basket-gap يرسم هيكل تحميل بارتفاع 372 بكسل إطاراً واحداً في السلة الفارغة ثم يختفي،
   فينزل التذييل 412 بكسل ويعود (محاكاة الجيل الرابع البطيء: 0.25 ثم 0.01 بهذه القاعدة).
   القاعدة تعمل في السلة الفارغة وحدها (حين يظهر no-content-placeholder)، والسلة التي فيها منتجات لا تمسّها. */
div.main-content:has(> .no-content-placeholder) salla-basket-gap{display:none}

/* ===== خيارات صفحة المنتج: فاصل وعلامة وأزرار بهوية المتجر (2026-10-26، طلب نايف) =====
   الأصناف من مكوّن سلة salla-product-options (twilight 3.0.12، الملف p-8fa80706.entry.js):
   كل خيار داخل .s-product-options-option-container وهامشه السفلي 1.25rem من المكوّن، والزر .s-product-options-grid-mode-span.
   قواعد Core Web Vitals في هذا الكتلة:
   - CLS: لا قاعدة تغيّر مقاس عنصر أو مكانه. الفاصل والعلامة عنصران مطلقا الموضع (::after و::before) يُرسمان داخل
     الهامش والحشوة الموجودين أصلاً، فارتفاع قسم الخيارات وعرض عناوينها كما هما بالبكسل.
   - INP: المكوّن ينقل transition:all لكل زر وخيار؛ هنا يُحصر في الألوان والظل وحدها، ولا :has() ولا فلاتر ثقيلة.
   - LCP: لا ملف جديد ولا صورة ولا خط، سطور قليلة في الملف المحمَّل أصلاً في الرأس.
   - الوصول: حلقة تركيز ظاهرة بلوحة المفاتيح، وبلا حركة لمن يطلب تقليلها. */

/* 1) الفاصل: خط أزرق خفيف يتلاشى عند الطرفين، في منتصف الهامش بين خيارين */
#product-tabs-options .s-product-options-option-container{position:relative}
#product-tabs-options .s-product-options-option-container:not(:last-child):not(.hidden)::after{content:"";position:absolute;inset-inline:0;bottom:-.625rem;height:2px;border-radius:2px;background:linear-gradient(90deg,transparent,var(--color-primary-reverse,#cceaff) 12%,var(--color-primary-reverse,#cceaff) 88%,transparent);pointer-events:none}

/* 2) علامة زرقاء قصيرة قبل اسم الخيار، في حشوة القسم لا في مساحة النص */
#product-tabs-options .s-product-options-option-label b{position:relative}
#product-tabs-options .s-product-options-option-label b::before{content:"";position:absolute;inset-inline-start:-.65rem;top:.15em;bottom:.15em;width:3px;border-radius:3px;background:var(--color-primary,#001eff)}
#product-tabs-options .s-product-options-option-error .s-product-options-option-label b::before{background:rgb(248 113 113)}

/* 3) الأزرار: انتقال الألوان وحدها بدل transition:all */
#product-tabs-options .s-product-options-option{transition-property:opacity}
#product-tabs-options .s-product-options-grid-mode-span{transition-property:background-color,border-color,color,box-shadow;transition-duration:.15s}

/* 4) المرور بالفأرة: لمسة زرقاء خفيفة بدل الرمادي، على الأجهزة التي فيها فأرة فقط */
@media (hover:hover){html:not(.dark) #product-tabs-options .s-product-options-grid-mode input:not(:checked):not(:disabled)+div:hover{background-color:#f0f7ff;border-color:var(--color-primary-reverse,#cceaff)}}

/* 5) الخيار المحدد: حلقة زرقاء خفيفة حول لون الثيم، بالظل لا بالإطار فلا يتغيّر المقاس */
#product-tabs-options .s-product-options-grid-mode input:checked+div{box-shadow:0 0 0 3px var(--color-primary-reverse,#cceaff)}

/* 6) التركيز بلوحة المفاتيح */
#product-tabs-options .s-product-options-grid-mode input:focus-visible+div{outline:2px solid var(--color-primary,#001eff);outline-offset:2px}

/* 7) بلا حركة لمن يطلب تقليلها */
@media (prefers-reduced-motion:reduce){#product-tabs-options .s-product-options-option,#product-tabs-options .s-product-options-grid-mode-span{transition:none}}