/* Menu Lady Lee - estilos del menú */

.menu-container {
  font-family: "Inter", sans-serif;
  color: var(--brand-text);
}

/* TOGGLE */
.sticky-toggle,
.menu-toggle.sticky {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 8px 0;
  background: none !important;
}

.menu-toggle {
  display: flex;
  gap: 4px;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

.toggle-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--brand-border);
  cursor: pointer;
  background: #fff;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-btn.active {
  background: #000;
  color: #fff;
  border-color: #000;
}

.items-container {
  transition: opacity 0.2s ease, transform 0.2s ease;
  padding: 8px 0;
}

.items-container.is-transitioning {
  opacity: 0;
  transform: translateY(6px);
}

/* CATEGORY */
.categories-container {
  padding: 1rem 0 8px 0;
}

.category-block {
}

.category-title {
  font-size: 24px;
  font-weight: 500;
  cursor: pointer;
  padding: 16px 0;
  border-bottom: 1px solid var(--brand-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--brand-text);
}

.category-title-inner {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.category-subtitle {
  font-size: 13px;
  font-weight: 400;
  opacity: 0.55;
}

.category-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--brand-icon-bg);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.75;
}

.category-icon.open .icon-vertical {
  display: none;
}

/* VIEWS */
.items-container.grid-view {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.items-container.grid-view .menu-card {
  min-width: 0;
}

.items-container.list-view {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* CARD */
.menu-card {
  padding: 8px;
  border-radius: 8px;
  background: var(--brand-card-bg);
  opacity: 0;
  transform: translateY(10px);
  animation: menuFadeInUp 0.4s ease forwards;
}

.menu-card.list {
  display: flex;
}

.menu-card.list .menu-content {
  flex: 1;
  min-width: 0;
}

.items-wrapper.open .menu-card:nth-child(1) { animation-delay: 0.05s; }
.items-wrapper.open .menu-card:nth-child(2) { animation-delay: 0.1s; }
.items-wrapper.open .menu-card:nth-child(3) { animation-delay: 0.15s; }
.items-wrapper.open .menu-card:nth-child(4) { animation-delay: 0.2s; }
.items-wrapper.open .menu-card:nth-child(5) { animation-delay: 0.25s; }
.items-wrapper.open .menu-card:nth-child(6) { animation-delay: 0.3s; }
.items-wrapper.open .menu-card:nth-child(7) { animation-delay: 0.35s; }
.items-wrapper.open .menu-card:nth-child(8) { animation-delay: 0.4s; }

@keyframes menuFadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.menu-image {
  width: 167px;
  height: 167px;
  object-fit: cover;
  border-radius: 12px;
}

.menu-card.grid .menu-image {
  width: 100%;
}

/* CONTENT */
.menu-content {
  padding: 0;
  min-width: 0;
}

/* Grid cards: flex column para que el contenido llene el ancho de la celda */
.menu-card.grid {
  display: flex;
  flex-direction: column;
}

.menu-card.grid .menu-content {
  flex: 1;
  width: 100%;
  min-width: 0;
}

.menu-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 0;
  line-height: 1.35;
}

.menu-description {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.4;
  margin-bottom: 0;
  line-height: 1.4;
}

.menu-price {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-top: 8px;
}

.menu-price-row {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.4;
  white-space: nowrap;
}

/* ACCORDION */
.items-wrapper {
  padding: 0;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.35s ease,
    transform 0.35s ease;
}

.items-wrapper.open {
  max-height: 10000px;
  opacity: 1;
  transform: translateY(0);
}
