:root {
  --menu-tile-height: 240px;
  --menu-tile-media-height: 110px;
  --menu-tile-actions-height: 44px;
  --addon-tile-height: 52px;
  --color-bg: #faf7f2;
  --color-surface: #ffffff;
  --color-text: #1f1a14;
  --color-muted: #6b6258;
  --color-primary: #c45c26;
  --color-primary-dark: #9a461c;
  --color-border: #e8dfd3;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(31, 26, 20, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  color: var(--color-text);
  background: var(--color-bg);
}

.app-shell {
  max-width: 960px;
  margin: 0 auto;
  min-height: 100vh;
}

.page {
  padding: 16px 16px 24px;
}

.page-has-cart-bar .page {
  padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}

.page-title {
  margin: 0 0 16px;
  font-size: 1.5rem;
  text-align: center;
}

.page-header {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  min-width: 0;
}

.page-cart .page-header,
.page-product .page-header,
.page-profile-settings .page-header {
  position: sticky;
  top: 0;
  z-index: 12;
  margin-bottom: 12px;
  padding: 10px 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 2px 8px rgba(31, 26, 20, 0.04);
}

.menu-sticky-head {
  position: sticky;
  top: 0;
  z-index: 12;
  margin: 0 -16px 12px;
  padding: 0 16px 2px;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 2px 8px rgba(31, 26, 20, 0.04);
}

.page-menu .menu-sticky-head .page-header {
  margin-bottom: 0;
  padding: 10px 0 4px;
}

.page-menu .menu-sticky-head .category-bar {
  position: static;
  top: auto;
  margin: 0 -16px 0;
  padding: 4px 16px 8px;
  border-bottom: none;
  box-shadow: none;
}

.page-menu .menu-sticky-head .category-bar.is-stuck {
  border-bottom: none;
  box-shadow: none;
}

.page-menu .menu-sticky-head .banner {
  margin-bottom: 8px;
}

.orders-sticky-head {
  position: sticky;
  top: 0;
  z-index: 12;
  margin: 0 -16px 12px;
  padding: 0 16px 2px;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 2px 8px rgba(31, 26, 20, 0.04);
}

.page-orders .orders-sticky-head .page-header,
.page-order-detail .orders-sticky-head .page-header {
  margin-bottom: 0;
  padding: 10px 0 4px;
}

.orders-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 8px 0 10px;
  background: var(--color-bg);
}

.orders-tabs__btn {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  color: var(--color-muted);
  text-decoration: none;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.orders-tabs__btn.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(196, 92, 38, 0.28);
}

.orders-section-title {
  margin: 0 0 12px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
}

.orders-placed-banner {
  margin-bottom: 12px;
}

.orders-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.orders-empty-action {
  margin-top: 12px;
  text-align: center;
}

.order-card {
  display: block;
  min-height: 56px;
  padding: 14px 14px 12px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-surface);
  text-decoration: none;
  color: inherit;
  border-left: 4px solid transparent;
}

.order-card--highlight {
  background: #fff8ef;
  border-left-color: var(--color-primary);
}

.order-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.order-card__number {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 700;
  font-size: 0.95rem;
}

.order-card__total {
  font-weight: 700;
  white-space: nowrap;
}

.order-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.order-card__datetime {
  color: var(--color-muted);
  font-size: 0.92rem;
}

.order-card__delivery {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.92rem;
}

.order-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.order-status-badge__dot {
  font-size: 0.7rem;
  line-height: 1;
}

.order-status-badge--new {
  background: #fef9c3;
  color: #a16207;
}

.order-status-badge--in_progress {
  background: #dcfce7;
  color: #15803d;
}

.order-status-badge--ready,
.order-status-badge--ready-prominent {
  background: #ffedd5;
  color: #c2410c;
}

.order-status-badge--ready-prominent {
  font-size: 0.95rem;
  padding: 6px 12px;
}

.order-status-badge--done {
  background: #dbeafe;
  color: #1d4ed8;
}

.order-status-badge--canceled {
  background: #ede9fe;
  color: #7c3aed;
}

