/* Favori Sistemi CSS */

/* Header Favori Butonu */
.header-actions .favorite-icon {
    position: relative;
    color: var(--text);
    font-size: 20px;
    transition: var(--transition);
    padding: 8px;
}

.header-actions .favorite-icon:hover {
    color: var(--primary);
}

.favorite-count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* Favori Butonu (Ürün Kartlarında) */
.favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 10;
}

.favorite-btn i {
    font-size: 18px;
    color: #999;
    transition: all 0.3s ease;
}

.favorite-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.favorite-btn.is-favorite i {
    color: #e74c3c;
}

.favorite-btn:hover i {
    color: #e74c3c;
}

/* Ürün Rozeti (eBay Tarzı) */
.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e74c3c;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 9;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.product-badge.badge-cart {
    background: #e74c3c;
}

.product-badge.badge-views {
    background: #3498db;
}

.product-badge.badge-favorites {
    background: #e67e22;
}

/* Favori Bildirimi */
.favorite-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
}

.favorite-notification.show {
    opacity: 1;
    transform: translateX(0);
}

/* Ürün İstatistikleri */
.product-stats {
    display: flex;
    gap: 20px;
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.product-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
}

.product-stat i {
    color: var(--primary);
    font-size: 16px;
}

.product-stat strong {
    color: #333;
}

/* Ürün kartı için */
.product-card .product-image,
.product-image {
    position: relative;
}

/* Favori Sayfası */
.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.favorites-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.favorites-empty i {
    font-size: 64px;
    margin-bottom: 20px;
    display: block;
    color: #ddd;
}

.favorites-empty h3 {
    margin-bottom: 10px;
    color: #666;
}

.favorites-empty a {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    text-decoration: none;
}

/* Mobil Responsive */
@media (max-width: 768px) {
    .product-stats {
        flex-direction: column;
        gap: 10px;
    }

    .favorites-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
}