:root {
  color-scheme: light;
  --ink: #1f2622;
  --muted: #5c665f;
  --paper: #f7f3ea;
  --surface: #fffaf0;
  --line: #d9d0bf;
  --green: #2f6b45;
  --green-dark: #214d33;
  --red: #9c3328;
  --gold: #b7791f;
  --blue: #315d7d;
  --purple: #7a4a9f;
  --orange: #c45d00;
  --shadow: 0 18px 50px rgba(31, 38, 34, 0.13);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  background: var(--paper);
  color: var(--ink);
}

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

.display-shell {
  height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(rgba(47, 107, 69, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 107, 69, 0.06) 1px, transparent 1px),
    var(--paper);
  background-size: 42px 42px;
}

.display-app {
  width: min(1180px, calc(100vw - 48px));
  height: 100vh;
  margin: 0 auto;
  padding: 20px 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.display-header,
.category-header,
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-shrink: 0;
}

.brand-block h1,
.category-title h1,
.error-state h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.tagline {
  max-width: 760px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: clamp(14px, 1.6vw, 22px);
  line-height: 1.2;
}

/* ── Admin lock button (kiosk overlay) ───────────────────────────────────── */

.admin-lock-btn {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 100;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(31, 38, 34, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.55);
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}

.admin-lock-btn:hover {
  background: rgba(31, 38, 34, 0.5);
  color: #fff;
}

.admin-lock-btn svg {
  width: 20px;
  height: 20px;
}

.status-pill,
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  background: var(--surface);
  color: var(--green-dark);
  font-weight: 800;
  white-space: nowrap;
}

/* ── Home category grid ──────────────────────────────────────────────────── */

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
  flex: 1;
  min-height: 0;
}

.category-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
}

.category-tile:focus-visible,
.back-link:focus-visible,
.button:focus-visible,
.list-row:focus-visible {
  outline: 4px solid rgba(47, 107, 69, 0.34);
  outline-offset: 3px;
}

.category-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1;
}

.category-description {
  color: var(--muted);
  font-size: 22px;
  line-height: 1.25;
}

.display-footer {
  margin-top: auto;
  padding-top: 10px;
  color: var(--muted);
  font-size: 16px;
  text-align: center;
  flex-shrink: 0;
}

/* ── Menu home ───────────────────────────────────────────────────────────── */

.menu-home {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* ── Category page with brand columns ────────────────────────────────────── */

.category-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 94px;
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

/* Wrapper that holds .sections and fills remaining height */
.category-content {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Brand columns — flexbox so each brand is its own column */
.sections {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 16px;
  flex: 1;
  min-height: 0;
}

.menu-section {
  flex: 1;
  min-width: 0;
  border-top: 3px solid var(--green);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.menu-section h2 {
  margin: 0 0 4px;
  font-size: clamp(16px, 2vw, 26px);
  line-height: 1;
  flex-shrink: 0;
}

.section-description,
.empty-inline {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
  flex-shrink: 0;
}

.item-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
}

/* ── Page navigation (brand columns pagination) ──────────────────────────── */

.page-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 8px 0 2px;
  flex-shrink: 0;
}

.page-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 28px;
  font-weight: 900;
  cursor: pointer;
  line-height: 1;
  transition: opacity 0.15s;
}

.page-nav-btn:disabled {
  opacity: 0.25;
  cursor: default;
}

.page-indicator {
  color: var(--muted);
  font-size: 18px;
  font-weight: 700;
  min-width: 56px;
  text-align: center;
}

/* ── Menu items ──────────────────────────────────────────────────────────── */

.menu-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

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

.item-title-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.item-title-line h3 {
  margin: 0;
  font-size: clamp(14px, 1.6vw, 20px);
  line-height: 1.15;
}

.price {
  color: var(--green-dark);
  font-size: clamp(14px, 1.6vw, 20px);
  font-weight: 900;
  white-space: nowrap;
  flex-shrink: 0;
}

