/* AsanWP Market — shared product card component.
   Used by homepage, shop/category archives and product search results. */

.woocommerce ul.products li.product.awp-product-card,
.woocommerce-page ul.products li.product.awp-product-card,
ul.products li.product.awp-product-card {
  float: none;
  width: auto;
  margin: 0;
  padding: 0;
  background: transparent;
}

.awp-product-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--awp-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
  transform: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.awp-product-card-inner:hover {
  border-color: #d2d6d9;
  box-shadow: 0 13px 30px rgba(18,21,26,.07);
  transform: translateY(-2px);
}

.awp-product-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f1f2f3;
}

.awp-product-thumb > img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  transition: transform .3s ease;
}

.awp-product-card-inner:hover .awp-product-thumb > img {
  transform: scale(1.02);
}

.awp-product-badges {
  position: absolute;
  top: 9px;
  right: 9px;
  left: 9px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

.awp-product-badge {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 1px 7px;
  border-radius: 7px;
  background: #111318;
  color: #fff;
  font-size: 8.3px;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.awp-badge-sale { background: #e63838; }
.awp-badge-featured { background: var(--awp-primary); color: #111318; }
.awp-badge-new { background: #eef8ee; color: #3d7140; }
.awp-badge-version {
  margin-right: auto;
  border: 1px solid rgba(0,0,0,.06);
  background: rgba(255,255,255,.94);
  color: #41444a;
}

.awp-product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 13px 14px 14px;
}

.awp-product-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}

.awp-product-cat {
  overflow: hidden;
  color: #8d9298;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.awp-product-updated {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 3px;
  color: #999ea4;
  font-size: 8.2px;
  white-space: nowrap;
}

.awp-product-updated svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
}

.awp-product-card h2,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  min-height: 48px;
  margin: 0 0 10px;
  padding: 0;
  color: var(--awp-ink);
  font-size: 13.5px;
  font-weight: 850;
  line-height: 1.78;
}

.awp-product-card h2 a {
  color: inherit;
  text-decoration: none;
}

.awp-product-card h2 a:hover { color: #806900; }

.awp-product-excerpt {
  min-height: 0;
  margin: -3px 0 9px;
  color: #777d83;
  font-size: 9.8px;
  line-height: 1.9;
}

.awp-product-stats {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  margin: 0 0 11px;
  overflow: hidden;
  border: 1px solid #edf0f1;
  border-radius: 10px;
  background: #fafafa;
}

.awp-product-stats span {
  display: grid;
  gap: 1px;
  padding: 8px 6px;
  text-align: center;
}

.awp-product-stats span + span { border-right: 1px solid #e9ebed; }

.awp-product-stats b {
  color: #33383d;
  font-size: 10.5px;
  font-weight: 900;
}

.awp-product-stats small {
  color: #9a9fa5;
  font-size: 7.8px;
}

.awp-product-commerce {
  display: grid;
  gap: 9px;
  margin-top: auto;
}

.awp-product-price {
  min-height: 38px;
  margin: 0;
  color: #15181b;
  font-size: 14px;
  font-weight: 950;
  text-align: right;
}

.awp-product-price .price {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.awp-product-price del {
  display: inline;
  margin-left: 5px;
  color: #999;
  font-size: 9px;
  font-weight: 600;
  opacity: 1;
}

.awp-product-price ins { text-decoration: none; }

.awp-product-actions {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 6px;
  margin: 0;
}

.awp-product-buy {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 37px;
  padding: 0 12px;
  border-radius: 9px;
  background: #111318;
  color: #fff;
  font-size: 9.5px;
  font-weight: 850;
  text-decoration: none;
}

.awp-product-buy:hover { background: #000; color: #fff; }

.awp-product-demo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 37px;
  min-height: 37px;
  padding: 0;
  border: 1px solid #dfe1e4;
  border-radius: 9px;
  background: #fff;
  color: #444a50;
  text-decoration: none;
}

.awp-product-demo:hover { background: #f5f6f7; color: #111318; }

.awp-product-demo svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
}

.awp-product-demo span { display: none; }

@media (max-width:760px) {
  .awp-product-body { padding: 12px; }

  .awp-product-card h2,
  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    min-height: 0;
    font-size: 13px;
    line-height: 1.75;
  }

  .awp-product-excerpt { display: none; }
  .awp-product-stats { margin-bottom: 9px; }
  .awp-product-price { min-height: 34px; }
  .awp-product-actions { grid-template-columns: 1fr auto; }
}

@media (max-width:520px) {
  .awp-product-card h2,
  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 13.5px;
    line-height: 1.75;
  }

  .awp-product-stats b { font-size: 10.5px; }
  .awp-product-stats small { font-size: 8px; }
  .awp-product-buy { min-height: 39px; font-size: 10px; }
  .awp-product-demo { width: 39px; min-height: 39px; }
}

@media (prefers-reduced-motion: reduce) {
  .awp-product-card-inner,
  .awp-product-thumb > img { transition: none; }
}
