:root {
  --bg: #1a120c;
  --card: #2a1c14;
  --accent: #e8a54b;
  --text: #f4ece3;
  --muted: #c4b4a4;
  --danger: #e05a4f;
  --ok: #3d9a6a;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "PingFang SC", "Noto Sans SC", sans-serif;
  background: var(--bg);
  color: var(--text);
}
a { color: var(--accent); }
.wrap { max-width: 720px; margin: 0 auto; padding: 16px; }
h1, h2 { font-weight: 650; }
.card {
  background: var(--card);
  border-radius: 14px;
  padding: 14px;
  margin: 10px 0;
}
.dish { display: flex; gap: 12px; align-items: center; }
.dish img, .ph {
  width: 76px; height: 76px; border-radius: 10px; object-fit: cover; background: #3a2a20; flex-shrink: 0;
}
.ph { display: grid; place-items: center; color: var(--muted); font-size: 12px; }
.price { color: var(--accent); font-weight: 700; }
.qty { width: 64px; padding: 8px; border-radius: 8px; border: 0; }
button, .btn {
  background: var(--accent); color: #1a120c; border: 0; border-radius: 10px;
  padding: 10px 14px; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-block;
}
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.ok { background: var(--ok); color: #fff; }
.muted { color: var(--muted); }
.en { font-size: 13px; }
.top { display: flex; justify-content: space-between; align-items: center; }
.ticket { border-left: 4px solid var(--accent); }
.ticket.new { border-color: #e05a4f; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media print {
  body { background: #fff; color: #000; }
  .noprint { display: none; }
  .qrcard { break-inside: avoid; text-align: center; }
}
input[type=text], input[type=password], input[type=number], textarea, select {
  width: 100%; padding: 10px; border-radius: 8px; border: 0; margin: 6px 0;
}
table { width: 100%; border-collapse: collapse; font-size: 14px; }
td, th { padding: 8px; border-bottom: 1px solid #3a2a20; text-align: left; }
.sold { opacity: .45; }
.wrap.has-cart { padding-bottom: 96px; }
.cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.cat-card {
  background: var(--card);
  border-radius: 14px;
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
  display: block;
}
.cat-card img, .ph.tall {
  width: 100%;
  height: 110px;
  object-fit: cover;
  background: #3a2a20;
}
.ph.tall { display: grid; place-items: center; height: 110px; }
.cat-name { padding: 10px 10px 2px; font-weight: 650; font-size: 15px; }
.cat-card .muted { padding: 0 10px 12px; }
.cart-bar {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: var(--accent); color: #1a120c;
  text-align: center; font-weight: 700;
  padding: 14px 16px 18px;
  text-decoration: none;
}
.sticky-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 30;
  display: flex;
  gap: 8px;
  padding: 10px 12px calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(26, 18, 12, 0.96);
  box-shadow: 0 -8px 24px rgba(0,0,0,.35);
}
.sticky-add, .sticky-cart {
  flex: 1;
  margin: 0;
  text-align: center;
  border-radius: 12px;
  padding: 14px 10px;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sticky-add { flex: 1.35; }
.sticky-cart {
  background: #3a2a20;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.opt-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; font-size: 14px; }
.opt { display: inline-flex; align-items: center; gap: 4px; background: #3a2a20; border-radius: 999px; padding: 4px 10px; }
.opt input { accent-color: var(--accent); }
