/* Add custom CSS styles below */ 
/* Add custom CSS styles below */ 
/* استيراد خط Cairo */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200..1000&display=swap');

/* تطبيق الخط على الموقع */
body, p, span, a, li, h1, h2, h3, h4, h5, h6, div {
  font-family: "Cairo", sans-serif !important;
}



/* =========================================
   تصغير بانرات هاف ون
   4 بالصف كمبيوتر - 2 بالصف جوال
   بدون تعديل أو قص الصور
========================================= */

/* الكمبيوتر */
@media screen and (min-width: 768px) {

    section.s-block--banners .grid.two-row,
    section.s-block--banners .square-static-images-itmes {
        display: grid !important;

        grid-template-columns:
            repeat(4, minmax(0, 1fr)) !important;

        gap: 10px !important;
    }

    /* إلغاء توزيع القالب الخاص two-row */
    section.s-block--banners .grid.two-row > *,
    section.s-block--banners .square-static-images-itmes > .square-static-item {
        grid-column: auto !important;
        grid-row: auto !important;

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

        margin: 0 !important;
    }
}


/* =========================================
   الجوال — 4 بانرات مثل شكل الكمبيوتر
========================================= */
@media screen and (max-width: 767px) {

    section.s-block--banners .grid.two-row,
    section.s-block--banners .square-static-images-itmes {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 5px !important;
    }

    section.s-block--banners .grid.two-row > *,
    section.s-block--banners .square-static-images-itmes > .square-static-item {
        grid-column: auto !important;
        grid-row: auto !important;

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

        /* المهم: نلغي الارتفاع الطويل */
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;

        /* نفس تناسب شكل الكمبيوتر تقريباً */
        aspect-ratio: 1 / 1.05 !important;

        position: relative !important;
        overflow: hidden !important;

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

    /* الحاويات الداخلية تأخذ حجم البطاقة */
    section.s-block--banners .grid.two-row > * > a,
    section.s-block--banners .grid.two-row > * > div,
    section.s-block--banners .square-static-images-itmes > .square-static-item > a,
    section.s-block--banners .square-static-images-itmes > .square-static-item > div {
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
    }

    /* صورة الخلفية */
    section.s-block--banners .grid.two-row .lazy__bg,
    section.s-block--banners .square-static-images-itmes .lazy__bg {
        width: 100% !important;
        height: 100% !important;

        background-size: cover !important;
        background-position: center !important;
    }
}










/* ==========================================
   Have One - Premium Mobile Bottom Nav
   ========================================== */

:root {
    --nq-orange: #9F3135;
    --nq-dark: #252525;
    --nq-muted: #777b80;
    --nq-border: #eeeeee;
    --nq-bg: #ffffff;
}


/* ==========================================
   Desktop
   مخفي افتراضياً على الكمبيوتر
   ========================================== */

#nq-mobile-nav {
    display: none;
}


/* ==========================================
   Mobile Bottom Navigation
   ========================================== */

