/* =============================================================
   Sunny Menu — главный стиль
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800&family=Nunito:wght@400;500;600;700&display=swap');

/* ─── CSS переменные ─────────────────────────────────────────── */
:root {
  /* Цвета приложения */
  --bg:          #fffdf8;
  --surface:     #fef6e8;
  --card:        #fffdf8;
  --card-hover:  #fef0d4;
  --border:      rgba(140, 80, 10, 0.09);
  --border-mid:  rgba(140, 80, 10, 0.17);

  --accent:      #b45309;   /* янтарный */
  --accent-2:    #92400e;   /* тёмно-коричневый */
  --accent-dim:  rgba(180, 83, 9, 0.10);

  --text-1: #1c1107;
  --text-2: #6b4423;
  --text-3: #b09070;

  --green: #2da875;
  --red:   #e05252;

  --r:  14px;
  --r2: 22px;
  --shadow: 0 6px 28px rgba(140, 80, 10, 0.11);

  /* Шрифты — переопределяются через Theme.init() */
  --font-body:    'Nunito';
  --font-heading: 'Montserrat';

  /* Анимированный градиент фона (главная страница) */
  --bg-start: rgb(248, 254, 252);
  --bg-end:   rgb(255, 253, 245);
  --c1: 58, 170, 159;       /* бирюзовый */
  --c2: 212, 168, 83;       /* песочный */
  --c3: 100, 200, 190;      /* светлая бирюза */
  --c4: 200, 155, 65;       /* тёплый песок */
  --c5: 70, 185, 170;       /* мятный */
  --cp: 58, 170, 159;       /* бирюза (pointer) */
  --gsize: 80%;
  --blend: multiply;
}

/* ─── Reset + база ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { height: 100%; -webkit-tap-highlight-color: transparent; }

body {
  font-family: var(--font-body), -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-1);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* Заголовки — Montserrat */
h1, h2, h3,
.hero-name,
.dish-detail-name,
.category-card-name,
.cart-empty-title,
.error-code,
.error-msg {
  font-family: var(--font-heading), -apple-system, BlinkMacSystemFont, sans-serif;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ─── Анимированный градиент фона (главная) ──────────────────── */

.page-home {
  height: 100%;
  overflow: hidden;
}

.page-home body {
  height: 100%;
  overflow: hidden;
}

svg.goo-filter { position: absolute; width: 0; height: 0; }

.bg-animated {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(40deg, var(--bg-start), var(--bg-end));
  z-index: 0;
}

.gradients-container {
  position: absolute;
  inset: 0;
  filter: url(#blurMe) blur(40px);
}
.gradients-container.simple-blur {
  filter: blur(24px);
}

/* 5 анимированных блобов */
.g1, .g2, .g3, .g4, .g5 {
  position: absolute;
  width: var(--gsize);
  height: var(--gsize);
  top:  calc(50% - var(--gsize) / 2);
  left: calc(50% - var(--gsize) / 2);
  mix-blend-mode: var(--blend);
}

.g1 {
  background: radial-gradient(circle at center, rgb(var(--c1)) 0%, rgba(var(--c1), 0) 50%) no-repeat;
  transform-origin: center center;
  animation: moveVertical 30s ease infinite;
}
.g2 {
  background: radial-gradient(circle at center, rgba(var(--c2), 0.8) 0%, rgba(var(--c2), 0) 50%) no-repeat;
  transform-origin: calc(50% - 400px);
  animation: moveInCircle 20s reverse infinite;
}
.g3 {
  background: radial-gradient(circle at center, rgba(var(--c3), 0.8) 0%, rgba(var(--c3), 0) 50%) no-repeat;
  transform-origin: calc(50% + 400px);
  animation: moveInCircle 40s linear infinite;
}
.g4 {
  background: radial-gradient(circle at center, rgba(var(--c4), 0.8) 0%, rgba(var(--c4), 0) 50%) no-repeat;
  transform-origin: calc(50% - 200px);
  animation: moveHorizontal 40s ease infinite;
  opacity: 0.7;
}
.g5 {
  background: radial-gradient(circle at center, rgba(var(--c5), 0.8) 0%, rgba(var(--c5), 0) 50%) no-repeat;
  transform-origin: calc(50% - 800px) calc(50% + 800px);
  animation: moveInCircle 20s ease infinite;
}

/* Блоб, следующий за курсором/тачем */
.g-pointer {
  position: absolute;
  width: 100%;
  height: 100%;
  top:  -50%;
  left: -50%;
  background: radial-gradient(circle at center, rgba(var(--cp), 0.8) 0%, rgba(var(--cp), 0) 50%) no-repeat;
  mix-blend-mode: var(--blend);
  opacity: 0.7;
}

@keyframes moveInCircle {
  0%   { transform: rotate(0deg); }
  50%  { transform: rotate(180deg); }
  100% { transform: rotate(360deg); }
}
@keyframes moveVertical {
  0%   { transform: translateY(-50%); }
  50%  { transform: translateY(50%); }
  100% { transform: translateY(-50%); }
}
@keyframes moveHorizontal {
  0%   { transform: translateX(-50%) translateY(-10%); }
  50%  { transform: translateX(50%) translateY(10%); }
  100% { transform: translateX(-50%) translateY(-10%); }
}

/* Слой контента поверх фона (fixed, поверх bg-animated, canvas, gradient) */
.content-layer {
  position: fixed;
  inset: 0;
  z-index: 10;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* ─── Общий layout страниц (все кроме главной) ───────────────── */
.page {
  min-height: 100vh;
  max-width: 480px;
  margin: 0 auto;
  padding-bottom: 100px; /* под FAB */
}

/* ─── Загрузочный экран ──────────────────────────────────────── */
.loading-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}
.loader {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(180, 83, 9, 0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Шапка страницы (category / dish) ──────────────────────── */
.page-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 248, 0.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(180, 120, 40, 0.13);
}
.page-header h1 {
  font-size: 17px;
  font-weight: 700;
  flex: 1;
}
.back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(140, 80, 10, 0.09);
  color: var(--text-1);
  flex-shrink: 0;
}
.back-btn:active { opacity: 0.7; }

/* ─── Кнопки ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 20px;
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: opacity .15s;
}
.btn:active { opacity: 0.8; }

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}
.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border-mid);
}
.btn-ghost:hover { background: var(--accent-dim); }
.btn-surface {
  background: var(--surface);
  color: var(--text-1);
}
.btn-danger {
  background: var(--red);
  color: white;
}

/* ─── FAB (плавающая кнопка корзины) ────────────────────────── */
.fab {
  position: fixed;
  bottom: max(24px, env(safe-area-inset-bottom));
  right: 20px;
  z-index: 200;
  display: none;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  padding: 13px 20px;
  border-radius: 999px;
  box-shadow: 0 6px 24px rgba(180, 83, 9, 0.42), 0 2px 8px rgba(180, 83, 9, 0.22);
  transition: transform .15s, box-shadow .15s;
}
.fab.visible { display: flex; }
.fab:active {
  transform: scale(0.94);
  box-shadow: 0 3px 12px rgba(180, 83, 9, 0.30);
}
.fab svg { width: 20px; height: 20px; }
.fab-badge {
  background: #ffffff;
  color: var(--accent);
  border-radius: 999px;
  min-width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  padding: 0 5px;
}

/* Pop-анимация FAB при добавлении товара в корзину */
@keyframes fab-pop {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.20); }
  65%  { transform: scale(0.94); }
  100% { transform: scale(1); }
}
.fab.pop { animation: fab-pop 0.38s cubic-bezier(.36,.07,.19,.97); }

/* ─── Главная страница ───────────────────────────────────────── */
.home-wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px 120px;
}

/* Hero */
.hero {
  padding: 48px 0 32px;
  text-align: center;
}
.hero-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin: 0 auto 16px;
  mix-blend-mode: multiply;
}
.hero-name {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-1);
}
.hero-tagline {
  margin-top: 8px;
  font-size: 15px;
  color: var(--text-2);
}

