/* First Optic — fiche produit (mise en page WoodMart « Fiche produit — First Optic »).
   Chaque bloc du modèle Elementor porte une classe fo-fiche-* (voir l'onglet Avancé → Classes CSS). */
body.single-product, .fo-fiche { --fo-or: #C4A265; --fo-or-clair: #D4B97B; --fo-or-fonce: #A8864A; --fo-sombre: #2B2B2B; --fo-noir: #0A0A0A; --fo-creme: #F7F4EF; --fo-creme-2: #EDE8E0; --fo-creme-3: #E4DDD1; --fo-gris: #767676; --fo-gris-2: #4A4A4A; --fo-texte-doux: #B8A993; --fo-serif: "Cormorant Garamond", Georgia, serif; --fo-sans: "Manrope", system-ui, sans-serif; }
body.single-product .wd-page-content, body.single-product .main-page-wrapper { background: var(--fo-creme); }

.fo-eyebrow { font-family: var(--fo-sans); font-size: .7rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--fo-or-fonce); margin: 0 0 .9rem; }
.fo-fiche-h2, .fo-fiche .elementor-heading-title.fo-fiche-h2 { font-family: var(--fo-serif); font-weight: 300; font-size: clamp(1.9rem, 3vw, 2.4rem); line-height: 1.12; color: var(--fo-sombre); margin: 0 0 1.3rem; }
.fo-fiche-h2 em { font-style: italic; font-weight: 400; color: var(--fo-or); }

/* ---- Haut : fil d'Ariane + navigation ---- */
body.single-product .wd-content-layout.wd-builder-on { padding-top: 0; }
.e-con.fo-fiche-haut { --padding-top: 0px; padding-top: 0; }
.fo-fiche-haut .wd-breadcrumbs, .fo-fiche-haut .woocommerce-breadcrumb { font-size: .72rem; color: var(--fo-gris); }

