/* Vetrina Affiliati — tema chiaro, layout ~90%, funzioni scheda prodotto */

:root {
  --header-h: 72px;
  --shell-width: 90%;
  --shell-max: 1680px;
  --bg: #f8fafc;
  --bg-subtle: #f1f5f9;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.12);
  --text: #0f172a;
  --muted: #64748b;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: rgba(37, 99, 235, 0.1);
  --accent-2: #7c3aed;
  --success: #059669;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 10px 24px -6px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px -20px rgba(15, 23, 42, 0.15);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "DM Serif Display", Georgia, serif;
  --gutter: clamp(0.75rem, 2vw, 1.25rem);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  /* Superficie “retail” (allineata alla scheda prodotto) — home, catalogo, card */
  --vx-canvas: #eaeded;
  --vx-surface: #ffffff;
  --vx-border: #d5d9d9;
  --vx-text: #0f1111;
  --vx-muted: #565959;
  --vx-link: #007185;
  --vx-accent-line: #c7511f;
  --vx-buy: #ffd814;
  --vx-buy-hover: #f7ca00;
  --vx-buy-border: #fcd200;
  --vx-font-retail: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --vx-shadow-card: 0 2px 8px rgba(15, 17, 17, 0.07);
  --vx-radius-card: 8px;
  /* Immagini prodotti (URL esterni): massimi display (evita upscale); il contenitore resta responsivo */
  --affcat-card-img-cap: 320px;
  --affcat-product-main-display-max: 420px;
  /* Descrizione / dettagli in scheda: larghezza massima immagini inline (stesso criterio no-stretch) */
  --affcat-product-prose-img-max: 720px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  max-width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  font-family: var(--font);
  font-size: clamp(0.95rem, 0.9rem + 0.15vw, 1.05rem);
  font-weight: 450;
  letter-spacing: -0.01em;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 100% 80% at 50% -40%, rgba(37, 99, 235, 0.09), transparent 55%),
    radial-gradient(ellipse 60% 50% at 100% 0%, rgba(124, 58, 237, 0.06), transparent 45%);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--accent-hover);
}

