/* =============================================
   Mes Amis Café — Menu Page Styles
   ============================================= */

/* ── Page header ── */
.page-header {
  padding: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 5vw, 3rem) 2rem;
  background: var(--bg-mid);
  border-bottom: 1px solid var(--border-gold);
  transition: background 0.3s ease;
}
.page-header__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--text-light);
  margin: 0.4rem 0 0.75rem;
}
.page-header__sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-dim);
  font-style: italic;
}

/* ── Tab bar ── */
.menu-tabs-bar {
  background: var(--bg-mid);
  border-bottom: 1px solid var(--border-gold);
  position: sticky;
  top: var(--nav-height);
  z-index: 100;
  transition: background 0.3s ease;
}
.menu-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.menu-tabs::-webkit-scrollbar { display: none; }

.menu-tab {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 1.1rem 1.5rem;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.menu-tab:hover {
  color: var(--text);
  background: var(--border);
}
.menu-tab:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}
.menu-tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ── Panel ── */
.menu-panel { display: none; }
.menu-panel.active { display: block; }

.menu-panel__header {
  margin-bottom: 2.5rem;
}
.menu-panel__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.4rem;
}
.menu-panel__note {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ── Subsection ── */
.menu-subsection { margin-bottom: 3rem; }
.menu-subsection__title {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-gold);
}

/* ── Menu grid ── */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

/* ── Menu item card ── */
.menu-item {
  background: var(--bg-mid);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), background 0.3s ease, transform 0.2s ease;
}
.menu-item:hover {
  border-color: var(--border-gold);
  background: var(--bg-light);
  transform: translateY(-2px);
}

/* Image */
.menu-item__img-wrap {
  width: 100%;
  height: 160px;
  flex-shrink: 0;
  background: var(--bg-light);
  overflow: hidden;
  position: relative;
}
.menu-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.menu-item:hover .menu-item__img { transform: scale(1.04); }

/* Placeholder shown when image is missing */
.menu-item__img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
  padding: 0.5rem;
}
.menu-item__img-placeholder span {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: var(--gold);
  text-align: center;
  word-break: break-all;
  opacity: 0.8;
}

/* Body */
.menu-item__body {
  padding: 1rem 1.1rem 1.1rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex: 1;
}
.menu-item__info { flex: 1; min-width: 0; }
.menu-item__name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}
.menu-item__desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.menu-item__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
}
.menu-item__price {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--gold);
  white-space: nowrap;
}

/* Add to cart button */
.add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(196, 146, 74, 0.4);
  color: var(--gold);
  font-size: 1.2rem;
  line-height: 1;
  transition: background var(--transition), transform var(--transition), border-color var(--transition);
  cursor: pointer;
}
.add-btn:hover {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
  transform: scale(1.1);
}
.add-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.add-btn:active { transform: scale(0.95); }

/* ── Allergen note ── */
.allergen-note {
  padding: 1.5rem clamp(1.5rem, 5vw, 3rem);
  font-family: var(--font-ui);
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.allergen-note strong { color: var(--text); }

/* ── Responsive ── */
@media (max-width: 600px) {
  .menu-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 400px) {
  .menu-grid { grid-template-columns: 1fr; }
}
