@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");

body {
  background-color: #f8f9fa;
  margin-bottom: 16vw;
  overflow-x: hidden;
}

.hero-block {
  background: linear-gradient(135deg, #101010, #1f2b3a);
  color: #f4f4f4;
  border-radius: 16px;
  padding: 20px;
  margin: 0 12px 12px 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.hero-title {
  font-size: 7vw;
  font-weight: 700;
  margin-bottom: 8px;
}

.hero-subtitle {
  font-size: 4.2vw;
  color: #cfd8e3;
}

.hero-cta {
  margin-top: 12px;
  padding: 10px 18px;
  border-radius: 12px;
}

.form-control {
  font-family: "Roboto", sans-serif;
}

/* Контейнер секций */
#sectionsContainer {
  position: relative;
  width: 100vw;
  height: calc(100vh - 16vw);
  overflow: hidden;
}

.busket-product-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

.section-container {
  width: 100vw;
  height: calc(100vh - 16vw);
  position: absolute;
  transition: transform 0.3s ease-out;
  top: 0;
  left: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 16vw;
  padding-top: 6vw;
}

/* Начальные позиции секций */
#katalog {
  transform: translateX(0);
}

#basket {
  transform: translateX(100vw);
}

#contacts {
  transform: translateX(200vw);
}

/* Анимация отскока */
.section-container.bounce {
  transition: transform 0.2s cubic-bezier(0.36, 0, 0.66, -0.56) !important;
}

/* Нижняя навигация */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #f8f9fa;
  padding: 2.7vw 0;
  box-shadow: 0 -0.5vw 2.7vw rgba(0, 0, 0, 0.1);
  z-index: 1040;
}

.nav-pills .nav-link {
  color: #666;
  border-radius: 4.5vw;
  padding: 2.1vw 4vw;
  margin: 0 1vw;
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  text-decoration: none;
  font-size: 4vw;
  max-width: 28vw;
  text-align: center;
}

.container {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  height: auto;
}
.empty-busket {
  display: flex;
  text-align: center;
  flex-direction: column;
  border-radius: 5vw;
  padding: 0vw 2vw;

  h3 {
    font-size: 6vw;
  }

  p {
    margin-top: 2vw;
    font-size: 4.5vw;
  }
}

.order-form {
  width: 83%;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.status-panel {
  width: 83%;
  background: #0f172a;
  color: #f8fafc;
  border-radius: 12px;
  padding: 16px;
  margin-top: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.status-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.status-message {
  font-size: 14px;
  margin-bottom: 12px;
}

.bottom-nav .nav {
  display: flex;
  justify-content: center;
  gap: 4vw;
}

.nav-pills .nav-link.active-custom {
  background-color: #3770b1;
  color: white;
}

/* Поиск */
.search-container {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100vw;
  padding: 2.7vw 0;
}

.search-container .input-group {
  width: 90vw;
}

.search-button,
.search-input {
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  font-size: 4.5vw;
}

.search-input {
  border-width: 0.4vw;
  border-color: rgb(171, 171, 171);
  border-radius: 2vw;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  background-color: #f8f9fa;
  padding: 2vw;
}

/* Кнопки покупки */
.buy-group {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
  height: 11vw;
  font-size: 4.5vw;
  border: 0 solid #898989;
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  background-color: #3770b1;
  color: white;

  section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  button {
    border: none;
    outline: none;
    background-color: transparent;
    color: white;
  }
  .minus {
    margin-left: 1vw;
  }
  .plus {
    margin-right: 1vw;
  }
}

.buy-button:hover {
  background-color: transparent;
}

/* Поиск кнопка */
.search-button {
  border-width: 0.4vw;
  border-color: #3770b1;
  color: #2e5b90;
  padding: 2vw 4vw;
}

.search-button:hover {
  background-color: #3770b1;
  color: white;
}

/* Карточки товаров */
.card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1vw 2vw;
}

.card-text {
  font-size: 4vw;
  margin-bottom: 1vw;
  padding: 0.5vw;
}
.card-price {
  font-weight: bold;
  margin: 0;
  margin-bottom: 1.5vw;
  padding: 0.5vw;
}

.modal-price {
  font-weight: bold;
  margin-top: 3vw;
  margin-bottom: 0vw;
  font-size: 4vw;
}
/* Модальное окно */
.modal-theme {
  font-size: 6vw;
  margin-top: 2vw;
}

.modal-text {
  font-size: 4vw;
}

.modal-header {
  padding: 4vw;
}

.modal-body {
  padding: 4vw;
}

.modal-footer {
  padding: 4vw;
}

.modal-title {
  font-size: 4.8vw;
}

.modal .btn {
  font-size: 4vw;
  padding: 2vw 4vw;
}

.hidden-text {
  display: none;
  margin-top: 1vw;
  font-size: 3.5vw;
  padding: 0.5vw;
}

/* Дополнительные стили для контактов */
.contacts h2 {
  font-size: 6vw;
  margin-bottom: 4vw;
}

.contacts h4 {
  font-size: 4.8vw;
  margin-top: 4vw;
  margin-bottom: 2vw;
}

.contacts p {
  font-size: 4vw;
  margin-bottom: 4vw;
}

.busket-ul {
  list-style-type: none;

  .busket-card {
    margin-bottom: 2vw;
    display: flex;
    background-color: rgb(235, 235, 235);
    border-radius: 8vw;
    padding: 4.5vw 3vw;
    width: 70vw;

    .busket-img {
      img {
        border-radius: 4vw;
        width: 25vw;
      }
    }

    .busket-info {
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-direction: column;
      width: 50vw;

      .delete {
        display: none;
      }
      .price {
        margin-top: 2vw;
        font-size: 4vw;
      }
      .name {
        font-size: 3.8vw;
      }

      .busket-buttons {
        display: flex;
        text-align: center;
        justify-content: space-between;
        padding: 1vw 2vw;

        align-items: center;
        font-size: 5vw;
        background-color: #3770b1;
        border-radius: 4vw;
        width: 26vw;
        color: white;
        margin-bottom: 2vw;
        p {
          margin: 0;
        }
        button {
          background-color: #ffffff00;
          border: none;
          color: white;
        }
      }
    }
  }
}

.form-group {
  display: flex;
  justify-content: center;
  margin-top: 4vw;
}

.form-group .input-group {
  width: 70vw;
}

.form-group input {
  font-size: 4vw;
  padding: 2vw;
}

.form-group .input-group-text {
  font-size: 4vw;
  padding: 2vw;
}

.not-empty-basket {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.user-name {
  margin-top: 6vw;
  width: 70vw;
}
.select-place {
  color: #212529;
  margin-top: 1vw;
  width: 70vw;
}

.select-place option[disabled] {
  color: #212529;
}

#katalog-place {
  /* width: 100vw;
  display: flex;
  justify-content: center; */
  width: 97vw;
}
.album {
  display: flex;
  justify-content: center;
  width: 100%;
}
.col {
  border-radius: 4vw;
  border: none;
  outline: none;
  background-color: #1b253100;
  width: 29vw;
  margin: 1vw;
  padding: 0;
  box-shadow: 0 0.4vw 1vw rgba(6, 6, 6, 0.219);
}
.card {
  height: 100%;
  border: none;
  outline: none;
}

.busket-products {
  margin-top: 5vw;
}
.basket {
  width: 100%;
  padding: 16px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
}
.reser-button {
  margin-top: 6vw;
  margin-bottom: 6vw;
  border: none;
  background-color: #3770b1;
  font-size: 6vw;
  padding: 2vw 4vw;
  height: 13vw;
  width: 85vw;
  border-radius: 4vw;
  color: white;
}
.button-place {
  margin-top: 4vw;
  height: 13vw;
  width: 85vw;
}
.map-title {
  margin-top: 9vw;
}
.map-container {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 4vw;
}
/* Стили для карты */
.map {
  position: relative;
  width: 90vw;
  height: 40vh;
  border-radius: 4vw;
  overflow: hidden;
  transition: all 0.3s ease;
  margin-top: 2vw;
}

.map iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.busket-poducts {
  margin: 0;
  padding: 0;
  width: 100vw;
}
#basket > div > div.album.py-4.bg-body-tertiary > div > div {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-img-top {
  width: 100%;
  height: auto;
  object-fit: cover;
}