/* Contenitore principale: 90% larghezza, centrato */
.shell {
  width: var(--shell-width);
  max-width: min(var(--shell-max), var(--shell-width));
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section-bleed {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  overflow-x: clip;
}

@media (min-width: 1024px) {
  .section-bleed {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  border-bottom: 1px solid transparent;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow);
  background: rgba(255, 255, 255, 0.95);
}

.site-header__row {
  display: grid;
  /* Menu | Brand | Ricerca (priorità) | Azioni */
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  gap: clamp(0.65rem, 1.6vw, 1.1rem);
  align-items: center;
  padding-top: clamp(0.65rem, 1.5vw, 0.95rem);
  padding-bottom: clamp(0.65rem, 1.5vw, 0.95rem);
}

.site-header__row > .site-header__menu-btn,
.site-header__row > .nav-toggle {
  grid-column: 1;
  justify-self: start;
}

.site-header__row > .brand,
.site-header__row > .brand--dagiashi {
  grid-column: 2;
  max-width: min(14rem, 24vw);
  min-width: 0;
  overflow: hidden;
}

.site-header__row > .brand .brand-lockup,
.site-header__row > .brand--dagiashi .brand-lockup {
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.site-header__row > .brand .brand-text--dagiashi,
.site-header__row > .brand--dagiashi .brand-text--dagiashi {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-header__row > .brand .brand-tagline,
.site-header__row > .brand--dagiashi .brand-tagline {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  max-width: 100%;
  overflow: hidden;
  white-space: normal;
  text-overflow: ellipsis;
  letter-spacing: 0.04em;
  line-height: 1.25;
  word-break: break-word;
}

.site-header__row > .header-search {
  grid-column: 3;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
}

.site-header__row > .nav-panel {
  grid-column: unset;
}

.site-header__row > .header-actions {
  grid-column: 4;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-self: end;
}

.market-switcher__select {
  max-width: 11rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--border, #d0d5dd);
  border-radius: 6px;
  background: var(--surface, #fff);
  color: inherit;
  font: inherit;
  line-height: 1.2;
}

@media (max-width: 1023px) {
  .site-header__row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    grid-template-areas:
      "menu brand actions"
      "search search search";
    align-items: center;
    row-gap: 0.75rem;
    padding-block: 0.85rem 0.7rem;
  }

  .site-header__row > .site-header__menu-btn,
  .site-header__row > .nav-toggle {
    grid-area: menu;
    grid-column: auto;
    justify-self: start;
    align-self: center;
  }

  .site-header__row > .brand,
  .site-header__row > .brand--dagiashi {
    grid-area: brand;
    grid-column: auto;
    justify-self: center;
    align-self: center;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.4rem;
    width: auto;
    max-width: 100%;
    min-width: 0;
    overflow: visible;
  }

  .site-header__row > .header-search {
    grid-area: search;
    grid-column: 1 / -1;
    max-width: 100% !important;
    width: 100%;
    min-width: 0;
    margin: 0;
  }

  .site-header__row > .header-actions {
    grid-area: actions;
    grid-column: auto;
    justify-self: end;
    align-self: center;
    width: 44px;
    min-height: 44px;
    visibility: hidden;
    pointer-events: none;
    overflow: hidden;
  }

  .header-actions {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
  }

  .site-header--retail .brand--dagiashi .brand-lockup {
    align-items: center;
  }

  .site-header--retail .brand--dagiashi .brand-tagline {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: 0.58rem;
    letter-spacing: 0.04em;
    line-height: 1.3;
    white-space: normal;
    text-align: center;
    max-width: min(100%, 19rem);
  }

  /* Panel off-canvas (anche se spostato su body da theme.js) */
  .nav-panel {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    grid-area: unset;
    grid-column: unset;
    grid-row: unset;
    width: min(92vw, 360px);
    height: 100dvh;
    max-height: 100dvh;
    z-index: 1010002;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border-left: 1px solid var(--border);
    box-shadow: -12px 0 40px rgba(15, 23, 42, 0.18);
    transform: translate3d(100%, 0, 0);
    pointer-events: none;
    transition: transform 0.28s var(--ease-out);
    padding: 0;
    visibility: visible;
  }

  body.is-nav-open .nav-panel {
    transform: translate3d(0, 0, 0);
    pointer-events: auto;
  }

  @media (orientation: portrait) {
    .nav-panel {
      width: 100%;
      max-width: 100%;
      border-left: 0;
    }
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
}
.brand:hover {
  color: var(--text);
  opacity: 0.88;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
}

.brand--dagiashi {
  gap: 0.7rem;
  min-width: 0;
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
  line-height: 1.1;
}

.brand-mark--dagiashi {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 11px;
  flex-shrink: 0;
  background: linear-gradient(145deg, #007185 0%, #0e7490 42%, #c7511f 100%);
  box-shadow:
    0 2px 8px rgba(0, 113, 133, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.brand-mark__letter {
  font-family: var(--font);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
  line-height: 1;
  transform: translateY(-0.02em);
}

.brand-text--dagiashi {
  font-family: var(--font);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--vx-text, var(--text));
}

.brand-tagline {
  font-family: var(--vx-font-retail, var(--font));
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--vx-muted, var(--muted));
  white-space: normal;
  max-width: 100%;
}

@media (max-width: 960px) {
  .brand-tagline {
    display: none;
  }

  .site-header .brand-tagline {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    white-space: normal;
  }

  .brand-text--dagiashi {
    font-size: 0.98rem;
    letter-spacing: -0.02em;
  }

  .brand-mark--dagiashi {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 10px;
  }
}

.header-search,
.catalog-search {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  position: relative;
}

.header-search:not(.catalog-search) input {
  flex: 1;
  min-width: 0;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  padding: 0.65rem 1.15rem;
  font: inherit;
  outline: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.header-search:not(.catalog-search) input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.header-search:not(.catalog-search) button {
  border: 0;
  border-radius: 999px;
  padding: 0.65rem 1.25rem;
  font-weight: 650;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #4f46e5);
  transition: filter 0.2s, transform 0.15s;
}
.header-search:not(.catalog-search) button:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.nav-main {
  display: block;
}

.nav-main__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-main__list > li,
.nav-main__item {
  margin: 0;
  padding: 0;
  position: relative;
}

.nav-main__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.48rem 0.85rem;
  border-radius: 999px;
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.nav-main__link:hover,
.nav-main__link:focus-visible {
  color: var(--text);
  background: var(--bg-subtle);
  text-decoration: none;
}

.nav-main__link.is-active,
.nav-main .current-menu-item > .nav-main__link,
.nav-main .current-menu-ancestor > .nav-main__link {
  color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
}

.nav-main__subtoggle {
  display: none;
}

.nav-main__submenu {
  list-style: none;
  margin: 0;
  padding: 0.35rem;
  min-width: 11.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.nav-main__submenu .nav-main__link {
  display: flex;
  width: 100%;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
}

/* Toggle menu: solo icona grande (aria-label sul button) */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  border-radius: 12px;
  padding: 0;
  width: 3rem;
  height: 3rem;
  min-width: 3rem;
  min-height: 3rem;
  cursor: pointer;
  font: inherit;
  line-height: 1;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
  flex-shrink: 0;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.nav-toggle__label {
  display: none;
}

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 1.55rem;
  height: 1.25rem;
}

.nav-toggle__bars span {
  display: block;
  height: 3px;
  width: 100%;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.nav-panel__title {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-panel__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.nav-panel__close:hover,
.nav-panel__close:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.nav-panel__market {
  display: block;
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

/* Pannello navigazione off-canvas su tutti i breakpoint */
.nav-panel {
  position: fixed;
  top: 0;
  right: 0;
  left: auto;
  width: min(92vw, 380px);
  height: 100dvh;
  max-height: 100dvh;
  z-index: 1010002;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: -12px 0 40px rgba(15, 23, 42, 0.18);
  transform: translate3d(100%, 0, 0);
  pointer-events: none;
  transition: transform 0.28s var(--ease-out);
  padding: 0;
  visibility: visible;
}

body.is-nav-open .nav-panel {
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
}

.nav-panel .nav-main {
  flex: 1;
  overflow: auto;
  padding: 0.75rem;
  padding-bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  -webkit-overflow-scrolling: touch;
}

.nav-panel .nav-main__list {
  flex-direction: column;
  align-items: stretch;
  gap: 0.25rem;
}

.nav-panel .nav-main__link {
  width: 100%;
  border-radius: 10px;
  padding: 0.85rem 0.95rem;
  font-size: 1rem;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1010001;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

body.is-nav-open .nav-backdrop {
  opacity: 1;
  pointer-events: auto;
}

body.is-nav-open {
  overflow: hidden;
}

/* Menu aperto: nascondi dock affux, cookie fab e barra sticky */
body.is-nav-open .affux-toolbar,
body.is-nav-open .affux-toast,
body.is-nav-open .eu-gr-reopen-fab,
body.is-nav-open .us-ccpa-reopen-fab,
body.is-nav-open .product-sticky-cta.is-visible {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Accordion submenu nel pannello (tutti i breakpoint) */
.nav-panel .nav-main__list > li,
.nav-panel .nav-main__item {
  border-radius: 12px;
  border: 1px solid transparent;
}

.nav-panel .nav-main__list > li.is-submenu-open,
.nav-panel .nav-main__item.is-submenu-open {
  border-color: var(--border);
  background: var(--bg-subtle);
}

.nav-panel .nav-main__item--has-children,
.nav-panel .menu-item-has-children {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "link toggle"
    "sub sub";
  align-items: center;
}

.nav-panel .nav-main__item--has-children > .nav-main__link,
.nav-panel .menu-item-has-children > .nav-main__link {
  grid-area: link;
}

.nav-panel .nav-main__subtoggle {
  grid-area: toggle;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-right: 0.35rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.15s ease, color 0.15s ease;
}

.nav-panel .nav-main__item.is-submenu-open > .nav-main__subtoggle,
.nav-panel .menu-item-has-children.is-submenu-open > .nav-main__subtoggle {
  transform: rotate(180deg);
  color: var(--accent);
  border-color: rgba(37, 99, 235, 0.25);
}

.nav-panel .nav-main__submenu {
  grid-area: sub;
  display: none;
  position: static;
  min-width: 0;
  margin: 0 0.35rem 0.5rem;
  padding: 0.25rem;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.nav-panel .nav-main__item.is-submenu-open > .nav-main__submenu,
.nav-panel .menu-item-has-children.is-submenu-open > .nav-main__submenu {
  display: block;
}

.nav-panel .nav-main__submenu .nav-main__link {
  padding-left: 1.15rem;
  font-size: 0.94rem;
}

body.is-nav-open .nav-toggle__bars span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

body.is-nav-open .nav-toggle__bars span:nth-child(2) {
  opacity: 0;
}

body.is-nav-open .nav-toggle__bars span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Desktop: mercato resta in header-actions (evita doppio selettore nel pannello) */
@media (min-width: 1024px) {
  .nav-panel {
    width: min(92vw, 400px);
  }

  .nav-panel__market {
    display: none;
  }
}

.site-main {
  flex: 1;
  width: 100%;
  padding-block: 0 3.5rem;
}

.site-main--home {
  padding-bottom: 0;
}

.site-main--catalog {
  padding-top: 0;
}

.site-main--product {
  padding-top: 0;
}

/* Hero */
.hero--fullscreen {
  position: relative;
  min-height: min(92dvh, 980px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(3rem, 10vh, 6rem);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}

.hero__mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 25%, rgba(37, 99, 235, 0.12), transparent 42%),
    radial-gradient(circle at 88% 15%, rgba(124, 58, 237, 0.1), transparent 38%);
  opacity: 1;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-copy .lead {
    margin-inline: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-visual {
    margin-inline: auto;
  }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 1rem;
}

.hero h1,
.hero-copy h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 1.1rem + 4vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  color: var(--text);
  text-wrap: balance;
}

.lead {
  color: var(--muted);
  font-size: clamp(1rem, 0.92rem + 0.35vw, 1.15rem);
  line-height: 1.65;
  max-width: 40ch;
  margin: 0 0 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  align-items: center;
}

.hero-stat {
  color: var(--muted);
  font-size: 0.95rem;
}
.hero-stat strong {
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.hero-visual {
  position: relative;
  min-height: 260px;
  max-width: 400px;
}

.orb {
  position: absolute;
  border-radius: 50%;
}
.orb-a {
  width: 220px;
  height: 220px;
  right: 0;
  top: 0;
  background: radial-gradient(circle at 35% 35%, rgba(37, 99, 235, 0.25), transparent 68%);
}
.orb-b {
  width: 180px;
  height: 180px;
  left: 0;
  bottom: 0;
  background: radial-gradient(circle at 65% 65%, rgba(124, 58, 237, 0.22), transparent 65%);
}

.hero-card {
  position: relative;
  margin-left: auto;
  max-width: 100%;
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.hero-card p {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.mini-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}

.section--featured {
  padding-block: clamp(2.75rem, 7vw, 5rem);
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1rem + 1.5vw, 2rem);
  font-weight: 400;
  margin: 0;
  letter-spacing: -0.02em;
}

.section-head a {
  font-weight: 650;
  font-size: 0.9rem;
  color: var(--accent);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
}
.section-head a:hover {
  text-decoration: none;
  background: var(--accent-soft);
}

/* Bottoni */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  font-weight: 650;
  font-size: 0.95rem;
  font-family: inherit;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s var(--ease-out), box-shadow 0.2s, background 0.2s;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #4f46e5);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover {
  background: var(--bg-subtle);
}

.btn-block {
  width: 100%;
  margin-top: 0.75rem;
}

.btn-cta {
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1.02rem;
  border-radius: var(--radius);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #ea580c, #dc2626);
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.35);
}
.btn-cta:hover {
  filter: brightness(1.06);
  color: #fff;
}

.btn-cta--compact {
  width: auto;
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
}

.btn-tool {
  flex: 1;
  min-width: 0;
  padding: 0.55rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
}
.btn-tool:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  transform: none;
}
.btn-tool.is-done {
  border-color: var(--success);
  color: var(--success);
  background: rgba(5, 150, 105, 0.08);
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 0.5rem;
}

/* Griglia prodotti */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: clamp(1rem, 2vw, 1.35rem);
}

.product-grid--related {
  margin-top: 0.5rem;
}

.product-card {
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s, transform 0.2s var(--ease-out), box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: var(--shadow-lg);
}

.card-link {
  color: inherit;
  display: block;
}
.card-link:hover,
.card-title-link:hover,
.card-price-link:hover {
  text-decoration: none;
}

.card-title-link {
  color: inherit;
  display: block;
}

.card-title-link:hover h3 {
  color: var(--accent);
}

.card-content {
  padding: 0 1.05rem 1.05rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.card-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-top: 0.5rem;
}

.card-price-link {
  color: inherit;
  text-decoration: none;
}

.card-price-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.card-price-badge__label {
  display: none;
}

.card-price-badge--down {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}

.card-price-badge--up {
  background: rgba(220, 38, 38, 0.1);
  color: #b91c1c;
}

@media (min-width: 520px) {
  .card-price-badge__label {
    display: inline;
  }
}

.card-image {
  aspect-ratio: 1 / 1;
  background: #f1f5f9;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.35rem, 1.5vw, 0.65rem);
}
.card-image img {
  max-width: min(100%, var(--affcat-card-img-cap));
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  vertical-align: middle;
  flex-shrink: 0;
  image-rendering: auto;
  transition: opacity 0.25s var(--ease-out);
}
.product-card:hover .card-image img {
  opacity: 0.94;
}

.card-image-ph {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e0e7ff, #fae8ff);
}

.card-body {
  padding: 1.1rem 1.2rem 1.25rem;
}
.card-body h3 {
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--text);
}
.card-brand {
  margin: 0 0 0.35rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.card-merchant,
.card-cat {
  margin: 0.12rem 0;
  font-size: 0.82rem;
  color: var(--muted);
}
.card-merchant-wrap {
  padding: 0;
  margin-top: 0.15rem;
  margin-bottom: 0;
}
a.card-merchant {
  text-decoration: none;
}
a.card-merchant:hover,
a.card-merchant:focus-visible {
  color: var(--accent);
  text-decoration: underline;
}
.card-body--price {
  padding-top: 0;
}
.card-price {
  margin: 0;
  font-weight: 700;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

.empty-hint {
  color: var(--muted);
  padding: 2rem 0;
  text-align: center;
  max-width: 48ch;
  margin-inline: auto;
}

/* Catalogo */
.catalog-hero {
  padding-block: clamp(2rem, 5vw, 3.25rem);
  margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
  background: linear-gradient(180deg, #ffffff, var(--bg));
  border-bottom: 1px solid var(--border);
}

.catalog-hero__inner {
  max-width: 52rem;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 1rem + 2.5vw, 2.75rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  margin: 0 0 0.6rem;
  line-height: 1.1;
  color: var(--text);
}

.page-lede {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 0.88rem + 0.2vw, 1.05rem);
  max-width: 48ch;
  line-height: 1.6;
}

.catalog-layout {
  display: grid;
  grid-template-columns: minmax(0, 312px) 1fr;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  align-items: start;
}

@media (max-width: 900px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }
  .facets {
    position: fixed !important;
    inset: 0;
    width: 100%;
    max-width: none;
    z-index: 1000005;
    max-height: 100dvh !important;
    height: 100dvh;
    overflow: hidden;
    border-radius: 0 !important;
    transform: translateX(-100%);
    transition: transform 0.3s var(--ease-out);
    margin: 0 !important;
    top: 0 !important;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
    padding-inline: 1.15rem;
  }
  .facets--pro,
  .retail-catalog .facets--pro {
    padding-inline: 1.15rem;
  }
  .facets--pro {
    max-height: 100dvh !important;
    height: 100dvh;
  }
  .facets.is-open {
    transform: translateX(0);
  }
  .facets-head {
    display: flex !important;
    flex-shrink: 0;
    padding-bottom: 0.5rem;
  }
  .facets--pro .catalog-filters-form {
    flex: 1;
    min-height: 0;
  }
  .facets-scroll {
    padding-bottom: 0.25rem;
  }
  .facets--pro .facets-actions {
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
  }
  body.facets-open {
    overflow: hidden;
  }
  body.facets-open .affux-toolbar,
  body.facets-open .affux-toast {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .catalog-layout {
    grid-template-columns: minmax(0, 280px) 1fr;
    gap: 1rem;
  }
}

.facets {
  position: sticky;
  top: calc(0.5rem + var(--header-h));
  padding: 1.15rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.facets--pro {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 0;
}

@media (min-width: 901px) {
  /* Desktop: altezza naturale — evita collasso flex della colonna filtri dopo AJAX. */
  .facets--pro {
    display: block;
    overflow: visible;
    max-height: none;
  }

  .facets--pro .catalog-filters-form {
    display: flex;
    flex-direction: column;
    flex: none;
    min-height: auto;
    overflow: visible;
  }

  .facets-scroll {
    flex: none;
    min-height: auto;
    max-height: calc(100dvh - var(--header-h) - 11rem);
    overflow-y: auto;
  }
}

.facets--pro .catalog-filters-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.facets-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 0.2rem;
  margin-right: -0.2rem;
  scrollbar-gutter: stable;
}

.facets--pro .facet-list--options {
  max-height: none;
  overflow: visible;
  margin-bottom: 0.75rem;
}

.facets--pro .facets-actions {
  flex-shrink: 0;
  margin-top: 0;
  padding: 0.85rem 0 1rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 16px rgba(15, 23, 42, 0.06);
}

.facets-head {
  display: none;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.facets-close {
  border: 0;
  background: var(--bg-subtle);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  cursor: pointer;
}

.facet-block h3 {
  margin: 0 0 0.45rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 700;
}

.facet-list {
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0;
  max-height: 220px;
  overflow: auto;
}
.facet-list a {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.42rem 0.5rem;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.4;
  text-decoration: none;
}
.facet-list a > :first-child {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.facet-list a span {
  color: var(--muted);
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.facet-list a:hover,
.facet-list a.is-active {
  background: var(--accent-soft);
  color: var(--accent);
  text-decoration: none;
}

/* Filtri catalogo professionali */
.facets--pro .facets-head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.catalog-filters-form {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.facet-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.facet-block__head h3 {
  margin: 0;
}

.facet-search {
  width: 5.5rem;
  max-width: 42%;
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.75rem;
  background: var(--surface);
  color: var(--text);
}

.facet-field input[type="search"],
.facet-field input[type="number"] {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.88rem;
  background: var(--surface);
  color: var(--text);
}

.facet-field--compact {
  flex: 1;
  min-width: 0;
}

.facet-field__label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.facet-list--options {
  margin-bottom: 0.85rem;
}

.facet-option {
  margin: 0;
}

.facet-option__label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 0.45rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.86rem;
  color: var(--text);
  transition: background 0.15s ease;
}

.facet-option__label:hover {
  background: var(--accent-soft);
}

.facet-option__label input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.facet-option__label input + .facet-option__text::before {
  content: "";
  display: inline-block;
  width: 1rem;
  height: 1rem;
  margin-right: 0.45rem;
  border: 2px solid var(--border);
  border-radius: 50%;
  vertical-align: -2px;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.facet-option__label input:checked + .facet-option__text::before {
  border-color: var(--accent);
  background: radial-gradient(circle at center, var(--accent) 0 38%, transparent 40%);
  box-shadow: inset 0 0 0 2px var(--surface);
}

.facet-option__text {
  flex: 1;
  min-width: 0;
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.facet-option__count {
  color: var(--muted);
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  margin-left: 0.25rem;
}

.facet-option__label:has(input:checked) {
  background: var(--accent-soft);
  color: var(--accent);
}

.facet-price-range {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
}

.facet-price-range__sep {
  color: var(--muted);
  padding-bottom: 0.55rem;
  font-size: 0.85rem;
}

.facets-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.facets-apply {
  border-radius: 999px;
}

.facets-reset {
  text-align: center;
}

.catalog-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: -0.35rem 0 1rem;
}

.catalog-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--text);
  font-size: 0.8rem;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.catalog-filter-chip:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  text-decoration: none;
}

.catalog-filter-chip__remove {
  font-size: 1.1rem;
  line-height: 1;
  opacity: 0.65;
}

.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.35rem;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.result-count {
  margin: 0;
  flex: 1;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.sort-form {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.86rem;
}
.sort-form select {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  padding: 0.4rem 0.65rem;
  font: inherit;
  cursor: pointer;
}

.mobile-only {
  display: none;
}
@media (max-width: 900px) {
  .mobile-only {
    display: inline-flex;
  }
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 2rem;
  align-items: center;
}
.nav-links a,
.nav-links span {
  min-width: 2.4rem;
  height: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0 0.55rem;
  background: var(--surface);
}
.nav-links span.current,
.nav-links a:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

/* Scheda prodotto */
.breadcrumb {
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.breadcrumb-sep {
  margin: 0 0.35rem;
  opacity: 0.5;
}
.breadcrumb a {
  color: var(--muted);
}
.breadcrumb a:hover {
  color: var(--accent);
}

.trust-strip {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}
.trust-strip li {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.product-stage {
  padding-block: clamp(1.25rem, 3vw, 2.25rem);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
}

@media (max-width: 960px) {
  .product-layout {
    grid-template-columns: 1fr;
  }
}

.product-gallery {
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: clamp(0.65rem, 1.5vw, 1rem);
  box-shadow: var(--shadow);
}

.gallery-main {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-subtle);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-main img {
  max-width: min(100%, var(--affcat-product-main-display-max));
  max-height: min(100%, var(--affcat-product-main-display-max));
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  vertical-align: middle;
  flex-shrink: 0;
  image-rendering: auto;
}

.gallery-zoom-hint {
  position: absolute;
  bottom: 0.65rem;
  right: 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.92);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  pointer-events: none;
}

.gallery-thumbs {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.gallery-thumbs .thumb {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-subtle);
  transition: border-color 0.2s;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-thumbs .thumb.is-active {
  border-color: var(--accent);
}
.gallery-thumbs .thumb img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  flex-shrink: 0;
  image-rendering: auto;
}

.gallery-placeholder {
  min-height: 280px;
  display: grid;
  place-items: center;
  color: var(--muted);
  border-radius: var(--radius);
  border: 1px dashed var(--border-strong);
}

.product-buybox {
  padding: 0.15rem 0;
}

.buybox-brand {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--accent-2);
  margin: 0 0 0.45rem;
}

.product-buybox h1 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 1rem + 1.8vw, 2.15rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 0.85rem;
  color: var(--text);
}

.buybox-merchant {
  color: var(--muted);
  margin: 0 0 1.1rem;
  font-size: 0.94rem;
}

.price-block {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
  align-items: baseline;
  margin-bottom: 1.1rem;
}

.price-current {
  font-size: clamp(1.65rem, 1.1rem + 1.5vw, 2.1rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.price-rrp {
  font-size: 0.92rem;
  color: var(--muted);
  text-decoration: line-through;
}

.promo-pill {
  display: inline-block;
  margin: 0 0 1.1rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(234, 88, 12, 0.1);
  color: #c2410c;
  font-size: 0.86rem;
  font-weight: 650;
}

.meta-chips {
  list-style: none;
  margin: 0 0 0.25rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.meta-chips li {
  font-size: 0.76rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: var(--surface-2);
}

.cta-stack {
  margin-top: 0.75rem;
}

.cta-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0.75rem 0 0;
  line-height: 1.55;
}

/* Tab descrizione / dettagli */
.product-tabs-wrap {
  padding-bottom: 3rem;
}

.product-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  padding: 0.35rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.product-tab {
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--muted);
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.product-tab:hover {
  color: var(--text);
  background: var(--bg-subtle);
}
.product-tab.is-active {
  color: var(--text);
  background: var(--bg);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.product-panel {
  display: none;
  padding-top: 0.25rem;
}
.product-panel.is-active {
  display: block;
}

.prose {
  color: #475569;
  max-width: 75ch;
  line-height: 1.75;
}
.prose p:first-child {
  margin-top: 0;
}

/* Immagini nel testo scheda prodotto (descrizione, specifiche): come catalogo, senza upscale forzato */
.site-main--product .prose img,
.site-main--product .specs img {
  max-width: min(100%, var(--affcat-product-prose-img-max));
  height: auto;
  width: auto;
  display: block;
  margin: 0.85rem auto;
  border-radius: var(--radius-sm);
  box-sizing: border-box;
  image-rendering: auto;
}

.related-shell {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: clamp(1.75rem, 3vw, 2.5rem);
  border-top: 1px solid var(--border);
}

.related-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.related-lead {
  margin: 0 0 1.15rem;
  max-width: 40rem;
  color: var(--muted, #5c6570);
  font-size: 0.95rem;
  line-height: 1.45;
}

.related-shell--complement {
  margin-top: clamp(1.25rem, 2.5vw, 1.75rem);
}

/* Barra CTA sticky */
:root {
  --product-sticky-h: 3.85rem;
}

.product-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999985;
  max-width: 100%;
  overflow-x: clip;
  padding: 0.65rem 0 calc(0.65rem + env(safe-area-inset-bottom, 0));
  background: rgba(255, 255, 255, 0.92);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 30px rgba(15, 23, 42, 0.08);
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s var(--ease-out), opacity 0.25s;
}
.product-sticky-cta.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.product-sticky-cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  max-width: 100%;
  min-width: 0;
}

@media (min-width: 901px) {
  body.product-sticky-active.affux-cookie-fab-visible .product-sticky-cta__inner {
    padding-left: calc(6.5rem + env(safe-area-inset-left, 0px));
  }

  body.product-sticky-active.has-affux-dock .product-sticky-cta__inner {
    padding-right: min(21rem, 46vw);
  }
}

body.affux-cookie-open .product-sticky-cta.is-visible {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}

.product-sticky-cta__title {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-sticky-cta__price {
  margin: 0;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  font-size: 0.95rem;
}

/* Lightbox */
.product-lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(15, 23, 42, 0.88);
  display: none;
  place-items: center;
  padding: 2rem;
  cursor: zoom-out;
}
.product-lightbox.is-open {
  display: grid;
}
.product-lightbox img {
  max-width: min(96vw, 1200px);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  cursor: default;
  image-rendering: auto;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* Footer */
.site-footer {
  width: 100%;
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-block: clamp(1.75rem, 4vw, 2.75rem);
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
  background: var(--surface);
}

.site-footer__inner {
  max-width: 40rem;
}
.site-footer__inner p {
  margin: 0;
  line-height: 1.6;
}

.notfound {
  text-align: center;
  padding: 4rem 1rem;
}
.notfound h1 {
  font-family: var(--font-display);
}

/* —— Scheda prodotto Dagiashi: catalogo professionale, identità brand —— */
.product-page--dagiashi {
  --dg-text: #0f1111;
  --dg-muted: #565959;
  --dg-link: #007185;
  --dg-link-hover: #005f6b;
  --dg-border: #d5d9d9;
  --dg-surface: #ffffff;
  --dg-canvas: #f3f8f9;
  --dg-accent: #c7511f;
  --dg-accent-soft: rgba(199, 81, 31, 0.1);
  --dg-primary: #007185;
  --dg-primary-hover: #005f6b;
  --dg-primary-gradient: linear-gradient(135deg, #0e7490 0%, #007185 52%, #005f6b 100%);
  --dg-tab-active: #007185;
  --dg-font: var(--vx-font-retail, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
  --dg-radius: 12px;
  --dg-shadow: 0 4px 18px rgba(0, 113, 133, 0.08);
}

.site-main--product-mix {
  background: linear-gradient(180deg, var(--dg-canvas, #f3f8f9) 0%, #eef4f5 100%);
}

.product-page--dagiashi .product-stage--mix {
  background: var(--dg-surface);
  border-bottom: 1px solid var(--dg-border);
  margin-bottom: 0;
  padding-block: clamp(1rem, 2.5vw, 1.75rem);
}

.product-page--dagiashi .breadcrumb--product {
  font-size: 0.8rem;
  margin-bottom: 1rem;
  color: var(--dg-muted);
}
.product-page--dagiashi .breadcrumb--product a {
  color: var(--dg-link);
}
.product-page--dagiashi .breadcrumb--product a:hover {
  color: #005f73;
  text-decoration: underline;
}
.product-page--dagiashi .breadcrumb-sep {
  margin: 0 0.28rem;
  color: var(--dg-muted);
  opacity: 1;
}

.product-page--dagiashi .product-layout--mix {
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  gap: clamp(1rem, 2.5vw, 2.25rem);
  align-items: stretch;
}

@media (max-width: 960px) {
  .product-page--dagiashi .product-layout--mix {
    grid-template-columns: 1fr;
  }
}

.product-page--dagiashi .product-gallery--mix {
  font-family: var(--dg-font);
  border-radius: var(--dg-radius);
  border: 1px solid var(--dg-border);
  background: var(--dg-surface);
  box-shadow: var(--dg-shadow);
  padding: 0.85rem;
}

.product-page--dagiashi .product-gallery--mix.has-rail {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.65rem;
}

.product-page--dagiashi .gallery-thumbs--rail {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0;
  flex-shrink: 0;
  max-height: min(520px, 62vh);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
  scrollbar-width: thin;
}

.product-page--dagiashi .gallery-thumbs--rail .thumb {
  border-radius: 4px;
  border-width: 1px;
  border-color: var(--dg-border);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.product-page--dagiashi .gallery-thumbs--rail .thumb.is-active {
  border-color: var(--dg-link);
  box-shadow: 0 0 0 2px rgba(0, 113, 133, 0.22);
}
.product-page--dagiashi .gallery-thumbs--rail .thumb img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
  image-rendering: auto;
}

.product-page--dagiashi .product-gallery-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}

.product-page--dagiashi .product-gallery-stack .affcat-price-history {
  margin: 0;
}

.product-page--dagiashi .product-gallery-stack .affcat-price-history__inner {
  padding: 0.75rem 0.85rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 113, 133, 0.16);
  background: linear-gradient(180deg, #f7fbfb 0%, #fff 100%);
  box-shadow: 0 2px 10px rgba(0, 113, 133, 0.06);
}

.product-page--dagiashi .product-gallery-stack .affcat-price-history__title {
  font-size: 0.88rem;
  color: var(--dg-link);
  margin-bottom: 0.45rem;
}

.product-page--dagiashi .product-gallery-stack .affcat-price-history__chart-wrap {
  max-height: 132px;
}

.product-page--dagiashi .product-gallery-stack .affcat-price-history__chart {
  max-height: 132px;
  width: 100%;
}

.product-page--dagiashi .product-gallery-stack .affcat-price-history__summary,
.product-page--dagiashi .product-gallery-stack .affcat-price-history__disclaimer {
  font-size: 0.76rem;
}

.product-page--dagiashi .product-gallery-stack .affcat-price-history__legend {
  font-size: 0.68rem;
  margin-top: 0.35rem;
}

.product-page--dagiashi .gallery-main {
  flex: 1;
  min-width: 0;
  max-width: min(100%, 420px);
  border-radius: 8px;
  background: #fff;
  padding: clamp(0.35rem, 1.2vw, 0.65rem);
  aspect-ratio: 4 / 3;
  max-height: min(300px, 38vh);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Fallback finché non gira lo script (niente width/height forzati in %) */
.product-page--dagiashi .gallery-main img {
  max-width: min(100%, var(--affcat-product-main-display-max));
  max-height: min(100%, var(--affcat-product-main-display-max));
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
  display: block;
  image-rendering: auto;
  /* L’ingrandimento oltre i pixel reali è bloccato in product-page.js (affcatFitGalleryMain) */
}

@media (max-width: 960px) {
  .product-page--dagiashi .product-gallery--mix.has-rail {
    flex-direction: column;
  }
  .product-page--dagiashi .gallery-thumbs--rail {
    flex-direction: row;
    flex-wrap: nowrap;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    order: 2;
    padding-bottom: 2px;
  }
  .product-page--dagiashi .product-gallery--mix.has-rail .gallery-main {
    order: 1;
  }
  .product-page--dagiashi .gallery-thumbs--rail .thumb {
    width: 56px;
    height: 56px;
  }
}

.product-page--dagiashi .buybox-card {
  position: relative;
  font-family: var(--dg-font);
  background: var(--dg-surface);
  border: 1px solid var(--dg-border);
  border-radius: var(--dg-radius);
  padding: clamp(1.05rem, 2vw, 1.45rem);
  box-shadow: var(--dg-shadow);
  overflow: hidden;
}

.product-page--dagiashi .buybox-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--dg-primary-gradient);
  border-radius: var(--dg-radius) 0 0 var(--dg-radius);
}

.product-page--dagiashi .buybox-callout {
  margin: 0 0 0.85rem;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0, 113, 133, 0.07) 0%, rgba(199, 81, 31, 0.06) 100%);
  border: 1px solid rgba(0, 113, 133, 0.14);
}

.product-page--dagiashi .buybox-callout__kicker {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dg-link);
}

.product-page--dagiashi .buybox-callout__text {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--dg-muted);
}

.product-page--dagiashi .buybox-price-hero {
  margin: 0.15rem 0 0.85rem;
  padding: 0.85rem 0.95rem;
  border-radius: 10px;
  background: #f7fbfb;
  border: 1px solid rgba(0, 113, 133, 0.12);
}

.product-page--dagiashi .buybox-alert-link-wrap {
  margin: 0 0 0.75rem;
}

.product-page--dagiashi .buybox-alert-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.84rem;
  font-weight: 650;
  color: var(--dg-link);
  text-decoration: none;
}

.product-page--dagiashi .buybox-alert-link__icon {
  flex-shrink: 0;
}

.product-page--dagiashi .buybox-alert-link:hover {
  color: var(--dg-link-hover);
  text-decoration: underline;
}

.product-page--dagiashi .buybox-brand-line {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  color: var(--dg-link);
}
.product-page--dagiashi .buybox-brand-label {
  color: var(--dg-muted);
  margin-right: 0.35rem;
}
.product-page--dagiashi .buybox-brand-name {
  font-weight: 600;
}

.product-page--dagiashi .product-title-dg {
  font-family: var(--dg-font);
  font-size: clamp(1.35rem, 1rem + 1.2vw, 1.72rem);
  font-weight: 650;
  line-height: 1.28;
  letter-spacing: -0.015em;
  margin: 0 0 0.65rem;
  color: var(--dg-text);
}

.product-page--dagiashi .buybox-compare-pill {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  color: var(--dg-muted);
}

.product-page--dagiashi .buybox-compare-pill a {
  color: var(--dg-link);
  font-weight: 600;
  text-decoration: none;
}

.product-page--dagiashi .buybox-compare-pill a:hover {
  color: var(--dg-link-hover);
  text-decoration: underline;
}

.product-page--dagiashi .buybox-merchant--dg {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  color: var(--dg-text);
}
.product-page--dagiashi .buybox-merchant-name {
  font-weight: 600;
  color: var(--dg-link);
}
a.buybox-merchant-name:hover,
a.buybox-merchant-name:focus-visible {
  text-decoration: underline;
}

.product-facts-list a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.product-facts-list a:hover,
.product-facts-list a:focus-visible {
  text-decoration: underline;
}

.product-page--dagiashi .buybox-divider {
  height: 1px;
  background: var(--dg-border);
  margin: 0.85rem 0;
}

.product-page--dagiashi .price-block--dg {
  margin-bottom: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.65rem;
}
.product-page--dagiashi .price-block--dg .card-price-from {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dg-link);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.product-page--dagiashi .price-block--dg .price-current {
  font-size: clamp(1.55rem, 1.15rem + 1.1vw, 2rem);
  font-weight: 700;
  color: var(--dg-text);
  letter-spacing: -0.02em;
}
.product-page--dagiashi .price-block--dg .price-rrp {
  font-size: 0.88rem;
  color: var(--dg-muted);
}

.product-page--dagiashi .promo-pill--dg {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--dg-accent-soft);
  color: var(--dg-accent);
  border: 1px solid rgba(199, 81, 31, 0.22);
}

.product-page--dagiashi .promo-pill--inline {
  margin: 0.45rem 0 0;
}

.product-page--dagiashi .buybox-trust {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.product-page--dagiashi .buybox-trust__item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--dg-text);
}

.product-page--dagiashi .buybox-trust__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  margin-top: 0.05rem;
  border-radius: 8px;
  background: rgba(0, 113, 133, 0.1);
  color: var(--dg-link);
}

.product-page--dagiashi .buybox-trust__icon svg {
  display: block;
}

.product-page--dagiashi .buybox-mini-spec {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 0.85rem;
  margin: 0 0 0.25rem;
  font-size: 0.8rem;
  color: var(--dg-text);
}
.product-page--dagiashi .buybox-mini-spec dt {
  margin: 0;
  color: var(--dg-muted);
  font-weight: 500;
}
.product-page--dagiashi .buybox-mini-spec dd {
  margin: 0;
}

.product-page--dagiashi .product-actions--dg {
  margin-top: 0.35rem;
}

.product-page--dagiashi .cta-stack--dg {
  margin-top: 0.65rem;
}
.product-page--dagiashi .cta-stack--dg .btn + .btn {
  margin-top: 0.55rem;
}

.product-page--dagiashi .btn-dg-primary {
  width: 100%;
  padding: 0.72rem 1.1rem;
  font-size: 0.94rem;
  font-weight: 700;
  border-radius: 10px;
  color: #fff;
  background: var(--dg-primary-gradient);
  border: 1px solid var(--dg-primary-hover);
  box-shadow: 0 4px 14px rgba(0, 113, 133, 0.22);
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  transition: filter 0.15s, box-shadow 0.15s, transform 0.12s;
}
.product-page--dagiashi .btn-dg-primary:hover {
  filter: brightness(1.05);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 113, 133, 0.28);
}

.product-page--dagiashi .btn-dg-primary__icon {
  flex-shrink: 0;
  opacity: 0.95;
}

.product-page--dagiashi .btn-dg-secondary {
  width: 100%;
  padding: 0.62rem 1rem;
  font-size: 0.88rem;
  font-weight: 650;
  border-radius: 10px;
  color: var(--dg-link);
  background: #fff;
  border: 1px solid rgba(0, 113, 133, 0.35);
  box-shadow: none;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.product-page--dagiashi .btn-dg-secondary:hover {
  background: rgba(0, 113, 133, 0.06);
  border-color: var(--dg-link);
  color: var(--dg-link-hover);
  transform: none;
}

.product-page--dagiashi .cta-note--dg {
  font-size: 0.75rem;
  color: var(--dg-muted);
  line-height: 1.5;
}

.product-page--dagiashi .product-detail-below {
  padding-top: 1.25rem;
  padding-bottom: 0.35rem;
  background: var(--dg-canvas);
}
.product-page--dagiashi .product-section-heading {
  font-family: var(--dg-font);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--dg-border);
  color: var(--dg-text);
}

.product-page--dagiashi .product-tabs-wrap--mix {
  padding-top: 0.75rem;
  background: var(--dg-canvas);
}

.product-page--dagiashi .product-tabs-wrap--mix .product-tabs {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--dg-border);
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  gap: 0;
  margin-bottom: 1rem;
}

.product-page--dagiashi .product-tabs-wrap--mix .product-tab {
  border-radius: 0;
  padding: 0.65rem 1rem;
  margin-right: 0.15rem;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  color: var(--dg-link);
  font-weight: 500;
  font-size: 0.86rem;
}
.product-page--dagiashi .product-tabs-wrap--mix .product-tab:hover {
  background: transparent;
  color: var(--dg-tab-active);
  text-decoration: underline;
}
.product-page--dagiashi .product-tabs-wrap--mix .product-tab.is-active {
  color: var(--dg-text);
  font-weight: 700;
  background: transparent;
  box-shadow: none;
  border-bottom-color: var(--dg-tab-active);
  text-decoration: none;
}

.product-page--dagiashi .product-tabs-wrap--mix .product-panel.is-active .prose,
.product-page--dagiashi .product-tabs-wrap--mix .product-panel.is-active > p.prose {
  background: var(--dg-surface);
  border: 1px solid var(--dg-border);
  border-radius: 8px;
  padding: 1.15rem 1.25rem;
  max-width: none;
}

.product-page--dagiashi .related-shell--mix {
  background: var(--dg-surface);
  border: 1px solid var(--dg-border);
  border-radius: 8px;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}
.product-page--dagiashi .related-shell--mix .related-title {
  font-family: var(--dg-font);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--dg-text);
}
.product-page--dagiashi .related-shell--mix .related-lead {
  margin-bottom: 1rem;
  color: var(--dg-muted, #565959);
  font-size: 0.9rem;
}

/* Sezione Informazioni sul prodotto — layout professionale */
.product-page--dagiashi .product-info-section {
  background: var(--dg-canvas);
  padding-block: clamp(1.25rem, 2.5vw, 1.75rem) clamp(1.5rem, 3vw, 2rem);
}

.product-page--dagiashi .product-info-section__head {
  margin-bottom: 1rem;
}

.product-page--dagiashi .product-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: clamp(1rem, 2.5vw, 1.35rem);
  align-items: start;
}

@media (max-width: 900px) {
  .product-page--dagiashi .product-info-grid {
    grid-template-columns: 1fr;
  }

  .product-page--dagiashi .product-facts-card {
    order: -1;
  }
}

.product-page--dagiashi .product-info-main {
  background: var(--dg-surface);
  border: 1px solid var(--dg-border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 17, 17, 0.06);
}

.product-page--dagiashi .product-tabs--info {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 0 0.35rem;
  border-bottom: 1px solid var(--dg-border);
  background: linear-gradient(180deg, #f7fafa, var(--dg-surface));
}

.product-page--dagiashi .product-tabs--info .product-tab {
  border-radius: 0;
  padding: 0.7rem 1rem;
  margin-right: 0.15rem;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  color: var(--dg-link);
  font-weight: 500;
  font-size: 0.86rem;
  font-family: var(--dg-font);
  background: transparent;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  cursor: pointer;
}

.product-page--dagiashi .product-tabs--info .product-tab.is-active {
  color: var(--dg-text);
  font-weight: 700;
  border-bottom-color: var(--dg-tab-active);
}

.product-page--dagiashi .product-detail-panel {
  display: none;
  padding: clamp(1rem, 2vw, 1.25rem) clamp(1.05rem, 2vw, 1.35rem) clamp(1.15rem, 2vw, 1.45rem);
}

.product-page--dagiashi .product-detail-panel.is-active {
  display: block;
}

.product-page--dagiashi .product-detail-panel__title {
  margin: 0 0 0.75rem;
  font-family: var(--dg-font);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--dg-text);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.product-page--dagiashi .product-prose--formatted,
.product-page--dagiashi .product-prose--specs {
  max-width: none;
  color: var(--dg-muted);
  line-height: 1.72;
  font-family: var(--dg-font);
  font-size: 0.92rem;
}

.product-page--dagiashi .product-desc-lead {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 600;
  color: var(--dg-text);
}

.product-page--dagiashi .product-desc-body p {
  margin: 0 0 0.85rem;
}

.product-page--dagiashi .product-desc-body p:last-child {
  margin-bottom: 0;
}

.product-page--dagiashi .product-desc-subtitle {
  margin: 1.15rem 0 0.45rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--dg-text);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.product-page--dagiashi .product-desc-list {
  margin: 0.5rem 0 1rem;
  padding-left: 1.15rem;
}

.product-page--dagiashi .product-desc-list li {
  margin-bottom: 0.4rem;
}

.product-page--dagiashi .product-desc-rich > p {
  margin: 0 0 0.85rem;
}

.product-page--dagiashi .product-desc-rich > p:last-child {
  margin-bottom: 0;
}

.product-page--dagiashi .affcat-disclosure {
  margin-top: 1.15rem;
  padding: 0.75rem 0.85rem;
  border-radius: 6px;
  border: 1px solid var(--dg-border);
  background: #f7fafa;
  font-size: 0.82rem;
  color: var(--dg-muted);
}

.product-page--dagiashi .product-specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.product-page--dagiashi .product-specs-table th,
.product-page--dagiashi .product-specs-table td {
  border-bottom: 1px solid var(--dg-border);
  padding: 0.55rem 0.65rem;
  text-align: left;
  vertical-align: top;
}

.product-page--dagiashi .product-specs-table th {
  width: 38%;
  font-weight: 600;
  color: var(--dg-text);
  background: #f7fafa;
}

.product-page--dagiashi .product-specs-table td {
  color: var(--dg-muted);
}

.product-page--dagiashi .product-dim-text {
  margin: 0;
  font-size: 0.92rem;
  color: var(--dg-muted);
}

.product-page--dagiashi .product-desc-empty {
  margin: 0;
  color: var(--dg-muted);
  font-style: italic;
}

.product-page--dagiashi .product-facts-card {
  background: var(--dg-surface);
  border: 1px solid var(--dg-border);
  border-radius: 8px;
  padding: 1rem 1.05rem 1.1rem;
  box-shadow: 0 1px 3px rgba(15, 17, 17, 0.06);
  font-family: var(--dg-font);
}

.product-page--dagiashi .product-facts-card__title {
  margin: 0 0 0.75rem;
  padding-bottom: 0.45rem;
  border-bottom: 2px solid var(--dg-link);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--dg-text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.product-page--dagiashi .product-facts-list {
  margin: 0;
}

.product-page--dagiashi .product-facts-list__row {
  display: grid;
  grid-template-columns: minmax(0, 42%) 1fr;
  gap: 0.35rem 0.65rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--dg-border);
}

.product-page--dagiashi .product-facts-list__row:last-of-type {
  border-bottom: 0;
}

.product-page--dagiashi .product-facts-list dt {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--dg-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.product-page--dagiashi .product-facts-list dd {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dg-text);
  word-break: break-word;
}

.product-page--dagiashi .product-facts-card__note {
  margin: 0.85rem 0 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--dg-muted);
}

.product-sticky-cta .btn-dg-primary--compact {
  width: auto;
  padding: 0.55rem 1.1rem;
  font-size: 0.82rem;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #0e7490 0%, #007185 52%, #005f6b 100%);
  border: 1px solid #005f6b;
  box-shadow: 0 3px 12px rgba(0, 113, 133, 0.2);
  font-weight: 700;
}
.product-sticky-cta .btn-dg-primary--compact:hover {
  filter: brightness(1.05);
  color: #fff;
  transform: none;
}

/* —— Superficie retail: header, home, catalogo, card, footer (coerente con scheda prodotto) —— */

.site-header--retail {
  border-bottom-color: var(--vx-border);
  background: rgba(255, 255, 255, 0.97);
}

.site-header--retail.is-scrolled {
  background: rgba(255, 255, 255, 0.99);
}

.site-header--retail .header-search input,
.site-header--retail .catalog-search__input {
  border-radius: 0;
  border-color: #949494;
  box-shadow: inset 0 1px 2px rgba(15, 17, 17, 0.06);
}

.site-header--retail .catalog-search__bar {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 17, 17, 0.08);
}

.site-header--retail .catalog-search__dept {
  border-radius: 4px 0 0 4px;
}

.site-header--retail .catalog-search__input {
  border-left: 0;
  border-right: 0;
}

.site-header--retail .header-search button,
.site-header--retail .catalog-search__submit {
  border-radius: 0 4px 4px 0;
  color: #fff;
  font-weight: 700;
  font-family: var(--vx-font-retail);
  border: 1px solid #005f6b;
  border-left: 0;
  box-shadow: none;
  background: linear-gradient(180deg, #36a3b8 0%, #007185 55%, #005f6b 100%);
}

.site-header--retail .header-search button:hover,
.site-header--retail .catalog-search__submit:hover {
  filter: brightness(1.04);
  transform: none;
  background: linear-gradient(180deg, #3eb0c6 0%, #007f94 55%, #006978 100%);
}

.site-header--retail .nav-main__link {
  font-family: var(--vx-font-retail);
  color: var(--vx-text);
  font-weight: 500;
}

.site-header--retail .nav-main__link:hover,
.site-header--retail .nav-main__link:focus-visible {
  color: var(--vx-accent-line);
  background: #fff6f0;
  text-decoration: none;
}

.site-header--retail .nav-main__link.is-active,
.site-header--retail .current-menu-item > .nav-main__link,
.site-header--retail .current-menu-ancestor > .nav-main__link {
  color: var(--vx-accent-line);
  background: #fff6f0;
  box-shadow: inset 0 0 0 1px rgba(199, 81, 31, 0.18);
}

.site-header--retail .nav-toggle {
  font-family: var(--vx-font-retail);
  border-color: var(--vx-border);
}

.site-header--retail .nav-panel {
  font-family: var(--vx-font-retail);
}

/* Home */
.site-main--home {
  background: var(--vx-canvas);
}

.site-main--home .retail-hero {
  background: linear-gradient(180deg, #ffffff 0%, #f7fafa 55%, var(--vx-canvas) 100%);
  border-bottom: 1px solid var(--vx-border);
}

.site-main--home .retail-hero .hero__mesh {
  opacity: 0.42;
}

.site-main--home .retail-hero .eyebrow {
  color: var(--vx-link);
  letter-spacing: 0.12em;
  font-family: var(--vx-font-retail);
  font-size: 0.68rem;
}

.site-main--home .retail-hero h1 {
  font-family: var(--vx-font-retail);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: clamp(1.85rem, 1.1rem + 2.8vw, 2.65rem);
  color: var(--vx-text);
  max-width: 20ch;
}

.site-main--home .retail-hero .lead {
  color: var(--vx-muted);
  max-width: 42ch;
  font-family: var(--vx-font-retail);
}

.site-main--home .retail-hero .btn-primary {
  border-radius: 20px;
  color: var(--vx-text);
  background: var(--vx-buy);
  border: 1px solid var(--vx-buy-border);
  box-shadow: 0 2px 5px rgba(213, 217, 217, 0.65);
  font-weight: 600;
  font-family: var(--vx-font-retail);
}

.site-main--home .retail-hero .btn-primary:hover {
  background: var(--vx-buy-hover);
  filter: none;
  color: var(--vx-text);
}

.site-main--home .retail-hero .hero-stat {
  font-family: var(--vx-font-retail);
  color: var(--vx-muted);
}

.site-main--home .retail-hero .hero-stat strong {
  color: var(--vx-accent-line);
}

.site-main--home .retail-hero .hero-card {
  border-color: var(--vx-border);
  border-radius: var(--vx-radius-card);
  box-shadow: var(--vx-shadow-card);
  background: var(--vx-surface);
}

.site-main--home .retail-hero .mini-tag {
  background: rgba(199, 81, 31, 0.12);
  color: var(--vx-accent-line);
}

.site-main--home .retail-hero .hero-card p {
  font-family: var(--vx-font-retail);
  font-size: 0.9rem;
  color: var(--vx-muted);
}

.site-main--home .retail-featured {
  padding-block: clamp(2.25rem, 5vw, 3.75rem);
  background: transparent;
  border-top: 0;
}

.site-main--home .retail-featured .section-head {
  margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
}

.site-main--home .retail-featured .section-head h2 {
  font-family: var(--vx-font-retail);
  font-size: clamp(1.08rem, 0.92rem + 0.45vw, 1.22rem);
  font-weight: 700;
  color: var(--vx-text);
  margin: 0;
  letter-spacing: 0;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--vx-accent-line);
  display: inline-block;
}

.site-main--home .retail-featured .section-head a {
  font-family: var(--vx-font-retail);
  border-radius: 20px;
  border: 1px solid var(--vx-border);
  background: var(--vx-surface);
  color: var(--vx-text);
  font-weight: 600;
  box-shadow: var(--vx-shadow-card);
}

.site-main--home .retail-featured .section-head a:hover {
  background: #f7fafa;
  border-color: var(--vx-link);
  color: var(--vx-link);
}

.site-main--home .empty-hint {
  background: var(--vx-surface);
  border: 1px dashed var(--vx-border);
  border-radius: var(--vx-radius-card);
  padding: 2rem 1.5rem;
  font-family: var(--vx-font-retail);
}

/* Home compatta: hero, macro categorie, selezione per categoria */
.hero--compact {
  min-height: 0;
  padding-block: clamp(2rem, 5vw, 3.25rem);
}

.hero-grid--compact {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: stretch;
  max-width: none;
}

.home-dagiashi-pitch {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: clamp(1.25rem, 2.5vw, 1.65rem);
  border-radius: var(--vx-radius-card, 16px);
  border: 1px solid var(--vx-border, var(--border));
  background: var(--vx-surface, var(--surface));
  box-shadow: var(--vx-shadow-card, 0 8px 28px rgba(15, 23, 42, 0.07));
  align-self: center;
}

.home-dagiashi-pitch__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.home-dagiashi-pitch__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1;
}

.home-dagiashi-pitch__name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--vx-text, var(--text));
  letter-spacing: -0.02em;
}

.home-dagiashi-pitch__title {
  margin: 0;
  font-family: var(--vx-font-retail, inherit);
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.35rem);
  font-weight: 700;
  color: var(--vx-text, var(--text));
  line-height: 1.25;
}

.home-dagiashi-pitch__lead {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--vx-muted, var(--muted));
}

.home-dagiashi-pitch__list {
  margin: 0.15rem 0 0;
  padding: 0 0 0 1.15rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--vx-text, var(--text));
}

