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

body {
  font-family: "Trebuchet MS", Arial, sans-serif;
  color: #eaeaea; /* Светлый текст (на тёмном фоне) */
  background-color: #1e1e1e; /* Тёмный фон для премиум-стиля */
  line-height: 1.6;
}

/* Контейнер */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ------------------------------
   КНОПКИ
------------------------------ */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-weight: 600;
}

.btn-primary {
  background-color: #b58e52; /* Золотисто-коричневый оттенок */
  color: #fff;
  border: none;
}

/* Стили для кнопки "Выйти" – уменьшенная ширина */
.small-logout {
    width: 100px; /* установите нужное значение; пример – 100px, что примерно в 3 раза меньше обычной */
    padding: 0.5rem;
    font-size: 0.9rem;
}
.btn-primary:hover {
  background-color: #96753f; /* Темнее на hover */
}

.btn-secondary {
  background-color: transparent;
  color: #b58e52;
  border: 1px solid #b58e52;
}

.btn-secondary:hover {
  background-color: #b58e52;
  color: #fff;
}

/* ------------------------------
   ШАПКА САЙТА
------------------------------ */
.header {
  background-color: #1e1e1e;
  border-bottom: 1px solid #333;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

/* Логотип */
.brand-logo {
  height: 80px;
  transition: transform 0.3s ease; /* Добавлен переход */
}

.brand-logo:hover {
  transform: scale(1.2); /* Увеличение логотипа при наведении */
}

.header__nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.header__nav a {
  text-decoration: none;
  color: #eaeaea;
  font-weight: 500;
  transition: color 0.2s ease;
}

.header__nav a:hover {
  color: #b58e52;
}

/* Переключатель языков */
.lang-switch {
  display: flex;
  gap: 0.5rem;
}

.lang-switch button {
  background-color: transparent;
  border: 1px solid #b58e52;
  color: #b58e52;
  cursor: pointer;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.lang-switch button:hover {
  background-color: #b58e52;
  color: #fff;
}

/* ------------------------------
   Гамбургер-меню
------------------------------ */
.hamburger {
  display: none; /* Скрыто по умолчанию */
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
}

.hamburger__line {
  width: 100%;
  height: 3px;
  background-color: #eaeaea;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Отображение гамбургера на мобильных устройствах */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: -100%; /* Скрыто за пределами экрана */
    width: 60%;
    height: 100%;
    background-color: #1e1e1e;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 4rem;
    transition: right 0.3s ease;
    z-index: 999;
  }

  .header__nav ul {
    flex-direction: column;
    gap: 1.5rem;
    padding-left: 1.5rem;
  }

  .header__nav a {
    font-size: 1.2rem;
  }

  .header__nav.active {
    right: 0; /* Показывает меню */
  }

  /* Изменение гамбургер-кнопки при активном меню */
  .hamburger.active .hamburger__line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active .hamburger__line:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .hamburger__line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* Изменение размера логотипа для мобильных устройств */
  .brand-logo {
    height: 60px;
  }

  /* Блокировка прокрутки при открытом меню */
  .no-scroll {
    overflow: hidden;
  }
}

/* ------------------------------
   МОДАЛЬНЫЕ ОКНА (Вход и Регистрация)
------------------------------ */
.modal {
  display: none; /* Скрыто по умолчанию */
  position: fixed; /* Остаётся на месте */
  z-index: 1002; /* Поверх других элементов */
  left: 0;
  top: 0;
  width: 100%; /* Полная ширина */
  height: 100%; /* Полная высота */
  overflow: auto; /* Включить прокрутку, если нужно */
  background-color: rgba(0, 0, 0, 0.8); /* Чёрный фон с прозрачностью */
}

.modal-content {
  background-color: #1e1e1e;
  margin: 5% auto; /* 5% сверху и центрирование */
  padding: 2rem;
  border: 1px solid #888;
  width: 90%;
  max-width: 500px; /* Максимальная ширина */
  border-radius: 8px;
  color: #eaeaea;
}

.close-button,
.close-notification {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-button:hover,
.close-button:focus,
.close-notification:hover,
.close-notification:focus {
  color: #fff;
  text-decoration: none;
}

.modal-content h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #b58e52;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.3rem;
  color: #b58e52;
  font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #444;
  border-radius: 4px;
  background-color: #2c2c2c;
  color: #fff;
}

.form-group select option {
  background-color: #2c2c2c;
  color: #fff;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.btn {
  width: 100%;
}

.modal-content button {
  margin-top: 1rem;
}

/* Адаптивность модального окна */
@media (max-width: 500px) {
  .modal-content {
    width: 95%;
  }
}

/* ------------------------------
   Пользовательское Отображение
------------------------------ */
.welcome-text {
    color: #b58e52; /* золотой цвет */
}

.user-name {
    color: #fff; /* белый цвет */
}


.user-display {
  color: #b58e52;
  font-weight: 600;
  margin-right: 0.5rem;
}

/* Скрытый класс */
.hidden {
  display: none !important;
}

/* ------------------------------
   HERO-СЕКЦИЯ
------------------------------ */
.hero {
  position: relative;
  background: url('images/hero.jpg') no-repeat center/cover;
  height: 80vh;
  display: flex;
  align-items: center;
  color: #fff;
  margin-bottom: 2rem;
}

.hero__overlay {
  width: 100%;
  height: 100%;
  background-color: rgba(30,30,30,0.6); /* тёмная подложка */
}

.hero__content {
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  max-width: 600px;
}

.hero__content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #f5f5f5;
}

