/* ==========================================================================
   CUSTOM.CSS – EL-HOPE.IT
   Struttura:
   01. BASE – HTML / BODY / SFONDO
   02. HEADER – Barra superiore, sticky, z-index
   03. HEADER – Link e icone colori
   04. HEADER – Dropdown menu account
   05. NAVIGATION – Mega menu desktop
   06. NAVIGATION – Mega menu accordion (mobile)
   07. NAVIGATION – Albero categorie (colonna sinistra)
   08. FOOTER
   09. HERO SLIDER / CAROSELLO HOME
   10. SCHEDE BRAND
   11. MINIATURE PRODOTTO (listing)
   12. BADGE / FLAG prodotto (Nuovo, Esaurito)
   13. PAGINA PRODOTTO singolo
   14. BOTTONI – Primary e Outline Primary
   15. LINK GLOBALI (variabili colore Bootstrap)
   16. CARRELLO – Icone e summary
   17. CHECKOUT – Fix ps_checkout
   18. FORM INDIRIZZI
   19. ACCORDION
   20. BREADCRUMB
   21. BARRA RICERCA
   22. MODALE
   23. COOKIE BANNER
   24. SEZIONE "CHI SIAMO" – Carosello
   25. UTILITY – Animazioni testo slider
========================================================================== */


/* ==========================================================================
   01. BASE – HTML / BODY / SFONDO
========================================================================== */
html,
body {
  background-color: #f1f1f1 !important;
  font-family: sans-serif !important;
}

.wrapper,
.wrapper_content,
#content-wrapper,
.page-content,
.page-index {
  background-color: #f1f1f1 !important;
}


/* ==========================================================================
   02. HEADER – Barra superiore, sticky, z-index
========================================================================== */
header,
.header,
.header-top,
.header-js-sticky-header {
  z-index: 9999 !important;
}

.header-top {
  background-color: #111827 !important;
  background: #111827 !important;
  border-bottom: 3px solid #28AD50;
}

.header-bottom {
  font-weight: bold !important;
  --header-color: black !important;
}

/* ==========================================================================
   PRODUCT DETAILS LINK
   Collegamento inserito nel riepilogo breve del prodotto.
========================================================================== */

.page-product .product-details-link-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0 !important;
}

.page-product .product-details-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 2.75rem;
  padding: 0.625rem 1.0625rem;
  border: 1px solid #ccd9e5;
  border-radius: 0.6875rem;
  background: #f5f8fb;
  color: #29445f;
  font-size: 0.8125rem;
  font-weight: 750;
  line-height: 1;
  letter-spacing: 0.025em;
  text-decoration: none !important;
  box-shadow: 0 0.3125rem 0.9375rem rgba(28, 55, 80, 0.08);
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease,
    background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.page-product .product-details-link__icon {
  display: flex;
  flex: 0 0 1.4375rem;
  align-items: center;
  justify-content: center;
  width: 1.4375rem;
  height: 1.4375rem;
  border: 1px solid #547996;
  border-radius: 50%;
  background: #547996;
  color: #fff;
  animation: product-details-arrow-nudge 3s ease-in-out infinite;
  transition: border-color 0.18s ease, background-color 0.18s ease,
    transform 0.18s ease;
}

.page-product .product-details-link__icon::before {
  width: 0.4375rem;
  height: 0.4375rem;
  margin-top: -0.1875rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

.page-product .product-details-link:hover,
.page-product .product-details-link:focus-visible {
  border-color: #89a7bd;
  background: #edf4f9;
  color: #17344f;
  box-shadow: 0 0.5rem 1.25rem rgba(28, 55, 80, 0.13);
  transform: translateY(-1px);
}

.page-product .product-details-link:hover .product-details-link__icon,
.page-product .product-details-link:focus-visible .product-details-link__icon {
  border-color: #365f7e;
  background: #365f7e;
}

.page-product .product-details-link:hover .product-details-link__icon::before {
  transform: translateY(2px) rotate(45deg);
}

.page-product .product-details-link:focus-visible {
  outline: 3px solid rgba(84, 121, 150, 0.2);
  outline-offset: 2px;
}

@keyframes product-details-arrow-nudge {
  0%,
  82%,
  100% {
    transform: translateY(0);
  }

  88% {
    transform: translateY(3px);
  }

  94% {
    transform: translateY(-1px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-product .product-details-link__icon {
    animation: none;
  }
}

.page-product #description {
  scroll-margin-top: 8.75rem;
}

@media (max-width: 575.98px) {
  .page-product .product-details-link {
    width: 100%;
  }
}

.header-bottom a:hover {
  color: rgb(40, 173, 80) !important;
}


/* ==========================================================================
   03. HEADER – Link, icone e badge colori
========================================================================== */
.header-top a {
  color: #fff !important;
  font-weight: bold !important;
}

.header-top .material-icons {
  color: #fff;
}

.header-top a:hover {
  color: rgb(40, 173, 80) !important;
}

.header-top a:hover .material-icons {
  color: rgb(40, 173, 80) !important;
}

/* Badge contatore carrello (verde) */
.header-block__badge {
  color: rgb(40, 173, 80) !important;
}


/* ==========================================================================
   04. HEADER – Dropdown menu account (desktop e mobile)
========================================================================== */
.dropdown-menu {
  --bs-dropdown-bg: #fff !important;
}

/* Dropdown account – sfondo scuro (desktop) */
.dropdown-menu[aria-labelledby="userMenuButton"] {
  background-color: #111827 !important;
}

/* Override mobile: sfondo bianco nel menu account */
@media (max-width: 767.98px) {
  .dropdown-menu.dropdown-menu-start.show[aria-labelledby="userMenuButton"] {
    background-color: #ffffff !important;
    color: #111827 !important;
  }

  .dropdown-menu.dropdown-menu-start.show[aria-labelledby="userMenuButton"] .dropdown-item {
    color: #111827 !important;
  }

  .dropdown-menu.dropdown-menu-start.show[aria-labelledby="userMenuButton"] .dropdown-item:hover {
    background-color: #f1f1f1 !important;
  }
}


/* ==========================================================================
   05. NAVIGATION – Mega menu desktop
========================================================================== */
.main-menu {
  text-transform: uppercase !important;
}

/* Pannello dropdown del mega menu */
@media (min-width: 1200px) {
#top-menu .menu-container.shadow-sm.js-sub-menu {
  background: #fff !important;
  color: #27313b !important;
  margin-top: 0 !important;
  padding: 1.25rem clamp(1rem, 2.2vw, 2rem) !important;
  max-height: calc(100vh - 8rem);
  top: calc(100% - 1px) !important;
  border: 1px solid #e1e7e3;
  border-top: 2px solid #218c43;
  border-radius: 0 0 1rem 1rem;
  box-shadow: 0 1rem 2.25rem rgba(17, 24, 39, 0.14) !important;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #8acb9c #edf3ef;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

#top-menu .menu-container.shadow-sm.js-sub-menu::-webkit-scrollbar {
  width: 0.55rem;
}

#top-menu .menu-container.shadow-sm.js-sub-menu::-webkit-scrollbar-track {
  background: #edf3ef;
}

#top-menu .menu-container.shadow-sm.js-sub-menu::-webkit-scrollbar-thumb {
  background: #8acb9c;
  border: 2px solid #edf3ef;
  border-radius: 999px;
}

#top-menu .menu-container > .container > .row {
  --bs-gutter-x: 0.75rem;
  --bs-gutter-y: 0.4rem;
}

#top-menu .menu-container > .container > .row > li {
  margin-top: var(--bs-gutter-y);
  padding-right: calc(var(--bs-gutter-x) * 0.5);
  padding-left: calc(var(--bs-gutter-x) * 0.5);
}

/* Link di primo livello nel mega menu */
.main-menu__tree > li .menu-container a[data-depth="1"] {
  display: flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.6rem;
  color: #27313b !important;
  font-weight: 600 !important;
  line-height: 1.25;
  white-space: normal;
  transition: color 0.16s ease, background-color 0.16s ease,
    transform 0.16s ease;
}

.main-menu__tree > li .menu-container a[data-depth="1"]:hover {
  background: #f0f8f2;
  color: #176f32 !important;
  transform: translateX(2px);
}

.main-menu__tree > li .menu-container a[data-depth="1"]:focus-visible {
  background: #f0f8f2;
  color: #176f32 !important;
  outline: 3px solid rgba(33, 140, 67, 0.2);
  outline-offset: 1px;
}

.main-menu__tree > li .menu-container a[data-depth="1"].is-open {
  background: #e8f5ec;
  color: #176f32 !important;
}

/* Voci sottocategoria in minuscolo con pallino */
#top-menu .menu-container .submenu {
  margin: 0.3rem 0.55rem 0.2rem;
  padding: 0.4rem 0.55rem 0.45rem 1.35rem;
  background: #f7faf8;
  border-left: 2px solid rgba(33, 140, 67, 0.38);
  border-radius: 0 0.55rem 0.55rem 0;
  text-transform: lowercase !important;
  list-style-type: disc !important;
}

#top-menu .menu-container .submenu > li {
  margin: 0;
  color: #8a9590;
}

#top-menu .menu-container .submenu a {
  display: block;
  padding: 0.2rem 0.1rem;
  color: #59636d !important;
  font-size: 0.875rem;
  font-weight: 500 !important;
  line-height: 1.3;
}

#top-menu .menu-container .submenu a:hover,
#top-menu .menu-container .submenu a:focus-visible {
  color: #176f32 !important;
}

#top-menu .menu-container a[data-depth="1"] .menu-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 1.5rem;
  width: 1.5rem;
  height: 1.5rem;
  margin-left: auto;
  border-radius: 999px;
  color: #667085;
  font-size: 1rem;
}

#top-menu .menu-container a[data-depth="1"]:hover .menu-chevron,
#top-menu .menu-container a[data-depth="1"].is-open .menu-chevron {
  background: rgba(33, 140, 67, 0.1);
  color: #176f32;
}
}

/* Link con freccia chevron (ha figli) */
.main-menu__tree__link.has-children {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.main-menu__tree__link .menu-chevron {
  font-size: 20px;
  margin-left: 15px;
  color: #000000;
  transition: transform .2s ease, color .2s ease;
  cursor: pointer;
  pointer-events: auto;
}

.main-menu__tree__link:hover .menu-chevron {
  color: #28ad50;
  transform: rotate(180deg);
}

/* Chevron su link di primo livello (depth 0) */
#top-menu > li > a[data-depth="0"] .menu-chevron {
  color: #000 !important;
}


