/**
 * Modern ürün kartı — daha açıklayıcı bilgi hiyerarşisi
 */

.product-card.product-card-modern {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.product-card-modern .product-badge-oos {
  background: var(--text-gray);
  top: 12px;
  right: 12px;
}

.product-card-modern .product-image {
  position: relative;
  cursor: default;
}

.product-card-modern .product-image img {
  cursor: pointer;
}

.product-card-modern .product-image-chip {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, rgba(40, 40, 40, 0.92) 0%, rgba(90, 90, 90, 0.88) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
}

.product-card-modern .product-info {
  gap: 10px;
  padding: 16px 16px 14px;
}

.product-card-modern .product-info-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.product-card-modern .product-title-link {
  text-decoration: none;
  display: block;
}

.product-card-modern .product-title {
  min-height: auto;
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.product-card-modern .product-excerpt {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--color-text-secondary, #b3b3b3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}

.product-card-modern .product-excerpt-fallback {
  color: rgba(179, 179, 179, 0.85);
  font-style: normal;
}

.product-card-modern .product-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-card-modern .product-highlight {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: #d4d4d4;
  background: linear-gradient(135deg, rgba(160, 160, 160, 0.14) 0%, rgba(80, 80, 80, 0.1) 100%);
  border: 1px solid rgba(160, 160, 160, 0.22);
}

.product-card-modern .product-highlight i {
  font-size: 11px;
  opacity: 0.9;
}

.product-card-modern .product-highlight-auto {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.28);
}

.product-card-modern .product-highlight-success {
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.28);
}

.product-card-modern .product-highlight-muted {
  color: var(--color-text-secondary, #b3b3b3);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  font-weight: 600;
}

.product-card-modern .product-highlight-sales {
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.28);
  font-weight: 650;
}

.product-card-modern .product-seller-modern {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  flex-direction: row;
}

.product-card-modern .product-seller-avatar {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.product-card-modern .product-seller-avatar img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.product-card-modern .product-seller-avatar-fallback {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(80, 80, 80, 0.35) 0%, rgba(40, 40, 40, 0.5) 100%);
  border: 2px solid rgba(160, 160, 160, 0.35);
  color: #a3a3a3;
  font-size: 22px;
}

.product-card-modern .product-seller-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.product-card-modern .product-seller-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-light, #f5f5f5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card-modern .product-seller-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-secondary, #b3b3b3);
}

.product-card-modern .product-reviews-modern {
  margin-top: 2px;
  padding: 10px 12px;
  background: rgba(255, 184, 0, 0.1);
  border: 1px solid rgba(255, 184, 0, 0.28);
  border-radius: 12px;
}

.product-card-modern .product-reviews-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.product-card-modern .product-reviews-modern .star-rating {
  color: #fbbf24;
  font-size: 13px;
}

.product-card-modern .product-reviews-score {
  font-weight: 700;
  font-size: 14px;
  color: #fbbf24;
}

.product-card-modern .product-reviews-count {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light, #f5f5f5);
}

.product-card-modern .product-price-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.product-card-modern .product-price-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted, #7a7a7a);
}

.product-card-modern .product-price {
  font-size: 20px;
  letter-spacing: -0.02em;
}

.product-card-modern .product-cart-actions {
  display: flex;
  gap: 8px;
  width: 100%;
}

.product-card-modern .product-cart-actions .btn-add-cart,
.product-card-modern .product-cart-actions .btn-buy-now {
  flex: 1;
}

.product-card-modern .btn-add-cart:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.product-card-modern .product-meta {
  gap: 10px;
}

.product-card-modern .product-footer {
  gap: 10px;
  padding-top: 10px;
}

/* Eski stock/stats satırları modern kartta gizlenmez; highlights ile değiştirildi */
.product-card-modern .product-stock-info,
.product-card-modern .product-stats {
  display: none;
}

@media (max-width: 576px) {
  .product-card-modern .product-excerpt {
    -webkit-line-clamp: 2;
    font-size: 12px;
  }

  .product-card-modern .product-highlight {
    padding: 6px 9px;
    font-size: 10px;
  }

  .product-card-modern .product-price {
    font-size: 18px;
  }
}

/* Liste görünümü (ürünler / hesaplar) */
.products-grid.list-view .product-card-modern {
  flex-direction: row;
  align-items: stretch;
}

.products-grid.list-view .product-card-modern .product-info {
  flex: 1;
  min-width: 0;
}

.products-grid.list-view .product-card-modern .product-excerpt {
  -webkit-line-clamp: 3;
  min-height: 0;
}
