/* ══════════════════════════════════════════
   РЕСТОРАН ОГОНЬ — style.css
══════════════════════════════════════════ */

:root {
  /* ── Brand ── */
  --orange:        #f07018;
  --orange-light:  #f58534;
  --orange-dim:    rgba(240, 112, 24, 0.10);
  --orange-glow:   rgba(240, 112, 24, 0.22);

  /* ── Backgrounds ── */
  --bg:            #f7f7f7;
  --bg2:           #f0f0f0;
  --surface:       #FFFFFF;
  --surface2:      #fafafa;

  /* ── Границы ── */
  --border:        #e0e0e0;
  --border-light:  #d0d0d0;

  /* ── Текст ── */
  --text:          #1a1a1a;
  --text2:         #555555;
  --text3:         #888888;

  /* ── Размеры ── */
  --sidebar-w:   270px;
  --order-w:     300px;
  --header-h:    64px;
  --sticky-top:  171px; /* header + search-tabs-sticky */
  --radius-lg:   16px;
  --radius-md:   10px;
  --radius-sm:   7px;
}


/* ── Light theme ── */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Manrope', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ══════════════════
   HEADER
══════════════════ */
header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(243, 238, 249, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  border-radius: 0 0 24px 24px;
  justify-content: space-between;
  padding: 0 28px;
  height: var(--header-h);
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}

.dish-card.highlighted-dish {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.flame-icon {
  font-size: 26px;
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(240,112,24,0.5));
}

.logo {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--text);
  line-height: 1.15;
}

.logo em {
  color: var(--orange);
  font-style: normal;
}


.logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.logo-img-sub {
  height: 40px;
  width: auto;
  display: block;
}

.logo-sub {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--text3);
  margin-top: 1px;
}

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

.nav-btn {
  padding: 7px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: none;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  cursor: pointer;
  transition: all 0.15s;
}

.nav-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--orange-dim);
}

.nav-btn.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.order-toggle-btn { display: none; }
/* ══════════════════
   PAGES
══════════════════ */
.page { display: none; }
.page.active {
  display: block;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

/* ══════════════════
   LAYOUT
══════════════════ */
.menu-layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr var(--order-w);
  min-height: calc(100vh - var(--header-h));
  align-items: start;
}

.mobile-cart-bar {
    display: none;
  }

/* ══════════════════
   DESKTOP — приховати замовлення
══════════════════ */
@media (min-width: 769px) {
  .order-panel {
    display: none !important;
  }
  .menu-layout {
    grid-template-columns: var(--sidebar-w) 1fr;
  }
  .add-btn {
    display: none !important;
  }
  .order-toggle-btn {
    display: none !important;
  }
}

/* ══════════════════
   SIDEBAR
══════════════════ */
aside {
  border-right: 1px solid var(--border);
  background: var(--surface);
  padding: 24px 0 28px;
  position: sticky;
  top: calc(var(--header-h) + 20px);
  height: auto;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  margin: 20px 0 20px 20px;
}

aside::-webkit-scrollbar { width: 3px; }
aside::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 2px; }

.sidebar-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text3);
  padding: 0 20px;
  margin-bottom: 16px;
}

.info-block { padding: 0 16px 8px; }

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.info-item:last-child { border-bottom: none; }

.info-icon-wrap {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--orange-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.info-text strong {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  display: block;
  line-height: 1.35;
}

.info-text span {
  font-size: 11.5px;
  color: var(--text3);
  line-height: 1.4;
}

.social-row {
  display: flex;
  gap: 7px;
  padding: 14px 16px 0;
}

.social-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text3);
  text-decoration: none;
  transition: all 0.15s;
}

.social-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--orange-dim);
}

.social-btn svg { width: 13px; height: 13px; }

/* Google Reviews */
.google-reviews-btn {
  margin: 14px 16px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: var(--surface);
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}


.google-g { width: 20px; height: 20px; flex-shrink: 0; }
.google-reviews-info { flex: 1; }

.google-reviews-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text2);
  display: block;
  line-height: 1;
}