/* ==========================================================================
   06. NAVIGATION – Mega menu accordion (apertura/chiusura)
========================================================================== */

/* Submenu chiuso di default */
#top-menu li.category > a.main-menu__tree__link[data-depth="1"] + ul.submenu {
  display: none;
}

/* Submenu aperto (classe aggiunta via JS) */
#top-menu li.category > a.main-menu__tree__link[data-depth="1"].is-open + ul.submenu {
  display: block;
}


/* ==========================================================================
   07. NAVIGATION – Albero categorie colonna sinistra
========================================================================== */
.category-tree__list[data-depth="1"] .category-tree__item__header > .category-tree__item__link {
  text-transform: lowercase;
}

.category-tree__list[data-depth="1"] > li {
  list-style-type: disc;
}

#left-column .category-tree__item__link:hover,
#left-column .category-tree__item__link:focus {
  color: #28ad50 !important;
}

#left-column .category-tree__item__link:visited {
  color: inherit;
}

/* Nascondi albero categorie su mobile */
@media (max-width: 767.98px) {
  .ps_categorytree.category-tree.left-block {
    display: none !important;
  }
}

/* Nascondi widget di ricerca dropdown */
.search-widgets__dropdown {
  display: none !important;
}

/* Posizione caption carosello */
.carousel-caption {
  left: 22% !important;
}


/* ==========================================================================
   08. FOOTER
========================================================================== */
.header-top {
  background-color: #111827 !important;
  background: #111827 !important;
}

.footer {
  --footer-color: rgba(226, 232, 240, 0.82);
  --footer-heading-color: #f8fafc;
  --footer-hover-color: #79cf91;
}

.footer__main {
  position: relative;
  border-top: 2px solid #79cf91;
  background:
    radial-gradient(circle at 14% 8%, rgba(56, 189, 122, 0.08), transparent 27rem),
    linear-gradient(135deg, #071827 0%, #0a1d30 58%, #071522 100%) !important;
  color: rgba(226, 232, 240, 0.82);
}


/* ==========================================================================
   09. HERO SLIDER / CAROSELLO HOME
========================================================================== */

/* Immagine: contain di default (desktop) */
.carousel-content img {
  object-fit: contain !important;
}

/* Testo caption sempre bianco */
.carousel-caption h2,
.carousel-caption p {
  color: #fff !important;
}

/* Su mobile: cover e controlli nascosti */
@media (max-width: 767.98px) {
  .carousel .carousel-item img {
    object-fit: cover !important;
  }

  .carousel-control-prev,
  .carousel-control-next {
    display: none !important;
  }

  /* Sfumatura sfondo caption su mobile */
  .carousel-caption {
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, .001%),
      rgba(0, 0, 0, .81),
      transparent
    );
    padding: 1.25rem;
    border-radius: 12px;
  }
}

/* Disabilita transform testo display-1 nello slider */
.display-1 {
  text-transform: none !important;
}


/* ==========================================================================
   10. SCHEDE BRAND
========================================================================== */
.brand__img {
  overflow: hidden;
}

.brand__img img {
  transition: transform .25s ease, filter .25s ease;
  will-change: transform;
}

.brand.card {
  margin: 12px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.brand.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  border-color: #28ad50;
}

.brand .brand__products a {
  font-weight: 600;
}

/* Nasconde info descrittive brand */
.brand .brand__infos {
  display: none;
}

/* Override margine schede brand su mobile */
@media (max-width: 767.98px) {
  .brand.card {
    margin: 0px !important;
  }
}

/* Hover zoom immagini subcategoria */
.subcategory__image {
  overflow: hidden;
}

.subcategory__image img {
  transition: transform 0.3s ease;
}

.subcategory:hover .subcategory__image img {
  transform: scale(1.09);
}

/* ==========================================================================
   10B. TITOLI VETRINE PRODOTTO (solo homepage)
========================================================================== */

/*
 * Un'unica gerarchia visiva per Nuovi, Popolari e Migliori vendite.
 * Il selettore e' limitato alla home per non alterare titoli e moduli altrove.
 */
body.page-index :is(
  section.new-products,
  section.featured-products,
  section.best-sellers-products
) h2.section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  margin: 2rem 0 1.2rem !important;
  color: #202a25;
  font-size: clamp(1.3rem, 1.4vw, 1.55rem);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* Accento verticale verde: riconoscibile ma piu elegante di una fascia piena. */
body.page-index :is(
  section.new-products,
  section.featured-products,
  section.best-sellers-products
) h2.section-title::before {
  flex: 0 0 0.32rem;
  width: 0.32rem;
  height: 1.55rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #35bd5b 0%, #218c43 100%);
  box-shadow: 0 0.2rem 0.6rem rgba(33, 140, 67, 0.2);
  content: "";
}

/* La linea chiude il titolo e lo collega visivamente alla griglia sottostante. */
body.page-index :is(
  section.new-products,
  section.featured-products,
  section.best-sellers-products
) h2.section-title::after {
  flex: 1 1 auto;
  min-width: 2rem;
  height: 1px;
  margin-left: 0.15rem;
  background: linear-gradient(
    90deg,
    rgba(33, 140, 67, 0.28) 0%,
    rgba(33, 140, 67, 0) 100%
  );
  content: "";
}

@media (max-width: 575.98px) {
  body.page-index :is(
    section.new-products,
    section.featured-products,
    section.best-sellers-products
  ) h2.section-title {
    gap: 0.55rem;
    margin: 1.5rem 0 0.9rem !important;
    font-size: 1.2rem;
  }

  body.page-index :is(
    section.new-products,
    section.featured-products,
    section.best-sellers-products
  ) h2.section-title::before {
    flex-basis: 0.26rem;
    width: 0.26rem;
    height: 1.25rem;
  }
}


/* ========================================================================== 
   11. MINIATURE PRODOTTO (listing / griglia)
========================================================================== */

/* Struttura uniforme e card a tutta altezza. */
.product-miniature {
  display: flex;
  margin-bottom: 1.5rem !important;
}

.product-miniature > .card {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  width: 100%;
  height: auto;
  background: #ffffff;
  border: 1px solid #e1e7e3 !important;
  border-radius: 1rem;
  box-shadow: 0 0.3rem 1rem rgba(17, 24, 39, 0.06);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease,
    transform 0.2s ease;
}

.product-miniature > .card:focus-within {
  border-color: rgba(33, 140, 67, 0.55) !important;
  box-shadow: 0 0 0 0.22rem rgba(33, 140, 67, 0.12),
    0 0.75rem 1.75rem rgba(17, 24, 39, 0.1);
}

/* Area immagine quadrata, neutra e coerente per tutti i cataloghi. */
.product-miniature .product-miniature__link {
  position: relative;
  display: block;
  flex: 0 0 auto;
  padding: 0.75rem;
  background: linear-gradient(180deg, #fbfcfb 0%, #f5f8f6 100%);
}

.product-miniature .product-miniature__image-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0.7rem;
  background: #ffffff;
  border: 1px solid #edf1ee;
  border-radius: 0.75rem;
  overflow: hidden;
}

.product-miniature img.product-miniature__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
  transform: scale(0.94);
  transition: transform 0.3s ease;
}

/* Corpo organizzato in titolo, metadati/prezzo e barra acquisto. */
.product-miniature .product-miniature__infos {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  height: auto !important;
  min-height: 0;
  padding: 0;
}

.product-miniature .product-miniature__infos__top {
  flex: 0 0 auto;
  height: auto !important;
  min-height: 0;
  padding: 0.9rem 1rem 0.4rem;
  background: #ffffff;
}

