/* SenzaFronzoli — clean Hyva refinements */
:root {
  --snz-primary: #427c6d;
  --snz-primary-dark: #315f53;
  --snz-ink: #202a24;
  --snz-muted: #66736d;
  --snz-line: #dfe5e2;
  --snz-surface: #f3f6f4;
}

/* SNZ catalog v22: griglia ricerca coerente con le categorie e pager mobile compatto. */
.catalogsearch-result-index .sidebar,
.catalogsearch-result-index .sidebar-main,
.catalogsearch-result-index .sidebar-additional,
.catalogsearch-result-index aside.sidebar,
.catalogsearch-result-index .block.filter,
.catalogsearch-result-index .modes {
  display: none !important;
}

.catalogsearch-result-index .columns,
.catalogsearch-result-index .column.main,
.catalogsearch-result-index main.page-main {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}

.catalogsearch-result-index .columns { display: block !important; }
.catalogsearch-result-index .column.main { flex: none !important; }
.catalogsearch-result-index #product-list { padding-top: 16px !important; }
.catalogsearch-result-index #product-list > .toolbar-products:first-of-type {
  display: flex !important;
  width: 100% !important;
  min-height: 44px;
  align-items: center !important;
  justify-content: flex-end !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
}
.catalogsearch-result-index #product-list > .toolbar-products:first-of-type .toolbar-amount,
.catalogsearch-result-index #product-list > .toolbar-products:first-of-type .field.limiter { display: none !important; }
.catalogsearch-result-index .toolbar-sorter { display: flex !important; align-items: center !important; gap: 6px !important; }
.catalogsearch-result-index .toolbar-sorter label { display: none !important; }
.catalogsearch-result-index .toolbar-sorter select {
  width: 175px !important;
  height: 44px !important;
  padding: 0 34px 0 12px !important;
  border: 1px solid var(--snz-line) !important;
  border-radius: 7px !important;
  background-color: #fff !important;
  font-size: 13px !important;
}
.catalogsearch-result-index .sorter-action { display: none !important; }

.catalogsearch-result-index .products-grid > ul,
.catalogsearch-result-index .nwc-search-products-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  gap: 18px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 10px 0 32px !important;
  list-style: none !important;
}
.catalogsearch-result-index .products-grid > ul > li { display: flex !important; min-width: 0 !important; width: 100% !important; }
.catalogsearch-result-index form.product-item {
  display: flex !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  flex-direction: column !important;
  border: 1px solid var(--snz-line) !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: none !important;
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease !important;
}
.catalogsearch-result-index form.product-item:hover { transform: translateY(-2px); border-color: var(--snz-primary) !important; box-shadow: 0 8px 22px rgba(25,45,37,.09) !important; }
.catalogsearch-result-index form.product-item > .product-item-photo { display: block !important; width: 100% !important; margin: 0 !important; padding: 0 !important; overflow: hidden !important; background: #fff !important; }
.catalogsearch-result-index form.product-item > .product-item-photo img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: 1 / 1 !important;
  padding: 3% !important;
  box-sizing: border-box !important;
  object-fit: contain !important;
  border-radius: 0 !important;
}
.catalogsearch-result-index form.product-item > .product-info {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  min-width: 0 !important;
  padding: 12px !important;
  border-top: 1px solid var(--snz-line) !important;
}
.catalogsearch-result-index .product-item-link {
  display: -webkit-box !important;
  min-height: 38px;
  margin: 0 !important;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--snz-ink) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  text-align: center !important;
}
.catalogsearch-result-index .rating-summary { transform: scale(.85); transform-origin: center center !important; margin: 0 auto !important; }
.catalogsearch-result-index .product-info .price-box,
.catalogsearch-result-index .product-info .price-box * { text-align: center !important; }
.catalogsearch-result-index .product-info .price-box {
  display: flex !important;
  flex-direction: column-reverse !important;
  align-items: center !important;
  gap: 2px !important;
  margin: 6px 0 10px !important;
}
.catalogsearch-result-index .product-info .price-box .price { color: var(--snz-primary-dark) !important; font-size: 19px !important; font-weight: 600 !important; }
.catalogsearch-result-index .product-info .price-box .old-price,
.catalogsearch-result-index .product-info .price-box .old-price .price { color: #202a24 !important; font-size: 13px !important; font-weight: 500 !important; text-decoration: line-through !important; opacity: .75; }
.catalogsearch-result-index .product-info > .mt-auto {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) auto !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  margin-top: 6px !important;
  padding-top: 10px !important;
  border-top: 1px dashed var(--snz-line) !important;
}
.catalogsearch-result-index button[data-addto="cart"] { min-width: 0 !important; min-height: 40px !important; margin: 0 !important; padding: 8px 10px !important; border-radius: 6px !important; background: var(--snz-primary) !important; color: #fff !important; font-size: 12px !important; font-weight: 600 !important; }
.catalogsearch-result-index button[data-addto="wishlist"] { width: 38px; height: 38px; padding: 8px !important; }
.catalogsearch-result-index button[data-addto="compare"] { display: none !important; }

@media (max-width: 1023px) and (min-width: 641px) {
  .catalogsearch-result-index .products-grid > ul,
  .catalogsearch-result-index .nwc-search-products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 14px !important; }
}

