 
.favorites-container {
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    color: #333;
    min-height: 80vh;
}

.favorites-container h1 {
    text-align: center;
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 2.5rem;
}

.favorites-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

#favorites-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.favorite-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 2px -11px 9px 0px rgb(27 49 130 / 29%);
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;

}

.favorite-item:hover {
    transform: translateY(-2px);
}

.favorite-item img {
    width: 100%;
    height: 200px;
    object-fit: scale-down;
    padding-top: 15px;
}

.favorite-item-details {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.favorite-item-title {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #333;
    overflow: hidden;
}

.favorite-item-price {
    font-weight: bold;
    color: #007bff;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.favorite-item-category {
    color: #666;
    margin-bottom: 1rem;
    text-transform: capitalize;
    font-size: 0.9rem;
}

.favorite-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.remove-fav-btn {
    background: none;
    border: 2px solid #dc3545;
    color: #dc3545;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.remove-fav-btn:hover {
    background: #dc3545;
    color: #fff;
}

.add-to-cart-from-fav {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    flex: 2;
}

.add-to-cart-from-fav:hover {
    background: #0056b3;
}

.empty-favorites {
    text-align: center;
    color: #666;
    grid-column: 1 / -1;
    padding: 3rem 1rem;
    font-size: 1.2rem;
}

 @media (min-width: 768px) {
    #favorites-items {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
    
    .favorites-container h1 {
        font-size: 3rem;
    }
}