/* Секции главной */
.home-section {
  background: rgba(255, 253, 248, 0.90);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(180, 120, 40, 0.12);
  border-radius: var(--r2);
  box-shadow: 0 4px 20px rgba(140, 80, 10, 0.07), 0 1px 4px rgba(140, 80, 10, 0.04);
  padding: 18px 20px;
  margin-bottom: 20px;
}

/* About */
.about-text {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
}

/* Info (hours + address) */
.info-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-2);
  padding: 5px 0;
}
.info-row:not(:last-child) { border-bottom: 1px solid var(--border); }
.info-label {
  color: var(--accent);
  font-weight: 600;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Socials */
.socials {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(180, 83, 9, 0.06);
  border: 1px solid rgba(180, 83, 9, 0.16);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
  transition: background .15s;
}
.social-btn:active { background: rgba(180, 83, 9, 0.13); }

/* Карта */
.map-wrap {
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: 10px;
}
.map-wrap iframe {
  width: 100%;
  height: 200px;
  border: none;
  display: block;
}

/* Категории */
.section-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-3);
  margin-bottom: 16px;
}
.categories-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.category-card {
  aspect-ratio: 1;
  border-radius: var(--r2);
  overflow: hidden;
  background: var(--surface);
  background-size: cover;
  background-position: center;
  position: relative;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(140, 80, 10, 0.12), 0 2px 6px rgba(140, 80, 10, 0.06);
  transition: transform .2s, box-shadow .2s;
}
.category-card:active {
  transform: scale(0.96);
  box-shadow: 0 2px 10px rgba(140, 80, 10, 0.09);
}
.category-card[data-slug="kitchen"]   { background-color: #fde8c8; }
.category-card[data-slug="bar"]       { background-color: #fdf4cc; }
.category-card[data-slug="desserts"]  { background-color: #fce4d4; }
.category-card[data-slug="gift-shop"] { background-color: #f8e8c0; }
.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 14px;
}
.category-card-name {
  font-size: 16px;
  font-weight: 700;
  color: white;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* ─── Страница категории ─────────────────────────────────────── */

/* Табы подкатегорий */
.tabs-wrap {
  position: sticky;
  top: 57px;
  z-index: 90;
  background: rgba(255, 253, 248, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(180, 120, 40, 0.11);
  padding: 0 16px;
}
.tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex-shrink: 0;
  padding: 15px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-3);
  border-bottom: 3px solid transparent;
  transition: color .15s, border-color .15s, background .15s;
}
.tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: var(--accent-dim);
  font-weight: 700;
}

/* Секция подкатегории */
.subcategory-section {
  padding: 0 16px;
  margin-top: 20px;
}
.subcategory-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-3);
  margin-bottom: 10px;
  padding-top: 4px;
}

/* Карточка блюда (горизонтальная) */
.dish-card {
  display: flex;
  gap: 12px;
  background: var(--card);
  border-radius: var(--r2);
  overflow: hidden;
  margin-bottom: 10px;
  border: none;
  box-shadow: 0 4px 16px rgba(140, 80, 10, 0.08), 0 1px 4px rgba(140, 80, 10, 0.05);
  transition: background .15s, box-shadow .15s;
}
.dish-card:active {
  background: var(--card-hover);
  box-shadow: 0 2px 8px rgba(140, 80, 10, 0.07);
}
.dish-card-img {
  width: 108px;
  height: 108px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--surface);
}
.dish-card-body {
  flex: 1;
  padding: 12px 12px 12px 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.dish-card-name {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dish-card-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  flex: 1;
}
.dish-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}
.dish-price {
  font-size: 17px;
  font-weight: 700;
  color: var(--accent);
}
/* Бейджик «уже в корзине» на карточке блюда в каталоге */
.dish-in-cart-badge {
  font-size: 11px;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 2px 8px;
  min-width: 22px;
  text-align: center;
}

.dish-unavailable-badge {
  font-size: 11px;
  color: var(--text-3);
  background: rgba(0,0,0,0.05);
  padding: 2px 8px;
  border-radius: 999px;
}

/* Счётчик количества */
.qty-ctrl {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--surface);
  border-radius: 999px;
  overflow: hidden;
}
.qty-btn {
  width: 44px;
  height: 44px;
  font-size: 20px;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: background .1s;
}
.qty-btn:active { background: rgba(180, 83, 9, 0.10); }
.qty-val {
  min-width: 24px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-1);
}
/* Кнопка «+» когда qty=0 (показывается одна) */
.qty-add {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-size: 22px;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(180, 83, 9, 0.30);
  transition: opacity .1s, transform .1s;
}
.qty-add:active { opacity: 0.85; transform: scale(0.93); }

/* ─── Детальная карточка блюда — image-first layout ─────────── */

/* Hero-обёртка */
.dish-hero-wrap {
  position: relative;
  width: 100%;
  background: var(--surface);
}
.dish-hero {
  width: 100%;
  height: 60vh;
  min-height: 240px;
  max-height: 420px;
  object-fit: cover;
  display: block;
}
.dish-hero-placeholder {
  width: 100%;
  height: 60vh;
  min-height: 240px;
  max-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: var(--text-3);
  font-size: 72px;
}

/* Overlay header поверх изображения */
.dish-overlay-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: 12px 16px;
  padding-top: max(12px, env(safe-area-inset-top));
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to bottom, rgba(0,0,0,0.40) 0%, transparent 100%);
  z-index: 10;
}
.dish-overlay-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0,0,0,0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  color: #fff;
  cursor: pointer;
  transition: background .15s;
  text-decoration: none;
  flex-shrink: 0;
  position: relative;
}
.dish-overlay-btn:active { background: rgba(0,0,0,0.55); }
/* Группа кнопок справа в оверлее (глобус + корзина) */
.dish-overlay-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
/* Глобус внутри оверлея — стиль как у .dish-overlay-btn */
.dish-overlay-actions .lang-globe-btn {
  width: 38px;
  height: 38px;
  background: rgba(0,0,0,0.28);
  color: #fff;
}
.dish-overlay-actions .lang-globe-btn svg {
  width: 18px;
  height: 18px;
}
.dish-overlay-actions .lang-globe-btn:active { background: rgba(0,0,0,0.55); }
.dish-overlay-btn svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dish-overlay-badge {
  position: absolute;
  top: -3px; right: -3px;
  min-width: 16px; height: 16px;
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
}

/* Sheet — белая карточка снизу */
.dish-sheet {
  background: var(--bg);
  border-radius: 20px 20px 0 0;
  margin-top: -20px;
  position: relative;
  z-index: 5;
  padding: 20px 16px 0;
}
.dish-sheet-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.dish-sheet-name {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  flex: 1;
  color: var(--text-1);
}
.dish-sheet-price {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
  flex-shrink: 0;
}

/* Нутриенты — горизонтальная строка */
.nutr-strip {
  display: flex;
  border-radius: var(--r2);
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid rgba(180, 83, 9, 0.10);
}
.nutr-item {
  flex: 1;
  text-align: center;
  padding: 10px 4px;
  background: var(--surface);
}
.nutr-item + .nutr-item {
  border-left: 1px solid rgba(180, 83, 9, 0.10);
}
.nutr-val {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.2;
}
.nutr-unit {
  display: block;
  font-size: 9px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.nutr-label {
  display: block;
  font-size: 9px;
  color: var(--text-3);
  margin-top: 1px;
}

/* Описание с truncate */
.dish-desc-wrap { margin-bottom: 16px; }
.dish-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 4px;
}
.dish-desc.truncated {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.desc-expand {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

/* Ингредиенты */
.ingredients-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-3);
  margin-bottom: 10px;
}
.ingredients-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}
.ingredient-tag {
  background: rgba(180, 83, 9, 0.07);
  border: 1px solid rgba(180, 83, 9, 0.14);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 13px;
  color: var(--text-2);
}