.product-miniature .product-miniature__title {
  display: -webkit-box;
  min-height: 2.55rem;
  margin: 0;
  overflow: hidden;
  color: #27313b;
  font-size: 0.925rem !important;
  font-weight: 650;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-miniature .product-miniature__infos__bottom {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  height: auto !important;
  min-height: 0;
  margin: 0;
  padding: 0.35rem 1rem 1rem;
  background: #ffffff;
}

/* Disponibilità secondaria, prezzo come informazione primaria. */
.product-miniature .product-miniature__infos__bottom > b {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  color: #667085;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
}

.product-miniature .product-miniature__infos__bottom > b::before {
  flex: 0 0 0.45rem;
  width: 0.45rem;
  height: 0.45rem;
  background: #28ad50;
  border-radius: 999px;
  box-shadow: 0 0 0 0.18rem rgba(40, 173, 80, 0.12);
  content: "";
}

/* Stato non disponibile: il badge del tema identifica in modo affidabile lo stock a zero. */
.product-miniature:has(.badge.out_of_stock)
  .product-miniature__infos__bottom > b::before {
  background: #d9534f;
  box-shadow: 0 0 0 0.18rem rgba(217, 83, 79, 0.12);
}

.product-miniature .product-price-and-shipping {
  margin-top: 0.35rem;
  color: #218c43;
  font-size: 1.15rem;
  font-weight: 750;
  line-height: 1.2;
}

.product-miniature .regular-price {
  margin-right: 0.35rem;
  color: #8a929b;
  font-size: 0.78rem;
}

/* Barra acquisto ancorata al fondo della card. */
.product-miniature .product-miniature__infos__bottom > form {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 3rem;
  gap: 0.55rem !important;
  align-items: center !important;
  justify-content: stretch;
  width: 100%;
  margin-top: auto !important;
  padding-top: 0.8rem;
}

.product-miniature .quantity-button,
.product-miniature .quantity-button .input-group {
  width: 100% !important;
  min-width: 0;
}

.product-miniature .quantity-button .input-group {
  height: 2.625rem;
  border: 1px solid #dce3df;
  border-radius: 0.6rem;
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.product-miniature .quantity-button .input-group:focus-within {
  border-color: rgba(33, 140, 67, 0.55);
  box-shadow: 0 0 0 0.18rem rgba(33, 140, 67, 0.1);
}

.product-miniature .quantity-button .btn,
.product-miniature .quantity-button .form-control {
  height: 100%;
  padding: 0.35rem;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: #344054;
}

/* I pulsanti restano compatti; il numero assorbe tutto lo spazio centrale. */
.product-miniature .quantity-button .btn {
  flex: 0 0 2.75rem !important;
  width: 2.75rem !important;
  min-width: 2.75rem !important;
  background: #f7faf8;
  font-weight: 650;
}

.product-miniature .quantity-button .btn:hover {
  background: #f0f8f2;
  color: #176f32;
}

.product-miniature .quantity-button .form-control {
  flex: 1 1 0 !important;
  width: 0 !important;
  min-width: 0 !important;
  max-width: none !important;
  background: #ffffff;
  border-right: 1px solid #e1e7e3;
  border-left: 1px solid #e1e7e3;
  font-weight: 650;
  text-align: center;
}

.product-miniature .btn.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  min-width: 3rem;
  height: 2.625rem;
  padding: 0;
  border-radius: 0.6rem;
  box-shadow: 0 0.2rem 0.5rem rgba(33, 140, 67, 0.18);
  transition: background-color 0.18s ease, border-color 0.18s ease,
    box-shadow 0.18s ease, transform 0.18s ease;
}

.product-miniature .btn.btn-primary:hover {
  box-shadow: 0 0.45rem 0.9rem rgba(33, 140, 67, 0.24);
  transform: translateY(-1px);
}

.product-miniature .btn.btn-primary i {
  font-size: 1.25rem;
  transition: transform 0.18s ease;
}

.product-miniature .btn.btn-primary:hover i {
  transform: scale(1.08);
}

/* Quick view trasformata in azione discreta sull'immagine. */
.product-miniature .product-miniature__quickview_touch,
.product-miniature .product-miniature__quickview_button {
  border-radius: 999px;
}

/* Nasconde stelle/recensioni se il modulo non fornisce dati utili. */
.product-list-reviews {
  display: none !important;
}

@media (hover: hover) and (pointer: fine) {
  .product-miniature > .card:hover {
    border-color: rgba(33, 140, 67, 0.42) !important;
    box-shadow: 0 1rem 2rem rgba(17, 24, 39, 0.12);
    transform: translateY(-4px);
  }

  .product-miniature > .card:hover img.product-miniature__image {
    transform: scale(1);
  }
}


/* ==========================================================================
   12. BADGE / FLAG prodotto (Nuovo, Esaurito)
========================================================================== */
.product-miniature .product-flags {
  top: 0.7rem !important;
  left: 0.7rem;
  z-index: 3;
  gap: 0.35rem;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
}

/* Badge "Nuovo" – azzurro */
.product-miniature .badge.new,
.product-flags .badge.new {
  padding: 0.35rem 0.6rem;
  background: #e8f5ec;
  border: 1px solid rgba(33, 140, 67, 0.16);
  border-radius: 999px;
  color: #176f32;
  font-size: 0.72rem;
  font-weight: 750;
  box-shadow: 0 0.2rem 0.55rem rgba(17, 24, 39, 0.08);
}

/* Badge "Esaurito" – grigio */
.product-miniature .badge.out_of_stock,
.product-flags .badge.out_of_stock {
  padding: 0.35rem 0.6rem;
  background-color: #667085 !important;
  border-radius: 999px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 750;
  box-shadow: 0 0.2rem 0.55rem rgba(17, 24, 39, 0.12);
}

/* Due colonne mobile: gerarchia compatta senza ridurre le aree di tocco. */
@media (max-width: 575.98px) {
  .product-miniature {
    margin-bottom: 0.8rem !important;
    padding-right: 0.375rem;
    padding-left: 0.375rem;
  }

  .product-miniature > .card {
    border-radius: 0.8rem;
  }

  .product-miniature .product-miniature__link {
    padding: 0.5rem;
  }

  .product-miniature .product-miniature__image-container {
    padding: 0.4rem;
    border-radius: 0.6rem;
  }

  .product-miniature .product-miniature__infos__top {
    padding: 0.7rem 0.7rem 0.3rem;
  }

  .product-miniature .product-miniature__title {
    min-height: 3.2rem;
    font-size: 0.8rem !important;
    line-height: 1.32;
    -webkit-line-clamp: 3;
  }

  .product-miniature .product-miniature__infos__bottom {
    padding: 0.3rem 0.7rem 0.7rem;
  }

  .product-miniature .product-miniature__infos__bottom > b {
    gap: 0.3rem;
    font-size: 0.69rem;
  }

  .product-miniature .product-price-and-shipping {
    margin-top: 0.3rem;
    font-size: 1rem;
  }

  .product-miniature .product-miniature__infos__bottom > form {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.4rem !important;
    padding-top: 0.65rem;
  }

  .product-miniature .quantity-button .input-group,
  .product-miniature .btn.btn-primary {
    width: 100%;
    height: 2.4rem;
  }

  .product-miniature .btn.btn-primary {
    min-width: 100%;
  }

  .product-miniature .product-flags {
    top: 0.45rem !important;
    left: 0.45rem;
  }

  .product-miniature .badge.new,
  .product-flags .badge.new,
  .product-miniature .badge.out_of_stock,
  .product-flags .badge.out_of_stock {
    padding: 0.28rem 0.48rem;
    font-size: 0.65rem;
  }
}


/* ==========================================================================
   13. PAGINA PRODOTTO singolo
========================================================================== */

/* Correzione spaziatura colonne su desktop */
@media (min-width: 1200px) {
  .page-product .js-product-container {
    --bs-gutter-x: 0 !important;
    --bs-gutter-y: 0 !important;
  }
}

/* Restringi larghezza carosello immagini */
.page-product .product__images {
  max-width: 450px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}


/* ==========================================================================
   14. BOTTONI – Primary e Outline Primary (override totale Bootstrap)
========================================================================== */
.btn-primary {
  background-color: #62C370 !important;
  border-color: #62C370 !important;
  color: #ffffff !important;
  --bs-btn-bg: #62C370;
  --bs-btn-border-color: #62C370;
  --bs-btn-color: #ffffff;
  --bs-btn-hover-bg: #57b764;
  --bs-btn-hover-border-color: #57b764;
  --bs-btn-hover-color: #ffffff;
  --bs-btn-active-bg: #4faa58;
  --bs-btn-active-border-color: #4faa58;
  --bs-btn-active-color: #ffffff;
  --bs-btn-focus-shadow-rgb: 98, 195, 112;
}

.btn-primary i,
.btn-primary svg {
  color: #ffffff !important;
  fill: #ffffff !important;
}

.btn-primary:focus,
.btn-primary:active,
.btn-primary:focus-visible {
  box-shadow: 0 0 0 0.2rem rgba(98, 195, 112, 0.35) !important;
}

.btn-outline-primary {
  color: #ffffff !important;
  background-color: #62C370 !important;
  border-color: #62C370 !important;
  --bs-btn-color: #ffffff;
  --bs-btn-border-color: #62C370;
  --bs-btn-hover-color: #ffffff;
  --bs-btn-hover-bg: #57b764;
  --bs-btn-hover-border-color: #57b764;
  --bs-btn-active-color: #ffffff;
  --bs-btn-active-bg: #4faa58;
  --bs-btn-active-border-color: #4faa58;
  --bs-btn-focus-shadow-rgb: 98, 195, 112;
}

/* Override precedente (mantenuto per compatibilità) */
a.btn.btn-outline-primary {
  background-color: #0d6efd;
  color: #fff;
  border-color: #0d6efd;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.btn.btn-outline-primary:hover {
  transform: scale(1.05);
  color: #fff;
}

.btn-outline-primary i,
.btn-outline-primary svg {
  color: #ffffff !important;
  fill: #ffffff !important;
}

.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary:focus-visible {
  box-shadow: 0 0 0 0.2rem rgba(98, 195, 112, 0.35) !important;
}


/* ==========================================================================
   15. LINK GLOBALI – Variabili colore Bootstrap
========================================================================== */
:root {
  --bs-link-color: #62C370;
  --bs-link-color-rgb: 98, 195, 112;
  --bs-link-hover-color: #57b764;
  --bs-link-hover-color-rgb: 87, 183, 100;
}


/* ==========================================================================
   16. CARRELLO – Icone, summary e azioni
========================================================================== */
.cart-summary__show i {
  color: #62C370;
}

/* Sottolineatura verde sui link azioni riga carrello */
.cart__item .product-line__actions a:after {
  background: #62C370;
}

/* Icona e badge carrello su mobile */
@media (max-width: 767.98px) {
  .header-block.cart-preview .header_block__icon,
  .header-block.cart-preview .material-icons {
    color: #000 !important;
  }

  .header-block.cart-preview .header-block__badge {
    background-color: #28AD50 !important;
    color: #fff !important;
    font-weight: 700;
  }

  .header-block__badge {
    color: #ffffff !important;
    background: #28ad50 !important;
  }

  .header-block__action-btn,
  .header-block__action-btn:focus,
  .header-block__action-btn:hover {
    color: #000000;
  }
}


/* ==========================================================================
   17. CHECKOUT – Fix layout opzioni pagamento ps_checkout
========================================================================== */
#checkout-payment-step .ps_checkout-payment-option label {
  display: flex !important;
  line-height: normal !important;
}


/* ==========================================================================
   18. FORM INDIRIZZI (placeholder e layout)
   – i placeholder vengono iniettati via custom.js
========================================================================== */
/* (nessun override CSS necessario al momento) */


/* ==========================================================================
   19. ACCORDION
   Sfondo bianco esclusivamente nelle informazioni della pagina prodotto
========================================================================== */

/* Accordion descrizione e dettagli del prodotto */
.page-product #product-infos-accordion {
  --bs-accordion-bg: #ffffff !important;
  --bs-accordion-btn-bg: #ffffff !important;
  --bs-accordion-active-bg: #ffffff !important;
}

/* Titoli aperti e chiusi */
.page-product #product-infos-accordion .accordion-button,
.page-product #product-infos-accordion .accordion-button:not(.collapsed) {
  background-color: #ffffff !important;
}

/* Contenuto descrizione e dettagli */
.page-product #product-infos-accordion .accordion-collapse,
.page-product #product-infos-accordion .accordion-body {
  background-color: #ffffff !important;
}

/* ==========================================================================
   20. BREADCRUMB
========================================================================== */
.breadcrumb__wrapper {
  background: #fff;
}