.home-dagiashi-pitch__list li + li {
  margin-top: 0.45rem;
}

.home-dagiashi-pitch__cta {
  margin-top: 0.35rem;
  align-self: flex-start;
  border-radius: 999px;
}

.home-search-form:not(.catalog-search) {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
  max-width: 32rem;
}

.home-search-form:not(.catalog-search) input[type="search"] {
  flex: 1 1 12rem;
  min-width: 0;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--vx-border, var(--border));
  border-radius: 999px;
  font: inherit;
  background: var(--vx-surface, var(--surface));
  color: var(--vx-text, var(--text));
}

.home-search-form:not(.catalog-search) .btn {
  border-radius: 999px;
}

.section--home-macro,
.section--home-picks {
  padding-block: clamp(1.75rem, 4vw, 2.75rem);
}

.section--home-macro {
  background: var(--vx-canvas, var(--bg));
  border-top: 1px solid var(--vx-border, var(--border));
}

.section--home-picks + .section--home-picks {
  border-top: 1px solid var(--vx-border, var(--border));
}

.home-macro-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  gap: 0.85rem;
}

.home-macro-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 100%;
  padding: 0;
  border-radius: var(--vx-radius-card, var(--radius-lg));
  border: 1px solid var(--vx-border, var(--border));
  background: var(--vx-surface, var(--surface));
  box-shadow: var(--vx-shadow-card, 0 1px 3px rgba(15, 23, 42, 0.04));
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s var(--ease-out, ease), box-shadow 0.2s ease;
}

