:root {
  /* Palette */
  --sand: #968C89;   /* Warm Gray — page */
  --slate: #D16A28;  /* Burnt Orange — rules, eyebrows, seafood */
  --brown: #B34A26;  /* Rust Red — prices, spicy */
  --pine: #FFDEB5;   /* Peach Cream — active states, vegetarian */
  --charcoal: #51423A; /* Dark Brown — body text, footer band */

  --ivory: #FFF5E6;

  --paper: #f4efe4;
  --sheet: #fbf8f2;
  --ink: #2b2a26;
  --line: rgba(60, 60, 60, 0.22);
  --hair: rgba(60, 60, 60, 0.14);
  --muted: #5a554b;
  --radius: 14px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--ivory);
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: "Fraunces", Georgia, serif; font-weight: 600; line-height: 1.1; margin: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(64px, 13vw, 132px) 20px clamp(44px, 7vw, 72px);
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.hero__inner { position: relative; max-width: 720px; margin: 0 auto; }

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 11px;
  color: var(--slate);
  margin: 0 0 18px;
}

.hero__title {
  font-size: clamp(56px, 14vw, 116px);
  letter-spacing: -0.035em;
  font-weight: 700;
  color: var(--ink);
}

.hero__sub {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(17px, 3.4vw, 24px);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--brown);
  margin: 8px 0 22px;
  padding-left: 0.4em;
}

.hero__note { color: var(--muted); margin: 0 auto 26px; max-width: 460px; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.dot { width: 4px; height: 4px; border-radius: 50%; background: var(--slate); display: inline-block; }

/* ---------- Sticky category nav ---------- */
.cats {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(225, 219, 201, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.cats__track {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  max-width: 1080px;
  margin: 0 auto;
  padding: 10px 16px;
  scrollbar-width: none;
}
.cats__track::-webkit-scrollbar { display: none; }

.cats__track a {
  flex: 0 0 auto;
  padding: 7px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: color 0.18s, background 0.18s;
}

.cats__track a:hover { color: var(--ink); background: rgba(60, 60, 60, 0.09); }
.cats__track a.is-active { color: var(--sand); background: var(--pine); }

/* ---------- Menu sheet ---------- */
.menu {
  max-width: 1080px;
  margin: 28px auto 64px;
  padding: 4px clamp(18px, 4vw, 42px) 52px;
  background: var(--sheet);
  border: 1px solid var(--hair);
  border-radius: 18px;
  box-shadow: 0 22px 60px rgba(20, 18, 15, 0.12);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 24px 0 6px;
}

.chip {
  font: inherit;
  font-size: 13px;
  color: var(--charcoal);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 15px;
  cursor: pointer;
  transition: all 0.16s;
}
.chip:hover { border-color: var(--slate); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--pine); border-color: var(--pine); color: var(--sand); font-weight: 600; }

.chip--search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 7px 14px;
  color: var(--muted);
  background: var(--sheet);
}
.chip--search:focus-within { border-color: var(--slate); }
.chip--search input {
  font: inherit;
  font-size: 13px;
  background: none;
  border: none;
  outline: none;
  color: var(--ink);
  width: 148px;
}
.chip--search input::placeholder { color: rgba(93, 88, 79, 0.7); }

.sec { padding: 40px 0 10px; scroll-margin-top: 76px; }
.sec + .sec { border-top: 1px solid var(--hair); }

.sec__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 18px; }
.sec__head h2 { font-size: clamp(27px, 4.6vw, 38px); letter-spacing: -0.02em; color: var(--ink); }
.sec__head h2::after {
  content: "";
  display: inline-block;
  width: 44px;
  height: 2px;
  background: var(--slate);
  vertical-align: middle;
  margin-left: 14px;
}
.sec__head p { color: var(--muted); font-size: 13.5px; margin: 0; width: 100%; font-style: italic; }

.items { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }

.item { padding: 13px 14px 15px; border-radius: var(--radius); transition: background 0.16s; }
.item:hover { background: rgba(225, 219, 201, 0.55); }

.item__head { display: flex; align-items: baseline; gap: 10px; }