.order-detail {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.order-detail__status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.order-detail__datetime {
  color: var(--color-muted);
}

.order-detail__section-title {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.order-detail__items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.order-detail__item-head {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: baseline;
}

.order-detail__item-name {
  font-weight: 600;
}

.order-detail__item-qty {
  color: var(--color-muted);
}

.order-detail__item-total {
  font-weight: 700;
  white-space: nowrap;
}

.order-detail__addons {
  list-style: none;
  margin: 4px 0 0;
  padding: 0 0 0 12px;
  color: var(--color-muted);
  font-size: 0.92rem;
}

.order-detail__total {
  margin: 12px 0 0;
  text-align: right;
}

.order-detail__delivery,
.order-detail__field {
  margin: 0 0 6px;
}

.order-detail__field span {
  color: var(--color-muted);
}

.order-detail__cancel-form {
  margin-top: 8px;
}

.order-detail__cancel-btn {
  width: 100%;
}

.page-header__title {
  margin: 0;
  font-size: 1.5rem;
  text-align: center;
  grid-column: 2;
  min-width: 0;
}

.page-header__title--empty {
  min-height: 1.5rem;
}

.page-header__side--left {
  grid-column: 1;
}

.page-header__side--right {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-header--with-clear {
  grid-template-columns: 44px 1fr auto;
}

.page-header--with-refresh {
  grid-template-columns: 44px 1fr auto;
}

.page-header__back-btn,
.page-header__clear-btn,
.page-header__refresh-btn,
.page-header__menu-btn {
  min-height: 44px;
  min-width: 44px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  cursor: pointer;
}

.page-header__back-btn {
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
}

.page-header__refresh-btn {
  font-size: 1.25rem;
  line-height: 1;
}

.page-header__clear-btn {
  font-size: 1.1rem;
}

.page-header__clear-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.page-header__menu-btn {
  font-size: 1.2rem;
}

.cart-confirm {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.cart-confirm.is-hidden {
  display: none;
}

.cart-confirm__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  background: rgba(31, 26, 20, 0.45);
  cursor: pointer;
}

.cart-confirm__panel {
  position: relative;
  width: min(100%, 320px);
  padding: 20px 16px 16px;
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow);
}

.cart-confirm__text {
  margin: 0 0 16px;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: center;
}

.cart-confirm__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.hamburger-menu {
  position: fixed;
  inset: 0;
  z-index: 30;
}

.hamburger-menu.is-hidden {
  display: none;
}

.hamburger-menu__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  background: rgba(31, 26, 20, 0.4);
  cursor: pointer;
}

.hamburger-menu__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 88%);
  max-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  overflow: hidden;
  box-shadow: -4px 0 20px rgba(31, 26, 20, 0.14);
  border-radius: 0 0 0 var(--radius);
  transform: translateX(100%);
  transition: transform 0.22s ease;
}

.hamburger-menu:not(.is-hidden) .hamburger-menu__panel {
  transform: translateX(0);
}