/* Sticky кнопка "add to cart" */
.dish-add-bar {
  position: sticky;
  bottom: 0;
  z-index: 100;
  background: rgba(255, 253, 248, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 12px 16px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(180, 120, 40, 0.13);
  display: flex;
  align-items: center;
  gap: 14px;
}
.dish-add-price {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
}
.dish-add-btn {
  flex: 1;
  padding: 14px;
  border-radius: var(--r);
  background: var(--accent);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  transition: opacity .15s;
}
.dish-add-btn:active { opacity: 0.85; }

/* ─── Корзина ────────────────────────────────────────────────── */
.cart-empty {
  text-align: center;
  padding: 64px 24px;
  color: var(--text-2);
}
.cart-empty-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.cart-item {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.cart-item-img {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--surface);
  flex-shrink: 0;
}
.cart-item-img-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: var(--surface);
  flex-shrink: 0;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-item-price { font-size: 13px; color: var(--text-2); }
.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--surface);
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 16px;
  font-size: 17px;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}
.cart-total-val { color: var(--accent); }
.cart-note {
  padding: 16px;
}
.cart-note label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-3);
  margin-bottom: 8px;
}
.cart-note textarea {
  width: 100%;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--text-1);
  font-size: 14px;
  font-family: inherit;
  resize: none;
  min-height: 80px;
}
.cart-note textarea::placeholder { color: var(--text-3); }
.cart-note textarea:focus { outline: none; border-color: var(--accent); }
/* Поле номера стола */
.cart-table {
  padding: 0 16px 4px;
}
.cart-table label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-3);
  margin-bottom: 8px;
}
.cart-table input {
  width: 100%;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--text-1);
  font-size: 14px;
  font-family: inherit;
}
.cart-table input::placeholder { color: var(--text-3); }
.cart-table input:focus { outline: none; border-color: var(--accent); }

.cart-actions {
  padding: 16px;
  display: flex;
  gap: 10px;
}

/* ─── Экран успешного заказа ──────────────────────────────────── */
.order-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 24px;
  text-align: center;
}
.order-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--green, #22c55e);
  color: #fff;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.order-success-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.order-success-msg {
  color: var(--text-2);
  margin-bottom: 24px;
}

/* ─── Модификаторы блюда (dish.html) ─────────────────────────── */
.mod-section { margin-bottom: 16px; }

/* Тайлы — горизонтальный скролл */
.mod-tiles {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.mod-tiles::-webkit-scrollbar { display: none; }
.mod-tile {
  flex-shrink: 0;
  min-width: 76px;
  padding: 9px 12px;
  background: var(--surface);
  border-radius: var(--r2);
  border: 1.5px solid var(--border-mid);
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.mod-tile.active {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.mod-tile-name {
  display: block;
  font-size: 10px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90px;
}
.mod-tile-val {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-1);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90px;
}
.mod-tile.active .mod-tile-val { color: var(--accent); }

/* Аккордеон пилюль */
.mod-accordion { padding: 10px 0 4px; }

/* Пилюли */
.mod-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.mod-pill {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--border-mid);
  font-size: 13px;
  color: var(--text-2);
  background: transparent;
  cursor: pointer;
  transition: border-color .12s, background .12s, color .12s;
  white-space: nowrap;
  min-height: 36px;
}
.mod-pill.selected {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
  font-weight: 600;
}
.mod-extra {
  font-size: 11px;
  color: var(--accent-2);
  margin-left: 2px;
  font-weight: 600;
}

/* Модификаторы в корзине */
.cart-item-mods {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 3px;
}
.cart-item-mod {
  font-size: 11px;
  color: var(--text-3);
  background: var(--surface);
  border-radius: 999px;
  padding: 1px 7px;
}

/* ─── 404 ────────────────────────────────────────────────────── */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100vh;
  padding: 32px;
  gap: 16px;
}
.error-code {
  font-size: 80px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}
.error-msg { font-size: 18px; font-weight: 700; }
.error-sub { font-size: 14px; color: var(--text-2); }

/* ─── Футер разработчика ───────────────────────────────────────── */
.dev-footer {
  text-align: center;
  padding: 20px 16px 28px;
  font-size: 12px;
  color: var(--text-3);
}
.dev-footer a {
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.2s;
}
.dev-footer a:hover { color: var(--accent); }

/* ─── Переключатель языков ─────────────────────────────────────── */
.lang-switcher {
  position: fixed;
  top: 4px;
  right: 4px;
  z-index: 500;
}
.lang-btn {
  padding: 4px 9px;
  border-radius: 6px;
  border: 1px solid var(--border-mid);
  background: var(--card);
  color: var(--text-2);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: .03em;
  transition: background 0.15s, color 0.15s;
}
.lang-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.lang-btn:hover:not(.active) {
  background: var(--surface);
}

/* ─── Промо-баннеры (carousel) ────────────────────────────────── */
.banner-carousel {
  position: relative;
  margin: 0 0 14px;
  border-radius: var(--r2);
  overflow: hidden;
  height: 160px;
  background: var(--surface);
}
.banner-slide {
  display: none;
  position: absolute;
  inset: 0;
  background: var(--surface);
}
.banner-slide.active {
  display: block;
}
.banner-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.08) 60%);
  display: flex;
  align-items: flex-end;
}
.banner-content {
  padding: 0 16px 22px;
  text-decoration: none;
  width: 100%;
}
a.banner-content { cursor: pointer; }
.banner-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3px;
  text-shadow: 0 1px 5px rgba(0,0,0,0.4);
}
.banner-body {
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  line-height: 1.4;
}
.banner-dots {
  position: absolute;
  bottom: 8px;
  right: 12px;
  display: flex;
  gap: 5px;
  z-index: 10;
}
.banner-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.banner-dot.active {
  background: #fff;
  transform: scale(1.35);
}

/* Progress bar — заполняется за 4 сек, сбрасывается при смене слайда */
.banner-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,0.18);
  z-index: 10;
}
.banner-progress-bar {
  height: 100%;
  width: 0;
  background: rgba(255,255,255,0.80);
}
/* ВАЖНО: длительность анимации (4s) должна совпадать с BANNER_INTERVAL в index.html */
.banner-progress-bar.running {
  animation: banner-progress 4s linear forwards;
}
@keyframes banner-progress {
  from { width: 0; }
  to   { width: 100%; }
}

/* ═══════════════════════════════════════════════════════════════════
   ПРЕСЕТЫ ТЕМ — CSS vars задаются через themes.js + theme.js
   Здесь только layout и стилевые правила для ocean / forest
   ═══════════════════════════════════════════════════════════════════ */

