/* NGP PREZZI: confezione principale, riferimento unitario secondario. */
body .ngp-package-price {
  display: inline-flex !important;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  max-width: 100%;
  color: var(--ngp-ink, #1f1f1c);
  font-family: inherit;
  font-variant-numeric: tabular-nums;
  white-space: normal;
}
body .ngp-package-price .ngp-package-total {
  display: block;
  font-size: 1.375rem !important;
  font-weight: 600 !important;
  line-height: 1.25;
}
body.single-product .elementor-widget-woocommerce-product-price .ngp-package-price .ngp-package-total,
body.single-product .summary .ngp-package-price .ngp-package-total {
  font-size: 2rem !important;
}
body .ngp-package-price .ngp-package-caption {
  display: inline;
  font-size: 0.875rem !important;
  font-weight: 400 !important;
  line-height: 1.5;
}
body .ngp-package-price .ngp-unit-reference {
  display: block;
  color: var(--ngp-ink, #1f1f1c);
  font-size: 0.875rem !important;
  font-weight: 400 !important;
  line-height: 1.5;
  opacity: 1;
}
body .ngp-package-price .woocommerce-Price-amount {
  color: inherit;
  font-size: inherit !important;
  font-weight: inherit !important;
}

/* Sidebar carrello: confezione su tutta la riga, senza duplicati nel titolo. */
body .elementor-menu-cart__product-name {
  min-width: 0;
}
body .elementor-menu-cart__product-name .easyfatt-cart-package {
  display: none;
}
body .elementor-menu-cart__product-name dl.variation {
  display: block;
  margin: 0.375rem 0;
  padding: 0;
  border: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
}
body .elementor-menu-cart__product-name dl.variation dt,
body .elementor-menu-cart__product-name dl.variation dd {
  display: inline;
  float: none;
  min-width: 0;
  width: auto;
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-weight: 400;
  line-height: inherit;
}
body .elementor-menu-cart__product-name dl.variation dd p {
  display: inline;
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}
body .elementor-menu-cart__product-name dl.variation dt.variation-Confezione {
  display: none;
}
body .elementor-menu-cart__product-name dl.variation dd.variation-Confezione {
  display: block;
}
body .elementor-menu-cart__product-name dl.variation dd::after {
  content: "";
  display: block;
}
body .elementor-menu-cart__product-name dl.variation dt.variation-Prezzounitario,
body .elementor-menu-cart__product-name dl.variation dd.variation-Prezzounitario {
  font-size: 0.75rem;
  white-space: nowrap;
}
body .elementor-menu-cart__product-name dl.variation dt.variation-Prezzounitario {
  margin-inline-end: 0.25rem;
}

/* Griglie prodotto: card uniformi, prezzi e azioni allineati per riga. */
body ul.products.elementor-grid {
  align-items: stretch;
}
body ul.products.elementor-grid > li.product {
  display: flex !important;
  flex-direction: column !important;
  align-self: stretch;
  align-items: stretch;
  min-width: 0;
}
body ul.products.elementor-grid > li.product > a.woocommerce-loop-product__link {
  display: flex !important;
  flex: 1 1 auto;
  flex-direction: column !important;
  width: 100% !important;
  min-width: 0;
}
body ul.products.elementor-grid > li.product > a.woocommerce-loop-product__link > img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}
body ul.products.elementor-grid > li.product .woocommerce-loop-product__title {
  min-height: 2.8em !important;
  box-sizing: content-box;
  line-height: 1.4 !important;
}
body ul.products.elementor-grid > li.product > a.woocommerce-loop-product__link > .price {
  display: block;
  flex-shrink: 0;
  min-block-size: 5rem;
  margin-top: auto !important;
  padding-top: 0.5rem;
  box-sizing: content-box;
  font-size: 1.375rem;
  line-height: 1.25;
}
body ul.products.elementor-grid > li.product > .button,
body ul.products.elementor-grid > li.product > .ngp-reserved-price {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  flex-shrink: 0;
  min-height: 44px;
  max-width: calc(100% - 2rem) !important;
  white-space: normal;
  margin-top: 1rem !important;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  body ul.products.elementor-grid > li.product > a.woocommerce-loop-product__link > .price {
    min-block-size: 7rem;
  }
}
@media (max-width: 767px) {
  body ul.products.elementor-grid > li.product > a.woocommerce-loop-product__link > .price {
    min-block-size: 8.5rem;
  }
}



