/* =========================================================
   عرض 100% لقسم "لماذا تختار إيوان؟"
   ========================================================= */

div.flex.flex-col.items-center.gap-10.lg\:flex-row:has([aria-label="قائمة المميزات"]) {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
}

/* =========================================================
   عرض 100% لقسم "تصنيفات الشبكة" بالرئيسية (8 بطاقات)
   ========================================================= */

.custom-grid-section.grid-8 {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
}

/* =========================================================
   شعار إيوان — سطح المكتب (١٠٢٤px فأعلى)
   ========================================================= */

@media (min-width: 1024px) {
  .lg\:flex .navbar-brand img[alt="إيوان logo"] {
    width: 190px !important;
    height: 54px !important;
    max-width: 190px !important;
    max-height: 54px !important;
    object-fit: contain !important;
  }
}


/* =========================================================
   شعار إيوان — الجوال واللوحي (أقل من ١٠٢٤px)
   ========================================================= */

@media (max-width: 1023px) {
  .lg\:hidden .navbar-brand img[alt="إيوان logo"] {
    width: 110px !important;
    height: 55px !important;
    max-width: 110px !important;
    max-height: 55px !important;
    object-fit: contain !important;
  }
}


/* =========================================================
   توسيط الشعار
   ========================================================= */

.navbar-brand {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}


/* =========================================================
   إزالة الخلفية الزرقاء من أيقونات الهيدر
   ========================================================= */

#left-icons > button,
#left-icons .wishlist-counter,
#left-icons salla-user-menu .s-user-menu-login-btn {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}


/* =========================================================
   إزالة الخلفيات الوهمية
   ========================================================= */

#left-icons > button::before,
#left-icons > button::after,
#left-icons .wishlist-counter::before,
#left-icons .wishlist-counter::after,
#left-icons salla-user-menu .s-user-menu-login-btn::before,
#left-icons salla-user-menu .s-user-menu-login-btn::after {
  background: transparent !important;
  box-shadow: none !important;
}


/* =========================================================
   الأيقونات بدون خلفية
   ========================================================= */

#left-icons i,
#left-icons svg,
#left-icons salla-user-menu svg {
  background: transparent !important;
}


/* =========================================
   قسم الأقسام — التوسيط والمسافات
   ========================================= */

.flex.flex-wrap.gap-2 {
    justify-content: center !important;
    align-items: flex-start !important;
    column-gap: 24px !important;
    row-gap: 8px !important;
}


/* =========================================
   حاوية كل قسم
   ========================================= */

.flex.flex-wrap.gap-2 > .flex-grow-0.text-center {
    flex-basis: auto !important;
    width: 115px !important;
    max-width: 115px !important;
}


/* =========================================
   الدائرة الخارجية
   ========================================= */

.flex.flex-wrap.gap-2 > .flex-grow-0.text-center > div.aspect-square {
    width: 85px !important;
    height: 85px !important;
    max-width: 85px !important;

    margin-left: auto !important;
    margin-right: auto !important;

    border-radius: 50% !important;
    box-sizing: border-box !important;

    overflow: hidden !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    background-color: #697642 !important;

    border: 2px solid rgba(105, 118, 66, 0.12) !important;
    border-top-color: transparent !important;

    animation: none !important;

    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease !important;
}


/* =========================================
   الصور داخل الدوائر
   ========================================= */

.flex.flex-wrap.gap-2 > .flex-grow-0.text-center > div.aspect-square img {
    width: 82px !important;
    height: 82px !important;

    max-width: none !important;
    max-height: none !important;

    object-fit: contain !important;

    transform: none !important;
}


/* =========================================
   الحركة عند المرور
   ========================================= */

.flex.flex-wrap.gap-2 > .flex-grow-0.text-center:hover > div.aspect-square {
    animation: ewanCategorySideMove 1.2s ease-in-out infinite !important;

    border-top-color: transparent !important;

    border-right-color: rgba(105, 118, 66, 0.08) !important;
    border-bottom-color: rgba(105, 118, 66, 0.08) !important;
    border-left-color: rgba(105, 118, 66, 0.08) !important;

    box-shadow: none !important;
}