/* ==========================================================================
   21. BARRA RICERCA – Fix posizionamento icone + stile input
   (corregge bug SCSS: selettore .header__bottom → .header-bottom)
========================================================================== */

/* Contesto posizionamento assoluto icone */
.header-bottom #search_widget {
  position: relative;
  min-width: 20rem;
  overflow: visible;
}

/* Input search: padding per icone sovrapposte */
.header-bottom #search_widget input[type="search"] {
  padding-left: 2.5rem;
  padding-right: 3rem;
}

/* Nasconde il pulsante ✕ nativo del browser (webkit) - usiamo solo quello del tema */
.header-bottom #search_widget input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

/* Icone search/clear: posizione assoluta sopra l'input */
.header-bottom #search_widget .material-icons {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--bs-gray-700);
  z-index: 1;
  font-size: 1.25rem;
}

.header-bottom #search_widget .material-icons.search,
.header-bottom #search_widget .js-search-icon {
  left: 0.6rem;
}

.header-bottom #search_widget .material-icons.clear {
  right: 0.6rem;
  cursor: pointer;
}

/* ✕ nascosta quando input vuoto (placeholder visibile), mostrata quando c'è testo */
.header-bottom #search_widget input[type="search"]:placeholder-shown ~ .material-icons.clear {
  display: none;
}


/* ==========================================================================
   22. MODALE – Z-index elevato per sovrapporsi all'header
========================================================================== */
.modal {
  --bs-modal-zindex: 10000 !important;
}


/* ==========================================================================
   23. COOKIE BANNER
========================================================================== */
.ets_cookie_banner_content {
  color: #fff !important;
}


/* ==========================================================================
   24. BLOCCO REASSURANCE (icone di fiducia)
========================================================================== */
@media (max-width: 767.98px) {
  .blockreassurance > .row {
    --bs-gutter-x: 0;
  }
}


/* ==========================================================================
   25. UTILITY – Animazioni testo hero slider
========================================================================== */

/* Stato iniziale (nascosto e traslato) */
.carousel-caption h2 {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.7s ease;
}

.carousel-caption p {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.9s ease;
}

/* Stato finale (visibile quando slide è attiva) */
.carousel-item.active .carousel-caption h2,
.carousel-item.active .carousel-caption p {
  opacity: 1;
  transform: translate(0);
}


/* ==========================================================================
   26. LOGO – Dimensione ridotta header
========================================================================== */
/* ==========================================================================
   27. FOOTER – Logo e layout
========================================================================== */

/* Base comune: spazi compatti e allineamento pulito. */
.footer__main__top {
  position: relative;
  padding: 0.4rem 0 1.1rem;
  align-items: flex-start;
}

.footer__logo-under-products-wrap {
  width: 100%;
  padding: 0;
  margin: 0;
}

.footer__logo-under-products-wrap img {
  display: block;
  max-width: 145px;
  width: 100%;
  height: auto;
}

/* Cinque aree desktop: logo + tre menu + informazioni. */
@media (min-width: 992px) {
  .footer__main {
    padding: 1.5rem 0 0.65rem;
  }

  .footer__main__top {
    display: grid !important;
    grid-template-columns:
      minmax(140px, 0.75fr)
      minmax(120px, 0.7fr)
      minmax(155px, 0.95fr)
      minmax(125px, 0.75fr)
      minmax(270px, 1.85fr);
    gap: clamp(1rem, 1.8vw, 2.25rem);
    margin: 0;
  }

  .footer__main__top > .footer__block {
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
  }

  .footer__main__top > .footer__block:nth-child(1) {
    grid-column: 2;
  }

  .footer__main__top > .footer__block:nth-child(2) {
    grid-column: 3;
  }

  .footer__main__top > .footer__block:nth-child(3) {
    grid-column: 4;
  }

  .footer__main__top > .footer__block:nth-child(4) {
    grid-column: 5;
  }

  .footer__logo-under-products-wrap {
    position: static;
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    padding-right: 1rem;
    border-right: 1px solid rgba(226, 232, 240, 0.14);
  }

}

/* Titoli, liste e link. */
.footer__main .footer__block__title {
  position: relative;
  margin: 0 0 0.95rem;
  color: #f8fafc !important;
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.25;
}

@media (min-width: 768px) {
  .footer__main p.footer__block__title::after {
    display: block;
    width: 2.5rem;
    height: 2px;
    margin-top: 0.55rem;
    border-radius: 999px;
    background: #79cf91;
    content: "";
  }
}

.footer__main .footer__block__content-list {
  margin: 0;
  padding: 0;
}

.footer__main .footer__block__content-list li {
  margin: 0 0 0.42rem;
  line-height: 1.3;
}

.footer__main .footer__block a {
  color: rgba(226, 232, 240, 0.8) !important;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer__main .footer__block__content {
  font-size: 0.93rem;
}

.footer__main .footer__block__content-list a {
  display: inline-block;
}

.footer__main .footer__block a:hover,
.footer__main .footer__block a:focus-visible {
  color: #8bdd9f !important;
}

.footer__main .footer__block__content-list a:hover,
.footer__main .footer__block__content-list a:focus-visible {
  transform: translateX(0.2rem);
}

/* Dati aziendali, contatti e mappa. */
.footer__main .contact__infos p {
  margin: 0 0 0.7rem;
  color: rgba(226, 232, 240, 0.76);
  font-size: 0.84rem;
  line-height: 1.35;
}

.footer__main .contact__infos strong {
  color: #f8fafc;
}

.footer__main :is(.contact__email, .contact__phone) {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 1.55rem;
  margin-bottom: 0.15rem;
  font-size: 0.84rem;
}

.footer__main :is(.contact__email, .contact__phone) .material-icons {
  flex: 0 0 1.25rem;
  color: #79cf91;
  font-size: 1.1rem;
  text-align: center;
}

.footer__main .footer-map {
  overflow: hidden;
  margin-top: 0.65rem !important;
  border: 1px solid rgba(226, 232, 240, 0.18);
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.18);
}

.footer__main .footer-map iframe {
  display: block;
  width: 100%;
  height: 112px !important;
  min-height: 0;
}

/* Su desktop largo la mappa affianca dati e contatti: niente altezza sprecata. */
@media (min-width: 1200px) {
  .footer__main .block-contact #contact-infos {
    display: grid;
    grid-template-columns: minmax(150px, 1.2fr) minmax(135px, 0.95fr);
    column-gap: 1rem;
    align-items: start;
  }

  .footer__main .block-contact #contact-infos > :not(.footer-map) {
    grid-column: 1;
  }

  .footer__main .block-contact .footer-map {
    grid-column: 2;
    grid-row: 1 / span 6;
    align-self: start;
    margin-top: 0 !important;
  }
}

/* Barra copyright più discreta. */
.footer .copyright {
  margin: 0;
  padding: 0.7rem 0 0;
  border-top: 1px solid rgba(226, 232, 240, 0.14);
  text-align: center;
  font-size: 0.85rem;
  color: rgba(203, 213, 225, 0.62);
}

/* Tablet: logo sopra alle due colonne Bootstrap. */
@media (min-width: 768px) and (max-width: 991.98px) {
  .footer__logo-under-products-wrap {
    order: -1;
    width: 100%;
    margin-bottom: 2rem;
    padding: 0 0 1.5rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.14);
  }
}

/* Mobile: conserva gli accordion nativi, rendendoli coerenti col nuovo tema. */
@media (max-width: 767.98px) {
  .footer__main {
    padding: 1.75rem 0 1rem;
  }

  .footer__main__top {
    margin: 0;
    padding-bottom: 1.25rem;
  }

  .footer__logo-under-products-wrap {
    order: -1;
    margin-bottom: 1.25rem;
    padding: 0 0 1.25rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.14);
  }

  .footer__logo-under-products-wrap img {
    max-width: 145px;
  }

  .footer__main .footer__block {
    padding-right: 0;
    padding-left: 0;
  }

  .footer__main .footer__block__toggle {
    min-height: 3.25rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.12);
    color: #f8fafc;
  }

  .footer__main .footer__block__toggle .footer__block__title {
    margin: 0;
    font-size: 1rem;
  }

  .footer__main .footer__block__content {
    padding: 1rem 0.25rem 0.6rem;
  }

  .footer__main .footer-map iframe {
    min-height: 180px;
  }
}


/* ==========================================================================
   28. BLOCKREASSURANCE – Layout orizzontale (barra footer)
========================================================================== */

.blockreassurance .reassurance {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.blockreassurance .reassurance__image {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
}

.blockreassurance .reassurance__content {
  flex-grow: 1;
}

.blockreassurance .reassurance__desc {
  color: var(--bs-secondary-color);
}

.blockreassurance .reassurance--link {
  color: var(--bs-body-color);
}

.blockreassurance .reassurance--link:hover {
  color: var(--bs-link-hover-color);
}

/* Barra orizzontale (displayBlock hook) */
.blockreassurance--horizontal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
  padding-block: 0.5rem;
}

.blockreassurance--horizontal .reassurance {
  flex-basis: 100%;
  flex-grow: 1;
  flex-shrink: 1;
  line-height: 1.2;
}

.blockreassurance--horizontal .reassurance__image {
  width: 2.5rem;
  height: 2.5rem;
}

.blockreassurance--horizontal .reassurance__desc {
  display: block;
  margin-block-start: 0.25rem;
}

.blockreassurance--light {
  background-color: var(--bs-tertiary-bg);
}

/* Colonna prodotto/cart/checkout */
.blockreassurance--product,
.blockreassurance--cart,
.blockreassurance--checkout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 0;
  margin-block-end: 2rem;
  text-align: initial;
}

/* Responsive */
@media (min-width: 576px) {
  .blockreassurance--horizontal .reassurance {
    flex-basis: calc(50% - 1.5rem);
  }
}

@media (min-width: 992px) {
  .blockreassurance--horizontal .reassurance {
    flex-basis: calc(25% - 1.5rem);
  }

  .blockreassurance--horizontal .reassurance__image {
    width: 3rem;
    height: 3rem;
  }
}

body#checkout .pp-info[data-pp-info] {
  display: none !important;
}

@media (min-width: 1200px) {
  body.page-module-ambjolisearch-jolisearch #js-product-list .product-miniature {
    width: 25% !important;
    flex: 0 0 25% !important;
    max-width: 25% !important;
  }
}






