/* Menu template demos — 5 distinct designs */
.template-demo {
  background: var(--grey-100);
  min-height: 100vh;
}

.template-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: #fff;
  border-bottom: 1px solid var(--grey-200);
  box-shadow: var(--shadow);
}

.template-bar__back {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
}

.template-bar__back:hover { color: var(--gold-dark); }

.template-bar__label {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--grey-600);
}

.template-bar__switch {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--grey-600);
}

.template-bar__switch a {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--grey-100);
  font-weight: 700;
  font-size: 0.75rem;
}

.template-bar__switch a.active,
.template-bar__switch a:hover {
  background: var(--gold);
  color: var(--navy);
}

.template-menu {
  max-width: 480px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.template-menu__inner {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.template-menu__brand {
  text-align: center;
  padding: 2rem 1.5rem 1.5rem;
}

.template-menu__logo {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 12px;
}

.template-menu__brand h1 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.template-menu__brand p {
  font-size: 0.8125rem;
  opacity: 0.7;
}

.template-menu__category {
  padding: 0 1.25rem 1.25rem;
}

.template-menu__category h2 {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 1rem 0 0.75rem;
  border-bottom: 2px solid;
  margin-bottom: 0.5rem;
}

.template-menu__item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.template-menu__item h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.template-menu__item p {
  font-size: 0.8125rem;
  opacity: 0.65;
  line-height: 1.4;
}

.template-menu__price {
  font-weight: 800;
  font-size: 0.9rem;
  white-space: nowrap;
}

.template-menu__footer {
  text-align: center;
  padding: 1.25rem;
  font-size: 0.75rem;
  opacity: 0.6;
}

.template-menu__footer a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
}

/* Template 1 — Classic Gold & Navy */
.template-classic .template-menu__inner {
  background: #fff;
  color: var(--navy);
}

.template-classic .template-menu__logo {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
}

.template-classic .template-menu__brand {
  background: var(--navy);
  color: #fff;
}

.template-classic .template-menu__brand p { color: var(--gold-light); }

.template-classic .template-menu__category h2 {
  color: var(--gold-dark);
  border-color: var(--gold);
}

.template-classic .template-menu__price { color: var(--gold-dark); }

.template-classic .template-menu__footer {
  background: var(--grey-50);
}

/* Template 2 — Dark Lounge */
.template-lounge {
  background: #0a0612;
}

.template-lounge .template-bar { background: #120a1f; color: #fff; border-color: #2a1a40; }
.template-lounge .template-bar__back { color: #e8d4ff; }
.template-lounge .template-bar__label { color: #a78bc4; }

.template-lounge .template-menu__inner {
  background: linear-gradient(180deg, #1a0f2e 0%, #0f0818 100%);
  color: #f0e6ff;
  border: 1px solid #3d2060;
}

.template-lounge .template-menu__logo {
  background: linear-gradient(135deg, #9b59b6, #6c3483);
  box-shadow: 0 0 24px rgba(155, 89, 182, 0.4);
}

.template-lounge .template-menu__brand h1 {
  background: linear-gradient(90deg, #e8d4ff, #c39bd3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.template-lounge .template-menu__category h2 {
  color: #bb86fc;
  border-color: #6c3483;
}

.template-lounge .template-menu__price { color: #d4a5ff; }

.template-lounge .template-menu__item { border-color: rgba(255, 255, 255, 0.08); }

/* Template 3 — Hotel Minimal */
.template-hotel {
  background: #f0f4f8;
}

.template-hotel .template-menu__inner {
  background: #fff;
  color: #2c3e50;
  border: 1px solid #dce4ec;
}

.template-hotel .template-menu__logo {
  background: #3498db;
  border-radius: 50%;
}

.template-hotel .template-menu__brand h1 {
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #1a5276;
}

.template-hotel .template-menu__category h2 {
  color: #3498db;
  border-color: #aed6f1;
  letter-spacing: 0.2em;
}

.template-hotel .template-menu__price {
  color: #1a5276;
  font-weight: 600;
}

/* Template 4 — Nightclub Neon */
.template-nightclub {
  background: #000;
}

.template-nightclub .template-bar {
  background: #0a0a0a;
  color: #fff;
  border-color: #222;
}

.template-nightclub .template-bar__back { color: #ff00ff; }

.template-nightclub .template-menu__inner {
  background: #0d0d0d;
  color: #fff;
  border: 1px solid #ff00ff;
  box-shadow: 0 0 40px rgba(255, 0, 255, 0.2), 0 0 80px rgba(0, 255, 255, 0.1);
}

.template-nightclub .template-menu__logo {
  background: linear-gradient(135deg, #ff00ff, #00ffff);
  animation: neon-pulse 2s ease-in-out infinite;
}

@keyframes neon-pulse {
  0%, 100% { box-shadow: 0 0 20px #ff00ff; }
  50% { box-shadow: 0 0 30px #00ffff; }
}

.template-nightclub .template-menu__brand h1 {
  font-size: 1.75rem;
  letter-spacing: 0.25em;
  text-shadow: 0 0 10px #ff00ff;
}

.template-nightclub .template-menu__category h2 {
  color: #00ffff;
  border-color: #ff00ff;
  text-shadow: 0 0 8px #00ffff;
}

.template-nightclub .template-menu__price {
  color: #ff00ff;
  text-shadow: 0 0 6px #ff00ff;
}

.template-nightclub .template-menu__item { border-color: #222; }

/* Template 5 — Fine Dining Serif */
.template-fine-dining {
  background: #f5f0e8;
}

.template-fine-dining .template-menu__inner {
  background: #fffef9;
  color: #2c2416;
  border: 1px solid #d4c4a8;
}

.template-fine-dining .template-menu__logo {
  background: #2c2416;
  border-radius: 0;
}

.template-fine-dining .template-menu__brand h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.template-fine-dining .template-menu__brand p {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
}

.template-fine-dining .template-menu__category h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  color: #6b5344;
  border-color: #c4a574;
  font-weight: 600;
  text-transform: none;
}

.template-fine-dining .template-menu__item h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
}

.template-fine-dining .template-menu__price {
  font-family: "Playfair Display", Georgia, serif;
  color: #6b5344;
}

.template-fine-dining .template-menu__footer {
  border-top: 1px solid #e8dcc8;
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
}
