.float-l {
  float: left;
}
.float-r {
  float: right;
}
.clear {
  clear: both;
}
.center {
  margin: 0 auto;
}
.ft-wei {
  font-weight: 600;
}
.hide-excess-text {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
.v-center {
  display: flex;
  justify-content: center;
  align-items: Center;
}
@keyframes imgHover {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.2);
  }
}
.imgHover {
  animation: imgHover 1s forwards;
}
.related-products .title {
  background-color: #ff5b02;
  width: 160px;
  font-size: 16px;
  color: white;
  text-align: center;
  padding: 6px 0;
  margin: 15px 0;
}
.related-products .figure {
  margin-bottom: 30px;
  padding-top: 10px;
  border: 1px solid #ddd;
}
.related-products .figure:hover {
  box-shadow: 3px 3px 3px 3px rgba(0, 0, 0, 0.1);
}
.related-products .figure .image a {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: Center;
}
.related-products .figure .image a img {
  width: 100%;
  height: 100%;
  object-fit: scale-down;
}
.related-products .figure .desc {
  float: left;
}
.related-products .figure .desc h4 {
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
  height: 40px;
}
@media (max-width: 767px) {
  .related-products .figure .image {
    height: 150px;
    text-align: center;
  }
  .related-products .figure .image a {
    display: inline-block;
    width: auto;
  }
  .related-products .figure .image a img {
    width: 180px;
  }
  .related-products .figure .desc {
    margin-bottom: 10px;
  }
  .related-products .figure .desc h4 {
    margin-top: 10px;
    padding-bottom: 10px;
    font-size: 14px;
    line-height: 20px;
    height: 45px;
  }

}
@media (min-width: 768px) {
  .related-products .figure .image {
    height: 180px;
  }
}
