@charset "UTF-8";
/**
  Переменные для отступов
 */
/**
  Переменные для цветов
 */
/**
  Переменные для шрифтов
 */
body {
  background: #f8f8f8;
}

.section {
  display: flex;
  justify-content: center;
  padding: 60px 0px;
}
.section a {
  text-decoration: none;
}
.section__wrapper {
  width: 520px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
}
.section__wrapper_full {
  width: 100%;
}
.section__title {
  font-weight: bold;
  color: black;
  font-size: 28px;
  text-align: center;
}
.section__h2 {
  font-size: 24px;
  font-weight: 600;
  font-style: normal;
  font-stretch: normal;
  color: #31394c;
  text-align: center;
  margin-bottom: 5px;
}
.section__p {
  font-size: 16px;
  width: 70%;
  font-weight: normal;
  font-style: normal;
  font-stretch: normal;
  line-height: 1.38;
  letter-spacing: normal;
  text-align: center;
  color: #808080;
}

.backgr {
  position: relative;
  z-index: 1;
  box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.07);
  border-radius: 20px 20px 0 0;

}
.backgr img {
  border-radius: 20px 20px 0 0;
  width: 100%;
  position: relative;
  z-index: 1;
}

.main {
  border-radius: 20px;
  width: 100%;
  padding: 20px;
  margin-top: -40px;
  position: relative;
  z-index: 99;
  background: white;
  padding-top: 0;
  padding-bottom: 40px;
  box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.07);
  background: #f8f8f8;
}

.avatar {
  width: 140px;
  border-radius: 100%;
  display: flex;
  border: 2px solid #ededed;
  position: absolute;
  margin-left: auto;
  margin-right: auto;
  left: 0;
  right: 0;
  top: -70px;
}
.avatar img {
  width: 100%;
  border-radius: 100%;
}

.main-title {
  margin-top: 80px;
  text-align: center;
}

