.page-menu {
  padding: 1.5rem 0 4.5rem;
}

.menu-hero {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(130deg, #ffe2ea, #fff2da 45%, #e9faef);
  box-shadow: var(--shadow);
}

.menu-hero h1 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1.08;
}

.menu-hero p {
  margin: 0.75rem 0 0;
  max-width: 62ch;
  color: var(--muted);
  font-weight: 600;
}

.menu-hero-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.menu-shell {
  width: min(100% - 2rem, var(--max));
  margin: 1.2rem auto 0;
}

.menu-tools {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.menu-search {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.75rem 1rem;
  font: inherit;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
}

.menu-search:focus {
  outline: 2px solid rgba(246, 111, 143, 0.28);
  border-color: transparent;
}

.menu-filters {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
}

.filter-btn {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

.filter-btn.is-active {
  background: var(--chocolate);
  color: #fff;
  border-color: var(--chocolate);
}

.menu-grid {
  display: grid;
  gap: 1rem;
}

.menu-item {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  box-shadow: 0 10px 24px rgba(75, 45, 35, 0.08);
}

.menu-item[hidden] {
  display: none;
}

.menu-item-media {
  background: linear-gradient(180deg, #fff6ef, #fffdf8);
  display: grid;
  place-items: center;
  min-height: 190px;
}

.menu-item img {
  width: 100%;
  max-height: 190px;
  object-fit: contain;
  padding: 0.65rem;
}

.menu-item-body {
  padding: 1rem;
  display: grid;
  gap: 0.5rem;
}

.menu-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.menu-item h3 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: 1.25rem;
}

.menu-price {
  font-weight: 900;
  color: var(--chocolate);
}

.menu-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.menu-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.menu-tag {
  font-size: 0.72rem;
  padding: 0.25rem 0.45rem;
  border-radius: 999px;
  background: var(--cream-2);
  border: 1px solid var(--border);
  color: var(--chocolate-soft);
  font-weight: 700;
}

.menu-item-actions {
  margin-top: 0.2rem;
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.order-ribbon {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  width: min(100% - 1.5rem, 540px);
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 0.5rem 0.45rem 0.9rem;
  box-shadow: 0 12px 30px rgba(75, 45, 35, 0.2);
}

.order-ribbon p {
  margin: 0;
  font-weight: 800;
  color: var(--chocolate);
}

.order-ribbon small {
  display: block;
  color: var(--muted);
  font-weight: 700;
}

.empty-state {
  border: 1px dashed var(--border);
  border-radius: 14px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font-weight: 700;
}

@media (min-width: 760px) {
  .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .menu-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .menu-item img {
    max-height: 220px;
  }
}
