:root {
  --bg: #faf8f3;
  --paper: #fffdf7;
  --fg: #2a2a2a;
  --brand: #2d6a4f;      /* verde suave */
  --accent: #a47148;     /* terroso */
  --muted: #6b6b6b;
  --line: #e8e1d7;
}

* { box-sizing: border-box }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.45 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.brand h1 { margin: 0; font-size: 20px; color: var(--brand); }
.brand h1 span { color: var(--accent); font-weight: 600; }
.brand small { color: var(--muted); display: block; margin-top: 2px; }
.actions #openCart {
  border: 1px solid var(--line); background: #fff; padding: 10px 14px; border-radius: 10px;
}
#cartCount { background: var(--brand); color: #fff; padding: 2px 8px; border-radius: 999px; margin-left: 6px; }

main { max-width: 1100px; margin: 0 auto; padding: 18px; }
.intro h2 { margin: 6px 0 4px; }
.intro p { color: var(--muted); margin-top: 0; }

.grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  margin-top: 14px;
}

/* Card do produto */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column;
}
.card img.img {
  display: block; width: 100%; height: 160px; object-fit: cover;
  border-bottom: 1px solid var(--line);
  background: #eee;
}
.card .p { padding: 12px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card .muted { color: var(--muted); font-size: 13px; }
.card .price { color: var(--brand); font-weight: 700; margin-top: 6px; }
.card .actions { display: flex; gap: 8px; margin-top: 8px; }
.card button { cursor: pointer; border: 1px solid var(--line); background: #fff; padding: 8px 12px; border-radius: 10px; }
.card button.add { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Carrinho (drawer) */
.drawer {
  position: fixed; top: 0; right: 0; width: 380px; max-width: 100%;
  height: 100%; background: #fff; border-left: 1px solid var(--line);
  box-shadow: -8px 0 20px rgba(0,0,0,.08);
  display: flex; flex-direction: column;
}
.drawer.hidden { display: none; }
.drawer-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--paper);
}
.drawer-section { padding: 12px 14px; border-top: 1px solid var(--line); background: #fff; }
.drawer-footer { margin-top: auto; padding: 12px 14px; border-top: 1px solid var(--line); display: grid; gap: 10px; }

.cart-list { padding: 12px 14px; display: grid; gap: 10px; max-height: 55vh; overflow: auto; }
.cart-line {
  display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center;
  border: 1px solid var(--line); border-radius: 10px; padding: 10px;
}
.cart-line .name { font-weight: 600; }
.cart-line .qty { display: flex; align-items: center; gap: 8px; }
.cart-line .qty button { padding: 6px 10px; border-radius: 8px; }

.inline { display: flex; align-items: center; gap: 6px; }
.full { display: grid; gap: 6px; margin-top: 8px; }
input, textarea, select {
  width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff;
}

button.primary { background: var(--brand); border: 1px solid var(--brand); color: #fff; padding: 10px 14px; border-radius: 10px; }
button.secondary { background: #fff; border: 1px solid var(--line); color: var(--fg); padding: 10px 14px; border-radius: 10px; }

.totals { display: grid; gap: 8px; }
.total { font-size: 18px; }
.muted { color: var(--muted); }

/* ===== AJUSTE DO CABEÇALHO (pedido) ===== */
.topbar {
  background: #f1eee7 !important; /* tom moderno */
  border-bottom: 1px solid var(--line);
}
.brand h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--brand);
}
.brand small { display: none; }

