/* =============================================
   Product Lovers – Styles
   ============================================= */

/* --- Bouton J'adore --- */
.pl-love-wrapper {
    margin: 16px 0;
}

.pl-love-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 2px solid #e63946;
    border-radius: 50px;
    background: transparent;
    color: #e63946;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    line-height: 1;
}

.pl-love-btn:hover {
    background: #e63946;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(230, 57, 70, 0.35);
}

.pl-love-btn.pl-loved {
    background: #e63946;
    color: #fff;
}

.pl-love-btn.pl-loved .pl-heart {
    animation: pl-pulse 0.4s ease;
}

.pl-heart {
    font-size: 18px;
    display: inline-block;
    transition: transform 0.2s ease;
}

.pl-love-btn:hover .pl-heart {
    transform: scale(1.3);
}

.pl-count {
    font-size: 14px;
    font-weight: 700;
    min-width: 16px;
    text-align: center;
}

/* Pulse animation */
@keyframes pl-pulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.5); }
    100% { transform: scale(1); }
}

/* --- Section des amoureux --- */
.pl-lovers-section {
    margin: 32px 0;
    padding: 24px;
    background: #fff9fa;
    border: 1px solid #fde8ea;
    border-radius: 16px;
}

.pl-lovers-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 20px;
}

.pl-title-heart {
    color: #e63946;
    font-size: 20px;
    animation: pl-heartbeat 1.8s infinite;
}

@keyframes pl-heartbeat {
    0%, 100% { transform: scale(1); }
    14%       { transform: scale(1.2); }
    28%       { transform: scale(1); }
    42%       { transform: scale(1.15); }
    56%       { transform: scale(1); }
}

.pl-lovers-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e63946;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 50px;
    padding: 2px 10px;
    margin-left: 4px;
}

/* --- Grille des profils --- */
.pl-lovers-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.pl-lover-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: default;
    transition: transform 0.2s ease;
}

.pl-lover-card:hover {
    transform: translateY(-4px);
}

.pl-lover-avatar {
    position: relative;
    width: 56px;
    height: 56px;
}

.pl-lover-avatar img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
    display: block;
}

.pl-lover-heart {
    position: absolute;
    bottom: -4px;
    right: -4px;
    background: #e63946;
    color: #fff;
    font-size: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    line-height: 1;
}

.pl-lover-name {
    font-size: 12px;
    font-weight: 500;
    color: #555;
    text-align: center;
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* --- Carte "+X autres" --- */
.pl-more-avatar {
    background: linear-gradient(135deg, #e63946, #c1121f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(230, 57, 70, 0.3);
}

.pl-more-count {
    color: #fff;
    font-weight: 700;
    font-size: 13px;
}

/* --- Aucun amoureux --- */
.pl-no-lovers {
    color: #888;
    font-style: italic;
    margin: 0;
    font-size: 14px;
}

/* --- Toast notification --- */
.pl-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: #1a1a2e;
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    z-index: 99999;
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 6px 24px rgba(0,0,0,0.25);
}

.pl-toast.pl-toast-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.pl-toast.pl-toast-success::before {
    content: '♥ ';
    color: #e63946;
}

/* --- Responsive --- */
@media ( max-width: 480px ) {
    .pl-lovers-grid {
        gap: 10px;
    }
    .pl-lover-avatar,
    .pl-lover-avatar img {
        width: 46px;
        height: 46px;
    }
    .pl-lovers-section {
        padding: 16px;
    }
}
