/* =========================================================
   Shop archive â€” facets sidebar + dense parts grid.
   The page should feel like flipping through a parts binder:
   tabbed dividers (facets), result count in mono, technical chips
   above the grid as the active-filter "header tape".
   ========================================================= */

/* `.mz-shop-head` + `.mz-breadcrumb` base styles live in
   components/shop-head.css so cart and single-product pick them up too. */

/* Layout */
.mz-shop {
  padding: var(--s-7) 0 var(--s-9);
}
/* Lo stacco breadcrumb-as-header → contenuto (top --s-4) è uniforme tra shop,
   carrello e checkout: la regola vive in components/breadcrumb.css
   (.mz-shop-head--bc + <sezione>), modulo no-condition caricato su tutte. */
/* I filtri ora vivono in un offcanvas (`.mz-facets-drawer`) — la sidebar
   è uscita dal flusso del documento, quindi la griglia 2-col non serve
   più: il main si prende tutta la larghezza disponibile. Manteniamo il
   wrapper come fratello visibile del drawer (che è position:fixed e quindi
   irrilevante in flow). */
.mz-shop__layout { display: block; }

/* =========================================================
   Filtri trigger nel toolbar
   Pattern catalog-binder: button piatto con icona sliders + label,
   conteggio mono `· 03` quando ci sono filtri attivi. Niente badge a
   pillola: la cifra è tipografia inline. Border si scurisce a --ink-1
   in hover (Border-Hover Rule, DESIGN.md §7.6).
   ========================================================= */
.mz-toolbar__filters { display: inline-flex; }
.mz-toolbar__filters-btn {
  display: inline-flex; align-items: center; gap: var(--s-2);
  height: 36px;
  padding: 0 var(--s-3);
  background: var(--ctl-bg);
  border: 1px solid var(--ctl-border);
  border-radius: var(--r-2);
  color: var(--ink-1);
  font: 600 var(--t-sm)/1 var(--ff-ui);
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: border-color var(--d-1) var(--ease), color var(--d-1) var(--ease), background var(--d-1) var(--ease);
}
.mz-toolbar__filters-btn:hover { border-color: var(--ink-1); }
.mz-toolbar__filters-btn:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }
.mz-toolbar__filters-icon { width: 16px; height: 16px; flex-shrink: 0; color: var(--ink-1); }
.mz-toolbar__filters-label { font-variant-numeric: tabular-nums; }
/* Mono dot-count quando >=1 filtri attivi: cifra come tipografia inline,
   stesso registro dei `Indice NN / Slug`. */
.mz-toolbar__filters-count {
  font: 600 var(--t-sm)/1 var(--ff-mono);
  font-feature-settings: 'tnum', 'zero';
  letter-spacing: 0;
  color: var(--brand);
}
.mz-toolbar__filters-btn.has-count { border-color: var(--brand); color: var(--brand); }
.mz-toolbar__filters-btn.has-count .mz-toolbar__filters-icon { color: var(--brand); }
.mz-toolbar__filters-btn.has-count:hover { border-color: var(--brand-ink); color: var(--brand-ink); }
.mz-toolbar__filters-btn.has-count:hover .mz-toolbar__filters-icon { color: var(--brand-ink); }
/* Drawer aperto = stato "premuto" del button. */
.mz-toolbar__filters-btn[aria-expanded="true"] { background: var(--paper-3); border-color: var(--ink-1); }

@media (max-width: 640px) {
  .mz-toolbar__filters-btn { height: 40px; padding: 0 var(--s-3); }
}

/* Screen-reader-only label (count espanso per AT) — non avevamo ancora
   un'utility globale; locale qui finché non serve altrove. */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
  white-space: nowrap;
}

/* Scroll lock sul body quando il drawer è aperto. Lo applica il JS via
   classe; CSS qui per consistenza con il resto del sistema. */
body.mz-facets-drawer-open { overflow: hidden; }

