/* Guest menu: list layout + pour lines — readable on dark theme (inline styles removed from JSX). */

/* Category grid (menu home): 1 column mobile, 2 on desktop, cropped images */
html[data-theme='light'] .menu .menu__list,
html[data-theme='dark'] .menu .menu__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 0;
}

html[data-theme='light'] .menu .menu__item,
html[data-theme='dark'] .menu .menu__item {
  width: 100%;
  padding: 0;
  margin-bottom: 0;
}

html[data-theme='light'] .menu__img,
html[data-theme='dark'] .menu__img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding-bottom: 0;
  min-height: 0;
  margin-bottom: 15px;
  overflow: hidden;
}

html[data-theme='light'] .menu__img > div,
html[data-theme='dark'] .menu__img > div {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

html[data-theme='light'] .menu__img img,
html[data-theme='dark'] .menu__img img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
}

html[data-theme='dark'] .menu__img > div {
  background: #2a2a2a !important;
  color: #e8eaf0 !important;
}

@media (min-width: 768px) {
  html[data-theme='light'] .menu .menu__list,
  html[data-theme='dark'] .menu .menu__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Category chips when no cover image — layout for every menu theme */
.menu .menu__list--chips,
.menu .menu__list:has(.menu__item--chip) {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.menu .menu__item--chip {
  width: auto;
  padding: 0;
  margin: 0;
}

.menu .menu__item--chip .menu__in {
  display: block;
}

.menu__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, color 0.15s ease;
}

/* light + clean_light + editorial_vintage (warm/light presets) */
html[data-theme='light'] .menu__chip,
html[data-theme='clean_light'] .menu__chip,
html[data-theme='editorial_vintage'] .menu__chip {
  border: 1px solid rgba(39, 39, 39, 0.12);
  background: #f7f6f1;
  color: #272727;
}

html[data-theme='light'] .menu__item--chip .menu__in:hover .menu__chip,
html[data-theme='clean_light'] .menu__item--chip .menu__in:hover .menu__chip,
html[data-theme='editorial_vintage'] .menu__item--chip .menu__in:hover .menu__chip {
  background: #efece3;
  border-color: rgba(39, 39, 39, 0.2);
  transform: translateY(-1px);
}

/* dark + elegant_dark */
html[data-theme='dark'] .menu__chip,
html[data-theme='elegant_dark'] .menu__chip {
  background: #2a2a2a;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e8eaf0;
}

html[data-theme='dark'] .menu__item--chip .menu__in:hover .menu__chip,
html[data-theme='elegant_dark'] .menu__item--chip .menu__in:hover .menu__chip {
  background: #353535;
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

/* Expanded menu: all categories on one page (all themes) */
.lunch--expanded .menu-block + .menu-block {
  margin-top: 40px;
  padding-top: 8px;
  border-top: 1px solid rgba(39, 39, 39, 0.08);
}

html[data-theme='dark'] .lunch--expanded .menu-block + .menu-block,
html[data-theme='elegant_dark'] .lunch--expanded .menu-block + .menu-block,
html[data-theme='dark_premium'] .lunch--expanded .menu-block + .menu-block {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.lunch--expanded .menu-block__group + .menu-block__group {
  margin-top: 24px;
}

.lunch-list-name {
    font-weight: 700;
    line-height: 1.2;
    color: #272727;
}

.lunch-list-desc {
    margin-top: 6px;
    line-height: 1.35;
    font-size: 14px;
    color: #625f4d;
}

.lunch-list-price-main {
    font-weight: 800;
    color: #272727;
}

.lunch-list-price-old {
    margin-top: 4px;
    color: #8a8a7b;
    text-decoration: line-through;
    font-weight: 700;
}

.lunch-pour-volumes {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(39, 39, 39, 0.08);
    font-size: 14px;
    line-height: 1.45;
    color: #625f4d;
}

.lunch-pour-volumes.lunch-pour-volumes--first {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.lunch-pour-volumes__row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 4px;
    align-items: baseline;
}

.lunch-pour-volumes .price {
    margin: 0;
    text-align: right;
}

.lunch-pour-volumes .price.price--empty span {
    color: #8a8a7b;
}

html[data-theme='dark'] .lunch-list-name,
html[data-theme='dark'] .lunch-list-desc,
html[data-theme='dark'] .lunch-list-price-main,
html[data-theme='dark'] .lunch-pour-volumes {
    color: #ffffff;
}

html[data-theme='dark'] .lunch-list-price-old {
    color: rgba(255, 255, 255, 0.5);
}

html[data-theme='dark'] .lunch-pour-volumes {
    border-top-color: rgba(255, 255, 255, 0.14);
}

html[data-theme='dark'] .lunch-pour-volumes .price.price--empty span {
    color: rgba(255, 255, 255, 0.42);
}

/* Карточное меню: заголовок и описание — белые на тёмном фоне (перекрываем серые из main.css). */
html[data-theme='dark'] .lunch__title,
html[data-theme='dark'] .lunch__txt {
    color: #ffffff !important;
}

html[data-theme='dark_premium'] .lunch-list-name {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    color: #ffffff;
}

html[data-theme='dark_premium'] .lunch-list-desc,
html[data-theme='dark_premium'] .lunch-pour-volumes {
    color: #a3a3a3;
}

html[data-theme='dark_premium'] .lunch-list-price-main {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 500;
    color: #c9a96e;
}

html[data-theme='dark_premium'] .lunch-list-price-old {
    color: rgba(255, 255, 255, 0.45);
}

html[data-theme='dark_premium'] .lunch-pour-volumes {
    border-top-color: rgba(255, 255, 255, 0.14);
}

html[data-theme='dark_premium'] .lunch-pour-volumes .price.price--empty span {
    color: rgba(255, 255, 255, 0.42);
}
