/* Keep the original card height: the cart action sits in its price row. */
.product-card__body > .product-link {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-right: 70px;
  gap: 3px;
}

.product-card__body > .product-link .product-card__price {
  margin-left: 0;
  justify-items: start;
}

.product-card__buy {
  position: absolute;
  z-index: 5;
  right: 12px;
  bottom: 11px;
  margin: 0;
}

.product-card__buy button {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid #59606b;
  border-radius: 0;
  background: #252a32;
  color: #fff;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}

.product-card__buy button:hover:not(:disabled),
.product-card__buy button:focus-visible {
  border-color: var(--red);
  background: var(--red);
}

.product-card__buy button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.product-card__buy--added button {
  border-color: var(--red);
}

.product-card__buy button:disabled {
  border-color: #41464e;
  background: #292d33;
  color: #8d939d;
  cursor: not-allowed;
}

.product-card__cart-count {
  position: absolute;
  top: -7px;
  right: -7px;
  display: grid;
  min-width: 19px;
  height: 19px;
  place-items: center;
  padding: 0 4px;
  border-radius: 10px;
  background: var(--red);
  color: #fff;
  font: 700 10px/1 var(--ui);
  letter-spacing: 0;
}

.product-card__error {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  width: 220px;
  margin: 0;
  padding: 9px 11px;
  border: 1px solid var(--red);
  background: #191c22;
  color: #fff;
  box-shadow: 0 8px 24px #0008;
  font-size: 11px;
  line-height: 1.4;
  text-align: left;
}

@media (max-width: 560px) {
  .product-card__body > .product-link {
    padding-right: 66px;
  }

  .product-card__buy {
    right: 10px;
  }
}
