.block-product-card {
  position: relative;
}

.block-product-card.product-card-style--card {
  background-color: rgb(var(--color-card-background));
}

.block-product-card.product-card-style--card .block-product-price,
.block-product-card.product-card-style--card .block-product-title {
  padding-inline: 8px;
}

.block-product-card--pets {
  overflow: hidden;
  background: #fff;
  border: 1px solid #e7eee4;
  border-radius: var(--pcs-card-radius, 20px);
  box-shadow: 0 10px 28px rgba(33, 49, 36, 0.08);
}

.block-product-card--pets.product-card-style--card .block-product-price,
.block-product-card--pets.product-card-style--card .block-product-title {
  padding-inline: 0;
}

.block-product-card--pets .block-product-image__layer-image-wrapper {
  padding: 10px 10px 0;
  overflow: hidden;
}

.block-product-card--pets .block-product-image__layer-wrapper {
  inset: 10px 10px 0;
}

.block-product-card--pets .block-product-image__image-wrapper {
  overflow: hidden;
  border-radius: calc(var(--pcs-card-radius, 20px) - 4px);
}

.block-product-card--pets .block-product-card-info {
  padding: 12px 14px 16px;
}

.block-product-card--pets .block-product-title {
  color: #1f2a22;
  font-weight: 700;
  text-decoration: none;
}

.block-product-card--pets .block-product-title span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.block-product-card--pets .block-product-price {
  color: #214f2f;
}

/*
  Pets 商品卡：只保留主题右上圆形心愿按钮。
  图区右下多出来的心，通常是收藏 App 注入（不是第二套主题块）。
*/
.block-product-card--pets
  .block-product-image__layer-image-wrapper
  :is(
    a[class*="wishlist"]:not(.pcs-wishlist-btn),
    button[class*="wishlist"]:not(.pcs-wishlist-btn),
    div[class*="wishlist"]:not(.pcs-wishlist-btn),
    span[class*="wishlist"]:not(.pcs-wishlist-btn),
    a[class*="Wish"]:not(.pcs-wishlist-btn),
    button[class*="Wish"]:not(.pcs-wishlist-btn),
    [class*="wishlist_product"],
    [class*="product-wishlist"],
    [class*="add-to-wishlist"],
    [class*="add_to_wishlist"],
    .StrideOn1__wishlist:not(.pcs-wishlist-btn)
  ) {
  display: none !important;
}

/* Custom / personalized collection card */
.block-product-card--custom {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  border: 1px solid #dfe8df;
  border-radius: var(--pcs-card-radius, 17px);
  box-shadow: 0 12px 30px rgba(34, 70, 48, 0.06);
  transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}

.block-product-card--custom:hover {
  transform: translateY(-4px);
  border-color: #cfdbd0;
  box-shadow: 0 22px 42px rgba(32, 71, 47, 0.1);
}

.block-product-card--custom.product-card-style--card .block-product-price,
.block-product-card--custom.product-card-style--card .block-product-title {
  padding-inline: 0;
}

.block-product-card--custom .block-product-image__layer-image-wrapper {
  padding: 0;
  overflow: hidden;
  background: #fafafa;
}

.block-product-card--custom .block-product-image__layer-wrapper {
  inset: 0;
}

.block-product-card--custom .block-product-image__image-wrapper {
  overflow: hidden;
  border-radius: 0;
}

.block-product-card--custom .block-product-image__image-wrapper img {
  transition: transform 0.35s ease;
}

.block-product-card--custom:hover .block-product-image__image-wrapper img {
  transform: scale(1.03);
}

.block-product-card--custom .block-product-card__layer {
  pointer-events: none;
}

.block-product-card--custom .block-product-card__layer .pcs-wishlist-btn,
.block-product-card--custom .block-product-card__layer .pcs-quick-shop,
.block-product-card--custom .block-product-card__layer .block-product-card__discount-tag {
  pointer-events: auto;
}

.block-product-card--custom .block-product-card__discount-tag,
.block-product-card--custom .block-product-card__discount-tag--sale-only {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #f20d12 !important;
  color: #fff !important;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(190, 20, 24, 0.16);
}

.block-product-card--custom .block-product-card-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px 16px;
}