@media (max-width: 767px) {
  body.catalog-category-view main#maincontent.page-main,
  body.catalogsearch-result-index main#maincontent.page-main {
    width: 100% !important;
    max-width: none !important;
    margin-inline: 0 !important;
    padding-inline: 6px !important;
  }
  body.catalog-category-view main.page-main > .columns,
  body.catalogsearch-result-index main.page-main > .columns,
  body.catalog-category-view .column.main,
  body.catalogsearch-result-index .column.main {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin-inline: 0 !important;
    padding-inline: 0 !important;
  }
  .catalog-category-view .products-grid > ul,
  .catalog-category-view .nwc-category-product-grid,
  .catalogsearch-result-index .products-grid > ul,
  .catalogsearch-result-index .nwc-search-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
    padding: 8px 0 24px !important;
  }
  .catalog-category-view form.product-item > .product-info,
  .catalogsearch-result-index form.product-item > .product-info { padding: 8px !important; }
  .catalogsearch-result-index .product-item-link { min-height: 34px; font-size: 12px !important; }
  .catalogsearch-result-index .rating-summary { display: none !important; }
  .catalogsearch-result-index .product-info .price-box .price { font-size: 15px !important; }
  .catalogsearch-result-index .product-info > .mt-auto { grid-template-columns: 1fr 36px !important; gap: 5px !important; }
  .catalogsearch-result-index button[data-addto="cart"] { min-height: 36px !important; padding: 7px !important; }
  .catalogsearch-result-index button[data-addto="cart"] span { display: none !important; }
  .catalogsearch-result-index button[data-addto="wishlist"] { width: 36px; height: 36px; padding: 7px !important; }

  .catalogsearch-result-index #product-list > .toolbar-products:first-of-type { justify-content: stretch !important; }
  .catalogsearch-result-index #product-list > .toolbar-products:first-of-type .toolbar-sorter,
  .catalogsearch-result-index #product-list > .toolbar-products:first-of-type select { width: 100% !important; }

  .catalog-category-view #product-list > .toolbar-products:last-of-type,
  .catalogsearch-result-index #product-list > .toolbar-products:last-of-type {
    display: grid !important;
    width: 100% !important;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important;
    gap: 12px 8px !important;
    align-items: center !important;
    margin: 8px 0 22px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }
  .catalog-category-view #product-list > .toolbar-products:last-of-type > .flex.justify-center,
  .catalogsearch-result-index #product-list > .toolbar-products:last-of-type > .flex.justify-center {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    justify-content: center !important;
  }
  .catalog-category-view #product-list > .toolbar-products:last-of-type .pages,
  .catalogsearch-result-index #product-list > .toolbar-products:last-of-type .pages {
    width: auto !important;
    max-width: 100% !important;
    justify-content: center !important;
    gap: 4px !important;
  }
  .catalog-category-view #product-list > .toolbar-products:last-of-type .pages ol,
  .catalogsearch-result-index #product-list > .toolbar-products:last-of-type .pages ol { gap: 4px !important; }
  .catalog-category-view #product-list > .toolbar-products:last-of-type .pages a,
  .catalogsearch-result-index #product-list > .toolbar-products:last-of-type .pages a {
    display: inline-flex !important;
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 5px !important;
    border-radius: 8px !important;
  }
  .catalog-category-view #product-list > .toolbar-products:last-of-type .toolbar-amount,
  .catalogsearch-result-index #product-list > .toolbar-products:last-of-type .toolbar-amount {
    grid-column: 1 !important;
    grid-row: 2 !important;
    justify-self: center !important;
    margin: 0 !important;
    text-align: center !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
  }
  .catalog-category-view #product-list > .toolbar-products:last-of-type .field.limiter,
  .catalogsearch-result-index #product-list > .toolbar-products:last-of-type .field.limiter {
    grid-column: 2 !important;
    grid-row: 2 !important;
    justify-self: center !important;
    justify-content: center !important;
    margin: 0 !important;
    font-size: 12px !important;
  }
  .catalog-category-view #product-list > .toolbar-products:last-of-type .limiter-options,
  .catalogsearch-result-index #product-list > .toolbar-products:last-of-type .limiter-options {
    min-width: 70px !important;
    height: 38px !important;
    padding-block: 4px !important;
  }
}

/* Header v8: prevent iOS Safari from zooming the page when search receives focus. */
@media (max-width: 1023px) {
  .snz-header-search #search,
  .snz-search-form input[type="search"] {
    font-size: 16px !important;
  }
}

/* Announcement bar */
.snz-topbar {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 8px 16px !important;
  color: #fff !important;
  background: var(--snz-primary) !important;
  text-align: center !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.snz-topbar * { margin: 0 !important; color: inherit !important; }

/* Header: use the native Hyva markup, only rearrange it */
.page-header { position: sticky; top: 0; z-index: 50; background: #fff; }
#header { box-shadow: 0 1px 0 var(--snz-line) !important; }
#header > .container { max-width: 100% !important; width: 100% !important; padding-left: 24px !important; padding-right: 24px !important; }
#menu-search-icon { display: none !important; }
#search-content {
  display: block !important;
  position: static !important;
  width: 100% !important;
  border: 0 !important;
  box-shadow: none !important;
  background: #fff !important;
}
#search-content > .container { max-width: 100% !important; width: 100% !important; padding: 0 24px 12px !important; }
#search_mini_form { display: flex; width: 100%; }
#search_mini_form .input-group { min-width: 0; }
#search_mini_form #search {
  width: 100% !important;
  height: 42px !important;
  padding: 0 14px !important;
  border: 1px solid var(--snz-line) !important;
  border-right: 0 !important;
  border-radius: 6px 0 0 6px !important;
  background: var(--snz-surface) !important;
  box-shadow: none !important;
  font-size: 14px !important;
}
#search_mini_form > button[type="submit"] {
  display: inline-flex !important;
  width: 46px !important;
  height: 42px !important;
  align-items: center !important;
  justify-content: center !important;
  border: 0 !important;
  border-radius: 0 6px 6px 0 !important;
  background: var(--snz-primary) !important;
  color: #fff !important;
}
#search_mini_form kbd { display: none !important; }

/* Category controls */
.catalog-category-view #product-list { padding-top: 16px !important; }
.catalog-category-view #product-list > .block {
  margin: 10px 0 18px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}
.catalog-category-view #product-list > .block > .block-title { display: none !important; }
.catalog-category-view .filter-content {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-start !important;
  gap: 10px !important;
  padding: 0 !important;
}
.catalog-category-view .filter-option {
  position: relative !important;
  width: 190px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 1px solid var(--snz-line) !important;
  border-radius: 6px !important;
  background: #fff !important;
  box-shadow: none !important;
}
.catalog-category-view .filter-options-title {
  min-height: 40px !important;
  padding: 8px 10px 8px 12px !important;
  border: 0 !important;
  gap: 8px !important;
  font-size: 13px !important;
  color: var(--snz-ink) !important;
}
.catalog-category-view .filter-options-title .title { font-size: 13px !important; font-weight: 600 !important; }
.catalog-category-view .filter-options-title > span:last-child { padding: 1px !important; border: 0 !important; }
.catalog-category-view .filter-options-title svg { width: 18px !important; height: 18px !important; }
.catalog-category-view .filter-options-content {
  position: absolute !important;
  top: calc(100% + 5px) !important;
  left: -1px !important;
  z-index: 45 !important;
  width: 280px !important;
  max-height: 320px !important;
  overflow: auto !important;
  margin: 0 !important;
  padding: 10px 12px !important;
  border: 1px solid var(--snz-primary) !important;
  border-radius: 6px !important;
  background: #fff !important;
  box-shadow: 0 10px 24px rgba(25, 45, 37, .12) !important;
}
.catalog-category-view .filter-options-content a { gap: 14px; padding: 6px 0 !important; font-size: 13px; }

/* Desktop: filters row on the left, sorting aligned to its right */
@media (min-width: 1024px) {
  .catalog-category-view #product-list {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: start !important;
    column-gap: 16px !important;
  }
  .catalog-category-view #product-list > .block { grid-column: 1 !important; grid-row: 1 !important; }
  .catalog-category-view #product-list > .toolbar-products:first-of-type {
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    margin: 10px 0 18px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }
  .catalog-category-view #product-list > .products,
  .catalog-category-view #product-list > .toolbar-products:last-of-type,
  .catalog-category-view #product-list > .category-description,
  .catalog-category-view #product-list > *:not(.block):not(.toolbar-products:first-of-type) {
    grid-column: 1 / -1 !important;
  }
}
.catalog-category-view #product-list > .toolbar-products:first-of-type {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  min-height: 40px;
  margin: 0 0 10px !important;
  padding: 0 !important;
}
.catalog-category-view #product-list > .toolbar-products:first-of-type .modes,
.catalog-category-view #product-list > .toolbar-products:first-of-type .toolbar-amount,
.catalog-category-view #product-list > .toolbar-products:first-of-type .field.limiter { display: none !important; }
.catalog-category-view .toolbar-sorter { display: flex !important; align-items: center !important; gap: 6px !important; }
.catalog-category-view .toolbar-sorter label { display: none !important; }
.catalog-category-view .toolbar-sorter select {
  width: 175px !important;
  height: 40px !important;
  padding: 0 34px 0 12px !important;
  border: 1px solid var(--snz-line) !important;
  border-radius: 6px !important;
  background-color: #fff !important;
  font-size: 13px !important;
}
.catalog-category-view .sorter-action { width: 40px; height: 40px; padding: 8px !important; }