.google-stars {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-top: 4px;
}

.star { color: #FBBC05; font-size: 12px; line-height: 1; }

.google-score {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  margin-left: 3px;
}

.sidebar-spacer { flex: 1; }

/* ══════════════════
   MAIN COLUMN
══════════════════ */
.main-col {
  padding: 20px 24px;
  min-width: 0;
}

/* ══════════════════
   STICKY TABS
══════════════════ */
.search-tabs-sticky {
  position: sticky;
  top: var(--header-h);
  z-index: 100;
  background: var(--bg);
}

.cat-tabs-sticky {
  background: var(--bg);
  padding: 8px 0 6px;
}

.cat-tabs-swiper {
  overflow: hidden;
}

.cat-tab {
  width: auto !important;
  flex-shrink: 0;
  padding: 7px 15px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text2);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.cat-tab:hover {
  border-color: var(--bg);
  color: var(--orange);
  background: var(--orange-dim);
}

.cat-tab.active {
  background: var(--orange);
  border-color: var(--bg);
  color: #FFFFFF;
}

.cat-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 5px;
  padding: 1px 5px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(0,0,0,0.10);
  color: inherit;
  min-width: 18px;
  line-height: 16px;
  vertical-align: middle;
}
.cat-tab.active .cat-tab-count {
  background: rgba(255,255,255,0.25);
  color: #fff;
}

.section-switch-wrap {
  display: flex;
  justify-content: center;
  padding: 2px 0 10px;
}

.section-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(223,107,44,0.18);
  border-radius: 8px;
  background: rgba(255,255,255,0.68);
  box-shadow: 0 8px 22px rgba(0,0,0,0.06);
  backdrop-filter: blur(10px);
}

.section-switch-btn {
  min-width: 86px;
  height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text2);
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.section-switch-btn:hover {
  color: var(--orange);
  background: var(--orange-dim);
}

.section-switch-btn.active {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 5px 14px rgba(223,107,44,0.22);
}

/* ══════════════════
   CATEGORY SECTION
══════════════════ */
.cat-section {
  margin-bottom: 14px;
  border-radius: var(--radius-lg);
}

.cat-header {
  display: flex;
  justify-content: left;
  align-items: center;
  cursor: pointer;
  transition: background 0.15s;
  user-select: none;
  border-radius: 12px 12px 0 0;
padding: 8px 0px;

}


.cat-header-left {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: left;
  gap: 12px;
}

.cat-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
}

.cat-count {
  background: var(--orange);
  color: var(--bg);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 700;
}

.cat-chevron {
  color: var(--text);
  font-size: 11px;
  transition: transform 0.25s ease;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.cat-chevron.open { transform: rotate(180deg); }

.cat-body {
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(.4, 0, .2, 1);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.cat-body.collapsed { max-height: 0 !important; }

.dishes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

/* ══════════════════
   DISH CARD
══════════════════ */
.dish-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: visible;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.15s;
  padding: 10px 10px 14px;
  position: relative;
}

.dish-card:hover {
  border-color: #d0d0d0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}





.dish-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f5f5f5;
  overflow: hidden;
  flex-shrink: 0;
  border-radius: 12px;
  margin-bottom: 10px;
}

.dish-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
  aspect-ratio: 1 / 1;

}

.dish-card:hover .dish-img-wrap img { transform: scale(1.03); }

.dish-img-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--text3);
  opacity: 0.35;
}

.dish-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.dish-badge {
  background: var(--orange);
  color: #fff;
  border-radius: 5px;
  padding: 2px 7px;
  font-size: 10.5px;
  font-weight: 700;
}

.dish-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0 2px 0;
}

.dish-name {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 2px;
  line-height: 1.3;
  color: var(--text);
}

.dish-desc {
  font-size: 11px;
  color: var(--text3);
  line-height: 1.4;
  margin-bottom: 2px;
}

.dish-composition {
  font-size: 11px;
  color: var(--text3);
  line-height: 1.4;
  margin-bottom: 2px;
  font-style: normal;
  flex: 1;
}

.dish-footer {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  margin-top: 8px;
}

