/* ganjeh-kala: mobile-menu.css */

/* Overlay */
.gk-mm-overlay{
    position:fixed; inset:0; background:#000;
    opacity:0; visibility:hidden; transition:opacity .2s ease, visibility .2s ease;
    z-index:100000;
}
.gk-mm-overlay.show{ opacity:.5; visibility:visible; }

/* Drawer */
.gk-mm-drawer{
    position:fixed; top:0; bottom:0; width:min(86vw,380px); max-width:94vw;
    background:#fff; box-shadow:0 0 30px rgba(0,0,0,.2);
    z-index:100001; transition:transform .25s ease; will-change:transform;
    right:0; left:auto; transform:translateX(100%);
}
.gk-mm-drawer.gk-drawer--left{ left:0; right:auto; transform:translateX(-100%); }
.gk-mm-drawer.show{ transform:translateX(0) !important; }

body.gk-mm-open{ overflow:hidden; touch-action:none; }

/* Header */
.gk-mm-head{
    position:sticky; top:0; z-index:2;
    display:flex; align-items:center; justify-content:space-between; gap:12px;
    padding:12px 16px; background:#fff; border-bottom:1px solid #eee;
}
.gk-mm-title{ font-weight:700; }
.gk-mm-btn-close{
    border:none; background:#f1f1f3; width:32px; height:32px; border-radius:8px; cursor:pointer;
}

/* Body – list */
.gk-mm-body .gk-mobile-menu,
.gk-mm-body .menu{ list-style:none; margin:0; padding:0; }
.gk-mm-body li{ border-bottom:1px solid #f0f0f2; position:relative; }
.gk-mm-body a{ display:flex; align-items:center; justify-content:space-between; gap:8px;
    padding:12px 16px; text-decoration:none; color:#222; font-size:15px; line-height:1.4; }
.gk-mm-body a:hover{ background:#fafafa; }

/* Toggle button appended to <a> */
.gk-mm-toggle{
    margin-inline-start:8px; border:none; background:#f1f1f3;
    border-radius:8px; min-width:30px; height:30px; display:inline-flex; align-items:center; justify-content:center; cursor:pointer;
}
html[dir="rtl"] .gk-mm-toggle svg{ transform:rotate(180deg); }

/* Submenu */
.gk-mm-body ul.sub-menu{ margin:0; padding:0; display:none; }
.gk-mm-body li.is-open > ul.sub-menu{ display:block; }
.gk-mm-body ul.sub-menu > li > a{ padding-inline-start:28px; }

/* small visual tweaks */
.gk-mobile-menu-widget .action-btn .label{ margin-inline-start:6px; }