/* ─── OCEAN ──────────────────────────────────────────────────────── */
/* Тёмно-синий фон (beams), 2-колоночный грид, круглые фото         */
[data-theme="ocean"] .page-header {
  background: rgba(26, 48, 90, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: none;
}
[data-theme="ocean"] .page-header h1 { color: #ffffff; }
[data-theme="ocean"] .back-btn {
  background: rgba(255,255,255,0.15);
  color: #ffffff;
  box-shadow: none;
}
[data-theme="ocean"] .tabs-wrap {
  background: rgba(22, 42, 82, 0.98);
  border-bottom: none;
  padding: 8px 12px;
}
[data-theme="ocean"] .tabs { gap: 4px; }
[data-theme="ocean"] .tab {
  color: rgba(255,255,255,0.50);
  border-bottom: 2px solid transparent;
  padding: 7px 14px;
  font-size: 13px;
  border-radius: 999px;
  transition: background .15s, color .15s;
}
[data-theme="ocean"] .tab.active {
  color: #ffffff;
  background: rgba(255,255,255,0.16);
  border-bottom-color: transparent;
}
/* Ocean: 2-колоночный грид + круглые фото */
[data-theme="ocean"] .subcategory-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 12px;
}
[data-theme="ocean"] .subcategory-title {
  grid-column: 1 / -1;
}
[data-theme="ocean"] .dish-card {
  flex-direction: column;
  align-items: center;
  padding: 16px 10px 14px;
  gap: 0;
  margin-bottom: 0;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(30, 58, 110, 0.10);
  background: rgba(245, 240, 232, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.40);
}
[data-theme="ocean"] .dish-card-img {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  margin-bottom: 11px;
  box-shadow: 0 6px 20px rgba(30, 58, 110, 0.22);
  border: 3px solid rgba(255, 255, 255, 0.90);
  outline: 1.5px solid rgba(30, 58, 110, 0.12);
  outline-offset: 2px;
}
[data-theme="ocean"] .dish-card-img-placeholder {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  margin-bottom: 11px;
}
[data-theme="ocean"] .dish-card-body {
  padding: 0;
  align-items: center;
  text-align: center;
  width: 100%;
}
[data-theme="ocean"] .dish-card-name {
  font-size: 13px;
  white-space: normal;
  text-align: center;
  line-height: 1.3;
}
[data-theme="ocean"] .dish-card-desc {
  text-align: center;
  font-size: 11px;
}
[data-theme="ocean"] .dish-card-footer {
  justify-content: center;
  margin-top: 8px;
}
[data-theme="ocean"] .dish-price {
  color: var(--accent-2);
}
[data-theme="ocean"] .home-section {
  background: rgba(240, 248, 255, 0.88);  /* голубоватое стекло, как карточки */
  border-color: rgba(14, 107, 173, 0.10);
}
[data-theme="ocean"] .dish-add-bar {
  background: rgba(240, 248, 255, 0.97);
  border-top-color: rgba(14, 107, 173, 0.12);
}
[data-theme="ocean"] .ingredient-tag {
  background: rgba(14, 107, 173, 0.07);
  border-color: rgba(14, 107, 173, 0.16);
}

/* ─── FOREST ─────────────────────────────────────────────────────── */
/* Тёмно-зелёный фон (gradient), 2-колоночный грид, фото сверху     */
[data-theme="forest"] .page-header {
  background: rgba(5, 46, 22, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(74, 222, 128, 0.12);
}
[data-theme="forest"] .page-header h1 { color: #ffffff; }
[data-theme="forest"] .back-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  box-shadow: none;
}
[data-theme="forest"] .tabs-wrap {
  background: rgba(6, 78, 59, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: none;
  padding: 8px 16px;
}
[data-theme="forest"] .tabs { gap: 6px; }
[data-theme="forest"] .tab {
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.50);
  padding: 8px 16px;
  border-bottom: none;
  font-size: 13px;
  transition: background .15s, color .15s;
}
[data-theme="forest"] .tab.active {
  background: var(--accent);
  color: #ffffff;
  border-bottom-color: transparent;
}
/* Forest: 2-колоночный грид, фото сверху, органичный кроп */
[data-theme="forest"] .subcategory-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 12px;
}
[data-theme="forest"] .subcategory-title {
  grid-column: 1 / -1;
}
[data-theme="forest"] .dish-card {
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  gap: 0;
  margin-bottom: 0;
  border-radius: var(--r2);
  overflow: hidden;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.14);
  border: 1px solid rgba(61, 107, 79, 0.12);
}
[data-theme="forest"] .dish-card-img {
  width: 100%;
  height: 120px;
  border-radius: 0;
  object-fit: cover;
  flex-shrink: 0;
}
[data-theme="forest"] .dish-card-img-placeholder {
  width: 100%;
  height: 120px;
  border-radius: 0;
  flex-shrink: 0;
}
[data-theme="forest"] .dish-card-body {
  padding: 10px 12px 12px;
  align-items: flex-start;
  width: 100%;
  box-sizing: border-box;
}
[data-theme="forest"] .dish-card-name {
  font-size: 13px;
  font-weight: 700;
  white-space: normal;
  line-height: 1.3;
}
[data-theme="forest"] .dish-card-desc {
  font-size: 11px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
[data-theme="forest"] .dish-price {
  font-size: 16px;
  font-weight: 800;
}
[data-theme="forest"] .home-section {
  background: rgba(250, 246, 240, 0.93);  /* тёплый органичный пергамент */
  border-color: rgba(26, 110, 46, 0.10);
}
[data-theme="forest"] .category-card {
  border-radius: var(--r2);
}
[data-theme="forest"] .ingredient-tag {
  background: rgba(26, 110, 46, 0.07);
  border-color: rgba(26, 110, 46, 0.16);
  border-radius: 4px;
}
[data-theme="forest"] .dish-add-bar {
  background: rgba(250, 246, 240, 0.97);
  border-top-color: rgba(26, 110, 46, 0.12);
}

/* ═══════════════════════════════════════════════════════════════════
   НОВАЯ ГЛАВНАЯ СТРАНИЦА — компоненты редизайна v2
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Фиксированный хедер главной ───────────────────────────────── */
.home-header {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  padding-top: max(10px, env(safe-area-inset-top));
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(180, 120, 40, 0.10);
}
.home-header-logo {
  height: 40px;
  max-width: 160px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.home-header-logo-text {
  font-family: var(--font-heading), -apple-system, sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: -0.02em;
}
.home-header-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-1);
  position: relative;
  transition: background .15s;
  flex-shrink: 0;
}
.home-header-cart:active { background: var(--card-hover); }
.home-header-cart svg { width: 22px; height: 22px; }
.home-header-cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  display: none;
}
.home-header-cart-badge.visible { display: flex; }

/* ─── Поисковая строка ───────────────────────────────────────────── */
.search-bar-wrap {
  padding: 10px 16px 12px;
  position: relative;
}
.search-bar-inner {
  position: relative;
  display: flex;
  align-items: center;
}
.search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-3);
  pointer-events: none;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.search-input {
  width: 100%;
  height: 48px;
  padding: 0 16px 0 42px;
  border-radius: 999px;
  border: 1.5px solid var(--border-mid);
  background: rgba(255, 253, 248, 0.96);
  font-family: var(--font-body), -apple-system, sans-serif;
  font-size: 15px;
  color: var(--text-1);
  box-shadow: 0 2px 12px rgba(140, 80, 10, 0.07);
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
  touch-action: manipulation;
}
.search-input::placeholder { color: var(--text-3); }
.search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.12), 0 2px 12px rgba(140, 80, 10, 0.07);
}

/* Выпадающий список результатов */
.search-results {
  display: block;
  position: absolute;
  top: calc(100% + 4px);
  left: 16px;
  right: 16px;
  z-index: 300;
  background: var(--card);
  border-radius: var(--r2);
  box-shadow: 0 8px 32px rgba(140, 80, 10, 0.15), 0 2px 8px rgba(140, 80, 10, 0.07);
  border: 1px solid var(--border);
  overflow: hidden;
  max-height: calc(100dvh - 140px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--text-1);
  border-bottom: 1px solid var(--border);
  min-height: 56px;
  transition: background .1s;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:active { background: var(--surface); }
.search-result-img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--surface);
  flex-shrink: 0;
}
.search-result-img-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.search-result-body { flex: 1; min-width: 0; }
.search-result-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 6px;
}
.search-result-meta {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 2px;
}
.search-result-price { color: var(--accent); font-weight: 600; }
.search-result-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  flex-shrink: 0;
}
.search-result-badge.combo {
  background: var(--accent-dim);
  color: var(--accent);
}
.search-empty {
  padding: 24px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--text-3);
}

/* Skeleton loader */
.search-skeleton-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  min-height: 56px;
}
.search-skeleton-item:last-child { border-bottom: none; }
.search-skeleton-img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--surface);
  flex-shrink: 0;
  animation: shimmer 1.2s ease-in-out infinite;
}
.search-skeleton-text { flex: 1; }
.search-skeleton-line {
  height: 12px;
  border-radius: 6px;
  background: var(--surface);
  margin-bottom: 8px;
  animation: shimmer 1.2s ease-in-out infinite;
}
.search-skeleton-line.wide { width: 70%; }
.search-skeleton-line.narrow { width: 40%; margin-bottom: 0; }

