/* =====================================================================
   MIKASA — Catalog stylesheet (rewrite 2026-05-16)
   Basato sul design Claude Design (handoff) + tradotto da inline-style
   dei JSX hub.jsx / list.jsx / product.jsx + components-shared.jsx.

   Convenzioni:
   - Tokens in :root
   - Tutto scoped al body (nessun .page wrapper come nel design canvas)
   - Navbar position:fixed (come sito attuale), compensato da padding-top
     sulla prima sezione
   - Reveal animation .reveal/.visible per IntersectionObserver
   ===================================================================== */

/* ── TOKENS ──────────────────────────────────────────────────────── */
:root {
  --ink: #1a1715;
  --paper: #faf7f2;
  --cream: #f0e8dc;
  --cream-2: #e8dfd0;
  --brass: #b8956a;
  --brass-dim: #c9b08c;
  --terracotta: #c47650;
  --sage: #9aa898;
  --mute: #6b645d;
  --mute-2: #8a847d;
  --line: rgba(26,23,21,0.12);
  --line-strong: rgba(26,23,21,0.22);
  --shadow-sm: 0 1px 3px rgba(26,23,21,0.06);
  --shadow-md: 0 8px 30px rgba(26,23,21,0.08);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── RESET / BASE ────────────────────────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: inherit; }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }

.serif { font-family: 'Fraunces', serif; }
.italic-brass { font-family: 'Fraunces', serif; font-style: italic; color: var(--brass); font-weight: 400; }
em { font-style: italic; }

/* ── SKIP LINK ────────────────────────────────────────────────── */
.skip-link {
  position: absolute; top: -100px; left: 0;
  background: var(--ink); color: var(--paper);
  padding: 12px 20px; text-decoration: none;
  z-index: 1000; font-size: 14px;
}
.skip-link:focus { top: 0; }

/* ── EYEBROW (small uppercase label) ─────────────────────────────── */
.eyebrow {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--mute);
}

/* ── EDITION STAMP (con linea brass davanti) ────────────────────── */
.edition-stamp {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--mute);
  margin-bottom: 24px;
}
.edition-stamp::before {
  content: ''; width: 28px; height: 1px; background: var(--brass);
}

/* ── NAVBAR (fixed, blur) ───────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250,247,242,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 0 32px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background .25s var(--ease);
}
.navbar-brand {
  font-family: 'Fraunces', serif;
  font-size: 22px; font-weight: 600;
  color: var(--ink); text-decoration: none;
  letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 10px;
}
.navbar-brand::before {
  content: ''; width: 8px; height: 8px;
  background: var(--brass); border-radius: 50%;
}
.navbar-nav { display: flex; gap: 6px; list-style: none; align-items: center; }
.navbar-nav a {
  color: var(--ink); text-decoration: none;
  font-size: 13px; font-weight: 500;
  padding: 8px 14px; border-radius: 24px;
  transition: all .2s var(--ease);
  text-transform: uppercase; letter-spacing: 0.05em;
  position: relative;
}
.navbar-nav a:hover { background: var(--ink); color: var(--paper); }
/* Active: NON pillola nera (sovrasta troppo, "copre" le voci adiacenti
   visivamente quando affiancata alla CTA scura). Solo testo bold +
   underline brass sotto: sobrio, leggibile, in tono col resto. */
.navbar-nav a.active {
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  box-shadow: inset 0 -2px 0 var(--brass);
  border-radius: 0;
}
.navbar-nav a.active:hover {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--brass);
}
.navbar-cta {
  background: var(--ink) !important; color: var(--paper) !important;
  padding: 9px 18px !important;
}
.navbar-cta:hover { background: var(--brass) !important; }
.navbar-toggle {
  display: none; background: none; border: none;
  color: var(--ink); font-size: 22px; cursor: pointer; padding: 6px;
}
@media (max-width: 900px) {
  .navbar { padding: 0 20px; }
  .navbar-toggle { display: block; }
  .navbar-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 16px 24px 24px; gap: 2px;
    align-items: stretch;
  }
  .navbar-nav.open { display: flex; }
  .navbar-nav li { list-style: none; margin: 0; padding: 0; width: 100%; }
  .navbar-nav a { padding: 12px 16px; font-size: 14px; }
}

/* ── BREADCRUMB ─────────────────────────────────────────────────── */
.breadcrumb {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--mute); font-weight: 500;
}
.breadcrumb a { color: var(--mute); transition: color .15s var(--ease); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .sep { color: var(--line); padding: 0 2px; }
.breadcrumb-current { color: var(--ink); font-weight: 600; }

/* ── BUTTONS ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
  border-radius: 999px; border: 1px solid transparent;
  background: var(--ink); color: var(--paper);
  text-decoration: none; cursor: pointer;
  transition: all .25s var(--ease);
  font-family: inherit;
}
.btn:hover { background: var(--brass); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-arrow::after { content: '→'; transition: transform .2s var(--ease); }
.btn-arrow:hover::after { transform: translateX(3px); }
.btn-sm { padding: 9px 16px; font-size: 11px; }
.btn-lg { padding: 16px 28px; font-size: 13px; }

/* ── HUB HERO (2 colonne con foto atmosfera) ─────────────────────── */
.catalog-view { padding: 0; min-height: 100vh; }
.catalog-header {
  padding: 144px 80px 56px;
  background: var(--paper);
  position: relative;
}
.catalog-header-inner {
  max-width: 1280px; margin: 0 auto;
}
.catalog-header.is-hero-split .catalog-header-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: end;
}
.catalog-header h1 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(48px, 6.5vw, 84px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
  color: var(--ink);
}
.catalog-header h1 em { font-family: 'Fraunces', serif; font-style: italic; color: var(--brass); font-weight: 400; }
.catalog-lead {
  font-size: 17px; color: var(--mute);
  line-height: 1.55; max-width: 460px;
  margin: 0 0 36px;
}

.hero-atmosphere {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 4px;
  background: var(--cream);
}
.hero-atmosphere img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-atmosphere-badge {
  position: absolute; bottom: 20px; left: 20px;
  background: var(--paper); padding: 10px 16px;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink);
}