/* =========================================
   حركة خفيفة جدًا يمين ويسار
   ========================================= */

@keyframes ewanCategorySideMove {

    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(2px);
    }

    50% {
        transform: translateX(0);
    }

    75% {
        transform: translateX(-2px);
    }

    100% {
        transform: translateX(0);
    }
}


/* =========================================
   اسم القسم
   ========================================= */

.flex.flex-wrap.gap-2 > .flex-grow-0.text-center h3 {
    margin-top: 7px !important;
    text-align: center !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
}


/* =========================================
   الجوال — الأقسام
   ========================================= */

@media (max-width: 768px) {

    .flex.flex-wrap.gap-2 {
        justify-content: center !important;
        column-gap: 20px !important;
        row-gap: 8px !important;
    }

    .flex.flex-wrap.gap-2 > .flex-grow-0.text-center {
        width: 88px !important;
        max-width: 88px !important;
    }

    .flex.flex-wrap.gap-2 > .flex-grow-0.text-center > div.aspect-square {
        width: 73px !important;
        height: 73px !important;
        max-width: 73px !important;

        background-color: #697642 !important;

        border: 2px solid rgba(105, 118, 66, 0.12) !important;
        border-top-color: transparent !important;

        animation: none !important;
    }

    .flex.flex-wrap.gap-2 > .flex-grow-0.text-center > div.aspect-square img {
        width: 70px !important;
        height: 70px !important;

        transform: none !important;
    }

    .flex.flex-wrap.gap-2 > .flex-grow-0.text-center:hover > div.aspect-square {
        animation: ewanCategorySideMove 1.2s ease-in-out infinite !important;

        border-top-color: transparent !important;
        border-right-color: rgba(105, 118, 66, 0.08) !important;
        border-bottom-color: rgba(105, 118, 66, 0.08) !important;
        border-left-color: rgba(105, 118, 66, 0.08) !important;
    }
}


/* =========================================
   بطاقة عروض حصرية
   ========================================= */

.service_card {
    background-size: 100% 100% !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    border: none !important;
}


/* =========================================
   إزاحة النص لليسار بشكل بسيط
   ========================================= */

.service_card > div:last-child {
    position: relative !important;
    z-index: 5 !important;
    left: -2px !important;
}


/* =========================================
   مميزات إيوان
   الترتيب:
   أخضر → أزرق → أزرق → أخضر
   ========================================= */

[role="list"][aria-label="قائمة المميزات"] > [role="listitem"] {
    color: #fff !important;
    border: none !important;
    position: relative;
    overflow: hidden;
    background-size: 160% 160% !important;
    box-shadow: 0 6px 18px rgba(10, 65, 102, 0.10);
    transition: all 0.35s ease;
}


/* =========================================
   لمعة ناعمة داخل البطاقة
   ========================================= */

[role="list"][aria-label="قائمة المميزات"] > [role="listitem"]::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255,255,255,0.16) 0%,
        rgba(255,255,255,0.04) 35%,
        rgba(255,255,255,0) 65%
    );
    pointer-events: none;
}


/* =========================================
   الأول - أخضر
   ========================================= */

[role="list"][aria-label="قائمة المميزات"] > [role="listitem"]:nth-child(1) {
    background: linear-gradient(
        135deg,
        #8B9652 0%,
        #7A8446 45%,
        #69743B 100%
    ) !important;
}


/* =========================================
   الثاني - أزرق
   ========================================= */

[role="list"][aria-label="قائمة المميزات"] > [role="listitem"]:nth-child(2) {
    background: linear-gradient(
        135deg,
        #145B84 0%,
        #0A4166 45%,
        #073650 100%
    ) !important;
}


/* =========================================
   الثالث - أزرق
   ========================================= */

