﻿/* Paparosi Menu v4 — Mobile-first · Full catalog */
@import url('tokens.css');

:root {
  --wrap: var(--wrap-menu, min(1240px, 100% - 40px));
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 200px; }
body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}
.wrap { width: var(--wrap); margin-inline: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 300;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--rose-deep);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.skip-link:focus { top: 12px; outline: 2px solid var(--gold); outline-offset: 2px; }

.menu-breadcrumb {
  padding: 0 0 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}
.hero .menu-breadcrumb a { color: rgba(255, 255, 255, 0.9); }
.hero .menu-breadcrumb a:hover { color: #fff; }
.menu-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  list-style: none;
}
.menu-breadcrumb li + li::before {
  content: '/';
  margin-right: 6px;
  opacity: 0.5;
}
.menu-breadcrumb a:hover { color: var(--rose-deep); text-decoration: underline; }
.hero-logo-link { display: inline-flex; flex-shrink: 0; }

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

/* Loading */
.loading {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity 0.4s, visibility 0.4s;
}
.loading.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loading-logo-img {
  height: 48px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}
/* Lang */
.lang-toggle {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 5;
  display: flex;
  gap: 4px;
  padding: 5px;
  background: linear-gradient(135deg, #8f2217, #6f1a12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(55, 10, 10, 0.35);
}
html[dir='rtl'] .lang-toggle { right: auto; left: 14px; }
.menu-breadcrumb { padding-right: 112px; }
html[dir='rtl'] .menu-breadcrumb { padding-right: 0; padding-left: 112px; }
.lang-toggle button {
  min-width: 34px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.05em;
  transition: all 0.15s ease;
}
.lang-toggle button.active {
  background: #fff;
  color: var(--rose-deep);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 40px 0 32px;
  background:
    radial-gradient(ellipse 80% 60% at 85% 0%, rgba(212, 173, 92, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 50% at 10% 100%, rgba(255, 180, 120, 0.12), transparent 50%),
    var(--gradient-brand);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='280'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 20px;
}
.hero-brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-logo {
  height: 44px;
  width: auto;
  max-width: 150px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 6px;
}
.logo-circle {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}
.brand-info h1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: var(--tracking-display);
  line-height: var(--leading-tight);
  margin-bottom: 6px;
}
.tagline-es {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-style: italic;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: rgba(245, 217, 168, 0.9);
}
.tagline-tr, .tagline-fa {
  font-size: 13px;
  opacity: 0.9;
  margin-top: 6px;
}
.tagline-fa { font-family: var(--font-fa); }
.hero-stats {
  display: flex;
  gap: 24px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.hero-stats div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-stats strong {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--gold-bright);
}
.hero-stats span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.75;
}

/* Sticky toolbar */
.toolbar-sticky {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 243, 232, 0.92);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(26, 18, 12, 0.04);
}
.search-row { padding: 12px 0 8px; }
.search-wrap { position: relative; }
.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-faint);
  pointer-events: none;
}
html[dir='rtl'] .search-icon { left: auto; right: 14px; }
#search {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font: inherit;
  font-size: 15px;
  background: var(--paper);
  box-shadow: var(--shadow);
  outline: none;
}
html[dir='rtl'] #search { padding: 12px 42px 12px 14px; }
#search:focus { border-color: var(--rose); }

