/* Add custom CSS styles below */ 
/* =========================
   MASAR HEADER CUSTOMIZATION
   ========================= */

/* إخفاء الشريط العلوي الأسود / معلومات الدعم */
.top-navbar,
.top-nav,
.header-top,
header .top-bar,
header .top-navbar {
    display: none !important;
}

/* الهيدر الرئيسي */
header,
.main-nav-container,
.main-nav {
    background: #ffffff !important;
}

/* تقليل ارتفاع الهيدر */
.main-nav {
    min-height: 72px !important;
    border-bottom: 1px solid #eef1f4 !important;
    box-shadow: none !important;
}

/* الحاوية الداخلية */
.main-nav .container {
    min-height: 72px !important;
    display: flex !important;
    align-items: center !important;
}

/* الشعار */
.main-nav .navbar-brand img,
header .navbar-brand img {
    width: 52px !important;
    height: 52px !important;
    max-height: 52px !important;
    object-fit: contain !important;
}

/* القائمة الرئيسية */
.main-menu,
custom-main-menu {
    flex: 1 !important;
}

.main-menu ul,
custom-main-menu ul {
    justify-content: center !important;
    gap: 26px !important;
}

.main-menu a,
custom-main-menu a {
    color: #0c2748 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: color .2s ease !important;
}

.main-menu a:hover,
custom-main-menu a:hover {
    color: #14976f !important;
}

/* إزالة المظهر المزدحم من البحث */
header salla-search,
.main-nav salla-search {
    max-width: 42px !important;
}

/* أيقونات الحساب والسلة */
.header-btn,
.main-nav .header-btn,
header salla-cart-summary,
header salla-user-menu {
    color: #0c2748 !important;
}

/* زر الحساب بشكل قريب من تصميم مسار */
header salla-user-menu {
    border-radius: 9px !important;
}

/* تحسين المسافات */
.main-nav .flex.items-center {
    gap: 12px !important;
}

/* الجوال */
@media (max-width: 767px) {
    .main-nav {
        min-height: 64px !important;
    }

    .main-nav .container {
        min-height: 64px !important;
    }

    .main-nav .navbar-brand img,
    header .navbar-brand img {
        width: 44px !important;
        height: 44px !important;
    }

    custom-main-menu,
    .main-menu {
        display: none !important;
    }
}

/* =========================
   MASAR HEADER REFINEMENT
   ========================= */

/* تحسين توزيع عناصر الهيدر */
.main-nav .container {
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding-inline: 24px !important;
    justify-content: space-between !important;
}

/* القائمة في المنتصف */
.main-menu,
custom-main-menu {
    flex: 1 1 auto !important;
    display: flex !important;
    justify-content: center !important;
}

.main-menu ul,
custom-main-menu ul {
    gap: 20px !important;
}

/* حجم ونص القائمة */
.main-menu a,
custom-main-menu a {
    font-size: 15px !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
}

/* الشعار */
.main-nav .navbar-brand img,
header .navbar-brand img {
    width: 56px !important;
    height: 56px !important;
    max-height: 56px !important;
}

/* تجميع أيقونات الحساب والسلة */
.main-nav .header-btn,
header salla-cart-summary,
header salla-user-menu {
    margin-inline: 3px !important;
}

/* تحسين الأيقونات */
.main-nav .header-btn,
header salla-cart-summary,
header salla-user-menu {
    border-radius: 10px !important;
}

/* تفعيل لون الرابط عند المرور */
.main-menu a:hover,
custom-main-menu a:hover {
    color: #15966d !important;
}

/* الرابط النشط */
.main-menu a.active,
custom-main-menu a.active,
.main-menu .active > a,
custom-main-menu .active > a {
    color: #15966d !important;
    font-weight: 600 !important;
}

/* تقليل ارتفاع الهيدر قليلًا */
.main-nav,
.main-nav .container {
    min-height: 68px !important;
}


/* =========================================
   MASAR - EXACT CENTERED HEADER MENU
   أفقي + عمودي + بدون تكرار
   ========================================= */

/* العنصر الأب للهيدر */
#mainnav .container > .flex.items-stretch.justify-between.relative {
    position: relative !important;
    min-height: 68px !important;
    height: 68px !important;

    display: flex !important;
    align-items: center !important;
}

/* القائمة الرئيسية نفسها */
#mainnav .container > .flex.items-stretch.justify-between.relative
> .flex.items-center
> custom-main-menu {

    position: absolute !important;

    left: 50% !important;
    right: auto !important;

    top: 50% !important;
    bottom: auto !important;

    transform: translate(-50%, -50%) !important;

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

    height: 68px !important;

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

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

    z-index: 20 !important;
}

/* الحاوية الداخلية للقائمة */
#mainnav custom-main-menu #mobile-menu {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    height: 68px !important;

    width: max-content !important;

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

/* القائمة UL */
#mainnav custom-main-menu ul.main-menu {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: max-content !important;
    height: 68px !important;

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

    gap: 28px !important;
}

/* =========================================
   سطح المكتب
   إظهار نسخة Desktop فقط
   ========================================= */

@media (min-width: 1024px) {

    /* إخفاء نسخة الجوال */
    #mainnav custom-main-menu ul.main-menu > li.lg\:hidden {
        display: none !important;
    }

    /* إظهار نسخة سطح المكتب */
    #mainnav custom-main-menu ul.main-menu > li.hidden.lg\:block {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;

        height: 68px !important;

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

    /* الروابط */
    #mainnav custom-main-menu ul.main-menu > li.hidden.lg\:block > a {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        height: 68px !important;

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

        line-height: 1.2 !important;
        white-space: nowrap !important;
    }
}

/* =========================================
   الجوال والتابلت
   ========================================= */

@media (max-width: 1023px) {

    /* إلغاء التوسيط المطلق */
    #mainnav .container > .flex.items-stretch.justify-between.relative
    > .flex.items-center
    > custom-main-menu {

        position: static !important;

        left: auto !important;
        right: auto !important;

        top: auto !important;
        bottom: auto !important;

        transform: none !important;

        display: block !important;

        height: auto !important;

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

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

    /* الحاوية */
    #mainnav custom-main-menu #mobile-menu {
        display: block !important;

        width: auto !important;
        height: auto !important;

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

    /* القائمة */
    #mainnav custom-main-menu ul.main-menu {
        display: block !important;

        width: auto !important;
        height: auto !important;

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

    /* إظهار نسخة الجوال */
    #mainnav custom-main-menu ul.main-menu > li.lg\:hidden {
        display: flex !important;
    }

    /* إخفاء نسخة سطح المكتب */
    #mainnav custom-main-menu ul.main-menu > li.hidden.lg\:block {
        display: none !important;
    }

    /* روابط الجوال */
    #mainnav custom-main-menu ul.main-menu > li > a {
        height: auto !important;
        white-space: normal !important;
    }
}

/* Hover أنيق لعناصر قائمة الهيدر */
#mainnav custom-main-menu ul.main-menu > li > a {
    transition: all 0.2s ease !important;
    border-radius: 10px !important;
    padding: 8px 12px !important;
}

/* عند مرور الماوس */
#mainnav custom-main-menu ul.main-menu > li > a:hover {
    color: #14976f !important;
    background: rgba(20, 151, 111, 0.10) !important;
}

/* العنصر النشط أيضًا */
#mainnav custom-main-menu ul.main-menu > li > a.active,
#mainnav custom-main-menu ul.main-menu > li.active > a {
    color: #14976f !important;
    background: rgba(20, 151, 111, 0.10) !important;
}

/* =========================================
   MASAR - CIRCULAR LOGO
   ========================================= */

#mainnav a[data-testid="store-header-logo"] {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 56px !important;
    height: 56px !important;

    border-radius: 50% !important;
    overflow: hidden !important;

    background: #082b55 !important;
    flex-shrink: 0 !important;
}

/* صورة الشعار */
#mainnav a[data-testid="store-header-logo"] img {
    width: 100% !important;
    height: 100% !important;

    object-fit: cover !important;

    border-radius: 50% !important;
}

/* =========================================
   MASAR - LOGIN / ACCOUNT BUTTON
   ========================================= */

/*
   ننسق زر الحساب الموجود أصلًا في سلة
   ولا ننشئ رابط تسجيل دخول وهمي
*/

#mainnav salla-user-menu {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    min-width: 118px !important;
    height: 44px !important;

    padding: 0 18px !important;

    background: #082b55 !important;
    color: #ffffff !important;

    border-radius: 10px !important;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease !important;
}



/* لون أيقونة الحساب */
#mainnav salla-user-menu *,
#mainnav salla-user-menu i,
#mainnav salla-user-menu svg {
    color: #ffffff !important;
}

/* Hover */
#mainnav salla-user-menu:hover {
    background: #0b376b !important;

    transform: translateY(-1px) !important;

    box-shadow: 0 5px 14px rgba(8, 43, 85, 0.15) !important;
}

/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 1023px) {

    #mainnav a[data-testid="store-header-logo"] {
        width: 46px !important;
        height: 46px !important;
    }

    /* في الجوال نخلي زر الحساب أيقونة فقط */
    #mainnav salla-user-menu {
        min-width: 42px !important;
        width: 42px !important;
        height: 42px !important;

        padding: 0 !important;

        border-radius: 50% !important;
    }

    #mainnav salla-user-menu::after {
      
    }
}

/* =========================================
   MASAR - LOGIN BUTTON TEXT ONLY
   ========================================= */

/* إخفاء أيقونة الحساب داخل الزر */
#mainnav salla-user-menu i,
#mainnav salla-user-menu svg,
#mainnav salla-user-menu .sicon-user,
#mainnav salla-user-menu [class*="user"],
#mainnav salla-user-menu button > *:not(:last-child) {
    display: none !important;
}

/* زر تسجيل الدخول */
#mainnav salla-user-menu {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    min-width: 118px !important;
    height: 44px !important;

    padding: 0 18px !important;

    background: #082b55 !important;
    color: #ffffff !important;

    border-radius: 10px !important;
    border: none !important;

    font-size: 14px !important;
    font-weight: 600 !important;
}



/* Hover */
#mainnav salla-user-menu:hover {
    background: #0b376b !important;
    color: #ffffff !important;
}

/* الجوال */
@media (max-width: 1023px) {
    #mainnav salla-user-menu {
        min-width: 100px !important;
        width: auto !important;
        height: 40px !important;
        border-radius: 9px !important;
        padding: 0 14px !important;
    }

   
}

/* =========================================
   MASAR - LOGIN + CART ACTIONS
   ========================================= */

/* ترتيب مجموعة الحساب والسلة */
#mainnav .flex.items-center:last-child {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    direction: rtl !important;
}

/* زر تسجيل الدخول */
#mainnav salla-user-menu {
    order: 2 !important;
}

/* السلة على يمين زر تسجيل الدخول */
#mainnav salla-cart-summary {
    order: 1 !important;

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

    width: 44px !important;
    height: 44px !important;

    min-width: 44px !important;

    background: #f4f7f9 !important;

    border: 1px solid #edf1f4 !important;
    border-radius: 12px !important;

    color: #082b55 !important;

    transition: all 0.2s ease !important;
}

/* أيقونة السلة */
#mainnav salla-cart-summary i,
#mainnav salla-cart-summary svg,
#mainnav salla-cart-summary [class*="cart"] {
    color: #082b55 !important;
}

/* Hover للسلة */
#mainnav salla-cart-summary:hover {
    background: rgba(20, 151, 111, 0.10) !important;
    border-color: rgba(20, 151, 111, 0.20) !important;
    color: #14976f !important;
}

/* عداد المنتجات */
#mainnav salla-cart-summary .s-cart-summary-count,
#mainnav salla-cart-summary [class*="count"] {
    background: #14976f !important;
    color: #ffffff !important;

    min-width: 18px !important;
    height: 18px !important;

    border-radius: 999px !important;

    font-size: 10px !important;
    line-height: 18px !important;
}

/* الجوال */
@media (max-width: 1023px) {
    #mainnav .flex.items-center:last-child {
        gap: 8px !important;
    }

    #mainnav salla-cart-summary {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
    }
}



/* =========================================
   MASAR - CART BUTTON HORIZONTAL VERSION
   ========================================= */

/* عنصر السلة نفسه */
#mainnav salla-cart-summary[data-testid="store-header-cart"] {
    margin: 0 12px 0 0 !important;
    padding: 0 !important;

    width: 58px !important;
    height: 44px !important;
    min-width: 58px !important;

    background: transparent !important;
    box-shadow: none !important;
    filter: none !important;

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

/* رابط السلة الداخلي */
#mainnav salla-cart-summary[data-testid="store-header-cart"]
.s-cart-summary-wrapper {
    position: relative !important;

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

    width: 58px !important;
    height: 44px !important;
    min-width: 58px !important;

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

    background: #f5f7f9 !important;

    border: 1px solid #e4eaf0 !important;
    border-radius: 12px !important;

    box-shadow: none !important;
    filter: none !important;

    color: #082b55 !important;

    text-decoration: none !important;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease !important;
}

/* حاوية أيقونة السلة */
#mainnav #s-cart-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    height: 100% !important;

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

    background: transparent !important;
    border: none !important;

    box-shadow: none !important;
}

/* أيقونة السلة */
#mainnav #s-cart-icon .header-btn__icon,
#mainnav #s-cart-icon .sicon-shopping-bag {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

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

    color: #082b55 !important;

    font-size: 21px !important;
    line-height: 1 !important;

    background: transparent !important;

    border: none !important;
    border-radius: 0 !important;

    box-shadow: none !important;
    filter: none !important;
}

/* إزالة الظلال الموروثة */
#mainnav salla-cart-summary[data-testid="store-header-cart"] *,
#mainnav salla-cart-summary[data-testid="store-header-cart"] *::before,
#mainnav salla-cart-summary[data-testid="store-header-cart"] *::after {
    box-shadow: none !important;
}

/* عداد السلة */
#mainnav .s-cart-summary-count {
    position: absolute !important;

    top: -6px !important;
    right: -6px !important;

    min-width: 19px !important;
    height: 19px !important;

    padding: 0 4px !important;

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

    background: #14976f !important;
    color: #ffffff !important;

    border: 2px solid #ffffff !important;
    border-radius: 999px !important;

    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}

/* Hover */
#mainnav salla-cart-summary[data-testid="store-header-cart"]
.s-cart-summary-wrapper:hover {
    background: rgba(20, 151, 111, 0.10) !important;
    border-color: rgba(20, 151, 111, 0.22) !important;

    transform: translateY(-1px) !important;
}

/* لون الأيقونة عند Hover */
#mainnav salla-cart-summary[data-testid="store-header-cart"]
.s-cart-summary-wrapper:hover
.sicon-shopping-bag {
    color: #14976f !important;
}

/* إخفاء قسم أحدث المنتجات في الصفحة الرئيسية */
.home-products,
.latest-products,
section:has(salla-products-list[source="latest"]),
salla-products-list[source="latest"] {
    display: none !important;
}


/* =========================================
   MASAR - FULL WIDTH HERO BANNER
   ========================================= */

/* إلغاء حدود الحاوية حول أول بانر */
body .home-page > .container,
body main .container {
    max-width: 100% !important;
}

/* استهداف أول بانر في الصفحة */
body .home-page section:first-of-type,
body main section:first-of-type {
    width: 100vw !important;
    max-width: 100vw !important;

    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;

    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* صورة البنر */
body .home-page section:first-of-type img,
body main section:first-of-type img {
    display: block !important;

    width: 100% !important;
    max-width: none !important;
    height: auto !important;

    object-fit: cover !important;

    margin: 0 !important;

    border-radius: 0 !important;
}







/* =====================================================
   MASAR - ELECTRONIC SERVICES
   6 CARDS IN ONE ROW
   ===================================================== */

/* القسم بالكامل */
section[data-testid="store-home-square-photos"] {
    padding: 50px 20px !important;
    margin: 0 !important;

    background: #f8fafc !important;
}

/* عنوان القسم */
section[data-testid="store-home-square-photos"] .s-block__title {
    max-width: 1600px !important;

    margin: 0 auto 30px !important;

    text-align: center !important;
}

/* شبكة الخدمات */
section[data-testid="store-home-square-photos"] .grid {
    display: grid !important;

    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    grid-template-rows: none !important;

    gap: 14px !important;

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

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

/* البطاقة */
section[data-testid="store-home-square-photos"]
.banner-entry.square-photos {
    position: relative !important;

    display: flex !important;
    flex-direction: column !important;

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

    width: 100% !important;

    min-height: 165px !important;
    height: 165px !important;

    margin: 0 !important;
    padding: 18px 10px !important;

    background: #ffffff !important;

    border: 1px solid #e7edf2 !important;
    border-radius: 16px !important;

    overflow: hidden !important;

    box-shadow:
        0 4px 16px rgba(8, 43, 85, 0.04) !important;

    text-decoration: none !important;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background-color 0.25s ease,
        box-shadow 0.25s ease !important;
}

/* إزالة الـ Overlay الأصلي */
section[data-testid="store-home-square-photos"]
.banner-entry.square-photos::before,
section[data-testid="store-home-square-photos"]
.banner-entry.square-photos::after {
    display: none !important;
    content: none !important;
}

/* الصورة / الأيقونة */
section[data-testid="store-home-square-photos"]
.banner-entry.square-photos
.lazy__bg {
    position: static !important;

    display: block !important;

    width: 58px !important;
    height: 58px !important;

    min-width: 58px !important;
    min-height: 58px !important;

    flex: 0 0 58px !important;

    margin: 0 auto 12px !important;
    padding: 0 !important;

    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;

    border: none !important;
    border-radius: 0 !important;

    box-shadow: none !important;

    transform: none !important;

    transition:
        transform 0.25s ease !important;
}

/* عنوان الخدمة */
section[data-testid="store-home-square-photos"]
.banner-entry.square-photos
h3 {
    position: static !important;

    display: block !important;

    width: 100% !important;

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

    color: #082b55 !important;

    font-size: 15px !important;
    font-weight: 700 !important;

    line-height: 1.5 !important;

    text-align: center !important;

    opacity: 1 !important;
    visibility: visible !important;

    background: transparent !important;

    border: none !important;

    box-shadow: none !important;

    transform: none !important;

    white-space: normal !important;
}

/* إزالة أي خطوط أو مؤثرات حول العنوان */
section[data-testid="store-home-square-photos"]
.banner-entry.square-photos
h3::before,
section[data-testid="store-home-square-photos"]
.banner-entry.square-photos
h3::after {
    display: none !important;
    content: none !important;
}

/* Hover للبطاقة */
section[data-testid="store-home-square-photos"]
.banner-entry.square-photos:hover {
    transform: translateY(-4px) !important;

    background: rgba(20, 151, 111, 0.035) !important;

    border-color: rgba(20, 151, 111, 0.30) !important;

    box-shadow:
        0 12px 28px rgba(8, 43, 85, 0.08) !important;
}

/* تكبير الأيقونة قليلًا عند Hover */
section[data-testid="store-home-square-photos"]
.banner-entry.square-photos:hover
.lazy__bg {
    transform: scale(1.07) !important;
}

/* لون اسم الخدمة عند Hover */
section[data-testid="store-home-square-photos"]
.banner-entry.square-photos:hover
h3 {
    color: #14976f !important;
}


/* =====================================================
   شاشات متوسطة
   3 بطاقات في الصف
   ===================================================== */

@media (max-width: 1200px) {

    section[data-testid="store-home-square-photos"] .grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;

        gap: 16px !important;
    }

}


/* =====================================================
   الجوال
   بطاقتان في الصف
   ===================================================== */

@media (max-width: 640px) {

    section[data-testid="store-home-square-photos"] {
        padding: 38px 14px !important;
    }

    section[data-testid="store-home-square-photos"] .s-block__title {
        margin-bottom: 20px !important;
    }

    section[data-testid="store-home-square-photos"] .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;

        gap: 10px !important;
    }

    section[data-testid="store-home-square-photos"]
    .banner-entry.square-photos {
        min-height: 140px !important;
        height: 140px !important;

        padding: 15px 8px !important;

        border-radius: 14px !important;
    }

    section[data-testid="store-home-square-photos"]
    .banner-entry.square-photos
    .lazy__bg {
        width: 52px !important;
        height: 52px !important;

        min-width: 52px !important;
        min-height: 52px !important;

        flex-basis: 52px !important;

        margin-bottom: 10px !important;
    }

    section[data-testid="store-home-square-photos"]
    .banner-entry.square-photos
    h3 {
        font-size: 14px !important;
        line-height: 1.4 !important;
    }

}

/* =====================================================
   MASAR - SERVICES SECTION TITLE CENTER + SUBTITLE
   ===================================================== */

section[data-testid="store-home-square-photos"] .s-block__title {
    width: 100% !important;
    max-width: 100% !important;

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

    text-align: center !important;

    margin: 0 auto 28px !important;
    padding: 0 !important;
}

/* عنوان القسم */
section[data-testid="store-home-square-photos"] .s-block__title h2,
section[data-testid="store-home-square-photos"] .s-block__title h3,
section[data-testid="store-home-square-photos"] .s-block__title .title,
section[data-testid="store-home-square-photos"] .s-block__title > *:first-child {
    width: 100% !important;

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

    text-align: center !important;

    color: #082b55 !important;
    font-size: 34px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
}

/* السطر الوصفي تحت العنوان */
section[data-testid="store-home-square-photos"] .s-block__title::after {
    content: "ننجز أعمالك بسرعة ودقة وآمان";
    display: block !important;

    margin-top: 10px !important;

    color: #14976f !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: 1.7 !important;

    text-align: center !important;
}

/* للجوال */
@media (max-width: 768px) {
    section[data-testid="store-home-square-photos"] .s-block__title {
        margin: 0 auto 20px !important;
    }

    section[data-testid="store-home-square-photos"] .s-block__title h2,
    section[data-testid="store-home-square-photos"] .s-block__title h3,
    section[data-testid="store-home-square-photos"] .s-block__title .title,
    section[data-testid="store-home-square-photos"] .s-block__title > *:first-child {
        font-size: 26px !important;
    }

    section[data-testid="store-home-square-photos"] .s-block__title::after {
        font-size: 15px !important;
        margin-top: 8px !important;
    }
}


