/**
 * EHUKA - Pop-up Produit Personnalisée
 * Re-style du module tvcmsproductpopup
 */

/* ============================================================================
   POP-UP PRODUIT - Design moderne Ehuka
   ============================================================================ */

/* Container principal de la pop-up */
.tvcms-prod-popup {
    max-width: 320px !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2) !important;
    background: white !important;
    border: 2px solid #E6EBE0 !important;
    animation: slideInFromBottom 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

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

/* Badge "New" */
.tvcms-prod-popup .product-flags .product-flag {
    background: linear-gradient(135deg, #70D774 0%, #5fc778 100%) !important;
    color: white !important;
    font-weight: 700 !important;
    font-size: 11px !important;
    padding: 4px 10px !important;
    border-radius: 20px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    position: absolute !important;
    top: 8px !important;
    left: 8px !important;
    z-index: 10 !important;
}

/* Wrapper du produit */
.tvcms-prod-popup .tvproduct-wrapper {
    padding: 15px !important;
    background: white !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
}

/* Container image */
.tvcms-prod-popup .thumbnail-container .product-container-img {
    width: 100px !important;
    height: 100px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: #f5f5f5 !important;
    border: 2px solid #E6EBE0 !important;
    flex-shrink: 0 !important;
}

.tvcms-prod-popup .thumbnail-container .product-container-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Description du produit */
.tvcms-prod-popup .thumbnail-container .product-description {
    padding: 0 !important;
    width: calc(100% - 112px) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

/* Nom du produit */
.tvcms-prod-popup .tvproduct-name,
.tvcms-prod-popup .tvproduct-name a {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #5D576B !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    text-decoration: none !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.tvcms-prod-popup .tvproduct-name a:hover {
    color: #ED6A5A !important;
}

/* Prix */
.tvcms-prod-popup .product-price-and-shipping {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 4px 0 !important;
}

.tvcms-prod-popup .product-price-and-shipping .price {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #70D774 !important;
}

.tvcms-prod-popup .product-price-and-shipping .regular-price {
    font-size: 14px !important;
    color: #999 !important;
    text-decoration: line-through !important;
}

/* Date "il y a X minutes" */
.tvcms-prod-popup .thumbnail-container .date-ago {
    font-size: 12px !important;
    color: #999 !important;
    font-style: italic !important;
    margin: 0 !important;
}

/* Bouton de fermeture */
.tvcms-prod-popup .tvprodpopup-close,
.tvcms-prod-popup .close-prod-popup {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    width: 28px !important;
    height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: white !important;
    border-radius: 50% !important;
    border: 2px solid #E6EBE0 !important;
    cursor: pointer !important;
    z-index: 20 !important;
    transition: all 0.3s ease !important;
}

.tvcms-prod-popup .tvprodpopup-close:hover,
.tvcms-prod-popup .close-prod-popup:hover {
    background: #ED6A5A !important;
    border-color: #ED6A5A !important;
    transform: rotate(90deg) scale(1.1) !important;
}

.tvcms-prod-popup .tvprodpopup-close i,
.tvcms-prod-popup .close-prod-popup i {
    font-size: 16px !important;
    color: #5D576B !important;
    transition: color 0.3s ease !important;
}

.tvcms-prod-popup .tvprodpopup-close:hover i,
.tvcms-prod-popup .close-prod-popup:hover i {
    color: white !important;
}

/* Étoiles de notation (si présentes) */
.tvcms-prod-popup .star_content {
    display: flex !important;
    gap: 2px !important;
    margin: 4px 0 !important;
}

.tvcms-prod-popup .star_content .material-icons {
    font-size: 14px !important;
    color: #FFB800 !important;
}

/* Timer de countdown (si présent) */
.tvcms-prod-popup .tvproduct-timer {
    display: flex !important;
    gap: 4px !important;
    margin-top: 8px !important;
}

.tvcms-prod-popup .tvproduct-timer-wrapper span {
    background: #ED6A5A !important;
    color: white !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
}

/* Animation d'apparition/disparition */
.tvcms-prod-popup.show {
    animation: slideInFromBottom 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.tvcms-prod-popup.hide {
    animation: slideOutToBottom 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

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

/* Responsive */
@media (max-width: 768px) {
    .tvcms-prod-popup {
        max-width: 280px !important;
        left: 10px !important;
        bottom: 10px !important;
    }
    
    .tvcms-prod-popup .thumbnail-container .product-container-img {
        width: 80px !important;
        height: 80px !important;
    }
    
    .tvcms-prod-popup .thumbnail-container .product-description {
        width: calc(100% - 92px) !important;
    }
}
