/* One catalog card rhythm across home, Woo archives and Pet Essentials.
 * Facts/prices/reviews retain their existing server-side admission rules.
 * Never target gift builders, Studio, cart or product-page purchase controls. */
body.ch-site ul.products li.product:is(.chrp-reference-product,.chap-amazon-managed) > a.woocommerce-LoopProduct-link {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column;
  min-width: 0;
}
body.ch-site ul.products li.product:is(.chrp-reference-product,.chap-amazon-managed) .woocommerce-loop-product__title {
  min-height: 3.9em;
}
body.ch-site ul.products li.product:is(.chrp-reference-product,.chap-amazon-managed) .ch-product-card__description {
  min-height: 4.5em;
}
body.ch-site ul.products li.product:is(.chrp-reference-product,.chap-amazon-managed) .chrp-loop-facts {
  display: grid !important;
  grid-template-columns: minmax(0,.8fr) minmax(0,1.1fr) minmax(0,1.4fr);
  gap: 6px;
  min-height: 62px;
  margin: auto 4px 10px !important;
  padding: 0;
}
body.ch-site ul.products li.product:is(.chrp-reference-product,.chap-amazon-managed) .chrp-loop-facts > li {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 6px;
  border: 1px solid #dfe9e4;
  border-radius: 11px 5px 11px 5px;
  background: #f2f7f2;
  text-align: center;
}
body.ch-site ul.products li.product:is(.chrp-reference-product,.chap-amazon-managed) .chrp-loop-facts > li > span {
  order: 2;
  color: #60716d;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}
body.ch-site ul.products li.product:is(.chrp-reference-product,.chap-amazon-managed) .chrp-loop-facts > li > b {
  order: 1;
  margin: 0;
  overflow: visible;
  color: #173a3d;
  font-size: 11px;
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: anywhere;
}
body.ch-site ul.products li.product:is(.chrp-reference-product,.chap-amazon-managed) .chrp-loop-facts > li:last-child > b {
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
body.ch-site ul.products li.product:is(.chrp-reference-product,.chap-amazon-managed) > a.woocommerce-LoopProduct-link > .price {
  display: flex !important;
  min-height: 60px;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  margin: 0 4px 10px !important;
}
body.ch-site ul.products li.product:is(.chrp-reference-product,.chap-amazon-managed) .chap-woo-current-price,
body.ch-site .chrp-catalog-card .chap-woo-current-price {
  display: inline-block !important;
  margin: 0;
  color: #60716d;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}
body.ch-site ul.products li.product:is(.chrp-reference-product,.chap-amazon-managed) > .charr-rating,
body.ch-site .chrp-catalog-card__body > .charr-rating {
  box-sizing: border-box;
  display: flex;
  min-height: 56px;
  flex: 0 0 auto;
  align-items: center;
}
body.ch-site ul.products li.product:is(.chrp-reference-product,.chap-amazon-managed) > .charr-rating--link-only > a,
body.ch-site .chrp-catalog-card__body > .charr-rating--link-only > a {
  box-sizing: border-box;
  display: flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid #dfe9e4;
  border-radius: 999px;
  background: #fff;
  color: #173a3d;
  font-size: 12px;
  font-weight: 800;
}
body.ch-site ul.products li.product:is(.chrp-reference-product,.chap-amazon-managed) > a.button {
  flex: 0 0 auto;
}
body.ch-site ul.products li.product:is(.chrp-reference-product,.chap-amazon-managed) > .chcl-product-actions {
  flex: 0 0 auto;
}
body.ch-site .chrp-catalog .chrp-catalog-card__body {
  flex: 1 1 auto;
}
body.ch-site .chrp-catalog .chrp-catalog-card__facts {
  min-height: 62px;
  margin-top: auto !important;
}
body.ch-site .chrp-catalog .chrp-catalog-card__state {
  display: flex;
  min-height: 60px;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
}
body.ch-site .chrp-catalog .chrp-catalog-card__button {
  margin-top: 0 !important;
}
@media (max-width: 480px) {
  body.ch-site ul.products li.product:is(.chrp-reference-product,.chap-amazon-managed) .woocommerce-loop-product__title,
  body.ch-site ul.products li.product:is(.chrp-reference-product,.chap-amazon-managed) .ch-product-card__description {
    min-height: 0;
  }
}

.chrp-home-pick-controls{display:grid;grid-template-columns:auto minmax(130px,1fr) auto minmax(150px,1fr) auto;align-items:center;gap:12px;margin:20px 0 28px}.chrp-home-pick-controls select{width:100%;min-width:0}.chrp-home-pick-controls label{font-weight:700}@media(max-width:767px){.chrp-home-pick-controls{grid-template-columns:1fr}.chrp-home-pick-controls select,.chrp-home-pick-controls button{min-height:44px}}

.chrp-home-pet-tabs{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 18px}.chrp-home-pet-tabs a{padding:10px 22px;border:1px solid #bad5cd;border-radius:24px;background:#fff;color:#174745;font-weight:700;text-decoration:none}.chrp-home-pet-tabs a[aria-current]{background:#11685f;color:#fff}.chrp-home-discovery{margin-bottom:26px}.chrp-home-discovery p{margin:0 0 18px}

/* Match action spacing across reference and external Woo cards. */
body.ch-site ul.products li.product:is(.chrp-reference-product,.chap-amazon-managed)>a.button{margin:14px 14px 0!important}
body.ch-site ul.products li.product:is(.chrp-reference-product,.chap-amazon-managed)>.chcl-product-actions{margin:10px 14px 16px!important}

/* One rating row on catalog and related cards, including explicit unknown states. */
body.ch-site .charr-rating .charr-rating__stars{width:100px;flex:0 0 100px;height:24px}
body.ch-site .charr-rating .charr-rating__star{font-size:20px;line-height:24px;background-image:linear-gradient(90deg,#c74925 0 var(--charr-star-fill),#a9b0a8 var(--charr-star-fill) 100%)}
body.ch-site .charr-rating--unavailable .charr-rating__star{background:none;color:#64766e;-webkit-text-fill-color:#64766e}
body.ch-site .charr-rating--unavailable .charr-rating__meta{flex:1;min-width:0}
body.ch-site .charr-rating--unavailable .charr-rating__status{display:flex;align-items:center;justify-content:center;min-height:40px;padding:0 8px;background:#fff;border:1px solid #d8e6e0;border-radius:999px;font-size:12px;font-weight:700;text-align:center;width:100%}
body.ch-site .charr-rating--unavailable .charr-rating__score{flex:1;min-width:0}
@media(max-width:480px){body.ch-site .charr-rating .charr-rating__stars{width:90px;flex-basis:90px}body.ch-site .charr-rating .charr-rating__star{font-size:18px}}

/* Horizontal margins belong inside the available card width. */
body.ch-site ul.products li.product:is(.chrp-reference-product,.chap-amazon-managed)>a.button{box-sizing:border-box;width:calc(100% - 28px)!important;max-width:calc(100% - 28px)!important;min-width:0}

/* Provider-neutral card surfaces: native, additive, and source-guide records. */
body.ch-site .chrp-catalog-card,
body.ch-site ul.products li.product:is(.chrp-reference-product,.chap-amazon-managed) {
  border: 1px solid #dfe9e4;
  border-radius: 24px;
  background: #fff;
}
body.ch-site ul.products li.product:is(.chrp-reference-product,.chap-amazon-managed)::before {
  position: absolute; z-index: 3; top: 0; right: 18px; left: 18px; height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg,#0d7a72,#f2c94c 52%,#ef6f51);
  content: ""; pointer-events: none;
}
body.ch-site .chrp-catalog-card .chrp-catalog-card__button {
  border: 0;
  background: linear-gradient(110deg,#0d6e68,#0d4f4c 58%,#174144);
  color: #fff!important;
}
body.ch-site .chrp-catalog-card .chrp-catalog-card__button:hover {
  background: linear-gradient(110deg,#ef6f51,#d95b41);
}

/* Keep full catalog action labels readable on narrow phones. */
@media (max-width: 360px) {
  html body.ch-site.woocommerce.archive .site-main ul.products > li.product:is(.chrp-reference-product,.chap-amazon-managed) > a.button,
  html body.ch-site .chrp-catalog.chrp-catalog--pet-essentials .chrp-catalog-grid .chrp-catalog-card .chrp-catalog-card__button {
    min-height: 44px !important;
    padding: 10px 6px !important;
    white-space: normal !important;
    overflow-wrap: normal;
    font-size: 12px !important;
    line-height: 1.4 !important;
    text-align: center;
  }
}
