@-webkit-keyframes product-card-hover {
  0% {
    position: absolute;
    left: 0;
    right: 0;
    border: 1px solid transparent;
    -webkit-box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
            box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    padding-left: 0;
    padding-right: 0;
  }
  100% {
    border: 1px solid transparent;
    -webkit-box-shadow: 0 7px 1rem 0 rgba(0, 0, 0, 0.19);
            box-shadow: 0 7px 1rem 0 rgba(0, 0, 0, 0.19);
    left: -1rem;
    right: -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    z-index: 3;
  }
}

@keyframes product-card-hover {
  0% {
    position: absolute;
    left: 0;
    right: 0;
    border: 1px solid transparent;
    -webkit-box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
            box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    padding-left: 0;
    padding-right: 0;
  }
  100% {
    border: 1px solid transparent;
    -webkit-box-shadow: 0 7px 1rem 0 rgba(0, 0, 0, 0.19);
            box-shadow: 0 7px 1rem 0 rgba(0, 0, 0, 0.19);
    left: -1rem;
    right: -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    z-index: 3;
  }
}

.product-card__container {
  position: relative;
  /*padding-bottom: 1rem;*/
  height: 100%;
  height: 500px;
}

.product-card__container_large {
  height: 700px;
}

.product-card__container_nohover {
  position: relative;
  /*padding-bottom: 1rem;*/
  height: 100%;
  height: auto;
}

.product-card {
  display: block;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  /*padding-top: 1rem;*/
  width: 100%;
  border: 1px solid transparent;
  border-radius: 2px;
  -webkit-box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.19);
          box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.19);
  background-color: var(--bg-white);
}

.product-card_homepage {
  background-color: var(--bg-white);
}

.product-card__info {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.product-card__title {
  text-align: center;
}

.product-card__title:hover {
  color: inherit;
}

.product-card__title:hover {
  text-decoration: underline;
}

.product-card__cost {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  /*-webkit-box-orient: horizontal;*/
  /*-webkit-box-direction: normal;*/
  /*    -ms-flex-direction: row;*/
  /*        flex-direction: row;*/
  /*-webkit-box-pack: center;*/
  /*    -ms-flex-pack: center;*/
  /*        justify-content: center;*/
  gap: 10px;
  /*margin-top: 1rem;*/
}

.product-card__old-price {
  text-decoration: line-through;
  text-align: center;
}

.product-card__onhover {
  display: none;
  padding-top: 1rem;
}

.product-card__has {
  text-align: center;
  margin-top: 0.5rem;
}

.product-card__sell {
  position: absolute;
  z-index: 2;
  left: 5px;
  top: 5px;
  background-color: var(--bs-primary);
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  cursor: default;
}

.swiper-product-card-images-pagination {
  display: none;
}

.product-card__container:hover .swiper-product-card-images-pagination {
  display: block;
}

.product-card__distance {
  max-width: 400px;
}

.product-card__info_distance {
  min-width: 400px;
  max-width: 500px;
}

.product-card__info_distance > div {
  width: 100%;
}

@media screen and (min-width: 993px) {
  .product-card__container:hover .product-card {
    position: absolute;
    right: -1rem;
    left: -1rem;
    padding: 0 1rem 0;
    width: auto;
    border-color: transparent;
    -webkit-box-shadow: 0 7px 1rem 0 rgba(0, 0, 0, 0.19);
            box-shadow: 0 7px 1rem 0 rgba(0, 0, 0, 0.19);
    -webkit-animation: product-card-hover 300ms ease;
            animation: product-card-hover 300ms ease;
    z-index: 3;
  }
  .product-card__container:hover .product-card__onhover {
    display: block;
  }
  .product-card__container_nohover:hover .swiper-product-card-images-pagination {
    display: block;
  }
}

@media screen and (max-width: 992px) {
  .product-card__onhover {
    display: block;
    position: relative;
    background-color: transparent;
    border: none;
  }
  .product-card {
    margin-bottom: 1.5rem;
  }
  .product-card__container {
    height: auto;
  }
  .product-card__distance {
    max-width: 100%;
  }
  .product-card__info_distance {
    min-width: 100%;
  }
}