.hero__content p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

/* ------------------------------
   Блок: почему икра?
------------------------------ */
.why-ikra {
  background-color: #2c2c2c;
  padding: 2rem 0;
  text-align: center;
  margin-bottom: 2rem;
}

.why-ikra h2 {
  color: #f5f5f5;
  margin-bottom: 2rem;
  font-size: 2rem;
}

.why-ikra__items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.why-ikra__item {
  background-color: #1e1e1e;
  padding: 1rem;
  border-radius: 8px;
  min-height: 180px;
}

.why-ikra__item img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

.why-ikra__item h3 {
  color: #b58e52;
  margin-bottom: 0.5rem;
}

.why-ikra__item p {
  color: #ccc;
}

/* ------------------------------
   О ПРОДУКТЕ
------------------------------ */
.about {
  padding: 2rem 0;
  margin-bottom: 2rem;
}

.about__content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.about__text {
  flex: 1;
}

.about__text h2 {
  color: #b58e52;
  margin-bottom: 1rem;
  font-size: 2rem;
}

.about__text p {
  color: #ddd;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.about__image {
  flex: 1;
  text-align: center;
}

.about__image img {
  max-width: 100%;
  border-radius: 8px;
}
/* Медиазапрос для мобильных устройств */
@media screen and (max-width: 768px) {
  .about__content {
    flex-direction: column; /* располагаем блоки друг под другом */
    text-align: center;     /* отцентровываем текст */
  }
  .about__text,
  .about__image {
    width: 100%;            /* на мобильных устройствах занимаем всю ширину */
  }
  .about__image {
    margin-top: 20px;       /* добавляем отступ сверху, чтобы отделить изображение от текста */
  }
}
/* ------------------------------
   РЕЦЕПТЫ
------------------------------ */
.recipes {
  padding: 2rem 0;
  text-align: center;
  background-color: #2c2c2c;
  margin-bottom: 2rem;
}

.recipes h2 {
  color: #f5f5f5;
  margin-bottom: 1rem;
  font-size: 2rem;
}

.recipes p {
  color: #ccc;
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.recipes__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.recipes__card {
  background-color: #1e1e1e;
  padding: 1rem;
  border-radius: 8px;
}

.recipes__card img {
  max-width: 100%;
  margin-bottom: 1rem;
  border-radius: 4px;
}

.recipes__card h3 {
  color: #b58e52;
  margin-bottom: 0.5rem;
}

.recipes__card p {
  color: #ccc;
}

/* ------------------------------
   КАТАЛОГ
------------------------------ */
.catalog {
  padding: 2rem 0;
  margin-bottom: 2rem;
}

.catalog h2 {
  color: #b58e52;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
}

.catalog__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background-color: #2c2c2c;
  border: 1px solid #333;
  padding: 1rem;
  text-align: center;
  border-radius: 8px;
}

.product-card img {
  max-width: 100%;
  margin-bottom: 1rem;
  border-radius: 4px;
}

.price {
  font-size: 1.2rem;
  margin: 0.5rem 0;
  color: #b58e52; /* золотисто-коричневый */
}

.cart__item p {
  margin: 0;
}
/* Стили для flip-карточек товаров в каталоге */
    .flip-card {
      background-color: transparent;
      perspective: 1000px;
      cursor: pointer;
      display: inline-block;
      width: 100%;
      position: relative;
    }
    .flip-card-inner {
      position: relative;
      width: 100%;
      transition: transform 0.6s;
      transform-style: preserve-3d;
    }
    /* Переворот при наведении */
    .flip-card:hover .flip-card-inner {
      transform: rotateY(180deg);
    }
    .flip-card-front,
    .flip-card-back {
      position: absolute;
      width: 100%;
      backface-visibility: hidden;
      top: 0;
      left: 0;
    }
    .flip-card-front {
      z-index: 2;
    }
    .flip-card-back {
      transform: rotateY(180deg);
    }
    .flip-card img {
      width: 100%;
      display: block;
    }
    /* Добавляем небольшой отступ между изображением и текстом */
    .product-card h3 {
      margin-top: 150px;  /* небольшой отступ сверху */
      margin-bottom: 0;
    }
/* Медиазапрос для мобильных устройств (макс. ширина 768px, можно менять по необходимости) */
@media screen and (max-width: 768px) {
  .product-card h3 {
    margin-top: 190px;  /* уменьшаем отступ */
  }
}
/* ------------------------------
   ДОСТАВКА
------------------------------ */
.delivery {
  background-color: #1e1e1e;
  padding: 2rem 0;
  margin-bottom: 2rem;
}

