.pawfy-product-card {
  position: relative;
  display: flex;
  height: 100%;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(var(--pp-primary-900-rgb, 40, 36, 90), 0.1);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(var(--pp-primary-900-rgb, 40, 36, 90), 0.06);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.pawfy-product-card--unified {
  isolation: isolate;
}

.pawfy-product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(var(--pp-primary-900-rgb, 40, 36, 90), 0.12);
}

.pawfy-product-card__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
  background: var(--pp-accent-100, #fceae0);
  text-decoration: none;
}

.pawfy-product-card__media img {
  width: 86%;
  height: 86%;
  padding: 0;
  object-fit: contain;
  transition: opacity 0.35s ease, transform 0.5s ease;
}

.pawfy-product-card:hover .pawfy-product-card__media img {
  transform: scale(1.06);
}

.pawfy-product-card__img-hover {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  padding: 9% !important;
  object-fit: contain;
  opacity: 0;
}

.pawfy-product-card:hover .pawfy-product-card__img-primary {
  opacity: 0;
}

.pawfy-product-card:hover .pawfy-product-card__img-hover {
  opacity: 1;
}

.pawfy-product-card__badge {
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 2;
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--pp-primary-900, #28245a);
  background: #fff;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.pawfy-product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: stretch;
  padding: 18px 18px 20px;
  text-align: left;
}

.pawfy-product-card__title {
  display: -webkit-box;
  min-height: 46px;
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--pp-primary-900, #28245a);
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.1;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pawfy-product-card__title a {
  color: inherit;
  text-decoration: none;
}

.pawfy-product-card__rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  color: var(--pp-text-600, #6a6573);
  font-size: 11px;
  font-weight: 700;
}

.pawfy-product-card__stars {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  font-size: 13px;
  letter-spacing: 1px;
  line-height: 1;
  white-space: nowrap;
}

.pawfy-product-card__stars-empty {
  color: #d7d4cf;
}

.pawfy-product-card__stars-fill {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  color: var(--pp-accent-500, #e56a34);
  white-space: nowrap;
}

.pawfy-product-card__review-count {
  color: var(--pp-text-600, #6a6573);
}

.pawfy-product-card__pricing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  min-height: 28px;
  margin-top: 2px;
}

.pawfy-product-card__regular-price {
  color: var(--pp-text-600, #6a6573);
  font-size: 13px;
  font-weight: 500;
}

.pawfy-product-card__sale-price,
.pawfy-product-card__current-price {
  color: var(--pp-primary-900, #28245a);
  font-size: 20px;
  font-weight: 900;
}

.pawfy-product-card__sale-price {
  color: var(--pp-primary-900, #28245a);
}

.pawfy-product-card__discount {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  color: #9d343b;
  background: #fcebed;
  font-size: 10px;
  font-weight: 900;
}

.pawfy-product-card__pricing--unavailable {
  color: var(--pp-text-600, #6a6573);
  font-size: 12px;
  font-weight: 700;
}

.pawfy-product-card__subscription {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(216, 97, 104, 0.22);
  border-radius: 12px;
  background: #fcebed;
}

.pawfy-product-card__subscription-label {
  color: #9d343b;
  font-size: 11px;
  font-weight: 800;
}

.pawfy-product-card__subscription-price {
  color: var(--pp-primary-900, #28245a);
  font-size: 13px;
  font-weight: 900;
  text-align: right;
}

.pawfy-product-card__footer {
  display: flex;
  width: 100%;
  margin-top: auto;
  padding-top: 14px;
}

.pawfy-product-card__footer .pawfy-product-card__cta {
  display: inline-flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  color: #fff !important;
  background: var(--pp-primary-900, #28245a);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.pawfy-product-card__footer .pawfy-product-card__cta:hover,
.pawfy-product-card__footer .pawfy-product-card__cta:focus-visible,
.pawfy-product-card__footer .pawfy-product-card__cta:active {
  color: #fff !important;
  background: var(--pp-primary-700, #373170);
}

@media (max-width: 560px) {
  .pawfy-product-card__subscription {
    align-items: flex-start;
    flex-direction: column;
  }

  .pawfy-product-card__subscription-price {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pawfy-product-card,
  .pawfy-product-card:hover,
  .pawfy-product-card__media img,
  .pawfy-product-card:hover .pawfy-product-card__media img,
  .pawfy-product-card__img-primary,
  .pawfy-product-card__img-hover {
    transition: none !important;
    transform: none !important;
  }
}
