/* WF WooCommerce — Mise en page « Ajouter au panier » (module Product Layout) */
.wf-atc{--wf-green:#7ab648;--wf-green-d:#4f9e2a;--wf-check:#37b34a;--wf-ink:#2f2f2f;--wf-muted:#9a9a9a;--wf-line:#e3e3e3;}
.wf-atc .reset_variations{display:none!important;}
.wf-atc .single_variation{display:none!important;}

/* ---- Swatches ---- */
.wf-atc .wfvs-swatch-list{gap:14px;align-items:center;}
.wf-atc .wfvs-swatch{position:relative;min-width:120px;justify-content:center;border-radius:14px;background:#fff;border:1px solid #ececec;box-shadow:0 3px 12px rgba(0,0,0,.10);font-weight:700;color:var(--wf-ink);padding:16px 22px;overflow:visible;}
.wf-atc .wfvs-swatch::before{display:none!important;}
.wf-atc .wfvs-swatch:hover{border-color:#d8d8d8;}
.wf-atc .wfvs-swatch.is-selected{background:var(--wf-ink);border-color:var(--wf-ink);color:#fff;box-shadow:0 5px 16px rgba(0,0,0,.20);}
.wf-atc .wfvs-swatch.is-selected::after{content:"";position:absolute;top:-9px;right:-9px;width:26px;height:26px;border-radius:50%;background-color:var(--wf-check);border:3px solid #fff;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");background-size:15px;background-position:center;background-repeat:no-repeat;box-shadow:0 2px 6px rgba(0,0,0,.2);}
.wf-atc .wfvs-swatch.is-disabled{opacity:.4;cursor:not-allowed;}
.wf-atc .wfvs-swatch.is-disabled::after{display:none;}

/* ---- Ligne « surface » inline entre les swatches (Pour ≃ X m²) ---- */
.wf-atc .wf-surface{align-self:center;font-weight:700;color:var(--wf-ink);font-size:.95rem;line-height:1.2;margin:0 6px;}
.wf-atc .wf-surface:empty{display:none;}

/* ---- Tags « Adapté pour » sous les swatches ---- */
.wf-atc .wf-fit{margin:16px 0 0;display:flex;flex-wrap:wrap;gap:8px;align-items:center;}
.wf-atc .wf-fit:empty{display:none;}
.wf-atc .wf-fit>.wf-fit-label{color:var(--wf-muted);font-weight:600;margin-right:2px;}
.wf-atc .wf-fit ul{list-style:none;margin:0;padding:0;display:contents;}
.wf-atc .wf-fit li{background:#9a9a9a;color:#fff;font-weight:700;text-transform:uppercase;font-size:.78rem;letter-spacing:.02em;padding:9px 15px;border-radius:8px;line-height:1;}

/* ---- Ligne Quantité (preset A) ---- */
.wf-atc--a .wf-qty-row{margin:24px 0 0;padding:24px 0 0;border-top:1px solid var(--wf-line); width: 100%;}
.wf-atc .wf-qty-label{display:block;font-weight:800;font-size:1.2rem;color:var(--wf-ink);margin:0 0 14px;}
.wf-atc .quantity{position:relative;display:inline-flex;align-items:center;border:1px solid #d7d7d7;border-radius:999px;overflow:hidden;background:#fff;max-width:140px;width:100%;}
.wf-atc .quantity .wf-step{border:0;background:transparent;width:40px;height:42px;font-size:1.7rem;line-height:1;cursor:pointer;color:var(--wf-ink);flex:0 0 auto;}
.wf-atc .quantity .wf-step:hover{background:#f4f4f4;}
.wf-atc .quantity input.qty{border:0!important;text-align:center;font-size:1.25rem;font-weight:700;width:100%;min-width:0;background:transparent;-moz-appearance:textfield;box-shadow:none!important;padding:0;height:auto;}
.wf-atc .quantity input.qty::-webkit-outer-spin-button,.wf-atc .quantity input.qty::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}

/* ---- Ligne Prix + Bouton (mon conteneur flex) ---- */
.wf-atc .wf-buy-row{display:flex;flex-wrap:wrap;gap:14px 26px;align-items:center;margin:22px 0 0;width:100%;}
.wf-atc .wf-price{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;flex:0 0 auto;}
.wf-atc .wf-price:empty{display:none;}
.wf-atc .wf-price del{color:var(--wf-muted);text-decoration:line-through;opacity:.9;}
.wf-atc .wf-price del .woocommerce-Price-amount{font-size:1.2rem;font-weight:600;}
.wf-atc .wf-price ins{text-decoration:none;background:transparent;}
.wf-atc .wf-price .woocommerce-Price-amount{font-size:2.1rem;font-weight:800;color:var(--wf-ink);line-height:1;}
.wf-atc .wf-ttc{color:var(--wf-muted);font-size:.85rem;font-weight:600;align-self:flex-end;margin-bottom:4px;}
.wf-atc .single_add_to_cart_button{flex:1 1 auto;background:linear-gradient(180deg,var(--wf-green),var(--wf-green-d));border:0;border-radius:12px;color:#fff;font-weight:800;text-transform:uppercase;letter-spacing:.02em;padding:22px 34px;font-size:1.05rem;box-shadow:0 6px 16px rgba(79,158,42,.35);transition:filter .15s;margin:0;}
.wf-atc .single_add_to_cart_button:hover{filter:brightness(1.06);}

/* Preset B : prix en haut, quantité + bouton sur une ligne */
.wf-atc--b>.wf-price{margin:0 0 16px;}
.wf-atc--b .wf-buy-row .quantity{flex:0 0 auto;width:auto;max-width:none;}


.woocommerce-variation-add-to-cart.variations_button.woocommerce-variation-add-to-cart-enabled {width: 100%;}
.wf-step.wf-minus, .wf-step.wf-plus {padding: 5px;}
.elementor-1010 .elementor-element.elementor-element-82c4cf5 .elementor-button {max-width: 250px;}
/* Forcer le bouton vert par-dessus le style du theme (.button.alt) */
.wf-atc .wf-buy-row .single_add_to_cart_button,
.wf-atc .wf-buy-row .single_add_to_cart_button.button.alt{background:linear-gradient(180deg,var(--wf-green),var(--wf-green-d))!important;color:#fff!important;border:0!important;opacity:1!important;}
.wf-atc .wf-buy-row .single_add_to_cart_button:hover{filter:brightness(1.06)!important;}

/* Bouton bleu (relooking) */
.wf-atc .single_add_to_cart_button,
.wf-atc .wf-buy-row .single_add_to_cart_button,
.wf-atc .wf-buy-row .single_add_to_cart_button.button.alt{background:linear-gradient(180deg,#2f6bff,#1d4ed8)!important;box-shadow:0 6px 16px rgba(37,99,235,.35)!important;}
.wf-atc .wf-ttc{color:#6b7280;font-weight:600;font-size:.8rem;}

/* ===== Relooking : carte horizontale (image 2) ===== */
.wf-atc .wf-po-card{ border:1px solid #e6e8ee; border-radius:20px; padding:22px 26px; background:#fff; box-shadow:0 6px 24px rgba(20,30,60,.07); }
.wf-po-card-top{ display:flex; flex-wrap:wrap; align-items:stretch; gap:24px; }
.wf-po-card-top > .wf-po-block{ margin:0; }
.wf-po-card-top > .wf-po-couleur-block,
.wf-po-card-top > .wf-po-finition-block,
.wf-po-card-top > .wf-po-cont-block{ border-left:1px solid #eef0f4; padding-left:24px; }
.wf-po-card-top .wf-po-title{ margin-bottom:12px; }
.wf-po-cont-block table.variations,
.wf-po-cont-block table.variations tbody,
.wf-po-cont-block table.variations tr,
.wf-po-cont-block table.variations td{ display:block; width:auto; margin:0; padding:0; border:0; background:none; }
.wf-po-cont-block table.variations .label{ display:none; }
.wf-po-cont-block .reset_variations{ display:none!important; }
.wf-po-card-bottom{ display:flex; flex-wrap:wrap; align-items:center; gap:18px; margin-top:20px; padding-top:20px; border-top:1px solid #eef0f4; }
.wf-po-card-bottom .wf-qty-row{ margin:0; flex:0 0 auto; }
.wf-po-card-bottom .wf-buy-row{ flex:1 1 340px; display:flex; align-items:center; justify-content:space-between; gap:20px; margin:0; }
.wf-po-card-bottom .wf-price{ font-size:1.7rem; font-weight:800; line-height:1.1; }
.wf-po-card-bottom .wf-buy-row .single_add_to_cart_button{ flex:0 0 auto; min-width:260px; }
@media (max-width:782px){ .wf-po-card-top > .wf-po-block{ border-left:0!important; padding-left:0!important; } .wf-po-card-bottom .wf-buy-row .single_add_to_cart_button{ min-width:0; width:100%; } }
/* Masquer surface/fit (Pour ~ Xm2 + Adapte pour) */
.wf-atc .wf-surface, .wf-atc .wf-fit{ display:none!important; }

/* ===== Relooking v2 : rangee forcee + compact (image 2) ===== */
.wf-po-card-top{ display:flex!important; flex-wrap:nowrap!important; align-items:flex-start!important; gap:0!important; }
.wf-po-card-top > .wf-po-block{ margin:0!important; padding:0 22px!important; }
.wf-po-card-top > .wf-po-touche-block{ flex:1 1 auto; padding-left:0!important; }
.wf-po-card-top > .wf-po-couleur-block,
.wf-po-card-top > .wf-po-cont-block,
.wf-po-card-top > .wf-po-finition-block{ flex:0 0 auto; }
.wf-po-card-top > .wf-po-block + .wf-po-block{ border-left:1px solid #eef0f4; }
.wf-po-card-top .wf-po-title{ font-size:.95rem!important; margin-bottom:14px!important; text-align: center;}

/* Support compact : transparent, selection bleue */
.wf-po-touche-block .wf-po-touches{ gap:2px!important; flex-wrap:nowrap!important; }
.wf-po-support{ min-width:78px!important; min-height:auto!important; padding:8px 14px!important; gap:6px!important; background:transparent!important; border:2px solid transparent!important; box-shadow:none!important; color:#1b2130!important; border-radius:14px; }
.wf-po-support .wf-po-touche-ico{ width:34px!important; height:34px!important; }
.wf-po-support .wf-po-touche-lbl{ font-size:.72rem!important; color:inherit!important; font-weight:600; }
.wf-po-support.is-selected{ border-color:#2563eb!important; color:#2563eb!important; background:#fff!important; }
.wf-po-support + .wf-po-support{ border-left:1px solid #eef0f4; }

/* Couleur : MODIFIER neutre sans icone */
.wf-po-couleur-block .wf-po-couleur-row{ flex-direction:column!important; align-items:flex-start!important; gap:12px!important; }
.wf-po-modify{ box-shadow:none!important; border:1.5px solid #e6e8ee!important; background:#fff!important; color:#1b2130!important; padding:10px 20px!important; }
.wf-po-modify img, .wf-po-modify svg{ display:none!important; }

/* Contenance : swatches bleus, sans coche, compacts, 2 colonnes */
.wf-po-cont-block .wfvs-swatch-list{ gap:10px!important; flex-wrap:wrap!important; max-width:230px; }
.wf-po-cont-block .wfvs-swatch{ min-width:96px!important; padding:12px 16px!important; box-shadow:none!important; border:1.5px solid #e6e8ee!important; border-radius:12px!important; color:#1b2130!important; background:#fff!important; }
.wf-po-cont-block .wfvs-swatch.is-selected{ background:#fff!important; color:#2563eb!important; border-color:#2563eb!important; box-shadow:none!important; }
.wf-po-cont-block .wfvs-swatch.is-selected::after{ content:none!important; display:none!important; }

/* Quantite masquee (image 2) */
.wf-po-card-bottom .wf-qty-row{ display:none!important; }
/* Icone panier bouton */
.wf-po-card-bottom .single_add_to_cart_button{ display:inline-flex!important; align-items:center; justify-content:center; gap:12px; }
.wf-po-card-bottom .single_add_to_cart_button::before{ content:""; display:inline-block; width:22px; height:22px; flex:0 0 auto; background:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='white'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='9'%20cy='21'%20r='1'/%3E%3Ccircle%20cx='20'%20cy='21'%20r='1'/%3E%3Cpath%20d='M1%201h4l2.68%2013.39a2%202%200%200%200%202%201.61h9.72a2%202%200%200%200%202-1.61L23%206H6'/%3E%3C/svg%3E") no-repeat center; background-size:contain; }