[role="list"][aria-label="قائمة المميزات"] > [role="listitem"]:nth-child(3) {
    background: linear-gradient(
        135deg,
        #145B84 0%,
        #0A4166 45%,
        #073650 100%
    ) !important;
}


/* =========================================
   الرابع - أخضر
   ========================================= */

[role="list"][aria-label="قائمة المميزات"] > [role="listitem"]:nth-child(4) {
    background: linear-gradient(
        135deg,
        #8B9652 0%,
        #7A8446 45%,
        #69743B 100%
    ) !important;
}


/* =========================================
   العناوين والنصوص
   ========================================= */

[role="list"][aria-label="قائمة المميزات"] > [role="listitem"] h3,
[role="list"][aria-label="قائمة المميزات"] > [role="listitem"] p {
    color: #fff !important;
    position: relative;
    z-index: 2;
}


/* =========================================
   حركة بسيطة عند المرور
   ========================================= */

[role="list"][aria-label="قائمة المميزات"] > [role="listitem"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(10, 65, 102, 0.16);
}


/* =========================================
   شبكة 2×2 متساوية للبطاقات الأربع
   (كانت تختلف بسبب طول العنوان — h3 عندها
   text-nowrap فيعطي العناوين الأطول عرضاً أكبر
   تلقائياً؛ هنا نجبرها على نصفين متساويين تماماً)
   ========================================= */

[role="list"][aria-label="قائمة المميزات"] > [role="listitem"] {
    min-width: 0 !important;
    flex: 1 1 calc((100% - 1.25rem) / 2) !important;
    max-width: calc((100% - 1.25rem) / 2) !important;
}

/* الجوال: كل بطاقة سطر كامل */
@media (max-width: 767px) {
    [role="list"][aria-label="قائمة المميزات"] > [role="listitem"] {
        flex-basis: 100% !important;
        max-width: 100% !important;
    }
}


/* =========================================
   شعار الفوتر
   ========================================= */

footer a[href="https://ewan-store.com/"] img[alt="إيوان logo"] {
    width: 300px !important;
    height: 95px !important;
    max-width: 300px !important;
    max-height: 95px !important;
    object-fit: contain !important;
}


/* =========================================
   إخفاء صندوق "أكثر من 3599 تقييم إيجابي"
   ========================================= */

.u-i-features {
    display: none !important;
}

.u-i-features ~ div {
    display: none !important;
}


/* =========================================
   إخفاء صندوق الطلب الكبير
   ========================================= */

div.flex.flex-row.items-center.py-2.gap-2.px-4.rounded-2xl.bg-\[\#fff7e7\].w-full.border.border-dashed.border-\[\#ffba00\] {
    display: none !important;
}


/* =========================================
   الهاشتاقات
   ========================================= */

.cat-card .hashtags span {
    background-color: #687740 !important;
    color: #ffffff !important;
    border-color: #687740 !important;
}


/* =========================================================
   جدول "المواصفات الفنية" في صفحة المنتج
   ========================================================= */

.s-metadata-box {
    border: 1px solid #E3E3E3 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: #FFFFFF !important;
    margin: 18px 0 !important;
    box-shadow: 0 2px 8px rgba(10, 65, 102, 0.06) !important;
}

.s-metadata-box-header {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: #0A4166 !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    padding: 12px 16px !important;
}

.s-metadata-box-header i {
    font-size: 18px !important;
    color: #FFFFFF !important;
}

.s-metadata-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 11px 16px !important;
    border-bottom: 1px solid #F0F0F0 !important;
    margin: 0 !important;
}

.s-metadata-row:last-child {
    border-bottom: none !important;
}

.s-metadata-row-name {
    color: #6B6B6B !important;
    font-size: 13.5px !important;
    margin: 0 !important;
    flex: 0 0 auto !important;
}

.s-metadata-row-value {
    color: #1D1F1F !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    margin: 0 !important;
    text-align: left !important;
}


/* =========================================
   الصف الذي بلا تسمية
   ========================================= */

