/*product*/

.products-slider {
  position: relative;
}

.product__swiper {
  padding: 0 15px;
}

.product__swiper-wrapper {
  width: auto;
  box-sizing: border-box;
}

.product__cards-list {
  row-gap: 24px;
  width: auto;
}

.product__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 10px;
  background-color: var(--color-white);
  transition: box-shadow .3s ease-in-out;
}

.product__swiper .product__card {
  margin-bottom: 32px;
}

.product__card:hover {
  box-shadow: 0px 4px 10.1px 0px rgba(52, 117, 201, 0.45);
}

.product__card:hover .product__favorite-btn, .product__card:hover .product__btn {
  opacity: 1;
}

.product__link {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.product__preview-image {
  padding: 12px 0 20px;
  max-height: 314px;
  height: 314px;
  object-fit: contain;
}

.product__favorite-btn {
  position: absolute;
  top: 46px;
  right: 32px;
  opacity: 0;
  cursor: pointer;
  transition: opacity .3s ease-in-out;
}

.product__favorite-btn svg {
  width: 27px;
  height: auto;
}

.active-favorite {
  opacity: 1;
}

.active-favorite svg {
  fill:var(--color-blue-klein);
}

.product__top {
  position: relative;
  display: flex;
  justify-content: center;
}

.product__sale {
  position: absolute;
  left: 24px;
  bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-white);
  background-color: var(--color-yellow-green);

}

.product__info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 23px 22px 22px 24px;
  border-radius: 0 0 10px 10px;
  background-color: #EFF3F8;
}

.product__name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 300;
  color: var(--color-black);
  overflow: hidden;
  word-break: break-word;
}

.product__info-bottom {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.product__price-block {
  display: flex;
  align-items: baseline;
  gap: 13px;
  padding-top: 5px;
}

.product__price {
  font-size: 20px;
  font-weight: 600;
  line-height: 100%;
  color: var(--color-black);
}

.product__old-price {
  font-size: 16px;
  font-weight: 400;
  line-height: 100%;
  color: var(--dull-grey);
  text-decoration: line-through;
}

.product__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--color-blue-klein);
  border-radius: 4px;
  background-color: var(--color-blue-klein);
  opacity: 0;
  transition: all .3s ease-in-out;
}

.product__btn:hover {
  border-color: var(--color-violet-blue-crayola);
  background-color: var(--color-violet-blue-crayola);
}

.product__btn:active {
  background-color: var(--color-white);
}

.product__name.tooltiptext:hover> .product__btn {
  opacity: 0;
}

.product__btn svg path{
  stroke:#EFF3F8
}

.product__btn:active svg path{
  stroke:var(--color-blue-klein)
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card img {
  max-width: 100%;
  height: auto;
  margin-bottom: 15px;
}

.product__swiper-button-prev, .product__swiper-button-next {
  top: calc(100% / 2 - 10px) ;
}


@media (max-width:1024px){

  .product__cards-list {
    row-gap: 10px;
  }

  .product__preview-image {
    padding: 0 0 10px;
    max-height: 168px;
  }

  .product__card {
    position: relative;
  }

  .product__info {
    padding: 10px 22px 22px 22px;
  }

  .product__name {
    -webkit-line-clamp: 2;
    height: 42px;
    font-size: 14px;
    line-height: 150%;
  }

  .product__info-bottom {
    flex-direction: column;
    align-items: baseline;
  }

  .product__price-block {
    flex-direction: row;
  }

  .product__price {
    font-size: 14px;
  }

  .product__old-price {
    font-size: 10px;
  }

  .product__price-block {
    gap: 16px;
    margin-bottom: 11px;
  }

  .product__btn {
    opacity: 1;
  }

  .product__favorite-btn {
    top: auto;
    bottom: 22px;
    right: 22px;
    opacity: 1;
  }

  .product__swiper .product__card {
    margin-bottom: 16px;
  }

  .product__sale {
    padding: 0 4px;
    height: 25px;
    font-size: 10px;
  }
}



@media (max-width:576px) {

  .product__swiper {
    padding: 0 6px;
  }

  .product__name {
    height: 42px;
  }
}

@media (max-width: 380px) {
  .product__price-block {
    gap: 6px;
  }
}
