/* ===== Wishlist Fallback Styles ===== */
.wishlist-hero {
    background: linear-gradient(135deg, #7d2ae8, #db2777);
    color: white;
    padding: 4rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.wishlist-hero .container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}
.wishlist-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(to right, white, #f0e6ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.wishlist-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 2rem;
}
.wishlist-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}
.stat-item {
    text-align: center;
}
.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
}
.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.wishlist-content {
    background: #f9fafb;
    padding: 4rem 1rem;
}
.wishlist-content .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Notice utilisateur non connecté */
.notice-box {
    background: #dbeafe;
    border: 2px solid #60a5fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.notice-icon {
    font-size: 2.5rem;
    color: #3b82f6;
}
.notice-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}
.notice-text {
    color: #4b5563;
}
.notice-link {
    color: #7d2ae8;
    font-weight: 600;
    text-decoration: underline;
}
.notice-link:hover {
    text-decoration: none;
}

/* En‑tête de la section */
.wishlist-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}
.wishlist-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.heart-icon {
    color: #ef4444;
}
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid #7d2ae8;
    color: #7d2ae8;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.btn-outline:hover {
    background: #7d2ae8;
    color: white;
}

/* Grille des produits */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}
.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s, transform 0.2s;
    position: relative;
}
.product-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

/* Badges */
.badge-container {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    color: white;
}
.badge-discount {
    background: #ef4444;
}
.badge-popular {
    background: linear-gradient(135deg, #7d2ae8, #db2777);
}

/* Image et actions */
.product-image-wrapper {
    position: relative;
    height: 224px;
    overflow: hidden;
}
.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.product-card:hover .product-image {
    transform: scale(1.1);
}
.action-buttons {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s;
}
.product-card:hover .action-buttons {
    opacity: 1;
}
.action-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    color: #374151;
    transition: background 0.2s, color 0.2s;
}
.action-btn:hover {
    background: #ef4444;
    color: white;
}
.action-btn.cart:hover {
    background: #7d2ae8;
    color: white;
}

/* Informations produit */
.product-info {
    padding: 1.25rem;
}
.product-category {
    font-size: 0.875rem;
    color: #7d2ae8;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.product-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.stars {
    display: flex;
    color: #fbbf24;
}
.stars .half {
    position: relative;
}
.rating-text {
    font-size: 0.875rem;
    color: #4b5563;
}
.price-block {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.current-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #7d2ae8;
}
.old-price {
    color: #9ca3af;
    text-decoration: line-through;
}
.stock-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}
.stock-icon {
    color: #6b7280;
}
.stock-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}
.stock-in {
    background: #d1fae5;
    color: #065f46;
}
.stock-low {
    background: #fef3c7;
    color: #92400e;
}
.stock-out {
    background: #fee2e2;
    color: #991b1b;
}
.product-link {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #7d2ae8, #db2777);
    color: white;
    text-align: center;
    font-weight: 600;
    padding: 0.5rem;
    border-radius: 8px;
    text-decoration: none;
    transition: box-shadow 0.2s;
}
.product-link:hover {
    box-shadow: 0 10px 15px -3px rgba(125, 42, 232, 0.4);
}

/* État vide */
.empty-state {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 4rem 2rem;
    text-align: center;
}
.empty-icon {
    font-size: 5rem;
    color: #d1d5db;
    margin-bottom: 1.5rem;
}
.empty-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
}
.empty-text {
    color: #4b5563;
    max-width: 28rem;
    margin: 0 auto 2rem;
}
.btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.btn-primary {
    background: linear-gradient(135deg, #7d2ae8, #db2777);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    transition: box-shadow 0.2s;
}
.btn-primary:hover {
    box-shadow: 0 10px 15px -3px rgba(125, 42, 232, 0.4);
}
.btn-secondary {
    border: 2px solid #7d2ae8;
    color: #7d2ae8;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.btn-secondary:hover {
    background: #7d2ae8;
    color: white;
}

.messages { margin-bottom: 1rem; }
.alert { padding: 0.75rem 1rem; border-radius: 0.5rem; margin-bottom: 0.5rem; }
.alert-success { background-color: #d1fae5; color: #065f46; }
.alert-error { background-color: #fee2e2; color: #991b1b; }
.alert-info { background-color: #dbeafe; color: #1e40af; }
