/* СБРОС БАЗОВЫХ СТИЛЕЙ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #fafafa;
  color: #222;
  line-height: 1.4;
}

/* ЧТОБЫ КОНТЕНТ НЕ ЛЕЗ ПОД ШАПКУ И КАТЕГОРИИ */
body {
  padding-top: 120px; /* высота шапки + меню категорий */
}
.header-title {
  font-weight: 900 !important;
  font-size: 22px !important;
  text-align: center !important;
  width: 100% !important;
  display: block !important;
}
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: #ffffff;
  border-bottom: 1px solid #eee;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  text-align: center; 
}

.header-left {
  display: flex;
  flex-direction: column;
  text-align: center; 
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: #222;
  margin: 0;
  letter-spacing: 1px;
}

.tagline {
  font-size: 14px;
  color: #777;
  margin-top: 4px;
  text-align: center; 
}

.header-right {
  display: flex;
  gap: 12px;
}

.icon-btn {
  font-size: 20px;
  background: none;
  border: none;
  cursor: pointer;
}

/* НАВИГАЦИЯ КАТЕГОРИЙ */

.categories {
  position: fixed;
  top: 60px; /* примерно высота шапки */
  left: 0;
  right: 0;
  z-index: 999;
  background: #ffffff;
  padding: 8px 10px;
  border-bottom: 1px solid #eee;
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.categories::-webkit-scrollbar {
  display: none;
}

.cat {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  border: none;
  background: #f3f3f3;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}

.cat.active {
  background: #222;
  color: #fff;
  border-bottom: 3px solid #ffc600;
}

/* ЗАГОЛОВКИ КАТЕГОРИЙ В КОНТЕНТЕ */

.section-title {
  font-size: 22px;
  font-weight: 600;
  margin: 18px 16px 8px;
  color: #333;
}

/* СПИСОК БЛЮД */

.dishes-list {
  padding: 0 10px 10px;
}

/* КАРТОЧКА БЛЮДА */

.dish-card {
  display: flex;
  gap: 10px;
  background: #ffffff;
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.dish-img {
  width: 95px;
  height: 95px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.dish-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.dish-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.dish-desc {
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
}

.dish-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dish-price {
  font-weight: 600;
  font-size: 15px;
}

.add-btn {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: #ffc600;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

/* МИНИ‑КОРЗИНА СНИЗУ */

#miniCart {
  position: fixed;
  bottom: 10px;
  left: 10px;
  right: 10px;
  background: #222;
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1500;
}

.open-cart {
  background: #ffc600;
  border: none;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 14px;
  cursor: pointer;
}

/* ПОЛНАЯ СТРАНИЦА КОРЗИНЫ */

.cart-page {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ffffff;
  padding: 20px;
  overflow-y: auto;
  z-index: 2000;
}

.cart-page.hidden {
  display: none;
}

.cart-page h1 {
  margin-top: 0;
  margin-bottom: 10px;
}

#cartList {
  list-style: none;
  padding-left: 0;
}

#cartList li {
  margin-bottom: 6px;
  font-size: 15px;
}

.total {
  margin-top: 15px;
  font-weight: 600;
}

.cart-page .info {
  margin-top: 18px;
  font-size: 16px;
  color: #444;
}

.close-cart {
  margin-top: 20px;
  width: 100%;
  padding: 12px;
  background: #ffc600;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
}

/* АДАПТАЦИЯ ПОД МОБИЛЬНЫЕ */

@media (max-width: 480px) {
  .logo {
    font-size: 24px;
  }

  .tagline {
    font-size: 12px;
  }

  .dish-card {
    padding: 8px;
  }

  .dish-img {
    width: 90px;
    height: 90px;
  }
}