/* =====================================================================
 * BilanceOnline — category.css
 * Archive prodotti / shop / category / tag
 * (breadcrumb, header, chips, sidebar filtri, toolbar, grid, list-view,
 *  pagination, seo-cols, reassurance)
 * ===================================================================== */

/* ===== BREADCRUMB (override del breadcrumb base con barra grigia) ===== */
.bo-shop .breadcrumb,
.bo-category .breadcrumb,
.bo-product .breadcrumb{
  padding:16px 0;font-size:0.8125rem;
  border-bottom:1px solid var(--line);background:var(--bg-2);
}
.bo-shop .breadcrumb ol,
.bo-category .breadcrumb ol,
.bo-product .breadcrumb ol{
  list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px;align-items:center;
}
.bo-shop .breadcrumb a,
.bo-category .breadcrumb a,
.bo-product .breadcrumb a{color:var(--ink-3);text-decoration:none}
.bo-shop .breadcrumb a:hover,
.bo-category .breadcrumb a:hover,
.bo-product .breadcrumb a:hover{color:var(--bo-red);text-decoration:underline}
.bo-shop .breadcrumb li::after,
.bo-category .breadcrumb li::after,
.bo-product .breadcrumb li::after{content:"›";margin-left:8px;color:var(--ink-4)}
.bo-shop .breadcrumb li:last-child::after,
.bo-category .breadcrumb li:last-child::after,
.bo-product .breadcrumb li:last-child::after{display:none}
.bo-shop .breadcrumb li:last-child,
.bo-category .breadcrumb li:last-child,
.bo-product .breadcrumb li:last-child{color:var(--ink);font-weight:500}