/* =====================================================
   MASAR - SERVICE DETAILS LINK - EXACT SELECTOR
   ===================================================== */

/* اسم الخدمة */
section[data-testid="store-home-square-photos"]
.banner-entry.square-photos
h3.text-with-border {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;

    color: #082b55 !important;
    font-size: 16px !important;
    font-weight: 700 !important;

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

    border: none !important;
    background: transparent !important;
}

/* إضافة رابط التفاصيل */
section[data-testid="store-home-square-photos"]
.banner-entry.square-photos
h3.text-with-border::after {
    content: "عرض تفاصيل الخدمة  ←" !important;

    display: block !important;

    margin-top: 16px !important;

    color: #14976f !important;

    font-size: 14px !important;
    font-weight: 700 !important;

    line-height: 1.4 !important;

    opacity: 1 !important;
    visibility: visible !important;

    background: transparent !important;

    border: none !important;

    transition: all 0.2s ease !important;
}

/* Hover */
section[data-testid="store-home-square-photos"]
.banner-entry.square-photos:hover
h3.text-with-border::after {
    color: #0f7f5e !important;
    transform: translateX(-4px) !important;
}

/* =====================================================
   MASAR - SERVICE TITLE + DESCRIPTION + DETAILS
   ===================================================== */

/* اسم الخدمة */
section[data-testid="store-home-square-photos"]
.banner-entry.square-photos
h3.text-with-border {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;

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

    color: #082b55 !important;

    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;

    text-align: center !important;

    background: transparent !important;
    border: none !important;
}

/* =========================================
   الوصف يأتي بعد اسم الخدمة
   ========================================= */

section[data-testid="store-home-square-photos"]
.banner-entry.square-photos
h3.text-with-border::after {
    display: block !important;

    margin-top: 7px !important;

    color: #7b8490 !important;

    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;

    text-align: center !important;

    background: transparent !important;

    opacity: 1 !important;
    visibility: visible !important;
}


/* تحديث البيانات */
section[data-testid="store-home-square-photos"]
.grid > a:nth-child(1)
h3.text-with-border::after {
    content: "تحديث بياناتك بسهولة وأمان" !important;
}

/* خدمات أخرى */
section[data-testid="store-home-square-photos"]
.grid > a:nth-child(2)
h3.text-with-border::after {
    content: "حلول إضافية تلبي احتياجك" !important;
}

/* الضمان الاجتماعي */
section[data-testid="store-home-square-photos"]
.grid > a:nth-child(3)
h3.text-with-border::after {
    content: "تقديم ومتابعة طلب الضمان" !important;
}

/* ناجز */
section[data-testid="store-home-square-photos"]
.grid > a:nth-child(4)
h3.text-with-border::after {
    content: "إنجاز خدمات ناجز الإلكترونية" !important;
}



/* خدمات البنوك */
section[data-testid="store-home-square-photos"]
.grid > a:nth-child(5)
h3.text-with-border::after {
    content: "خدمات بنكية إلكترونية موثوقة" !important;
}

/* حساب المواطن */
section[data-testid="store-home-square-photos"]
.grid > a:nth-child(6)
h3.text-with-border::after {
    content: "تقديم ومتابعة حساب المواطن" !important;
}


/* =========================================
   رابط عرض التفاصيل أسفل الوصف
   ========================================= */

section[data-testid="store-home-square-photos"]
.banner-entry.square-photos::after {
    content: "عرض تفاصيل الخدمة ←" !important;

    display: block !important;

    position: static !important;

    width: auto !important;
    height: auto !important;

    margin-top: 12px !important;
    padding: 0 !important;

    color: #14976f !important;

    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;

    text-align: center !important;

    background: transparent !important;

    border: none !important;
    border-radius: 0 !important;

    opacity: 1 !important;
    visibility: visible !important;

    transform: none !important;

    transition:
        color 0.2s ease,
        transform 0.2s ease !important;
}


/* Hover على رابط التفاصيل */
section[data-testid="store-home-square-photos"]
.banner-entry.square-photos:hover::after {
    color: #0f7f5e !important;
    transform: translateX(-4px) !important;
}

/* =========================================
   MASAR - TALLER SERVICE CARDS
   ========================================= */

section[data-testid="store-home-square-photos"]
.banner-entry.square-photos {
    min-height: 230px !important;
    height: 230px !important;

    padding: 26px 14px 24px !important;

    justify-content: flex-start !important;
}

/* الأيقونة */
section[data-testid="store-home-square-photos"]
.banner-entry.square-photos
.lazy__bg {
    width: 64px !important;
    height: 64px !important;
    min-width: 64px !important;
    min-height: 64px !important;

    flex-basis: 64px !important;

    margin-top: 4px !important;
    margin-bottom: 18px !important;
}

/* اسم الخدمة */
section[data-testid="store-home-square-photos"]
.banner-entry.square-photos
h3.text-with-border {
    font-size: 16px !important;
    margin-bottom: 0 !important;
}

/* الوصف */
section[data-testid="store-home-square-photos"]
.banner-entry.square-photos
h3.text-with-border::after {
    margin-top: 10px !important;
    line-height: 1.7 !important;
}

/* رابط عرض التفاصيل يكون أسفل البطاقة بشكل أنيق */
section[data-testid="store-home-square-photos"]
.banner-entry.square-photos::after {
    margin-top: auto !important;
    padding-top: 16px !important;
    padding-bottom: 2px !important;
}

/* =========================================
   MASAR - SERVICE CARDS FINAL STYLE
   ========================================= */

section[data-testid="store-home-square-photos"] .s-block__title {
    text-align: center !important;
    margin-bottom: 8px !important;
}

section[data-testid="store-home-square-photos"] .s-block__title h2,
section[data-testid="store-home-square-photos"] .s-block__title .title {
    text-align: center !important;
    width: 100% !important;
    color: #082b55 !important;
    font-size: 34px !important;
    font-weight: 800 !important;
    margin: 0 auto 10px !important;
}

section[data-testid="store-home-square-photos"] .s-block__title p,
section[data-testid="store-home-square-photos"] .s-block__title .description {
    text-align: center !important;
    width: 100% !important;
    color: #14976f !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    margin: 0 auto 28px !important;
}

section[data-testid="store-home-square-photos"] .grid {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 16px !important;
}

section[data-testid="store-home-square-photos"] .banner-entry.square-photos {
    position: relative !important;
    min-height: 230px !important;
    height: 230px !important;
    padding: 26px 14px 24px !important;
    background: #ffffff !important;

    border: 2px solid #35c79a !important;   /* الإطار الأخضر */
    border-radius: 18px !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: center !important;

    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.25s ease !important;
}

section[data-testid="store-home-square-photos"] .banner-entry.square-photos:hover {
    transform: translateY(-4px) !important;
    border-color: #14976f !important;
    box-shadow: 0 10px 24px rgba(20, 151, 111, 0.14) !important;
}

section[data-testid="store-home-square-photos"] .banner-entry.square-photos .lazy__bg {
    width: 64px !important;
    height: 64px !important;
    min-width: 64px !important;
    min-height: 64px !important;
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    margin-top: 4px !important;
    margin-bottom: 14px !important;
}

section[data-testid="store-home-square-photos"] .banner-entry.square-photos h3.text-with-border {
    order: 1 !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    font-weight: 800 !important;
    color: #082b55 !important;
    margin: 0 0 10px !important;
    border: 0 !important;
    padding: 0 !important;
}

section[data-testid="store-home-square-photos"] .banner-entry.square-photos h3.text-with-border::after {
    content: attr(data-description) !important;
    display: block !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1.7 !important;
    color: #7b8794 !important;
    margin-top: 10px !important;
    margin-bottom: 0 !important;
    white-space: normal !important;
}

section[data-testid="store-home-square-photos"] .banner-entry.square-photos::after {
    content: "عرض تفاصيل الخدمة ←" !important;
    display: block !important;
    margin-top: auto !important;
    padding-top: 16px !important;
    color: #14976f !important;
    font-size: 15px !important;
    font-weight: 700 !important;
}

@media (max-width: 1400px) {
    section[data-testid="store-home-square-photos"] .grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 991px) {
    section[data-testid="store-home-square-photos"] .grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 640px) {
    section[data-testid="store-home-square-photos"] .grid {
        grid-template-columns: 1fr !important;
    }

    section[data-testid="store-home-square-photos"] .banner-entry.square-photos {
        min-height: 220px !important;
        height: auto !important;
    }
}

/* =====================================================
   MASAR - FIX SERVICE CARD CONTENT ORDER
   الأيقونة > الاسم > الوصف > رابط التفاصيل
   ===================================================== */

/* البطاقة */
section[data-testid="store-home-square-photos"]
.banner-entry.square-photos {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;

    min-height: 230px !important;
    height: 230px !important;

    padding: 26px 14px 22px !important;

    background: #ffffff !important;
    border: 2px solid #20c997 !important;
    border-radius: 18px !important;

    text-align: center !important;
}

/* 1 - الأيقونة */
section[data-testid="store-home-square-photos"]
.banner-entry.square-photos
.lazy__bg {
    order: 1 !important;

    width: 64px !important;
    height: 64px !important;

    margin: 4px auto 14px !important;

    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;

    flex-shrink: 0 !important;
}

/* 2 - اسم الخدمة */
section[data-testid="store-home-square-photos"]
.banner-entry.square-photos
h3.text-with-border {
    order: 2 !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;

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

    color: #082b55 !important;

    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;

    border: none !important;
    background: transparent !important;

    text-align: center !important;
}

/* الوصف يأتي داخل العنوان وتحته مباشرة */
section[data-testid="store-home-square-photos"]
.banner-entry.square-photos
h3.text-with-border::after {
    display: block !important;

    margin-top: 8px !important;

    color: #7b8490 !important;

    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;

    text-align: center !important;
}

/* تحديث البيانات */
section[data-testid="store-home-square-photos"]
.grid > a:nth-child(1)
h3.text-with-border::after {
    content: "تحديث بياناتك بسهولة وأمان" !important;
}

/* خدمات أخرى */
section[data-testid="store-home-square-photos"]
.grid > a:nth-child(2)
h3.text-with-border::after {
    content: "حلول إضافية تلبي احتياجك" !important;
}

/* الضمان الاجتماعي */
section[data-testid="store-home-square-photos"]
.grid > a:nth-child(3)
h3.text-with-border::after {
    content: "تقديم ومتابعة طلب الضمان" !important;
}

/* ناجز */
section[data-testid="store-home-square-photos"]
.grid > a:nth-child(4)
h3.text-with-border::after {
    content: "إنجاز خدمات ناجز الإلكترونية" !important;
}

/* خدمات البنوك */
section[data-testid="store-home-square-photos"]
.grid > a:nth-child(5)
h3.text-with-border::after {
    content: "خدمات بنكية إلكترونية موثوقة" !important;
}

/* حساب المواطن */
section[data-testid="store-home-square-photos"]
.grid > a:nth-child(6)
h3.text-with-border::after {
    content: "تقديم ومتابعة حساب المواطن" !important;
}

/* 3 - رابط عرض التفاصيل في الأسفل دائمًا */
section[data-testid="store-home-square-photos"]
.banner-entry.square-photos::after {
    content: "عرض تفاصيل الخدمة ←" !important;

    order: 3 !important;

    display: block !important;
    position: static !important;

    width: auto !important;
    height: auto !important;

    margin-top: auto !important;
    padding-top: 14px !important;

    color: #14976f !important;

    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;

    background: transparent !important;
    border: none !important;

    opacity: 1 !important;
    visibility: visible !important;

    transform: none !important;

    text-align: center !important;

    transition:
        color 0.2s ease,
        transform 0.2s ease !important;
}

/* Hover الرابط */
section[data-testid="store-home-square-photos"]
.banner-entry.square-photos:hover::after {
    color: #0f7f5e !important;
    transform: translateX(-4px) !important;
}
/* =====================================================
   MASAR - HOW WE WORK
   FINAL VERSION
   ===================================================== */

/* القسم الثاني من قائمة العناصر فقط */
section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"] {
    padding: 55px 20px 70px !important;
    margin: 0 !important;

    background: #ffffff !important;
}


/* =====================================================
   TITLE
   ===================================================== */

section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
.s-block__title {
    width: 100% !important;
    max-width: 100% !important;

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

    margin: 0 auto 48px !important;
    padding: 0 !important;

    text-align: center !important;
}

/* عنوان كيف نعمل */
section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
.s-block__title h2,
section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
.s-block__title h3,
section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
.s-block__title .title {
    margin: 0 !important;
    padding: 0 !important;

    color: #082b55 !important;

    font-size: 34px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;

    text-align: center !important;
}

/* الوصف أسفل العنوان */
section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
.s-block__title::after {
    content: "خطوات بسيطة لإنجاز طلبك" !important;

    display: block !important;

    margin-top: 10px !important;

    color: #14976f !important;

    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;

    text-align: center !important;
}


/* =====================================================
   STEPS GRID
   ===================================================== */

section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
.grid {
    position: relative !important;

    display: grid !important;

    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    grid-template-rows: none !important;
    grid-auto-flow: row !important;

    gap: 34px !important;

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

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

    direction: ltr !important;

    overflow: visible !important;
}


/* =====================================================
   ANIMATED CONNECTING LINE
   ===================================================== */

section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
.grid::before {
    content: "" !important;

    position: absolute !important;

    top: 42px !important;

    left: 10% !important;
    right: 10% !important;

    height: 2px !important;

    background-image:
        linear-gradient(
            90deg,
            #cbd7e1 0%,
            #cbd7e1 50%,
            transparent 50%,
            transparent 100%
        ) !important;

    background-size: 18px 2px !important;

    animation: masar-process-line 1.1s linear infinite !important;

    z-index: 0 !important;
}


/* حركة الخط */
@keyframes masar-process-line {

    from {
        background-position: 0 0;
    }

    to {
        background-position: 36px 0;
    }

}


/* طبقة خضراء خفيفة تتحرك فوق الخط */
section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
.grid::after {
    content: "" !important;

    position: absolute !important;

    top: 41px !important;

    left: 10% !important;

    width: 75px !important;
    height: 4px !important;

    border-radius: 999px !important;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(20, 151, 111, 0.20),
        #14976f,
        rgba(20, 151, 111, 0.20),
        transparent
    ) !important;

    filter: blur(0.2px) !important;

    animation: masar-process-glow 4s ease-in-out infinite !important;

    z-index: 1 !important;
}


/* حركة اللمعة من اليسار لليمين */
@keyframes masar-process-glow {

    0% {
        left: 10%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        left: calc(90% - 75px);
        opacity: 0;
    }

}


/* =====================================================
   STEP ITEM
   ===================================================== */

section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
.banner-entry.square-photos {
    position: relative !important;

    z-index: 2 !important;

    display: flex !important;
    flex-direction: column !important;

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

    width: 100% !important;

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

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

    background: transparent !important;

    border: none !important;
    border-radius: 0 !important;

    box-shadow: none !important;

    text-align: center !important;

    overflow: visible !important;

    transform: none !important;

    direction: rtl !important;
}


/* إلغاء تأثير البطاقة السابق */
section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
.banner-entry.square-photos:hover {
    background: transparent !important;

    border: none !important;

    box-shadow: none !important;

    transform: none !important;
}


/* =====================================================
   STEP ICON CIRCLE
   ===================================================== */

section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
.banner-entry.square-photos
.lazy__bg {
    order: 1 !important;

    position: relative !important;

    display: block !important;

    width: 84px !important;
    height: 84px !important;

    min-width: 84px !important;
    min-height: 84px !important;

    flex: 0 0 84px !important;

    margin: 0 auto 30px !important;

    background-color: #ffffff !important;

    background-size: 42px !important;
    background-position: center !important;
    background-repeat: no-repeat !important;

    border: 1px solid #e6edf3 !important;
    border-radius: 50% !important;

    box-shadow:
        0 6px 20px rgba(8, 43, 85, 0.07) !important;

    transform: none !important;

    z-index: 3 !important;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease !important;
}


/* Hover على الدائرة */
section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
.banner-entry.square-photos:hover
.lazy__bg {
    transform: translateY(-3px) scale(1.04) !important;

    box-shadow:
        0 10px 28px rgba(20, 151, 111, 0.13) !important;
}


/* =====================================================
   NUMBERS
   1 LEFT → 4 RIGHT
   ===================================================== */

section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
.grid > a .lazy__bg::after {
    position: absolute !important;

    bottom: -7px !important;
    right: 5px !important;

    display: flex !important;

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

    width: 22px !important;
    height: 22px !important;

    background: #14976f !important;

    color: #ffffff !important;

    border: 3px solid #ffffff !important;
    border-radius: 50% !important;

    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 1 !important;

    box-shadow:
        0 4px 10px rgba(20, 151, 111, 0.22) !important;

    z-index: 10 !important;
}


/* أقصى اليسار */
section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
.grid > a:nth-child(1)
.lazy__bg::after {
    content: "1" !important;
}


/* العنصر الثاني */
section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
.grid > a:nth-child(2)
.lazy__bg::after {
    content: "2" !important;
}


/* العنصر الثالث */
section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
.grid > a:nth-child(3)
.lazy__bg::after {
    content: "3" !important;
}


/* أقصى اليمين */
section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
.grid > a:nth-child(4)
.lazy__bg::after {
    content: "4" !important;
}


/* =====================================================
   STEP TITLE
   ===================================================== */

section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
.banner-entry.square-photos
h3.text-with-border {
    order: 2 !important;

    display: flex !important;

    flex-direction: column !important;
    align-items: center !important;

    width: 100% !important;

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

    color: #082b55 !important;

    font-size: 17px !important;
    font-weight: 800 !important;
    line-height: 1.5 !important;

    text-align: center !important;

    background: transparent !important;

    border: none !important;
}


/* =====================================================
   STEP DESCRIPTIONS
   ===================================================== */

section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
.grid > a
h3.text-with-border::after {
    display: block !important;

    margin-top: 10px !important;

    color: #738196 !important;

    font-size: 15px !important;
    font-weight: 500 !important;

    line-height: 1.9 !important;

    text-align: center !important;

    white-space: normal !important;
}


/* العنصر أقصى اليسار - 1 */
section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
.grid > a:nth-child(1)
h3.text-with-border::after {
    content: "اختر الخدمة وقدم طلبك ببياناتك المطلوبة" !important;
}


/* العنصر الثاني - 2 */
section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
.grid > a:nth-child(2)
h3.text-with-border::after {
    content: "نراجع بياناتك ونتأكد من صحتها" !important;
}


/* العنصر الثالث - 3 */
section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
.grid > a:nth-child(3)
h3.text-with-border::after {
    content: "نقوم بإنجاز معاملتك بدقة وسرعة" !important;
}


/* العنصر أقصى اليمين - 4 */
section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
.grid > a:nth-child(4)
h3.text-with-border::after {
    content: "نسلمك النتيجة ونتابع معك حتى اكتمال الطلب" !important;
}


/* إزالة زر عرض تفاصيل الخدمة */
section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
.banner-entry.square-photos::after {
    display: none !important;
    content: none !important;
}


/* =====================================================
   TABLET
   ===================================================== */

@media (max-width: 1023px) {

    section[data-testid="store-home-square-photos"]
    + section[data-testid="store-home-square-photos"]
    .grid {
        grid-template-columns: repeat(2, 1fr) !important;

        gap: 32px !important;

        direction: ltr !important;
    }

    /* إخفاء الخط على التابلت */
    section[data-testid="store-home-square-photos"]
    + section[data-testid="store-home-square-photos"]
    .grid::before,
    section[data-testid="store-home-square-photos"]
    + section[data-testid="store-home-square-photos"]
    .grid::after {
        display: none !important;
    }

}


/* =====================================================
   MOBILE
   ===================================================== */

@media (max-width: 640px) {

    section[data-testid="store-home-square-photos"]
    + section[data-testid="store-home-square-photos"] {
        padding: 40px 15px 45px !important;
    }

    section[data-testid="store-home-square-photos"]
    + section[data-testid="store-home-square-photos"]
    .s-block__title {
        margin-bottom: 35px !important;
    }

    section[data-testid="store-home-square-photos"]
    + section[data-testid="store-home-square-photos"]
    .grid {
        grid-template-columns: 1fr !important;

        gap: 22px !important;

        direction: ltr !important;
    }

    section[data-testid="store-home-square-photos"]
    + section[data-testid="store-home-square-photos"]
    .banner-entry.square-photos {
        min-height: 210px !important;
    }

    section[data-testid="store-home-square-photos"]
    + section[data-testid="store-home-square-photos"]
    .banner-entry.square-photos
    .lazy__bg {
        width: 74px !important;
        height: 74px !important;

        min-width: 74px !important;
        min-height: 74px !important;

        flex-basis: 74px !important;

        background-size: 38px !important;
    }

    section[data-testid="store-home-square-photos"]
    + section[data-testid="store-home-square-photos"]
    .s-block__title h2,
    section[data-testid="store-home-square-photos"]
    + section[data-testid="store-home-square-photos"]
    .s-block__title h3,
    section[data-testid="store-home-square-photos"]
    + section[data-testid="store-home-square-photos"]
    .s-block__title .title {
        font-size: 28px !important;
    }

    section[data-testid="store-home-square-photos"]
    + section[data-testid="store-home-square-photos"]
    .s-block__title::after {
        font-size: 16px !important;
    }

}


/* =====================================================
   ACCESSIBILITY
   إيقاف الحركة لمن يفضل تقليل الحركة
   ===================================================== */

@media (prefers-reduced-motion: reduce) {

    section[data-testid="store-home-square-photos"]
    + section[data-testid="store-home-square-photos"]
    .grid::before,
    section[data-testid="store-home-square-photos"]
    + section[data-testid="store-home-square-photos"]
    .grid::after {
        animation: none !important;
    }

}

/* =====================================================
   MASAR - STATS STRIP
   THIRD SQUARE PHOTOS SECTION ONLY
   ===================================================== */

section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"] {
    padding: 30px 20px 45px !important;
    margin: 0 !important;
    background: #ffffff !important;
}

