/**
 * LFDP — fix specifici WordPress/WooCommerce (caricato per ultimo).
 */

/* Immagini sempre responsive */
img { max-width: 100%; height: auto; }

/* Avvisi WooCommerce dentro #notifications: stile alert Bootstrap */
#notifications .woocommerce-message,
#notifications .woocommerce-info,
#notifications .woocommerce-error {
  padding: .75rem 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: .4375rem;
  background-color: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
  font-size: .875rem;
}
#notifications .woocommerce-info { background-color: #d1ecf1; border-color: #bee5eb; color: #0c5460; }
#notifications .woocommerce-error { background-color: #f8d7da; border-color: #f5c6cb; color: #721c24; }
#notifications .woocommerce-message a,
#notifications .woocommerce-info a { color: inherit; font-weight: 700; text-decoration: underline; }

/* Prezzi nel carrello header e pagine WC: sempre in stile mirror */
.woocommerce-Price-amount { font-weight: inherit; }

/* Widget area sidebar: liste WC dentro la shell filtri del mirror */
#shop-sidebar ul.product-categories,
#shop-sidebar ul.widget-list,
#shop-sidebar .widget ul { list-style: none; padding-left: 0; margin: 0; }
#shop-sidebar .widget ul li { padding: .25rem 0; }
#shop-sidebar .widget ul li a { color: #373f50; font-size: .875rem; }
#shop-sidebar .widget ul li a:hover { color: #15735A; }
#shop-sidebar .widget select,
#shop-sidebar .widget input[type="text"],
#shop-sidebar .widget input[type="number"] { max-width: 100%; }

/* Widget filtro prezzo WC (se aggiunto) */
#shop-sidebar .price_slider_wrapper .price_slider { margin-bottom: 1rem; }
#shop-sidebar .price_slider_amount .button { font-size: .8rem; }

/* Form add-to-cart: niente margini strani ereditati */
form.cart { margin: 0; }

