:root{
  /* Paleta Café */
  --coffee:#6E462A;
  --cream:#F0C3A3;
  --caramel:#ED975A;
  --mocha:#6E594B;
  --cinnamon:#BD7848;

  /* Tema */
  --bg:#0b0806;
  --card:#14100c;
  --card2:#1a140f;
  --text:#f7efe9;
  --muted:#cbb7aa;
  --line: rgba(240,195,163,.14);

  /* Ações */
  --btn: var(--cinnamon);
  --btn2: var(--caramel);
  --danger:#ff4d4d;
  --ok:#1fc76a;

  --shadow: 0 12px 30px rgba(0,0,0,.45);
  --radius: 18px;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
}

.topbar{
  position:sticky; top:0;
  display:flex; align-items:center; justify-content:space-between;
  gap:12px;
  padding:14px 14px;
  background:rgba(11,11,14,.92);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
  z-index:10;
}

.title{
  margin:0;
  font-size:18px;
  font-weight:800;
  letter-spacing:.2px;
}

.iconbtn{
  border:0;
  background:transparent;
  color:var(--text);
  font-size:18px;
  padding:10px 12px;
  border-radius:12px;
  cursor:pointer;
}
.iconbtn:hover{ background: rgba(255,255,255,.06); }

.badge{
  display:inline-flex;
  min-width:20px;
  height:20px;
  align-items:center;
  justify-content:center;
  padding:0 6px;
  margin-left:6px;
  font-size:12px;
  border-radius:999px;
  background:rgba(255,255,255,.12);
}

.content{
  padding:14px;
  padding-bottom:90px;
  max-width:720px;
  margin:0 auto;
}

.list{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.card{
  background:linear-gradient(180deg, var(--card), var(--card2));
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px;
}

.thumb{
  width:84px;
  height:84px;
  border-radius:16px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
  flex:0 0 auto;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}

.thumb img{
  width:100%;
  height:100%;
  object-fit: contain;
  display:block;
}

.info{
  flex:1;
  min-width:0;
}

.name{
  font-weight:900;
  margin:0 0 4px 0;
  font-size:14px;
  line-height:1.2;
}

.sub{
  margin:0;
  color:var(--muted);
  font-size:13px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.price{
  margin-top:6px;
  font-size:13px;
  color:#dcdcf0;
  opacity:.95;
}

.chips{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:8px;
}
.chip{
  font-size:12px;
  color:var(--text);
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  padding:6px 8px;
  border-radius:999px;
}

.plusBtn{
  width:44px;
  height:44px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  color:var(--text);
  font-size:22px;
  cursor:pointer;
}
.plusBtn:hover{ background: rgba(255,255,255,.12); }

.bottomnav{
  position:fixed;
  left:0; right:0; bottom:0;
  background:rgba(11,11,14,.92);
  backdrop-filter: blur(10px);
  border-top:1px solid var(--line);
  display:flex;
  justify-content:center;
  gap:8px;
  padding:10px 10px;
}

.tab{
  flex:1;
  max-width:220px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.06);
  color:var(--text);
  padding:10px 12px;
  border-radius:14px;
  cursor:pointer;
  font-weight:800;
}
.tab.active{ border-color: rgba(189,120,72,.95); }

.sectionTitle{
  margin:6px 0 12px 0;
  font-size:16px;
  font-weight:900;
}

.panel{
  background:linear-gradient(180deg, var(--card), var(--card2));
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:14px;
}

.row{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:space-between;
  padding:10px 0;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.row:last-child{border-bottom:0}

.k{
  color:var(--muted);
  font-weight:800;
}
.v{
  font-weight:900;
}

.btn{
  width:100%;
  border:0;
  background: var(--btn);
  color:white;
  padding:12px 14px;
  border-radius:14px;
  font-weight:900;
  cursor:pointer;
}
.btn:hover{ filter: brightness(1.05); }

.btn.ghost{
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.10);
}

.grid2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
}

.input{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.06);
  color:var(--text);
  outline:none;
}

.small{
  font-size:12px;
  color:var(--muted);
}

.note{
  margin-top:10px;
  padding:10px 12px;
  border-radius:14px;
  border:1px dashed rgba(255,255,255,.18);
  background:rgba(255,255,255,.04);
  color:var(--muted);
  font-size:12px;
  line-height:1.4;
}

.hidden{ display:none !important; }

.modalBackdrop{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.65);
  display:flex;
  align-items:flex-end;
  justify-content:center;
  padding:14px;
  z-index:100;
}

.modal{
  width:min(680px, 100%);
  background:linear-gradient(180deg, var(--card), var(--card2));
  border:1px solid rgba(255,255,255,.10);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow:hidden;
}

.modalHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 14px 8px 14px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.modalTitle{ margin:0; font-size:16px; font-weight:900; }

.modalBody{ padding:14px; }
.modalFoot{
  display:flex;
  gap:10px;
  padding:14px;
  border-top:1px solid rgba(255,255,255,.08);
}

.qty{
  display:flex;
  align-items:center;
  gap:10px;
}
.qty button{
  width:40px; height:40px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  color:var(--text);
  font-size:18px;
  cursor:pointer;
}
.qty span{ font-weight:900; min-width:26px; text-align:center; }

.quickBtns{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
}
.quickBtns button{
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  color:var(--text);
  padding:8px 10px;
  border-radius:999px;
  cursor:pointer;
  font-weight:800;
  font-size:12px;
}
.quickBtns button:hover{ background:rgba(255,255,255,.12); }

hr.sep{
  border:0;
  border-top:1px solid rgba(255,255,255,.08);
  margin:12px 0;
}

/* PRINT (contrato) */
@media print{
  body{ background:white; color:black; }
  .no-print{ display:none !important; }
  .content{ max-width:none; padding:0; }
  .panel, .card{
    box-shadow:none !important;
    background:white !important;
    border:1px solid #ddd !important;
  }
  .small, .k{ color:#333 !important; }
  .input{
    background:white !important;
    color:black !important;
    border:1px solid #bbb !important;
  }
}