/* =========================================================
   Offcanvas drawer — slide da sinistra, scrim caldo (--paper-ink @ 0.42).
   Single component, identico su desktop e mobile: una sola pattern da
   mantenere. Su mobile 86vw lascia un 14% di peek sul canvas dietro
   (catalog-binder feel: il binder non si chiude di colpo sulla pagina).
   ========================================================= */
.mz-facets-drawer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: block;
  pointer-events: none;
}
.mz-facets-drawer[hidden] { display: none; }
.mz-facets-drawer__scrim {
  position: absolute;
  inset: 0;
  /* Fixed black: in dark mode --paper-ink lifts lighter than canvas
     (DESIGN.md §6.2), breaking the "dim the content" contract. */
  background: rgba(0, 0, 0, 1);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--d-2) var(--ease);
}
.mz-facets-drawer.is-open { pointer-events: auto; }
.mz-facets-drawer.is-open .mz-facets-drawer__scrim {
  opacity: 0.42;
  pointer-events: auto;
}

.mz-facets-drawer__panel {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: clamp(320px, 86vw, 420px);
  background: var(--paper);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  transform: translateX(-100%);
  transition: transform var(--d-2) var(--ease);
  pointer-events: auto;
  /* Soft shadow only on the floating drawer — Floating-Overlay Carveout
     (DESIGN.md §9). Il border da solo non separa il pannello dal canvas
     sotto lo scrim semi-trasparente. */
  box-shadow: 0 8px 30px rgba(30, 30, 30, 0.18);
}
.mz-facets-drawer.is-open .mz-facets-drawer__panel { transform: translateX(0); }
.mz-facets-drawer__panel:focus { outline: none; }

/* Reduced motion: niente slide. Il pannello compare/sparisce con
   trasformazioni istantanee — nessun reflow, è position:fixed. */
@media (prefers-reduced-motion: reduce) {
  .mz-facets-drawer__panel,
  .mz-facets-drawer__scrim { transition: none; }
}

/* Header del drawer — mono index + close. */
.mz-facets-drawer__head {
  display: flex; align-items: flex-start; gap: var(--s-3);
  padding: var(--s-5) var(--s-5) var(--s-4);
  border-bottom: 1px solid var(--border);
  background: var(--paper);
}
.mz-facets-drawer__head-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.mz-facets-drawer__index {
  font: 600 var(--t-xs)/1 var(--ff-mono);
  letter-spacing: var(--tr-micro);
  text-transform: uppercase;
  color: var(--ink-3);
}
.mz-facets-drawer__title {
  font: 700 var(--t-lg)/1.2 var(--ff-ui);
  letter-spacing: -0.01em;
  color: var(--ink-1);
  margin: 0;
}
.mz-facets-drawer__close {
  flex-shrink: 0;
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-2);
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color var(--d-1) var(--ease), color var(--d-1) var(--ease);
}
.mz-facets-drawer__close:hover { border-color: var(--ink-1); color: var(--ink-1); }
.mz-facets-drawer__close:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }
.mz-facets-drawer__close svg { width: 16px; height: 16px; }

/* La form occupa il restante: body scrollabile + foot sticky. */
.mz-facets-drawer__panel > .mz-facets__form {
  flex: 1 1 auto;
  min-height: 0;
  display: flex; flex-direction: column;
}

.mz-facets-drawer__body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0 var(--s-5);
  display: flex; flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
.mz-facets-drawer__body::-webkit-scrollbar { width: 8px; }
.mz-facets-drawer__body::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }

.mz-facets-drawer__foot {
  flex-shrink: 0;
  display: flex; gap: var(--s-2);
  padding: var(--s-4) var(--s-5);
  border-top: 1px solid var(--border);
  background: var(--paper-2);
}
.mz-facets-drawer__foot .mz-btn { flex: 1; }
.mz-facets-drawer__foot .mz-btn--ghost { flex: 0 0 auto; }