section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
.s-block__title {
    display: none !important;
}

section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
.grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    grid-template-rows: none !important;
    grid-auto-flow: row !important;
    gap: 0 !important;
    width: 100% !important;
    max-width: 1250px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    background: #082b55 !important;
    border-radius: 22px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 30px rgba(8, 43, 85, 0.12) !important;
    direction: rtl !important;
}

section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
.grid::before,
section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
.grid::after {
    display: none !important;
    content: none !important;
}

section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
.banner-entry.square-photos {
    position: relative !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 16px !important;
    width: 100% !important;
    min-height: 125px !important;
    height: 125px !important;
    margin: 0 !important;
    padding: 20px 24px !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
    transform: none !important;
    text-align: right !important;
    direction: rtl !important;
}

section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
.banner-entry.square-photos:not(:last-child)::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    top: 25% !important;
    width: 1px !important;
    height: 50% !important;
    background: rgba(255, 255, 255, 0.18) !important;
}

section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
.banner-entry.square-photos::after {
    display: none !important;
    content: none !important;
}

/* الأيقونات - بألوانها الأصلية */
section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
.banner-entry.square-photos
.lazy__bg {
    order: 1 !important;
    position: static !important;
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    min-height: 58px !important;
    flex: 0 0 58px !important;
    margin: 0 !important;
    background-color: transparent !important;
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    filter: none !important;
    -webkit-filter: none !important;
    opacity: 1 !important;
    transform: none !important;
}

section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
.banner-entry.square-photos
.lazy__bg::after {
    display: none !important;
    content: none !important;
}

section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
.banner-entry.square-photos
h3.text-with-border {
    order: 2 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #1fc59a !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    text-align: right !important;
    background: transparent !important;
    border: none !important;
}

section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
.banner-entry.square-photos
h3.text-with-border::after {
    display: block !important;
    margin-top: 6px !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    text-align: right !important;
    white-space: normal !important;
}

/* 1 */
section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
.grid > a:nth-child(1)
h3.text-with-border::after {
    content: "في إنجاز معاملاتك" !important;
}

/* 2 */
section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
.grid > a:nth-child(2)
h3.text-with-border::after {
    content: "دعم ومتابعة مستمرة" !important;
}

/* 3 */
section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
.grid > a:nth-child(3)
h3.text-with-border::after {
    content: "طلب تم إنجازه" !important;
}

/* 4 */
section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
.grid > a:nth-child(4)
h3.text-with-border::after {
    content: "رضا العملاء" !important;
}

section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
.banner-entry.square-photos:hover {
    background: rgba(255, 255, 255, 0.04) !important;
    transform: none !important;
    box-shadow: none !important;
}

@media (max-width: 1023px) {
    section[data-testid="store-home-square-photos"]
    + section[data-testid="store-home-square-photos"]
    + section[data-testid="store-home-square-photos"]
    .grid {
        grid-template-columns: repeat(2, 1fr) !important;
        border-radius: 18px !important;
    }

    section[data-testid="store-home-square-photos"]
    + section[data-testid="store-home-square-photos"]
    + section[data-testid="store-home-square-photos"]
    .banner-entry.square-photos {
        min-height: 120px !important;
        height: 120px !important;
    }
}

@media (max-width: 640px) {
    section[data-testid="store-home-square-photos"]
    + section[data-testid="store-home-square-photos"]
    + section[data-testid="store-home-square-photos"] {
        padding: 20px 14px 35px !important;
    }

    section[data-testid="store-home-square-photos"]
    + section[data-testid="store-home-square-photos"]
    + section[data-testid="store-home-square-photos"]
    .grid {
        grid-template-columns: 1fr !important;
    }

    section[data-testid="store-home-square-photos"]
    + section[data-testid="store-home-square-photos"]
    + section[data-testid="store-home-square-photos"]
    .banner-entry.square-photos {
        min-height: 100px !important;
        height: 100px !important;
        justify-content: flex-start !important;
        padding: 16px 22px !important;
    }

    section[data-testid="store-home-square-photos"]
    + section[data-testid="store-home-square-photos"]
    + section[data-testid="store-home-square-photos"]
    .banner-entry.square-photos
    .lazy__bg {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        min-height: 48px !important;
        flex-basis: 48px !important;
    }

    section[data-testid="store-home-square-photos"]
    + section[data-testid="store-home-square-photos"]
    + section[data-testid="store-home-square-photos"]
    .banner-entry.square-photos
    h3.text-with-border {
        font-size: 20px !important;
    }
}


/* =====================================================
   MASAR - OFFICIAL ENTITIES
   FOURTH SQUARE PHOTOS SECTION ONLY
   ===================================================== */

/* استهداف القسم الرابع فقط */
section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"] {
    padding: 55px 20px 70px !important;
    margin: 0 !important;

    background: #f8fafc !important;
}


/* =====================================================
   TITLE
   ===================================================== */

section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
.s-block__title {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;

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

    margin: 0 auto 30px !important;
    padding: 0 !important;

    text-align: center !important;

    opacity: 1 !important;
    visibility: visible !important;
}


/* إظهار عنوان القسم أيًا كان العنصر المستخدم */
section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
.s-block__title h2,

section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
.s-block__title h3,

section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
.s-block__title .title {

    display: block !important;

    width: 100% !important;

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

    color: #082b55 !important;

    font-size: 32px !important;
    font-weight: 800 !important;
    line-height: 1.4 !important;

    text-align: center !important;

    opacity: 1 !important;
    visibility: visible !important;
}


/* =====================================================
   LOGOS BOX
   ===================================================== */

section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
.grid {

    display: grid !important;

    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    grid-template-rows: none !important;
    grid-auto-flow: row !important;

    gap: 0 !important;

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

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

    background: #ffffff !important;

    border: 1px solid #e1e9ef !important;
    border-radius: 20px !important;

    overflow: hidden !important;

    box-shadow:
        0 5px 22px rgba(8, 43, 85, 0.035) !important;

    direction: rtl !important;
}


/* إزالة أي مؤثرات موروثة */
section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
.grid::before,

section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
.grid::after {

    display: none !important;
    content: none !important;
}


/* =====================================================
   EACH LOGO ITEM
   ===================================================== */

section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
.banner-entry.square-photos {

    position: relative !important;

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

    width: 100% !important;

    min-height: 155px !important;
    height: 155px !important;

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

    background: #ffffff !important;

    border: none !important;
    border-radius: 0 !important;

    box-shadow: none !important;

    overflow: hidden !important;

    transform: none !important;
}


/* فواصل بين الشعارات */
section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
.banner-entry.square-photos:not(:last-child) {

    border-left: 1px solid #e7edf2 !important;
}


/* =====================================================
   LOGO IMAGE
   ===================================================== */

section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
.banner-entry.square-photos
.lazy__bg {

    position: static !important;

    display: block !important;

    width: 210px !important;
    height: 105px !important;

    min-width: 210px !important;
    min-height: 105px !important;

    flex: 0 0 210px !important;

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

    background-color: transparent !important;

    /*
       التكبير الحقيقي للشعار.
       إذا كانت الصورة نفسها تحتوي فراغًا أبيض،
       هذه القيمة تعمل Zoom للصورة.
    */
    background-size: 100% auto !important;

    background-position: center !important;
    background-repeat: no-repeat !important;

    border: none !important;
    border-radius: 0 !important;

    box-shadow: none !important;

    filter: none !important;
    -webkit-filter: none !important;

    opacity: 1 !important;

    transform: none !important;
}


/* في حال كانت الشعارات img وليست background */
section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
.banner-entry.square-photos img {

    display: block !important;

    width: 210px !important;
    height: 105px !important;

    max-width: 210px !important;
    max-height: 105px !important;

    object-fit: contain !important;

    margin: 0 auto !important;

    filter: none !important;
    -webkit-filter: none !important;

    opacity: 1 !important;
}


/* =====================================================
   HIDE CARD TEXT ONLY
   لا نخفي عنوان القسم
   ===================================================== */

section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
.banner-entry.square-photos
h3,

section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
.banner-entry.square-photos
p {

    display: none !important;
}


/* إزالة زر التفاصيل الموروث */
section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
.banner-entry.square-photos::after {

    display: none !important;
    content: none !important;
}


/* إزالة أرقام قسم كيف نعمل الموروثة */
section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
.lazy__bg::after {

    display: none !important;
    content: none !important;
}


/* =====================================================
   HOVER
   ===================================================== */

section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
.banner-entry.square-photos {

    transition:
        background-color 0.2s ease !important;
}


section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
.banner-entry.square-photos:hover {

    background: #f8fcfb !important;

    transform: none !important;
    box-shadow: none !important;
}


/* =====================================================
   TABLET
   ===================================================== */

@media (max-width: 1023px) {

    section[data-testid="store-home-square-photos"]
    + section[data-testid="store-home-square-photos"]
    + section[data-testid="store-home-square-photos"]
    + section[data-testid="store-home-square-photos"]
    .grid {

        grid-template-columns: repeat(3, 1fr) !important;
    }

}


/* =====================================================
   MOBILE
   ===================================================== */

@media (max-width: 640px) {

    section[data-testid="store-home-square-photos"]
    + section[data-testid="store-home-square-photos"]
    + section[data-testid="store-home-square-photos"]
    + section[data-testid="store-home-square-photos"] {

        padding: 40px 14px 50px !important;
    }


    section[data-testid="store-home-square-photos"]
    + section[data-testid="store-home-square-photos"]
    + section[data-testid="store-home-square-photos"]
    + section[data-testid="store-home-square-photos"]
    .grid {

        grid-template-columns: repeat(2, 1fr) !important;
    }


    section[data-testid="store-home-square-photos"]
    + section[data-testid="store-home-square-photos"]
    + section[data-testid="store-home-square-photos"]
    + section[data-testid="store-home-square-photos"]
    .banner-entry.square-photos {

        min-height: 115px !important;
        height: 115px !important;
    }


    section[data-testid="store-home-square-photos"]
    + section[data-testid="store-home-square-photos"]
    + section[data-testid="store-home-square-photos"]
    + section[data-testid="store-home-square-photos"]
    .banner-entry.square-photos
    .lazy__bg {

        width: 150px !important;
        height: 75px !important;

        min-width: 150px !important;
        min-height: 75px !important;

        flex-basis: 150px !important;

        background-size: 140% auto !important;
    }


    section[data-testid="store-home-square-photos"]
    + section[data-testid="store-home-square-photos"]
    + section[data-testid="store-home-square-photos"]
    + section[data-testid="store-home-square-photos"]
    .s-block__title h2,

    section[data-testid="store-home-square-photos"]
    + section[data-testid="store-home-square-photos"]
    + section[data-testid="store-home-square-photos"]
    + section[data-testid="store-home-square-photos"]
    .s-block__title h3 {

        font-size: 26px !important;
    }

}
/* =====================================================
   MASAR - STATS DIVIDERS FIX
   فواصل قسم المميزات
   ===================================================== */

/* فاصل رأسي بين كل ميزة والتي بعدها */
section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
.grid > a.banner-entry.square-photos:not(:last-child) {

    border-left: 2px solid rgba(255, 255, 255, 0.22) !important;
}

/* تأكيد إزالة بقية الحدود */
section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
.grid > a.banner-entry.square-photos {

    border-top: none !important;
    border-right: none !important;
    border-bottom: none !important;
}

/* نخلي الفاصل أقصر بدل ما يغطي كامل الارتفاع */
section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
+ section[data-testid="store-home-square-photos"]
.grid > a.banner-entry.square-photos:not(:last-child) {

    background-image:
        linear-gradient(
            to bottom,
            transparent 25%,
            rgba(255,255,255,0.22) 25%,
            rgba(255,255,255,0.22) 75%,
            transparent 75%
        ) !important;

    background-size: 3px 100% !important;
    background-position: left center !important;
    background-repeat: no-repeat !important;

    border-left: none !important;
}

/* على التابلت والجوال نشيل القواسم */
@media (max-width: 991px) {

    section[data-testid="store-home-square-photos"]
    + section[data-testid="store-home-square-photos"]
    + section[data-testid="store-home-square-photos"]
    .grid > a.banner-entry.square-photos {

        background-image: none !important;
        border-left: none !important;
    }
}


/* =========================================================
   MASAR FOOTER - FINAL GRID RESET
   ========================================================= */

/* الفوتر */
footer[data-testid="store-footer"] {
    margin: 0 !important;
    padding: 0 !important;

    background: #f8fafc !important;
    color: #082b55 !important;

    border-top: 1px solid #edf1f4 !important;
}


/* =========================================================
   MAIN FOOTER AREA
   ========================================================= */

footer[data-testid="store-footer"]
.store-footer__inner {
    margin: 0 !important;

    padding: 42px 30px 32px !important;

    background: #f8fafc !important;

    min-height: 0 !important;
    height: auto !important;
}


/* الحاوية الأصلية للفوتر */
footer[data-testid="store-footer"]
.store-footer__inner
> .container {

    display: grid !important;

    /* ثلاثة أعمدة متساوية */
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;

    grid-template-rows: auto !important;
    grid-auto-flow: row !important;

    column-gap: 0 !important;
    row-gap: 0 !important;

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

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

    align-items: start !important;

    min-height: 0 !important;
    height: auto !important;
}


/* =========================================================
   مهم جداً:
   إلغاء col-span الأصلي في ثيم رائد
   ========================================================= */

footer[data-testid="store-footer"]
.store-footer__inner
> .container
> * {

    grid-column: auto !important;
    grid-row: auto !important;

    grid-column-start: auto !important;
    grid-column-end: auto !important;

    grid-row-start: auto !important;
    grid-row-end: auto !important;

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

    min-height: 0 !important;
    height: auto !important;

    margin: 0 !important;
}


/* إخفاء Apps Icons حتى لا يأخذ عموداً فارغاً */
footer[data-testid="store-footer"]
salla-apps-icons[data-testid="store-footer-apps"] {
    display: none !important;
}


/* =========================================================
   الأعمدة الثلاثة
   ========================================================= */

footer[data-testid="store-footer"]
.store-footer__inner
> .container
> div {

    position: relative !important;

    display: flex !important;
    flex-direction: column !important;

    align-items: flex-start !important;
    justify-content: flex-start !important;

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

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

    text-align: right !important;

    color: #082b55 !important;
}


/* =========================================================
   الفواصل بين الأعمدة
   ========================================================= */

footer[data-testid="store-footer"]
.store-footer__inner
> .container
> div:not(:last-of-type)::after {

    content: "" !important;

    position: absolute !important;

    top: 0 !important;
    left: 0 !important;

    width: 1px !important;
    height: 145px !important;

    background: #dfe6ec !important;
}


/* =========================================================
   عناوين الفوتر
   ========================================================= */

footer[data-testid="store-footer"] h3,
footer[data-testid="store-footer"] h4 {

    display: block !important;

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

    color: #082b55 !important;

    font-size: 18px !important;
    font-weight: 800 !important;
    line-height: 1.5 !important;

    text-align: right !important;
}


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

footer[data-testid="store-footer"] p,
footer[data-testid="store-footer"] address {

    margin: 0 !important;

    color: #6b7789 !important;

    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.9 !important;

    text-align: right !important;
}


/* =========================================================
   الروابط
   ========================================================= */

