/* ==========================================================================
   Product Card — teaser view on /products listing
   ========================================================================== */

.product-card {
  text-align: center;
}

.product-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.product-card__link:hover {
  opacity: 1;
}

.product-card__link:hover .product-card__title {
  color: var(--color-primary);
}

.product-card__image {
  height: 380px;
  overflow: hidden;
  background-color: transparent;
  border-radius: var(--radius-card);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card__image img {
  width: 300px;
  height: 380px;
  object-fit: contain;
  display: block;
}

.product-card__body {
  padding: 2px 0 0;
}

.product-card__dashes {
  display: flex;
  gap: 2px;
  margin-bottom: var(--spacing-md);
}

.product-card__dashes span {
  flex: 1;
  height: 4px;
  background-color: #EAEAEA99;
  border-radius: 100px;
}

.product-card__title {
  font-size: var(--h5-size);
  line-height: var(--h5-lh);
  font-weight: var(--font-weight-regular);
  color: var(--color-text-dark);
  text-transform: uppercase;
  margin: 0 0 var(--spacing-xs);
  transition: color var(--transition-fast);
}

.product-card__description {
  font-size: var(--details-size);
  line-height: var(--details-lh);
  font-weight: var(--font-weight-regular);
  color: var(--color-text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__description p,
.product-card__description div {
  margin: 0;
}

.product-card__description .field {
  margin: 0;
  padding: 0;
}

/* Responsive — Mobile */
@media (max-width: 767px) {
  .product-card__image {
    height: 186px;
    margin-bottom: 10px;
  }

  .product-card__image img {
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
  }

  .product-card__title {
    font-size: 16px;
    line-height: 18px;
    text-transform: none;
  }

  .product-card__description {
    font-size: 12px;
    line-height: 14px;
  }

  .product-card__dashes {
    margin-bottom: 12px;
  }

  .product-card__dashes span {
    height: 2px;
  }
}