/* Submit con conteggio live: label sans + separator · + count mono.
   Count e separator sono subordinati (opacity 0.85) per non rubare gerarchia
   alla label "Applica filtri", che resta l'azione semantica primaria.
   Stato .is-updating applicato dal JS durante fetch in volo: dim, no spinner. */
.mz-btn--filter-submit { gap: var(--s-2); }
.mz-btn--filter-submit .mz-btn__label { font-weight: 600; }
.mz-btn--filter-submit .mz-btn__sep,
.mz-btn--filter-submit .mz-btn__count {
  font: 600 var(--t-sm)/1 var(--ff-mono);
  font-feature-settings: 'tnum', 'zero';
  letter-spacing: 0;
  opacity: 0.85;
}
.mz-btn--filter-submit .mz-btn__count.is-updating {
  opacity: 0.5;
  transition: opacity var(--d-1) var(--ease);
}

/* La form interna era una "card" stand-alone con padding/border/bg
   propri: ora la card è il drawer. Azzera quegli stili. */
.mz-facets__form {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  gap: 0;
  display: flex; flex-direction: column;
}

/* Ogni facet è una sezione collapsible nel drawer. Il head è un <button>
   con padding interno; la hairline del head fa da divisore di sezione. */
.mz-facet { display: flex; flex-direction: column; }
.mz-facet__head {
  display: flex; align-items: center; gap: var(--s-2);
  padding: var(--s-4) 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  text-align: left;
  color: var(--ink-1);
  font: inherit;
  width: 100%;
}
.mz-facet__head--toggle { cursor: pointer; }
.mz-facet__head--toggle:hover { border-bottom-color: var(--ink-1); }
.mz-facet__head--toggle:hover .mz-facet__title { color: var(--ink-1); }
.mz-facet__head--toggle:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
  border-radius: var(--r-1);
}
.mz-facet__index {
  font: 600 var(--t-xs)/1 var(--ff-mono);
  letter-spacing: var(--tr-micro);
  text-transform: uppercase;
  color: var(--ink-3);
}
.mz-facet__title {
  flex: 1 1 auto; min-width: 0;
  font: 600 var(--t-md)/1 var(--ff-ui);
  letter-spacing: -0.005em;
  margin: 0;
  color: inherit;
}
/* Summary inline (es. "· Lavatrice" / "· Bosch +2") — visibile SOLO quando
   il facet è collassato, per dare un "you are here" senza espandere.
   Priorità di troncamento: il nome marca si ellissa, il suffisso "+N" no.
   Flex con min-width: 0 sul contenitore + sul name; suffix è flex: 0 0 auto. */
.mz-facet__head-current {
  flex: 0 1 auto;
  min-width: 0;
  display: inline-flex; align-items: baseline; gap: 4px;
  font: 500 var(--t-sm)/1 var(--ff-ui);
  color: var(--brand);
  letter-spacing: -0.005em;
  margin-left: var(--s-2);
  overflow: hidden;
}
.mz-facet__head-current-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mz-facet__head-current-extra {
  flex: 0 0 auto;
  font: 500 var(--t-sm)/1 var(--ff-mono);
  font-feature-settings: 'tnum', 'zero';
  letter-spacing: 0;
  color: var(--brand);
}
.mz-facet__head-sep { color: var(--ink-4); font-weight: 400; flex: 0 0 auto; }
.mz-facet__head-chev {
  flex-shrink: 0;
  width: 14px; height: 14px;
  margin-left: var(--s-2);
  color: var(--ink-3);
  transition: transform var(--d-2) var(--ease);
  transform: rotate(180deg);
}
/* Collapsed: chev down (default <use> orientation). Expanded: chev up. */
.mz-facet--collapsible.is-collapsed .mz-facet__head-chev { transform: rotate(0deg); }
.mz-facet--collapsible:not(.is-collapsed) .mz-facet__head-current { display: none; }
.mz-facet__body { padding: var(--s-3) 0 var(--s-4); }
.mz-facet__body[hidden] { display: none; }