.dish-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}

.dish-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}

.dish-weight {
  font-size: 11px;
  color: var(--text3);
}

.add-btn {
  background: var(--orange);
  border: none;
  color: #fff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  padding: 0;
  cursor: pointer;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, transform 0.12s, box-shadow 0.18s;
  margin-top: 0;
  box-shadow: 0 2px 8px rgba(240,112,24,0.3);
}

.add-btn:hover {
  background: var(--orange-light);
  box-shadow: 0 4px 14px rgba(240,112,24,0.4);
  transform: scale(1.08);
}

.add-btn.added {
  background: var(--orange-dim);
  color: var(--orange);
  outline: 2px solid var(--orange);
  box-shadow: none;
  font-size: 18px;
}

.add-btn.added:hover {
  background: rgba(240,112,24,0.18);
  transform: scale(1.05);
}

/* ══════════════════
   ORDER PANEL
══════════════════ */
.order-panel {
  border-left: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 24px 18px;
  position: sticky;
  top: calc(var(--header-h) + 20px);
  height: auto;
  min-height: 600px;
  overflow-y: hidden;
  display: flex;
  flex-direction: column;
  margin: 20px 20px 20px 0;
}

.order-panel::-webkit-scrollbar { width: 3px; }
.order-panel::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 2px; }

.order-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 2px;
  color: var(--text);
  letter-spacing: -0.3px;
}

.order-subtitle {
  font-size: 11.5px;
  color: var(--text3);
  margin-bottom: 16px;
}

.order-subtitle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.order-subtitle-row .order-subtitle {
  margin-bottom: 0;
}

.order-total {
  font-size: 15px;
  font-weight: 800;
  color: var(--orange);
}

.order-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 16px;
}

.order-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text3);
  text-align: center;
  gap: 10px;
}

.order-empty-icon { font-size: 40px; opacity: 0.2; }
.order-empty p { font-size: 13px; line-height: 1.6; color: var(--text3); }

.order-items { flex: 1; }

.order-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  animation: slideIn 0.2s ease;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(8px); }
  to   { opacity: 1; transform: translateX(0); }
}

.order-item-info {
  flex: 1;
  min-width: 0;
}

.order-item-name {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 3px;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.order-item-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
}

.remove-item-btn {
  background: none;
  border: 1px solid transparent;
  cursor: pointer;
  color: var(--text3);
  font-size: 13px;
  padding: 3px;
  transition: all 0.15s;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.remove-item-btn:hover {
  color: #e04444;
  background: rgba(224,68,68,0.1);
  border-color: rgba(224,68,68,0.25);
}


.no-results {
  text-align: center;
  color: var(--text3);
  padding: 60px 0;
  font-size: 15px;
}

/* ══════════════════
   ABOUT PAGE
══════════════════ */
.about-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 48px 36px;
}

.about-hero {
  border-radius: 20px;
  padding: 56px 52px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.about-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,6,20,0.85) 40%, rgba(151,84,203,0.10) 100%);
  border-radius: inherit;
  pointer-events: none;
}

.about-hero > * { position: relative; z-index: 1; }

.about-hero-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}

.about-hero-title {
  font-size: 44px;
  font-weight: 900;
  color: #fff;
  line-height: 1.12;
  margin-bottom: 10px;
  letter-spacing: -1px;
}

.about-hero-title em {
  color: var(--orange);
  font-style: normal;
}

.about-hero-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 400;
}

.about-desc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  margin-bottom: 36px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text2);
}

.about-desc p { margin-bottom: 14px; }
.about-desc p:last-child { margin-bottom: 0; }
.about-desc strong { color: var(--text); font-weight: 700; }

.about-section-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.about-section-title span { color: var(--orange); }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 40px;
}

.photo-item {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  position: relative;
  transition: transform 0.22s, box-shadow 0.22s;
  cursor: pointer;
}

.photo-item:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 28px rgba(0,0,0,0.35);
}