@keyframes shimmer {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

/* ─── Заголовок секции ("Menu" + "View all") ─────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.section-header .section-title { margin-bottom: 0; }
.section-view-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}

/* ─── Категории горизонтальный скролл ────────────────────────────── */
.cats-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2px 16px 6px;
  margin: 0 -16px;
}
.cats-scroll::-webkit-scrollbar { display: none; }

.cat-chip {
  width: 140px;
  height: 100px;
  flex-shrink: 0;
  scroll-snap-align: start;
  border-radius: var(--r2);
  overflow: hidden;
  background: var(--surface);
  background-size: cover;
  background-position: center;
  position: relative;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(140, 80, 10, 0.10), 0 1px 4px rgba(140, 80, 10, 0.05);
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
}
.cat-chip:active {
  transform: scale(0.95);
  box-shadow: 0 2px 8px rgba(140, 80, 10, 0.07);
}
.cat-chip-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.60) 0%, rgba(0,0,0,0.05) 55%);
  display: flex;
  align-items: flex-end;
  padding: 10px 11px;
}
.cat-chip-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  font-family: var(--font-heading), -apple-system, sans-serif;
}

/* ─── Combo карусель ─────────────────────────────────────────────── */
.combo-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2px 16px 6px;
  margin: 0 -16px;
}
.combo-scroll::-webkit-scrollbar { display: none; }

.combo-card {
  width: calc(85vw);
  max-width: 380px;
  min-width: 220px;
  flex-shrink: 0;
  scroll-snap-align: start;
  border-radius: var(--r2);
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 4px 20px rgba(140, 80, 10, 0.10), 0 1px 6px rgba(140, 80, 10, 0.06);
  cursor: pointer;
  text-decoration: none;
  color: var(--text-1);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.combo-card:active {
  transform: scale(0.97);
  box-shadow: 0 2px 10px rgba(140, 80, 10, 0.08);
}
.combo-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--surface);
  overflow: hidden;
}
.combo-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.combo-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  background: var(--surface);
}
.combo-card-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.combo-card-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-1);
  font-family: var(--font-heading), -apple-system, sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.combo-card-desc {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.combo-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}
.combo-price-badge {
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}

/* ─── Info & Social секция (перенос контента главной) ────────────── */
.info-social-wrap {
  margin-top: 28px;
}

/* Ocean/Forest темы: home-header */
[data-theme="ocean"] .home-header {
  background: rgba(7, 40, 65, 0.95);
  border-bottom: none;
}
[data-theme="ocean"] .home-header-logo-text { color: #ffffff; }
[data-theme="ocean"] .home-header-cart {
  background: rgba(255,255,255,0.15);
  color: #ffffff;
}
[data-theme="forest"] .home-header {
  background: rgba(5, 46, 22, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(74, 222, 128, 0.10);
}
[data-theme="forest"] .home-header-logo-text { color: #ffffff; }
[data-theme="forest"] .home-header-cart {
  background: rgba(255,255,255,0.12);
  color: #ffffff;
}

/* ─── Глобус + дропдаун языков (только главная) ─────────────────── */
/* Скрываем старый фиксированный switcher на главной */
.hide-lang-sw #lang-sw { display: none !important; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-globe-wrap {
  position: relative;
}
.lang-globe-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: none;
  cursor: pointer;
  color: var(--text-2);
  transition: background .15s, color .15s;
  font-family: inherit;
}
.lang-globe-btn:active { background: var(--card-hover); }
.lang-globe-btn svg { width: 20px; height: 20px; }

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--card);
  border: 1px solid var(--border-mid);
  border-radius: var(--r);
  box-shadow: 0 8px 28px rgba(140, 80, 10, 0.14);
  min-width: 110px;
  z-index: 400;
  overflow: hidden;
}
.lang-dropdown.open { display: block; }
.lang-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 11px 16px;
  border: none;
  background: none;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-2);
  cursor: pointer;
  text-align: left;
  transition: background .1s;
}
.lang-dropdown-item:hover { background: var(--surface); }
.lang-dropdown-item.active {
  color: var(--accent);
  background: var(--accent-dim);
}
.lang-dropdown-item .lang-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  flex-shrink: 0;
}
.lang-dropdown-item.active .lang-dot { opacity: 1; }

/* Ocean/Forest тема */
[data-theme="ocean"] .lang-globe-btn,
[data-theme="forest"] .lang-globe-btn {
  background: rgba(255,255,255,0.15);
  color: #ffffff;
}

/* ─── Скрываем старый placeholder с ? во всех темах ─────────── */
.dish-card-img-placeholder { display: none !important; }

/* ─── Карточка без картинки: добавить левый padding к body ─── */
.dish-card-body:first-child { padding-left: 12px; }

/* ─── Недоступные блюда ─────────────────────────────────────── */
.dish-card--unavailable {
  opacity: 0.50;
  pointer-events: none;
}
.dish-card--unavailable .dish-card-name {
  text-decoration: line-through;
  text-decoration-color: var(--text-3);
}

/* ─── Skeleton для страницы категории ───────────────────────── */
.dish-card--skeleton {
  pointer-events: none;
}
.dish-card--skeleton .sk-img {
  width: 108px;
  height: 108px;
  flex-shrink: 0;
  border-radius: var(--r);
  background: var(--surface);
  animation: shimmer 1.2s ease-in-out infinite;
}
.dish-card--skeleton .sk-line {
  height: 13px;
  border-radius: 6px;
  background: var(--surface);
  margin-bottom: 8px;
  animation: shimmer 1.2s ease-in-out infinite;
}
.dish-card--skeleton .sk-line--title { width: 70%; }
.dish-card--skeleton .sk-line--desc  { width: 90%; }
.dish-card--skeleton .sk-line--price { width: 30%; margin-bottom: 0; }

/* ─── Search results — плавное появление ────────────────────── */
.search-results {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}
.search-results.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ─── Modifier pill — transition при выборе ─────────────────── */
.mod-pill {
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}

/* ══════════════════════════════════════════════════════════════════════
   ТЁМНЫЕ ТЕМЫ — читаемость текста и персонажность
   ══════════════════════════════════════════════════════════════════════

   Проблема: Ocean и Forest имеют --text-1:#fff (для тёмного фона),
   но карточки блюд, секции и дропдауны — светлые.
   Решение: CSS custom properties переопределяются локально внутри
   светлых контейнеров, чтобы текст стал тёмным и читаемым.
   ══════════════════════════════════════════════════════════════════════ */

/* ── Поисковая строка на тёмном фоне ─────────────────────────────── */
[data-theme="ocean"] .search-input,
[data-theme="forest"] .search-input {
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.20);
  box-shadow: none;
}
[data-theme="ocean"] .search-input::placeholder,
[data-theme="forest"] .search-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}
[data-theme="ocean"] .search-input:focus,
[data-theme="forest"] .search-input:focus {
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}
[data-theme="ocean"] .search-icon,
[data-theme="forest"] .search-icon {
  color: rgba(255, 255, 255, 0.50);
}

/* ── Ocean: тёмный текст внутри светлых стеклянных карточек ──────── */
[data-theme="ocean"] .dish-card,
[data-theme="ocean"] .home-section,
[data-theme="ocean"] .search-results,
[data-theme="ocean"] .combo-card,
[data-theme="ocean"] .lang-dropdown,
[data-theme="ocean"] .dish-add-bar {
  --text-1:    #0c2340;
  --text-2:    #1e4878;
  --text-3:    #5080aa;
  --accent:    #0e6bad;
  --accent-2:  #b03530;
  --accent-dim: rgba(14, 107, 173, 0.10);
  --surface:   rgba(220, 235, 255, 0.50);
  --border:    rgba(14, 107, 173, 0.12);
  --border-mid:rgba(14, 107, 173, 0.22);
}

