.product-card {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 5px;
  padding: 10px 8px 8px;
  text-align: center;
}

.empty-product-message {
  grid-column: 1 / -1;
  margin: 0;
  background: var(--white);
  border-radius: 5px;
  padding: 40px 20px;
  color: var(--muted-text);
  text-align: center;
}

.product-image {
  width: 100%;
  height: clamp(120px, 10.91vw, 180px);
  object-fit: contain;
  padding: 8px;
}

.product-card h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  min-height: clamp(34px, 3.09vw, 44px);
  margin: 0;
  font-size: clamp(14px, 1.27vw, 18px);
  font-weight: 600;
  line-height: 1.2;
  text-wrap: balance;
}

.product-price {
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  margin: 0;
  font-size: clamp(15px, 1.36vw, 20px);
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}

.add-cart-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  width: 85%;
  margin: auto 0 0;
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 5px;
  padding: clamp(4px, .36vw, 6px) clamp(6px, .55vw, 12px);
  color: var(--ink);
  font-size: clamp(11px, 1vw, 14px);
  font-weight: 600;
  white-space: nowrap;
}

.add-cart-button::before {
  width: clamp(14px, 1.27vw, 18px);
  height: clamp(14px, 1.27vw, 18px);
  content: "";
  background-image: url("../images/icon-add-to-cart.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.add-cart-button:hover {
  background: var(--brand-red);
  color: var(--white);
}

.add-cart-button:hover::before {
  filter: invert(1);
}

.add-cart-button:disabled,
.add-cart-button[aria-disabled="true"] {
  cursor: default;
  border-color: rgba(0, 0, 0, .16);
  background: var(--soft-gray);
  color: var(--muted-text);
}

.add-cart-button:disabled::before,
.add-cart-button[aria-disabled="true"]::before {
  filter: grayscale(1);
  opacity: .45;
}

.add-cart-button:disabled:hover,
.add-cart-button[aria-disabled="true"]:hover {
  background: var(--soft-gray);
  color: var(--muted-text);
}