.item__name { font-size: 18px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }

.item__dots {
  flex: 1;
  border-bottom: 1px dotted rgba(60, 60, 60, 0.34);
  transform: translateY(-4px);
  min-width: 24px;
}

.price { font-family: "Fraunces", Georgia, serif; font-size: 17px; color: var(--charcoal); white-space: nowrap; }
.price em { font-style: normal; font-size: 12.5px; color: var(--muted); }

.item__desc { margin: 5px 0 0; color: var(--muted); font-size: 14.5px; max-width: 68ch; }

.badge {
  font-family: "Inter", sans-serif;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
  white-space: nowrap;
}
.badge--veg { border-color: rgba(255, 222, 181, 0.45); color: var(--pine); background: rgba(255, 222, 181, 0.07); }
.badge--spicy { border-color: rgba(179, 74, 38, 0.45); color: var(--brown); background: rgba(179, 74, 38, 0.08); }
.badge--seafood { border-color: rgba(107, 123, 132, 0.5); color: var(--slate); background: rgba(107, 123, 132, 0.1); }

.empty { text-align: center; color: var(--muted); padding: 60px 0; }

/* ---------- Footer ---------- */
.foot {
  margin-top: 52px;
  padding: 30px clamp(18px, 3vw, 30px) 26px;
  border-radius: 16px;
  background: var(--charcoal);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 26px;
}
.foot__col h3 { font-size: 16px; margin-bottom: 8px; color: var(--sand); letter-spacing: 0.01em; }
.foot__col p { margin: 0; color: rgba(225, 219, 201, 0.82); font-size: 14px; }
.foot__legal { grid-column: 1 / -1; color: rgba(225, 219, 201, 0.55); font-size: 12px; margin: 8px 0 0; border-top: 1px solid rgba(225, 219, 201, 0.18); padding-top: 12px; }

.totop {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--charcoal);
  background: var(--sheet);
  color: var(--charcoal);
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: all 0.2s;
  z-index: 30;
}
.totop.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { background: var(--pine); border-color: var(--pine); color: var(--sand); }

@media (max-width: 640px) {
  .chip--search { margin-left: 0; width: 100%; justify-content: flex-start; }
  .chip--search input { width: 100%; }
  .item { padding-left: 0; padding-right: 0; }
  .item:hover { background: transparent; }
  .sec__head h2::after { display: none; }
  .menu { margin: 18px 12px 40px; border-radius: 14px; }
}

/* ---------- Add to order ---------- */
.add {
  flex: none;
  align-self: center;
  width: 28px;
  height: 28px;
  margin-left: 6px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--pine);
  font: inherit;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.16s, color 0.16s, border-color 0.16s;
}
.add:hover { background: var(--pine); border-color: var(--pine); color: var(--sand); }
.add.is-added { background: var(--pine); border-color: var(--pine); color: var(--sand); }
.add.is-added .add__plus { display: none; }
.add__qty { font-size: 12px; font-weight: 600; }
.add.is-pulse { animation: addPulse 0.5s ease; }
@keyframes addPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 222, 181, 0.45); }
  100% { box-shadow: 0 0 0 13px rgba(255, 222, 181, 0); }
}