/* Pagine carrello/checkout/account: contenitore in stile mirror */
.woocommerce { width: 100%; }
.woocommerce table.shop_table { width: 100%; margin-bottom: 1.5rem; border-collapse: collapse; }
.woocommerce table.shop_table th,
.woocommerce table.shop_table td { padding: .75rem; border: 1px solid #e9ecef; text-align: left; }
.woocommerce .button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button {
  display: inline-block; font-weight: 500; text-align: center; vertical-align: middle;
  padding: .625rem 1.375rem; font-size: .875rem; line-height: 1.5; border-radius: .4375rem;
  color: #fff; background-color: #15735A; border-color: #15735A; cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.woocommerce .button:hover,
.woocommerce a.button:hover { background-color: #0B3D2E; border-color: #0B3D2E; color: #fff; text-decoration: none; }
.woocommerce input.input-text,
.woocommerce select,
.woocommerce textarea {
  display: block; width: 100%; padding: .625rem 1rem; font-size: .875rem; line-height: 1.5;
  color: #4b566b; background-color: #fff; border: 1px solid #dae1e7; border-radius: .4375rem;
}
.woocommerce label { font-weight: 500; margin-bottom: .375rem; display: inline-block; }
.woocommerce form .form-row { margin-bottom: 1rem; }
.woocommerce-breadcrumb { margin-bottom: 0; }

/* Pagination WC (quando attiva fuori dai nostri template) */
.woocommerce-pagination ul { list-style: none; display: flex; padding-left: 0; }
.woocommerce-pagination ul li { margin: 0 .15rem; }

/* Admin bar: il nostro header sticky resta sotto la barra WP */
@media (min-width: 783px) {
  body.admin-bar .navbar-sticky, body.admin-bar .tb--sticky { margin-top: 0; }
}

/* La select ordinamento custom: freccia nativa del tema */
#select-sort-order { max-width: 220px; }

/* Card prodotto dentro carousel tiny-slider */
.tns-carousel > div { box-sizing: border-box; }
.tns-outer { position: relative; }
.tns-controls [data-controls] { z-index: 5; }

/* Le miniature orizzontali della galleria prodotto scrollano */
.cz-thumblist { flex-wrap: nowrap; overflow-x: auto; }
.cz-thumblist::-webkit-scrollbar { height: 4px; }

/* Badge ribbon prodotto sopra l'immagine */
.product-flags { position: absolute; top: .75rem; left: .75rem; z-index: 3; }
.mplfdp-gallery { position: relative; }
article.product-miniature { position: relative; }

/* Stampa prezzo card: allineamento come nel mirror */
.mp-price-content .lfdp-price { margin-right: .5rem; }

/* L'immagine banner meilleur prix nella short description */
.product-description-short img { max-width: 100%; height: auto; }

/* Evita che i contenuti importati rompano il layout */
.product-description iframe,
.product-description video { max-width: 100%; }
.product-description table { display: block; overflow-x: auto; max-width: 100%; }

/* Home: il primo blocco hero è a filo con l'header */
#index #wrapper { padding-top: 0; }

/* ---- Rebrand Diamant Maison: sezioni scure in verde bosco ---- */
footer#footer .bg-dark { background-color: #0B3D2E !important; }
footer#footer .bg-darker { background-color: #0B3D2E !important; border-top: 1px solid rgba(255,255,255,0.12); }
.page-title-overlap.bg-dark { background-color: #0B3D2E !important; }
/* Link chiari sulle sezioni verde bosco: sempre leggibili */
footer#footer a, .page-title-overlap a { color: #f3f5f9; }
footer#footer a:hover, .page-title-overlap a:hover { color: #ffffff; }

/* Nav principale: hover leggibile su verde bosco */
.main-menu .nav-link:hover { opacity: 0.82; text-decoration: underline; }

/* ==========================================================================
   v1.4.0 — Système Diamant Maison
   Rouge feu = accent unique (promos, prix, CTA). Vert boisé = structure.
   Échelle de rayons unique : sm 6 / md 10 / lg 16 (tokens lfdp-tokens.css).
   ========================================================================== */

/* ---- Cartes produit : grand rayon, bord fin, survol discret ---- */
.lfdp-product-card,
.product-miniature.product-card {
  border-radius: var(--lfdp-radius-lg, 16px) !important;
  overflow: hidden;
  border: 1px solid #eceff1;
  transition: transform .2s ease, box-shadow .2s ease;
}
.lfdp-product-card:hover,
.product-miniature.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0.75rem 1.75rem -0.5rem rgba(11, 61, 46, 0.18);
}
.lfdp-product-card .lfdp-thumb img {
  transition: transform .35s ease;
}
.lfdp-product-card:hover .lfdp-thumb img {
  transform: scale(1.03);
}

/* ---- Prix : hiérarchie unique, tout sous l'image ---- */
.mp-price-content {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.15rem 0.5rem;
}
.mp-price-content .lfdp-price { margin-right: 0; font-size: 1.35rem; line-height: 1.2; }
.lfdp-price-old { font-weight: 400; }

/* Pill sconto in percentuale — l'unico badge promo, près du prix */
.lfdp-promo-pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: var(--lfdp-radius-pill, 999px);
  background: var(--lfdp-color-accent, #BE3A1F);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

/* ---- Boutons et champs : rayon médian partout ---- */
.btn { border-radius: var(--lfdp-radius-md, 10px); }
.btn-sm { border-radius: var(--lfdp-radius-sm, 6px); }
.form-control,
.woocommerce input.input-text,
.woocommerce select,
.woocommerce textarea { border-radius: var(--lfdp-radius-md, 10px); }

/* Menu panier du header et dropdowns flottants */
.dropdown-menu { border-radius: 12px; }

/* ---- Hero : prix premium blanc sur visuel, plus de pill volante ---- */
.mpbl-price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem 0.9rem;
  margin-bottom: 1.25rem;
}
.mpbl-price-old {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.3rem;
  font-weight: 400;
}
.mpbl-price .mp-tag-white {
  background: transparent;
  color: #fff;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  padding: 0 !important;
}

/* CTA hero : rayon médian, ombre légère pour détacher du visuel */
.mpbl-cta .lfdp-btn {
  border-radius: var(--lfdp-radius-md, 10px);
  box-shadow: 0 0.4rem 1rem rgba(0, 0, 0, 0.25);
  padding: 0.8rem 1.75rem;
  font-weight: 600;
}

/* ---- Reassurance : cartes au grand rayon (inline 8px d'origine) ---- */
.mprs-item { border-radius: var(--lfdp-radius-lg, 16px) !important; }

/* ---- Galerie produit : visuels arrondis ---- */
.mplfdp-gallery .cz-preview-item img { border-radius: 12px; }
.cz-thumblist-item img { border-radius: 8px; }

/* ---- Prix page produit : pill alignée au centre de la ligne ---- */
.product-discount { align-items: center; }

/* ---- CTA d'achat en rouge feu : ajout panier, validation commande ---- */
.woocommerce .single_add_to_cart_button.button,
.woocommerce a.checkout-button,
.woocommerce #place_order {
  background-color: var(--lfdp-color-accent, #BE3A1F) !important;
  border-color: var(--lfdp-color-accent, #BE3A1F) !important;
}
.woocommerce .single_add_to_cart_button.button:hover,
.woocommerce a.checkout-button:hover,
.woocommerce #place_order:hover {
  background-color: var(--lfdp-color-accent-hover, #9E2F18) !important;
  border-color: var(--lfdp-color-accent-hover, #9E2F18) !important;
}

/* Add-to-cart pagina prodotto: rosso fuoco (markup con .lfdp-btn-primary) */
.product-actions .add-to-cart.lfdp-btn-primary,
.product-actions button[name="add-to-cart"] {
  background-color: var(--lfdp-color-accent, #BE3A1F) !important;
  border-color: var(--lfdp-color-accent, #BE3A1F) !important;
}
.product-actions .add-to-cart.lfdp-btn-primary:hover,
.product-actions button[name="add-to-cart"]:hover {
  background-color: var(--lfdp-color-accent-hover, #9E2F18) !important;
  border-color: var(--lfdp-color-accent-hover, #9E2F18) !important;
}

/* ==========================================================================
   v1.4.2 — Fix mobile + carte compatte + contrasti footer
   ========================================================================== */

/* ---- Carte prodotto : ligne de prix sur une seule ligne, carte compacte ---- */
.mp-price-content { flex-wrap: nowrap; gap: 0.4rem; }
.mp-price-content .lfdp-price { font-size: 1.22rem; white-space: nowrap; }
.mp-price-content .lfdp-price-old { font-size: 0.85rem; white-space: nowrap; }
.mp-price-content .lfdp-promo-pill { font-size: 0.7rem; padding: 1px 7px; }
@media (max-width: 575.98px) {
  .mp-price-content { flex-wrap: wrap; row-gap: 2px; }
  .mp-price-content .lfdp-price { font-size: 1.1rem; }
  .mp-price-content .lfdp-price-old { font-size: 0.8rem; }
}
/* Corps caché (boutons) plus compact */
.product-miniature .card-body-hidden { padding-top: 0.25rem; padding-bottom: 0.75rem; }

/* Bouton "Acheter maintenant" : rouge feu, pleine largeur */
.lfdp-cta-buy {
  background-color: var(--lfdp-color-accent, #BE3A1F) !important;
  border-color: var(--lfdp-color-accent, #BE3A1F) !important;
  color: #fff !important;
  font-weight: 600;
}
.lfdp-cta-buy:hover, .lfdp-cta-buy:focus {
  background-color: var(--lfdp-color-accent-hover, #9E2F18) !important;
  border-color: var(--lfdp-color-accent-hover, #9E2F18) !important;
  color: #fff !important;
}

/* ---- Page produit mobile : quantité + ajout panier sans débordement ---- */
.product-actions .product-quantity .d-flex { gap: 0.75rem; flex-wrap: nowrap; }
.product-actions .qty { margin-right: 0 !important; flex: 0 0 auto; }
.mp-qty-selector.lfdp-qty-selector {
  display: inline-flex; align-items: stretch;
  border: 1px solid #dae1e7; border-radius: var(--lfdp-radius-md, 10px);
  overflow: hidden; width: auto;
}
.mp-qty-btn.lfdp-qty-btn { width: 38px; flex: 0 0 38px; border-radius: 0; }
.mp-qty-input.lfdp-qty-input {
  width: 44px; flex: 0 0 44px; text-align: center;
  border: 0; border-left: 1px solid #dae1e7; border-right: 1px solid #dae1e7;
  border-radius: 0; padding: 0;
}
.product-actions .add { flex: 1 1 auto; min-width: 0; }
.product-actions .add-to-cart { white-space: nowrap; padding-left: 0.75rem; padding-right: 0.75rem; }
@media (max-width: 380px) {
  .product-actions .product-quantity .d-flex { flex-wrap: wrap; }
  .product-actions .add { flex: 1 1 100%; }
}

/* ---- Footer : copyright lisible sur vert bosco ---- */
.footer-copyright { opacity: 1 !important; }
.footer-copyright, .footer-copyright p { color: #cfe0d8 !important; }

/* ---- Formulaire login/compte : labels au-dessus des champs ---- */
.woocommerce-form-row label { display: block; }
.woocommerce-form-row input.input-text { display: block; width: 100%; margin-top: 0.35rem; }
.woocommerce-form-login .woocommerce-form-row { margin-bottom: 1.1rem; }
.woocommerce-form-login .woocommerce-form-login__rememberme { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }

/* Toggle 'mostra password' WooCommerce: senza stili WC risulta rotto — nascosto */
.woocommerce-form-row .show-password-input { display: none !important; }

/* Login: le .form-row Cartzilla sono flex — label e 'ricordami' a tutta riga */
.woocommerce-form-row label { flex: 0 0 100%; }
.woocommerce-form-login__rememberme { flex: 0 0 100%; margin-bottom: 0.9rem; }

/* ==========================================================================
   v1.4.7 — Boutons carte en flux normal (plus de flyout absolu coupé)
   Le .card-body-hidden Cartzilla est positionné en top:100% : avec le
   overflow:hidden de la carte arrondie il était rogné. On le rend statique,
   toujours visible, sur tous les écrans.
   ========================================================================== */
.product-miniature .card-body-hidden {
  position: static !important;
  top: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
  margin-top: 0 !important;
  box-shadow: none !important;
  border-radius: 0;
  background: transparent;
  padding: 0 0.75rem 0.9rem;
}
.product-miniature .card-body-hidden .lfdp-cta-buy { margin-bottom: 0.35rem; }

/* Dimensions carte homogènes : titre max 2 lignes, image carrée contenue */
.lfdp-product-card .product-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.4em;
}
.lfdp-product-card .lfdp-thumb img {
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

/* ==========================================================================
   v1.4.8 — Breadcrumb lisibile, notice WC, bottone card su mobile
   ========================================================================== */
/* Il bridge di lfdp-components.css pensava la fascia pagina chiara: sul
   verde bosco il testo scuro era illeggibile. Colori chiari espliciti. */
.lfdp-page-header .breadcrumb-item::before { color: rgba(255, 255, 255, 0.55); }
.lfdp-page-header .breadcrumb-item > a { color: #cfe0d8; }
.lfdp-page-header .breadcrumb-item > a:hover { color: #ffffff; }
.lfdp-page-header .breadcrumb-item.active { color: #ffffff; font-weight: 500; }

/* Notice WooCommerce ("aggiunto al carrello" ecc.): stile coerente */
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce-message,
.woocommerce-info {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.75rem;
  border: 1px solid #d8e4df; border-left: 4px solid #15735A;
  border-radius: var(--lfdp-radius-md, 10px);
  background: #f3f8f6; color: #233038;
  padding: 0.8rem 1rem; margin-bottom: 1rem;
}
.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce .woocommerce-message .button {
  margin-left: auto;
  background-color: #0B3D2E; color: #fff !important;
  border-radius: var(--lfdp-radius-sm, 6px);
  padding: 0.45rem 0.9rem; font-weight: 600;
}
.woocommerce-message .button:hover,
.woocommerce-info .button:hover { background-color: #15735A; }

/* Bottone card su mobile: testo corto (il lungo debordava nelle card strette) */
@media (max-width: 767.98px) {
  .product-miniature .lfdp-cta-buy .lfdp-cta-full { display: none; }
}
@media (min-width: 768px) {
  .product-miniature .lfdp-cta-buy .lfdp-cta-short { display: none; }
}

/* ==========================================================================
   v1.4.14 — fascia pagina verde bosco anche su prodotto/categoria/account
   theme.css la rendeva quasi bianca (--header-category-background:#FBFBFA)
   con breadcrumb chiaro sopra = illeggibile. Verde ovunque + testo chiaro
   (i colori chiari del breadcrumb v1.4.8 si applicano ora a tutte le pagine).
   ========================================================================== */
#product .page-title-overlap.bg-dark,
#category .page-title-overlap.bg-dark,
#checkout .page-title-overlap.bg-dark,
#my-account .page-title-overlap.bg-dark,
#history .page-title-overlap.bg-dark,
#discount .page-title-overlap.bg-dark,
#order-follow .page-title-overlap.bg-dark {
  background-color: #0B3D2E !important;
}


/* ==========================================================================
   v1.4.20 — mega-menu: dropdown below its own item + compact nav spacing
   ========================================================================== */
#amegamenu .amenu-item {
  position: relative;
}
#amegamenu .adropdown {
  left: 0;
  right: auto;
}
#amegamenu .amenu-item:last-child .adropdown,
#amegamenu .amenu-item:nth-last-child(2) .adropdown {
  left: auto;
  right: 0;
}
/* Compact nav link padding and font to keep all items on one row */
#amegamenu .amenu-link {
  padding-left: 10px;
  padding-right: 10px;
  font-size: 0.8125rem; /* 13px */
}


/* ==========================================================================
   v1.4.22 — Desktop nav: single row + dropdown anchored below each item
   ========================================================================== */

/* Nav list: no wrap, items fill available space */
#amegamenu .anav-top.lfdp-main-nav {
  flex-wrap: nowrap !important;
  white-space: nowrap;
  width: 100%;
}

/* Each nav item must be the positioning parent for its dropdown */
#amegamenu .anav-top.lfdp-main-nav > .amenu-item {
  position: relative !important;
  flex-shrink: 0;
}

/* Compact link text */
#amegamenu .anav-top.lfdp-main-nav > .amenu-item > a.amenu-link,
#amegamenu .anav-top.lfdp-main-nav > .amenu-item > span.amenu-link {
  font-size: 0.75rem !important;   /* 12px */
  padding-left: 7px !important;
  padding-right: 7px !important;
  white-space: nowrap;
}

/* Dropdown: anchored to its own parent item, not the container */
#amegamenu .anav-top.lfdp-main-nav > .amenu-item > .adropdown {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  right: auto !important;
  min-width: 220px;
  z-index: 9999;
}

/* Last 2 items: open dropdown to the left so it doesn't overflow viewport */
#amegamenu .anav-top.lfdp-main-nav > .amenu-item:last-child > .adropdown,
#amegamenu .anav-top.lfdp-main-nav > .amenu-item:nth-last-child(2) > .adropdown,
#amegamenu .anav-top.lfdp-main-nav > .amenu-item:nth-last-child(3) > .adropdown {
  left: auto !important;
  right: 0 !important;
}

/* ==========================================================================
   v1.4.22 — Mobile nav: chevron arrow toggle instead of +/−
   ========================================================================== */

/* Hide the original +/− text icons */
#mobile-amegamenu .mpzmm-toggle-ico {
  display: none !important;
}

/* The toggle button itself: looks like a chevron arrow */
#mobile-amegamenu .mobile-toggle-plus {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
}

/* Draw a down chevron with CSS */
#mobile-amegamenu .mobile-toggle-plus::after {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  border-right: 2px solid #333;
  border-bottom: 2px solid #333;
  transform: rotate(45deg);
  transition: transform 0.25s ease;
  margin: auto;
}

/* When expanded, rotate arrow to point up */
#mobile-amegamenu .amenu-item.expanded > .amenu-item-row .mobile-toggle-plus::after {
  transform: rotate(-135deg);
}

/* Mobile dropdown: hidden by default, shown when expanded */
#mobile-amegamenu .amenu-item > .adropdown {
  display: none;
  overflow: hidden;
}
#mobile-amegamenu .amenu-item.expanded > .adropdown {
  display: block;
}

/* Mobile item row: flex layout with arrow on the right */
#mobile-amegamenu .amenu-item-row {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #eee;
}
#mobile-amegamenu .amenu-item-row .amenu-link {
  flex-grow: 1;
  padding: 12px 0;
  font-weight: 600;
  color: #1a1a1a;
}
/* ==========================================================================
   v1.4.26 — Scheda prodotto variabile (form variazioni WooCommerce nello stile tema)
   ========================================================================== */
