/**
 * Store Theme — global product list card (shop, home, related, etc.)
 */

.product-card {
  background: transparent;
  border: 0;
  box-shadow: none !important;
  border-radius: 0;
}

.product-card:hover {
  transform: none !important;
  box-shadow: none !important;
}

.product-card__media {
  position: relative;
  margin-bottom: 0.65rem;
}

.product-card__media > a {
  display: block;
  line-height: 0;
}

.product-card__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: 5px;
  display: block;
  background-color: #f5f5f5;
}

.product-card__body {
  padding: 0;
  text-align: left;
}

.product-card__title {
  margin: 0 0 0.4rem;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.35;
  color: #000;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__title a {
  color: inherit;
  text-decoration: none;
}

.product-card__title a:hover {
  color: #000;
}

.product-card__rating {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.45rem;
  min-height: 1.125rem;
}

.product-card__rating .star-rating {
  font-size: 0.875rem;
  width: 4.75em;
}

.product-card__rating .star-rating::before {
  color: #f9730c;
  opacity: 0.45;
}

.product-card__rating .star-rating span::before {
  color: #f9730c !important;
}

.product-card__rating .rating-count {
  font-size: 0.8125rem;
  color: #9ca3af;
  margin-left: 0;
}

.product-card__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
  line-height: 1.2;
}

.product-card__price .text-price,
.product-card__price .woocommerce-Price-amount {
  font-size: 1rem;
  font-weight: 700;
  color: var(--store-price-color, #f9730c) !important;
}

.product-card__price del,
.product-card__price .product-card__price-regular {
  font-size: 0.875rem;
  font-weight: 400;
  color: #9ca3af !important;
  text-decoration: line-through;
}

.product-card__price del .woocommerce-Price-amount,
.product-card__price .product-card__price-regular .woocommerce-Price-amount {
  font-size: inherit;
  font-weight: inherit;
  color: inherit !important;
}

.product-card__price ins {
  text-decoration: none;
}

/* Badges */
.product-card .badge-container {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
  pointer-events: none;
}

.product-card .product-badge {
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.product-card .product-badge.new {
  background-color: #ff6b00;
  color: #fff;
}

.product-card .product-badge.onsale {
  background-color: #ff6b00;
  color: #fff;
}

.product-card .product-badge.hot {
  background-color: #1a1a1a;
  color: #fff;
}

/* Legacy markup inside old cards — keep flat if any remain */
.product-card.card {
  background: transparent;
}

.product-card .card-body {
  padding: 0;
}

.product-card .product-img-wrap {
  position: relative;
  overflow: visible;
  aspect-ratio: auto !important;
  background: transparent;
  margin-bottom: 0.65rem;
}

.product-card .product-img-wrap img {
  border-radius: 5px;
  transition: none;
}

.product-card:hover .product-img-wrap img {
  transform: none;
}

.product-card .product-hover-action {
  display: none;
}
