/* Opt-in third storefront appearance. Clean and Banner do not match these selectors. */
.bocado-app-welcome,.bocado-app-address-card,.bocado-app-status-row,.bocado-app-hero,.bocado-app-bottom-nav {display:none}
#bocado-header-settings .bocado-design-app {flex:1;min-height:60px;display:grid;place-items:center;border:1px solid #e9caca;border-radius:8px;background:linear-gradient(135deg,#be020a,#7c0000);color:#fff;font-weight:800}
#bocado-header-settings:has(input[name="header_design"][value="app"]:checked) .bocado-header-media,
#bocado-header-settings:has(input[name="header_design"][value="app"]:checked) .bocado-header-dimensions,
#bocado-header-settings:has(input[name="header_design"][value="app"]:checked) .bocado-header-position,
#bocado-header-settings:has(input[name="header_design"][value="app"]:checked) .bocado-header-previews{display:none}
body.storefront[data-bocado-header="app"]{background:#fff!important;padding-bottom:calc(74px + env(safe-area-inset-bottom));}
body.storefront[data-bocado-header="app"]>header{display:grid!important;grid-template-columns:36% minmax(0,1fr)!important;grid-template-areas:"logo actions" "logo hello";align-items:center!important;column-gap:14px;row-gap:2px;background:linear-gradient(125deg,#b9000b,#7f0000)!important;color:#fff!important;padding:17px 17px 22px!important;border-radius:0 0 32px 0;border:0!important;position:relative!important;top:auto!important;min-height:132px;box-shadow:none!important;}
body.storefront[data-bocado-header="app"]>header .brand{grid-area:logo;display:flex;align-items:center;min-width:0;background:transparent!important;padding:0!important;}
body.storefront[data-bocado-header="app"]>header .brand img{display:block;max-width:100%;width:150px!important;height:auto!important;max-height:115px!important;object-fit:contain;}
body.storefront[data-bocado-header="app"]>header>.store-info{display:none!important}
body.storefront[data-bocado-header="app"]>header>nav{grid-area:actions;margin:0!important;display:flex!important;justify-content:flex-end!important;align-items:center!important;gap:4px!important;max-width:none!important;}
body.storefront[data-bocado-header="app"] #customerpoints{border:1px solid #fff9!important;background:transparent!important;color:#fff!important;border-radius:999px!important;padding:5px 8px!important;min-height:35px!important;height:35px!important;white-space:nowrap;font-size:12px!important;box-shadow:none!important;}
body.storefront[data-bocado-header="app"] #customerpoints .menu-points-star{color:#ffd832!important}
body.storefront[data-bocado-header="app"]>header .header-icon,
body.storefront[data-bocado-header="app"]>header #cartlink{color:#fff!important;border:0!important;background:transparent!important;min-width:35px!important;padding:4px!important;}
body.storefront[data-bocado-header="app"]>header .customer-menu>summary{color:#fff!important;border:0!important;background:transparent!important;}
body.storefront[data-bocado-header="app"] .bocado-app-welcome{display:flex;grid-area:hello;flex-direction:column;align-self:center;min-width:0;gap:4px;color:#fff}
body.storefront[data-bocado-header="app"] .bocado-app-welcome strong{font-size:clamp(16px,4vw,22px);font-weight:800;line-height:1.1}
body.storefront[data-bocado-header="app"] .bocado-app-welcome button{font:inherit;font-size:12px;line-height:1.3;color:#fff;border:0;background:transparent;box-shadow:none;text-align:left;padding:0;cursor:pointer;overflow-wrap:anywhere}
body.storefront[data-bocado-header="app"] main.shell{padding-top:12px!important}
body.storefront[data-bocado-header="app"] .bocado-app-address-card{display:grid;grid-template-columns:28px minmax(0,1fr);gap:10px;align-items:center;background:#fff0f2;border-radius:15px;padding:13px;margin:0 0 12px;color:#222;}
body.storefront[data-bocado-header="app"] .bocado-app-address-card>svg{color:#d80013;width:26px;height:26px}
body.storefront[data-bocado-header="app"] .bocado-app-address-card strong{font-size:14px;line-height:1.25}
body.storefront[data-bocado-header="app"] .bocado-app-address-card p{margin:3px 0 0;color:#555;font-size:12px;line-height:1.35}
body.storefront[data-bocado-header="app"] .bocado-app-address-card button{grid-column:1 / -1;justify-self:end;display:flex;align-items:center;gap:2px;color:#fff;background:#c8000e;border:0;border-radius:999px;padding:9px 14px;font-size:13px;font-weight:700;cursor:pointer}
body.storefront[data-bocado-header="app"] .delivery-area-notice{display:none!important}
body.storefront[data-bocado-header="app"] .bocado-app-status-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:3px 5px 14px;font-size:12px;color:#666;}
body.storefront[data-bocado-header="app"] [data-app-status]{border-radius:999px;background:#f2e8e8;padding:6px 10px;color:#9b060d;font-weight:800;white-space:nowrap}
body.storefront[data-bocado-header="app"] [data-app-status].is-open{background:#d8f8d3;color:#136719}
body.storefront[data-bocado-header="app"] .category-navigation{position:sticky!important;top:0!important;z-index:50!important;background:#fff!important;padding:8px 0!important;margin:0 0 10px!important;box-shadow:0 5px 12px #0000000a}
body.storefront[data-bocado-header="app"] #categories{display:flex!important;overflow-x:auto!important;scrollbar-width:none;gap:8px;padding:3px 4px!important;scroll-behavior:smooth}
body.storefront[data-bocado-header="app"] #categories::-webkit-scrollbar{display:none}
body.storefront[data-bocado-header="app"] #categories button{min-width:88px!important;max-width:108px!important;min-height:66px!important;display:flex!important;flex:0 0 auto!important;flex-direction:column;justify-content:center;align-items:center;gap:3px;border:1px solid #ececec!important;background:#fff!important;border-radius:12px!important;box-shadow:none!important;font-size:11px!important;padding:7px 5px!important;line-height:1.15!important;text-align:center;color:#202020!important}
body.storefront[data-bocado-header="app"] #categories button.active{border-color:#c7000d!important;background:#c7000d!important;color:#fff!important;box-shadow:0 2px 8px #c7000d33!important}
body.storefront[data-bocado-header="app"] #categories button svg{width:20px!important;height:20px!important}
body.storefront[data-bocado-header="app"] .category-scroll-track{display:none!important}
body.storefront[data-bocado-header="app"] .bocado-app-hero{display:flex;align-items:center;min-height:122px;padding:18px 18px;margin:0 0 18px;border-radius:14px;background:#202020 url('store-banner-v182.png') center/cover no-repeat;color:#fff;overflow:hidden}
body.storefront[data-bocado-header="app"] .bocado-app-hero-copy{font-size:clamp(20px,5.1vw,32px);font-weight:850;line-height:1.05;text-shadow:0 2px 5px #0009;max-width:60%;}
body.storefront[data-bocado-header="app"] .bocado-app-hero-copy em{display:block;color:#ffe440;font-style:italic}
body.storefront[data-bocado-header="app"] .menu-category-section{scroll-margin-top:110px}
body.storefront[data-bocado-header="app"] #products .categorytitle{font-size:20px!important;line-height:1.2!important;margin:16px 0 9px!important}
body.storefront[data-bocado-header="app"] #products .cards{grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
body.storefront[data-bocado-header="app"] #products .card{min-width:0!important;border-radius:14px!important;overflow:hidden;box-shadow:0 3px 12px #00000012}
body.storefront[data-bocado-header="app"] #products .card h3{font-size:15px!important;line-height:1.2!important}
body.storefront[data-bocado-header="app"] #products .card p{font-size:12px!important;line-height:1.4!important}
body.storefront[data-bocado-header="app"] #products .card .price{font-size:17px!important;color:#c10000!important}
body.storefront[data-bocado-header="app"] .bocado-app-bottom-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:fixed;bottom:0;left:0;right:0;z-index:80;background:#fff;border-top:1px solid #ededed;box-shadow:0 -3px 12px #00000010;padding:7px 6px calc(5px + env(safe-area-inset-bottom));min-height:60px}
body.storefront[data-bocado-header="app"] .bocado-app-bottom-nav button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;min-width:0;border:0;background:transparent;color:#555;font-size:10px;font-weight:650;padding:4px 2px;cursor:pointer}
body.storefront[data-bocado-header="app"] .bocado-app-bottom-nav button[aria-current="page"]{color:#c10011}
body.storefront[data-bocado-header="app"] .bocado-app-bottom-nav svg{width:21px;height:21px}
body.storefront[data-bocado-header="app"] .mobileorderbar{bottom:calc(70px + env(safe-area-inset-bottom))!important}
.bocado-app-search-panel{border:0;border-radius:16px;padding:20px;width:min(420px,calc(100vw - 32px));box-shadow:0 12px 40px #0005}
.bocado-app-search-panel::backdrop{background:#0007}
.bocado-app-search-panel form{display:flex;flex-direction:column;gap:12px}
.bocado-app-search-panel label{font-weight:800}
.bocado-app-search-panel input{padding:14px;border:1px solid #bbb;border-radius:9px;width:100%;font-size:16px}
.bocado-app-search-panel button{border:0;border-radius:9px;background:#bd0011;color:#fff;padding:12px;font-weight:800}
body.storefront[data-bocado-header="app"] #products [hidden],body.storefront[data-bocado-header="app"] .menu-category-section[hidden]{display:none!important}
@media(max-width:360px){body.storefront[data-bocado-header="app"]>header{grid-template-columns:32% minmax(0,1fr)!important;padding:12px!important;gap:6px!important}body.storefront[data-bocado-header="app"] #customerpoints{font-size:10px!important;padding:4px!important}body.storefront[data-bocado-header="app"] #categories button{min-width:78px!important}}

/* v2.0: layout repair for the third appearance only. This skin is loaded last. */
body.storefront[data-bocado-header="app"]>header{
  grid-template-columns:clamp(112px,30%,150px) minmax(0,1fr)!important;
  grid-template-rows:auto auto!important;
  grid-template-areas:"logo actions" "logo hello"!important;
  align-content:center;column-gap:12px;
}
body.storefront[data-bocado-header="app"]>header>.brand{
  grid-area:logo!important;grid-column:1!important;grid-row:1 / span 2!important;
  align-self:center!important;justify-self:start!important;width:100%!important;
}
body.storefront[data-bocado-header="app"]>header>.brand img{
  display:block!important;width:100%!important;height:auto!important;
  max-width:150px!important;max-height:120px!important;object-fit:contain!important;
}
body.storefront[data-bocado-header="app"]>header>nav{
  grid-area:actions!important;grid-column:2!important;grid-row:1!important;
  align-self:start!important;justify-self:end!important;min-width:0!important;
  width:100%!important;max-width:100%!important;flex:0 1 auto!important;
}
body.storefront[data-bocado-header="app"]>header .bocado-app-welcome{
  grid-area:hello!important;grid-column:2!important;grid-row:2!important;
  align-self:center!important;justify-self:stretch!important;min-width:0!important;
  text-align:left!important;
}
body.storefront[data-bocado-header="app"] #customerpoints{
  width:auto!important;max-width:145px!important;height:34px!important;min-height:34px!important;
  padding:5px 7px!important;gap:3px!important;
}
body.storefront[data-bocado-header="app"] #customerpoints strong{font-size:12px!important;line-height:1.2!important}
body.storefront[data-bocado-header="app"] #customerpoints small{font-size:9px!important}
body.storefront[data-bocado-header="app"] .bocado-app-welcome strong{display:block;font-size:clamp(16px,4vw,20px)}
body.storefront[data-bocado-header="app"] .bocado-app-welcome button{font-size:clamp(10px,2.9vw,13px);max-width:100%;line-height:1.4}
body.storefront[data-bocado-header="app"] main.shell{padding-top:12px!important}
/* Compact horizontal category rail; the existing JS retains click and scroll synchronization. */
body.storefront[data-bocado-header="app"] .category-navigation{
  position:sticky!important;top:0!important;z-index:45!important;
  background:#fff!important;margin:0 0 12px!important;padding:6px 0!important;
}
body.storefront[data-bocado-header="app"] #categories{
  display:flex!important;flex-wrap:nowrap!important;gap:7px!important;
  overflow-x:auto!important;overscroll-behavior-x:contain;
  padding:4px 2px 6px!important;scrollbar-width:none;
}
body.storefront[data-bocado-header="app"] #categories button{
  box-sizing:border-box!important;flex:0 0 78px!important;
  min-width:78px!important;max-width:78px!important;
  min-height:65px!important;height:auto!important;
  padding:7px 3px!important;gap:3px!important;
  border-radius:12px!important;font-size:11px!important;line-height:1.14!important;
  white-space:normal!important;overflow:hidden;
}
body.storefront[data-bocado-header="app"] #categories button .menu-category-label,
body.storefront[data-bocado-header="app"] #categories button>span:last-child{
  font-size:11px!important;line-height:1.15!important;font-weight:650!important;
  width:100%;max-width:100%;overflow-wrap:anywhere;text-align:center;
}
body.storefront[data-bocado-header="app"] #categories .menu-category-icon svg,
body.storefront[data-bocado-header="app"] #categories .category-drawing svg{
  width:22px!important;height:22px!important;
}
/* Keep the original product-card structure; exactly one horizontal card per row. */
body.storefront[data-bocado-header="app"] #products .cards{
  display:grid!important;grid-template-columns:minmax(0,1fr)!important;
  align-items:stretch!important;gap:12px!important;margin:0 0 24px!important;
}
body.storefront[data-bocado-header="app"] #products article.card{
  box-sizing:border-box!important;display:grid!important;
  grid-template-columns:clamp(108px,30%,160px) minmax(0,1fr)!important;
  grid-template-rows:minmax(0,1fr);gap:0!important;
  min-width:0!important;width:100%!important;
  min-height:150px!important;height:auto!important;max-height:none!important;
  border:1px solid #f0eded!important;border-radius:15px!important;overflow:hidden!important;
  background:#fff!important;box-shadow:0 3px 12px #00000010!important;
}
body.storefront[data-bocado-header="app"] #products article.card>.product-photo-frame,
body.storefront[data-bocado-header="app"] #products article.card>.product-photo-frame[data-photo-ratio]{
  grid-column:1!important;grid-row:1 / span 2!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  position:relative!important;align-self:stretch!important;
  width:100%!important;height:100%!important;
  min-height:150px!important;max-height:none!important;
  aspect-ratio:auto!important;overflow:hidden!important;
  background:#faf7f2!important;
}
body.storefront[data-bocado-header="app"] #products article.card>.product-photo-frame>img,
body.storefront[data-bocado-header="app"] #products article.card>.product-photo-frame[data-photo-ratio]>img{
  position:absolute!important;inset:0!important;display:block!important;
  width:100%!important;height:100%!important;
  min-height:0!important;max-width:100%!important;max-height:none!important;
  aspect-ratio:auto!important;
  object-fit:var(--menu-photo-fit,contain)!important;object-position:center!important;
}
body.storefront[data-bocado-header="app"] #products article.card>.cardbody{
  box-sizing:border-box!important;grid-column:2!important;grid-row:1 / span 2!important;
  display:flex!important;flex-direction:column!important;
  min-width:0!important;min-height:150px!important;
  padding:12px!important;gap:6px!important;
}
body.storefront[data-bocado-header="app"] #products article.card:has(>.product-loyalty-badge){
  grid-template-rows:auto minmax(0,1fr)!important;
}
body.storefront[data-bocado-header="app"] #products article.card>.product-loyalty-badge{
  grid-column:2!important;grid-row:1!important;align-self:start!important;
  margin:7px 10px 0!important;
}
body.storefront[data-bocado-header="app"] #products article.card:has(>.product-loyalty-badge)>.cardbody{
  grid-column:2!important;grid-row:2!important;padding-top:6px!important;min-height:120px!important;
}
body.storefront[data-bocado-header="app"] #products article.card>.cardbody h3{
  display:block!important;height:auto!important;min-height:0!important;max-height:none!important;
  margin:0!important;font-size:15px!important;line-height:1.28!important;
  overflow-wrap:anywhere!important;overflow:visible!important;
  -webkit-line-clamp:unset!important;
}
body.storefront[data-bocado-header="app"] #products article.card>.cardbody>p{
  display:block!important;height:auto!important;min-height:0!important;max-height:none!important;
  margin:0 0 4px!important;font-size:12px!important;line-height:1.35!important;
  overflow-wrap:anywhere!important;overflow:visible!important;
  -webkit-line-clamp:unset!important;
}
body.storefront[data-bocado-header="app"] #products article.card .cardfoot{
  box-sizing:border-box!important;display:flex!important;flex-direction:row!important;
  flex-wrap:wrap!important;justify-content:space-between!important;
  align-items:center!important;gap:8px!important;
  width:100%!important;min-width:0!important;min-height:0!important;
  margin-top:auto!important;
}
body.storefront[data-bocado-header="app"] #products article.card .cardfoot .price{
  position:static!important;display:block!important;
  padding-top:0!important;min-width:0!important;max-width:100%!important;
  font-size:17px!important;line-height:1.25!important;
  color:#b50012!important;white-space:normal!important;overflow-wrap:normal!important;
}
body.storefront[data-bocado-header="app"] #products article.card .cardfoot .price small{
  position:static!important;display:block!important;
  margin:0!important;font-size:10px!important;line-height:1.2!important;
}
body.storefront[data-bocado-header="app"] #products article.card .cardfoot button{
  box-sizing:border-box!important;position:static!important;flex:0 0 auto!important;
  width:auto!important;max-width:100%!important;min-height:38px!important;
  margin:0 0 0 auto!important;padding:8px 11px!important;
  border-radius:10px!important;font-size:12px!important;line-height:1.2!important;
  white-space:normal!important;
}
@media(max-width:380px){
  body.storefront[data-bocado-header="app"]>header{
    grid-template-columns:94px minmax(0,1fr)!important;column-gap:8px!important;padding:12px 10px 16px!important;
  }
  body.storefront[data-bocado-header="app"]>header>nav{gap:2px!important}
  body.storefront[data-bocado-header="app"] #customerpoints{padding:4px!important;max-width:119px!important}
  body.storefront[data-bocado-header="app"] #products article.card{
    grid-template-columns:104px minmax(0,1fr)!important;
  }
  body.storefront[data-bocado-header="app"] #products article.card>.cardbody{padding:10px!important}
}
@media(min-width:761px){
  body.storefront[data-bocado-header="app"] #products .cards{max-width:900px}
  body.storefront[data-bocado-header="app"] #products article.card{
    grid-template-columns:180px minmax(0,1fr)!important;min-height:170px!important;
  }
  body.storefront[data-bocado-header="app"] #products article.card>.product-photo-frame{min-height:170px!important}
}
@media(prefers-reduced-motion:reduce){
 body.storefront[data-bocado-header="app"] #categories{scroll-behavior:auto!important}
}

/* Keep desktop cards horizontal even when a photo-ratio override is configured. */
@media(min-width:651px){
  body.storefront.customer-menu-modern[data-bocado-header="app"] #products article.card:has(>.product-photo-frame[data-photo-ratio]){
    min-height:170px!important;max-height:none!important;height:auto!important;
  }
  body.storefront.customer-menu-modern[data-bocado-header="app"] #products article.card>.product-photo-frame[data-photo-ratio]{
    min-height:170px!important;max-height:none!important;height:100%!important;aspect-ratio:auto!important;
  }
}

