﻿.home-products-section {
  padding: 40px 0;
}

.home-products-section .products {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}

.home-products-section .products.last-products .product {
  margin-bottom: 30px;
}

.home-products-section .products .product {
  border: 1px solid #ededed;
  -ms-flex-preferred-size: 18%;
      flex-basis: 18%;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  background-color: #fff;
  padding: 20px;
  border-radius: 12px;
  position: relative;
  margin: 0 5px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-transition: 0.3s;
  transition: 0.3s;
}

.home-products-section .products .product:hover {
  -webkit-box-shadow: 0 5px 30px rgba(34, 34, 34, 0.1);
          box-shadow: 0 5px 30px rgba(34, 34, 34, 0.1);
}

.home-products-section .products .product .stickers {
  position: absolute;
  left: 20px;
  top: 20px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  z-index: 1;
}

.home-products-section .products .product .stickers .sticker {
  text-transform: uppercase;
  color: #fff;
  font-size: 10px;
  border-radius: 5px;
  padding: 3px 6px 2px;
  margin-right: 4px;
  font-family: "opensans-semibold", sans-serif;
}

.home-products-section .products .product .stickers .sticker.hit {
  background-color: #E294D2;
  -webkit-box-shadow: 0 6px 12px #E294D2;
          box-shadow: 0 6px 12px #E294D2;
}

.home-products-section .products .product .stickers .sticker.advise {
  background-color: #a56ffd;
  -webkit-box-shadow: 0 6px 12px #a56ffd;
          box-shadow: 0 6px 12px #a56ffd;
}

.home-products-section .products .product .stickers .sticker.new {
  background-color: #FFDA95;
  -webkit-box-shadow: 0 6px 12px #FFDA95;
          box-shadow: 0 6px 12px #FFDA95;
  color: #36556D;
}

.home-products-section .products .product .stickers .sticker.promotion {
  background-color: #ffeb81;
  -webkit-box-shadow: 0 6px 12px #ffeb81;
          box-shadow: 0 6px 12px #ffeb81;
  color: #222;
}

.home-products-section .products .product .thumb {
  margin-bottom: 20px;
  position: relative;
}

.home-products-section .products .product .thumb .product__images--few {
  overflow: hidden;
}

.home-products-section .products .product .thumb .product__images--few .product__image {
  position: absolute;
  opacity: 0;
  top: 0;
  left: 0;
  right: 0;
  -webkit-transition: opacity 0.3s ease;
  transition: opacity 0.3s ease;
  text-align: center;
}

.home-products-section .products .product .thumb .product__images--few .product__image img {
  height: 250px;
  -o-object-fit: contain;
     object-fit: contain;
}

.home-products-section .products .product .thumb .product__images--few .product__image:first-child {
  position: static;
}

.home-products-section .products .product .thumb .product__images--few .product__image.is_active {
  opacity: 1;
}

.home-products-section .products .product .thumb .product__img-bullets {
  z-index: 1;
  position: absolute;
  bottom: -10px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  left: 0;
  right: 0;
}

.home-products-section .products .product .thumb .product__img-bullet {
  width: 12px;
  height: 2px;
  background: rgba(136, 136, 136, 0.5);
  border-radius: 12px;
  margin: 0 3px;
}

.home-products-section .products .product .thumb .product__img-bullet.is_active {
  background: #000;
}

.home-products-section .products .product .thumb .product__img-togglers {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  z-index: 2;
}

.home-products-section .products .product .thumb .product__img-toggler {
  height: 100%;
  width: 100%;
}

.home-products-section .products .product .thumb .product__content {
  padding: 30px;
  background: #7d7d7d;
  color: #fff;
}

.home-products-section .products .product .thumb .product__title {
  text-transform: uppercase;
  margin-bottom: 5px;
}

.home-products-section .products .product .price {
  font-size: 1rem;
  font-family: "opensans-semibold", sans-serif;
  margin-bottom: 5px;
}

.home-products-section .products .product .price .discount-price {
  color: #999;
  font-weight: 400;
  text-decoration: line-through;
  font-size: 12px;
  padding-left: 3px;
}

.home-products-section .products .product .title {
  margin-bottom: 5px;
}

.home-products-section .products .product .status {
  font-size: 12px;
  font-family: "opensans-semibold", sans-serif;
  margin-bottom: 10px;
}

.home-products-section .products .product .status .in-stock {
  color: #69be15;
}

.home-products-section .products .product .status .to-order {
  color: #69be15;
}

.home-products-section .products .product .status .absent {
  color: #ff6565;
}

.home-products-section .products .product .button {
  margin-top: auto;
}

.home-products-section .products .products-carousel .owl-stage {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.home-products-section .products .products-carousel .owl-stage .owl-item .item {
  height: 100%;
}

.home-products-section .products .products-carousel .owl-stage .owl-item .item .product {
  height: 100%;
}

/* карусель: flex на .products ломает Owl */
.home-products-section .products:not(.last-products) {
  display: block;
}

.home-products-section .products .products-carousel .owl-item .product {
  -ms-flex-preferred-size: auto;
      flex-basis: auto;
  width: 100%;
}

@media (max-width: 1200px) {
  .home-products-section .products .product {
    -ms-flex-preferred-size: 24%;
        flex-basis: 24%;
  }
}

@media (max-width: 991px) {
  .home-products-section .products .product {
    -ms-flex-preferred-size: 31%;
        flex-basis: 31%;
  }
}

@media (max-width: 767px) {
  .home-products-section .products .product {
    -ms-flex-preferred-size: 47%;
        flex-basis: 47%;
  }
}

@media (max-width: 576px) {
  .home-products-section {
    padding: 20px 0;
  }

  .home-products-section .products .product {
    -ms-flex-preferred-size: 100%;
        flex-basis: 100%;
    padding: 10px;
    padding-top: 30px;
  }

  .home-products-section .products .product .stickers {
    left: 10px;
    top: 10px;
  }

  .home-products-section .products .product .stickers .sticker {
    font-size: 9px;
    padding: 2px 4px;
  }
}