.hamburger-menu__head {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 8px;
  min-height: 64px;
  padding: 10px 16px 8px;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.hamburger-menu__head-spacer {
  grid-column: 1 / 3;
}

.hamburger-menu__close-btn {
  grid-column: 3;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(31, 26, 20, 0.06);
}

.hamburger-menu__close-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.hamburger-lines {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 18px;
  height: 12px;
}

.hamburger-lines span {
  display: block;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
}

.hamburger-menu__links {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 4px 0 8px;
}

.hamburger-menu__link {
  display: block;
  padding: 14px 20px;
  color: var(--color-text);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
  transition: color 0.15s ease, background 0.15s ease;
}

.hamburger-menu__link:last-child {
  border-bottom: none;
}

.hamburger-menu__link:hover {
  color: var(--color-primary);
  background: rgba(196, 92, 38, 0.06);
}

body.hamburger-open .page-header__menu-btn {
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(196, 92, 38, 0.15);
}

body.hamburger-open {
  overflow: hidden;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 10px 16px;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  width: 100%;
  color: #fff;
  background: var(--color-primary);
}

.btn-primary:hover:not(:disabled) {
  background: var(--color-primary-dark);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary:disabled {
  background: var(--color-muted);
}

.btn-secondary {
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.btn-add {
  width: 100%;
  color: #fff;
  background: var(--color-primary);
}

.page-home {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 40px);
}

.home-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-nav-form {
  margin: 0;
}

.banner {
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 0.95rem;
}

.banner-closed {
  background: #fff3cd;
  color: #664d03;
}

.banner-warning {
  background: #f8d7da;
  color: #842029;
}

.banner-info {
  background: #cff4fc;
  color: #055160;
}

.messages {
  padding: 12px 16px 0;
}

.alert {
  padding: 12px 14px;
  border-radius: var(--radius);
  margin-bottom: 8px;
}

.alert-success {
  background: #d1e7dd;
  color: #0f5132;
}

.category-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 -16px 12px;
  padding: 8px 16px 10px;
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--color-bg);
  border-bottom: 1px solid transparent;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.category-bar::-webkit-scrollbar {
  display: none;
}

.category-bar.is-stuck {
  border-bottom-color: var(--color-border);
  box-shadow: 0 4px 12px rgba(31, 26, 20, 0.06);
}

.category-chip {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.category-chip--active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(196, 92, 38, 0.22);
}

.category-bar__scroll-tail {
  flex: 0 0 auto;
  height: 1px;
  pointer-events: none;
}

.page-menu {
  scroll-padding-top: var(--menu-sticky-offset, 110px);
}

.menu-section {
  margin-bottom: 0;
  scroll-margin-top: var(--menu-sticky-offset, 110px);
}

.menu-section__title {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.menu-section__row-spacer {
  grid-column: 1 / -1;
  height: calc(var(--menu-tile-height) / 3);
  pointer-events: none;
}

.menu-tile {
  height: var(--menu-tile-height);
  min-height: var(--menu-tile-height);
  max-height: var(--menu-tile-height);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.menu-tile__link {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 10px 10px 0;
  color: inherit;
  text-decoration: none;
  min-height: 0;
}

.menu-tile__media {
  position: relative;
  flex: 0 0 var(--menu-tile-media-height);
  border-radius: 8px;
  overflow: hidden;
  background: #efe7dc;
}

.menu-tile__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.menu-tile__image--placeholder,
.product-detail__image--placeholder {
  object-fit: cover;
  background: #efe7dc;
}

.menu-tile__badges {
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.badge,
.chip {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.2;
}

.badge-new {
  background: #198754;
  color: #fff;
}

.badge-marketing {
  background: #0d6efd;
  color: #fff;
}

.chip-addons {
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-muted);
  border: 1px solid var(--color-border);
}

.badge-off {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: #dc3545;
  color: #fff;
}

.menu-tile__name {
  margin: 8px 0 0;
  font-size: 0.95rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-tile__price {
  margin: auto 0 0;
  padding-top: 6px;
  font-weight: 700;
}

.menu-tile__actions {
  position: relative;
  flex: 0 0 var(--menu-tile-actions-height);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px 10px;
}

.menu-tile__cart-controls {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-tile__cart-controls .btn-add,
.menu-tile__cart-controls .stepper {
  width: 100%;
}

.is-hidden {
  display: none !important;
}

.stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.stepper--compact .stepper__btn {
  min-width: 36px;
  min-height: 36px;
}

.stepper__btn {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
}

.stepper__qty {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.menu-tile__guest-note,
.menu-tile__staff-note {
  font-size: 0.75rem;
  color: var(--color-muted);
  text-align: center;
}

.menu-tile--inactive {
  opacity: 0.72;
}

.cart-bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  z-index: 20;
  width: min(960px, 100%);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 16px rgba(31, 26, 20, 0.08);
}

.cart-bar__summary {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.cart-bar__cta {
  white-space: nowrap;
  color: #fff;
  background: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.cart-bar__cta:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

.product-detail {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.product-detail__info {
  display: grid;
  gap: 16px;
}

.product-detail__positions.is-hidden {
  display: none;
}

.product-detail__add-more {
  margin-top: 4px;
}

.product-detail__add-more.is-hidden {
  display: none;
}

.product-detail__badges {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  min-width: 0;
}

.product-detail__badges-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
}

.product-detail__description {
  margin-top: 8px;
  color: var(--color-text);
}

.info-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-muted);
  font-size: 0.85rem;
  font-weight: 700;
  font-style: italic;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1;
  cursor: pointer;
}

.info-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.portion-info {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.portion-info.is-hidden {
  display: none;
}

.portion-info__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  background: rgba(31, 26, 20, 0.45);
  cursor: pointer;
}

.portion-info__panel {
  position: relative;
  width: min(100%, 360px);
  padding: 18px 16px 16px;
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow);
}

.portion-info__title {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 700;
}

.portion-info__text {
  margin: 0 0 16px;
  color: var(--color-text);
  line-height: 1.45;
  white-space: pre-wrap;
}

.portion-info__close {
  width: 100%;
}

.product-detail__positions-list {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.product-position {
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow);
  min-width: 0;
  overflow: hidden;
}

.product-position__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  min-width: 0;
}

.product-position__title {
  margin: 0;
  font-size: 1rem;
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-position__head .btn-text {
  flex-shrink: 0;
  white-space: nowrap;
}

.product-position__total {
  margin: 12px 0 0;
  font-weight: 700;
  text-align: right;
}

.addon-tiles-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.addon-tile-row {
  display: grid;
  grid-template-columns: 30% 70%;
  gap: 0;
  width: 100%;
}

.addon-tile-row__spacer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding-right: 8px;
  min-height: var(--addon-tile-height);
  min-width: 0;
}

.addon-tile-row__info.is-hidden {
  display: none;
}

.addon-tile-row__price {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
}

.addon-tile-row__price.is-hidden {
  display: none;
}

.addon-tile {
  position: relative;
  width: 100%;
  height: var(--addon-tile-height);
  min-height: var(--addon-tile-height);
  max-height: var(--addon-tile-height);
  border-radius: var(--radius);
  overflow: hidden;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.addon-tile--inactive {
  background: #e8e2d9;
  color: var(--color-muted);
  border: 2px solid transparent;
  box-shadow: none;
}

.addon-tile--active {
  background: var(--color-surface);
  color: var(--color-text);
  border: 2px solid var(--color-primary);
  box-shadow: var(--shadow);
}

.addon-tile__label {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  padding: 8px 12px;
  cursor: pointer;
  color: inherit;
  min-width: 0;
}

.addon-tile__check {
  flex: 0 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 2px solid #b8aea2;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.5);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.addon-tile--active .addon-tile__check {
  border-color: var(--color-primary);
  background: var(--color-primary);
}

.addon-tile--inactive .addon-tile__check {
  border-color: #b8aea2;
  background: rgba(255, 255, 255, 0.35);
}

.addon-tile__name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.delivery-tiles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.addon-tile__label.js-delivery-tile-btn {
  width: 100%;
  border: none;
  background: transparent;
  font: inherit;
  text-align: left;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.btn-compact {
  min-height: 36px;
  padding: 6px 12px;
  font-size: 0.9rem;
}

.btn-text {
  min-height: 36px;
  padding: 6px 10px;
  font-size: 0.85rem;
  color: var(--color-primary-dark);
  background: transparent;
  border: none;
  text-decoration: underline;
  cursor: pointer;
}

.product-detail__image {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
  background: #efe7dc;
}

.product-detail__title {
  margin: 0;
  font-size: 1.4rem;
  overflow-wrap: break-word;
}

.product-detail__price {
  margin: 12px 0 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.price-note {
  display: block;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--color-muted);
}

.product-detail__cart {
  margin-top: 12px;
}

.product-detail__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.cart-page__nav {
  margin-top: 16px;
}

.cart-page__nav .btn {
  width: 100%;
}

.cart-blocks {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-category-block {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.cart-category-block__title {
  margin: 0;
  padding: 10px 14px;
  background: var(--color-bg);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}

.cart-category-block__list {
  display: flex;
  flex-direction: column;
  padding: 4px 14px 6px;
}

.cart-receipt-item {
  padding: 12px 0;
  border-bottom: 1px dashed var(--color-border);
}

.cart-receipt-item:last-child {
  border-bottom: none;
}

.cart-receipt-item--unavailable {
  opacity: 0.72;
}

.cart-receipt-item__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 16px;
  align-items: start;
}

.cart-receipt-item__details {
  min-width: 0;
}

.cart-receipt-item__name-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.cart-receipt-item__name-link:hover .cart-receipt-item__name {
  color: var(--color-primary);
}

.cart-receipt-item__name {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-receipt-item__status {
  display: block;
  margin-top: 2px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #dc3545;
}

.cart-receipt-item__addon {
  margin: 4px 0 0;
  padding-left: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-receipt-item__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.cart-receipt-item__price {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.cart-receipt-item__price-note {
  display: block;
  margin-top: 2px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--color-muted);
}

.cart-receipt-item__actions {
  display: flex;
  justify-content: flex-end;
}

.stepper--receipt {
  gap: 8px;
}

.stepper--receipt .stepper__btn {
  min-width: 36px;
  min-height: 36px;
  border-radius: 8px;
  font-size: 1.1rem;
}

.cart-page__total {
  margin: 16px 0 0;
  font-size: 1.15rem;
  text-align: right;
}

.cart-page__total strong {
  font-variant-numeric: tabular-nums;
}

.cart-footer {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-footer__total {
  font-size: 1.15rem;
  margin: 0;
}

.price-note.is-hidden {
  display: none !important;
}

.muted {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.empty-state {
  color: var(--color-muted);
  margin-bottom: 16px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
}

.auth-form input {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 1rem;
}

.cart-checkout-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

.cart-checkout-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cart-checkout-form__label {
  font-weight: 600;
}

.cart-checkout-form__optional {
  font-weight: 500;
  color: var(--color-muted);
  font-size: 0.85rem;
}

.cart-checkout-form input,
.cart-checkout-form select,
.cart-checkout-form textarea {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  background: var(--color-surface);
  color: var(--color-text);
}

.cart-checkout-form textarea {
  min-height: 88px;
  resize: vertical;
}

.cart-checkout-form__field--error input,
.cart-checkout-form__field--error select,
.cart-checkout-form__field--error textarea {
  border-color: #dc3545;
}

.cart-checkout-form__field.is-hidden {
  display: none;
}

.cart-checkout-form__error {
  margin: 0;
  font-size: 0.85rem;
  color: #dc3545;
}

.form-errors {
  margin-top: 16px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: #fdecea;
  border: 1px solid #f5c2c7;
}

.form-errors__item {
  margin: 0;
  color: #842029;
  font-size: 0.9rem;
}

.auth-footer {
  margin-top: 16px;
  text-align: center;
  font-size: 0.95rem;
}

.auth-footer--hint {
  margin-top: 12px;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.registration-header {
  margin-bottom: 20px;
}

.registration-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.registration-header__brand {
  font-size: 1rem;
  font-weight: 600;
}

.registration-header__title {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.25;
  text-align: center;
}

.registration-header__subtitle {
  margin: 8px 0 0;
  text-align: center;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.registration-form__help {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--color-muted);
}

.registration-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
}

.registration-form__consent input {
  margin-top: 4px;
  min-height: auto;
  width: auto;
}

.registration-form__consent a {
  color: inherit;
}

.registration-not-found {
  margin: 24px 0;
  line-height: 1.5;
  text-align: center;
}

.privacy-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  line-height: 1.5;
}

.privacy-content h2 {
  margin: 8px 0 0;
  font-size: 1.05rem;
}

.privacy-content ul {
  margin: 0;
  padding-left: 1.2rem;
}

.home-user-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: -4px 0 20px;
}

.home-user-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
}

.home-profile-gear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  color: var(--color-muted);
  font-size: 1.35rem;
  line-height: 1;
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.home-profile-gear:hover,
.home-profile-gear:focus-visible {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background: #fff8f3;
}

.home-role-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
  text-align: center;
  font-size: 0.92rem;
  color: var(--color-muted);
}

.profile-settings-form__readonly {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
}

.profile-settings-form__readonly-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.profile-settings-form__readonly-value {
  font-size: 1rem;
  color: var(--color-text);
}

.profile-settings-form__help {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--color-muted);
}

.auth-form__field--error input {
  border-color: #dc3545;
}

.form-field-error {
  font-size: 0.85rem;
  color: #dc3545;
  font-weight: 500;
}

.profile-settings-form .btn-secondary {
  width: 100%;
}

@media (min-width: 600px) {
  .page {
    padding: 20px 24px 28px;
  }

  .menu-sticky-head {
    margin-left: -24px;
    margin-right: -24px;
    padding-left: 24px;
    padding-right: 24px;
  }

  .page-menu .menu-sticky-head .category-bar {
    margin-left: -24px;
    margin-right: -24px;
    padding-left: 24px;
    padding-right: 24px;
  }

  .orders-sticky-head {
    margin-left: -24px;
    margin-right: -24px;
    padding-left: 24px;
    padding-right: 24px;
  }

  .category-bar {
    margin-left: -24px;
    margin-right: -24px;
    padding-left: 24px;
    padding-right: 24px;
  }

  .menu-grid {
    gap: 16px;
  }
}

/* Staff orders panel */
.page-staff-orders .orders-sticky-head .page-header,
.page-staff-order-detail .orders-sticky-head .page-header {
  margin-bottom: 0;
  padding: 10px 0 4px;
}

.staff-orders-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.staff-orders-section + .staff-orders-section {
  margin-top: 8px;
}

.staff-orders-group-title {
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-border);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-text);
  text-align: center;
}

.staff-orders-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.staff-orders-grid > .staff-order-card:last-child:nth-child(odd) {
  grid-column: 1;
}

.staff-order-card {
  display: flex;
  flex-direction: column;
  min-height: 168px;
  padding: 10px 8px;
  border: 2px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-surface);
  text-decoration: none;
  color: var(--color-text);
}

.staff-order-card--history {
  min-height: 200px;
}

.staff-order-card__row {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  text-align: center;
}

.staff-order-card__status-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
}

.staff-order-card__status-line--labeled {
  gap: 8px;
}

.staff-order-card__emoji,
.staff-order-card__kitchen,
.staff-order-card__org {
  font-size: 2rem;
  line-height: 1.1;
}

.staff-order-card__number {
  font-size: 1.35rem;
  font-weight: 400;
}

.staff-order-card__status-label {
  font-size: 1.1rem;
  font-weight: 400;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 9rem;
}

.staff-order-card__time {
  font-size: 2.25rem;
  line-height: 1.1;
  color: #000;
}

.staff-order-card__row--time-bold .staff-order-card__time {
  font-weight: 800;
}

.staff-orders-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.staff-orders-pagination__info {
  font-weight: 700;
}

.staff-order-detail {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.staff-order-detail__status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.staff-order-detail__datetime {
  font-size: 1.1rem;
  color: var(--color-muted);
}

.staff-order-detail__section-title {
  margin: 0 0 10px;
  font-size: 1.25rem;
  font-weight: 700;
}

.staff-order-detail__items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.staff-order-detail__item-head {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  font-size: 1.15rem;
}

.staff-order-detail__item-name {
  font-weight: 600;
}

.staff-order-detail__addons {
  margin: 6px 0 0;
  padding-left: 1rem;
  color: var(--color-muted);
  font-size: 1rem;
}

.staff-order-detail__total {
  margin: 12px 0 0;
  font-size: 1.35rem;
}

.staff-order-detail__field span {
  color: var(--color-muted);
}

.staff-order-detail__delivery,
.staff-order-detail__field {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.staff-order-detail__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.staff-order-detail__action-btn {
  width: 100%;
  min-height: 52px;
  font-size: 1.15rem;
  font-weight: 700;
}
