/* OWDEX Food — correção visual e acessibilidade cumulativa, sem substituir o design da marca. */
:root{--food-panel:#fffdfb;--food-hairline:#eee5de}
html{scroll-padding-top:105px}body{min-width:0;overflow-x:clip}#app{min-width:0}button,input,textarea,select{max-width:100%}button,a,small,span,p,h1,h2,h3{overflow-wrap:break-word}
.container,.admin-main,.admin-shell,.admin-top,.admin-top-right,.admin-card,.admin-panels,.catalog-layout,.catalog-product,.header-row,.dialog-body,.choice,.modal-actions,.section-heading{min-width:0}
/* O conteúdo jamais pode cobrir o nome do produto. A imagem fica recortada em seu próprio quadro. */
.scrim{z-index:120;overscroll-behavior:contain}
.dialog-wrap{display:flex;align-items:center;justify-content:center;overflow-y:auto;padding:clamp(8px,3vh,22px);overscroll-behavior:contain}
.dialog{width:min(520px,100%);max-height:calc(100dvh - 32px);overflow-y:auto;overflow-x:hidden;isolation:isolate;flex-shrink:0;scrollbar-gutter:stable;background:var(--food-panel);border-radius:25px}
.dialog-art{position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;isolation:isolate;height:190px;min-height:190px;padding:14px 55px;background:radial-gradient(ellipse at 50% 35%,#fff9f1 0%,#f5e2d5 72%,#efcebc 100%)}
.dialog-art img{display:block;position:static!important;width:auto!important;max-width:100%!important;height:100%!important;max-height:160px!important;min-height:0!important;object-fit:contain!important;transform:none!important;filter:drop-shadow(0 14px 13px rgba(66,39,18,.15));pointer-events:none}
.dialog-body{position:relative;z-index:1;padding:25px clamp(16px,4vw,29px) 27px;background:var(--food-panel);clear:both}
.dialog-body h2{position:relative;display:block;margin:0;font-size:clamp(22px,5vw,29px);line-height:1.2;overflow-wrap:anywhere}
.dialog-body>p{margin:9px 0 0;max-width:100%;line-height:1.6}
.dialog-close{z-index:4;top:14px;right:14px}
.choice-list{min-width:0}.choice{align-items:start;gap:12px}.choice label{min-width:0;flex:1;line-height:1.5}.choice b{white-space:nowrap;flex-shrink:0}
.modal-actions{position:sticky;bottom:-27px;z-index:2;gap:10px;background:linear-gradient(180deg,#fffdfbdf,#fffdfb 25%);padding:16px 0 0;margin-top:12px;flex-wrap:wrap}.modal-actions>.btn{min-width:160px;flex:1;white-space:normal;text-align:center}
/* Acesso ao painel deve continuar visível também no celular. */
.header-actions .food-back-panel{display:inline-flex!important;gap:7px;min-width:0;max-width:210px;padding:10px 12px;font-size:12px;white-space:normal;text-align:center}
.header-actions .food-back-panel span{white-space:normal}.header-row{gap:10px}.header-actions{gap:7px;min-width:0}
/* Cards e categorias: separação visual, sem alterar a gestão existente. */
.menu-category-section{margin:14px 0 35px;min-width:0}.menu-category-heading{border-bottom:1px solid var(--food-hairline);padding-bottom:15px;margin-bottom:18px;display:flex;align-items:center;justify-content:space-between}
.menu-category-heading h3{font-size:clamp(21px,2.2vw,27px);letter-spacing:-.055em;font-weight:800}.menu-category-heading span{display:block;margin-top:4px;font-size:12px;color:#84796f}
.menu-category-section .product-grid{padding-bottom:0}.food-category-create{width:auto!important;height:auto!important;padding:9px 12px!important;min-width:0;font-size:12px;white-space:normal}
/* Endereço: confirmação, número e complemento; campos técnicos secundários. */
.food-address-details{display:grid;grid-template-columns:minmax(95px,1fr) minmax(0,2fr);gap:12px}.food-address-details .field{min-width:0}
.geo-confirm-status{display:flex;align-items:center;gap:8px;font-size:12px;line-height:1.5;padding:11px 13px;border-radius:12px;background:#fff5e9;color:#77553f;border:1px solid #f2ddc9;margin:12px 0}
.geo-confirm-status.is-confirmed{background:#effaf1;color:#12643b;border-color:#bfe7cf}
.geo-confirm-status .icon{flex-shrink:0}.required-mark{color:#ca4031}
.geo-results{display:grid;gap:6px;max-height:220px;overflow-y:auto;scrollbar-width:thin}
.geo-choice{display:flex;align-items:center;gap:8px;min-width:0;white-space:normal;text-align:left;padding:12px;border-radius:11px;border:1px solid #e7dfd9;background:white;line-height:1.5;color:#3f342e}.geo-choice span{flex:1;min-width:0}.geo-choice .icon{flex-shrink:0}.geo-choice:hover,.geo-choice:focus-visible{border-color:#e87555;background:#fff4ee}
.food-coordinates-advanced{margin-top:13px;max-width:100%;overflow:hidden}.food-coordinates-advanced summary{cursor:pointer;font-size:12px;color:#6c645f;font-weight:650;margin-bottom:5px}.food-coordinates-advanced[open] .ops-grid{margin-top:11px}
/* Páginas de gestão — caixas fluidas, nada ultrapassa o painel. */
.admin-shell{grid-template-columns:minmax(220px,245px) minmax(0,1fr)}.admin-main{min-width:0;max-width:none}.admin-main>*,.admin-card,.admin-top-right{min-width:0}.admin-top{flex-wrap:wrap}.admin-top-right{flex-wrap:wrap;justify-content:flex-end}.admin-top h1{line-height:1.18}
.admin-panels,.metric-grid,.catalog-layout,.messages-admin-grid,.dining-grid,.food-promo-grid{min-width:0}.admin-card,.ops-card,.catalog-dialog,.sidepanel{max-width:100%}
.admin-card input,.admin-card select,.admin-card textarea{min-width:0}
.cart-item-actions,.line-item{min-width:0}.line-item{gap:12px}.line-item>div:nth-child(2){min-width:0}
@media(max-width:1060px){.header-nav{gap:14px}.hero{grid-template-columns:minmax(0,54%) minmax(0,46%)}.hero-copy{padding-left:clamp(24px,4vw,48px)}.hero h1{font-size:clamp(38px,5vw,58px)}}
@media(max-width:800px){.admin-shell{display:block}.admin-main{padding:22px 16px 50px}.admin-top{align-items:flex-start}.admin-top-right{width:100%;justify-content:flex-start}.catalog-layout{grid-template-columns:minmax(0,1fr)}.catalog-product-panel{grid-row:1}.catalog-category-panel{grid-row:2}}
@media(max-width:720px){.header-actions .food-back-panel{font-size:11px;max-width:144px;padding:9px}.header-actions .customer-header-link{display:none}.brand{font-size:18px}.brand-mark{width:32px;height:32px}.header-row{gap:6px}.dialog-wrap{padding:0;align-items:end}.dialog{width:100%;border-radius:24px 24px 0 0;max-height:calc(100dvh - 8px);scrollbar-gutter:auto}.dialog-art{height:154px;min-height:154px;padding:10px 70px}.dialog-art img{max-height:135px!important}.dialog-body{padding:20px 18px max(26px,env(safe-area-inset-bottom))}.modal-actions{bottom:0;padding-bottom:0}.hero{display:grid;grid-template-columns:minmax(0,1fr)}.hero-art{overflow:hidden}.food-address-details{grid-template-columns:minmax(0,1fr) minmax(0,1.5fr)}.food-category-create{font-size:11px}.menu-category-section{margin-bottom:26px}}
@media(max-width:390px){.header-actions .food-back-panel{max-width:112px}.header-actions .food-back-panel span{font-size:10px}.dialog-art{height:145px;min-height:145px}.dialog-art img{max-height:125px!important}.choice b{font-size:12px}.modal-actions{align-items:stretch}.modal-actions .qty-control{gap:5px}.modal-actions>.btn{min-width:130px;padding:12px 9px}.food-address-details{grid-template-columns:1fr}.admin-main{padding:20px 12px 55px}}
@media(prefers-reduced-motion:reduce){.dialog,.scrim{animation:none!important}}

.food-clear-cart{display:block;border:0;background:none;color:#80685a;font-size:12px;text-align:right;padding:9px 0;margin:0 0 6px auto;text-decoration:underline;text-underline-offset:3px}.food-clear-cart:hover{color:#c94632}