@media (max-width: 768px) {

    /* مساحة أسفل الصفحة حتى لا يغطي الشريط المحتوى */
    body {
        padding-bottom: calc(
            76px + env(safe-area-inset-bottom, 0px)
        ) !important;
    }


    /* الشريط السفلي */
    #nq-mobile-nav {
        position: fixed;
        z-index: 999999;

        right: 0;
        left: 0;
        bottom: 0;

        display: flex;
        align-items: flex-start;
        justify-content: space-around;

        width: 100%;
        height: calc(
            68px + env(safe-area-inset-bottom, 0px)
        );

        padding:
            7px
            6px
            env(safe-area-inset-bottom, 0px);

        background: rgba(255, 255, 255, 0.97);

        border-top: 1px solid var(--nq-border);

        border-radius: 18px 18px 0 0;

        box-shadow:
            0 -1px 3px rgba(0, 0, 0, 0.025),
            0 -8px 25px rgba(0, 0, 0, 0.055);

        direction: rtl;

        box-sizing: border-box;

        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);

        transition:
            transform 0.25s ease,
            opacity 0.2s ease;
    }


    /* توحيد box-sizing داخل القائمة */
    #nq-mobile-nav *,
    #nq-mobile-nav *::before,
    #nq-mobile-nav *::after {
        box-sizing: border-box;
    }


    /* ==========================================
       Navigation Item
       ========================================== */

    .nq-nav-item {
        position: relative;

        display: flex;
        flex: 1 1 20%;

        min-width: 0;
        height: 55px;

        flex-direction: column;
        align-items: center;
        justify-content: center;

        gap: 3px;

        margin: 0;
        padding: 3px 2px;

        border: 0;
        outline: 0;

        background: transparent !important;

        color: var(--nq-muted);

        text-decoration: none !important;

        font-family: inherit;

        cursor: pointer;

        box-shadow: none !important;

        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;

        transition:
            color 0.2s ease,
            transform 0.15s ease;
    }


    .nq-nav-item:hover,
    .nq-nav-item:focus,
    .nq-nav-item:active,
    .nq-nav-item.nq-active {
        background: transparent !important;
        box-shadow: none !important;
        text-decoration: none !important;
    }


    .nq-nav-item:active {
        transform: scale(0.94);
    }


    /* ==========================================
       Navigation Icon
       ========================================== */

    .nq-nav-icon {
        position: relative;

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

        width: 27px;
        height: 27px;

        transition: transform 0.2s ease;
    }


    .nq-nav-icon svg {
        display: block;

        width: 24px;
        height: 24px;

        fill: none;

        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }


    /* ==========================================
       Navigation Label
       ========================================== */

    .nq-nav-label {
        display: block;

        max-width: 100%;

        color: inherit;

        font-size: 10.5px;
        font-weight: 500;
        line-height: 1.2;

        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;

        transition: font-weight 0.2s ease;
    }


    /* ==========================================
       Active Item
       ========================================== */

    .nq-nav-item.nq-active {
        color: var(--nq-orange);
    }


    .nq-nav-item.nq-active .nq-nav-label {
        font-weight: 700;
    }


    .nq-nav-item.nq-active .nq-nav-icon {
        transform: translateY(-1px);
    }


    /* النقطة الصغيرة تحت العنصر النشط */
    .nq-nav-item.nq-active::after {
        content: "";

        position: absolute;

        bottom: 0;

        width: 4px;
        height: 4px;

        border-radius: 50%;

        background: var(--nq-orange);
    }


    /* ==========================================
       Cart Badge
       ========================================== */

    .nq-cart-badge {
        position: absolute;

        z-index: 2;

        top: -5px;
        right: -8px;

        display: none;

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

        min-width: 17px;
        height: 17px;

        padding: 0 4px;

        border: 2px solid #ffffff;
        border-radius: 20px;

        background: var(--nq-orange);

        color: #ffffff;

        font-family: Arial, sans-serif;

        font-size: 9px;
        font-weight: 700;
        line-height: 1;
    }


    .nq-cart-badge.nq-show {
        display: flex;
    }


    /* ==========================================
       Button Reset
       ========================================== */

    #nq-mobile-nav button {
        -webkit-appearance: none;
        appearance: none;

        border: 0 !important;
        outline: none !important;
    }


    /* ==========================================
       Account Menu
       ========================================== */

    /*
     * عند فتح قائمة الحساب
     * نخفي الشريط السفلي مؤقتاً
     */
    body.nq-user-menu-open #nq-mobile-nav {
        transform: translateY(120%);
        opacity: 0;
        pointer-events: none;
    }


    /*
     * تأكيد ظهور قائمة حساب سلة
     * فوق باقي عناصر الصفحة
     */
    ul.s-user-menu-dropdown-list {
        position: relative;
        z-index: 1000000 !important;

        border-radius: 14px !important;

        overflow: hidden;
    }


    /* ==========================================
       Cart Page
       ========================================== */

    /*
     * إذا كان زر السلة هو العنصر النشط
     * نخفي القائمة السفلية في صفحة السلة
     */
    body:has(
        #nq-mobile-nav
        .nq-nav-item[data-nq-action="cart"].nq-active
    )
    #nq-mobile-nav {
        display: none !important;
    }


    /*
     * إزالة المساحة السفلية المحجوزة
     * عند إخفاء القائمة في صفحة السلة
     */
    body:has(
        #nq-mobile-nav
        .nq-nav-item[data-nq-action="cart"].nq-active
    ) {
        padding-bottom: 0 !important;
    }

}


