/* ============================================
   MODAL QUICK VIEW - STYLE AMÉLIORÉ
   ============================================ */

/* Modal Container */
#modal_box .modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

/* Bouton de fermeture */
#modal_box .close {
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

#modal_box .close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

/* Image du produit */
#modal-product-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

#modal-product-link:hover #modal-product-image {
    transform: scale(1.05);
}

/* Titre du produit */
#modal-product-name {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    line-height: 1.3;
}

/* Prix */
.modal_price {
    display: flex;
    align-items: center;
    gap: 15px;
}

#modal-product-price {
    font-size: 28px;
    font-weight: 700;
    color: #667eea;
}

#modal-product-old-price {
    font-size: 20px;
    color: #999;
    text-decoration: line-through;
}

/* Description */
#modal-product-description {
    font-size: 15px;
    line-height: 1.7;
    color: #666;
}

/* Formulaire d'ajout au panier */
.modal_add_to_cart form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.modal_add_to_cart input[type="number"] {
    width: 80px;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
}

.modal_add_to_cart button {
    flex: 1;
    padding: 12px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal_add_to_cart button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.modal_add_to_cart button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Animation de chargement */
.modal_add_to_cart button:disabled::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Bouton Voir les détails */
.modal_view_details .btn {
    display: inline-block;
    padding: 10px 25px;
    background: #f8f9fa;
    color: #333;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.modal_view_details .btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Animation d'entrée */
.modal_body {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

#modal_box.show .modal_body {
    opacity: 1;
}

/* Responsive */
@media (max-width: 991px) {
    .modal-dialog {
        max-width: 90%;
    }
    
    #modal-product-name {
        font-size: 20px;
    }
    
    #modal-product-price {
        font-size: 24px;
    }
    
    .modal_add_to_cart form {
        flex-direction: column;
    }
    
    .modal_add_to_cart input[type="number"] {
        width: 100%;
    }
}

@media (max-width: 767px) {
    #modal_box .close {
        width: 35px;
        height: 35px;
        right: 10px;
        top: 10px;
    }
    
    #modal-product-name {
        font-size: 18px;
    }
    
    #modal-product-price {
        font-size: 22px;
    }
    
    #modal-product-old-price {
        font-size: 16px;
    }
}

