/* OWDEX Food E4.5 R3 — auditoria mobile: teclado, campos, menus e cards.
   Sem regras financeiras, sem alterações de cadastro e sem pedidos de geolocalização. */
:root{--food45r3-ease:cubic-bezier(.2,.8,.2,1)}
/* No iOS, U+2733 aparece como emoji verde. Mostramos ornamento tipográfico do Food. */
.shop-intro #cardapio .section-heading h2>span[style]{font-size:0!important;display:inline-block;vertical-align:middle}
.shop-intro #cardapio .section-heading h2>span[style]::before{content:'✦';color:#e4583c;font-size:18px;line-height:1}
@media(max-width:800px){
 /* Ocultar a navegação enquanto o teclado está ativo. Continua presente ao sair do campo. */
 .food-bottom-nav{transition:opacity .2s ease,transform .24s var(--food45r3-ease)}
 html.food-keyboard-active .food-bottom-nav{transform:translateY(115%)!important;opacity:0!important;visibility:hidden!important;pointer-events:none!important}
 /* Na busca aberta como diálogo, manter o campo dentro da área visível do iOS. */
 html.food-keyboard-active .food-quick-search-screen{
   top:var(--food45r3-view-top,0px);bottom:auto;height:var(--food45r3-view-height,100dvh);
   min-height:0;align-items:flex-start;overflow-y:auto;overscroll-behavior:contain;
   padding:12px 12px 22px;
 }
 html.food-keyboard-active .food-quick-search-sheet{max-height:calc(var(--food45r3-view-height,100dvh) - 32px);overflow-y:auto;flex-shrink:0}
 html.food-keyboard-active .food-address-scrim,
 html.food-keyboard-active .scrim:has(:is(input:focus,textarea:focus,[contenteditable="true"]:focus)){
   top:var(--food45r3-view-top,0px);bottom:auto;height:var(--food45r3-view-height,100dvh);
   min-height:0;overflow-y:auto;overscroll-behavior:contain
 }
 html.food-keyboard-active .food-address-scrim{align-items:flex-start}
 html.food-keyboard-active .food-address-modal{max-height:calc(var(--food45r3-view-height,100dvh) - 16px)}
 html.food-keyboard-active .scrim .dialog{max-height:calc(var(--food45r3-view-height,100dvh) - 20px)}
 html.food-keyboard-active .scrim .sidepanel{height:var(--food45r3-view-height,100dvh);max-height:var(--food45r3-view-height,100dvh);bottom:auto;overflow:hidden}
 html.food-keyboard-active .toast{bottom:calc(14px + var(--food45r3-keyboard-occlusion,0px))}
 /* O resultado da busca e as categorias nunca ficam presos sob o menu. */
 .shop-intro #cardapio{scroll-margin-top:calc(90px + env(safe-area-inset-top,0px))}
 .shop-intro .menu-category-section{scroll-margin-top:calc(84px + env(safe-area-inset-top,0px))}
 .shop-intro .search-wrap :is(input,textarea),
 .food-quick-search-field input,.food-address-form input,
 .account-page input,.login-page input,.sidepanel input,.dialog input{font-size:16px}
 .shop-intro .product-grid:has(>.product-card:only-child){grid-template-columns:minmax(0,1fr)!important}
 .shop-intro .product-card:only-child{max-width:100%;width:100%}
 .food-bottom-nav :is(a,button){-webkit-tap-highlight-color:transparent}
 .food-bottom-nav :is(a,button):focus-visible{outline-offset:-2px}
}
@media(max-width:480px){
 /* Duas colunas deixavam o texto dos produtos ilegível e geravam vazio no resultado único. */
 .shop-intro .product-grid,
 .shop-intro .product-grid:has(>.product-card:nth-child(2):last-child),
 .shop-intro .product-grid:has(>.product-card:only-child){grid-template-columns:minmax(0,1fr)!important}
 .shop-intro .product-card{display:block;max-width:100%;min-width:0}
 .shop-intro .product-image{height:clamp(174px,51vw,224px)}
 .shop-intro .product-content{padding:17px 18px}
 .shop-intro .product-content h3{font-size:17px;line-height:1.3}
 .shop-intro .product-content p{font-size:13px;line-height:1.5;min-height:0}
 .shop-intro .add-round{min-height:46px;min-width:46px}
 .shop-intro .section-heading{row-gap:15px}
 .shop-intro .search-wrap{margin-bottom:5px}
}
@media(prefers-reduced-motion:reduce){.food-bottom-nav{transition:none!important}}