.main-social {
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-li {
  background: #000;
  color: #fff;
  border-radius: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 8px;
  margin: 0 5px;
}
.social-li img {
  width: 100%;
}

.part {
  margin-top: 20px;
  display: flex;
  border-radius: 15px;
}
.part img {
  width: 100%;
  border-radius: 15px;
}

.parts {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.parts a {
  width: 49%;
}

.copyright {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 50px;
  font-weight: bold;
  font-size: 13px;
}
.copyright a {
  font-weight: normal;
}
.copyright span {
  text-align: center;
  margin-bottom: 10px;
}

.pages .main {
  margin-top: 0;
  padding-left: 0;
  padding-right: 0;
}
.pages .page-img {
  width: 100%;
  display: flex;
  border-radius: 20px 20px 0 0;
}
.pages .part,
.pages .parts {
  margin-left: 20px;
  margin-right: 20px;
}
.pages .parts .part {
  margin-left: 0px;
  margin-right: 0px;
}
.pages .main-title {
  margin-top: 20px;
}
.pages .conte {
  margin-left: 20px;
  margin-right: 20px;
}

.prev-button {
  border: 1px solid #e4e9e9;
  border-radius: 5px;
  padding: 5px 10px;
  color: black;
  text-align: center;
  position: relative;
  margin-top: 20px;
  -ms-grid-column-align: center;
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 100px;
}

a:visited {
  color: black;
}

.imams {
  margin-top: 30px;
  margin-left: 20px;
  margin-right: 20px;
}

.imam {
  display: flex;
  margin-bottom: 20px;
}
.imam img {
  width: 130px;
  margin-right: 15px;
  border-radius: 10px;
}
.imam-part {
  display: flex;
  flex-direction: column;
}
.imam h3 {
  font-size: 16px;
  margin-top: 5px;
  margin-bottom: 0;
}
.imam p {
  font-size: 13px;
  margin-bottom: 5px;
  margin-top: 0;
}

a{
  color: black;
}
.container {
  max-width: 1400px;
}

/**
  Десктоп маленький
 */
/**
  Планшет горизонтальный
 */
@media screen and (max-width: 1279px) {
  .container {
    max-width: 100%;
  }
}
/**
  Планшет вертикальный
 */
/**
  Мобильные устройства
 */
@media screen and (max-width: 767px) {
  .basic__left {
    display: none;
  }
  .basic__first_time {
    display: none;
  }
  .section__wrapper {
    width: 100%;
    padding: 20px;
  }
  .header__menu {
    display: none;
  }
  .basic__main,
  .bs__new {
    width: 100%;
  }
  .basic__first_left {
    margin-right: 0;
  }
  .basic__part_content {
    flex-direction: column;
  }
  .bs__new {
    margin-bottom: 30px;
  }
  .basic__part_bottom {
    padding-top: 0;
  }
  .header__bottom_wrapper {
    padding-left: 5px;
  }
  .header__lines {
    display: flex;
    width: 100%;
    padding-top: 10px;
    background: url(../img/icon-picture2.svg) 0 2px repeat-x,
      linear-gradient(to bottom, #f3f8f9 0, #f3f8f9 100%);
    background-color: #f3f8f9 !important;
    padding-top: 15px;
  }
  .header {
    position: fixed;
    width: 100%;
    display: flex;
    background: white;
  }
  .basic {
    padding-top: 0;
  }

  .section__wrapper{
    padding: 0;
  }
  .backgr img{
    border-radius: 0;
  }
}
.hamburger {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border: 1px solid transparent;
  background: transparent;
  padding: 5px;
  border-radius: 8px;
}

.btn__hamb {
  position: relative;
  display: block;
  width: 100%;
  height: 4px;
  background: #fff;
  cursor: pointer;
}

.btn__hamb div {
  width: 100%;
  height: 100%;
}

.btn__hamb:before,
.btn__hamb:after {
  content: '';
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  background: #fff;
}

.btn__hamb:before {
  top: -8px;
}

.btn__hamb:after {
  top: 8px;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 70%;
  z-index: 100;
}

@media (min-width: 768px) {
  .mobile-menu {
    padding-top: 0;
  }
  .cart-title-wm{
    font-size: 10px;
    text-align: left;
  }
}
.mobile-menu .mm__bg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(20, 20, 20, 0.8);
  z-index: 100;
}

.mobile-menu .mm__wrapper {
  visibility: hidden;
  transform: translateX(-100%);
  transition: all 0.4s ease-in-out;
  overflow-y: auto;
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 200;
  touch-action: auto;
  -ms-touch-action: auto;
  background: #fff;
}

@media (min-width: 768px) {
  .mobile-menu .mm__wrapper {
    width: 35%;
  }
}
@media (min-width: 1200px) {
  .mobile-menu .mm__wrapper {
    width: 25%;
  }
}
.mobile-menu .h__logo {
  padding-left: 40px;
  font-size: 2rem;
  font-weight: 700;
  color: #333;
  line-height: 1.25;
  margin-left: 20px;
  margin-top: 15px;
}

.mm__header .close-btn {
  position: absolute;
  top: 0;
  right: 0;
  margin-right: 15px;
  margin-top: 15px;
}

.close-btn {
  position: relative;
  width: 20px;
  height: 20px;
  transform: rotate(45deg);
  cursor: pointer;
}

.close-btn:before {
  width: 2px;
  height: 18px;
  left: 8px;
  top: 0;
}

.close-btn:after {
  height: 2px;
  width: 18px;
  top: 8px;
  left: 0;
}

.close-btn:before,
.close-btn:after {
  content: '';
  background: #000;
  position: absolute;
}

.close-btn--red:before,
.close-btn--red:after {
  background: #7a0d10;
}

.mm-content {
  padding-left: 20px;
}

.mma-link {
  font-size: 18px;
  font-weight: bold;
  color: black;
}


/* Общие стили */
.menu_all {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
  margin: 0 -20px;
  background-color: #f8f8f8;
}

.menu__category {
  width: 100%;
  max-width: 800px;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.menu__title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #333;
}

.menu__product {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #ddd;
  padding-top: 15px;
  margin-top: 15px;
}

.product__body {
  display: flex;
  flex-direction: column;
  margin-right: 5px;
}

.product__title {
  font-size: 16px;
  font-weight: bold;
  color: #222;
  margin-bottom: 5px;
}

.product__descr {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

.product__price {
  font-size: 14px;
  font-weight: bold;
  color: #d9534f;
}

.product__img img {
  width: 150px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
}

/* Стили кнопки корзины */
.cart-button {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #ff5722;
  color: white;
  padding: 15px 25px;
  font-size: 18px;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  width: 80%;
  max-width: 400px;
  display: flex;
  align-items: center;
  justify-content: center; /* Центрируем текст по умолчанию */
  font-weight: bold;
  gap: 10px; /* Пространство между элементами */
  z-index: 199999;
}

.cart-button.has-items {
  justify-content: space-between;
}

/* Кнопка "Добавить в заказ" */
.add-to-cart {
  background: linear-gradient(135deg, #ff5722, #ff7849);
    color: white;
    margin-top: 5px;
    border: none;
    padding: 5px 5px;
    font-size: 10px;
    border-radius: 5px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 0;
    transition: all 0.3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 150px;
    box-shadow: 0px 4px 10px rgba(255, 87, 34, 0.3);
}

/* Общий контейнер управления товаром */
.cart-controls {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #f8f8f8;
  border-radius: 25px;
  padding: 5px 12px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* Кнопки - и + */
.cart-controls button {
  background: #ff5722;
  color: white;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

/* Анимация при нажатии */
.cart-controls button:active {
  transform: scale(0.9);
}

/* Иконка мусорного бака */
.delete-item {
  background: none;
  border: none;
  cursor: pointer;
  color: #ff5722;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease-in-out;
}

.delete-item:hover {
  color: #d32f2f;
  transform: scale(1.1);
}

/* Анимация количества */
.quantity {
  font-size: 18px;
  font-weight: bold;
  min-width: 24px;
  text-align: center;
  transition: transform 0.2s ease-in-out;
}

.quantity.change {
  transform: scale(1.2);
}


.cart-badge {
  margin-right: 6px;
  background: white;
    color: #ff5722;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.cart-bgos{
  display: flex;
}
.cart-normawle{
  font-weight: normal;
}

/* Стили поп-апа */
.cart-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8); /* Затемнение фона */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s;
}

.cart-popup h2 {
  margin-bottom: 15px;
}

.cart-content {
  display: flex;
  flex-direction: column;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.cart-item img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  margin-right: 10px;
}

.cart-item button {
  background: #ff5722;
  color: white;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
}

#close-cart{
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 18px;
  
    cursor: pointer;
    background: none;
    border-radius: 100%;
    padding: 0;
    border: 0;
}

/* Контент внутри поп-апа */
.cart-content {
  background: #fff;
  width: 90%;
  max-width: 500px;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.3);
  text-align: center;
  position: relative;
}

/* Анимация появления */
.cart-popup.show {
  opacity: 1;
  visibility: visible;
}

/* Кнопка закрытия */
#close-cart {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  font-size: 28px;
  color: #ff5722;
  cursor: pointer;
  transition: transform 0.2s ease;
}

#close-cart:hover {
  transform: scale(1.2);
}