.home-macro-card__media {
  display: block;
  aspect-ratio: 1 / 1;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid var(--vx-border, var(--border));
  padding: 0;
  overflow: hidden;
}

.home-macro-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
}

.home-macro-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.1rem 1.15rem;
  flex: 1;
}

.home-macro-card:hover,
.home-macro-card:focus-visible {
  border-color: var(--vx-link, var(--accent));
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg, 0 8px 24px rgba(15, 23, 42, 0.08));
}

.home-macro-card__label {
  font-weight: 650;
  font-size: 0.98rem;
  line-height: 1.35;
  color: var(--vx-text, var(--text));
}

.home-macro-card__count {
  font-size: 0.82rem;
  color: var(--vx-muted, var(--muted));
}

.product-grid--home-picks {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}

@media (max-width: 960px) {
  .hero-grid--compact {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .hero-grid--compact .hero-actions {
    justify-content: flex-start;
  }
  .home-search-form.catalog-search {
    max-width: none;
  }
  .home-dagiashi-pitch {
    align-self: stretch;
  }
}

/* Catalogo */
.retail-catalog.site-main--catalog {
  background: var(--vx-canvas);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.retail-catalog .catalog-hero {
  background: var(--vx-surface);
  border-bottom: 1px solid var(--vx-border);
  margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
}

.retail-catalog .catalog-hero__inner {
  max-width: none;
  padding-block: clamp(1.35rem, 2.5vw, 1.85rem);
}

.retail-catalog .page-title {
  font-family: var(--vx-font-retail);
  font-weight: 700;
  font-size: clamp(1.35rem, 1rem + 1.2vw, 1.75rem);
  letter-spacing: -0.02em;
  color: var(--vx-text);
  margin-bottom: 0.4rem;
}

.retail-catalog .page-lede {
  font-family: var(--vx-font-retail);
  color: var(--vx-muted);
  max-width: 52ch;
  font-size: 0.92rem;
}

.retail-catalog .facets {
  font-family: var(--vx-font-retail);
  border-color: var(--vx-border);
  border-radius: var(--vx-radius-card);
  box-shadow: var(--vx-shadow-card);
  background: var(--vx-surface);
}

.retail-catalog .facet-block h3 {
  color: var(--vx-text);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.retail-catalog .facet-list a {
  border-radius: 4px;
}

.retail-catalog .facet-list a:hover,
.retail-catalog .facet-list a.is-active {
  background: rgba(0, 113, 133, 0.08);
  color: var(--vx-link);
}

.retail-catalog .facets .btn-ghost {
  border-radius: 20px;
  border-color: var(--vx-border);
  font-weight: 600;
  font-family: var(--vx-font-retail);
}

.retail-catalog .facets .btn-ghost:hover {
  background: #f7fafa;
  border-color: var(--vx-link);
  color: var(--vx-link);
}

.retail-catalog .facets--pro {
  padding: clamp(0.9rem, 2vw, 1.15rem) clamp(0.9rem, 2vw, 1.15rem) 0;
}

.retail-catalog .facets--pro .facets-actions {
  background: var(--vx-surface);
  border-top-color: var(--vx-border);
  box-shadow: 0 -8px 16px rgba(15, 23, 42, 0.05);
}

.retail-catalog .facet-search,
.retail-catalog .facet-field input[type="search"],
.retail-catalog .facet-field input[type="number"] {
  border-color: var(--vx-border);
  font-family: var(--vx-font-retail);
}

.retail-catalog .facet-option__label:hover,
.retail-catalog .facet-option__label:has(input:checked) {
  background: rgba(0, 113, 133, 0.08);
  color: var(--vx-link);
}

.retail-catalog .facet-option__label input:checked + .facet-option__text::before {
  border-color: var(--vx-link);
  background: radial-gradient(circle at center, var(--vx-link) 0 38%, transparent 40%);
}

.retail-catalog .catalog-filter-chip {
  font-family: var(--vx-font-retail);
  border-color: var(--vx-border);
  background: #f7fafa;
}

.retail-catalog .catalog-filter-chip:hover {
  border-color: var(--vx-link);
  background: rgba(0, 113, 133, 0.08);
  color: var(--vx-link);
}

.retail-catalog .facets-apply {
  font-family: var(--vx-font-retail);
  font-weight: 600;
}

.retail-catalog .catalog-main {
  background: var(--vx-surface);
  border: 1px solid var(--vx-border);
  border-radius: var(--vx-radius-card);
  box-shadow: var(--vx-shadow-card);
  padding: clamp(1rem, 2vw, 1.35rem);
  min-height: 200px;
}

.retail-catalog .catalog-toolbar {
  border-radius: 6px;
  border-color: var(--vx-border);
  background: #f7fafa;
  font-family: var(--vx-font-retail);
}

.retail-catalog .catalog-toolbar .btn-ghost {
  border-radius: 6px;
  border-color: var(--vx-border);
  font-weight: 600;
}

.retail-catalog .result-count {
  color: var(--vx-muted);
  font-weight: 500;
}

.retail-catalog .sort-form select {
  border-color: var(--vx-border);
  border-radius: 6px;
  font-family: var(--vx-font-retail);
}

.retail-catalog .navigation.pagination {
  margin-top: clamp(1.5rem, 3vw, 2rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--vx-border);
}

/* Scroll infinito catalogo: sentinel per IntersectionObserver (~2 righe prima del fondo lista) */
.retail-catalog .catalog-infinite-sentinel {
  height: 1px;
  margin-top: 0.25rem;
  pointer-events: none;
}

.retail-catalog .catalog-infinite-status {
  text-align: center;
  font-size: 0.9rem;
  color: var(--vx-muted);
  margin-top: 1rem;
  min-height: 1.5em;
  font-family: var(--vx-font-retail);
}

body.catalog-infinite-enabled .retail-catalog .catalog-pagination-nav,
body.vetrina-infinite-enabled .retail-catalog .catalog-pagination-nav {
  display: none !important;
}

.retail-catalog .nav-links a,
.retail-catalog .nav-links span {
  font-family: var(--vx-font-retail);
  border-color: var(--vx-border);
  border-radius: 6px;
  font-weight: 600;
}

.retail-catalog .nav-links span.current,
.retail-catalog .nav-links a:hover {
  border-color: var(--vx-accent-line);
  color: var(--vx-text);
  background: rgba(199, 81, 31, 0.08);
}

.retail-catalog .empty-hint {
  font-family: var(--vx-font-retail);
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--vx-muted);
  border: 1px dashed var(--vx-border);
  border-radius: var(--vx-radius-card);
  background: #f7fafa;
}

.catalog-empty-state {
  padding: clamp(2rem, 4vw, 3rem) 1rem;
  text-align: center;
  border: 1px dashed var(--vx-border, var(--border));
  border-radius: var(--vx-radius-card, var(--radius-lg));
  background: #f7fafa;
  min-height: 12rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.catalog-empty-state .empty-hint {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  max-width: 42ch;
}

.empty-hint__sub {
  margin: 0;
  font-size: 0.92rem;
  color: var(--vx-muted, var(--muted));
}

.facet-context-hint {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.75rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
  background: var(--bg-subtle);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.retail-catalog .facet-context-hint {
  font-family: var(--vx-font-retail);
  color: var(--vx-muted);
  background: #f7fafa;
  border-color: var(--vx-border);
}

.product-grid.is-loading {
  opacity: 0.55;
  transition: opacity 0.15s ease;
}

.product-grid.is-empty {
  min-height: 12rem;
}

/* Card prodotto (home, catalogo, correlati) */
.product-card--retail {
  border-color: var(--vx-border);
  border-radius: 12px;
  background: var(--vx-surface);
  box-shadow:
    0 1px 2px rgba(15, 17, 17, 0.04),
    0 4px 16px rgba(15, 17, 17, 0.03);
  font-family: var(--vx-font-retail);
  transition:
    border-color 0.2s,
    box-shadow 0.25s var(--ease-out),
    transform 0.2s var(--ease-out);
}

.product-card--retail:hover {
  border-color: #b8c0c4;
  box-shadow:
    0 8px 24px rgba(15, 17, 17, 0.08),
    0 2px 6px rgba(15, 17, 17, 0.04);
  transform: translateY(-3px);
}

.product-card--retail .card-media {
  position: relative;
  flex-shrink: 0;
}

.product-card--retail .card-image {
  background: linear-gradient(165deg, #ffffff 0%, #f8fafb 55%, #f1f4f6 100%);
  border-bottom: 1px solid #eef1f3;
  padding: clamp(0.75rem, 2vw, 1.1rem);
}

.product-card--retail .card-brand {
  color: var(--vx-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.product-card--retail .card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  border-top: 0;
  padding: 0.9rem 1rem 1rem;
  min-height: 0;
}

.product-card--retail .card-title-link h3 {
  margin: 0;
  color: var(--vx-text);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.45;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.9em;
}

.product-card--retail .card-title-link:hover h3 {
  color: var(--vx-link);
}

.product-card--retail .card-price-row {
  margin-top: 0.65rem;
  align-items: baseline;
}

.product-card--retail .card-price {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  color: var(--vx-text);
  font-weight: 700;
  font-size: 1.12rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.product-card--retail .card-price__currency {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--vx-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-card--retail .card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--vx-link);
  text-decoration: none;
  border-top: 1px solid #f0f2f2;
  margin-left: -1rem;
  margin-right: -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-bottom: 0.05rem;
  transition: color 0.15s ease, background 0.15s ease;
}

.product-card--retail .card-cta__arrow {
  font-size: 0.95em;
  opacity: 0.85;
  transition: transform 0.15s var(--ease-out);
}

.product-card--retail:hover .card-cta__arrow {
  transform: translateX(3px);
}

.product-card--retail .card-cta:hover,
.product-card--retail .card-cta:focus-visible {
  color: var(--accent-hover, #1d4ed8);
  background: #f8fafb;
}

.product-card--retail .card-body h3 {
  color: var(--vx-text);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.38;
}

.product-card--retail .card-merchant {
  color: var(--vx-muted);
  font-size: 0.8rem;
}

.product-card--retail .card-body {
  padding: 1rem 1.05rem 1.15rem;
  border-top: 1px solid #f0f2f2;
}

/* Footer */
.site-footer--retail {
  background: linear-gradient(180deg, #232f3e 0%, #1a222d 100%);
  border-top: 1px solid #131a22;
  color: #ddd;
  text-align: left;
}

.site-footer--retail .site-footer__inner {
  max-width: none;
  padding-block: clamp(1.75rem, 3vw, 2.5rem);
}

.site-footer--retail .site-footer__inner p {
  max-width: 52rem;
  margin-inline: auto;
  text-align: center;
  font-family: var(--vx-font-retail);
  font-size: 0.83rem;
  line-height: 1.65;
  color: #ccc;
}

@media (max-width: 900px) {
  .retail-catalog .facets.is-open {
    border-radius: 0;
  }
}

/* Blog / archivi generici (index) */
.retail-blog {
  background: var(--vx-canvas);
  padding-block: clamp(2rem, 4vw, 3rem);
}

.retail-blog__inner {
  background: var(--vx-surface);
  border: 1px solid var(--vx-border);
  border-radius: var(--vx-radius-card);
  box-shadow: var(--vx-shadow-card);
  padding: clamp(1.25rem, 3vw, 2rem);
  font-family: var(--vx-font-retail);
}

.retail-blog .card {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--vx-border);
}

.retail-blog .card:last-of-type {
  border-bottom: 0;
}

.retail-blog .card h2 {
  margin-top: 0;
  font-size: 1.12rem;
  font-weight: 700;
}

.retail-blog .card h2 a {
  color: var(--vx-text);
  text-decoration: none;
}

.retail-blog .card h2 a:hover {
  color: var(--vx-link);
  text-decoration: underline;
}

.retail-blog .card .entry-summary,
.retail-blog .card p {
  color: var(--vx-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Accessibilità */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* Pagina statica generica */
.retail-page {
  background: var(--vx-canvas);
  padding-block: clamp(1.75rem, 4vw, 2.75rem);
}

.page-shell__inner {
  background: var(--vx-surface);
  border: 1px solid var(--vx-border);
  border-radius: var(--vx-radius-card);
  box-shadow: var(--vx-shadow-card);
  padding: clamp(1.25rem, 3vw, 2rem);
  font-family: var(--vx-font-retail);
}

.breadcrumb--page {
  font-size: 0.82rem;
  margin-bottom: 1rem;
  color: var(--vx-muted);
}

.breadcrumb--page a {
  color: var(--vx-link);
}

.page-header-block__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.45rem, 1rem + 1.5vw, 1.85rem);
  font-weight: 700;
  color: var(--vx-text);
  letter-spacing: -0.02em;
}

.page-header-block__deck {
  margin: 0 0 1.25rem;
  color: var(--vx-muted);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 62ch;
}

.page-featured-figure {
  margin: 0 0 1.5rem;
  border-radius: var(--vx-radius-card);
  overflow: hidden;
  border: 1px solid var(--vx-border);
}

.page-featured-figure__img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.page-content-block {
  color: var(--vx-text);
  line-height: 1.7;
  max-width: 68ch;
}

/* Storia brand / pagine istituzionali: testo a tutta la shell */
.page-content-block--full {
  max-width: none;
  width: 100%;
}

.page-header-block__deck--wide {
  max-width: none;
}

.page-shell__inner--wide {
  padding-inline: clamp(1.25rem, 4vw, 2.75rem);
}

.retail-page--brand .page-content-block--full p,
.retail-page--brand .page-content-block--full li {
  max-width: none;
}

.retail-page--brand .page-content-block--full h1,
.retail-page--brand .page-content-block--full h2,
.retail-page--brand .page-content-block--full h3 {
  max-width: none;
  line-height: 1.25;
}

.page-content-block h2,
.page-content-block h3 {
  margin-top: 1.5rem;
  font-weight: 700;
  color: var(--vx-text);
}

.page-content-block a {
  color: var(--vx-link);
}

/* Hub vetrina (pagina di esempio / template) */
.vetrina-hub-page .site-header--retail {
  border-bottom-color: var(--vx-border);
}

.retail-hub {
  background: var(--vx-canvas);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.hub-article {
  margin: 0;
}

.hub-hero {
  background: var(--vx-surface);
  border-bottom: 1px solid var(--vx-border);
  padding-block: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
}

.hub-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: center;
}

@media (max-width: 900px) {
  .hub-hero__grid {
    grid-template-columns: 1fr;
  }
}

.breadcrumb--hub {
  font-size: 0.8rem;
  margin-bottom: 0.85rem;
  color: var(--vx-muted);
}

.breadcrumb--hub a {
  color: var(--vx-link);
}

.hub-hero__title {
  margin: 0 0 0.65rem;
  font-family: var(--vx-font-retail);
  font-size: clamp(1.65rem, 1.1rem + 2vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--vx-text);
  line-height: 1.15;
}

.hub-hero__deck {
  margin: 0 0 1rem;
  color: var(--vx-muted);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 48ch;
}

.hub-hero__bullets {
  margin: 0 0 1.25rem;
  padding-left: 1.15rem;
  color: var(--vx-text);
  font-size: 0.9rem;
  line-height: 1.55;
}

.hub-hero__bullets li {
  margin-bottom: 0.35rem;
}

.hub-hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.btn-hub-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--vx-font-retail);
  color: var(--vx-text);
  background: var(--vx-buy);
  border: 1px solid var(--vx-buy-border);
  box-shadow: 0 2px 5px rgba(213, 217, 217, 0.65);
  text-decoration: none;
  transition: background 0.15s;
}

.btn-hub-primary:hover {
  background: var(--vx-buy-hover);
  color: var(--vx-text);
  text-decoration: none;
  transform: none;
  filter: none;
}

.hub-hero__stat {
  font-size: 0.86rem;
  color: var(--vx-muted);
  font-family: var(--vx-font-retail);
}

.hub-hero__media {
  border-radius: var(--vx-radius-card);
  overflow: hidden;
  border: 1px solid var(--vx-border);
  box-shadow: var(--vx-shadow-card);
}

.hub-hero__img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.hub-body {
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
}

.hub-panel {
  background: var(--vx-surface);
  border: 1px solid var(--vx-border);
  border-radius: var(--vx-radius-card);
  box-shadow: var(--vx-shadow-card);
  padding: clamp(1.1rem, 2.2vw, 1.45rem);
  font-family: var(--vx-font-retail);
}

.hub-panel__title {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--vx-text);
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--vx-accent-line);
  display: inline-block;
}

.hub-panel__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.hub-panel__head .hub-panel__title {
  margin-bottom: 0;
}

.hub-panel__link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--vx-link);
  text-decoration: none;
}

.hub-panel__link:hover {
  text-decoration: underline;
  color: var(--vx-accent-line);
}

.hub-search-form {
  display: block;
  position: relative;
  max-width: 36rem;
}

.hub-search-form .catalog-search__bar {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 17, 17, 0.08);
}