footer[data-testid="store-footer"] ul {
    list-style: none !important;

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


footer[data-testid="store-footer"] li {
    margin: 0 0 7px !important;
    padding: 0 !important;
}


footer[data-testid="store-footer"] a {

    color: #566477 !important;

    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.8 !important;

    text-decoration: none !important;

    transition: color 0.2s ease !important;
}


footer[data-testid="store-footer"] a:hover {
    color: #14976f !important;
}


/* =========================================================
   أيقونات التواصل
   ========================================================= */

footer[data-testid="store-footer"] i,
footer[data-testid="store-footer"] svg {
    color: #082b55 !important;
}


/* دوائر السوشال الموجودة في عمود مسار */
footer[data-testid="store-footer"] a:has(i),
footer[data-testid="store-footer"] a:has(svg) {

    transition:
        color 0.2s ease,
        transform 0.2s ease !important;
}


footer[data-testid="store-footer"] a:has(i):hover,
footer[data-testid="store-footer"] a:has(svg):hover {

    color: #14976f !important;
    transform: translateY(-2px) !important;
}


/* =========================================================
   الشعار / وثيقة العمل الحر
   ========================================================= */

footer[data-testid="store-footer"] img {

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

    object-fit: contain !important;
}


/* =========================================================
   إزالة أي ارتفاعات قديمة من ثيم رائد
   ========================================================= */

footer[data-testid="store-footer"]
.store-footer__inner
> .container
> div[class*="col-span"],

footer[data-testid="store-footer"]
.store-footer__inner
> .container
> [class*="lg:col-span"],

footer[data-testid="store-footer"]
.store-footer__inner
> .container
> [class*="rtl:lg:"],

footer[data-testid="store-footer"]
.store-footer__inner
> .container
> [class*="ltr:lg:"] {

    grid-column: auto !important;
    grid-row: auto !important;

    min-height: 0 !important;

    margin-top: 0 !important;
    margin-bottom: 0 !important;
}


/* =========================================================
   BOTTOM BAR
   ========================================================= */

footer[data-testid="store-footer"]
> div:last-child {

    margin: 0 !important;

    padding: 0 !important;

    min-height: 0 !important;
    height: auto !important;

    background: #f8fafc !important;

    border-top: 1px solid #e2e8ee !important;
}


/* الحاوية السفلية */
footer[data-testid="store-footer"]
> div:last-child
> .container,

footer[data-testid="store-footer"]
.md\:flex.items-center.justify-between {

    display: flex !important;

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

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

    margin: 0 auto !important;

    padding: 15px 28px !important;

    min-height: 0 !important;
    height: auto !important;

    color: #768396 !important;
}


/* نص الحقوق */
footer[data-testid="store-footer"]
> div:last-child span,

footer[data-testid="store-footer"]
> div:last-child p {

    margin: 0 !important;

    color: #768396 !important;

    font-size: 13px !important;
    line-height: 1.5 !important;
}


/* =========================================================
   PAYMENT ICONS
   ========================================================= */

footer[data-testid="store-footer"]
> div:last-child img {

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

    max-height: 30px !important;

    margin: 0 4px !important;
}


/* =========================================================
   إزالة الفراغ العمودي نهائياً
   ========================================================= */

footer[data-testid="store-footer"],
footer[data-testid="store-footer"] > *,
footer[data-testid="store-footer"] .store-footer__inner,
footer[data-testid="store-footer"] .store-footer__inner > .container {

    min-height: 0 !important;
    height: auto !important;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1023px) {

    footer[data-testid="store-footer"]
    .store-footer__inner
    > .container {

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

        gap: 35px 0 !important;
    }


    footer[data-testid="store-footer"]
    .store-footer__inner
    > .container
    > div {

        padding: 0 30px !important;

        min-height: auto !important;
    }


    footer[data-testid="store-footer"]
    .store-footer__inner
    > .container
    > div::after {

        display: none !important;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 640px) {

    footer[data-testid="store-footer"]
    .store-footer__inner {

        padding: 35px 20px 25px !important;
    }


    footer[data-testid="store-footer"]
    .store-footer__inner
    > .container {

        grid-template-columns: 1fr !important;

        gap: 30px !important;
    }


    footer[data-testid="store-footer"]
    .store-footer__inner
    > .container
    > div {

        padding: 0 !important;

        align-items: center !important;

        text-align: center !important;
    }


    footer[data-testid="store-footer"] h3,
    footer[data-testid="store-footer"] h4,

    footer[data-testid="store-footer"] p,

    footer[data-testid="store-footer"] a {

        text-align: center !important;
    }


    footer[data-testid="store-footer"]
    > div:last-child
    > .container,

    footer[data-testid="store-footer"]
    .md\:flex.items-center.justify-between {

        flex-direction: column !important;

        justify-content: center !important;

        gap: 12px !important;

        text-align: center !important;
    }

}

/* =========================================================
   MASAR FOOTER - SOCIAL UNDER PHONE + ABOUT TEXT
   ========================================================= */

/* الحاوية الرئيسية للفوتر */
footer[data-testid="store-footer"] .store-footer__inner > .container {
    position: relative !important;
}


/* =========================================================
   1) نص تعريفي تحت "مسار للخدمات الإلكترونية"
   ========================================================= */

footer[data-testid="store-footer"] 
.store-footer__inner > .container > div:nth-of-type(1) h3,
footer[data-testid="store-footer"] 
.store-footer__inner > .container > div:nth-of-type(1) h4 {
    position: relative !important;
    margin-bottom: 18px !important;
}

footer[data-testid="store-footer"] 
.store-footer__inner > .container > div:nth-of-type(1) h3::after,
footer[data-testid="store-footer"] 
.store-footer__inner > .container > div:nth-of-type(1) h4::after {
    content: "مسار للخدمات الإلكترونية منصة متخصصة في تقديم الخدمات الإلكترونية الموثوقة بسهولة وسرعة وبأعلى معايير الأمان والدقة.";
    display: block !important;
    margin-top: 14px !important;

    max-width: 320px !important;

    color: #6b7789 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 2 !important;

    text-align: right !important;
    white-space: normal !important;
}


/* =========================================================
   2) عمود تواصل معنا
   ========================================================= */

footer[data-testid="store-footer"] 
.store-footer__inner > .container > div:nth-of-type(3) {
    position: relative !important;
    padding-bottom: 80px !important;
}


/* رقم الجوال */
footer[data-testid="store-footer"] 
.store-footer__inner > .container > div:nth-of-type(3) a,
footer[data-testid="store-footer"] 
.store-footer__inner > .container > div:nth-of-type(3) p {
    position: relative !important;
    z-index: 2 !important;
}


/* =========================================================
   3) نقل مجموعة السوشال لتكون تحت رقم الجوال
   ========================================================= */

/* نحاول استهداف مجموعة السوشال الموجودة داخل عمود "مسار" */
footer[data-testid="store-footer"] 
.store-footer__inner > .container > div:nth-of-type(1) 
:is(div, ul, nav, section, p):has(a[href*="instagram"], a[href*="x.com"], a[href*="twitter"], a[href*="tiktok"]) {
    
    position: absolute !important;

    /* توضع في العمود الأيسر (تواصل معنا) */
    left: 30px !important;
    top: 92px !important;

    width: calc((100% / 3) - 60px) !important;

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

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

    z-index: 5 !important;
}


/* نفس مجموعة السوشال لو كانت div مباشرة */
footer[data-testid="store-footer"] 
.store-footer__inner > .container > div:nth-of-type(1) > div:has(a[href*="instagram"], a[href*="x.com"], a[href*="twitter"], a[href*="tiktok"]) {
    
    position: absolute !important;
    left: 30px !important;
    top: 92px !important;
    width: calc((100% / 3) - 60px) !important;

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

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

    z-index: 5 !important;
}


/* =========================================================
   4) تنسيق أيقونات السوشال
   ========================================================= */

footer[data-testid="store-footer"] 
a[href*="instagram"],
footer[data-testid="store-footer"] 
a[href*="x.com"],
footer[data-testid="store-footer"] 
a[href*="twitter"],
footer[data-testid="store-footer"] 
a[href*="tiktok"] {

    width: 38px !important;
    height: 38px !important;

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

    border: 1px solid #d7e1ea !important;
    border-radius: 999px !important;

    background: #ffffff !important;
    color: #082b55 !important;

    transition: all 0.25s ease !important;
}

footer[data-testid="store-footer"] 
a[href*="instagram"]:hover,
footer[data-testid="store-footer"] 
a[href*="x.com"]:hover,
footer[data-testid="store-footer"] 
a[href*="twitter"]:hover,
footer[data-testid="store-footer"] 
a[href*="tiktok"]:hover {
    background: #14976f !important;
    border-color: #14976f !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
}


/* =========================================================
   5) تحسين محاذاة عمود "مسار"
   ========================================================= */

footer[data-testid="store-footer"] 
.store-footer__inner > .container > div:nth-of-type(1) {
    align-items: flex-start !important;
    text-align: right !important;
}

footer[data-testid="store-footer"] 
.store-footer__inner > .container > div:nth-of-type(1) img {
    max-width: 150px !important;
    height: auto !important;
}


/* =========================================================
   6) موبايل
   ========================================================= */

@media (max-width: 1023px) {

    footer[data-testid="store-footer"] 
    .store-footer__inner > .container > div:nth-of-type(1) h3::after,
    footer[data-testid="store-footer"] 
    .store-footer__inner > .container > div:nth-of-type(1) h4::after {
        max-width: 100% !important;
        text-align: center !important;
    }

    footer[data-testid="store-footer"] 
    .store-footer__inner > .container > div:nth-of-type(3) {
        padding-bottom: 0 !important;
    }

    footer[data-testid="store-footer"] 
    .store-footer__inner > .container > div:nth-of-type(1) 
    :is(div, ul, nav, section, p):has(a[href*="instagram"], a[href*="x.com"], a[href*="twitter"], a[href*="tiktok"]),
    
    footer[data-testid="store-footer"] 
    .store-footer__inner > .container > div:nth-of-type(1) > div:has(a[href*="instagram"], a[href*="x.com"], a[href*="twitter"], a[href*="tiktok"]) {

        position: static !important;
        width: auto !important;

        justify-content: center !important;
        margin-top: 16px !important;
    }
}


/* =========================================================
   MASAR FOOTER
   SOCIAL ICONS UNDER CONTACT PHONE
   ========================================================= */

/* الحاوية الرئيسية للفوتر هي مرجع التموضع */
footer[data-testid="store-footer"]
.store-footer__inner > .container {
    position: relative !important;
}


/* =========================================================
   إلغاء التحريك القديم للأيقونات المفردة
   ========================================================= */

footer[data-testid="store-footer"] a[href*="tiktok"],
footer[data-testid="store-footer"] a[href*="x.com"],
footer[data-testid="store-footer"] a[href*="twitter"],
footer[data-testid="store-footer"] a[href*="instagram"] {
    position: static !important;

    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;

    transform: none !important;

    margin: 0 !important;
}

/* إخفاء النص القديم الذي أضفناه سابقاً بالـ CSS */
footer[data-testid="store-footer"]
.md\:flex.items-center.justify-between::after {
    display: none !important;
    content: none !important;
}

/* الحاوية */
footer[data-testid="store-footer"]
.md\:flex.items-center.justify-between {
    position: relative !important;
    padding-bottom: 46px !important;
}

/* رابط المطور */
footer[data-testid="store-footer"]
.masar-developer-credit {
    position: absolute !important;

    left: 50% !important;
    bottom: 10px !important;

    transform: translateX(-50%) !important;

    display: inline-block !important;

    color: #768396 !important;

    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;

    text-align: center !important;
    white-space: nowrap !important;

    text-decoration: none !important;

    transition: color 0.2s ease !important;
}

/* اسم Solar System */
footer[data-testid="store-footer"]
.masar-developer-credit strong {
    color: #082b55 !important;
    font-weight: 700 !important;
}

/* Hover */
footer[data-testid="store-footer"]
.masar-developer-credit:hover,
footer[data-testid="store-footer"]
.masar-developer-credit:hover strong {
    color: #14976f !important;
}

section[data-testid="store-home-fixed-banner"] {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

section[data-testid="store-home-fixed-banner"] > .container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

section[data-testid="store-home-fixed-banner"] .banner--fixed {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

section[data-testid="store-home-fixed-banner"] picture {
    display: block !important;
    width: 100% !important;
}

section[data-testid="store-home-fixed-banner"] img {
    display: block !important;

    width: 100% !important;
    height: auto !important;

    max-width: 100% !important;

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

    image-rendering: auto !important;

    transform: none !important;
    filter: none !important;

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



/* =========================================
   MASAR PRODUCT DESCRIPTION - SALLA
   ========================================= */

[data-testid="store-product-description"] {
    direction: rtl;
    text-align: right;
    color: #556476;
    font-size: 15px;
    line-height: 1.9;
}

[data-testid="store-product-description"] .article--main {
    background: transparent !important;
}


/* =========================================
   العنوان الرئيسي داخل الوصف
   ========================================= */

[data-testid="store-product-description"] h2 {
    color: #082b55 !important;
    font-size: 28px !important;
    font-weight: 800 !important;
    line-height: 1.5 !important;

    background: linear-gradient(135deg, #f6fbf9, #ffffff);
    border: 1px solid #e3ece9;
    border-radius: 18px;

    padding: 22px 24px !important;
    margin: 0 0 18px !important;

    position: relative;
    overflow: hidden;
}

[data-testid="store-product-description"] h2::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: #14976f;
}


/* =========================================
   عناوين الأقسام
   ========================================= */

[data-testid="store-product-description"] h3 {
    color: #082b55 !important;
    font-size: 20px !important;
    font-weight: 800 !important;

    margin: 30px 0 14px !important;
    padding-right: 14px !important;

    position: relative;
    line-height: 1.5 !important;
}

[data-testid="store-product-description"] h3::before {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);

    width: 5px;
    height: 23px;

    background: #14976f;
    border-radius: 20px;
}


/* =========================================
   الفقرات
   ========================================= */

[data-testid="store-product-description"] p {
    color: #5f6e7e !important;
    font-size: 15px !important;
    line-height: 1.95 !important;
    margin: 8px 0 !important;
}


/* =========================================
   أول فقرة بعد H2
   ========================================= */

[data-testid="store-product-description"] h2 + p {
    background: #f8fbfc;
    border: 1px solid #e5ecef;
    border-radius: 14px;

    padding: 16px 18px !important;
    margin-bottom: 22px !important;

    color: #657487 !important;
}


/* =========================================
   القوائم المكتوبة بعلامة ✓
   ========================================= */

[data-testid="store-product-description"] p:not(:has(+ h3)) {
    transition: 0.2s ease;
}


/* =========================================
   تحسين عناصر القوائم النصية
   ========================================= */

[data-testid="store-product-description"] h3 + p,
[data-testid="store-product-description"] h3 + p + p,
[data-testid="store-product-description"] h3 + p + p + p,
[data-testid="store-product-description"] h3 + p + p + p + p,
[data-testid="store-product-description"] h3 + p + p + p + p + p,
[data-testid="store-product-description"] h3 + p + p + p + p + p + p,
[data-testid="store-product-description"] h3 + p + p + p + p + p + p + p {
    background: #ffffff;
    border: 1px solid #e7edef;
    border-radius: 11px;

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

    box-shadow: 0 5px 18px rgba(8, 43, 85, 0.025);
}


/* =========================================
   تلوين علامة الصح الموجودة داخل النص
   ========================================= */

[data-testid="store-product-description"] p {
    white-space: normal;
}


/* =========================================
   الخطوات 1 2 3 4
   لأن سلة أزالت DIVs الداخلية
   ========================================= */

[data-testid="store-product-description"] h3:nth-of-type(n) + p strong {
    color: #082b55 !important;
    font-weight: 800 !important;
}


/* =========================================
   الروابط داخل الوصف إن وجدت
   ========================================= */

[data-testid="store-product-description"] a {
    color: #14976f !important;
    text-decoration: none !important;
    font-weight: 700;
}

[data-testid="store-product-description"] a:hover {
    color: #082b55 !important;
}


/* =========================================
   آخر فقرة - تنبيه
   ========================================= */

[data-testid="store-product-description"] article > p:last-child {
    background: #fffaf0 !important;
    border: 1px solid #eee1c4 !important;
    border-right: 4px solid #d4a83f !important;

    border-radius: 14px !important;
    padding: 17px 18px !important;

    color: #74674e !important;
    font-size: 13px !important;

    margin-top: 25px !important;
}


/* =========================================
   H3 الأخير الخاص بالتنبيه
   ========================================= */

[data-testid="store-product-description"] article > h3:last-of-type {
    color: #9a7427 !important;
}

[data-testid="store-product-description"] article > h3:last-of-type::before {
    background: #d4a83f !important;
}


/* =========================================
   تأثير بسيط
   ========================================= */

[data-testid="store-product-description"] p:hover {
    border-color: rgba(20, 151, 111, 0.25);
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 767px) {

    [data-testid="store-product-description"] {
        padding-left: 8px !important;
        padding-right: 8px !important;
        font-size: 14px;
    }

    [data-testid="store-product-description"] h2 {
        font-size: 22px !important;
        padding: 18px 16px !important;
        border-radius: 15px;
    }

    [data-testid="store-product-description"] h3 {
        font-size: 18px !important;
        margin-top: 24px !important;
    }

    [data-testid="store-product-description"] p {
        font-size: 14px !important;
        line-height: 1.85 !important;
    }

}

/* =========================================
   PATCH 1: عنوان الوصف يصير ليبل جميل
   ========================================= */

[data-testid="store-product-description"] h2 {
    display: table !important;
    width: auto !important;
    max-width: 100% !important;

    margin: 0 auto 20px !important;
    padding: 12px 24px !important;

    background: #f7fffb !important;
    border: 2px solid #20c997 !important;
    border-radius: 999px !important;

    color: #082b55 !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    line-height: 1.5 !important;
    text-align: center !important;

    box-shadow: 0 10px 24px rgba(32, 201, 151, 0.10) !important;
}

/* إلغاء الشريط الأخضر الجانبي القديم */
[data-testid="store-product-description"] h2::after,
[data-testid="store-product-description"] h2::before {
    content: none !important;
}


/* =========================================
   PATCH 2: إصلاح المسافات والكلمات المتلاصقة
   ========================================= */

[data-testid="store-product-description"] p,
[data-testid="store-product-description"] li {
    word-spacing: 1px !important;
    letter-spacing: 0 !important;
    line-height: 2 !important;
}

/* تحسين ظهور الكلمات داخل bold / strong */
[data-testid="store-product-description"] p strong,
[data-testid="store-product-description"] p b,
[data-testid="store-product-description"] li strong,
[data-testid="store-product-description"] li b {
    display: inline-block !important;
    margin-inline: 3px !important;
}

/* إضافة فراغ بعد الكلمات البارزة مثل: تنبيه مهم */
[data-testid="store-product-description"] p strong::after,
[data-testid="store-product-description"] p b::after,
[data-testid="store-product-description"] li strong::after,
[data-testid="store-product-description"] li b::after {
    content: " " !important;
}

/* إصلاح خاص لفقرة التنبيه الأخيرة */
[data-testid="store-product-description"] article > p:last-child {
    line-height: 2.1 !important;
    word-spacing: 1.5px !important;
}

[data-testid="store-product-description"] article > p:last-child strong,
[data-testid="store-product-description"] article > p:last-child b {
    margin-left: 6px !important;
    color: #8a6a22 !important;
}


/* =========================================
   PATCH 3: تحسين الخطوات المرقمة
   ========================================= */

[data-testid="store-product-description"] h3 + p,
[data-testid="store-product-description"] h3 + p + p,
[data-testid="store-product-description"] h3 + p + p + p,
[data-testid="store-product-description"] h3 + p + p + p + p,
[data-testid="store-product-description"] h3 + p + p + p + p + p,
[data-testid="store-product-description"] h3 + p + p + p + p + p + p {
    line-height: 2 !important;
    word-spacing: 1px !important;
    overflow-wrap: break-word !important;
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 767px) {
    [data-testid="store-product-description"] h2 {
        font-size: 18px !important;
        padding: 10px 18px !important;
        border-radius: 999px !important;
    }

    [data-testid="store-product-description"] p,
    [data-testid="store-product-description"] li {
        font-size: 14px !important;
        line-height: 1.95 !important;
    }
}



/* =========================================================
   MASAR - PRODUCT PURCHASE BUTTONS
   ========================================================= */

/* الحاوية */
salla-add-product-button[data-testid="store-product-checkout-widget"] {
    width: 100% !important;
}


/* =========================================================
   زر إضافة للسلة
   ========================================================= */

button[data-testid*="product-add-to-cart"],
salla-button[data-testid*="product-add-to-cart"] button,
salla-add-product-button button[data-testid*="add-to-cart"] {
    background: linear-gradient(135deg, #14976f, #0f805e) !important;
    background-color: #14976f !important;

    color: #ffffff !important;

    border: 1px solid #14976f !important;
    border-radius: 14px !important;

    min-height: 52px !important;

    font-size: 15px !important;
    font-weight: 800 !important;

    box-shadow: 0 8px 22px rgba(20, 151, 111, 0.18) !important;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background .2s ease !important;
}


/* النص داخل الزر */
button[data-testid*="product-add-to-cart"] *,
salla-button[data-testid*="product-add-to-cart"] *,
salla-add-product-button button[data-testid*="add-to-cart"] * {
    color: #ffffff !important;
}


/* Hover */
button[data-testid*="product-add-to-cart"]:hover,
salla-button[data-testid*="product-add-to-cart"] button:hover,
salla-add-product-button button[data-testid*="add-to-cart"]:hover {
    background: linear-gradient(135deg, #0f8763, #0c6f52) !important;

    transform: translateY(-2px) !important;

    box-shadow: 0 12px 28px rgba(20, 151, 111, 0.25) !important;
}


/* =========================================================
   زر اشتري الآن
   ========================================================= */

button[data-testid*="buy-now"],
button[data-testid*="checkout"]:not([data-testid*="add-to-cart"]),
salla-button[data-testid*="buy-now"] button,
salla-button[data-testid*="checkout"] button {
    background: #ffffff !important;
    background-color: #ffffff !important;

    color: #082b55 !important;

    border: 2px solid #082b55 !important;
    border-radius: 14px !important;

    min-height: 52px !important;

    font-size: 15px !important;
    font-weight: 800 !important;

    box-shadow: 0 7px 18px rgba(8, 43, 85, 0.07) !important;

    transition:
        background .2s ease,
        color .2s ease,
        transform .2s ease,
        box-shadow .2s ease !important;
}


/* النص والأيقونة */
button[data-testid*="buy-now"] *,
button[data-testid*="checkout"]:not([data-testid*="add-to-cart"]) *,
salla-button[data-testid*="buy-now"] *,
salla-button[data-testid*="checkout"] * {
    color: #082b55 !important;
}


/* Hover شراء الآن */
button[data-testid*="buy-now"]:hover,
button[data-testid*="checkout"]:not([data-testid*="add-to-cart"]):hover,
salla-button[data-testid*="buy-now"] button:hover,
salla-button[data-testid*="checkout"] button:hover {
    background: #082b55 !important;
    color: #ffffff !important;

    transform: translateY(-2px) !important;

    box-shadow: 0 12px 25px rgba(8, 43, 85, 0.16) !important;
}

button[data-testid*="buy-now"]:hover *,
button[data-testid*="checkout"]:not([data-testid*="add-to-cart"]):hover *,
salla-button[data-testid*="buy-now"] button:hover *,
salla-button[data-testid*="checkout"] button:hover * {
    color: #ffffff !important;
}


/* =========================================================
   عداد الكمية
   ========================================================= */

salla-quantity-input {
    border-radius: 13px !important;
    overflow: hidden !important;
}

salla-quantity-input button {
    width: 46px !important;
    min-width: 46px !important;
    height: 42px !important;

    background: #f6f9fb !important;
    color: #082b55 !important;

    border-color: #dce5ea !important;

    font-size: 20px !important;

    transition: .2s ease !important;
}

salla-quantity-input button:hover {
    background: #e9f8f3 !important;
    color: #14976f !important;
}

salla-quantity-input input {
    height: 42px !important;

    background: #ffffff !important;
    color: #082b55 !important;

    border-color: #dce5ea !important;

    font-weight: 800 !important;
    text-align: center !important;
}


/* أحياناً الثيم يستخدم الكلاسات الداخلية لسلة */
.s-quantity-input-container {
    border-radius: 13px !important;
    border-color: #dce5ea !important;
    overflow: hidden !important;
}

.s-quantity-input-button {
    background: #f6f9fb !important;
    color: #082b55 !important;
}

.s-quantity-input-button:hover {
    background: #e9f8f3 !important;
    color: #14976f !important;
}


/* =========================================================
   المفضلة والمشاركة
   ========================================================= */

.product-single button[aria-label*="مفضلة"],
.product-single button[aria-label*="المفضلة"],
.product-single button[aria-label*="مشاركة"],
.product-single button[aria-label*="share"],
.product-single button[aria-label*="wishlist"] {
    width: 43px !important;
    height: 43px !important;

    background: #ffffff !important;
    color: #082b55 !important;

    border: 1px solid #dce5ea !important;
    border-radius: 50% !important;

    box-shadow: 0 5px 16px rgba(8, 43, 85, 0.05) !important;

    transition: .2s ease !important;
}

.product-single button[aria-label*="مفضلة"]:hover,
.product-single button[aria-label*="المفضلة"]:hover,
.product-single button[aria-label*="مشاركة"]:hover,
.product-single button[aria-label*="share"]:hover,
.product-single button[aria-label*="wishlist"]:hover {
    background: #eaf8f4 !important;
    color: #14976f !important;
    border-color: #14976f !important;

    transform: translateY(-2px) !important;
}


/* =========================================================
   الجوال
   ========================================================= */

@media (max-width: 767px) {

    button[data-testid*="product-add-to-cart"],
    salla-button[data-testid*="product-add-to-cart"] button,
    button[data-testid*="buy-now"],
    button[data-testid*="checkout"] {
        min-height: 50px !important;
        border-radius: 12px !important;
        font-size: 14px !important;
    }

}



/* =========================================
   FIX FINAL - توحيد ارتفاع الزرين فعلياً
   ========================================= */

/* الحاوية */
salla-add-product-button[data-testid="store-product-checkout-widget"] {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    align-items: center !important;
}

/* أي wrapper داخلي */
salla-add-product-button[data-testid="store-product-checkout-widget"] > *,
salla-add-product-button[data-testid="store-product-checkout-widget"] salla-button,
salla-add-product-button[data-testid="store-product-checkout-widget"] .s-button-wrap,
salla-add-product-button[data-testid="store-product-checkout-widget"] .s-button-container {
    width: 100% !important;
    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* الزر الحقيقي */
salla-add-product-button[data-testid="store-product-checkout-widget"] button,
salla-add-product-button[data-testid="store-product-checkout-widget"] .s-button-element {
    width: 100% !important;

    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;

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

    border-radius: 14px !important;

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

    line-height: 50px !important;

    box-sizing: border-box !important;
}

/* النص داخل الأزرار */
salla-add-product-button[data-testid="store-product-checkout-widget"] button span,
salla-add-product-button[data-testid="store-product-checkout-widget"] .s-button-element span {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

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

    line-height: 1 !important;

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


/* زر إضافة للسلة */
salla-add-product-button[data-testid="store-product-checkout-widget"]
button[data-testid*="add-to-cart"] {
    background: #14976f !important;
    border: 2px solid #14976f !important;
    color: #fff !important;
}


/* زر اشتري الآن */
salla-add-product-button[data-testid="store-product-checkout-widget"]
button:not([data-testid*="add-to-cart"]) {
    background: #fff !important;
    border: 2px solid #082b55 !important;
    color: #082b55 !important;
}


/* للجوال */
@media (max-width: 767px) {

    salla-add-product-button[data-testid="store-product-checkout-widget"] > *,
    salla-add-product-button[data-testid="store-product-checkout-widget"] salla-button,
    salla-add-product-button[data-testid="store-product-checkout-widget"] .s-button-wrap,
    salla-add-product-button[data-testid="store-product-checkout-widget"] .s-button-container,
    salla-add-product-button[data-testid="store-product-checkout-widget"] button,
    salla-add-product-button[data-testid="store-product-checkout-widget"] .s-button-element {
        height: 48px !important;
        min-height: 48px !important;
        max-height: 48px !important;
    }

    salla-add-product-button[data-testid="store-product-checkout-widget"] button,
    salla-add-product-button[data-testid="store-product-checkout-widget"] .s-button-element {
        line-height: 48px !important;
        border-radius: 12px !important;
    }
}

/* =========================================
   MASAR INFORMATION PAGES
   ========================================= */

.masar-info-page {
    direction: rtl;
    text-align: right;
    color: #556476;
    line-height: 1.9;
    max-width: 1100px;
    margin: 0 auto;
}


/* HERO */

.masar-info-hero {
    background: linear-gradient(135deg, #f6fbf9 0%, #ffffff 70%);
    border: 1px solid #e2ece8;
    border-radius: 22px;
    padding: 30px;
    margin-bottom: 30px;
}

.masar-info-badge {
    display: inline-block;
    background: #e9f8f3;
    color: #14976f;
    border: 1px solid rgba(20, 151, 111, 0.16);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
}

.masar-info-hero h1 {
    color: #082b55;
    font-size: 30px;
    font-weight: 800;
    margin: 0 0 10px;
}

.masar-info-hero p {
    margin: 0;
    color: #657487;
    font-size: 15px;
}


/* SECTIONS */

.masar-info-section {
    margin-bottom: 28px;
}

.masar-info-section h2 {
    position: relative;
    color: #082b55;
    font-size: 21px;
    font-weight: 800;
    margin: 0 0 14px;
    padding-right: 15px;
}

.masar-info-section h2::before {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 24px;
    border-radius: 20px;
    background: #14976f;
}


/* CONTENT BOX */

.masar-info-box {
    background: #ffffff;
    border: 1px solid #e5ebef;
    border-radius: 17px;
    padding: 20px 24px;
    box-shadow: 0 8px 28px rgba(8, 43, 85, 0.04);
}

.masar-info-box ul,
.masar-info-box ol {
    margin: 0;
    padding-right: 22px;
}

.masar-info-box li {
    margin-bottom: 10px;
    color: #5d6c7c;
    line-height: 1.9;
}

.masar-info-box li:last-child {
    margin-bottom: 0;
}


/* NOTE */

.masar-info-note {
    background: #fffaf0;
    border: 1px solid #eee0bd;
    border-right: 4px solid #d5a843;
    border-radius: 15px;
    padding: 18px 20px;
    margin-top: 30px;
}

.masar-info-note strong {
    color: #082b55;
    font-size: 16px;
    font-weight: 800;
}

.masar-info-note p {
    margin: 6px 0 0;
    color: #75694e;
    font-size: 14px;
}


/* MOBILE */

@media (max-width: 767px) {

    .masar-info-hero {
        padding: 22px 18px;
        border-radius: 17px;
    }

    .masar-info-hero h1 {
        font-size: 23px;
    }

    .masar-info-section h2 {
        font-size: 18px;
    }

    .masar-info-box {
        padding: 16px 17px;
    }

}

/* =========================================
   FIX ALIGNMENT - INFORMATION PAGE
   ========================================= */

.masar-info-page {
    width: 100% !important;
    max-width: 1100px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
}

.masar-info-hero,
.masar-info-section,
.masar-info-box,
.masar-info-note {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
}

/* عنوان كل قسم */
.masar-info-section h2 {
    width: 100% !important;
    box-sizing: border-box !important;
}

/* ضبط القائمة داخل الصندوق */
.masar-info-box ul,
.masar-info-box ol {
    width: 100% !important;
    box-sizing: border-box !important;
}

/* يمنع أي إزاحة من القالب */
.masar-info-page section {
    transform: none !important;
    left: auto !important;
    right: auto !important;
}

/* الجوال */
@media (max-width: 767px) {
    .masar-info-page {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
}

/* =====================================================
   FIX - أول قسم في الصفحات التعريفية
   ===================================================== */

.masar-info-page > .masar-info-section:first-of-type,
.masar-info-hero + .masar-info-section {
    width: calc(100% - 0px) !important;
    max-width: 1100px !important;

    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 28px !important;

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

    position: relative !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;

    box-sizing: border-box !important;
}

/* عنوان سياسة الاستبدال */
.masar-info-page > .masar-info-section:first-of-type > h2,
.masar-info-hero + .masar-info-section > h2 {
    width: 100% !important;
    max-width: 100% !important;

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

    box-sizing: border-box !important;
}

/* البوكس الخاص بسياسة الاستبدال */
.masar-info-page > .masar-info-section:first-of-type > .masar-info-box,
.masar-info-hero + .masar-info-section > .masar-info-box {
    width: 100% !important;
    max-width: 100% !important;

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

    border-radius: 17px !important;

    box-sizing: border-box !important;
}


/* =====================================================
   توحيد كل أجزاء الصفحة على نفس العرض
   ===================================================== */

.masar-info-hero,
.masar-info-page > .masar-info-section,
.masar-info-note {
    max-width: 1100px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}


/* الجوال */
@media (max-width: 767px) {

    .masar-info-page > .masar-info-section:first-of-type,
    .masar-info-hero + .masar-info-section,
    .masar-info-hero,
    .masar-info-page > .masar-info-section,
    .masar-info-note {
        width: 100% !important;
        max-width: 100% !important;
    }

}


/* =========================================
   FIX SERVICES DESCRIPTIONS
   ========================================= */

/* إلغاء أي وصف قديم مضاف بالـ pseudo elements */
section[data-testid="store-home-square-photos"]:first-of-type
.banner-entry::before,

section[data-testid="store-home-square-photos"]:first-of-type
.banner-entry::after {
    content: none !important;
}

/* وصف الخدمة الجديد */
section[data-testid="store-home-square-photos"]:first-of-type
.masar-service-description {
    display: block !important;
    margin-top: 7px !important;

    color: #7a8795 !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.7 !important;

    text-align: center !important;
}

/* رابط التفاصيل */
section[data-testid="store-home-square-photos"]:first-of-type
.masar-service-details {
    display: block !important;

    margin-top: auto !important;
    padding-top: 14px !important;

    color: #14976f !important;
    font-size: 13px !important;
    font-weight: 700 !important;

    text-align: center !important;
}

/* ترتيب محتوى البطاقة */
section[data-testid="store-home-square-photos"]:first-of-type
.banner-entry {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

section[data-testid="store-home-square-photos"]:first-of-type
.banner-entry h3 {
    margin-bottom: 0 !important;
}

/* =====================================================
   FIX FINAL - خدماتنا الإلكترونية
   ===================================================== */

/*
   تعطيل الأوصاف القديمة التي أضيفت سابقاً
   باستخدام ::before / ::after و nth-child
*/

.masar-services-fixed .banner-entry::before,
.masar-services-fixed .banner-entry::after,
.masar-services-fixed .banner-entry h3::before,
.masar-services-fixed .banner-entry h3::after,
.masar-services-fixed .text-with-border::before,
.masar-services-fixed .text-with-border::after {
    content: none !important;
}


/* ترتيب البطاقة */

.masar-services-fixed .banner-entry {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;

    min-height: 230px !important;
}


/* عنوان الخدمة */

.masar-services-fixed .banner-entry h3 {
    color: #082b55 !important;

    font-size: 16px !important;
    font-weight: 800 !important;

    margin: 10px 0 0 !important;

    text-align: center !important;
}


/* الوصف الصحيح */

.masar-services-fixed .masar-service-description {
    display: block !important;

    width: 100% !important;

    margin: 6px 0 0 !important;
    padding: 0 8px !important;

    color: #7a8795 !important;

    font-size: 12.5px !important;
    font-weight: 400 !important;

    line-height: 1.7 !important;
    text-align: center !important;

    box-sizing: border-box !important;
}


/* عرض تفاصيل الخدمة */

.masar-services-fixed .masar-service-details {
    display: block !important;

    width: 100% !important;

    margin-top: auto !important;
    padding: 13px 5px 2px !important;

    color: #14976f !important;

    font-size: 13px !important;
    font-weight: 800 !important;

    text-align: center !important;

    box-sizing: border-box !important;
}


/* Hover */

.masar-services-fixed .banner-entry:hover
.masar-service-details {
    color: #082b55 !important;
}


/* الجوال */

@media (max-width: 767px) {

    .masar-services-fixed .banner-entry {
        min-height: 215px !important;
    }

    .masar-services-fixed .masar-service-description {
        font-size: 12px !important;
    }

}

/* =========================================
   MASAR FAQ
   ========================================= */

.masar-faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 28px 0;
}

.masar-faq-item {
    background: #ffffff;
    border: 1px solid #e2e9ed;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 7px 24px rgba(8, 43, 85, 0.035);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.masar-faq-item:hover {
    border-color: rgba(20, 151, 111, .32);
}

.masar-faq-item[open] {
    border-color: rgba(20, 151, 111, .35);
    box-shadow: 0 10px 28px rgba(8, 43, 85, .055);
}


/* السؤال */
.masar-faq-item summary {
    position: relative;
    display: block;
    cursor: pointer;

    padding: 19px 58px 19px 22px;

    color: #082b55;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.7;

    list-style: none;
    user-select: none;
}

.masar-faq-item summary::-webkit-details-marker {
    display: none;
}


/* علامة + */
.masar-faq-item summary::before {
    content: "+";

    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);

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

    width: 28px;
    height: 28px;

    background: #eaf8f4;
    color: #14976f;

    border-radius: 50%;

    font-size: 20px;
    font-weight: 500;
    line-height: 1;

    transition: .2s ease;
}


/* عند فتح السؤال */
.masar-faq-item[open] summary::before {
    content: "−";
    background: #14976f;
    color: #ffffff;
}


/* الإجابة */
.masar-faq-answer {
    margin: 0 22px 18px;
    padding: 16px 18px;

    background: #f8fbfc;
    border-radius: 12px;
}

.masar-faq-answer p {
    margin: 0 !important;
    color: #657487;
    font-size: 14px;
    line-height: 1.95;
}


/* خط فاصل عند فتح السؤال */
.masar-faq-item[open] summary {
    padding-bottom: 15px;
}


/* MOBILE */
@media (max-width: 767px) {

    .masar-faq-item summary {
        padding: 16px 50px 16px 15px;
        font-size: 14px;
    }

    .masar-faq-item summary::before {
        right: 14px;
        width: 26px;
        height: 26px;
    }

    .masar-faq-answer {
        margin: 0 14px 14px;
        padding: 14px;
    }

    .masar-faq-answer p {
        font-size: 13px;
    }
}

<div class="masar-info-page masar-contact-page">

    <div class="masar-info-hero">
        <span class="masar-info-badge">نحن هنا لمساعدتك</span>

        <h1>تواصل معنا</h1>

        <p>
            إذا كان لديك استفسار عن إحدى خدمات متجر مسار، أو تحتاج مساعدة
            في اختيار الخدمة المناسبة، يسعدنا تواصلك معنا وسنقوم بخدمتك
            بأسرع وقت ممكن.
        </p>
    </div>


    <section class="masar-info-section">
        <h2>خدمة العملاء</h2>

        <div class="masar-contact-grid">

            <div class="masar-contact-card">
                <div class="masar-contact-icon">☎</div>

                <h3>واتساب</h3>

                <p>
                    تواصل معنا مباشرة للاستفسار عن الخدمات أو متابعة طلبك.
                </p>

                <a href="https://wa.me/966542088443"
                   target="_blank"
                   rel="noopener noreferrer"
                   class="masar-contact-btn">
                    تواصل عبر واتساب
                </a>
            </div>


            <div class="masar-contact-card">
                <div class="masar-contact-icon">⌁</div>

                <h3>رقم التواصل</h3>

                <p>
                    يمكنك التواصل معنا على رقم خدمة العملاء خلال أوقات العمل.
                </p>

                <a href="tel:+966542088443"
                   class="masar-contact-btn masar-contact-btn-outline">
                    +966 54 208 8443
                </a>
            </div>

        </div>
    </section>


    <section class="masar-info-section">
        <h2>قبل التواصل</h2>

        <div class="masar-info-box">
            <ul>
                <li>يرجى ذكر اسم الخدمة التي تستفسر عنها.</li>
                <li>إذا كان لديك طلب سابق، يرجى إرفاق رقم الطلب عند التواصل.</li>
                <li>تأكد من عدم إرسال كلمات المرور أو البيانات الحساسة عبر المحادثة.</li>
                <li>قد نطلب بعض المعلومات الإضافية إذا كانت ضرورية لتنفيذ الخدمة.</li>
            </ul>
        </div>
    </section>


    <section class="masar-info-section">
        <h2>متابعة الطلبات</h2>

        <div class="masar-info-box">
            <p>
                إذا كنت ترغب في متابعة طلب قائم، أرسل لنا رقم الطلب واسم الخدمة،
                وسنقوم بمراجعة حالته وإفادتك بالتحديثات المتاحة.
            </p>
        </div>
    </section>


    <div class="masar-info-note">
        <strong>ملاحظة</strong>

        <p>
            متجر مسار للخدمات الإلكترونية مقدم خدمة مساعدة إلكترونية مستقل،
            ولا يمثل أي جهة حكومية أو منصة رسمية.
        </p>
    </div>

</div>

#masar-services {
    scroll-margin-top: 110px;
}

#masar-official-entities {
    scroll-margin-top: 110px;
}

#masar-official-entities {
    scroll-margin-top: 110px !important;
}

#masar-services,
#masar-official-entities {
    scroll-margin-top: 110px !important;
}


/* =========================================================
   MASAR CART - FINAL EXACT DOM FIX
   ========================================================= */


/* =========================================
   الحاوية الرئيسية للسلة
   ========================================= */

main#main-content > .container >
div.pt-5.flex.flex-col.items-start.lg\:flex-row.pb-32.lg\:pb-20 {
    width: calc(100% - 40px) !important;
    max-width: 1180px !important;

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

    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;

    gap: 24px !important;

    padding-bottom: 55px !important;

    box-sizing: border-box !important;
}


/* =========================================
   عمود المنتجات
   ========================================= */

main#main-content
.main-content.w-full {
    width: auto !important;
    max-width: none !important;

    flex: 1 1 0 !important;
    min-width: 0 !important;

    margin: 0 !important;
}


/* =========================================
   عمود ملخص الطلب
   ========================================= */

main#main-content
.sticky.top-24.w-full.lg\:w-96 {
    width: 320px !important;
    min-width: 320px !important;
    max-width: 320px !important;

    flex: 0 0 320px !important;

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

    top: 100px !important;
}


/* =========================================
   الفورم الخاص بكل خدمة
   ========================================= */

main#main-content
.main-content > form {
    width: 100% !important;

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


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

main#main-content
section[data-testid^="store-cart-item-"] {
    position: relative !important;

    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;

    gap: 24px !important;

    width: 100% !important;
    height: auto !important;
    min-height: 76px !important;

    margin: 0 !important;
    padding: 15px 62px 15px 20px !important;

    background: #ffffff !important;

    border: 1px solid #e1e8ec !important;
    border-radius: 15px !important;

    box-shadow: 0 5px 18px rgba(8, 43, 85, .035) !important;

    box-sizing: border-box !important;
}


/* =========================================
   إخفاء الصور نهائياً
   ========================================= */

main#main-content
section[data-testid^="store-cart-item-"]
a.relative.overflow-hidden.shrink-0,

main#main-content
section[data-testid^="store-cart-item-"] img,

main#main-content
section[data-testid^="store-cart-item-"] .free-ribbon {
    display: none !important;
}


/* =========================================
   إزالة مسافات التصميم الأصلي
   ========================================= */

main#main-content
section[data-testid^="store-cart-item-"]
> div:first-of-type {
    width: 100% !important;

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

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


/* العنصر الذي عليه mb-8 */
main#main-content
section[data-testid^="store-cart-item-"]
.md\:flex {
    margin-bottom: 0 !important;
}


/* الجزء الذي كان يحتوي الصورة والنص */
main#main-content
section[data-testid^="store-cart-item-"]
.flex.flex-1 {
    width: 100% !important;

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

    gap: 0 !important;
}


/* =========================================
   اسم المنتج والسعر
   ========================================= */

main#main-content
section[data-testid^="store-cart-item-"]
.space-y-1 {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;

    width: 100% !important;

    gap: 6px 16px !important;

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


main#main-content
section[data-testid^="store-cart-item-"] h1 {
    margin: 0 !important;

    font-size: 16px !important;
    font-weight: 800 !important;
    line-height: 1.5 !important;

    color: #082b55 !important;
}


main#main-content
section[data-testid^="store-cart-item-"] h1 a {
    color: #082b55 !important;

    font-size: 16px !important;
    font-weight: 800 !important;

    text-decoration: none !important;
}


main#main-content
[data-testid="store-cart-item-price"] {
    color: #14976f !important;

    font-size: 14px !important;
    font-weight: 800 !important;

    margin: 0 !important;
}


/* إخفاء أشياء غير مهمة */
main#main-content
section[data-testid^="store-cart-item-"]
.old-offers,

main#main-content
section[data-testid^="store-cart-item-"]
.item-weight-row,

main#main-content
section[data-testid^="store-cart-item-"]
salla-cart-item-offers {
    display: none !important;
}


/* =========================================
   منطقة الكمية
   ========================================= */

main#main-content
section[data-testid^="store-cart-item-"]
.border-t.border-b.border-gray-200 {
    width: auto !important;
    height: auto !important;

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

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

    border: 0 !important;
}


/* إزالة mt-5 */
main#main-content
section[data-testid^="store-cart-item-"]
.mt-5 {
    margin-top: 0 !important;
}


/* عداد الكمية */
main#main-content
section[data-testid^="store-cart-item-"]
.s-quantity-input-container {
    height: 40px !important;

    border: 1px solid #dce5ea !important;
    border-radius: 11px !important;

    background: #fff !important;

    overflow: hidden !important;
}


main#main-content
section[data-testid^="store-cart-item-"]
.s-quantity-input-button {
    width: 40px !important;
    height: 38px !important;

    background: #f7fafb !important;
    color: #082b55 !important;
}


main#main-content
section[data-testid^="store-cart-item-"]
.s-quantity-input-button:hover {
    background: #e9f8f3 !important;
    color: #14976f !important;
}


/* =========================================
   حذف المنتج
   ========================================= */

main#main-content
section[data-testid^="store-cart-item-"]
> span.absolute {
    right: 15px !important;
    left: auto !important;

    top: 50% !important;

    transform: translateY(-50%) !important;
}


main#main-content
[data-testid="store-cart-delete-item"] {
    width: 34px !important;
    height: 34px !important;

    min-width: 34px !important;
    min-height: 34px !important;

    padding: 0 !important;

    background: #fff5f5 !important;
    color: #ce5858 !important;

    border: 1px solid #f0d7d7 !important;
    border-radius: 9px !important;

    box-shadow: none !important;
}


/* =========================================
   ملخص الطلب
   ========================================= */

main#main-content
salla-cart-summary-card[data-testid="store-cart-summary"] {
    width: 100% !important;

    background: #ffffff !important;

    border: 1px solid #e1e8ec !important;
    border-radius: 17px !important;

    padding: 20px !important;

    box-shadow: 0 10px 30px rgba(8, 43, 85, .07) !important;
}


/* زر إتمام الطلب */
main#main-content
salla-cart-summary-card[data-testid="store-cart-summary"]
.s-button-element {
    width: 100% !important;

    min-height: 49px !important;
    height: 49px !important;

    background: #14976f !important;
    color: #ffffff !important;

    border: 1px solid #14976f !important;
    border-radius: 12px !important;

    font-weight: 800 !important;
}


/* =========================================
   TABLET + MOBILE
   ========================================= */

@media (max-width: 991px) {

    main#main-content > .container >
    div.pt-5.flex.flex-col.items-start.lg\:flex-row.pb-32.lg\:pb-20 {
        width: calc(100% - 24px) !important;

        flex-direction: column !important;

        gap: 18px !important;
    }


    main#main-content
    .main-content.w-full,

    main#main-content
    .sticky.top-24.w-full.lg\:w-96 {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;

        flex: none !important;

        margin: 0 !important;
    }

}


@media (max-width: 600px) {

    main#main-content
    section[data-testid^="store-cart-item-"] {
        grid-template-columns: 1fr !important;

        gap: 12px !important;

        padding: 14px 52px 14px 14px !important;
    }

}

/* =========================
   إصلاح زر السلة في الهيدر
   ========================= */

/* العنصر الأساسي */
[data-testid="store-header-cart"],
[data-testid="store-header-cart"] a,
salla-cart-summary,
.store-header salla-cart-summary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-direction: row !important;
  gap: 10px !important;
  white-space: nowrap !important;
}

/* شكل الإطار الخارجي */
[data-testid="store-header-cart"],
[data-testid="store-header-cart"] a,
.store-header salla-cart-summary {
  background: #fff !important;
  border: 1px solid #d9e2ec !important;
  border-radius: 16px !important;
  min-height: 54px !important;
  padding: 8px 14px !important;
  width: auto !important;
  min-width: 88px !important;
  box-sizing: border-box !important;
}

/* جميع العناصر الداخلية تكون أفقية */
[data-testid="store-header-cart"] *,
.store-header salla-cart-summary * {
  white-space: nowrap !important;
  line-height: 1.2 !important;
  box-sizing: border-box !important;
}

/* أي wrapper داخلي */
[data-testid="store-header-cart"] > *,
[data-testid="store-header-cart"] a > *,
.store-header salla-cart-summary > * {
  display: inline-flex !important;
  align-items: center !important;
  flex-direction: row !important;
  gap: 8px !important;
}

/* تنسيق الجزء الذي يحتوي السعر */
[data-testid="store-header-cart"] .total-price,
[data-testid="store-header-cart"] .price,
[data-testid="store-header-cart"] .amount,
[data-testid="store-header-cart"] .cart-total,
[data-testid="store-header-cart"] [class*="price"],
[data-testid="store-header-cart"] [class*="total"],
.store-header salla-cart-summary .total-price,
.store-header salla-cart-summary .price,
.store-header salla-cart-summary .amount,
.store-header salla-cart-summary .cart-total,
.store-header salla-cart-summary [class*="price"],
.store-header salla-cart-summary [class*="total"] {
  display: inline-flex !important;
  align-items: center !important;
  flex-direction: row !important;
  gap: 3px !important;
  font-weight: 700 !important;
  color: #0b2c5f !important;
}

/* رمز الريال يبقى بجانب الرقم */
[data-testid="store-header-cart"] .sicon-sar,
[data-testid="store-header-cart"] i[class*="sar"],
[data-testid="store-header-cart"] .icon-sar,
.store-header salla-cart-summary .sicon-sar,
.store-header salla-cart-summary i[class*="sar"],
.store-header salla-cart-summary .icon-sar {
  display: inline-block !important;
  vertical-align: middle !important;
  margin: 0 !important;
  font-size: 0.9em !important;
  line-height: 1 !important;
}

/* أيقونة السلة نفسها */
[data-testid="store-header-cart"] svg,
[data-testid="store-header-cart"] i[class*="shopping"],
[data-testid="store-header-cart"] i[class*="bag"],
[data-testid="store-header-cart"] i[class*="cart"],
.store-header salla-cart-summary svg,
.store-header salla-cart-summary i[class*="shopping"],
.store-header salla-cart-summary i[class*="bag"],
.store-header salla-cart-summary i[class*="cart"] {
  width: 22px !important;
  height: 22px !important;
  flex: 0 0 auto !important;
}

/* إذا كان العدد/الإشعار الأخضر موجود */
[data-testid="store-header-cart"] .badge,
[data-testid="store-header-cart"] .count,
[data-testid="store-header-cart"] [class*="badge"],
.store-header salla-cart-summary .badge,
.store-header salla-cart-summary .count,
.store-header salla-cart-summary [class*="badge"] {
  line-height: 1 !important;
}

/* على الجوال */
@media (max-width: 768px) {
  [data-testid="store-header-cart"],
  [data-testid="store-header-cart"] a,
  .store-header salla-cart-summary {
    min-height: 48px !important;
    min-width: 78px !important;
    padding: 6px 10px !important;
    gap: 8px !important;
  }

  [data-testid="store-header-cart"] svg,
  [data-testid="store-header-cart"] i[class*="shopping"],
  [data-testid="store-header-cart"] i[class*="bag"],
  [data-testid="store-header-cart"] i[class*="cart"],
  .store-header salla-cart-summary svg,
  .store-header salla-cart-summary i[class*="shopping"],
  .store-header salla-cart-summary i[class*="bag"],
  .store-header salla-cart-summary i[class*="cart"] {
    width: 20px !important;
    height: 20px !important;
  }
}





























































/* ===== إصلاح القائمة الجانبية في الجوال فقط ===== */
@media (max-width: 767px) {

  /* حاوية القائمة الجانبية */
  .mobile-menu,
  .sidebar-menu,
  .menu-sidebar,
  .nav-mobile,
  aside[aria-label="menu"],
  .s-menu,
  .main-menu {
    width: 88vw !important;
    max-width: 340px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    background: #fff !important;
    height: 100% !important;
  }

  /* رأس القائمة */
  .mobile-menu .menu-header,
  .sidebar-menu .menu-header,
  .menu-sidebar .menu-header,
  .nav-mobile .menu-header,
  aside[aria-label="menu"] .menu-header,
  .s-menu .menu-header,
  .main-menu .menu-header {
    padding: 16px 18px !important;
    border-bottom: 1px solid #e8eef3 !important;
    background: #fff !important;
  }

  /* قائمة الروابط */
  .mobile-menu ul,
  .sidebar-menu ul,
  .menu-sidebar ul,
  .nav-mobile ul,
  aside[aria-label="menu"] ul,
  .s-menu ul,
  .main-menu ul {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  /* عناصر القائمة */
  .mobile-menu li,
  .sidebar-menu li,
  .menu-sidebar li,
  .nav-mobile li,
  aside[aria-label="menu"] li,
  .s-menu li,
  .main-menu li {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-direction: row !important;
    width: 100% !important;
    min-height: 54px !important;
    padding: 0 16px !important;
    margin: 0 !important;
    border-bottom: 1px solid #edf2f7 !important;
    position: relative !important;
    flex-wrap: nowrap !important;
  }

  /* روابط القائمة */
  .mobile-menu li > a,
  .sidebar-menu li > a,
  .menu-sidebar li > a,
  .nav-mobile li > a,
  aside[aria-label="menu"] li > a,
  .s-menu li > a,
  .main-menu li > a {
    display: block !important;
    flex: 1 1 auto !important;
    width: auto !important;
    padding: 14px 0 !important;
    margin: 0 !important;
    color: #0b376d !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    text-align: right !important;
    white-space: nowrap !important;
    text-decoration: none !important;
  }

  /* أيقونات السهم أو التوسعة داخل القائمة */
  .mobile-menu li > i,
  .mobile-menu li > svg,
  .mobile-menu li > button,
  .sidebar-menu li > i,
  .sidebar-menu li > svg,
  .sidebar-menu li > button,
  .menu-sidebar li > i,
  .menu-sidebar li > svg,
  .menu-sidebar li > button,
  .nav-mobile li > i,
  .nav-mobile li > svg,
  .nav-mobile li > button,
  aside[aria-label="menu"] li > i,
  aside[aria-label="menu"] li > svg,
  aside[aria-label="menu"] li > button,
  .s-menu li > i,
  .s-menu li > svg,
  .s-menu li > button,
  .main-menu li > i,
  .main-menu li > svg,
  .main-menu li > button {
    position: static !important;
    margin: 0 !important;
    transform: none !important;
    flex: 0 0 auto !important;
    width: 18px !important;
    height: 18px !important;
    opacity: 0.7 !important;
  }

  /* إزالة الفراغات الغريبة داخل القائمة */
  .mobile-menu .menu-body,
  .sidebar-menu .menu-body,
  .menu-sidebar .menu-body,
  .nav-mobile .menu-body,
  aside[aria-label="menu"] .menu-body,
  .s-menu .menu-body,
  .main-menu .menu-body {
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
    min-height: auto !important;
  }

  /* منع الشريط الأفقي أسفل القائمة */
  .mobile-menu,
  .sidebar-menu,
  .menu-sidebar,
  .nav-mobile,
  aside[aria-label="menu"],
  .s-menu,
  .main-menu,
  .mobile-menu *,
  .sidebar-menu *,
  .menu-sidebar *,
  .nav-mobile *,
  aside[aria-label="menu"] *,
  .s-menu *,
  .main-menu * {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* تحسين زر الإغلاق */
  .mobile-menu .close,
  .sidebar-menu .close,
  .menu-sidebar .close,
  .nav-mobile .close,
  aside[aria-label="menu"] .close,
  .s-menu .close,
  .main-menu .close {
    color: #ef4444 !important;
    font-size: 24px !important;
    line-height: 1 !important;
  }

  /* لو ظهر سهم/أيقونة غريب تحت كل رابط */
  .mobile-menu li::after,
  .sidebar-menu li::after,
  .menu-sidebar li::after,
  .nav-mobile li::after,
  aside[aria-label="menu"] li::after,
  .s-menu li::after,
  .main-menu li::after {
    bottom: auto !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
  }
}

/* =========================================================
   خدماتنا الإلكترونية - عمودين على الجوال
   باستخدام ID الحقيقي للقسم
   ========================================================= */

@media (max-width: 767px) {

    /* الشبكة الحقيقية داخل قسم الخدمات */
    #masar-services > .grid,
    #masar-services .grid {
        display: grid !important;

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

        grid-auto-flow: row !important;

        gap: 10px !important;

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

        direction: rtl !important;
    }


    /* كل بطاقة */
    #masar-services
    .grid > a.banner-entry.square-photos {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;

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

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

        box-sizing: border-box !important;

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

        border-radius: 15px !important;

        grid-column: auto !important;
        grid-row: auto !important;
    }


    /* الأيقونة */
    #masar-services
    .banner-entry .lazy__bg {
        width: 52px !important;
        height: 52px !important;

        min-width: 52px !important;
        min-height: 52px !important;

        margin: 5px auto 8px !important;

        background-size: contain !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
    }


    /* اسم الخدمة */
    #masar-services
    .banner-entry h3 {
        width: 100% !important;

        margin: 5px 0 3px !important;

        color: #082b55 !important;

        font-size: 13px !important;
        font-weight: 800 !important;
        line-height: 1.45 !important;

        text-align: center !important;

        white-space: normal !important;
    }


    /* الوصف */
    #masar-services
    .masar-service-description {
        width: 100% !important;

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

        color: #7a8795 !important;

        font-size: 10.5px !important;
        line-height: 1.5 !important;

        text-align: center !important;
    }


    /* عرض التفاصيل */
    #masar-services
    .masar-service-details {
        width: 100% !important;

        margin-top: auto !important;
        padding-top: 9px !important;

        color: #14976f !important;

        font-size: 10.5px !important;
        font-weight: 800 !important;

        text-align: center !important;
    }

}

/* =========================================================
   MASAR HOW IT WORKS - MOBILE CLEAN
   1 ---> 2
          |
          v
   3 ---> 4
   ========================================================= */

@media (max-width: 767px) {

    /* الشبكة */
    #masar-how-it-works .grid {
        position: relative !important;

        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        grid-template-rows: auto auto !important;

        gap: 64px 28px !important;

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

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

        direction: ltr !important;

        overflow: visible !important;
    }


    /* كل خطوة */
    #masar-how-it-works .grid > a.banner-entry.square-photos {
        position: relative !important;
        z-index: 2 !important;

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

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

        min-height: 150px !important;

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

        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;

        overflow: visible !important;

        direction: rtl !important;
    }


    /* الترتيب */
    #masar-how-it-works .grid > a:nth-child(1) {
        grid-column: 1 !important;
        grid-row: 1 !important;
    }

    #masar-how-it-works .grid > a:nth-child(2) {
        grid-column: 2 !important;
        grid-row: 1 !important;
    }

    #masar-how-it-works .grid > a:nth-child(3) {
        grid-column: 1 !important;
        grid-row: 2 !important;
    }

    #masar-how-it-works .grid > a:nth-child(4) {
        grid-column: 2 !important;
        grid-row: 2 !important;
    }


    /* =====================================================
       تصغير الأيقونات فعليًا
       ===================================================== */

    #masar-how-it-works .banner-entry .lazy__bg {
        width: 46px !important;
        height: 46px !important;

        min-width: 46px !important;
        min-height: 46px !important;

        max-width: 46px !important;
        max-height: 46px !important;

        margin: 0 auto 8px !important;

        background-size: 82% auto !important;
        background-position: center !important;
        background-repeat: no-repeat !important;

        border-radius: 50% !important;

        position: relative !important;
        z-index: 5 !important;
    }


    /* إذا كان للصورة padding شفاف كبير */
    #masar-how-it-works .banner-entry .lazy__bg[style*="background-image"] {
        background-size: 92% auto !important;
    }


    /* العنوان */
    #masar-how-it-works .banner-entry h3 {
        width: 100% !important;

        margin: 5px 0 4px !important;

        color: #082b55 !important;

        font-size: 12.5px !important;
        font-weight: 800 !important;
        line-height: 1.45 !important;

        text-align: center !important;
    }


    /* الوصف */
    #masar-how-it-works .banner-entry p,
    #masar-how-it-works .masar-service-description {
        width: 100% !important;

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

        color: #718096 !important;

        font-size: 10px !important;
        line-height: 1.6 !important;

        text-align: center !important;
    }


    /* =====================================================
       خط متحرك من 1 إلى 2
       ===================================================== */

    #masar-how-it-works .grid > a:nth-child(1)::after {
        content: "" !important;

        position: absolute !important;

        top: 22px !important;
        left: calc(100% + 2px) !important;

        width: 42px !important;
        height: 3px !important;

        background:
            repeating-linear-gradient(
                90deg,
                #14976f 0 7px,
                transparent 7px 12px
            ) !important;

        background-size: 24px 3px !important;

        border-radius: 10px !important;

        animation: masar-dash-x .75s linear infinite !important;

        z-index: 1 !important;
    }


    /* رأس السهم 1 -> 2 */
    #masar-how-it-works .grid > a:nth-child(1)::before {
        content: "" !important;

        position: absolute !important;

        top: 18px !important;
        left: calc(100% + 39px) !important;

        width: 9px !important;
        height: 9px !important;

        border-top: 2px solid #14976f !important;
        border-right: 2px solid #14976f !important;

        transform: rotate(45deg) !important;

        z-index: 3 !important;
    }


    /* =====================================================
       مسار 2 إلى 3
       نزول ثم اتجاه لليسار
       ===================================================== */

    #masar-how-it-works .grid > a:nth-child(2)::after {
        content: "" !important;

        position: absolute !important;

        top: 48px !important;
        right: 50% !important;

        width: 92px !important;
        height: 90px !important;

        border-right: 3px dashed #14976f !important;
        border-bottom: 3px dashed #14976f !important;

        border-radius: 0 0 14px 0 !important;

        animation: masar-route-pulse .9s ease-in-out infinite alternate !important;

        z-index: 1 !important;
    }


    /* رأس السهم إلى 3 */
    #masar-how-it-works .grid > a:nth-child(2)::before {
        content: "" !important;

        position: absolute !important;

        top: 132px !important;
        right: calc(50% + 86px) !important;

        width: 9px !important;
        height: 9px !important;

        border-bottom: 2px solid #14976f !important;
        border-left: 2px solid #14976f !important;

        transform: rotate(45deg) !important;

        z-index: 3 !important;
    }


    /* =====================================================
       خط متحرك من 3 إلى 4
       ===================================================== */

    #masar-how-it-works .grid > a:nth-child(3)::after {
        content: "" !important;

        position: absolute !important;

        top: 22px !important;
        left: calc(100% + 2px) !important;

        width: 42px !important;
        height: 3px !important;

        background:
            repeating-linear-gradient(
                90deg,
                #14976f 0 7px,
                transparent 7px 12px
            ) !important;

        background-size: 24px 3px !important;

        border-radius: 10px !important;

        animation: masar-dash-x .75s linear infinite !important;

        z-index: 1 !important;
    }


    /* رأس السهم 3 -> 4 */
    #masar-how-it-works .grid > a:nth-child(3)::before {
        content: "" !important;

        position: absolute !important;

        top: 18px !important;
        left: calc(100% + 39px) !important;

        width: 9px !important;
        height: 9px !important;

        border-top: 2px solid #14976f !important;
        border-right: 2px solid #14976f !important;

        transform: rotate(45deg) !important;

        z-index: 3 !important;
    }


    /* الرابعة بدون أسهم */
    #masar-how-it-works .grid > a:nth-child(4)::before,
    #masar-how-it-works .grid > a:nth-child(4)::after {
        content: none !important;
    }


    /* =====================================================
       الحركة
       ===================================================== */

    @keyframes masar-dash-x {
        from {
            background-position: 0 0;
        }

        to {
            background-position: 24px 0;
        }
    }


    @keyframes masar-route-pulse {
        from {
            opacity: .35;
        }

        to {
            opacity: 1;
        }
    }

}

