/* Ordering-style menu (mirrors catharsisbarandgrill.com/menu layout) */
.page-menu {
  background: var(--bg);
  overflow-x: hidden;
}

.omni-menu {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  align-items: start;
  gap: 0;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0;
  min-height: calc(100vh - var(--header-h));
  box-sizing: border-box;
}

.omni-sidebar {
  position: sticky;
  top: var(--header-h);
  align-self: start;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  overflow-x: hidden;
  border-right: 1px solid var(--line);
  background: var(--surface);
  z-index: 5;
  min-width: 0;
}

.omni-sidebar__inner {
  padding: 1.25rem 0.9rem 2rem;
}

.omni-search-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-2);
  margin-bottom: 1.25rem;
}

.omni-search-wrap svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.45;
}

.omni-search-wrap input {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.88rem;
  width: 100%;
  min-width: 0;
  color: var(--text);
  outline: none;
}

.omni-search-wrap input::placeholder {
  color: var(--text-muted);
}

.omni-cats {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.omni-cats a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: background 0.2s var(--ease-out), color 0.2s;
}

.omni-cats a:hover {
  background: var(--bg-2);
  color: var(--navy);
}

.omni-cats a.is-active {
  background: var(--navy);
  color: #fff;
}

.omni-main {
  padding: 1.5rem clamp(1rem, 3vw, 2rem) 3.5rem;
  min-width: 0;
}

.omni-sections {
  min-width: 0;
}

.omni-toolbar {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.omni-toolbar h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: var(--navy);
  text-transform: uppercase;
}

.omni-meta {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.omni-status {
  color: var(--text);
  font-weight: 600;
}

.omni-order-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.omni-segment {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--line);
}

.omni-segment button {
  border: 0;
  background: transparent;
  padding: 0.45rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 999px;
  cursor: pointer;
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s;
}

.omni-segment button.is-selected {
  background: var(--navy);
  color: #fff;
}

.omni-time-mock {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.button--sm {
  padding: 0.5rem 1rem;
  font-size: 0.72rem;
}

/* Sections */
.omni-section {
  margin-bottom: 2.75rem;
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.menu-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.menu-section__head h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  color: var(--navy);
  text-transform: uppercase;
}

.omni-section__note {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--highlight);
  margin: -0.5rem 0 1rem;
}

.popular-arrows {
  display: flex;
  gap: 0.35rem;
}

.popular-arrows button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--navy);
  transition: background 0.2s, box-shadow 0.2s;
}

.popular-arrows button:hover {
  background: var(--bg-2);
  box-shadow: var(--shadow-sm);
}

.popular-scroller {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 0.5rem;
  margin: 0 -0.25rem;
  -webkit-overflow-scrolling: touch;
  min-width: 0;
}

.popular-scroller::-webkit-scrollbar {
  height: 6px;
}

.popular-scroller::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 3px;
}

.popular-card {
  flex: 0 0 min(200px, min(72vw, 100%));
  scroll-snap-align: start;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  position: relative;
  transition: box-shadow 0.3s var(--ease-out);
  min-width: 0;
  max-width: 100%;
}

.popular-card:hover {
  box-shadow: var(--shadow-sm);
}

.popular-card__img {
  aspect-ratio: 3/4;
  background: var(--bg-2);
  position: relative;
}

.popular-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.omni-add {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
  color: var(--navy);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(26, 35, 50, 0.12);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s;
  z-index: 2;
}

.omni-add:hover {
  transform: scale(1.06);
  color: var(--navy);
}

.popular-card__body {
  padding: 0.85rem 0.9rem 1rem;
}

.popular-card__body h3 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
}

.popular-card__body .price {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* Taco Tuesday & grid rows */
.tt-grid,
.omni-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 0.65rem;
  min-width: 0;
}

.omni-item {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  min-height: 72px;
  transition: box-shadow 0.25s var(--ease-out);
}

.omni-item:hover {
  box-shadow: var(--shadow-sm);
}

.omni-item.is-hidden,
.popular-card.is-hidden,
.menu-section.is-empty {
  display: none !important;
}

.omni-item__text {
  min-width: 0;
  flex: 1;
}

.omni-item__text h4 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
}

.omni-item__text .desc {
  margin: 0.3rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.omni-item__text .price {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

.omni-item__aside {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.omni-item__thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-2);
}

.omni-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.omni-add--inline {
  position: static;
  flex-shrink: 0;
}

.menu-section.is-collapsed .omni-grid,
.menu-section.is-collapsed .popular-scroller,
.menu-section.is-collapsed .tt-grid {
  display: none;
}

@media (max-width: 960px) {
  .omni-section {
    scroll-margin-top: calc(var(--header-h) + 9.5rem);
  }

  .omni-menu {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Sticks below site header while scrolling the menu */
  .omni-sidebar {
    position: sticky;
    top: var(--header-h);
    z-index: 40;
    max-height: none;
    overflow: visible;
    overflow-x: hidden;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
    box-shadow: 0 8px 24px rgba(26, 35, 50, 0.06);
  }

  .omni-sidebar__inner {
    padding: 1rem clamp(0.75rem, 4vw, 1.25rem) 0.75rem;
  }

  /* Single row, swipe/drag to scroll (scrollbar hidden; still scrollable) */
  .omni-cats {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.35rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.5rem;
    margin: 0 -0.25rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .omni-cats::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  .omni-cats a {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .omni-cats a.is-active {
    background: var(--navy);
  }

  .omni-main {
    padding: 1rem clamp(0.75rem, 4vw, 1.25rem) 3rem;
    min-width: 0;
  }

  /* Popular: grid layout — no horizontal page overflow */
  .popular-arrows {
    display: none;
  }

  .popular-scroller {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(152px, 100%), 1fr));
    gap: 0.85rem;
    overflow-x: visible;
    overflow-y: visible;
    scroll-snap-type: none;
    scroll-behavior: auto;
    margin: 0;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: auto;
  }

  .popular-card {
    flex: initial;
    width: 100%;
    max-width: none;
  }

  .tt-grid,
  .omni-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
  }

  .omni-toolbar {
    margin-bottom: 1.5rem;
  }

  .omni-order-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .omni-time-mock {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .tt-grid,
  .omni-grid {
    grid-template-columns: 1fr;
  }

  .popular-scroller {
    grid-template-columns: 1fr;
  }

  .menu-section__head {
    flex-wrap: wrap;
    align-items: flex-start;
  }
}

@media (max-width: 1100px) and (min-width: 961px) {
  .tt-grid,
  .omni-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
  }
}