/* Améliorations modale produit */

.product-modal-meta {
    display: none !important;
}



/* Sélecteur de couleur amélioré */
.color-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.color-option {
    position: relative;
    cursor: pointer;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 70px;
}

.color-option:hover {
    border-color: #333;
    transform: translateY(-2px);
}

.color-option.selected {
    border-color: #000;
    background: #f8f8f8;
}

.color-option img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

.color-swatch {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.color-option span {
    font-size: 12px;
    text-align: center;
    color: #333;
}

/* Sélecteur de taille */
.size-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.size-option {
    min-width: 60px;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.size-option:hover {
    border-color: #333;
    transform: translateY(-2px);
}

.size-option.selected {
    border-color: #000;
    background: #000;
    color: white;
}

/* Info stock */
.stock-info {
    font-size: 13px;
    font-weight: 500;
}

.stock-info.in-stock {
    color: #28a745;
}

.stock-info.out-of-stock {
    color: #dc3545;
}

/* Label requis */
.selector-label .required {
    color: #dc3545;
    margin-left: 2px;
}

/* Miniatures images */
.product-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
}

.thumbnail:hover {
    border-color: #333;
}

.thumbnail.active {
    border-color: #000;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.1);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Bouton désactivé */
.add-to-cart-modal:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.add-to-cart-modal:disabled:hover {
    transform: none;
}

/* Caractéristiques */
.product-features {
    list-style: none;
    padding: 0;
}

.product-features li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    gap: 10px;
}

.product-features li:last-child {
    border-bottom: none;
}

.product-features strong {
    min-width: 150px;
    color: #666;
    font-weight: 500;
}

/* Spinner de chargement */
.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animations notifications */
@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .color-option {
        min-width: 60px;
    }
    
    .color-option img,
    .color-swatch {
        width: 40px;
        height: 40px;
    }
    
    .size-option {
        min-width: 50px;
        padding: 8px 12px;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
}