/* =========================================================
   HOW IT WORKS - CONNECTORS
   ========================================================= */

@media (max-width: 767px) {

    #masar-how-it-works .grid {
        position: relative !important;
        overflow: visible !important;
    }


    /* الحاوية التي تحمل الخطوط */
    #masar-how-it-works .masar-process-connectors {
        position: absolute !important;

        inset: 0 !important;

        width: 100% !important;
        height: 100% !important;

        pointer-events: none !important;

        z-index: 1 !important;
    }


    /* الخط العام */
    #masar-how-it-works .masar-process-line {
        position: absolute !important;

        display: block !important;

        pointer-events: none !important;
    }


    /* =========================================
       1 → 2
       ========================================= */

    #masar-how-it-works .line-1-2 {
        top: 32px !important;

        left: calc(50% - 23px) !important;

        width: 46px !important;
        height: 3px !important;

        overflow: visible !important;

        background:
            repeating-linear-gradient(
                90deg,
                #14976f 0 7px,
                transparent 7px 12px
            ) !important;

        background-size: 24px 3px !important;

        animation:
            masar-process-horizontal
            .7s
            linear
            infinite !important;
    }


    /* رأس السهم */
    #masar-how-it-works .line-1-2 i {
        position: absolute !important;

        right: -1px !important;
        top: -4px !important;

        width: 10px !important;
        height: 10px !important;

        border-top: 2px solid #14976f !important;
        border-right: 2px solid #14976f !important;

        transform: rotate(45deg) !important;
    }


    /* =========================================
       2 → 3
       نزول ثم اتجاه لليسار
       ========================================= */

    #masar-how-it-works .line-2-3 {
        top: 46px !important;

        left: calc(25% - 2px) !important;

        width: 50% !important;
        height: calc(50% + 8px) !important;

        border-right: 3px dashed #14976f !important;
        border-bottom: 3px dashed #14976f !important;

        border-radius: 0 0 14px 0 !important;

        opacity: .8 !important;

        animation:
            masar-process-route
            .9s
            ease-in-out
            infinite
            alternate !important;
    }


    #masar-how-it-works .line-2-3 i {
        position: absolute !important;

        left: -2px !important;
        bottom: -5px !important;

        width: 10px !important;
        height: 10px !important;

        border-left: 2px solid #14976f !important;
        border-bottom: 2px solid #14976f !important;

        transform: rotate(45deg) !important;
    }


    /* =========================================
       3 → 4
       ========================================= */

    #masar-how-it-works .line-3-4 {
        bottom: 122px !important;

        left: calc(50% - 23px) !important;

        width: 46px !important;
        height: 3px !important;

        overflow: visible !important;

        background:
            repeating-linear-gradient(
                90deg,
                #14976f 0 7px,
                transparent 7px 12px
            ) !important;

        background-size: 24px 3px !important;

        animation:
            masar-process-horizontal
            .7s
            linear
            infinite !important;
    }


    #masar-how-it-works .line-3-4 i {
        position: absolute !important;

        right: -1px !important;
        top: -4px !important;

        width: 10px !important;
        height: 10px !important;

        border-top: 2px solid #14976f !important;
        border-right: 2px solid #14976f !important;

        transform: rotate(45deg) !important;
    }


    /* =========================================
       الحركة
       ========================================= */

    @keyframes masar-process-horizontal {

        from {
            background-position: 0 0;
        }

        to {
            background-position: 24px 0;
        }

    }


    @keyframes masar-process-route {

        from {
            opacity: .35;
        }

        to {
            opacity: 1;
        }

    }

}

