/* Amélioration du modal de détails produit */
#productDetailsModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    overflow-x: hidden;
}

#productDetailsModal.show {
    display: flex !important;
}

#productDetailsModal .modal-content {
    animation: slideIn 0.3s ease-out;
    margin: auto;
    overflow-x: hidden;
    max-width: 900px;
    width: 95%;
}

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

#productDetailsModal .modal-body ul {
    list-style: none;
    padding: 0;
}

#productDetailsModal .modal-body ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

#productDetailsModal .modal-body ul li:last-child {
    border-bottom: none;
}

.product-preview-area {
    transition: all 0.2s ease;
}

/* Responsive modal */
@media (max-width: 768px) {
    #productDetailsModal .modal-content {
        max-width: 95% !important;
        margin: 1rem;
    }
    
    #productDetailsModal .modal-body > div {
        grid-template-columns: 1fr !important;
    }
}

/* Styles pour le bouton favori */
.favorite-btn {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.favorite-btn:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

.favorite-btn i {
    font-size: 1.2rem;
    color: white;
    transition: all 0.3s ease;
}

.favorite-btn.active i {
    color: var(--warning-color);
}

.favorite-btn.active {
    background: rgba(251, 191, 36, 0.2);
}

/* Background de la boutique */
#boutique.services {
    background: #2a2a2a !important;
}

/* Background de la boutique en mode clair */
body.light-mode #boutique.services {
    background: var(--bg-main) !important;
}

/* Info card en mode clair */
body.light-mode #boutique.services .info-card {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-primary);
    box-shadow: var(--shadow-sm);
}

/* ==================== PRODUCT CARD STYLES ==================== */
/* Tous les paramètres des cartes de produits sont modifiables ici */

.product-card {
    /* Fond et bordures */
    background: #2a2a2a;
    border: none;
    border-radius: 20px;
    
    /* Espacement intérieur */
    padding: 2.5rem 2.5rem 2.5rem 0;
    
    /* Dimensions */
    min-height: 400px;
    max-width: 400px;
    
    /* Disposition interne */
    display: flex;
    flex-direction: column;
    
    /* Position */
    position: relative;
    overflow: visible;
    
    /* Transitions et animations */
    transition: all 0.3s ease;
}

/* Mode clair pour les cartes produit */
body.light-mode .product-card {
    background: var(--bg-secondary);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-sm);
}

body.light-mode .product-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-primary);
}

body.light-mode .product-card h3 {
    color: var(--text-primary);
}

body.light-mode .product-card .price {
    color: var(--primary-color);
}

/* Effet de fond au survol - DÉSACTIVÉ */
.product-card::before {
    display: none;
}

.product-card:hover::before {
    /* Aucun effet */
}

/* État au survol - DÉSACTIVÉ */
.product-card:hover {
    /* Annuler tous les effets hérités */
    transform: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

/* Image du produit */
.product-card img {
    width: 100%;
    height: 210px;
    object-fit: contain;
    border-radius: 15px;
    margin-bottom: 0rem;
    background: transparent !important;
}

/* Zone de prévisualisation du produit */
.product-preview-area {
    background: transparent !important;
}

/* Titre du produit */
.product-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin-top: -1.5rem !important;
    color: var(--text-primary);
}

.product-preview-area > div {
    background: transparent !important;
    margin-top: -0.5rem;
}

/* Description du produit */
.product-card p {
    display: none;
}

/* Prix du produit */
.product-card .price {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Boutons dans la carte */
.product-card .btn {
    width: 100%;
    margin-top: auto;
}

/* Produit mis en avant */
.product-card.featured {
    border: 2px solid var(--primary-color);
}

.product-card.featured::after {
    content: '⭐ Coup de cœur';
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: bold;
}