/* Product grid: exactly 2 columns on mobile */
.catalog-category-view .products-grid > ul {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 7px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 10px 0 32px !important;
  list-style: none !important;
}
.catalog-category-view .products-grid > ul > li { min-width: 0 !important; }
@media (min-width: 640px) {
  .catalog-category-view .products-grid > ul { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 16px !important; }
}
@media (min-width: 1024px) {
  .catalog-category-view .products-grid > ul { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 18px !important; }
}

/* Product cards: image-dominant but with comfortable content padding */
.catalog-category-view form.product-item {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid var(--snz-line) !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: none !important;
}
.catalog-category-view form.product-item:hover { box-shadow: 0 8px 22px rgba(25, 45, 37, .09) !important; }
.catalog-category-view form.product-item > .product-item-photo {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #fff !important;
}
.catalog-category-view form.product-item > .product-item-photo img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  padding: 3% !important;
  box-sizing: border-box !important;
  object-fit: contain !important;
  border-radius: 0 !important;
}
.catalog-category-view form.product-item > .product-info {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  min-width: 0 !important;
  padding: 12px !important;
}
.catalog-category-view .product-item-link {
  display: -webkit-box !important;
  min-height: 38px;
  margin: 0 !important;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--snz-ink) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  text-align: left !important;
}
.catalog-category-view form.product-item > .product-info > div:first-child { margin: 0 0 5px !important; text-align: left !important; }
.catalog-category-view .rating-summary { transform: scale(.85); transform-origin: left center; }
.catalog-category-view .product-info .price-box { margin: 4px 0 10px !important; }
.catalog-category-view .product-info .price { color: var(--snz-primary-dark) !important; font-size: 17px !important; font-weight: 600 !important; line-height: 1.2 !important; }
.catalog-category-view .product-info > .mt-auto {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  padding-top: 8px !important;
}
.catalog-category-view button[data-addto="cart"] {
  min-width: 0 !important;
  min-height: 40px !important;
  margin: 0 !important;
  padding: 8px 10px !important;
  border-radius: 6px !important;
  background: var(--snz-primary) !important;
  color: #fff !important;
  font-size: 12px !important;
}
.catalog-category-view button[data-addto="wishlist"],
.catalog-category-view button[data-addto="compare"] { width: 38px; height: 38px; padding: 8px !important; }

/* Category text belongs below the product list/pager */
.catalog-category-view .category-description { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--snz-line); }

#snz-mobile-wishlist { display: none; }
#snz-desktop-wishlist { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; }

@media (max-width: 767px) {
  #snz-desktop-wishlist { display: none !important; }
  .snz-topbar { padding: 7px 10px !important; font-size: 11px !important; }
  #header > .container {
    display: grid !important;
    grid-template-columns: 42px 42px minmax(0, 1fr) 84px !important;
    align-items: center !important;
    gap: 2px !important;
    width: 100% !important;
    padding: 8px 8px !important;
  }
  #header > .container > div:first-child {
    grid-column: 3 !important;
    grid-row: 1 !important;
    width: auto !important;
    min-width: 0 !important;
    padding: 0 !important;
    justify-self: center !important;
    text-align: center !important;
  }
  #header > .container > div:first-child img { width: auto !important; max-width: 170px !important; height: 52px !important; margin: 0 auto !important; object-fit: contain; }
  #header > .container > .lg\:hidden,
  #header > .container > div:has(> button[aria-label*="enu"]),
  #header > .container > button[aria-label*="enu"] { grid-column: 1 !important; grid-row: 1 !important; justify-self: start !important; }
  #header > .container > div:last-child {
    grid-column: 4 !important;
    grid-row: 1 !important;
    display: grid !important;
    grid-template-columns: 42px 42px !important;
    gap: 0 !important;
    justify-self: end !important;
  }
  #header > .container > div:last-child > * { display: none !important; }
  #header > .container > div:last-child > div:has(#customer-menu),
  #header > .container > div:last-child > #menu-cart-icon { display: inline-flex !important; }
  #snz-mobile-wishlist {
    display: inline-flex !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    justify-self: start !important;
    color: var(--snz-ink);
  }
  #search-content > .container { width: 100% !important; padding: 0 !important; }
  #search_mini_form #search { height: 44px !important; border-left: 0 !important; border-radius: 0 !important; }
  #search_mini_form > button[type="submit"] { height: 44px !important; border-radius: 0 !important; }
  .catalog-category-view #product-list > .toolbar-products:first-of-type { justify-content: stretch !important; }
  .catalog-category-view .toolbar-sorter { width: 100% !important; }
  .catalog-category-view .toolbar-sorter label { flex: 1 1 auto !important; }
  .catalog-category-view .toolbar-sorter select { width: 100% !important; }
  .catalog-category-view #product-list > .block > .block-title {
    display: flex !important;
    min-height: 42px;
    padding: 0 12px !important;
    border: 1px solid var(--snz-line) !important;
    border-radius: 6px !important;
    background: #fff !important;
  }
  .catalog-category-view #product-list > .block > .block-title span:first-child { font-size: 13px !important; font-weight: 600 !important; }
  .catalog-category-view .filter-content { display: none !important; }
  .catalog-category-view .filter-content:not(.hidden) { display: flex !important; flex-direction: column !important; padding-top: 10px !important; }
  .catalog-category-view .filter-option { width: 100% !important; }
  .catalog-category-view .filter-options-content { position: static !important; width: 100% !important; border: 0 !important; border-top: 1px solid var(--snz-line) !important; box-shadow: none !important; }
  .catalog-category-view form.product-item > .product-info { padding: 8px !important; }
  .catalog-category-view .product-item-link { min-height: 34px; font-size: 12px !important; }
  .catalog-category-view .product-info .price { font-size: 15px !important; }
  .catalog-category-view .rating-summary { display: none !important; }
  .catalog-category-view .product-info > .mt-auto { grid-template-columns: 1fr 36px !important; gap: 5px !important; }
  .catalog-category-view button[data-addto="cart"] { min-height: 36px !important; padding: 7px !important; }
  .catalog-category-view button[data-addto="cart"] span { display: none !important; }
  .catalog-category-view button[data-addto="wishlist"] { width: 36px; height: 36px; padding: 7px !important; }
  .catalog-category-view button[data-addto="compare"] { display: none !important; }
}

/* ============================================================
   ============================================================ */