.mz-facet__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.mz-facet__opt {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 0;
  font: 500 var(--t-sm)/1.3 var(--ff-ui);
  color: var(--ink-2);
  border: 0;
}
.mz-facet__opt:hover { color: var(--ink-1); border-bottom: 0; }
.mz-facet__opt.is-active { color: var(--brand); font-weight: 600; }
.mz-facet__opt.is-active .mz-facet__opt-count { color: var(--brand); }
.mz-facet__opt-name { flex: 1; }
.mz-facet__opt-count {
  font: 500 var(--t-xs)/1 var(--ff-mono);
  color: var(--ink-3);
  margin-left: var(--s-2);
}

/* Category accordion */
.mz-facet__item { display: flex; flex-direction: column; }
.mz-facet__toggle {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 6px 0;
  font: 500 var(--t-sm)/1.3 var(--ff-ui);
  color: var(--ink-2);
  background: transparent; border: 0; cursor: pointer;
  text-align: left;
  gap: 0;
  box-shadow: none;
  border-radius: 0;
}
.mz-facet__toggle:hover,
.mz-facet__toggle:focus,
.mz-facet__toggle:focus-visible,
.mz-facet__toggle:active {
  background: transparent;
  color: var(--ink-1);
  box-shadow: none;
  outline: none;
}
.mz-facet__toggle.is-active { color: var(--brand); font-weight: 600; }
.mz-facet__toggle.is-active .mz-facet__opt-count { color: var(--brand); }
.mz-facet__chevron {
  width: 14px; height: 14px;
  flex-shrink: 0;
  margin-left: var(--s-1);
  color: var(--ink-3);
  transition: transform 200ms ease-out;
}
.mz-facet__item.is-open .mz-facet__chevron { transform: rotate(180deg); }
.mz-facet__children {
  list-style: none; padding: 0; margin: 0;
  padding-left: var(--s-3);
  border-left: 1px solid var(--border);
  margin-left: 2px;
  display: flex; flex-direction: column;
}
.mz-facet__children[hidden] { display: none; }
.mz-facet__opt--child {
  padding: 4px 0;
  font-size: var(--t-xs);
}

/* Checkbox list (brands) — niente sotto-scroll: il drawer body è già
   scrollabile e una pagina con due scroll annidati è confusa, specialmente
   su trackpad. La lista completa scorre col body. */
.mz-facet__list--checks { gap: 2px; }

.mz-facet__check {
  position: relative;
  display: flex; align-items: center; gap: var(--s-2);
  padding: 6px 0;
  cursor: pointer;
  font: 500 var(--t-sm)/1.3 var(--ff-ui);
  color: var(--ink-2);
}
.mz-facet__check:hover { color: var(--ink-1); }
.mz-facet__check input { position: absolute; opacity: 0; pointer-events: none; }
.mz-facet__check-box {
  width: 14px; height: 14px;
  border: 1.5px solid var(--ctl-border);
  border-radius: var(--r-1);
  background: var(--ctl-bg);
  position: relative;
  flex-shrink: 0;
  transition: border-color var(--d-1) var(--ease), background var(--d-1) var(--ease);
}
.mz-facet__check input:focus-visible + .mz-facet__check-box { outline: 2px solid var(--border-focus); outline-offset: 2px; }
.mz-facet__check input:checked + .mz-facet__check-box {
  background: var(--brand);
  border-color: var(--brand);
}
.mz-facet__check input:checked + .mz-facet__check-box::after {
  content: "";
  position: absolute;
  left: 3px; top: 0;
  width: 5px; height: 9px;
  border-right: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: rotate(45deg);
}
.mz-facet__check.is-active { color: var(--ink-1); }