/* ==========================================
   Very Small Mobile Screens
   ========================================== */

@media (max-width: 350px) {

    .nq-nav-label {
        font-size: 9.5px;
    }


    .nq-nav-icon svg {
        width: 22px;
        height: 22px;
    }

}












/* ==========================================
   هاف ون - نافذة تسجيل الدخول للجوال
   ========================================== */

@media (max-width: 768px) {

    salla-modal.s-login-modal {
        z-index: 1000003 !important;
        pointer-events: none !important;
        overflow: visible !important;
    }

    /* تعتيم الخلفية مع إبقاء الشريط السفلي ظاهرًا */
    salla-modal.s-login-modal .s-modal-overlay {
        position: fixed !important;
        z-index: 0 !important;
        top: 0 !important;
        right: 0 !important;
        left: 0 !important;
        bottom:
            calc(
                68px +
                env(safe-area-inset-bottom, 0px)
            ) !important;

        background: rgba(20, 20, 20, 0.22) !important;
        pointer-events: auto !important;

        -webkit-backdrop-filter: blur(2px);
        backdrop-filter: blur(2px);
    }

    salla-modal.s-login-modal .s-modal-wrapper {
        overflow: visible !important;
        pointer-events: none !important;
    }

    salla-modal.s-login-modal .s-modal-spacer {
        display: none !important;
    }

    /* بطاقة تسجيل الدخول */
    salla-modal.s-login-modal .s-modal-body {
        position: fixed !important;
        z-index: 2 !important;

        top: auto !important;
        right: 12px !important;
        left: 12px !important;
        bottom:
            calc(
                80px +
                env(safe-area-inset-bottom, 0px)
            ) !important;

        width: auto !important;
        max-width: none !important;
        max-height:
            calc(
                100dvh -
                112px -
                env(safe-area-inset-bottom, 0px)
            ) !important;

        margin: 0 !important;
        padding: 14px !important;

        overflow-x: hidden !important;
        overflow-y: auto !important;

        border: 1px solid rgba(0, 0, 0, 0.07) !important;
        border-radius: 20px !important;
        background: #ffffff !important;

        box-shadow:
            0 18px 55px
            rgba(0, 0, 0, 0.18) !important;

        direction: rtl;
        pointer-events: auto !important;
        transform-origin: bottom center;

        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        scrollbar-width: none;
    }

    salla-modal.s-login-modal .s-modal-body::-webkit-scrollbar {
        display: none;
    }

    /* محتوى تسجيل الدخول */
    salla-modal.s-login-modal iframe {
        display: block !important;
        width: 100% !important;
        height: 448px !important;
        margin: 0 !important;
        border: 0 !important;
        border-radius: 14px !important;
        background: #ffffff !important;
    }

    /* زر الإغلاق مثل واجهة حسابي */
    salla-modal.s-login-modal .s-modal-close {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        top: 12px !important;
        right: auto !important;
        left: 12px !important;

        width: 36px !important;
        height: 36px !important;
        padding: 0 !important;

        border: 0 !important;
        border-radius: 50% !important;
        background: #f5f5f5 !important;
        color: #555555 !important;

        transition:
            background 0.18s ease,
            color 0.18s ease,
            transform 0.18s ease;
    }

    salla-modal.s-login-modal .s-modal-close svg {
        width: 18px !important;
        height: 18px !important;
        fill: currentColor !important;
    }

    salla-modal.s-login-modal .s-modal-close:active {
        background: #F9EFF0 !important;
        color: #9F3135 !important;
        transform: scale(0.94);
    }

    /* حركة ظهور ناعمة */
    salla-modal.s-login-modal[visible] .s-modal-body {
        animation:
            nq-login-panel-open
            0.22s ease both !important;
    }

    @keyframes nq-login-panel-open {
        from {
            opacity: 0;
            transform:
                translateY(18px)
                scale(0.985);
        }

        to {
            opacity: 1;
            transform:
                translateY(0)
                scale(1);
        }
    }
}