.s-metadata-row:has(.s-metadata-row-name:empty) {
    background: #F2F5EC !important;
    justify-content: center !important;
    padding: 9px 16px !important;
}

.s-metadata-row:has(.s-metadata-row-name:empty) .s-metadata-row-name {
    display: none !important;
}

.s-metadata-row:has(.s-metadata-row-name:empty) .s-metadata-row-value {
    color: #687740 !important;
    font-weight: 700 !important;
    text-align: center !important;
}


/* =========================================
   إخفاء الصف الذي بلا تسمية
   ========================================= */

.s-metadata-row:has(.s-metadata-row-name:empty) {
    display: none !important;
}


/* =========================================
   السجل التجاري
   ========================================= */

img[alt="السجل التجاري"] {
    width: 34px !important;
    height: 34px !important;
    object-fit: contain !important;
}

.s-trust-badges-label {
    white-space: nowrap !important;
}

.s-trust-badges-content,
salla-trust-badges.s-trust-badges-wrapper {
    width: auto !important;
    max-width: none !important;
}


/* =========================================
   الرقم الضريبي
   ========================================= */

footer .flex.rtl\:space-x-reverse.space-x-2.items-end a.load-img-onclick {
    width: 34px !important;
    height: 34px !important;
    display: inline-block !important;
    overflow: hidden !important;
}

footer .flex.rtl\:space-x-reverse.space-x-2.items-end a.load-img-onclick img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}


/* =========================================================
   قسم السعر في صفحة المنتج
   الجوال:
   السعر في صف مستقل
   الخصم والتوفير في صف مستقل تحته
   ========================================================= */

@media (max-width: 1023px) {

    /* الحاوية الرئيسية */
    #c-p-price {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 12px !important;
    }

    /* قسم السعر */
    #c-p-price > .center-between {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;

        width: 100% !important;
        max-width: 100% !important;

        flex: 0 0 100% !important;
        min-width: 100% !important;
    }

    /* قسم التوفير والخصم */
    #c-p-price > #custom-product-prices {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;

        width: 100% !important;
        max-width: 100% !important;

        flex: 0 0 100% !important;
        min-width: 100% !important;

        margin: 0 !important;
    }
}


/* =========================================================
   تأكيد إضافي للجوال الصغير
   ========================================================= */

@media (max-width: 767px) {

    #c-p-price {
        flex-direction: column !important;
        flex-wrap: nowrap !important;
    }

    #c-p-price > .center-between,
    #c-p-price > #custom-product-prices {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        flex-basis: 100% !important;
        flex-grow: 0 !important;
        flex-shrink: 0 !important;
    }
}


/* =========================================================
   إخفاء شارات الثقة من سلة المشتريات
   ========================================================= */

.cart-drawer__trust-badges {
    display: none !important;
}

/* =========================================================
   إجبار السعر والخصم على صفين منفصلين في الجوال
   ضع هذا الكود في نهاية CSS بالكامل
   ========================================================= */