@media (min-width: 768px) {
  .header-bottom__row {
    column-gap: 20px;
  }

  .header-bottom .header-bottom__row > .header-bottom__logo {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
  }

  .header-bottom .navbar-brand {
    margin-right: 8px;
  }

  .header-bottom .main-menu,
  .header-bottom .ps-mainmenu {
    margin-left: 0;
  }

  .header-bottom .main-menu__tree,
  .header-bottom .ps-mainmenu__tree {
    column-gap: 24px;
  }
}

/* Mobile header alignment fix */
@media (max-width: 767.98px) {
  .header-bottom {
    padding: 0;
  }

  .header-bottom__container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .header-bottom__row {
    align-items: center !important;
    flex-wrap: nowrap;
    min-height: 3.5rem;
  }

  .header-bottom__row > .logo {
    min-width: 0;
  }

  .header-bottom .navbar-brand {
    display: flex;
    align-items: center;
    max-height: 2.625rem;
    max-width: 9.5rem;
  }

  .header-bottom .navbar-brand .logo {
    width: auto;
    max-width: 100%;
    max-height: 2.375rem;
    object-fit: contain;
  }

  .search__mobile,
  #_mobile_user_info,
  #_mobile_cart,
  #_mobile_cart .header-block,
  #_mobile_cart .blockcart {
    align-items: center !important;
    align-self: center;
  }

  .header-bottom .header-block__action-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    line-height: 1;
  }

  .header-bottom .header-block__icon,
  .header-bottom .material-icons.header-block__icon {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1;
  }

  .header-bottom .header-block__badge {
    top: 0.35rem;
    right: 0.3rem;
    min-width: 1.1rem;
    height: 1.1rem;
    padding: 0 0.25rem;
    line-height: 1.1rem;
    font-size: 0.625rem;
  }
}

/*
 * EL-Hope product page cards.
 * Minimal presentation layer for Hummingbird on PrestaShop 9.
 */

/* Product information and purchasing panel. */
.page-product .js-product-container > .product__col {
  align-self: flex-start;
  overflow: hidden;
  padding: 0 !important;
  background: #fff;
  border: 1px solid #e3e8e5;
  border-radius: 1.25rem;
  box-shadow: 0 1rem 2.625rem rgba(24, 38, 55, 0.09);
}

/* Titolo pulito e contemporaneo. */
.page-product .product__col > .product__name {
  margin: 0 !important;
  padding: 1.625rem 1.875rem 0.75rem !important;
  background: #fff;
  border: 0;
  color: #172438;
  font-size: clamp(1.375rem, 1.45vw, 1.6875rem);
  font-weight: 750;
  line-height: 1.27;
  letter-spacing: -0.022em;
}

/* Prezzo essenziale. */
.page-product .product__col > .product__prices {
  display: flex;
  align-items: center;
  margin: 0 !important;
  padding: 0.25rem 1.875rem 1.4375rem !important;
  background: #fff;
  border: 0;
}

.page-product .product__prices .prices__wrapper {
  gap: 0 !important;
  margin: 0 !important;
}

.page-product .product__prices .product__current-price {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.page-product .product__prices .product__current-price span {
  color: #168b3b !important;
  font-size: 1.8125rem !important;
  font-weight: 800 !important;
  line-height: 1;
  letter-spacing: -0.025em;
}

.page-product .product__prices .product__tax-info:empty {
  display: none !important;
}

/* Area del collegamento alla descrizione lunga. */
.page-product .product__col > .product__description-short {
  margin: 0 !important;
  padding: 0.875rem 1.875rem !important;
  background: #fafbfa;
  border-top: 1px solid #edf0ee;
  border-bottom: 1px solid #edf0ee;
}

.page-product .product__description-short > p {
  margin: 0 !important;
}

/* Area acquisto. */
.page-product .product__col > .product__actions {
  margin: 0 !important;
  padding: 1.375rem 1.875rem 1.5625rem !important;
  background: #fff;
}

.page-product .product__actions form,
.page-product .product__add-to-cart {
  margin: 0 !important;
}

.page-product .product__actions :is(
    .product__variants:empty,
    .product__discounts:empty,
    .product__additional-info:empty,
    .product__minimal-quantity:empty,
    .product__add-to-cart > .mb-3:empty
  ) {
  display: none !important;
}

/* Controlli acquisto. */
.page-product .product__add-to-cart > .row.g-2 {
  display: grid !important;
  grid-template-columns: 10.625rem minmax(13.75rem, 1fr);
  gap: 0.75rem !important;
  align-items: start;
  width: 100%;
  margin: 0 !important;
}

.page-product .product-actions__quantity,
.page-product .product-actions__button {
  width: auto !important;
  max-width: none !important;
  padding: 0 !important;
}

.page-product .product-actions__quantity .input-group {
  display: grid !important;
  grid-template-columns: 2.625rem 1fr 2.625rem;
  width: 100%;
  height: 2.75rem;
  margin: 0 0 0.5rem !important;
  overflow: hidden;
  border: 1px solid #dce3df;
  border-radius: 0.625rem;
  background: #fff;
  box-shadow: none;
}

.page-product .product-actions__quantity .input-group :is(.btn, .form-control) {
  width: 100%;
  height: 100%;
  min-width: 0;
  margin: 0;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.page-product .product-actions__quantity .input-group .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: #f7f9f8;
  color: #354256;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.page-product
  .product-actions__quantity
  .input-group
  .btn
  .material-icons {
  font-size: 1.25rem;
}

.page-product .product-actions__quantity .input-group .btn:hover {
  background: #edf7f0;
  color: #168b3b;
}

.page-product .product-actions__quantity .input-group .btn:first-child {
  border-right: 1px solid #e6ebe8 !important;
}

.page-product .product-actions__quantity .input-group .btn:last-child {
  border-left: 1px solid #e6ebe8 !important;
}

.page-product .product-actions__quantity .form-control {
  padding: 0 0.3125rem;
  background: #fff;
  color: #172438;
  font-size: 1rem;
  font-weight: 750;
  text-align: center;
}

/* Disponibilita semplice. */
.page-product .product-actions__quantity > .product-availability {
  display: flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  min-height: auto;
  margin: 0 !important;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #385344 !important;
  font-size: 0.8125rem;
  font-weight: 700 !important;
  line-height: 1.3;
}

.page-product .product-actions__quantity > .product-availability::before {
  width: 0.4375rem;
  height: 0.4375rem;
  margin-right: 0.5rem;
  border-radius: 50%;
  background: #2fba59;
  box-shadow: 0 0 0 0.1875rem rgba(47, 186, 89, 0.11);
  content: "";
}

/* Call to action principale. */
.page-product .product-actions__button .add-to-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  border: 0;
  border-radius: 0.625rem;
  background: #4fc46a;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 700;
  box-shadow: 0 0.375rem 0.9375rem rgba(40, 173, 80, 0.15);
  transition: background-color 0.18s ease, transform 0.18s ease,
    box-shadow 0.18s ease;
}

.page-product .product-actions__button .add-to-cart:hover {
  background: #3db75a;
  box-shadow: 0 0.5rem 1.125rem rgba(40, 173, 80, 0.21);
  transform: translateY(-1px);
}

.page-product .product-actions__button .add-to-cart .material-icons {
  font-size: 1.3125rem;
}

/* Pagamenti senza un ulteriore riquadro. */
.page-product #ps_checkout-payment-method-logo-block-container {
  display: grid !important;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.625rem 1.125rem;
  align-items: center;
  width: 100%;
  margin-top: 1.3125rem !important;
  padding: 1.125rem 0 0 !important;
  border: 0;
  border-top: 1px solid #e7ece9;
  border-radius: 0;
  background: transparent;
}

.page-product #ps_checkout-payment-method-logo-block-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #53615a;
  font-size: 0.875rem;
  font-weight: 650;
  white-space: nowrap;
}

.page-product #ps_checkout-payment-method-logo-block-img {
  width: 1.125rem !important;
  height: 1.125rem !important;
  opacity: 0.65;
}

.page-product #ps_checkout-payment-method-logos-container {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5625rem;
}

.page-product #ps_checkout-payment-method-logos-container > div {
  display: flex;
  align-items: center;
}

.page-product #ps_checkout-payment-method-logos-container .paypal-mark {
  display: inline-flex !important;
  align-items: center;
  min-height: 1.625rem;
  margin: 0 !important;
  padding: 0 0.5625rem 0 0 !important;
  border: 0 !important;
  border-right: 1px solid #e2e7e4 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.page-product
  #ps_checkout-payment-method-logos-container
  > div:last-child
  .paypal-mark {
  padding-right: 0 !important;
  border-right: 0 !important;
}

.page-product #ps_checkout-payment-method-logos-container .paypal-mark img {
  height: 1.125rem !important;
}

.page-product #ps_checkout-payment-method-logos-container .paypal-button-text {
  font-size: 0.6875rem !important;
}

