/* Boutique des Halles : cartes, rayons, fiche produit, panier. Charte : vert #3A4A2C, bordeaux #6E2F2F, crème #FBF3E4, olive #8A8F4F. */

/* Bande d'information au-dessus de l'en-tête */
.hf-promo{margin:0;background:var(--hf-green);color:var(--hf-cream);text-align:center;font:600 13.5px/1.3 Figtree,sans-serif;letter-spacing:.02em;padding:9px 16px}

/* En-tête : le menu tient sur une ligne en grand écran */
.hf-nav{gap:4px 15px}
.hf-nav a{font-size:14.5px}

/* Navigation par rayon et introduction */
.hf-site .hf-chips{margin:0 0 14px}
.hf-site .hf-chips a{min-height:44px;display:inline-flex;align-items:center;padding:0 18px}
.hf-site .hf-chips a:not(.on):hover{border-color:var(--hf-green);color:var(--hf-green)}
.hf-rayon-intro{max-width:64ch;margin:0 0 26px;color:#4A4838;font-size:17.5px;line-height:1.6}
.hf-rayon-intro p{margin:0}

/* Grille de produits (boutique, rayons, suggestions, accueil) */
body.hf-site ul.products,.hf-pgrid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;list-style:none;margin:0 0 28px!important;padding:0}
@media (min-width:700px){body.hf-site ul.products,.hf-pgrid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}}
@media (min-width:1060px){body.hf-site ul.products,.hf-pgrid{grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}}
body.hf-site ul.products li.product,.hf-pgrid>li{width:auto!important;max-width:none;margin:0!important;padding:0!important;background:none!important;border:0!important;border-radius:0!important;list-style:none;display:block}