@media screen and (max-width: 1023px) {

    /* ===== صفحة المنتج ===== */

    html body section#c-p-price.custome-p-price {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: auto auto !important;
        grid-auto-flow: row !important;

        width: 100% !important;
        max-width: 100% !important;

        gap: 8px !important;
    }


    /* السعر يكون في الصف الأول حصراً */
    html body section#c-p-price.custome-p-price > .center-between {
        grid-column: 1 / -1 !important;
        grid-row: 1 !important;

        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;

        flex: none !important;

        position: static !important;
        float: none !important;

        margin: 0 !important;
    }


    /* التوفير والخصم يكونان في الصف الثاني حصراً */
    html body section#c-p-price.custome-p-price > #custom-product-prices {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;

        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;

        flex: none !important;

        position: static !important;
        inset: auto !important;
        float: none !important;
        clear: both !important;

        transform: none !important;

        margin: 0 !important;
    }


    /* يبقى "وفر" و "خصم" بجانب بعضهما داخل الصف الثاني */
    html body #custom-product-prices {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;

        align-items: center !important;
        justify-content: stretch !important;

        width: 100% !important;
        max-width: 100% !important;
    }


    html body #custom-product-prices > #custom-discount-amount,
    html body #custom-product-prices > #custom-discount-percentage {
        width: 50% !important;
        flex: 1 1 50% !important;
    }


    /* =====================================================
       حماية إضافية:
       أي مكان آخر في القالب يحتوي custom-product-prices
       مثل بطاقات المنتجات في الرئيسية
       ===================================================== */

    html body div:has(> #custom-product-prices),
    html body section:has(> #custom-product-prices) {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-auto-flow: row !important;

        width: 100% !important;
        max-width: 100% !important;
    }


    /* نجبر قسم الخصم أن يأخذ سطراً كاملاً */
    html body div:has(> #custom-product-prices) > #custom-product-prices,
    html body section:has(> #custom-product-prices) > #custom-product-prices {
        grid-column: 1 / -1 !important;

        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;

        flex-basis: 100% !important;

        position: static !important;
        float: none !important;
        clear: both !important;

        transform: none !important;

        margin-top: 8px !important;
    }
}

/* =========================================
   توسيع محتوى الهيدر إلى 90% من الشاشة
   سطح المكتب فقط
   ========================================= */

@media (min-width: 1024px) {

    div.flex.items-center.justify-between.relative.w-full:has(custom-main-menu.show-desktop-menu) {
        width: 90vw !important;
        max-width: 90vw !important;
        min-width: 90vw !important;

        margin-left: calc((100% - 90vw) / 2) !important;
        margin-right: calc((100% - 90vw) / 2) !important;
    }
}

/* =========================================================
   خدمات التقسيط (تمارا + تابي + مسباي)
   - تمارا: صف كامل بالأعلى
   - تابي + مسباي: صف واحد بالأسفل، بنفس الارتفاع دائمًا
   - حواف الصناديق الثلاثة بنفس اللون الرمادي + خلفية بيضاء
   - كل العناصر تبقى ظاهرة حتى أثناء تحميل محتوى الودجت
   ========================================================= */

salla-installment {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: auto auto !important;
    gap: 14px !important;
    align-items: stretch !important;
    width: 100% !important;
}

/* تمارا — الصف الأول كامل العرض */
salla-installment > div:first-child {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;

    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;

    border: 1px solid #E1E4E8 !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    background: #FFFFFF !important;

    overflow: hidden !important;
}

/* تابي — الصف الثاني، النصف الأول */
salla-installment > #tabbyPromoWrapper {
    grid-column: 1 !important;
    grid-row: 2 !important;

    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;

    border: 1px solid #E1E4E8 !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    background: #FFFFFF !important;

    height: auto !important;
    min-height: 90px !important;
    align-self: stretch !important;

    overflow: hidden !important;
}

/* إزالة أي حواف إضافية من حاوية تابي الداخلية */
salla-installment > #tabbyPromoWrapper #tabbyPromo {
    width: 100% !important;
    max-width: 100% !important;

    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
}

/* مسباي — الصف الثاني، النصف الثاني */
salla-installment > div:has(> mispay-widget) {
    grid-column: 2 !important;
    grid-row: 2 !important;

    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;

    border: 1px solid #E1E4E8 !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    background: #FFFFFF !important;

    height: auto !important;
    min-height: 90px !important;
    align-self: stretch !important;

    overflow: hidden !important;
}

/* إزالة الحد الداخلي الأصلي لمسباي، حتى يظهر الحد الخارجي الموحد فقط */
salla-installment mispay-widget {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;

    border: none !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    background: #FFFFFF !important;

    height: auto !important;
    min-height: 66px !important;

    padding: 12px !important;
    box-sizing: border-box !important;
}