/* ── HUB SEARCH BAR ─────────────────────────────────────────────── */
.catalog-search {
  margin: 0 0 18px;
  max-width: 480px;
  position: relative;
  z-index: 60;
}
.catalog-search-shell { position: relative; }
.catalog-search-box {
  display: flex; align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 6px 4px 22px;
  box-shadow: 0 8px 24px rgba(26,23,21,0.06);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.catalog-search-box:focus-within {
  border-color: var(--ink);
  box-shadow: 0 8px 28px rgba(26,23,21,0.10);
}
.catalog-search-icon {
  font-size: 18px; color: var(--mute); pointer-events: none;
  margin-right: 12px; line-height: 1;
}
.catalog-search-input {
  flex: 1; min-width: 0;
  font-family: inherit; font-size: 15px;
  color: var(--ink); background: transparent;
  border: none; outline: none;
  padding: 14px 0;
}
.catalog-search-input::placeholder { color: var(--mute); }
.catalog-search-input::-webkit-search-cancel-button { display: none; }
.catalog-search-clear {
  background: transparent; border: none; cursor: pointer;
  width: 30px; height: 30px; border-radius: 50%;
  color: var(--mute); font-size: 18px; line-height: 1;
  display: none; align-items: center; justify-content: center;
  transition: color .2s var(--ease), background .2s var(--ease);
  margin-right: 4px;
}
.catalog-search-clear:hover { color: var(--ink); background: var(--cream); }
.catalog-search.has-value .catalog-search-clear { display: inline-flex; }
.catalog-search-hint {
  font-size: 12px; color: var(--mute);
  margin: 14px 0 0; padding-left: 22px;
  line-height: 1.5;
}
.catalog-search-hint em { font-family: 'Fraunces', serif; font-style: italic; color: var(--brass); }

/* ── SEARCH RESULTS DROPDOWN — estetica editoriale ──────────────── */
.catalog-search-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(26,23,21,0.10);
  max-height: 60vh; overflow-y: auto;
  z-index: 70;
  padding: 6px;
}
.search-result {
  display: flex; align-items: flex-start;
  gap: 14px;
  padding: 12px 14px;
  text-decoration: none;
  border-radius: 8px;
  transition: background .15s var(--ease);
}
.search-result:hover,
.search-result.is-active { background: var(--cream); }
.search-result + .search-result {
  margin-top: 2px;
}
.search-result-name {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
  gap: 3px;
}
.search-result-name > span:first-child {
  font-family: 'Fraunces', serif;
  font-size: 16px; font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-overflow: ellipsis; overflow: hidden; white-space: nowrap;
}
.search-result-name mark {
  background: rgba(184,149,106,0.18);
  color: var(--ink);
  padding: 0; border-radius: 2px;
}
.search-result-path {
  font-size: 11px; color: var(--mute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  text-overflow: ellipsis; overflow: hidden; white-space: nowrap;
}
.search-result-path-sep {
  margin: 0 6px;
  color: var(--line-strong);
}
.search-result-type {
  flex-shrink: 0;
  align-self: center;
  font-size: 9px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brass);
  padding: 4px 8px;
  background: var(--cream);
  border-radius: 999px;
  margin-left: 8px;
}
/* Tipo Prodotto: badge sage discreto */
.search-result[data-level="5"] .search-result-type {
  background: transparent;
  color: var(--mute);
  border: 1px solid var(--line);
}
.search-result-empty {
  padding: 32px 18px;
  text-align: center;
  font-size: 13px; color: var(--mute);
}
.search-result-empty strong { color: var(--ink); }

/* ── CATALOG META COUNTERS ───────────────────────────────────────── */
.catalog-meta {
  grid-column: 1 / -1;
  margin-top: 56px; padding-top: 32px;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.catalog-meta-item {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--mute);
}
.catalog-meta-item strong {
  font-family: 'Fraunces', serif;
  font-size: 32px; font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: block; margin-bottom: 6px;
}

/* ── ROOT CLUSTERS ──────────────────────────────────────────────── */
.catalog-view-inner { max-width: 1280px; margin: 0 auto; padding: 32px 80px 64px; }
.catalog-view-inner--tree { padding: 60px 80px 120px; }
.root-clusters {
  display: flex; flex-direction: column;
  gap: 96px;
}
.root-cluster {
  scroll-margin-top: 88px;
}
/* Cluster ora è <details>: rimuovo lo styling default del summary */
details.root-cluster { list-style: none; }
details.root-cluster > summary { list-style: none; cursor: pointer; }
details.root-cluster > summary::-webkit-details-marker { display: none; }
details.root-cluster > summary::marker { display: none; }
/* Cluster head: 3 colonne — cover a sinistra | headline 1fr | meta destra */
.root-cluster-head {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  padding-bottom: 20px; margin-bottom: 32px;
  border-bottom: 1px solid var(--ink);
}
.root-cluster-cover {
  display: block;
  flex: 0 0 auto;
  width: 120px; height: 120px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 4px;
  background: var(--cream);
}
.root-cluster-cover img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease);
}
.root-cluster-cover:hover img { transform: scale(1.04); }

