:root {
  color-scheme: light;
  --ink: #302025;
  --muted: #675356;
  --line: #e9d7d7;
  --paper: #fffaf8;
  --ground: #faf0ee;
  --rust: #bc061f;
  --dark: #bc061f;
  --green: #285f47;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
button:focus-visible,
input:focus-visible {
  outline: 3px solid #bc061f;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.shell {
  width: min(1320px, 100%);
  margin: auto;
  padding-inline: clamp(16px, 4vw, 56px);
}
header {
  background: var(--dark);
  color: white;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 82px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: #a20b21;
  border-radius: 12px;
  color: #fff4ee;
  font-size: 24px;
}
.brand strong {
  display: block;
  font-size: 17px;
  letter-spacing: 0.01em;
}
.brand small {
  color: #ffeaed;
  font-size: 13px;
}
.demo {
  color: #fff0ed;
  border: 1px solid #ee9ba7;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 13px;
  white-space: nowrap;
}
main {
  padding-block: 30px 40px;
}
.viewbar {
  display: flex;
  gap: 7px;
  margin-bottom: 28px;
}
.viewbar button,
.filters button {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  padding: 9px 15px;
  min-height: 44px;
  border-radius: 9px;
  font-weight: 650;
}
.viewbar button[aria-pressed="true"] {
  background: var(--dark);
  color: white;
  border-color: var(--dark);
}
.viewbar button span {
  margin-left: 5px;
  font-size: 0.82em;
  background: #f8e0e0;
  color: #7a1e2a;
  border-radius: 999px;
  padding: 2px 7px;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.68fr);
  gap: 24px;
  align-items: start;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(29px, 4vw, 45px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}
h2 {
  font-size: 23px;
  letter-spacing: -0.025em;
}
.subtitle {
  color: var(--muted);
  margin-top: 8px;
}
.filters {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 21px 0 14px;
}
.filters button[aria-pressed="true"] {
  color: #881f2b;
  border-color: #bd6870;
  background: #f9e3e2;
}
.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.product {
  min-height: 111px;
  border: 1px solid var(--line);
  border-radius: 13px;
  text-align: left;
  background: var(--paper);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 9px;
  padding: 13px;
}
.product:hover {
  border-color: #ba6068;
  background: #fff0ef;
}
.product strong {
  line-height: 1.2;
  font-size: 16px;
}
.product span {
  color: var(--rust);
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.product.highlight {
  background: #fce5e7;
  border-color: #eda9b0;
}
.product.highlight:hover {
  background: #f9d4da;
}
.panel {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 28px #a20b2112;
}
.panel-title,
.row,
.card-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.count {
  font-size: 14px;
  color: var(--muted);
}
.cart-items {
  list-style: none;
  padding: 0;
  margin: 13px 0 0;
}
.item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}
.item-name {
  font-weight: 650;
}
.quantity {
  display: flex;
  gap: 5px;
  align-items: center;
}
.quantity button,
.quick button {
  border: 1px solid var(--line);
  background: #f9eeec;
  color: var(--ink);
  border-radius: 7px;
  min-height: 44px;
  min-width: 44px;
  font-weight: 700;
}
.quantity span {
  min-width: 15px;
  text-align: center;
}
.empty {
  background: #fbefed;
  border: 1px dashed #e5ccca;
  border-radius: 10px;
  padding: 18px;
  color: var(--muted);
}
.total {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-weight: 750;
}
.total output {
  font-size: 29px;
  letter-spacing: -0.035em;
}
.payment {
  margin-top: 16px;
}
.payment label {
  display: block;
  font-weight: 650;
  margin-bottom: 6px;
}
.input-wrap {
  position: relative;
}
.input-wrap span {
  position: absolute;
  right: 13px;
  top: 11px;
  font-weight: 650;
  color: var(--muted);
}
input {
  width: 100%;
  height: 45px;
  border: 1px solid #cdb6b8;
  border-radius: 8px;
  background: white;
  padding: 8px 32px 8px 11px;
  color: var(--ink);
}
.quick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 8px;
}
.quick button {
  font-size: 14px;
  padding: 3px;
}
.change {
  background: #edf4ee;
  color: var(--green);
  padding: 10px 11px;
  border-radius: 8px;
  margin-top: 12px;
  font-weight: 700;
  min-height: 44px;
}
.change.short {
  background: #fff0df;
  color: #8a381b;
}
.primary {
  min-height: 48px;
  padding: 10px 14px;
  border: 0;
  border-radius: 9px;
  background: var(--rust);
  color: white;
  font-weight: 750;
}
.primary:hover {
  background: #97051b;
}
.primary:disabled {
  background: #ebdcdb;
  color: #6a5657;
}
.pay {
  width: 100%;
  margin-top: 12px;
}
.feedback {
  color: var(--green);
  font-weight: 650;
  margin-top: 10px;
}
.feedback:empty {
  display: none;
}
.ready-strip {
  margin-top: 16px;
  padding: 13px;
  background: #edf4ee;
  color: var(--green);
  border-radius: 10px;
  font-weight: 650;
}
.orders {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 12px;
  margin-top: 18px;
}
.order .number {
  font-size: 29px;
  letter-spacing: -0.04em;
}
.order .tag {
  font-size: 14px;
  color: #822731;
  background: #fce5e7;
  border-radius: 999px;
  padding: 4px 9px;
}
.order ul {
  margin: 15px 0;
  padding-left: 20px;
}
.order li + li {
  margin-top: 5px;
}
.order button {
  width: 100%;
  background: var(--green);
}
.order button:hover {
  background: #1b4935;
}
.ready-group {
  margin-top: 26px;
}
.ready-group p {
  margin-top: 8px;
  color: var(--muted);
}
.kitchen-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.hint {
  color: var(--muted);
  margin-top: 16px;
  font-size: 14px;
}
@media (max-width: 900px) {
  .layout {
    grid-template-columns: minmax(0, 1fr) minmax(315px, 1fr);
    gap: 15px;
  }
  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .panel {
    padding: 15px;
  }
}
@media (max-width: 650px) {
  .layout {
    grid-template-columns: 1fr;
  }
  main {
    padding-top: 19px;
  }
  .header-inner {
    min-height: 68px;
  }
  .viewbar {
    margin-bottom: 20px;
  }
  .product {
    min-height: 89px;
  }
  .filters {
    margin-top: 15px;
  }
  .panel {
    padding: 15px;
  }
  .brand strong {
    font-size: 15px;
  }
  .mark {
    width: 37px;
    height: 37px;
  }
}