/* Price range */
.mz-facet__price {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--s-2);
}
.mz-facet__price-field {
  position: relative;
  display: flex; align-items: center;
  background: var(--ctl-bg);
  border: 1px solid var(--ctl-border);
  border-radius: var(--r-2);
  height: 36px;
  padding: 0 var(--s-2) 0 var(--s-3);
}
.mz-facet__price-field:focus-within { border-color: var(--ink-1); }
.mz-facet__price-prefix {
  font: 600 var(--t-sm)/1 var(--ff-mono);
  color: var(--ink-3);
  margin-right: var(--s-2);
}
.mz-facet__price-field input {
  -moz-appearance: textfield;
  appearance: none;
  border: 0; background: transparent;
  width: 100%; height: 100%;
  font: 500 var(--t-sm)/1 var(--ff-mono);
  color: var(--ink-1);
  letter-spacing: 0;
}
.mz-facet__price-field input::-webkit-outer-spin-button,
.mz-facet__price-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mz-facet__price-sep {
  font: 600 var(--t-sm)/1 var(--ff-mono);
  color: var(--ink-3);
  text-align: center;
}

/* `.mz-facets__actions` rimossa: gli action button vivono ora in
   `.mz-facets-drawer__foot` (sticky in fondo al pannello). */

/* =========================================================
   Toolbar — result count + sort
   ========================================================= */
.mz-toolbar {
  display: flex; align-items: center;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-4);
  /* Nessun padding-top: lo stacco dall'header lo porta già la sezione .mz-shop
     (padding-top). Sommarli raddoppiava il gap breadcrumb→toolbar. Resta solo il
     padding-bottom, che stacca i controlli dalla regola della toolbar. */
  padding: 0 0 var(--s-4);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--s-5);
}

/* ----  Toolbar: controlli vista (view + cols + per-page)  ---- */
.mz-toolbar__controls {
  display: flex; align-items: center; gap: var(--s-3);
}

/* Vista griglia / lista */
.mz-toolbar__view {
  display: flex; align-items: center;
  border: 1px solid var(--ctl-border);
  border-radius: var(--r-2);
  overflow: hidden;
}
.mz-toolbar__view-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: var(--ctl-bg);
  color: var(--ink-3);
  transition: background var(--d-1) var(--ease), color var(--d-1) var(--ease);
  border: 0;
}
.mz-toolbar__view-btn + .mz-toolbar__view-btn {
  border-left: 1px solid var(--ctl-border);
}
.mz-toolbar__view-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.mz-toolbar__view-btn:hover { background: var(--paper-3); color: var(--ink-1); }
.mz-toolbar__view-btn.is-active { background: var(--ink-1); color: var(--paper); }

/* Colonne — gruppo label + pulsanti */
.mz-toolbar__cols-group {
  display: flex; align-items: center; gap: var(--s-2);
}
.mz-toolbar__cols-group.is-hidden { display: none; }
.mz-toolbar__cols-label {
  font: 500 var(--t-xs)/1 var(--ff-mono);
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}
.mz-toolbar__cols {
  display: flex; align-items: center;
  border: 1px solid var(--ctl-border);
  border-radius: var(--r-2);
  overflow: hidden;
}
.mz-toolbar__col-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px;
  padding: 0 var(--s-2);
  background: var(--ctl-bg);
  color: var(--ink-3);
  transition: background var(--d-1) var(--ease), color var(--d-1) var(--ease);
  border: 0;
}
.mz-toolbar__col-btn + .mz-toolbar__col-btn {
  border-left: 1px solid var(--ctl-border);
}
.mz-toolbar__col-btn:hover { background: var(--paper-3); color: var(--ink-1); }
.mz-toolbar__col-btn.is-active { background: var(--ink-1); color: var(--paper); }
.mz-toolbar__col-icon { width: 16px; height: 16px; flex-shrink: 0; display: block; }

