/* ═══ FICHE PRODUIT · Atelier Mellony ═══ */
.am-fiche{--am-pv:96px;--am-ph:64px;margin:0 !important}
@media (max-width:900px){.am-fiche{--am-pv:48px;--am-ph:24px}}
.am-fiche>*{margin-block:0 !important}
.am-fiche :where(p,h1,h2,ul){margin:0}
.am-fiche+footer.wp-block-template-part,main.am-fiche~footer.wp-block-template-part{margin-block-start:0 !important}
/* sections communes (mêmes styles que l'accueil) */
.am-fiche .am-section{position:relative;box-sizing:border-box;margin:0 !important;padding:var(--am-pv) var(--am-ph) !important}
.am-fiche .am-fond-creme{background:var(--wp--preset--color--creme)}
.am-fiche .am-fond-filet{background:var(--wp--preset--color--filet)}
.am-fiche .am-sur{margin:0 0 24px !important;font-family:var(--wp--preset--font-family--new-hero);font-weight:500;font-size:13px;line-height:1.2;letter-spacing:.16em;text-transform:uppercase;color:var(--wp--preset--color--grege)}
.am-fiche .am-h2{margin:0 0 32px !important;font-family:var(--wp--preset--font-family--new-hero) !important;font-size:40px;font-weight:300;line-height:1.1;letter-spacing:.04em;color:var(--wp--preset--color--encre)}
.am-fiche .am-rassure{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;padding-block:48px !important}
.am-fiche .am-rassure>*{margin:0 !important;text-align:center}
.am-fiche .am-r__t{font-family:var(--wp--preset--font-family--new-hero);font-weight:500;font-size:13px;line-height:1.2;letter-spacing:.16em;text-transform:uppercase;color:var(--wp--preset--color--encre)}
.am-fiche .am-r__d{margin-top:8px !important;font-family:var(--wp--preset--font-family--libre-baskerville);font-size:15px;line-height:1.5;color:var(--wp--preset--color--grege)}

/* haut de fiche : galerie | décision */
.am-fiche__haut{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:64px;align-items:start;padding:48px var(--am-ph) var(--am-pv);background:var(--wp--preset--color--creme)}
.am-fiche__haut>*{margin:0 !important;min-width:0}
.am-fiche__galerie{position:sticky;top:calc(88px + 24px + var(--wp-admin--admin-bar--height,0px))}
.am-fiche__galerie .wp-block-woocommerce-product-image-gallery{max-width:none !important;width:100% !important;margin:0 !important}
.am-fiche__galerie .woocommerce-product-gallery__wrapper,.am-fiche__galerie .woocommerce-product-gallery__image,.am-fiche__galerie .woocommerce-product-gallery__image--placeholder{width:100% !important;margin:0 !important}
.am-fiche__galerie .woocommerce-product-gallery{margin:0 !important;width:100% !important;float:none !important}
.am-fiche__galerie .woocommerce-product-gallery__image,.am-fiche__galerie .woocommerce-product-gallery__wrapper>div{background:var(--wp--preset--color--filet)}
.am-fiche__galerie img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover}
.am-fiche__galerie .flex-control-thumbs{display:grid !important;grid-template-columns:repeat(4,1fr);gap:12px;margin:12px 0 0 !important;padding:0}
.am-fiche__galerie .flex-control-thumbs li{width:auto !important;margin:0 !important;list-style:none}
.am-fiche__galerie .flex-control-thumbs img{opacity:.6;cursor:pointer;transition:opacity .2s}
.am-fiche__galerie .flex-control-thumbs img.flex-active,.am-fiche__galerie .flex-control-thumbs img:hover{opacity:1;outline:1px solid var(--wp--preset--color--encre);outline-offset:-1px}
.am-fiche__decision{display:flex;flex-direction:column}
.am-fiche__ariane{margin-bottom:24px !important;font-family:var(--wp--preset--font-family--new-hero);font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--wp--preset--color--grege)}
.am-fiche__ariane a{color:inherit;text-decoration:none}
.am-fiche .am-fiche__sur{margin-bottom:16px !important}
.am-fiche .am-fiche__titre{margin:0 0 16px !important;font-family:var(--wp--preset--font-family--new-hero) !important;font-size:clamp(36px,3.6vw,52px);font-weight:300;line-height:1.05;letter-spacing:.04em;text-transform:uppercase;color:var(--wp--preset--color--encre)}
.am-fiche__prix{margin:0 0 16px !important;font-family:var(--wp--preset--font-family--new-hero);font-weight:300;font-size:32px !important;letter-spacing:.04em;color:var(--wp--preset--color--rose)}
.am-fiche--variable .am-fiche__prix{display:none}
.am-fiche__carac,.am-fiche__carac p{font-family:var(--wp--preset--font-family--libre-baskerville);font-size:17px;line-height:1.6;color:var(--wp--preset--color--encre)}
.am-fiche__carac{margin:0 0 32px !important}
.am-fiche__textes,.am-cache{display:none !important}

