/* Section wishlist */
.wishlist-section {
    padding: 3rem 0;
    min-height: 60vh;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
}

/* Product card */
.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    padding-top: 100%;
    background: #f8f9fa;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

/* Badge promotion */
.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--biir-burgundy);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: bold;
    z-index: 2;
}

/* Bouton retirer (X en haut à droite) */
.wishlist-remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: all 0.3s;
    opacity: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.product-card:hover .wishlist-remove-btn {
    opacity: 1;
}

.wishlist-remove-btn:hover {
    background: var(--biir-burgundy);
    color: white;
    transform: scale(1.1);
}

.wishlist-remove-btn i {
    font-size: 0.9rem;
    color: #333;
}

.wishlist-remove-btn:hover i {
    color: white;
}

/* Product info */
.product-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.product-title a {
    text-decoration: none;
    color: inherit;
}

.product-title a:hover {
    color: var(--biir-burgundy);
}

.product-description {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    flex: 1;
}

.product-footer {
    margin-top: auto;
}

.product-price {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--biir-burgundy);
}

.product-price-old {
    font-size: 0.9rem;
    text-decoration: line-through;
    color: #999;
}

/* Bouton ajouter au panier */
.btn-primary {
    background: var(--biir-burgundy);
    border-color: var(--biir-burgundy);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--biir-burgundy);
    border-color: var(--biir-burgundy);
    transform: translateY(-2px);
}

/* Empty wishlist */
.empty-wishlist {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Responsive */
@media (max-width: 768px) {
    .page-title {
        font-size: 1.5rem;
    }
    
    .wishlist-remove-btn {
        opacity: 1;
        width: 28px;
        height: 28px;
    }
    
    .wishlist-remove-btn i {
        font-size: 0.8rem;
    }
    
    .wishlist-section {
        padding: 2rem 0;
    }
}

/* Animation de suppression */
[data-product-id] {
    transition: opacity 0.3s ease, transform 0.3s ease;
}