.photo-item:nth-child(1) { background: linear-gradient(135deg, #3a2a1a, #7a4e2a); }
.photo-item:nth-child(2) { background: linear-gradient(135deg, #1e1408, #5c3a18); }
.photo-item:nth-child(3) { background: linear-gradient(135deg, #2c1a0a, #6e3c1a); }
.photo-item:nth-child(4) { background: linear-gradient(135deg, #3e2a10, #8a5c24); }
.photo-item:nth-child(5) { background: linear-gradient(135deg, #251808, #5a3214); }
.photo-item:nth-child(6) { background: linear-gradient(135deg, #341e0a, #784220); }
.photo-item:nth-child(7) { background: linear-gradient(135deg, #1c1006, #4e2e10); }
.photo-item:nth-child(8) { background: linear-gradient(135deg, #2e1e0c, #6a3e1c); }

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
}

.feature-icon { font-size: 28px; margin-bottom: 10px; }

.feature-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 5px;
}

.feature-desc {
  font-size: 12.5px;
  color: var(--text2);
  line-height: 1.55;
}

/* ══════════════════
   BANNER SWIPER
══════════════════ */
.banner-swiper {
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin-bottom: 16px;
}

.banner-slide {
  height: 220px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
}

.banner-swiper .swiper-pagination {
  bottom: 10px;
}

.banner-swiper .swiper-pagination-bullet {
  background: rgba(255,255,255,0.5);
  opacity: 1;
  width: 6px;
  height: 6px;
  transition: all 0.2s;
}

.banner-swiper .swiper-pagination-bullet-active {
  background: #fff;
  width: 20px;
  border-radius: 3px;
}

@media (max-width: 768px) {
  .banner-slide { height: 200px; }
}

/* ══════════════════
   MOBILE
══════════════════ */
.mobile-nav { display: none; }
.burger-btn { display: none; }
.drawer { display: none; }
.drawer-overlay { display: none; }

/* ── Tablet ── */
@media (max-width: 1100px) {
  .menu-layout { grid-template-columns: var(--sidebar-w) 1fr; }
  .order-panel {
    position: fixed;
    right: 0;
    top: var(--header-h);
    height: calc(100vh - var(--header-h));
    width: var(--order-w);
    z-index: 150;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(.4, 0, .2, 1);
    box-shadow: -6px 0 40px rgba(0,0,0,0.3);
    margin: 0;
    border-radius: 0;
  }
  .order-panel.open { transform: translateX(0); }
}

/* ── Mobile ── */
@media (max-width: 768px) {
  :root { --header-h: 56px; --sticky-top: 154px; }

  header { padding: 0 16px; height: var(--header-h); border-radius: 0; position: relative; }
  .header-nav { display: none; }
  .flame-icon { font-size: 22px; }
  .logo { font-size: 18px; }
  .logo-sub { font-size: 8px; letter-spacing: 2.5px; }
  body { padding-bottom: 0; }

  .burger-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: none;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    cursor: pointer;
    flex-shrink: 0;
  }
  .burger-btn span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    transition: transform 0.25s, opacity 0.2s;
  }

  .google-reviews-btn { margin: 0; }

  .drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 299;
    opacity: 0;
    transition: opacity 0.3s;
  }
  .drawer-overlay.open { display: block; opacity: 1; }

  .order-items { flex: 1; overflow: auto; max-height: 65vh; }

  .drawer {
    display: block;
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(84vw, 320px);
    background: var(--surface);
    z-index: 300;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(.4,0,.2,1);
    box-shadow: -8px 0 40px rgba(0,0,0,0.3);
    overflow-y: auto;
  }
  .drawer.open { transform: translateX(0); }

  .drawer-inner {
    padding: 20px 18px 36px;
    display: flex;
    flex-direction: column;
  }

  .drawer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
  }
  .drawer-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text3);
  }
  .drawer-close-btn {
    width: 32px; height: 32px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    background: none;
    font-size: 14px;
    color: var(--text2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 6px;
  }
  .drawer-page-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    background: var(--bg2);
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--text2);
    cursor: pointer;
    text-align: left;
    transition: all 0.15s;
  }
  .drawer-page-btn.active {
    background: var(--text);
    border-color: var(--orange);
    color: var(--bg);
  }

  .drawer-sep {
    height: 1px;
    background: var(--border);
    margin: 16px 0;
  }
  .drawer-section-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text3);
    margin-bottom: 10px;
  }

  .cat-section {
  margin-bottom: 14px;
  padding-left: 12px;
  padding-right: 12px;
}

  .menu-layout { grid-template-columns: 1fr; }
  aside { display: none; }
  .main-col { padding: 0; }

  .cat-tabs-sticky { padding: 8px 0 5px; border-radius: 0; border-width: 0; }
  .section-switch-wrap { padding: 0 0 8px; }
  .section-switch { width: calc(100% - 24px); justify-content: center; }
  .section-switch-btn { flex: 1; min-width: 0; }
  .search-tabs-sticky { top: 0px; }

  /* ── Hide-on-scroll (mobile only) ── */
  .search-tabs-sticky {
    transition: none;
  }

  .dishes-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }

  .dishes-grid .dish-card:nth-child(2) {
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
  }

  .dish-img-wrap { aspect-ratio: 1 / 1; }
  .dish-name { font-size: 13px; }
  .dish-desc { font-size: 11px; }
  .dish-composition { font-size: 11px; }
  .dish-price { font-size: 15px; }

  .cat-title { font-size: 24px; }
  .cat-header { padding: 6px 0px; top: 162px; }

  /* CSS-переменная высоты кнопки корзины */
  :root { --cart-bar-h: 94px; }

  .order-panel {
    position: fixed;
    left: 0; right: 0;
    bottom: 0px;
    width: 100%;
    height: 100vh;
    overflow-y: auto;
    border-radius: 20px 20px 0 0;
    border-left: none;
    border-bottom: none;
    border-top: 1px solid var(--border);
    padding-bottom: 110px;
    transform: translateY(110%);
    transition: transform 0.38s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 -8px 32px rgba(0,0,0,0.22);
    z-index: 160;
    -webkit-overflow-scrolling: touch;
    will-change: transform;
    margin: 0;
  }
  .order-panel.open { transform: translateY(0); }

  .order-panel-close-fixed {
    display: none;
  }

  .order-panel.open .order-panel-close-fixed {
    display: flex;
    position: fixed;
    top: 14px;
    right: 16px;
    z-index: 200;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--bg2);
    color: var(--text2);
    font-size: 16px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
    transition: background 0.15s, color 0.15s;
  }
  .order-panel.open .order-panel-close-fixed:active {
    background: var(--orange-dim);
    color: var(--orange);
  }

  /* Order panel header with close button */
  .order-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 16px 10px;
    position: sticky;
    top: 0;
    background: var(--surface);
    z-index: 2;
    border-bottom: 1px solid var(--border);
  }

  .order-subtitle-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    padding: 0 0 16px 0;
    margin-bottom: 0;
  }

  .order-subtitle-row .order-subtitle {
    margin-bottom: 0;
  }

  /* Full-width panel buttons — same padding/radius as default state */
  .mobile-cart-bar.panel-open {
    padding: 10px 12px 20px;
  }
  .mobile-cart-bar.panel-open .mobile-cart-bar-inner {
    gap: 10px;
  }

  .waiter-panel-btn {
    flex: 1;
    border-radius: 18px;
    height: 58px;
    justify-content: center;
    gap: 8px;
    border-right: none;
  }

  .mobile-order-btn {
    flex: 1;
    width: auto;
    border-radius: 18px;
    height: 58px;
    font-size: 15px;
  }

  /* Hide tg-actions inside panel on mobile — replaced by cart bar buttons */
  #tgActions {
    display: none !important;
  }

  /* Затемнення під панеллю (не перекриває кнопку) */
  .order-overlay {
    display: none;
    position: fixed;
    inset: 0;
    bottom: var(--cart-bar-h);
    background: rgba(0,0,0,0.45);
    z-index: 155;
    opacity: 0;
    transition: opacity 0.3s;
  }
  .order-overlay.open { display: block; opacity: 1; }

  /* Нова кнопка корзини */
  .fab-order { display: none !important; }

  .mobile-cart-bar {
    display: block;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 190;
    padding: 10px 12px 20px;
    pointer-events: none;
    transform: translateY(0);
  }
  .mobile-cart-bar-inner {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  /* Кнопка "вгору" — завжди видима */
  .scroll-top-btn {
    flex-shrink: 0;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    border: none;
    background: var(--orange);
    color: var(--bg);
    box-shadow: 0 6px 28px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    transition: transform 0.15s, box-shadow 0.15s;
  }
  .scroll-top-btn:active {
    transform: scale(0.95);
    box-shadow: 0 3px 14px rgba(0,0,0,0.1);
  }

  /* Кнопка "позвати офіціанта" — показується коли панель відкрита */
  .waiter-panel-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    height: 58px;
    border-radius: 18px;
    border: none;
    background: var(--orange);
    color: var(--bg);
    box-shadow: 0 6px 28px rgba(0,0,0,0.12);
    cursor: pointer;
    pointer-events: auto;
    transition: transform 0.15s, box-shadow 0.15s;
    white-space: nowrap;
  }
  .waiter-panel-btn:active {
    transform: scale(0.95);
    box-shadow: 0 3px 14px rgba(0,0,0,0.1);
  }
  .waiter-panel-btn-label {
    font-family: 'Manrope', sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    text-align: left;
  }

  /* Кнопка корзини — завжди видима */
  .mobile-cart-btn {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--orange);
    color: #fff;
    border: none;
    border-radius: 18px;
    height: 58px;
    cursor: pointer;
    box-shadow: 0 6px 28px rgba(240, 112, 24, 0.45);
    font-family: 'Manrope', sans-serif;
    overflow: hidden;
    pointer-events: auto;
    opacity: 1;
    transition: box-shadow 0.15s, transform 0.12s, opacity 0.2s;
  }
  .mobile-cart-btn.empty {
    opacity: 0.4;
    box-shadow: none;
  }
  .mobile-cart-btn:active {
    transform: scale(0.98);
    box-shadow: 0 3px 14px rgba(240, 112, 24, 0.35);
  }

  /* Кнопка "Замовити" — поруч з кошиком, тільки коли панель відкрита */
  .mobile-order-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 58px;
    border-radius: 18px;
    border: none;
    background: #27ae60;
    color: #fff;
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
    transition: transform 0.15s, box-shadow 0.15s;
  }
  .mobile-order-btn:active {
    transform: scale(0.95);
    box-shadow: 0 3px 10px rgba(39, 174, 96, 0.3);
  }
  .mobile-cart-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    flex-shrink: 0;
    opacity: 0.92;
  }
  .mobile-cart-btn-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    padding: 0 16px 0 0;
  }
  .mobile-cart-btn-count {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
  }
  .mobile-cart-btn-price {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.78;
  }

  .about-page { padding: 20px 14px; }
  .about-hero { padding: 32px 22px; margin-bottom: 22px; }
  .about-hero-title { font-size: 28px; }
  .about-hero-sub { font-size: 13px; }
  .about-desc { padding: 22px 18px; font-size: 14px; }
  .about-section-title { font-size: 22px; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .features-grid { grid-template-columns: 1fr; gap: 10px; }
  .feature-card { padding: 18px 16px; }
  .banner-swiper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 16px;
  margin-bottom: 4px;
  max-width: 95%;
}
}