.block-product-card--custom .block-product-title {
  color: var(--pcs-title-color, #274836);
  font-size: 20px;
  font-weight: 850;
  line-height: 1.22;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.block-product-card--custom .block-product-title span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  min-height: 49px;
}

.block-product-card--custom .pcs-meta__rating {
  flex-wrap: wrap;
  gap: 4px 8px;
}

.block-product-card--custom .pcs-meta__stars {
  color: #ea58b8;
  font-size: 15px;
  letter-spacing: 0.5px;
}

.block-product-card--custom .pcs-meta__rating-num {
  color: #222;
  font-size: 13px;
  font-weight: 700;
}

.block-product-card--custom .pcs-meta__review-count {
  color: #5f6b62;
  font-size: 12px;
  font-weight: 500;
}

.block-product-card--custom .block-product-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  color: var(--pcs-price-color, #ea58b8);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}

.block-product-card--custom .block-product-price .product-price__compare,
.block-product-card--custom .block-product-price s,
.block-product-card--custom .block-product-price del,
.block-product-card--custom .block-product-price .price--end {
  color: #6a7368;
  font-size: 15px;
  font-weight: 500;
  text-decoration: line-through;
}

.block-product-card--custom .pcs-footer {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin-top: auto;
  padding-top: 2px;
}

.block-product-card--custom .pcs-footer__tags {
  flex-wrap: wrap;
  overflow: visible;
}

.block-product-card--custom .pcs-footer__tag {
  padding: 6px 9px;
  background: #f5f8f5;
  border-color: #e0e9e1;
  color: #5d7362;
  font-size: 11px;
  font-weight: 700;
}

.block-product-card--custom .pcs-footer__action {
  gap: 12px;
}

.block-product-card--custom .pcs-footer__note {
  font-size: 12px;
  color: #8a9488;
}

.block-product-card--custom .pcs-footer__cart-slot {
  width: auto;
  height: auto;
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

.block-product-card--custom .pcs-footer__cart-wrap {
  position: static;
}

.block-product-card--custom .pcs-footer__cart,
.block-product-card--custom .pcs-footer__cart--link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 132px;
  max-width: none;
  min-height: 42px;
  padding: 0 22px;
  gap: 0;
  color: #fff !important;
  font-size: 13px;
  font-weight: 850;
  background: var(--pcs-cta-bg, #2f6f47);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 10px 20px rgba(47, 110, 71, 0.18);
}

.block-product-card--custom .pcs-footer__cart-label {
  max-width: none;
  margin: 0;
  opacity: 1;
}

.block-product-card--custom .pcs-footer__cart-icon,
.block-product-card--custom .pcs-footer__cart svg.icon-cart {
  display: none !important;
}

.block-product-card--custom .pcs-footer__cart-wrap:hover .pcs-footer__cart,
.block-product-card--custom .pcs-footer__cart:hover,
.block-product-card--custom .pcs-footer__cart:focus-visible,
.block-product-card--custom .pcs-footer__cart--link:hover {
  background: #285e3d;
  border-color: #285e3d;
  color: #fff !important;
}

.block-product-card--custom
  .block-product-image__layer-image-wrapper
  :is(
    a[class*="wishlist"]:not(.pcs-wishlist-btn),
    button[class*="wishlist"]:not(.pcs-wishlist-btn),
    div[class*="wishlist"]:not(.pcs-wishlist-btn),
    span[class*="wishlist"]:not(.pcs-wishlist-btn),
    a[class*="Wish"]:not(.pcs-wishlist-btn),
    button[class*="Wish"]:not(.pcs-wishlist-btn),
    [class*="wishlist_product"],
    [class*="product-wishlist"],
    [class*="add-to-wishlist"],
    [class*="add_to_wishlist"],
    .StrideOn1__wishlist:not(.pcs-wishlist-btn)
  ) {
  display: none !important;
}

@media (max-width: 1280px) {
  .block-product-card--custom .block-product-title {
    font-size: 18px;
  }

  .block-product-card--custom .block-product-title span {
    min-height: 44px;
  }
}

@media (max-width: 640px) {
  .block-product-card--custom {
    border-radius: 13px;
  }

  .block-product-card--custom .block-product-card-info {
    padding: 8px 9px 10px;
    gap: 7px;
  }

  .block-product-card--custom .block-product-title {
    font-size: 13px;
  }

  .block-product-card--custom .block-product-title span {
    min-height: 33px;
  }

  .block-product-card--custom .block-product-price {
    font-size: 18px;
  }

  .block-product-card--custom .pcs-meta__stars {
    font-size: 12px;
  }

  .block-product-card--custom .pcs-meta__rating-num {
    font-size: 9px;
  }

  .block-product-card--custom .pcs-footer__tag {
    font-size: 8px;
    padding: 4px 6px;
  }

  .block-product-card--custom .pcs-footer__note {
    font-size: 10px;
  }

  .block-product-card--custom .pcs-footer__cart,
  .block-product-card--custom .pcs-footer__cart--link {
    min-width: 0;
    flex: 1;
    min-height: 36px;
    font-size: 11px;
    padding: 0 14px;
  }

  .block-product-card--custom .block-product-card__discount-tag {
    top: 8px;
    right: 8px;
    min-width: 44px;
    min-height: 24px;
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .block-product-card--custom,
  .block-product-card--custom .block-product-image__image-wrapper img {
    transition: none;
  }
}