/* formulaire d'achat */
.am-fiche__achat form.cart{display:flex;flex-direction:column;gap:16px;margin:0 !important}
.am-fiche__achat .single_variation_wrap,.am-fiche__achat .woocommerce-variation-add-to-cart{display:flex;flex-direction:column;gap:16px}
.am-fiche__achat .woocommerce-variation-price,.am-fiche__achat .reset_variations{display:none !important}
.am-fiche__achat .woocommerce-variation-availability{font-family:var(--wp--preset--font-family--libre-baskerville);font-size:15px;color:var(--wp--preset--color--grege)}
.am-fiche__achat .woocommerce-variation-availability p{margin:0}
/* cartes de choix */
.am-choix{display:flex;flex-direction:column;gap:12px}
.am-choix__t{margin:0 0 4px !important;font-family:var(--wp--preset--font-family--new-hero);font-weight:500;font-size:13px;letter-spacing:.16em;text-transform:uppercase;color:var(--wp--preset--color--grege)}
.am-carte-choix{display:grid;grid-template-columns:56px minmax(0,1fr) auto;align-items:center;gap:20px;width:100%;padding:20px 24px;text-align:left;font:inherit;color:var(--wp--preset--color--encre);background:transparent;border:1px solid var(--wp--preset--color--filet);border-radius:0;cursor:pointer;transition:border-color .2s,background .2s,box-shadow .2s}
.am-carte-choix:hover{border-color:var(--wp--preset--color--rose)}
.am-carte-choix[aria-checked="true"]{background:var(--wp--preset--color--blanc);border-color:var(--wp--preset--color--encre);box-shadow:none}
.am-carte-choix:focus-visible{outline:2px solid var(--wp--preset--color--rose);outline-offset:3px}
.am-carte-choix__ic{position:relative;display:block;width:66px;height:58px}
.am-carte-choix__ic>span{position:absolute;border-radius:50%;box-sizing:border-box}
.am-ic-motif{width:48px;height:48px;right:0;top:0;background:var(--am-motif,repeating-linear-gradient(90deg,#C46B5A 0 5px,#EFE3D4 5px 10px)) center/cover no-repeat;box-shadow:0 4px 10px rgba(75,63,68,.18)}
.am-ic-housse-seule .am-ic-motif{width:52px;height:52px;top:3px;right:7px}
.am-ic-disque{width:48px;height:48px;left:0;top:10px;background:#fff;border:1px solid var(--wp--preset--color--filet);box-shadow:0 3px 8px rgba(75,63,68,.12)}
.am-carte-choix__nom{display:block;font-family:var(--wp--preset--font-family--new-hero);font-weight:500;font-size:15px;letter-spacing:.16em;text-transform:uppercase}
.am-carte-choix__d{display:block;margin-top:6px;font-family:var(--wp--preset--font-family--libre-baskerville);font-size:15px;line-height:1.45;color:var(--wp--preset--color--grege)}
.am-carte-choix__prix{font-family:var(--wp--preset--font-family--new-hero);font-weight:300;font-size:32px;letter-spacing:.04em;color:var(--wp--preset--color--rose);white-space:nowrap}
/* case d'assortiment */
.am-assort{display:grid;grid-template-columns:24px minmax(0,1fr) auto;align-items:center;gap:16px;padding:20px 24px;background:var(--wp--preset--color--filet);border:1px solid var(--wp--preset--color--filet);cursor:pointer;transition:border-color .2s}
.am-assort.on{border-color:var(--wp--preset--color--rose)}
.am-assort__cb{position:absolute;opacity:0;pointer-events:none}
.am-assort__box{width:22px;height:22px;box-sizing:border-box;border:1px solid var(--wp--preset--color--grege);background:var(--wp--preset--color--blanc)}
.am-assort.on .am-assort__box{background:var(--wp--preset--color--rose) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/16px no-repeat;border-color:var(--wp--preset--color--rose)}
.am-assort__cb:focus-visible+.am-assort__box{outline:2px solid var(--wp--preset--color--rose);outline-offset:3px}
.am-assort__t{display:block;font-family:var(--wp--preset--font-family--new-hero);font-weight:500;font-size:13px;letter-spacing:.16em;text-transform:uppercase;color:var(--wp--preset--color--encre)}
.am-assort__d{display:block;margin-top:4px;font-family:var(--wp--preset--font-family--libre-baskerville);font-size:15px;color:var(--wp--preset--color--grege)}
.am-assort__prix{font-family:var(--wp--preset--font-family--new-hero);font-weight:500;font-size:15px;letter-spacing:.08em;color:var(--wp--preset--color--rose);white-space:nowrap}
/* quantité + bouton */
.am-fiche__achat .variations_button,.am-fiche__achat form.cart:not(.variations_form){flex-direction:row !important;flex-wrap:wrap;align-items:stretch;gap:12px}
.am-qte{display:inline-flex !important;align-items:stretch;border:1px solid var(--wp--preset--color--filet);background:var(--wp--preset--color--blanc);margin:0 !important}
.am-qte .qty{width:48px !important;min-height:52px;border:0 !important;text-align:center;font-family:var(--wp--preset--font-family--new-hero);font-size:17px;-moz-appearance:textfield;background:transparent}
.am-qte .qty::-webkit-inner-spin-button,.am-qte .qty::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.am-qte__b{display:flex;align-items:center;justify-content:center;width:44px;padding:0;border:0;background:transparent;font-size:0;line-height:1;color:var(--wp--preset--color--encre);cursor:pointer}
.am-qte__b::before{content:"";width:20px;height:20px;background:currentColor;-webkit-mask:var(--am-ic) center/contain no-repeat;mask:var(--am-ic) center/contain no-repeat}
.am-qte__b--moins{--am-ic:url("../icons/moins.svg")}
.am-qte__b--plus{--am-ic:url("../icons/plus.svg")}
.am-qte__b:hover{color:var(--wp--preset--color--rose)}
.am-fiche__achat .single_add_to_cart_button{flex:0 1 340px;max-width:340px;min-height:54px;margin:0 !important}
.am-fiche__achat .single_add_to_cart_button strong{font-weight:500}
/* réassurance courte + accordéons */
.am-fiche__rassure{display:flex;flex-direction:column;gap:6px;margin:24px 0 32px !important;padding-top:24px;border-top:1px solid var(--wp--preset--color--filet)}
.am-fiche__rassure p{font-family:var(--wp--preset--font-family--libre-baskerville);font-size:15px;line-height:1.5;color:var(--wp--preset--color--grege)}
.am-fiche__rassure p{display:flex;align-items:center;gap:12px}
.am-fiche__rassure p::before{content:"";flex:0 0 auto;width:20px;height:20px;background:var(--wp--preset--color--encre);-webkit-mask:var(--am-ic) center/contain no-repeat;mask:var(--am-ic) center/contain no-repeat;transform:translateY(var(--am-axe2,0px))}
.am-fiche__rassure p:nth-child(1){--am-ic:url("../icons/aiguille.svg")}
.am-fiche__rassure p:nth-child(2){--am-ic:url("../icons/livraison.svg")}
.am-fiche__rassure p:nth-child(3){--am-ic:url("../icons/retour.svg")}
.am-acc{margin:0 !important;border-top:1px solid var(--wp--preset--color--filet)}
.am-acc:last-child{border-bottom:1px solid var(--wp--preset--color--filet)}
.am-acc summary{display:flex;justify-content:flex-start;align-items:center;gap:14px;padding:20px 0;list-style:none;cursor:pointer;font-family:var(--wp--preset--font-family--new-hero);font-weight:500;font-size:13px;letter-spacing:.16em;text-transform:uppercase;color:var(--wp--preset--color--rose-fonce)}
.am-acc summary:focus{outline:none}
.am-acc summary:focus-visible{outline:none;text-decoration:underline;text-underline-offset:5px}
.am-acc summary::-webkit-details-marker{display:none}
.am-acc summary::after{content:"";flex:0 0 auto;width:20px;height:20px;background:currentColor;-webkit-mask:url("../icons/chevron-bas.svg") center/contain no-repeat;mask:url("../icons/chevron-bas.svg") center/contain no-repeat;transition:transform .2s}

.am-acc p+p{margin-top:-8px !important}
.am-acc p{padding:0 0 20px;font-family:var(--wp--preset--font-family--libre-baskerville);font-size:15px;line-height:1.6;color:var(--wp--preset--color--encre)}
/* « D'autres housses » : la collection apparentée de WooCommerce */
.am-fiche__autres .wp-block-woocommerce-product-collection>h2,.am-fiche__autres .wp-block-woocommerce-product-collection>.wp-block-heading{display:none}
.am-fiche__autres .wp-block-woocommerce-product-collection{margin:0 !important}
.am-fiche__autres .wc-block-product-template,.am-fiche__autres .wp-block-post-template{display:grid !important;grid-template-columns:repeat(4,minmax(0,1fr)) !important;gap:32px !important;margin:0 !important;padding:0;list-style:none}
.am-fiche__autres .wc-block-product,.am-fiche__autres .wp-block-post-template>li{width:auto !important;max-width:none !important;display:flex;flex-direction:column;gap:8px;margin:0 !important;min-width:0;text-align:left}
.am-fiche__autres .wc-block-components-product-image{margin:0 0 4px !important;aspect-ratio:1;background:var(--wp--preset--color--filet);overflow:hidden}
.am-fiche__autres .wc-block-components-product-image,.am-fiche__autres .wc-block-components-product-image a{display:block;width:100% !important}
.am-fiche__autres .wc-block-components-product-image img{width:100%;height:100%;object-fit:cover}
.am-fiche__autres .wp-block-post-title{margin:0 !important;font-family:var(--wp--preset--font-family--libre-baskerville) !important;font-size:15px !important;font-weight:400;line-height:1.4;letter-spacing:0;text-transform:none;text-align:left}
.am-fiche__autres .wp-block-post-title a{color:var(--wp--preset--color--encre);text-decoration:none}
.am-fiche__autres .wc-block-components-product-price{margin:0 !important;font-family:var(--wp--preset--font-family--new-hero);font-weight:500;font-size:13px !important;letter-spacing:.16em;text-transform:uppercase;color:var(--wp--preset--color--rose);text-align:left}
.am-fiche__autres .wc-block-components-product-button,.am-fiche__autres .wp-block-button{display:none}
@media (max-width:900px){
 .am-fiche__haut{grid-template-columns:1fr;gap:32px;padding-top:24px}
 .am-fiche__galerie{position:static}
 .am-fiche .am-h2{font-size:30px}
 .am-carte-choix{grid-template-columns:44px minmax(0,1fr) auto;gap:14px;padding:16px}
 .am-carte-choix__ic{width:54px;height:48px}
 .am-ic-motif,.am-ic-disque{width:40px !important;height:40px !important}
 .am-ic-housse-seule .am-ic-motif{width:42px !important;height:42px !important}
 .am-fiche__achat .single_add_to_cart_button{flex:1 1 140px;max-width:none;padding-inline:16px !important}
 .am-qte__b{width:36px}
 .am-qte .qty{width:36px !important}
 .am-carte-choix__prix{font-size:26px}
 .am-fiche__autres .wc-block-product-template,.am-fiche__autres .wp-block-post-template{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
 .am-fiche .am-rassure{grid-template-columns:1fr}
}

/* disponibilité : pastille de couleur (vert sauge, ocre, terre cuite) */
.am-fiche .stock{display:inline-flex;align-items:center;gap:10px;margin:0 !important;font-family:var(--wp--preset--font-family--new-hero) !important;font-weight:500;font-size:12px !important;letter-spacing:.14em;text-transform:uppercase;color:var(--wp--preset--color--encre) !important}
.am-fiche .stock::before{content:"";flex:0 0 auto;width:9px;height:9px;border-radius:50%;background:var(--am-dispo,#7D9B7F);box-shadow:0 0 0 3px color-mix(in srgb,var(--am-dispo,#7D9B7F) 22%,transparent)}
.am-fiche .stock.am-stock--ok{--am-dispo:#7D9B7F}
.am-fiche .stock.am-stock--limite{--am-dispo:#CF9F55}
.am-fiche .stock.am-stock--rupture{--am-dispo:#B4584E;color:var(--wp--preset--color--grege) !important}
/* fil d'Ariane : icône maison */
.am-ariane-maison{display:inline-flex;vertical-align:-2px}
.am-ariane-maison svg{width:14px;height:14px}
/* Pictos devant les titres des accordéons (centrés sur leur centre visuel ; --am-axe aligne sur le milieu des capitales) */
.am-acc summary::before{content:"";flex:0 0 auto;width:22px;height:22px;background:currentColor;-webkit-mask:var(--am-ic) center/contain no-repeat;mask:var(--am-ic) center/contain no-repeat;transform:translateY(var(--am-axe,0px))}
.am-acc summary::after{margin-left:auto;transform:translateY(var(--am-axe,0px))}
.am-acc[open] summary::after{transform:translateY(var(--am-axe,0px)) rotate(180deg)}
.am-acc summary{--am-axe:-.25px}
.am-acc--lavage{--am-ic:url("../icons/lavage-30.svg?v=2")}
.am-acc--diametre{--am-ic:url("../icons/diametre.svg")}
.am-acc--livraison{--am-ic:url("../icons/livraison.svg")}
.am-dim-dv{display:none}
.am-fiche--dv .am-dim-set{display:none}
.am-fiche--dv .am-dim-dv{display:block}
.am-fiche--dv .am-dim-dv{margin-top:0 !important}
/* Picto « déhousser » devant la 1re phrase de l'entretien (classe am-picto-dehousser, retirable dans l'éditeur) */
.am-acc p.am-picto-dehousser{display:flex;align-items:flex-start;gap:14px}
.am-acc p.am-picto-dehousser::before{content:"";flex:0 0 auto;width:24px;height:24px;background:var(--wp--preset--color--encre);-webkit-mask:url("../icons/dehousser.svg") center/contain no-repeat;mask:url("../icons/dehousser.svg") center/contain no-repeat}
/* Picto « détacher » (flacon, validé par JLo) devant la phrase sur les taches */
.am-acc p.am-picto-detacher{display:flex;align-items:flex-start;gap:14px;margin-top:0 !important}
.am-acc p.am-picto-detacher::before{content:"";flex:0 0 auto;width:24px;height:24px;background:var(--wp--preset--color--encre);-webkit-mask:url("../icons/flacon.svg?v=2") center/contain no-repeat;mask:url("../icons/flacon.svg?v=2") center/contain no-repeat}
.am-acc p.am-acc-retrait{padding-left:38px}