/* v3 — área do cliente, somente no visual Moderno. */
body.storefront[data-bocado-header="app"] #customermenu {display:none!important}
body.storefront[data-bocado-header="app"] .bocado-app-address-card[hidden] {display:none!important}
body.storefront[data-bocado-header="app"] .bocado-app-address-card {
  grid-template-columns:26px minmax(0,1fr) auto!important;
  background:#fff5f5!important;border:1px solid #f4d8d8!important;
  border-radius:14px!important;padding:12px!important;gap:10px!important;
  box-shadow:0 2px 8px #00000005!important;
}
body.storefront[data-bocado-header="app"] .bocado-app-address-card > svg {width:23px!important;height:23px!important;align-self:center}
body.storefront[data-bocado-header="app"] .bocado-app-address-card strong{display:block;font-size:14px!important;color:#401d22}
body.storefront[data-bocado-header="app"] .bocado-app-address-card p{font-size:12px!important;margin:3px 0 0!important}
body.storefront[data-bocado-header="app"] .bocado-app-address-card button{
  grid-column:auto!important;justify-self:end!important;align-self:center!important;
  border-radius:10px!important;white-space:nowrap;padding:10px 12px!important;
}
body.storefront[data-bocado-header="app"] .bocado-app-welcome button[data-app-current-address] {
  display:flex;gap:4px;align-items:center;min-width:0;max-width:100%;overflow-wrap:anywhere;
  text-align:left;line-height:1.35!important;
}
body.storefront[data-bocado-header="app"] .bocado-app-address-chevron{display:inline-flex;flex:0 0 15px;align-items:center}
body.storefront[data-bocado-header="app"] .bocado-app-address-chevron svg{height:15px;width:15px;stroke-width:2.7}
.bocado-app-profile-dialog,.bocado-app-address-dialog{
  box-sizing:border-box;width:min(460px,calc(100vw - 28px));max-height:calc(100dvh - 32px);
  overflow:auto;border:0;border-radius:20px;background:#fff;color:#261b1d;
  padding:22px;box-shadow:0 20px 70px #0004;
}
.bocado-app-profile-dialog::backdrop,.bocado-app-address-dialog::backdrop{background:#161414a8}
.bocado-app-dialog-heading{display:flex;justify-content:space-between;align-items:start;gap:10px;margin-bottom:10px}
.bocado-app-dialog-heading small{font-size:11px;font-weight:750;color:#af2535}
.bocado-app-dialog-heading h2{margin:4px 0 8px;font-size:23px;line-height:1.15}
.bocado-app-dialog-close{flex:0 0 36px;width:36px;height:36px;min-height:36px;border:0;background:#f6f4f4;color:#555;border-radius:50%;font-size:26px;line-height:1;cursor:pointer}
.bocado-app-profile-actions{display:grid;gap:2px;margin-top:16px}
.bocado-app-profile-actions button{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  text-align:left;background:#fff;color:#262024;min-height:52px;
  border:0;border-bottom:1px solid #f0e9e9;padding:10px 3px;
  font-size:15px;font-weight:650;box-shadow:none;cursor:pointer;
}
.bocado-app-profile-actions button svg{width:17px;height:17px;color:#b30a19;flex-shrink:0}
.bocado-app-profile-links{display:flex;gap:9px 17px;flex-wrap:wrap;margin-top:22px;font-size:13px}
.bocado-app-profile-links a{color:#a40b1b;text-decoration:underline;text-underline-offset:3px}
.bocado-app-address-dialog > p{font-size:13px;line-height:1.5;color:#6a6161;margin:0 0 14px}
.bocado-app-address-dialog [data-app-address-list]{display:grid;gap:8px}
.bocado-app-address-choice{
  width:100%;min-height:53px;white-space:normal;text-align:left;
  background:#fff;color:#282124;border:1px solid #e9e0e0;border-radius:12px;
  font-size:14px;font-weight:600;line-height:1.4;padding:12px;box-shadow:none;cursor:pointer;
}
.bocado-app-address-choice.selected{background:#fff3f4;border-color:#bb1e2a;color:#8f1521}
.bocado-app-secondary{margin-top:14px;padding:11px 14px;background:#b8091b;color:#fff;border:0;border-radius:10px;width:100%;font-weight:700;cursor:pointer}
.bocado-app-repeat-order{display:none}
body.storefront[data-bocado-header="app"] .bocado-app-repeat-order{display:inline-flex;margin:0 0 16px;padding:9px 12px;font-size:13px}
@media(max-width:390px){
 body.storefront[data-bocado-header="app"] .bocado-app-address-card{grid-template-columns:23px minmax(0,1fr)!important}
 body.storefront[data-bocado-header="app"] .bocado-app-address-card button{grid-column:2!important;justify-self:start!important;padding:8px 12px!important}
}


/* v4 — identidade do topo e barra de checkout do visual Moderno. */
body.storefront[data-bocado-header="app"]>header{
  display:grid!important;
  grid-template-columns:clamp(90px,27%,112px) minmax(0,1fr)!important;
  grid-template-rows:auto auto!important;
  grid-template-areas:"logo hello" "logo actions"!important;
  align-items:center!important;
  gap:5px 13px!important;
  min-height:112px!important;
  background:var(--bocado-app-header-bg,#FFF3F0)!important;
  color:var(--bocado-app-header-ink,#352827)!important;
  border-radius:0 0 22px 0!important;
  padding:13px 16px 15px!important;
}
body.storefront[data-bocado-header="app"]>header .brand{grid-area:logo!important;align-self:center!important}
body.storefront[data-bocado-header="app"]>header .brand img{width:100%!important;max-height:105px!important;object-fit:contain!important}
body.storefront[data-bocado-header="app"]>header .bocado-app-welcome{
  grid-area:hello!important;align-self:end!important;min-width:0!important;gap:4px!important;
  color:var(--bocado-app-header-ink,#352827)!important;
}
body.storefront[data-bocado-header="app"] .bocado-app-welcome strong{font-size:clamp(16px,4vw,19px)!important;line-height:1.18!important}
body.storefront[data-bocado-header="app"] .bocado-app-welcome button[data-app-current-address]{
  font-size:14px!important;font-weight:600!important;line-height:1.35!important;
  color:var(--bocado-app-header-ink,#352827)!important;
}
body.storefront[data-bocado-header="app"]>header>nav{
  grid-area:actions!important;align-self:start!important;justify-content:flex-end!important;
  flex-wrap:nowrap!important;gap:8px!important;min-width:0!important;
}
body.storefront[data-bocado-header="app"] #customerpoints{
  height:36px!important;min-height:36px!important;min-width:0!important;
  background:#fff!important;color:#78232a!important;border:1px solid #e7c5c5!important;
  padding:5px 10px!important;border-radius:999px!important;
}
body.storefront[data-bocado-header="app"] #customerpoints :is(strong,small){color:#78232a!important}
body.storefront[data-bocado-header="app"]>header #cartlink{
  background:#fff!important;border:1px solid #e7c5c5!important;border-radius:11px!important;
  color:#a50c1d!important;min-width:38px!important;min-height:36px!important;
  display:inline-flex!important;justify-content:center!important;align-items:center!important;
}
body.storefront[data-bocado-header="app"]>header #cartlink svg{color:#a50c1d!important}
@media(max-width:380px){
  body.storefront[data-bocado-header="app"]>header{
    grid-template-columns:88px minmax(0,1fr)!important;gap:4px 9px!important;
    padding:12px 10px!important;
  }
  body.storefront[data-bocado-header="app"]>header>nav{gap:5px!important}
  body.storefront[data-bocado-header="app"] #customerpoints{padding:4px 7px!important}
  body.storefront[data-bocado-header="app"] .bocado-app-welcome button[data-app-current-address]{font-size:14px!important}
}
/* Regra original foi escrita como .mobileorderbar, mas o HTML usa .mobile-order-bar. */
@media(max-width:760px){
  body.storefront[data-bocado-header="app"]{padding-bottom:calc(164px + env(safe-area-inset-bottom))!important}
  body.storefront[data-bocado-header="app"] .mobile-order-bar:not([hidden]){
    position:fixed!important;bottom:var(--bocado-app-nav-height,74px)!important;
    left:0!important;right:0!important;z-index:81!important;
    display:flex!important;align-items:center!important;gap:10px!important;
    background:#fff!important;border-top:1px solid #eee1e1!important;
    box-shadow:0 -4px 14px #24110b0c!important;
    padding:10px 14px!important;
  }
  body.storefront[data-bocado-header="app"] .bocado-app-bottom-nav{z-index:80!important}
}
/* Resultados dentro da busca, nao atras de um dialogo modal. */
.bocado-app-search-panel{width:min(510px,calc(100vw - 24px))!important;max-height:min(85dvh,740px);overflow:auto}
.bocado-app-search-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 14px}
.bocado-app-search-title h2{font-size:21px;margin:0}
.bocado-app-search-title button{flex-shrink:0;min-width:36px;min-height:36px;padding:0!important;font-size:24px;line-height:1;background:#f5f1f1;color:#3d2d2d}
.bocado-app-search-panel label{display:block;font-weight:650;margin-bottom:7px}
.bocado-app-search-panel input{margin-bottom:8px}
.bocado-app-search-panel [data-app-search-empty]{color:#696060;font-size:13px;min-height:18px;margin:7px 0}
.bocado-app-search-panel [data-app-search-results]{display:grid;gap:8px;max-height:49dvh;overflow:auto}
.bocado-app-search-panel .bocado-app-search-result{
  width:100%;display:flex;align-items:center;gap:12px;text-align:left;
  border:1px solid #eee4e4;border-radius:12px;padding:8px;background:#fff;color:#2d2525;
  box-shadow:none;cursor:pointer;
}
.bocado-app-search-result>img,.bocado-app-search-photo{width:58px;height:58px;flex:0 0 58px;object-fit:contain;border-radius:8px;background:#faf7f2}
.bocado-app-search-details{display:grid;gap:3px;min-width:0}
.bocado-app-search-name{font-size:14px;font-weight:750;line-height:1.25;overflow-wrap:anywhere}
.bocado-app-search-details small{color:#a10d1e;font-weight:700;font-size:13px}
.bocado-app-search-result:disabled{opacity:.55;cursor:not-allowed}
.bocado-app-profile-actions .bocado-app-logout{color:#a10d1e!important;border-top:1px solid #f0e9e9;margin-top:7px}
.bocado-app-profile-actions .bocado-app-logout[hidden]{display:none!important}


/* V5: layout unico, compacto e opt-in. Nao altera Clean/Banner. */
body.storefront[data-bocado-header="app"]>header{
  box-sizing:border-box!important;
  display:grid!important;
  grid-template-columns:clamp(68px,21vw,88px) minmax(0,1fr) auto!important;
  grid-template-rows:minmax(34px,auto) minmax(34px,auto)!important;
  grid-template-areas:"logo hello actions" "logo address address"!important;
  gap:5px 8px!important;
  align-items:center!important;
  align-content:center!important;
  min-height:0!important;
  height:auto!important;
  padding:10px 12px 12px!important;
  border-radius:0 0 22px 0!important;
  background:var(--bocado-app-header-bg,#FFF3F0)!important;
  color:var(--bocado-app-header-ink,#352827)!important;
}
body.storefront[data-bocado-header="app"]>header>.brand{
  display:flex!important;grid-area:logo!important;grid-column:1!important;grid-row:1 / span 2!important;
  justify-self:center!important;align-self:center!important;width:100%!important;
  margin:0!important;padding:0!important;min-width:0!important;
}
body.storefront[data-bocado-header="app"]>header>.brand img{
  display:block!important;width:100%!important;max-width:88px!important;
  height:auto!important;max-height:82px!important;object-fit:contain!important;
}
/* display:contents lets the name and address occupy different rows of the existing header,
   without moving elements or affecting the original Clean/Banner DOM. */
body.storefront[data-bocado-header="app"]>header>.bocado-app-welcome{
  display:contents!important;
}
body.storefront[data-bocado-header="app"]>header>.bocado-app-welcome>strong{
  grid-area:hello!important;grid-column:2!important;grid-row:1!important;
  min-width:0!important;max-width:100%!important;align-self:center!important;
  white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
  font-size:clamp(14px,3.7vw,17px)!important;line-height:1.25!important;
  color:var(--bocado-app-header-ink,#352827)!important;
}
body.storefront[data-bocado-header="app"]>header>.bocado-app-welcome>[data-app-current-address]{
  grid-area:address!important;grid-column:2 / 4!important;grid-row:2!important;
  display:flex!important;align-items:center!important;justify-content:flex-start!important;
  gap:5px!important;min-width:0!important;max-width:100%!important;
  font-size:14px!important;font-weight:600!important;line-height:1.25!important;
  text-align:left!important;padding:0!important;margin:0!important;
  color:var(--bocado-app-header-ink,#352827)!important;
  white-space:normal!important;overflow-wrap:anywhere!important;
}
body.storefront[data-bocado-header="app"]>header>.bocado-app-welcome .bocado-app-address-chevron{
  flex-shrink:0!important;display:inline-flex!important;
}
body.storefront[data-bocado-header="app"]>header>nav{
  grid-area:actions!important;grid-column:3!important;grid-row:1!important;
  position:static!important;display:flex!important;flex-wrap:nowrap!important;
  width:auto!important;min-width:0!important;max-width:100%!important;
  justify-self:end!important;align-self:center!important;justify-content:flex-end!important;
  gap:6px!important;margin:0!important;padding:0!important;
}
body.storefront[data-bocado-header="app"] #customerpoints{
  box-sizing:border-box!important;max-width:132px!important;
  min-height:34px!important;height:34px!important;padding:4px 8px!important;
  font-size:12px!important;white-space:nowrap!important;
}
/* O acesso principal ao carrinho no Moderno e a barra inferior.
   Mantemos #cartlink no DOM para que Clean e Banner continuem intactos. */
body.storefront[data-bocado-header="app"]>header #cartlink{
  display:none!important;
}
@media(max-width:370px){
  body.storefront[data-bocado-header="app"]>header{grid-template-columns:68px minmax(0,1fr) auto!important;gap:4px 6px!important;padding:9px 8px 11px!important}
  body.storefront[data-bocado-header="app"] #customerpoints{padding:3px 5px!important;font-size:11px!important;max-width:108px!important}
  body.storefront[data-bocado-header="app"]>header>nav{gap:3px!important}
}
/* Banner do cardapio: enquadramento prioriza celular, sem afetar o Banner de cabecalho. */
body.storefront[data-bocado-header="app"] .bocado-app-hero{
  box-sizing:border-box!important;
  width:100%!important;min-height:120px!important;height:auto!important;
  aspect-ratio:8 / 3!important;max-height:185px!important;
  background-position:center!important;background-size:cover!important;
  padding:14px 18px!important;
}
body.storefront[data-bocado-header="app"] .bocado-app-hero-copy{
  max-width:58%!important;font-size:clamp(17px,4.8vw,30px)!important;
  overflow-wrap:anywhere!important;
}
@media(min-width:760px){
  body.storefront[data-bocado-header="app"] .bocado-app-hero{max-height:210px!important;aspect-ratio:auto!important;min-height:180px!important}
}
/* V6: barra do carrinho compacta. O mesmo botao #mobileviewcart e utilizado
   pela logica de pedidos existente: ao tocar, abre o carrinho para revisao.
   A acao de finalizar permanece dentro do carrinho (checkout original). */
@media(max-width:760px){
  body.storefront[data-bocado-header="app"]{
    padding-bottom:calc(var(--bocado-app-nav-height,74px) + 54px)!important;
  }
  body.storefront[data-bocado-header="app"] .mobile-order-bar:not([hidden]){
    box-sizing:border-box!important;
    display:flex!important;align-items:center!important;
    position:fixed!important;
    bottom:var(--bocado-app-nav-height,74px)!important;
    left:0!important;right:0!important;z-index:81!important;
    width:100%!important;height:48px!important;min-height:48px!important;max-height:48px!important;
    padding:2px 10px!important;margin:0!important;gap:0!important;
    background:#fff!important;border-top:1px solid #ece3e3!important;
    box-shadow:0 -2px 8px #0000000b!important;
  }
  body.storefront[data-bocado-header="app"] .mobile-order-bar #mobileviewcart{
    display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-rows:auto auto!important;align-items:center!important;
    column-gap:8px!important;row-gap:0!important;
    width:100%!important;min-width:0!important;min-height:44px!important;height:44px!important;
    margin:0!important;padding:0!important;text-align:left!important;
    background:transparent!important;border:0!important;box-shadow:none!important;
    color:#36272a!important;cursor:pointer;
  }
  body.storefront[data-bocado-header="app"] .mobile-order-bar #mobilecartcount{
    grid-column:1!important;grid-row:1!important;align-self:end!important;
    display:block!important;margin:0!important;
    font-size:10px!important;line-height:1.2!important;font-weight:500!important;
    color:#655a5b!important;
  }
  body.storefront[data-bocado-header="app"] .mobile-order-bar #mobilecarttotal{
    grid-column:1!important;grid-row:2!important;align-self:start!important;
    display:block!important;margin:0!important;
    font-size:15px!important;line-height:1.25!important;font-weight:800!important;
    color:#9d0018!important;
  }
  /* Apenas um comando visual. Toda a superficie do botao tem alvo de 44px. */
  body.storefront[data-bocado-header="app"] .mobile-order-bar #mobileviewcart::after{
    content:"Ver pedido  ›";
    box-sizing:border-box;display:flex;align-items:center;justify-content:center;
    grid-column:2;grid-row:1 / span 2;align-self:center;
    height:40px;min-width:108px;padding:0 11px;
    border-radius:11px;background:#ba0017;color:#fff;
    font-size:12px;font-weight:800;white-space:nowrap;line-height:1;
  }
  /* Checkout continua funcional no carrinho; o atalho duplicado fica oculto. */
  body.storefront[data-bocado-header="app"] .mobile-order-bar #mobilecheckout{
    display:none!important;
  }
}


/* V7: header minimalista rosé + ícones 3D derivados da prévia aprovada.
   Regras limitadas a data-bocado-header=app para preservar Clean/Banner. */
body.storefront[data-bocado-header="app"]>header {
  display:grid!important;box-sizing:border-box!important;
  grid-template-columns:minmax(100px,1fr) minmax(0,1fr)!important;
  grid-template-rows:auto auto auto!important;
  grid-template-areas:"brand points" "brand greeting" "status status"!important;
  align-items:center!important;gap:0 12px!important;
  padding:12px 16px 10px!important;margin:0!important;
  min-height:0!important;height:auto!important;border-radius:0!important;
  background:var(--bocado-app-header-bg,#FFF3F0)!important;
}
body.storefront[data-bocado-header="app"]>header>.brand {
  grid-area:brand!important;grid-column:1!important;grid-row:1 / span 2!important;
  display:flex!important;justify-self:start!important;align-self:center!important;
  width:min(38vw,160px)!important;min-width:0!important;
}
body.storefront[data-bocado-header="app"]>header>.brand img{
  display:block!important;width:100%!important;height:auto!important;
  max-width:150px!important;max-height:89px!important;object-fit:contain!important;
}
body.storefront[data-bocado-header="app"]>header>nav{
  grid-area:points!important;grid-column:2!important;grid-row:1!important;
  display:flex!important;align-items:center!important;justify-content:flex-end!important;
  width:100%!important;min-height:31px!important;
}
body.storefront[data-bocado-header="app"]>header .bocado-app-welcome{
  display:block!important;grid-area:greeting!important;grid-column:2!important;grid-row:2!important;
  text-align:right!important;justify-self:end!important;align-self:center!important;
  margin:0!important;padding:0!important;
}
body.storefront[data-bocado-header="app"]>header .bocado-app-welcome>strong{
  font-size:clamp(16px,4.4vw,21px)!important;font-weight:800!important;line-height:1.25!important;
  color:var(--bocado-app-header-ink,#352827)!important;
}
body.storefront[data-bocado-header="app"] #customerpoints{
  display:inline-flex!important;align-items:center!important;gap:5px!important;
  width:auto!important;max-width:100%!important;min-height:33px!important;height:auto!important;
  background:transparent!important;border:0!important;box-shadow:none!important;
  color:var(--bocado-app-header-ink,#352827)!important;padding:0!important;border-radius:0!important;
  font-size:12px!important;cursor:pointer;
}
body.storefront[data-bocado-header="app"] #customerpoints :is(strong,small){color:var(--bocado-app-header-ink,#352827)!important;font-size:12px!important}
body.storefront[data-bocado-header="app"] #customerpoints .menu-points-star{
  display:inline-block!important;flex:0 0 31px!important;width:31px!important;height:31px!important;
  background:url('bocado-icon-star-3d.png') center / contain no-repeat!important;
  color:transparent!important;
}
body.storefront[data-bocado-header="app"] #customerpoints .menu-points-star svg{display:none!important}
body.storefront[data-bocado-header="app"] .bocado-app-status-row{
  grid-area:status!important;grid-column:1 / -1!important;grid-row:3!important;
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  gap:8px!important;flex-wrap:nowrap!important;width:100%!important;
  min-width:0!important;border-top:1px solid #bd7c772b!important;
  margin:10px 0 0!important;padding:10px 0 0!important;
  color:var(--bocado-app-header-ink,#352827)!important;
}
body.storefront[data-bocado-header="app"] .bocado-app-status-pill,
body.storefront[data-bocado-header="app"] .bocado-app-hours{
  display:inline-flex;align-items:center;gap:5px;min-width:0;
  color:var(--bocado-app-header-ink,#352827)!important;
  font-size:clamp(10px,2.8vw,13px);line-height:1.25;
}
body.storefront[data-bocado-header="app"] .bocado-app-status-pill{flex:0 0 auto;font-weight:700}
body.storefront[data-bocado-header="app"] .bocado-app-status-pill.is-open strong{color:#15793c!important}
body.storefront[data-bocado-header="app"] .bocado-app-hours{text-align:right;justify-content:flex-end;flex:1}
body.storefront[data-bocado-header="app"] .bocado-app-status-row img{display:block;flex:0 0 auto;width:29px;height:29px;object-fit:contain}
body.storefront[data-bocado-header="app"] .bocado-app-hours img{width:26px;height:26px}
/* Endereço do cliente isolado em cartão branco fora do cabeçalho rosé. */
body.storefront[data-bocado-header="app"]>.bocado-app-address-card{
  box-sizing:border-box!important;display:block!important;
  width:min(1100px,calc(100% - 32px))!important;
  margin:12px auto 10px!important;padding:0!important;
  border:1px solid #f1e9e7!important;border-radius:14px!important;
  background:#fff!important;box-shadow:0 3px 13px #2310100a!important;
}
body.storefront[data-bocado-header="app"]>.bocado-app-address-card>button{
  box-sizing:border-box!important;display:flex!important;align-items:center!important;
  gap:10px!important;width:100%!important;min-height:64px!important;
  border:0!important;background:transparent!important;color:#342a29!important;
  padding:10px 12px!important;text-align:left!important;box-shadow:none!important;
  cursor:pointer!important;
}
body.storefront[data-bocado-header="app"]>.bocado-app-address-card .bocado-app-address-3d{
  width:39px;height:39px;flex:0 0 39px;object-fit:contain;
}
body.storefront[data-bocado-header="app"]>.bocado-app-address-card .bocado-app-address-content{
  flex:1;min-width:0;display:flex;flex-direction:column;gap:3px;
}
body.storefront[data-bocado-header="app"]>.bocado-app-address-card small{
  color:#925c61!important;font-size:10px!important;letter-spacing:.065em;font-weight:800;
}
body.storefront[data-bocado-header="app"]>.bocado-app-address-card [data-app-address-line]{
  color:#342a29!important;font-size:14px!important;font-weight:650!important;line-height:1.35!important;
  overflow-wrap:anywhere!important;
}
body.storefront[data-bocado-header="app"]>.bocado-app-address-card .bocado-app-address-chevron{
  display:flex;flex:0 0 18px;align-items:center;justify-content:center;
  color:#a90019;
}
body.storefront[data-bocado-header="app"]>.bocado-app-address-card .bocado-app-address-chevron[hidden]{display:none!important}
body.storefront[data-bocado-header="app"] .bocado-app-status-row~.bocado-app-status-row{display:none!important}
@media(max-width:350px){
  body.storefront[data-bocado-header="app"]>header{padding:10px 11px!important;gap:0 5px!important}
  body.storefront[data-bocado-header="app"]>header>.brand{width:min(37vw,125px)!important}
  body.storefront[data-bocado-header="app"] .bocado-app-status-row{gap:4px!important}
  body.storefront[data-bocado-header="app"] .bocado-app-status-row img{width:24px;height:24px}
  body.storefront[data-bocado-header="app"] .bocado-app-hours img{width:22px;height:22px}
}
/* Barra de finalização compacta: carrinho à esquerda e Finalizar pedido à direita. */
@media(max-width:760px){
  body.storefront[data-bocado-header="app"] #cart{display:none!important}
  body.storefront[data-bocado-header="app"] .mobile-order-bar:not([hidden]){
    display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;
    align-items:center!important;gap:6px!important;
    height:51px!important;min-height:51px!important;max-height:51px!important;
    padding:4px 12px!important;
  }
  body.storefront[data-bocado-header="app"] .mobile-order-bar #mobileviewcart{
    display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;
    min-width:0!important;width:auto!important;height:42px!important;min-height:42px!important;
    padding:2px 0!important;background:transparent!important;box-shadow:none!important;border:0!important;
    color:#3a3030!important;
  }
  body.storefront[data-bocado-header="app"] .mobile-order-bar #mobileviewcart::after{content:none!important;display:none!important}
  body.storefront[data-bocado-header="app"] .mobile-order-bar #mobilecartcount,
  body.storefront[data-bocado-header="app"] .mobile-order-bar #mobilecarttotal{
    display:block!important;position:static!important;margin:0!important;
    font-size:11px!important;line-height:1.2!important;
  }
  body.storefront[data-bocado-header="app"] .mobile-order-bar #mobilecarttotal{font-size:16px!important;color:#ae061c!important}
  body.storefront[data-bocado-header="app"] .mobile-order-bar #mobilecartcount,body.storefront[data-bocado-header="app"] .mobile-order-bar #mobilecarttotal{align-self:flex-start!important;justify-self:start!important}
  body.storefront[data-bocado-header="app"] .mobile-order-bar #mobilecheckout{
    display:flex!important;align-items:center!important;justify-content:center!important;
    min-width:134px!important;max-width:55vw!important;width:auto!important;
    height:42px!important;min-height:42px!important;padding:0 13px!important;
    border-radius:11px!important;border:0!important;background:#b90019!important;
    color:#fff!important;font-size:0!important;line-height:1!important;
    margin:0!important;white-space:nowrap!important;cursor:pointer;
  }
  body.storefront[data-bocado-header="app"] .mobile-order-bar #mobilecheckout::after{
    content:"Finalizar pedido →";font-size:12px!important;font-weight:800!important;line-height:1.1!important;
  }
  body.storefront[data-bocado-header="app"] .mobile-order-bar #mobilecheckout:disabled{
    background:#ebe8e8!important;color:#655a5d!important;cursor:not-allowed;
  }
  body.storefront[data-bocado-header="app"] .mobile-order-bar #mobilecheckout:disabled::after{content:"Loja fechada"}
  body.storefront[data-bocado-header="app"] .mobile-order-bar #mobilecheckout:not(:disabled).bocado-app-schedule::after{content:"Agendar retirada →"}
}

/* V8 - Unificação da etapa Carrinho no modal original do checkout. */
body.storefront[data-bocado-header="app"] #checkoutdialog {
  box-sizing:border-box;width:min(580px,calc(100vw - 20px));
  max-height:calc(100dvh - 24px);padding:16px;
  border-radius:18px;overflow-y:auto;color:#2e2929;
}
body.storefront[data-bocado-header="app"] #checkoutdialog .checkout-progress{display:none!important}
.bocado-app-modern-progress{display:none}
body.storefront[data-bocado-header="app"] #checkoutdialog .bocado-app-modern-progress{
  display:grid;grid-template-columns:repeat(var(--bocado-modern-step-count,5),minmax(0,1fr));
  gap:2px;margin:28px 0 13px;padding:0 2px;
}
body.storefront[data-bocado-header="app"] .bocado-app-progress-step{
  min-width:0;display:flex;flex-direction:column;align-items:center;gap:4px;
  text-align:center;color:#8b8080;font-size:10px;line-height:1.15;
}
body.storefront[data-bocado-header="app"] .bocado-app-progress-step small{
  display:block;width:100%;font-size:9px;font-weight:650;white-space:nowrap;
  overflow:hidden;text-overflow:clip;letter-spacing:-.02em;
}
body.storefront[data-bocado-header="app"] .bocado-app-progress-icon{
  display:grid;place-items:center;width:33px;height:33px;border-radius:11px;
  background:#f2eeee;color:#827579;
}
body.storefront[data-bocado-header="app"] .bocado-app-progress-step.current{color:#a80822;font-weight:800}
body.storefront[data-bocado-header="app"] .bocado-app-progress-step.current .bocado-app-progress-icon{
  background:#b90021;color:#fff;box-shadow:0 3px 10px #a200241d;
}
body.storefront[data-bocado-header="app"] .bocado-app-progress-step.done{color:#26754a}
body.storefront[data-bocado-header="app"] .bocado-app-progress-step.done .bocado-app-progress-icon{
  background:#e4f5ea;color:#277849;
}
.bocado-app-cart-stage{display:none}
body.storefront[data-bocado-header="app"] #checkoutdialog[data-app-cart-step="true"] .bocado-app-cart-stage{display:block}
body.storefront[data-bocado-header="app"] #checkoutdialog[data-app-cart-step="true"] .checkout-step,
body.storefront[data-bocado-header="app"] #checkoutdialog[data-app-cart-step="true"] .checkout-actions{display:none!important}
body.storefront[data-bocado-header="app"] #checkoutdialog .bocado-app-cart-stage h2{
  margin:2px 0 9px;font-size:20px;line-height:1.2;color:#302628;
}
body.storefront[data-bocado-header="app"] #checkoutdialog [data-app-review-items]{
  display:grid;gap:0;max-height:min(46dvh,420px);overflow-y:auto;
  border-top:1px solid #f2eded;border-bottom:1px solid #f2eded;
}
body.storefront[data-bocado-header="app"] .bocado-app-cart-item{
  display:grid;gap:8px;padding:11px 0;border-bottom:1px solid #f1e9e9;
}
body.storefront[data-bocado-header="app"] .bocado-app-cart-item:last-child{border-bottom:0}
body.storefront[data-bocado-header="app"] .bocado-app-cart-info{display:grid;gap:3px;min-width:0}
body.storefront[data-bocado-header="app"] .bocado-app-cart-info strong{font-size:14px;line-height:1.25;color:#362a2a}
body.storefront[data-bocado-header="app"] .bocado-app-cart-info small{
  color:#736667;font-size:12px;line-height:1.3;overflow-wrap:anywhere;
}
body.storefront[data-bocado-header="app"] .bocado-app-cart-controls{
  display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;
}
body.storefront[data-bocado-header="app"] .bocado-app-cart-quantity{
  display:flex;align-items:center;gap:8px;white-space:nowrap;
}
body.storefront[data-bocado-header="app"] .bocado-app-cart-quantity button{
  box-sizing:border-box;min-width:36px;min-height:36px;width:36px;height:36px;
  display:grid;place-items:center;padding:0;border:1px solid #e6dddd;
  border-radius:9px;background:#fff;color:#882435;font-size:19px;font-weight:700;
}
body.storefront[data-bocado-header="app"] .bocado-app-cart-quantity span{font-size:14px;min-width:13px;text-align:center}
body.storefront[data-bocado-header="app"] .bocado-app-cart-price{
  justify-self:end;text-align:right;font-size:15px;white-space:nowrap;color:#3d2b2b;
}
body.storefront[data-bocado-header="app"] .bocado-app-cart-remove{
  min-height:34px!important;padding:5px 3px;border:0!important;background:transparent!important;
  color:#a20b22!important;font-size:11px!important;font-weight:700;text-decoration:underline;
}
body.storefront[data-bocado-header="app"] .bocado-app-review-total{
  display:flex;justify-content:space-between;align-items:center;margin:10px 0 12px;
  padding:0;font-size:13px;color:#5e5151;
}
body.storefront[data-bocado-header="app"] .bocado-app-review-total strong{font-size:18px;color:#ae001d}
body.storefront[data-bocado-header="app"] .bocado-app-review-actions{display:grid;grid-template-columns:1fr;gap:8px}
body.storefront[data-bocado-header="app"] .bocado-app-review-actions button{
  width:100%;min-height:42px;padding:8px 12px;border-radius:10px;font-size:14px;font-weight:800;
}
body.storefront[data-bocado-header="app"] .bocado-app-review-continue{background:#b90021;color:#fff}
body.storefront[data-bocado-header="app"] .bocado-app-review-continue:disabled{background:#ebe7e7;color:#605658}
body.storefront[data-bocado-header="app"] .bocado-app-review-more{
  background:#fff5f5;color:#9a1731;border:1px solid #f8e6e7;
}
body.storefront[data-bocado-header="app"] #checkoutdialog .bocado-app-back-to-cart{
  flex:0 1 auto;min-width:100px;background:#fff5f5;color:#942136;border:1px solid #ead6d7;
}
body.storefront[data-bocado-header="app"] #checkoutdialog .checkout-actions{
  gap:8px;align-items:stretch;
}
body.storefront[data-bocado-header="app"] #checkoutdialog .checkout-actions #send{min-width:0}
@media(max-width:350px){
  body.storefront[data-bocado-header="app"] #checkoutdialog{padding:12px}
  body.storefront[data-bocado-header="app"] .bocado-app-progress-icon{width:30px;height:30px;border-radius:9px}
  body.storefront[data-bocado-header="app"] .bocado-app-progress-icon svg{width:17px;height:17px}
  body.storefront[data-bocado-header="app"] .bocado-app-progress-step small{font-size:8px}
  body.storefront[data-bocado-header="app"] .bocado-app-cart-controls{gap:4px}
}
/* Se o administrador alternar para Clean/Banner, nao manter controles extras. */
body.storefront:not([data-bocado-header="app"]) #checkoutdialog .bocado-app-back-to-cart{display:none!important}


/* V9 - Menu inferior 3D, seguindo a primeira previa aprovada. */
body.storefront[data-bocado-header="app"] .bocado-app-bottom-nav{
  border-radius:18px 18px 0 0!important;
  background:#ffffff!important;
  box-shadow:0 -4px 20px rgba(65,26,29,.11)!important;
  padding:6px 7px calc(5px + env(safe-area-inset-bottom))!important;
  min-height:65px!important;
  border-top:1px solid #f2ebed!important;
}
body.storefront[data-bocado-header="app"] .bocado-app-bottom-nav button{
  display:flex!important;flex-direction:column!important;
  justify-content:center!important;align-items:center!important;
  gap:2px!important;box-sizing:border-box!important;
  padding:4px 1px 3px!important;min-width:0!important;min-height:57px!important;
  border-radius:13px!important;background:transparent!important;
  color:#494347!important;font-size:11px!important;font-weight:650!important;
  line-height:1.15!important;transition:background-color .15s ease,color .15s ease!important;
}
body.storefront[data-bocado-header="app"] .bocado-app-bottom-nav button[aria-current="page"]{
  color:#be001b!important;background:#fff0f3!important;
}
body.storefront[data-bocado-header="app"] .bocado-app-bottom-nav button:focus-visible{
  outline:2px solid #b80024!important;outline-offset:-2px!important;
}
body.storefront[data-bocado-header="app"] .bocado-app-bottom-nav .bocado-app-nav-icon{
  position:relative;display:flex;align-items:center;justify-content:center;
  flex:0 0 32px;width:36px;height:32px;
}
body.storefront[data-bocado-header="app"] .bocado-app-bottom-nav .bocado-app-nav-icon>img{
  display:block;width:31px;height:31px;max-width:31px;max-height:31px;
  object-fit:contain;pointer-events:none;
}
body.storefront[data-bocado-header="app"] .bocado-app-bottom-nav .bocado-app-nav-fallback{display:none}
body.storefront[data-bocado-header="app"] .bocado-app-bottom-nav .bocado-app-nav-icon.icon-error>img{display:none}
body.storefront[data-bocado-header="app"] .bocado-app-bottom-nav .bocado-app-nav-icon.icon-error>.bocado-app-nav-fallback{display:flex;align-items:center;justify-content:center}
body.storefront[data-bocado-header="app"] .bocado-app-bottom-nav .bocado-app-nav-icon.icon-error svg{display:block;width:24px;height:24px}
body.storefront[data-bocado-header="app"] .bocado-app-bottom-nav .bocado-app-nav-text{
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;
}
@media(max-width:350px){
 body.storefront[data-bocado-header="app"] .bocado-app-bottom-nav{padding-left:4px!important;padding-right:4px!important}
 body.storefront[data-bocado-header="app"] .bocado-app-bottom-nav button{font-size:10px!important;min-height:55px!important}
 body.storefront[data-bocado-header="app"] .bocado-app-bottom-nav .bocado-app-nav-icon>img{width:28px;height:28px}
}
@media(prefers-reduced-motion:reduce){
 body.storefront[data-bocado-header="app"] .bocado-app-bottom-nav button{transition:none!important}
}


/* V10 - Acabamento 3D discreto para botoes, sem imagens, apenas CSS.
 * Isolado ao tema Moderno para nao alterar Clean/Banner/admin/checkout nativo.
 */
body.storefront[data-bocado-header="app"]{
  --bocado-btn-3d:#bc001e;
  --bocado-btn-3d-bottom:#790012;
  --bocado-btn-3d-secondary:#fff4f4;
  --bocado-btn-3d-secondary-bottom:#e1b8bd;
}
/* Categorias ilustradas: mantém os botões compactos e a navegação original. */
body.storefront[data-bocado-header="app"] #categories button{
  min-height:74px!important;
  padding:5px 3px!important;
}
body.storefront[data-bocado-header="app"] #categories button .menu-category-icon{
  display:flex!important;align-items:center;justify-content:center;
  width:36px!important;height:36px!important;flex:0 0 36px!important;
}
body.storefront[data-bocado-header="app"] #categories .menu-category-icon img[data-bocado-category-3d]{
  display:block!important;width:35px!important;height:35px!important;object-fit:contain;
  max-width:100%!important;pointer-events:none;
}
body.storefront[data-bocado-header="app"] #categories button.active{
  background:linear-gradient(160deg,#dc0524,#b50017 85%)!important;
  border-color:#ae0017!important;
  box-shadow:0 3px 0 #8c0018,0 4px 11px rgba(114,0,25,.16)!important;
}
/* Principal: Escolher, Finalizar, Avançar, Confirmar. */
body.storefront[data-bocado-header="app"] #products article.card .cardfoot button,
body.storefront[data-bocado-header="app"] .mobile-order-bar #mobilecheckout:not(:disabled),
body.storefront[data-bocado-header="app"] #checkoutdialog .bocado-app-review-continue:not(:disabled),
body.storefront[data-bocado-header="app"] #checkoutdialog .checkout-actions button:not(.outline):not(.bocado-app-back-to-cart):not(:disabled),
body.storefront[data-bocado-header="app"] #checkoutdialog #send:not(:disabled){
  background:linear-gradient(180deg,#d80a2a 0%,var(--bocado-btn-3d) 65%,#a6001b 100%)!important;
  border:1px solid #a5001a!important;
  border-bottom:3px solid var(--bocado-btn-3d-bottom)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.26),0 3px 7px rgba(104,0,23,.17)!important;
  color:#fff!important;
  border-radius:11px!important;
  transform:translateY(0);
  transition:transform .12s ease,box-shadow .12s ease,filter .12s ease!important;
}
/* Secundarios: Continuar comprando e voltar ao carrinho. */
body.storefront[data-bocado-header="app"] #checkoutdialog .bocado-app-review-more,
body.storefront[data-bocado-header="app"] #checkoutdialog .bocado-app-back-to-cart,
body.storefront[data-bocado-header="app"] #products article.card .cardfoot button.outline{
  background:linear-gradient(180deg,#fff,#fff2f3)!important;
  border:1px solid #e8bfc4!important;
  border-bottom:3px solid var(--bocado-btn-3d-secondary-bottom)!important;
  box-shadow:inset 0 1px rgba(255,255,255,.95),0 2px 5px rgba(77,32,41,.07)!important;
  color:#9b1330!important;
  border-radius:11px!important;
  transition:transform .12s ease,box-shadow .12s ease!important;
}
body.storefront[data-bocado-header="app"] #checkoutdialog .bocado-app-cart-quantity button{
  border:1px solid #e9d6d9!important;border-bottom:2px solid #d9bec3!important;
  background:linear-gradient(180deg,#fff,#fff9f9)!important;
  box-shadow:inset 0 1px #fff,0 1px 3px rgba(50,0,15,.08)!important;
}
@media(hover:hover){
  body.storefront[data-bocado-header="app"] #products article.card .cardfoot button:hover,
  body.storefront[data-bocado-header="app"] #checkoutdialog .bocado-app-review-continue:not(:disabled):hover,
  body.storefront[data-bocado-header="app"] .mobile-order-bar #mobilecheckout:not(:disabled):hover{
    filter:brightness(1.05)!important;
  }
}
body.storefront[data-bocado-header="app"] #products article.card .cardfoot button:active,
body.storefront[data-bocado-header="app"] .mobile-order-bar #mobilecheckout:active:not(:disabled),
body.storefront[data-bocado-header="app"] #checkoutdialog .bocado-app-review-actions button:active:not(:disabled),
body.storefront[data-bocado-header="app"] #checkoutdialog .checkout-actions button:active:not(:disabled),
body.storefront[data-bocado-header="app"] #checkoutdialog .bocado-app-cart-quantity button:active:not(:disabled){
  transform:translateY(2px)!important;
  box-shadow:inset 0 1px 4px rgba(0,0,0,.12)!important;
}
body.storefront[data-bocado-header="app"] button:focus-visible{
  outline:2px solid #7c0016!important;outline-offset:2px!important;
}
@media(prefers-reduced-motion:reduce){
 body.storefront[data-bocado-header="app"] #products article.card .cardfoot button,
 body.storefront[data-bocado-header="app"] #checkoutdialog button,
 body.storefront[data-bocado-header="app"] .mobile-order-bar button{transition:none!important;transform:none!important}
}


/* V11 - Correcao das categorias e navegacao inferior.
 * Area rosada para selecao; icones 3D sem halo branco.
 * Somente o visual Moderno: Clean e Banner nao sao alterados.
 */
body.storefront[data-bocado-header="app"] #categories button{
  min-height:68px!important;
  padding:4px 5px!important;
  background:#fff!important;
  color:#3e3333!important;
  border:1px solid #eee5e6!important;
  box-shadow:0 1px 3px rgba(42,28,31,.035)!important;
  transition:background-color .15s ease,border-color .15s ease!important;
}
body.storefront[data-bocado-header="app"] #categories button.active{
  background:#FFF0F3!important;
  color:#8A1730!important;
  border-color:#EDBFC9!important;
  box-shadow:inset 0 0 0 1px #fce2e7,0 2px 5px rgba(114,36,53,.07)!important;
}
body.storefront[data-bocado-header="app"] #categories button .menu-category-icon{
  width:34px!important;height:34px!important;flex:0 0 34px!important;
}
body.storefront[data-bocado-header="app"] #categories .menu-category-icon img[data-bocado-category-3d]{
  width:33px!important;height:33px!important;
  object-fit:contain!important;filter:none!important;
}
/* Reduz a altura aparente do menu; alvo de toque permanece >=44px. */
body.storefront[data-bocado-header="app"] .bocado-app-bottom-nav{
  min-height:56px!important;
  padding:3px 6px calc(3px + env(safe-area-inset-bottom))!important;
  border-radius:13px 13px 0 0!important;
  box-shadow:0 -2px 9px rgba(44,25,31,.065)!important;
}
body.storefront[data-bocado-header="app"] .bocado-app-bottom-nav button{
  min-height:46px!important;
  padding:2px 2px!important;
  gap:1px!important;
  border-radius:10px!important;
  font-size:10px!important;
  line-height:1.05!important;
}
body.storefront[data-bocado-header="app"] .bocado-app-bottom-nav .bocado-app-nav-icon{
  flex:0 0 25px!important;width:28px!important;height:25px!important;
}
body.storefront[data-bocado-header="app"] .bocado-app-bottom-nav .bocado-app-nav-icon>img{
  width:24px!important;height:24px!important;max-width:24px!important;max-height:24px!important;
  object-fit:contain!important;
}
body.storefront[data-bocado-header="app"] .bocado-app-bottom-nav .bocado-app-nav-icon.icon-error svg{
  width:22px!important;height:22px!important;
}
@media(max-width:350px){
  body.storefront[data-bocado-header="app"] .bocado-app-bottom-nav button{min-height:46px!important;font-size:10px!important}
  body.storefront[data-bocado-header="app"] .bocado-app-bottom-nav .bocado-app-nav-icon>img{width:23px!important;height:23px!important}
}


/* V12 - Busca por produto e sabor, adaptada ao teclado virtual (somente Moderno). */
body.storefront[data-bocado-header="app"] .bocado-app-search-panel{
  box-sizing:border-box!important;
  display:none;
  flex-direction:column;
  gap:0;
  width:min(520px,calc(100vw - 24px))!important;
  height:min(700px,calc(100dvh - 32px))!important;
  max-height:none!important;
  overflow:hidden!important;
  padding:18px!important;
  background:#fff;
  border-radius:20px!important;
}
body.storefront[data-bocado-header="app"] .bocado-app-search-panel[open]{display:flex!important}
body.storefront[data-bocado-header="app"] .bocado-app-search-panel .bocado-app-search-title{
  flex-shrink:0;margin-bottom:10px;
}
body.storefront[data-bocado-header="app"] .bocado-app-search-panel label,
body.storefront[data-bocado-header="app"] .bocado-app-search-panel input{
  flex-shrink:0;
}
body.storefront[data-bocado-header="app"] .bocado-app-search-panel [data-app-search-empty]{
  flex-shrink:0;min-height:19px;margin:3px 0 8px;
}
body.storefront[data-bocado-header="app"] .bocado-app-search-panel [data-app-search-results]{
  flex:1 1 auto;min-height:0;max-height:none!important;
  overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;
  display:block;scrollbar-gutter:stable;
}
body.storefront[data-bocado-header="app"] .bocado-app-search-panel .bocado-app-search-result{
  display:flex!important;min-height:76px;margin-bottom:9px;
  box-shadow:0 2px 8px rgba(84,40,45,.035)!important;
}
body.storefront[data-bocado-header="app"] .bocado-app-search-details{
  flex:1;min-width:0;gap:2px;
}
body.storefront[data-bocado-header="app"] .bocado-app-search-price{
  font-weight:800;color:#a30d1c;font-size:13px;
}
@media(max-width:760px){
  body.storefront[data-bocado-header="app"] .bocado-app-search-panel{
    position:fixed!important;
    inset:var(--bocado-search-top,0px) 0 auto 0!important;
    margin:0!important;width:100vw!important;max-width:none!important;
    height:var(--bocado-search-height,100dvh)!important;
    max-height:none!important;border-radius:0!important;
    padding:calc(14px + env(safe-area-inset-top)) 14px 10px!important;
  }
  body.storefront[data-bocado-header="app"] .bocado-app-search-panel .bocado-app-search-title h2{
    font-size:19px;
  }
  body.storefront[data-bocado-header="app"] .bocado-app-search-panel [data-app-search-results]{
    padding-bottom:calc(12px + env(safe-area-inset-bottom));
  }
}

/* V13: cabeçalho mais compacto e área superior segura em iOS/Safari.
 * Não modificar o tamanho da área de toque nem as regras dos outros visuais.
 */
body.storefront[data-bocado-header="app"]>header{
  grid-template-columns:minmax(82px, 105px) minmax(0, 1fr)!important;
  column-gap:10px!important;
  padding:12px 14px 9px!important;
  padding-top:max(12px, env(safe-area-inset-top, 0px))!important;
  overflow:visible!important;
}
body.storefront[data-bocado-header="app"]>header>.brand{
  width:clamp(82px, 24vw, 100px)!important;
  min-width:0!important;
  align-self:center!important;
  justify-self:start!important;
}
body.storefront[data-bocado-header="app"]>header>.brand img{
  display:block!important;
  width:100%!important;
  height:auto!important;
  max-width:100px!important;
  max-height:66px!important;
  object-fit:contain!important;
  object-position:center!important;
}
body.storefront[data-bocado-header="app"]>header .bocado-app-status-row{
  margin-top:6px!important;
  padding-top:7px!important;
}
body.storefront[data-bocado-header="app"]>header .bocado-app-welcome>strong{
  font-size:clamp(15px, 4.1vw, 19px)!important;
}
@media (max-width:350px){
  body.storefront[data-bocado-header="app"]>header{
    grid-template-columns:82px minmax(0,1fr)!important;
    padding:10px 11px 8px!important;
    padding-top:max(10px, env(safe-area-inset-top,0px))!important;
  }
  body.storefront[data-bocado-header="app"]>header>.brand{
    width:82px!important;
  }
}


/* V15 - iOS Safari/WebKit: barra superior dinamica ao voltar da rolagem.
 * Somente cliente + visual Moderno. Nao desloca o cabecalho no Android/desktop.
 * A variavel e medida pelo VisualViewport quando necessario.
 */
@supports (-webkit-touch-callout: none) {
  body.storefront[data-bocado-header="app"] > header {
    padding-top: calc(12px + max(env(safe-area-inset-top, 0px), var(--bocado-ios-toolbar-offset, 0px))) !important;
    overflow-anchor:none;
  }
  @media(max-width:350px) {
    body.storefront[data-bocado-header="app"] > header {
      padding-top: calc(10px + max(env(safe-area-inset-top, 0px), var(--bocado-ios-toolbar-offset, 0px))) !important;
    }
  }
}
/* Em qualquer tela do cliente o logo permanece proporcionalmente menor. */
body.storefront[data-bocado-header="app"] > header > .brand img {
  width:100% !important;height:auto !important;max-width:100px !important;
  max-height:66px !important;object-fit:contain !important;
}
