:root{
  --vinho:#7b1d36; --vinho-e:#5a1327; --ouro:#b98c3c; --ouro-c:#f3e6cc;
  --fundo:#fbf7f4; --rosa:#f7ebee; --branco:#fff; --tinta:#2b1a1f; --suave:#7a6468; --linha:#efe2e4;
  --verde:#1f8a4c; --verde-c:#e5f4eb; --ambar:#a8650f; --ambar-c:#fdf1de; --erro:#b42318;
  --r:16px; --sombra:0 6px 24px rgba(91,19,39,.08);
}
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
body{font-family:"Outfit",system-ui,sans-serif;color:var(--tinta);background:var(--fundo);line-height:1.45;-webkit-font-smoothing:antialiased}
img{display:block;max-width:100%}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer;border:0;background:none}
a{color:inherit}
.ico{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.oculto{display:none!important}
:focus-visible{outline:3px solid var(--ouro);outline-offset:2px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* botões */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:12px;padding:12px 18px;font-weight:600;font-size:.98rem;text-decoration:none;transition:background .15s,transform .1s}
.btn:active{transform:scale(.98)}
.btn-pri{background:var(--vinho);color:#fff}.btn-pri:hover{background:var(--vinho-e)}
.btn-pri:disabled{background:#c9b3b9;cursor:not-allowed}
.btn-sec{background:#fff;border:1.5px solid var(--linha);color:var(--vinho)}
.btn-zap{background:#1f9d55;color:#fff}
.btn-bloco{width:100%}
.btn-peq{padding:8px 12px;font-size:.88rem;border-radius:10px}

/* chips de categoria */
.chips{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding:2px}
.chips::-webkit-scrollbar{display:none}
.chip{flex:none;padding:8px 14px;border-radius:999px;border:1.5px solid var(--linha);background:#fff;font-weight:500;font-size:.9rem;white-space:nowrap;text-decoration:none}
.chip.ativo{background:var(--vinho);border-color:var(--vinho);color:#fff}

/* lista de produtos */
.cat{padding-top:18px}
.cat h2{font-size:1.2rem;font-weight:700;margin:0 0 10px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.tag{display:inline-flex;align-items:center;gap:4px;font-size:.7rem;font-weight:600;padding:3px 8px;border-radius:999px;letter-spacing:.02em}
.tag-oculto{background:#eee8ea;color:#6a5a5e}
.tag-dest{background:var(--ouro-c);color:#7a5514}
.tag-esg{background:#f1e4e6;color:var(--suave)}
.tag-pouco{background:var(--ambar-c);color:var(--ambar)}
.prods{display:grid;gap:10px}
@media(min-width:720px){.prods{grid-template-columns:1fr 1fr}}
.prod{display:flex;gap:12px;align-items:stretch;background:#fff;border:1px solid var(--linha);border-radius:var(--r);padding:12px;text-align:left;width:100%;transition:box-shadow .15s,border-color .15s}
.prod:hover{border-color:#e2c9cf;box-shadow:var(--sombra)}
.prod .tx{flex:1;display:flex;flex-direction:column;gap:4px;min-width:0}
.prod h3{font-size:1rem;font-weight:600;line-height:1.25}
.prod p{font-size:.85rem;color:var(--suave);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.prod .pr{margin-top:auto;font-weight:700;color:var(--vinho)}
.prod .pr small{font-weight:500;color:var(--suave);font-size:.78rem}
.foto{flex:none;width:92px;height:92px;border-radius:12px;overflow:hidden;background:linear-gradient(135deg,var(--vinho),#b45670);display:grid;place-items:center;color:#fff;font-weight:700;font-size:1.6rem}
.foto img{width:100%;height:100%;object-fit:cover}
.prod.esgotado{opacity:.55}

/* folha (bottom sheet) */
dialog{border:0;padding:0;background:transparent;max-width:100%;max-height:100%;margin:auto}
dialog::backdrop{background:rgba(40,12,20,.55)}
.folha{position:fixed;left:0;right:0;bottom:0;margin:0 auto;width:min(560px,100%);max-height:92vh;background:var(--fundo);border-radius:22px 22px 0 0;display:flex;flex-direction:column;overflow:hidden}
@media(min-width:720px){.folha{bottom:auto;top:50%;transform:translateY(-50%);border-radius:22px;max-height:88vh}}
.folha-topo{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 16px;background:#fff;border-bottom:1px solid var(--linha)}
.folha-topo h2{font-size:1.15rem;font-weight:700}
.fechar{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:var(--rosa)}
.folha-corpo{overflow:auto;padding:16px;display:grid;gap:16px}
.folha-pe{padding:12px 16px calc(12px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--linha);display:flex;gap:10px;align-items:center}
.capa-prod{margin:-16px -16px 0;height:220px;overflow:hidden;position:relative;flex:none;background:linear-gradient(135deg,var(--vinho),#b45670);display:grid;place-items:center;color:#fff;font-size:3rem;font-weight:700}
.capa-prod img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover}
.grupo{background:#fff;border:1px solid var(--linha);border-radius:14px;overflow:hidden}
.grupo-hd{display:flex;justify-content:space-between;align-items:center;padding:10px 14px;background:var(--rosa);font-weight:600;font-size:.92rem}
.grupo-hd small{font-size:.7rem;font-weight:700;background:var(--tinta);color:#fff;padding:3px 8px;border-radius:999px;letter-spacing:.04em}
.opc{display:flex;align-items:center;gap:12px;padding:12px 14px;border-top:1px solid var(--linha);cursor:pointer}
.opc:first-of-type{border-top:0}
.opc input{width:20px;height:20px;accent-color:var(--vinho);flex:none}
.opc .nm{flex:1}
.opc .vl{font-weight:600;color:var(--vinho);white-space:nowrap}
.opc.off{opacity:.5;cursor:not-allowed}
.qtd{display:flex;align-items:center;border:1.5px solid var(--linha);border-radius:12px;background:#fff}
.qtd button{width:40px;height:44px;display:grid;place-items:center;color:var(--vinho)}
.qtd button:disabled{color:#d3c3c7}
.qtd output{min-width:26px;text-align:center;font-weight:700}
.campo{display:grid;gap:6px}
.campo label,.rot{font-weight:600;font-size:.88rem}
.campo small{color:var(--suave);font-size:.8rem}
input[type=text],input[type=tel],input[type=date],input[type=number],input[type=search],select,textarea{width:100%;padding:12px 14px;border:1.5px solid var(--linha);border-radius:12px;background:#fff;font-size:1rem}
input:focus,select:focus,textarea:focus{outline:0;border-color:var(--ouro)}
textarea{resize:vertical;min-height:70px}
.erro-msg{color:var(--erro);font-size:.85rem;font-weight:600;min-height:1em}
.seg{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.seg label{position:relative}
.seg input{position:absolute;opacity:0;inset:0}
.seg span{display:flex;flex-direction:column;align-items:center;gap:4px;padding:12px;border:2px solid var(--linha);border-radius:12px;background:#fff;font-weight:600;font-size:.92rem;text-align:center}
.seg span small{font-weight:500;color:var(--suave);font-size:.78rem}
.seg input:checked+span{border-color:var(--vinho);background:var(--rosa);color:var(--vinho)}
.seg input:focus-visible+span{outline:3px solid var(--ouro)}
.aviso{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border-radius:12px;background:var(--ouro-c);color:#6d4b10;font-size:.88rem}
.aviso.ok{background:var(--verde-c);color:#14532d}
.aviso .ico{margin-top:1px}
.linha-tot{display:flex;justify-content:space-between;padding:3px 0;font-size:.95rem}
.linha-tot.big{font-weight:700;font-size:1.08rem;border-top:1px dashed var(--linha);padding-top:8px;margin-top:4px}
.item-sac{display:flex;gap:10px;align-items:center;padding:10px 0;border-top:1px dashed var(--linha)}
.item-sac:first-child{border-top:0}
.item-sac .nm{flex:1;font-weight:600;font-size:.93rem;line-height:1.25}
.item-sac .nm small{display:block;font-weight:500;color:var(--suave)}
.item-sac .vl{font-weight:700;white-space:nowrap}
.item-sac .qtd button{width:32px;height:34px}
.passos{display:flex;gap:6px}
.passos i{flex:1;height:4px;border-radius:4px;background:var(--linha)}
.passos i.on{background:var(--vinho)}
.toast{position:fixed;left:50%;bottom:90px;transform:translateX(-50%) translateY(20px);background:var(--tinta);color:#fff;padding:10px 16px;border-radius:12px;font-weight:600;opacity:0;transition:.25s;z-index:99;pointer-events:none;max-width:90vw;text-align:center}
.toast.on{opacity:1;transform:translateX(-50%) translateY(0)}
.demo-faixa{background:var(--tinta);color:#f3dfe4;font-size:.78rem;text-align:center;padding:6px 10px}
.demo-faixa a{color:#fff;font-weight:600}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}