/* Description/details and reassurance area immediately below the product. */
.page-product .js-product-container + .row {
  --bs-gutter-x: 1.5rem;
  margin: 1.5rem 0 0;
  padding: 1.25rem 0.75rem;
  background: var(--bs-body-bg, #fff);
  border: 1px solid var(--bs-border-color, #dee2e6);
  border-radius: 0.75rem;
  box-shadow: 0 0.25rem 1rem rgba(17, 24, 39, 0.05);
}

/* Keep the accordion visually light inside its enclosing card. */
.page-product .js-product-container + .row .product__infos {
  --bs-accordion-bg: transparent;
}

@media (max-width: 991.98px) {
  .page-product .js-product-container > .product__col {
    width: calc(100% - 1.5rem);
    margin-right: 0.75rem;
    margin-left: 0.75rem;
  }

  .page-product .js-product-container + .row {
    margin-top: 1.25rem;
    padding: 1rem 0.5rem;
  }
}

@media (max-width: 575.98px) {
  .page-product .js-product-container > .product__col {
    border-radius: 0.9375rem;
  }

  .page-product .product__col > .product__name {
    padding: 1.25rem 1.1875rem 0.625rem !important;
    font-size: 1.3125rem;
  }

  .page-product .product__col > .product__prices {
    padding: 0.25rem 1.1875rem 1.125rem !important;
  }

  .page-product .product__prices .product__current-price span {
    font-size: 1.5625rem !important;
  }

  .page-product .product__col > .product__description-short {
    padding: 0.75rem 1.1875rem !important;
  }

  .page-product .product__col > .product__actions {
    padding: 1.125rem 1.1875rem 1.25rem !important;
  }

  .page-product .product__add-to-cart > .row.g-2 {
    grid-template-columns: 1fr !important;
    gap: 0.6875rem !important;
  }

  .page-product .product-actions__quantity .input-group {
    grid-template-columns: 2.75rem 1fr 2.75rem;
  }

  .page-product .product-actions__quantity,
  .page-product .product-actions__button {
    width: 100%;
  }

  .page-product #ps_checkout-payment-method-logo-block-container {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .page-product #ps_checkout-payment-method-logos-container {
    justify-content: flex-start;
  }

  .page-product .js-product-container + .row {
    padding: 0.75rem 0.25rem;
    border-radius: 0.625rem;
  }
}

/* ========================================================================== 
   EL-HOPE — CARRELLO PROFESSIONALE
   Incollare questo blocco ALLA FINE di custom.css.
   Tutte le regole sono circoscritte esclusivamente alla pagina carrello.
========================================================================== */

body.page-cart {
  --elhope-cart-brand: #218c43;
  --elhope-cart-brand-dark: #176f32;
  --elhope-cart-surface: #ffffff;
  --elhope-cart-border: #e1e7e3;
  --elhope-cart-text: #27313b;
  --elhope-cart-danger: #b42318;
  --elhope-cart-radius: 0.875rem;
  --elhope-cart-shadow: 0 0.35rem 1.25rem rgba(17, 24, 39, 0.07);
}

/* Elenco prodotti: una card ordinata per ogni riga. */
.page-cart .cart__items {
  display: grid;
  gap: 0.75rem;
  padding-left: 0;
}

.page-cart .cart__item {
  margin: 0 !important;
  padding: 1rem;
  background: var(--elhope-cart-surface);
  border: 1px solid var(--elhope-cart-border) !important;
  border-radius: var(--elhope-cart-radius);
  box-shadow: 0 0.2rem 0.8rem rgba(17, 24, 39, 0.045);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.page-cart .cart__item:hover {
  border-color: rgba(40, 173, 80, 0.42) !important;
  box-shadow: 0 0.4rem 1rem rgba(17, 24, 39, 0.075);
}

.page-cart .cart__item .product-line__title,
.page-cart .cart__item .product-line__title a {
  color: var(--elhope-cart-text);
  font-weight: 650;
  line-height: 1.35;
}

/* La rimozione usa un colore semantico, non il verde delle azioni positive. */
.page-cart .cart__item .remove-from-cart {
  color: var(--elhope-cart-danger) !important;
  font-weight: 600;
  text-decoration-color: rgba(180, 35, 24, 0.35);
}

.page-cart .cart__item .remove-from-cart:hover {
  color: #8f1d14 !important;
  text-decoration-color: currentColor;
}

/* Riepilogo ordine. */
.page-cart .cart-summary {
  border: 1px solid var(--elhope-cart-border);
  border-radius: 1rem;
  box-shadow: var(--elhope-cart-shadow);
  overflow: hidden;
}

.page-cart .cart-summary .cart-total {
  font-size: 1.05rem;
}

.page-cart .cart-summary .cart-total .cart-summary__value {
  color: var(--elhope-cart-brand);
  font-size: 1.15rem;
  font-weight: 750;
}

/* Pulsante principale del checkout, limitato al carrello. */
.page-cart .cart-detailed__actions .btn-primary {
  min-height: 2.875rem;
  width: 100%;
  background-color: var(--elhope-cart-brand) !important;
  border-color: var(--elhope-cart-brand) !important;
  border-radius: 0.5rem;
  color: #ffffff !important;
  font-weight: 650;
  box-shadow: 0 0.15rem 0.35rem rgba(33, 140, 67, 0.16);
  transition: background-color 0.18s ease, border-color 0.18s ease,
    box-shadow 0.18s ease, transform 0.18s ease;
}

.page-cart .cart-detailed__actions .btn-primary:hover {
  background-color: var(--elhope-cart-brand-dark) !important;
  border-color: var(--elhope-cart-brand-dark) !important;
  box-shadow: 0 0.4rem 0.9rem rgba(23, 111, 50, 0.2);
  transform: translateY(-1px);
}

.page-cart .cart-detailed__actions .btn-primary:focus-visible,
.page-cart .cart__item .remove-from-cart:focus-visible {
  outline: 3px solid rgba(40, 173, 80, 0.32);
  outline-offset: 2px;
}

/* Posizionamento responsive del messaggio di validazione. */
@media (max-width: 767.98px) {
  .page-cart .cart__items {
    gap: 0.625rem;
  }

  .page-cart .cart__item {
    padding: 0.875rem;
    border-radius: 0.75rem;
  }

  .page-cart .cart-summary {
    margin-top: 0.5rem;
    border-radius: 0.875rem;
  }

  .page-cart .cart-detailed__actions .btn-primary {
    min-height: 3rem;
  }
}

.header-bottom #search_widget button.js-search-clear {
  display: inline-flex;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  align-items: center;
  justify-content: center;
  appearance: none;
  color: var(--bs-gray-700);
  background: transparent;
  border: 0;
  box-shadow: none;
  line-height: 1;
}

.header-bottom #search_widget button.js-search-clear:focus-visible {
  outline: 2px solid var(--bs-primary);
  outline-offset: 2px;
}

/*
 * Messaggi di validazione del carrello.
 * Hummingbird li posiziona a top: 0; così restano sotto l'header e non vengono
 * tagliati, mantenendo un margine regolare anche con testi lunghi.
 */
.page-cart #js-toast-container {
  top: 8.5rem !important;
  right: 1rem !important;
  left: auto !important;
  width: min(28rem, calc(100vw - 2rem)) !important;
  max-width: calc(100vw - 2rem);
  padding: 0 !important;
  z-index: 10050 !important;
  pointer-events: none;
}

.page-cart #js-toast-container .toast {
  width: 100%;
  max-width: 100%;
  border: 0;
  border-radius: 0.75rem;
  box-shadow: 0 0.65rem 1.75rem rgba(17, 24, 39, 0.2);
  overflow: hidden;
  pointer-events: auto;
}

.page-cart #js-toast-container .toast-body {
  min-width: 0;
  padding: 0.875rem 1rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.page-cart #js-toast-container .btn-close {
  flex: 0 0 auto;
}

/* Su desktop il riepilogo resta visibile durante lo scorrimento. */
@media (min-width: 992px) {
  .page-cart .cart-summary {
    position: sticky;
    top: 7rem;
  }
}

/* Rifiniture mobile. */
@media (max-width: 767.98px) {
  .page-cart #js-toast-container {
    top: 5.5rem !important;
    right: 0.75rem !important;
    left: 0.75rem !important;
    width: auto !important;
    max-width: none;
  }

  .page-cart #js-toast-container .toast-body {
    padding: 0.75rem 0.875rem;
    font-size: 0.875rem;
  }
}










/* ==========================================================================
   EL-HOPE — HEADER BOTTOM PROFESSIONALE / HUMMINGBIRD
   Incollare questo blocco ALLA FINE di custom.css.
   Non richiede JavaScript e non modifica la barra superiore.
========================================================================== */

#header .header-bottom {
  --elhope-header-brand: #218c43;
  --elhope-header-brand-dark: #176f32;
  --elhope-header-text: #17212b;
  --elhope-header-muted: #667085;
  --elhope-header-surface: rgba(255, 255, 255, 0.98);
  --elhope-header-soft: #f4f8f5;
  --elhope-header-border: #e3e9e5;

  background: var(--elhope-header-surface) !important;
  border-bottom: 1px solid var(--elhope-header-border) !important;
  box-shadow: 0 0.35rem 1.25rem rgba(23, 33, 43, 0.075) !important;
  color: var(--elhope-header-text);
  position: relative;
}

@supports ((-webkit-backdrop-filter: blur(12px)) or (backdrop-filter: blur(12px))) {
  #header .header-bottom {
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
}

#header .header-bottom__container {
  width: 100%;
}

#header .header-bottom__row {
  min-height: 4.5rem;
  align-items: stretch !important;
}

/* Logo: più nitido e leggermente interattivo, senza alterarne le proporzioni. */
#header .header-bottom .logo .navbar-brand {
  display: flex !important;
  align-items: center;
  min-height: 3.25rem;
  padding: 0.3rem 0.25rem;
  border-radius: 0.65rem;
}

#header .header-bottom .logo img {
  width: auto;
  max-height: 3.25rem;
  object-fit: contain;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

#header .header-bottom .logo .navbar-brand:hover img {
  opacity: 0.94;
  transform: translateY(-1px);
}

/* Ricerca: superficie pulita, bordo reale e focus ben riconoscibile. */
#header .header-bottom .search-widgets form {
  position: relative;
  border-radius: 999px;
}

#header .header-bottom .search-widgets .js-search-input {
  min-height: 2.625rem;
  padding-right: 2.75rem;
  padding-left: 2.8rem;
  background: #f6f8f7 !important;
  border: 1px solid #e1e7e3 !important;
  border-radius: 999px !important;
  color: var(--elhope-header-text);
  transition: background-color 0.18s ease, border-color 0.18s ease,
    box-shadow 0.18s ease;
}

#header .header-bottom .search-widgets .js-search-input::placeholder {
  color: #7a838d;
  opacity: 1;
}

#header .header-bottom .search-widgets form:focus-within .js-search-input {
  background: #ffffff !important;
  border-color: rgba(33, 140, 67, 0.72) !important;
  box-shadow: 0 0 0 0.22rem rgba(33, 140, 67, 0.13);
  outline: 0;
}

#header .header-bottom .search-widgets .search,
#header .header-bottom .search-widgets .clear {
  color: var(--elhope-header-muted);
  transition: color 0.18s ease, transform 0.18s ease;
}

#header .header-bottom .search-widgets form:focus-within .search,
#header .header-bottom .search-widgets .clear:hover {
  color: var(--elhope-header-brand);
}

