/* OWDEX Food 4.5 R2 — correção do PWA, menu rápido e fluidez.
   Não modifica layout desktop nem funcionalidades financeiras. */
:root{--food45r2-ease:cubic-bezier(.22,1,.36,1);--food45r2-nav-height:74px}
/* A barra fixa nunca encobre o fim do cardápio, o rodapé nem as ações de conta. */
@media(max-width:800px){
 body:has(.food-bottom-nav:not(.food-bottom-admin)) .footer{padding-bottom:calc(116px + env(safe-area-inset-bottom,0px));min-height:0}
 body:has(.food-bottom-nav:not(.food-bottom-admin)) .shop-intro{padding-bottom:calc(118px + env(safe-area-inset-bottom,0px))!important}
 body:has(.food-market-bottom-nav) .food-market-home{padding-bottom:calc(110px + env(safe-area-inset-bottom,0px))!important}
 body:has(.food-bottom-nav:not(.food-bottom-admin)) .account-page,
 body:has(.food-bottom-nav:not(.food-bottom-admin)) .food-track-page{padding-bottom:calc(128px + env(safe-area-inset-bottom,0px))}
 .food-bottom-nav:not(.food-bottom-admin){min-height:var(--food45r2-nav-height);padding:8px max(10px,env(safe-area-inset-left,0px)) calc(8px + env(safe-area-inset-bottom,0px)) max(10px,env(safe-area-inset-right,0px));gap:4px;background:rgba(255,253,250,.97);box-shadow:0 -12px 32px rgba(36,26,20,.075);border-top:1px solid #eadbd1;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}
 .food-bottom-nav:not(.food-bottom-admin) :is(a,button){min-height:51px;border-radius:14px;touch-action:manipulation;transition:background-color .35s ease,color .3s ease,transform .38s var(--food45r2-ease)}
 .food-bottom-nav:not(.food-bottom-admin) :is(a,button):active:not(:disabled){transform:scale(.95)}
 .food-bottom-nav:not(.food-bottom-admin) :is(a,button):focus-visible{outline:2px solid #e15c40;outline-offset:2px}
 .food-bottom-nav:not(.food-bottom-admin) button:disabled{opacity:.42;cursor:not-allowed}
 /* Busca do topo do marketplace fica disponível no desktop. No PWA, Buscar vive no menu inferior. */
 .food-market-header .food-market-header-search{display:none!important}
 .food-market-header .header-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,auto);align-items:center;gap:8px;min-height:66px;height:auto;padding-block:10px}
 .food-market-header .header-row>.brand{grid-column:1;grid-row:1;min-width:0;overflow:hidden;white-space:nowrap}
 .food-market-header .header-row>.food-address-top{grid-column:2;grid-row:1;min-width:0;margin-left:auto}
 .food-market-home .marketplace-welcome{margin-top:10px}
 html{scroll-padding-top:calc(86px + env(safe-area-inset-top,0px));scroll-padding-bottom:calc(90px + env(safe-area-inset-bottom,0px))}
 #cardapio,#sobre,#ofertas,#resultados,#encontrar,.menu-category-section{scroll-margin-top:calc(86px + env(safe-area-inset-top,0px))}
 .shop-intro #cardapio{scroll-margin-top:calc(95px + env(safe-area-inset-top,0px))}
 /* Menus de categorias sem cortes e conteúdo de uma só coluna com boa densidade */
 .shop-intro .category-tabs{overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;scroll-snap-type:x proximity;max-width:100%}
 .shop-intro .category-tabs::-webkit-scrollbar{display:none}
 .shop-intro .category-tabs button{scroll-snap-align:start;flex-shrink:0}
 .shop-intro .menu-category-section:last-of-type{padding-bottom:12px}
}
/* Pesquisa móvel: painel leve, abre por gesto explícito; não dispara API enquanto digita. */
.food-quick-search-screen{position:fixed;inset:0;z-index:110;background:rgba(31,24,21,.48);display:flex;align-items:flex-end;justify-content:center;padding:12px 12px calc(12px + env(safe-area-inset-bottom,0px));-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);animation:food45r2-scrim .3s ease both}
.food-quick-search-sheet{width:min(560px,100%);border:1px solid #eadbd2;border-radius:24px;background:#fffdfb;padding:22px;box-shadow:0 30px 70px rgba(36,24,18,.24);animation:food45r2-sheet .5s var(--food45r2-ease) both}
.food-quick-search-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:24px}
.food-quick-search-head span{color:#bd5a41;font-size:11px;font-weight:800;letter-spacing:.11em}
.food-quick-search-head h2{font-size:clamp(24px,5vw,30px);letter-spacing:-.05em;line-height:1.15;margin:6px 0 0}
.food-quick-search-head .btn{width:45px;height:45px;border-radius:14px}
#showcase-mobile-form label{display:block;margin-bottom:9px;font-weight:700;font-size:13px;color:#594942}
.food-quick-search-field{display:flex;align-items:center;gap:11px;padding:7px 7px 7px 15px;border:1px solid #e9dcd3;border-radius:16px;background:white;color:#ae634f;transition:border-color .32s ease,box-shadow .32s ease}
.food-quick-search-field:focus-within{border-color:#db967a;box-shadow:0 0 0 4px #e3513222}
.food-quick-search-field input{min-width:0;flex:1;border:0;outline:0;background:transparent;font-size:16px;color:#2a2421;height:44px;box-shadow:none}
.food-quick-search-field input:focus{outline:0;box-shadow:none}
.food-quick-search-field .btn{width:49px;height:46px;border-radius:12px;padding:0;flex:none}
.food-quick-search-sheet>p{font-size:13px;line-height:1.55;color:#86746c;margin:16px 0 0}
@keyframes food45r2-scrim{from{opacity:0}to{opacity:1}}
@keyframes food45r2-sheet{from{opacity:0;transform:translateY(30px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(min-width:801px){.food-quick-search-screen,.food-market-bottom-nav{display:none!important}}
@media(max-width:390px){.food-market-header .header-row>.brand{font-size:15px}.food-market-header .header-row>.food-address-top{max-width:41vw}.food-quick-search-sheet{padding:18px}}
@media(prefers-reduced-motion:reduce){.food-quick-search-screen,.food-quick-search-sheet{animation:none}.food-bottom-nav:not(.food-bottom-admin) :is(a,button){transition:none}}
