/* MARFA Preview mobile drawer repair | 2026-10-23 | additive, desktop untouched */
#marfaMobileNavToggle,#marfaMobileNavBackdrop,.marfa-mobile-nav-head{display:none!important}
@media(max-width:767px){
  html,body{max-width:100%;overflow-x:clip}
  html[dir=rtl] body.v7-ui #app.app.marfa-converted>.main{
    width:100%!important;max-width:100%!important;min-width:0!important;
    margin:0!important;margin-right:0!important;margin-left:0!important;
    padding-left:0!important;padding-right:0!important;
  }
  html[dir=rtl] body.v7-ui #app.app.marfa-converted>aside.side{
    position:fixed!important;top:0!important;right:0!important;left:auto!important;bottom:0!important;
    width:min(86vw,350px)!important;max-width:350px!important;height:100dvh!important;
    display:flex!important;flex-direction:column!important;
    transform:translate3d(105%,0,0)!important;
    visibility:hidden!important;pointer-events:none!important;
    z-index:2051!important;opacity:1!important;
    padding-top:calc(58px + env(safe-area-inset-top))!important;
    box-shadow:-15px 0 48px rgba(0,0,0,.48)!important;
    transition:transform .23s ease,visibility .23s ease!important;
    overscroll-behavior:contain!important;will-change:transform;
  }
  html[dir=rtl] body.v7-ui.marfa-mobile-nav-open #app.app.marfa-converted>aside.side{
    transform:translate3d(0,0,0)!important;
    visibility:visible!important;pointer-events:auto!important;
  }
  html[dir=rtl] body.v7-ui #app.app.marfa-converted>aside.side>.marfa-mobile-nav-head{
    position:absolute!important;inset:env(safe-area-inset-top) 0 auto 0!important;
    height:54px!important;display:flex!important;align-items:center!important;
    justify-content:space-between!important;gap:12px!important;
    padding:5px 13px!important;border-bottom:1px solid rgba(216,177,99,.25)!important;
    background:#14110d!important;z-index:1!important;direction:rtl!important
  }
  .marfa-mobile-nav-head strong{color:#f1d49c;font-size:14px;font-weight:750}
  #marfaMobileNavClose{
    width:42px!important;height:42px!important;flex-shrink:0!important;
    display:grid!important;place-items:center!important;font:700 22px/1 sans-serif!important;
    border:1px solid #605037!important;border-radius:11px!important;
    background:#302618!important;color:#fff1cc!important;cursor:pointer!important;
    -webkit-tap-highlight-color:transparent!important;touch-action:manipulation!important
  }
  #marfaMobileNavClose:focus-visible,#marfaMobileNavToggle:focus-visible{
    outline:3px solid #f0cb79!important;outline-offset:3px!important
  }
  body.v7-ui.marfa-mobile-nav-ready:not(.marfa-mobile-nav-open) #marfaMobileNavToggle{
    position:fixed!important;right:12px!important;left:auto!important;
    top:calc(10px + env(safe-area-inset-top))!important;
    z-index:2049!important;display:inline-flex!important;
    justify-content:center!important;align-items:center!important;gap:8px!important;
    min-width:84px!important;min-height:44px!important;padding:0 12px!important;
    font:700 13px/1.3 'Vazirmatn',Arial,sans-serif!important;
    background:#211a11!important;color:#f8e4af!important;
    border:1px solid #b99757!important;border-radius:12px!important;
    box-shadow:0 4px 22px #0008!important;cursor:pointer!important;
    touch-action:manipulation!important;-webkit-tap-highlight-color:transparent!important
  }
  body.v7-ui.marfa-mobile-nav-open #marfaMobileNavBackdrop{
    position:fixed!important;inset:0!important;display:block!important;
    background:rgba(0,0,0,.65)!important;z-index:2050!important;
    border:0!important;padding:0!important;cursor:pointer!important;
    -webkit-tap-highlight-color:transparent!important
  }
  body.v7-ui.marfa-mobile-nav-open #marfaMobileNavToggle{display:none!important}
  body.v7-ui.marfa-mobile-nav-open{overflow:hidden!important;touch-action:pan-y!important}
  html[dir=rtl] body.v7-ui #app.app.marfa-converted>aside.side #nav{
    min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain!important;
    -webkit-overflow-scrolling:touch!important
  }
  #marfaMobileNavToggle[hidden],#marfaMobileNavBackdrop[hidden]{display:none!important}
}
@media(max-width:767px) and (prefers-reduced-motion:reduce){
 html[dir=rtl] body.v7-ui #app.app.marfa-converted>aside.side{transition:none!important}
}

/* App view width must remain full even when other site scripts restore display:grid !important. */
@media(max-width:767px){body.v7-ui #app.app.marfa-converted:not([hidden]){display:block!important;width:100%!important;max-width:100%!important;grid-template-columns:none!important}html[dir=rtl] body.v7-ui #app.app.marfa-converted:not([hidden])>.main{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;grid-column:auto!important;margin:0!important}}