/* ---- Galerie ---- */
.fo-fiche-galerie .woocommerce-product-gallery { background: transparent; }
.fo-fiche-galerie .wd-carousel-item img, .fo-fiche-galerie .woocommerce-product-gallery__image img { background: #fff; }
.fo-fiche-galerie .wd-gallery-images .wd-carousel-wrap, .fo-fiche-galerie .woocommerce-product-gallery__wrapper { background: #fff; }
.fo-fiche-galerie .wd-gallery-thumb img { aspect-ratio: 1 / 1; height: auto !important; object-fit: contain !important; background: #fff; border: 1px solid transparent; }
.fo-fiche-galerie .wd-gallery-thumb .wd-thumb-active img { border-color: var(--fo-or); }
/* Elementor impose .e-con { position: var(--position); align-self: var(--align-self) } : on passe par ses variables. */
@media (min-width: 1025px) { .e-con.fo-fiche-galerie { --position: sticky; --align-self: flex-start; position: sticky; top: 120px; align-self: flex-start; } }

/* ---- Panneau d'achat ---- */
.fo-fiche-achat .wd-product-brands, .fo-fiche-achat .wd-single-brands { margin-bottom: .6rem; }
.fo-fiche-achat .wd-product-brands a, .fo-fiche-achat .wd-single-brands a { display: inline-block; border: 0; padding: 0 0 .2rem; background: none; border-bottom: 1px solid var(--fo-or); font-family: var(--fo-sans); font-size: .7rem; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: var(--fo-or-fonce); }
.fo-fiche-achat .wd-product-brands img, .fo-fiche-achat .wd-single-brands img { display: none; }
.fo-fiche-achat .product_title, .fo-fiche-achat h1 { font-family: var(--fo-serif) !important; font-weight: 300 !important; font-size: clamp(2.2rem, 3.4vw, 3.1rem) !important; line-height: 1.05 !important; color: var(--fo-sombre); margin: .2rem 0 .5rem; text-transform: none; letter-spacing: .3px; }
.fo-fiche-meta { font-size: .78rem; color: var(--fo-gris); margin: 0; letter-spacing: .02em; }
.fo-fiche-meta span { color: var(--fo-creme-3); margin: 0 .3rem; }
.fo-fiche-prix { border-bottom: 1px solid var(--fo-creme-3); padding: 1.3rem 0 1.4rem !important; margin-bottom: 1.4rem; }
.fo-fiche-prix .price, .fo-fiche-prix .amount { font-family: var(--fo-serif); font-size: 2rem; font-weight: 500; color: var(--fo-sombre) !important; white-space: nowrap; }
.fo-fiche-prix-note, .fo-fiche-prix-note p { font-size: .72rem; color: var(--fo-gris); margin: 0; }

/* Formulaire d'achat : coloris, bouton JeeLens, monture seule */
.fo-fiche-achat .variations_form .variations { margin-bottom: 1rem; }
.fo-fiche-achat .variations th, .fo-fiche-achat .variations .label, .fo-fiche-achat .variations label { font-family: var(--fo-sans); font-size: .68rem !important; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--fo-sombre); }
.fo-fiche-achat .wd-swatch.wd-bg, .fo-fiche-achat .wd-swatches-product .wd-swatch { width: 74px !important; height: 74px !important; border-radius: 0 !important; background-color: #fff; background-size: contain !important; border: 1px solid var(--fo-creme-3); }
.fo-fiche-achat .wd-swatch.wd-active, .fo-fiche-achat .wd-swatch:hover { border-color: var(--fo-sombre) !important; box-shadow: inset 0 0 0 1px var(--fo-sombre); }
.fo-fiche-achat .wd-swatch .wd-swatch-text { font-size: .62rem; }
.fo-fiche-achat .quantity { display: none !important; }
.fo-fiche-achat .woocommerce-variation-add-to-cart, .fo-fiche-achat form.cart:not(.variations_form) { display: flex; flex-direction: column; gap: .6rem; }
.fo-fiche-achat .single_add_to_cart_button { width: 100%; min-height: 52px; background: transparent !important; color: var(--fo-sombre) !important; border: 1px solid var(--fo-sombre) !important; border-radius: 0; font-family: var(--fo-sans); font-size: .7rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; box-shadow: none; }
.fo-fiche-achat .single_add_to_cart_button:hover { background: var(--fo-sombre) !important; color: #fff !important; }
/* Bouton du configurateur JeeLens = action principale, en encadré (le noir plein était trop lourd, 05/10).
   Couleurs à changer ici : fond --fo-creme-2, cadre --fo-sombre ; au survol il passe en sombre. */
.fo-fiche-achat .jeelens-open, .fo-fiche-achat [data-jl-open] { width: 100%; background: var(--fo-creme-2) !important; color: var(--fo-sombre) !important; border: 2px solid var(--fo-sombre) !important; border-radius: 0; padding: 1.2rem 1.5rem !important; margin: .2rem 0 .1rem !important; text-align: left; transition: background .3s, color .3s; }
.fo-fiche-achat [data-jl-open] * { color: inherit; }
.fo-fiche-achat [data-jl-open] .jl-launch-label, .fo-fiche-achat [data-jl-open] .jl-btn-title, .fo-fiche-achat [data-jl-open] strong { display: block; margin-bottom: .3rem; font-family: var(--fo-sans); font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--fo-sombre) !important; }
.fo-fiche-achat [data-jl-open] .jl-launch-sub, .fo-fiche-achat [data-jl-open] .jl-btn-sub, .fo-fiche-achat [data-jl-open] small { color: var(--fo-gris-2) !important; }
.fo-fiche-achat [data-jl-open] svg { stroke: var(--fo-or-fonce) !important; color: var(--fo-or-fonce) !important; transition: transform .3s; }
.fo-fiche-achat [data-jl-open]:hover, .fo-fiche-achat [data-jl-open]:focus-visible { background: var(--fo-sombre) !important; }
.fo-fiche-achat [data-jl-open]:hover .jl-launch-label, .fo-fiche-achat [data-jl-open]:focus-visible .jl-launch-label { color: #fff !important; }
.fo-fiche-achat [data-jl-open]:hover .jl-launch-sub, .fo-fiche-achat [data-jl-open]:focus-visible .jl-launch-sub { color: var(--fo-texte-doux) !important; }
.fo-fiche-achat [data-jl-open]:hover svg { stroke: var(--fo-or-clair) !important; transform: translateX(3px); }
/* Liste de souhaits */
.fo-fiche-achat .wd-wishlist-btn { margin-top: .4rem; }
.fo-fiche-achat .wd-wishlist-btn a { display: inline-flex; align-items: center; min-height: 24px; font-size: .72rem; font-weight: 600; color: var(--fo-gris-2); } /* zone de clic ≥ 24 px (accessibilité) */

/* Atouts (liste d'icônes Elementor) */
.fo-fiche-atouts { border-top: 1px solid var(--fo-creme-3); border-bottom: 1px solid var(--fo-creme-3); padding: 1.2rem 0 !important; margin-top: 1.4rem; }
.fo-fiche-atouts .elementor-icon-list-items { display: grid !important; grid-template-columns: 1fr 1fr; gap: .8rem 1.4rem; }
.fo-fiche-atouts .elementor-icon-list-item { margin: 0 !important; padding: 0 !important; }
.fo-fiche-atouts .elementor-icon-list-item::after { display: none !important; }
.fo-fiche-atouts .elementor-icon-list-item .elementor-icon-list-text { font-size: .74rem; color: var(--fo-gris-2); }
.fo-fiche-atouts .elementor-icon-list-icon i, .fo-fiche-atouts .elementor-icon-list-icon svg { color: var(--fo-or-fonce); fill: var(--fo-or-fonce); font-size: 16px; width: 16px; }

/* Encart conseil */
.fo-fiche-conseil { background: var(--fo-creme-2); padding: 1.1rem 1.2rem !important; margin-top: 1.4rem; display: flex; flex-direction: row !important; gap: 1rem; align-items: center; }
.fo-fiche-conseil img { width: 54px !important; height: 54px !important; border-radius: 50%; object-fit: cover; object-position: center 20%; }
.fo-fiche-conseil .elementor-widget-image { flex: none; width: auto !important; }
.fo-fiche-conseil p { font-size: .74rem; line-height: 1.55; color: var(--fo-gris-2); margin: 0; }
.fo-fiche-conseil p strong { display: block; font-family: var(--fo-serif); font-size: 1.05rem; font-weight: 500; color: var(--fo-sombre); }
.fo-fiche-conseil a { font-weight: 700; color: var(--fo-sombre); border-bottom: 1px solid var(--fo-or); }

/* ---- Le modèle + caractéristiques ---- */
.fo-fiche-modele { background: #fff; }
.fo-fiche-modele-texte p { font-size: .88rem; line-height: 1.9; color: var(--fo-gris-2); }
.fo-fiche-modele-texte ul { padding-left: 1.1rem; font-size: .86rem; color: var(--fo-gris-2); line-height: 1.9; }
.fo-fiche-modele .shop_attributes, .fo-fiche-modele .woocommerce-product-attributes { border-top: 1px solid var(--fo-creme-3); margin: 0; }
/* Le tableau WoodMart du builder met chaque ligne en flex : le trait est porté par la ligne. */
.fo-fiche-modele .shop_attributes { width: 100%; }
.fo-fiche-modele .shop_attributes tbody { gap: 0 !important; }
.fo-fiche-modele .shop_attributes tr { padding: 0 !important; margin: 0 !important; gap: 0 1.2rem; }
.fo-fiche-modele .woocommerce-product-attributes-item { border-bottom: 1px solid var(--fo-creme-3) !important; }
.fo-fiche-modele .shop_attributes th, .fo-fiche-modele .shop_attributes td { padding: .9rem 0 !important; border: 0 !important; background: none !important; font-size: .8rem; text-align: left !important; }
.fo-fiche-modele .shop_attributes th { width: 40%; flex: 0 0 40%; }
.fo-fiche-modele .shop_attributes td { flex: 1 1 auto; }
.fo-fiche-modele .shop_attributes .wd-attr-name, .fo-fiche-modele .shop_attributes .wd-term-name { border: 0 !important; }
.fo-fiche-modele .shop_attributes th, .fo-fiche-modele .woocommerce-product-attributes-item__label { font-weight: 400; color: var(--fo-gris); text-transform: none; letter-spacing: .04em; }
.fo-fiche-modele .shop_attributes td, .fo-fiche-modele .woocommerce-product-attributes-item__value { font-weight: 500; color: var(--fo-sombre); }
.fo-fiche-modele .shop_attributes td p { margin: 0; }
/* Accordéons */
.fo-fiche-accordeons .e-n-accordion-item, .fo-fiche-accordeons .elementor-accordion-item { border: 0 !important; border-bottom: 1px solid var(--fo-creme-3) !important; }
.fo-fiche-accordeons .e-n-accordion-item-title, .fo-fiche-accordeons .elementor-tab-title { padding: 1.1rem 0 !important; background: none !important; border: 0 !important; }
.fo-fiche-accordeons .e-n-accordion-item-title-text, .fo-fiche-accordeons .elementor-accordion-title { font-family: var(--fo-sans); font-size: .72rem !important; font-weight: 700 !important; letter-spacing: .16em; text-transform: uppercase; color: var(--fo-sombre) !important; }
.fo-fiche-accordeons p, .fo-fiche-accordeons .elementor-tab-content { font-size: .8rem; line-height: 1.8; color: var(--fo-gris-2); padding-left: 0 !important; border: 0 !important; }

/* ---- Produits similaires ---- */
.fo-fiche-similaires .elementor-widget-text-editor .fo-fiche-h2 { margin-bottom: 2.4rem !important; }
.fo-fiche-similaires .wd-product .product-wrapper { background: #fff; padding-bottom: 1.2rem; }
.fo-fiche-similaires .wd-product .product-element-bottom { text-align: center; }
.fo-fiche-similaires .wd-product .wd-entities-title { font-family: var(--fo-serif); font-size: 1.1rem; font-weight: 500; }

@media (max-width: 767px) {
    .fo-fiche-atouts .elementor-icon-list-items { grid-template-columns: 1fr; }
    .fo-fiche-achat .product_title, .fo-fiche-achat h1 { font-size: 2.1rem !important; }
}