/* ---------- Cart bar ---------- */
.cartbar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 9px 9px 9px 20px;
  border-radius: 999px;
  background: var(--charcoal);
  color: var(--sand);
  box-shadow: 0 16px 36px rgba(43, 42, 38, 0.3);
}
.cartbar[hidden] { display: none; }
.cartbar__info { display: flex; flex-direction: column; line-height: 1.2; }
.cartbar__count { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(225, 219, 201, 0.7); }
.cartbar__total { font-family: "Fraunces", Georgia, serif; font-size: 18px; }
.cartbar__btn {
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  background: var(--sand);
  color: var(--charcoal);
  cursor: pointer;
  transition: background 0.16s;
}
.cartbar__btn:hover { background: #fff; }
body.has-cart .totop { bottom: 96px; }

/* ---------- Buttons ---------- */
.btn {
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  border-radius: 10px;
  padding: 11px 18px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.16s, color 0.16s, border-color 0.16s;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn--pine { background: var(--pine); color: var(--sand); border-color: var(--pine); }
.btn--pine:hover:not(:disabled) { background: #51423A; }
.btn--ghost { background: transparent; color: var(--charcoal); border-color: var(--line); }
.btn--ghost:hover:not(:disabled) { border-color: var(--charcoal); }
.btn--dark { background: var(--charcoal); color: var(--sand); }
.btn--dark:hover:not(:disabled) { background: #51423A; }
.btn--quiet { background: transparent; color: var(--muted); border-color: transparent; }
.btn--quiet:hover:not(:disabled) { color: #B34A26; }
.btn--sm { font-size: 12.5px; padding: 8px 12px; border-radius: 8px; }

/* ---------- Order sheet ---------- */
.sheet { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; }
.sheet[hidden] { display: none; }
.sheet__scrim { position: absolute; inset: 0; background: rgba(43, 42, 38, 0.55); }
.sheet__panel {
  position: relative;
  width: min(560px, 100%);
  max-height: min(88vh, 760px);
  display: flex;
  flex-direction: column;
  background: var(--sheet);
  border-radius: 18px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}
.sheet__panel--narrow { width: min(420px, 100%); }
.sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 14px; border-bottom: 1px solid var(--hair); }
.sheet__head h2 { font-size: 24px; }
.sheet__x { border: none; background: none; font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer; }
.sheet__x:hover { color: var(--ink); }
.sheet__body { padding: 14px 22px 18px; overflow-y: auto; }
.sheet__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 22px 18px; border-top: 1px solid var(--hair); background: var(--paper); }
.sheet__sum { display: flex; flex-direction: column; line-height: 1.2; }
.sheet__sum span { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate); }
.sheet__sum strong { font-family: "Fraunces", Georgia, serif; font-size: 22px; color: var(--charcoal); }
.sheet__err {
  margin: 14px 0 0;
  color: #B34A26;
  font-size: 13.5px;
  background: rgba(179, 74, 38, 0.07);
  border: 1px solid rgba(179, 74, 38, 0.25);
  padding: 9px 12px;
  border-radius: 9px;
}
body.is-locked { overflow: hidden; }

.lines { list-style: none; margin: 0; padding: 0; display: grid; }
.line { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--hair); }
.line__main { flex: 1; display: flex; flex-direction: column; }
.line__name { font-size: 14.5px; color: var(--ink); }
.line__price { font-family: "Fraunces", Georgia, serif; font-size: 13.5px; color: var(--muted); }
.line__ctrl { display: flex; align-items: center; gap: 4px; }
.line__qty { min-width: 26px; text-align: center; font-size: 14px; font-weight: 600; }
.step {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  font: inherit; font-size: 15px;
  color: var(--charcoal);
  cursor: pointer;
  display: grid; place-items: center;
}
.step:hover { border-color: var(--pine); color: var(--pine); }
.lines__empty { color: var(--muted); font-size: 14px; padding: 10px 0 4px; }

.field { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }
.field label { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate); font-weight: 600; }
.field label span { text-transform: none; letter-spacing: 0; color: var(--muted); font-weight: 400; font-size: 11px; }
.field input {
  font: inherit; font-size: 15px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
.field input:focus { outline: none; border-color: var(--pine); box-shadow: 0 0 0 3px rgba(255, 222, 181, 0.12); }

.done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 34px 26px 30px; }
.done__eyebrow { margin: 0; font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--pine); }
.done h2 { font-size: 30px; }
.done__code { margin: 6px 0 4px; font-family: "Fraunces", Georgia, serif; font-size: 46px; letter-spacing: 0.02em; color: var(--charcoal); }
.done__note { margin: 0 0 14px; color: var(--muted); font-size: 14px; max-width: 34ch; }