/* Topbar: contenuto scorrevole (marquee) modificabile dal blocco CMS "top_bar" */
.snz-topbar {
  position: relative !important;
  overflow: hidden !important;
  padding: 9px 0 !important;
  white-space: nowrap !important;
}
.snz-topbar > * {
  display: inline-block !important;
  padding-left: 100% !important;
  white-space: nowrap !important;
  animation: snz-marquee 22s linear infinite;
}
.snz-topbar > * > * { display: inline !important; }
.snz-topbar:hover > * { animation-play-state: paused; }
@keyframes snz-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
@media (prefers-reduced-motion: reduce) {
  .snz-topbar > * { animation: none; padding-left: 0 !important; }
}

/* Rende immediatamente riconoscibili le azioni presenti nei messaggi Magento,
   incluso il collegamento alla lista di confronto dopo l'aggiunta di un prodotto. */
#messages .message a {
  color: currentColor;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

#messages .message a:hover,
#messages .message a:focus-visible {
  text-decoration-thickness: 2.5px;
}

/* Desktop: solo la lente, la barra di ricerca si apre al click */
@media (min-width: 768px) {
  #menu-search-icon { display: inline-flex !important; }
  #search-content { display: none !important; }
  #search-content:not([style*="display: none"]):not(.hidden) { display: block !important; }
  #search-content > .container { padding: 10px 24px 14px !important; }
}
/* Mobile: ricerca sempre aperta */
@media (max-width: 767px) {
  #menu-search-icon { display: none !important; }
  #search-content { display: block !important; }
}

/* Prezzi centrati e più leggibili */
.catalog-category-view .product-info .price-box,
.catalog-category-view .product-info .price-box * { text-align: center !important; }
.catalog-category-view .product-info .price-box {
  display: flex !important;
  flex-direction: column-reverse !important;
  align-items: center !important;
  gap: 2px !important;
  margin: 6px 0 10px !important;
}
.catalog-category-view .product-info .price-box .special-price,
.catalog-category-view .product-info .price-box [data-price-type="finalPrice"] { order: 0 !important; }
.catalog-category-view .product-info .price-box .old-price,
.catalog-category-view .product-info .price-box [data-price-type="oldPrice"] { order: 1 !important; }
.catalog-category-view .product-info .price-box .price { font-size: 19px !important; font-weight: 600 !important; }
.catalog-category-view .product-info .price-box .old-price,
.catalog-category-view .product-info .price-box .old-price .price {
  color: #202a24 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  text-decoration: line-through !important;
  opacity: .75;
}
.catalog-category-view .rating-summary { transform: scale(.85); transform-origin: center center !important; margin: 0 auto !important; }
.catalog-category-view form.product-item > .product-info > div:first-child,
.catalog-category-view .product-item-link { text-align: center !important; }

/* Rifiniture card da erboristeria */
.catalog-category-view form.product-item {
  display: flex !important;
  flex-direction: column !important;
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease !important;
}
.catalog-category-view form.product-item:hover { transform: translateY(-2px); border-color: var(--snz-primary) !important; }
.catalog-category-view form.product-item > .product-item-photo { overflow: hidden !important; }
.catalog-category-view form.product-item > .product-item-photo img { transition: transform .45s ease !important; }
.catalog-category-view form.product-item:hover > .product-item-photo img { transform: scale(1.05); }
.catalog-category-view form.product-item > .product-info { border-top: 1px solid var(--snz-line) !important; }
.catalog-category-view form.product-item > .product-info > .mt-auto { border-top: 1px dashed var(--snz-line) !important; margin-top: 6px !important; padding-top: 10px !important; }
.catalog-category-view button[data-addto="cart"] {
  font-weight: 600 !important;
  letter-spacing: .02em;
  transition: background .2s ease !important;
}
.catalog-category-view button[data-addto="cart"]:hover { background: var(--snz-primary-dark) !important; }

/* ============================================================
   ============================================================ */
.page-header {
  overflow: visible !important;
}

#header.snz-header {
  position: relative;
  overflow: visible;
  border-bottom: 1px solid #dfe7e3;
  box-shadow: 0 4px 18px rgba(29, 57, 46, .055) !important;
}

.snz-header__main {
  display: flex;
  width: 100%;
  min-height: 70px;
  align-items: center;
  gap: 22px;
  padding: 8px 26px;
}

.snz-header__logo {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
}

.snz-header__logo a {
  justify-content: flex-start !important;
}

.snz-header__logo img {
  display: block;
  width: auto !important;
  max-width: 215px !important;
  height: 54px !important;
  object-fit: contain;
}

.snz-header__service {
  display: flex;
  margin-left: auto;
  align-items: center;
  gap: 22px;
}

.snz-header__service a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #28342e;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.snz-header__service a:hover { color: var(--snz-primary-dark); }

.snz-header__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  padding-left: 16px;
  border-left: 1px solid #e1e6e3;
}

.snz-header-action {
  display: inline-flex !important;
  min-width: 42px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 9px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #223129 !important;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
}

.snz-header-action:hover,
.snz-header-action:focus-visible {
  background: #eef5f1 !important;
  color: var(--snz-primary-dark) !important;
  outline: 2px solid transparent;
}

.snz-header-action--search .snz-header-action__label { display: none; }

.snz-header-action__label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.snz-header-action__label strong { font-size: 12px; }
.snz-header-action__label small { color: #77817c; font-size: 9px; font-weight: 650; }

.snz-header-cart-icon { position: relative; display: inline-flex; }
.snz-header-cart-count {
  position: absolute;
  top: -9px;
  right: -10px;
  display: grid;
  min-width: 19px;
  height: 19px;
  place-items: center;
  padding: 0 5px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--snz-primary);
  color: #fff;
  font-size: 9px;
  font-weight: 600;
}

.snz-account { position: relative; }
.snz-account__trigger { gap: 6px; }
.snz-account__chevron { transition: transform .16s ease; }
.snz-account__trigger[aria-expanded="true"] .snz-account__chevron { transform: rotate(180deg); }

.snz-account__dropdown {
  position: absolute;
  z-index: 10030;
  top: calc(100% + 10px);
  right: 0;
  width: 285px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid #dce5e0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(24, 54, 42, .17);
}

.snz-account__head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}