.filters {
  display: flex;
  gap: 6px;
  padding: 0 0 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.filter-chip {
  flex-shrink: 0;
  padding: 7px 14px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: all 0.15s;
}
.filter-chip.active {
  background: var(--rose-deep);
  border-color: var(--rose-deep);
  color: #fff;
}
.filter-chip:hover:not(.active) {
  background: var(--rose-light);
  border-color: var(--rose);
  color: var(--rose-deep);
}

.cat-nav {
  display: flex;
  gap: 4px;
  padding: 0 0 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: background 0.15s;
}
.cat-nav-item.active {
  background: var(--rose-light);
  color: var(--rose-deep);
}
.cat-nav-item .num {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(122, 36, 24, 0.1);
  color: var(--rose-deep);
}
body.ltr-mode .nav-fa { display: none; }
body.rtl-mode .nav-tr { display: none; }
body.bi-mode .nav-tr, body.bi-mode .nav-fa { display: inline; }

/* Main */
.main-content { padding: 18px 0 108px; }

.info-card {
  display: flex;
  gap: 12px;
  padding: 14px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fdf4e8, #fef0ec);
  border: 1px solid #e8d4a8;
  border-radius: 16px;
  font-size: 13px;
  color: var(--ink-soft);
}
.info-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--rose-deep);
  margin-bottom: 6px;
}
.info-card .note { font-size: 11px; margin-top: 8px; opacity: 0.85; }
.info-card .fa-block { font-family: var(--font-fa); margin-top: 4px; }
.info-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--rose-light);
  border-radius: 10px;
  font-size: 1.25rem;
}

/* Category */
.category {
  margin-bottom: 36px;
  scroll-margin-top: 200px;
  animation: fadeIn 0.35s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.category-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 10px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--rose-deep);
}
.category-header .icon { font-size: 22px; }
.category-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  letter-spacing: var(--tracking-display);
  color: var(--rose-deep);
}
.category-header .name-fa {
  font-family: var(--font-fa);
  font-size: 14px;
  color: var(--ink-faint);
  direction: rtl;
  font-weight: 500;
}
body.ltr-mode .name-fa { margin-inline-start: auto; }
body.rtl-mode .category-header h2 { display: none; }
body.bi-mode .name-fa { margin-inline-start: auto; }
.category-visual {
  margin: 0 0 18px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(45, 24, 16, 0.08);
}
.category-visual img {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  object-position: center 55%;
}
.category-header .count {
  margin-inline-start: auto;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--rose-light);
  color: var(--ink-faint);
}

/* Item — delivery-style card */
.item {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
  overflow: hidden;
}
.item-card-inner {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-height: 112px;
}
html[dir='rtl'] .item-card-inner {
  flex-direction: row-reverse;
}
.item-body {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
}
.item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: rgba(184, 149, 74, 0.35);
}
.item.signature {
  border-color: var(--gold);
  background: linear-gradient(135deg, #fff, #fdf8ee);
}
.item.signature::before {
  content: '\2b50 \0130mza';
  position: absolute;
  top: 8px;
  left: 14px;
  z-index: 2;
  padding: 3px 9px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  background: var(--gold);
  border-radius: 999px;
  line-height: 1.2;
  pointer-events: none;
}
html[data-ui-lang='fa'] .item.signature::before {
  content: '\2b50 \0648\06CC\0698\0647';
}
html[data-ui-lang='both'] .item.signature::before {
  content: '\2b50 \0130mza \00b7 \0648\06CC\0698\0647';
}
html[dir='rtl'] .item.signature::before { left: auto; right: 14px; }
.item.premium::after {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  z-index: 2;
}
html[dir='rtl'] .item.premium::after { left: auto; right: 10px; }
.item.signature .item-body { padding-top: 26px; }

.item-name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.item-title-wrap .name-es {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-faint);
  margin-top: 2px;
  font-style: italic;
}
.item-title-wrap .item-name-alt {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-top: 2px;
}
.item-desc {
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}
.item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
}
.item-price {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  margin-top: 2px;
}
.item-price--sale {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}
.item-price-was {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-faint);
  text-decoration: line-through;
}
.item-price-now {
  font-size: 16px;
  font-weight: 800;
  color: var(--rose-deep);
}

.item-visual {
  position: relative;
  flex-shrink: 0;
  width: 118px;
  min-height: 112px;
  background: #f5f0e8;
  border-inline-start: 1px solid var(--line);
}
.item-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 112px;
  object-fit: cover;
  object-position: center;
}
.item-visual-action {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 3;
}
html[dir='rtl'] .item-visual-action {
  right: auto;
  left: 8px;
}