/* Menu desktop: indicatori discreti, senza trasformarlo in una barra pesante. */
@media (min-width: 1200px) {
  /*
   * Tutta la catena del menu deve occupare l'altezza dell'header: se UL e LI
   * restano alti quanto il solo testo si crea un corridoio che interrompe hover.
   */
  #header .header-bottom .main-menu {
    align-items: stretch !important;
  }

  #header .header-bottom .js-menu-desktop,
  #header .header-bottom .js-menu-desktop > .main-menu__tree,
  #header .header-bottom .js-menu-item-lvl-0 {
    height: 100% !important;
  }

  #header .header-bottom .js-menu-desktop > .main-menu__tree {
    align-items: stretch;
  }

  #header .header-bottom .js-menu-item-lvl-0 {
    align-items: center !important;
  }

  #header .header-bottom .js-menu-desktop > .main-menu__tree {
    gap: 0.2rem;
  }

  #header .header-bottom .js-menu-item-lvl-0 > .main-menu__tree__link {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.7rem 0.9rem;
    border-radius: 0.625rem;
    color: var(--elhope-header-text) !important;
    font-weight: 700;
    letter-spacing: 0.005em;
    transition: color 0.18s ease, background-color 0.18s ease;
  }

  #header .header-bottom .js-menu-item-lvl-0 > .main-menu__tree__link::after {
    position: absolute;
    right: 0.9rem;
    bottom: 0.32rem;
    left: 0.9rem;
    height: 2px;
    background: var(--elhope-header-brand);
    border-radius: 999px;
    content: "";
    opacity: 0;
    transform: scaleX(0.35);
    transition: opacity 0.18s ease, transform 0.18s ease;
  }

  #header .header-bottom .js-menu-item-lvl-0:hover > .main-menu__tree__link,
  #header .header-bottom .js-menu-item-lvl-0 > .main-menu__tree__link:focus-visible {
    background: var(--elhope-header-soft);
    color: var(--elhope-header-brand-dark) !important;
  }

  #header .header-bottom .js-menu-item-lvl-0:hover > .main-menu__tree__link::after,
  #header .header-bottom .js-menu-item-lvl-0 > .main-menu__tree__link:focus-visible::after {
    opacity: 1;
    transform: scaleX(1);
  }

  #header .header-bottom .js-menu-item-lvl-0 > .main-menu__tree__link:focus-visible {
    outline: 3px solid rgba(33, 140, 67, 0.2);
    outline-offset: 2px;
  }

  #header .header-bottom #_desktop_search .search-widgets {
    width: clamp(17rem, 20vw, 22rem);
  }
}

/* Tablet e mobile: pulsanti coerenti e aree di tocco da almeno 42 px. */
@media (max-width: 1199.98px) {
  /*
   * Il backdrop-filter crea un containing block per gli elementi fixed e
   * comprimerebbe gli offcanvas menu/ricerca all'altezza dell'header.
   */
  #header .header-bottom {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  #header .header-bottom__row {
    min-height: 3.75rem;
  }

  #header .header-bottom .header-block__action-btn,
  #header .header-bottom .main-menu > .header-block__action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.625rem;
    min-width: 2.625rem;
    height: 2.625rem;
    padding: 0;
    border-radius: 0.7rem;
    color: var(--elhope-header-text) !important;
    transition: color 0.18s ease, background-color 0.18s ease,
      transform 0.18s ease;
  }

  #header .header-bottom .header-block__action-btn:hover,
  #header .header-bottom .header-block__action-btn:focus-visible,
  #header .header-bottom .main-menu > .header-block__action-btn:hover,
  #header .header-bottom .main-menu > .header-block__action-btn:focus-visible {
    background: var(--elhope-header-soft);
    color: var(--elhope-header-brand-dark) !important;
  }

  #header .header-bottom .header-block__action-btn:active,
  #header .header-bottom .main-menu > .header-block__action-btn:active {
    transform: scale(0.96);
  }

  #header .header-bottom .header-block__icon {
    font-size: 1.45rem;
  }

  #header .header-bottom .header-block__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.2rem;
    height: 1.2rem;
    padding: 0 0.25rem;
    background: var(--elhope-header-brand) !important;
    border: 2px solid #ffffff;
    border-radius: 999px;
    color: #ffffff !important;
    font-size: 0.69rem;
    font-weight: 750;
    line-height: 1;
    box-shadow: 0 0.15rem 0.4rem rgba(23, 111, 50, 0.24);
  }

  #header .header-bottom .logo .navbar-brand {
    min-height: 2.625rem;
  }

  #header .header-bottom .logo img {
    max-height: 2.625rem;
  }

  #header .header-bottom #mobileMenu,
  #header .header-bottom #searchCanvas {
    border: 0;
    box-shadow: 0 1rem 2.5rem rgba(17, 24, 39, 0.18);
  }

  #header .header-bottom #mobileMenu .offcanvas-header,
  #header .header-bottom #searchCanvas .offcanvas-header {
    border-bottom: 1px solid var(--elhope-header-border);
  }
}

@media (max-width: 767.98px) {
  #header .header-bottom__container {
    padding-right: 0.5rem;
    padding-left: 0.5rem;
  }

  #header .header-bottom__row {
    min-height: 3.5rem;
  }

  #header .header-bottom .logo img {
    max-width: 8.25rem;
    max-height: 2.375rem;
  }

  #header .header-bottom .search-widgets .js-search-input {
    min-height: 2.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  #header .header-bottom *,
  #header .header-bottom *::before,
  #header .header-bottom *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========================================================================== */
/* EL-Hope - Product gallery V3                                                */
/* ========================================================================== */

body.page-product .product__images.elhope-gallery-v3 {
  position: relative;
  width: 100%;
  max-width: 100%;
}

body.page-product .elhope-gallery-v3 .js-product-carousel {
  position: relative;
  padding: 10px;
  background: #fff;
  border: 1px solid #dde4ea;
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(15, 39, 66, .09);
  overflow: hidden;
}

body.page-product .elhope-gallery-v3 .js-product-carousel > .carousel-inner {
  aspect-ratio: 1 / 1;
  height: auto !important;
  background: #f8fafb;
  border: 1px solid #edf1f4;
  border-radius: 13px;
  overflow: hidden;
}

body.page-product .elhope-gallery-v3 .carousel-item,
body.page-product .elhope-gallery-v3 .carousel-item > picture {
  width: 100%;
  height: 100%;
}

body.page-product .elhope-gallery-v3 .carousel-item > picture {
  align-items: center;
  justify-content: center;
}

body.page-product .elhope-gallery-v3 .carousel-item.active > picture,
body.page-product .elhope-gallery-v3 .carousel-item-next > picture,
body.page-product .elhope-gallery-v3 .carousel-item-prev > picture {
  display: flex;
}

body.page-product .elhope-gallery-v3 .carousel-item img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  object-fit: contain;
}

body.page-product .elhope-gallery-v3 .product__images__modal-opener {
  inset: auto 12px 12px auto !important;
  z-index: 8;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: auto !important;
  min-width: 42px;
  height: 42px !important;
  padding: 0 14px;
  color: #17283a;
  background: rgba(255, 255, 255, .96);
  border: 1px solid #d8e0e6;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(15, 39, 66, .16);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

body.page-product .elhope-gallery-v3 .product__images__modal-opener:hover,
body.page-product .elhope-gallery-v3 .product__images__modal-opener:focus-visible {
  border-color: #9fb0bf;
  box-shadow: 0 8px 22px rgba(15, 39, 66, .22);
  transform: translateY(-2px);
  outline: none;
}

body.page-product .elhope-gallery-v3 .product__images__modal-opener .material-icons {
  font-size: 20px;
  line-height: 1;
}

body.page-product .elhope-gallery-v3 .elhope-gallery-v3__zoom-label {
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

body.page-product .elhope-gallery-v3 .elhope-gallery-v3__main-counter {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 7;
  min-width: 48px;
  padding: 6px 10px;
  color: #fff;
  background: rgba(15, 39, 66, .86);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(15, 39, 66, .16);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  backdrop-filter: blur(7px);
}

body.page-product .elhope-gallery-v3.elhope-gallery-v3--single .elhope-gallery-v3__main-counter,
body.page-product .elhope-gallery-v3.elhope-gallery-v3--single .carousel-control-prev,
body.page-product .elhope-gallery-v3.elhope-gallery-v3--single .carousel-control-next {
  display: none !important;
}

body.page-product .elhope-gallery-v3 .js-product-carousel > .carousel-inner > .carousel-control-prev,
body.page-product .elhope-gallery-v3 .js-product-carousel > .carousel-inner > .carousel-control-next {
  top: 50%;
  bottom: auto;
  z-index: 7;
  display: flex !important;
  width: 44px;
  height: 44px;
  color: #17283a;
  background: rgba(255, 255, 255, .94);
  border: 1px solid #d8e0e6;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(15, 39, 66, .14);
  opacity: .96;
  transform: translateY(-50%);
  transition: transform .18s ease, box-shadow .18s ease;
}

body.page-product .elhope-gallery-v3 .js-product-carousel > .carousel-inner > .carousel-control-prev {
  left: 12px;
}

body.page-product .elhope-gallery-v3 .js-product-carousel > .carousel-inner > .carousel-control-next {
  right: 12px;
}

body.page-product .elhope-gallery-v3 .js-product-carousel > .carousel-inner > .carousel-control-prev:hover,
body.page-product .elhope-gallery-v3 .js-product-carousel > .carousel-inner > .carousel-control-next:hover {
  box-shadow: 0 8px 24px rgba(15, 39, 66, .22);
  transform: translateY(-50%) scale(1.04);
}

body.page-product .elhope-gallery-v3 .carousel-control-prev-icon,
body.page-product .elhope-gallery-v3 .carousel-control-next-icon,
body.elhope-product-lightbox-open #product-modal .carousel-control-prev-icon,
body.elhope-product-lightbox-open #product-modal .carousel-control-next-icon {
  width: auto;
  height: auto;
  background: none !important;
}

body.page-product .elhope-gallery-v3 .carousel-control-prev::before,
body.elhope-product-lightbox-open #product-modal .carousel-control-prev::before {
  content: '\2039';
}

body.page-product .elhope-gallery-v3 .carousel-control-next::before,
body.elhope-product-lightbox-open #product-modal .carousel-control-next::before {
  content: '\203A';
}