.root-cluster-headline {
  flex: 1 1 auto;
  min-width: 0;
}
.root-cluster-headline-link {
  color: inherit;
  text-decoration: none;
  display: block;
}
.root-cluster-headline-link:hover h3 { color: var(--brass); }
.root-cluster-num {
  font-family: 'Fraunces', serif; font-style: italic;
  color: var(--brass); font-size: 14px; font-weight: 400;
  margin-right: 14px;
}
.root-cluster-head h3 {
  display: inline;
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 3.5vw, 36px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.root-cluster-lead {
  margin-top: 10px;
  font-size: 14px;
  color: var(--mute);
  font-style: italic;
  max-width: 480px;
  font-family: 'Fraunces', serif; font-weight: 300;
}
.root-cluster-meta-wrap {
  flex: 0 0 auto;
  text-align: right;
}
.root-cluster-meta {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 4px;
}
.root-cluster-browse-all {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.04em; color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}

/* TREE — colonne con sub L2 e leaves L3. Width: 100% per matchare
   esattamente la larghezza del root-cluster-head sopra (header e tree
   sono entrambi figli di <article class="root-cluster">). */
.root-cluster-tree {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
  width: 100%;
}
.tree-col {
  display: flex; flex-direction: column;
  gap: 32px;
  min-width: 0;
}
.tree-container { display: flex; flex-direction: column; min-width: 0; }
.tree-l2-title {
  font-family: 'Inter', sans-serif;
  font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 16px;
  display: inline-flex; align-items: baseline; gap: 8px;
  transition: color .2s var(--ease);
}
.tree-l2-title:hover { color: var(--brass); }
.tree-l2-title em {
  font-family: 'Fraunces', serif; font-style: italic;
  font-weight: 400; font-size: 11px;
  text-transform: none; letter-spacing: 0;
  color: var(--brass);
}
.tree-l2-list {
  display: flex; flex-direction: column;
  gap: 6px;
}
/* Versione inline mobile-only (stringa joined " · "). Nascosta su desktop
   con !important per evitare conflitti, mostrata SOLO sotto i 700px. */
.tree-l2-list-mobile { display: none !important; }
.tree-l2-list a {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 13.5px; font-weight: 400;
  color: var(--mute);
  padding: 2px 0; gap: 8px;
  transition: color .15s var(--ease);
}
.tree-l2-list a:hover { color: var(--ink); }
.tree-l3-count {
  font-size: 11px;
  color: var(--mute-2);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

/* ── HUB CTA STORES (ink section) ────────────────────────────────── */
.hub-cta-stores {
  background: var(--ink); color: var(--paper);
  padding: 80px;
}
.hub-cta-stores-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.hub-cta-stores-left .edition-stamp { color: rgba(250,247,242,0.6); }
.hub-cta-stores-left h2 {
  font-family: 'Fraunces', serif; font-weight: 300;
  font-size: clamp(28px, 3.5vw, 44px);
  letter-spacing: -0.02em; line-height: 1.05;
  color: var(--paper);
  margin-bottom: 18px;
}
.hub-cta-stores-left h2 em { font-style: italic; color: var(--brass); font-weight: 400; }
.hub-cta-stores-left p {
  font-size: 15px; color: rgba(250,247,242,0.7);
  max-width: 460px; line-height: 1.6;
}
.hub-cta-stores-right {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.hub-store-card {
  background: rgba(250,247,242,0.06);
  padding: 22px;
  border-radius: 4px;
  border: 1px solid rgba(250,247,242,0.12);
  color: inherit;
  transition: background .15s var(--ease);
}
.hub-store-card:hover { background: rgba(250,247,242,0.10); }
.hub-store-card .city {
  display: flex; align-items: center; gap: 8px;
  color: var(--brass);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 12px;
}
.hub-store-card .addr {
  font-family: 'Fraunces', serif;
  font-size: 18px; color: var(--paper);
  margin-bottom: 6px;
}
.hub-store-card .hours {
  font-size: 11px; color: rgba(250,247,242,0.6);
  letter-spacing: 0.04em;
}

/* ── LIST VIEW HEADER ───────────────────────────────────────────── */
.cat-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; color: var(--mute);
  text-decoration: none; letter-spacing: 0.1em;
  text-transform: uppercase; font-weight: 500;
  margin-bottom: 20px;
  transition: color .2s var(--ease);
}
.cat-back::before { content: '←'; font-size: 12px; }
.cat-back:hover { color: var(--ink); }

.view-header {
  margin-top: 18px; margin-bottom: 28px;
}
.view-header.is-editorial {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
}
.view-header.is-editorial .cat-num {
  font-family: 'Fraunces', serif; font-style: italic;
  color: var(--brass); font-size: 14px;
  margin-right: 12px;
}
.view-header.is-editorial h2 {
  display: inline;
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1; letter-spacing: -0.03em;
}
.view-header.is-editorial h2 em { font-style: italic; color: var(--brass); font-weight: 400; }
.view-header.is-editorial .view-tagline {
  margin-top: 12px;
  font-size: 15px; color: var(--mute);
  font-style: italic; max-width: 540px;
  font-family: 'Fraunces', serif; font-weight: 300;
}
.view-header-counter { text-align: right; }
.view-header-counter strong {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 36px; font-weight: 400;
  letter-spacing: -0.02em;
}
.view-header-counter span {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--mute);
}

/* ── SUB-HEADER STICKY: chip filtri + sort + density ────────────── */
.catalog-subbar {
  position: sticky; top: 64px;
  background: var(--paper); z-index: 4;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.catalog-subbar-active {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.catalog-subbar-label {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--mute); margin-right: 4px;
}
.chip-active {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  font-size: 11px; font-weight: 500;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: opacity .15s var(--ease);
}
.chip-active:hover { opacity: 0.85; }
.chip-active .x { font-size: 13px; line-height: 1; opacity: 0.7; }
.catalog-subbar-clear {
  font-size: 11px; color: var(--terracotta);
  letter-spacing: 0.05em; text-transform: uppercase;
  font-weight: 600;
}
.catalog-subbar-clear:hover { text-decoration: underline; }
.catalog-subbar-spacer { flex: 1; }
.catalog-sort {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; color: var(--mute);
}
.catalog-sort-select {
  padding: 7px 32px 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--paper) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='m3 4.5 3 3 3-3' fill='none' stroke='%231a1715' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat right 10px center;
  font-size: 12px; font-weight: 500; color: var(--ink);
  appearance: none; -webkit-appearance: none; cursor: pointer;
  font-family: inherit;
}
.catalog-density {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  overflow: hidden;
}
.catalog-density button {
  padding: 7px 12px;
  background: transparent;
  color: var(--ink);
  border: none;
  display: flex; align-items: center;
  transition: background .15s var(--ease);
}
.catalog-density button.is-active { background: var(--ink); color: var(--paper); }
.catalog-density button:not(.is-active):hover { background: rgba(26,23,21,0.05); }
.catalog-density svg { width: 14px; height: 14px; }

/* ── PRODUCTS LAYOUT (sidebar + grid) ────────────────────────────── */
.catalog-products-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
}

/* ── SIDEBAR FILTRI ─────────────────────────────────────────────── */
.catalog-filters {
  position: sticky; top: 88px;
  max-height: calc(100vh - 88px - 24px);
  overflow-y: auto;
  padding-right: 8px;
  font-size: 13px;
  /* Scroll bar discreta */
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.catalog-filters::-webkit-scrollbar { width: 6px; }
.catalog-filters::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }
.catalog-filters::-webkit-scrollbar-track { background: transparent; }
.catalog-filters-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 18px; padding-bottom: 14px;
  border-bottom: 1px solid var(--ink);
}
.catalog-filters-title {
  font-family: 'Fraunces', serif;
  font-size: 18px; font-weight: 400;
}
.catalog-filters-clear {
  font-size: 11px; color: var(--terracotta);
  letter-spacing: 0.05em; text-transform: uppercase;
  font-weight: 600;
}
.catalog-filter-group {
  border: none; padding: 0 0 18px;
  margin: 0 0 18px;
  border-bottom: 1px solid var(--line);
}
/* Summary (titolo collassabile) — riusa lo stile di legend */
.catalog-filter-group > summary {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 12px;
  list-style: none;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  padding: 2px 0;
  user-select: none;
}
.catalog-filter-group > summary::-webkit-details-marker { display: none; }
.catalog-filter-group > summary::after {
  content: '+';
  font-family: 'Inter', sans-serif;
  font-size: 16px; line-height: 1; font-weight: 400;
  color: var(--mute);
  transition: transform .2s var(--ease), color .15s var(--ease);
}
.catalog-filter-group[open] > summary::after {
  content: '−';
  color: var(--ink);
}
.catalog-filter-group--special > summary,
.catalog-filter-group--dims > summary { color: var(--ink); }
/* Body del filtro collassabile */
.catalog-filter-body {
  padding-top: 4px;
}
.catalog-filter-opt {
  display: flex; align-items: center; gap: 9px;
  padding: 5px 0;
  font-size: 13px; cursor: pointer;
}
.catalog-filter-opt input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 14px; height: 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 2px;
  background: transparent;
  flex-shrink: 0;
  cursor: pointer;
  display: grid; place-items: center;
  position: relative;
}
.catalog-filter-opt input[type="checkbox"]:checked {
  background: var(--ink); border-color: var(--ink);
}
.catalog-filter-opt input[type="checkbox"]:checked::after {
  content: '';
  width: 8px; height: 6px;
  border-left: 2px solid var(--paper);
  border-bottom: 2px solid var(--paper);
  transform: rotate(-45deg) translate(0, -1px);
}
.catalog-filter-opt span { flex: 1; }
.catalog-filter-opt small {
  font-size: 11px; color: var(--mute);
}
.catalog-filter-opt.is-empty { opacity: 0.4; cursor: not-allowed; }
.catalog-filter-opt--special span { display: flex; align-items: center; gap: 6px; }

