/* =====================================================
   SINGLE PRODUCT PAGE - DESKTOP FIRST
===================================================== */

/* ============================================
   BASE & LAYOUT (Commun)
============================================ */

* {
    -webkit-tap-highlight-color: transparent;
}

.single-product-page {
    width: 100%;
    padding-top: 130px;
    background: var(--color-white);
}

.product-main-section {
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px 70px;
}

.product-container {
    display: flex;
    gap: 80px;
    align-items: flex-start;
}

/* ============================================
   GALERIE IMAGES
============================================ */

.product-gallery {
    flex: 0 0 610px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.main-image-wrapper {
    position: relative;
    width: 600px;
    cursor: zoom-in;
    border-radius: 8px;
}

img#mainProductImage {
    max-width: 600px;
    transition: opacity 0.3s ease;
}

#mainProductImage.fade-out {
    opacity: 0;
}

.main-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Thumbnails */
.product-thumbnails {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    flex: 1;
    padding: 12px;
    max-width: 450px;
    width: 100%;
    scrollbar-width: none;
}

.thumbnail-item {
    width: 100px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumbnail-item:hover {
    border-color: var(--color-primary-dark);
    transform: scale(1.05);
}

.thumbnail-item.active {
    border-color: var(--color-primary-dark);
    box-shadow: 0 4px 12px rgba(18, 53, 36, 0.2);
}

/* Carrousel Thumbnails */
.thumbnails-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 610px;
    overflow-x: auto;
    padding: 10px;
    scrollbar-width: none;
}

.carousel-btn {
    width: 40px;
    height: 40px;
    background: #FFFFFF;
    border: 1.5px solid #999999;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    z-index: 2;
}

.carousel-btn:hover:not(:disabled) {
    background: #123524;
    border-color: #123524;
}

.carousel-btn:hover:not(:disabled) svg {
    color: #FFFFFF;
}

.carousel-btn:disabled {
    opacity: 0;
    visibility: hidden;
}

.carousel-btn svg {
    color: #123524;
    transition: color 0.3s ease;
}

/* ============================================
   ZONE ACHAT
============================================ */

.product-purchase-zone {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #FAFAF8;
    padding: 30px;
    border-radius: 20px;
}

/* Titre */
.product-header {
    margin-bottom: 0;
    padding-bottom: 16px;
}

