/* ── Variables ─────────────────────────────────────────────────────────── */
:root {
  --roast:        #2C1A0E;
  --roast-mid:    #5C3A1E;
  --caramel:      #B07D4C;
  --cream:        #F9F5EF;
  --cream-alt:    #F0E8DC;
  --text-muted:   #6B6560;
  --radius:       10px;
}

/* ── Base ──────────────────────────────────────────────────────────────── */
body {
  background: #DDD0BC;
  color: var(--roast);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ── Top bar ───────────────────────────────────────────────────────────── */
.top-bar {
  background: var(--roast);
  color: #fff;
  padding: 14px 0 12px;
}
.brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}

/* ── Category tabs ─────────────────────────────────────────────────────── */
.category-nav {
  background: var(--roast);
  z-index: 100;
}
.category-tabs {
  border-bottom: none;
  gap: 0;
  padding: 0 8px;
}
.category-tabs .nav-link {
  color: rgba(255,255,255,0.65);
  border: none;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 16px;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.category-tabs .nav-link:hover {
  color: rgba(255,255,255,0.9);
  border-bottom-color: rgba(255,255,255,0.35);
}
.category-tabs .nav-link.active {
  color: #fff;
  background: transparent;
  border-bottom-color: var(--caramel);
}

/* ── Item card ─────────────────────────────────────────────────────────── */
.item-card {
  border: 1.5px solid #C4B09A;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(44,26,14,0.12);
}
.item-header {
  background: #fff;
}
.price-tag {
  font-size: 1rem;
  font-weight: 700;
  color: var(--roast-mid);
  white-space: nowrap;
  margin-left: 12px;
}

/* ── Option rows (alternating background) ──────────────────────────────── */
.option-row {
  background: #fff;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.option-row-alt {
  background: #F5EBE0;
}
.option-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

/* ── Custom roast button ───────────────────────────────────────────────── */
.btn-roast {
  background-color: var(--roast);
  border-color: var(--roast);
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
}
.btn-roast:hover, .btn-roast:focus {
  background-color: var(--roast-mid);
  border-color: var(--roast-mid);
  color: #fff;
}
.btn-roast:disabled {
  background-color: #999;
  border-color: #999;
}

.btn-outline-roast {
  color: var(--roast);
  border-color: #C8B8A8;
  font-size: 0.82rem;
  font-weight: 500;
  border-radius: 6px;
  background: #fff;
  transition: all 0.12s;
}
.btn-outline-roast:hover {
  background: var(--cream-alt);
  border-color: var(--roast-mid);
  color: var(--roast);
}
.btn-check:checked + .btn-outline-roast {
  background-color: var(--roast);
  border-color: var(--roast);
  color: #fff;
}
.btn-check:focus + .btn-outline-roast,
.btn-outline-roast:focus {
  box-shadow: 0 0 0 3px rgba(44,26,14,0.15);
  outline: none;
}

/* Add to order button */
.add-btn {
  padding: 13px;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

/* ── Cart bar ──────────────────────────────────────────────────────────── */
.cart-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--roast);
  color: #fff;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  z-index: 1040;
  box-shadow: 0 -2px 16px rgba(0,0,0,0.2);
}
.cart-badge {
  background: var(--caramel);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  min-width: 24px;
  height: 24px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}
.cart-cta {
  font-weight: 600;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
}

/* ── Cart sheet ────────────────────────────────────────────────────────── */
.cart-sheet {
  border-radius: 16px 16px 0 0;
}
.cart-sheet .offcanvas-header {
  background: #fff;
}
.checkout-section {
  background: var(--cream);
}
.order-type-group .btn-outline-roast {
  font-size: 0.9rem;
  padding: 10px;
  font-weight: 600;
}

/* ── Cart item row ─────────────────────────────────────────────────────── */
.cart-item-row {
  background: #fff;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
}
.cart-item-row .remove-btn {
  color: #999;
  background: none;
  border: none;
  font-size: 1.2rem;
  line-height: 1;
  padding: 0 0 0 8px;
  cursor: pointer;
}
.cart-item-row .remove-btn:hover { color: #c00; }

/* ── Table grid ────────────────────────────────────────────────────────── */
.table-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.table-btn {
  border: 1.5px solid #C8B8A8;
  background: #fff;
  border-radius: 8px;
  padding: 10px 0;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--roast);
  cursor: pointer;
  transition: all 0.12s;
}
.table-btn:hover { background: var(--cream-alt); border-color: var(--roast-mid); }
.table-btn.active {
  background: var(--roast);
  border-color: var(--roast);
  color: #fff;
}

/* ── Confirmation ──────────────────────────────────────────────────────── */
.confirm-icon { line-height: 1; }

/* ── Add button feedback ───────────────────────────────────────────────── */
.add-btn.added {
  background: #2E7D32;
  border-color: #2E7D32;
}

/* ── Responsive tweaks ─────────────────────────────────────────────────── */
.menu-main { min-height: 100vh; }