.item-photo-admin {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: rgba(45, 24, 16, 0.35);
  opacity: 0;
  transition: opacity 0.15s;
}
.item-photo-admin:hover,
.item-photo-admin:focus-within {
  opacity: 1;
}
.admin-menu-mode .item-photo-admin {
  opacity: 1;
  background: rgba(45, 24, 16, 0.28);
}
.item-photo-admin-hint {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--rose-deep);
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.item-add-fab {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: var(--ink);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  display: grid;
  place-items: center;
}
.item-add-fab:hover { background: var(--rose-deep); color: #fff; }
.item-add-fab:active { transform: scale(0.95); }

.item-wa-fab {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  background: #fff;
  color: var(--rose-deep);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.badge {
  display: inline-block;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 5px;
  font-weight: 600;
  line-height: 1.5;
}
.badge.vegan { background: #dcefdc; color: #2d6b2d; }
.badge.veg { background: #f0e8d6; color: #7a6520; }
.badge.spice { background: #fde4df; color: var(--rose-deep); }
.badge.sig { background: var(--gold); color: #fff; }
.badge.prem { background: #2d2d2d; color: #fff; }
.badge.kids { background: #e8f0ff; color: #3a5a8a; }
.badge.share { background: var(--rose-light); color: var(--rose-deep); }
.badge.line { background: #f0e2bf; color: #6b5020; }
.badge.sub { background: var(--bg); color: var(--ink-faint); }

.item-price-col {
  text-align: end;
  flex-shrink: 0;
}
/* legacy — kept for any older markup */
.item-price-col .item-price {
  padding: 5px 11px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  background: var(--rose-light);
  color: var(--rose-deep);
}
.item-wa {
  display: inline-block;
  margin-top: 6px;
  padding: 5px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--wa);
  border-radius: 100px;
  transition: background 0.15s;
}
.item-wa:hover { background: #1eb555; }

.desc {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-top: 4px;
}
.desc.fa {
  font-family: var(--font-fa);
  direction: rtl;
  text-align: right;
  padding-top: 6px;
  margin-top: 6px;
  border-top: 1px dashed var(--border);
  line-height: 1.75;
}
body.rtl-mode .desc:not(.fa) { display: none; }
body.rtl-mode .desc.fa { border-top: none; margin-top: 4px; padding-top: 0; }
body.ltr-mode .desc.fa { display: none; }

.item-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.allergen-tag {
  font-size: 10px;
  padding: 2px 6px;
  background: var(--bg);
  color: var(--ink-faint);
  border-radius: 4px;
  font-weight: 600;
  border: 1px solid var(--border);
}

/* Blocks */
.block-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--rose-deep);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.extras-block, .allergen-block {
  margin-top: 32px;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.extras-list li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14px;
}
.extras-list li:last-child { border-bottom: none; }
.allergen-legend {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}
.allergen-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-soft);
}
.allergen-legend .code {
  font-weight: 700;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  background: var(--rose-light);
  color: var(--rose-deep);
  border-radius: 4px;
  font-size: 11px;
}

.empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--ink-faint);
  font-size: 14px;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 32px 16px 48px;
  background: var(--paper-warm);
  border-top: 1px solid var(--border);
}
.footer-logo-img {
  display: block;
  height: 32px;
  width: auto;
  margin: 0 auto 10px;
  object-fit: contain;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 700;
  color: var(--rose-deep);
}
.footer-tag {
  font-size: 12px;
  color: var(--ink-faint);
  margin-top: 6px;
}
.footer-meta {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin-top: 8px;
}
.footer-meta a:hover { color: var(--rose-deep); }
.footer-address {
  font-size: 11px;
  color: var(--ink-soft);
  margin-top: 6px;
  line-height: 1.5;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  margin: 10px 0;
  font-size: 12px;
}
.footer-nav a:hover { color: var(--rose-deep); }
.footer-copy {
  font-size: 11px;
  color: var(--ink-faint);
  margin-top: 6px;
}
.menu-site-footer { margin-top: 2rem; }
.footer-wa {
  display: inline-flex;
  margin-top: 16px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  background: var(--wa);
  border-radius: 100px;
}

.float-wa {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 90;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--wa);
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s;
}
html[dir='rtl'] .float-wa { right: auto; left: 20px; }
.float-wa:hover { transform: scale(1.06); }

/* Desktop */
@media (min-width: 900px) {
  :root { --wrap: min(800px, 100% - 48px); }
  .hero-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  .hero-stats { border: none; padding-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* Dine-in · cart · coming soon */
body.dine-in-mode { padding-bottom: 76px; }
body.dine-in-mode .float-wa { display: none; }

.info-dinein {
  background: linear-gradient(135deg, #fef8ee, #fff);
  border-color: var(--gold);
}
.info-prelaunch {
  background: linear-gradient(135deg, #f5ebe0, #fff8ee);
  border-color: var(--gold);
  border-left: 4px solid var(--rose-deep);
}
.info-prelaunch .info-icon { background: var(--rose-deep); color: #fff; }

.item-admin-inactive {
  opacity: 0.72;
  border-style: dashed;
  border-color: #b8954a;
  background: #faf6ed;
}
.item-inactive-badge {
  display: inline-block;
  margin-bottom: 4px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #7a2418;
  background: #f5e6c8;
  border-radius: 6px;
}

.staff-login-bar {
  background: linear-gradient(90deg, #f5ebe3 0%, #efe4dc 100%);
  border-bottom: 1px solid rgba(122, 36, 24, 0.12);
  padding: 10px 0;
  font-size: 13px;
  color: var(--ink-soft, #4a3728);
}
.staff-login-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.staff-login-btn {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 8px;
  background: var(--rose, #7a2418);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  font-size: 13px;
}
.staff-login-btn:hover { filter: brightness(1.08); }

.admin-menu-bar {
  background: #2d1810;
  color: #f5e6c8;
  padding: 10px 0;
  font-size: 13px;
  border-bottom: 2px solid var(--gold);
}
.admin-menu-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}
.admin-menu-bar strong { color: #fff; }
.admin-menu-exit {
  margin-inline-start: auto;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}
.admin-menu-export {
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}
.admin-menu-export:hover { background: rgba(255, 255, 255, 0.28); }
.admin-menu-exit:hover { background: rgba(255, 255, 255, 0.22); }
.admin-menu-hint {
  margin: 6px auto 0;
  padding-bottom: 8px;
  font-size: 11px;
  opacity: 0.75;
}

.item-unavailable {
  opacity: 0.72;
  position: relative;
}
.item-unavailable .item-price {
  background: var(--bg);
  color: var(--ink-faint);
}
.item-soon {
  display: inline-block;
  margin-top: 6px;
  padding: 5px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: 100px;
}
.item-add {
  display: inline-block;
  margin-top: 6px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--rose-deep);
  border-radius: 100px;
  transition: background 0.15s, transform 0.1s;
}
.item-add:hover { background: var(--rose); }
.item-add:active { transform: scale(0.97); }

.category-soon .category-header { opacity: 0.85; }
.cat-soon-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
  background: var(--bg);
  color: var(--ink-faint);
  border: 1px dashed var(--border);
  margin-inline-start: 6px;
}
.cat-nav-item.cat-soon { opacity: 0.55; }

.cart-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 95;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--paper);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(122, 36, 24, 0.1);
}
.cart-bar-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--rose-deep);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}
.cart-bar-count {
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  font-size: 12px;
}
.cart-bar-total { margin-inline-start: auto; font-weight: 700; }

.cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 96;
  display: none;
  background: rgba(31, 22, 16, 0.45);
}
.cart-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 97;
  max-height: min(85vh, 560px);
  display: none;
  flex-direction: column;
  background: var(--paper);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.15);
}
.cart-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.cart-panel-head h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--rose-deep);
}
.cart-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--ink-soft);
}
.cart-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 20px;
}
.cart-empty {
  text-align: center;
  color: var(--ink-faint);
  font-size: 14px;
  padding: 24px 0;
}
.cart-lines { display: grid; gap: 10px; }
.cart-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
}
.cart-line-name { font-weight: 600; font-size: 14px; display: block; }
.cart-line-price { font-size: 13px; color: var(--rose-deep); font-weight: 700; }
.cart-line-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.cart-qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--rose-light);
  color: var(--rose-deep);
  font-size: 1.1rem;
  font-weight: 700;
}
.cart-panel-foot {
  padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: var(--paper-warm);
}
.cart-payment-note {
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 10px;
  line-height: 1.5;
}
.cart-table-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-faint);
  margin-bottom: 4px;
}
.cart-table-input {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  background: var(--paper);
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 15px;
}
.cart-total-row strong {
  font-size: 1.15rem;
  color: var(--rose-deep);
}
.cart-submit {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  background: var(--rose-deep);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}
.cart-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.cart-submit:not(:disabled):hover { background: var(--rose); }