.hub-search-form .catalog-search__dept {
  max-width: 11.75rem;
  border-radius: 4px 0 0 4px;
}

.hub-search-form .catalog-search__input {
  border-left: 0;
  border-right: 0;
}

.hub-search-form .catalog-search__submit {
  border-radius: 0 4px 4px 0;
}

.hub-toc {
  background: var(--vx-surface);
  border: 1px solid var(--vx-border);
  border-radius: var(--vx-radius-card);
  padding: 0.85rem 1rem;
}

.hub-toc__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  font-size: 0.84rem;
  font-family: var(--vx-font-retail);
}

.hub-toc__list a {
  color: var(--vx-link);
  font-weight: 500;
  text-decoration: none;
  padding: 0.35rem 0.55rem;
  border-radius: 4px;
}

.hub-toc__list a:hover {
  background: rgba(0, 113, 133, 0.08);
  text-decoration: underline;
}

.hub-prose {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--vx-text);
}

.hub-prose > *:first-child {
  margin-top: 0;
}

.hub-prose a {
  color: var(--vx-link);
}

.hub-chip-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hub-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--vx-border);
  background: #f7fafa;
  text-decoration: none;
  color: var(--vx-text);
  font-size: 0.84rem;
  font-weight: 500;
  transition: border-color 0.15s, background 0.15s;
}

