/* Reusable product card */
.eup-product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--eup-border);
  background: var(--eup-white);
}

.eup-product-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f7f8f7;
}

.eup-product-card__image,
.eup-product-card__placeholder {
  display: block;
}

.eup-product-card__image {
  width: auto;
  max-width: 100%;
  height: 70%;
  max-height: 70%;
  margin: auto;
  object-fit: contain;
  transition: transform .3s ease;
}

.eup-product-card__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f7f8f7, #eef1ef);
}

.eup-product-card:hover .eup-product-card__image {
  transform: scale(1.025);
}

.eup-product-card__body {
  padding: 15px 10px 12px;
}

.eup-product-card__title {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.38;
}

.eup-product-card__title a {
  color: #27313a;
}

.eup-product-card__title a:hover {
  color: var(--eup-green);
}

.eup-product-card__excerpt {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--eup-gray-dark);
  font-size: var(--eup-font-base);
  font-weight: 400;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@media (max-width: 767px) {
  .eup-product-card__body {
    padding-inline: 8px;
  }

  .eup-product-card__title {
    font-size: 18px;
  }
}