/* Carte produit */
.hf-pcard{position:relative;display:flex;flex-direction:column;height:100%;background:var(--hf-card);border:1px solid var(--hf-line);border-radius:16px;overflow:hidden;transition:border-color .2s,box-shadow .2s}
.hf-pcard:hover,.hf-pcard:focus-within{border-color:#CDBB93;box-shadow:0 8px 24px rgba(58,74,44,.10)}
.hf-pcard-media{position:relative;display:block;aspect-ratio:2/3;background:#F1E2C4;overflow:hidden}
.hf-pcard-media img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 38%;transition:transform .5s}
.hf-pcard:hover .hf-pcard-media img{transform:scale(1.03)}
.hf-pcard .hf-noimg{height:100%;border-radius:0}
.hf-tag{position:absolute;top:10px;left:10px;background:var(--hf-burgundy);color:var(--hf-cream);font:700 12.5px/1 Figtree,sans-serif;border-radius:99px;padding:7px 12px;max-width:calc(100% - 20px)}
.hf-tag-off{background:#2B2A22}
.hf-pcard.is-soldout .hf-pcard-media img{opacity:.55;filter:grayscale(.4)}
.hf-pcard-body{display:flex;flex-direction:column;gap:3px;padding:16px 18px 20px;flex:1}
.hf-pcard .hf-eyebrow{font-size:11px;margin:0}
.hf-pcard-title{margin:0;font-size:clamp(19px,2.4vw,23px)!important;line-height:1.12}
.hf-pcard-title a{color:var(--hf-green);text-decoration:none}
.hf-pcard-title a::after{content:"";position:absolute;inset:0;z-index:1}
.hf-pcard-price{margin:4px 0 0;color:var(--hf-burgundy);font-weight:700;font-size:16px}
.hf-pcard-price del{color:var(--hf-muted);font-weight:500;margin-right:6px}
.hf-pcard-price ins{text-decoration:none}
.hf-pcard .hf-offer-note{margin:2px 0 0}
.hf-pcard-act{margin-top:auto;padding-top:16px;position:relative;z-index:2}
.hf-site .hf-pcard-act .button,.hf-site .hf-pcard-act a.added_to_cart{display:flex;align-items:center;justify-content:center;width:100%;min-height:44px;box-sizing:border-box;margin:0;background:transparent;border:1.5px solid var(--hf-green);color:var(--hf-green);border-radius:99px;font:700 14.5px Figtree,sans-serif;text-decoration:none;padding:0 14px;transition:background .2s,color .2s}
.hf-site .hf-pcard-act .button:hover{background:var(--hf-green);color:var(--hf-cream)}
.hf-site .hf-pcard-act .button.loading{opacity:.6}
.hf-site .hf-pcard-act .button.added::after{content:" ✓"}
.hf-site .hf-pcard-act a.added_to_cart{margin-top:8px;border-style:dashed;font-size:13.5px}
.hf-site .hf-pcard-act .hf-ghost{border-color:#CDBB93;color:var(--hf-muted)}

/* Sections de suggestions */
.hf-suggest{margin:44px 0 12px}
.hf-suggest h2{font-size:clamp(28px,3.6vw,40px);margin:0 0 6px;line-height:1.05}
.hf-suggest-sub{margin:0 0 18px;color:var(--hf-muted)}
.hf-suggest .hf-pgrid{margin-top:18px!important}
.hf-site .related.products,.hf-site .up-sells{display:none}

/* Fiche produit */
.single-product.hf-site div.product{margin-top:8px}
.single-product.hf-site .woocommerce-product-gallery__image img,.single-product.hf-site .woocommerce-product-gallery img.wp-post-image{aspect-ratio:2/3;object-fit:cover;object-position:50% 38%;width:100%;height:auto;border-radius:18px}
.single-product.hf-site .woocommerce-product-gallery{border-radius:18px;background:#F1E2C4}
.single-product.hf-site .summary{display:flex;flex-direction:column;gap:10px;align-items:flex-start}
.single-product.hf-site .summary>*{margin:0}
.hf-crumb{text-decoration:none}
.hf-crumb:hover{text-decoration:underline}
.single-product.hf-site .product_title{font-size:clamp(34px,4.6vw,54px);line-height:1.02}
.single-product.hf-site .summary .price{font-size:28px;color:var(--hf-burgundy)}
.single-product.hf-site .summary .woocommerce-product-details__short-description{font-size:17px;line-height:1.6;color:#4A4838;max-width:56ch}
.single-product.hf-site form.cart{display:flex;flex-wrap:wrap;gap:12px;align-items:stretch;width:100%;margin-top:6px!important}
.single-product.hf-site form.cart .quantity{margin:0}
.single-product.hf-site form.cart .single_add_to_cart_button{flex:1 1 220px;min-height:52px;font-size:16px}
.single-product.hf-site .hf-offer-note{font-size:15px}
.hf-site .hf-modes{margin:0}
.hf-site .hf-modes li{background:transparent;border-color:#CDBB93;font-weight:600;color:var(--hf-green)}
.hf-assure{list-style:none;margin:6px 0 0;padding:16px 0 0;border-top:1px solid var(--hf-line);display:flex;flex-direction:column;gap:9px;font-size:15px;color:#4A4838;width:100%}
.hf-assure li{display:grid;grid-template-columns:20px 1fr;gap:10px;line-height:1.45}
.hf-assure li::before{content:"";width:20px;height:20px;margin-top:1px;background:var(--hf-olive);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/contain no-repeat}
.single-product.hf-site .woocommerce-tabs{margin-top:34px}
.single-product.hf-site .woocommerce-tabs ul.tabs{display:none}
.single-product.hf-site .woocommerce-tabs .panel{max-width:70ch;font-size:17px;line-height:1.7}
.single-product.hf-site .woocommerce-tabs .panel>h2{font-size:30px}
.hf-site .hf-share-btn{margin-top:4px}

/* Barre d'achat fixe sur téléphone (fiche produit) */
.hf-sticky{position:fixed;left:0;right:0;bottom:0;z-index:60;background:var(--hf-card);border-top:1px solid var(--hf-line);box-shadow:0 -8px 24px rgba(43,42,34,.10);padding:10px 14px calc(10px + env(safe-area-inset-bottom))}
.hf-sticky[hidden]{display:none}
.hf-sticky-in{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"t b" "p b";gap:0 14px;align-items:center;max-width:720px;margin:0 auto}
.hf-sticky-t{grid-area:t;font:600 20px/1.1 'Cormorant Garamond',Georgia,serif;color:var(--hf-green);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hf-sticky-p{grid-area:p;font-weight:700;color:var(--hf-burgundy);font-size:15px}
.hf-sticky .hf-btn{grid-area:b;min-height:48px;padding:0 24px}
@media (min-width:900px){.hf-sticky{display:none!important}}

/* Panier : avancement vers la livraison offerte */
.hf-nudge{background:#F6EBD3;border:1px solid var(--hf-line);border-radius:14px;padding:14px 16px;margin:0 0 22px}
.hf-nudge p{margin:0 0 10px}
.hf-nudge-track{display:block;height:8px;border-radius:99px;background:#E6D8BC;overflow:hidden}
.hf-nudge-track i{display:block;height:100%;background:var(--hf-olive);border-radius:99px;transition:width .4s}
.hf-nudge.is-done{background:#EEF2E3;border-color:#C6D1AC}
.hf-nudge.is-done .hf-nudge-track i{background:var(--hf-green)}

/* Étapes de commande */
.hf-steps{list-style:none;display:flex;gap:6px;margin:0 0 26px;padding:0;font:600 14px Figtree,sans-serif;color:var(--hf-muted)}
.hf-steps li{display:flex;align-items:center;gap:8px;flex:1 1 0;min-width:0;padding-bottom:10px;border-bottom:3px solid var(--hf-line);white-space:nowrap}
.hf-steps li span{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;border:1.5px solid #CDBB93;font-size:13px;flex:none}
.hf-steps li.done{color:var(--hf-green);border-bottom-color:var(--hf-olive)}
.hf-steps li.done span{background:var(--hf-olive);border-color:var(--hf-olive);color:#fff}
.hf-steps li.on{color:var(--hf-green);border-bottom-color:var(--hf-green)}
.hf-steps li.on span{background:var(--hf-green);border-color:var(--hf-green);color:var(--hf-cream)}

/* Questions fréquentes */
.hf-faq{max-width:820px}
.hf-faq h2{font-size:clamp(28px,3.6vw,40px);margin:0 0 14px}
.hf-faq details{border-top:1px solid var(--hf-line);padding:0}
.hf-faq details:last-of-type{border-bottom:1px solid var(--hf-line)}
.hf-faq summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 0;font-weight:600;font-size:17px;min-height:24px}
.hf-faq summary::-webkit-details-marker{display:none}
.hf-faq summary::after{content:"+";font-size:26px;line-height:1;color:var(--hf-burgundy);flex:none}
.hf-faq details[open] summary::after{content:"–"}
.hf-faq details p{margin:0 0 18px;max-width:66ch;line-height:1.65;color:#4A4838}
.hf-site .woocommerce-shop-loop-sorting,.hf-site .woocommerce-result-count{font-size:14px;color:var(--hf-muted)}

@media (prefers-reduced-motion:reduce){.hf-pcard,.hf-pcard-media img,.hf-nudge-track i{transition:none}.hf-pcard:hover .hf-pcard-media img{transform:none}}
@media (max-width:480px){.hf-site .hf-pcard-act .button{font-size:13px;padding:0 6px}.hf-pcard-body{padding:14px 13px 16px}.hf-steps{font-size:13px}.hf-steps li{gap:6px}.hf-promo{font-size:12.5px;padding:8px 12px}}

.hf-pcard .hf-noimg{position:absolute;inset:0;height:auto;background:#EFE0BC url(img/favicon.svg) center/34% no-repeat}

/* Blocksy sort les onglets et les suggestions du conteneur centré : on les recadre comme le reste de la fiche. */
.single-product div.product>.woocommerce-tabs,.single-product div.product>.hf-suggest,.single-product div.product>.related{box-sizing:border-box;width:min(1290px,100% - clamp(28px,6vw,64px));margin-left:auto;margin-right:auto}
.single-product .woocommerce-tabs{margin-top:28px}
.single-product .woocommerce-tabs .panel{padding:22px 0 8px;max-width:760px;line-height:1.7}
.single-product .hf-suggest{margin-top:40px;margin-bottom:24px}

.woocommerce-checkout .form-row[hidden]{display:none!important}

/* Air autour des boutons */
.hf-actions{margin:6px 0}
.hf-site .wc-proceed-to-checkout{padding:18px 0 6px}
.hf-site #place_order{margin:10px 0 4px}
.hf-site .woocommerce-cart-form .actions .button{margin:6px 0}
.hf-site .single_add_to_cart_button{margin-block:6px}
.hf-sticky-in .hf-btn{margin:2px 0}

/* Composition d'un panier */
.hf-basket{margin:18px 0;padding:16px 20px;background:#FFFBF3;border:1px solid #E6D8BC;border-radius:14px}
.hf-basket h3{margin:0 0 8px;font-family:'Cormorant Garamond',serif;font-size:1.35rem;color:#3A4A2C}
.hf-basket ul{margin:0;padding:0;list-style:none}
.hf-basket li{padding:6px 0 6px 22px;position:relative;border-top:1px solid #E6D8BC}
.hf-basket li:first-child{border-top:0}
.hf-basket li::before{content:"";position:absolute;left:2px;top:14px;width:8px;height:8px;border-radius:50%;background:#8A8F4F}

/* Bandeau d'annonce, newsletter, partage */
.hf-announce{background:#6E2F2F !important;color:#FBF3E4 !important}
.hf-announce a{color:#FBF3E4;text-decoration:underline}
.hf-news{background:#EFE3C8;border-top:1px solid #E6D8BC;padding:44px 20px}
.hf-news-in{max-width:1100px;margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:28px;align-items:center}
.hf-news h2{margin:0 0 6px;font-family:'Cormorant Garamond',serif;font-size:2rem;color:#3A4A2C}
.hf-news p{margin:0;color:#2B2A22}
.hf-news-form{display:flex;flex-wrap:wrap;gap:10px}
.hf-news-field{flex:1 1 220px;margin:0}
.hf-news-field input{width:100%;min-height:48px;padding:0 16px;border:1px solid #D8C79E;border-radius:99px;background:#FFFBF3;font:inherit}
.hf-news-consent{flex:1 1 100%;font-size:13px;color:#4A4A3C;display:flex;gap:8px;align-items:flex-start}
.hf-news-consent input{margin-top:3px}
.hf-news-msg{flex:1 1 100%;font-weight:600;color:#6E2F2F}
.hf-news-msg.ok{color:#3A4A2C}
.hf-hp{position:absolute !important;left:-9999px !important;width:1px;height:1px;opacity:0}
@media(max-width:800px){.hf-news-in{grid-template-columns:minmax(0,1fr)}.hf-news{padding:32px 18px}.hf-news-form .hf-btn{flex:1 1 100%}}

/* Fiche du produit */
.hf-info{margin:14px 0 18px;padding:14px 18px;background:var(--hf-card);border:1px solid var(--hf-line);border-radius:14px;display:grid;gap:8px}
.hf-info div{display:grid;grid-template-columns:minmax(110px,150px) 1fr;gap:10px;font-size:14.5px}
.hf-info dt{font-weight:600;color:var(--hf-green)}
.hf-info dd{margin:0}
@media (max-width:480px){.hf-info div{grid-template-columns:1fr;gap:0}}
.hf-pcard-meta{margin:2px 0 6px;font-size:13px;color:var(--hf-muted)}

/* ---------- Mon compte ---------- */
.woocommerce-account .woocommerce{display:grid;grid-template-columns:240px minmax(0,1fr);gap:28px;align-items:start}
.woocommerce-account .woocommerce-MyAccount-navigation ul{list-style:none;margin:0;padding:8px;background:var(--hf-card);border:1px solid var(--hf-line);border-radius:18px;display:flex;flex-direction:column;gap:2px}
.woocommerce-account .woocommerce-MyAccount-navigation a{display:block;padding:11px 14px;border-radius:12px;color:var(--hf-ink);text-decoration:none;font-weight:600}
.woocommerce-account .woocommerce-MyAccount-navigation .is-active a,.woocommerce-account .woocommerce-MyAccount-navigation a:hover{background:var(--hf-green);color:var(--hf-cream)}
.woocommerce-account .woocommerce-MyAccount-navigation .hf-nav-customer-logout a{color:var(--hf-burgundy);margin-top:6px;border-top:1px solid var(--hf-line);border-radius:0 0 12px 12px}
.woocommerce-account .woocommerce-MyAccount-content{min-width:0}
.hf-acc-hello h2{margin:0 0 6px;font-size:clamp(30px,5vw,42px)}
.hf-acc-hello p{margin:0 0 18px;color:var(--hf-muted)}
.hf-acc-card{background:var(--hf-card);border:1px solid var(--hf-line);border-radius:18px;padding:20px 22px;margin:0 0 16px}
.hf-acc-card h3{margin:0 0 10px;font-size:24px}
.hf-acc-card p{margin:0 0 12px}
.hf-acc-card form{margin:0}
.hf-acc-list{margin:0;padding-left:18px;display:grid;gap:6px}
.hf-acc-pill{display:inline-block;padding:3px 12px;border-radius:999px;background:var(--hf-olive);color:#fff;font-size:13px;font-weight:700;margin-right:8px}
.hf-acc-pill.is-hf-ready{background:var(--hf-green)}.hf-acc-pill.is-pending,.hf-acc-pill.is-on-hold{background:var(--hf-burgundy)}
.hf-acc-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px;margin-top:6px}
.hf-acc-tile{display:flex;flex-direction:column;gap:2px;padding:16px 18px;background:var(--hf-card);border:1px solid var(--hf-line);border-radius:16px;text-decoration:none;color:var(--hf-ink);transition:border-color .15s,transform .15s}
.hf-acc-tile:hover{border-color:var(--hf-green);transform:translateY(-2px)}
.hf-acc-tile b{font:600 22px 'Cormorant Garamond',Georgia,serif;color:var(--hf-green)}
.hf-acc-tile span{font-size:14px;color:var(--hf-muted)}
.hf-acc-gifts{list-style:none;margin:0 0 20px;padding:0;display:grid;gap:10px}
.hf-acc-gift{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:12px;align-items:center;padding:14px 16px;background:var(--hf-card);border:1px solid var(--hf-line);border-radius:14px}
.hf-acc-gift code{font:700 15px 'Courier New',monospace;letter-spacing:1px;color:var(--hf-green);word-break:break-all}
.hf-acc-gift.is-used,.hf-acc-gift.is-expired{opacity:.6}
.hf-acc-gift .hf-btn{min-height:40px;padding:0 16px;font-size:14px}
.hf-acc-note{padding:12px 16px;background:#EEF1DF;border:1px solid var(--hf-olive);border-radius:12px}.hf-acc-note.is-error{background:#F6E3E3;border-color:var(--hf-burgundy)}
.hf-acc-empty,.hf-acc-small{color:var(--hf-muted)}
.hf-acc-lead{font-size:17px}
.woocommerce-account table.shop_table{border:1px solid var(--hf-line);border-radius:14px;overflow:hidden;background:var(--hf-card)}
.woocommerce-account .woocommerce-MyAccount-content .button,.woocommerce-account .woocommerce-MyAccount-content button[type=submit]{border-radius:999px}
@media(max-width:800px){
.woocommerce-account .woocommerce{grid-template-columns:minmax(0,1fr);gap:16px}
.woocommerce-account .woocommerce-MyAccount-navigation ul{flex-direction:row;overflow-x:auto;gap:4px;border-radius:999px;scrollbar-width:none}
.woocommerce-account .woocommerce-MyAccount-navigation a{white-space:nowrap;padding:9px 14px;border-radius:999px}
.hf-acc-gift{grid-template-columns:minmax(0,1fr)}
.woocommerce-account table.shop_table_responsive td{display:flex;justify-content:space-between;gap:12px}
}

/* ---------- Tri et filtres ---------- */
.hf-filters{display:flex;flex-wrap:wrap;gap:10px 14px;align-items:end;margin:0 0 20px;padding:14px 16px;background:var(--hf-card);border:1px solid var(--hf-line);border-radius:16px}
.hf-filters label{display:grid;gap:4px;font-size:13px;font-weight:600;color:var(--hf-muted)}
.hf-filters select,.hf-filters input[type=search]{min-height:44px;border:1px solid #CDBB93;border-radius:12px;background:#fff;padding:0 12px;font:500 15px Figtree,sans-serif;color:var(--hf-ink)}
.hf-filters .hf-f-q{flex:1 1 200px}.hf-filters .hf-f-q input{width:100%}
.hf-filters .hf-f-check{display:flex;align-items:center;gap:8px;min-height:44px;font-size:15px;color:var(--hf-ink)}.hf-filters .hf-f-check input{width:20px;height:20px;accent-color:var(--hf-green)}
.hf-filters .hf-btn{min-height:44px;padding:0 20px}
.hf-f-reset{align-self:center;color:var(--hf-burgundy);font-weight:600;font-size:14px}
.hf-chips{position:relative}
@media(max-width:800px){.hf-chips{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-inline:-4px;padding:2px 4px}.hf-chips a{white-space:nowrap;flex:none}.hf-filters{display:grid;grid-template-columns:1fr 1fr}.hf-filters .hf-f-q,.hf-filters .hf-f-check,.hf-filters .hf-btn,.hf-f-reset{grid-column:1/-1}}
/* ---------- Photos dans le texte des articles ---------- */
.hf-content img.hf-img-mid{max-width:62%;display:block;margin:1em auto}
.hf-content img.hf-img-full{display:block;width:100%;margin:1em 0}
.hf-content img.hf-img-left{float:left;max-width:44%;margin:.3em 1.4em .8em 0}
.hf-content img.hf-img-right{float:right;max-width:44%;margin:.3em 0 .8em 1.4em}
.hf-content::after{content:"";display:block;clear:both}
@media(max-width:700px){.hf-content img.hf-img-left,.hf-content img.hf-img-right,.hf-content img.hf-img-mid{float:none;max-width:100%;margin:1em 0}}
/* Photo / fiche recette collées sous l'en-tête fixe */
.hf-cote-img,.hf-recipe-layout .hf-recipe{top:calc(var(--hf-hh,100px) + 18px)}
@media(max-width:800px){.hf-cote-img,.hf-recipe-layout .hf-recipe{position:static}}

/* Page devis entreprises */
.hf-quote{display:grid;gap:14px;max-width:720px;margin:24px 0}
.hf-quote-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.hf-quote label{display:grid;gap:6px;font-weight:600;font-size:15px}
.hf-quote input,.hf-quote select,.hf-quote textarea{font:inherit;padding:11px 12px;border:1px solid #E6D8BC;border-radius:10px;background:#FFFBF3}
.hf-quote .hf-quote-consent{display:flex;gap:10px;align-items:flex-start;font-weight:400}
.hf-quote .hf-quote-consent input{width:auto;margin-top:4px}
.hf-hp{position:absolute;left:-9999px}
.hf-quote-steps{max-width:640px;line-height:1.6}
@media(max-width:640px){.hf-quote-grid{grid-template-columns:1fr}}