/* =========================================================
   قسم الإحصائيات - عمودين على الجوال
   ========================================================= */

@media (max-width: 767px) {

    /* القسم الثالث من square photos = الإحصائيات */
    section[data-testid="store-home-square-photos"]:nth-of-type(3)
    .grid {
        display: grid !important;

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

        grid-auto-flow: row !important;

        gap: 10px !important;

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

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

        direction: rtl !important;
    }


    /* كل بطاقة */
    section[data-testid="store-home-square-photos"]:nth-of-type(3)
    .grid > a.banner-entry.square-photos {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;

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

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

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

        text-align: center !important;

        box-sizing: border-box !important;
    }


    /* الأيقونة */
    section[data-testid="store-home-square-photos"]:nth-of-type(3)
    .banner-entry .lazy__bg {
        width: 52px !important;
        height: 52px !important;

        min-width: 52px !important;
        min-height: 52px !important;

        margin: 0 auto 7px !important;

        background-size: contain !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
    }


    /* الرقم / العنوان */
    section[data-testid="store-home-square-photos"]:nth-of-type(3)
    .banner-entry h3 {
        margin: 4px 0 2px !important;

        font-size: 18px !important;
        font-weight: 800 !important;
        line-height: 1.3 !important;

        text-align: center !important;
    }


    /* الوصف */
    section[data-testid="store-home-square-photos"]:nth-of-type(3)
    .banner-entry p,
    section[data-testid="store-home-square-photos"]:nth-of-type(3)
    .masar-service-description {
        margin: 0 !important;
        padding: 0 2px !important;

        font-size: 10.5px !important;
        line-height: 1.5 !important;

        text-align: center !important;
    }

}

/* =========================================================
   MASAR STATS - MOBILE 2x2
   ========================================================= */

@media (max-width: 767px) {

    /* الشبكة */
    #masar-stats > .grid,
    #masar-stats .grid {
        display: grid !important;

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

        grid-auto-flow: row !important;

        gap: 0 !important;

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

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

        direction: rtl !important;

        box-sizing: border-box !important;
    }


    /* كل عنصر */
    #masar-stats
    .grid > a.banner-entry.square-photos {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;

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

        margin: 0 !important;
        padding: 15px 8px !important;

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

        text-align: center !important;

        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;

        grid-column: auto !important;
        grid-row: auto !important;

        box-sizing: border-box !important;
    }


    /* فواصل عمودية بين العمودين */
    #masar-stats
    .grid > a:nth-child(odd) {
        border-left: 1px solid rgba(255, 255, 255, .20) !important;
    }


    /* فاصل أفقي بين الصفين */
    #masar-stats
    .grid > a:nth-child(1),
    #masar-stats
    .grid > a:nth-child(2) {
        border-bottom: 1px solid rgba(255, 255, 255, .20) !important;
    }


    /* إلغاء أي background separator قديم */
    #masar-stats
    .grid > a {
        background-image: none !important;
    }


    /* الأيقونة */
    #masar-stats
    .banner-entry .lazy__bg {
        width: 45px !important;
        height: 45px !important;

        min-width: 45px !important;
        min-height: 45px !important;

        max-width: 45px !important;
        max-height: 45px !important;

        margin: 0 auto 7px !important;

        background-size: contain !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
    }


    /* القيمة / العنوان */
    #masar-stats
    .banner-entry h3 {
        margin: 3px 0 !important;

        font-size: 17px !important;
        font-weight: 800 !important;
        line-height: 1.3 !important;

        text-align: center !important;
    }


    /* الوصف */
    #masar-stats
    .banner-entry p,
    #masar-stats
    .masar-service-description {
        margin: 0 !important;
        padding: 0 2px !important;

        font-size: 10px !important;
        line-height: 1.5 !important;

        text-align: center !important;
    }

}
@media (max-width: 767px) {

    /* البطاقة نفسها */
    #masar-stats
    .grid > a.banner-entry.square-photos {
        display: flex !important;
        flex-direction: column !important;

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

        text-align: center !important;

        padding-left: 8px !important;
        padding-right: 8px !important;
    }


    /* الأيقونة */
    #masar-stats
    .banner-entry .lazy__bg {
        display: block !important;

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

        align-self: center !important;

        left: auto !important;
        right: auto !important;
        transform: none !important;
    }


    /* العنوان / الرقم */
    #masar-stats
    .banner-entry h3,
    #masar-stats
    .banner-entry .text-with-border {
        display: block !important;

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

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

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

        text-align: center !important;

        align-self: center !important;

        left: auto !important;
        right: auto !important;

        transform: none !important;
    }


    /* الوصف */
    #masar-stats
    .banner-entry p,
    #masar-stats
    .banner-entry .masar-service-description {
        display: block !important;

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

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

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

        text-align: center !important;

        align-self: center !important;

        left: auto !important;
        right: auto !important;

        transform: none !important;
    }


    /* إلغاء أي محاذاة RTL داخلية قديمة */
    #masar-stats
    .banner-entry > * {
        align-self: center !important;
    }


    /* لو العنوان داخله span */
    #masar-stats
    .banner-entry h3 span,
    #masar-stats
    .banner-entry .text-with-border span {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
    }

}