.product-title {
    text-align: left;
    padding: 20px 0;
    font-family: 'El Messiri', serif;
    font-size: 48px;
    font-weight: 500;
    line-height: 52px;
    color: var(--color-primary-dark);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Sous-titre / Catégorie */
.product-subtitle {
    margin-bottom: 20px;
}

.product-category-label {
    font-family: 'Work Sans', sans-serif;
    font-size: 24px;
    font-weight: 500;
    line-height: 30px;
    color: var(--color-primary);
    display: inline-block;
}

/* ==================== ZONE ACHAT - REVIEWS ==================== */

.product-reviews {
    margin: 20px 0 30px 0;
}

.reviews-summary {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stars-container {
    display: flex;
    align-items: center;
    flex-direction: column;
}

.star-icon {
    width: 20px;
    height: 20px;
}

.star-full path {
    fill: #123524;
}

.star-empty {
    stroke: #D1D5DB;
    stroke-width: 0.5;
    fill: #E5E7EB;
}

/* Animation hover */
.stars-container:hover .star-icon {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

.reviews-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-family: 'Work Sans', sans-serif;
}

.reviews-rating {
    font-size: 20px;
    font-weight: 500;
    color: #123524;
}

.reviews-count {
    font-size: 14px;
    color: #666;
}

.reviews-link {
    font-size: 16px;
    color: #123524;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.reviews-link:hover {
    color: #0f2a1d;
    text-decoration: underline;
}

.no-reviews {
    font-size: 14px;
    color: #999;
}

.no-reviews-link {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s;
}

.no-reviews-link:hover {
    opacity: 1;
    text-decoration: underline;
    color: #555555;
}

/* Description */
.product-description-block {
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 10px 0;
    margin-bottom: 0;
}

.description-header {
    margin-bottom: 8px;
}

.description-title {
    font-weight: 500;
}

.description-content {
    font-family: 'Work Sans', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 30px;
    color: var(--color-black);
}

.description-content p {
    margin: 0 0 12px 0;
}

.description-content p:last-child {
    margin-bottom: 0;
}

/* Bouton "Lire la suite" — caché par défaut, affiché par JS */
.read-more-btn {
    display: none;
    background: none;
    border: none;
    color: var(--color-primary);
    font-family: 'Work Sans', sans-serif;
    font-size: 16px;
    font-weight: 500;
    padding: 4px 0;
    cursor: pointer;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.read-more-btn svg {
    height: 20px;
    width: 20px;
    transition: transform 0.3s ease;
}

.read-more-btn.expanded svg {
    transform: rotate(180deg);
}

/* Pré-cache avant JS (évite le flash du contenu) */
.description-content.will-truncate-desktop {
    overflow: hidden;
    visibility: hidden;
}

@media (max-width: 768px) {
    .description-content.will-truncate-mobile {
        overflow: hidden;
        visibility: hidden;
    }
}

/* Troncature active (appliquée par JS avec la bonne hauteur mesurée) */
.description-content.description-truncated {
    position: relative;
    overflow: hidden;
    transition: max-height 0.35s ease-out;
}

.description-content.description-truncated::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, #FAFAF8);
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.description-content.description-truncated.expanded::after {
    opacity: 0;
}

/* Spécifications */
.product-specifications {
    border-bottom: 1px solid var(--color-border);
}

.specifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    cursor: pointer;
    transition: background 0.2s ease;
}

.specifications-header:hover {
    background: rgba(18, 53, 36, 0.02);
}

.specifications-title {
    font-family: 'Work Sans', sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 30px;
    color: var(--color-black);
    margin: 0;
}

.specs-toggle-btn {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.specs-toggle-btn .icon-plus {
    width: 26px;
    height: 26px;
    transition: transform 0.3s ease;
}

.specs-toggle-btn.active .icon-plus {
    transform: rotate(45deg);
}

.specifications-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
}

.specifications-content.active {
    max-height: 600px;
    opacity: 1;
    padding: 0 0 16px 0;
}

.spec-row {
    display: flex;
    gap: 12px;
    padding: 8px 0;
    font-family: 'Work Sans', sans-serif;
    font-size: 16px;
    line-height: 24px;
}

.spec-row:last-child {
    padding-bottom: 0;
}

.spec-label {
    font-weight: 600;
    color: var(--color-primary-dark);
}

.spec-value {
    font-weight: 400;
    color: var(--color-black);
    flex: 1;
}

/* Prix */
.product-price-block {
    padding: 60px 0px 20px;
}

.product-price {
    font-family: 'Work Sans', sans-serif;
    font-size: 32px;
    font-weight: 500;
}

.product-price .woocommerce-Price-amount {
    font-size: 32px;
    font-weight: 500;
}

.reassurance-below-text .woocommerce-Price-amount {
    font-size: 18px;
}

/* Alerte Stock */
.stock-alert {
    display: flex;
    gap: 10px;
    padding: 20px 0;
}

svg.icon-alert {
    width: 30px;
    height: 30px;
    color: #CD4E04;
    flex-shrink: 0;
}

.stock-alert span {
    font-family: 'Work Sans', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #cd4e04;
}

.stock-alert strong {
    font-weight: 600;
    color: #cd4e04;
}

/* Rupture de stock */
.out-of-stock-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 0;
}

.out-of-stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f5f5f5;
    color: #888;
    font-family: 'Work Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    width: fit-content;
}

.out-of-stock-badge svg {
    flex-shrink: 0;
    color: #aaa;
}

.out-of-stock-message {
    font-family: 'Work Sans', sans-serif;
    font-size: 15px;
    color: #888;
    line-height: 1.6;
    margin: 0;
}

