/* bowl/bowl-builder.css — Monte Seu Bowl (Gonçalo). Mobile-first.
   Paleta oficial: Verde Gonçalo #013E37 · Verde Limão #B7D844 · Verde Oliva #4D694E · Creme #EFEBDC */

/* ─ Card de entrada na categoria "Almoço & Jantar" ─ */
.bw-hero{display:flex;align-items:center;gap:12px;margin:4px 14px 12px;padding:12px;background:#013E37;color:#EFEBDC;border-radius:18px;box-shadow:0 6px 18px rgba(1,62,55,.22);font-family:'Outfit',sans-serif;}
.bw-hero-art{flex:0 0 76px;width:76px;height:76px;border-radius:16px;overflow:hidden;background:#EFEBDC;}
.bw-hero-art svg{display:block;width:100%;height:100%;}
.bw-hero-info{flex:1;min-width:0;}
.bw-hero-tag{display:inline-block;font-size:.62rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;background:#B7D844;color:#013E37;border-radius:6px;padding:2px 7px;margin-bottom:4px;}
.bw-hero-name{font-size:1.1rem;font-weight:900;line-height:1.15;}
.bw-hero-desc{font-size:.74rem;line-height:1.3;opacity:.85;margin-top:2px;}
.bw-hero-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px;}
.bw-hero-price{font-size:1rem;font-weight:900;color:#B7D844;}
.bw-hero-btn{border:0;border-radius:12px;background:#B7D844;color:#013E37;font:800 .82rem 'Outfit',sans-serif;padding:0 14px;min-height:40px;display:inline-flex;align-items:center;gap:6px;cursor:pointer;}
.bw-hero-btn:active{transform:scale(.97);}

/* ─ Linha do Bowl no carrinho ─ */
.bw-cart-thumb{width:50px;height:50px;border-radius:10px;overflow:hidden;flex-shrink:0;align-self:flex-start;}
.bw-cart-thumb svg{display:block;width:100%;height:100%;}
.bw-cart-lines{list-style:none;margin:3px 0 4px;padding:0;font-size:.7rem;line-height:1.35;color:#5f6f66;}
.bw-cart-actions{display:flex;gap:14px;margin-top:4px;}
.bw-cart-actions button{background:none;border:0;padding:4px 0;font:700 .74rem 'Outfit',sans-serif;color:#013E37;text-decoration:underline;cursor:pointer;}
.bw-cart-actions button.bw-danger{color:#b42318;}

/* ─ Overlay do construtor ─ */
.bw-app{--bw-verde:#013E37;--bw-limao:#B7D844;--bw-oliva:#4D694E;--bw-creme:#EFEBDC;--bw-line:#D9D4BF;--bw-muted:#5b6b62;--bw-sel:#F1F5DA;
  position:fixed;inset:0;z-index:600;display:none;justify-content:center;background:rgba(1,20,17,.55);font-family:'Outfit',sans-serif;color:var(--bw-verde);}
.bw-app.is-open{display:flex;}
.bw-app *{box-sizing:border-box;}
.bw-app button{font-family:inherit;-webkit-tap-highlight-color:transparent;}
.bw-app button:focus-visible{outline:3px solid var(--bw-verde);outline-offset:2px;}
.bw-shell{position:relative;width:100%;max-width:480px;height:100vh;height:100dvh;background:var(--bw-creme);display:flex;flex-direction:column;overflow:hidden;}

/* Topo: título + preço vivo */
.bw-top{display:flex;align-items:center;gap:10px;padding:10px 14px 4px;padding-top:calc(10px + env(safe-area-inset-top));}
.bw-icon-btn{width:40px;height:40px;flex:0 0 40px;border-radius:12px;border:1.5px solid var(--bw-line);background:#fff;color:var(--bw-verde);display:grid;place-items:center;cursor:pointer;}
.bw-title{flex:1;min-width:0;}
.bw-title b{display:block;font-size:1.05rem;font-weight:900;line-height:1.1;}
.bw-title span{display:block;font-size:.68rem;font-weight:600;color:var(--bw-oliva);margin-top:2px;}
.bw-price{font-size:1.1rem;font-weight:900;background:var(--bw-verde);color:var(--bw-limao);border-radius:12px;padding:7px 12px;font-variant-numeric:tabular-nums;white-space:nowrap;}
.bw-price.is-bump,.bw-mval.is-bump{animation:bw-bump .28s ease;}
@keyframes bw-bump{0%{transform:scale(1)}45%{transform:scale(1.12)}100%{transform:scale(1)}}

/* Resumo fixo: carrossel de pílulas */
.bw-summary{display:flex;align-items:center;gap:8px;padding:4px 14px 8px;min-height:52px;}
.bw-pills{display:flex;align-items:center;gap:6px;flex:1;min-width:0;overflow-x:auto;scrollbar-width:none;padding:3px 0;-webkit-overflow-scrolling:touch;}
.bw-pills::-webkit-scrollbar{display:none;}
.bw-pills{-webkit-mask-image:linear-gradient(to right,#000 calc(100% - 22px),transparent);mask-image:linear-gradient(to right,#000 calc(100% - 22px),transparent);padding-right:22px;}
.bw-empty{font-size:.78rem;color:var(--bw-muted);font-weight:600;white-space:nowrap;}
.bw-pill{flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;padding:4px 4px 4px 12px;background:#fff;border:1.5px solid var(--bw-oliva);border-radius:999px;font-size:.76rem;font-weight:700;color:var(--bw-verde);white-space:nowrap;animation:bw-pop .18s ease;}
.bw-pill--extra{border-color:var(--bw-limao);background:#F7FAE6;}
.bw-pill button{width:24px;height:24px;border-radius:50%;border:0;background:var(--bw-creme);color:var(--bw-verde);display:grid;place-items:center;cursor:pointer;padding:0;}
@keyframes bw-pop{from{transform:scale(.85);opacity:0}to{transform:scale(1);opacity:1}}
.bw-clear{flex:0 0 auto;background:none;border:0;color:var(--bw-oliva);font:700 .74rem 'Outfit',sans-serif;text-decoration:underline;padding:8px 2px;cursor:pointer;}

/* Abas de progresso */
.bw-tabs{display:flex;align-items:stretch;overflow-x:auto;scrollbar-width:none;padding:0 8px;border-top:1px solid var(--bw-line);border-bottom:1px solid var(--bw-line);}
.bw-tabs::-webkit-scrollbar{display:none;}
.bw-tab{flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;min-height:46px;padding:0 8px;background:none;border:0;border-bottom:3px solid transparent;color:var(--bw-oliva);font-size:.7rem;font-weight:800;letter-spacing:.06em;cursor:pointer;}
.bw-tab i{display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:var(--bw-line);color:var(--bw-verde);font-style:normal;font-size:.62rem;font-weight:900;letter-spacing:0;}
.bw-tab.is-done i{background:var(--bw-verde);color:var(--bw-limao);}
.bw-tab.is-active{color:var(--bw-verde);border-bottom-color:var(--bw-verde);}
.bw-tab.is-active i{background:var(--bw-verde);color:var(--bw-creme);}
.bw-tab[aria-disabled="true"]{opacity:.45;}
.bw-sep{display:grid;place-items:center;color:var(--bw-line);flex:0 0 auto;}

/* Corpo */
.bw-body{flex:1;overflow-y:auto;padding:14px 14px 18px;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;}
.bw-lead{margin:0 0 12px;font-size:.84rem;line-height:1.42;color:var(--bw-muted);}
.bw-lead strong{display:block;margin-bottom:2px;font-size:1.05rem;line-height:1.25;font-weight:900;color:var(--bw-verde);}
.bw-status{display:flex;align-items:center;gap:10px;margin:0 0 12px;padding:9px 12px;border-radius:12px;background:#fff;border:1.5px solid var(--bw-line);font-size:.78rem;font-weight:700;}
.bw-status.is-extra{border-color:var(--bw-limao);background:#F7FAE6;}
.bw-meter{display:inline-flex;gap:4px;flex:0 0 auto;}
.bw-meter span{width:10px;height:10px;border-radius:50%;background:var(--bw-line);}
.bw-meter span.on{background:var(--bw-verde);}
.bw-meter span.x{background:var(--bw-limao);box-shadow:inset 0 0 0 1.5px var(--bw-verde);}

.bw-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.bw-grid--3{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;}
.bw-grid--3 .bw-card{padding:6px;gap:6px;border-radius:14px;border-width:1.5px;}
.bw-grid--3 .bw-thumb{width:60%;border-radius:12px;}
.bw-grid--3 .bw-name{font-size:.7rem;line-height:1.18;-webkit-line-clamp:2;}
.bw-grid--3 .bw-check{top:5px;right:5px;width:18px;height:18px;}
.bw-grid--3 .bw-check svg{width:11px;height:11px;}
.bw-card{position:relative;aspect-ratio:1/1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:8px;background:#fff;border:2px solid var(--bw-line);border-radius:16px;color:var(--bw-verde);text-align:center;cursor:pointer;transition:border-color .15s,background .15s,box-shadow .15s,transform .1s;}
.bw-card:active{transform:scale(.97);}
.bw-card.is-on{border-color:var(--bw-verde);background:var(--bw-sel);box-shadow:0 4px 14px rgba(1,62,55,.15);}
.bw-card.is-locked{opacity:.5;}
.bw-thumb{display:block;width:min(58%,100px);aspect-ratio:1/1;border-radius:14px;overflow:hidden;flex:0 0 auto;}
.bw-thumb img,.bw-thumb svg{display:block;width:100%;height:100%;object-fit:cover;}
.bw-name{max-width:100%;font-size:.8rem;font-weight:700;line-height:1.2;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;}
.bw-plus{font-size:.68rem;font-weight:800;line-height:1;color:var(--bw-verde);background:var(--bw-sel);border-radius:999px;padding:2px 7px;}
.bw-grid--3 .bw-plus{font-size:.62rem;padding:2px 6px;}
.bw-check{position:absolute;top:7px;right:7px;width:22px;height:22px;border-radius:50%;background:var(--bw-limao);color:var(--bw-verde);display:grid;place-items:center;transform:scale(0);transition:transform .16s;}
.is-on>.bw-check{transform:scale(1);}
.is-shake{animation:bw-shake .32s ease;}
@keyframes bw-shake{0%,100%{transform:translateX(0)}25%{transform:translateX(-5px)}75%{transform:translateX(5px)}}

/* Foto do ingrediente (cadastrada no admin): PNG transparente aparece maior, sem moldura */
.bw-thumb--img{background:transparent;border-radius:0;}
.bw-thumb--img img{object-fit:contain;}
.bw-card .bw-thumb--img{width:min(80%,124px);}
.bw-grid--3 .bw-thumb--img{width:74%;}
.bw-opt .bw-thumb--img{width:58px;}

/* Card de molho: cada toque soma uma unidade (contador) e o "−" tira uma */
.bw-card--multi{user-select:none;-webkit-user-select:none;}
.bw-cnt{position:absolute;top:5px;right:5px;min-width:20px;height:20px;padding:0 5px;border-radius:10px;background:var(--bw-verde);color:var(--bw-limao);font-size:.72rem;font-weight:900;line-height:20px;text-align:center;font-variant-numeric:tabular-nums;display:none;}
.has-many>.bw-cnt{display:block;}
.has-many>.bw-check{transform:scale(0);}
.bw-dec{position:absolute;top:4px;left:4px;width:28px;height:28px;border-radius:50%;border:1.5px solid var(--bw-verde);background:#fff;color:var(--bw-verde);display:none;place-items:center;padding:0;cursor:pointer;}
.is-on>.bw-dec{display:grid;}

/* Barra de macros (sempre visível, logo acima do rodapé) */
.bw-macros{display:grid;grid-template-columns:repeat(4,1fr);background:var(--bw-creme);color:var(--bw-verde);border-top:1.5px solid var(--bw-verde);padding:8px 6px 6px;}
.bw-macros>div{text-align:center;border-left:1px solid var(--bw-line);padding:0 4px;}
.bw-macros>div:first-child{border-left:0;}
.bw-mlabel{display:block;font-size:.58rem;font-weight:800;letter-spacing:.09em;opacity:.75;}
.bw-mval{display:block;font-size:1.05rem;font-weight:900;font-variant-numeric:tabular-nums;line-height:1.25;}
.bw-mval small{font-size:.66rem;font-weight:700;margin-left:1px;}

/* Rodapé de comando */
.bw-foot{display:flex;align-items:center;gap:10px;padding:10px 14px calc(10px + env(safe-area-inset-bottom));background:var(--bw-creme);}
.bw-btn{min-height:52px;padding:0 20px;border-radius:14px;font-size:.95rem;font-weight:800;display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;transition:opacity .15s,transform .1s;}
.bw-btn:active{transform:scale(.98);}
.bw-btn--ghost{background:transparent;color:var(--bw-verde);border:2px solid var(--bw-verde);}
.bw-btn--primary{flex:1;background:var(--bw-verde);color:#fff;border:2px solid var(--bw-verde);}
.bw-btn[hidden]{display:none;}
.bw-btn[aria-disabled="true"]{opacity:.4;}

/* Microtelas de upsell */
.bw-micro{position:absolute;inset:0;z-index:5;display:none;flex-direction:column;background:var(--bw-creme);}
.bw-micro.is-open{display:flex;animation:bw-fade .25s ease;}
@keyframes bw-fade{from{opacity:0}to{opacity:1}}
.bw-micro-in{flex:1;display:flex;flex-direction:column;overflow-y:auto;padding:calc(12px + env(safe-area-inset-top)) 16px calc(14px + env(safe-area-inset-bottom));transition:opacity .2s ease,transform .2s ease;}
.bw-micro-in.is-out{opacity:0;transform:translateX(-28px);}
.bw-micro-in.is-in-start{opacity:0;transform:translateX(28px);transition:none;}
.bw-mtop{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px;}
.bw-back{display:inline-flex;align-items:center;gap:2px;background:none;border:0;padding:8px 6px 8px 0;color:var(--bw-oliva);font:700 .8rem 'Outfit',sans-serif;cursor:pointer;}
.bw-dots{display:inline-flex;gap:6px;}
.bw-dots span{width:22px;height:5px;border-radius:3px;background:var(--bw-line);}
.bw-dots span.on{background:var(--bw-verde);}
.bw-mtitle{margin:6px 0 16px;font-size:1.45rem;line-height:1.15;font-weight:900;color:var(--bw-verde);}
.bw-opt{display:flex;align-items:center;gap:12px;width:100%;min-height:78px;padding:10px;margin-bottom:10px;background:#fff;border:2px solid var(--bw-line);border-radius:16px;color:var(--bw-verde);text-align:left;cursor:pointer;transition:border-color .15s,background .15s,transform .1s;}
.bw-opt:active{transform:scale(.985);}
.bw-opt.is-picked{border-color:var(--bw-verde);background:var(--bw-sel);}
.bw-opt .bw-thumb{width:58px;border-radius:12px;}
.bw-opt-txt{flex:1;min-width:0;}
.bw-opt-name{display:block;font-size:.92rem;font-weight:800;line-height:1.2;}
.bw-opt-desc{display:block;margin-top:2px;font-size:.73rem;line-height:1.3;color:var(--bw-muted);}
.bw-opt-side{display:flex;flex-direction:column;align-items:flex-end;gap:6px;flex:0 0 auto;}
.bw-opt-price{font-size:.9rem;font-weight:900;white-space:nowrap;}
.bw-skip{margin:auto auto 0;padding:16px 12px 6px;background:none;border:0;color:var(--bw-verde);font:700 .92rem 'Outfit',sans-serif;text-decoration:underline;cursor:pointer;display:inline-flex;align-items:center;gap:8px;}

.bw-toast{position:absolute;left:50%;bottom:150px;transform:translate(-50%,10px);z-index:10;max-width:88%;padding:10px 16px;border-radius:12px;background:var(--bw-verde);color:#fff;font-size:.82rem;font-weight:700;text-align:center;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;}
.bw-toast.is-show{opacity:1;transform:translate(-50%,0);}

@media (prefers-reduced-motion:reduce){
  .bw-app *,.bw-app *::before,.bw-app *::after{animation-duration:.01ms !important;transition-duration:.01ms !important;}
}
