/**
 * product-card-renderer.css
 * Ortak Ürün Kartı Stilleri — MAAProductCardRenderer ile birlikte kullanılır.
 * Hem Ticaret Merkezi hem de kategori sayfaları (Aydınlatma, Anahtar & Priz vb.)
 * için tek, tutarlı kart tasarımı.
 */

/* ── Kart Konteyner ─────────────────────────────────────────────────────── */
.pc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.18s ease, transform 0.15s ease;
}
.pc-card:hover {
  box-shadow: 0 6px 24px rgba(0,51,102,0.10);
  transform: translateY(-2px);
}

/* ── Rozetler (sol üst) ─────────────────────────────────────────────────── */
.pc-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pc-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.4;
}
/* Kampanya rozeti — sadece isCampaign=true */
.pc-badge--campaign {
  background: #ffe4e6;
  color: #be123c;
}
/* Yeni */
.pc-badge--new {
  background: #dcfce7;
  color: #166534;
}
/* Çok Satan */
.pc-badge--best {
  background: #fef3c7;
  color: #92400e;
}

/* ── Aksiyon Düğmeleri (sağ üst) ────────────────────────────────────────── */
.pc-top-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pc-btn-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
  font-size: 0.85rem;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.pc-btn-icon:hover,
.pc-btn-icon.active {
  background: #003366;
  color: #fff;
  border-color: #003366;
}

/* ── Görsel ─────────────────────────────────────────────────────────────── */
.pc-img-link { display: block; text-decoration: none; }
.pc-img-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8px;
}
.pc-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ── Kart Gövdesi ───────────────────────────────────────────────────────── */
.pc-body {
  padding: 12px 14px 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.pc-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
}
.pc-brand {
  font-size: 0.72rem;
  font-weight: 700;
  color: #003366;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Stok durumu — her sayfada görünür */
.pc-stock {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
}
.pc-stock.stock--available    { background: #dcfce7; color: #166534; }
.pc-stock.stock--order        { background: #fef9c3; color: #713f12; }
.pc-stock.stock--unavailable  { background: #fee2e2; color: #991b1b; }
.pc-stock.stock--unknown      { background: #f1f5f9; color: #64748b; }

.pc-code {
  font-size: 0.70rem;
  color: #94a3b8;
  font-family: monospace;
}
.pc-name {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pc-name-link { color: inherit; text-decoration: none; }
.pc-name-link:hover { color: #003366; }

/* ── Teknik Özellik Chip'leri ───────────────────────────────────────────── */
.pc-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}
.pc-spec-chip {
  background: #f1f5f9;
  color: #475569;
  font-size: 0.67rem;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 3px;
  white-space: nowrap;
}

/* ── Kart Alt Alanı ─────────────────────────────────────────────────────── */
.pc-footer {
  padding: 10px 14px 14px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── Fiyat Bloğu ────────────────────────────────────────────────────────── */
.pc-price-block {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
/* Üstü çizili liste fiyatı — yalnızca gerçek indirim varsa */
.pc-list-price {
  text-decoration: line-through;
  color: #94a3b8;
  font-size: 0.80rem;
  line-height: 1.3;
}
.pc-price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
/* Satış fiyatı */
.pc-sale-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: #003366;
  line-height: 1.2;
}
.pc-unit {
  font-size: 0.75rem;
  color: #64748b;
}
/* İskonto etiketi (fiyat altında, yeşil zemin) — kırmızı değil */
.pc-discount-label {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 3px;
  background: #dcfce7;
  color: #166534;
  display: inline-block;
  align-self: flex-start;
  margin-top: 2px;
}

/* ── Kart Butonlar ──────────────────────────────────────────────────────── */
.pc-actions {
  display: flex;
  gap: 7px;
}
.pc-btn {
  flex: 1;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  letter-spacing: 0.03em;
}
.pc-btn--outline {
  background: transparent;
  border: 1.5px solid #003366;
  color: #003366;
}
.pc-btn--outline:hover {
  background: #003366;
  color: #fff;
}
.pc-btn--primary {
  background: #003366;
  color: #fff;
}
.pc-btn--primary:hover {
  background: #00255a;
}
