/* product-card.css — shared card styles for listing surfaces (shop / collection / category).
   Layout values mirror the source listing's computed styles (retained shop stylesheet):
   image full-width with 1px #E7EAEC border, plum name/tagline, strike one-time price,
   olive "Save" chip, custom plum radios, full-width primary button. */

.pcard {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
}

.pcard__media {
  text-align: center;
  margin-bottom: 20px;
  /* The border lives on the wrapper (not the <img>) so the hover zoom stays clipped
     inside it instead of scaling the border too. */
  overflow: hidden;
  border: 1px solid rgb(231, 234, 236); /* source: .product-image img */
}

.pcard__media-link {
  display: block;
}

.pcard__img {
  width: 100%;
  height: auto;
  display: block;
  /* Slow, eased zoom — shared with every product card in the theme. */
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.pcard:hover .pcard__img {
  transform: scale(1.07);
}

@media (prefers-reduced-motion: reduce) {
  .pcard__img { transition: none; }
  .pcard:hover .pcard__img { transform: none; }
}

.pcard__img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  width: 100%;
  color: var(--clr-muted, #9ca3af);
  background: var(--clr-light, #f6f4f0);
}

.pcard__info {
  margin-bottom: 4px;
}

.pcard__info-link {
  text-decoration: none;
  color: inherit;
}

.pcard__name {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--clr-primary);
  margin: 0 0 4px;
}

.pcard__tagline {
  /* source: .product-tagline — plum 16/24 regular */
  color: var(--clr-primary);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  display: inline-block;
  margin-bottom: 3px;
}

.pcard__purchase {
  margin-top: auto; /* pin purchase block + button to the card bottom for even rows */
  padding-top: 10px;
}

.pcard__choice {
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.25px; /* source: .purchoption label */
  margin-bottom: 10px;
  cursor: pointer;
  font-weight: 600;
}

.pcard__choice--sub {
  font-weight: 700;
}

.pcard__choice input[type="radio"] {
  /* source: .purchoption input[type=radio] — 20px custom plum radio */
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: rgb(255, 253, 246);
  border: 1px solid rgb(119, 119, 119);
  cursor: pointer;
  flex-shrink: 0;
  margin: 0;
}

.pcard__choice input[type="radio"]:checked {
  background-color: var(--clr-primary);
}

.pcard__choice input[type="radio"]:checked::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgb(255, 253, 246);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.pcard__choice input[type="radio"]:focus-visible {
  outline: 2px solid var(--clr-primary);
  outline-offset: 2px;
}

.pcard__price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin: 4px 0 12px;
}

.pcard__strike {
  /* source: .strike-price */
  color: rgb(133, 54, 120);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  text-decoration-line: line-through;
}

.pcard__price {
  font-size: 18px;
  font-weight: 700;
  color: var(--clr-body, #212121);
  line-height: 24px;
}

.pcard__save {
  /* source: .price-save */
  color: rgb(82, 93, 39);
  font-size: 14px;
  font-weight: 600;
  line-height: 18px;
  letter-spacing: 0.14px;
  margin-left: 10px;
}

.pcard__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  padding: 10px 18px;
  background: var(--clr-primary);
  color: var(--clr-white, #fff);
  border: 1px solid var(--clr-primary);
  border-radius: 25px;
  font-size: 15px;
  font-weight: 600;
  text-transform: none;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.pcard__btn:hover {
  opacity: 0.92;
}

.pcard__btn--disabled,
.pcard__btn[disabled] {
  /* source: .btn-add-to-cart.btn[disabled] — white bg, raspberry text/border */
  opacity: 1;
  background-color: rgb(255, 255, 255);
  color: rgb(198, 54, 99);
  border: 1px solid rgb(198, 54, 99);
  cursor: default;
}
