.time {
  clear: both;
  margin: 20px auto 20px;
  box-sizing: border-box;
}
.wrapper-product {
  margin-left: -30px;
}
.product img {
  max-width: 100%;
  object-fit: cover;
  transition: opacity 300ms ease-in-out;
}
.title {
  letter-spacing: 5px;
  font-size: 24px;
  padding-left: 30px;
  color: #50222b;
  line-height: 1.4;
  text-transform: uppercase;
  font-family: kelsonBold, serif;
  margin-bottom: 38px;
}
.wrapper h2 {
  text-align: left;
  font-size: 20px;
  font-weight: lighter;
  padding: 0;
}
.product h4 {
  color: #000;
  background: transparent;
  font-size: 10px;
  letter-spacing: 2px;
  line-height: 18px;
  margin-bottom: 6px;
}
.product .price {
  color: #000;
  font-family: Arial, Helvetica, sans-serif;
  margin-bottom: 7px;
  font-size: 14px;
  text-align: center;
}
.product .sale-price {
  color: #999;
}

.product {
  text-align: center;
  float: left;
  width: 20%;
  padding-left: 30px;
  box-sizing: border-box;
  position: relative;
  margin-bottom: 30px;
  cursor: pointer;
}
.wrapper::after {
  content: "";
  clear: both;
  display: block;
}
.product input,
.product button {
  text-decoration: none;
}
.wrapper .add_to_cart {
  font-family: kelsonBold, serif;
  border: 1px solid #000;
  padding: 0 30px;
  font-size: 10px;
  line-height: 32px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #000;
  font-weight: normal;
  cursor: pointer;
}

.back_img {
  position: absolute;
  width: 100%;
  top: 0;
  right: 0;
  text-align: center;
  margin: auto;
  visibility: hidden;
  opacity: 0;
  transition: opacity 300ms ease-in-out, visibility 0ms 300ms;
}
.product:hover .back_img {
  visibility: visible;
  opacity: 1;
  transition: opacity 300ms ease-in-out, visibility 0ms 0ms;
}
.add-to-cart button {
  background-color: #fff;
  visibility: hidden;
  transition: all ease 300ms;
  background-color: #fff;
  opacity: 0;
  transition: opacity 300ms ease-in-out, visibility 0ms 300ms;
}
.add-to-cart button:active {
  color: white;
  background-color: black;
  box-shadow: 0.5px 1px 1px black;
  opacity: 0.7;
}

.product .preview {
  background-color: rgba(0, 0, 0, 0.54);
  text-align: center;
  position: absolute;
  bottom: 4px;
  width: 100%;
  padding: 6px 0px;
  box-shadow: 2px 4px 5px 0px rgba(0, 0, 0, 0.09);
  opacity: 0;
  transition: all 0.25s ease-in-out;
  visibility: hidden;
}
.preview i::before {
  color: #efefef;
}
.product:hover .preview {
  opacity: 1;
  transition: all ease 300ms;
  visibility: visible;
}
.preview button {
  border: none;
  background-color: rgba(0, 0, 0, -0);
  cursor: pointer;
}
.preview button:hover i::before {
  color: #f2d9c3;
}
.product:hover button {
  visibility: visible;
  opacity: 1;
  transition: opacity 300ms ease-in-out, visibility 0ms 0ms;
}
.add-to-cart section .time {
  max-width: 1200px;
}
@media only screen and (max-width: 768px) {
  .wrapper .product {
    width: 100%;
    float: none;
  }
  .wrapper .product img {
    width: 100%;
    margin: 0;
  }
  .time {
    width: 90%;
    margin: auto;
    text-align: center;
  }
  .wrapper h2 {
    font-size: 20px;
    font-weight: lighter;
  }
  .wrapper .product .back_img {
    width: 100%;
    margin: 0;
  }
}
