/* Shared food menu modal — theme via --fm-* */
.fm-root {
  --fm-bg: #f6f1e8;
  --fm-panel: #fff;
  --fm-ink: #1c1914;
  --fm-muted: #7a7368;
  --fm-accent: #1e3a2f;
  --fm-gold: #c4a056;
  --fm-line: rgba(28, 25, 20, .1);
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .28s ease, visibility .28s ease;
}
.fm-root.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.fm-root__veil {
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 6, .62);
  backdrop-filter: blur(5px);
}
.fm {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  max-height: min(90vh, 820px);
  background: var(--fm-bg);
  color: var(--fm-ink);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .35);
  transform: translateY(16px) scale(.97);
  transition: transform .32s cubic-bezier(.22, 1, .36, 1);
}
.fm-root.is-open .fm { transform: none; }

.fm__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px 12px;
  background: var(--fm-panel);
  border-bottom: 1px solid var(--fm-line);
}
.fm__head h2 {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 900;
  color: var(--fm-accent);
}
.fm__head p {
  margin: 0;
  font-size: 13px;
  color: var(--fm-muted);
}
.fm__close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--fm-accent);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform .2s ease, filter .2s ease;
}
.fm__close:hover { transform: scale(1.06); filter: brightness(1.08); }

.fm__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 22px;
  background: var(--fm-panel);
  border-bottom: 1px solid var(--fm-line);
}
.fm__tab {
  border: 1px solid var(--fm-line);
  background: transparent;
  color: var(--fm-ink);
  border-radius: 999px;
  padding: 7px 14px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.fm__tab:hover { transform: translateY(-1px); border-color: var(--fm-gold); }
.fm__tab.is-on {
  background: var(--fm-accent);
  color: #fff;
  border-color: var(--fm-accent);
}

.fm__body {
  padding: 18px 22px 24px;
  overflow: auto;
}
.fm__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.fm__card {
  background: var(--fm-panel);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.fm__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, .1);
}
.fm__card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}
.fm__card figcaption {
  padding: 10px 12px 12px;
}
.fm__card b {
  display: block;
  font-size: 13.5px;
  margin-bottom: 4px;
  line-height: 1.4;
}
.fm__card small {
  color: var(--fm-gold);
  font-size: 12.5px;
  font-weight: 800;
}
.fm__empty {
  text-align: center;
  color: var(--fm-muted);
  padding: 40px 12px;
  margin: 0;
}

body.fm-lock { overflow: hidden; }

@media (max-width: 900px) {
  .fm__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .fm__grid { grid-template-columns: repeat(2, 1fr); }
  .fm__card img { height: 100px; }
  .fm__head h2 { font-size: 20px; }
}