.hub-chip:hover {
  border-color: var(--vx-link);
  background: rgba(0, 113, 133, 0.06);
  color: var(--vx-link);
  text-decoration: none;
}

.hub-chip__count {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--vx-muted);
  font-variant-numeric: tabular-nums;
}

.hub-product-grid {
  margin-top: 0.25rem;
}

.hub-empty {
  margin: 0;
  color: var(--vx-muted);
  font-size: 0.92rem;
  padding: 1rem 0;
}

.hub-faq {
  margin: 0;
}

.hub-faq dt {
  margin: 0;
}

.hub-faq__q {
  width: 100%;
  text-align: left;
  padding: 0.75rem 0.85rem;
  margin-bottom: 0.35rem;
  border: 1px solid var(--vx-border);
  border-radius: 6px;
  background: #f7fafa;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--vx-text);
  cursor: pointer;
  position: relative;
  padding-right: 2rem;
}

.hub-faq__q::after {
  content: "+";
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 400;
  color: var(--vx-muted);
}

.hub-faq__q[aria-expanded="true"]::after {
  content: "−";
}

.hub-faq__q:hover {
  border-color: var(--vx-link);
}

.hub-faq__a {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.85rem 0.85rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--vx-muted);
  border-left: 3px solid var(--vx-accent-line);
  padding-left: 0.95rem;
}