.snz-account__head strong { color: #173f32; font-size: 16px; }
.snz-account__head span { color: #6c7872; font-size: 12px; line-height: 1.45; }

.snz-account__primary,
.snz-account__secondary {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  padding: 9px 14px;
  border: 1px solid var(--snz-primary);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.snz-account__primary { background: var(--snz-primary); color: #fff; }
.snz-account__secondary { background: #fff; color: var(--snz-primary-dark); }
.snz-account__orders {
  display: block;
  margin-top: 13px;
  color: #506159;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  text-decoration: underline;
}

.snz-account__links a {
  display: flex;
  min-height: 38px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 7px;
  color: #2b3932;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.snz-account__links a:hover { background: #eef5f1; color: #173f32; }

.snz-header__nav {
  position: relative;
  width: 100%;
  border-top: 1px solid #edf1ef;
}

.snz-desktop-menu,
.snz-desktop-menu > nav {
  width: 100%;
}

.snz-desktop-menu__list {
  display: flex;
  width: 100%;
  min-height: 47px;
  align-items: stretch;
  justify-content: center;
  gap: clamp(10px, 1.5vw, 25px);
  margin: 0;
  padding: 0 22px;
  list-style: none;
  white-space: nowrap;
}

.snz-desktop-menu__all,
.snz-desktop-menu__item { display: flex; align-items: stretch; }

.snz-desktop-menu__all > a,
.snz-desktop-menu__toplink {
  display: flex;
  align-items: center;
  color: #26342d;
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 600;
  text-decoration: none;
}

.snz-desktop-menu__all > a { gap: 7px; color: var(--snz-primary-dark); }
.snz-desktop-menu__toplink > a { color: inherit; text-decoration: none; }
.snz-desktop-menu__toplink > button {
  display: grid;
  width: 26px;
  height: 32px;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #65736c;
}

.snz-desktop-menu__item::after,
.snz-desktop-menu__all::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--snz-primary);
  content: "";
  opacity: 0;
  transform: scaleX(.5);
  transition: opacity .15s ease, transform .15s ease;
}
.snz-desktop-menu__item,
.snz-desktop-menu__all { position: relative; }
.snz-desktop-menu__item:hover::after,
.snz-desktop-menu__all:hover::after { opacity: 1; transform: scaleX(1); }

.snz-mega-dropdown {
  position: absolute;
  z-index: 10010;
  top: 100%;
  left: 50%;
  width: min(920px, calc(100vw - 44px));
  padding: 20px;
  transform: translateX(-50%);
  border: 1px solid #dce5e0;
  border-top: 3px solid var(--snz-primary);
  border-radius: 0 0 14px 14px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(25, 54, 42, .16);
  white-space: normal;
}

.snz-mega-dropdown__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
  padding-bottom: 13px;
  border-bottom: 1px solid #e5ece8;
}
.snz-mega-dropdown__head > div { display: flex; flex-direction: column; gap: 2px; }
.snz-mega-dropdown__head span { color: #718078; font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.snz-mega-dropdown__head strong { color: #173f32; font-size: 19px; }
.snz-mega-dropdown__head > a { color: var(--snz-primary-dark); font-size: 12px; font-weight: 600; text-decoration: none; }

.snz-mega-dropdown__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.snz-mega-dropdown__grid a {
  display: grid;
  min-height: 42px;
  grid-template-columns: 8px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #2c3a33;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.snz-mega-dropdown__grid a:hover { background: #eef5f1; color: #173f32; }
.snz-mega-dropdown__dot { width: 7px; height: 7px; border-radius: 50%; background: #8ab09f; }

#header #search-content.snz-header-search {
  position: absolute !important;
  z-index: 10015;
  top: 100%;
  left: 0;
  width: 100% !important;
  padding: 12px 20px 15px;
  border: 0 !important;
  background: rgba(255, 255, 255, .98) !important;
  box-shadow: 0 16px 35px rgba(24, 54, 42, .13) !important;
}

#header #search-content[style*="display: none"] { display: none !important; }
#header #search-content:not([style*="display: none"]) { display: block !important; }

.snz-search-shell {
  width: min(1040px, 100%);
  margin: 0 auto;
}

#search_mini_form.snz-search-form {
  display: flex;
  width: 100%;
  align-items: center;
  overflow: visible;
  border: 2px solid var(--snz-primary);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(44, 85, 69, .08);
}

#search_mini_form.snz-search-form #search {
  width: 100% !important;
  height: 48px !important;
  min-width: 0;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 999px 0 0 999px !important;
  background: #fff !important;
  box-shadow: none !important;
  color: #26342d;
  font-size: 14px !important;
}

#search_mini_form.snz-search-form > button[type="submit"] {
  display: grid !important;
  width: 44px !important;
  height: 44px !important;
  flex: 0 0 44px;
  place-items: center;
  margin-right: 2px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: var(--snz-primary) !important;
  color: #fff !important;
}

@media (max-width: 1179px) {
  .snz-header__service { display: none; }
  .snz-header__main { gap: 12px; }
  .snz-header__actions { margin-left: auto; }
  .snz-header-action__label { display: none; }
  .snz-account__chevron { display: none; }
}

@media (max-width: 1023px) {
  .snz-topbar { padding: 7px 0 !important; font-size: 10px !important; }
  .snz-header__main {
    display: grid;
    min-height: 64px;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 3px;
    padding: 5px 7px;
  }
  .snz-header__logo {
    grid-column: 2;
    justify-self: center;
    min-width: 0;
  }
  .snz-header__logo img {
    max-width: min(150px, 39vw) !important;
    height: 48px !important;
  }
  .snz-header__actions {
    grid-column: 3;
    gap: 0;
    margin: 0;
    padding: 0;
    border: 0;
  }
  .snz-header-action { width: 39px; min-width: 39px; min-height: 39px; padding: 6px !important; }
  .snz-header-action--search { display: none !important; }
  .snz-header-action--wishlist { display: none !important; }
  .snz-header__nav {
    position: absolute;
    z-index: 5;
    top: 10px;
    left: 7px;
    width: 42px;
    border: 0;
  }
  .snz-header__nav .lg\:hidden > button {
    width: 42px;
    height: 42px;
    padding: 8px !important;
    border: 0 !important;
    background: transparent !important;
    color: #213129;
  }
  .snz-header__nav dialog {
    width: min(370px, 92vw) !important;
    border: 0 !important;
    border-radius: 0 14px 14px 0 !important;
    box-shadow: 15px 0 45px rgba(20, 48, 37, .2);
  }
  .snz-header__nav dialog > div:first-child { background: #f3f7f5; }
  .snz-header__nav dialog nav > ul > li > a,
  .snz-header__nav dialog nav > ul > li > button {
    min-height: 52px;
    color: #24342c;
    font-size: 13px;
    font-weight: 600;
  }
  #header #search-content.snz-header-search {
    position: relative !important;
    top: auto;
    display: block !important;
    width: 100% !important;
    padding: 3px 2px 8px;
    box-shadow: 0 7px 14px rgba(24, 54, 42, .06) !important;
  }
  #header #search-content[style*="display: none"] { display: block !important; }
  .snz-search-shell { width: 100%; max-width: none; }
  #search_mini_form.snz-search-form #search { height: 43px !important; padding: 0 13px !important; font-size: 16px !important; }
  #search_mini_form.snz-search-form > button[type="submit"] { width: 39px !important; height: 39px !important; flex-basis: 39px; }
  .snz-account__dropdown { position: fixed; top: 96px; right: 7px; width: min(285px, calc(100vw - 14px)); }
}

@media (max-width: 389px) {
  .snz-header__logo img { max-width: 128px !important; }
  .snz-header-action { width: 36px; min-width: 36px; }
  .snz-header__main { grid-template-columns: 40px minmax(0, 1fr) auto; }
}
.catalog-category-view .product-item .discount-percentage,
.catalog-category-view .product-item [class*="badge"] {
  border-radius: 999px !important;
  font-weight: 600 !important;
  letter-spacing: .03em;
}

/* Mobile: nascondi l'ordinamento e prezzi proporzionati */
@media (max-width: 767px) {
  .catalog-category-view .toolbar-sorter,
  .catalog-category-view #product-list > .toolbar-products:first-of-type { display: none !important; }
  .catalog-category-view .product-info .price-box .price { font-size: 17px !important; }
  .catalog-category-view .product-info .price-box .old-price,
  .catalog-category-view .product-info .price-box .old-price .price { font-size: 12px !important; }
}

/* Header v6: navigazione in riga e passaggio anticipato al menu compatto */
@media (min-width: 1200px) {
  .snz-header__main { gap: 18px; padding-inline: 22px; }
  .snz-header__logo img { max-width: 205px !important; }
  .snz-header__nav {
    position: relative;
    width: auto;
    min-width: 0;
    flex: 1 1 auto;
    border: 0;
  }
  .snz-desktop-menu { position: relative; }
  .snz-desktop-menu__list {
    min-height: 52px;
    justify-content: flex-start;
    gap: clamp(7px, .65vw, 14px);
    padding: 0;
  }
  .snz-desktop-menu__all > a,
  .snz-desktop-menu__toplink { font-size: clamp(10px, .82vw, 12px); }
  .snz-desktop-menu__item,
  .snz-desktop-menu__all { position: static; }
  .snz-desktop-menu__item::after,
  .snz-desktop-menu__all::after { display: none; }
  .snz-desktop-menu__toplink { position: relative; }
  .snz-desktop-menu__toplink::after {
    position: absolute;
    right: 0;
    bottom: 2px;
    left: 0;
    height: 2px;
    background: var(--snz-primary);
    content: "";
    opacity: 0;
    transform: scaleX(.6);
    transition: opacity .16s ease, transform .16s ease;
  }
  .snz-desktop-menu__item:hover .snz-desktop-menu__toplink::after {
    opacity: 1;
    transform: scaleX(1);
  }
  .snz-mega-dropdown {
    top: calc(100% - 1px);
    width: min(920px, calc(100vw - 28px));
    animation: snz-mega-drop-in .2s cubic-bezier(.22, .8, .32, 1) both;
  }
}

@keyframes snz-mega-drop-in {
  from { opacity: 0; transform: translate(-50%, -9px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.snz-account__dropdown {
  animation: snz-account-drop-in .18s cubic-bezier(.22, .8, .32, 1) both;
}

@keyframes snz-account-drop-in {
  from { opacity: 0; transform: translateY(-7px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1599px) {
  .snz-header__service { display: none; }
}

@media (max-width: 1399px) {
  .snz-header-action__label,
  .snz-account__chevron { display: none; }
  .snz-header__actions { gap: 1px; padding-left: 10px; }
}

@media (max-width: 1199px) {
  .snz-header__main { gap: 8px; padding-inline: 12px; }
  .snz-header__logo img { max-width: 190px !important; }
  .snz-header__nav {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    flex: 0 0 auto;
    order: 1;
    border: 0;
  }
  .snz-header__logo { order: 0; }
  .snz-header__actions { order: 2; }
  .snz-header__nav .snz-desktop-menu { display: none !important; }
  .snz-header__nav > .lg\:hidden { display: block !important; }
  .snz-header__nav .lg\:hidden > button {
    display: inline-flex !important;
    width: auto !important;
    min-width: 72px;
    height: 42px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 7px 10px !important;
    border: 1px solid #dfe7e3 !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #213129;
    font-size: 12px;
    font-weight: 600;
  }
  .snz-header__nav .lg\:hidden > button::after { content: "Menu"; }
  .snz-header__nav dialog a[href*="/blog"] { display: none !important; }
}

@media (max-width: 1023px) {
  .snz-header__main {
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 2px;
    padding-inline: 5px;
  }
  .snz-header__nav {
    position: relative;
    top: auto;
    left: auto;
    z-index: 5;
    width: auto;
    grid-row: 1;
    grid-column: 1;
  }
  .snz-header__logo { grid-row: 1; grid-column: 2; }
  .snz-header__actions { grid-row: 1; grid-column: 3; }
  .snz-header__nav .lg\:hidden > button { min-width: 68px; padding-inline: 7px !important; }
}

@media (max-width: 389px) {
  .snz-header__main { grid-template-columns: 68px minmax(0, 1fr) auto; }
}

@media (prefers-reduced-motion: reduce) {
  .snz-mega-dropdown,
  .snz-account__dropdown { animation: none; }
}

/* Header v7: tipografia adattiva e drawer mobile rifinito */
@media (min-width: 1200px) {
  .snz-desktop-menu__all > a,
  .snz-desktop-menu__toplink {
    font-size: clamp(13.5px, .82vw, 15.5px);
    letter-spacing: -.012em;
  }
  .snz-desktop-menu__list { gap: clamp(12px, 1vw, 23px); }
  .snz-mega-dropdown__head strong { font-size: clamp(20px, 1.2vw, 23px); }
  .snz-mega-dropdown__grid a {
    min-height: 46px;
    font-size: clamp(12.5px, .75vw, 14px);
  }
}

@media (max-width: 1199px) {
  .snz-mobile-menu__drawer,
  .snz-header__nav dialog.snz-mobile-menu__drawer {
    width: min(400px, 94vw) !important;
    max-width: 400px !important;
    overflow: hidden;
    border: 0 !important;
    border-radius: 0 18px 18px 0 !important;
    background: #f7faf8;
    box-shadow: 18px 0 50px rgba(18, 49, 36, .24) !important;
    color: #203128;
    transition-duration: 240ms !important;
  }

  .snz-mobile-menu__head {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 16px;
    border-bottom: 1px solid #dce7e1;
    background: #fff;
  }

  .snz-mobile-menu__brand {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
    color: #1b4932;
    text-decoration: none;
  }
  .snz-mobile-menu__brand > svg {
    flex: 0 0 auto;
    color: #4f8870;
  }
  .snz-mobile-menu__brand > span {
    display: flex;
    min-width: 0;
    flex-direction: column;
    line-height: 1.15;
  }
  .snz-mobile-menu__brand strong {
    font-size: clamp(17px, 4.8vw, 20px);
    font-weight: 600;
    letter-spacing: -.025em;
  }
  .snz-mobile-menu__brand small {
    margin-top: 3px;
    color: #77877f;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .snz-mobile-menu__close {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    padding: 0 !important;
    border: 1px solid #dce6e1 !important;
    border-radius: 50% !important;
    background: #f7faf8 !important;
    color: #284137 !important;
  }

  .snz-mobile-menu__intro {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 18px 18px 14px;
    background: linear-gradient(135deg, #eaf3ee, #f7faf8 72%);
  }
  .snz-mobile-menu__intro > span {
    color: #56816f;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
  }
  .snz-mobile-menu__intro > strong {
    color: #173f32;
    font-size: clamp(19px, 5.5vw, 23px);
    font-weight: 600;
    letter-spacing: -.025em;
  }
  .snz-mobile-menu__intro > small {
    color: #66766e;
    font-size: clamp(11px, 3.3vw, 13px);
    line-height: 1.4;
  }

  .snz-mobile-menu__scroll { padding: 8px 10px 12px; }
  .snz-mobile-menu__list { display: flex; flex-direction: column; gap: 5px; }
  .snz-mobile-menu__link {
    display: flex;
    width: 100%;
    min-height: 56px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 13px;
    border: 1px solid transparent;
    border-radius: 11px;
    background: transparent;
    color: #26382f;
    font-size: clamp(15px, 1.5vw, 17px);
    font-weight: 600;
    line-height: 1.25;
    text-align: left;
    text-decoration: none;
  }
  .snz-mobile-menu__link:hover,
  .snz-mobile-menu__link:focus-visible,
  .snz-mobile-menu__link[aria-current="page"] {
    border-color: #dce7e1;
    background: #fff;
    color: #173f32;
    outline: none;
    box-shadow: 0 4px 13px rgba(27, 73, 50, .06);
  }
  .snz-mobile-menu__arrow {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border: 1px solid #d6e2dc;
    border-radius: 50%;
    background: #fff;
    color: #376b55;
  }

  .snz-mobile-menu__panel {
    padding: 10px;
    background: #f7faf8;
  }
  .snz-mobile-menu__panel-head {
    margin-bottom: 8px;
    overflow: hidden;
    border: 1px solid #dce7e1;
    border-radius: 12px;
    background: #fff;
  }
  .snz-mobile-menu__back,
  .snz-mobile-menu__all {
    display: flex;
    width: 100%;
    min-height: 52px;
    align-items: center;
    gap: 10px;
    padding: 11px 13px;
    color: #173f32;
    font-size: clamp(15px, 1.5vw, 17px);
    font-weight: 600;
    text-align: left;
    text-decoration: none;
  }
  .snz-mobile-menu__back { border: 0; background: #eef5f1; }
  .snz-mobile-menu__all {
    justify-content: space-between;
    border-top: 1px solid #e2eae6;
    font-size: clamp(12px, 1.2vw, 14px);
  }
  .snz-mobile-menu__sublink {
    display: grid;
    min-height: 50px;
    grid-template-columns: 8px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 11px;
    margin-bottom: 5px;
    padding: 10px 13px;
    border: 1px solid #e0e9e4;
    border-radius: 10px;
    background: #fff;
    color: #304138;
    font-size: clamp(14px, 1.4vw, 16px);
    font-weight: 600;
    text-decoration: none;
  }
  .snz-mobile-menu__sublink:hover,
  .snz-mobile-menu__sublink:focus-visible { border-color: #90b2a3; color: #173f32; outline: none; }
  .snz-mobile-menu__dot { width: 7px; height: 7px; border-radius: 50%; background: #89aa9b; }

  .snz-mobile-menu__footer {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 11px 12px calc(11px + env(safe-area-inset-bottom));
    border-top: 1px solid #dce7e1;
    background: #fff;
  }
  .snz-mobile-menu__footer a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px;
    border-radius: 9px;
    background: #edf5f1;
    color: #244b3c;
    font-size: clamp(12px, 1.25vw, 14px);
    font-weight: 600;
    text-decoration: none;
  }
}
/* ============================================================
   Filtri v2 — dropdown desktop, chip attivi e drawer mobile
   ============================================================ */
[x-cloak] { display: none !important; }

.catalog-category-view .snz-layered-nav {
  position: relative !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}
.catalog-category-view [data-ui-id="page-title-wrapper"] { margin-bottom: 12px !important; }
.catalog-category-view #product-list { padding-top: 0 !important; }
.snz-filter-mobile-control,
.snz-filter-mobile { display: none; }
.snz-filter-desktop { display: block; min-width: 0; }
.snz-filter-desktop__row {
  display: flex;
  min-height: 48px;
  align-items: stretch;
  gap: clamp(14px, 1.4vw, 28px);
  border-bottom: 1px solid var(--snz-line);
}
.snz-filter-desktop__label {
  display: inline-flex;
  align-items: center;
  color: var(--snz-muted);
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}
.snz-filter-option { position: relative; display: flex; align-items: stretch; }
.snz-filter-trigger {
  position: relative;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 7px;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: var(--snz-ink);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.snz-filter-trigger::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--snz-primary);
  content: "";
  opacity: 0;
  transform: scaleX(.7);
  transition: opacity .16s ease, transform .16s ease;
}
.snz-filter-trigger.is-open::after { opacity: 1; transform: scaleX(1); }
.snz-filter-trigger > svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform .18s ease;
}
.snz-filter-trigger.is-open > svg { transform: rotate(180deg); }
.snz-filter-count {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--snz-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}
.snz-filter-panel {
  position: absolute;
  z-index: 80;
  top: calc(100% + 1px);
  left: -18px;
  width: min(350px, calc(100vw - 30px));
  overflow: hidden;
  border: 1px solid #dbe4df;
  border-radius: 0 0 12px 12px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(23, 49, 37, .16);
}
.snz-filter-option:nth-child(n+5) .snz-filter-panel { right: -18px; left: auto; }
.snz-filter-panel__title {
  padding: 15px 18px 9px;
  color: #173f32;
  font-size: 17px;
  font-weight: 600;
}
.snz-filter-panel__body { max-height: 330px; overflow: auto; padding: 5px 18px 12px; }
.snz-filter-panel__actions {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.35fr);
  gap: 9px;
  padding: 13px 16px 15px;
  border-top: 1px solid var(--snz-line);
  background: #fbfcfb;
}
.snz-filter-reset,
.snz-filter-apply {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
}
.snz-filter-reset { border: 1px solid var(--snz-primary); background: #fff; color: var(--snz-primary-dark); }
.snz-filter-apply { border: 1px solid var(--snz-primary); background: var(--snz-primary); color: #fff; }
.snz-filter-reset:hover { background: #eef5f1; }
.snz-filter-apply:hover { background: var(--snz-primary-dark); }

.snz-filter-choices { min-width: 0; }
.snz-filter-search {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin: 2px 0 11px;
  padding: 0 10px;
  border: 1px solid var(--snz-line);
  border-radius: 999px;
  background: #fff;
}
.snz-filter-search svg { width: 18px; height: 18px; fill: none; stroke: #819087; stroke-width: 2; }
.snz-filter-search input {
  min-width: 0;
  height: 39px;
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 14px;
}
.snz-filter-choice-list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.snz-filter-choice {
  display: grid;
  min-height: 42px;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 7px 5px !important;
  border-radius: 7px;
  color: #2b3932;
  font-size: 13px;
  text-decoration: none;
}
.snz-filter-choice:hover { background: #f1f6f3; color: #173f32; }
.snz-filter-choice__check {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 1.5px solid #a7b4ad;
  border-radius: 4px;
  background: #fff;
}
.snz-filter-choice__check svg { width: 13px; height: 13px; fill: none; stroke: #fff; stroke-width: 2.5; opacity: 0; }
.snz-filter-choice.is-selected .snz-filter-choice__check { border-color: var(--snz-primary); background: var(--snz-primary); }
.snz-filter-choice.is-selected .snz-filter-choice__check svg { opacity: 1; }
.snz-filter-choice__label { min-width: 0; line-height: 1.3; }
.snz-filter-choice__count { color: #88958e; font-size: 12px; }
.snz-filter-choice.is-disabled { cursor: not-allowed; opacity: .46; }

.snz-active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 0 2px;
}
.snz-active-filters__label { color: var(--snz-muted); font-size: 12px; font-weight: 600; }
.snz-active-filter {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 7px;
  padding: 5px 9px 5px 12px;
  border-radius: 999px;
  background: #edf2f0;
  color: #2c3933;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
}
.snz-active-filter svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.snz-active-filters__clear { color: var(--snz-primary-dark); font-size: 12px; font-weight: 600; text-underline-offset: 3px; }

.snz-filter-enter { transition: opacity .16s ease, transform .16s ease; }
.snz-filter-enter-start { opacity: 0; transform: translateY(-6px); }
.snz-filter-enter-end { opacity: 1; transform: translateY(0); }
.snz-filter-leave { transition: opacity .12s ease, transform .12s ease; }

/* Ordinamento combinato. */
.catalog-category-view #product-list > .toolbar-products:first-of-type {
  width: auto !important;
  min-width: 255px;
}
.catalog-category-view #product-list > .toolbar-products:first-of-type .toolbar-sorter {
  display: flex !important;
  width: 100% !important;
  min-height: 48px;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
}
.catalog-category-view .toolbar-sorter .snz-sorter-label {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  color: var(--snz-muted);
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}
.catalog-category-view .toolbar-sorter .sorter-options {
  width: 170px !important;
  height: 42px !important;
  margin: 0 !important;
  padding: 0 34px 0 12px !important;
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  background-color: #fff !important;
  color: var(--snz-ink);
  font-size: 13px !important;
  font-weight: 600;
  box-shadow: none !important;
}
.catalog-category-view .toolbar-sorter .sorter-options:focus { border-bottom-color: var(--snz-primary) !important; outline: none; }
.catalog-category-view .toolbar-sorter .sorter-action { display: none !important; }

@media (min-width: 768px) {
  .catalog-category-view #product-list {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: start !important;
    column-gap: 18px !important;
  }
  .catalog-category-view #product-list > .snz-layered-nav { grid-column: 1 !important; grid-row: 1 !important; }
  .catalog-category-view #product-list > .toolbar-products:first-of-type { grid-column: 2 !important; grid-row: 1 !important; margin: 0 !important; }
  .catalog-category-view #product-list > .products,
  .catalog-category-view #product-list > .toolbar-products:last-of-type,
  .catalog-category-view #product-list > .category-description { grid-column: 1 / -1 !important; }
}

@media (max-width: 767px) {
  .catalog-category-view #product-list {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 10px 8px !important;
    padding-top: 10px !important;
  }
  .catalog-category-view #product-list > .snz-layered-nav {
    grid-column: 1 !important;
    grid-row: 1 !important;
    margin: 0 !important;
  }
  .catalog-category-view #product-list > .toolbar-products:first-of-type {
    display: block !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
    min-height: 44px !important;
    margin: 0 !important;
  }
  .catalog-category-view #product-list > .products,
  .catalog-category-view #product-list > .toolbar-products:last-of-type,
  .catalog-category-view #product-list > .category-description {
    grid-column: 1 / -1 !important;
  }
  .snz-filter-desktop { display: none !important; }
  .snz-filter-mobile-control { display: block; }
  .snz-filter-mobile-button {
    display: flex;
    width: 100%;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--snz-line);
    border-radius: 7px;
    background: #fff;
    color: var(--snz-ink);
    font-size: 14px;
    font-weight: 600;
  }
  .snz-filter-mobile-button > svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
  .catalog-category-view #product-list > .toolbar-products:first-of-type .toolbar-sorter {
    display: flex !important;
    min-height: 44px;
    gap: 0 !important;
  }
  .catalog-category-view .toolbar-sorter .snz-sorter-label { display: none !important; }
  .catalog-category-view .toolbar-sorter .sorter-options {
    width: 100% !important;
    height: 44px !important;
    padding-left: 12px !important;
    border: 1px solid var(--snz-line) !important;
    border-radius: 7px !important;
    font-size: 13px !important;
  }
  .snz-filter-mobile {
    position: fixed;
    z-index: 10050;
    inset: 0;
    display: block;
  }
  .snz-filter-mobile__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(13, 31, 23, .48);
    backdrop-filter: blur(2px);
  }
  .snz-filter-mobile__drawer {
    position: absolute;
    inset: 0 0 0 auto;
    display: grid;
    width: min(430px, 94vw);
    max-width: 100%;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
    background: #fff;
    box-shadow: -18px 0 45px rgba(18, 45, 33, .2);
  }
  .snz-filter-mobile__header {
    display: flex;
    min-height: 70px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--snz-line);
  }
  .snz-filter-mobile__header > div { display: grid; gap: 1px; }
  .snz-filter-mobile__header span { color: var(--snz-muted); font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
  .snz-filter-mobile__header strong { color: #173f32; font-size: 23px; line-height: 1.1; }
  .snz-filter-mobile__header button { display: grid; width: 42px; height: 42px; place-items: center; border: 0; border-radius: 50%; background: #eef4f1; }
  .snz-filter-mobile__header svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; }
  .snz-filter-mobile__content { overflow-y: auto; overscroll-behavior: contain; padding: 0 16px 18px; }
  .snz-filter-mobile__content .snz-active-filters { padding: 14px 0 8px; }
  .snz-filter-mobile__content .snz-active-filters__label { width: 100%; }
  .snz-filter-mobile__group { border-bottom: 1px solid var(--snz-line); }
  .snz-filter-mobile__group-title {
    display: flex;
    width: 100%;
    min-height: 57px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border: 0;
    background: transparent;
    color: var(--snz-ink);
    font-size: 15px;
    font-weight: 600;
    text-align: left;
  }
  .snz-filter-mobile__group-title svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .18s ease; }
  .snz-filter-mobile__group-title svg.is-open { transform: rotate(180deg); }
  .snz-filter-mobile__options { padding: 0 0 14px; }
  .snz-filter-mobile__options .snz-filter-choice { min-height: 46px; font-size: 14px; }
  .snz-filter-mobile__reset-group { margin: 7px 0 0 29px; border: 0; background: transparent; color: var(--snz-primary-dark); font-size: 12px; font-weight: 600; text-decoration: underline; }
  .snz-filter-mobile__footer {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.35fr);
    gap: 9px;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--snz-line);
    background: #fff;
    box-shadow: 0 -8px 25px rgba(24, 49, 37, .08);
  }
  .snz-filter-search input { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .snz-filter-enter,
  .snz-filter-leave,
  .snz-filter-trigger > svg,
  .snz-filter-mobile__group-title svg { transition: none !important; }
}