/* ── Forest: тёмный текст внутри тёплых органичных карточек ─────── */
[data-theme="forest"] .dish-card,
[data-theme="forest"] .home-section,
[data-theme="forest"] .search-results,
[data-theme="forest"] .combo-card,
[data-theme="forest"] .lang-dropdown,
[data-theme="forest"] .dish-add-bar {
  --text-1:    #0a220f;
  --text-2:    #1e4a24;
  --text-3:    #4a7850;
  --accent:    #1a6e2e;
  --accent-2:  #1a6e2e;
  --accent-dim: rgba(26, 110, 46, 0.10);
  --surface:   rgba(220, 245, 225, 0.50);
  --border:    rgba(26, 110, 46, 0.12);
  --border-mid:rgba(26, 110, 46, 0.22);
}

/* ── Социальные кнопки в светлых секциях тёмных тем ─────────────── */
[data-theme="ocean"] .social-btn {
  background: rgba(14, 107, 173, 0.07);
  border-color: rgba(14, 107, 173, 0.20);
}
[data-theme="forest"] .social-btn {
  background: rgba(26, 110, 46, 0.07);
  border-color: rgba(26, 110, 46, 0.20);
}

/* ── Ocean: карточки блюд — glass effect с голубоватым оттенком ──── */
[data-theme="ocean"] .dish-card {
  border: 1px solid rgba(255, 255, 255, 0.50);
  box-shadow: 0 4px 18px rgba(0, 30, 80, 0.14), 0 1px 4px rgba(0, 30, 80, 0.08);
}

/* ── Forest: угловые карточки и секции ───────────────────────────── */
[data-theme="forest"] .combo-card      { border-radius: var(--r2); }
[data-theme="forest"] .home-section    { border-radius: var(--r2); }
[data-theme="forest"] .search-results  { border-radius: var(--r2); }
[data-theme="forest"] .banner-carousel { border-radius: var(--r2); }
[data-theme="forest"] .banner-carousel { border-radius: var(--r2); }

/* ── Forest: стиль ingredient-tag, qty-ctrl, mod-tile в угловом стиле */
[data-theme="forest"] .ingredient-tag  { border-radius: 4px; }
[data-theme="forest"] .qty-ctrl        { border-radius: 6px; }
[data-theme="forest"] .qty-add         { border-radius: 6px; }
[data-theme="forest"] .tab             { border-radius: 4px; }
[data-theme="forest"] .mod-tile        { border-radius: var(--r); }
[data-theme="forest"] .mod-pill        { border-radius: 4px; }
[data-theme="forest"] .combo-price-badge { border-radius: 4px; }
[data-theme="forest"] .dish-in-cart-badge { border-radius: 4px; }

/* ── Ocean: ingredient-tag, qty-ctrl — сохраняем округлость ─────── */
/* (Ocean по умолчанию использует var(--r) / var(--r2) — уже ок)    */

/* ── Dish-add-bar: акцентный цвет для цены (тёмные темы) ────────── */
/* accent уже переопределён через scoped vars выше ✓                  */

/* ── Home-section section-title на тёмном фоне (вне карточек) ────── */
[data-theme="ocean"] .section-title,
[data-theme="forest"] .section-title {
  color: rgba(255, 255, 255, 0.60);
  letter-spacing: .08em;
}

/* ══════════════════════════════════════════════════════════════════════
   BISTRO — бумажная тема: пергаментный фон, серифные шрифты, сепия
   ══════════════════════════════════════════════════════════════════════ */

/* Заголовки — Cormorant Garant вместо базовых heading-элементов */
[data-theme="bistro"] h1,
[data-theme="bistro"] h2,
[data-theme="bistro"] h3,
[data-theme="bistro"] .hero-name,
[data-theme="bistro"] .dish-detail-name,
[data-theme="bistro"] .category-card-name,
[data-theme="bistro"] .cat-chip-name,
[data-theme="bistro"] .combo-card-name,
[data-theme="bistro"] .dish-sheet-name,
[data-theme="bistro"] .cart-empty-title {
  font-family: var(--font-heading), Georgia, serif;
  letter-spacing: 0.01em;
}

/* Хедер главной — тёплый пергаментный */
[data-theme="bistro"] .home-header {
  background: rgba(253, 248, 240, 0.94);
  border-bottom: 1px solid rgba(110, 70, 20, 0.10);
}

/* Шапка страницы категории/блюда */
[data-theme="bistro"] .page-header {
  background: rgba(253, 248, 240, 0.95);
  border-bottom: 1px solid rgba(110, 70, 20, 0.12);
}

/* Табы подкатегорий */
[data-theme="bistro"] .tabs-wrap {
  background: rgba(253, 248, 240, 0.97);
  border-bottom: 1px solid rgba(110, 70, 20, 0.10);
}
[data-theme="bistro"] .tab {
  color: var(--text-3);
  border-bottom: 2px solid transparent;
}
[data-theme="bistro"] .tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: rgba(124, 74, 30, 0.06);
}

/* Секции главной страницы */
[data-theme="bistro"] .home-section {
  background: rgba(255, 252, 247, 0.90);
  border: 1px solid rgba(110, 70, 20, 0.10);
  box-shadow: 0 3px 14px rgba(100, 55, 10, 0.07);
}

/* Карточки блюд — тонкая сепиа-рамка */
[data-theme="bistro"] .dish-card {
  border: 1px solid rgba(110, 70, 20, 0.09);
  box-shadow: 0 3px 14px rgba(100, 55, 10, 0.08), 0 1px 3px rgba(100, 55, 10, 0.04);
}

/* Sticky bar добавления в корзину */
[data-theme="bistro"] .dish-add-bar {
  background: rgba(253, 248, 240, 0.97);
  border-top: 1px solid rgba(110, 70, 20, 0.10);
}

/* Dish sheet (белая карточка снизу на dish.html) */
[data-theme="bistro"] .dish-sheet {
  background: var(--bg);
}

/* Поисковая строка — тёплая сепиа-рамка */
[data-theme="bistro"] .search-input {
  background: rgba(255, 252, 247, 0.96);
  border-color: rgba(110, 70, 20, 0.18);
  box-shadow: 0 2px 10px rgba(100, 55, 10, 0.06);
}
[data-theme="bistro"] .search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124, 74, 30, 0.10);
}

/* Карточки комбо */
[data-theme="bistro"] .combo-card {
  border: 1px solid rgba(110, 70, 20, 0.09);
  box-shadow: 0 3px 14px rgba(100, 55, 10, 0.08);
}

/* Section title — немного темнее чем у Sunny */
[data-theme="bistro"] .section-title {
  color: var(--text-3);
  letter-spacing: .07em;
}

/* Ингредиенты — сепиа-пилюли */
[data-theme="bistro"] .ingredient-tag {
  background: rgba(124, 74, 30, 0.06);
  border-color: rgba(124, 74, 30, 0.14);
  border-radius: 4px;   /* чуть угловатее, как марки */
}

/* Социальные кнопки */
[data-theme="bistro"] .social-btn {
  background: rgba(124, 74, 30, 0.06);
  border-color: rgba(124, 74, 30, 0.16);
}

/* Категории — чуть менее скруглённые */
[data-theme="bistro"] .cat-chip {
  border-radius: var(--r2);
  box-shadow: 0 4px 16px rgba(100, 55, 10, 0.12);
}

/* Нутриенты */
[data-theme="bistro"] .nutr-strip {
  border-color: rgba(124, 74, 30, 0.10);
}
[data-theme="bistro"] .nutr-item {
  background: var(--surface);
}
[data-theme="bistro"] .nutr-item + .nutr-item {
  border-left-color: rgba(124, 74, 30, 0.10);
}

