/* CDE SYNC 01 — Product Card (live CDE listing card): 1:1 media with discount/state badges top-left and
   a variant-count pill bottom-right, 38px wishlist circle, rating row, two-line name, stock line and a
   bottom row with the price and a dark add action. Cards stretch so actions share one baseline. */
.ut-product-card { position: relative; display: flex; height: 100%; min-width: 0; flex-direction: column; }
.ut-product-card__media { position: relative; overflow: hidden; border-radius: 8px; background: #fff; aspect-ratio: 1 / 1; }
/* Listing-only box shadow; shared cards on PDP and homepage stay unchanged. */
.ut-plp .ut-product-card__media { box-shadow: 0 3px 14px rgba(57, 45, 36, 0.06); }
.ut-product-card__image-link { display: block; height: 100%; }
.ut-product-card__image-link img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: var(--ut-product-image-position); }
/* CDE hover: the product's second photo fades in (.3s) and disappears immediately on leave; only on hover-capable pointers. */
.ut-product-card__image-link img.ut-product-card__hover-image { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
  .ut-plp .ut-product-card:hover .ut-product-card__media { box-shadow: 0 5px 18px rgba(57, 45, 36, 0.09); }
  .ut-product-card:hover .ut-product-card__hover-image { opacity: 1; transition: opacity .3s ease; }
}
@media (prefers-reduced-motion: reduce) { .ut-product-card:hover .ut-product-card__hover-image { transition: none; } }
.ut-product-card__badges { position: absolute; top: 12px; right: 56px; left: 12px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px; pointer-events: none; }
.ut-product-card__discount { padding: 6px 11px; border-radius: 999px; background: #b4553f; color: #fffcf7; font-size: 13px; font-weight: var(--ut-font-weight-medium); letter-spacing: .02em; line-height: normal; }
.ut-product-card__badge { padding: 6px 12px; border-radius: 999px; background: rgb(255 252 247 / 94%); color: var(--ut-color-muted); font-size: 12.5px; font-weight: var(--ut-font-weight-regular); letter-spacing: .06em; line-height: normal; text-transform: uppercase; }
.ut-product-card__variant-count { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 8px; border-radius: 999px; background: rgb(255 252 247 / 94%); color: #4f463d; font-size: 13px; line-height: normal; white-space: nowrap; pointer-events: none; }
.ut-product-card__variant-count svg { width: 14px; height: 14px; flex: none; fill: none; stroke: #9e5f43; stroke-width: 1.8; }
.ut-product-card__favorite { position: absolute; top: 12px; right: 12px; display: grid; width: 38px; height: 38px; place-items: center; border-radius: 999px; background: rgb(255 252 247 / 82%); color: var(--ut-color-ink); transition: background .2s ease; }
.ut-product-card__favorite::after { position: absolute; inset: -3px; content: ""; }
.ut-product-card__favorite .ut-icon { width: 17px; height: 17px; stroke-width: 1.6; }
.ut-product-card__favorite:hover, .ut-product-card__favorite:focus-visible { background: var(--ut-color-surface); }
.ut-product-card__favorite.is-active { background: var(--ut-color-sand); }
.ut-product-card__favorite.is-active .ut-icon { fill: var(--ut-color-clay); stroke: var(--ut-color-clay); }
.ut-product-card__body { display: flex; flex: 1; flex-direction: column; }
.ut-product-card__rating { display: flex; min-height: 20px; align-items: center; gap: 6px; margin: 14px 0 0; color: #8a8074; font-size: 14px; line-height: normal; white-space: nowrap; }
.ut-product-card__stars { display: flex; gap: 1px; }
.ut-product-card__stars svg { width: 14px; height: 14px; fill: #e3d8c9; }
.ut-product-card__stars svg.is-filled { fill: #c08a3e; }
.ut-product-card__rating b { color: var(--ut-color-ink); font-weight: var(--ut-font-weight-medium); }
.ut-product-card h3 { display: -webkit-box; min-height: 2.7em; min-width: 0; margin: 6px 0 0; overflow: hidden; color: var(--ut-color-ink); font-family: var(--ut-font-body); font-size: 16.5px; font-weight: var(--ut-font-weight-regular); line-height: 1.35; text-wrap: pretty; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.ut-product-card h3 a { text-decoration: none; }
.ut-product-card h3 a:hover { color: var(--ut-color-clay); }
.ut-product-card__stock { display: flex; align-items: center; gap: 7px; margin: 6px 0 14px; color: #4f6b4a; font-size: 14px; line-height: normal; }
.ut-product-card__stock span { width: 7px; height: 7px; flex: none; border-radius: 999px; background: #6f8f64; }
.ut-product-card__stock.is-unavailable { color: #8a8074; }
.ut-product-card__stock.is-unavailable span { background: #c9bca9; }
.ut-product-card__foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: auto; }
.ut-product-card__price { display: flex; min-width: 0; flex-direction: column; margin: 0; line-height: 1.2; }
.ut-product-card__price strong { color: var(--ut-color-ink); font-size: 19px; font-weight: var(--ut-font-weight-medium); white-space: nowrap; }
.ut-product-card__price.is-sale strong { color: #b4553f; }
.ut-product-card__price del { color: #9a8f81; font-size: 14px; line-height: normal; white-space: nowrap; }
.ut-product-card__quick-add-form { display: grid; flex: none; justify-items: end; margin: 0; }
.ut-product-card__cta { box-sizing: border-box; display: flex; flex: none; min-height: 44px; align-items: center; justify-content: center; gap: 7px; padding: 10px 16px; border: 0; border-radius: 999px; background: var(--ut-color-ink); color: var(--ut-color-surface); font: inherit; font-size: 15px; font-weight: var(--ut-font-weight-medium); line-height: normal; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .2s ease; }
.ut-product-card__cta svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; }
.ut-product-card__cta:hover:not(:disabled) { background: #5f6a54; color: var(--ut-color-surface); }
.ut-product-card__cta:disabled { cursor: not-allowed; opacity: .56; }
.ut-product-card__add-error { margin: .5rem 0 0; color: var(--ut-color-error, #9b3d31); font-size: 14px; text-align: right; }