/* Swatch colore */
.catalog-filter-opt--color { padding: 5px 0; }
.catalog-filter-opt--color .color-swatch {
  width: 18px; height: 18px;
  border-radius: 3px;
  border: 1px solid rgba(0,0,0,0.18);
  flex-shrink: 0;
}
.catalog-filter-opt--color[data-color="bianco"] .color-swatch { background: #ffffff; }
.catalog-filter-opt--color[data-color="nero"] .color-swatch { background: #1a1715; }
.catalog-filter-opt--color[data-color="grigio"] .color-swatch { background: #9a9a9a; }
.catalog-filter-opt--color[data-color="argento"] .color-swatch { background: #c0c0c0; }
.catalog-filter-opt--color[data-color="oro"] .color-swatch { background: linear-gradient(135deg, #d4af37, #b8956a); }
.catalog-filter-opt--color[data-color="rame"] .color-swatch { background: linear-gradient(135deg, #ce8159, #9c5a2d); }
.catalog-filter-opt--color[data-color="rosso"] .color-swatch { background: #c0392b; }
.catalog-filter-opt--color[data-color="verde"] .color-swatch { background: #4f8e3f; }
.catalog-filter-opt--color[data-color="blu"] .color-swatch { background: #2c4f7a; }
.catalog-filter-opt--color[data-color="azzurro"] .color-swatch { background: #87ceeb; }
.catalog-filter-opt--color[data-color="giallo"] .color-swatch { background: #f4d03f; }
.catalog-filter-opt--color[data-color="arancione"] .color-swatch { background: #e67e22; }
.catalog-filter-opt--color[data-color="rosa"] .color-swatch { background: #f5c6cb; }
.catalog-filter-opt--color[data-color="viola"] .color-swatch { background: #8e44ad; }
.catalog-filter-opt--color[data-color="marrone"] .color-swatch { background: #8B5A3C; }
.catalog-filter-opt--color[data-color="beige"] .color-swatch { background: #e3d3b3; }
.catalog-filter-opt--color[data-color="crema"] .color-swatch { background: #f5e6d3; }
.catalog-filter-opt--color[data-color="trasparente"] .color-swatch { background: linear-gradient(135deg,#fff,#e3e3e3); }
.catalog-filter-opt--color[data-color="naturale"] .color-swatch { background: #d4b896; }
.catalog-filter-opt--color[data-color="tortora"] .color-swatch { background: #a39383; }
.catalog-filter-opt--color[data-color="avorio"] .color-swatch { background: #f5efde; }
.catalog-filter-opt--color[data-color="antracite"] .color-swatch { background: #2f2f2f; }
.catalog-filter-opt--color[data-color="bordeaux"] .color-swatch { background: #6c2c2c; }

/* Range slider */
.catalog-range { margin-bottom: 14px; }
.catalog-range-label {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 6px; font-size: 12px;
}
.catalog-range-name { font-weight: 500; }
.catalog-range-vals {
  font-size: 11px; color: var(--mute);
  font-variant-numeric: tabular-nums;
}
.catalog-range-vmin, .catalog-range-vmax { color: var(--ink); font-weight: 600; }
.catalog-range-track {
  position: relative; height: 4px;
  background: var(--line); border-radius: 2px;
  margin: 14px 9px;
}
.catalog-range-fill {
  position: absolute; top: 0; bottom: 0;
  background: var(--brass); border-radius: 2px;
}
.catalog-range-thumb {
  position: absolute; top: 50%;
  width: 16px; height: 16px;
  background: var(--paper);
  border: 2px solid var(--brass);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  pointer-events: none;
  z-index: 2;
}
.catalog-range-input {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  background: transparent;
  pointer-events: none;
  -webkit-appearance: none; appearance: none;
  margin: 0;
}
.catalog-range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: transparent;
  pointer-events: all;
  cursor: pointer;
}
.catalog-range-input::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: transparent;
  pointer-events: all;
  cursor: pointer;
  border: none;
}
.catalog-range-input::-webkit-slider-runnable-track { background: transparent; }
.catalog-range-input::-moz-range-track { background: transparent; }

.catalog-filters-apply {
  width: 100%; justify-content: center;
  margin-top: 8px;
}

/* ── PRODUCT GRID + CARD ─────────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 24px;
  margin-bottom: 40px;
}
.product-grid[data-density="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.product-grid[data-density="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.product-card-link {
  display: block;
  position: relative;
  color: inherit;
}
.product-card {
  background: transparent;
  display: flex; flex-direction: column;
}
.product-card-cover {
  aspect-ratio: 1 / 1;
  background: var(--cream);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.product-card-cover img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease);
}
.product-card-cover.is-contain img { object-fit: contain; padding: 12%; }
.product-card-link:hover .product-card-cover img { transform: scale(1.04); }

.product-badge {
  position: absolute; top: 10px; left: 10px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 9px;
  background: var(--ink); color: var(--paper);
  border-radius: 2px;
  z-index: 2;
}
.product-badge--discount { background: var(--terracotta); font-size: 12px; font-weight: 800; }
.product-badge--new { background: var(--brass); }
.product-badge--set {
  position: absolute; top: 10px; right: 10px; left: auto;
  background: rgba(26,23,21,0.85); color: var(--paper);
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.04em;
  backdrop-filter: blur(4px);
}

.pcard-peek {
  position: absolute; left: 10px; right: 10px; bottom: 10px;
  padding: 8px 12px;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  background: rgba(250,247,242,0.95);
  color: var(--ink);
  border-radius: 2px;
  display: flex; justify-content: space-between; align-items: center;
  opacity: 0; transform: translateY(6px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  z-index: 2;
  pointer-events: none;
}
.product-card-link:hover .pcard-peek { opacity: 1; transform: translateY(0); }

.product-card { display: flex; flex-direction: column; height: 100%; }
.product-info {
  padding: 14px 0 0;       /* Allineato a 0: testo larga come cover sopra */
  display: flex; flex-direction: column;
  flex: 1 1 auto;
}
.pcard-brand {
  font-size: 9.5px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--brass); font-weight: 600;
  margin-bottom: 4px; line-height: 1;
}
.product-name {
  font-family: 'Fraunces', serif;
  font-size: 16px; font-weight: 400;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1.25; letter-spacing: -0.01em;
  /* Force max 2 righe sul nome per allineare le card */
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  min-height: calc(1.25em * 2);
}
.product-desc {
  font-size: 12px; color: var(--mute);
  line-height: 1.45;
  margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  /* Altezza fissa per allineare la riga prezzo sotto */
  min-height: calc(1.45em * 2);
}
.product-card-pricing {
  display: flex; align-items: baseline; gap: 8px;
  flex-wrap: nowrap;       /* prezzo sempre 1 riga */
  margin-top: auto;        /* spinge il prezzo in basso */
  min-width: 0;
}
.product-card-pricing .product-price {
  white-space: nowrap;
  flex-shrink: 0;
}
.product-card-pricing .product-card-price-old {
  white-space: nowrap;
}
.product-price {
  font-family: 'Fraunces', serif;
  font-size: 19px; font-weight: 600;
  color: var(--ink); letter-spacing: -0.02em;
}
.product-card-price-old {
  font-size: 12px; color: var(--mute);
  text-decoration: line-through;
  text-decoration-color: rgba(196,118,80,0.7);
}
.price-from {
  font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--mute); font-weight: 500;
}
.product-card-instore {
  font-family: 'Fraunces', serif; font-style: italic;
  color: var(--brass); font-size: 14px;
}

/* ── PAGINATION ──────────────────────────────────────────────────── */
.pagination {
  margin-top: 48px;
  display: flex; justify-content: center; align-items: center;
  gap: 6px; flex-wrap: wrap;
}
.pagination a,
.pagination span {
  display: inline-flex; min-width: 40px; height: 40px;
  align-items: center; justify-content: center;
  font-size: 13px; font-weight: 500;
  border: 1px solid var(--line);
  border-radius: 4px;
  text-decoration: none; color: var(--ink);
  padding: 0 12px;
  transition: all .15s var(--ease);
}
.pagination a:hover { border-color: var(--ink); background: var(--cream); }
.pagination .is-current {
  background: var(--ink); color: var(--paper);
  border-color: var(--ink); font-weight: 600;
}
.pagination .is-disabled { color: var(--line); border-color: transparent; padding: 0 8px; }
.pagination-summary {
  text-align: center;
  font-size: 11px; color: var(--mute);
  margin-top: 14px; letter-spacing: 0.05em;
}

/* ── EMPTY STATES ────────────────────────────────────────────────── */
.catalog-empty-list {
  text-align: center;
  padding: 72px 32px;
  background: var(--cream);
  border-radius: 4px;
  max-width: 720px; margin: 0 auto;
}
.catalog-empty-list h3 {
  font-family: 'Fraunces', serif; font-weight: 300;
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 12px;
}
.catalog-empty-list p {
  color: var(--mute); font-size: 15px;
  max-width: 480px; margin: 0 auto 24px;
}

/* ── PRODUCT PAGE ────────────────────────────────────────────────── */
.product-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 96px 80px 32px;
}
.product-page-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: start;
}
.product-page .breadcrumb { margin-bottom: 24px; }

/* Galleria thumbs verticali */
.product-gallery {
  position: sticky; top: 88px;
  display: flex; gap: 14px;
}
.product-gallery-thumbs {
  display: flex; flex-direction: column;
  gap: 10px; flex: 0 0 76px;
}
.product-gallery-thumb {
  width: 76px; height: 76px;
  padding: 0; border-radius: 4px; overflow: hidden;
  background: var(--cream);
  border: 1px solid transparent;
  cursor: pointer;
  transition: border-color .15s var(--ease);
}
.product-gallery-thumb.is-active { border-color: var(--ink); }
.product-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-gallery-main {
  flex: 1;
  aspect-ratio: 1 / 1;
  background: var(--cream);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.product-gallery-main img {
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity .25s var(--ease);
}
.gallery-promo-badge {
  position: absolute; top: 16px; left: 16px;
  background: var(--terracotta); color: var(--paper);
  padding: 6px 11px;
  font-size: 12px; font-weight: 800;
  letter-spacing: 0.04em;
}

/* Info column */
.product-info-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--brass);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 14px;
}
.product-info-eyebrow::after,
.product-info-eyebrow.is-with-rule::after {
  content: ''; width: 28px; height: 1px; background: var(--brass);
}
.product-info h1 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
}
.product-info h1 em { font-style: italic; color: var(--brass); font-weight: 400; }
.product-info-short {
  font-size: 15px; color: var(--mute);
  line-height: 1.6;
  margin-bottom: 22px;
  max-width: 520px;
}

/* Promo banner pill */
.product-promo-banner {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--paper);
  padding: 9px 14px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 22px;
}
.product-promo-banner small {
  font-weight: 500; opacity: 0.7;
  letter-spacing: 0.05em; text-transform: none;
}

/* Price block teatrale */
.product-price-block {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.product-price-current {
  font-family: 'Fraunces', serif;
  font-size: clamp(36px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
  margin-right: 14px;
}
.product-price-old {
  font-size: 18px; color: var(--mute);
  text-decoration: line-through;
  text-decoration-color: rgba(196,118,80,0.7);
  margin-right: 14px;
}
.product-price-discount {
  background: var(--terracotta); color: var(--paper);
  padding: 4px 10px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em;
  display: inline-block;
}
.product-price-from {
  font-size: 11px; color: var(--mute);
  letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 600;
  margin-right: 8px;
}
.product-price-instore {
  font-family: 'Fraunces', serif; font-style: italic;
  color: var(--brass); font-size: 20px;
}
.product-price-unit {
  font-size: 12px; color: var(--mute);
  margin-left: 8px;
}
.product-price-saved {
  margin-top: 8px; font-size: 12px; color: var(--mute);
}
.product-price-saved strong { color: var(--terracotta); font-weight: 700; }

/* Features grid: auto-fill responsive (2 cols desktop, 1 col mobile).
   Adattata per ospitare N attributi (tutti tranne Misure/EAN). */
.product-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  margin-bottom: 28px;
}
.product-feature {
  display: flex; gap: 12px;
  align-items: flex-start;
}
.product-feature-ico {
  width: 36px; height: 36px;
  flex-shrink: 0;
  background: var(--cream);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--brass);
}
.product-feature-ico svg { width: 16px; height: 16px; }
.product-feature-label {
  font-size: 13px; font-weight: 600; line-height: 1.3;
}
.product-feature-sub {
  font-size: 11px; color: var(--mute);
  margin-top: 2px;
}

/* Store availability */
.product-store-availability {
  background: var(--cream);
  border-radius: 4px;
  padding: 22px 24px;
  margin-bottom: 24px;
}
.product-store-availability-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 16px;
}
.product-store-availability-head h3 {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink); margin: 0;
}
.product-store-availability-head .stamp {
  font-family: 'Fraunces', serif; font-style: italic;
  color: var(--brass); font-size: 12px;
}
.store-row {
  background: var(--paper);
  border-radius: 4px;
  padding: 14px 16px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  margin-top: 12px;
}
.store-row:first-of-type { margin-top: 0; }
.store-row-info {
  display: flex; align-items: center; gap: 12px; min-width: 0;
  flex: 1;
}
.store-row-info .store-name {
  font-family: 'Fraunces', serif;
  font-size: 17px; font-weight: 500;
}
.store-row-info .store-status {
  font-size: 11px; font-weight: 600;
  margin-left: 8px;
}
.store-status.in_stock { color: #5b8c5a; }
.store-status.low_stock { color: #c89947; }
.store-status.out_of_stock { color: #b34a3a; }
.store-row-info .store-meta {
  font-size: 11px; color: var(--mute);
  margin-top: 2px;
}
.store-dot {
  width: 9px; height: 9px; border-radius: 50%;
  flex-shrink: 0;
}
.store-dot.in_stock { background: #5b8c5a; box-shadow: 0 0 0 4px rgba(91,140,90,0.13); }
.store-dot.low_stock { background: #c89947; box-shadow: 0 0 0 4px rgba(200,153,71,0.13); }
.store-dot.out_of_stock { background: #b34a3a; box-shadow: 0 0 0 4px rgba(179,74,58,0.13); }
.store-row-actions { display: flex; gap: 6px; }
.store-row-actions a {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  transition: opacity .15s var(--ease);
}
.store-row-actions a:hover { opacity: 0.85; }
.store-row-actions a.is-tel { background: var(--ink); color: var(--paper); }
.store-row-actions a.is-wa { background: #25D366; color: #fff; }
.store-row-actions a.is-email { background: var(--brass); color: var(--paper); }
.store-row-actions a.is-map { background: var(--paper); border: 1px solid var(--ink); color: var(--ink); }
/* Desktop: nascondi WhatsApp (mostra email). Mobile: viceversa. */
@media (min-width: 701px) {
  .store-row-actions a.is-wa { display: none; }
}
@media (max-width: 700px) {
  .store-row-actions a.is-email { display: none; }
}
.store-row-actions svg { width: 14px; height: 14px; }

/* Disclaimer disponibilità live: piccola nota sotto i due store con
   icona info brass. Mostrato SOLO quando le giacenze sono live (Scambio
   Negozi raggiungibile); con dato statico resta nascosto. */
.product-store-disclaimer {
  display: flex; align-items: flex-start; gap: 6px;
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 11px; line-height: 1.45;
  color: var(--mute);
  font-style: italic;
}
.product-store-disclaimer svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--brass);
}

/* CTA primary product */
.product-cta-row {
  display: flex; gap: 12px;
  margin-bottom: 8px;
}
.product-cta-row .btn {
  flex: 1; justify-content: center;
  padding: 16px 28px; font-size: 13px;
}
.btn-share {
  width: 56px; padding: 0; flex: 0 0 auto;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--ink); border-radius: 999px;
  display: grid; place-items: center;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.btn-share:hover { background: var(--ink); color: var(--paper); }
.product-cta-caption {
  font-size: 11px; color: var(--mute);
  text-align: center; margin-top: 12px;
  font-style: italic;
}

/* Editorial section */
.product-editorial {
  background: var(--cream);
  padding: 80px 80px;
  margin-top: 64px;
}
.product-editorial-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}
.product-editorial-photo {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  overflow: hidden;
  background: var(--paper);
}
.product-editorial-photo img { width: 100%; height: 100%; object-fit: cover; }
.product-editorial-photo-badge {
  position: absolute; bottom: 20px; left: 20px;
  background: var(--paper); padding: 10px 16px;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
}
.product-editorial-body h2 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 28px;
}
.product-editorial-body h2 em { font-style: italic; color: var(--brass); font-weight: 400; }
.product-editorial-body .product-description-text {
  font-size: 15px; line-height: 1.7;
  color: var(--ink); margin-bottom: 32px;
}
.product-editorial-specs {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 8px 22px;
}
.product-editorial-specs h3 {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--mute);
  margin: 16px 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
}
/* Single-column spec sheet: ogni riga key uppercase brass a sinistra,
   value Fraunces grande a destra, separatore line tra le righe. */
.product-editorial-specs-grid {
  display: flex; flex-direction: column;
}
.product-editorial-specs-grid > div {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.product-editorial-specs-grid > div:last-child { border-bottom: none; }
.product-editorial-specs-grid .k {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--brass);
  flex-shrink: 0;
}
.product-editorial-specs-grid .v {
  font-family: 'Fraunces', serif;
  font-size: 17px; font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-align: right;
  word-break: break-word;
}
@media (max-width: 600px) {
  .product-editorial-specs { padding: 6px 16px; }
  .product-editorial-specs-grid > div { padding: 12px 0; }
  .product-editorial-specs-grid .v { font-size: 15px; }
}

/* Variants (set di misure) */
.product-variants {
  padding: 64px 80px 32px;
  max-width: 1400px; margin: 0 auto;
}
.product-variants-inner { max-width: 1280px; margin: 0 auto; }
.product-variants-header { margin-bottom: 32px; }
.product-variants-eyebrow {
  font-family: 'Fraunces', serif; font-style: italic;
  color: var(--brass); font-size: 14px;
  display: block; margin-bottom: 8px;
}
.product-variants-header h2 {
  font-family: 'Fraunces', serif; font-weight: 300;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.02em;
}
.product-variants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.variant-card {
  display: block;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: border-color .15s var(--ease);
  color: inherit;
}
.variant-card:hover { border-color: var(--ink); }
.variant-card.is-current { border: 1.5px solid var(--ink); background: var(--cream); }
.variant-card-cover {
  aspect-ratio: 1 / 1;
  background: var(--cream);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
  margin-bottom: 8px;
}
.variant-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.variant-card-badge {
  position: absolute; top: 6px; left: 6px;
  background: var(--ink); color: var(--paper);
  font-size: 9px; font-weight: 700;
  padding: 3px 6px; border-radius: 2px;
  letter-spacing: 0.05em;
}
.variant-card-info { padding: 4px 2px; }
.variant-card-name {
  font-family: 'Fraunces', serif;
  font-size: 14px; font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.variant-card-price {
  display: flex; align-items: baseline; gap: 6px;
  font-family: 'Fraunces', serif;
  font-size: 14px; font-weight: 600;
}
.variant-card-price-old { font-size: 11px; color: var(--mute); text-decoration: line-through; font-weight: 400; }
.variant-card-instore {
  font-family: 'Fraunces', serif; font-style: italic;
  color: var(--brass); font-size: 12px;
}

/* Related */
.product-related {
  padding: 72px 80px 100px;
  max-width: 1400px; margin: 0 auto;
}
.product-related h2 {
  font-family: 'Fraunces', serif; font-weight: 300;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.product-related .product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Sticky bottom CTA (mobile only) */
.product-sticky-cta { display: none; }

/* ── ANIMATIONS ──────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── BACK TO TOP ─────────────────────────────────────────────────── */
.back-to-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ink); color: var(--paper);
  border: none; cursor: pointer;
  font-size: 18px; line-height: 1;
  display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(26,23,21,0.2);
  z-index: 50;
  opacity: 0; transform: translateY(8px);
  pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease), background .2s var(--ease);
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--brass); }

/* =====================================================================
   MEDIA QUERIES
   ===================================================================== */
@media (max-width: 1100px) {
  .catalog-view-inner,
  .catalog-view-inner--tree { padding: 32px 32px 80px; }
  .catalog-header { padding: 112px 32px 48px; }
  .catalog-header.is-hero-split .catalog-header-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-atmosphere { aspect-ratio: 16/10; }
  .root-cluster-tree { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .product-page { padding: 88px 32px 32px; }
  .product-page-grid { grid-template-columns: 1fr; gap: 32px; }
  .product-gallery { position: static; flex-direction: column-reverse; gap: 12px; }
  .product-gallery-thumbs { flex-direction: row; flex: 0 0 auto; overflow-x: auto; }
  .product-gallery-thumb { flex-shrink: 0; }
  .catalog-products-layout { grid-template-columns: 1fr; gap: 24px; }
  /* Mobile/tablet: sidebar statica (no sticky, no scroll separato) */
  .catalog-filters {
    position: static;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
  .hub-cta-stores { padding: 56px 32px; }
  .hub-cta-stores-inner { grid-template-columns: 1fr; gap: 32px; }
  .product-editorial { padding: 56px 32px; }
  .product-editorial-inner { grid-template-columns: 1fr; gap: 32px; }
  .product-editorial-specs-grid { grid-template-columns: 1fr; gap: 0; }
  .product-related { padding: 56px 32px 80px; }
  .product-related .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-variants { padding: 48px 32px 24px; }
}

@media (max-width: 700px) {
  .catalog-view-inner,
  .catalog-view-inner--tree { padding: 24px 22px 60px; }
  .catalog-header { padding: 88px 22px 32px; }
  .catalog-header h1 { font-size: clamp(36px, 11vw, 56px); }
  /* Mobile: cluster diventa una CARD con bordo. Cover 64x64 a sx + titolo
     a destra. Counter scende sotto il titolo. Freccia "→" all'estrema destra.
     Solo il PRIMO cluster mostra le sub-cat espanse: gli altri sono chiusi
     (mostrano solo l'header). Sub-cat inline joined da " · " (no lista). */
  .root-clusters { gap: 14px; }
  .root-cluster {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 14px;
    overflow: hidden;
  }
  .root-cluster-head {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    grid-template-areas:
      "cover head arrow"
      "cover meta arrow";
    column-gap: 14px;
    row-gap: 4px;
    align-items: center;
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
  }
  .root-cluster-cover {
    grid-area: cover;
    align-self: start;
    width: 64px; height: 64px;
    aspect-ratio: 1 / 1;
    border-radius: 3px;
  }
  .root-cluster-headline {
    grid-area: head;
    align-self: end;
    min-width: 0;
  }
  .root-cluster-head h3 { font-size: 18px; line-height: 1.15; }
  .root-cluster-num { font-size: 11px; margin-right: 8px; }
  .root-cluster-lead { display: none; }
  .root-cluster-meta-wrap {
    grid-area: meta;
    align-self: start;
    text-align: left;
    display: block;
    border-top: none;
    padding-top: 0;
  }
  .root-cluster-meta {
    margin-bottom: 0;
    font-size: 10px;
    letter-spacing: 0.14em;
  }
  /* Freccia "→" terza colonna (decorativa, link gia sul cover/headline) */
  .root-cluster-head::after {
    content: '→';
    grid-area: arrow;
    align-self: center;
    color: var(--mute);
    font-size: 18px;
    font-family: 'Fraunces', serif;
    padding-right: 4px;
  }
  /* Nascondi "Sfoglia tutto" su mobile (la freccia → fa lo stesso) */
  .root-cluster-browse-all { display: none; }

  /* Tree sub-cat: gestione apertura via <details>/<summary>. JS chiude
     tutti tranne il primo su mobile (vedi script in fondo a catalogo.php). */
  .root-cluster-tree {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 8px;
    padding-top: 4px;
    border-top: 1px solid var(--line);
  }
  /* Indicatore + / − a destra della freccia su summary del cluster.
     Cambia in `−` quando il details è aperto. */
  .root-cluster .root-cluster-head::after {
    content: '+';
    font-family: 'Inter', sans-serif;
    font-size: 22px; line-height: 1; font-weight: 300;
    color: var(--mute);
    transition: color .15s var(--ease);
  }
  details.root-cluster[open] .root-cluster-head::after {
    content: '−';
    color: var(--ink);
  }
  /* Tap feedback */
  details.root-cluster > summary:hover .root-cluster-head h3 { color: var(--brass); }
  /* Sfoglia tutto: link elegante brass underline (no pillola nera) */
  .root-cluster-browse-all {
    display: inline-block !important;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--brass);
    background: transparent;
    border-radius: 0;
    padding: 0 0 2px 0;
    margin-top: 6px;
    border-bottom: 1px solid var(--brass);
    text-align: left;
    transition: color .15s var(--ease), border-color .15s var(--ease);
  }
  .root-cluster-browse-all:hover {
    color: var(--ink);
    border-color: var(--ink);
  }
  .tree-col {
    gap: 0;
    border-top: none;
    display: contents;       /* le tree-col non sono visualmente "raggruppate"
                                su mobile: ogni container sta su una sua riga
                                con separator. Cosi i border-top stanno tra
                                container CONSECUTIVI, non tra colonne. */
  }
  .tree-container,
  .tree-l2-title--alone {
    padding: 12px 0;
    border-top: 1px solid var(--line);
    margin-bottom: 0;
  }
  /* Rimuove SOLO il border del primo container del tree (non per ogni col) */
  .root-cluster-tree > :first-child,
  .root-cluster-tree > .tree-col:first-child > :first-child {
    border-top: none;
    padding-top: 4px;
  }
  .tree-l2-title {
    margin-bottom: 0;
    display: flex; justify-content: space-between; align-items: baseline;
    font-size: 12px;
  }
  /* Mobile: lista L3 in GRID a 3 colonne con link cliccabili (non più
     testo joined inline). Tap su una foglia → pagina prodotti. */
  .tree-l2-list {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px 10px;
    margin-top: 8px;
    list-style: none;
    padding: 0;
  }
  .tree-l2-list li { list-style: none; margin: 0; padding: 0; }
  .tree-l2-list a {
    display: block;
    padding: 6px 0;
    font-size: 11.5px;
    line-height: 1.25;
    color: var(--mute);
    border-bottom: none;
  }
  .tree-l2-list a:active { color: var(--ink); }
  .tree-l2-list a span:first-child { display: block; }
  /* Count L3 nascosto su mobile: spazio insufficiente in 3 colonne,
     numero non utile alla scelta. Resta visibile su desktop. */
  .tree-l3-count { display: none; }
  /* Versione testuale joined NON serve più: la sostituiamo con la grid. */
  .tree-l2-list-mobile { display: none !important; }
  .root-cluster-tree { grid-template-columns: 1fr; gap: 32px; }
  .tree-col { gap: 24px; }
  .catalog-meta { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .catalog-meta-item strong { font-size: 20px; }
  .catalog-meta-item { font-size: 8.5px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .product-page { padding: 76px 0 0; }
  .product-page-grid { padding: 0 22px; gap: 24px; }
  .product-page .breadcrumb { padding: 0 22px; }
  .product-info { padding: 0 22px; }
  /* Mobile: counter resta a destra in linea col titolo, font ridotto.
     Counter numero e label uniti su una riga inline (no block). */
  .view-header.is-editorial {
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: end;
  }
  .view-header.is-editorial h2 { font-size: 32px; }
  .view-header.is-editorial .view-tagline { display: none; }
  .view-header-counter { text-align: right; }
  .view-header-counter strong {
    display: inline; font-size: 18px;
    margin-right: 4px;
  }
  .view-header-counter span { font-size: 9px; }

  /* Mobile card prodotto: descrizione max 3 righe (espande se necessario),
     ma altezza minima riservata = 2 righe (cosi card con desc corta non
     hanno extra spazio vuoto). Risultato: card variabili tra 2 e 3 righe. */
  .product-desc {
    -webkit-line-clamp: 3;
    min-height: calc(1.45em * 2);
  }

  /* Mobile: forza 2 colonne a prescindere dal density toggle PC */
  .product-grid,
  .product-grid[data-density="3"],
  .product-grid[data-density="2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px 12px;
  }

  /* Riquadro elegante card prodotto su mobile */
  .product-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 8px;
    overflow: hidden;
  }

  /* Filtri mobile: padding/gap ridotti per risparmiare verticali */
  .catalog-filter-group {
    padding: 0 0 12px;
    margin: 0 0 12px;
  }
  .catalog-filter-group > summary {
    padding: 6px 0;
    margin-bottom: 0;
  }
  .catalog-filter-group[open] > summary {
    margin-bottom: 8px;
  }
  .catalog-filter-body { padding-top: 0; }
  .catalog-filter-opt {
    padding: 6px 0;
    font-size: 12px;
    gap: 8px;
  }
  .catalog-filter-opt input[type="checkbox"] {
    width: 13px; height: 13px;
  }
  .catalog-filter-opt small { font-size: 10px; }
  .catalog-filters-head { margin-bottom: 12px; padding-bottom: 10px; }
  .catalog-filters-title { font-size: 16px; }
  .catalog-range { margin-bottom: 10px; }
  .catalog-range-track { margin: 10px 9px; }
  .product-card-cover { border-radius: 4px; }
  .product-info { padding: 10px 4px 4px; }
  .product-name { font-size: 14px; min-height: calc(1.25em * 2); }
  .product-desc { font-size: 11px; line-height: 1.4; }
  .product-price { font-size: 16px; }
  .product-card-price-old { font-size: 11px; }
  .pcard-brand { font-size: 8.5px; letter-spacing: 0.12em; }
  .catalog-subbar { gap: 8px; padding: 12px 0; }
  .catalog-subbar-spacer { display: none; }
  .catalog-subbar-active { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .chip-active { flex-shrink: 0; }
  .product-features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 10px; }
  .product-feature { gap: 8px; }
  .product-feature-ico { width: 28px; height: 28px; }
  .product-feature-ico svg { width: 13px; height: 13px; }
  .product-feature-label { font-size: 11.5px; }
  .product-feature-sub { font-size: 10px; }
  .store-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .store-row-actions { justify-content: flex-start; }
  .product-related .product-grid { grid-template-columns: 1fr; }
  .product-variants-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hub-cta-stores-right { grid-template-columns: 1fr; }

  .product-sticky-cta {
    display: flex;
    position: sticky; bottom: 0;
    background: var(--paper);
    border-top: 1px solid var(--line);
    padding: 12px 16px;
    align-items: center; gap: 10px;
    box-shadow: 0 -8px 24px rgba(26,23,21,0.06);
    z-index: 50;
  }
  .product-sticky-cta-info { flex: 0 0 auto; }
  .product-sticky-cta-info-meta {
    font-size: 10px; color: var(--mute);
    letter-spacing: 0.1em; text-transform: uppercase;
  }
  .product-sticky-cta-info-price {
    font-family: 'Fraunces', serif;
    font-size: 22px; font-weight: 600;
    letter-spacing: -0.02em; line-height: 1;
  }
  .product-sticky-cta .btn { flex: 1; justify-content: center; }
}