/* Logo mix-blend-mode работает на светлом фоне */
[data-theme="bistro"] .home-header-logo {
  mix-blend-mode: multiply;
}

/* ── Bistro: всё без скруглений ────────────────────────────────────── */
/* var(--r) и var(--r2) уже = 0, но есть хардкоженные значения: */
[data-theme="bistro"] .search-input      { border-radius: 0; }
[data-theme="bistro"] .search-results    { border-radius: 0; }
[data-theme="bistro"] .search-result-img { border-radius: 0; }
[data-theme="bistro"] .dish-sheet        { border-radius: 0; }
[data-theme="bistro"] .dish-card-img     { border-radius: 0; }
[data-theme="bistro"] .cart-item-img     { border-radius: 0; }
[data-theme="bistro"] .qty-ctrl          { border-radius: 0; }
[data-theme="bistro"] .mod-pill          { border-radius: 0; }
[data-theme="bistro"] .combo-price-badge { border-radius: 2px; }
[data-theme="bistro"] .dish-in-cart-badge{ border-radius: 2px; }
[data-theme="bistro"] .dish-unavailable-badge { border-radius: 2px; }
[data-theme="bistro"] .lang-dropdown     { border-radius: 0; }
[data-theme="bistro"] .banner-carousel   { border-radius: 0; }
/* FAB, back-btn, globe-btn — оставляем круглыми (nav-элементы) */


/* ══════════════════════════════════════════════════════════════════════════════
   НОВЫЕ LAYOUT-ТЕМЫ: Editorial · Brutal · Modernist · Gourmand
   Управляются через [data-layout="..."] на <html>
   ══════════════════════════════════════════════════════════════════════════════ */

/* ─── Общая переменная для моноширинного шрифта ──────────────────────────── */
:root { --font-mono: 'JetBrains Mono', ui-monospace, monospace; }


/* ════════════════════════════════════════════════════════
   A · EDITORIAL — журнальный стиль, крупный серифный,
   тёплый кремовый фон, терракотовый акцент
   ════════════════════════════════════════════════════════ */

/* Категории на главной: нумерованные строки-разделители */
.cats-editorial {
  border-top: 1px solid var(--border-mid);
  margin: 0 -16px 8px;
}
.cat-editorial-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background 0.12s;
}
.cat-editorial-row:active { background: var(--surface); }
.cat-editorial-num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-2);
  width: 26px;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}
.cat-editorial-img {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--surface);
}
.cat-editorial-name {
  font-family: var(--font-heading), 'Instrument Serif', Georgia, serif;
  font-size: 28px;
  font-style: italic;
  font-weight: 400;
  flex: 1;
  line-height: 1;
}
.cat-editorial-arrow { color: var(--text-2); font-size: 16px; }

/* Карточки блюд: горизонтальные строки, серифное имя */
[data-layout="editorial"] .dish-card {
  flex-direction: row;
  border-radius: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  box-shadow: none;
  padding: 16px 20px;
  gap: 14px;
  margin-bottom: 0;
}
[data-layout="editorial"] .dish-card:active { background: var(--surface); }
[data-layout="editorial"] .dish-card-img {
  width: 70px;
  height: 88px;
  border-radius: 2px;
  flex-shrink: 0;
  object-fit: cover;
}
[data-layout="editorial"] .dish-card-name {
  font-family: var(--font-heading), 'Instrument Serif', Georgia, serif;
  font-size: 22px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.1;
}
[data-layout="editorial"] .dish-card-desc {
  font-size: 12px;
  line-height: 1.45;
}
[data-layout="editorial"] .dish-price {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
}
[data-layout="editorial"] .subcategory-section {
  border-top: 1.5px solid var(--border-mid);
}
[data-layout="editorial"] .subcategory-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
  padding: 14px 20px 4px;
  margin: 0;
  font-weight: 600;
}

/* Хедер категории */
[data-layout="editorial"] .page-header h1 {
  font-family: var(--font-heading), 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 32px;
  letter-spacing: -0.4px;
}

/* Детальная страница блюда */
[data-layout="editorial"] .dish-sheet { border-radius: 0; }
[data-layout="editorial"] .dish-sheet-name {
  font-family: var(--font-heading), 'Instrument Serif', Georgia, serif;
  font-size: 42px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.8px;
  line-height: 1;
}
[data-layout="editorial"] .dish-sheet-price {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
}
[data-layout="editorial"] .home-header { border-bottom: 1px solid var(--border); }
[data-layout="editorial"] .home-header-logo-text {
  font-family: var(--font-heading), Georgia, serif;
  font-style: italic;
  font-size: 22px;
}

/* Табы, поиск */
[data-layout="editorial"] .tab { border-radius: 0; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; }
[data-layout="editorial"] .tab.active { background: var(--text-1); color: var(--bg); }
[data-layout="editorial"] .search-input { border-radius: 0; }
[data-layout="editorial"] .search-bar-inner { border-radius: 0; }
[data-layout="editorial"] .tabs-wrap { border-top: 1px solid var(--border-mid); }


/* ════════════════════════════════════════════════════════
   B · BRUTAL — брутализм, монопространство, ноль скруглений,
   кислотно-лаймовый акцент, жёсткие рамки
   ════════════════════════════════════════════════════════ */

/* Категории: закодированные строки-индекс */
.cats-brutal {
  border-top: 1.5px solid var(--border-mid);
  margin: 0 -16px;
}
.cat-brutal-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--border-mid);
  text-decoration: none;
  color: inherit;
  transition: background 0.1s;
}
.cat-brutal-row:active { background: var(--surface); }
.cat-brutal-code {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-2);
  width: 44px;
  font-weight: 600;
  flex-shrink: 0;
}
.cat-brutal-name {
  font-family: var(--font-heading), system-ui, sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  flex: 1;
}
.cat-brutal-arr { font-weight: 700; font-size: 15px; }

/* Карточки блюд: горизонтальные, без скруглений, жёсткие рамки */
[data-layout="brutal"] .dish-card {
  flex-direction: row;
  border-radius: 0;
  border: 1px solid var(--border-mid);
  margin-bottom: -1px;
  box-shadow: none;
  background: var(--bg);
  padding: 12px 16px;
  gap: 12px;
  align-items: center;
}
[data-layout="brutal"] .dish-card:active { background: var(--surface); }
[data-layout="brutal"] .dish-card-img {
  width: 52px;
  height: 52px;
  border-radius: 0;
  flex-shrink: 0;
  object-fit: cover;
}
[data-layout="brutal"] .dish-card-name {
  font-family: var(--font-heading), system-ui, sans-serif;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.3px;
  text-transform: uppercase;
  line-height: 1.1;
}
[data-layout="brutal"] .dish-card-desc {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-2);
}
[data-layout="brutal"] .dish-price {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}
[data-layout="brutal"] .subcategory-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 10px 16px;
  background: var(--surface);
  border-top: 1px solid var(--border-mid);
  border-bottom: 1px solid var(--border-mid);
  margin: 0;
  font-weight: 600;
}
[data-layout="brutal"] .page-header h1 {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -1px;
}
[data-layout="brutal"] .home-header { border-bottom: 1.5px solid var(--border-mid); }
[data-layout="brutal"] .section-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  font-weight: 700;
  text-transform: uppercase;
}

