/* Основни настройки */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f8f8f8;
  color: #333;
}

header.app-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background-color: #6b4f4f;
  padding: 10px 20px;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
}

header.app-header .title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 1px;
}

header.app-header .logo img {
  height: 3.5rem;
  width: auto;
  display: block;
}

header.app-header .controls {
  position: absolute;
  right: 16px;
  top: 10px;
}

/* The logo container */
.left-side {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  display: flex;
}

.logo img {
  height: 7rem;
  width: auto;
  display: block;
}

main#menu {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 20px;
  min-height: 80vh;
}

.category {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.category .category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 6px;
}

.category h2 {
  margin: 0;
  font-size: 1.4rem;
  color: #6b4f4f;
}

.items-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
}

/* Стил за всеки артикул */
.menu-item {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  margin: 10px;
  padding: 15px 20px;
  width: 200px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.menu-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.menu-item h3 {
  margin: 10px 0;
  font-size: 1.1em;
}

.menu-item p {
  margin: 5px 0 0 0;
  font-weight: bold;
  color: #6b4f4f;
}

/* Footer */
footer {
  background-color: #6b4f4f;
  color: #fff;
  text-align: center;
  padding: 15px 0;
  position: relative;
  bottom: 0;
  width: 100%;
  margin-top: 24px;
}

#langToggle {
  background-color: #ffd700;
  border: none;
  padding: 6px 10px;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

#langToggle:hover {
  background-color: #ffb700;
}

/* Responsive tweaks */
@media (max-width: 900px) {
  header.app-header {
    padding: 8px 12px;
  }

  .menu-item {
    width: calc(50% - 28px);
  }
}

@media (max-width: 520px) {
  .menu-item {
    width: calc(100% - 28px);
  }

  header.app-header .title {
    font-size: 1.4rem;
  }

  header.app-header .controls {
    position: static;
    margin-left: 8px;
  }
}
