.tm-product-card {
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-radius: 1rem;
  box-shadow: 0 6px 18px rgba(15,23,42,.05);
  transition: transform .18s ease, box-shadow .18s ease;
  background: #fff;
}
.tm-product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(15,23,42,.09);
}
.tm-product-card__media,
.tm-product-card__body {
  position: relative;
  z-index: 2;
}
.tm-product-card__media { padding: .55rem .55rem 0; }
.tm-product-card__image-wrap {
  border-radius: .85rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.07);
}
.tm-product-card__img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  padding: .55rem;
  background: #fff;
}
.tm-product-card__img-hover,
.tm-product-card__actions,
.tm-product-card__view {
  display: none !important;
}
.tm-product-card__badges {
  position: absolute;
  top: .75rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.tm-product-card__badges--left { left: .75rem; }
.tm-product-card__badges--right { right: .75rem; align-items: flex-end; }
.tm-badge-chip {
  padding: .25rem .55rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .01em;
}
.tm-badge-chip--new { background: #f5d7d7; color: #0f172a; }
.tm-badge-chip--soft { background: rgba(255,255,255,.94); color: #334155; }
.tm-product-card__body { padding: .75rem .75rem .8rem; }
.tm-product-card__brand,
.tm-product-card__category {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  padding: .12rem .5rem;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 600;
  line-height: 1.2;
}
.tm-product-card__brand {
  background: color-mix(in srgb, var(--tm-accent) 18%, #ffffff);
  color: #0f172a;
}
.tm-product-card__category { background: #f1f5f9; color: #64748b; }
.tm-product-card__title {
  font-size: .9rem;
  line-height: 1.35;
  font-weight: 600;
  min-height: 2.45rem;
  margin: 0;
  color: #111827;
}
.tm-product-card__rating {
  color: #64748b;
  font-size: .72rem;
  line-height: 1.2;
}
.tm-product-card__rating .star-rating {
  margin: 0;
  font-size: .78rem;
}
.tm-product-card__rating-count,
.tm-product-card__rating-empty {
  font-size: .72rem;
}
.tm-product-card__price-wrap {
  border-top: 1px solid rgba(15,23,42,.08);
}
.tm-product-card__price-row {
  gap: .5rem;
}
.tm-product-card__price .price {
  display: flex;
  gap: .35rem;
  align-items: baseline;
  flex-wrap: wrap;
  margin: 0;
  line-height: 1.2;
}
.tm-product-card__price ins {
  text-decoration: none;
  color: #0f172a;
  font-weight: 800;
}
.tm-product-card__price ins bdi,
.tm-product-card__price > .price > bdi {
  font-size: 1.08rem;
}
.tm-product-card__price del { color: #94a3b8; font-size: .78rem; }
.tm-product-card__cart,
.tm-product-card__cart .button,
.tm-product-card__cart a.button,
.tm-product-card__cart .added_to_cart {
  position: relative;
  z-index: 4;
}

.tm-product-card__cart {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: .4rem;
}
.tm-product-card__cart .button,
.tm-product-card__cart a.button,
.tm-product-card__cart .added_to_cart {
  width: auto;
  margin: 0 !important;
  border-radius: .55rem !important;
  text-align: center;
  padding: .42rem .65rem !important;
  font-size: .72rem !important;
  line-height: 1.1;
  white-space: nowrap;
}
.tm-product-card__bottom {
  min-height: 1rem;
}
.tm-product-card__stock {
  font-weight: 600;
  font-size: .72rem;
}
.tm-product-card__stock--in { color: #15803d; }
.tm-product-card__stock--low { color: #b45309; }
.tm-product-card__stock--out { color: #b91c1c; }
.tm-product-card__sku {
  font-size: .68rem;
  color: #64748b;
}
@media (max-width: 991.98px) {
  .tm-product-card__title { min-height: auto; }
  .tm-product-card__price-row {
    flex-wrap: wrap;
    align-items: stretch !important;
  }
  .tm-product-card__cart .button,
  .tm-product-card__cart a.button,
  .tm-product-card__cart .added_to_cart {
    width: 100%;
  }
}


.tm-product-card__image-link,
.tm-product-card__title-link {
  color: inherit;
  text-decoration: none;
}

.tm-product-card__image-link:hover,
.tm-product-card__title-link:hover {
  color: inherit;
}

.tm-product-card__cart .button,
.tm-product-card__cart a.button,
.tm-product-card__cart .added_to_cart,
.tm-loop-add-to-cart {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: var(--tm-accent) !important;
  border-color: var(--tm-accent) !important;
  color: var(--tm-accent-text) !important;
  min-height: 32px;
}

.tm-product-card__cart .added_to_cart {
  width: 100%;
  justify-content: center;
  background: color-mix(in srgb, var(--tm-accent) 18%, #ffffff) !important;
  border-color: color-mix(in srgb, var(--tm-accent) 18%, #ffffff) !important;
  color: #0f172a !important;
}

.tm-product-card__cart .button:hover,
.tm-product-card__cart a.button:hover,
.tm-product-card__cart .added_to_cart:hover,
.tm-loop-add-to-cart:hover {
  filter: brightness(.98);
}