.viewbar a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  padding: 9px 15px;
  min-height: 44px;
  border-radius: 9px;
  font-weight: 650;
  text-decoration: none;
}
.viewbar a[aria-current="page"] {
  background: var(--dark);
  color: white;
  border-color: var(--dark);
}
.viewbar a span {
  font-size: 0.82em;
  background: #f8e0e0;
  color: #7a1e2a;
  border-radius: 999px;
  padding: 2px 7px;
}
.viewbar a:focus-visible {
  outline: 3px solid #bc061f;
  outline-offset: 3px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-actions a,
.header-actions button {
  font: inherit;
  font-size: 14px;
  color: #fff;
  background: none;
  border: 1px solid #ee9ba7;
  border-radius: 8px;
  padding: 8px 10px;
  text-decoration: none;
  white-space: nowrap;
  display: inline-block;
}
.header-actions form {
  margin: 0;
}
.connection {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}
.connection.alert,
.feedback.alert {
  color: #8a381b;
  font-weight: 650;
}
.login {
  max-width: 460px;
  margin: 30px auto;
}
.login form p {
  margin: 14px 0;
}
.login form label {
  display: block;
  margin-bottom: 5px;
}
.login form .errorlist {
  color: var(--rust);
  padding-left: 20px;
}
.login .primary {
  width: 100%;
  margin-top: 6px;
}
@media (max-width: 540px) {
  .header-inner {
    padding-block: 10px;
    flex-wrap: wrap;
  }
  .header-actions {
    margin-left: auto;
  }
}

.grill-routing {
  margin-top: 16px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbefed;
}
.grill-routing-label {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}
.grill-routing-label small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 14px;
}
input.grill-switch {
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  margin: 0;
  padding: 0;
  accent-color: var(--green);
}
.grill-note-field {
  margin-top: 8px;
}
.grill-note-field label {
  display: block;
  margin-bottom: 5px;
  font-weight: 650;
}
.grill-note-field label span {
  font-weight: 400;
  color: var(--muted);
}
.grill-note-field textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 64px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  resize: vertical;
  font: inherit;
}
.grill-instruction {
  color: #65401a;
  background: #fff0d5;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 12px;
}
.grill-instruction span {
  display: block;
  margin-top: 3px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.product,
.quantity button {
  touch-action: manipulation;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  width: 100%;
  min-height: 25px;
}

.product .product-quantity {
  min-width: 30px;
  padding: 3px 6px;
  border-radius: 7px;
  background: var(--rust);
  color: #fff;
  text-align: center;
  font-size: 14px;
  line-height: 1.25;
}

.product:active,
.quantity button:active {
  box-shadow: inset 0 0 0 2px #bc061f66;
}

.quantity .cart-quantity {
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

header {
  background: linear-gradient(110deg, #bc061f 0%, #c21732 100%);
  border-bottom: 3px solid #db4051;
}
.brand .mark { border: 1px solid #ffffff40; }
