/* Presentation only: Hub navigation and narrow storefront/PDV layouts. */
.menu-mobile-fechar,.menu-mobile-fundo{display:none}

@media screen and (max-width:820px){
  .app .topo{flex-wrap:wrap;gap:8px}
  .app .topo h1{min-width:0;overflow-wrap:anywhere}
  .app #acao-topo:not(:empty){order:3;flex:1 0 100%;display:flex;flex-wrap:wrap;gap:8px;padding:0;background:none}
  .app #acao-topo:empty{display:none}
  .app #acao-topo .btn{min-height:44px;white-space:normal}
  .app .menu-mob{min-width:44px;min-height:44px;justify-content:center}
  .app .side{max-width:calc(100vw - 48px);max-height:100dvh}
  .app .menu-mobile-fechar{display:flex;align-items:center;justify-content:center;align-self:flex-end;min-width:44px;min-height:44px;margin:8px 8px 0;border:1px solid var(--linha);border-radius:8px;background:#fff;font-size:24px}
  .app .menu-mobile-fundo:not([hidden]){display:block;position:fixed;inset:0;z-index:19;border:0;background:#0f172a66;touch-action:none}
  body.menu-mobile-aberto{overflow:hidden}
  .app .side nav{overscroll-behavior:contain}
  .app .side :is(a,button):focus-visible{outline:2px solid var(--azul);outline-offset:-2px}
  .pdv-ui .pdv-fonte{flex-wrap:wrap}
  .pdv-ui .pdv-fonte select{min-width:0;max-width:100%;flex:1 1 150px}
  .pdv-ui .total .linha>span{min-width:0;max-width:100%}
  .pdv-ui input,.pdv-ui select{min-height:44px}
  .toasts{left:12px;right:12px;bottom:max(12px,env(safe-area-inset-bottom));max-height:40dvh;overflow-y:auto;overflow-x:hidden}
  .toasts .toast{box-sizing:border-box;min-width:0;max-width:100%;width:100%;animation:none;overflow-wrap:anywhere}
  .toasts .toast>span:last-child{min-width:0}
}

@media screen and (max-width:900px){
  /* The desktop categories disappear at 900px; keep their mobile entry visible. */
  .head .hamb{display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px}
}

/* A short viewport (landscape/keyboard) needs room to reach the checkout. */
@media screen and (max-width:1100px) and (max-height:500px){
  .pdv-ui .carrinho>.pdv-pesquisa{position:static}
}

@media screen and (max-width:600px){
  .cod-cx,.cod-txt{min-width:0;max-width:100%}
  .cod-form{box-sizing:border-box;min-width:0;max-width:100%;width:100%;flex:1 1 240px;flex-wrap:wrap}
  .cod-form input{box-sizing:border-box;min-width:0;width:0;flex:1 1 120px;font-size:16px;min-height:44px}
  .cod-form button{box-sizing:border-box;max-width:100%;min-height:44px;padding:12px 16px;flex:0 0 auto}
  .drawer .cinfo{min-width:0;overflow-wrap:anywhere}
  .drawer .cq button{min-width:44px;min-height:44px}
  .drawer .itens{min-height:0;overscroll-behavior:contain}
  .drawer .rodape{padding-bottom:max(20px,env(safe-area-inset-bottom))}
  .ck-campo input,.ck-campo select,.busca-h input,.filtros-painel input,.filtros-painel select{min-height:44px;font-size:16px}
}