.hub-disclaimer {
  background: #fff8e6;
  border: 1px solid #f0d78c;
  border-radius: var(--vx-radius-card);
  padding: 1rem 1.15rem;
  font-family: var(--vx-font-retail);
  font-size: 0.82rem;
  line-height: 1.55;
  color: #5c4d26;
}

.hub-disclaimer p {
  margin: 0;
}

/* Dark mode */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1220;
  --bg-subtle: #111827;
  --surface: #1e293b;
  --surface-2: #0f172a;
  --border: rgba(248, 250, 252, 0.1);
  --border-strong: rgba(248, 250, 252, 0.16);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --accent: #60a5fa;
  --accent-hover: #93c5fd;
  --accent-soft: rgba(96, 165, 250, 0.18);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.35), 0 10px 24px -6px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 50px -20px rgba(0, 0, 0, 0.55);
  --vx-canvas: #0f172a;
  --vx-surface: #1e293b;
  --vx-border: #334155;
  --vx-text: #f8fafc;
  --vx-muted: #94a3b8;
  --vx-link: #7dd3fc;
  --vx-accent-line: #fb923c;
  --vx-shadow-card: 0 2px 8px rgba(0, 0, 0, 0.35);
  --dg-surface: #1e293b;
  --dg-secondary-bg: #0f172a;
}

html[data-theme="dark"] body {
  background-image: none;
  background: var(--bg);
  color: var(--text);
}

html[data-theme="dark"] .site-header,
html[data-theme="dark"] .site-header.is-scrolled,
html[data-theme="dark"] .site-header--retail,
html[data-theme="dark"] .site-header--retail.is-scrolled {
  background: rgba(15, 23, 42, 0.94);
  border-bottom-color: var(--border);
}

html[data-theme="dark"] .brand,
html[data-theme="dark"] .nav-main__link,
html[data-theme="dark"] .site-header--retail .nav-main__link {
  color: var(--text);
}

html[data-theme="dark"] .nav-main__link:hover,
html[data-theme="dark"] .nav-main__link:focus-visible,
html[data-theme="dark"] .site-header--retail .nav-main__link:hover {
  background: var(--surface-2);
  color: var(--vx-link);
}

html[data-theme="dark"] .nav-main__link.is-active,
html[data-theme="dark"] .nav-main .current-menu-item > .nav-main__link,
html[data-theme="dark"] .nav-main .current-menu-ancestor > .nav-main__link,
html[data-theme="dark"] .site-header--retail .nav-main__link.is-active,
html[data-theme="dark"] .site-header--retail .current-menu-item > .nav-main__link,
html[data-theme="dark"] .site-header--retail .current-menu-ancestor > .nav-main__link {
  color: #fff7ed;
  background: rgba(251, 146, 60, 0.32);
  box-shadow: inset 0 0 0 1px rgba(251, 146, 60, 0.55);
}

html[data-theme="dark"] .nav-panel,
html[data-theme="dark"] .nav-toggle,
html[data-theme="dark"] .nav-panel__close {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

html[data-theme="dark"] .nav-backdrop {
  background: rgba(2, 6, 23, 0.62);
}

html[data-theme="dark"] .brand-text--dagiashi {
  color: var(--text);
}

html[data-theme="dark"] .brand-tagline {
  color: var(--muted);
}

html[data-theme="dark"] .brand-mark--dagiashi {
  box-shadow:
    0 2px 12px rgba(125, 211, 252, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

html[data-theme="dark"] .header-search input,
html[data-theme="dark"] .site-header--retail .header-search input,
html[data-theme="dark"] .catalog-search__input,
html[data-theme="dark"] .site-header--retail .catalog-search__input,
html[data-theme="dark"] .hub-search-form .catalog-search__input {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border-strong);
}

html[data-theme="dark"] .header-search input::placeholder,
html[data-theme="dark"] .catalog-search__input::placeholder {
  color: var(--muted);
}

html[data-theme="dark"] .catalog-search__dept,
html[data-theme="dark"] .hub-search-form .catalog-search__dept {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border-strong);
}

html[data-theme="dark"] .catalog-search__suggest-item.is-active a,
html[data-theme="dark"] .catalog-search__suggest-item.is-active .catalog-search__suggest-recent,
html[data-theme="dark"] .header-search-suggest .catalog-search__suggest-item.is-active a {
  background: rgba(0, 113, 133, 0.18);
}

html[data-theme="dark"] .catalog-search__suggest-title mark {
  background: rgba(255, 243, 191, 0.22);
  color: inherit;
}

html[data-theme="dark"] .header-search-suggest a {
  color: var(--text);
}

html[data-theme="dark"] .hero--fullscreen,
html[data-theme="dark"] .catalog-hero {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}

html[data-theme="dark"] .site-main--home .retail-hero {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-subtle) 55%, var(--vx-canvas) 100%);
}

html[data-theme="dark"] .site-main--home .retail-hero .hero-card,
html[data-theme="dark"] .product-card,
html[data-theme="dark"] .product-card--retail,
html[data-theme="dark"] .retail-blog__inner,
html[data-theme="dark"] .retail-catalog .facets,
html[data-theme="dark"] .retail-catalog .facets .btn-ghost:hover {
  background: var(--vx-surface);
  border-color: var(--vx-border);
  color: var(--vx-text);
}

html[data-theme="dark"] .product-card--retail .card-image,
html[data-theme="dark"] .card-image {
  background: linear-gradient(180deg, var(--surface-2), var(--bg-subtle));
}

html[data-theme="dark"] .product-card--retail .card-body,
html[data-theme="dark"] .product-card--retail .card-content {
  border-top-color: var(--vx-border);
}

html[data-theme="dark"] .card-body h3,
html[data-theme="dark"] .product-card--retail .card-body h3,
html[data-theme="dark"] .product-card--retail .card-title-link h3,
html[data-theme="dark"] .card-price,
html[data-theme="dark"] .product-card--retail .card-price {
  color: var(--vx-text);
}

html[data-theme="dark"] .card-price-badge--down {
  background: rgba(34, 197, 94, 0.14);
  color: #86efac;
}

html[data-theme="dark"] .card-price-badge--up {
  background: rgba(248, 113, 113, 0.14);
  color: #fca5a5;
}

html[data-theme="dark"] .product-card--retail .card-price__currency,
html[data-theme="dark"] .product-card--retail .card-brand {
  color: var(--muted);
}

html[data-theme="dark"] .product-card--retail .card-cta {
  border-top-color: var(--vx-border);
  color: var(--vx-link);
}

html[data-theme="dark"] .product-card--retail .card-cta:hover,
html[data-theme="dark"] .product-card--retail .card-cta:focus-visible {
  background: var(--surface-2);
}

html[data-theme="dark"] .card-merchant,
html[data-theme="dark"] .product-card--retail .card-merchant,
html[data-theme="dark"] .empty-hint,
html[data-theme="dark"] .retail-catalog .empty-hint {
  color: var(--muted);
  background: var(--surface-2);
  border-color: var(--border);
}

html[data-theme="dark"] .btn-ghost {
  background: var(--surface-2);
  border-color: var(--border-strong);
  color: var(--text);
}

html[data-theme="dark"] .btn-ghost:hover {
  background: var(--surface);
  color: var(--text);
}

html[data-theme="dark"] .product-sticky-cta {
  background: rgba(15, 23, 42, 0.96);
  border-top-color: var(--border);
}

html[data-theme="dark"] .product-sticky-cta__title {
  color: var(--text);
}

html[data-theme="dark"] .gallery-zoom-hint {
  background: rgba(30, 41, 59, 0.95);
  color: var(--muted);
  border-color: var(--border);
}

html[data-theme="dark"] .hub-disclaimer {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.35);
  color: #fde68a;
}

html[data-theme="dark"] .retail-catalog .facets {
  background: var(--surface);
}

html[data-theme="dark"] .facets--pro .facets-actions,
html[data-theme="dark"] .retail-catalog .facets--pro .facets-actions {
  background: var(--surface);
  box-shadow: 0 -8px 16px rgba(0, 0, 0, 0.25);
}

html[data-theme="dark"] .prose,
html[data-theme="dark"] .specs {
  color: var(--muted);
}

html[data-theme="dark"] .page-title,
html[data-theme="dark"] .affux-page h1,
html[data-theme="dark"] .hub-hero__title,
html[data-theme="dark"] .hub-panel__title,
html[data-theme="dark"] .retail-catalog .page-title {
  color: var(--text);
}

html[data-theme="dark"] .affux-page__lead,
html[data-theme="dark"] .page-lede {
  color: var(--muted);
}

html[data-theme="dark"] .site-main--home .retail-hero .mini-tag {
  background: #7c2d12;
  color: #ffedd5;
}

html[data-theme="dark"] .site-main--home .retail-featured .section-head a:hover {
  background: var(--surface-2);
  border-color: var(--vx-link);
  color: var(--vx-link);
}