.order-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(31, 22, 16, 0.5);
}
.order-modal.is-open,
.order-modal:not([hidden]) {
  display: grid;
}
body.order-open { overflow: hidden; }

.cart-backdrop[hidden],
.cart-panel[hidden],
.order-modal[hidden] {
  display: none !important;
}
.cart-backdrop.is-open,
.cart-panel.is-open {
  display: block;
}
.cart-panel.is-open {
  display: flex;
}
.order-modal-box {
  width: min(360px, 100%);
  padding: 28px 24px;
  text-align: center;
  background: var(--paper);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
}
.order-modal-icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #dcefdc;
  color: #2d6b2d;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.order-modal-box h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--rose-deep);
  margin-bottom: 8px;
}
.order-modal-no {
  font-size: 14px;
  margin-bottom: 8px;
}
.order-modal-note {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 16px;
  line-height: 1.5;
}
.order-modal-btn {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  background: var(--rose-deep);
  color: #fff;
  font-weight: 600;
}

.item-foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}
.item-nutrition {
  margin-inline-start: auto;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #f8f4ee;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.item-nutrition:hover {
  background: #efe6d8;
  color: var(--rose-deep);
}

.nutrition-modal {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: none;
  place-items: center;
  padding: 16px;
  background: rgba(31, 22, 16, 0.55);
}
.nutrition-modal.is-open,
.nutrition-modal:not([hidden]) {
  display: grid;
}
body.nutrition-open { overflow: hidden; }
.nutrition-modal[hidden] { display: none !important; }

