/* ========== Unified Product Card (pc-) ========== */
.pc-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.pc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

/* Inside carousel: fixed width cards that scroll horizontally */
.products-carousel .pc-card {
  min-width: 260px;
  max-width: 260px;
  flex-shrink: 0;
  scroll-snap-align: start;
}

.pc-img-wrap {
  position: relative;
  background: #f8f8f8;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  overflow: hidden;
}
.pc-img-wrap a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.pc-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.pc-card:hover .pc-img-wrap img {
  transform: scale(1.05);
}

.pc-img-wrap .pc-badge,
.pc-img-wrap .spf-badge,
.pc-img-wrap .sk-badge,
.pc-img-wrap .mk-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  z-index: 2;
}
.badge-best { background: #FEF3C7; color: #92400E; }
.badge-new { background: #DBEAFE; color: #1E40AF; }
.badge-sale { background: #FEE2E2; color: #DC2626; }
.badge-oos { background: #dc2626; color: #fff; }
.badge-low-stock { background: #F59E0B; color: #fff; }

.pc-wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.9);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: all 0.2s;
  color: #ccc;
}
.pc-wishlist:hover { color: #ec4899; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.pc-wishlist.active { color: #ec4899; }
.pc-wishlist.active svg { fill: #ec4899; }

.pc-info {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.pc-info-link {
  text-decoration: none;
  color: inherit;
}
.pc-brand {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #888;
  margin-bottom: 4px;
  font-weight: 600;
}
.pc-name {
  font-size: 14px;
  font-weight: 500;
  color: #222;
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pc-price-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.pc-price {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a2e;
}
.pc-price-old {
  font-size: 13px;
  color: #999;
  text-decoration: line-through;
}
.pc-discount {
  font-size: 11px;
  font-weight: 700;
  color: #dc2626;
  background: #fee2e2;
  padding: 2px 8px;
  border-radius: 12px;
}

.pc-add-btn {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 10px;
  background: #E8725C;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  margin-top: auto;
  font-family: inherit;
}
.pc-add-btn:hover { background: #d4604e; }
.pc-add-btn:active { transform: scale(0.98); }
.pc-add-btn--disabled {
  background: #ddd;
  color: #999;
  cursor: not-allowed;
}
.pc-add-btn--disabled:hover { background: #ddd; }

/* Responsive */
@media (max-width: 768px) {
  .pc-img-wrap { padding: 0; }
  .pc-info { padding: 10px; }
  .pc-name { font-size: 13px; }
  .pc-price { font-size: 15px; }
  .pc-add-btn { padding: 10px; font-size: 13px; }
  .products-carousel .pc-card {
    min-width: 220px;
    max-width: 220px;
  }
}
@media (max-width: 480px) {
  .products-carousel .pc-card {
    min-width: 180px;
    max-width: 180px;
  }
}