/* Per pagina */
.mz-toolbar__per-page {
  display: flex; align-items: center; gap: var(--s-2);
}
.mz-toolbar__per-page-label {
  font: 500 var(--t-xs)/1 var(--ff-mono);
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}
.mz-toolbar__per-page-select {
  appearance: none; -webkit-appearance: none;
  background: var(--ctl-bg);
  border: 1px solid var(--ctl-border);
  border-radius: var(--r-2);
  height: 36px;
  padding: 0 26px 0 var(--s-3);
  font: 600 var(--t-xs)/1 var(--ff-mono);
  color: var(--ink-1);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}
.mz-toolbar__per-page-select:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }

@media (max-width: 640px) {
  .mz-toolbar__controls { order: 3; width: 100%; justify-content: flex-start; }
  .mz-toolbar__per-page-label { display: none; }
  .mz-toolbar__cols-group { display: none; }
  /* Lift tap targets to the 40px standard (DESIGN.md §10) — phone in poor light. */
  .mz-toolbar__view-btn { width: 40px; height: 40px; }
  .mz-toolbar__col-btn { min-width: 40px; height: 40px; }
  .mz-toolbar__per-page-select { height: 40px; }
}

/* Style WooCommerce's catalog ordering form */
.woocommerce-ordering {
  position: relative;
  margin: 0;
}
.woocommerce-ordering select.orderby {
  appearance: none; -webkit-appearance: none;
  background: var(--ctl-bg);
  border: 1px solid var(--ctl-border);
  border-radius: var(--r-2);
  height: 36px;
  padding: 0 32px 0 var(--s-3);
  font: 500 var(--t-sm)/1 var(--ff-ui);
  color: var(--ink-1);
  cursor: pointer;
}
.woocommerce-ordering select.orderby:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }
.woocommerce-ordering::after {
  content: "";
  position: absolute;
  right: 12px; top: 50%;
  width: 7px; height: 7px;
  border-right: 1.5px solid var(--ink-3);
  border-bottom: 1.5px solid var(--ink-3);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

/* =========================================================
   Active filter chips (above the grid)
   ========================================================= */
.mz-active-filters {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2);
  margin-bottom: var(--s-5);
}
.mz-active-filters__label {
  font: 600 var(--t-xs)/1 var(--ff-mono);
  letter-spacing: var(--tr-micro);
  text-transform: uppercase;
  color: var(--ink-3);
  margin-right: var(--s-2);
}
.mz-active-chip {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: 7px 8px 7px 10px;
  background: var(--paper-3);
  border: 1px solid var(--border);
  border-radius: var(--r-1);
  font: 500 var(--t-xs)/1 var(--ff-mono);
  letter-spacing: 0.02em;
  color: var(--ink-1);
  transition: border-color var(--d-1) var(--ease), color var(--d-1) var(--ease);
}
.mz-active-chip:hover { border-color: var(--brand); color: var(--brand); }
.mz-active-chip svg { width: 14px; height: 14px; flex-shrink: 0; opacity: 0.8; }
.mz-active-filters__clear {
  font: 600 var(--t-xs)/1 var(--ff-mono);
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
  color: var(--brand);
  margin-left: var(--s-2);
  border-bottom: 1px solid var(--brand);
  padding-bottom: 1px;
}

/* Shop grid column classes live in components/part-card.css (.mz-parts--shop.mz-parts--cols-N). */

/* Pagination styles live in components/pagination.css — loaded via manzo_uses_pagination() */

/* =========================================================
   Empty state
   ========================================================= */
.mz-empty {
  padding: var(--s-9) var(--s-5);
  background: var(--paper-2);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-3);
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: var(--s-3);
}
.mz-empty p { color: var(--ink-2); margin: 0 0 var(--s-3); max-width: 42ch; }

/* =========================================================
   Reset any residual width constraints.
   Our header/footer emit no extra wrappers — these rules guarantee
   full-width hero/section bands even if a plugin injects width-capping
   container markup further up the tree.
   ========================================================= */
body { margin: 0; }
.mz-utility,
.mz-header,
.mz-hero,
.mz-section,
.mz-promo,
.mz-trust,
.mz-footer,
.mz-scheda,
.mz-scheda-tabs { width: 100%; }