/* HAVE ONE | إخفاء أسهم التنقل في البنرات */

.s-slider-block__title .s-slider-prev,
.s-slider-block__title .s-slider-next,
.s-slider-block__title .s-slider-nav-arrow {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}








/* تغيير لون عناوين الأقسام */
.s-slider-block__title h2 {
    color: #8B1E2D !important;
}













/* الكمبيوتر فقط */
@media (min-width: 768px) {

    .s-slider-block__title {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 12px !important;
        margin-bottom: 22px !important;
    }

    .s-slider-block__title h2 {
        color: #8B1E2D !important;
        font-size: 23px !important;
        font-weight: 800 !important;
        text-align: center !important;
        width: auto !important;
        margin: 0 !important;
        padding: 0 0 10px !important;
        position: relative !important;
    }

    .s-slider-block__title h2::after {
        content: "" !important;
        position: absolute !important;
        bottom: 0 !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 42px !important;
        height: 3px !important;
        background: #8B1E2D !important;
        border-radius: 10px !important;
    }

    .s-slider-block__title-left {
        width: auto !important;
        margin: 0 auto !important;
        padding: 0 !important;
    }

    .s-slider-block__title-left a {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 125px !important;
        height: 40px !important;
        padding: 0 25px !important;
        background: #8B1E2D !important;
        color: #fff !important;
        border: 1px solid #8B1E2D !important;
        border-radius: 25px !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        transition: all .3s ease !important;
        box-shadow: 0 3px 10px rgba(139,30,45,.13) !important;
    }

    .s-slider-block__title-left a:hover {
        background: #fff !important;
        color: #8B1E2D !important;
        transform: translateY(-3px) !important;
        box-shadow: 0 6px 16px rgba(139,30,45,.2) !important;
    }
}















/* توثيق المركز السعودي للأعمال */
footer .nq-footer-trust,
footer .ng-footer-trust,
.nq-footer-trust,
.ng-footer-trust {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    text-align: right !important;
    direction: rtl !important;
}

/* إخفاء العناصر القديمة */
footer .nq-footer-trust > *,
footer .ng-footer-trust > *,
.nq-footer-trust > *,
.ng-footer-trust > * {
    display: none !important;
}

/* الشعار */
footer .nq-footer-trust::before,
footer .ng-footer-trust::before,
.nq-footer-trust::before,
.ng-footer-trust::before {
    content: "";
    display: block !important;
    flex: 0 0 75px;
    width: 75px;
    height: 65px;
    background-image: url("https://cdn.salla.network/cdn-cgi/image/fit=scale-down,width=58,height=58,onerror=redirect,format=auto/images/sbc.png");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

/* النص */
footer .nq-footer-trust::after,
footer .ng-footer-trust::after,
.nq-footer-trust::after,
.ng-footer-trust::after {
    content: "موثّق بالمركز السعودي للأعمال\A رقم التوثيق: 0000346327";
    display: block !important;
    white-space: pre-line;
    color: #252525;
    font-family: 'Cairo', sans-serif !important;
    font-size: 13px;
    font-weight: 800 !important;
    line-height: 1.9;
    text-align: right;
}

/* الجوال */
@media (max-width: 600px) {
    footer .nq-footer-trust,
    footer .ng-footer-trust,
    .nq-footer-trust,
    .ng-footer-trust {
        gap: 9px !important;
    }

    footer .nq-footer-trust::before,
    footer .ng-footer-trust::before,
    .nq-footer-trust::before,
    .ng-footer-trust::before {
        flex-basis: 60px;
        width: 60px;
        height: 55px;
    }

    footer .nq-footer-trust::after,
    footer .ng-footer-trust::after,
    .nq-footer-trust::after,
    .ng-footer-trust::after {
        font-size: 11px;
    }
}