@media (max-width: 767px) {

    /* وصف بطاقات الإحصائيات */
    #masar-stats
    .masar-service-description,

    #masar-stats
    .banner-entry::before,

    #masar-stats
    .banner-entry::after,

    #masar-stats
    .text-with-border::before,

    #masar-stats
    .text-with-border::after {
        text-align: center !important;

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

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

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

        left: auto !important;
        right: auto !important;

        transform: none !important;

        align-self: center !important;
    }


    /* إذا الوصف مضاف كنص داخل pseudo-element */
    #masar-stats
    .banner-entry::before,
    #masar-stats
    .banner-entry::after {
        display: block !important;

        position: static !important;

        font-size: 10.5px !important;
        line-height: 1.5 !important;

        color: #ffffff !important;

        opacity: .95 !important;
    }


    /* لو الوصف داخل عنصر حقيقي */
    #masar-stats
    .masar-service-description {
        display: block !important;

        font-size: 10.5px !important;
        line-height: 1.5 !important;

        color: #ffffff !important;

        opacity: .95 !important;
    }

}






/* =========================================================
   الجهات الرسمية - سلايدر جوال ثابت الخلفية
   ========================================================= */

@media (max-width: 767px) {

    #masar-official-entities {
        overflow: hidden !important;
    }

    /* المستطيل الأبيض ثابت */
    #masar-official-entities .grid {
        position: relative !important;

        display: block !important;

        width: calc(100% - 28px) !important;
        max-width: 100% !important;

        margin: 18px auto 0 !important;
        padding: 18px 0 !important;

        background: #ffffff !important;

        border: 1px solid #e3eaee !important;
        border-radius: 18px !important;

        overflow: hidden !important;

        box-shadow: 0 7px 22px rgba(8, 43, 85, 0.04) !important;
    }


    /* المسار المتحرك */
    #masar-official-entities .masar-entities-marquee {
        display: flex !important;
        align-items: center !important;

        width: max-content !important;

        will-change: transform !important;

        transform: translate3d(0,0,0);
    }


    /* كل مجموعة شعارات */
    #masar-official-entities .masar-entities-group {
        display: flex !important;
        align-items: center !important;

        flex: 0 0 auto !important;

        gap: 24px !important;

        padding-left: 12px !important;
        padding-right: 12px !important;
    }


    /* إزالة شكل البطاقة تمامًا */
    #masar-official-entities
    .banner-entry.square-photos {
        flex: 0 0 135px !important;

        width: 135px !important;
        height: 90px !important;

        min-width: 135px !important;
        max-width: 135px !important;

        min-height: 90px !important;
        max-height: 90px !important;

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

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

        background: transparent !important;

        border: 0 !important;
        outline: 0 !important;
        border-radius: 0 !important;

        box-shadow: none !important;

        overflow: visible !important;
    }


    /* الشعار نفسه */
    #masar-official-entities
    .banner-entry .lazy__bg {
        width: 125px !important;
        height: 80px !important;

        min-width: 125px !important;
        min-height: 80px !important;

        max-width: 125px !important;
        max-height: 80px !important;

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

        background-size: contain !important;
        background-position: center !important;
        background-repeat: no-repeat !important;

        background-color: transparent !important;

        border: 0 !important;
        outline: 0 !important;
        border-radius: 0 !important;

        box-shadow: none !important;
    }


    /* إزالة أي تأثير Hover */
    #masar-official-entities
    .banner-entry:hover {
        transform: none !important;
        box-shadow: none !important;
        border: 0 !important;
    }


    /* لا نحتاج النصوص */
    #masar-official-entities
    .banner-entry h3,
    #masar-official-entities
    .banner-entry p,
    #masar-official-entities
    .banner-entry::before,
    #masar-official-entities
    .banner-entry::after {
        display: none !important;
        content: none !important;
    }

}

/* =========================================================
   الجهات الرسمية - سلايدر بسيط وآمن على الجوال
   الخلفية ثابتة والشعارات أفقية فقط
   ========================================================= */

@media (max-width: 767px) {

    #masar-official-entities {
        overflow: hidden !important;
    }

    /* الحاوية البيضاء الأصلية */
    #masar-official-entities .grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;

        gap: 18px !important;

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

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

        background: #ffffff !important;

        border: 1px solid #e2e9ed !important;
        border-radius: 18px !important;

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

        scroll-behavior: smooth !important;
        scrollbar-width: none !important;

        direction: ltr !important;

        box-sizing: border-box !important;
    }

    #masar-official-entities .grid::-webkit-scrollbar {
        display: none !important;
    }

    /* كل شعار */
    #masar-official-entities
    .grid > a.banner-entry.square-photos {
        flex: 0 0 calc(50% - 9px) !important;

        width: calc(50% - 9px) !important;
        min-width: calc(50% - 9px) !important;
        max-width: calc(50% - 9px) !important;

        height: 95px !important;
        min-height: 95px !important;

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

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

        background: transparent !important;

        border: 0 !important;
        border-radius: 0 !important;

        box-shadow: none !important;

        overflow: hidden !important;

        box-sizing: border-box !important;
    }

    /* صورة الشعار */
    #masar-official-entities
    .banner-entry .lazy__bg {
        width: 100% !important;
        height: 78px !important;

        min-width: 0 !important;
        min-height: 78px !important;

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

        background-size: contain !important;
        background-position: center !important;
        background-repeat: no-repeat !important;

        background-color: transparent !important;

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

    /* إخفاء النصوص */
    #masar-official-entities
    .banner-entry h3,
    #masar-official-entities
    .banner-entry p {
        display: none !important;
    }
}


@media (max-width: 767px) {

    /* =========================================
       الفوتر الرئيسي
       ========================================= */

    footer[data-testid="store-footer"]
    .store-footer__inner > .container.grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;

        gap: 28px !important;

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

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

        box-sizing: border-box !important;
    }


    /* كل عمود */
    footer[data-testid="store-footer"]
    .store-footer__inner > .container.grid > * {
        width: 100% !important;
        max-width: 100% !important;

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

        text-align: center !important;
    }


    /* =========================================
       العمود الأول
       ========================================= */

    footer[data-testid="store-footer"]
    .store-footer__inner > .container.grid
    > div:first-child {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;

        text-align: center !important;
    }


    /* الشعار / الاسم */
    footer[data-testid="store-footer"]
    .store-footer__inner > .container.grid
    > div:first-child > a {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;

        width: 100% !important;

        margin: 0 auto 10px !important;
    }


    /* العناوين */
    footer[data-testid="store-footer"] h3,
    footer[data-testid="store-footer"] h4 {
        width: 100% !important;

        margin: 0 0 12px !important;

        color: #082b55 !important;

        font-size: 18px !important;
        font-weight: 800 !important;

        text-align: center !important;
    }


    /* النصوص */
    footer[data-testid="store-footer"] p {
        max-width: 320px !important;

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

        font-size: 13px !important;
        line-height: 1.9 !important;

        text-align: center !important;
    }


    /* =========================================
       إظهار السوشيال على الجوال
       ========================================= */

    footer[data-testid="store-footer"]
    .hidden.lg\:block {
        display: block !important;

        width: 100% !important;

        margin: 14px 0 0 !important;
    }


    footer[data-testid="store-footer"]
    salla-social[data-testid="store-footer-social"] {
        display: flex !important;
        justify-content: center !important;

        width: 100% !important;

        margin: 0 !important;
    }


    footer[data-testid="store-footer"]
    .s-social-list {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;

        gap: 12px !important;

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


    /* =========================================
       روابط الفوتر
       ========================================= */

    footer[data-testid="store-footer"] ul {
        margin: 0 !important;
        padding: 0 !important;

        list-style: none !important;

        text-align: center !important;
    }


    footer[data-testid="store-footer"] ul li {
        margin-bottom: 10px !important;

        text-align: center !important;
    }


    footer[data-testid="store-footer"] ul li a {
        display: inline-block !important;

        font-size: 14px !important;

        text-align: center !important;
    }


    /* =========================================
       تواصل معنا
       ========================================= */

    footer[data-testid="store-footer"]
    a[href^="tel:"] {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;

        gap: 8px !important;

        margin: 0 auto !important;

        direction: ltr !important;
    }


    /* =========================================
       التطبيقات
       ========================================= */

    footer[data-testid="store-footer"]
    salla-apps-icons[data-testid="store-footer-apps"] {
        display: none !important;
    }


    /* =========================================
       الشريط السفلي
       ========================================= */

    footer[data-testid="store-footer"]
    .md\:flex.items-center.justify-between {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;

        gap: 14px !important;

        width: calc(100% - 28px) !important;

        margin: 26px auto 0 !important;
        padding: 18px 0 58px !important;

        border-top: 1px solid #e2e8ec !important;

        text-align: center !important;
    }


    footer[data-testid="store-footer"]
    .md\:flex.items-center.justify-between > * {
        margin-left: auto !important;
        margin-right: auto !important;

        text-align: center !important;
    }


    /* =========================================
       Solar System
       ========================================= */

    footer[data-testid="store-footer"]
    .masar-developer-credit {
        position: absolute !important;

        left: 50% !important;
        bottom: 16px !important;

        transform: translateX(-50%) !important;

        width: 100% !important;

        margin: 0 !important;

        font-size: 12px !important;

        text-align: center !important;
    }

}


/* =========================================================
   MASAR HEADER SEARCH - ICON STYLE
   ========================================================= */

.masar-header-search {
    position: relative !important;

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

    width: 44px !important;
    height: 44px !important;

    margin-inline: 5px !important;

    flex: 0 0 44px !important;
}


/* مكوّن البحث */
.masar-header-search salla-search,
.masar-header-search .s-search-modal {
    position: static !important;

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

    width: 44px !important;
    height: 44px !important;
}


/* الحاوية */
.masar-header-search .s-search-container {
    position: relative !important;

    width: 44px !important;
    height: 44px !important;

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

    overflow: visible !important;
}


/* غلاف الـ input */
.masar-header-search .s-search-input-wrapper {
    position: static !important;

    width: 44px !important;
    height: 44px !important;

    padding: 0 !important;

    background: #ffffff !important;

    border: 1px solid #dce5ea !important;
    border-radius: 13px !important;

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

    transition: .2s ease !important;

    overflow: visible !important;
}


/* إخفاء حقل الكتابة افتراضياً */
.masar-header-search input[type="search"] {
    position: absolute !important;

    top: calc(100% + 12px) !important;
    left: 0 !important;

    width: 260px !important;
    height: 46px !important;

    padding: 0 16px 0 42px !important;

    background: #ffffff !important;
    color: #082b55 !important;

    border: 1px solid #dce5ea !important;
    border-radius: 12px !important;

    box-shadow: 0 12px 30px rgba(8, 43, 85, .12) !important;

    font-size: 14px !important;

    opacity: 0 !important;
    visibility: hidden !important;

    pointer-events: none !important;

    transform: translateY(-6px) !important;

    transition:
        opacity .2s ease,
        transform .2s ease,
        visibility .2s ease !important;

    z-index: 9999 !important;
}


/* إظهار الحقل عند التركيز */
.masar-header-search:focus-within input[type="search"] {
    opacity: 1 !important;
    visibility: visible !important;

    pointer-events: auto !important;

    transform: translateY(0) !important;
}


/* أيقونة البحث */
.masar-header-search .s-search-icon-wrap {
    position: static !important;

    width: 44px !important;
    height: 44px !important;

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

    color: #082b55 !important;

    cursor: pointer !important;

    z-index: 2 !important;
}


.masar-header-search .s-search-icon-wrap svg,
.masar-header-search .s-search-icon-wrap i {
    width: 19px !important;
    height: 19px !important;

    font-size: 19px !important;

    color: #082b55 !important;
}


/* Hover */
.masar-header-search .s-search-input-wrapper:hover {
    background: #eaf8f4 !important;

    border-color: #14976f !important;
}


/* نتائج البحث */
.masar-header-search .s-search-results {
    position: absolute !important;

    top: calc(100% + 62px) !important;
    left: 0 !important;

    width: 320px !important;
    max-height: 380px !important;

    background: #ffffff !important;

    border: 1px solid #e1e8ec !important;
    border-radius: 13px !important;

    box-shadow: 0 14px 35px rgba(8, 43, 85, .14) !important;

    overflow-y: auto !important;

    z-index: 9999 !important;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .masar-header-search,
    .masar-header-search salla-search,
    .masar-header-search .s-search-modal,
    .masar-header-search .s-search-container {
        width: 40px !important;
        height: 40px !important;

        flex-basis: 40px !important;
    }

    .masar-header-search .s-search-input-wrapper {
        width: 40px !important;
        height: 40px !important;

        border-radius: 11px !important;
    }

    .masar-header-search .s-search-icon-wrap {
        width: 40px !important;
        height: 40px !important;
    }

    .masar-header-search input[type="search"] {
        position: fixed !important;

        top: 78px !important;
        left: 14px !important;
        right: 14px !important;

        width: calc(100% - 28px) !important;

        z-index: 10000 !important;
    }

    .masar-header-search .s-search-results {
        position: fixed !important;

        top: 132px !important;
        left: 14px !important;
        right: 14px !important;

        width: calc(100% - 28px) !important;

        z-index: 10000 !important;
    }

}

/* =========================================================
   HEADER FINAL LAYOUT
   بحث قابل للكتابة + ضغط مساحة القائمة
   ========================================================= */

/* الحاوية العامة للهيدر */
header[data-testid="store-header"]
#mainnav .container > .flex {
    gap: 10px !important;
}


/* =========================================================
   تقليل المسافات بين روابط القائمة
   ========================================================= */

header[data-testid="store-header"]
.main-menu {
    gap: 18px !important;
}

header[data-testid="store-header"]
.main-menu > li > a {
    padding-left: 4px !important;
    padding-right: 4px !important;

    font-size: 14px !important;

    white-space: nowrap !important;
}


/* =========================================================
   منطقة الأكشنز: البحث + السلة + الدخول
   ========================================================= */

header[data-testid="store-header"]
#mainnav .flex.items-center.justify-end {
    display: flex !important;
    align-items: center !important;

    gap: 7px !important;

    flex-shrink: 0 !important;
}


/* =========================================================
   البحث
   ========================================================= */

header[data-testid="store-header"]
.masar-header-search {
    order: 1 !important;

    position: relative !important;

    width: 190px !important;
    height: 44px !important;

    min-width: 190px !important;
    max-width: 190px !important;

    flex: 0 0 190px !important;

    margin: 0 !important;
}


/* المكونات الداخلية */
header[data-testid="store-header"]
.masar-header-search salla-search,

header[data-testid="store-header"]
.masar-header-search .s-search-modal,

header[data-testid="store-header"]
.masar-header-search .s-search-container,

header[data-testid="store-header"]
.masar-header-search .s-search-input-wrapper {
    position: relative !important;

    width: 100% !important;
    height: 44px !important;

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

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

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

    background: #f8fafc !important;

    border: 1px solid #dce5ea !important;
    border-radius: 13px !important;

    box-shadow: none !important;

    overflow: hidden !important;
}


/* حقل الكتابة الحقيقي */
header[data-testid="store-header"]
.masar-header-search input[type="search"] {
    position: static !important;

    display: block !important;

    width: 100% !important;
    height: 42px !important;

    min-width: 0 !important;

    padding: 0 40px 0 12px !important;

    margin: 0 !important;

    background: transparent !important;
    color: #082b55 !important;

    border: 0 !important;
    outline: 0 !important;

    box-shadow: none !important;

    opacity: 1 !important;
    visibility: visible !important;

    pointer-events: auto !important;

    transform: none !important;

    font-size: 13px !important;

    z-index: 2 !important;
}


/* Placeholder */
header[data-testid="store-header"]
.masar-header-search input[type="search"]::placeholder {
    color: #8996a5 !important;
    opacity: 1 !important;
}


/* أيقونة البحث */
header[data-testid="store-header"]
.masar-header-search .s-search-icon-wrap {
    position: absolute !important;

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

    top: 50% !important;
    transform: translateY(-50%) !important;

    width: 20px !important;
    height: 20px !important;

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

    color: #77889a !important;

    z-index: 3 !important;

    pointer-events: none !important;
}


/* Focus */
header[data-testid="store-header"]
.masar-header-search .s-search-input-wrapper:focus-within {
    background: #ffffff !important;

    border-color: #14976f !important;

    box-shadow:
        0 0 0 3px rgba(20, 151, 111, .08) !important;
}


/* =========================================================
   نتائج البحث
   ========================================================= */

header[data-testid="store-header"]
.masar-header-search .s-search-results {
    position: absolute !important;

    top: calc(100% + 8px) !important;
    right: 0 !important;
    left: auto !important;

    width: 330px !important;
    max-height: 420px !important;

    background: #ffffff !important;

    border: 1px solid #e0e7eb !important;
    border-radius: 14px !important;

    box-shadow:
        0 14px 35px rgba(8, 43, 85, .14) !important;

    overflow-y: auto !important;

    z-index: 9999 !important;
}


/* =========================================================
   السلة + الدخول
   ========================================================= */

header[data-testid="store-header"]
[data-testid="store-header-cart"] {
    order: 2 !important;
    margin: 0 !important;
}

header[data-testid="store-header"]
[data-testid="store-header-user-menu"] {
    order: 3 !important;
    margin: 0 !important;
}


/* =========================================================
   شاشات لابتوب أصغر
   ========================================================= */

@media (max-width: 1200px) {

    header[data-testid="store-header"]
    .main-menu {
        gap: 12px !important;
    }

    header[data-testid="store-header"]
    .main-menu > li > a {
        font-size: 13px !important;
    }

    header[data-testid="store-header"]
    .masar-header-search {
        width: 160px !important;
        min-width: 160px !important;
        max-width: 160px !important;

        flex-basis: 160px !important;
    }

}

/* =========================================================
   تحريك قائمة الهيدر باتجاه الشعار - Desktop
   ========================================================= */

@media (min-width: 768px) {

    /* القائمة الفعلية */
    header[data-testid="store-header"]
    nav#mobile-menu > ul.main-menu {
        position: relative !important;

        /* تحريك القائمة بالكامل لليمين */
        transform: translateX(65px) !important;

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

        gap: 12px !important;

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

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


    /* عناصر قائمة سطح المكتب */
    header[data-testid="store-header"]
    nav#mobile-menu > ul.main-menu
    > li.root-level {
        margin: 0 !important;
        padding: 0 !important;

        width: auto !important;
        min-width: auto !important;

        flex: 0 0 auto !important;
    }


    /* الروابط */
    header[data-testid="store-header"]
    nav#mobile-menu > ul.main-menu
    > li.root-level > a {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;

        padding: 10px 5px !important;

        font-size: 14px !important;
        white-space: nowrap !important;
    }

}


/* شاشات اللابتوب */
@media (min-width: 768px) and (max-width: 1300px) {

    header[data-testid="store-header"]
    nav#mobile-menu > ul.main-menu {
        transform: translateX(80px) !important;
        gap: 7px !important;
    }

    header[data-testid="store-header"]
    nav#mobile-menu > ul.main-menu
    > li.root-level > a {
        font-size: 13px !important;
        padding-left: 3px !important;
        padding-right: 3px !important;
    }

}


/* =========================================================
   MOBILE HEADER + HORIZONTAL OVERFLOW FIX
   ========================================================= */