.item-description {
  margin: 0;
  color: var(--muted);
  font-size: clamp(11px, 1.1vw, 14px);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Quantity chips ──────────────────────────────────────────────────────── */

.qty-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
}

.qty-chip {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  white-space: nowrap;
}

/* ── Badges / tags ───────────────────────────────────────────────────────── */

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.badge {
  min-height: 20px;
  padding: 2px 8px;
  font-size: 11px;
}

.badge-new {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
}

.badge-indica {
  color: #fff;
  border-color: var(--purple);
  background: var(--purple);
}

.badge-sativa {
  color: #fff;
  border-color: var(--orange);
  background: var(--orange);
}

.badge-hybrid {
  color: #fff;
  border-color: var(--green-dark);
  background: var(--green-dark);
}

.badge-sale {
  color: #fff;
  border-color: var(--red);
  background: var(--red);
}

/* ── Error / empty states ────────────────────────────────────────────────── */

.empty-state,
.error-state {
  margin-top: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 36px;
  background: var(--surface);
  color: var(--muted);
  font-size: 28px;
}

/* ── Item detail overlay ─────────────────────────────────────────────────── */

.menu-item {
  cursor: pointer;
  transition: background 0.12s;
}

.menu-item:hover {
  background: rgba(47, 107, 69, 0.06);
  border-radius: 8px;
}

.item-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 26, 22, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.item-detail-card {
  background: var(--surface);
  border-radius: 18px;
  padding: 0;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 32px 80px rgba(20, 26, 22, 0.4);
  overflow: hidden;
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
}

.detail-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.item-detail-card h2.detail-name,
.item-detail-card p,
.item-detail-card .detail-qty-list,
.item-detail-card .badges {
  padding-left: 24px;
  padding-right: 24px;
}

.detail-name {
  font-size: 22px;
  font-weight: 800;
  margin: 20px 0 2px;
  font-family: Georgia, "Times New Roman", serif;
}

.detail-brand {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 10px;
}

.detail-description {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 14px;
}

.detail-qty-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 16px;
  overflow-y: auto;
}

.detail-qty-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  background: var(--paper);
  border-radius: 7px;
  border: 1px solid var(--line);
}

.detail-qty-label {
  font-size: 14px;
  font-weight: 600;
}

.detail-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--green-dark);
}

.item-detail-card .badges {
  padding-bottom: 22px;
}

/* ── Admin: item image upload ────────────────────────────────────────────── */

.item-image-preview {
  display: block;
  width: 100%;
  max-height: 160px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 6px;
  border: 1px solid var(--line);
}

.image-file-input {
  font-size: 13px;
  width: 100%;
}

/* ── Admin shell ─────────────────────────────────────────────────────────── */

.admin-shell {
  min-height: 100vh;
  overflow-y: auto;
  background: #eef1ed;
}

.admin-app {
  width: min(1440px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.login-panel {
  border: 1px solid #cfd6ce;
  border-radius: 8px;
  background: #fbfcf8;
  box-shadow: 0 12px 40px rgba(31, 38, 34, 0.08);
  width: min(460px, calc(100vw - 32px));
  margin: 12vh auto 0;
  padding: 28px;
  display: grid;
  gap: 12px;
}

.login-panel h1 { margin: 0; }

.pw-toggle {
  position: absolute;
  right: 8px;
  bottom: 6px;
  font-size: 12px;
  padding: 3px 8px;
  border: 1px solid #cfd6ce;
  border-radius: 4px;
  background: #fbfcf8;
  color: var(--muted);
  cursor: pointer;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  margin-bottom: 16px;
}

.admin-header h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
}

.header-actions,
.button-row,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.header-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-height: 0;
  padding: 0;
  border: 1px solid #cfd6ce;
  border-radius: 8px;
  background: #fbfcf8;
  color: var(--ink);
  font-size: 20px;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle-btn:hover { background: #e8ede7; }

/* ── Content fills full width; nav is an off-canvas drawer ───────────────── */

.admin-layout {
  position: relative;
}

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 26, 22, 0.4);
  z-index: 250;
}

