:root {
  --ink: #24170f;
  --muted: #7b6556;
  --paper: #fff7ee;
  --card: #fffdf9;
  --mustard: #f5b301;
  --ketchup: #e23b2b;
  --potato: #ef8a2a;
  --leaf: #2d6a4f;
  --line: rgba(36, 23, 15, 0.1);
  --shadow: 0 18px 50px rgba(36, 23, 15, 0.12);
  --radius: 22px;
  font-family: "Manrope", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 90% -10%, rgba(245, 179, 1, 0.18), transparent 60%),
    radial-gradient(700px 380px at -10% 10%, rgba(226, 59, 43, 0.12), transparent 55%),
    var(--paper);
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 7vw;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.mark {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: var(--ink);
  display: grid;
  place-items: center;
  box-shadow: 6px 6px 0 var(--mustard);
}
.brand strong {
  display: block;
  font-family: "Lilita One", sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.2px;
  font-weight: 400;
}
.brand span { color: var(--muted); font-size: 0.82rem; }
.nav {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav a, .ghost, .btn, .qty button, .status-btn {
  border: 0;
  border-radius: 999px;
  text-decoration: none;
}
.nav a, .ghost {
  background: transparent;
  padding: 10px 14px;
  color: var(--ink);
}
.lang-btn {
  border: 1px solid var(--line);
  background: white;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 800;
}
.lang-btn:hover { background: #fff1d2; }
.nav a.active, .ghost:hover { background: rgba(36, 23, 15, 0.06); }

.wrap { width: min(1120px, calc(100% - 8vw)); margin: 0 auto; }
.view { display: none; padding-bottom: 72px; }
.view.active { display: block; }

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
  padding: 18px 0 10px;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 700;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--leaf);
}
h1 {
  font-family: "Lilita One", sans-serif;
  font-weight: 400;
  font-size: clamp(3.2rem, 7vw, 6.2rem);
  line-height: 0.9;
  margin: 14px 0 10px;
  letter-spacing: -0.5px;
}
h1 em { font-style: normal; color: var(--ketchup); }
.lead { font-size: 1.12rem; color: #4d3b31; max-width: 46ch; line-height: 1.55; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.choice {
  text-align: left;
  border: 0;
  border-radius: 24px;
  padding: 18px 18px 16px;
  min-height: 168px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.15s ease;
}
.choice:hover { transform: translateY(-3px); }
.choice.local { background: var(--ink); color: #fff8ee; }
.choice.delivery { background: var(--mustard); color: var(--ink); }
.choice small { opacity: 0.75; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.72rem; }
.choice strong { font-family: "Lilita One", sans-serif; font-size: 1.7rem; font-weight: 400; display: block; margin: 8px 0; }
.choice p { margin: 0; line-height: 1.4; }

.poster {
  background: var(--ink);
  color: #fff6ea;
  border-radius: 32px;
  min-height: 460px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.poster h2 {
  font-family: "Lilita One", sans-serif;
  font-weight: 400;
  font-size: 2.4rem;
  margin: 80px 0 8px;
  position: relative;
}
.fries {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  height: 150px;
}
.fry {
  width: 22px;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(#ffe08a, #f0a202);
}
.fry:nth-child(1) { height: 92px; transform: rotate(-8deg); }
.fry:nth-child(2) { height: 130px; }
.fry:nth-child(3) { height: 110px; transform: rotate(6deg); }
.fry:nth-child(4) { height: 146px; }
.fry:nth-child(5) { height: 100px; transform: rotate(-3deg); }
.sausage {
  margin-top: 18px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(90deg, #9c2f16, #e4572e 40%, #9c2f16);
  box-shadow: inset 0 -6px 0 rgba(0,0,0,.15);
}
.poster p { color: #f0d7c4; max-width: 28ch; }

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin: 10px 0 18px;
}
.section-head h2, .panel h2, .receipt h2 {
  font-family: "Lilita One", sans-serif;
  font-weight: 400;
  margin: 0;
  font-size: 2rem;
}
.muted { color: var(--muted); }
.layout {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr;
  gap: 18px;
  align-items: start;
}
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.product, .panel, .stat, .receipt, .table-wrap {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(36, 23, 15, 0.04);
}
.product { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.product header { display: flex; justify-content: space-between; gap: 8px; }
.tag {
  font-size: 0.75rem;
  background: #fff1d2;
  color: #8a5a00;
  border-radius: 999px;
  padding: 4px 8px;
  font-weight: 800;
}
.price { font-weight: 800; }
.product p { margin: 0; color: var(--muted); line-height: 1.4; font-size: 0.95rem; }
.qty { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.qty button {
  width: 36px;
  height: 36px;
  background: var(--ink);
  color: white;
  font-size: 1.2rem;
}
.qty span { min-width: 22px; text-align: center; font-weight: 800; }

.panel { padding: 18px; position: sticky; top: 16px; }
.cart-line, .bill-line, .meta-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}
.cart-empty { color: var(--muted); margin: 8px 0 16px; }
.btn {
  background: var(--ketchup);
  color: white;
  padding: 14px 16px;
  font-weight: 800;
  width: 100%;
  margin-top: 12px;
}
.btn.dark { background: var(--ink); }
.btn.mustard { background: var(--mustard); color: var(--ink); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.form { display: grid; gap: 12px; }
label { display: grid; gap: 6px; font-weight: 700; font-size: 0.92rem; }
input, select, textarea {
  border: 1px solid var(--line);
  background: white;
  border-radius: 14px;
  padding: 12px 14px;
}
textarea { min-height: 80px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.error { color: var(--ketchup); font-weight: 700; min-height: 1.2em; }

.receipt {
  padding: 28px;
  max-width: 760px;
  margin: 0 auto;
}
.receipt-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 12px;
}
.badge {
  background: #e8f6ee;
  color: var(--leaf);
  font-weight: 800;
  border-radius: 999px;
  padding: 6px 10px;
}
table { width: 100%; border-collapse: collapse; margin: 14px 0; }
th, td { text-align: left; padding: 10px 6px; border-bottom: 1px solid var(--line); }
th { font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
td.num, th.num { text-align: right; }
.totals { margin-left: auto; width: min(320px, 100%); }
.totals div { display: flex; justify-content: space-between; padding: 6px 0; }
.totals .grand { font-size: 1.25rem; font-weight: 800; border-top: 2px solid var(--ink); margin-top: 4px; padding-top: 10px; }
.eta {
  background: #fff4d8;
  border-radius: 16px;
  padding: 14px;
  margin: 14px 0;
}
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.stat { padding: 16px; }
.stat b { display: block; font-size: 1.45rem; margin-top: 6px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.filters button, .status-btn {
  background: white;
  border: 1px solid var(--line);
  padding: 8px 12px;
}
.filters button.on { background: var(--ink); color: white; }
.table-wrap { overflow: auto; }
.admin-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 16px; }
.login-card {
  max-width: 440px;
  margin: 40px auto;
  background: white;
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.group-label {
  grid-column: 1 / -1;
  margin-top: 8px;
  font-family: "Lilita One", sans-serif;
  font-size: 1.3rem;
}
footer {
  padding: 28px 7vw 40px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

@media print {
  body * { visibility: hidden; }
  #receipt-sheet, #receipt-sheet * { visibility: visible; }
  #receipt-sheet { position: absolute; inset: 0; box-shadow: none; border: 0; }
  .no-print { display: none !important; }
}

@media (max-width: 900px) {
  .hero, .layout, .admin-grid, .stats, .actions, .grid, .form-grid { grid-template-columns: 1fr; }
  .poster { min-height: 0; }
  .panel { position: static; }
  .topbar, footer { padding-left: 18px; padding-right: 18px; }
  .wrap { width: min(1120px, calc(100% - 32px)); }
}
