/* ================================================================= */
/* STYLES POUR LES MODALES (Options + Voir plus)                      */
/* ================================================================= */

#product-modal-overlay {
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#product-modal {
    animation: slideIn 0.3s ease;
}

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

.close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    z-index: 1000;
    transition: color 0.2s;
}

.close-button:hover {
    color: #ffd700;
}

/* Formulaire dans la modale */
#modal-form .form-group {
    margin-bottom: 15px;
}

#modal-form label {
    display: block;
    margin-bottom: 5px;
    color: #ccc;
}

#modal-form .form-control {
    width: 100%;
    padding: 10px;
    background: #333;
    color: white;
    border: 1px solid #555;
    border-radius: 6px;
    font-size: 1rem;
}

#modal-form .form-control:focus {
    outline: none;
    border-color: #ffd700;
}

#modal-form .btn-primary {
    padding: 12px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    margin-top: 20px;
}

#modal-form .btn-primary:hover {
    background: #34ce57;
}

#modal-form-message {
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    margin-top: 15px;
}

/* Galerie détails */
.detail-gallery {
    scrollbar-width: thin;
    scrollbar-color: #ffd700 #333;
}

.detail-gallery::-webkit-scrollbar {
    width: 6px;
}

.detail-gallery::-webkit-scrollbar-track {
    background: #333;
    border-radius: 3px;
}

.detail-gallery::-webkit-scrollbar-thumb {
    background: #ffd700;
    border-radius: 3px;
}

.detail-gallery img {
    cursor: pointer;
    transition: transform 0.2s;
}

.detail-gallery img:hover {
    transform: scale(1.02);
}

/* Prix dans la modale */
.price-display {
    text-align: center;
    margin-bottom: 20px;
    padding: 10px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 8px;
}

.price-display span {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffd700;
}

/* Titre de la modale */
#product-modal h3 {
    color: #ffd700;
    margin-bottom: 15px;
    text-align: center;
}

#product-modal h4 {
    color: #fff;
    margin: 15px 0 10px;
}