/* Au Marché : gabarit (en-tête, pages de produits, paiement, compte client, devenir vendeur). Mobile d'abord. */

/* ===== En-tête de la maquette ===== */
#masthead, .site-header, #mobile-header, .kadence-sticky-header { display: none !important; }
.am-hd { background: #fff; border-bottom: 1px solid var(--am-bord); position: sticky; top: 0; z-index: 50; }
.admin-bar .am-hd { top: 32px; }
.am-hd-in { max-width: 1280px; margin: 0 auto; padding: 8px 20px; display: flex; align-items: center; gap: 22px; min-height: 72px; }
.am-logo-site { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--am-vert); flex: 0 0 auto; }
.am-logo-texte { font-size: 1.35rem; font-weight: 500; color: var(--am-vert); letter-spacing: -.02em; line-height: 1; }
.am-logo-texte strong { font-weight: 800; color: var(--am-rouge); }
.am-nav { display: flex; flex: 1 1 auto; gap: 4px 22px; align-items: center; flex-wrap: wrap; }
.am-nav a { color: var(--am-texte); text-decoration: none; font-weight: 600; font-size: .88rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.am-nav a:hover { color: var(--am-vert); border-bottom-color: var(--am-vert); }
.am-nav .am-nav-vendeur { color: var(--am-rouge); }
.am-hd-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; position: relative; }
.am-hd-lien, .am-pop > summary { display: inline-flex; align-items: center; gap: 6px; color: var(--am-texte); text-decoration: none; font-size: .82rem; font-weight: 500; cursor: pointer; list-style: none; position: relative; }
.am-pop > summary::-webkit-details-marker { display: none; }
.am-loc > summary .am-ico { color: var(--am-vert); }
.am-caret { font-size: .7rem; color: var(--am-vert); }
.am-pop { position: relative; }
.am-pop-boite { position: absolute; right: 0; top: calc(100% + 10px); background: #fff; border: 1px solid var(--am-bord); border-radius: 14px; padding: 14px; width: 300px; box-shadow: 0 12px 30px rgba(0,0,0,.14); z-index: 60; }
.am-pop-boite p { margin: 0 0 8px; }
.am-panier .am-cart-count { position: absolute; top: -8px; left: 14px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--am-rouge); color: #fff; font-size: .68rem; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }
.am-burger { display: none; background: transparent; border: 0; padding: 8px; width: 42px; height: 42px; flex-direction: column; justify-content: center; gap: 5px; }
.am-burger span { display: block; height: 2px; background: var(--am-texte); border-radius: 2px; }
@media (max-width: 1100px) { .am-hd-actions .am-lbl { display: none; } .am-hd-actions .am-loc .am-lbl { display: inline; } }
@media (max-width: 899px) {
	.am-burger { display: flex; }
	.am-hd-in { gap: 10px; padding: 6px 14px; }
	.am-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--am-bord); flex-direction: column; align-items: stretch; padding: 8px 16px 14px; gap: 0; }
	.am-nav.am-ouvert { display: flex; }
	.am-nav a { padding: 12px 0; border-bottom: 1px solid var(--am-bord); }
	.am-hd-actions { gap: 8px; }
	.am-logo-texte { font-size: 1.1rem; }
	.am-hd-actions .am-loc .am-lbl { max-width: 78px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.am-pop-boite { position: fixed; left: 12px; right: 12px; top: 74px; width: auto; }
}