/* Ajouter au panier */
.product-add-to-cart {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

/* Sélecteur Quantité */
.quantity-selector {
    display: flex;
    align-items: center;
    overflow: hidden;
    height: 56px;
    gap: 5px;
}

.qty-btn {
    width: 48px;
    height: 56px;
    border-radius: 8px;
    background: #eeeeee;
    border: none;
    font-size: 24px;
    font-weight: 500;
    color: var(--color-primary-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover:not(:disabled) {
    background: var(--color-cream);
}

.qty-btn:disabled {
    color: var(--color-border);
    opacity: 0.5;
}

.qty-input {
    width: 80px;
    height: 56px;
    border: 2px solid var(--color-border);
    text-align: center;
    font-family: 'Work Sans', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: var(--color-black);
    outline: none;
}

.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ===== ÉTATS BOUTON AJOUTER AU PANIER ===== */
.btn-primary.loading {
    opacity: 0.7;
    cursor: wait;
    pointer-events: none;
}

.btn-primary.added {
    background: #5A6239 !important;
}

/* Réassurance */
.product-reassurance {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px 0;
    border-top: 1px solid var(--color-border);
}

.reassurance-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reassurance-icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}

.reassurance-text {
    font-family: 'Work Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: var(--color-black);
}

/* ============================================
   PRODUITS SIMILAIRES
============================================ */

.related-products-section {
    max-width: 1440px;
    margin: 60px auto 80px;
    padding: 0 70px;
}

.related-products-grid {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.related-products-wrapper {
    display: flex;
    padding: 20px 24px;
    flex-direction: row;
    gap: 20px;
    overflow-x: auto;
    scrollbar-width: none;
}

/* Carte Produit Similaire */
.related-product-card {
    background: var(--color-white);
    max-width: 200px;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #b9b9b9;
    box-shadow: 0 8px 24px rgba(18, 53, 36, 0.12);
}

.related-product-card:hover {
    border-color: var(--color-primary-dark);
    box-shadow: 0 8px 24px rgba(9, 21, 15, 0.12);
    transform: translateY(-4px);
}

.related-product-card .product-image-wrapper {
    position: relative;
    overflow: hidden;
}

.related-product-card .product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.related-product-card:hover .product-image-wrapper img {
    transform: scale(1.08);
}

.related-product-card .product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-family: 'Work Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.related-product-card .product-info {
    padding: 20px;
    background: #FAFAF8;
    height: 100%;
}

.related-product-card .product-name {
    font-family: 'Work Sans', sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
    color: var(--color-primary-dark);
    margin: 0 0 8px 0;
}

.related-product-card .product-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-product-card .product-name a:hover {
    color: var(--color-primary);
}

.related-product-card .product-price {
    font-family: 'Work Sans', sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: var(--color-black);
}

.related-product-card .product-price .woocommerce-Price-amount {
    font-size: 20px;
}

/* ============================================
   SECTION FEATURES PREMIUM
============================================ */

.features-premium-section {
    width: 100%;
    padding: 20px 0 150px;
    background: #123524;
    position: relative;
    overflow: hidden;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease;
    pointer-events: none;
    z-index: 0;
    filter: blur(80px);
}

.gradient-overlay-1 {
    background: radial-gradient(circle at 50% 100%, #ab7639 0%, transparent 70%);
}

.gradient-overlay-2 {
    background: radial-gradient(circle at 50% 100%, #ac2148 0%, transparent 70%);
}

.gradient-overlay-3 {
    background: radial-gradient(circle at 50% 100%, #14909b 0%, transparent 70%);
}

.gradient-overlay-4 {
    background: radial-gradient(circle at 50% 100%, #12996e 0%, transparent 70%);
}

.features-premium-section.gradient-1 .gradient-overlay-1,
.features-premium-section.gradient-2 .gradient-overlay-2,
.features-premium-section.gradient-3 .gradient-overlay-3,
.features-premium-section.gradient-4 .gradient-overlay-4 {
    opacity: 1;
}

.features-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 80px;
    position: relative;
    display: flex;
    gap: 40px;
    z-index: 1;
    flex-direction: column;
}

.features-header {
    text-align: center;
    padding: 80px 0 60px;
}

.features-header .section-title {
    color: var(--color-white);
}

/* Layout : Image + Contenu */
.feature-layout {
    display: grid;
    grid-template-columns: 548px 1fr;
    gap: 56px;
    align-items: center;
}

/* Image à gauche */
.feature-image-wrapper {
    width: 548px;
    height: 548px;
    position: relative;
}

.feature-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease, transform 0.6s ease;
    position: absolute;
    box-shadow: 0 2px 8px rgba(107, 115, 69, 0.4), 0 8px 24px rgba(61, 90, 66, 0.4);
    opacity: 0;
}

.feature-image.active {
    position: relative;
    border-radius: 24px;
    opacity: 1;
}

.feature-image.fade-out {
    opacity: 0;
}

.feature-image:hover {
    transform: scale(1.02);
}


/* ============================================
BOUTONS CIRCULAIRES AVEC LOTTIE
============================================ */

.feature-buttons-grid {
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: center;
}

/* Wrapper avec halo */
.feature-btn-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.feature-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 80px;
    height: 100%;
    padding: 30px;
    align-items: center;
    justify-content: flex-start;
}

/* Halo turquoise derrière le bouton */
.feature-btn-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(82, 192, 206, 0) 54%, 
        rgba(82, 192, 206, 1) 55%, 
        rgba(255, 255, 255, 0) 70%
    );
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 0;
}

/* Halo visible au hover (intensité réduite) */
.feature-btn-wrapper:hover::before {
    opacity: 0.5;
}

/* Halo visible sur active (intensité pleine) */
.feature-btn-wrapper.active::before {
    opacity: 1;
}

/* Bouton circulaire */
.feature-circle-btn {
    width: 80px;
    height: 80px;
    border: none;
    border-radius: 50%;
    overflow: hidden;
    background: transparent;
    padding: 0;
    position: relative;
    z-index: 1;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}

/* Style du player Lottie */
.feature-circle-btn dotlottie-player {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}


/* ============================================
TEXTE DYNAMIQUE
============================================ */

.feature-text-nav {
    display: contents; /* transparent sur desktop — les chevrons sont cachés */
}

.feature-nav-btn {
    display: none !important; /* cachés sur desktop, affichés uniquement via media query mobile */
}

.feature-text-content {
    text-align: center;
}

.feature-content-title {
    font-family: 'El Messiri', serif;
    font-weight: 500;
    font-size: 32px;
    line-height: 32px;
    color: #FFFFFF;
    margin: 0 0 40px 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.feature-content-title.fade-out {
    opacity: 0;
    transform: translateY(-10px);
}

.feature-content-description {
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 30px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.feature-content-description.fade-out {
    opacity: 0;
    transform: translateY(-10px);
}

/* ============================================
   SECTION CONTENU DU KIT
============================================ */

.kit-content-section {
    padding: 50px 70px;
    background: var(--color-cream);
}

.kit-container {
    max-width: 1300px;
    margin: 0 auto;
}

/* Accordéons */
.kit-accordions {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.kit-accordion {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(18, 53, 36, 0.08);
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    position: relative;
}

.kit-accordion:hover {
    box-shadow: 0 6px 32px rgba(18, 53, 36, 0.12);
    transform: translateY(-2px);
}

/* Header accordéon */
.kit-accordion-header {
    padding-left: 40px;
    cursor: pointer;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
    position: relative;
    transition: padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Réduire hauteur quand actif */
.kit-accordion.active .kit-accordion-header {
    padding-left: 40px;
    min-height: 100px;
}

/* Texte header */
.kit-accordion-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kit-accordion-title {
    font-family: 'El Messiri', serif;
    font-size: 32px;
    font-weight: 500;
    color: var(--color-primary-dark);
    margin: 0;
    transition: font-size 0.3s ease;
}

.kit-accordion.active .kit-accordion-title {
    font-size: 28px;
}

.kit-accordion-subtitle {
    font-family: 'Work Sans', sans-serif;
    font-size: 18px;
    color: rgba(0, 0, 0, 0.7);
    margin: 0;
    transition: font-size 0.3s ease;
}

.kit-accordion.active .kit-accordion-subtitle {
    font-size: 16px;
}

.kit-accordion-thumb {
    width: 410px;
    height: 247px;
    border-radius: 8px;
    overflow: hidden;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.kit-accordion-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* État actif (ouvert) */
.kit-accordion.active .kit-accordion-thumb {
    opacity: 0;
    pointer-events: none;
    height: 200px;
}

/* Chevron ouverture onglet */
.kit-accordion-arrow {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.kit-accordion:hover .kit-accordion-arrow {
    opacity: 1;
}

.kit-accordion.active .kit-accordion-arrow {
    opacity: 1 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    pointer-events: auto;
    transform: translateX(-50%) rotate(180deg);
}

.kit-accordion-content {
    display: none;
    opacity: 0;
    padding: 0 40px;
}

.kit-accordion.active .kit-accordion-content {
    display: block;
    padding: 0 40px 40px 40px;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.kit-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 30px;
    transform: translateZ(0);
    will-change: auto;
}

.kit-item-image {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    justify-content: center;
}

.kit-item-image img {
    width: 250px;
    object-fit: cover;
    transform: translateZ(0);
}

.kit-item-text {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kit-item-name {
    font-family: 'Work Sans', serif;
    font-size: 20px;
    font-weight: 500;
    color: var(--color-primary-dark);
    margin: 0;
    text-align: center;
}

.kit-item-description {
    font-family: 'Work Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(0, 0, 0, 0.8);
    text-align: center;
}

.kit-item.kit-item--text-only .kit-item-description {
    text-align: left;
}

/* ============================================
   FAQ
============================================ */

.faq-section {
    padding: 80px 70px;
    background: #fff;
}

.faq-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    flex-direction: column;
}

.faq-list {
    display: flex;
    flex-direction: column;
}

.faq-item {
    border-bottom: 1px solid #D4D4D4;
}

.faq-question-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.faq-question-wrapper:hover {
    background-color: rgba(18, 53, 36, 0.02);
}

.faq-question {
    font-family: 'Work Sans', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 30px;
    color: #000;
    margin: 0;
    flex: 1;
    padding-right: 20px;
}

.faq-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-icon {
    width: 24px;
    height: 24px;
    stroke: #000;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* Animation wrapper - MAX-HEIGHT OPTIMISÉ */
.faq-answer-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer-wrapper {
    max-height: 1000px; /* Valeur haute pour couvrir tous les contenus */
}

/* Contenu réponse */
.faq-answer {
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 26px;
    color: #333;
    margin: 0;
    padding: 0 0 16px 0; /* Padding fixe */
}

/* ============================================
   AVIS CLIENTS
============================================ */

.reviews-section {
    padding: 80px 70px;
    background: #fff;
}

.carousel-arrows {
    display: flex;
    gap: 40px;
    justify-content: center;
    margin-bottom: 50px;
}

.carousel-arrow {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.carousel-arrow:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 32px rgba(0, 0, 0, 0.12);
}

.carousel-arrow:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.reviews-carousel-wrapper {
    overflow: hidden;
    margin-bottom: 40px;
    position: relative;
    width: 100%;
    max-width: calc((444px * 2.5) + (60px * 2));
    margin-left: auto;
    margin-right: auto;
}

.reviews-carousel-wrapper::before,
.reviews-carousel-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50px;
    pointer-events: none;
    z-index: 10;
}

.reviews-carousel-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #fff, transparent);
}

.reviews-carousel-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #fff, transparent);
}

.reviews-carousel {
    display: flex;
    gap: 60px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 40px 40px;
    width: max-content;
}

/* ========== CARTE AVIS ========== */
.review-card {
    max-width: 370px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(24px);
    border-radius: 16px;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.review-card.no-image {
    padding: 30px;
    max-height: max-content;
}

.review-card.has-image {
    display: flex;
    flex-direction: column;
    padding: 32px 15px 15px 15px;
}

/* Stars */
.review-stars {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* Badge Avis Vérifié */
.verified-review {
    display: inline-block;
    background: #4CAF50;
    width: max-content;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    margin-left: 8px;
}

/* Texte avis */
.review-text {
    font-family: 'Josefin Sans', sans-serif;
    font-style: italic;
    font-size: 20px;
    line-height: 30px;
    color: #555;
    text-align: center;
    margin: 0;
}

.review-author {
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 30px;
    color: #000;
    text-align: center;
    margin: 0;
}

/* Image avis */
.review-image-wrapper {
    width: 100%;
    height: 316px;
    overflow: hidden;
    border-radius: 8px;
    margin-top: auto;
}

.review-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reviews-see-all {
    display: flex;
    align-content: center;
    justify-content: center;
}

/* ============================================
   RÉASSURANCE
============================================ */

.reassurance-below-section {
    background: var(--color-cream);
    padding: 30px 70px;
}

.reassurance-below-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    gap: 80px;
    align-items: center;
    justify-content: center;
}

.reassurance-below-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    flex: 1;
    max-width: 216px;
}

.reassurance-below-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reassurance-below-icon svg {
    stroke: #555555;
    stroke-width: 2;
}

.reassurance-below-text h4 {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 25px;
    color: #555555;
    margin: 0 0 5px 0;
}

.reassurance-below-text p {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 25px;
    color: #555555;
    margin: 0;
}


/* Responsive */
@media (min-width: 770px) and (max-width: 1300px) {

    .product-gallery {
        flex: 0;
    }

    .product-purchase-zone {
        flex: 0;
        min-width: 500px;

    }

    .product-container {
        display: flex;
        gap: 40px;
        align-items: flex-start;
    }

    .product-add-to-cart {
        flex-direction: column;
    }

    .spec-row {
        flex-direction: column;
    }

    .features-header {
        padding: 0;
    }

    .feature-content-wrapper {
        gap: 60px;
    }

    .feature-layout {
        grid-template-columns: auto 1fr;
        gap: 50px;
    }

    .feature-image-wrapper {
        width: 448px;
        height: 448px;
    }

    .feature-buttons-grid {
        gap: 10px;
    }

    .feature-btn-wrapper::before {
        width: 85px;
        height: 85px;
    }

    .feature-circle-btn {
        width: 60px;
        height: 60px;
    }
}

/* ============================================
   MOBILE OVERRIDES (max-width: 768px)
============================================ */

@media (max-width: 768px) {
    
    /* Layout général */
    .single-product-page {
        padding-top: 200px;
    }

    .product-main-section {
        padding: 20px 24px;
    }

    .product-container {
        flex-direction: column;
        gap: 24px;
    }

    /* Ordre flex mobile */
    .product-gallery { order: 1; }
    .product-purchase-zone { order: 2; }

    /* Galerie */
    .product-gallery {
        flex: 1;
        width: 100%;
    }

    .main-image-wrapper {
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        touch-action: pan-y;
    }


    .main-product-image {
        transform-origin: center center;
        user-select: none;
        -webkit-user-select: none;
    }
    
    img#mainProductImage {
        max-width: 100%;
    }

    /* Thumbnails mobile */
    .thumbnails-carousel-wrapper {
        width: 100%;
        max-width: 100%;
        display: block;
        overflow-x: auto;
        padding: 10px;
        scrollbar-width: none;
    }

    .carousel-btn {
        display: none;
    }

    .product-thumbnails {
        flex-direction: row;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        max-width: 100%;
        scrollbar-width: none;
    }

    .product-thumbnails::-webkit-scrollbar {
        display: none;
    }

    .thumbnail-item {
        width: 120px;
        scroll-snap-align: start;
    }

    /* Zone achat mobile */
    .product-purchase-zone {
        width: 100%;
        gap: 20px;
    }

    .product-header {
        order: 1;
        margin-bottom: 8px;
    }

    .product-title {
        padding: 0;
        font-size: 36px;
        line-height: 44px;
    }

    .product-subtitle {
        order: 2;
        margin-bottom: 10px;
    }

    .product-category-label {
        font-size: 20px;
        line-height: 30px;
    }

    /* Reviews */
    .product-reviews {
        order: 3;
        padding: 12px 0;
        margin: 0;
    }

    .star-icon {
        width: 16px;
        height: 16px;
    }

    .reviews-rating {
        font-size: 20px;
    }

    .reviews-count,
    .reviews-link {
        font-size: 14px;
    }

    .product-price-block {
        order: 4;
        padding: 12px 0;
    }

    .woocommerce-Price-amount {
        font-size: 32px;
    }

    .mobile-atc-bar {
        display: none !important;
    }

    .product-add-to-cart {
        display: flex;
        flex-direction: column;
        order: 5;
        margin-bottom: 15px;
    }

    .grid-button .btn-primary {
        width: 100%;
    }

    /* Description mobile */
    .product-description-block {
        order: 6;
        padding: 10px 0;
    }

    .description-content p {
        font-size: 18px;
        line-height: 28px;
    }

    /* Specs mobile */
    .product-specifications {
        order: 7;
        padding: 10px 0;
    }

    .specifications-header {
        justify-content: space-between;
        padding: 4px 0;
        width: 100%;
    }

    .specs-toggle-btn {
        width: 26px;
        height: 26px;
        margin-left: 12px;
    }

    .specs-toggle-btn .icon-plus {
        width: 26px;
        height: 26px;
    }

    .specifications-content.active {
        max-height: 800px;
        padding-top: 8px;
    }

    .spec-row {
        flex-direction: column;
        gap: 4px;
        padding: 12px 0;
        border-bottom: 1px solid var(--color-border-light);
    }

    /* Réassurance mobile */
    .grid-reassurance {
    order: 6;
}

    .product-reassurance {
        order: 8;
        display: flex !important;
        gap: 15px;
        padding: 20px 0;
    }

    .reassurance-icon {
        width: 22px;
        height: 22px;
    }

    .reassurance-text {
        font-size: 18px;
        line-height: 22px;
    }

    .stock-alert {
        padding: 0;
    }

    /* Produits similaires mobile */
    .section-title {
        text-align: center;
        padding: 40px 24px;
    }

    .related-products-section {
        padding: 50px 24px;
        overflow: hidden;
        margin: 0;
    }

    .related-products-grid {
        scrollbar-width: none;
    }

    .related-products-grid::-webkit-scrollbar {
        display: none;
    }

    .related-product-card {
        width: 100%;
        border-radius: 8px;
        scroll-snap-align: start;
        box-shadow: 0 4px 20px #D4D4D4;
    }

    .related-products-wrapper {
        padding: 20px 24px;
        gap: 16px;
        scrollbar-width: none;
        min-width: 800px;
    }

    .related-product-card .product-image-wrapper {
        border-radius: 8px;
        height: auto;
        margin-bottom: 12px;
        padding: 5px;
    }

    .related-product-card .product-badge {
        top: 5px;
        left: 3px;
        padding: 4px 8px;
        font-size: 10px;
    }

    .related-product-card .product-info {
        padding: 10px;
        gap: 4px;
        height: auto;
    }

    .related-product-card .product-name {
        margin: 0;
        padding: 0;
        height: auto;
    }

    .related-product-card .product-name a {
        font-size: 18px;
        line-height: 18px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .related-product-card .product-price {
        font-size: 16px;
        line-height: 20px;
    }

    .related-product-card .product-price .woocommerce-Price-amount {
        font-size: 16px;
    }

    /* Features mobile */
    .features-premium-section {
        min-height: 1100px;
        padding: 60px 24px 80px;
    }

    .features-container {
        max-width: 100%;
        padding: 0;
    }

    .features-header {
        padding: 0px;
    }

    .feature-layout {
        display: flex;
        flex-direction: column;
        gap: 35px;
    }

    .feature-image-wrapper {
        order: 1;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .feature-content-wrapper {
        order: 2;
        gap: 20px;
        padding: 0;
    }

    .feature-buttons-grid {
        order: 1;
        gap: 20px;
    }

    .feature-text-nav {
        order: 2;
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 20px 0 0 0;
    }

    .feature-text-content {
        flex: 1;
        min-width: 0;
    }

    .feature-nav-btn {
        flex-shrink: 0;
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        background: rgba(255, 255, 255, 0.15);
        border: none;
        border-radius: 50%;
        cursor: pointer;
        transition: background 0.2s ease;
    }

    .feature-nav-btn:hover {
        background: rgba(255, 255, 255, 0.28);
    }

    .feature-image {
        border-radius: 8px;
    }

    .feature-btn-wrapper {
        width: 60px;
        height: 60px;
    }

    .feature-btn-wrapper::before {
        width: 84px;
        height: 84px;
    }

    .feature-circle-btn {
        width: 60px;
        height: 60px;
    }

    .feature-content-title {
        margin: 0 0 20px 0;
    }

/* ============================================
    KIT CONTENT SECTION MOBILE
    ============================================ */
    .kit-content-section {
        padding: 50px 24px;
        background: var(--color-cream);
    }

    .kit-container {
        width: 100%;
    }

    /* Header titre */
    .kit-header {
        margin-bottom: 30px;
    }

    .kit-accordions {
        gap: 15px;
    }

    .kit-accordion {
        width: 100%;
        border-radius: 8px;
    }

    .kit-accordion-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 15px 20px;
        cursor: pointer;
        position: relative;
        background: #FFFFFF;
    }

    .kit-accordion-text {
        text-align: center;
        width: 100%;
    }

    .kit-accordion-title {
        font-size: 24px;
        line-height: 32px;
        margin: 0 0 10px 0;
    }

    .kit-accordion-subtitle {
        font-size: 18px;
        line-height: 30px;
    }

    .kit-accordion-thumb {
        display: none;
    }

    .kit-accordion-arrow {
        position: static;
        width: 100%;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 15px 20px;
        opacity: 1;
        pointer-events: auto;
        transition: transform 0.3s ease;
        transform: none;
    }

    .kit-accordion-arrow svg {
        width: 24px;
        height: 24px;
        stroke: #555555;
    }

    .kit-accordion.active .kit-accordion-arrow {
        transform: rotate(180deg);
        position: static;
    }

    /* Supprimer le hover desktop sur mobile */
    .kit-accordion:hover .kit-accordion-arrow {
        opacity: 1; /* Garde toujours visible */
    }

    .kit-accordion-content {
        max-height: 0;
        transition: max-height 0.4s ease;
        padding: 0 20px;
    }

    .kit-accordion.active .kit-accordion-content {
        max-height: 2000px;
        padding: 15px 20px 20px 20px;
    }

    .kit-items-grid {
        flex-direction: column;
        gap: 15px;
    }

    .kit-item--with-image {
        display: grid;
        grid-template-columns: 1fr 150px;
        gap: 10px;
        padding: 10px;
        border-radius: 8px;
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    }

    .kit-item-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 8px;
    }

    .kit-item-name {
        font-size: 16px;
        line-height: 20px;
    }

    .kit-item-description {
        font-size: 14px;
        line-height: 20px;
    }

    .kit-item-image {
        width: 90px;
        height: auto;
        align-items: center;
        justify-content: center;
    }

    .kit-item-image img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .kit-items-text-wrapper {
        gap: 12px;
        margin-top: 15px;
    }

    .kit-item--text-only {
        padding: 12px;
        background: rgba(0, 0, 0, 0.02);
        border-radius: 4px;
    }

    .kit-item--text-only .kit-item-description {
        font-size: 14px;
        line-height: 20px;
    }

    /* FAQ mobile */

    .faq-section {
        padding: 0;
    }
    .faq-list {
        padding: 20px 24px;
        gap: 0;
    }

    .faq-title {
        padding: 80px 24px 50px;
    }

    .faq-question-wrapper {
        display: grid;
        grid-template-columns: 1fr 24px;
        gap: 10px;
        padding: 10px;
        min-height: 80px;
    }

    .faq-question {
        font-size: 18px;
        line-height: 30px;
    }

    .faq-toggle {
        width: 24px;
        height: 24px;
        pointer-events: none;
    }

    .faq-icon {
        width: 16px;
        height: 16px;
    }

    .faq-item.active .faq-icon {
        transform: rotate(45deg);
    }

    .faq-answer-wrapper {
        max-height: 0;
        transition: max-height 0.3s ease;
    }

    .faq-item.active .faq-answer-wrapper {
        max-height: 800px;
    }

    .faq-answer {
        font-size: 16px;
        line-height: 24px;
        padding: 0 10px 20px 10px;
    }

    /* Avis mobile */
    .reviews-section {
        padding: 20px 0;
    }

    .carousel-arrows {
        display: none;
    }

    .reviews-carousel-wrapper {
        overflow: auto;
        margin: 0;
        padding: 24px;
        max-width: 100%;
    }

    .reviews-carousel-wrapper::before,
    .reviews-carousel-wrapper::after {
        display: none;
    }

    .reviews-carousel {
        gap: 20px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        transition: none;
    }

    .reviews-carousel::-webkit-scrollbar {
        display: none;
    }

    .review-card {
        min-width: 280px;
        max-width: 280px;
        scroll-snap-align: start;
        gap: 12px;
    }

    .review-card.no-image {
        padding: 24px;
    }

    .review-card.has-image {
        padding: 24px 12px 12px 12px;
    }

    .review-stars {
        gap: 8px;
    }

    .review-stars svg {
        width: 16px;
        height: 16px;
    }

    .verified-review {
        font-size: 11px;
    }

    .review-text {
        font-size: 16px;
        line-height: 24px;
        display: -webkit-box;
        -webkit-line-clamp: 6;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .review-author {
        font-size: 16px;
        line-height: 24px;
    }

    .review-image-wrapper {
        height: 200px;
    }

    .reviews-see-all {
        padding: 0 24px;
        margin-top: 30px;
    }

    .reviews-see-all .btn-primary {
        width: 100%;
        max-width: 342px;
    }

    /* Réassurance bas mobile */
    .reassurance-below-section {
        padding: 40px 24px;
    }

    .reassurance-below-container {
        flex-direction: column;
        gap: 30px;
        width: 100%;
        max-width: 342px;
    }

    .reassurance-below-item {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .reassurance-below-icon {
        flex-shrink: 0;
    }

    .reassurance-below-text {
        flex-direction: column;
        gap: 4px;
    }

    .reassurance-below-text h4 {
        font-size: 18px;
        line-height: 24px;
        font-weight: 600;
        color: #000000;
    }

    .reassurance-below-text p {
        font-size: 14px;
        line-height: 20px;
        color: #555555;
    }
}
/* ── Badge promo page produit ── */
.product-promo-badge {
    display: inline-flex;
    align-items: center;
    font-size: 16px;
    gap: 4px;
    background: #f3f8f4;
    border: 1.5px solid #a5c9ae;
    border-radius: 20px;
    padding: 7px 16px;
    margin: 14px 0;
    color: #1a5c2c;
    width: fit-content;
}

.product-promo-badge .promo-badge-prefix {
    font-weight: 400;
}

.product-promo-badge .promo-badge-offer {
    font-weight: 700;
}
/* ── Quantity dropdown mobile ── */
.qty-dropdown { display: none; }

@media (max-width: 768px) {
    #mainAddToCartForm {
        display: flex;
        gap: 8px;
        align-items: stretch;
    }

    .qty-dropdown {
        display: block;
        position: relative;
        flex-shrink: 0;
    }

    .qty-dropdown-toggle {
        display: flex;
        align-items: center;
        gap: 6px;
        height: 100%;
        padding: 0 16px;
        background: #fff;
        border: 1.5px solid #ccc;
        border-radius: 8px;
        font-size: 15px;
        font-weight: 600;
        color: #123524;
        cursor: pointer;
        font-family: inherit;
        white-space: nowrap;
        transition: border-color 0.2s;
    }

    .qty-dropdown-toggle.open,
    .qty-dropdown-toggle:focus { border-color: #123524; outline: none; }

    .qty-dropdown-list {
        position: absolute;
        bottom: calc(100% + 4px);
        left: 0;
        min-width: 100%;
        background: #fff;
        border: 1.5px solid #123524;
        border-radius: 8px;
        list-style: none;
        margin: 0;
        padding: 4px 0;
        z-index: 50;
        box-shadow: 0 -4px 16px rgba(18,53,36,0.12);
        opacity: 0;
        transform: translateY(6px);
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s 0.18s;
    }

    .qty-dropdown-list.open {
        opacity: 1;
        transform: translateY(0);
        visibility: visible;
        pointer-events: auto;
        transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s 0s;
    }

    .qty-dropdown-item {
        padding: 10px 20px;
        cursor: pointer;
        font-size: 14px;
        color: #333;
        text-align: center;
        transition: background 0.15s;
    }

    .qty-dropdown-item + .qty-dropdown-item { border-top: 1px solid #f0f0f0; }
    .qty-dropdown-item:hover { background: #f3f8f4; }

    .qty-dropdown-item.selected {
        color: #123524;
        font-weight: 700;
        background: #eaf4ec;
    }

    .grid-button { flex: 1; }
}

@media (max-width: 768px) {
    .desktop-only { display: none !important; }
}