/* ---------- Cashier ---------- */
.pos { background: var(--sand); min-height: 100vh; }
.pos__bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 13px 20px;
  background: var(--charcoal);
  color: var(--sand);
}
.pos__brand { display: flex; align-items: baseline; gap: 10px; }
.pos__brand strong { font-family: "Fraunces", Georgia, serif; font-size: 20px; }
.pos__brand span { font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(225, 219, 201, 0.7); }
.pos__stats { display: flex; gap: 24px; margin-left: auto; }
.stat { display: flex; flex-direction: column; line-height: 1.15; }
.stat span { font-family: "Fraunces", Georgia, serif; font-size: 19px; }
.stat small { font-size: 9.5px; letter-spacing: 0.13em; text-transform: uppercase; color: rgba(225, 219, 201, 0.65); }
.pos__live { display: flex; align-items: center; gap: 8px; font-size: 12px; color: rgba(225, 219, 201, 0.85); }
.pos__live.is-stale, .is-stale { color: #968C89; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #D16A28; animation: pulse 2.2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(209, 106, 40, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(209, 106, 40, 0); }
  100% { box-shadow: 0 0 0 0 rgba(209, 106, 40, 0); }
}
.pos__lock {
  font: inherit; font-size: 11.5px; font-weight: 600;
  border: 1px solid rgba(225, 219, 201, 0.4);
  background: transparent; color: var(--sand);
  border-radius: 999px; padding: 5px 12px; cursor: pointer;
}
.pos__lock:hover { background: rgba(225, 219, 201, 0.14); }

