/* ==========================================
   WISHLIST PAGE - STYLES
   ========================================== */

.wishlist-page {
    min-height: 80vh;
    padding: 60px 20px;
    background: #f9f9f9;
}

.wishlist-page .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.wishlist-header {
    text-align: center;
    margin-bottom: 40px;
}

.wishlist-header h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.wishlist-subtitle {
    font-size: 16px;
    color: #666;
}

/* Actions */
.wishlist-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.btn-share,
.btn-clear {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid;
}

.btn-share {
    background: #000;
    color: #fff;
    border-color: #000;
}

.btn-share:hover {
    background: #333;
    transform: translateY(-2px);
}

.btn-clear {
    background: #fff;
    color: #E53935;
    border-color: #E53935;
}

.btn-clear:hover {
    background: #E53935;
    color: #fff;
}

/* Grid de produits */
.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.wishlist-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.wishlist-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.card-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f5f5f5;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.wishlist-card:hover .card-image img {
    transform: scale(1.05);
}

.btn-remove-item {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #666;
}

.btn-remove-item:hover {
    background: #E53935;
    color: #fff;
    transform: rotate(90deg) scale(1.1);
}

.card-content {
    padding: 20px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
    min-height: 44px;
}

.card-price {
    font-size: 24px;
    font-weight: 700;
    color: #000;
    margin-bottom: 5px;
}

.card-date {
    font-size: 13px;
    color: #999;
    margin-bottom: 15px;
}

.card-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-add-cart,
.btn-view {
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-add-cart {
    background: #000;
    color: #fff;
    border: 2px solid #000;
}

.btn-add-cart:hover {
    background: #333;
}

.btn-view {
    background: #fff;
    color: #000;
    border: 2px solid #ddd;
}

.btn-view:hover {
    border-color: #000;
}

/* Message liste vide */
.empty-wishlist {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.empty-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-wishlist h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.empty-wishlist p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.btn-shop {
    display: inline-block;
    padding: 14px 32px;
    background: #000;
    color: #fff;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-shop:hover {
    background: #333;
    transform: translateY(-2px);
}

/* Modal de partage */
.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.share-modal-content {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f5f5f5;
    color: #000;
}

.share-modal-content h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.share-link-box {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.share-link-box input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: monospace;
}

.btn-copy {
    padding: 12px 20px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-copy:hover {
    background: #333;
}

.share-social h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #666;
}

.social-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-btn {
    flex: 1;
    min-width: 120px;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    color: #fff;
}

.social-btn svg {
    width: 20px;
    height: 20px;
}

.social-btn.email {
    background: #666;
}

.social-btn.email:hover {
    background: #444;
}

.social-btn.whatsapp {
    background: #25D366;
}

.social-btn.whatsapp:hover {
    background: #1EBE57;
}

.social-btn.facebook {
    background: #1877F2;
}

.social-btn.facebook:hover {
    background: #145DBF;
}

/* Badge wishlist dans le header */
.wishlist-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #E53935;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.icon-btn.active {
    color: #E53935;
}

/* Responsive */
@media (max-width: 768px) {
    .wishlist-page {
        padding: 40px 15px;
    }
    
    .wishlist-header h1 {
        font-size: 28px;
    }
    
    .wishlist-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
    
    .share-modal-content {
        padding: 30px 20px;
    }
    
    .social-buttons {
        flex-direction: column;
    }
    
    .social-btn {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .wishlist-grid {
        grid-template-columns: 1fr;
    }
    
    .wishlist-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-share,
    .btn-clear {
        width: 100%;
        justify-content: center;
    }
}