input {
  color: black;
}
input::placeholder {
  color: black;
}
#basket {
  padding-top: 1vw;
}

.busket-poducts {
  padding-top: 0vw;
  margin-top: 0vw;
  align-items: center;
}

.buy-button,
.count-controller {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.buy-button.hidden,
.count-controller.hidden {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

.count-controller {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

.count-controller.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.count-controller button {
  background-color: transparent;
  border: none;
  color: white;
  font-size: 4.5vw;
}

.counter {
  font-size: 4.5vw;
  color: white;
}

/* Стили для инкрементора */
.buy-group {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.buy-button,
.count-controller {
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.buy-button.hidden {
  opacity: 0;
  transform: translateX(-100%);
  pointer-events: none;
}

.count-controller {
  display: flex;
  align-items: center;
  justify-content: space-between;
  opacity: 0;
  transform: translateX(100%);
  pointer-events: none;
}

.count-controller.visible {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.count-controller button {
  background-color: transparent;
  border: none;
  color: white;
  font-size: 4.5vw;
}

.counter {
  font-size: 4.5vw;
  color: white;
}
#busket-place {
  width: 97vw;
}
.not-empty-basket {
  display: none;
  /* display: flex; */
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.highlight {
  animation: blink 0.5s step-end infinite alternate;
}

@keyframes blink {
  from {
    background-color: #ffdddd;
  }
  to {
    background-color: transparent;
  }
}
.place-group {
  display: flex;
  justify-content: center;
  align-items: center;

  select {
    width: 49vw;
  }
  button {
    width: 20vw;
    padding-left: 0vw;
    padding-right: 0vw;
    margin-left: 2vw;
    margin-top: 1vw;
    /* height: 10v; */
  }
}
p {
  font-weight: 300;
}

#contacts {
  margin-bottom: 0vw;

  h4 {
    margin: 0vw;
  }
  h2 {
    width: 100%;
    text-align: center;
    font-size: 4.5vw;
    margin: 0vw;
  }
  p {
    font-weight: 300;
    margin-top: 2vw;
    font-size: 4vw;
  }

  .bold {
    font-weight: 700;
  }
  .mt {
    margin-top: 2vw;
  }
}
/* Обработка на карт */
/* Обновлённый класс .highlight-green */
.highlight-green {
  box-shadow: 0 0 20px 5px rgba(40, 167, 69, 0.7); /* Более заметная тень */
  border-radius: 4vw;
  animation: highlightPulse 1.5s ease-out forwards;
  will-change: box-shadow, transform;
}

@keyframes highlightPulse {
  0% {
    box-shadow: 0 0 20px 5px rgba(40, 167, 69, 0.7);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 30px 10px rgba(40, 167, 69, 0.5);
    transform: scale(1.01);
  }
  100% {
    box-shadow: 0 0 20px 5px rgba(40, 167, 69, 0);
    transform: scale(1);
  }
}

.card-img-top {
  /* width: 100%; */
  height: 40vw;
  object-fit: cover;
}
.buy-button {
  background-color: transparent;
  border: none;
  width: 100%;
  height: 100%;
  font-weight: 300;
  color: white;
  font-size: 3.6vw;
}
