 /* Основной фон и шрифты */
body {
  background-color: #66cc33; /* зелёный фон */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
}

/* Заголовок */
.kids-menu-section h1 {
  text-align: center;
  margin: 20px 0;
  font-size: 2.2rem;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Блок выбора дня */
#day-selector {
  display: flex;
  flex-direction: column; /* кнопки одна под другой */
  align-items: center;    /* центрируем */
  gap: 15px;
  margin-bottom: 30px;
  position: relative;
  transition: margin 0.35s ease, gap 0.35s ease;
  max-width: 900px;  /* как у #menu-container */
  margin-left: auto;
  margin-right: auto;
}

/* Убрано сильное смещение translateY — теперь shrink не смещает selector */
#day-selector.shrink {
  /* вместо смещения — уменьшаем отступ между кнопками слегка, без изменения положения */
  gap: 10px;
  margin-bottom: 18px;
}

/* Кнопки выбора дня */
#day-selector button.day-btn {
  width: 100%;   /* кнопка на всю ширину контейнера */
  max-width: 900px; /* ограничение, как у меню */
  height: 60px;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 15px;
  background-color: #ffcc33;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Активная кнопка и hover */
#day-selector button.day-btn:hover,
#day-selector button.day-btn.active {
  background-color: #ff9900;
  color: #fff;
  transform: translateY(-2px);
}

/* Контейнер меню - теперь поддерживает плавное схлопывание и разворачивание */
#menu-container {
  background: #fff;
  max-width: 900px;
  margin: 20px auto 50px auto;
  padding: 40px 20px;
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
  min-height: 150px;
  text-align: center;
  position: relative;
  font-size: 1rem;
  color: #333;

  /* Плавная анимация по высоте и opacity/transform */
  transition: opacity 0.36s ease, transform 0.36s ease, height 0.36s ease, padding 0.36s ease;
  overflow: visible; /* по умолчанию позволяем расширяться */
  opacity: 1;
  transform: translateY(0);
}

/* вспомогательный класс — при схлопывании JS добавляет этот класс,
   он служит только для визуальной подсказки */
#menu-container.is-collapsing {
  /* overflow будет переключён через JS (inline style) */
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

/* state explicit for expanded after load (optional) */
#menu-container.expanded {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Контейнер текста и стрелок */
#menu-container .placeholder-text {
  font-size: 2rem;
  font-weight: bold;
  color: #ff6600;
  margin: 0 40px;
  display: flex;             /* стрелки и текст в одну линию */
  align-items: center;       /* выравнивание по центру */
  justify-content: center;   /* по центру блока */
  gap: 20px;                 /* расстояние между стрелкой и текстом */
  text-align: center;
  line-height: 1;            /* чтобы высота строки не влияла на выравнивание */
}

/* Стрелки — без вертикального смещения по умолчанию */
#menu-container .placeholder-text::before,
#menu-container .placeholder-text::after {
  content: '⬆';
  font-size: 3rem;          /* увеличиваем стрелки */
  color: #ff6600;
  animation: bounce 1s infinite;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Анимация прыжка стрелок */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-12px); }
  60% { transform: translateY(-6px); }
}

/* Блок отдельного блюда (карточка) */
.meal-block {
  background: #fff;
  border-radius: 15px;
  padding: 15px;
  margin: 10px 0;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.45s cubic-bezier(.2,.9,.2,1);
}

.meal-block.visible {
  opacity: 1;
  transform: translateY(0);
}

.meal-block h3 {
  margin: 0 0 10px 0;
  font-size: 1.2rem;
  color: #444;
}

/* Список блюд с иконкой */
.meal-block ul.dishes-list {
  list-style: none;
  padding-left: 20px;
  margin: 10px 0;
}
.meal-block ul.dishes-list li {
  margin-bottom: 8px;
  position: relative;
}

/* Цена */
.meal-block .price {
  font-weight: bold;
  color: #ff6600;
  margin-top: 10px;
  font-size: 1.1rem;
}

/* Кнопка "Добавить в корзину" */
.add-to-cart-btn {
  display: inline-block;
  margin-top: 10px;
  background-color: #ff6600;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
  transition: background 0.3s, transform 0.2s;
}
.add-to-cart-btn:hover {
  background-color: #ff8533;
  transform: scale(1.05);
}

/* Мобильная адаптация */
@media (max-width: 600px) {
  #day-selector {
    grid-template-columns: 1fr;
    grid-auto-rows: 50px;
  }
  #day-selector button.day-btn {
    width: 80%;
  }
}

/* Бегущая строка для сообщений */
.marquee-container {
  overflow: hidden;
  background: rgba(255,255,255,0.08);
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 20px;
  color: #07310a;
}
.marquee-content {
  display: inline-block;
  white-space: nowrap;
  color: red;
  font-weight: bold;
  font-size: 1.3em;
  animation: marquee 50s linear infinite;
}
@keyframes marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}