@media (max-width:900px){
  html, body{
    overflow-x:hidden !important;
    overscroll-behavior-x:none;
  }
  body{
    -webkit-text-size-adjust:100%;
    touch-action:pan-y manipulation;
  }

  .site, .mobile-site, .mobile-container{
    max-width:100%;
    overflow-x:hidden !important;
  }

  .desktop-topbar-actions{display:none !important}
  .mobile-container{padding-bottom:96px !important}

  .mobile-topbar{
    position:sticky;
    top:0;
    z-index:90;
    background:#d6001c;
    padding:12px 14px 14px;
    margin:-16px -16px 16px;
    border-radius:0 0 20px 20px;
    max-width:100vw;
    box-sizing:border-box;
  }
  .mobile-topbar-row{
    display:grid;
    grid-template-columns:44px 1fr 44px;
    align-items:center;
    gap:10px;
    margin-bottom:12px;
  }
  .mobile-brand{
    justify-self:center;
    font-size:28px;
    font-weight:900;
    color:#fff !important;
    letter-spacing:.5px;
  }
  .mobile-icon-btn{
    width:44px;
    height:44px;
    border-radius:14px;
    border:1px solid rgba(255,255,255,.22);
    background:rgba(255,255,255,.08);
    color:#fff;
    font-size:24px;
    display:flex;
    align-items:center;
    justify-content:center;
    flex:0 0 44px;
  }
  .mobile-search{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) 110px;
    gap:10px;
    background:#fff;
    border-radius:18px;
    padding:8px;
    box-shadow:0 8px 18px rgba(0,0,0,.08);
    max-width:100%;
    box-sizing:border-box;
  }
  .mobile-search input{
    min-width:0;
    border:none !important;
    outline:none;
    font-size:16px;
    padding:10px 12px;
    background:transparent;
  }
  .mobile-search button{
    border:none;
    border-radius:14px;
    background:#1f2626;
    color:#fff;
    font-size:14px;
    font-weight:800;
    min-width:0;
  }

  .mobile-drawer{
    position:fixed;
    top:0;
    left:0;
    width:min(84vw,360px);
    max-width:360px;
    height:100vh;
    background:#fff;
    z-index:120;
    box-shadow:0 20px 50px rgba(0,0,0,.25);
    transform:translateX(-104%);
    transition:transform .24s ease;
    overflow:auto;
    will-change:transform;
  }
  .mobile-drawer.right{
    left:auto;
    right:0;
    transform:translateX(104%);
  }
  .mobile-drawer.open{
    transform:translateX(0);
  }
  .mobile-drawer.right.open{
    transform:translateX(0);
  }
  .mobile-drawer-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:18px;
    border-bottom:1px solid #eee;
    font-size:20px;
  }
  .mobile-close{
    border:none;
    background:none;
    font-size:24px;
  }
  .mobile-drawer-nav{
    display:flex;
    flex-direction:column;
    padding:12px;
  }
  .mobile-drawer-nav a{
    padding:14px 12px;
    border-radius:12px;
    font-weight:700;
  }
  .mobile-login-panel{padding:18px}
  .mobile-login-form,.auth-form{
    display:flex;
    flex-direction:column;
    gap:10px;
  }
  .mobile-login-form label,.auth-form label{
    font-size:14px;
    font-weight:700;
    color:#333;
  }
  .mobile-login-form input,.auth-form input{
    width:100%;
    height:52px;
    border-radius:14px;
    border:1px solid #ddd;
    padding:0 14px;
    font-size:16px;
    box-sizing:border-box;
  }
  .mobile-primary-btn{
    height:50px;
    border:none;
    border-radius:14px;
    background:#1f2626;
    color:#fff;
    font-size:18px;
    font-weight:800;
  }
  .mobile-divider{
    display:flex;
    align-items:center;
    gap:12px;
    margin:18px 0;
    color:#777;
  }
  .mobile-divider:before,.mobile-divider:after{
    content:"";
    flex:1;
    height:1px;
    background:#e5e5e5;
  }
  .mobile-divider span{white-space:nowrap}
  .mobile-wa-btn{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    height:52px;
    border-radius:14px;
    background:#25D366;
    color:#fff;
    font-weight:900;
  }
  .mobile-login-help{
    display:flex;
    flex-direction:column;
    gap:10px;
    align-items:center;
    margin-top:18px;
  }
  .mobile-login-help a{
    color:#222;
    text-decoration:underline;
    text-underline-offset:2px;
  }
  .mobile-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.35);
    z-index:110;
    display:none;
  }
  .mobile-overlay.show{display:block}

  .chat-widget{
    left:16px !important;
    right:16px !important;
    bottom:86px !important;
    width:auto !important;
    max-width:none !important;
    box-sizing:border-box;
  }
  .chat-body{
    max-width:100%;
    overflow:auto;
  }
  .chat-input{
    max-width:100%;
  }
  .chat-input input{
    min-width:0;
    font-size:16px;
  }

  .mobile-bottom-nav{
    position:fixed;
    left:12px;
    right:12px;
    bottom:12px;
    background:#fff;
    border:1px solid #ececec;
    border-radius:24px;
    padding:10px 14px;
    display:grid;
    grid-template-columns:1fr 1fr 1fr;
    gap:8px;
    z-index:105;
    box-shadow:0 10px 30px rgba(0,0,0,.10);
    max-width:calc(100vw - 24px);
    box-sizing:border-box;
  }
  .mobile-bottom-nav a,.mobile-bottom-nav button{
    border:none;
    background:none;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:4px;
    color:#222;
    font-size:24px;
    min-width:0;
  }
  .mobile-bottom-nav small{
    font-size:13px;
    font-weight:700;
  }
  .mobile-chat-btn{
    bottom:86px !important;
    right:16px !important;
    max-width:calc(100vw - 32px);
  }
}

@media (min-width:901px){
  .mobile-bottom-nav,
  .mobile-drawer,
  .mobile-overlay{
    display:none !important;
  }
}
