/* ─────────────────────────────────────────
   COMPONENT: Product Card
   ───────────────────────────────────────── */

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: none;
  transition: border-color 0.25s, transform 0.25s var(--ease-out), box-shadow 0.25s;
  position: relative;
}
.product-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4), 0 0 0 1px rgba(74,222,128,0.1);
}

/* Thumbnail */
.product-card-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--surface-2);
}
.product-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.product-card:hover .product-card-thumb img {
  transform: scale(1.06);
}

/* Category ribbon */
.product-card-cat {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
}

/* Wishlist button */
.product-card-wishlist {
  position: absolute;
  top: 10px; right: 10px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(7, 9, 12, 0.7);
  border: 1px solid var(--border-md);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  cursor: none;
  transition: all 0.2s;
  z-index: 2;
  opacity: 0;
  transform: scale(0.8);
}
.product-card:hover .product-card-wishlist {
  opacity: 1;
  transform: scale(1);
}
.product-card-wishlist:hover {
  background: rgba(248,113,113,0.15);
  border-color: rgba(248,113,113,0.3);
  color: var(--red);
}
.product-card-wishlist.active {
  opacity: 1;
  transform: scale(1);
  color: var(--red);
  background: rgba(248,113,113,0.1);
  border-color: rgba(248,113,113,0.25);
}
.product-card-wishlist svg { width: 14px; height: 14px; }

/* Preview overlay */
.product-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7,9,12,0.6);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.25s;
}
.product-card:hover .product-card-overlay { opacity: 1; }
.btn-quick-view {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--text);
  backdrop-filter: blur(8px);
  transform: translateY(8px);
  transition: all 0.25s;
}
.product-card:hover .btn-quick-view {
  transform: translateY(0);
}

/* Body */
.product-card-body {
  padding: 18px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.product-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.product-card-author {
  display: flex;
  align-items: center;
  gap: 6px;
}
.product-card-avatar {
  width: 20px; height: 20px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-2);
}
.product-card-author-name {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}
.product-card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--amber);
}
.product-card-rating svg { width: 11px; height: 11px; fill: currentColor; }

.product-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  letter-spacing: -0.01em;
  transition: color 0.15s;
}
.product-card:hover .product-card-title { color: var(--green-light); }

.product-card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

/* Tags row */
.product-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Footer */
.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.product-card-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.product-card-price-val {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
}
.product-card-price-old {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: line-through;
  font-family: var(--font-mono);
}
.product-card-price-free {
  font-size: 1rem;
  font-weight: 800;
  color: var(--green);
  font-family: var(--font-mono);
}
.product-card-downloads {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.product-card-downloads svg { width: 12px; height: 12px; }

/* Sale badge */
.sale-badge {
  position: absolute;
  bottom: 12px; left: 12px;
  background: var(--red);
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 2;
}
.new-badge {
  position: absolute;
  bottom: 12px; left: 12px;
  background: var(--cyan);
  color: var(--bg);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 2;
}