html[data-theme="dark"] .retail-catalog .facet-list a {
  color: var(--text);
}

html[data-theme="dark"] .retail-catalog .facet-list a span {
  color: var(--muted);
}

html[data-theme="dark"] .retail-catalog .facet-list a:hover,
html[data-theme="dark"] .retail-catalog .facet-list a.is-active {
  background: var(--accent-soft);
  color: var(--accent);
}

html[data-theme="dark"] .retail-catalog .catalog-toolbar,
html[data-theme="dark"] .retail-catalog .catalog-main {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

html[data-theme="dark"] .retail-catalog .sort-form select {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border-strong);
}

html[data-theme="dark"] .retail-catalog .nav-links a,
html[data-theme="dark"] .retail-catalog .nav-links span {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text);
}

html[data-theme="dark"] .retail-catalog .nav-links span.current,
html[data-theme="dark"] .retail-catalog .nav-links a:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

html[data-theme="dark"] .product-page--dagiashi .product-info-section {
  background: var(--bg);
}

html[data-theme="dark"] .product-page--dagiashi .product-info-main,
html[data-theme="dark"] .product-page--dagiashi .product-facts-card {
  background: var(--dg-surface);
  border-color: var(--dg-border);
}

html[data-theme="dark"] .product-page--dagiashi .product-tabs--info {
  background: linear-gradient(180deg, var(--surface-2), var(--dg-surface));
  border-bottom-color: var(--dg-border);
}

html[data-theme="dark"] .product-page--dagiashi .product-desc-lead,
html[data-theme="dark"] .product-page--dagiashi .product-desc-subtitle,
html[data-theme="dark"] .product-page--dagiashi .product-detail-panel__title,
html[data-theme="dark"] .product-page--dagiashi .product-facts-card__title,
html[data-theme="dark"] .product-page--dagiashi .product-facts-list dd {
  color: var(--dg-text);
}

html[data-theme="dark"] .product-page--dagiashi .product-specs-table th {
  background: var(--surface-2);
  color: var(--dg-text);
}

html[data-theme="dark"] .product-page--dagiashi .affcat-disclosure {
  background: var(--surface-2);
  border-color: var(--dg-border);
  color: var(--dg-muted);
}

html[data-theme="dark"] .site-main--product-mix,
html[data-theme="dark"] .product-page--dagiashi .product-detail-below,
html[data-theme="dark"] .product-page--dagiashi .product-tabs-wrap--mix {
  background: var(--bg);
}

html[data-theme="dark"] .product-page--dagiashi .btn-dg-primary,
html[data-theme="dark"] .product-page--dagiashi .btn-dg-primary:hover,
html[data-theme="dark"] .product-sticky-cta .btn-dg-primary--compact,
html[data-theme="dark"] .product-sticky-cta .btn-dg-primary--compact:hover {
  color: #fff;
}

html[data-theme="dark"] .product-page--dagiashi .buybox-callout {
  background: linear-gradient(135deg, rgba(0, 113, 133, 0.14) 0%, rgba(199, 81, 31, 0.1) 100%);
  border-color: rgba(125, 211, 252, 0.18);
}

html[data-theme="dark"] .product-page--dagiashi .buybox-price-hero {
  background: var(--surface-2);
  border-color: var(--dg-border);
}

html[data-theme="dark"] .product-page--dagiashi .product-gallery-stack .affcat-price-history__inner {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 41, 59, 0.92) 100%);
  border-color: rgba(125, 211, 252, 0.18);
}

html[data-theme="dark"] .product-page--dagiashi .buybox-alert-link {
  color: var(--dg-link);
}

html[data-theme="dark"] .product-page--dagiashi .buybox-trust__icon {
  background: rgba(125, 211, 252, 0.12);
  color: var(--dg-link);
}

html[data-theme="dark"] .product-page--dagiashi .btn-dg-secondary:hover {
  background: var(--surface);
  color: var(--dg-text);
}

html[data-theme="dark"] .product-page--dagiashi .product-tabs-wrap--mix .product-tab.is-active {
  color: var(--dg-text);
}

html[data-theme="dark"] .btn-hub-primary,
html[data-theme="dark"] .btn-hub-primary:hover {
  color: #0f1111;
}

html[data-theme="dark"] .hub-chip,
html[data-theme="dark"] .hub-faq__q {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border);
}

html[data-theme="dark"] .hub-chip:hover {
  background: var(--accent-soft);
  color: var(--vx-link);
}

html[data-theme="dark"] .home-macro-card {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text);
}

html[data-theme="dark"] .home-macro-card__media {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border-bottom-color: var(--border);
}

html[data-theme="dark"] .home-macro-card:hover,
html[data-theme="dark"] .home-macro-card:focus-visible {
  background: var(--accent-soft);
  border-color: var(--vx-link);
}

html[data-theme="dark"] .home-dagiashi-pitch {
  background: var(--surface-2);
  border-color: var(--border);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

html[data-theme="dark"] .home-search-form:not(.catalog-search) input[type="search"] {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text);
}

html[data-theme="dark"] .hub-toc__list a:hover {
  background: var(--accent-soft);
}

html[data-theme="dark"] .card-image-ph {
  background: linear-gradient(135deg, #1e3a5f, #312e81);
}

html[data-theme="dark"] .product-page--dagiashi {
  --dg-text: #f8fafc;
  --dg-muted: #94a3b8;
  --dg-link: #7dd3fc;
  --dg-link-hover: #bae6fd;
  --dg-border: #334155;
  --dg-surface: #1e293b;
  --dg-canvas: #0f172a;
  --dg-tab-active: #7dd3fc;
}

html[data-theme="dark"] .site-main--product-mix {
  background: var(--bg);
}

html[data-theme="dark"] .product-page--dagiashi .product-buybox--mix,
html[data-theme="dark"] .product-page--dagiashi .product-tabs--mix,
html[data-theme="dark"] .product-page--dagiashi .product-detail-panel,
html[data-theme="dark"] .product-page--dagiashi .specs--amz {
  background: var(--dg-surface);
  border-color: var(--dg-border);
  color: var(--dg-text);
}

html[data-theme="dark"] .product-page--dagiashi .product-title--amz,
html[data-theme="dark"] .product-page--dagiashi .buybox-price,
html[data-theme="dark"] .product-page--dagiashi .specs--amz th,
html[data-theme="dark"] .product-page--dagiashi .specs--amz td {
  color: var(--dg-text);
}

html[data-theme="dark"] .product-page--dagiashi .product-tabs--mix button {
  color: var(--dg-muted);
  background: transparent;
}

html[data-theme="dark"] .product-page--dagiashi .product-tabs--mix button.is-active {
  color: var(--dg-tab-active);
  border-color: var(--dg-tab-active);
}

html[data-theme="dark"] .site-main--home .retail-hero .btn-primary {
  color: #0f1111;
  background: var(--vx-buy);
  border-color: var(--vx-buy-border);
}

html[data-theme="dark"] .site-main--home .retail-hero .hero-card p {
  color: #cbd5e1;
}

html[data-theme="dark"] .site-main--home .retail-featured .section-head h2 {
  color: var(--vx-text);
}

html[data-theme="dark"] .theme-toggle {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border-strong);
}

.site-main--legal {
  padding-block: clamp(1.75rem, 4vw, 2.75rem);
}

.legal-shell {
  background: var(--vx-surface);
  border: 1px solid var(--vx-border);
  border-radius: var(--vx-radius-card);
  box-shadow: var(--vx-shadow-card);
  padding: clamp(1.25rem, 3vw, 2rem);
  font-family: var(--vx-font-retail);
  color: var(--vx-text);
}

.legal-shell__head {
  margin-bottom: 1.25rem;
}

.legal-shell .page-title {
  font-family: var(--vx-font-retail);
  font-size: clamp(1.45rem, 1rem + 1.5vw, 1.85rem);
  font-weight: 700;
  color: var(--vx-text);
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.2;
}

/* Legacy markup: main.shell.legal-page */
.legal-page {
  padding-block: clamp(1.75rem, 4vw, 2.75rem);
}

.legal-prose {
  width: 100%;
  max-width: none;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--vx-text);
}

.legal-prose > *:first-child {
  margin-top: 0;
}

.legal-prose h2 {
  margin: 1.75rem 0 0.65rem;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--vx-text);
}

.legal-prose h3 {
  margin: 1.15rem 0 0.45rem;
  font-size: 0.98rem;
  font-weight: 650;
}

.legal-prose ul,
.legal-prose ol {
  margin: 0.5rem 0 1rem;
  padding-left: 1.35rem;
}

.legal-prose li {
  margin-bottom: 0.35rem;
}

.legal-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.25rem;
  font-size: 0.88rem;
}

.legal-prose th,
.legal-prose td {
  border: 1px solid var(--border);
  padding: 0.55rem 0.65rem;
  text-align: left;
  vertical-align: top;
}

.legal-prose th {
  background: var(--bg-subtle);
  font-weight: 650;
}

.legal-prose a {
  color: var(--vx-link);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: center;
  margin-top: 0.85rem;
}

.footer-legal a {
  color: #ccc;
  font-size: 0.8rem;
  text-decoration: none;
}

.footer-legal a:hover {
  color: #fff;
  text-decoration: underline;
}

.theme-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 8px;
  width: 2.25rem;
  height: 2.25rem;
  cursor: pointer;
  margin-left: 0.5rem;
}

.header-search-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.2rem);
  z-index: 120;
  list-style: none;
  margin: 0;
  padding: 0.35rem 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  width: 100%;
  max-height: min(50vh, 18rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: var(--shadow);
}

.header-search-suggest li {
  margin: 0;
  padding: 0;
}

.header-search-suggest a {
  display: block;
  padding: 0.45rem 0.75rem;
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.35;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 0.75rem;
  font-size: 0.85rem;
}

.footer-legal a {
  color: var(--muted);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.header-search {
  position: relative;
}

/* Barra ricerca tipo Amazon: reparto + query + Cerca */
.catalog-search {
  position: relative;
  width: 100%;
  max-width: none;
}

.catalog-search__bar {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-width: 0;
}

.catalog-search__dept {
  flex: 0 1 auto;
  width: auto;
  max-width: min(18rem, 32%);
  min-width: 8.5rem;
  padding: 0.55rem 1.85rem 0.55rem 0.7rem;
  border: 1px solid var(--border-strong, #949494);
  border-right: 0;
  background: #f3f3f3;
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  line-height: 1.25;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.55rem center;
  cursor: pointer;
  text-overflow: ellipsis;
}

.catalog-search__input {
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid var(--border-strong, #949494);
  border-radius: 0;
  background: var(--surface);
  color: var(--text);
  padding: 0.65rem 0.85rem;
  font: inherit;
  outline: none;
  box-shadow: none;
}

.catalog-search__input:focus {
  border-color: #007185;
  box-shadow: inset 0 0 0 1px #007185;
  z-index: 1;
}

.catalog-search__submit {
  flex: 0 0 auto;
  border: 0;
  border-radius: 0;
  padding: 0.65rem 1rem;
  min-width: 4.5rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  color: #fff;
  background: linear-gradient(180deg, #36a3b8 0%, #007185 55%, #005f6b 100%);
  border: 1px solid #005f6b;
  border-left: 0;
  transform: none;
}

.catalog-search__submit:hover {
  filter: brightness(1.04);
}

.catalog-search__suggest-item.is-active a,
.catalog-search__suggest-item.is-active .catalog-search__suggest-recent,
.header-search-suggest .catalog-search__suggest-item.is-active a {
  background: #eef8fa;
}

.catalog-search__suggest-item a,
.catalog-search__suggest-recent {
  display: block;
  width: 100%;
  padding: 0.55rem 0.85rem;
  border: 0;
  background: transparent;
  text-align: left;
  text-decoration: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.catalog-search__suggest-kicker {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.1rem;
}

.catalog-search__suggest-title {
  display: block;
  font-size: 0.92rem;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.catalog-search__suggest-title mark {
  background: #fff3bf;
  color: inherit;
  padding: 0 0.05em;
}

.catalog-search__suggest-meta {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.catalog-search--home {
  margin-top: 1.25rem;
  max-width: 36rem;
}

.catalog-search--home .catalog-search__bar {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 17, 17, 0.08);
}

.catalog-search--home .catalog-search__dept {
  max-width: 11.75rem;
}

.catalog-search--home .catalog-search__input {
  border-left: 0;
  border-right: 0;
}

.catalog-search--home .catalog-search__submit {
  border-radius: 0;
}

.catalog-search--hub {
  max-width: 36rem;
}