.lfdp-variations .variations {
  width: 100%;
  margin-bottom: 14px;
}
.lfdp-variations .variations th,
.lfdp-variations .variations td {
  display: block;
  width: 100%;
  padding: 0;
  text-align: left;
}
.lfdp-variations .variations label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #313745;
  margin: 0 0 6px;
}
.lfdp-variations .variations select {
  width: 100%;
  padding: 11px 14px;
  font-size: 0.9375rem;
  color: #313745;
  background: #fff;
  border: 1.5px solid #d7dce2;
  border-radius: 8px;
  margin-bottom: 12px;
  cursor: pointer;
}
.lfdp-variations .variations select:focus {
  border-color: var(--lfdp-color-accent, #BE3A1F);
  outline: none;
}
.lfdp-variations .reset_variations {
  display: inline-block;
  font-size: 0.8125rem;
  color: #7b8494;
  margin-bottom: 10px;
}
.lfdp-variations .woocommerce-variation-price {
  margin-bottom: 12px;
}
.lfdp-variations .woocommerce-variation-price .price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--lfdp-color-accent, #BE3A1F);
}
.lfdp-variations .woocommerce-variation-availability {
  margin-bottom: 10px;
}
.lfdp-variations .single_variation_wrap .quantity {
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px;
}
.lfdp-variations .single_variation_wrap .quantity input {
  width: 70px;
  padding: 11px 10px;
  text-align: center;
  border: 1.5px solid #d7dce2;
  border-radius: 8px;
}
.lfdp-variations .single_add_to_cart_button {
  display: inline-block;
  width: auto;
  min-width: 240px;
  padding: 13px 26px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff !important;
  background-color: var(--lfdp-color-accent, #BE3A1F) !important;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
.lfdp-variations .single_add_to_cart_button:hover {
  background-color: var(--lfdp-color-accent-hover, #9E2F18) !important;
}
.lfdp-variations .single_add_to_cart_button.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
@media (max-width: 767.98px) {
  .lfdp-variations .single_add_to_cart_button {
    width: 100%;
    min-width: 0;
  }
}


/* Avviso "solde à la livraison" nel checkout (v1.4.30) */
.am-solde-notice {
  margin: 0 0 16px;
  padding: 12px 16px;
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: 8px;
  color: #78350f;
  font-size: 0.9375rem;
  line-height: 1.45;
}


/* ==========================================================================
   v1.4.31 — Widget scarsità prodotto ("ultimi pezzi" + barra) — sostituisce il banner promo rimosso
   ========================================================================== */
.am-scarcity {
  margin: 4px 0 18px;
  padding: 12px 14px;
  background: #fff5f5;
  border: 1px dashed #fca5a5;
  border-radius: 10px;
}
.am-scarcity-line {
  display: flex;
  align-items: center;
  gap: 8px;
}
.am-scarcity-ico {
  flex-shrink: 0;
  animation: am-scarcity-blink 1.6s ease-in-out infinite;
}
@keyframes am-scarcity-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
.am-scarcity-txt {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #b91c1c;
}
.am-scarcity-bar {
  margin-top: 10px;
  height: 8px;
  background: #e5e7eb;
  border-radius: 99px;
  overflow: hidden;
}
.am-scarcity-bar span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #f87171, #dc2626);
  animation: am-scarcity-fill 1.2s ease-out;
}
@keyframes am-scarcity-fill {
  from { width: 0; }
}


/* ==========================================================================
   v1.4.32 — Pagina "Commande reçue" (thank you): hero, card riepilogo, steps, tabella e indirizzi
   ========================================================================== */
.am-ty { max-width: 860px; margin: 0 auto; }

/* Hero conferma */
.am-ty-hero { text-align: center; padding: 8px 0 26px; }
.am-ty-check { display: inline-flex; width: 72px; height: 72px; color: #15735A; }
.am-ty-check svg { width: 100%; height: 100%; }
.am-ty-check-circle { stroke-dasharray: 208; stroke-dashoffset: 208; animation: am-ty-draw 0.7s ease-out forwards; }
.am-ty-check-path { stroke-dasharray: 44; stroke-dashoffset: 44; animation: am-ty-draw 0.45s ease-out 0.55s forwards; }
@keyframes am-ty-draw { to { stroke-dashoffset: 0; } }
.am-ty-title { margin: 14px 0 8px; font-size: 1.9rem; line-height: 1.2; color: #0B3D2E; }
.am-ty-sub { margin: 0 0 14px; color: #4b5563; font-size: 1rem; }
.am-ty-badge {
  display: inline-block; padding: 6px 16px; border-radius: 99px;
  background: #0B3D2E; color: #fff; font-weight: 600; font-size: 0.9375rem;
}

/* Card riepilogo */
.am-ty-cards {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 6px 0 20px;
}
.am-ty-card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
  padding: 14px 16px; display: flex; flex-direction: column; gap: 4px;
}
.am-ty-card-label {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: #6b7280; font-weight: 600;
}
.am-ty-card strong { font-size: 0.9375rem; color: #111827; line-height: 1.35; }

/* Box pagamento (COD / solde) */
.am-ty-paybox {
  display: flex; align-items: flex-start; gap: 14px;
  background: #f0faf5; border: 1px solid #bfe6d4; border-radius: 12px;
  padding: 16px 18px; margin: 0 0 24px;
}
.am-ty-paybox-ico { flex-shrink: 0; width: 34px; height: 34px; color: #15735A; }
.am-ty-paybox-ico svg { width: 100%; height: 100%; }
.am-ty-paybox strong { color: #0B3D2E; }
.am-ty-paybox p { margin: 4px 0 0; color: #374151; font-size: 0.9375rem; line-height: 1.5; }
.am-ty-paybox-cols { display: flex; gap: 40px; flex-wrap: wrap; }
.am-ty-paybox-cols > div { display: flex; flex-direction: column; gap: 4px; }
.am-ty-paybox-cols span { font-size: 0.8125rem; color: #6b7280; }
.am-ty-paybox-cols strong { font-size: 1.25rem; }

/* Prossimi passi */
.am-ty-steps { margin: 0 0 28px; }
.am-ty-steps h2 { font-size: 1.25rem; color: #0B3D2E; margin: 0 0 14px; }
.am-ty-steps ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.am-ty-steps li {
  display: flex; align-items: flex-start; gap: 14px;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 14px 16px;
}
.am-ty-step-num {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  background: #15735A; color: #fff; font-weight: 700; font-size: 0.9375rem;
  display: inline-flex; align-items: center; justify-content: center;
}
.am-ty-steps li strong { color: #111827; }
.am-ty-steps li p { margin: 3px 0 0; color: #6b7280; font-size: 0.9rem; line-height: 1.45; }

/* Tabella dettagli ordine */
.am-ty .woocommerce-order-details__title,
.am-ty .woocommerce-customer-details .woocommerce-column__title {
  font-size: 1.25rem; line-height: 1.3; color: #0B3D2E; margin: 0 0 14px;
}
.am-ty .woocommerce-order-details { margin: 0 0 28px; }
.am-ty .shop_table.order_details {
  width: 100%; border-collapse: separate; border-spacing: 0;
  border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; background: #fff;
}
.am-ty .shop_table.order_details th,
.am-ty .shop_table.order_details td { padding: 14px 18px; text-align: left; vertical-align: middle; }
.am-ty .shop_table.order_details thead th {
  background: #f9fafb; font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.06em; color: #6b7280; border-bottom: 1px solid #e5e7eb;
}
.am-ty .shop_table.order_details tbody td { border-bottom: 1px solid #f3f4f6; }
.am-ty .shop_table.order_details tfoot th { color: #374151; font-weight: 600; border-bottom: 1px solid #f3f4f6; }
.am-ty .shop_table.order_details tfoot td { border-bottom: 1px solid #f3f4f6; text-align: right; }
.am-ty .shop_table.order_details tfoot tr:last-child th,
.am-ty .shop_table.order_details tfoot tr:last-child td { border-bottom: 0; }
.am-ty .shop_table.order_details tfoot tr:last-child td { font-size: 1.15rem; font-weight: 700; color: #0B3D2E; }
.am-ty .shop_table.order_details .product-total { text-align: right; }
.am-od-prod { display: flex; align-items: center; gap: 14px; }
.am-od-thumb {
  width: 64px; height: 64px; object-fit: contain; flex-shrink: 0;
  border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; padding: 4px;
}
.am-od-prod-name a { color: #0B3D2E; font-weight: 600; text-decoration: none; }
.am-od-prod-name a:hover { text-decoration: underline; }
.am-od-prod-name .product-quantity { color: #6b7280; font-weight: 600; }

/* Indirizzi */
.am-ty .woocommerce-customer-details .woocommerce-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.am-ty .woocommerce-customer-details .woocommerce-column {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 18px;
  max-width: none; width: auto; flex: none; float: none;
}
.am-ty .woocommerce-customer-details address { font-style: normal; color: #374151; line-height: 1.65; font-size: 0.9375rem; border: 0; padding: 0; }

/* Reassurance + CTA */
.am-ty-reassurance {
  display: flex; justify-content: center; gap: 34px; flex-wrap: wrap;
  margin: 30px 0 22px; padding: 18px 10px; border-top: 1px solid #e5e7eb;
}
.am-ty-reassurance > div { display: flex; align-items: center; gap: 9px; color: #15735A; font-weight: 600; font-size: 0.9rem; }
.am-ty-reassurance svg { width: 24px; height: 24px; flex-shrink: 0; }
.am-ty-cta { text-align: center; margin: 0 0 10px; }
.am-ty-btn {
  display: inline-block; padding: 14px 34px; border-radius: 10px;
  background: #BE3A1F; color: #fff !important; font-weight: 700; font-size: 1rem;
  text-decoration: none; transition: background 0.2s ease;
}
.am-ty-btn:hover { background: #9E2F18; }

/* Mobile */
@media (max-width: 768px) {
  .am-ty-title { font-size: 1.45rem; }
  .am-ty-cards { grid-template-columns: 1fr 1fr; }
  .am-ty .woocommerce-customer-details .woocommerce-columns { grid-template-columns: 1fr; }
  .am-ty-reassurance { gap: 16px; flex-direction: column; align-items: center; }
  .am-ty-paybox-cols { gap: 18px; }
}
@media (max-width: 480px) {
  .am-od-thumb { width: 52px; height: 52px; }
  .am-ty .shop_table.order_details th,
  .am-ty .shop_table.order_details td { padding: 11px 12px; font-size: 0.875rem; }
}


/* ==========================================================================
   v1.4.35 — Menu hover bridge, immagini intere, niente righe TVA
   ========================================================================== */

/* Mega-menu: ponte invisibile sotto la voce, cosi' il dropdown non sparisce
   mentre ci muovi il cursore (segnalazione Denis: "impossibili da cliccare"). */
#amegamenu .anav-top.lfdp-main-nav > .amenu-item.plex::before {
  content: '';
  position: absolute;
  top: 100%;
  left: -10px;
  right: -10px;
  height: 18px;
  z-index: 999;
}
#amegamenu .anav-top.lfdp-main-nav > .amenu-item > .adropdown {
  margin-top: 0 !important;
}

/* Immagini prodotto: mai tagliate/zoommate, sempre intere e visibili */
.cz-preview-item img,
.cz-preview-item .cz-image-zoom {
  object-fit: contain !important;
  width: 100%;
  height: auto;
  max-height: 520px;
  margin: 0 auto;
  display: block;
}
.lfdp-product-card .lfdp-thumb,
.mppc-img-wrap.lfdp-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}
.products .product-miniature img,
.mpcp-item .lfdp-thumb img {
  object-fit: contain !important;
}

/* Righe TVA nei blocchi carrello/checkout: nascoste (richiesta Denis) */
.wp-block-woocommerce-cart-order-summary-taxes-block,
.wp-block-woocommerce-checkout-order-summary-taxes-block,
.wc-block-components-totals-taxes,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__description {
  display: none !important;
}


/* ==========================================================================
   v1.4.38 — Picker pacchetti pellet a card (sostituisce il select variazioni)
   ========================================================================== */
.am-packs-wrap { margin: 4px 0 14px; }
.am-packs-title { font-weight: 600; font-size: 0.9375rem; color: #313745; margin-bottom: 10px; }
.am-packs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.am-pack {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 14px 10px 12px;
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  transition: border-color .15s ease, box-shadow .15s ease, transform .1s ease;
}
.am-pack:hover { border-color: #15735A; transform: translateY(-1px); }
.am-pack.selected {
  border-color: #15735A;
  box-shadow: 0 0 0 3px rgba(21, 115, 90, 0.15);
  background: #f4fbf8;
}
.am-pack.selected::after {
  content: '✓';
  position: absolute;
  top: 8px;
  right: 10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #15735A;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}
.am-pack-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: #BE3A1F;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 3px 10px;
  border-radius: 99px;
  white-space: nowrap;
}
.am-pack-qty { font-weight: 700; font-size: 1.0625rem; color: #0B3D2E; }
.am-pack-kg { font-size: 0.8125rem; color: #6b7280; }
.am-pack-price { font-weight: 700; font-size: 1.25rem; color: #BE3A1F; margin-top: 4px; }
.am-pack-unit { font-size: 0.75rem; color: #6b7280; }
.am-pack-unit .am-pack-save {
  font-style: normal;
  font-weight: 700;
  color: #15735A;
  margin-left: 4px;
}
@media (max-width: 480px) {
  .am-packs { grid-template-columns: 1fr 1fr; gap: 8px; }
  .am-pack { padding: 12px 6px 10px; }
  .am-pack-price { font-size: 1.1rem; }
}

/* Il select variazioni originale resta nel DOM (logica WC) ma non si vede:
   l'UI sono le card sopra */
.lfdp-variations .variations select[name="attribute_conditionnement"],
.lfdp-variations .variations .label,
.lfdp-variations .variations .value {
  display: none !important;
}
.lfdp-variations .variations table,
.lfdp-variations .variations tbody,
.lfdp-variations .variations tr {
  display: block;
  padding: 0;
  margin: 0;
  border: 0;
}


/* ==========================================================================
   v1.4.39 — Checkout: nascosti titolo "Options de paiement" + riquadro opzioni
   (c'e' solo il COD attivo; RIATTIVARE quando arriva Stripe: cancellare questo blocco)
   ========================================================================== */
.wp-block-woocommerce-checkout-payment-block .wc-block-checkout__payment-method-title,
.wp-block-woocommerce-checkout-payment-block .wc-block-components-payment-method-label,
.wp-block-woocommerce-checkout-payment-block .wc-block-components-radio-control,
.wp-block-woocommerce-checkout-payment-block .wc-block-checkout__payment-method {
  display: none !important;
}

/* v1.4.40 — il titolo "Options de paiement" NON usa la classe attesa in WC 11:
   nascondiamo qualunque heading dentro il blocco pagamenti (contenuto gia' nascosto in v1.4.39) */
.wp-block-woocommerce-checkout-payment-block h1,
.wp-block-woocommerce-checkout-payment-block h2,
.wp-block-woocommerce-checkout-payment-block h3,
.wp-block-woocommerce-checkout-payment-block .wc-block-components-title,
.wp-block-woocommerce-checkout-payment-block .wc-block-components-checkout-step__title {
  display: none !important;
}


/* ==========================================================================
   v1.4.41 — Immagini ovunque centrate e intere (mai ritagliate),
   picker pellet con foto sacco, via il selettore quantita' dalla pagina pellet
   ========================================================================== */

/* Regola universale anti-ritaglio per OGNI contenitore immagine prodotto */
.product-miniature .mppc-img-wrap,
.lfdp-product-card .lfdp-thumb,
.mpcp-item .lfdp-thumb,
.products .product-card .card-img-top,
.woocommerce ul.products li.product .woocommerce-LoopProduct-link,
.woocommerce ul.products li.product a img,
.cz-preview-item,
.am-pack-img {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}
.product-miniature img,
.lfdp-product-card .lfdp-thumb img,
.mpcp-item img,
.woocommerce ul.products li.product a img,
.cz-preview-item img {
  object-fit: contain !important;
  margin: 0 auto;
}

/* Picker pellet: immagine del sacco dentro ogni card */
.am-pack-img {
  position: relative;
  width: 100%;
  margin-bottom: 4px;
}
.am-pack-thumb {
  height: 72px;
  width: auto;
  object-fit: contain;
}
.am-pack-mult {
  position: absolute;
  bottom: 0;
  right: calc(50% - 44px);
  background: #0B3D2E;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 99px;
}
@media (max-width: 480px) {
  .am-pack-thumb { height: 56px; }
}

/* Pagina pellet (form variabile): niente selettore quantita' — i pacchetti
   sono gia' le quantita'; WC invia qty=1 di default */
.lfdp-variations .quantity,
.lfdp-variations .screen-reader-text[for^="quantity"] {
  display: none !important;
}
.lfdp-variations .single_variation_wrap .woocommerce-variation-add-to-cart {
  display: flex;
  justify-content: flex-start;
}


/* ==========================================================================
   v1.4.42 — Menu mobile (hamburger): voci centrate, testo bianco leggibile,
   tag promo rossi, sottomenu chiari (era illeggibile: testo tagliato a sx)
   ========================================================================== */
@media (max-width: 991.98px) {
  #navbarCollapse {
    background: #0B3D2E;
  }
  #mobile-amegamenu ul.anav-top {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
    padding: 6px 0 10px;
  }
  #mobile-amegamenu .amenu-item {
    width: 100%;
    margin: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }
  #mobile-amegamenu .amenu-item-row {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
  }
  #mobile-amegamenu .amenu-link {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 48px;
    color: #ffffff !important;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
  }
  #mobile-amegamenu .amenu-link span,
  #mobile-amegamenu .amenu-link span span {
    color: #ffffff !important;
  }
  /* Tag promo: pill rossa inline accanto al testo (non piu' assoluta) */
  #mobile-amegamenu .amenu-link > sup.lfdp-promo-tag {
    position: static !important;
    transform: none !important;
    margin: 0;
    background: #BE3A1F;
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 99px;
    white-space: nowrap;
  }
  /* Bottone + per aprire i sottomenu */
  #mobile-amegamenu .mobile-toggle-plus {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    color: #ffffff;
    font-size: 1.25rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
  }
  /* Sottomenu aperto: sfondo leggermente piu' chiaro, voci centrate */
  #mobile-amegamenu .amenu-item.expanded > .adropdown,
  #mobile-amegamenu .adropdown {
    background: rgba(255, 255, 255, 0.07);
  }
  #mobile-amegamenu .adropdown a,
  #mobile-amegamenu .adropdown .amenu-link {
    display: block;
    text-align: center;
    color: #d9ece5 !important;
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 13px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  #mobile-amegamenu .adropdown a:active,
  #mobile-amegamenu .adropdown a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
  }
}