.nutrition-modal-box {
  width: min(440px, 100%);
  max-height: min(86vh, 680px);
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.nutrition-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 10px;
  border-bottom: 1px solid var(--line);
}
.nutrition-modal-head h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--rose-deep);
}
.nutrition-modal-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f3ece2;
  color: var(--ink-soft);
  font-size: 22px;
  line-height: 1;
}
.nutrition-modal-body {
  padding: 12px 18px 8px;
  overflow: auto;
}
.nutrition-item-name {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
}
.nutrition-portion {
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.nutrition-macros {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.nutrition-macro {
  padding: 10px 8px;
  border-radius: 12px;
  background: #faf6ef;
  border: 1px solid var(--line);
  text-align: center;
}
.nutrition-macro-val {
  display: block;
  font-weight: 700;
  font-size: 14px;
  color: var(--rose-deep);
}
.nutrition-macro-label {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  color: var(--ink-soft);
}
.nutrition-estimate {
  font-size: 11px;
  color: var(--ink-faint);
  margin-bottom: 10px;
}
.nutrition-section {
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.nutrition-section h3 {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
}
.nutrition-section ul {
  margin: 0;
  padding-inline-start: 18px;
  font-size: 12px;
  line-height: 1.45;
}
.nutrition-section.nutrition-good {
  background: #f2f8f2;
  border-color: #cfe3cf;
}
.nutrition-section.nutrition-caution {
  background: #fff8eb;
  border-color: #ecd9a8;
}
.nutrition-section.nutrition-not {
  background: #fff1f1;
  border-color: #e8c4c4;
}
.nutrition-empty {
  font-size: 13px;
  color: var(--ink-soft);
  padding: 8px 0 12px;
}
.nutrition-disclaimer {
  padding: 10px 18px 14px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  line-height: 1.45;
  color: var(--ink-faint);
}

@media (max-width: 480px) {
  :root { --wrap: min(100% - 18px, 820px); }
  .hero { padding-top: 30px; }
  .menu-breadcrumb { padding-right: 96px; }
  html[dir='rtl'] .menu-breadcrumb { padding-left: 96px; padding-right: 0; }
  .hero-stats { gap: 14px; }
  .hero-stats strong { font-size: 1.25rem; }
  .toolbar-sticky { top: 0; }
  .search-row { padding: 10px 0 7px; }
  #search { font-size: 14px; }
  .cat-nav-item { padding: 7px 10px; font-size: 12px; }
  .main-content { padding-top: 14px; }
  .category { margin-bottom: 26px; }
  .category-header { margin-bottom: 10px; }
  .category-visual { margin-bottom: 12px; }
  .item-visual { width: 98px; min-height: 104px; }
  .item-visual img { min-height: 104px; }
  .item-body { padding: 10px 12px; }
  .item-name { font-size: 14px; }
  .item-price { font-size: 14px; }
  .item-desc { font-size: 11px; -webkit-line-clamp: 2; }
  .item-nutrition { padding: 5px 8px; font-size: 10px; }
  .item-add-fab { width: 32px; height: 32px; font-size: 20px; }
  .hero-logo { height: 36px; }
  .lang-toggle { top: 8px; right: 8px; }
  .lang-toggle button { min-width: 30px; padding: 4px 8px; font-size: 11px; }
  .menu-breadcrumb { padding-right: 88px; }
  html[dir='rtl'] .menu-breadcrumb { padding-left: 88px; padding-right: 0; }
}

@media (min-width: 600px) {
  .cart-panel {
    left: auto;
    right: 16px;
    bottom: 80px;
    width: min(400px, calc(100% - 32px));
    border-radius: 20px;
    max-height: min(70vh, 520px);
  }
}

@media (min-width: 768px) {
  :root { --wrap: min(980px, 100% - 34px); }
  .hero { padding: 42px 0 30px; }
  .hero-inner { gap: 24px; }
  .search-row { padding-top: 14px; }
  .category { margin-bottom: 34px; }
  .item-card-inner { min-height: 124px; }
  .item-visual { width: 132px; min-height: 124px; }
  .item-visual img { min-height: 124px; }
  .item-desc { -webkit-line-clamp: 3; }
}

@media (min-width: 1100px) {
  :root { --wrap: min(1280px, 100% - 64px); }
  .hero-inner {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
  .hero-stats {
    border-top: none;
    padding-top: 0;
    justify-content: flex-end;
  }
  .main-content { padding-top: 28px; padding-bottom: 120px; }
  .category {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
  }
  .category > .category-header,
  .category > .category-visual {
    grid-column: 1 / -1;
  }
  .category-visual img { max-height: 260px; }
  .item-card-inner { min-height: 132px; }
  .item-visual { width: 148px; min-height: 132px; }
  .item-visual img { min-height: 132px; }
  .item-name { font-size: 16px; }
  .item-price { font-size: 16px; }
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