/* ===== Pages de produits : bandeau, colonne de filtres, cartes avec cœur ===== */
.am-bandeau { position: relative; overflow: hidden; border-radius: 18px; padding: 30px 28px; margin: 18px 0 22px; color: #fff; min-height: 150px; display: flex; align-items: center; }
.am-bandeau-vert { background: radial-gradient(circle at 90% 20%, rgba(247,181,0,.30), transparent 40%), linear-gradient(120deg, #0d4f1e, #2f7d32 70%, #5aa84a); }
.am-bandeau-rouge { background: radial-gradient(circle at 90% 20%, rgba(247,181,0,.35), transparent 40%), linear-gradient(120deg, #8a1c1c, #c0392b 70%, #e5622c); }
.am-bandeau h1 { color: #fff; margin: 0 0 6px; font-size: clamp(1.7rem, 4vw, 2.6rem); }
.am-bandeau p { margin: 0; max-width: 30em; opacity: .95; }
.am-bandeau-in { position: relative; z-index: 1; }
.am-bandeau-emoji { position: absolute; right: 22px; bottom: 6px; font-size: clamp(2.4rem, 7vw, 4.6rem); opacity: .95; letter-spacing: 4px; }
.woocommerce-products-header, .kadence-shop-top-row, .woocommerce-breadcrumb, .archive .page-title, .post-type-archive-product .entry-header, .tax-product_cat .entry-header, .tax-origine_cuisine .entry-header { display: none !important; }
.am-arch { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .am-arch { grid-template-columns: 250px 1fr; align-items: start; } }
.am-side { background: #fff; }
.am-filtres-panneau { border: 1px solid var(--am-bord); border-radius: 14px; padding: 0 16px 8px; }
.am-filtres-panneau > summary { font-weight: 700; padding: 14px 0; cursor: pointer; }
@media (min-width: 900px) { .am-filtres-panneau { border: 0; padding: 0; } .am-filtres-panneau > summary { display: none; } }
.am-side h3 { font-size: 1rem; margin: 18px 0 8px; }
.am-side input[type=search], .am-side select, .am-side input[type=number] { width: 100%; }
.am-liste-cats, .am-liste-cats ul { list-style: none; margin: 0; padding: 0; }
.am-liste-cats ul { padding-left: 14px; }
.am-liste-cats a { display: flex; justify-content: space-between; padding: 6px 0; color: var(--am-texte); text-decoration: none; font-size: .92rem; }
.am-liste-cats a em { color: var(--am-gris); font-style: normal; }
.am-liste-cats .actif > a { color: var(--am-vert); font-weight: 700; }
.am-cases { display: grid; gap: 4px; }
.am-chk { display: flex !important; gap: 8px; align-items: center; font-weight: 500; font-size: .92rem; margin: 0; }
.am-chk input { width: 18px; height: 18px; accent-color: var(--am-vert); }
.am-prix { display: flex; align-items: center; gap: 8px; }
.am-f-actions { margin-top: 18px; display: flex; gap: 12px; align-items: center; }
.am-main .woocommerce-result-count, .am-main .woocommerce-ordering { margin-bottom: 14px; }
.woocommerce ul.products li.product { position: relative; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { padding-top: 8px; }
.woocommerce ul.products li.product .button { background: var(--am-vert); margin-top: 8px; }
.am-coeur { position: absolute; top: 18px; right: 18px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 0; padding: 0; display: grid; place-items: center; color: var(--am-texte); box-shadow: 0 2px 8px rgba(0,0,0,.18); cursor: pointer; }
.am-coeur:hover { background: #fff; color: var(--am-rouge); }
.am-coeur.am-actif { color: var(--am-rouge); }
.am-coeur.am-actif svg { fill: var(--am-rouge); }
.am-coeur-fiche { margin: 0; position: relative; height: 0; }
.am-coeur-fiche .am-coeur { position: absolute; right: 0; top: -60px; }
.am-note { color: var(--am-texte); }
.am-etoiles { color: #f5a300; }

/* ===== Paiement ===== */
.woocommerce-checkout .entry-header, .woocommerce-checkout .page-title, .woocommerce-checkout h1.entry-title { display: none; }
.am-etapes-caisse { display: flex; justify-content: center; gap: 28px; list-style: none; margin: 8px 0 28px; padding: 0; flex-wrap: wrap; }
.am-etapes-caisse li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--am-gris); position: relative; }
.am-pastille { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--am-bord); background: #fff; font-weight: 700; }
.am-etapes-caisse li.fait .am-pastille { border-color: var(--am-vert); color: var(--am-vert); }
.am-etapes-caisse li.fait { color: var(--am-vert); }
.am-etapes-caisse li.actif .am-pastille { background: var(--am-rouge); border-color: var(--am-rouge); color: #fff; }
.am-etapes-caisse li.actif { color: var(--am-texte); }
.am-etapes-caisse li + li::before { content: ''; width: 46px; height: 2px; background: var(--am-bord); position: absolute; left: -38px; top: 18px; }
@media (min-width: 900px) {
	.woocommerce-checkout form.checkout { display: grid; grid-template-columns: 1fr 440px; column-gap: 36px; align-items: start; }
	.woocommerce-checkout #customer_details { grid-column: 1; grid-row: 1 / span 3; }
	.woocommerce-checkout #order_review_heading { grid-column: 2; grid-row: 1; }
	.woocommerce-checkout #order_review { grid-column: 2; grid-row: 2; }
}
.woocommerce-checkout #customer_details .col-1, .woocommerce-checkout #customer_details .col-2 { float: none; width: 100%; }
.woocommerce-checkout h3 { font-size: 1.25rem; margin: 0 0 14px; }
.woocommerce-checkout .form-row { margin-bottom: 14px; }
.woocommerce-checkout .form-row label { font-weight: 600; font-size: .9rem; }
.woocommerce-checkout .form-row input.input-text, .woocommerce-checkout .form-row textarea, .woocommerce-checkout .form-row select { border: 1px solid var(--am-bord); border-radius: 12px; padding: 13px 14px; width: 100%; background: #fff; }
.woocommerce-checkout .form-row .required { color: var(--am-rouge); text-decoration: none; }
.woocommerce-checkout .am-cache, .woocommerce-checkout p#billing_country_field, .woocommerce-checkout p#billing_state_field { display: none; }
.am-creneau { margin-top: 26px; }
.am-aide { color: var(--am-gris); font-size: .9rem; margin: -6px 0 12px; }
.am-creneau-champs { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .am-creneau-champs { grid-template-columns: 1fr 1fr; } }
.am-creneau-champs label { font-weight: 600; font-size: .9rem; display: block; }
.am-creneau-champs select { width: 100%; margin-top: 4px; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--am-bord); background: #fff; }
#order_review_heading { color: var(--am-vert); }
.woocommerce-checkout #order_review { background: #f6f6f4; border-radius: 16px; padding: 18px; }
.woocommerce-checkout table.shop_table { background: #fff; border-radius: 12px; border: 0; border-collapse: separate; width: 100%; }
.woocommerce-checkout table.shop_table th, .woocommerce-checkout table.shop_table td { padding: 12px 14px; border-top: 1px solid var(--am-bord); }
.am-ligne-produit { display: flex; align-items: center; gap: 12px; }
.am-ligne-produit img { border-radius: 10px; width: 56px; height: 56px; object-fit: cover; }
.woocommerce-checkout .order-total th, .woocommerce-checkout .order-total td { font-weight: 800; font-size: 1.15rem; }
.am-h-paiement { margin: 22px 0 10px; }
.woocommerce-checkout #payment { background: transparent; border-radius: 0; }
.woocommerce-checkout #payment ul.payment_methods { border: 0; padding: 0; margin: 0 0 14px; }
.woocommerce-checkout #payment ul.payment_methods li { background: #fff; border: 1px solid var(--am-bord); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; list-style: none; }
.woocommerce-checkout #payment ul.payment_methods li label { font-weight: 600; }
.woocommerce-checkout #payment div.payment_box { background: transparent; color: var(--am-gris); padding: 8px 0 0; }
.woocommerce-checkout #payment div.payment_box::before { display: none; }
.woocommerce-checkout #place_order { width: 100%; border-radius: 999px; background: var(--am-rouge); font-size: 1.1rem; padding: 16px 24px; }
.woocommerce-checkout #place_order:hover { background: var(--am-rouge-fonce); }
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper { margin: 8px 0 14px; font-size: .88rem; }

/* ===== Espace client (Mon compte) ===== */
.woocommerce-account .woocommerce { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation) { grid-template-columns: 250px 1fr; align-items: start; } }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 12px; background: #fff; border: 1px solid var(--am-bord); border-radius: 16px; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.woocommerce-MyAccount-navigation li a { display: block; padding: 12px 14px; border-radius: 10px; color: var(--am-texte); text-decoration: none; font-weight: 600; }
.woocommerce-MyAccount-navigation li.is-active a { background: var(--am-vert); color: #fff; }
.woocommerce-MyAccount-navigation li:not(.is-active) a:hover { background: var(--am-vert-clair); }
.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout { border-top: 1px solid var(--am-bord); margin-top: 8px; padding-top: 8px; }
.woocommerce-MyAccount-content h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 0; }
.am-onglets-statut { display: inline-flex; flex-wrap: wrap; gap: 4px; background: #f3f3f1; border-radius: 14px; padding: 5px; margin: 0 0 16px; }
.am-onglets-statut a { padding: 9px 16px; border-radius: 10px; color: var(--am-gris); font-weight: 600; text-decoration: none; font-size: .9rem; }
.am-onglets-statut a.actif { background: #fff; color: var(--am-rouge); box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.woocommerce-orders-table { border: 0; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.05); width: 100%; }
.woocommerce-orders-table th { background: #f6f6f4; font-weight: 700; padding: 14px; text-align: left; }
.woocommerce-orders-table td { padding: 14px; border-top: 1px solid var(--am-bord); }
.woocommerce-orders-table .woocommerce-orders-table__cell-order-number a { color: var(--am-vert); font-weight: 700; text-decoration: none; }
.woocommerce-orders-table__cell-order-actions .button { background: transparent !important; color: var(--am-vert) !important; font-weight: 700; padding: 0; }
.am-st { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .82rem; font-weight: 700; background: #eee; color: #444; }
.am-st-processing, .am-st-accepted, .am-st-preparing, .am-st-ready-pickup, .am-st-pending, .am-st-on-hold { background: #fff1e0; color: #b25b00; border: 1px solid #f5b970; }
.am-st-assigned, .am-st-delivering { background: #e6f0ff; color: #1b4fb0; }
.am-st-delivered, .am-st-completed { background: #e3f4e6; color: var(--am-vert-fonce); }
.am-st-cancelled, .am-st-failed, .am-st-refunded { background: #fde8e8; color: var(--am-rouge-fonce); }
.am-bienvenue { background: var(--am-vert-clair); border-radius: 16px; padding: 22px; }
.am-btn-contour { background: #fff !important; color: var(--am-vert) !important; border: 1px solid var(--am-vert) !important; }
@media (max-width: 899px) { .woocommerce-orders-table thead { display: none; } }

/* ===== « Devenir vendeur » (maquette 09) et bouton « Suivre » ===== */
.am-hero-vendeur { border-radius: 20px; color: #fff; padding: 38px 28px; margin: 6px 0 26px; background: radial-gradient(circle at 92% 18%, rgba(247,181,0,.28), transparent 38%), linear-gradient(115deg, #2b1d12 0%, #0d4f1e 75%); }
.am-hero-vendeur h2 { color: #fff; font-size: clamp(1.7rem, 4.5vw, 2.7rem); margin: 0 0 10px; }
.am-hero-vendeur h2 strong { color: #fff; }
.am-hero-vendeur ul { list-style: none; padding: 0; margin: 16px 0 22px; display: grid; gap: 10px; }
@media (min-width: 700px) { .am-hero-vendeur ul { grid-template-columns: 1fr 1fr; } }
.am-hero-vendeur li::before { content: '✔'; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #2fb457; margin-right: 10px; font-size: .8rem; }
.am-hero-vendeur .am-btn { padding: 15px 30px; border-radius: 999px; font-size: 1.05rem; display: inline-block; }
.am-hero-vendeur .am-petit { font-size: .85rem; opacity: .85; margin: 14px 0 0; }
.am-hero-vendeur a:not(.am-btn) { color: #fff; }
.am-suivre { background: var(--am-rouge); color: #fff; border: 0; border-radius: 12px; padding: 10px 26px; margin-right: 8px; }
.am-suivre:hover { background: var(--am-rouge-fonce); }
.am-suivre.am-actif { background: #fff; color: var(--am-vert); border: 1px solid var(--am-vert); }
.am-bt-actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 600px) { .am-bt-actions { flex-direction: column; align-items: stretch; } .am-suivre { margin-right: 0; } }

/* Réglages d'en-tête : tout tient sur une ligne en version ordinateur */
.am-hd-actions, .am-hd-actions a, .am-pop > summary, .am-nav a { white-space: nowrap; }
@media (min-width: 900px) { .am-nav .am-nav-vendeur { display: none; } .am-nav { gap: 4px 20px; } }

/* Marges latérales des pages de produits (le gabarit est pleine largeur) */
.am-bandeau, .am-zone, .am-arch { width: calc(100% - 40px); max-width: 1240px; margin-left: auto; margin-right: auto; }
.am-arch { margin-bottom: 40px; }
.woocommerce-checkout .entry-content, .woocommerce-account .entry-content, .woocommerce-cart .entry-content { padding-left: 4px; padding-right: 4px; }

/* WooCommerce impose des largeurs de 48 % / 50 % : on les annule dans la grille */
.woocommerce-checkout form.checkout #customer_details, .woocommerce-checkout form.checkout #order_review, .woocommerce-checkout form.checkout #order_review_heading { width: 100% !important; float: none !important; max-width: none !important; }
.woocommerce-checkout #customer_details .col-1, .woocommerce-checkout #customer_details .col-2 { width: 100% !important; float: none !important; max-width: none !important; }
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row-wide { grid-column: 1 / -1; }
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row { width: 100% !important; float: none !important; }

/* Mon compte : menu à gauche, contenu à droite (le thème enveloppe le menu dans .account-navigation-wrap) */
.woocommerce-account .entry-hero, .woocommerce-account .entry-header, .woocommerce-account .page-hero-section { display: none !important; }
@media (min-width: 900px) {
	.woocommerce-account .woocommerce .account-navigation-wrap { grid-column: 1; grid-row: 1; width: auto !important; float: none !important; margin: 0 !important; }
	.woocommerce-account .woocommerce .woocommerce-MyAccount-content { grid-column: 2; grid-row: 1; width: 100% !important; float: none !important; max-width: none !important; margin: 0 !important; }
}
.woocommerce-account .account-navigation-wrap .kadence-customer-image { display: none; }

/* ===== Tableau de bord vendeur (WCFM) : menu clair, accueil de la maquette 10 ===== */
#wcfm_menu { background: #fff !important; border-right: 1px solid var(--am-bord); }
#wcfm_menu .wcfm_menu_logo { background: #fff !important; border-bottom: 1px solid var(--am-bord); }
#wcfm_menu .wcfm_menu_logo h4 a { color: var(--am-texte) !important; font-weight: 700; }
#wcfm_menu .wcfm_menu_items a.wcfm_menu_item { color: var(--am-texte) !important; border-radius: 10px; margin: 2px 10px; font-weight: 600; background: transparent !important; }
#wcfm_menu .wcfm_menu_items a.wcfm_menu_item span { color: inherit !important; }
#wcfm_menu .wcfm_menu_items a.wcfm_menu_item:hover { background: var(--am-vert-clair) !important; }
#wcfm_menu .wcfm_menu_items a.wcfm_menu_item.active { background: var(--am-vert) !important; color: #fff !important; }
.wcfm-page-headig { background: #fff !important; border-bottom: 1px solid var(--am-bord); }
.wcfm-page-headig, .wcfm-page-headig span, .wcfm-page-headig a { color: var(--am-texte) !important; }
.wcfm-page-headig .wcfmfa { color: var(--am-vert) !important; }
#wcfm-main-contentainer .wcfm-container, #wcfm-main-contentainer .wcfm-content { border-radius: 14px; }
.wcfm-collapse-content .wcfm_welcomebox_header, .wcfm-collapse-content .wcfm_dashboard_stats { display: none !important; }
.am-tdb h2 { margin: 6px 0 2px; font-size: clamp(1.5rem, 3vw, 2rem); color: var(--am-texte); }
.am-tdb-cartes { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; margin: 18px 0 26px; }
@media (min-width: 900px) { .am-tdb-cartes { grid-template-columns: repeat(4, 1fr); } }
.am-tdb-cartes > div { background: #fff; border: 1px solid var(--am-bord); border-radius: 16px; padding: 18px; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.am-tdb-cartes span { display: block; color: var(--am-gris); font-size: .88rem; }
.am-tdb-cartes strong { font-size: 1.7rem; color: var(--am-vert-fonce); font-weight: 800; }
.am-tdb h3 { font-size: 1.1rem; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.am-tdb .am-plus { font-size: .88rem; font-weight: 600; color: var(--am-vert); text-decoration: none; }
.am-tdb-tableau { overflow-x: auto; background: #fff; border-radius: 14px; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.am-tdb-tableau table { width: 100%; border-collapse: collapse; min-width: 520px; }
.am-tdb-tableau th { background: #f6f6f4; text-align: left; padding: 12px 14px; font-weight: 700; }
.am-tdb-tableau td { padding: 12px 14px; border-top: 1px solid var(--am-bord); }
.am-tdb-tableau td a { color: var(--am-vert); font-weight: 700; text-decoration: none; }

.am-tdb h2, .am-tdb p, .am-tdb h3 { display: block; }
.am-tdb-cartes strong { display: block; margin-top: 4px; }
.am-tdb-cartes strong .woocommerce-Price-amount, .am-tdb-cartes strong bdi { white-space: nowrap; font-size: inherit; font-weight: inherit; color: inherit; }
.am-tdb-cartes strong .woocommerce-Price-currencySymbol { font-size: inherit; }

.am-cart-count.am-vide { display: none !important; }
.am-hero-vendeur .am-btn, .am-hero-vendeur .am-btn:hover { text-decoration: none !important; color: #fff !important; }

/* Le logo WCFM par défaut devant « Vendu par » est retiré : la maquette n'affiche que le nom de la boutique */
img.wcfmmp_sold_by_logo, .wcfmmp_sold_by_container_left, .wcfmmp_sold_by_wrapper .wcfmmp_sold_by_logo { display: none !important; }

/* Panier : boutons - et + assez grands pour le doigt (44 px minimum) */
.woocommerce-cart .quantity button, .woocommerce-cart .quantity .minus, .woocommerce-cart .quantity .plus { min-height: 44px; min-width: 44px; }

/* Pas d'etoiles "0 sur 5" pour une boutique sans avis (listes de produits) */
.wcfmmp-store-rating[title*="Aucun avis"] { display: none; }

/* Liste des commandes vendeur : statut en clair et filtres par statut */
.am-statut-badge { display: inline-block; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 2px 10px; background: #eef2ee; color: #1b5e20; margin-left: 6px; vertical-align: middle; }
.am-statuts-liste { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.am-statuts-liste a { padding: 7px 14px; border-radius: 999px; background: #f3f3f1; color: #222; text-decoration: none; font-weight: 600; font-size: 14px; }
.am-statuts-liste a.actif { background: #1b6b2f; color: #fff; }
.am-statuts-liste em { font-style: normal; opacity: .7; margin-left: 4px; }

/* Liste des commandes vendeur : pas de raccourci "Marquer comme complete" (la commande devient Terminee apres livraison, automatiquement) */
.wcfm_order_mark_complete { display: none !important; }

/* Coupons affiches sur la page boutique */
.am-coupons-boutique { background: #fff7e6; border: 1px dashed #e0a100; border-radius: 12px; padding: 12px 16px; margin: 0 0 18px; }
.am-coupons-boutique h2 { font-size: 1.1rem; margin: 0 0 6px; }
.am-coupons-boutique ul { list-style: none; margin: 0; padding: 0; }
.am-coupons-boutique li { margin: 4px 0; }
.am-coupon-code { background: #fff; border: 1px solid #e0a100; border-radius: 6px; padding: 1px 8px; letter-spacing: .5px; }

/* Logo officiel dans l'en-tete */
.am-logo-img { display: block; height: 64px; width: auto; }
@media (max-width: 900px) { .am-logo-img { height: 52px; } }

/* ---------- Corrections de conformite aux maquettes (9 octobre) ---------- */
/* Logo : le theme impose « height: auto » aux images des pages WooCommerce, ce qui l'affichait en taille reelle */
.am-hd .am-logo-site img.am-logo-img { height: 64px; width: auto; max-width: none; }
@media (max-width: 900px) { .am-hd .am-logo-site img.am-logo-img { height: 52px; } }

/* Bandeaux des categories avec photo (maquettes 02 et 03) : voile de couleur a gauche, photo a droite */
.am-bandeau { min-height: 210px; }
.am-bandeau-photo-frais { background: linear-gradient(90deg, #3f7d24 0%, rgba(63,125,36,.94) 34%, rgba(63,125,36,.35) 58%, rgba(63,125,36,0) 78%), url(aumarche-img-bandeau-frais.jpg) right center / cover no-repeat, #3f7d24; }
.am-bandeau-photo-plats { background: linear-gradient(90deg, #7a3b12 0%, rgba(122,59,18,.94) 34%, rgba(122,59,18,.35) 58%, rgba(122,59,18,0) 78%), url(aumarche-img-bandeau-plats.jpg) right center / cover no-repeat, #7a3b12; }
.am-bandeau-photo-frais .am-bandeau-emoji, .am-bandeau-photo-plats .am-bandeau-emoji { display: none; }
.am-bandeau h1 { line-height: 1.12; }

/* Rangee recherche + tri au-dessus des produits ; la recherche de la colonne de filtres devient inutile */
.am-side .am-f-titre, .am-side input[type=search] { display: none; }
.am-main .woocommerce-result-count { display: none; }
.am-recherche-haut { position: relative; float: left; width: calc(100% - 250px); margin: 0 0 18px; }
.am-recherche-haut .am-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--am-gris); pointer-events: none; }
.am-recherche-haut input[type=search] { width: 100%; height: 50px; padding: 0 14px 0 44px; border: 1px solid var(--am-bord); border-radius: 12px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.am-main .woocommerce-ordering { float: right; width: 234px; margin: 0 0 18px; }
.am-main .woocommerce-ordering select { width: 100%; height: 50px; border: 1px solid var(--am-bord); border-radius: 12px; background-color: #fff; padding: 0 12px; }
.am-main ul.products { clear: both; }
@media (max-width: 699px) { .am-recherche-haut, .am-main .woocommerce-ordering { float: none; width: 100%; } }

/* Cartes de produit : bouton « Ajouter » toujours visible (le theme ne l'affichait qu'au survol), boutique sous le prix */
.woocommerce ul.products li.product .product-action-wrap { position: static; opacity: 1; visibility: visible; transform: none; width: auto; margin-top: 10px; padding: 0; }
.woocommerce ul.products li.product .product-action-wrap .button { display: block; width: 100%; padding: 11px 12px; border-radius: 10px; background: var(--am-vert); color: #fff; font-weight: 700; text-align: center; text-transform: none; letter-spacing: 0; }
.woocommerce ul.products li.product .product-action-wrap .button:hover { background: var(--am-vert-fonce); color: #fff; }
.woocommerce ul.products li.product .product-action-wrap .button svg, .woocommerce ul.products li.product .product-action-wrap .button .kadence-svg-iconset { display: none; }
.woocommerce ul.products li.product .product-excerpt { display: none; }
.am-carte-boutique { display: block; margin-top: 4px; color: var(--am-gris); font-size: .82rem; }
.am-carte-boutique::before { content: "🏪 "; font-size: .8em; }
.woocommerce ul.products li.product a.woocommerce-loop-image-link img { aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; }

/* Fiche produit (maquette 04) : pas de bouton « Poser une question », onglets soulignes, carte Vendeur a droite */
.wcfm_catalog_enquiry_button_wrapper, .wcfm_catalog_enquiry { display: none !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs { border-bottom: 1px solid var(--am-bord); padding: 0; margin: 0 0 20px; display: flex; gap: 34px; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { border: 0; background: none; margin: 0; padding: 0; border-radius: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { padding: 10px 0; font-weight: 600; color: var(--am-texte); border-bottom: 3px solid transparent; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--am-rouge); border-bottom-color: var(--am-rouge); }
.woocommerce div.product .woocommerce-tabs .panel > h2:first-child { display: none; }
@media (min-width: 1000px) {
	.woocommerce div.product .woocommerce-tabs { float: left; width: 58%; clear: left; }
	.woocommerce div.product .am-carte-vendeur { float: right; width: 37%; max-width: none; margin-top: 0; }
	.woocommerce div.product .related, .woocommerce div.product .upsells { clear: both; }
}
.am-carte-vendeur { background: #f6f6f4; }
.am-carte-vendeur .am-vendeur-box { background: #fff; }
.am-carte-vendeur ul { background: #fff; border-radius: 12px; padding: 14px 16px; }

/* Le theme Kadence est plus specifique que nos regles sur deux points : on force. */
/* 1. Bouton « Ajouter » visible en permanence (le theme le place en absolu, opacite 0, jusqu'au survol) */
.woocommerce ul.products li.product .product-action-wrap { position: static !important; opacity: 1 !important; visibility: visible !important; transform: none !important; width: auto !important; margin: 10px 0 0 !important; padding: 0 !important; bottom: auto !important; }
.woocommerce ul.products li.product .product-details { padding-bottom: 4px; }
/* 2. Tri (« Trier par ») a droite du champ de recherche ; compteur de resultats et bascule grille/liste masques */
.am-main .kadence-shop-top-row { display: block !important; float: right; width: 234px; margin: 0 0 18px; padding: 0; border: 0; }
.am-main .kadence-shop-top-row .kadence-woo-results-count, .am-main .kadence-shop-top-row .kadence-woo-toggle { display: none !important; }
.am-main .kadence-shop-top-row .woocommerce-ordering { float: none; width: 100%; margin: 0; }
@media (max-width: 699px) { .am-main .kadence-shop-top-row { float: none; width: 100%; } }

/* ---------- Maquettes 06, 08 et 09 (10 octobre) ---------- */
/* Titre simple en haut du panier et de « Mes commandes » ; le bandeau de titre du theme est masque sur le panier */
.woocommerce-cart .entry-hero, .woocommerce-cart .page-hero-section { display: none !important; }
.am-titre-page { font-size: clamp(1.6rem, 3.6vw, 2.2rem); margin: 18px 0 16px; color: var(--am-texte); }
.woocommerce-cart td.product-name .am-carte-boutique { margin-top: 2px; }
/* Bandeau « Devenez vendeur » avec photo (maquette 09) : voile sombre a gauche, photo a droite */
.am-hero-vendeur { min-height: 380px; background: linear-gradient(90deg, rgba(33,22,13,.96) 0%, rgba(33,22,13,.9) 38%, rgba(33,22,13,.45) 60%, rgba(33,22,13,0) 80%), url(aumarche-img-devenir-vendeur.jpg) right center / cover no-repeat, #21160d; }
.am-hero-vendeur .am-hero-vendeur-in { max-width: 560px; }
@media (max-width: 799px) { .am-hero-vendeur { background: linear-gradient(180deg, rgba(33,22,13,.92), rgba(33,22,13,.86)), url(aumarche-img-devenir-vendeur.jpg) 75% center / cover no-repeat, #21160d; } }

/* ---------- Corrections pour telephone (controle a 375 px, 10 octobre) ---------- */
/* Zones tactiles de 44 px sans changer la mise en page : la zone s'etend autour de l'icone */
.am-hd .am-hd-lien { padding: 11px; margin: -11px; box-sizing: content-box; }
.am-coeur { width: 44px; height: 44px; }
@media (max-width: 699px) {
	/* Panier : code promo et boutons empiles, sur toute la largeur (le libelle du bouton se chevauchait) */
	.woocommerce-cart td.actions .coupon { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 8px; }
	.woocommerce-cart td.actions .coupon .input-text,
	.woocommerce-cart td.actions .coupon .button,
	.woocommerce-cart td.actions > .button,
	.woocommerce-cart td.actions .am-vider { float: none !important; width: 100% !important; min-height: 46px; height: auto; margin: 0 0 8px; white-space: normal; line-height: 1.25; box-sizing: border-box; }
	/* Paiement : les 3 etapes restent sur une ligne ; le resume ne superpose plus le nom et le prix */
	.am-etapes-caisse { flex-wrap: nowrap; justify-content: space-between; gap: 6px; font-size: .78rem; }
	.am-etapes-caisse > * { flex: 1 1 0; min-width: 0; flex-direction: column; text-align: center; gap: 4px; }
	.am-etapes-caisse > *::before, .am-etapes-caisse > *::after { display: none; }
	.woocommerce-checkout-review-order-table { table-layout: fixed; width: 100%; }
	.woocommerce-checkout-review-order-table th.product-name, .woocommerce-checkout-review-order-table td.product-name { width: 64%; overflow-wrap: anywhere; }
	.woocommerce-checkout-review-order-table td.product-total, .woocommerce-checkout-review-order-table th.product-total { text-align: right; white-space: nowrap; }
	.woocommerce-checkout-review-order-table td.product-name img { width: 44px; height: 44px; }
}
/* La zone tactile elargie decale le repere de la pastille du panier de 11 px : on la replace sur l'icone */
.am-hd .am-panier .am-cart-count { top: 3px; left: 25px; }
@media (max-width: 699px) {
	.am-etapes-caisse { font-size: .7rem; }
	.am-etapes-caisse > * { white-space: nowrap; }
	.woocommerce-checkout-review-order-table tr.shipping td, .woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals td { font-weight: 400; font-size: .85rem; }
}

/* ---------- Corrections pour tablette (controle a 768 px, 10 octobre) ---------- */
/* Listes de produits : les raccourcis d'edition de WCFM (visibles des vendeurs et de l'administrateur) s'intercalaient
   entre la recherche et le tri et renvoyaient le tri a la ligne */
.am-main > a { display: none; }
/* Paiement : le trait entre deux etapes debordait sur le libelle de l'etape precedente ; il tient maintenant dans l'espace entre elles */
@media (min-width: 700px) {
	.am-etapes-caisse { gap: 62px; }
	.am-etapes-caisse li + li::before { left: -54px; width: 46px; }
}