@media (max-width: 360px) {
  .dish-img-wrap { aspect-ratio: 4 / 3; }
  .mobile-nav-label { display: none; }
}



/* ══════════════════════════════════════════
   SITE LOADER
══════════════════════════════════════════ */
.site-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.site-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.loader-flame {
  font-size: 52px;
  animation: loaderFlame 1.2s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 20px rgba(240, 112, 24, 0.7));
}

@keyframes loaderFlame {
  from { transform: scale(1)   rotate(-4deg); }
  to   { transform: scale(1.12) rotate(4deg); }
}

.loader-brand {
  font-family: 'Manrope', sans-serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
  text-shadow: 0 0 24px rgba(240, 112, 24, 0.7);
}

.loader-spinner {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.loader-spinner span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(240, 112, 24, 0.9);
  animation: loaderDot 1.1s ease-in-out infinite;
}

.loader-spinner span:nth-child(2) { animation-delay: 0.18s; }
.loader-spinner span:nth-child(3) { animation-delay: 0.36s; }

@keyframes loaderDot {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.4; }
  40%            { transform: scale(1.2); opacity: 1;   }
}
/* ══════════════════════════════════════════
   TELEGRAM ACTIONS — order panel buttons
══════════════════════════════════════════ */
.tg-actions {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.tg-table-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 2px;
}

