.related-products .product-card {
  display: grid !important;
  grid-template-rows: 230px auto;
  align-content: start;
  overflow: hidden;
}

.related-products .product-card > .image-wrap {
  position: relative !important;
  z-index: 1;
  width: 100%;
  height: 230px !important;
  min-height: 0 !important;
  padding: 14px;
  overflow: hidden !important;
  background: #fff;
}

.related-products .product-card > .image-wrap img {
  position: static !important;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  transform: none !important;
}

.related-products .product-card > .card-body {
  position: relative !important;
  z-index: 2;
  min-width: 0;
  padding: 14px 16px 16px;
  background: #fff;
}

.related-products .card-body .brand-name,
.related-products .card-body h3,
.related-products .card-body .price,
.related-products .card-body .card-actions {
  position: static !important;
  inset: auto !important;
  transform: none !important;
}

@media (max-width: 500px) {
  .related-products .product-card {
    grid-template-rows: 250px auto;
  }

  .related-products .product-card > .image-wrap {
    height: 250px !important;
  }
}
