/* MARK: Product card */

.product-retail-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 9px;
  background: var(--calabash-white);
  color: inherit;
  box-shadow: 0 6px 24px rgb(8 34 74 / 4%);
  transition:
    box-shadow var(--calabash-transition),
    transform var(--calabash-transition);
}

.product-retail-card:hover {
  box-shadow: 0 14px 32px rgb(8 34 74 / 10%);
  transform: translateY(-5px);
}

.product-retail-card__image,
.product-retail-card__image-slot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  padding: 20px;
  background-color: var(--calabash-white);
}

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

.product-retail-card__image-slot {
  background-color: var(--calabash-light-grey);
}

.product-retail-card .onsale {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--calabash-company-orange-a11y);
  color: var(--calabash-white);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.product-retail-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.product-retail-card__footer {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 8px 18px 18px;
}

.product-retail-card h3 {
  display: -webkit-box;
  overflow: hidden;
  height: 2.6em;
  margin: 0 0 6px;
  color: var(--calabash-navy);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-retail-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 12px;
  color: var(--calabash-muted);
  font-size: 0.82rem;
  line-height: 1.55;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.product-retail-card .price {
  display: block;
  margin: 0;
  color: var(--calabash-company-orange-a11y);
  font-size: 0.92rem;
  font-weight: 800;
}

.product-retail-card .price del {
  margin-right: 6px;
  color: var(--calabash-muted);
  font-weight: 600;
  opacity: 0.8;
}

.product-retail-card .price ins {
  color: var(--calabash-company-orange-a11y);
  text-decoration: none;
}

.product-retail-card .price .woocommerce-price-suffix {
  color: var(--calabash-muted);
  font-size: 0.82rem;
  font-weight: 400;
}

.product-retail-card__sku {
  color: var(--calabash-muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.product-retail-card .stock {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 700;
}

.product-retail-card .stock.in-stock {
  color: var(--calabash-green-dark);
}

.product-retail-card .stock.out-of-stock {
  color: var(--calabash-muted);
}

.product-retail-card .stock.available-on-backorder {
  color: var(--calabash-company-orange-a11y);
}

.product-retail-card .calabash-ora-light-button,
.product-retail-card .calabash-tur-light-button {
  width: 100%;
  margin: 0;
}

.product-retail-card .calabash-ora-light-button.loading,
.product-retail-card .calabash-tur-light-button.loading {
  opacity: 0.6;
  pointer-events: none;
}

.product-retail-card .added_to_cart {
  display: inline-block;
  margin-top: 8px;
  color: var(--calabash-green-dark);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: underline;
}
