/* ========== LISTE.HTML MODERN İYİLEŞTİRMELER ========== */

/* Product Badges */
.product-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    backdrop-filter: blur(8px);
    animation: fadeInDown 0.4s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-badge.discount {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.product-badge.new {
    background: linear-gradient(135deg, #00a046 0%, #008a3a 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 160, 70, 0.3);
}

.product-badge.free-cargo {
    background: rgba(255, 255, 255, 0.95);
    color: #00a046;
    border: 1px solid #00a046;
}

.product-badge i {
    font-size: 0.875rem;
}

/* Favorite Button */
.product-favorite {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.product-favorite:hover {
    background: white;
    border-color: #ff6000;
    transform: scale(1.1);
}

.product-favorite i {
    font-size: 1.125rem;
    color: #6b7280;
    transition: all 0.3s ease;
}

.product-favorite:hover i {
    color: #ff6000;
}

.product-favorite.active {
    background: #fff7ed;
    border-color: #ff6000;
    animation: heartBeat 0.5s ease;
}

.product-favorite.active i {
    color: #ff6000;
}

@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.2);
    }
    50% {
        transform: scale(1.1);
    }
    75% {
        transform: scale(1.15);
    }
}

/* Product Card Enhancements */
.main-product-item {
    position: relative;
}

.main-product-item .product-gallery-list img {
    transition: transform 0.3s ease;
}

.main-product-item:hover .product-gallery-list img {
    transform: scale(1.05);
}

.product-brand {
    font-size: 0.8125rem;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-title-card {
    min-height: 2.8em;
}

.stock-info {
    font-size: 0.8125rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.5rem;
}

.stock-info.in-stock {
    color: #00a046;
}

.stock-info.low-stock {
    color: #ffa900;
}

.stock-info.out-of-stock {
    color: #dc3545;
}

.stock-info i {
    font-size: 1rem;
}

/* Button Enhancements */
.show-add-cart .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.show-add-cart .btn i {
    font-size: 1.125rem;
    transition: transform 0.3s ease;
}

.show-add-cart .btn:hover i {
    transform: translateX(2px);
}

/* Filter Enhancements */
.category-box {
    transition: all 0.3s ease;
}

.category-box:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.category-box-item .header {
    user-select: none;
}

.category-box-item .header i {
    transition: transform 0.3s ease;
}

.category-box-item.active .header i {
    transform: rotate(180deg);
}

/* Selected Filters Enhancement */
.filter-tag {
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.filter-tag:hover {
    transform: translateY(-2px);
}

/* List Header Enhancement */
.list-header {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Mobile Filter Button Enhancement */
.mobile-filter-text .btn {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }
    50% {
        box-shadow: 0 4px 16px rgba(255, 96, 0, 0.2);
    }
}

/* Responsive Improvements */
@media (max-width: 575px) {
    .product-badges {
        top: 0.75rem;
        left: 0.75rem;
    }
    
    .product-favorite {
        top: 0.75rem;
        right: 0.75rem;
        width: 36px;
        height: 36px;
    }
    
    .product-favorite i {
        font-size: 1rem;
    }
    
    .product-badge {
        padding: 0.25rem 0.5rem;
        font-size: 0.6875rem;
    }
}

/* Loading Animation */
.main-product-item.loading {
    opacity: 0.6;
    pointer-events: none;
}

.main-product-item.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #ff6000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}