/* ===== CATEGORY HEADER ===== */
.cat-header{padding:32px 0 24px;background:#fff}
.cat-header h1{font-size:1.5rem;font-weight:700;margin:0 0 10px;letter-spacing:-0.015em}
.cat-header p,
.cat-header .cat-header-lead,
.cat-header .cat-header-lead p{font-size:0.9rem;color:var(--ink-2);margin:0 0 8px;line-height:1.65}
.cat-header .cat-header-lead p:last-child{margin-bottom:0}

/* ===== SUB CATEGORIES (chip) ===== */
.subcat-chips{display:flex;flex-wrap:wrap;gap:8px;padding:0 0 24px;border-bottom:1px solid var(--line);margin-bottom:24px}
.chip{display:inline-flex;align-items:center;gap:6px;background:var(--bg-2);border:1px solid var(--line);color:var(--ink-2);text-decoration:none;font-size:0.8125rem;font-weight:500;padding:7px 14px;border-radius:20px;transition:all .15s}
.chip:hover{background:var(--bo-red-50);border-color:var(--bo-red);color:var(--bo-red-dark)}
.chip.active{background:var(--bo-red);border-color:var(--bo-red);color:#fff}
.chip i{font-size:0.875rem}

/* ===== LAYOUT (sidebar + main) ===== */
.cat-layout{display:grid;grid-template-columns:320px minmax(0,1fr);gap:32px;padding-bottom:48px}

/* ===== SIDEBAR FILTERS ===== */
.filters{position:sticky;top:20px;height:fit-content;padding-right:0}
.filters-header{display:flex;justify-content:space-between;align-items:center;padding:12px 0;margin-bottom:6px;border-bottom:2px solid var(--ink)}
.filters-header h2{font-size:1rem;font-weight:700;margin:0;display:flex;align-items:center;gap:8px}
.filters-header h2 i{color:var(--bo-red);font-size:1.25rem}
.filter-clear{background:none;border:none;color:var(--bo-red);font-size:0.78rem;font-weight:600;cursor:pointer;font-family:inherit;padding:4px 8px;border-radius:4px}
.filter-clear:hover{background:var(--bo-red-50)}

.active-filters{display:flex;flex-wrap:wrap;gap:6px;padding:14px 0;border-bottom:1px solid var(--line);margin-bottom:6px}
.active-filter{display:inline-flex;align-items:center;gap:5px;background:var(--bo-red-50);color:var(--bo-red-dark);font-size:0.75rem;font-weight:600;padding:4px 10px;border-radius:14px;border:none;cursor:pointer;font-family:inherit}
.active-filter:hover{background:var(--bo-red);color:#fff}
.active-filter i{font-size:0.8125rem}

.filter-group{border-bottom:1px solid var(--line);padding:6px 0}
.filter-group summary{display:flex;justify-content:space-between;align-items:center;padding:12px 4px;cursor:pointer;font-weight:600;font-size:0.875rem;list-style:none;user-select:none}
.filter-group summary::-webkit-details-marker{display:none}
.filter-group summary i.chev{font-size:1.125rem;transition:transform .2s;color:var(--ink-3)}
.filter-group[open] summary i.chev{transform:rotate(180deg)}
.filter-group summary:hover{color:var(--bo-red)}
.filter-group .filter-body{padding:0 4px 14px}

/* Price range */
.price-range{padding:6px 0}
/* === Dual range slider per prezzo === */
.price-range{position:relative;padding:18px 6px 8px}
.price-range__track{
  position:relative;height:4px;background:var(--line);border-radius:2px;
}
.price-range__fill{
  position:absolute;top:0;bottom:0;
  background:var(--bo-red);border-radius:2px;
  pointer-events:none;
}
.price-range__input{
  position:absolute;top:50%;left:0;right:0;width:100%;
  margin:0;padding:0;background:transparent;
  -webkit-appearance:none;appearance:none;
  pointer-events:none;
  height:24px;transform:translateY(-50%);
}
.price-range__input::-webkit-slider-thumb{
  -webkit-appearance:none;appearance:none;
  width:20px;height:20px;border-radius:50%;
  background:#fff;border:2px solid var(--bo-red);
  cursor:grab;pointer-events:auto;
  box-shadow:0 2px 4px rgba(0,0,0,.15);
}
.price-range__input::-moz-range-thumb{
  width:20px;height:20px;border-radius:50%;
  background:#fff;border:2px solid var(--bo-red);
  cursor:grab;pointer-events:auto;
  box-shadow:0 2px 4px rgba(0,0,0,.15);
}
.price-range__input::-webkit-slider-thumb:active,
.price-range__input::-moz-range-thumb:active{cursor:grabbing}
.price-range__input:focus-visible::-webkit-slider-thumb{outline:3px solid #FFB400;outline-offset:2px}
.price-range__input:focus-visible::-moz-range-thumb{outline:3px solid #FFB400;outline-offset:2px}
.price-range__values{
  display:flex;justify-content:space-between;align-items:center;
  margin-top:18px;font-size:0.84rem;font-weight:600;color:var(--ink);
}
.price-range__lbl output{font-weight:700}
.filter-apply{
  width:100%;justify-content:center;padding:10px 14px;font-size:0.8125rem;
  margin-top:14px;
}
/* Bottone "Applica filtri" globale (sostituisce quello per-sezione) */
.filter-apply-main{
  display:flex;align-items:center;justify-content:center;gap:8px;
  width:100%;margin-top:18px;
  padding:14px 18px;
  background:#0F1419;color:#fff;border:none;border-radius:30px;
  font-family:inherit;font-size:0.9rem;font-weight:700;
  cursor:pointer;line-height:1.4;
  transition:background .15s;
}
.filter-apply-main:hover{background:#C8102E}
.filter-apply-main i{font-size:1.125rem;color:#fff}
/* === Filtro categoria: drill-down single-select === */
.filter-cat-tree{list-style:none;margin:0;padding:0}
.filter-cat-tree .filter-cat-node{margin:0}
.filter-cat-tree .check{
  margin:0;padding:8px 6px;cursor:pointer;
  display:flex;align-items:center;gap:8px;
  border-radius:4px;
  transition:background .12s;
}
.filter-cat-tree .check:hover{background:var(--bg-2)}
.filter-cat-tree .check.is-current{background:#FDE8EB;color:var(--bo-red)}
.filter-cat-tree .check.is-current .label{font-weight:700}
.filter-cat-tree .check .count{color:var(--ink-3);font-size:0.78rem;margin-left:auto;font-weight:500}
.filter-cat-tree .check input[type="radio"]{accent-color:var(--bo-red);margin:0;flex-shrink:0}

/* Top-level: peso forte */
.filter-cat-tree > .filter-cat-node > .check .label{font-weight:600;color:var(--ink)}

/* Children indentati con bordo */
.filter-cat-children{
  list-style:none;margin:4px 0 6px;padding:0 0 0 18px;
  border-left:2px solid var(--line);
}
.filter-cat-children .check .label{font-size:0.84rem;color:var(--ink-2);font-weight:500}
.filter-cat-children .filter-cat-children .check .label{font-size:0.78rem;color:var(--ink-3)}

/* "Tutte le categorie" reset */
.filter-cat-reset{margin-bottom:4px;border-bottom:1px solid var(--line);padding-bottom:4px}
.filter-cat-reset .check{font-style:italic;color:var(--ink-3)}

/* "Azzera" — bottone pill rosso allineato a destra del titolo filtri.
   Nascosto di default; mostrato con classe .is-active aggiunta da PHP o JS. */
.filter-clear-btn{
  display:none;
  margin-left:auto;
  align-items:center;
  padding:5px 12px;
  font-size:0.75rem;font-weight:700;
  color:var(--bo-red);background:#fff;border:1px solid var(--bo-red);
  border-radius:16px;
  text-decoration:none;
  text-transform:uppercase;letter-spacing:0.04em;
  line-height:1.4;
  cursor:pointer;white-space:nowrap;
}
.filter-clear-btn.is-active{display:inline-flex}
.filter-clear-btn:hover{background:var(--bo-red);color:#fff}
.price-slider{position:relative;height:6px;background:var(--line);border-radius:3px;margin:18px 8px 8px}
.price-slider .track{position:absolute;top:0;height:100%;background:var(--bo-red);border-radius:3px}
.price-slider .thumb{position:absolute;top:50%;width:18px;height:18px;background:#fff;border:3px solid var(--bo-red);border-radius:50%;transform:translate(-50%,-50%);cursor:grab}
.price-tag{display:flex;justify-content:space-between;font-size:0.75rem;color:var(--ink-3);margin-top:4px}

/* Checkbox list */
.checks{display:flex;flex-direction:column;gap:2px;max-height:none}
.checks.collapsed .check:nth-child(n+6){display:none}
.check{display:flex;align-items:center;gap:9px;padding:6px 4px;cursor:pointer;border-radius:4px;font-size:0.84rem;color:var(--ink-2);transition:background .12s}
.check:hover{background:var(--bg-2)}
.check input[type="checkbox"]{width:16px;height:16px;accent-color:var(--bo-red);margin:0;flex-shrink:0;cursor:pointer}
.check span.label{flex:1}
.check span.count{color:var(--ink-3);font-size:0.75rem;font-weight:500}
.check input:checked ~ span.label{color:var(--bo-red-dark);font-weight:600}

.filter-search{position:relative;margin-bottom:10px}
.filter-search input{width:100%;height:32px;padding:0 30px 0 10px;border:1px solid var(--line-2);border-radius:4px;font-size:0.8125rem;font-family:inherit}
.filter-search input:focus-visible{border-color:var(--bo-red);outline:none}
.filter-search i{position:absolute;right:10px;top:50%;transform:translateY(-50%);color:var(--ink-3);font-size:0.9375rem;pointer-events:none}

.show-more{
  background:none;border:none;padding:8px 0 0;
  color:var(--bo-red);font-weight:600;font-size:0.8125rem;
  cursor:pointer;font-family:inherit;
  display:inline-flex;align-items:center;gap:4px;
}
.show-more:hover{text-decoration:underline}
.show-more i{font-size:0.875rem;transition:transform .2s}
.show-more.expanded i{transform:rotate(180deg)}

/* ===== TOOLBAR ===== */
.toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px;flex-wrap:wrap;padding-bottom:16px;border-bottom:1px solid var(--line)}
.result-count{font-size:0.875rem;color:var(--ink-2)}
.result-count strong{color:var(--ink);font-weight:700}
.toolbar-right{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.toolbar-right label{font-size:0.8125rem;color:var(--ink-3);font-weight:500}
.toolbar-right select{
  height:38px;padding:0 32px 0 12px;
  border:1.5px solid var(--line-2);border-radius:4px;
  font-size:0.84rem;font-family:inherit;font-weight:500;color:var(--ink);
  background:#fff 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='%23666' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 10px center;
  appearance:none;cursor:pointer;
}
.toolbar-right select:focus-visible{border-color:var(--bo-red);outline:none}

.view-toggle{display:flex;gap:2px;border:1.5px solid var(--line-2);border-radius:4px;padding:2px}
.view-toggle button{width:34px;height:34px;background:none;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--ink-3);border-radius:3px}
.view-toggle button[aria-pressed="true"]{background:var(--bo-red);color:#fff}
.view-toggle button:hover:not([aria-pressed="true"]){background:var(--bg-2);color:var(--ink)}
.view-toggle i{font-size:1.125rem}

/* ===== PRODUCTS GRID ===== */
.products-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}

/* Quick actions su hover (cuore/compare) */
.prod-quick{position:absolute;top:10px;right:10px;display:flex;flex-direction:column;gap:6px;opacity:0;transform:translateX(8px);transition:all .2s;z-index:2}
.prod-card:hover .prod-quick{opacity:1;transform:translateX(0)}
.prod-quick button{width:34px;height:34px;background:#fff;border:1px solid var(--line);border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--ink-2);box-shadow:0 2px 6px rgba(0,0,0,.06)}
.prod-quick button:hover{color:var(--bo-red);border-color:var(--bo-red)}
.prod-quick i{font-size:1.125rem}

/* ===== LIST VIEW ===== */
.products-grid.list-view{grid-template-columns:1fr;gap:14px}
.products-grid.list-view .prod-card{flex-direction:row;align-items:stretch}
.products-grid.list-view .prod-card .img{width:240px;flex-shrink:0;aspect-ratio:1/1;padding:8px}
.products-grid.list-view .prod-card .body{
  flex:1;flex-direction:row;align-items:center;gap:32px;padding:20px 24px;
}
.products-grid.list-view .prod-card .body-main{flex:1;min-width:0;display:flex;flex-direction:column}
.products-grid.list-view .prod-card h3{min-height:auto;margin:0 0 8px;font-size:1rem}
.products-grid.list-view .prod-card .specs{margin:0;flex-wrap:wrap}
.products-grid.list-view .prod-card .footer,
.products-grid.list-view .prod-card .prod-footer{
  flex-direction:column;align-items:flex-end;gap:12px;
  margin-top:0;flex-shrink:0;min-width:170px;text-align:right;
}
.products-grid.list-view .prod-card .price-block{align-items:flex-end}
.products-grid.list-view .prod-card .add-btn{padding:11px 22px;font-size:0.875rem}

@media (max-width:768px){
  .products-grid.list-view .prod-card{flex-direction:column}
  .products-grid.list-view .prod-card .img{width:100%}
  .products-grid.list-view .prod-card .body{flex-direction:column;align-items:stretch;padding:14px 16px 18px}
  .products-grid.list-view .prod-card .footer,
  .products-grid.list-view .prod-card .prod-footer{align-items:stretch;flex-direction:row;justify-content:space-between;min-width:auto;text-align:left}
  .products-grid.list-view .prod-card .price-block{align-items:flex-start}
}

/* ===== PAGINATION =====
   WCAG 2.1 AA:
   - SC 1.4.3 Contrast: testo del current `#fff` su `--bo-red`(#C8102E) ≈ 5.88:1 ✓
   - SC 1.4.11 Non-text Contrast: border `--ink-3`(#666A75) su #fff ≈ 5.41:1 ✓ (>3:1)
   - SC 2.4.7 Focus Visible: outline 3px nero su :focus E :focus-visible (21:1 su #fff)
   Sovrascrive woocommerce.css del plugin (selettori .woocommerce nav.woocommerce-pagination ul li…)
   e neutralizza il reset globale `*:focus:not(:focus-visible){outline:none}` di base.css. */
.pagination,
.woocommerce nav.woocommerce-pagination ul.page-numbers,
.woocommerce-pagination ul.page-numbers{display:flex;justify-content:center;align-items:center;gap:6px;margin:36px 0 0;flex-wrap:wrap;list-style:none;padding:0;border:0}
.woocommerce nav.woocommerce-pagination ul.page-numbers li,
.woocommerce-pagination ul.page-numbers li{margin:0;padding:0;border:0;list-style:none;float:none;display:inline-flex}
.pagination a,.pagination span,
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:40px;height:40px;padding:0 12px;
  border:1px solid var(--ink-3);border-radius:4px;
  font-size:0.875rem;font-weight:600;color:var(--ink);text-decoration:none;background:#fff;
}
.pagination a:hover,
.woocommerce nav.woocommerce-pagination ul li a:hover{
  background:#fff;border-color:var(--bo-red);color:var(--bo-red);
}
/* Focus indicator visibile e robusto (outline nero alto contrasto su qualunque sfondo) */
.woocommerce nav.woocommerce-pagination ul li a:focus,
.woocommerce nav.woocommerce-pagination ul li a:focus-visible{
  outline:3px solid #000;outline-offset:2px;
  background:#fff;color:var(--bo-red);border-color:var(--bo-red);
}
/* Pagina corrente — !important per battere caching o CSS optimizer che invertono l'ordine */
.pagination .current,.page-numbers.current,
.woocommerce nav.woocommerce-pagination ul li span.current,
.woocommerce nav.woocommerce-pagination ul li a.current{
  background:var(--bo-red) !important;
  border-color:var(--bo-red) !important;
  color:#fff !important;
}
.pagination .dots,.page-numbers.dots,
.woocommerce nav.woocommerce-pagination ul li span.dots{
  border:0;background:transparent;color:var(--ink-2);
}
.pagination .nav i,.pagination .next i,.pagination .prev i{font-size:1.125rem}

/* ===== SEO TEXT (variante categoria con colonne) ===== */
.bo-category .seo-text,
.bo-shop .seo-text{padding:48px 0;background:var(--bg-2);border-top:1px solid var(--line)}
.bo-category .seo-text h2,
.bo-shop .seo-text h2{font-size:1.5rem;font-weight:700;margin:0 0 16px;letter-spacing:-0.01em}
.bo-category .seo-text h3,
.bo-shop .seo-text h3{font-size:1.0625rem;font-weight:700;margin:24px 0 10px}
.bo-category .seo-text ul,
.bo-shop .seo-text ul{margin:0 0 14px;padding-left:0;list-style:none}
.bo-category .seo-text ul li,
.bo-shop .seo-text ul li{padding:6px 0 6px 22px;position:relative;color:var(--ink-2)}
.bo-category .seo-text ul li::before,
.bo-shop .seo-text ul li::before{content:"";position:absolute;left:0;top:13px;width:12px;height:2px;background:var(--bo-red)}

.seo-cols{display:grid;grid-template-columns:repeat(3,1fr);gap:32px;margin-top:24px}
.seo-col{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:22px}
.seo-col h3{margin:0 0 12px;font-size:1rem}
.seo-col ul{margin:0;max-width:none}

/* ===== REASSURANCE ===== */
.reassurance{padding:48px 0;background:var(--bg-2)}
.reassurance-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.reassurance-item{display:flex;gap:14px;align-items:flex-start;padding:22px;background:#fff;border-radius:12px;box-shadow:0 1px 3px rgba(0,0,0,.04)}
.reassurance-item i{font-size:1.875rem;color:var(--bo-red);flex-shrink:0}
.reassurance-item strong{display:block;font-size:0.9rem;font-weight:700;margin-bottom:4px;color:var(--ink)}
.reassurance-item span{font-size:0.78rem;color:var(--ink-3);line-height:1.5}

/* ===== MOBILE FILTERS ===== */
.mobile-filter-btn{
  display:none;
  background:var(--bo-red);color:#fff;
  border:none;border-radius:var(--radius);
  padding:12px 18px;font-size:0.875rem;font-weight:600;cursor:pointer;font-family:inherit;
  align-items:center;gap:8px;width:100%;justify-content:center;margin-bottom:16px;
}
.mobile-filter-btn i{font-size:1.125rem}
.filters-close{
  display:none;
  background:none;border:0;cursor:pointer;font-size:1.5rem;color:var(--ink);
  width:36px;height:36px;align-items:center;justify-content:center;
}
.filters-backdrop{
  position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:198;
  opacity:0;pointer-events:none;transition:opacity .2s;
}
.filters-backdrop.is-active{opacity:1;pointer-events:auto}

/* === Anteprima filtri pendenti ===
   1. Banner giallo informativo sopra alla griglia
   2. Griglia prodotti sbiadita (opacity .45)
   3. Bottone "Applica filtri" pulsa per attirare l'attenzione */
.cat-main{position:relative}

.bo-filter-notice{
  display:flex;align-items:center;gap:10px;
  background:#FFF8E1;border:1px solid #FFCD4E;
  color:#664400;
  padding:12px 16px;border-radius:8px;
  margin-bottom:16px;
  font-size:0.875rem;line-height:1.45;
  animation:bo-fade-in .2s ease-out;
}
.bo-filter-notice[hidden]{display:none}
.bo-filter-notice i{font-size:1.25rem;color:#C8102E;flex-shrink:0}
.bo-filter-notice strong{font-weight:800;color:#0F1419}
@keyframes bo-fade-in{from{opacity:0;transform:translateY(-4px)} to{opacity:1;transform:none}}

/* Griglia prodotti in stato pending */
.products-grid.is-pending{
  opacity:.45;
  pointer-events:none;
  filter:saturate(.6);
  transition:opacity .2s, filter .2s;
}

/* Bottone Apply pulsante quando ci sono modifiche pendenti */
.filter-apply-main.is-pulsing{
  background:#C8102E;
  animation:bo-pulse 1.4s ease-in-out infinite;
  box-shadow:0 0 0 0 rgba(200,16,46,.5);
}
@keyframes bo-pulse{
  0%   { box-shadow:0 0 0 0 rgba(200,16,46,.55) }
  70%  { box-shadow:0 0 0 12px rgba(200,16,46,0) }
  100% { box-shadow:0 0 0 0 rgba(200,16,46,0) }
}
.filter-apply-main.is-pulsing:hover{animation:none}

/* ===== RESPONSIVE ===== */
@media (max-width:1280px){
  .products-grid{grid-template-columns:repeat(2,1fr)}
  .seo-cols{grid-template-columns:1fr}
}
@media (max-width:1024px){
  .cat-layout{grid-template-columns:1fr;gap:0}
  .mobile-filter-btn{display:inline-flex}
  .reassurance-grid{grid-template-columns:repeat(2,1fr)}

  /* Filtri FULLSCREEN drawer da destra (occupa tutta la viewport) */
  .filters{
    position:fixed;top:0;right:0;bottom:0;left:0;
    width:100vw;height:100vh;max-width:100vw;
    background:#fff;z-index:199;padding:18px 18px 96px;
    overflow-y:auto;-webkit-overflow-scrolling:touch;
    transform:translateX(100%);
    transition:transform .25s ease-out;
    border-radius:0;margin:0;
    box-shadow:none;
  }
  .filters.is-open{transform:translateX(0)}
  .filters-close{display:inline-flex}
  body.bo-filters-open{overflow:hidden}

  /* Sticky bottom: bottone "Applica filtri" sul drawer mobile.
     Larghezza confortevole (non a tutta pagina, non strettissimo). */
  .filters .filter-apply-main{
    position:sticky;bottom:12px;
    display:flex;align-items:center;justify-content:center;gap:8px;
    margin:28px auto 0;
    width:calc(100% - 32px);
    max-width:420px;
    padding:13px 24px;border-radius:30px;
    font-size:0.9rem;font-weight:700;
    background:#C8102E;color:#fff;
    box-shadow:0 4px 14px rgba(0,0,0,.18);
  }
  .filters .filter-apply-main:hover{background:#9F0B23}
  .filters form{display:flex;flex-direction:column}
}
@media (max-width:768px){
  .reassurance-grid{grid-template-columns:1fr}
  .cat-header h1{font-size:1.375rem}
  /* Toggle griglia/lista nascosto su mobile: su 1 colonna la "lista" non aggiunge valore. */
  .view-toggle{display:none}
}

/* Mobile: card prodotto in colonna singola, footer impilato (prezzo sopra,
   bottone full-width sotto) per evitare overflow del prezzo grande accanto al
   pulsante "Aggiungi/Acquista". */
@media (max-width:600px){
  .products-grid{grid-template-columns:1fr;gap:14px}
  .prod-card .body{padding:12px 14px 16px}
  .prod-card h3{font-size:1rem}
  .prod-card .footer,
  .prod-card .prod-footer{
    flex-direction:column;align-items:stretch;gap:12px;
  }
  .prod-card .price-block{align-items:flex-start}
  .prod-card .price-block .now,
  .prod-card .price-block ins,
  .prod-card .price-block .woocommerce-Price-amount{font-size:1.25rem}
  .prod-card .add-btn{
    justify-content:center;width:100%;
    padding:11px 18px;font-size:0.875rem;
    min-height:44px; /* SC 2.5.5 target size */
  }
  /* Quick-actions sempre visibili su touch (no hover) */
  .prod-card .prod-quick{opacity:1;transform:none}
}
