/* Keeps public product images, titles, prices and actions in separate stable rows. */
.products-grid {
  align-items: stretch;
}

.product-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.product-image {
  flex: 0 0 250px;
  height: 250px;
  overflow: hidden;
  padding: 0;
}

.product-image img {
  position: absolute;
  inset: 16px;
  width: calc(100% - 32px);
  height: calc(100% - 32px);
  max-width: none;
  max-height: none;
  object-fit: contain;
}

.product-body {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.product-body h3 {
  min-height: 64px;
  overflow: hidden;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.product-body h3 a {
  display: block;
}

.product-meta {
  margin-top: auto;
}

.btn-small {
  min-height: 44px;
}

@media (max-width: 980px) {
  .product-image {
    flex-basis: 240px;
    height: 240px;
  }
}

@media (max-width: 640px) {
  .product-image {
    flex-basis: 230px;
    height: 230px;
  }

  .product-body h3 {
    min-height: 0;
  }
}