/* Попап с информацией о продукте */
.product-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

/* Контент попапа */
.popup-content {
  background: white;
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease-in-out;
}

/* При открытии */
.product-popup.show {
  opacity: 1;
  visibility: visible;
}

.product-popup.show .popup-content {
  transform: scale(1);
}

/* Закрытие попапа */
.close-popup {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
}

/* Изображение */
#popup-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 15px;
}

/* Цена */
#popup-price {
  display: block;
  font-size: 18px;
  font-weight: bold;
  color: #ff5722;
  margin-bottom: 15px;
}

/* Кнопка "Добавить в заказ" */
#popup-add-to-cart {
  background: linear-gradient(135deg, #ff5722, #ff7849);
  color: white;
  border: none;
  padding: 12px 20px;
  font-size: 16px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: bold;
  width: 100%;
  transition: all 0.3s ease-in-out;
}

#popup-add-to-cart:hover {
  background: linear-gradient(135deg, #ff7849, #ff5722);
  transform: scale(1.05);
}

button:focus {
  outline: none;
}

/* Плашка акции */
.promo-banner {
  background: linear-gradient(135deg, #ff5722, #ff9800);
  color: white;
  margin-top: 20px;
  text-align: center;
  padding: 12px 20px;
  font-size: 16px;
  border-radius: 25px;
  font-weight: bold;
  box-shadow: 0px 4px 10px rgba(255, 87, 34, 0.3);
  transition: all 0.3s ease-in-out;
  visibility: hidden;
  animation: fadeIn 1s ease-in-out forwards 0.5s;
}

/* Анимация появления */
@keyframes fadeIn {
  from {
      opacity: 0;
      visibility: hidden;
      transform:  translateY(10px);
  }
  to {
      opacity: 1;
      visibility: visible;
      transform:  translateY(0);
  }
}

.trash{
  width: 18px !important;
  height: 21px !important;
  margin-right: 0 !important;
}

/* Серый фон для товаров, которых нет в наличии */
.product-unavailable {
  background: #f0f0f0;
  opacity: 0.6;
  pointer-events: none; /* Запрещает клики */
}

/* Отключенная кнопка */
.product-unavailable .add-to-cart {
  background: #ccc;
  color: #666;
  cursor: not-allowed;
}