.gate { min-height: calc(100vh - 66px); display: grid; place-items: center; padding: 24px; }
.gate[hidden] { display: none; }
.gate__card {
  width: min(380px, 100%);
  background: var(--sheet);
  border-radius: 16px;
  padding: 30px;
  display: flex; flex-direction: column; gap: 9px;
  box-shadow: 0 20px 50px rgba(60, 60, 60, 0.18);
}
.gate__card h1 { font-size: 28px; }
.gate__card p { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.gate__card label { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate); font-weight: 600; }
.gate__card input {
  font: inherit; font-size: 20px; letter-spacing: 0.3em;
  padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
}
.gate__card input:focus { outline: none; border-color: var(--pine); box-shadow: 0 0 0 3px rgba(255, 222, 181, 0.12); }
.gate__err { color: #B34A26; font-size: 13px; margin: 6px 0 0; }

.queue { max-width: 1100px; margin: 0 auto; padding: 24px 18px 70px; }
.queue[hidden] { display: none; }
.queue__empty { text-align: center; padding: 64px 0; color: var(--muted); }
.queue__empty p { font-family: "Fraunces", Georgia, serif; font-size: 22px; color: var(--charcoal); margin: 0 0 6px; }
.queue__empty small { font-size: 13px; }

/* ---- Available tables board (cashier) ---- */
.tables-free {
  background: var(--sheet);
  border: 1px solid var(--hair);
  border-radius: 14px;
  padding: 14px 18px 16px;
  margin-bottom: 16px;
}
.tables-free__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.tables-free__head h2 {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
}
.tables-free__count { font-size: 12px; font-weight: 600; color: #3F6B52; }
.tables-free__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 8px;
}
.table-chip {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 8px 11px;
  border-radius: 10px;
  border: 1px solid var(--hair);
  background: rgba(255, 255, 255, 0.55);
  line-height: 1.3;
}
.table-chip__name { font-size: 13.5px; font-weight: 600; color: var(--charcoal); }
.table-chip__state { font-size: 11.5px; color: var(--muted); }
.table-chip__status { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.table-chip--free { border-color: rgba(35, 82, 62, 0.35); background: rgba(35, 82, 62, 0.07); }
.table-chip--free .table-chip__name { color: #3F6B52; }
.table-chip--free .table-chip__state { color: #3F6B52; font-weight: 600; }
.table-chip--busy { border-color: rgba(179, 74, 38, 0.35); background: rgba(179, 74, 38, 0.07); }
.table-chip--busy .table-chip__name { color: #B34A26; }
.table-chip--busy .table-chip__status { color: #B34A26; font-weight: 600; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 14px; }
.card {
  background: var(--sheet);
  border: 1px solid var(--hair);
  border-radius: 14px;
  padding: 15px 17px 13px;
  display: flex; flex-direction: column; gap: 9px;
}
.card.is-new { border-color: var(--pine); box-shadow: 0 0 0 3px rgba(255, 222, 181, 0.14); }
.card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.card__code { font-family: "Fraunces", Georgia, serif; font-size: 21px; color: var(--charcoal); }
.card__table {
  margin-left: 8px;
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--pine); color: var(--sand);
  border-radius: 999px; padding: 2px 9px;
}
.card__time { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.card__items { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-size: 14px; }
.card__items li { display: flex; gap: 8px; align-items: baseline; }
.card__qty { color: var(--pine); font-weight: 600; min-width: 24px; }
.card__line { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }
.card__note { margin: 0; font-style: italic; font-size: 13px; color: var(--brown); background: rgba(179, 74, 38, 0.07); border-radius: 8px; padding: 7px 10px; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--hair); padding-top: 10px; }
.card__total { font-family: "Fraunces", Georgia, serif; font-size: 17px; color: var(--charcoal); }
.card__actions { display: flex; gap: 6px; flex-wrap: wrap; }

.recent { margin-top: 34px; }
.recent h2 { font-family: "Inter", sans-serif; font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--slate); margin: 0 0 8px; }
.recent__list { list-style: none; margin: 0; padding: 0; display: grid; }
.recent__list li { display: flex; align-items: baseline; gap: 14px; padding: 7px 4px; border-bottom: 1px solid var(--hair); font-size: 13.5px; }
.recent__code { font-family: "Fraunces", Georgia, serif; color: var(--muted); min-width: 52px; }
.recent__table {  flex: 1;
}

.table-entry__form .field:first-of-type input { flex: 1 1 60%; }

.table-entry__form .field:last-of-type { width: 100%; }
.recent__total { color: var(--muted); font-variant-numeric: tabular-nums; }
.recent__status { font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); }
.recent__status--served { color: var(--pine); border-color: rgba(255, 222, 181, 0.4); }
.recent__status--cancelled { color: #B34A26; border-color: rgba(179, 74, 38, 0.3); }

@media (max-width: 640px) {
  .cartbar { left: 12px; right: 12px; transform: none; bottom: 12px; justify-content: space-between; }
  .cartbar__btn { padding: 10px 16px; }
  .add { width: 32px; height: 32px; }
  .item__head { flex-wrap: wrap; }
  .pos__stats { margin-left: 0; gap: 18px; }
  .pos__live { margin-left: auto; }
  .cards { grid-template-columns: 1fr; }
  .card__actions { width: 100%; }
}

/* ---------- Payment ---------- */
.sheet__pay { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.sheet__pay .btn { width: 100%; white-space: nowrap; }
.sheet__paynote { margin: 2px 0 0; font-size: 11.5px; color: var(--muted); text-align: right; max-width: 32ch; }

.card__pay {
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}
.card__pay.is-paid { color: var(--pine); border-color: rgba(255, 222, 181, 0.4); background: rgba(255, 222, 181, 0.08); }

/* Return page after the gateway redirect */
.paid {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--sand);
}
.paid__card {
  width: min(420px, 100%);
  background: var(--sheet);
  border-radius: 18px;
  padding: 36px 28px 30px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(60, 60, 60, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.paid__eyebrow { margin: 0; font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--slate); }
.paid__card h1 { font-size: 28px; line-height: 1.15; }
.paid__code { margin: 4px 0 0; font-family: "Fraunces", Georgia, serif; font-size: 40px; color: var(--charcoal); letter-spacing: 0.02em; }
.paid__body { margin: 0 0 6px; font-size: 14px; color: var(--muted); max-width: 34ch; }
.paid__spinner {
  width: 26px; height: 26px;
  margin: 10px 0 2px;
  border-radius: 50%;
  border: 2px solid rgba(107, 123, 132, 0.28);
  border-top-color: var(--pine);
  animation: spin 0.9s linear infinite;
}
.paid__spinner[hidden] { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.paid__actions { margin-top: 8px; }

@media (max-width: 640px) {
  .sheet__foot { flex-direction: column; align-items: stretch; }
  .sheet__pay { align-items: stretch; }
  .sheet__paynote { text-align: left; max-width: none; }
}

/* ================= ================= ================= ================= ============================
 * Guest flow
 * ================= ================= ================= ================= ============================
 */

.qr-wrap { padding: 40px 20px 10px; }
.qr-card {
  max-width: 360px;
  margin: 0 auto;
  background: var(--sheet);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.qr-card__label {
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 12px;
}
.qr-card__qr {
  display: grid;
  place-items: center;
  padding: 12px;
  background: var(--paper);
  border-radius: 12px;
  border: 1px solid var(--hair);
}
.qr-card__qr canvas { max-width: 100%; height: auto; }
.qr-card__url { font-size: 11px; color: var(--muted); word-break: break-all; margin: 10px 0 6px; }
.qr-card__hint { font-size: 13px; color: var(--muted); margin: 0 0 4px; }  .qr-card__fine { font-size: 11.5px; color: var(--brown); font-style: italic; margin: 8px 0 0; }

/* ---------- Table selection ---------- */
.tables-wrap { padding: 30px 20px 10px; }
.tables-wrap h2 { font-size: 32px; color: var(--ink); }
.tables-wrap__note { color: var(--muted); font-size: 14px; margin-top: 4px; }

.tables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  max-width: 720px;
  margin: 18px auto 0;
}
.table-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 16px;
  background: var(--sheet);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  transition: all 0.16s;
}
.table-btn:hover {
  border-color: var(--slate);
  background: rgba(225, 219, 201, 0.55);
}

.table-btn.is-selected {
  border-color: var(--pine);
  background: rgba(255, 222, 181, 0.12);
  box-shadow: 0 0 0 3px rgba(255, 222, 181, 0.15);
}

.table-btn.unavailable {
  border-color: rgba(179, 74, 38, 0.38);
  background: rgba(179, 74, 38, 0.06);
  color: #B34A26;
  cursor: not-allowed;
  opacity: 0.85;
}

.table-btn.unavailable:hover {
  border-color: rgba(179, 74, 38, 0.5);
  background: rgba(179, 74, 38, 0.1);
}

.table-btn__status {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #3F6B52;
}

.table-btn.unavailable .table-btn__status { color: #B34A26; }

.table-summary {
  margin: 14px 0 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 56ch;
  margin-inline: auto;
}
.table-summary strong { color: var(--ink); }

.tables-wrap__summary {
  margin: 10px auto 0;
  max-width: 640px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}
.tables-wrap__summary strong { color: var(--ink); }

.table-note {
  margin: 14px 0 0;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(179, 74, 38, 0.35);
  background: rgba(179, 74, 38, 0.07);
  color: #8E3A1E;
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
}
.table-note strong { color: #B34A26; }
.table-note[hidden] { display: none; }


.table-btn__name {
  font-weight: 600;
  font-size: 16px;
}
.table-btn__qr {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}
.table-btn__qrcanvas { width: 100%; height: 100%; }

.table-entry {
  max-width: 640px;
  margin: 0 auto 40px;
  text-align: center;
}
.table-entry__inner {
  background: var(--sheet);
  border: 1px solid var(--hair);
  border-radius: 18px;
  padding: 30px;
}
.table-entry__inner h2 { font-size: 26px; }
.table-entry__note { color: var(--muted);  font-size: 13.5px;
  max-width: 42ch;
  margin: 8px 0 0;
}

 }


.table-entry__form {
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--hair);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.table-entry__form .field { flex-direction: row; gap: 10px; align-items: center; }

.table-entry__note { margin-top: 14px; }.table-entry__form .field input { flex: 1; }

.table-entry__form .field:first-of-type input { flex: 1 1 60%; }

.table-entry__form .field:last-of-type { width: 100%; }
.table-entry__form .field .btn { white-space: nowrap; }

.table-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  max-width: 640px;
  margin: 16px auto 0;
}

.table-result__inner {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}
.table-result__eyebrow { font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--slate); }
.table-result__actions { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.table-result__actions .btn { width: 100%; padding: 13px; font-size: 15px; }

@media (max-width: 640px) {
  .tables-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .table-entry__form .field:first-of-type input { flex: 1 1 100%; }
  .table-entry__form .field:last-of-type { flex-direction: column; gap: 8px; }
  .table-grid { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); }
}

.guest-flow {
  max-width: 920px;
  margin: 28px auto 64px;
  padding: 0 clamp(18px, 4vw, 42px) 52px;
}
.guest-step__inner {
  background: var(--sheet);
  border: 1px solid var(--hair);
  border-radius: 18px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.guest-step__desc { color: var(--muted); font-size: 15px; }
.guest-step__actions { display: flex; flex-direction: column; gap: 8px; }
.guest-step__actions .btn { width: 100%; padding: 13px; font-size: 15px; }
.guest-step__err { color: #B34A26; font-size: 13.5px; background: rgba(179, 74, 38, 0.07); border: 1px solid rgba(179, 74, 38, 0.25); padding: 9px 12px; border-radius: 9px; }

/* ---------- Table picker on the menu screen ---------- */
.table-pick {
  display: flex;
  align-items: center;
  gap: 10px 14px;
  flex-wrap: wrap;
  margin-top: 4px;
  padding: 12px 14px;
  background: rgba(255, 222, 181, 0.16);
  border: 1px solid var(--hair);
  border-radius: 12px;
}
.table-pick__label {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 600;
}
.table-pick__select {
  flex: 1 1 170px;
  min-width: 0;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.table-pick__select:focus {
  outline: none;
  border-color: var(--pine);
  box-shadow: 0 0 0 3px rgba(255, 222, 181, 0.12);
}

.live-wrap { position: fixed; top: 16px; right: 16px; z-index: 50; }
.live-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--pine);
  color: var(--sand);
  border-radius: 10px;
  font-size: 13px;
}
.live-card__text { display: flex; align-items: center; gap: 6px; }

/* Same menu styles applied to guest page via styles.css */

@media (max-width: 640px) {
  .qr-card { padding: 18px; }
  .guest-step__inner { padding: 20px; }
}

/* A guest who already has a table (e.g. arrived by scanning its QR) goes straight
   to the ordering screen — the landing banner and scan card step aside. */
body.is-ordering .hero,
body.is-ordering .qr-wrap { display: none; }

/* ---- Guest order summary (ordering step) ---- */
.guest-order {
  margin-top: 22px;
  background: var(--sheet);
  border: 1px solid var(--hair);
  border-radius: 14px;
  padding: 16px 18px 18px;
}
.guest-order__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.guest-order__head h3 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 20px;
  color: var(--charcoal);
}
.guest-order__head strong {
  font-family: "Fraunces", Georgia, serif;
  font-size: 18px;
  color: var(--charcoal);
}
.guest-order .btn { width: 100%; margin-top: 16px; }
.guest-order .btn[disabled] { opacity: 0.45; cursor: not-allowed; }

/* Extra orders merged into one table bill */
.card__count { font-size: 11px; color: var(--muted); }

/* Keep the guest order panel clear of the review bar */
body.has-cart .guest-flow { padding-bottom: 84px; }

/* ---------- Table chat (guest <-> cashier) ---------- */
.chat__log {
  list-style: none;
  margin: 0;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 90px;
  max-height: 46vh;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 10px;
}
.chat__msg {
  display: flex;
  flex-direction: column;
  gap: 1px;
  max-width: 88%;
  padding: 7px 10px;
  border-radius: 12px;
  border: 1px solid var(--hair);
  background: var(--sheet);
}
.chat__msg--me { align-self: flex-end; background: var(--pine); border-color: rgba(209, 106, 40, 0.35); }
.chat__msg--them { align-self: flex-start; }
.chat__who { font-size: 10px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.chat__text { margin: 0; font-size: 14px; line-height: 1.4; color: var(--ink); white-space: pre-wrap; word-break: break-word; }
.chat__at { font-size: 10px; color: var(--muted); align-self: flex-end; }
.chat__empty { margin: 0; padding: 10px 12px; font-size: 13px; color: var(--muted); }
.chat__form { display: flex; gap: 7px; align-items: center; margin-top: 9px; }
.chat__form input {
  flex: 1 1 auto;
  min-width: 0;
  font: inherit;
  font-size: 14px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
}
.chat__form input:focus { outline: 2px solid rgba(209, 106, 40, 0.35); outline-offset: 1px; }
.chat__err { margin: 7px 0 0; font-size: 12.5px; color: var(--brown); }
.chat-badge {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 5px;
  border-radius: 50%;
  background: var(--brown);
  vertical-align: middle;
}

/* Guest floating chat */
.guest-chat { position: fixed; right: 16px; bottom: 84px; z-index: 70; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.guest-chat__panel {
  width: min(340px, calc(100vw - 32px));
  display: flex;
  flex-direction: column;
  padding: 12px;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(43, 42, 38, 0.22);
}
.guest-chat__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.guest-chat__title { font-family: "Fraunces", Georgia, serif; font-size: 15px; color: var(--charcoal); }
.guest-chat__close,
.chat-drawer__close {
  border: 1px solid var(--hair);
  background: transparent;
  border-radius: 8px;
  width: 26px;
  height: 26px;
  line-height: 1;
  font-size: 16px;
  color: var(--muted);
  cursor: pointer;
}
.guest-chat__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 15px;
  border-radius: 999px;
  border: 1px solid var(--charcoal);
  background: var(--charcoal);
  color: var(--ivory);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(43, 42, 38, 0.24);
}
.guest-chat__toggle .chat-badge { background: #FFDEB5; }

/* Cashier chat drawer */
.chat-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(380px, 100vw);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  background: var(--sheet);
  border-left: 1px solid var(--line);
  box-shadow: -18px 0 40px rgba(43, 42, 38, 0.18);
}
.chat-drawer__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.chat-drawer__eyebrow { display: block; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate); }
.chat-drawer__head strong { font-family: "Fraunces", Georgia, serif; font-size: 19px; color: var(--charcoal); }
.chat-drawer .chat__log { max-height: none; }
.card__chat { display: inline-flex; align-items: center; gap: 2px; }
.guest-chat[hidden],
.guest-chat__panel[hidden],
.chat-drawer[hidden],
.chat__log[hidden],
.chat__empty[hidden],
.chat-badge[hidden] { display: none; }
@media (max-width: 520px) {
  .guest-chat { right: 12px; bottom: 76px; }
  .chat-drawer { width: 100vw; }
}

.table-chip { position: relative; }
.chip__chat {
  position: absolute;
  top: 4px;
  right: 4px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 5px;
  border: 1px solid var(--hair);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.75);
  font-size: 11px;
  line-height: 1.2;
  cursor: pointer;
}
.chip__chat:hover { border-color: var(--slate); }
.chip__chat .chat-badge { width: 6px; height: 6px; margin-left: 1px; }

/* ---------- Order type selector (menu) ---------- */
.order-mode {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 18px 0 4px;
}
.order-mode__btn {
  min-width: 132px;
}
.order-mode__btn[aria-pressed="true"] {
  box-shadow: inset 0 0 0 2px rgba(43, 42, 38, 0.28);
}

/* ---------- Menu chat shortcut ---------- */
.chat-link {
  color: var(--charcoal);
  font-weight: 600;
  text-underline-offset: 3px;
}
.chat-link:hover { color: var(--pine, #2f4f3f); }

/* ---------- Gallery ---------- */
.hero--compact .hero__inner { padding: 52px 20px 26px; }
.gallery { max-width: 1040px; margin: 0 auto; padding: 10px 20px 24px; }
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.shot {
  margin: 0;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.shot figcaption {
  padding: 10px 14px 14px;
  font-size: 13.5px;
  color: var(--muted);
}
.gallery__note {
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
  margin: 22px 0 18px;
}
.gallery__cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.gallery__back { margin-top: 14px; }
.gallery__back a { color: inherit; font-weight: 600; text-underline-offset: 3px; }
