:root{
  --accent:#e8412c;
  --bg:#15100d;--bg2:#1e1713;--bg3:#2a211b;
  --line:#3a2e26;--text:#f7efe8;--muted:#b3a496;
  --ok:#3ecf7a;--warn:#f6c343;--radius:16px;
}
*{box-sizing:border-box;margin:0}
html{-webkit-text-size-adjust:100%}
body{background:var(--bg);color:var(--text);font:16px/1.5 system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;min-height:100vh;display:flex;flex-direction:column}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;cursor:pointer;border:0;background:none}
img{max-width:100%;display:block}
.wrap{width:100%;max-width:1040px;margin:0 auto;padding:0 16px}
main{flex:1;padding-bottom:110px}

/* cabeçalho */
#app-header{position:sticky;top:0;z-index:30;background:rgba(21,16,13,.92);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.hdr{display:flex;align-items:center;justify-content:space-between;height:60px}
.brand{display:flex;align-items:center;gap:10px;font-weight:800;font-size:18px;letter-spacing:.2px}
.brand-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:var(--accent);color:#fff;font-weight:900}
.cart-btn{position:relative;display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:var(--bg3)}
.badge{position:absolute;top:-4px;right:-4px;min-width:20px;height:20px;padding:0 5px;border-radius:10px;background:var(--accent);color:#fff;font-size:12px;font-weight:700;align-items:center;justify-content:center}

/* hero */
.hero{padding:28px 0 8px}
.hero h1{font-size:clamp(26px,5vw,40px);line-height:1.1;font-weight:900}
.hero p{color:var(--muted);margin-top:6px}
.status{display:inline-flex;align-items:center;gap:8px;margin-top:14px;padding:6px 12px;border-radius:99px;background:var(--bg2);border:1px solid var(--line);font-size:14px}
.dot{width:9px;height:9px;border-radius:50%;background:var(--ok)}
.dot.off{background:#e5484d}

/* categorias */
.cats{position:sticky;top:60px;z-index:20;background:var(--bg);padding:12px 0;display:flex;gap:8px;overflow-x:auto;scrollbar-width:none}
.cats::-webkit-scrollbar{display:none}
.cat{flex:none;padding:8px 16px;border-radius:99px;background:var(--bg2);border:1px solid var(--line);font-size:14px;font-weight:600;color:var(--muted)}
.cat.on{background:var(--accent);border-color:var(--accent);color:#fff}
h2.sec{font-size:20px;margin:18px 0 12px}

/* produtos */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:14px}
.card{display:flex;gap:12px;background:var(--bg2);border:1px solid var(--line);border-radius:var(--radius);padding:12px;text-align:left;transition:transform .12s,border-color .12s}
.card:hover{border-color:var(--accent);transform:translateY(-2px)}
.card img{width:108px;height:108px;border-radius:12px;object-fit:cover;flex:none;background:var(--bg3)}
.card .info{display:flex;flex-direction:column;min-width:0;flex:1}
.card h3{font-size:17px}
.card p{color:var(--muted);font-size:13.5px;margin:4px 0 8px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.card .foot{margin-top:auto;display:flex;align-items:center;justify-content:space-between}
.price{font-weight:800;font-size:17px}
.plus{width:36px;height:36px;border-radius:50%;background:var(--accent);color:#fff;font-size:22px;line-height:1;display:grid;place-items:center}

/* botões e formulários */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:50px;padding:0 22px;border-radius:14px;background:var(--accent);color:#fff;font-weight:800;font-size:16px;width:100%;transition:filter .12s}
.btn:hover{filter:brightness(1.1)}
.btn{white-space:nowrap}
.btn:disabled{opacity:.5;cursor:not-allowed}
.btn.wa{background:#1fa855}
.btn.ghost{background:var(--bg3);color:var(--text)}
.field{display:flex;flex-direction:column;gap:6px;margin-bottom:14px}
.field label,.lbl{font-size:14px;font-weight:600;color:var(--muted)}
input[type=text],input[type=tel],input[type=number],textarea,select{width:100%;padding:13px 14px;border-radius:12px;border:1px solid var(--line);background:var(--bg2);color:var(--text);font:inherit;outline:none}
input:focus,textarea:focus,select:focus{border-color:var(--accent)}
textarea{min-height:76px;resize:vertical}
.err{color:#ff8a8a;font-size:14px;margin:8px 0;min-height:20px}

/* modal */
.overlay{position:fixed;inset:0;z-index:50;background:rgba(0,0,0,.65);display:none;align-items:flex-end;justify-content:center}
.overlay.open{display:flex}
.sheet{background:var(--bg2);width:100%;max-width:520px;max-height:92vh;overflow-y:auto;border-radius:22px 22px 0 0;border:1px solid var(--line)}
@media(min-width:640px){.overlay{align-items:center}.sheet{border-radius:22px}}
.sheet .pimg{width:100%;height:210px;object-fit:cover}
.sheet .body{padding:18px}
.sheet h3{font-size:22px}
.sheet .desc{color:var(--muted);margin:6px 0 16px}
.close{position:absolute;top:12px;right:12px;width:38px;height:38px;border-radius:50%;background:rgba(0,0,0,.6);color:#fff;font-size:22px}
.sheet-wrap{position:relative}
.opt{display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;margin-bottom:8px;cursor:pointer}
.opt input{accent-color:var(--accent);width:18px;height:18px}
.opt .n{flex:1}
.opt .p{color:var(--muted);font-size:14px}
.opt:has(input:checked){border-color:var(--accent);background:rgba(232,65,44,.08)}
.qty{display:inline-flex;align-items:center;gap:4px;background:var(--bg3);border-radius:12px;padding:4px}
.qty button{width:36px;height:36px;border-radius:9px;font-size:20px;background:var(--bg2)}
.qty span{min-width:30px;text-align:center;font-weight:700}
.row{display:flex;align-items:center;justify-content:space-between;gap:12px}

/* barra do carrinho */
#cart-bar{position:fixed;left:0;right:0;bottom:0;z-index:25;padding:12px 16px calc(12px + env(safe-area-inset-bottom));transform:translateY(120%);transition:transform .25s;pointer-events:none}
#cart-bar.show{transform:none;pointer-events:auto}
#cart-bar a{display:flex;align-items:center;justify-content:space-between;max-width:1008px;margin:0 auto;padding:0 20px;min-height:54px;border-radius:16px;background:var(--accent);color:#fff;font-weight:800;box-shadow:0 10px 30px rgba(0,0,0,.5)}

/* carrinho / checkout */
.page-title{font-size:26px;font-weight:900;margin:22px 0 14px}
.panel{background:var(--bg2);border:1px solid var(--line);border-radius:var(--radius);padding:16px;margin-bottom:14px}
.line{display:flex;gap:12px;padding:14px 0;border-bottom:1px solid var(--line)}
.line:last-child{border-bottom:0}
.line img{width:72px;height:72px;border-radius:10px;object-fit:cover;flex:none}
.line .meta{flex:1;min-width:0}
.line .meta small{color:var(--muted);display:block}
.line .rm{color:var(--muted);font-size:13px;text-decoration:underline;margin-top:4px}
.sum .r{display:flex;justify-content:space-between;padding:5px 0;color:var(--muted)}
.sum .r.t{color:var(--text);font-weight:900;font-size:20px;border-top:1px solid var(--line);margin-top:6px;padding-top:12px}
.two{display:grid;gap:14px}
@media(min-width:820px){.two{grid-template-columns:1.4fr 1fr;align-items:start}.stick{position:sticky;top:80px}}
.seg{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.seg label{display:flex;align-items:center;justify-content:center;padding:12px;border:1px solid var(--line);border-radius:12px;cursor:pointer;font-weight:600}
.seg input{display:none}
.seg label:has(input:checked){border-color:var(--accent);background:rgba(232,65,44,.12)}
.warn{background:rgba(246,195,67,.12);border:1px solid rgba(246,195,67,.4);color:var(--warn);border-radius:12px;padding:10px 14px;font-size:14px;margin-bottom:12px}
.empty{text-align:center;padding:60px 16px;color:var(--muted)}
.empty h2{color:var(--text);margin-bottom:8px}
.empty .btn{max-width:280px;margin:18px auto 0}
.ok-ico{width:84px;height:84px;border-radius:50%;background:rgba(62,207,122,.15);color:var(--ok);display:grid;place-items:center;margin:0 auto 18px;font-size:44px}

.toast{position:fixed;left:50%;bottom:96px;transform:translate(-50%,20px);background:#fff;color:#111;padding:10px 18px;border-radius:99px;font-weight:700;font-size:14px;opacity:0;transition:.25s;z-index:60;pointer-events:none}
.toast.show{opacity:1;transform:translate(-50%,0)}
footer{border-top:1px solid var(--line);padding:22px 0 30px;color:var(--muted);font-size:14px;text-align:center}
[hidden]{display:none!important}

/* logo no cabeçalho */
.brand-logo{width:34px;height:34px;border-radius:10px;object-fit:cover;background:var(--bg3)}

/* capa e informações da loja */
.cover{height:150px;background:linear-gradient(135deg,var(--accent),#3a1a12) center/cover no-repeat}
@media(min-width:700px){.cover{height:220px}}
.store-head{display:flex;gap:14px;align-items:flex-end;margin-top:-38px;position:relative}
.store-head .logo{width:84px;height:84px;border-radius:20px;border:4px solid var(--bg);object-fit:cover;background:var(--bg3);flex:none;display:grid;place-items:center;font-size:34px;font-weight:900;color:#fff}
.store-head .logo.mark{background:var(--accent)}
.store-head h1{font-size:clamp(22px,4.5vw,32px);line-height:1.1;font-weight:900}
.store-head .txt{padding-bottom:4px;min-width:0}
.store-desc{color:var(--muted);margin:10px 0 0}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 4px}
.chip{display:inline-flex;align-items:center;gap:7px;padding:6px 12px;border-radius:99px;background:var(--bg2);border:1px solid var(--line);font-size:13.5px}
.closed-bar{margin:12px 0 0;padding:10px 14px;border-radius:12px;background:rgba(229,72,77,.12);border:1px solid rgba(229,72,77,.4);color:#ff9a9d;font-size:14px}

/* preço promocional */
.price s{color:var(--muted);font-weight:500;font-size:13px;margin-right:6px}
.price .promo{color:var(--ok)}
.serves{color:var(--muted);font-size:12.5px}

/* grupos de complementos (modal do produto) */
.grp{margin:0 -18px;border-top:8px solid var(--bg)}
.ghead{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 18px 8px;background:var(--bg3)}
.ghead small{display:block;color:var(--muted);font-size:13px}
.req{flex:none;padding:3px 10px;border-radius:99px;background:#f6f1eb;color:#3a2e26;font-size:11.5px;font-weight:800;letter-spacing:.3px;text-transform:uppercase}
.req.done{background:var(--ok);color:#06210f}
.gopt{width:100%;display:flex;align-items:center;gap:12px;padding:13px 18px;text-align:left;border-bottom:1px solid var(--line)}
.gopt:disabled{opacity:.4;cursor:not-allowed}
.gopt .n{flex:1;min-width:0}
.gopt .n small{display:block;color:var(--muted);font-size:12.5px}
.gopt .p{color:var(--muted);font-size:14px;white-space:nowrap}
.ind{flex:none;width:22px;height:22px;border:2px solid #6b5a4d;display:grid;place-items:center}
.ind.radio{border-radius:50%}
.ind.check{border-radius:6px}
.gopt[aria-checked=true] .ind{border-color:var(--accent);background:var(--accent)}
.gopt[aria-checked=true] .ind::after{content:"";width:8px;height:8px;border-radius:50%;background:#fff}
.gopt[aria-checked=true] .ind.check::after{width:5px;height:10px;border-radius:0;background:none;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg) translate(-1px,-1px)}
.m-foot{position:sticky;bottom:0;background:var(--bg2);padding:12px 18px;margin:0 -18px -18px;border-top:1px solid var(--line)}
.opts-line{color:var(--muted);font-size:13px}

/* acompanhamento do pedido */
.track{margin:6px 0}
.track-step{display:flex;gap:14px;position:relative;padding-bottom:26px}
.track-step:last-child{padding-bottom:0}
.track-step::before{content:"";position:absolute;left:9px;top:22px;bottom:0;width:2px;background:var(--line)}
.track-step:last-child::before{display:none}
.tpoint{position:relative;flex:none;width:20px;height:20px;border-radius:50%;background:var(--bg3);border:2px solid var(--line);margin-top:1px}
.track-step.done .tpoint{background:var(--ok);border-color:var(--ok)}
.track-step.done::before{background:var(--ok)}
.track-step.current .tpoint{background:var(--accent);border-color:var(--accent);box-shadow:0 0 0 4px rgba(232,65,44,.25)}
.track-step b{display:block;font-size:15.5px}
.track-step.pending b{color:var(--muted)}

/* áreas de entrega */
.chip.link{cursor:pointer;font-family:inherit;color:inherit;text-decoration:underline;text-underline-offset:3px}
.arow{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}
.arow:last-of-type{border-bottom:0}
.arow small{display:block;color:var(--muted);font-size:13px}
.arow span{font-weight:700;white-space:nowrap}
