﻿:root {
  --bg: #f6f7f5;
  --panel: #ffffff;
  --text: #111827;
  --muted: #667085;
  --line: #e5e7eb;
  --brand: #0f6b4f;
  --brand-dark: #0a513c;
  --accent: #0f6b4f;
  --danger: #c2410c;
  --soft: #eef5f2;
  --shadow: 0 1px 3px rgba(17, 24, 39, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  padding-bottom: 76px;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, "Noto Sans SC", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.topbar-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.language-toggle button {
  min-height: 30px;
  padding: 5px 9px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.language-toggle button.active {
  color: #17110a;
  background: var(--brand);
}

.eyebrow {
  margin: 0 0 2px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 24px;
  line-height: 1.15;
}

h2 {
  margin-bottom: 8px;
  font-size: 19px;
}

.table-badge {
  min-width: 72px;
  padding: 8px 10px;
  color: #fff;
  text-align: center;
  background: var(--brand);
  border-radius: 10px;
}

.table-badge span {
  display: block;
  font-size: 11px;
}

.table-badge strong {
  display: block;
  font-size: 20px;
}

main {
  width: min(100%, 860px);
  margin: 0 auto;
  padding: 18px 14px 30px;
}

.intro,
.menu-section,
.cart-section,
.customer-section,
.summary-section,
.admin-section {
  margin-bottom: 18px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.intro p,
footer p {
  margin-bottom: 0;
  color: var(--muted);
}

.category-tabs {
  position: sticky;
  top: 73px;
  z-index: 8;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 -2px 18px;
  padding: 8px 2px;
  background: var(--bg);
}

.tab {
  min-height: 44px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}

.tab.active {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
  font-weight: 700;
}

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

.section-title h2 {
  margin: 0;
}

.section-title span {
  color: var(--muted);
  font-size: 14px;
}

.menu-list,
.cart-list,
.admin-menu-list {
  display: grid;
  gap: 14px;
}

.menu-item {
  display: grid;
  grid-template-columns: 94px 1fr;
  gap: 14px;
  min-height: 116px;
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.food-photo {
  display: grid;
  place-items: center;
  width: 94px;
  height: 94px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  background: #f1f3f2;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.food-image {
  object-fit: cover;
}

.item-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.item-info h3 {
  margin: 0;
  font-size: 17px;
}

.item-description {
  display: -webkit-box;
  overflow: hidden;
  margin: 4px 0 8px;
  color: var(--muted);
  font-size: 13px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.price {
  color: var(--brand);
  font-weight: 700;
}

.item-status {
  min-height: 20px;
  color: var(--danger);
  font-size: 13px;
  font-weight: 700;
}

.add-button,
.qty-button,
.remove-button,
.primary-button,
.secondary-button,
.print-button {
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}

.add-button {
  min-width: 78px;
  min-height: 38px;
  padding: 8px 12px;
  color: #fff;
  background: var(--brand);
  font-weight: 700;
}

.add-button:disabled {
  color: var(--muted);
  background: #e5e7eb;
  cursor: not-allowed;
}

.empty-state {
  padding: 18px;
  color: var(--muted);
  text-align: center;
  background: #fafafa;
  border: 1px dashed var(--line);
  border-radius: 10px;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 12px;
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.cart-item h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.cart-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.qty-button {
  width: 34px;
  height: 34px;
  color: var(--text);
  background: #eef0ef;
  font-size: 18px;
  font-weight: 700;
}

.remove-button {
  min-height: 34px;
  padding: 0 10px;
  color: #fff;
  background: var(--danger);
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 18px;
}

.cart-total strong {
  color: var(--brand);
  font-size: 22px;
}

form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 107, 79, 0.12);
}

textarea {
  resize: vertical;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 16px;
  text-decoration: none;
  font-weight: 700;
}

.primary-button {
  color: #fff;
  background: var(--brand);
}

.primary-button:active,
.add-button:active {
  background: var(--brand-dark);
}

.secondary-button {
  color: var(--brand);
  background: var(--soft);
}

.print-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 16px;
  color: #111827;
  text-decoration: none;
  background: #fef3c7;
  font-weight: 700;
}

.summary-section pre {
  overflow-x: auto;
  margin: 0 0 12px;
  padding: 12px;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text);
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.summary-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.copy-status {
  min-height: 22px;
  margin: 10px 0 0;
  color: var(--brand);
  font-size: 14px;
}

.hidden {
  display: none;
}

footer {
  padding: 0 16px 28px;
  text-align: center;
}

.floating-cart-button {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  color: #fff;
  text-decoration: none;
  background: var(--brand);
  border-radius: 12px;
  font-weight: 700;
}

.admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 12px;
  color: var(--brand);
  text-decoration: none;
  background: var(--soft);
  border-radius: 10px;
  font-weight: 700;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.admin-layout {
  display: grid;
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 14px;
  gap: 14px;
}

.admin-sidebar {
  position: sticky;
  top: 73px;
  z-index: 7;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.admin-nav-button {
  min-height: 42px;
  padding: 8px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}

.admin-nav-button.active {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
  font-weight: 700;
}

.admin-main {
  width: 100%;
  margin: 0;
  padding: 0;
}

.admin-page {
  display: none;
}

.admin-page.active {
  display: block;
}

.settings-list {
  display: grid;
  gap: 12px;
}

.settings-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.settings-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.settings-list span {
  color: var(--muted);
  text-align: right;
}

.admin-form {
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px;
  color: var(--text);
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.check-label input {
  width: auto;
}

.image-preview {
  display: grid;
  place-items: center;
  min-height: 120px;
  color: var(--muted);
  background: #fafafa;
  border: 1px dashed var(--line);
  border-radius: 10px;
}

.image-preview.has-image {
  padding: 0;
  border-style: solid;
}

.image-preview img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 10px;
}

.admin-food-card {
  display: grid;
  grid-template-columns: 94px 1fr;
  gap: 14px;
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.admin-food-image {
  display: grid;
  place-items: center;
  width: 94px;
  height: 94px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  object-fit: cover;
  background: #f1f3f2;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.admin-food-content {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.admin-food-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.admin-food-title h3 {
  margin: 0;
  font-size: 16px;
}

.admin-food-title strong {
  color: var(--brand);
  white-space: nowrap;
}

.admin-food-content p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.status-row span {
  padding: 3px 8px;
  color: var(--brand);
  background: var(--soft);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

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

.admin-actions .secondary-button,
.admin-actions .remove-button {
  min-height: 38px;
  padding: 8px;
  font-size: 13px;
}

.food-subpage {
  display: grid;
  gap: 18px;
}

.food-subpage.hidden {
  display: none;
}

.menu-subpage-header {
  display: grid;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.menu-subpage-header h2 {
  margin-bottom: 4px;
}

.menu-subpage-header > span {
  color: var(--brand);
  font-weight: 700;
}

.subsection-title {
  margin: 4px 0 0;
  font-size: 18px;
}

.orders-dashboard {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.stat-card {
  display: grid;
  gap: 6px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.stat-card span {
  color: var(--muted);
  font-size: 14px;
}

.stat-card strong {
  color: var(--brand);
  font-size: 24px;
}

.sales-card {
  gap: 10px;
}

.sales-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.sales-list span {
  padding: 5px 9px;
  color: var(--brand);
  background: var(--soft);
  border-radius: 999px;
  font-weight: 700;
}

.daily-settlement-section {
  display: grid;
  gap: 14px;
}

.settlement-warning {
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 700;
}

.settlement-warning.has-unpaid {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.38);
}

.settlement-warning.settled {
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.32);
}

.today-orders-list {
  display: grid;
  gap: 10px;
}

.today-order-row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.65fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: #191d25;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.today-order-row > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.today-order-row > div:last-child {
  justify-items: end;
}

.today-order-row span {
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.settlement-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.settlement-actions button {
  min-height: 42px;
}

.settlement-actions button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.settlement-preview {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  background: #11141a;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.settlement-preview.empty-state {
  display: block;
}

.settlement-preview div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.settlement-preview span {
  color: var(--muted);
  font-size: 12px;
}

.settlement-preview strong {
  color: var(--text);
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  .today-order-row,
  .settlement-actions,
  .settlement-preview {
    grid-template-columns: 1fr;
  }

  .today-order-row > div:last-child {
    justify-items: start;
  }
}

.order-alert {
  margin-bottom: 14px;
  padding: 14px 16px;
  color: #7c2d12;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  font-weight: 700;
  text-align: center;
}

.flash-alert {
  outline: 3px solid #fdba74;
}

.order-tabs {
  position: sticky;
  top: 73px;
  z-index: 8;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 0 -2px 18px;
  padding: 8px 2px;
  background: var(--bg);
}

.order-tab {
  min-height: 42px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}

.order-tab.active {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
  font-weight: 700;
}

.orders-section {
  margin-bottom: 18px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.section-heading h2 {
  margin-bottom: 4px;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.section-heading > span {
  flex: 0 0 auto;
  color: var(--brand);
  font-weight: 700;
}

.orders-list {
  display: grid;
  gap: 14px;
}

.order-card {
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.order-card.new-order {
  border-color: #facc15;
}

.order-card-main {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  width: 100%;
  padding: 14px;
  color: var(--text);
  text-align: left;
  background: #fff;
  border: 0;
  cursor: pointer;
}

.order-card-main p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.order-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.order-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.status-new {
  color: #854d0e;
  background: #fef9c3;
}

.status-pending_payment {
  color: #9a3412;
  background: #ffedd5;
}

.status-preparing {
  color: #1d4ed8;
  background: #dbeafe;
}

.status-completed {
  color: #047857;
  background: #d1fae5;
}

.status-cancelled {
  color: #374151;
  background: #e5e7eb;
}

.order-total {
  color: var(--brand);
  white-space: nowrap;
}

.order-details {
  padding: 0 14px 14px;
}

.order-meta {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
}

.order-items-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.order-items-table th,
.order-items-table td {
  padding: 9px 6px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.order-items-table th {
  color: var(--muted);
  font-weight: 700;
}

.order-detail-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
}

.order-detail-total strong {
  color: var(--brand);
}

.order-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 14px 14px;
  background: #fafafa;
  border-top: 1px solid var(--line);
}

.order-actions .primary-button,
.order-actions .secondary-button,
.order-actions .remove-button,
.order-actions .print-button {
  min-height: 40px;
  padding: 8px;
  font-size: 13px;
}

@media (min-width: 640px) {
  body {
    padding-bottom: 0;
  }

  .topbar {
    padding: 18px 24px;
  }

  main {
    padding: 24px 18px 44px;
  }

  .menu-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .orders-dashboard {
    grid-template-columns: 1fr 1fr 2fr;
  }

  .menu-item,
  .admin-food-card {
    grid-template-columns: 112px 1fr;
  }

  .food-photo,
  .admin-food-image {
    width: 112px;
    height: 112px;
  }

  .cart-item {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .summary-actions {
    grid-template-columns: 1fr 1fr;
  }

  .order-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .floating-cart-button {
    display: none;
  }
}

@media (max-width: 520px) {
  .topbar {
    align-items: flex-start;
  }

  .topbar-actions {
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
  }

  .language-toggle button {
    min-height: 28px;
    padding: 4px 8px;
  }
}

@media (min-width: 900px) {
  .admin-layout {
    grid-template-columns: 210px 1fr;
    align-items: start;
    padding: 18px;
  }

  .admin-sidebar {
    top: 86px;
    grid-template-columns: 1fr;
  }
}

.payment-card {
  display: grid;
  gap: 14px;
}

.payment-label {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 13px;
}

.payment-card h3 {
  margin: 0 0 4px;
  font-size: 22px;
}

.payment-method {
  margin-bottom: 0;
  color: var(--muted);
}

.payment-qr-box {
  display: grid;
  place-items: center;
  min-height: 240px;
  padding: 16px;
  color: var(--muted);
  text-align: center;
  background: #fafafa;
  border: 1px dashed var(--line);
  border-radius: 12px;
}

.payment-qr-box.has-image {
  background: #fff;
  border-style: solid;
}

.payment-qr-box img {
  width: min(100%, 320px);
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 10px;
}

.payment-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.payment-total-row strong {
  color: var(--brand);
  font-size: 24px;
}

.customer-page {
  --bg: #10100f;
  --panel: #181613;
  --text: #f8f4ea;
  --muted: #c8bda6;
  --line: rgba(245, 190, 85, 0.18);
  --brand: #d99a25;
  --brand-dark: #a96511;
  --accent: #f5be55;
  --danger: #e5483f;
  --soft: #292015;
  --shadow: none;
  background: #10100f;
}

.customer-page .topbar {
  background: rgba(16, 16, 15, 0.96);
  border-bottom-color: var(--line);
}

.customer-page .eyebrow,
.customer-page .price,
.customer-page .order-total,
.customer-page .copy-status {
  color: var(--accent);
}

.customer-page .table-badge,
.customer-page .primary-button,
.customer-page .floating-cart-button,
.customer-page .tab.active,
.customer-page .add-button {
  color: #17110a;
  background: var(--accent);
  border-color: var(--accent);
}

.customer-page main {
  max-width: 920px;
}

.hero-banner {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
  padding: 28px 20px;
  color: var(--text);
  background: #1b1711;
  border: 1px solid rgba(245, 190, 85, 0.24);
  border-radius: 14px;
}

.hero-banner h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 9vw, 56px);
  line-height: 1;
  letter-spacing: 0;
}

.hero-banner p {
  margin: 0;
  color: var(--muted);
}

.hero-banner .primary-button {
  width: fit-content;
  min-width: 150px;
}

.customer-page .intro,
.customer-page .menu-section,
.customer-page .cart-section,
.customer-page .customer-section,
.customer-page .summary-section,
.customer-page .payment-section {
  margin-bottom: 18px;
  padding: 18px;
  background: rgba(24, 22, 19, 0.98);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.customer-page .category-tabs {
  top: 73px;
  background: rgba(16, 16, 15, 0.96);
}

.customer-page .tab {
  color: var(--text);
  background: #1f1b16;
  border-color: var(--line);
}

.customer-page .section-title span,
.customer-page .item-description,
.customer-page footer p,
.customer-page label,
.customer-page .payment-label,
.customer-page .payment-method {
  color: var(--muted);
}

.customer-page .menu-item,
.customer-page .cart-item {
  background: #1c1914;
  border-color: var(--line);
}

.customer-page .food-photo,
.customer-page .empty-state,
.customer-page .summary-section pre,
.customer-page .payment-qr-box {
  color: var(--muted);
  background: #12110f;
  border-color: var(--line);
}

.customer-page .food-photo,
.customer-page .food-image {
  width: 104px;
  height: 104px;
}

.customer-page .menu-item {
  grid-template-columns: 104px 1fr;
}

.customer-page input,
.customer-page select,
.customer-page textarea {
  color: var(--text);
  background: #11100e;
  border-color: var(--line);
}

.customer-page input:focus,
.customer-page select:focus,
.customer-page textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245, 190, 85, 0.14);
}

.customer-page .secondary-button,
.customer-page .qty-button {
  color: var(--accent);
  background: #2a2116;
}

.customer-page .remove-button {
  background: #b42318;
}

.customer-page .cart-total,
.customer-page .payment-total-row {
  border-color: var(--line);
}

.customer-page .cart-total strong,
.customer-page .payment-total-row strong {
  color: var(--accent);
}

.customer-page .payment-qr-box.has-image {
  background: #f8f4ea;
}

.customer-page .add-button:disabled {
  color: #857861;
  background: #29251e;
}

@media (min-width: 640px) {
  .customer-page .menu-item {
    grid-template-columns: 126px 1fr;
  }

  .customer-page .food-photo,
  .customer-page .food-image {
    width: 126px;
    height: 126px;
  }

  .hero-banner {
    padding: 36px 28px;
  }
}

/* BLACK WATER ORDER V2 */
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.store-logo {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #17110a;
  background: #f5be55;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 900;
}

.store-logo.large {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  font-size: 18px;
}

.store-logo.has-image {
  overflow: hidden;
  background: transparent;
}

.store-logo.has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-info-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.store-info-line span {
  overflow-wrap: anywhere;
}

.store-info-line span:not(:empty):not(:first-child)::before {
  content: "· ";
}

.open-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 22px;
  margin-top: 5px;
  padding: 3px 8px;
  color: #9bf3b4;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.24);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.customer-page {
  padding-bottom: 92px;
}

.customer-page .topbar {
  align-items: flex-start;
}

.customer-page h1 {
  font-size: 21px;
}

.store-banner {
  display: grid;
  gap: 16px;
  margin-bottom: 14px;
  padding: 22px 18px;
  color: var(--text);
  background: #1b1711;
  border: 1px solid rgba(245, 190, 85, 0.24);
  border-radius: 18px;
}

.store-banner h2 {
  margin-bottom: 8px;
  font-size: 29px;
  line-height: 1.08;
}

.store-banner p {
  margin-bottom: 0;
  color: var(--muted);
}

.store-banner .primary-button {
  width: fit-content;
  min-width: 132px;
}

.storefront-banner {
  margin-bottom: 14px;
  overflow: hidden;
  background: #11141a;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.storefront-banner img {
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: cover;
}

.ordering-shell {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-bottom: 18px;
}

.customer-page .ordering-shell .category-tabs {
  position: sticky;
  top: 78px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  max-height: calc(100vh - 170px);
  overflow-y: auto;
  margin: 0;
  padding: 0;
  background: transparent;
}

.customer-page .tab {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 8px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.2;
  text-align: center;
  word-break: break-word;
}

.customer-page .menu-section {
  margin-bottom: 0;
  padding: 14px;
  border-radius: 18px;
}

.customer-page .menu-list {
  gap: 12px;
}

.customer-page .menu-item {
  grid-template-columns: 96px minmax(0, 1fr);
  min-height: 126px;
  padding: 10px;
  border-radius: 16px;
}

.customer-page .food-photo,
.customer-page .food-image {
  width: 96px;
  height: 106px;
  border-radius: 14px;
}

.item-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.recommend-tag {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  padding: 2px 7px;
  color: #17110a;
  background: #f5be55;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.menu-qty-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.menu-qty-control strong {
  min-width: 18px;
  color: var(--text);
  text-align: center;
}

.customer-page .menu-qty-control .qty-button,
.customer-page .menu-qty-control .add-button {
  display: grid;
  place-items: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 50%;
  font-size: 18px;
}

.customer-page .menu-qty-control .qty-button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.checkout-submit {
  width: 100%;
}

.customer-page .floating-cart-button {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  min-height: 58px;
  padding: 10px 14px;
  color: #17110a;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
}

.customer-page .floating-cart-button strong {
  white-space: nowrap;
}

.customer-page .floating-cart-button em {
  font-style: normal;
  font-weight: 900;
}

.admin-page-body {
  --bg: #0f1115;
  --panel: #171a21;
  --text: #f7f7f8;
  --muted: #a4acb9;
  --line: rgba(255, 255, 255, 0.09);
  --brand: #f5be55;
  --brand-dark: #b77a16;
  --soft: rgba(245, 190, 85, 0.12);
  background: var(--bg);
  color: var(--text);
  padding-bottom: 0;
}

.admin-page-body .topbar {
  background: rgba(15, 17, 21, 0.94);
  border-bottom-color: var(--line);
}

.admin-page-body .admin-link,
.admin-page-body .secondary-button {
  color: #f5be55;
  background: rgba(245, 190, 85, 0.12);
}

.admin-page-body .primary-button,
.admin-page-body .admin-nav-button.active,
.admin-page-body .order-tab.active {
  color: #17110a;
  background: #f5be55;
  border-color: #f5be55;
}

.admin-page-body .admin-layout {
  max-width: 1320px;
  gap: 16px;
}

.admin-page-body .admin-sidebar {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: #14171d;
  border-color: var(--line);
  box-shadow: none;
}

.admin-page-body .admin-nav-button {
  color: var(--text);
  background: #1b1f27;
  border-color: var(--line);
  text-align: left;
}

.admin-page-body .intro,
.admin-page-body .admin-section,
.admin-page-body .orders-section,
.admin-page-body .stat-card,
.admin-page-body .order-card {
  background: var(--panel);
  border-color: var(--line);
  box-shadow: none;
}

.admin-hero {
  margin-bottom: 16px;
  padding: 22px;
  background: #171a21;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.admin-hero h2 {
  margin-bottom: 6px;
  font-size: 28px;
}

.admin-hero p {
  margin-bottom: 0;
  color: var(--muted);
}

.pos-dashboard {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pos-dashboard .sales-card {
  grid-column: 1 / -1;
}

.admin-page-body input,
.admin-page-body select,
.admin-page-body textarea {
  color: var(--text);
  background: #101319;
  border-color: var(--line);
}

.admin-page-body .check-label,
.admin-page-body .empty-state,
.admin-page-body .image-preview,
.admin-page-body .order-actions {
  color: var(--muted);
  background: #11141a;
  border-color: var(--line);
}

.admin-page-body .admin-food-card,
.admin-page-body .order-card-main {
  background: #191d25;
  border-color: var(--line);
}

.admin-page-body .order-tabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--bg);
}

.admin-page-body .order-tab {
  color: var(--text);
  background: #1b1f27;
  border-color: var(--line);
}

.admin-page-body .order-items-table th,
.admin-page-body .order-items-table td,
.admin-page-body .cart-total,
.admin-page-body .payment-total-row {
  border-color: var(--line);
}

.store-placeholder {
  display: grid;
  gap: 16px;
}

.store-preview-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: #11141a;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.store-preview-card h3 {
  margin: 0 0 4px;
  font-size: 22px;
}

.store-preview-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.store-settings-section {
  display: grid;
  gap: 16px;
}

.store-editor-grid {
  display: grid;
  gap: 18px;
}

.store-upload-grid {
  display: grid;
  gap: 12px;
}

.store-logo-preview {
  min-height: 160px;
}

.store-banner-preview {
  min-height: 140px;
}

.store-settings-section .store-preview-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
}

.store-settings-section .store-logo.has-image {
  overflow: hidden;
  background: transparent;
}

.store-settings-section .store-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-banner-surface {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 130px;
  color: var(--muted);
  background: #101319;
  border: 1px dashed var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.store-banner-surface.has-image {
  border-style: solid;
}

.store-banner-surface img {
  width: 100%;
  height: 100%;
  min-height: 130px;
  object-fit: cover;
}

@media (min-width: 900px) {
  .store-editor-grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
    align-items: start;
  }
}

@media (min-width: 640px) {
  .customer-page {
    padding-bottom: 0;
  }

  .customer-page .floating-cart-button {
    left: 50%;
    right: auto;
    bottom: 18px;
    display: grid;
    width: min(520px, calc(100% - 32px));
    transform: translateX(-50%);
  }

  .customer-page .menu-list {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 900px) {
  .customer-page .ordering-shell {
    grid-template-columns: 124px minmax(0, 1fr);
    gap: 16px;
  }

  .customer-page .menu-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customer-page .menu-item {
    grid-template-columns: 118px minmax(0, 1fr);
  }

  .customer-page .food-photo,
  .customer-page .food-image {
    width: 118px;
    height: 118px;
  }

  .admin-page-body .admin-layout {
    grid-template-columns: 230px minmax(0, 1fr);
  }

  .admin-page-body .admin-sidebar {
    grid-template-columns: 1fr;
  }

  .admin-page-body .order-tabs {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .pos-dashboard {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
/* Customer checkout refinement */
.customer-page .recommendation-section.hidden,
.customer-page .hidden {
  display: none !important;
}

.customer-page .recommendation-section {
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
}

.customer-page .recommendation-head h2 {
  margin-bottom: 6px;
  font-size: 22px;
  line-height: 1.15;
}

.customer-page .recommendation-list {
  display: grid;
  gap: 10px;
}

.customer-page .recommendation-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  background: #1c1914;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.customer-page .recommendation-card.no-image {
  grid-template-columns: 1fr;
}

.customer-page .recommendation-card img {
  width: 74px;
  height: 74px;
  object-fit: cover;
  border-radius: 10px;
}

.customer-page .recommendation-card h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.customer-page .recommendation-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
}

.customer-page .recommendation-card strong {
  display: inline-block;
  margin-top: 6px;
  color: var(--accent);
}

.customer-page .form-helper {
  margin: -4px 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.customer-page .summary-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.customer-page .summary-actions .secondary-button {
  min-height: 42px;
}

.customer-page .payment-card {
  gap: 12px;
}

.customer-page .payment-qr-box {
  min-height: 180px;
  display: grid;
  place-items: center;
  text-align: center;
}

.customer-page .payment-qr-box.has-image {
  padding: 12px;
}

.customer-page .payment-qr-box img {
  width: min(230px, 78vw);
  max-height: 260px;
  object-fit: contain;
}

.customer-page #orderSummary {
  font-size: 14px;
  line-height: 1.55;
}

@media (max-width: 520px) {
  .customer-page main {
    padding-inline: 10px;
  }

  .customer-page .store-banner {
    margin-bottom: 10px;
    padding: 14px;
  }

  .customer-page .recommendation-head h2 {
    font-size: 20px;
  }

  .customer-page .ordering-shell {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 8px;
  }

  .customer-page .ordering-shell .category-tabs {
    top: 68px;
    gap: 6px;
    max-height: calc(100vh - 150px);
  }

  .customer-page .tab {
    min-height: 44px;
    padding: 6px;
    font-size: 12px;
    border-radius: 12px;
  }

  .customer-page .menu-section,
  .customer-page .cart-section,
  .customer-page .customer-section,
  .customer-page .payment-section,
  .customer-page .summary-section {
    padding: 12px;
    border-radius: 14px;
  }

  .customer-page .menu-item {
    grid-template-columns: 78px minmax(0, 1fr);
    min-height: 112px;
    gap: 9px;
  }

  .customer-page .food-photo,
  .customer-page .food-image {
    width: 78px;
    height: 96px;
  }

  .customer-page .cart-item,
  .customer-page .cart-controls {
    gap: 8px;
  }

  .customer-page .payment-qr-box {
    min-height: 150px;
  }

  .customer-page .floating-cart-button {
    grid-template-columns: 1fr auto;
    min-height: 56px;
  }

  .customer-page .floating-cart-button em {
    grid-column: 1 / -1;
    text-align: center;
  }
}

/* P1 payment guard and catalog management */
.settings-check {
  align-items: flex-start;
}

.settings-check span {
  display: grid;
  gap: 4px;
}

.settings-check small,
.form-helper {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.compact-form {
  margin-bottom: 14px;
}

.category-list {
  display: grid;
  gap: 10px;
}

.category-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 12px;
  background: #11141a;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.category-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.category-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 3px 8px;
  color: var(--brand);
  background: var(--soft);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.category-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.category-actions .primary-button,
.category-actions .secondary-button,
.category-actions .remove-button {
  min-height: 38px;
  padding: 8px;
  font-size: 13px;
}

.status-paid {
  color: #047857;
  background: #d1fae5;
}

.customer-page .thank-you-section {
  margin-bottom: 18px;
  padding: 22px 18px;
  text-align: center;
  background: rgba(24, 22, 19, 0.98);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.customer-page .thank-you-section h2 {
  margin-bottom: 8px;
  font-size: 24px;
}

.customer-page .thank-you-section p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

@media (min-width: 640px) {
  .menu-subpage-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
  }

  .category-card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .category-actions {
    width: 360px;
  }
}
/* Payment settings and customer payment layout */
.form-group-title {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.form-group-title h3 {
  margin: 0;
  font-size: 16px;
}

.customer-page .payment-layout {
  display: grid;
  gap: 16px;
  align-items: stretch;
}

.customer-page .payment-qr-panel,
.customer-page .payment-bank-panel,
.customer-page .payment-bank-card {
  min-width: 0;
}

.customer-page .payment-qr-panel,
.customer-page .payment-bank-panel {
  display: grid;
  gap: 12px;
}

.customer-page .payment-qr-box {
  min-height: 260px;
  padding: 14px;
}

.customer-page .payment-qr-box img {
  width: min(360px, 86vw);
  max-height: none;
}

.payment-bank-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.payment-bank-details {
  display: grid;
  gap: 8px;
  margin: 0;
}

.payment-bank-details div {
  display: grid;
  grid-template-columns: minmax(90px, 0.42fr) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.payment-bank-details dt {
  color: var(--muted);
  font-size: 13px;
}

.payment-bank-details dd {
  margin: 0;
  color: var(--text);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.payment-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

@media (min-width: 760px) {
  .customer-page .payment-layout {
    grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
    gap: 18px;
  }

  .customer-page .payment-qr-box {
    min-height: 360px;
  }

  .customer-page .payment-qr-box img {
    width: min(390px, 100%);
  }
}

@media (max-width: 520px) {
  .payment-bank-details div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .customer-page .payment-qr-box {
    min-height: 250px;
  }

  .customer-page .payment-qr-box img {
    width: min(300px, 82vw);
  }
}

/* Customer theme colors */
.customer-page.customer-theme-classic {
  --bg: #fff8ef;
  --panel: #fffdf8;
  --text: #2b170f;
  --muted: #7a5841;
  --line: #f2d5a5;
  --brand: #b42318;
  --brand-dark: #7f1d1d;
  --accent: #f59e0b;
  --danger: #b42318;
  --soft: #fff0c2;
  --shadow: 0 1px 3px rgba(127, 29, 29, 0.12);
  background: var(--bg);
}

.customer-page.customer-theme-black-gold {
  --bg: #10100f;
  --panel: #181613;
  --text: #f8f4ea;
  --muted: #c8bda6;
  --line: rgba(245, 190, 85, 0.18);
  --brand: #d99a25;
  --brand-dark: #a96511;
  --accent: #f5be55;
  --danger: #e5483f;
  --soft: #292015;
  --shadow: none;
  background: var(--bg);
}

.customer-page.customer-theme-green {
  --bg: #f6f7f5;
  --panel: #ffffff;
  --text: #111827;
  --muted: #667085;
  --line: #e5e7eb;
  --brand: #0f6b4f;
  --brand-dark: #0a513c;
  --accent: #0f6b4f;
  --danger: #c2410c;
  --soft: #eef5f2;
  --shadow: 0 1px 3px rgba(17, 24, 39, 0.08);
  background: var(--bg);
}

.customer-page.customer-theme-classic .topbar,
.customer-page.customer-theme-green .topbar {
  background: rgba(255, 255, 255, 0.96);
}

.customer-page.customer-theme-black-gold .topbar {
  background: rgba(16, 16, 15, 0.96);
}

.customer-page.customer-theme-classic .category-tabs {
  background: rgba(255, 248, 239, 0.96);
}

.customer-page.customer-theme-green .category-tabs {
  background: rgba(246, 247, 245, 0.96);
}

.customer-page.customer-theme-classic .ordering-shell .category-tabs,
.customer-page.customer-theme-green .ordering-shell .category-tabs {
  background: transparent;
}

.customer-page.customer-theme-classic .intro,
.customer-page.customer-theme-classic .menu-section,
.customer-page.customer-theme-classic .cart-section,
.customer-page.customer-theme-classic .customer-section,
.customer-page.customer-theme-classic .summary-section,
.customer-page.customer-theme-classic .payment-section,
.customer-page.customer-theme-green .intro,
.customer-page.customer-theme-green .menu-section,
.customer-page.customer-theme-green .cart-section,
.customer-page.customer-theme-green .customer-section,
.customer-page.customer-theme-green .summary-section,
.customer-page.customer-theme-green .payment-section {
  background: var(--panel);
  border-color: var(--line);
}

.customer-page.customer-theme-classic .tab,
.customer-page.customer-theme-classic .menu-item,
.customer-page.customer-theme-classic .cart-item,
.customer-page.customer-theme-classic input,
.customer-page.customer-theme-classic select,
.customer-page.customer-theme-classic textarea {
  background: #fffaf2;
  border-color: var(--line);
}

.customer-page.customer-theme-green .tab,
.customer-page.customer-theme-green .menu-item,
.customer-page.customer-theme-green .cart-item,
.customer-page.customer-theme-green input,
.customer-page.customer-theme-green select,
.customer-page.customer-theme-green textarea {
  background: #ffffff;
  border-color: var(--line);
}

.customer-page.customer-theme-classic input:focus,
.customer-page.customer-theme-classic select:focus,
.customer-page.customer-theme-classic textarea:focus {
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12);
}

.customer-page.customer-theme-green input:focus,
.customer-page.customer-theme-green select:focus,
.customer-page.customer-theme-green textarea:focus {
  box-shadow: 0 0 0 3px rgba(15, 107, 79, 0.12);
}

.customer-page.customer-theme-classic .food-photo,
.customer-page.customer-theme-classic .empty-state,
.customer-page.customer-theme-classic .summary-section pre,
.customer-page.customer-theme-classic .payment-qr-box {
  background: #fff3df;
  border-color: var(--line);
}

.customer-page.customer-theme-green .food-photo,
.customer-page.customer-theme-green .empty-state,
.customer-page.customer-theme-green .summary-section pre,
.customer-page.customer-theme-green .payment-qr-box {
  background: #f1f5f2;
  border-color: var(--line);
}

.customer-page.customer-theme-classic .store-banner,
.customer-page.customer-theme-classic .storefront-banner {
  background: #fff3df;
  border-color: var(--line);
}

.customer-page.customer-theme-green .store-banner,
.customer-page.customer-theme-green .storefront-banner {
  background: #eef5f2;
  border-color: var(--line);
}

.customer-page.customer-theme-classic .primary-button,
.customer-page.customer-theme-classic .floating-cart-button,
.customer-page.customer-theme-classic .tab.active,
.customer-page.customer-theme-classic .add-button,
.customer-page.customer-theme-classic .table-badge {
  color: #fffdf8;
  background: var(--brand);
  border-color: var(--brand);
}

.customer-page.customer-theme-green .primary-button,
.customer-page.customer-theme-green .floating-cart-button,
.customer-page.customer-theme-green .tab.active,
.customer-page.customer-theme-green .add-button,
.customer-page.customer-theme-green .table-badge {
  color: #ffffff;
  background: var(--brand);
  border-color: var(--brand);
}

.customer-page.customer-theme-black-gold .primary-button,
.customer-page.customer-theme-black-gold .floating-cart-button,
.customer-page.customer-theme-black-gold .tab.active,
.customer-page.customer-theme-black-gold .add-button,
.customer-page.customer-theme-black-gold .table-badge {
  color: #17110a;
  background: var(--accent);
  border-color: var(--accent);
}

.customer-page.customer-theme-classic .store-logo,
.customer-page.customer-theme-classic .recommend-tag,
.customer-page.customer-theme-black-gold .store-logo,
.customer-page.customer-theme-black-gold .recommend-tag {
  color: #17110a;
  background: var(--accent);
}

.customer-page.customer-theme-green .store-logo,
.customer-page.customer-theme-green .recommend-tag {
  color: #ffffff;
  background: var(--brand);
}

.customer-page.customer-theme-classic .secondary-button,
.customer-page.customer-theme-classic .qty-button {
  color: var(--brand);
  background: #fff0c2;
}

.customer-page.customer-theme-green .secondary-button,
.customer-page.customer-theme-green .qty-button {
  color: var(--brand);
  background: var(--soft);
}

.customer-page.customer-theme-classic .payment-qr-box.has-image,
.customer-page.customer-theme-green .payment-qr-box.has-image {
  background: #ffffff;
}

.customer-page.customer-theme-classic .language-toggle button.active,
.customer-page.customer-theme-green .language-toggle button.active {
  color: #ffffff;
  background: var(--brand);
}

.customer-page.customer-theme-black-gold .language-toggle button.active {
  color: #17110a;
  background: var(--accent);
}

.store-preview-card.theme-preview-classic {
  color: #2b170f;
  background: #fff8ef;
  border-color: #f2d5a5;
}

.store-preview-card.theme-preview-blackGold {
  color: #f8f4ea;
  background: #181613;
  border-color: rgba(245, 190, 85, 0.24);
}

.store-preview-card.theme-preview-green {
  color: #111827;
  background: #f6f7f5;
  border-color: #d8e5dc;
}

.store-preview-card.theme-preview-classic p {
  color: #7a5841;
}

.store-preview-card.theme-preview-blackGold p {
  color: #c8bda6;
}

.store-preview-card.theme-preview-green p {
  color: #667085;
}

.store-preview-card.theme-preview-classic .store-logo {
  color: #17110a;
  background: #f59e0b;
}

.store-preview-card.theme-preview-blackGold .store-logo {
  color: #17110a;
  background: #f5be55;
}

.store-preview-card.theme-preview-green .store-logo {
  color: #ffffff;
  background: #0f6b4f;
}

/* Demo upgrade: storefront focus, carousel, and order workflow */
.customer-page .topbar {
  justify-content: center;
  text-align: center;
}

.customer-page .brand-lockup {
  width: 100%;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.customer-page .brand-lockup > div:last-child {
  display: grid;
  justify-items: center;
}

.customer-page .store-logo {
  width: 74px;
  height: 74px;
  border-radius: 20px;
  font-size: 18px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.customer-page .store-info-line {
  justify-content: center;
}

.customer-page .topbar-actions {
  position: absolute;
  top: 12px;
  right: 12px;
}

.storefront-banner {
  position: relative;
}

.storefront-banner-track {
  display: grid;
}

.storefront-banner-track img {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity 360ms ease;
}

.storefront-banner-track img.active {
  opacity: 1;
}

.storefront-banner-dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  display: flex;
  gap: 6px;
  transform: translateX(-50%);
}

.storefront-banner-dots span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

.storefront-banner-dots span.active {
  width: 18px;
  background: #fff;
}

.customer-page .recommendation-grid {
  display: grid;
  grid-template-columns: repeat(var(--recommendation-columns, 3), minmax(0, 1fr));
  gap: 12px;
}

.customer-page .recommendation-carousel {
  display: grid;
}

.customer-page .recommendation-carousel .recommendation-card {
  grid-area: 1 / 1;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 300ms ease, transform 300ms ease;
}

.customer-page .recommendation-carousel .recommendation-card.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.customer-page .thank-you-section {
  display: grid;
  place-items: center;
  min-height: 62vh;
  cursor: pointer;
}

.customer-page .thank-you-exit-hint {
  display: inline-flex;
  margin-top: 14px;
  color: var(--accent);
  font-weight: 800;
}

.payment-bank-title h3,
.payment-bank-card .payment-label {
  font-weight: 900;
}

.store-feature-controls {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.banner-preview-stack {
  grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
  gap: 8px;
  align-items: stretch;
}

.banner-preview-stack img {
  width: 100%;
  height: 86px;
  object-fit: cover;
  border-radius: 10px;
}

.banner-preview-card-stack {
  position: relative;
}

.banner-preview-card-stack img {
  display: none;
}

.banner-preview-card-stack img.active {
  display: block;
}

@media (max-width: 640px) {
  .customer-page .topbar {
    padding-top: 48px;
  }

  .customer-page .topbar-actions {
    left: 10px;
    right: 10px;
    justify-content: space-between;
  }
}
.empty-state-panel {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 28px 18px;
  text-align: center;
}

.empty-state-panel strong {
  color: inherit;
  font-size: 1.1rem;
  font-weight: 900;
}

.empty-state-panel span {
  max-width: 34rem;
  color: var(--muted);
  line-height: 1.55;
}

.empty-state-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 6px;
  padding: 0 18px;
  border-radius: 8px;
  background: #101010;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

.admin-empty-panel {
  min-height: 150px;
  border-style: dashed;
}

.launch-order-actions {
  grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
}

.launch-order-actions button,
.launch-food-actions button {
  min-height: 46px;
  font-size: 0.95rem;
  font-weight: 900;
}

.launch-food-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.admin-food-card .admin-food-title strong {
  font-size: 1.08rem;
}

.order-card-main {
  min-height: 92px;
}

.order-heading strong,
.order-total {
  font-size: 1.08rem;
}

.customer-page .empty-state-panel {
  border-radius: 8px;
}

.customer-page .cart-section .empty-state-action {
  background: var(--accent);
  color: #fff;
}

@media (max-width: 640px) {
  .launch-food-actions {
    grid-template-columns: 1fr;
  }
}
/* Carousel controls */
.storefront-banner-controls,
.recommendation-carousel-controls {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  pointer-events: none;
  z-index: 3;
}

.carousel-button {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  backdrop-filter: blur(8px);
}

.carousel-button:hover,
.carousel-button:focus-visible {
  background: rgba(0, 0, 0, 0.72);
  outline: none;
}

.storefront-banner-dots,
.recommendation-dots {
  z-index: 4;
}

.storefront-banner-dots button,
.recommendation-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
}

.storefront-banner-dots button.active,
.recommendation-dots button.active {
  width: 20px;
  background: #fff;
}

.recommendation-carousel {
  position: relative;
  min-height: 158px;
}

.recommendation-dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  display: flex;
  gap: 7px;
  transform: translateX(-50%);
}

.recommendation-carousel-controls {
  padding: 0 4px;
}

.recommended-toggle-row {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.055);
}
/* Recommendation grid matching launch mockup */
.customer-page .recommendation-section.hidden,
.customer-page .storefront-banner.hidden {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.customer-page .recommendation-grid .recommendation-card {
  display: grid;
  align-content: start;
  min-height: 128px;
  padding: 16px 14px;
  border: 1px solid rgba(245, 190, 85, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.customer-page .recommendation-grid .recommendation-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: 10px;
  border-radius: 10px;
  object-fit: cover;
}

.customer-page .recommendation-grid .recommendation-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.25;
}

.customer-page .recommendation-grid .recommendation-card p {
  margin: 0 0 10px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.customer-page .recommendation-grid .recommendation-card strong {
  color: #ffb52e;
  font-size: 1.05rem;
}

@media (max-width: 760px) {
  .customer-page .recommendation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .customer-page .recommendation-grid {
    grid-template-columns: 1fr;
  }
}
/* Store controls clarity */
.theme-control-panel,
.recommendation-upload-guide {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.theme-control-panel select {
  margin-top: 8px;
}

.recommendation-upload-guide {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.recommendation-upload-guide strong {
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
}

.recommendation-upload-guide p,
.recommendation-upload-guide small {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.recommendation-upload-guide button {
  width: fit-content;
  min-height: 42px;
}
/* Logo removed from Demo storefront and admin setup */
.customer-page .topbar {
  position: relative;
  z-index: 2;
}

.customer-page #storeLogo,
.store-settings-section #storeLogoPreview,
.store-settings-section #storeLogoPreviewCard {
  display: none !important;
}

.customer-page .brand-lockup {
  padding-right: 168px;
}

.storefront-banner {
  clear: both;
  margin-top: 12px;
  background: #050505;
}

.storefront-banner img,
.storefront-banner-track img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
}

@media (max-width: 640px) {
  .customer-page .brand-lockup {
    padding-right: 0;
  }

  .customer-page .topbar {
    padding-top: 88px;
  }
}
.admin-page-body.admin-theme-black-gold {
  --bg: #0f1115;
  --panel: #171a21;
  --text: #f7f7f8;
  --muted: #a4acb9;
  --line: rgba(245, 190, 85, 0.14);
  --brand: #f5be55;
  --brand-dark: #b77a16;
  --soft: rgba(245, 190, 85, 0.12);
  background: var(--bg);
}

.admin-page-body.admin-theme-classic {
  --bg: #fff8ef;
  --panel: #fffdf8;
  --text: #2b170f;
  --muted: #7a5841;
  --line: #f2d5a5;
  --brand: #b42318;
  --brand-dark: #7f1d1d;
  --soft: #fff0c2;
  background: var(--bg);
}

.admin-page-body.admin-theme-classic .topbar,
.admin-page-body.admin-theme-classic .admin-sidebar,
.admin-page-body.admin-theme-classic .admin-nav-button,
.admin-page-body.admin-theme-classic input,
.admin-page-body.admin-theme-classic select,
.admin-page-body.admin-theme-classic textarea,
.admin-page-body.admin-theme-classic .check-label,
.admin-page-body.admin-theme-classic .empty-state,
.admin-page-body.admin-theme-classic .image-preview,
.admin-page-body.admin-theme-classic .order-actions,
.admin-page-body.admin-theme-classic .admin-food-card,
.admin-page-body.admin-theme-classic .order-card-main,
.admin-page-body.admin-theme-classic .order-tabs,
.admin-page-body.admin-theme-classic .order-tab {
  color: var(--text);
  background: #fffaf2;
  border-color: var(--line);
}

.admin-page-body.admin-theme-classic .intro,
.admin-page-body.admin-theme-classic .admin-section,
.admin-page-body.admin-theme-classic .orders-section,
.admin-page-body.admin-theme-classic .stat-card,
.admin-page-body.admin-theme-classic .order-card,
.admin-page-body.admin-theme-classic .admin-hero {
  color: var(--text);
  background: var(--panel);
  border-color: var(--line);
}

.admin-page-body.admin-theme-classic .admin-link,
.admin-page-body.admin-theme-classic .secondary-button {
  color: var(--brand);
  background: var(--soft);
}

.admin-page-body.admin-theme-classic .primary-button,
.admin-page-body.admin-theme-classic .admin-nav-button.active,
.admin-page-body.admin-theme-classic .order-tab.active {
  color: #fffdf8;
  background: var(--brand);
  border-color: var(--brand);
}

.admin-page-body.admin-theme-black-gold .topbar,
.admin-page-body.admin-theme-black-gold .admin-sidebar,
.admin-page-body.admin-theme-black-gold .admin-nav-button,
.admin-page-body.admin-theme-black-gold input,
.admin-page-body.admin-theme-black-gold select,
.admin-page-body.admin-theme-black-gold textarea,
.admin-page-body.admin-theme-black-gold .check-label,
.admin-page-body.admin-theme-black-gold .empty-state,
.admin-page-body.admin-theme-black-gold .image-preview,
.admin-page-body.admin-theme-black-gold .order-actions,
.admin-page-body.admin-theme-black-gold .admin-food-card,
.admin-page-body.admin-theme-black-gold .order-card-main,
.admin-page-body.admin-theme-black-gold .order-tabs,
.admin-page-body.admin-theme-black-gold .order-tab {
  border-color: var(--line);
}
/* Clean white theme and mobile company info */
.customer-page.customer-theme-clean-white {
  --bg: #f7f5ef;
  --panel: #ffffff;
  --text: #1f2328;
  --muted: #5f6670;
  --line: #e7dfd2;
  --brand: #b7791f;
  --brand-dark: #805016;
  --accent: #c58a2a;
  --danger: #b42318;
  --soft: #fff4dc;
  --shadow: 0 10px 28px rgba(31, 35, 40, 0.08);
  background: var(--bg);
}

.customer-page.customer-theme-clean-white .topbar,
.customer-page.customer-theme-clean-white .category-tabs {
  background: rgba(255, 255, 255, 0.96);
}

.customer-page.customer-theme-clean-white .intro,
.customer-page.customer-theme-clean-white .menu-section,
.customer-page.customer-theme-clean-white .cart-section,
.customer-page.customer-theme-clean-white .customer-section,
.customer-page.customer-theme-clean-white .summary-section,
.customer-page.customer-theme-clean-white .payment-section,
.customer-page.customer-theme-clean-white .recommendation-section {
  background: var(--panel);
  border-color: var(--line);
}

.customer-page.customer-theme-clean-white .tab,
.customer-page.customer-theme-clean-white .menu-item,
.customer-page.customer-theme-clean-white .cart-item,
.customer-page.customer-theme-clean-white input,
.customer-page.customer-theme-clean-white select,
.customer-page.customer-theme-clean-white textarea {
  background: #ffffff;
  border-color: var(--line);
}

.customer-page.customer-theme-clean-white .primary-button,
.customer-page.customer-theme-clean-white .floating-cart-button,
.customer-page.customer-theme-clean-white .tab.active,
.customer-page.customer-theme-clean-white .add-button,
.customer-page.customer-theme-clean-white .table-badge,
.customer-page.customer-theme-clean-white .language-toggle button.active {
  color: #17110a;
  background: #dba247;
  border-color: #dba247;
}

.customer-page.customer-theme-clean-white .storefront-banner,
.customer-page.customer-theme-clean-white .store-banner,
.customer-page.customer-theme-clean-white .food-photo,
.customer-page.customer-theme-clean-white .empty-state,
.customer-page.customer-theme-clean-white .summary-section pre,
.customer-page.customer-theme-clean-white .payment-qr-box {
  background: #fffaf0;
  border-color: var(--line);
}

.admin-page-body.admin-theme-clean-white {
  --bg: #f7f5ef;
  --panel: #ffffff;
  --text: #1f2328;
  --muted: #626a75;
  --line: #e4ded4;
  --brand: #c58a2a;
  --brand-dark: #8a5a16;
  --soft: #fff3d8;
  background: var(--bg);
}

.admin-page-body.admin-theme-clean-white .topbar,
.admin-page-body.admin-theme-clean-white .admin-sidebar,
.admin-page-body.admin-theme-clean-white .admin-nav-button,
.admin-page-body.admin-theme-clean-white input,
.admin-page-body.admin-theme-clean-white select,
.admin-page-body.admin-theme-clean-white textarea,
.admin-page-body.admin-theme-clean-white .check-label,
.admin-page-body.admin-theme-clean-white .empty-state,
.admin-page-body.admin-theme-clean-white .image-preview,
.admin-page-body.admin-theme-clean-white .order-actions,
.admin-page-body.admin-theme-clean-white .admin-food-card,
.admin-page-body.admin-theme-clean-white .order-card-main,
.admin-page-body.admin-theme-clean-white .order-tabs,
.admin-page-body.admin-theme-clean-white .order-tab {
  color: var(--text);
  background: #ffffff;
  border-color: var(--line);
}

.admin-page-body.admin-theme-clean-white .admin-link,
.admin-page-body.admin-theme-clean-white .secondary-button {
  color: #8a5a16;
  background: #fff3d8;
}

.admin-page-body.admin-theme-clean-white .primary-button,
.admin-page-body.admin-theme-clean-white .admin-nav-button.active,
.admin-page-body.admin-theme-clean-white .order-tab.active {
  color: #17110a;
  background: #dba247;
  border-color: #dba247;
}

.store-preview-card.theme-preview-cleanWhite {
  color: #1f2328;
  background: #ffffff;
  border-color: #e4ded4;
}

.store-preview-card.theme-preview-cleanWhite p {
  color: #626a75;
}

.store-preview-card.theme-preview-cleanWhite .store-logo {
  color: #17110a;
  background: #dba247;
}

@media (max-width: 640px) {
  .customer-page .topbar {
    align-items: stretch;
    padding: 54px 12px 12px;
  }

  .customer-page .brand-lockup {
    width: 100%;
    padding-right: 0;
  }

  .customer-page .brand-lockup > div:last-child {
    width: min(100%, 390px);
    gap: 3px;
    justify-items: center;
  }

  .customer-page .eyebrow {
    margin-bottom: 0;
    font-size: 12px;
    line-height: 1.15;
  }

  .customer-page h1 {
    max-width: 100%;
    margin-bottom: 2px;
    font-size: 22px;
    line-height: 1.05;
    overflow-wrap: anywhere;
  }

  .customer-page .store-info-line {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 8px;
    row-gap: 0;
    width: 100%;
    max-width: 390px;
    font-size: 12.5px;
    line-height: 1.25;
  }

  .customer-page .store-info-line span {
    display: inline;
    max-width: 100%;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .customer-page .store-info-line span:first-child {
    flex: 0 1 100%;
  }

  .customer-page .store-info-line span:not(:empty):not(:first-child)::before {
    content: "";
  }

  .customer-page .open-status {
    margin-top: 4px;
    padding: 3px 10px;
    font-size: 12px;
  }

  .customer-page .topbar-actions {
    top: 8px;
    left: 12px;
    right: 12px;
    display: grid;
    grid-template-columns: auto auto;
    align-items: start;
  }

  .customer-page .language-toggle button {
    min-height: 28px;
    padding: 4px 8px;
  }

  .customer-page .table-badge {
    min-width: 78px;
    min-height: 48px;
    padding: 7px 10px;
  }
}
.customer-page .store-info-line,
.customer-page .brand-lockup .eyebrow {
  display: none !important;
}

.customer-page #storeLogo {
  display: grid !important;
  place-items: center;
}

.customer-page .brand-lockup {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.customer-page .brand-lockup > div:last-child {
  justify-items: start;
  text-align: left;
}

.customer-page h1 {
  margin-bottom: 2px;
}

.customer-page .open-status {
  width: fit-content;
}

@media (max-width: 640px) {
  .customer-page .topbar {
    padding: 52px 12px 10px;
  }

  .customer-page .brand-lockup {
    width: fit-content;
    max-width: min(100%, 360px);
    margin: 0 auto;
    padding-right: 0;
    gap: 10px;
  }

  .customer-page #storeLogo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    font-size: 14px;
    flex: 0 0 auto;
  }

  .customer-page .brand-lockup > div:last-child {
    width: auto;
    min-width: 0;
    gap: 2px;
    justify-items: start;
  }

  .customer-page h1 {
    max-width: 250px;
    margin-bottom: 1px;
    font-size: 22px;
    line-height: 1.05;
    text-align: left;
    overflow-wrap: anywhere;
  }

  .customer-page .open-status {
    margin-top: 2px;
    padding: 3px 9px;
    font-size: 12px;
  }
}
/* Cart confirmation layout */
.customer-page .cart-confirm-list {
  display: grid;
  gap: 8px;
}

.customer-page .cart-confirm-item {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: baseline;
  gap: 8px;
  padding: 12px 14px;
}

.customer-page .cart-line-index,
.customer-page .cart-line-qty {
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}

.customer-page .cart-line-name {
  min-width: 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.customer-page .cart-line-subtotal {
  color: var(--accent);
  font-weight: 900;
  white-space: nowrap;
}

@media (max-width: 420px) {
  .customer-page .cart-confirm-item {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .customer-page .cart-line-subtotal {
    grid-column: 2 / -1;
    justify-self: end;
  }
}
/* Storefront header final alignment */
.customer-page .brand-lockup > div:last-child {
  display: grid;
  justify-items: center;
  text-align: center;
}

.customer-page .open-status {
  justify-self: center;
}

@media (max-width: 640px) {
  .customer-page .topbar {
    padding: 52px 12px 12px;
  }

  .customer-page .topbar-actions {
    position: absolute;
    top: 8px;
    left: 12px;
    right: 12px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
  }

  .customer-page .brand-lockup {
    width: fit-content;
    max-width: min(100%, 360px);
    margin: 0 auto;
    gap: 10px;
  }

  .customer-page .brand-lockup > div:last-child {
    width: auto;
    justify-items: center;
    text-align: center;
  }

  .customer-page h1 {
    max-width: 245px;
    text-align: center;
  }

  .customer-page .open-status {
    justify-self: center;
    margin-top: 3px;
  }
}
/* Comfortable storefront header left-right layout */
.customer-page .topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  text-align: left;
}

.customer-page .brand-lockup {
  width: auto;
  max-width: 100%;
  margin: 0;
  padding-right: 0;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  justify-self: start;
}

.customer-page #storeLogo {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  flex: 0 0 auto;
  font-size: 13px;
}

.customer-page .brand-lockup > div:last-child {
  display: grid;
  min-width: 0;
  gap: 2px;
  justify-items: start;
  text-align: left;
}

.customer-page h1 {
  max-width: 230px;
  margin: 0;
  font-size: 22px;
  line-height: 1.05;
  text-align: left;
  overflow-wrap: anywhere;
}

.customer-page .store-info-line {
  display: flex !important;
  width: 100%;
  max-width: 230px;
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.2;
  text-align: left;
}

.customer-page #storeAddressText,
.customer-page #storeHoursText {
  display: none !important;
}

.customer-page #storePhoneText {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.customer-page .open-status {
  justify-self: start;
  width: fit-content;
  margin-top: 2px;
  padding: 3px 9px;
  font-size: 12px;
  line-height: 1.15;
}

.customer-page .topbar-actions {
  position: static;
  display: grid;
  justify-items: end;
  align-items: start;
  gap: 7px;
  justify-self: end;
}

.customer-page .language-toggle button {
  min-height: 28px;
  padding: 4px 8px;
}

.customer-page .table-badge {
  min-width: 76px;
  min-height: 48px;
  padding: 7px 10px;
}

@media (max-width: 640px) {
  .customer-page .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 10px 10px;
  }

  .customer-page .brand-lockup {
    max-width: calc(100vw - 118px);
    gap: 9px;
  }

  .customer-page #storeLogo {
    width: 50px;
    height: 50px;
    border-radius: 14px;
  }

  .customer-page h1 {
    max-width: calc(100vw - 185px);
    font-size: 21px;
  }

  .customer-page .store-info-line {
    max-width: calc(100vw - 185px);
    font-size: 12px;
  }

  .customer-page .table-badge {
    min-width: 72px;
  }
}
/* Contact phone alignment */
.customer-page .store-info-line {
  justify-content: flex-start;
}

.customer-page #storePhoneText {
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0;
}
/* Direct order summary checkout */
.customer-page #checkoutSection {
  display: none !important;
}

.customer-page .summary-section .summary-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.customer-page .summary-section .secondary-button,
.customer-page .summary-section .primary-button {
  min-height: 62px;
  font-size: 18px;
  font-weight: 900;
}

@media (max-width: 420px) {
  .customer-page .summary-section .summary-actions {
    grid-template-columns: 1fr;
  }
}
/* Dashboard core metric layout */
.dashboard-core-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-core-stats .stat-card {
  min-height: 118px;
  align-content: center;
}

@media (max-width: 520px) {
  .dashboard-core-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-core-stats .stat-card {
    min-height: 106px;
    padding: 14px 12px;
  }

  .dashboard-core-stats .stat-card strong {
    font-size: 21px;
  }
}


/* Demo video theme: signature black gold, synced across customer and admin pages */
.customer-page.customer-theme-black-gold {
  --bg: #0b0a08;
  --panel: #18130d;
  --text: #fff7e8;
  --muted: #d7c6a6;
  --line: rgba(255, 196, 87, 0.24);
  --brand: #f0a92f;
  --brand-dark: #8f5115;
  --accent: #ffd166;
  --danger: #e23d28;
  --soft: #271a0f;
  --shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
  background: #0b0a08;
}

.customer-page.customer-theme-black-gold .topbar,
.customer-page.customer-theme-black-gold .category-tabs {
  background: rgba(11, 10, 8, 0.97);
  border-color: rgba(255, 196, 87, 0.22);
}

.customer-page.customer-theme-black-gold .intro,
.customer-page.customer-theme-black-gold .menu-section,
.customer-page.customer-theme-black-gold .cart-section,
.customer-page.customer-theme-black-gold .customer-section,
.customer-page.customer-theme-black-gold .summary-section,
.customer-page.customer-theme-black-gold .payment-section,
.customer-page.customer-theme-black-gold .recommendation-section {
  background: #18130d;
  border-color: rgba(255, 196, 87, 0.25);
  box-shadow: var(--shadow);
}

.customer-page.customer-theme-black-gold .recommendation-section {
  background: #1d150d;
}

.customer-page.customer-theme-black-gold .recommendation-head .eyebrow,
.customer-page.customer-theme-black-gold .section-title span,
.customer-page.customer-theme-black-gold .price,
.customer-page.customer-theme-black-gold .order-total,
.customer-page.customer-theme-black-gold .cart-total strong,
.customer-page.customer-theme-black-gold .payment-total-row strong {
  color: var(--accent);
}

.customer-page.customer-theme-black-gold .recommend-tag,
.customer-page.customer-theme-black-gold .status-open {
  color: #fff7e8;
  background: #d92d20;
}

.customer-page.customer-theme-black-gold .tab,
.customer-page.customer-theme-black-gold .menu-item,
.customer-page.customer-theme-black-gold .cart-item,
.customer-page.customer-theme-black-gold .recommendation-card,
.customer-page.customer-theme-black-gold input,
.customer-page.customer-theme-black-gold select,
.customer-page.customer-theme-black-gold textarea {
  background: #20170e;
  border-color: rgba(255, 196, 87, 0.22);
}

.customer-page.customer-theme-black-gold .menu-item,
.customer-page.customer-theme-black-gold .recommendation-card {
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

.customer-page.customer-theme-black-gold .food-photo,
.customer-page.customer-theme-black-gold .food-image,
.customer-page.customer-theme-black-gold .empty-state,
.customer-page.customer-theme-black-gold .summary-section pre,
.customer-page.customer-theme-black-gold .payment-qr-box {
  background: #100d09;
  border-color: rgba(255, 196, 87, 0.2);
}

.customer-page.customer-theme-black-gold .primary-button,
.customer-page.customer-theme-black-gold .floating-cart-button,
.customer-page.customer-theme-black-gold .tab.active,
.customer-page.customer-theme-black-gold .add-button,
.customer-page.customer-theme-black-gold .table-badge,
.customer-page.customer-theme-black-gold .language-toggle button.active {
  color: #17100a;
  background: #ffd166;
  border-color: #ffd166;
}

.customer-page.customer-theme-black-gold .secondary-button,
.customer-page.customer-theme-black-gold .qty-button {
  color: #ffd166;
  background: #2b1d10;
  border-color: rgba(255, 196, 87, 0.24);
}

.customer-page.customer-theme-black-gold .remove-button {
  background: #d92d20;
}

.customer-page.customer-theme-black-gold .store-logo {
  color: #17100a;
  background: #ffd166;
  box-shadow: 0 8px 20px rgba(255, 209, 102, 0.22);
}

.admin-page-body.admin-theme-black-gold {
  --bg: #0f0d0a;
  --panel: #18130d;
  --text: #fff7e8;
  --muted: #d1c0a3;
  --line: rgba(255, 196, 87, 0.22);
  --brand: #ffd166;
  --brand-dark: #8f5115;
  --soft: #2b1d10;
  background: #0f0d0a;
}

.admin-page-body.admin-theme-black-gold .topbar,
.admin-page-body.admin-theme-black-gold .admin-sidebar,
.admin-page-body.admin-theme-black-gold .admin-nav-button,
.admin-page-body.admin-theme-black-gold input,
.admin-page-body.admin-theme-black-gold select,
.admin-page-body.admin-theme-black-gold textarea,
.admin-page-body.admin-theme-black-gold .check-label,
.admin-page-body.admin-theme-black-gold .empty-state,
.admin-page-body.admin-theme-black-gold .image-preview,
.admin-page-body.admin-theme-black-gold .order-actions,
.admin-page-body.admin-theme-black-gold .admin-food-card,
.admin-page-body.admin-theme-black-gold .order-card-main,
.admin-page-body.admin-theme-black-gold .order-tabs,
.admin-page-body.admin-theme-black-gold .order-tab {
  color: var(--text);
  background: #18130d;
  border-color: var(--line);
}

.admin-page-body.admin-theme-black-gold .intro,
.admin-page-body.admin-theme-black-gold .admin-section,
.admin-page-body.admin-theme-black-gold .orders-section,
.admin-page-body.admin-theme-black-gold .stat-card,
.admin-page-body.admin-theme-black-gold .order-card,
.admin-page-body.admin-theme-black-gold .admin-hero {
  color: var(--text);
  background: #18130d;
  border-color: var(--line);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.admin-page-body.admin-theme-black-gold .admin-link,
.admin-page-body.admin-theme-black-gold .secondary-button {
  color: #ffd166;
  background: #2b1d10;
}

.admin-page-body.admin-theme-black-gold .primary-button,
.admin-page-body.admin-theme-black-gold .admin-nav-button.active,
.admin-page-body.admin-theme-black-gold .order-tab.active {
  color: #17100a;
  background: #ffd166;
  border-color: #ffd166;
}

.store-preview-card.theme-preview-blackGold {
  color: #fff7e8;
  background: #18130d;
  border-color: rgba(255, 196, 87, 0.28);
}

.store-preview-card.theme-preview-blackGold p {
  color: #d7c6a6;
}

.store-preview-card.theme-preview-blackGold .store-logo {
  color: #17100a;
  background: #ffd166;
}

.recommendation-items-editor {
  display: grid;
  gap: 14px;
}

.recommendation-items-editor.empty-state {
  padding: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.recommendation-editor-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.recommendation-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.compact-toggle {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
}

.recommendation-editor-image {
  min-height: 110px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: var(--muted);
  overflow: hidden;
}

.recommendation-editor-image.has-image {
  border-style: solid;
  background: rgba(0, 0, 0, 0.25);
}

.recommendation-editor-image img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
}

/* Mobile-first customer flow cleanup */
.customer-page .storefront-banner {
  display: none !important;
}

.customer-page #cartSection {
  display: none;
}

.customer-page .table-badge {
  display: grid;
  grid-template-columns: auto minmax(86px, 126px);
  align-items: center;
  gap: 6px;
  min-height: 54px;
  padding: 8px 10px;
}

.customer-page .table-badge input {
  width: 100%;
  min-height: 32px;
  padding: 0 8px;
  border-radius: 10px;
  text-align: center;
  font-size: 15px;
  font-weight: 900;
}

.customer-page .table-badge strong {
  display: none;
}

.customer-page .ordering-shell {
  display: block;
}

.customer-page .ordering-shell .category-tabs {
  position: static;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-height: none;
  overflow: visible;
  margin: 0 0 12px;
  padding: 0;
}

.customer-page .tab {
  min-height: 58px;
  padding: 10px 8px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 900;
}

.customer-page .menu-section {
  padding: 12px;
}

.customer-page .recommendation-section {
  padding: 12px;
  border-radius: 14px;
}

.customer-page .recommendation-head {
  display: grid;
  gap: 2px;
}

.customer-page .recommendation-head h2 {
  font-size: 20px;
}

.customer-page .recommendation-head p:last-child {
  margin: 0;
  font-size: 13px;
}

.customer-page .recommendation-carousel {
  min-height: 116px;
}

.customer-page .recommendation-card {
  min-height: 104px;
  padding: 10px;
}

.customer-page .recommendation-card img {
  width: 68px;
  height: 68px;
}

.customer-page .recommendation-card h3 {
  font-size: 15px;
}

.customer-page .recommendation-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.customer-page.customer-theme-classic .recommendation-section,
.customer-page.customer-theme-classic .recommendation-card {
  color: #22170c;
  background: #fff8ec;
  border-color: rgba(210, 80, 24, 0.22);
}

.customer-page.customer-theme-classic .recommendation-card strong,
.customer-page.customer-theme-classic .recommendation-head .eyebrow {
  color: #d6471f;
}

.customer-page.customer-theme-clean-white .recommendation-section,
.customer-page.customer-theme-clean-white .recommendation-card {
  color: #191919;
  background: #ffffff;
  border-color: rgba(20, 20, 20, 0.12);
}

.customer-page.customer-theme-clean-white .recommendation-card p,
.customer-page.customer-theme-clean-white .recommendation-head p {
  color: #555;
}

.customer-page.customer-theme-clean-white .recommendation-card strong,
.customer-page.customer-theme-clean-white .recommendation-head .eyebrow {
  color: #b7791f;
}

.customer-page.customer-theme-black-gold .recommendation-section {
  color: #fff7e8;
  background: #18130d;
  border-color: rgba(255, 196, 87, 0.25);
}

.customer-page.customer-theme-black-gold .recommendation-card {
  color: #fff7e8;
  background: #20170e;
  border-color: rgba(255, 196, 87, 0.22);
}

@media (max-width: 520px) {
  .customer-page main {
    padding-inline: 10px;
  }

  .customer-page .topbar {
    gap: 10px;
    padding: 52px 12px 12px;
  }

  .customer-page .topbar-actions {
    left: 10px;
    right: 10px;
  }

  .customer-page .ordering-shell .category-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customer-page .tab {
    min-height: 56px;
    font-size: 16px;
  }

  .customer-page .menu-item {
    grid-template-columns: 76px minmax(0, 1fr);
    min-height: 106px;
  }

  .customer-page .food-photo,
  .customer-page .food-image {
    width: 76px;
    height: 86px;
  }
}