/* Все скругления убраны */
[data-layout="brutal"] .search-input { border-radius: 0; border: 1.5px solid var(--border-mid); }
[data-layout="brutal"] .search-bar-inner { border-radius: 0; border: 0; }
[data-layout="brutal"] .search-bar-wrap { padding: 0 0 1px; }
[data-layout="brutal"] .tab { border-radius: 0; border-right: 1px solid var(--border-mid); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; }
[data-layout="brutal"] .tab.active { background: var(--text-1); color: var(--accent); }
[data-layout="brutal"] .tabs-wrap { border-top: 1.5px solid var(--border-mid); border-bottom: 1.5px solid var(--border-mid); }
[data-layout="brutal"] .fab { border-radius: 0; }
[data-layout="brutal"] .dish-sheet { border-radius: 0; border-top: 2px solid var(--border-mid); }
[data-layout="brutal"] .dish-sheet-name { font-weight: 800; text-transform: uppercase; letter-spacing: -1px; font-size: 32px; line-height: 1; }
[data-layout="brutal"] .dish-sheet-price { font-family: var(--font-mono); font-weight: 700; }
[data-layout="brutal"] .nutr-strip { border-radius: 0; }
[data-layout="brutal"] .nutr-item { border-radius: 0; }
[data-layout="brutal"] .ingredient-tag { border-radius: 0; border: 1px solid var(--border-mid); }
[data-layout="brutal"] .add-bar { border-radius: 0; border-top: 1.5px solid var(--border-mid); }
[data-layout="brutal"] .add-to-cart-btn { border-radius: 0; }
[data-layout="brutal"] .qty-ctrl { border-radius: 0; border: 1px solid var(--border-mid); }
[data-layout="brutal"] .cart-item-img { border-radius: 0; }
[data-layout="brutal"] .dish-card-img { border-radius: 0; }
[data-layout="brutal"] .lang-dropdown { border-radius: 0; }
[data-layout="brutal"] .search-results { border-radius: 0; }
[data-layout="brutal"] .search-result-img { border-radius: 0; }


/* ════════════════════════════════════════════════════════
   C · MODERNIST — мягкие скруглённые карточки,
   цветовые блоки, зелёный акцент, чистый sans-serif
   ════════════════════════════════════════════════════════ */

/* Категории: 2-колонная сетка тональных карточек */
.cats-modernist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 0 8px;
}
.cat-modernist-card {
  border-radius: var(--r2);
  height: 128px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
  text-decoration: none;
  color: var(--text-1);
  transition: transform 0.15s, opacity 0.15s;
}
.cat-modernist-card:active { transform: scale(0.97); opacity: 0.85; }
.cat-modernist-icon {
  font-family: var(--font-heading), 'Cormorant Garamond', Georgia, serif;
  font-size: 34px;
  line-height: 1;
  opacity: 0.45;
}
.cat-modernist-name {
  font-family: var(--font-heading), system-ui, sans-serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.4px;
  line-height: 1.1;
}
.cat-modernist-count {
  font-size: 11px;
  color: var(--text-2);
  margin-top: 2px;
}

/* Карточки блюд: белые карточки с тенью, круглые углы */
[data-layout="modernist"] .dish-card {
  flex-direction: row;
  border-radius: var(--r2);
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 12px;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
  border: none;
}
[data-layout="modernist"] .dish-card:active { background: var(--card-hover); }
[data-layout="modernist"] .dish-card-img {
  width: 64px;
  height: 64px;
  border-radius: calc(var(--r2) * 0.65);
  flex-shrink: 0;
  object-fit: cover;
}
[data-layout="modernist"] .dish-card-name {
  font-family: var(--font-heading), system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.2px;
}
[data-layout="modernist"] .dish-price { font-weight: 700; }
[data-layout="modernist"] .subcategory-title {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-2);
  padding: 16px 16px 6px;
  margin: 0;
}
[data-layout="modernist"] .page-header h1 { font-weight: 700; letter-spacing: -0.6px; }
[data-layout="modernist"] .home-header { border-bottom: 1px solid var(--border); }
[data-layout="modernist"] .section-title { font-weight: 700; letter-spacing: -0.3px; font-size: 20px; }
[data-layout="modernist"] .tab { border-radius: 999px; font-weight: 600; }
[data-layout="modernist"] .tab.active { background: var(--text-1); color: var(--bg); }
[data-layout="modernist"] .search-input { border-radius: var(--r2); }
[data-layout="modernist"] .search-bar-inner { border-radius: var(--r2); }
[data-layout="modernist"] .dish-sheet { border-radius: var(--r2) var(--r2) 0 0; }
[data-layout="modernist"] .dish-sheet-name { font-weight: 700; letter-spacing: -0.6px; }
[data-layout="modernist"] .add-to-cart-btn { border-radius: 999px; }
[data-layout="modernist"] .qty-ctrl { border-radius: 999px; }


/* ════════════════════════════════════════════════════════
   D · GOURMAND — тёмный премиум, фото в полный блок,
   серифное отображение, шампанское золото
   ════════════════════════════════════════════════════════ */

/* Категории: фото-карточки с тёмным оверлеем */
.cats-gourmand {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 0 8px;
}
.cat-gourmand-card {
  height: 88px;
  border-radius: var(--r2);
  background-size: cover;
  background-position: center;
  background-color: var(--surface);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: block;
}
.cat-gourmand-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15,13,10,0.88) 0%, rgba(15,13,10,0.3) 70%);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 20px;
}
.cat-gourmand-num {
  font-family: var(--font-heading), 'Cormorant Garamond', Georgia, serif;
  font-size: 16px;
  font-style: italic;
  color: var(--accent);
  min-width: 20px;
}
.cat-gourmand-name {
  font-family: var(--font-heading), 'Cormorant Garamond', Georgia, serif;
  font-size: 30px;
  font-weight: 400;
  color: var(--text-1);
  letter-spacing: -0.3px;
  line-height: 1;
}

/* Карточки блюд: горизонтальные, серифные имена, фото чуть крупнее */
[data-layout="gourmand"] .dish-card {
  flex-direction: row;
  gap: 12px;
  padding: 14px 16px;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}
[data-layout="gourmand"] .dish-card:active { background: var(--surface); }
[data-layout="gourmand"] .dish-card-img {
  width: 66px;
  height: 88px;
  border-radius: calc(var(--r) + 2px);
  object-fit: cover;
  flex-shrink: 0;
}
[data-layout="gourmand"] .dish-card-name {
  font-family: var(--font-heading), 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.2px;
  line-height: 1.1;
}
[data-layout="gourmand"] .dish-card-desc { color: var(--text-2); font-size: 12px; }
[data-layout="gourmand"] .dish-price {
  font-family: var(--font-heading), Georgia, serif;
  font-size: 18px;
  font-style: italic;
}
[data-layout="gourmand"] .subcategory-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 14px 16px 6px;
  margin: 0;
  font-weight: 600;
}
[data-layout="gourmand"] .page-header h1 {
  font-family: var(--font-heading), 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 32px;
  letter-spacing: -0.4px;
}
[data-layout="gourmand"] .section-title {
  font-family: var(--font-heading), 'Cormorant Garamond', Georgia, serif;
  font-size: 32px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.4px;
}
[data-layout="gourmand"] .home-header {
  background: rgba(15,13,10,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
[data-layout="gourmand"] .dish-sheet-name {
  font-family: var(--font-heading), 'Cormorant Garamond', Georgia, serif;
  font-size: 38px;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.5px;
}
[data-layout="gourmand"] .dish-sheet-price {
  font-family: var(--font-heading), Georgia, serif;
  font-size: 22px;
  font-style: italic;
}
[data-layout="gourmand"] .dish-sheet { border-radius: var(--r2) var(--r2) 0 0; }
[data-layout="gourmand"] .add-to-cart-btn { border-radius: 999px; }
[data-layout="gourmand"] .qty-ctrl { border-radius: 999px; }
[data-layout="gourmand"] .tab.active { background: var(--accent); color: var(--bg); }
[data-layout="gourmand"] .search-input { border-radius: var(--r2); }
[data-layout="gourmand"] .search-bar-inner { border-radius: var(--r2); }

/* Gourmand — карточки категорий Ocean/Forest 2-col override */
[data-layout="gourmand"] .cat-chip { border-radius: var(--r2); }

/* Читаемость dish-card текста на тёмном Gourmand */
[data-theme="gourmand"] .dish-card { color: var(--text-1); }

