body {
  margin: 0;
  padding: 0;
  font-family: 'Nunito', sans-serif;
  color: var(--white-color);
  box-sizing: border-box;
  background-color: var(--primary-color);
}

html,
body {
  height: 100%;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: var(--white-color);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 20px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 5px;
  margin-bottom: 2rem;
}

.title {
  font-family: 'Great Vibes', cursive;
  font-size: 3rem;
  font-weight: 800;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
  text-align: center;
  width: 100%;
  cursor: pointer;
}

.header svg {
  width: 40px;
  height: 40px;
  cursor: pointer;
}

.cart-link {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background-color: var(--white-color);
  color: var(--primary-color);
  width: 25px;
  height: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  font-weight: bold;
}

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

.fade-in {
  animation: fadeIn 0.8s ease;
}

.category-block {
  text-align: center;
  margin: 4rem 0;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.1rem;
}

.category-button {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  font-size: 1.5rem;
  border-radius: var(--border-radius);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.category-button svg {
  width: 45px;
  height: 45px;
}

.button-title {
  width: 100%;
  color: var(--white-color);
}

.info-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 0.5rem;
  font-size: 1.3rem;
  text-align: center;
  padding: 1rem;
  padding-top: 2.2rem;
  border-radius: var(--border-radius);
  background-color: rgba(0, 0, 0, 0.3);
}

.tg-button {
  padding: 1rem 1.2rem;
  max-width: 150px;
  margin: 2rem auto;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  display: flex;
  justify-content: space-between;
}

.tg-button svg {
  width: 25px;
  height: 25px;
}

.notification-container {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 10px;
  pointer-events: none; /* клики проходят сквозь */
}

.notification {
  min-width: 250px;
  max-width: 400px;
  padding: 15px 20px;
  border-radius: 6px;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  opacity: 0;
  transform: translateY(-100%);
  transition: all 0.3s ease-in-out;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  pointer-events: auto; /* чтобы можно было закрыть вручную в будущем */
}

.notification.success {
  background: rgba(46, 204, 113, 0.95); /* зеленый */
}

.notification.error {
  background: rgba(231, 76, 60, 0.95); /* красный */
}

.notification.visible {
  opacity: 1;
  transform: translateY(0);
}

.page-title-container {
  margin: 1.5rem auto;
  text-align: center;
}

.page-title {
  /* display: inline-block;
  padding: 0.6rem 1.2rem;
  font-family: 'Great Vibes', cursive;
  font-size: 2.2rem;
  color: var(--white-color);
  background: linear-gradient(90deg, #5a3123 0%, #8b5a3c 100%);
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25); */
  font-family: 'Great Vibes', cursive;
  font-size: 2rem;
  font-weight: 800;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
  text-align: center;
}

@media (max-width: 480px) {
  .title {
    font-size: 2rem;
  }
  .header svg {
    width: 30px;
    height: 30px;
  }
  .category-button {
    flex-direction: column;
  }
}

@media (max-width: 500px) {
  .page-title-container {
    margin: 0.5rem auto;
  }
  .page-title {
    font-size: 1.6rem;
    padding: 0.4rem 0.8rem;
  }
  .header {
    margin-bottom: 0.5rem;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
