.product-card {
  --aspect-ratio: 1 / 1.2;

  display: grid;
  grid-template-rows: max-content 1fr;
  position: relative;
  width: 100%;
  overflow: clip;
  contain: content;
  background: var(--background-primary);
  color: var(--color-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-block);
}

.product-card__vision {
  width: 100%;
  overflow: hidden;
  position: relative;
  background: var(--background-primary);
  contain: paint layout;
}

.product-card__vision--white {
  background: var(--color-white);
}

.product-card__vision--with-border {
  border-bottom: 1px solid var(--color-border);
}

.product-card__vision .product-card__link {
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
}

.product-card__vision:after {
  content: "";
  display: block;
  aspect-ratio: var(--aspect-ratio);
}

.product-card__image-wrapper:has(.image-placeholder) {
  position: static;
  height: 100%;
}

.product-card__image {
  display: block;
  position: absolute;
  max-width: none;
}

.product-card__image:not(.focal-image) {
  width: 100%;
  height: 100%;
  object-fit: var(--object-fit);
}

.product-card__meta {
  padding: 25px 22px;
  display: flex;
  flex-direction: column;
  font-size: calc(var(--font-size-regular) - 2px);
}

.product-card__title {
  font-family: var(--font-body);
  font-size: var(--font-size-regular);
  font-weight: var(--font-weight-headers);
  line-height: var(--font-height-xl);
  margin: 0;
  flex-grow: 0;
}

.product-card__description {
  padding: 4px 0;
  flex-grow: 0;
}

.product-card__description:last-child {
  padding-bottom: 0;
}

.product-card__price-info {
  font-weight: var(--font-weight-headers);
  padding-top: 16px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  color: var(--color-primary);
}

.product-card__price-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
}

.product-card__price,
bq-product-price {
  color: var(--color-outline);
}

.product-card__price-separator {
  padding: 0 3px;
}

.product-card__availability {
  padding-bottom: 8px;
}

bq-product-availability {
  font-size: calc(var(--font-size-regular) - 4px);
  line-height: var(--font-height-xs);
  font-weight: var(--font-weight-medium);
}

bq-product-availability[visible="true"] {
  display: inline-block;
  margin: 8px 0;
}

@media (min-width: 992px) {
  .product-card {
    --aspect-ratio: 1 / 1.3;
  }
}