body.page-product .elhope-gallery-v3 .carousel-control-prev::before,
body.page-product .elhope-gallery-v3 .carousel-control-next::before,
body.elhope-product-lightbox-open #product-modal .carousel-control-prev::before,
body.elhope-product-lightbox-open #product-modal .carousel-control-next::before {
  color: #17283a;
  font-family: Arial, sans-serif;
  font-size: 34px;
  font-weight: 400;
  line-height: .8;
}

body.page-product .elhope-gallery-v3 .thumbnails__container {
  margin-top: 10px;
  padding: 0 2px;
}

body.page-product .elhope-gallery-v3 .thumbnails__list {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 10px;
  margin: 0 !important;
  padding: 2px 2px 7px !important;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
}

body.page-product .elhope-gallery-v3 .thumbnail {
  position: relative;
  flex: 0 0 74px !important;
  width: 74px !important;
  max-width: 74px !important;
  height: 74px !important;
  margin: 0 !important;
  padding: 4px !important;
  background: #fff;
  border: 1px solid #dce3e8;
  border-radius: 11px;
  box-shadow: none;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

body.page-product .elhope-gallery-v3 .thumbnail:hover {
  border-color: #9fb0bf;
  transform: translateY(-1px);
}

body.page-product .elhope-gallery-v3 .thumbnail.active {
  border-color: #17324d;
  box-shadow: 0 0 0 2px rgba(40, 173, 80, .22);
}

body.page-product .elhope-gallery-v3 .thumbnail.active::after {
  content: '';
  position: absolute;
  top: -4px;
  right: -4px;
  width: 10px;
  height: 10px;
  background: #28ad50;
  border: 2px solid #fff;
  border-radius: 50%;
}

body.page-product .elhope-gallery-v3 .thumbnail picture,
body.page-product .elhope-gallery-v3 .thumbnail img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  border-radius: 7px;
}

/* Lightbox: viewport-safe, navigable and actually zoomable. */
body.elhope-product-lightbox-open {
  overflow: hidden !important;
}

body.elhope-product-lightbox-open .modal-backdrop.show {
  background: #101820;
  opacity: .72;
  backdrop-filter: blur(5px);
}

body.elhope-product-lightbox-open #product-modal {
  padding: 0 !important;
  overflow: hidden !important;
  overscroll-behavior: contain;
}

body.elhope-product-lightbox-open #product-modal .modal-dialog {
  width: min(1120px, calc(100vw - 32px));
  max-width: none !important;
  height: min(88dvh, 900px);
  min-height: 0 !important;
  margin: 6dvh auto !important;
}

body.elhope-product-lightbox-open #product-modal .modal-content {
  position: relative;
  width: 100%;
  height: 100%;
  color: #17283a;
  background: linear-gradient(145deg, #f8fafb 0%, #edf1f3 100%);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 20px;
  box-shadow: 0 28px 80px rgba(5, 15, 25, .32);
  overflow: hidden;
}

body.elhope-product-lightbox-open #product-modal .modal-body {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 54px 72px 92px;
  background: transparent;
  overflow: hidden;
}

body.elhope-product-lightbox-open #product-modal #product-images-modal,
body.elhope-product-lightbox-open #product-modal .carousel-inner,
body.elhope-product-lightbox-open #product-modal .carousel-item {
  width: 100%;
  height: 100% !important;
  min-height: 0;
}

body.elhope-product-lightbox-open #product-modal .carousel-inner {
  background: #fff;
  border: 1px solid #dce3e8;
  border-radius: 14px;
  box-shadow: 0 10px 35px rgba(15, 39, 66, .10);
  overflow: hidden !important;
}

body.elhope-product-lightbox-open #product-modal .carousel-item.active,
body.elhope-product-lightbox-open #product-modal .carousel-item-next,
body.elhope-product-lightbox-open #product-modal .carousel-item-prev {
  display: flex;
  align-items: center;
  justify-content: center;
}

body.elhope-product-lightbox-open #product-modal .carousel-item img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain !important;
  object-position: center;
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
  transform-origin: center center;
  transition: transform .18s ease;
}

body.elhope-product-lightbox-open #product-modal .carousel-item img.is-zoomed {
  cursor: grab;
  transition: none;
  touch-action: none;
}

body.elhope-product-lightbox-open #product-modal .carousel-item img.is-dragging {
  cursor: grabbing;
}

body.elhope-product-lightbox-open #product-modal .elhope-carousel-zoom-locked {
  overscroll-behavior: contain;
}

body.elhope-product-lightbox-open #product-modal .elhope-carousel-zoom-locked .carousel-control-prev,
body.elhope-product-lightbox-open #product-modal .elhope-carousel-zoom-locked .carousel-control-next {
  pointer-events: none;
  opacity: .38;
}

body.elhope-product-lightbox-open #product-modal .elhope-lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: #17283a;
  background: rgba(255, 255, 255, .94);
  border: 1px solid #d2dbe2;
  border-radius: 50%;
  box-shadow: 0 5px 16px rgba(15, 39, 66, .15);
  font-size: 25px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  opacity: 1;
  transition: background .18s ease, transform .18s ease;
}

body.elhope-product-lightbox-open #product-modal .elhope-lightbox-close:hover,
body.elhope-product-lightbox-open #product-modal .elhope-lightbox-close:focus-visible {
  color: #0d1b28;
  background: #fff;
  border-color: #aebbc5;
  transform: scale(1.05);
  outline: 2px solid #17283a;
  outline-offset: 2px;
}

body.elhope-product-lightbox-open #product-modal .carousel-control-prev,
body.elhope-product-lightbox-open #product-modal .carousel-control-next {
  top: 50%;
  bottom: auto;
  z-index: 24;
  display: flex !important;
  width: 46px;
  height: 46px;
  color: #17283a;
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .24);
  opacity: 1;
  transform: translateY(-50%);
}

body.elhope-product-lightbox-open #product-modal .carousel-control-prev {
  left: 13px;
}

body.elhope-product-lightbox-open #product-modal .carousel-control-next {
  right: 13px;
}

body.elhope-product-lightbox-open #product-modal .elhope-lightbox-counter {
  position: absolute;
  left: 50%;
  bottom: 57px;
  z-index: 26;
  min-width: 58px;
  padding: 5px 10px;
  color: #17283a;
  background: rgba(255, 255, 255, .94);
  border: 1px solid #d2dbe2;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(15, 39, 66, .12);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  transform: translateX(-50%);
}

body.elhope-product-lightbox-open #product-modal .elhope-lightbox-tools {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 27;
  display: inline-flex;
  align-items: center;
  height: 38px;
  color: #fff;
  background: rgba(24, 31, 38, .90);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(5, 15, 25, .22);
  transform: translateX(-50%);
  backdrop-filter: blur(8px);
}

body.elhope-product-lightbox-open #product-modal .elhope-lightbox-tools button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 36px;
  padding: 0 12px;
  color: #fff;
  background: transparent;
  border: 0;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

body.elhope-product-lightbox-open #product-modal .elhope-lightbox-tools button[data-gallery-zoom='reset'] {
  min-width: 74px;
  border-right: 1px solid rgba(255, 255, 255, .16);
  border-left: 1px solid rgba(255, 255, 255, .16);
  font-size: 12px;
}

body.elhope-product-lightbox-open #product-modal .elhope-lightbox-tools button:hover,
body.elhope-product-lightbox-open #product-modal .elhope-lightbox-tools button:focus-visible {
  background: rgba(255, 255, 255, .14);
  outline: none;
}

body.elhope-product-lightbox-open #product-modal .elhope-lightbox-drag-hint {
  position: absolute;
  right: 18px;
  bottom: 21px;
  z-index: 25;
  color: rgba(23, 40, 58, .72);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  pointer-events: none;
}

@media (max-width: 767.98px) {
  body.page-product .elhope-gallery-v3 .js-product-carousel {
    padding: 7px;
    border-radius: 14px;
    box-shadow: 0 7px 20px rgba(15, 39, 66, .08);
  }

  body.page-product .elhope-gallery-v3 .product__images__modal-opener {
    right: 9px !important;
    bottom: 9px !important;
    height: 40px !important;
    padding: 0 12px;
  }

  body.page-product .elhope-gallery-v3 .elhope-gallery-v3__main-counter {
    top: 16px;
    right: 16px;
  }

  body.page-product .elhope-gallery-v3 .js-product-carousel > .carousel-inner > .carousel-control-prev,
  body.page-product .elhope-gallery-v3 .js-product-carousel > .carousel-inner > .carousel-control-next {
    display: none !important;
  }

  body.page-product .elhope-gallery-v3 .thumbnail {
    flex-basis: 68px !important;
    width: 68px !important;
    max-width: 68px !important;
    height: 68px !important;
  }

  body.elhope-product-lightbox-open #product-modal .modal-dialog {
    width: calc(100vw - 12px);
    height: calc(100dvh - 16px);
    margin: 8px auto !important;
  }

  body.elhope-product-lightbox-open #product-modal .modal-content {
    border-radius: 16px;
  }

  body.elhope-product-lightbox-open #product-modal .modal-body {
    padding: 54px 12px 96px;
  }

  body.elhope-product-lightbox-open #product-modal #product-images-modal {
    flex: 0 0 auto;
    width: min(100%, calc(100dvh - 178px));
    height: auto !important;
    aspect-ratio: 1 / 1;
  }

  body.elhope-product-lightbox-open #product-modal .carousel-inner,
  body.elhope-product-lightbox-open #product-modal .carousel-item {
    height: 100% !important;
  }

  body.elhope-product-lightbox-open #product-modal .carousel-item picture {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
  }

  body.elhope-product-lightbox-open #product-modal .carousel-control-prev,
  body.elhope-product-lightbox-open #product-modal .carousel-control-next {
    display: none !important;
  }

  body.elhope-product-lightbox-open #product-modal .elhope-lightbox-close {
    top: 9px;
    right: 9px;
  }

  body.elhope-product-lightbox-open #product-modal .elhope-lightbox-counter {
    bottom: 62px;
  }

  body.elhope-product-lightbox-open #product-modal .elhope-lightbox-drag-hint {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-product .elhope-gallery-v3 *,
  body.elhope-product-lightbox-open #product-modal * {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}