.tg-table-label b {
  color: var(--text);
  font-weight: 800;
}

.tg-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  height: 44px;
  border-radius: var(--radius-md);
  border: none;
  font-family: 'Manrope', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s, opacity 0.18s, transform 0.12s, box-shadow 0.18s;
  letter-spacing: 0.02em;
  line-height: 1;
}

.tg-btn:active { transform: scale(0.97); }

.tg-btn-icon { font-size: 16px; flex-shrink: 0; }
.tg-btn-label { flex: 1; text-align: left; }

/* Primary — відправити замовлення */
.tg-btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 4px 14px var(--orange-glow);
}
.tg-btn-primary:hover:not(:disabled) {
  box-shadow: 0 6px 20px rgba(240,112,24,0.4);
}

/* Disabled state */
.tg-btn-primary.tg-btn-disabled,
.tg-btn-primary:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  box-shadow: none;
  transform: none !important;
}

/* Loading state */
.tg-btn.tg-loading {
  opacity: 0.65;
  cursor: wait;
}

/* Secondary — викликати офіціанта */
.tg-btn-secondary {
  background: var(--bg2);
  color: var(--text);
  border: 1px solid var(--border-light);
}
.tg-btn-secondary:hover {
  background: var(--orange-dim);
  border-color: var(--orange);
  color: var(--orange);
}

