/* === Загальні стилі === */
body {
  font-family: sans-serif;
  margin: 0;
  background: #f9f9f9;
  color: #333;
}

h2, h3 {
  margin-top: 0;
}

.main-photo {
  height: 240px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


/* === Верхня панель та мови === */
.info-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 5px 10px;
}
.info-bar .left {
  flex: 1;
}
.info-bar .right {
  text-align: right;
}
.address {
  font-weight: bold;
  margin-bottom: 2px;
}
.status {
  font-size: 14px;
  font-weight: bold;
}

.lang-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background-color: #f8f8f8;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.2s ease;
  position: absolute;
  top: 10px;
  left: 10px;
}
.lang-btn img {
  width: 26px;
  height: 26px;
  border-radius: 75%;
  object-fit: cover;
}
.lang-btn:hover {
  background-color: #eaeaea;
}
.lang-dropdown {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 60px;
  left: 10px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.15);
  z-index: 999;
}
.lang-dropdown button {
  padding: 10px;
  border: none;
  background: none;
  font-size: 20px;
  cursor: pointer;
}

.restaurant-name {
  text-align: center;
  font-size: 26px;
  font-weight: bold;
  padding: 10px;
}

/* === Нижня навігація === */
.bottom-nav {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: white;
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.1);
  z-index: 999;
}
.circle-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background-color: #f8f8f8;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease;
}
.circle-btn:hover {
  background-color: #eaeaea;
}
.circle-btn img {
  width: 24px;
  height: 24px;
}

/* === Категорії та вкладки === */
.tabs {
  display: flex;
  justify-content: space-around;
  border-bottom: 1px solid #ccc;
  margin-bottom: 10px;
}
.tabs button {
  flex: 1;
  background: none;
  border: none;
  padding: 10px 0;
  font-weight: bold;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.tabs button.active {
  border-color: #000;
}
.tab-content {
  display: none;
  padding: 10px;
}
.tab-content.active {
  display: block;
}
.category-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}
.category-btn {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
  font-weight: bold;
}
.category-btn.active {
  background: #000;
  color: white;
}
.category-btn option {
    white-space: normal;
    word-break: break-word;
}
/* === Картка страви === */
.dish-card {
  display: flex;
  align-items: center;
  background: white;
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.dish-img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  margin-right: 10px;
}
.dish-info {
  flex: 1;
}
.dish-title-row {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
}
.dish-desc {
  font-size: 14px;
  color: #555;
}
.dish-price {
  font-weight: bold;
  white-space: nowrap;
  margin-left: 10px;
}

/* === Форма бронювання === */
.reserve-form input,
.reserve-form button {
  width: 100%;
  margin: 5px 0;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

/* === Модалка === */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.modal-box {
  background: white;
  border-radius: 16px;
  padding: 20px;
  max-width: 80%;
  text-align: center;
  position: relative;
}
.modal-box img.bg {
  width: 100%;
  max-height: 150px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 10px;
}
.modal-box button.close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

/* === Сторінка страви === */
.dish-page {
  max-width: 800px;
  margin: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.dish-page-title {
  text-align: center;
  font-size: 28px;
  margin-top: 0;
}
.dish-page-img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}
.dish-page-content {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.dish-left {
  flex: 1;
  min-width: 200px;
}
.dish-right {
  flex: 0 0 200px;
  text-align: center;
}
.dish-tags {
  margin-bottom: 10px;
}
.dish-tags .tag {
  display: inline-block;
  margin: 2px 6px 2px 0;
  background: #eee;
  padding: 4px 10px;
  border-radius: 12px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
}
.dish-page-desc, .dish-page-weight {
  margin: 8px 0;
  font-size: 16px;
}
.dish-page-price {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
}
.add-to-order-btn {
  background-color: #222;
  color: white;
  padding: 12px 20px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
.add-to-order-btn:hover {
  background-color: #444;
}

/* === Сторінка замовлення === */
.order-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 16px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.back-btn {
  display: inline-block;
  background: #000;
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  text-decoration: none;
  margin-bottom: 16px;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 12px;
}
th, td {
  padding: 6px;
}
th.left-align, td.left-align {
  text-align: left;
}
td input[type="number"] {
  width: 90px;
  padding: 4px;
  font-size: 14px;
}
.remove-btn {
  background: none;
  border: none;
  font-size: 16px;
  color: red;
  cursor: pointer;
}
.total {
  font-weight: bold;
  margin: 12px 0;
}
.submit-btn {
  background: #000;
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  display: inline-block;
  margin-top: 10px;
}
.form-group {
  margin-bottom: 12px;
}
.form-group input,
.form-group select {
  width: 100%;
  padding: 8px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
}
.hidden {
  display: none;
}
.iti {
  width: 100%;
}

/* === Адаптивність === */
@media (max-width: 480px) {
  td input[type="number"] {
    width: 100%;
  }
  .submit-btn {
    width: auto;
  }
}

    .circle-btn a {
      text-decoration: none;
      color: black;
      font-weight: bold;
    }
    .dish-container {
      width: 90%;
      margin: 0 auto;
    }
    
.tab-content.active {
  padding-bottom: 80px; /* щоб останній елемент не обрізався */
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dish-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  margin: 2px 4px;
  padding: 12px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  box-sizing: border-box;
}