.delivery h2 {
  color: #b58e52;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.delivery__info {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.delivery__text {
  flex: 1;
  color: #ddd;
  line-height: 1.6;
}

.delivery__image {
  flex: 1;
  text-align: center;
}

.delivery__image img {
  max-width: 100%;
  border-radius: 8px;
}

/* ------------------------------
   ОТЗЫВЫ
------------------------------ */
.reviews {
  padding: 2rem 0;
  background-color: #2c2c2c;
  margin-bottom: 2rem;
}

.reviews h2 {
  text-align: center;
  color: #f5f5f5;
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.reviews__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.review {
  background-color: #1e1e1e;
  padding: 1rem;
  border-radius: 8px;
  font-style: italic;
}

.review blockquote {
  margin-bottom: 0.5rem;
  color: #ccc;
}

.review cite {
  color: #b58e52;
  font-style: normal;
}

/* ------------------------------
   КОНТАКТЫ
------------------------------ */
.contacts {
  padding: 2rem 0;
  margin-bottom: 2rem;
}

.contacts h2 {
  color: #b58e52;
  text-align: center;
  margin-bottom: 1rem;
  font-size: 2rem;
}

.contacts p {
  color: #ccc;
  text-align: center;
}

/* Контейнер для двух столбцов */
.contacts__wrapper {
  display: flex;
  gap: 2rem;              /* Расстояние между левым и правым столбцами */
  align-items: flex-start; /* Выравниваем блоки по верхнему краю */
  flex-wrap: nowrap;        /* Не переносить блоки, пока экран достаточно широк */
}

/* Левый столбец с контактной информацией */
.contacts__info {
  flex: 1 1 50%;  /* Занимает 50% пространства */
  min-width: 300px;
}

/* Правый столбец с формой обратной связи */
.contacts__form-wrapper {
  flex: 1 1 50%;  /* Занимает 50% пространства */
  min-width: 300px;
}

/* Стили для блока с иконками мессенджеров */
.contacts__social-icons {
  display: flex;
  gap: 10px;               /* Расстояние между иконками */
  justify-content: center; /* Центрирование по горизонтали */
  align-items: center;     /* Центрирование по вертикали */
}

/* Медиазапрос для узких экранов */
@media (max-width: 768px) {
  .contacts__wrapper {
    flex-direction: column;
  }

}

.contacts__info strong {
  color: #b58e52;
}

.contacts__form {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.contacts__form label {
  margin-top: 0.5rem;
  margin-bottom: 0.2rem;
  color: #b58e52;
  font-weight: bold;
}

.contacts__form input,
.contacts__form textarea {
  padding: 0.5rem;
  border: 1px solid #444;
  border-radius: 4px;
  background-color: #2c2c2c;
  color: #fff;
  margin-bottom: 1rem;
}

.contacts__form textarea {
  resize: vertical;
  min-height: 100px;
}

.contacts__form button {
  align-self: flex-start;
}

/* ------------------------------
   ФУТЕР
------------------------------ */
.footer {
  background-color: #151515;
  padding: 1.5rem 0;
  margin-top: 2rem;
}

.footer__content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.footer__content p {
  margin: 0.5rem 0;
  color: #bbb;
}

.footer__nav {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.footer__nav a {
  color: #b58e52;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer__nav a:hover {
  color: #fff;
}

/* ------------------------------
   КОРЗИНА
------------------------------ */
.cart {
  padding: 2rem 0;
  background-color: #1e1e1e;
  color: #eaeaea;
}

.cart__content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cart__items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart__item {
  background-color: #2c2c2c;
  padding: 1rem;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart__item p {
  margin: 0;
}

.cart__item .remove-item {
  background-color: #b58e52;
  color: #fff;
  border: none;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
}

.cart__item .remove-item:hover {
  background-color: #96753f;
}

.cart__total {
  font-size: 1.5rem;
  text-align: right;
}

.cart__total strong {
  color: #b58e52;
}

.cart__checkout-btn {
  align-self: flex-end;
  margin-top: 1rem;
}

/* Стилизация кнопки «Очистить корзину» */
#clear-cart-btn {
  align-self: flex-start;
  margin-top: 1rem;
}

/* ------------------------------
   Уведомления (Toast)
------------------------------ */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #b58e52;
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 4px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s;
  z-index: 1001;
}

.toast.show {
  opacity: 1;
  visibility: visible;
}

/* ------------------------------
   Кнопки Входа, Регистрации и Выхода
------------------------------ */
#auth-buttons {
  display: flex;
  gap: 0.5rem;
}

#auth-buttons .btn {
  padding: 0.5rem 1rem;
}

#logout-btn {
  background-color: transparent;
  color: #b58e52;
  border: 1px solid #b58e52;
}

#logout-btn:hover {
  background-color: #b58e52;
  color: #fff;
}

/* ------------------------------
   Адаптивность для мобильных устройств
------------------------------ */
@media (max-width: 768px) {
  .header__content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .header__nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  .cart__content {
    padding: 0 1rem;
  }
  
  .cart__item {
    flex-direction: column;
    align-items: flex-start;
  }

  .cart__item .remove-item {
    margin-