@media (max-width: 767px) {

    /* منع الموقع كله من الانزياح يمين */
    html,
    body {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    body#app,
    .app-inner,
    main#main-content,
    header[data-testid="store-header"],
    footer[data-testid="store-footer"] {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }


    /* =========================
       الهيدر
       ========================= */

    header[data-testid="store-header"]
    #mainnav {
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
    }

    header[data-testid="store-header"]
    #mainnav .inner,
    header[data-testid="store-header"]
    #mainnav .container {
        width: 100% !important;
        max-width: 100% !important;

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

        box-sizing: border-box !important;
    }


    /* الصف الرئيسي */
    header[data-testid="store-header"]
    #mainnav .container > .flex {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;

        gap: 6px !important;

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

        min-width: 0 !important;
    }


    /* =========================
       الشعار
       ========================= */

    header[data-testid="store-header"]
    #mainnav a[href="https://msar-sa.com/"] img,
    header[data-testid="store-header"]
    #mainnav a[href="/"] img {
        width: 42px !important;
        height: 42px !important;

        min-width: 42px !important;
        max-width: 42px !important;

        object-fit: contain !important;
    }


    /* =========================
       منطقة البحث والسلة والدخول
       ========================= */

    header[data-testid="store-header"]
    #mainnav .flex.items-center.justify-end {
        display: flex !important;
        align-items: center !important;

        gap: 5px !important;

        min-width: 0 !important;
        max-width: calc(100% - 52px) !important;

        flex: 1 1 auto !important;
    }


    /* =========================
       البحث - أيقونة فقط
       ========================= */

    header[data-testid="store-header"]
    .masar-header-search {
        width: 38px !important;
        height: 38px !important;

        min-width: 38px !important;
        max-width: 38px !important;

        flex: 0 0 38px !important;

        margin: 0 !important;
    }

    header[data-testid="store-header"]
    .masar-header-search salla-search,
    header[data-testid="store-header"]
    .masar-header-search .s-search-modal,
    header[data-testid="store-header"]
    .masar-header-search .s-search-container,
    header[data-testid="store-header"]
    .masar-header-search .s-search-input-wrapper {
        width: 38px !important;
        height: 38px !important;

        min-width: 38px !important;
        max-width: 38px !important;

        border-radius: 11px !important;
    }

    header[data-testid="store-header"]
    .masar-header-search input[type="search"] {
        display: none !important;
    }

    header[data-testid="store-header"]
    .masar-header-search .s-search-icon-wrap {
        position: absolute !important;

        right: 50% !important;
        top: 50% !important;

        transform: translate(50%, -50%) !important;

        width: 18px !important;
        height: 18px !important;
    }


    /* =========================
       السلة
       ========================= */

    header[data-testid="store-header"]
    [data-testid="store-header-cart"] {
        min-width: 54px !important;
        max-width: 60px !important;

        height: 38px !important;

        margin: 0 !important;

        padding: 0 6px !important;

        flex: 0 0 auto !important;
    }

    header[data-testid="store-header"]
    [data-testid="store-header-cart"] a {
        min-width: 0 !important;
        max-width: 100% !important;

        height: 38px !important;

        padding: 0 !important;

        gap: 4px !important;

        font-size: 11px !important;
    }


    /* =========================
       تسجيل الدخول
       ========================= */

    header[data-testid="store-header"]
    [data-testid="store-header-user-menu"] {
        flex: 0 0 auto !important;
        margin: 0 !important;
    }

    header[data-testid="store-header"]
    [data-testid="store-header-user-menu"] a,
    header[data-testid="store-header"]
    [data-testid="store-header-user-menu"] button {
        min-height: 38px !important;
        height: 38px !important;

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

        font-size: 12px !important;

        border-radius: 10px !important;

        white-space: nowrap !important;
    }


    /* =========================
       منع أي عنصر من تجاوز الشاشة
       ========================= */

    img,
    video,
    iframe,
    svg,
    canvas {
        max-width: 100% !important;
    }

    .container,
    section,
    .grid,
    .flex,
    .swiper,
    .swiper-wrapper {
        max-width: 100% !important;
    }

}


/* =========================================================
   MASAR MOBILE SEARCH POPUP
   ========================================================= */

@media (max-width: 767px) {

    .masar-mobile-search-popup {
        position: fixed !important;
        inset: 0 !important;

        z-index: 999999 !important;

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

        padding: 88px 16px 16px !important;

        opacity: 0 !important;
        visibility: hidden !important;

        pointer-events: none !important;

        transition:
            opacity .2s ease,
            visibility .2s ease !important;
    }


    .masar-mobile-search-popup.is-open {
        opacity: 1 !important;
        visibility: visible !important;

        pointer-events: auto !important;
    }


    /* الخلفية */
    .masar-mobile-search-overlay {
        position: absolute !important;
        inset: 0 !important;

        background: rgba(8, 43, 85, .32) !important;

        backdrop-filter: blur(4px) !important;
        -webkit-backdrop-filter: blur(4px) !important;
    }


    /* الفورم */
    .masar-mobile-search-box {
        position: relative !important;
        z-index: 2 !important;

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

        padding: 22px 18px 18px !important;

        background: #ffffff !important;

        border: 1px solid #e1e8ec !important;
        border-radius: 18px !important;

        box-shadow:
            0 18px 45px rgba(8, 43, 85, .18) !important;

        transform: translateY(-12px) scale(.98) !important;

        transition: transform .22s ease !important;
    }


    .masar-mobile-search-popup.is-open
    .masar-mobile-search-box {
        transform: translateY(0) scale(1) !important;
    }


    /* إغلاق */
    .masar-mobile-search-close {
        position: absolute !important;

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

        width: 34px !important;
        height: 34px !important;

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

        padding: 0 !important;

        background: #f7fafb !important;
        color: #cf5757 !important;

        border: 1px solid #e5eaee !important;
        border-radius: 10px !important;

        font-size: 22px !important;
        line-height: 1 !important;

        cursor: pointer !important;
    }


    /* العنوان */
    .masar-mobile-search-box h3 {
        margin: 0 0 5px !important;

        color: #082b55 !important;

        font-size: 19px !important;
        font-weight: 800 !important;

        text-align: right !important;
    }


    .masar-mobile-search-box > p {
        margin: 0 0 18px !important;

        color: #7a8795 !important;

        font-size: 12.5px !important;
        line-height: 1.7 !important;

        text-align: right !important;
    }


    /* الحقل */
    .masar-mobile-search-field {
        position: relative !important;

        width: 100% !important;

        margin-bottom: 10px !important;
    }


    .masar-mobile-search-field input {
        width: 100% !important;
        height: 48px !important;

        padding: 0 42px 0 14px !important;

        background: #f8fafc !important;
        color: #082b55 !important;

        border: 1px solid #dce5ea !important;
        border-radius: 12px !important;

        outline: none !important;

        font-size: 14px !important;

        box-sizing: border-box !important;
    }


    .masar-mobile-search-field input:focus {
        background: #ffffff !important;

        border-color: #14976f !important;

        box-shadow:
            0 0 0 3px rgba(20, 151, 111, .08) !important;
    }


    .masar-mobile-search-icon {
        position: absolute !important;

        right: 14px !important;
        top: 50% !important;

        transform: translateY(-50%) !important;

        font-size: 16px !important;

        pointer-events: none !important;
    }


    /* زر البحث */
    .masar-mobile-search-submit {
        width: 100% !important;
        height: 46px !important;

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

        background: #14976f !important;
        color: #ffffff !important;

        border: 1px solid #14976f !important;
        border-radius: 12px !important;

        font-size: 14px !important;
        font-weight: 800 !important;

        cursor: pointer !important;
    }


    .masar-mobile-search-submit:active {
        transform: scale(.99) !important;
    }

}


/* =========================================================
   FIX SALLA USER MENU CLICK AREA
   ========================================================= */

header[data-testid="store-header"]
salla-user-menu[data-testid="store-header-user-menu"] {
    position: relative !important;

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

    min-width: 118px !important;
    height: 44px !important;

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

    cursor: pointer !important;

    pointer-events: auto !important;

    z-index: 10 !important;
}


/* منطقة الضغط الحقيقية */
header[data-testid="store-header"]
salla-user-menu[data-testid="store-header-user-menu"]
.s-user-menu-wrapper {
    position: absolute !important;

    inset: 0 !important;

    width: 100% !important;
    height: 100% !important;

    display: block !important;

    cursor: pointer !important;

    pointer-events: auto !important;

    z-index: 5 !important;
}


/* لو نص تسجيل الدخول مضاف بـ pseudo element */
header[data-testid="store-header"]
salla-user-menu[data-testid="store-header-user-menu"]::after {
    pointer-events: none !important;
}


/* الجوال */
@media (max-width: 767px) {

    header[data-testid="store-header"]
    salla-user-menu[data-testid="store-header-user-menu"] {
        min-width: 105px !important;
        height: 40px !important;
    }

}
/* =========================================================
   FIX SALLA USER MENU CLICK AREA
   ========================================================= */

header[data-testid="store-header"]
salla-user-menu[data-testid="store-header-user-menu"] {
    position: relative !important;

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

    min-width: 118px !important;
    height: 44px !important;

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

    cursor: pointer !important;

    pointer-events: auto !important;

    z-index: 10 !important;
}


/* منطقة الضغط الحقيقية */
header[data-testid="store-header"]
salla-user-menu[data-testid="store-header-user-menu"]
.s-user-menu-wrapper {
    position: absolute !important;

    inset: 0 !important;

    width: 100% !important;
    height: 100% !important;

    display: block !important;

    cursor: pointer !important;

    pointer-events: auto !important;

    z-index: 5 !important;
}


/* لو نص تسجيل الدخول مضاف بـ pseudo element */
header[data-testid="store-header"]
salla-user-menu[data-testid="store-header-user-menu"]::after {
    pointer-events: none !important;
}


/* الجوال */
@media (max-width: 767px) {

    header[data-testid="store-header"]
    salla-user-menu[data-testid="store-header-user-menu"] {
        min-width: 105px !important;
        height: 40px !important;
    }

}

/* =========================================================
   MASAR USER MENU BUTTON
   ========================================================= */

header[data-testid="store-header"]
salla-user-menu[data-testid="store-header-user-menu"] {

    position: relative !important;

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

    min-width: 118px !important;
    height: 44px !important;

    margin: 0 !important;

    background: #082b55 !important;

    border-radius: 11px !important;

    cursor: pointer !important;

    overflow: visible !important;
}


/* العنصر الحقيقي القابل للضغط */
header[data-testid="store-header"]
salla-user-menu
.s-user-menu-trigger {

    position: relative !important;

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

    width: 100% !important;
    height: 100% !important;

    padding: 0 15px !important;

    cursor: pointer !important;

    pointer-events: auto !important;
}


/* نخفي محتوى سلة القديم داخل الزر فقط */
header[data-testid="store-header"]
salla-user-menu
.s-user-menu-trigger-avatar,

header[data-testid="store-header"]
salla-user-menu
.s-user-menu-trigger-content,

header[data-testid="store-header"]
salla-user-menu
.s-user-menu-toggle {
    display: none !important;
}


/* النص الجديد */
header[data-testid="store-header"]
.masar-user-menu-label {

    display: block !important;

    color: #ffffff !important;

    font-size: 14px !important;
    font-weight: 800 !important;

    line-height: 1 !important;

    white-space: nowrap !important;

    pointer-events: none !important;
}


/* القائمة المنسدلة الخاصة بسلة لا نخفيها */
header[data-testid="store-header"]
salla-user-menu
.s-user-menu-dropdown {

    z-index: 99999 !important;
}


/* Hover */
header[data-testid="store-header"]
salla-user-menu:hover {

    background: #0b376d !important;
}


/* الجوال */
@media (max-width: 767px) {

    header[data-testid="store-header"]
    salla-user-menu[data-testid="store-header-user-menu"] {

        min-width: 104px !important;
        height: 40px !important;

        border-radius: 10px !important;
    }

    header[data-testid="store-header"]
    .masar-user-menu-label {

        font-size: 12px !important;
    }

}

/* =========================================================
   MASAR USER BUTTON
   ========================================================= */

header[data-testid="store-header"]
salla-user-menu[data-testid="store-header-user-menu"] {
    position: relative !important;

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

    min-width: 118px !important;
    height: 44px !important;

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

    background: #082b55 !important;

    border-radius: 11px !important;

    cursor: pointer !important;

    overflow: hidden !important;
}


/* نخفي محتوى سلة الأصلي داخل الزر */
header[data-testid="store-header"]
salla-user-menu
.s-user-menu-trigger,

header[data-testid="store-header"]
salla-user-menu
.s-user-menu-login-btn {
    position: absolute !important;

    inset: 0 !important;

    width: 100% !important;
    height: 100% !important;

    opacity: 0 !important;

    cursor: pointer !important;
}


/* النص الذي نعرضه */
header[data-testid="store-header"]
.masar-user-state-label {
    position: relative !important;

    z-index: 2 !important;

    color: #ffffff !important;

    font-size: 14px !important;
    font-weight: 800 !important;

    line-height: 1 !important;

    white-space: nowrap !important;

    pointer-events: none !important;
}


/* Hover */
header[data-testid="store-header"]
salla-user-menu[data-testid="store-header-user-menu"]:hover {
    background: #0b376d !important;
}


/* الجوال */
@media (max-width: 767px) {

    header[data-testid="store-header"]
    salla-user-menu[data-testid="store-header-user-menu"] {
        min-width: 104px !important;
        height: 40px !important;

        padding: 0 12px !important;

        border-radius: 10px !important;
    }

    header[data-testid="store-header"]
    .masar-user-state-label {
        font-size: 12px !important;
    }

}

/* =========================================================
   MASAR USER BUTTON LABEL FIX
   ========================================================= */

/* نخفي أي نص/محتوى قديم داخل زر المستخدم */
header[data-testid="store-header"]
salla-user-menu[data-testid="store-header-user-menu"]
.s-user-menu-trigger-content,

header[data-testid="store-header"]
salla-user-menu[data-testid="store-header-user-menu"]
.s-user-menu-trigger-hello,

header[data-testid="store-header"]
salla-user-menu[data-testid="store-header-user-menu"]
.s-user-menu-trigger-name,

header[data-testid="store-header"]
salla-user-menu[data-testid="store-header-user-menu"]
.s-user-menu-trigger-icon,

header[data-testid="store-header"]
salla-user-menu[data-testid="store-header-user-menu"]
.s-user-menu-toggle {
    display: none !important;
}


/* لو عندك CSS قديم كان يكتب "تسجيل دخول" بـ pseudo */
header[data-testid="store-header"]
salla-user-menu[data-testid="store-header-user-menu"]::before,
header[data-testid="store-header"]
salla-user-menu[data-testid="store-header-user-menu"]::after {
    content: none !important;
    display: none !important;
}


/* النص الجديد */
header[data-testid="store-header"]
.masar-user-state-label {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    height: 100% !important;

    color: #ffffff !important;

    font-size: 14px !important;
    font-weight: 800 !important;

    white-space: nowrap !important;

    position: relative !important;
    z-index: 10 !important;

    pointer-events: none !important;
}


/* للمستخدم المسجل */
header[data-testid="store-header"]
salla-user-menu.masar-user-logged-in
.masar-user-state-label {
    color: #ffffff !important;
}


/* للجوال */
@media (max-width: 767px) {

    header[data-testid="store-header"]
    .masar-user-state-label {
        font-size: 12px !important;
    }

}


/* =========================================================
   FINAL FIX - USER BUTTON LABEL
   ========================================================= */

/* إلغاء أي نص قديم مضاف بالـ CSS */
header[data-testid="store-header"]
salla-user-menu[data-testid="store-header-user-menu"]::before,

header[data-testid="store-header"]
salla-user-menu[data-testid="store-header-user-menu"]::after,

header[data-testid="store-header"]
salla-user-menu[data-testid="store-header-user-menu"]
.s-user-menu-wrapper::before,

header[data-testid="store-header"]
salla-user-menu[data-testid="store-header-user-menu"]
.s-user-menu-wrapper::after,

header[data-testid="store-header"]
salla-user-menu[data-testid="store-header-user-menu"]
.s-user-menu-trigger::before,

header[data-testid="store-header"]
salla-user-menu[data-testid="store-header-user-menu"]
.s-user-menu-trigger::after {
    content: none !important;
    display: none !important;
}


/* إخفاء شكل سلة القديم داخل الزر */
header[data-testid="store-header"]
salla-user-menu[data-testid="store-header-user-menu"]
.s-user-menu-wrapper {

    position: absolute !important;
    inset: 0 !important;

    width: 100% !important;
    height: 100% !important;

    opacity: 0 !important;

    z-index: 1 !important;
}


/* النص الخاص بنا */
header[data-testid="store-header"]
salla-user-menu[data-testid="store-header-user-menu"]
.masar-user-state-label {

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

    position: relative !important;

    z-index: 20 !important;

    width: 100% !important;
    height: 100% !important;

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

    color: #ffffff !important;

    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1 !important;

    text-align: center !important;

    white-space: nowrap !important;

    pointer-events: none !important;
}


/* الزر الخارجي */
header[data-testid="store-header"]
salla-user-menu[data-testid="store-header-user-menu"] {

    position: relative !important;

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

    min-width: 118px !important;
    height: 44px !important;

    padding: 0 15px !important;

    background: #082b55 !important;

    border-radius: 11px !important;

    overflow: hidden !important;

    cursor: pointer !important;
}


/* المستخدم مسجل */
header[data-testid="store-header"]
salla-user-menu.masar-user-logged-in
.masar-user-state-label {

    color: #ffffff !important;
}


/* المستخدم غير مسجل */
header[data-testid="store-header"]
salla-user-menu.masar-user-guest
.masar-user-state-label {

    color: #ffffff !important;
}


/* الجوال */
@media (max-width: 767px) {

    header[data-testid="store-header"]
    salla-user-menu[data-testid="store-header-user-menu"] {

        min-width: 104px !important;
        height: 40px !important;

        padding: 0 11px !important;
    }

    header[data-testid="store-header"]
    salla-user-menu[data-testid="store-header-user-menu"]
    .masar-user-state-label {

        font-size: 12px !important;
    }

}

/* =========================================
   MASAR - ACCOUNT LABEL FIX
   ========================================= */

#mainnav salla-user-menu {
    position: relative !important;

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

    min-width: 118px !important;
    height: 44px !important;

    padding: 0 14px !important;

    background: #082b55 !important;
    border-radius: 11px !important;

    overflow: hidden !important;
}


/* نخفي محتوى سلة الداخلي القديم فقط */
#mainnav salla-user-menu .s-user-menu-wrapper {
    position: absolute !important;
    inset: 0 !important;

    width: 100% !important;
    height: 100% !important;

    opacity: 0 !important;

    z-index: 1 !important;
}


/* النص الجديد: حسابي / تسجيل دخول */
#mainnav salla-user-menu .masar-user-state-label {
    position: relative !important;

    z-index: 20 !important;

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

    width: 100% !important;
    height: 100% !important;

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

    color: #ffffff !important;

    font-size: 14px !important;
    font-weight: 700 !important;

    line-height: 1 !important;

    text-align: center !important;
    white-space: nowrap !important;

    opacity: 1 !important;
    visibility: visible !important;

    pointer-events: none !important;
}


/* الجوال */
@media (max-width: 767px) {

    #mainnav salla-user-menu {
        min-width: 104px !important;
        height: 40px !important;
    }

    #mainnav salla-user-menu .masar-user-state-label {
        font-size: 12px !important;
    }

}

/* =========================
   MASAR ACCOUNT BUTTON
   ========================= */

#mainnav salla-user-menu {
    position: relative !important;
    min-width: 118px !important;
    height: 44px !important;

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

    background: #082b55 !important;
    border-radius: 11px !important;

    overflow: hidden !important;
}


/* زر حسابي الجديد */
#mainnav .masar-account-button {
    width: 100% !important;
    height: 100% !important;

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

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

    background: #082b55 !important;
    color: #ffffff !important;

    border: 0 !important;
    border-radius: 11px !important;

    font-size: 14px !important;
    font-weight: 700 !important;

    cursor: pointer !important;
}


/* عند تسجيل الدخول نخفي واجهة سلة الأصلية */
#mainnav salla-user-menu.masar-user-is-logged
.s-user-menu-wrapper {
    display: none !important;
}


/* زر حسابي Hover */
#mainnav .masar-account-button:hover {
    background: #0b376d !important;
}


/* الجوال */
@media (max-width: 767px) {

    #mainnav salla-user-menu {
        min-width: 104px !important;
        height: 40px !important;
    }

    #mainnav .masar-account-button {
        font-size: 12px !important;
        padding: 0 12px !important;
    }

}

/* =========================================
   MASAR USER BUTTON
   ========================================= */

#mainnav salla-user-menu {
    position: relative !important;

    min-width: 118px !important;
    height: 44px !important;

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

    background: #082b55 !important;
    border-radius: 11px !important;

    overflow: hidden !important;
}


/* نخفي واجهة سلة الأصلية بصريًا فقط */
#mainnav salla-user-menu .s-user-menu-wrapper {
    position: absolute !important;
    inset: 0 !important;

    opacity: 0 !important;

    pointer-events: none !important;
}


/* زرنا الجديد */
#mainnav .masar-custom-user-button {
    position: relative !important;
    z-index: 10 !important;

    width: 100% !important;
    height: 100% !important;

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

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

    background: #082b55 !important;
    color: #ffffff !important;

    border: 0 !important;
    border-radius: 11px !important;

    font-size: 14px !important;
    font-weight: 700 !important;

    white-space: nowrap !important;

    cursor: pointer !important;
}


#mainnav .masar-custom-user-button:hover {
    background: #0b376d !important;
}


/* الجوال */
@media (max-width: 767px) {

    #mainnav salla-user-menu {
        min-width: 104px !important;
        height: 40px !important;
    }

    #mainnav .masar-custom-user-button {
        padding: 0 10px !important;
        font-size: 12px !important;
    }

}

/* =========================================================
   FINAL USER BUTTON VISIBILITY FIX
   ========================================================= */

/* الحاوية */
#mainnav salla-user-menu[data-testid="store-header-user-menu"] {
    position: relative !important;

    width: 118px !important;
    min-width: 118px !important;
    height: 44px !important;

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

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

    background: #082b55 !important;

    border-radius: 11px !important;

    overflow: hidden !important;

    opacity: 1 !important;
    visibility: visible !important;
}


/* نخفي واجهة سلة الأصلية بصرياً */
#mainnav salla-user-menu[data-testid="store-header-user-menu"]
.s-user-menu-wrapper,

#mainnav salla-user-menu[data-testid="store-header-user-menu"]
.s-user-menu-login-btn {

    position: absolute !important;
    inset: 0 !important;

    width: 100% !important;
    height: 100% !important;

    opacity: 0 !important;

    z-index: 1 !important;
}


/* زر تسجيل دخول / حسابي الخاص بنا */
#mainnav salla-user-menu[data-testid="store-header-user-menu"]
.masar-custom-user-button {

    position: absolute !important;

    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;

    z-index: 999 !important;

    width: 100% !important;
    height: 100% !important;

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

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

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

    background: #082b55 !important;

    color: #ffffff !important;

    border: 0 !important;
    outline: 0 !important;

    border-radius: 11px !important;

    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1 !important;

    text-align: center !important;
    white-space: nowrap !important;

    opacity: 1 !important;
    visibility: visible !important;

    pointer-events: auto !important;

    cursor: pointer !important;

    transform: none !important;
}


/* Hover */
#mainnav salla-user-menu[data-testid="store-header-user-menu"]
.masar-custom-user-button:hover {

    background: #0b376d !important;
}


/* الجوال */
@media (max-width: 767px) {

    #mainnav salla-user-menu[data-testid="store-header-user-menu"] {

        width: 104px !important;
        min-width: 104px !important;
        height: 40px !important;
    }

    #mainnav salla-user-menu[data-testid="store-header-user-menu"]
    .masar-custom-user-button {

        font-size: 12px !important;

        border-radius: 10px !important;
    }

}