/**
 * Tectona Grandis Hover Description - CSS
 * Version: 1.0.0
 */

/* ========================================
   CENTRAGE DES VARIATIONS DE MONTURE (MOBILE)
   ======================================== */

@media (max-width: 768px) {
    .wcboost-variation-swatches__wrapper[data-attribute_name="attribute_pa_monture"],
    .wcboost-variation-swatches__wrapper[data-attribute_name="attribute_monture"],
    .variations .wcboost-variation-swatches__wrapper:first-child {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 10px 15px !important;
        width: 100% !important;
    }
    
    .wcboost-variation-swatches__wrapper[data-attribute_name="attribute_pa_monture"] .wcboost-variation-swatches__item,
    .wcboost-variation-swatches__wrapper[data-attribute_name="attribute_monture"] .wcboost-variation-swatches__item,
    .variations .wcboost-variation-swatches__wrapper:first-child .wcboost-variation-swatches__item {
        margin-left: auto !important;
        margin-right: auto !important;
        margin-bottom: 20px !important;
        max-width: 300px !important;
        width: 100% !important;
        display: block !important;
    }
    
    .wcboost-variation-swatches__wrapper[data-attribute_name="attribute_pa_monture"] .wcboost-variation-swatches__item img,
    .wcboost-variation-swatches__wrapper[data-attribute_name="attribute_monture"] .wcboost-variation-swatches__item img,
    .variations .wcboost-variation-swatches__wrapper:first-child .wcboost-variation-swatches__item img {
        display: block !important;
        margin-left: auto !important;
        margin-right: auto !important;
        max-width: 100% !important;
        height: auto !important;
    }
    
    .wcboost-variation-swatches__wrapper[data-attribute_name="attribute_pa_monture"] .wcboost-variation-swatches__name,
    .wcboost-variation-swatches__wrapper[data-attribute_name="attribute_monture"] .wcboost-variation-swatches__name,
    .variations .wcboost-variation-swatches__wrapper:first-child .wcboost-variation-swatches__name {
        text-align: center !important;
        display: block !important;
        width: 100% !important;
        margin-top: 8px !important;
    }
}

@media (max-width: 480px) {
    .wcboost-variation-swatches__wrapper[data-attribute_name="attribute_pa_monture"] .wcboost-variation-swatches__item,
    .wcboost-variation-swatches__wrapper[data-attribute_name="attribute_monture"] .wcboost-variation-swatches__item,
    .variations .wcboost-variation-swatches__wrapper:first-child .wcboost-variation-swatches__item {
        max-width: 280px !important;
    }
}

/* ========================================
   DESCRIPTION TECTONA GRANDIS
   ======================================== */

.tectona-description {
    display: none;
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 20px;
    background: #f9f9f9;
    border-left: 4px solid #d4a574;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    position: relative;
}

.tectona-description.visible {
    display: block;
    animation: slideDown 0.3s ease;
}

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

.tectona-description h3 {
    margin: 0 0 12px 0 !important;
    font-size: 16px !important;
    font-weight: bold !important;
    color: #d4a574 !important;
}

.tectona-description p {
    margin: 0 0 10px 0 !important;
}

.tectona-description p:last-child {
    margin-bottom: 0 !important;
}

/* ========================================
   BOUTON DE FERMETURE
   ======================================== */

.tectona-close-btn {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    background: none !important;
    border: none !important;
    font-size: 20px !important;
    color: #d4a574 !important;
    cursor: pointer !important;
    padding: 5px 10px !important;
    z-index: 10 !important;
    line-height: 1 !important;
    font-weight: bold !important;
}

.tectona-close-btn:hover,
.tectona-close-btn:active {
    color: #b8936a !important;
}

/* ========================================
   INDICATEURS MOBILES (MULTILINGUES)
   ======================================== */

@media (max-width: 1024px) {
    /* Style de la variation */
    .wcboost-variation-swatches__item-tectona-grandis,
    .wcboost-variation-swatches__item[data-value="tectona-grandis"] {
        border: 2px solid transparent !important;
        transition: border-color 0.3s ease !important;
    }
    
    .wcboost-variation-swatches__item-tectona-grandis.selected,
    .wcboost-variation-swatches__item[data-value="tectona-grandis"].selected {
        border-color: #d4a574 !important;
    }
    
    /* Indicateur mobile */
    html[lang*="fr"] .wcboost-variation-swatches__item[data-value="tectona-grandis"]::after,
    body.lang-fr .wcboost-variation-swatches__item[data-value="tectona-grandis"]::after {
        content: "ℹ️ Cliquez pour plus d'infos";
        display: block;
        text-align: center;
        font-size: 11px;
        color: #d4a574;
        margin-top: 5px;
        font-weight: 500;
    }
    
    html[lang*="en"] .wcboost-variation-swatches__item[data-value="tectona-grandis"]::after,
    body.lang-en .wcboost-variation-swatches__item[data-value="tectona-grandis"]::after {
        content: "ℹ️ Click for more info";
        display: block;
        text-align: center;
        font-size: 11px;
        color: #d4a574;
        margin-top: 5px;
        font-weight: 500;
    }
    
    /* Animation mobile */
    .tectona-description {
        padding: 15px !important;
        font-size: 13px !important;
    }
    
    .tectona-description.visible {
        animation: fadeIn 0.3s ease !important;
    }
    
    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(-5px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 480px) {
 
	.wcboost-variation-swatches__wrapper[data-attribute_name="attribute_pa_monture"] .wcboost-variation-swatches__item img,
    .wcboost-variation-swatches__wrapper[data-attribute_name="attribute_monture"] .wcboost-variation-swatches__item img,
    .variations .wcboost-variation-swatches__wrapper:first-child .wcboost-variation-swatches__item img {
		margin-bottom:50px;
	}
}

/*  premier item marge en bas */
@media (max-width: 768px) {
    .wcboost-variation-swatches__wrapper[data-attribute_name="attribute_pa_monture"] .wcboost-variation-swatches__item,
    .wcboost-variation-swatches__wrapper[data-attribute_name="attribute_monture"] .wcboost-variation-swatches__item {
        margin-bottom: 60px !important; /* Augmenter l'espace entre les images */
    }
    
    /* Dernier item : petit marge en bas */
    .wcboost-variation-swatches__wrapper[data-attribute_name="attribute_pa_monture"] .wcboost-variation-swatches__item:last-child,
    .wcboost-variation-swatches__wrapper[data-attribute_name="attribute_monture"] .wcboost-variation-swatches__item:last-child {
        margin-bottom: 30px !important;
    }
}