/**
 * Styles pour la page wishlist
 */

.wishlist-container {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.wishlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.wishlist-header h3 {
    margin: 0;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

.wishlist-count {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.empty-wishlist {
    padding: 60px 20px;
    text-align: center;
}

.empty-wishlist i {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-wishlist h4 {
    color: #666;
    margin-bottom: 10px;
}

.empty-wishlist p {
    color: #999;
    margin-bottom: 20px;
}

.wishlist-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wishlist-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
    transition: box-shadow 0.3s ease;
}

.wishlist-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.product-image {
    width: 100px;
    height: 100px;
    margin-right: 20px;
    flex-shrink: 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.product-details {
    flex: 1;
}

.product-title {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
}

.product-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: #667eea;
}

.product-price {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 600;
    color: #667eea;
}

.product-price del {
    color: #999;
    font-size: 14px;
    margin-left: 10px;
}

.product-stock {
    margin: 0;
    font-size: 13px;
}

.product-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.product-actions form {
    margin: 0;
}

.product-actions .btn {
    padding: 8px 16px;
    font-size: 14px;
}

.wishlist-footer {
    margin-top: 30px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Responsive */
@media (max-width: 768px) {
    .wishlist-item {
        flex-direction: column;
        text-align: center;
    }
    
    .product-image {
        width: 80px;
        height: 80px;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .product-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .product-actions .btn {
        width: 100%;
    }
    
    .wishlist-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* Notification styles */
.wishlist-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 4px;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    animation: slideIn 0.3s ease-out;
}

.wishlist-notification.success {
    background: #28a745;
    color: white;
}

.wishlist-notification.error {
    background: #dc3545;
    color: white;
}

.wishlist-notification.info {
    background: #17a2b8;
    color: white;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}