/* ══════════════════════════════════════════
   TELEGRAM MODAL
══════════════════════════════════════════ */
/* ══════════════════════════════════════════
   ORDER PANEL HEADER (close button)
══════════════════════════════════════════ */
.order-panel-header {
  display: none; /* shown only on mobile via media query */
}

.order-panel-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}

.order-panel-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: var(--bg2);
  color: var(--text2);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.order-panel-close:hover {
  background: var(--orange-dim);
  color: var(--orange);
  border-color: var(--orange);
}

.tg-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.tg-modal-overlay.open {
  display: flex;
  animation: tgFadeIn 0.22s ease;
}

@keyframes tgFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.tg-modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px 24px 20px;
  max-width: 320px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  animation: tgSlideUp 0.25s cubic-bezier(.4,0,.2,1);
  text-align: center;
}

@keyframes tgSlideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.tg-modal-text {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text);
  font-weight: 500;
  white-space: pre-line;
  margin-bottom: 20px;
}

.tg-modal-ok {
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 10px 36px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.12s;
}

.tg-modal-ok:hover { opacity: 0.88; }
.tg-modal-ok:active { transform: scale(0.96); }

/* ── Confirm modal ── */
.confirm-modal {
  text-align: left;
}

.confirm-modal-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
}

.confirm-modal .tg-modal-text {
  text-align: left;
  margin-bottom: 20px;
  color: var(--text2);
  font-size: 13.5px;
}

.confirm-modal-btns {
  display: flex;
  gap: 8px;
}

.confirm-modal-cancel {
  flex: 1;
  height: 44px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: var(--bg2);
  color: var(--text2);
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.confirm-modal-cancel:hover { background: var(--border); }

.confirm-modal-ok {
  flex: 1;
  height: 44px;
  border-radius: var(--radius-md);
  border: none;
  background: var(--orange);
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.12s;
}

.confirm-modal-ok:hover { opacity: 0.88; }
.confirm-modal-ok:active { transform: scale(0.96); }
