/* Mobile-first (360 px), font sistem, tanpa web font. */
:root {
  --bg: #faf7f4;
  --fg: #2b2118;
  --muted: #7a6a5d;
  --accent: #6f4e37;
  --line: #e7ddd3;
  --card: #fff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 15px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.noscript { padding: 16px; text-align: center; }
.banner {
  background: #fff3cd;
  color: #664d03;
  padding: 8px 16px;
  font-size: 13px;
  text-align: center;
}
.store {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.store .logo { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex: none; }
.store h1 { margin: 0 0 2px; font-size: 20px; }
.meta { margin: 0; font-size: 13px; color: var(--muted); }
.meta a { color: inherit; }
.price-note { margin: 0; padding: 8px 16px; font-size: 12px; color: var(--muted); }
.search-wrap { padding: 8px 16px; }
.search-wrap input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: var(--card);
}
.tabs {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--fg);
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
}
.menu { padding: 0 16px 24px; }
.cat { scroll-margin-top: 56px; }
.cat h2 { font-size: 16px; margin: 20px 0 8px; color: var(--accent); }
.card {
  display: flex;
  width: 100%;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 8px;
  padding: 12px;
  text-align: left;
  font: inherit;
  color: inherit;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}
.card.soldout { opacity: 0.5; }
.card-body { min-width: 0; flex: 1; }
.card-title { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.name { font-weight: 600; }
.badge {
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 999px;
  background: #e9ecef;
  color: #495057;
}
.desc { margin: 2px 0; font-size: 13px; color: var(--muted); }
.price { margin: 4px 0 0; font-weight: 600; color: var(--accent); }
.thumb { width: 72px; height: 72px; border-radius: 8px; object-fit: cover; flex: none; }
.empty, .state { padding: 32px 16px; text-align: center; color: var(--muted); }
.state h2 { color: var(--fg); }
.btn {
  padding: 10px 18px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  cursor: pointer;
}
.footer { padding: 16px; text-align: center; font-size: 12px; color: var(--muted); }
.footer a { color: var(--accent); }
.sheet {
  width: min(92vw, 420px);
  max-height: 85vh;
  overflow: auto;
  border: 0;
  border-radius: 16px;
  padding: 16px;
}
.sheet::backdrop { background: rgba(0, 0, 0, 0.4); }
.sheet h2 { margin: 0 0 8px; font-size: 18px; }
.sheet h3 { margin: 14px 0 4px; font-size: 14px; color: var(--accent); }
.sheet-img { width: 100%; max-height: 200px; object-fit: cover; border-radius: 10px; }
.opts { list-style: none; margin: 0 0 8px; padding: 0; }
.opts li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.opt-price { color: var(--muted); white-space: nowrap; }
.sheet .btn { margin-top: 12px; width: 100%; }

/* F3: pesan dari meja */
.order-bar { position: sticky; bottom: 0; z-index: 6; padding: 8px 16px; background: var(--bg); border-top: 1px solid var(--line); }
.order-bar .btn { width: 100%; }
.field { width: 100%; margin: 8px 0 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: var(--card); }
.check { display: flex; align-items: center; gap: 4px; padding: 4px 0; }
.qty-row { display: flex; align-items: center; gap: 12px; margin: 10px 0 0; }
.qty { min-width: 24px; text-align: center; font-weight: 600; }
.btn-small { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: var(--card); font: inherit; font-size: 18px; cursor: pointer; }
.line { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.line-head { display: flex; justify-content: space-between; gap: 8px; }
.pay-note { margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; background: #fff3cd; color: #664d03; font-size: 13px; }
.error { margin: 8px 0 0; color: #b02a37; font-size: 13px; }
.status-title { font-size: 20px; }
.btn.secondary { background: var(--card); color: var(--accent); border: 1px solid var(--line); }
