@media screen and (max-width: 767px) {
   .mega-menu{
       display: none;
   }
    .pre-header{
        display: none;
    }
    .acc-menu{
        display: none;
    }
    .mobile-mega-menu{
        height: 55px;
        display: flex;
        align-items: center;
        position: relative;
        border-bottom: 1px solid var(--app-color);
    }

    /* يمين */
    .mobile-menu-btn{
        width: 55px;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 22px;
        color: #fff;
    }

    /* المنتصف */
    .mobile-logo{
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    .mobile-logo img{
        height: 50px;
    }

    /* يسار */
    .mobile-actions{
        margin-right: auto;
        display: flex;
        gap: 15px;
        padding-left: 15px;
        font-size: 20px;
        color: #fff;
    }

    /* القائمة الجانبية */
    .mobile-side-menu{
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100%;
        background: #fff;
        z-index: 1000;
        transition: right .3s ease;
        display: flex;
        flex-direction: column;
    }
    .mobile-side-menu.open{
        right: 0;
    }

    /* رأس القائمة */
    .mobile-side-header{
        padding: 15px;
        display: flex;
        justify-content: space-between;
        border-bottom: 1px solid #eee;
    }

    /* عناصر القائمة */
    .mobile-menu-list{
        list-style: none;
        margin: 0;
        padding: 0;
    }
    .mobile-menu-list li{
        /*padding: 15px;*/
        border-bottom: 1px solid #f1f1f1;
        cursor: pointer;
    }

    /* overlay */
    .mobile-overlay{
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.4);
        display: none;
        z-index: 1000;
    }
    .mobile-overlay.show{
        display: block;
    }

    .mobile-menu-list{
        flex: 1;                 /* يأخذ باقي الارتفاع */
        overflow-y: auto;        /* scroll عمودي */
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch; /* سحب ناعم للموبايل */
    }
    /* (اختياري) إخفاء scrollbar */
    .mobile-menu-list::-webkit-scrollbar{
        width: 4px;
    }
    .mobile-menu-list::-webkit-scrollbar-thumb{
        background: rgba(0,0,0,.2);
        border-radius: 4px;
    }
    .mobile-side-menu{
        position: fixed;
        top: 0;
        right: -280px;          /* مخفية افتراضيًا */
        width: 280px;
        height: 100%;
        background: #fff;
        z-index: 1000;
        transition: right .3s ease;
        display: flex;
        flex-direction: column;
    }

    /* فتح القائمة */
    .mobile-side-menu.open{
        right: 0;
    }

    /* =========================
       Mobile Menu Items
    ========================= */

    .mobile-menu-list{
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .mobile-item{
        border-bottom: 1px solid #eee;
    }

    /* العنصر الرئيسي */
    .mobile-item a,
    .mobile-item-header{
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px;
        color: #333;
        text-decoration: none;
        cursor: pointer;
    }

    /* سهم */
    .mobile-item-header i{
        transition: .3s;
    }

    /* تدوير السهم */
    .mobile-item.open .mobile-item-header i{
        transform: rotate(180deg);
    }

    /* =========================
       Submenu (مخفية افتراضيًا)
    ========================= */

    .mobile-submenu{
        display: none;          /* ❗ هذا كان ناقص */
        list-style: none;
        padding: 0;
        margin: 0;
        background: #fafafa;
    }

    /* فتح الأقسام الفرعية */
    .mobile-item.open > .mobile-submenu{
        display: block;
    }

    /* عناصر submenu */
    .mobile-submenu li a{
        display: block;
        padding: 10px 18px;
        color: #555;
    }
}