/* تأكيد أن العناصر الداخلية تملأ أعمدتها ولا تختفي أبدًا */
salla-installment tamara-widget,
salla-installment #tabbyPromoWrapper,
salla-installment #tabbyPromo,
salla-installment mispay-widget {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* الجوال — نفس الترتيب: تمارا فوق، وتابي ومسباي بجانب بعض بالأسفل */
@media (max-width: 767px) {

    salla-installment {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        grid-template-rows: auto auto !important;
        gap: 10px !important;
    }

    salla-installment > div:first-child {
        grid-column: 1 / -1 !important;
        grid-row: 1 !important;
    }

    salla-installment > #tabbyPromoWrapper {
        grid-column: 1 !important;
        grid-row: 2 !important;
    }

    salla-installment > div:has(> mispay-widget) {
        grid-column: 2 !important;
        grid-row: 2 !important;
    }
}

/* =========================================================
   الشريط العلوي — الجوال
   صف واحد دائمًا + منع التداخل
   ========================================================= */

@media (max-width: 767px) {

    #carousel-moving,
    #carousel-moving .swiper,
    #carousel-moving .s-slider-container {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    #carousel-moving .swiper-slide {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;

        box-sizing: border-box !important;

        margin-left: 0 !important;
        margin-right: 0 !important;

        padding-left: 7px !important;
        padding-right: 7px !important;

        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;

        justify-content: center !important;
        align-items: center !important;

        gap: 4px !important;

        overflow: hidden !important;
    }

    #carousel-moving .swiper-slide > i {
        flex: 0 0 auto !important;
        font-size: 10px !important;
    }

    #carousel-moving .swiper-slide > p {
        flex: 0 1 auto !important;
        min-width: 0 !important;

        margin: 0 !important;

        white-space: nowrap !important;
        flex-wrap: nowrap !important;

        overflow: hidden !important;
        text-overflow: ellipsis !important;

        font-size: 10px !important;
        line-height: 1.2 !important;
        letter-spacing: -0.15px !important;
    }

    #carousel-moving .swiper-slide > button {
        flex: 0 0 auto !important;

        margin: 0 !important;
        padding: 0 !important;

        white-space: nowrap !important;

        font-size: 10px !important;
        line-height: 1.2 !important;
        letter-spacing: -0.15px !important;
    }
}

/* شاشات الجوال الصغيرة جدًا */
@media (max-width: 360px) {

    #carousel-moving .swiper-slide {
        gap: 3px !important;
        padding-left: 5px !important;
        padding-right: 5px !important;
    }

    #carousel-moving .swiper-slide > i {
        display: none !important;
    }

    #carousel-moving .swiper-slide > p,
    #carousel-moving .swiper-slide > button {
        font-size: 9.5px !important;
    }
}

/* استبدال شعار مندوب إيوان في الشحن */
li[data-testid="checkout-shipping-company-item-1504555"] img.company-logo {
    content: url("https://monzir.com/wp-content/uploads/2026/09/ChatGPT-Image-Sep-2-2026-11_24_50-PM.png") !important;

    width: 55px !important;
    height: 55px !important;

    object-fit: contain !important;
    object-position: center !important;

    border-radius: 10px !important;
}

.rounded-full {
  width: 48px !important;
  height: 48px !important;
  object-fit: cover;
  object-position: center;
  flex-shrink: 0;
}

#scroll-top-btn{
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  width: auto !important;
  height: auto !important;
  min-width: unset !important;
  white-space: nowrap;
  z-index: 20;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 10px 18px !important;
}

#scroll-top-btn p{
  margin: 0;
  white-space: nowrap;
  font-size: 13px;
}

#scroll-top-btn i{
  font-size: 13px;
  line-height: 1;
}

/* تحسين موضع أيقونة المفضلة العائمة على صورة المنتج */
.wajha-actions-container {
  top: 12px;
  right: 12px;
  left: auto;
  bottom: auto;
}
.p_c_wishlist-btn.s-button-wrap {
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  background: #fff;
  border-radius: 50%;
}

/* إخفاء قسم "اطلبها مجدداً" حين يكون فارغاً فقط */
#reorder-section:has(.s-products-list-placeholder) {
  display: none !important;
}