.admin-layout.nav-open .nav-backdrop {
  display: block;
}

/* ── Left nav (off-canvas drawer) ────────────────────────────────────────── */

.admin-nav {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 240px;
  border: 1px solid #cfd6ce;
  border-right: 1px solid #cfd6ce;
  border-radius: 0;
  background: #fbfcf8;
  box-shadow: 0 4px 16px rgba(31, 38, 34, 0.07);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow-y: auto;
  z-index: 260;
  transform: translateX(-100%);
  transition: transform 0.2s ease;
}

.admin-layout.nav-open .admin-nav {
  transform: translateX(0);
}

.nav-btn {
  width: 100%;
  text-align: left;
  padding: 11px 14px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.1s;
}

.nav-btn:hover { background: #e8ede7; }

.nav-btn.active {
  background: #e0ece1;
  color: var(--green-dark);
}

.nav-section-label {
  padding: 11px 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.nav-btn.nav-sub {
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px 8px 22px;
}

.nav-btn.nav-sub::before {
  content: '›';
  margin-right: 6px;
  opacity: 0.5;
}

.nav-btn.nav-sub.active {
  background: #e0ece1;
  color: var(--green-dark);
}

/* ── Content area ────────────────────────────────────────────────────────── */

.admin-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.page-title {
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 1;
  color: var(--ink);
}

/* ── Shared panel card ───────────────────────────────────────────────────── */

.admin-panel {
  border: 1px solid #cfd6ce;
  border-radius: 10px;
  background: #fbfcf8;
  box-shadow: 0 4px 16px rgba(31, 38, 34, 0.07);
  padding: 18px;
  display: grid;
  gap: 12px;
}

.admin-panel h3 { margin: 0; font-size: 15px; }

.add-panel { margin-top: 4px; }

/* ── Items page: category tabs ───────────────────────────────────────────── */

.cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.cat-tab {
  padding: 8px 16px;
  border: 1px solid #cfd6ce;
  border-radius: 999px;
  background: #fbfcf8;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.cat-tab:hover { background: #e8ede7; }

.cat-tab.active {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

/* ── Items page: brand filter chips ─────────────────────────────────────── */

.brand-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 0 4px;
}

.filter-chip {
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid #cfd6ce;
  background: #fbfcf8;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  line-height: 1;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.filter-chip:hover {
  border-color: var(--green);
  color: var(--green);
}

.filter-chip.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

/* ── Items page: search bar ──────────────────────────────────────────────── */

.item-search {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 420px;
  padding: 8px 12px;
  border: 1px solid #cfd6ce;
  border-radius: 8px;
  background: #fbfcf8;
  color: var(--ink);
  font-size: 14px;
  outline: none;
}

.item-search:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 107, 69, 0.12);
}

/* ── Items page: carousel toolbar ────────────────────────────────────────── */

.carousel-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.carousel-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.carousel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid #cfd6ce;
  border-radius: 8px;
  background: #fbfcf8;
  color: var(--ink);
  font-size: 26px;
  font-weight: 900;
  cursor: pointer;
  line-height: 1;
}

.carousel-btn:disabled { opacity: 0.25; cursor: default; }

.carousel-indicator {
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
  min-width: 72px;
  text-align: center;
}

/* ── Item card (carousel slide) ──────────────────────────────────────────── */

.item-card,
.item-card-empty {
  border: 1px solid #cfd6ce;
  border-radius: 10px;
  background: #fbfcf8;
  box-shadow: 0 4px 16px rgba(31, 38, 34, 0.07);
  padding: 28px;
}

.item-card-empty {
  padding: 40px;
  text-align: center;
}

.card-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 14px;
}

.card-col {
  display: grid;
  gap: 12px;
  align-content: start;
}

.card-actions {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e4ede3;
}

/* Tags fieldset + Save/Move/Delete buttons share one row, buttons right-aligned */
.tags-actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.tags-actions-row .badge-controls {
  flex: 1;
  min-width: 260px;
}

