:root{--brand:#16664b;--ink:#1d2b27;--muted:#65756f;--line:#dfe6e1;--bg:#f6f8f5;--card:#fff;--soft:#eaf2ec;--danger:#b3261e;--radius:14px}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.5 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
h1,h2,h3,p{margin:0 0 .6em}
h1{font-size:clamp(1.9rem,6vw,3rem);line-height:1.1;letter-spacing:-.03em}
h2{font-size:1.3rem;letter-spacing:-.02em}
h3{font-size:1.05rem}
a{color:var(--brand)}
small,.muted{color:var(--muted)}
[hidden]{display:none!important}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer;border:0;border-radius:12px;padding:12px 18px;font-weight:650;background:var(--brand);color:#fff;min-height:44px}
button:hover{filter:brightness(.94)}
button:disabled{opacity:.5;cursor:not-allowed}
button.ghost,.btn.ghost{background:var(--soft);color:var(--ink)}
button.danger{background:#fdeceb;color:var(--danger)}
button.small{padding:7px 12px;min-height:36px;font-size:.9rem}
.btn{display:inline-block;text-align:center;text-decoration:none;border-radius:12px;padding:12px 18px;font-weight:650;background:var(--brand);color:#fff;min-height:44px}
.wide{width:100%}
:focus-visible{outline:3px solid #f2b705;outline-offset:2px}
label{display:block;font-size:.85rem;font-weight:650;margin:14px 0 5px}
input,select,textarea{width:100%;border:1px solid var(--line);border-radius:10px;background:#fff;padding:11px 12px;min-height:44px}
input[type=checkbox],input[type=radio]{width:20px;height:20px;min-height:0;accent-color:var(--brand)}
textarea{min-height:84px;resize:vertical}
.check{display:flex;gap:10px;align-items:center;font-weight:500;font-size:1rem;margin:8px 0}
.check input{flex:none}
.wrap{max-width:1040px;margin:0 auto;padding:0 16px}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:18px}
.row{display:flex;justify-content:space-between;align-items:center;gap:12px}
.gap{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.stack>*+*{margin-top:12px}
.badge{display:inline-block;border-radius:99px;padding:3px 10px;font-size:.78rem;font-weight:700;background:var(--soft);color:var(--ink)}
.badge.hot{background:#fff1c9;color:#6b4700}
.badge.red{background:#fdeceb;color:var(--danger)}
.notice{padding:12px 14px;border-radius:10px;background:#fff6df;border:1px solid #ecc884;color:#5f4413;margin:12px 0;white-space:pre-line}
.notice.ok{background:#e6f4ea;border-color:#a8d5b4;color:#14532d}
.eyebrow{text-transform:uppercase;letter-spacing:.14em;font-size:.72rem;font-weight:800;color:var(--brand)}

/* ---------- página inicial */
.top{background:#fff;border-bottom:1px solid var(--line)}
.top .wrap{display:flex;align-items:center;justify-content:space-between;padding-top:14px;padding-bottom:14px}
.logo{font-weight:850;font-size:1.15rem;text-decoration:none;color:var(--ink)}
.logo b{color:var(--brand)}
.hero{padding:44px 0 28px}
.hero p{font-size:1.1rem;max-width:34em;color:var(--muted)}
.cols{display:grid;gap:22px;grid-template-columns:1fr;align-items:start}
@media(min-width:820px){.cols{grid-template-columns:1.05fr 1fr}}
.steps{list-style:none;padding:0;margin:18px 0 0;display:grid;gap:12px}
.steps li{display:flex;gap:12px}
.steps span{flex:none;width:30px;height:30px;border-radius:50%;background:var(--brand);color:#fff;display:grid;place-items:center;font-weight:800}
.tabs{display:flex;gap:6px;background:var(--soft);padding:5px;border-radius:14px;margin-bottom:14px}
.tabs button{flex:1;background:transparent;color:var(--muted)}
.tabs button.active{background:#fff;color:var(--ink);box-shadow:0 1px 3px rgba(0,0,0,.1)}
.slugbox{display:flex;align-items:center;border:1px solid var(--line);border-radius:10px;background:#fff;overflow:hidden}
.slugbox span{padding:0 0 0 12px;color:var(--muted);white-space:nowrap;font-size:.95rem}
.slugbox input{border:0;border-radius:0;padding-left:2px;min-width:0}
.hint{font-size:.85rem;margin-top:4px;min-height:1.2em}
.hint.bad{color:var(--danger)}
.hint.good{color:#1b7a43}
footer.site{padding:30px 0 50px;color:var(--muted);font-size:.9rem}

/* ---------- loja (cliente) */
.cover{height:150px;background:var(--brand) center/cover no-repeat}
.cover img{width:100%;height:100%;object-fit:cover;display:block}
.head{background:#fff;border-bottom:1px solid var(--line);padding-bottom:16px}
.head .idrow{display:flex;gap:14px;align-items:flex-end;margin-top:-34px}.head .idrow>div:last-child{padding-bottom:2px;min-width:0}.head .gap{margin-top:12px}
.avatar{flex:none;width:76px;height:76px;border-radius:18px;border:3px solid #fff;background:var(--brand);color:#fff;display:grid;place-items:center;font-size:1.9rem;font-weight:800;overflow:hidden}
.avatar img{width:100%;height:100%;object-fit:cover}
.head h1{font-size:1.45rem;letter-spacing:-.02em;margin:0}
.head p{margin:2px 0 0}
.chips{position:sticky;top:0;z-index:5;background:var(--bg);border-bottom:1px solid var(--line);overflow-x:auto;white-space:nowrap}
.chips .wrap{display:flex;gap:8px;padding-top:10px;padding-bottom:10px}
.chips a{padding:6px 14px;border-radius:99px;background:#fff;border:1px solid var(--line);color:var(--ink);text-decoration:none;font-weight:650;font-size:.9rem}
.menu h2{margin:26px 0 12px;scroll-margin-top:60px}
.grid{display:grid;gap:12px;grid-template-columns:1fr}
@media(min-width:700px){.grid{grid-template-columns:1fr 1fr}}
.item{display:flex;gap:12px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:12px;width:100%;text-align:left;color:var(--ink);font-weight:400;min-height:0}
.item:hover{filter:none;border-color:var(--brand)}
.item:disabled{opacity:.6}
.item .info{flex:1;min-width:0}
.item h3{margin:0 0 2px}
.item p{font-size:.88rem;color:var(--muted);margin:0 0 6px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.item img,.item .ph{flex:none;width:92px;height:92px;border-radius:10px;object-fit:cover;background:var(--soft)}
.item .ph{display:grid;place-items:center;font-size:1.6rem;color:var(--muted)}
.price s{color:var(--muted);font-weight:400;margin-right:6px;font-size:.9rem}
.price strong{font-size:1.05rem}
.offers{background:linear-gradient(180deg,#fff7d9,transparent);border-radius:var(--radius);padding:2px 12px 12px;margin-top:18px}
.cartbar{position:fixed;left:0;right:0;bottom:0;z-index:10;padding:10px 16px calc(10px + env(safe-area-inset-bottom));background:linear-gradient(transparent,var(--bg) 35%)}
.cartbar button{width:100%;max-width:1008px;display:flex;justify-content:space-between;margin:0 auto;box-shadow:0 6px 18px rgba(0,0,0,.2)}
main.pad{padding-bottom:90px}
dialog{border:0;border-radius:18px;padding:18px;width:min(520px,calc(100vw - 20px));max-height:92vh;color:var(--ink)}
dialog::backdrop{background:rgba(0,0,0,.5)}
.qty{display:flex;align-items:center;gap:14px}
.qty button{width:44px;padding:0}
.qty output{min-width:2ch;text-align:center;font-weight:700;font-size:1.1rem}
.line{border-top:1px solid var(--line);padding-top:12px;margin-top:12px}
.total{font-size:1.25rem;font-weight:800}
.cartline{border-bottom:1px solid var(--line);padding:10px 0}
.pix{background:var(--soft);padding:12px;border-radius:10px;margin-top:12px}
.pix code{word-break:break-all;display:block;margin:4px 0}

/* ---------- painel */
.panel-top{position:sticky;top:0;z-index:20;background:#fff;border-bottom:1px solid var(--line)}
.panel-top .wrap{display:flex;justify-content:space-between;align-items:center;gap:10px;padding-top:10px;padding-bottom:10px}
.switch{display:flex;align-items:center;gap:8px;font-weight:700}
.switch button{min-width:92px}
.switch button.on{background:#1b7a43}
.switch button.off{background:var(--danger)}
nav.bottom{position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid var(--line);display:flex;z-index:20;padding-bottom:env(safe-area-inset-bottom)}
nav.bottom button{flex:1;background:transparent;color:var(--muted);border-radius:0;padding:10px 4px;font-size:.82rem;display:flex;flex-direction:column;gap:2px;align-items:center}
nav.bottom button.active{color:var(--brand);box-shadow:inset 0 3px 0 var(--brand)}
nav.bottom svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
main.panel{padding:16px 16px 100px}
.plist{display:grid;gap:10px;margin-top:12px}
.prow{display:flex;gap:12px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:12px;padding:10px}
.prow img,.prow .ph{flex:none;width:56px;height:56px;border-radius:8px;object-fit:cover;background:var(--soft);display:grid;place-items:center;color:var(--muted)}
.prow .info{flex:1;min-width:0}
.prow .info strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.prow.off{opacity:.6}
.catlabel{font-size:.78rem;text-transform:uppercase;letter-spacing:.1em;color:var(--muted);font-weight:800;margin:18px 0 0}
.photo{display:flex;gap:12px;align-items:center}
.photo img,.photo .ph{width:84px;height:84px;border-radius:12px;object-fit:cover;background:var(--soft);display:grid;place-items:center;color:var(--muted);flex:none}
.colors{display:flex;gap:10px;flex-wrap:wrap}
.colors label{margin:0}
.colors input{position:absolute;opacity:0;width:1px;height:1px}
.colors span{display:block;width:38px;height:38px;border-radius:50%;border:3px solid #fff;box-shadow:0 0 0 1px var(--line)}
.colors input:checked+span{box-shadow:0 0 0 3px var(--ink)}
.colors input:focus-visible+span{outline:3px solid #f2b705}
.qrbox{background:#fff;border:1px solid var(--line);border-radius:12px;padding:10px;width:min(240px,100%)}
.qrbox img{width:100%;display:block}
.checklist{list-style:none;padding:0;margin:0}
.checklist li{padding:6px 0;display:flex;gap:10px}
.checklist .done{color:#1b7a43}
.checklist .todo{color:var(--muted)}
@media print{.panel-top,nav.bottom,.noprint{display:none!important}}
.pagepad{padding-top:24px;padding-bottom:50px}
.plain{border:0;padding:0;margin:12px 0 0}
.colors span[data-c="#16664b"]{background:#16664b}
.colors span[data-c="#b3261e"]{background:#b3261e}
.colors span[data-c="#1a5fb4"]{background:#1a5fb4}
.colors span[data-c="#7a3e9d"]{background:#7a3e9d}
.colors span[data-c="#c64600"]{background:#c64600}
.colors span[data-c="#0b7285"]{background:#0b7285}
.colors span[data-c="#5c4033"]{background:#5c4033}
.colors span[data-c="#222222"]{background:#222222}

/* ---------- administração */
.adm .wrap{max-width:1180px}
.adm .tabs{margin:16px 0}
.stats{display:grid;gap:12px;grid-template-columns:repeat(2,1fr)}
@media(min-width:760px){.stats{grid-template-columns:repeat(4,1fr)}}
.stat{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:14px}
.stat strong{display:block;font-size:1.8rem;letter-spacing:-.03em;line-height:1.1}
.tablewrap{overflow-x:auto;background:#fff;border:1px solid var(--line);border-radius:var(--radius)}
table.tbl{border-collapse:collapse;width:100%;font-size:.92rem}
.tbl th,.tbl td{padding:10px 12px;text-align:left;border-bottom:1px solid var(--line);vertical-align:middle}
.tbl th{font-size:.75rem;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);white-space:nowrap}
.tbl tr:last-child td{border-bottom:0}
.tbl tr.off td{opacity:.55}
.tbl .acts{white-space:nowrap}
.bars{width:100%;height:auto;display:block}
.bars .bar{fill:var(--brand)}
.bars text{font-size:9px;fill:var(--muted)}
.filters{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:12px}
.filters input{flex:1;min-width:200px}.filters select{width:auto}
.chip{display:inline-flex;gap:6px;align-items:center;background:var(--soft);border-radius:99px;padding:4px 6px 4px 12px;margin:0 6px 6px 0}
.chip button{padding:0 8px;min-height:26px;border-radius:99px;background:#fff;color:var(--danger)}
