.pet-card {
  --pet-card-sale: #e60023;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  color: var(--pet-card-ink, #163b35);
  font: 400 16px/1.4 system-ui, sans-serif;
  text-align: center;
}

.pet-card__link {
  display: block;
  margin: 0;
  color: inherit;
  text-decoration: none;
}

.pet-card__media {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 14px;
  background: var(--pet-card-surface, #efe3cd);
}

.pet-card .pet-card__image,
.pet-card .pet-card__media > img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  object-position: center;
}

.pet-card .pet-card__title {
  display: block;
  margin: var(--pet-card-content-gap, 10px) 0 0;
  color: inherit;
  overflow-wrap: anywhere;
  font: 600 var(--pet-card-title-desktop, 18px)/1.25 system-ui, sans-serif;
  letter-spacing: normal;
  text-transform: none;
}

.pet-card__link:hover .pet-card__title {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.pet-card :focus-visible {
  outline: 2px solid #163b35;
  outline-offset: 3px;
  border-radius: 4px;
}

.pet-card__rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 7px;
  color: inherit;
  font-size: 13px;
}

.pet-card__rating .star-rating {
  float: none;
  margin: 0;
  color: #a84d30;
}

.pet-card__price {
  margin: 5px 0 0;
  color: inherit;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

.pet-card__price .amount {
  color: inherit;
  white-space: normal;
}

.pet-card__price ins,
.pet-card__price ins .amount,
.pet-card__price--discounted .amount,
.single-product .product-info .price ins .amount,
.product-quick-view-container .price ins .amount,
.woocommerce .wgm-native-card .price ins .amount,
.wp-block-woocommerce-product-price ins .amount {
  color: #e60023;
}

.pet-card__price ins {
  font-weight: 700;
  text-decoration: none;
}

.pet-card__price del,
.pet-card__price del .amount {
  color: #5c655c;
  font-weight: 400;
  opacity: 1;
}

.pet-card__discount,
.woocommerce .badge-container .pet-card-native-discount,
.woocommerce .wgm-native-card .badge-container .pet-card-native-discount,
.product-quick-view-container .badge-container .pet-card-native-discount,
.woocommerce span.onsale.pet-card-native-discount,
.wp-block-woocommerce-product-sale-badge .wc-block-components-product-sale-badge {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: max-content !important;
  max-width: 100%;
  height: auto !important;
  min-width: 0 !important;
  min-height: 26px !important;
  margin: 0;
  padding: 5px 9px !important;
  border: 0 !important;
  border-radius: 30px !important;
  background: #e60023 !important;
  color: #ffffff !important;
  font: 700 12px/1.15 system-ui, sans-serif !important;
  text-align: center;
}

.pet-card__discount,
.pet-card__stock {
  position: absolute;
  inset-block-start: 10px;
  z-index: 1;
}

.pet-card__discount {
  inset-inline-start: 10px;
  max-width: calc(100% - 20px);
}

.pet-card__stock {
  inset-inline-end: 10px;
  max-width: calc(100% - 20px);
  padding: 5px 9px;
  border-radius: 30px;
  background: #fbf8f0;
  color: #163b35;
  font: 600 12px/1.15 system-ui, sans-serif;
}

.pet-card__discount + .pet-card__stock {
  inset-block-start: 42px;
}

.product-small > .col-inner:has(> .pet-card) {
  height: 100%;
}

.product-small > .col-inner:has(> .pet-card) > .badge-container {
  top: 10px !important;
  right: auto !important;
  left: 10px !important;
  z-index: 2;
  max-width: calc(100% - 20px);
  margin: 0;
}

.badge-container .badge:has(.pet-card-native-discount) {
  display: block;
  width: max-content !important;
  max-width: 100%;
  height: auto !important;
  margin: 0 0 4px;
  padding: 0;
}

.woocommerce .badge-container .pet-card-native-discount > .onsale,
.product-quick-view-container .badge-container .pet-card-native-discount > .onsale,
.wp-block-woocommerce-product-sale-badge .wc-block-components-product-sale-badge__text {
  position: static;
  display: inline;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent !important;
  color: inherit !important;
  font: inherit !important;
  white-space: normal;
}

.wgm-native-card .wgm-native-card__sale-label {
  display: none;
}

.pet-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 6px;
  margin: auto 0 0;
  padding-top: 11px;
  padding-bottom: 2px;
}

.pet-card .pet-card__actions :is(.quick-view, .button, .added_to_cart) {
  position: static;
  display: inline-flex !important;
  visibility: visible;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0;
  padding: 4px 12px;
  border: 1px solid #163b35;
  border-radius: 6px;
  background: #fbf8f0;
  color: #163b35;
  transform: none;
  opacity: 1;
  font: 650 13px/1.25 system-ui, sans-serif;
  letter-spacing: normal;
  text-align: center;
  text-decoration: none;
  text-transform: none;
}

.pet-card .pet-card__actions .button {
  background: #163b35;
  color: #ffffff;
}

.pet-card .pet-card__actions :is(.quick-view, .added_to_cart):is(:hover, :focus-visible) {
  background: #efe3cd;
  color: #163b35;
}

.pet-card .pet-card__actions .button:is(:hover, :focus-visible) {
  background: #11332e;
  color: #ffffff;
}

@media (max-width: 767px) {
  .pet-card .pet-card__title {
    font-size: var(--pet-card-title-mobile, 16px);
  }

  .pet-card__media {
    border-radius: 10px;
  }

  .pet-card__price {
    font-size: 14px;
  }

  .pet-card .pet-card__actions :is(.quick-view, .button, .added_to_cart) {
    flex: 1 1 100%;
    min-width: 0;
  }
}