.tags-actions-row .card-actions {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  margin-left: auto;
  flex-shrink: 0;
}

/* ── Categories page ─────────────────────────────────────────────────────── */

.cat-card { gap: 10px; }

.cat-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e4ede3;
}

.cat-card-header h3 { font-size: 17px; }

/* ── Brands page ─────────────────────────────────────────────────────────── */

.brands-note { margin: 0; font-size: 13px; }

.brands-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 400px;
  overflow-y: auto;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid #e0e8df;
  border-radius: 7px;
  padding: 8px 10px;
  background: #fff;
}

.brand-row-name {
  flex: 1;
  font-weight: 700;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-row-btns {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.brand-row-btns .button {
  min-height: 30px;
  padding: 3px 8px;
  font-size: 13px;
}

.brand-del {
  font-size: 13px;
  min-height: 30px;
  padding: 3px 8px;
}

.brand-add-row {
  display: flex;
  gap: 8px;
}

.brand-add-input {
  flex: 1;
  border: 1px solid #c7d0c6;
  border-radius: 8px;
  padding: 9px 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}

/* ── Shared form fields ──────────────────────────────────────────────────── */

.field,
.check-field {
  display: grid;
  gap: 5px;
  color: #39413b;
  font-size: 13px;
  font-weight: 800;
}

.check-field {
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  font-weight: 700;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid #c7d0c6;
  border-radius: 7px;
  padding: 9px 11px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}

.field textarea {
  min-height: 72px;
  resize: vertical;
}

.badge-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border: 1px solid #d8ded6;
  border-radius: 8px;
  padding: 10px 12px;
}

.badge-controls legend {
  padding: 0 5px;
  color: #39413b;
  font-size: 13px;
  font-weight: 900;
}

/* ── Quantity + price controls ───────────────────────────────────────────── */

.qty-price-controls {
  border: 1px solid #d8ded6;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.qty-price-controls legend {
  padding: 0 5px;
  color: #39413b;
  font-size: 13px;
  font-weight: 900;
}

.qty-predefined-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2px 12px;
}

.qty-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
}

.qty-check {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  min-width: 60px;
  cursor: pointer;
}

.qty-price-input {
  width: 80px;
  padding: 3px 7px;
  border: 1px solid #cfd6ce;
  border-radius: 5px;
  background: #fbfcf8;
  font-size: 13px;
  color: var(--ink);
}

.qty-price-input:focus {
  outline: none;
  border-color: var(--green);
}

.qty-divider {
  border-top: 1px solid #d8ded6;
  margin: 8px 0 6px;
}

.custom-qty-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 6px;
}

.qty-custom-label {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
}

.qty-del-btn {
  padding: 2px 7px;
  font-size: 12px;
  line-height: 1;
  border-radius: 4px;
  flex-shrink: 0;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid #bfc8bd;
  border-radius: 8px;
  padding: 8px 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

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

.button.ghost { background: transparent; border-color: transparent; }

.button.danger { border-color: #d5b2ad; color: var(--red); }

.button.full { width: 100%; }

.button:disabled { opacity: 0.35; cursor: default; }

.notice {
  border-radius: 8px;
  padding: 9px 12px;
  background: #e5efe7;
  color: var(--green-dark);
  font-weight: 800;
  font-size: 14px;
}

.notice.error { background: #f6e5e3; color: var(--red); }

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

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  html,
  body {
    overflow: auto;
    height: auto;
  }

  .display-shell {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .display-app {
    width: min(100vw - 24px, 760px);
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .display-header,
  .category-header,
  .admin-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .menu-home,
  .category-page {
    flex: none;
    overflow: visible;
  }

  .category-content {
    flex: none;
    overflow: visible;
  }

  .category-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    flex: none;
    grid-auto-rows: auto;
  }

  .sections {
    flex-direction: column;
    flex: none;
  }

  .menu-section {
    min-height: 0;
  }

  .item-list {
    flex: none;
    height: 420px;
    min-height: 0;
  }

  .admin-nav {
    width: min(84vw, 280px);
  }
}
