/* Product grid: uniform image height, hover 2nd image, 3-line title */
.product-wrap .image .image-old {
  position: relative;
  display: block;
  width: 100%;
  height: 340px;
  overflow: hidden;
  background: #fff;
}

@media (max-width: 767px) {
  .product-wrap .image .image-old {
    height: 220px;
  }
}

.product-wrap .image .image-old .img-primary,
.product-wrap .image .image-old .img-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity 0.35s ease;
}

.product-wrap .image .image-old .img-hover {
  opacity: 0;
}

.product-wrap:not(.list):hover .image .image-old.has-hover-img .img-hover {
  opacity: 1;
}

.product-wrap:not(.list):hover .image .image-old.has-hover-img .img-primary {
  opacity: 0;
}

@media (min-width: 768px) {
  .product-wrap:not(.list):hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  }
}

.product-wrap .image .button-wrap {
  display: none !important;
}

.product-wrap .product-name {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  white-space: normal;
  height: auto;
  min-height: calc(1.45em * 2);
  line-height: 1.45;
  font-size: 0.8rem;
  font-weight: 400;
  margin-bottom: 6px;
  text-align: center;
}

.product-wrap.list .image .image-old {
  height: auto !important;
}

.product-wrap.list .image .image-old .img-primary,
.product-wrap.list .image .image-old .img-hover {
  position: static;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.product-wrap.list .image .image-old .img-hover {
  display: none;
}

.product-wrap.list .product-name {
  min-height: 0;
  -webkit-line-clamp: unset;
  display: block;
  text-align: left;
}
