/* ============================================================
   PrezziTop — Stylesheet principale
   ============================================================ */

:root {
  --blue:       #2563eb;
  --blue-dark:  #1d4ed8;
  --blue-light: #eff6ff;
  --green:      #16a34a;
  --orange:     #ea580c;
  --red:        #dc2626;
  --gray-50:    #f9fafb;
  --gray-100:   #f3f4f6;
  --gray-200:   #e5e7eb;
  --gray-400:   #9ca3af;
  --gray-500:   #6b7280;
  --gray-600:   #4b5563;
  --gray-800:   #1f2937;
  --gray-900:   #111827;
  --white:      #ffffff;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow-md:  0 4px 12px rgba(0,0,0,.1);
  --shadow-lg:  0 8px 24px rgba(0,0,0,.12);
  --radius:     10px;
  --radius-sm:  6px;
}

/* ---- Reset + Base ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--gray-800);
  background: var(--gray-50);
  line-height: 1.6;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
h1,h2,h3 { line-height: 1.2; }

/* ---- Layout ------------------------------------------------------------ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }

/* ---- Header ------------------------------------------------------------ */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex; align-items: center; gap: 1rem;
  padding-top: .75rem; padding-bottom: .75rem;
}
.logo { display: flex; align-items: center; gap: .4rem; font-weight: 700; font-size: 1.25rem; color: var(--blue); }
.logo:hover { text-decoration: none; }
.logo-icon { font-size: 1.4rem; }
.search-form {
  flex: 1; max-width: 520px; display: flex;
  border: 2px solid var(--gray-200); border-radius: 30px; overflow: hidden;
  transition: border-color .2s;
}
.search-form:focus-within { border-color: var(--blue); }
.search-input {
  flex: 1; border: none; padding: .5rem 1rem; font-size: .95rem; outline: none;
  background: transparent;
}
.search-btn {
  background: var(--blue); color: var(--white); border: none; padding: .5rem .9rem;
  cursor: pointer; display: flex; align-items: center; transition: background .2s;
}
.search-btn:hover { background: var(--blue-dark); }
.main-nav { display: flex; gap: 1.5rem; align-items: center; }
.main-nav a { color: var(--gray-600); font-weight: 500; white-space: nowrap; }
.main-nav a:hover { color: var(--blue); text-decoration: none; }

/* Dropdown menu categorie */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { cursor: pointer; }
.nav-dropdown-menu {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 220px; background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); border: 1px solid var(--gray-200);
  padding: .4rem 0; z-index: 100;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: flex; justify-content: space-between; align-items: center;
  padding: .5rem 1rem; color: var(--gray-800); font-size: .9rem;
  font-weight: 400;
}
.nav-dropdown-menu a:hover { background: var(--gray-50); color: var(--blue); text-decoration: none; }
.nav-dropdown-menu .dd-count { font-size: .75rem; color: var(--gray-400); margin-left: .5rem; }
.nav-dropdown-menu .dd-all { border-top: 1px solid var(--gray-200); margin-top: .3rem; color: var(--blue); font-weight: 600; }

/* Pagina categorie gerarchica */
.macro-section { margin-bottom: 2.5rem; }
.macro-heading { display: flex; align-items: baseline; gap: 1rem; text-decoration: none; color: var(--gray-900); margin-bottom: 1rem; }
.macro-heading h2 { font-size: 1.2rem; font-weight: 700; }
.macro-heading:hover h2 { color: var(--blue); }
.macro-count { font-size: .85rem; color: var(--gray-400); }
.subcats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .6rem; }
.subcat-card {
  display: flex; flex-direction: column; gap: .2rem; padding: .7rem 1rem;
  background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius-sm);
  text-decoration: none; color: var(--gray-800); transition: border-color .15s, background .15s;
}
.subcat-card:hover { border-color: var(--blue); background: var(--blue-light); text-decoration: none; }
.subcat-name { font-size: .88rem; font-weight: 500; }
.subcat-count { font-size: .75rem; color: var(--gray-400); }
.mobile-menu-btn { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; }
.mobile-menu-btn span { width: 22px; height: 2px; background: var(--gray-600); display: block; }

/* ---- Breadcrumb -------------------------------------------------------- */
.breadcrumb-bar { background: var(--white); border-bottom: 1px solid var(--gray-200); padding: .5rem 0; font-size: .85rem; }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem; align-items: center; }
.breadcrumb li { display: flex; align-items: center; gap: .25rem; }
.breadcrumb a { color: var(--gray-600); }
.breadcrumb a:hover { color: var(--blue); }
.bc-sep { color: var(--gray-400); }

/* ---- Main content ------------------------------------------------------ */
.site-main { padding: 1.5rem 0 3rem; }

/* ---- Hero -------------------------------------------------------------- */
.hero {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #3b82f6 100%);
  color: var(--white); padding: 4rem 0;
}
.hero-inner { text-align: center; }
.hero h1 { font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 800; margin-bottom: 1rem; }
.hero h1 span { color: #bfdbfe; }
.hero-sub { font-size: 1.1rem; opacity: .9; margin-bottom: 2rem; }
.hero-search {
  display: flex; max-width: 540px; margin: 0 auto;
  border-radius: 40px; overflow: hidden; box-shadow: var(--shadow-lg);
}
.hero-search input {
  flex: 1; border: none; padding: .9rem 1.5rem; font-size: 1rem; outline: none;
}
.hero-search button {
  background: var(--orange); color: var(--white); border: none;
  padding: .9rem 1.75rem; font-size: 1rem; font-weight: 600; cursor: pointer;
  transition: background .2s;
}
.hero-search button:hover { background: #c2410c; }

/* ---- Section ----------------------------------------------------------- */
.section { margin-top: 2.5rem; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; }
.section-header h2 { font-size: 1.35rem; font-weight: 700; }
.see-all { color: var(--blue); font-weight: 500; font-size: .9rem; }

/* ---- Category cards ---------------------------------------------------- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: .75rem;
}
.categories-grid--full { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.cat-card {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 1.25rem 1rem; text-align: center; color: var(--gray-800);
  transition: all .2s; display: flex; flex-direction: column; gap: .3rem;
}
.cat-card:hover {
  border-color: var(--blue); box-shadow: var(--shadow-md); transform: translateY(-2px);
  text-decoration: none; color: var(--blue);
}
.cat-name { font-weight: 600; font-size: .95rem; }
.cat-count { font-size: .8rem; color: var(--gray-400); }

/* ---- Product grid ------------------------------------------------------ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.products-grid--small { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }

.product-card {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; color: var(--gray-800);
  transition: all .2s;
}
.product-card:hover {
  border-color: var(--blue); box-shadow: var(--shadow-md); transform: translateY(-2px);
  text-decoration: none;
}
.product-img {
  height: 180px; overflow: hidden; background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
}
.product-img img { width: 100%; height: 100%; object-fit: contain; padding: .5rem; }
.img-placeholder { color: var(--gray-400); font-size: .85rem; }
.img-placeholder.large { height: 300px; display: flex; align-items: center; justify-content: center; }
.product-img--placeholder { background: var(--gray-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' fill='none' stroke='%23cbd5e1' stroke-width='1.5' viewBox='0 0 24 24'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='m21 15-5-5L5 21'/%3E%3C/svg%3E") center/48px no-repeat; }
.price--nd { font-size: .85rem; color: var(--gray-400); font-weight: 400; }
.product-info { padding: .875rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.product-brand { font-size: .75rem; color: var(--blue); font-weight: 600; text-transform: uppercase; }
.product-name { font-size: .9rem; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
h2.product-name { font-size: .9rem; }
h3.product-name { font-size: .85rem; }
.product-price-row { display: flex; align-items: baseline; gap: .3rem; flex-wrap: wrap; margin-top: auto; padding-top: .5rem; }
.price-from { font-size: .75rem; color: var(--gray-400); }
.price { font-size: 1.1rem; font-weight: 700; color: var(--gray-900); }
.price-to { font-size: .8rem; color: var(--gray-400); }
.price-best { color: var(--green); }
.merchants-badge {
  font-size: .75rem; background: #eff6ff; color: var(--blue); border-radius: 20px;
  padding: .2rem .6rem; width: fit-content; font-weight: 600;
}
.variant-badge {
  display: inline-block; font-size: .7rem; background: #f0fdf4; color: #16a34a;
  border-radius: 20px; padding: .15rem .5rem; margin-left: .3rem; font-weight: 600;
}
.price-range-sep { color: var(--gray-400); font-weight: 400; }
.price-max { font-size: .9rem; color: var(--gray-600); font-weight: 500; }
.single-badge {
  font-size: .75rem; background: var(--gray-100); color: var(--gray-600); border-radius: 20px;
  padding: .2rem .6rem; width: fit-content;
}

/* ---- Toolbar / sort ---------------------------------------------------- */
.toolbar { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.sort-form { display: flex; align-items: center; gap: .5rem; }
.sort-form label { font-size: .9rem; color: var(--gray-600); }
.sort-form select { padding: .35rem .6rem; border: 1px solid var(--gray-200); border-radius: var(--radius-sm); font-size: .9rem; }
.category-header { margin-bottom: 1.5rem; }
.category-count { color: var(--gray-400); font-size: .9rem; }

/* ---- Pagination -------------------------------------------------------- */
.pagination { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin-top: 2rem; }
.page-btn {
  padding: .45rem .85rem; border: 1px solid var(--gray-200); border-radius: var(--radius-sm);
  background: var(--white); color: var(--gray-600); font-size: .9rem;
}
.page-btn:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.page-btn.active { background: var(--blue); color: var(--white); border-color: var(--blue); }

/* ---- Comparison page --------------------------------------------------- */
.compare-hero {
  display: grid; grid-template-columns: 300px 1fr; gap: 2rem;
  background: var(--white); border-radius: var(--radius); padding: 2rem;
  box-shadow: var(--shadow-sm); margin-bottom: 2rem;
}
.compare-hero-img { border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--gray-50); min-height: 280px; }
.compare-hero-img img { width: 100%; height: 100%; object-fit: contain; padding: 1rem; }
.product-title { font-size: 1.5rem; font-weight: 700; margin: .5rem 0 1rem; }
.compare-summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin-bottom: 1rem; }
.compare-stat { background: var(--gray-50); border-radius: var(--radius-sm); padding: .75rem; }
.compare-stat.saving { background: #f0fdf4; }
.stat-label { display: block; font-size: .75rem; color: var(--gray-400); margin-bottom: .2rem; }
.stat-value { font-size: 1.15rem; font-weight: 700; }
.saving-value { color: var(--green); }
.product-ean, .product-mpn { font-size: .8rem; color: var(--gray-400); }

/* ---- Comparison table -------------------------------------------------- */
.compare-section { margin-bottom: 2rem; }
.compare-table-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 1rem; }
.compare-table-wrapper { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.compare-table { width: 100%; border-collapse: collapse; background: var(--white); }
.compare-table thead th {
  background: var(--gray-50); padding: .85rem 1rem; text-align: left;
  font-size: .85rem; color: var(--gray-600); border-bottom: 2px solid var(--gray-200);
  position: sticky; top: 0;
}
.compare-table tbody td { padding: .85rem 1rem; border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:hover { background: var(--gray-50); }
.best-offer { background: #f0fdf4 !important; }
.best-label {
  display: block; font-size: .7rem; font-weight: 700; color: var(--green);
  text-transform: uppercase; letter-spacing: .05em; margin-bottom: .2rem;
}
.merchant-cell strong { font-size: .95rem; }
.price-cell .price { font-size: 1.15rem; font-weight: 700; }
.free-delivery { color: var(--green); font-weight: 600; }
.store-price { color: var(--gray-400); text-decoration: line-through; font-size: .9rem; }
.affiliate-note { font-size: .78rem; color: var(--gray-400); margin-top: .75rem; }

/* ---- CTA buttons ------------------------------------------------------- */
.btn-offer {
  display: inline-block; background: var(--blue); color: var(--white);
  padding: .55rem 1.25rem; border-radius: 6px; font-size: .9rem; font-weight: 600;
  white-space: nowrap; transition: background .2s;
}
.btn-offer:hover { background: var(--blue-dark); color: var(--white); text-decoration: none; }
.btn-offer--best { background: var(--green); }
.btn-offer--best:hover { background: #15803d; }
.btn-offer--large { padding: .85rem 2rem; font-size: 1rem; width: 100%; text-align: center; display: block; margin-top: 1.25rem; }
.btn-amazon { background: #ff9900; color: #111 !important; }
.btn-amazon:hover { background: #e68900; color: #111 !important; text-decoration: none; }
.amazon-row td { background: #fffbf0; }

/* ---- Single product page ----------------------------------------------- */
.product-page {
  display: grid; grid-template-columns: 340px 1fr; gap: 2rem;
  background: var(--white); border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow-sm); margin-bottom: 2rem;
}
.product-page-img { border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--gray-50); min-height: 300px; }
.product-page-img img { width: 100%; height: 100%; object-fit: contain; padding: 1rem; }
.offer-box { background: var(--gray-50); border-radius: var(--radius); padding: 1.25rem; margin: 1rem 0; }
.offer-price { display: flex; align-items: baseline; gap: .5rem; margin-bottom: .75rem; }
.price-label { font-size: .85rem; color: var(--gray-400); }
.price-big { font-size: 2rem; font-weight: 800; color: var(--gray-900); }
.offer-delivery, .offer-merchant { font-size: .9rem; color: var(--gray-600); margin-bottom: .4rem; }
.specs-list { margin-top: 1.25rem; }
.spec-row { display: flex; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid var(--gray-100); font-size: .9rem; }
.spec-row span:first-child { color: var(--gray-400); min-width: 100px; }
.spec-row span:last-child { font-weight: 500; }

/* ---- Description ------------------------------------------------------- */
.product-description { background: var(--white); border-radius: var(--radius); padding: 1.75rem; margin-bottom: 2rem; box-shadow: var(--shadow-sm); }
.product-description h2 { margin-bottom: 1rem; font-size: 1.15rem; }
.desc-content { color: var(--gray-600); font-size: .95rem; line-height: 1.8; }

/* ---- Related products -------------------------------------------------- */
.related-section { margin-top: 2rem; }
.related-section h2 { font-size: 1.15rem; margin-bottom: 1rem; }

/* ---- Page title -------------------------------------------------------- */
.page-title { font-size: 1.75rem; font-weight: 700; margin-bottom: .5rem; }

/* ---- Empty state ------------------------------------------------------- */
.empty-state { text-align: center; padding: 3rem; color: var(--gray-400); }

/* ---- Footer ------------------------------------------------------------ */
.site-footer { background: var(--gray-900); color: var(--gray-400); margin-top: 3rem; padding-top: 2.5rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2rem; padding-bottom: 2rem; }
.footer-col strong { color: var(--white); display: block; margin-bottom: .75rem; }
.footer-col p { font-size: .9rem; line-height: 1.6; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: .4rem; }
.footer-col a { color: var(--gray-400); font-size: .9rem; }
.footer-col a:hover { color: var(--white); text-decoration: none; }
.footer-bottom { border-top: 1px solid #374151; padding: 1rem 0; }
.footer-bottom p { font-size: .8rem; }

/* ---- Responsive -------------------------------------------------------- */
@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; }
  .search-form { order: 3; width: 100%; max-width: 100%; }
  .main-nav { display: none; }
  .hero { padding: 2.5rem 0; }
  .compare-hero { grid-template-columns: 1fr; }
  .compare-hero-img { min-height: 220px; }
  .compare-summary { grid-template-columns: 1fr 1fr; }
  .product-page { grid-template-columns: 1fr; }
  .compare-table th:nth-child(3), .compare-table td:nth-child(3),
  .compare-table th:nth-child(4), .compare-table td:nth-child(4) { display: none; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

@media (max-width: 480px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .product-img { height: 140px; }
}

/* ---- Pagina Ricerca ---------------------------------------------------- */
.search-page-header { margin-bottom: 1.5rem; margin-top: 1.75rem; }
.search-page-header .page-title { margin-bottom: .25rem; }
.search-page-header .page-title span { color: var(--blue); }
.search-count-top { font-size: .95rem; color: var(--gray-500); }

.search-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  align-items: start;
}

/* Sidebar filtri */
.search-filters {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.25rem;
  position: sticky;
  top: 76px;
  box-shadow: var(--shadow-sm);
}
.filter-section {
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--gray-100);
}
.filter-section:last-of-type { padding-bottom: 0; margin-bottom: 0; border-bottom: none; }
.filter-title {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gray-400);
  margin-bottom: .75rem;
}
.filter-options { display: flex; flex-direction: column; gap: .5rem; }
.filter-radio {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
  color: var(--gray-600);
  cursor: pointer;
  padding: .2rem 0;
}
.filter-radio:has(input:checked) { color: var(--blue); font-weight: 600; }
.filter-radio input { accent-color: var(--blue); width: 15px; height: 15px; }
.filter-select {
  width: 100%;
  padding: .5rem .7rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  background: #fff;
  color: var(--gray-800);
  cursor: pointer;
}
.filter-select:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
.filter-price-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .75rem;
}
.filter-price-row span { color: var(--gray-400); font-size: .9rem; flex-shrink: 0; }
.filter-price-input {
  flex: 1;
  min-width: 0;
  padding: .5rem .6rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  color: var(--gray-800);
}
.filter-price-input:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
.filter-apply-btn {
  width: 100%;
  padding: .6rem;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.filter-apply-btn:hover { background: var(--blue-dark); }
.filter-reset {
  display: block;
  margin-top: 1rem;
  text-align: center;
  font-size: .82rem;
  color: var(--gray-400);
  text-decoration: none;
  padding: .3rem;
  border-radius: var(--radius-sm);
  transition: color .15s;
}
.filter-reset:hover { color: var(--red); }

/* Area risultati */
.search-results { min-width: 0; }
.search-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--gray-200);
}
.search-count { font-size: .9rem; color: var(--gray-500); }
.search-count strong { color: var(--gray-900); font-weight: 600; }
.search-cat-label {
  display: inline-block;
  margin-top: .3rem;
  font-size: .72rem;
  color: var(--gray-400);
  background: var(--gray-100);
  padding: .1rem .4rem;
  border-radius: 4px;
}
.search-hint {
  color: var(--gray-400);
  padding: 3rem 0;
  text-align: center;
  font-size: 1.05rem;
}

/* Sezione varianti (pagina confronto) */
.variants-section { margin: 2rem 0; }
.variants-section h2 { font-size: 1.1rem; margin-bottom: 1rem; display: flex; align-items: center; gap: .6rem; }
.variants-total { font-size: .75rem; font-weight: 600; color: #7c3aed; background: #ede9fe; padding: .15rem .5rem; border-radius: 20px; }
.variants-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.variant-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  width: 80px;
  padding: .4rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
  background: #fff;
}
.variant-card:hover { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-light); text-decoration: none; }
.variant-card img { width: 60px; height: 60px; object-fit: contain; }
.variant-img-placeholder { width: 60px; height: 60px; background: var(--gray-100); border-radius: 4px; }
.variant-price { font-size: .72rem; font-weight: 600; color: var(--gray-800); text-align: center; }

/* Chip taglia / colore (label mode) */
.variant-card--label {
  width: auto;
  min-width: 48px;
  padding: .4rem .65rem;
  gap: .15rem;
}
.variant-label {
  font-size: .9rem;
  font-weight: 700;
  color: var(--gray-800);
  letter-spacing: .01em;
}
.variant-card--label .variant-price {
  font-size: .67rem;
  color: var(--gray-500);
  font-weight: 500;
}
.variant-card--label:hover .variant-label { color: var(--blue); }
.variants-grid--labels { gap: .4rem; }

/* Nota varianti non distinguibili */
.variants-note {
  font-size: .9rem; color: var(--gray-600);
  margin: 0;
}
.variants-note a { font-weight: 600; color: var(--blue); }
.variants-note a:hover { text-decoration: underline; }

/* Badge varianti */
.variants-badge {
  display: inline-block;
  margin-top: .4rem;
  font-size: .75rem;
  font-weight: 600;
  color: #7c3aed;
  background: #ede9fe;
  padding: .2rem .55rem;
  border-radius: 20px;
}

/* Brand nav sidebar */
.brand-nav { display: flex; flex-direction: column; gap: .1rem; }
.brand-nav-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: .3rem .5rem; border-radius: 4px;
  font-size: .82rem; color: var(--gray-700); text-decoration: none;
  transition: background .12s;
}
.brand-nav-item:hover { background: var(--gray-100); color: var(--blue); }
.brand-nav-item.active { background: var(--blue-light); color: var(--blue); font-weight: 600; }
.brand-nav-count { font-size: .72rem; color: var(--gray-400); }
.brand-nav-item.active .brand-nav-count { color: var(--blue); }
.brand-nav-reset {
  display: block; font-size: .78rem; color: var(--gray-500);
  padding: .2rem .5rem; margin-bottom: .3rem; text-decoration: none;
}
.brand-nav-reset:hover { color: var(--red, #dc2626); }

/* Menu sottocategorie sidebar */
.subcat-nav { display: flex; flex-direction: column; gap: 2px; }
.subcat-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .35rem .5rem;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  color: var(--gray-700, var(--gray-600));
  text-decoration: none;
  transition: background .12s, color .12s;
}
.subcat-nav-item:hover { background: var(--blue-light); color: var(--blue); text-decoration: none; }
.subcat-nav-item.active { background: var(--blue-light); color: var(--blue); font-weight: 600; }
.subcat-nav-parent { color: var(--gray-400); font-size: .82rem; margin-bottom: .25rem; }
.subcat-nav-count {
  font-size: .75rem;
  color: var(--gray-400);
  background: var(--gray-100);
  padding: .1rem .35rem;
  border-radius: 10px;
  flex-shrink: 0;
  margin-left: .25rem;
}
.subcat-nav-item.active .subcat-nav-count { background: #dbeafe; color: var(--blue); }

@media (max-width: 900px) {
  .search-layout { grid-template-columns: 200px 1fr; gap: 1.25rem; }
}
@media (max-width: 768px) {
  .search-layout { grid-template-columns: 1fr; }
  .search-filters { position: static; }
  .search-page-header .page-title { font-size: 1.4rem; }
  .subcat-nav { flex-direction: row; flex-wrap: wrap; gap: .4rem; }
  .subcat-nav-item { padding: .3rem .6rem; }
  .subcat-nav-count { display: none; }
}

/* ---- Image Gallery -------------------------------------------------------- */
.product-gallery { display: flex; flex-direction: column; gap: .75rem; }
.product-gallery__main {
  position: relative;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
}
.product-gallery__main img {
  max-width: 100%; max-height: 100%;
  width: 100%; height: 100%;
  object-fit: contain;
  transition: opacity .2s;
}
.product-gallery__thumbs {
  display: flex; gap: .45rem; flex-wrap: wrap;
}
.product-gallery__thumb {
  width: 64px; height: 64px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  opacity: .65;
  transition: opacity .15s, border-color .15s;
  flex-shrink: 0;
}
.product-gallery__thumb:hover { opacity: .9; border-color: var(--gray-400); }
.product-gallery__thumb.active { opacity: 1; border-color: var(--blue); }
.product-gallery__thumb img { width: 100%; height: 100%; object-fit: contain; }

/* ---- Savings badge -------------------------------------------------------- */
.savings-badge {
  display: inline-flex; align-items: center; gap: .35rem;
  background: #dcfce7; color: #15803d;
  font-size: .78rem; font-weight: 700;
  padding: .28rem .7rem; border-radius: 99px;
  margin-top: .4rem;
}
.savings-badge .savings-pct { font-size: .88rem; }
.rrp-price {
  font-size: .85rem; color: var(--gray-500);
  text-decoration: line-through; margin-right: .3rem;
}

/* ---- Product attributes grid --------------------------------------------- */
.product-attrs { margin: 1.5rem 0; }
.product-attrs h2 { font-size: 1rem; font-weight: 700; margin-bottom: .75rem; color: var(--gray-800); }
.product-attrs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: .6rem .75rem;
}
.attr-item { display: flex; flex-direction: column; gap: .1rem; }
.attr-label {
  font-size: .68rem; font-weight: 600;
  color: var(--gray-500); text-transform: uppercase; letter-spacing: .05em;
}
.attr-value { font-size: .9rem; color: var(--gray-800); font-weight: 500; }
.attr-value--instock  { color: var(--green); font-weight: 600; }
.attr-value--outofstock { color: var(--red);  font-weight: 600; }

/* ---- Specifications collapsible ------------------------------------------ */
.specs-section { margin: 1.5rem 0; }
.specs-toggle {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--gray-100); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: .75rem 1rem;
  font-weight: 600; font-size: .9rem; cursor: pointer;
  transition: background .12s;
}
.specs-toggle:hover { background: var(--gray-200); }
.specs-toggle .specs-icon { transition: transform .2s; font-style: normal; }
.specs-section.open .specs-toggle .specs-icon { transform: rotate(180deg); }
.specs-body {
  display: none;
  border: 1px solid var(--gray-200); border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 1rem 1.1rem;
  background: var(--white);
}
.specs-section.open .specs-body { display: block; }
.specs-body pre {
  white-space: pre-wrap; font-family: inherit;
  font-size: .85rem; color: var(--gray-700); line-height: 1.7;
}

/* ---- FAQ accordion -------------------------------------------------------- */
.faq-section { margin: 2rem 0; }
.faq-section > h2 { font-size: 1.15rem; font-weight: 700; margin-bottom: .75rem; }
.faq-item { border-bottom: 1px solid var(--gray-200); }
.faq-question {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: .9rem 0; cursor: pointer;
  font-weight: 600; color: var(--gray-800);
  gap: .75rem; list-style: none;
  font-size: .95rem;
}
.faq-question .faq-icon { font-size: 1.3rem; color: var(--blue); flex-shrink: 0; line-height: 1; }
.faq-item.open .faq-question .faq-icon { transform: rotate(45deg); }
.faq-answer {
  display: none; padding: 0 0 .9rem;
  color: var(--gray-600); font-size: .9rem; line-height: 1.75;
}
.faq-item.open .faq-answer { display: block; }

@media (max-width: 600px) {
  .product-gallery__thumb { width: 52px; height: 52px; }
  .product-attrs-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Static pages (legal, chi siamo, contatti) ----------------------------- */
.static-page {
  max-width: 860px; margin: 2.5rem auto; padding: 0 1.25rem 3rem;
}
.static-page--narrow { max-width: 660px; }
.static-page .page-title {
  font-size: 1.9rem; font-weight: 800; margin-bottom: .25rem; color: var(--gray-900);
}
.static-meta { color: var(--gray-500); font-size: .85rem; margin-bottom: 2rem; }
.static-lead  { font-size: 1.05rem; color: var(--gray-600); margin-bottom: 1.75rem; line-height: 1.7; }
.static-section { margin-bottom: 2rem; }
.static-section h2 {
  font-size: 1.15rem; font-weight: 700; color: var(--gray-900);
  margin-bottom: .65rem; padding-bottom: .4rem;
  border-bottom: 2px solid var(--blue-light);
}
.static-section p  { margin-bottom: .75rem; color: var(--gray-700); line-height: 1.75; }
.static-section ul { margin: .5rem 0 .75rem 1.25rem; }
.static-section ul li { margin-bottom: .4rem; color: var(--gray-700); line-height: 1.65; }
.about-lead { font-size: 1.1rem; color: var(--gray-700); line-height: 1.8; }

/* ---- How-it-works grid ---------------------------------------------------- */
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin: 1rem 0; }
.how-step {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 1.5rem;
  border: 1px solid var(--gray-200);
}
.how-num {
  display: flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--blue); color: var(--white);
  font-weight: 800; font-size: .9rem; margin-bottom: .75rem;
}
.how-step h3 { font-size: .95rem; font-weight: 700; margin-bottom: .4rem; }
.how-step p   { font-size: .88rem; color: var(--gray-600); margin: 0; }

/* ---- About stats ---------------------------------------------------------- */
.about-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; margin: 1rem 0; }
.about-stat {
  background: var(--blue-light); border-radius: var(--radius);
  padding: 1.25rem 1rem; text-align: center;
}
.about-stat-num   { display: block; font-size: 1.6rem; font-weight: 800; color: var(--blue); }
.about-stat-label { display: block; font-size: .8rem; color: var(--gray-600); margin-top: .2rem; }

/* ---- Cookie table --------------------------------------------------------- */
.cookie-table-wrap { overflow-x: auto; margin: .75rem 0 1rem; }
.cookie-table {
  width: 100%; border-collapse: collapse; font-size: .88rem;
  background: var(--white); border-radius: var(--radius-sm); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.cookie-table th {
  background: var(--gray-800); color: var(--white);
  text-align: left; padding: .65rem .9rem; font-weight: 600;
}
.cookie-table td { padding: .65rem .9rem; border-bottom: 1px solid var(--gray-200); color: var(--gray-700); }
.cookie-table tr:last-child td { border-bottom: none; }
.cookie-table code { background: var(--gray-100); padding: .1rem .35rem; border-radius: 3px; font-size: .83rem; }

/* ---- Contact form --------------------------------------------------------- */
.contact-form { background: var(--white); border-radius: var(--radius); border: 1px solid var(--gray-200); padding: 1.75rem; box-shadow: var(--shadow-sm); }
.form-row { margin-bottom: 1.15rem; }
.form-row label { display: block; font-size: .88rem; font-weight: 600; color: var(--gray-700); margin-bottom: .35rem; }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%; padding: .6rem .85rem;
  border: 1px solid var(--gray-300, #d1d5db); border-radius: var(--radius-sm);
  font-size: .95rem; color: var(--gray-800); background: var(--white);
  transition: border-color .15s;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.form-row textarea { resize: vertical; min-height: 110px; }
.btn-submit {
  display: inline-block; background: var(--blue); color: var(--white);
  font-size: .95rem; font-weight: 700; padding: .7rem 2rem;
  border: none; border-radius: var(--radius-sm); cursor: pointer;
  transition: background .15s;
}
.btn-submit:hover { background: var(--blue-dark); }
.contact-alt { margin-top: 1.25rem; font-size: .9rem; color: var(--gray-600); text-align: center; }

/* ---- Alerts --------------------------------------------------------------- */
.alert {
  padding: .85rem 1.1rem; border-radius: var(--radius-sm);
  margin-bottom: 1.25rem; font-size: .92rem;
}
.alert-success { background: #dcfce7; border: 1px solid #86efac; color: #166534; }
.alert-error   { background: #fee2e2; border: 1px solid #fca5a5; color: #991b1b; }
.alert-error ul { margin: .35rem 0 0 1.2rem; }
.alert-error ul li { margin-bottom: .2rem; }

/* ---- Cookie consent banner ------------------------------------------------ */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: var(--gray-900); color: var(--white);
  padding: 1rem 1.25rem;
  box-shadow: 0 -4px 16px rgba(0,0,0,.25);
  display: none;
}
#cookie-banner.show { display: block; }
.cookie-banner-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; flex-wrap: wrap; gap: .75rem;
}
.cookie-banner-text { flex: 1 1 300px; font-size: .88rem; line-height: 1.6; color: #e5e7eb; }
.cookie-banner-text a { color: #93c5fd; }
.cookie-banner-actions { display: flex; gap: .6rem; flex-shrink: 0; }
.cookie-btn-accept {
  background: var(--blue); color: var(--white);
  border: none; border-radius: var(--radius-sm);
  padding: .55rem 1.2rem; font-size: .88rem; font-weight: 700;
  cursor: pointer; transition: background .15s;
}
.cookie-btn-accept:hover { background: var(--blue-dark); }
.cookie-btn-decline {
  background: transparent; color: #9ca3af;
  border: 1px solid #374151; border-radius: var(--radius-sm);
  padding: .55rem 1rem; font-size: .88rem; cursor: pointer;
  transition: color .15s, border-color .15s;
}
.cookie-btn-decline:hover { color: var(--white); border-color: #6b7280; }

@media (max-width: 600px) {
  .how-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .cookie-banner-actions { width: 100%; }
  .cookie-btn-accept, .cookie-btn-decline { flex: 1; text-align: center; }
  .static-page .page-title { font-size: 1.5rem; }
}

/* ============================================================
   Mobile — Nav Drawer + Filter Sheet
   ============================================================ */

/* ---- Mobile Nav Drawer (non-media: always available, shown in mobile MQ) - */
.mobile-menu-btn {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer; padding: .4rem; margin-left: auto;
  flex-shrink: 0;
}
.mobile-menu-btn span { width: 24px; height: 2px; background: var(--gray-800); display: block; border-radius: 2px; transition: all .25s; }
.mobile-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45);
  z-index: 298; backdrop-filter: blur(2px);
}
.mobile-overlay.open { display: block; }

.mobile-nav-drawer {
  position: fixed; top: 0; left: 0; bottom: 0; width: 280px; max-width: 85vw;
  background: var(--white); z-index: 299; overflow-y: auto;
  transform: translateX(-100%); transition: transform .3s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.mobile-nav-drawer.open { transform: translateX(0); }

.mobile-nav-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--gray-200);
}
.mobile-nav-close {
  background: none; border: none; cursor: pointer; font-size: 1.5rem;
  color: var(--gray-600); line-height: 1; padding: .25rem;
}
.mobile-nav-links { padding: 1rem 0; flex: 1; }
.mobile-nav-links a {
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 1.25rem; color: var(--gray-800); font-weight: 500;
  border-bottom: 1px solid var(--gray-100); font-size: 1rem;
}
.mobile-nav-links a:hover { background: var(--blue-light); color: var(--blue); text-decoration: none; }
.mobile-nav-links a .nav-arrow { color: var(--gray-400); font-size: .85rem; }
.mobile-nav-cats { padding: 0 0 1rem; }
.mobile-nav-cats-title { padding: .6rem 1.25rem; font-size: .75rem; font-weight: 700; color: var(--gray-400); text-transform: uppercase; letter-spacing: .06em; }
.mobile-nav-cats a { padding: .7rem 1.25rem .7rem 2rem; font-size: .9rem; color: var(--gray-600); display: block; border-bottom: 1px solid var(--gray-100); }
.mobile-nav-cats a:hover { color: var(--blue); text-decoration: none; background: var(--gray-50); }

/* .search-bar-mobile rimossa — ricerca accessibile dal drawer */

/* ---- Filter Bottom Sheet ----------------------------------------------- */
.filter-fab {
  display: none; position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: var(--white);
  padding: .75rem 1.75rem; border-radius: 50px; border: none; cursor: pointer;
  box-shadow: 0 4px 20px rgba(37,99,235,.4); z-index: 200;
  font-size: .95rem; font-weight: 600; align-items: center; gap: .5rem;
  white-space: nowrap;
}
.filter-fab-badge {
  background: var(--white); color: var(--blue); border-radius: 50%;
  width: 20px; height: 20px; font-size: .72rem; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}

.filter-sheet-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 298;
}
.filter-sheet-overlay.open { display: block; }

.filter-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 299;
  background: var(--white); border-radius: 20px 20px 0 0;
  max-height: 88vh; overflow-y: auto;
  padding: 0 0 2rem; transform: translateY(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 -4px 24px rgba(0,0,0,.12);
}
.filter-sheet.open { transform: translateY(0); }
.filter-sheet-handle { width: 40px; height: 4px; background: var(--gray-200); border-radius: 4px; margin: 1rem auto .75rem; }
.filter-sheet-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: .25rem 1.25rem 1rem; border-bottom: 1px solid var(--gray-100);
}
.filter-sheet-head h3 { font-size: 1.1rem; font-weight: 700; margin: 0; }
.filter-sheet-reset { font-size: .82rem; color: var(--gray-400); text-decoration: none; }
.filter-sheet-reset:hover { color: var(--red); }
.filter-sheet-close {
  background: none; border: none; cursor: pointer;
  font-size: 1.3rem; color: var(--gray-500); line-height: 1; padding: .2rem;
}
.filter-sheet-section { padding: 1rem 1.25rem; border-bottom: 1px solid var(--gray-100); }
.filter-sheet-section:last-child { border-bottom: none; }
.filter-sheet-section-title {
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--gray-400); margin-bottom: .75rem;
}
.filter-sheet-options { display: flex; flex-direction: column; gap: .4rem; }
.filter-sheet-option {
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem 1rem; border: 2px solid var(--gray-200); border-radius: var(--radius);
  cursor: pointer; font-size: .9rem; font-weight: 500; color: var(--gray-700);
  background: none; text-align: left; width: 100%; transition: all .15s;
  text-decoration: none;
}
.filter-sheet-option.selected,
.filter-sheet-option:has(input:checked) { border-color: var(--blue); background: var(--blue-light); color: var(--blue); }
.filter-sheet-option .check { color: var(--blue); font-size: 1rem; }
.filter-sheet-cats { display: flex; flex-wrap: wrap; gap: .4rem; }
.filter-sheet-cat {
  padding: .45rem .85rem; border: 1.5px solid var(--gray-200);
  border-radius: 20px; font-size: .85rem; color: var(--gray-600); text-decoration: none;
  transition: all .15s;
}
.filter-sheet-cat:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.filter-sheet-cat.active { border-color: var(--blue); background: var(--blue-light); color: var(--blue); font-weight: 600; }
.filter-sheet-price-row { display: flex; align-items: center; gap: .5rem; margin-bottom: .75rem; }
.filter-sheet-price-row span { color: var(--gray-400); flex-shrink: 0; }
.filter-sheet-price-row input {
  flex: 1; min-width: 0; padding: .6rem .75rem;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
  font-size: .9rem; color: var(--gray-800);
}
.filter-sheet-apply {
  width: 100%; padding: .75rem; background: var(--blue); color: #fff;
  border: none; border-radius: var(--radius-sm); font-size: .95rem;
  font-weight: 700; cursor: pointer; margin-top: .25rem;
}

/* ---- Barra sottocategorie mobile (sempre visibile) --------------------- */
.mobile-subcat-bar {
  display: none; /* mostrato solo su mobile via media query */
  overflow-x: auto; white-space: nowrap;
  padding: .5rem 1rem .5rem;
  gap: .4rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.mobile-subcat-bar::-webkit-scrollbar { display: none; }
.mobile-subcat-chip {
  display: inline-block; padding: .45rem .9rem;
  border: 1.5px solid var(--gray-200); border-radius: 20px;
  font-size: .85rem; color: var(--gray-700); text-decoration: none;
  white-space: nowrap; transition: all .15s;
  background: var(--white);
}
.mobile-subcat-chip:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.mobile-subcat-chip.active { border-color: var(--blue); background: var(--blue); color: var(--white); font-weight: 600; }

/* Fix ricerca nel drawer: input non venga tagliato */
.mobile-nav-drawer form { display: flex; gap: .5rem; }
.mobile-nav-drawer form input[type="search"] {
  flex: 1; min-width: 0;
  padding: .55rem .75rem;
  border: 1px solid var(--gray-200); border-radius: 8px;
  font-size: .95rem; outline: none;
  box-sizing: border-box;
}
.mobile-nav-drawer form button[type="submit"] {
  flex-shrink: 0;
  background: var(--blue); color: #fff; border: none;
  padding: .55rem .85rem; border-radius: 8px; cursor: pointer;
}

/* ---- Comprehensive Mobile (max-width: 768px) --------------------------- */
@media (max-width: 768px) {
  /* Header */
  .header-inner { flex-wrap: nowrap; padding-top: .6rem; padding-bottom: .6rem; }
  .search-form { display: none; }
  .main-nav { display: none; }
  .mobile-menu-btn { display: flex; }
  /* Hero */
  .hero { padding: 2rem 0; }
  .hero h1 { font-size: 1.6rem; }
  .hero-sub { font-size: .95rem; margin-bottom: 1.25rem; }
  .hero-search { border-radius: 12px; }
  .hero-search input { padding: .75rem 1rem; }
  .hero-search button { padding: .75rem 1.25rem; }

  /* Categorie */
  .categories-grid { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
  .cat-card { padding: 1rem .75rem; }

  /* Prodotti grid - 2 colonne */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
  .products-grid--small { grid-template-columns: repeat(2, 1fr); }
  .product-img { height: 140px; }
  .product-info { padding: .65rem; }
  .product-name { font-size: .82rem; }
  .price { font-size: 1rem; }

  /* Filtri categoria: nascondi sidebar, mostra barra subcat e FAB */
  .mobile-subcat-bar { display: flex; }
  .search-filters { display: none !important; }
  .search-layout { grid-template-columns: 1fr; }
  .filter-fab { display: flex; }

  /* Toolbar */
  .toolbar { display: none; }

  /* Pagina prodotto singolo */
  .product-page { grid-template-columns: 1fr; gap: 1rem; padding: 1.25rem; }
  .product-page-img { min-height: 240px; }
  .price-big { font-size: 1.6rem; }

  /* Pagina confronto */
  .compare-hero { grid-template-columns: 1fr; gap: 1rem; padding: 1.25rem; }
  .compare-hero-img { min-height: 200px; }
  .compare-summary { grid-template-columns: repeat(2, 1fr); }
  .product-title { font-size: 1.2rem; }

  /* Tabella confronto → card su mobile */
  .compare-table-wrapper { overflow-x: visible; box-shadow: none; }
  .compare-table { display: block; }
  .compare-table thead { display: none; }
  .compare-table tbody { display: flex; flex-direction: column; gap: .75rem; }
  .compare-table tbody tr {
    display: grid; grid-template-columns: 1fr auto;
    background: var(--white); border: 1px solid var(--gray-200);
    border-radius: var(--radius); padding: .875rem; gap: .25rem .75rem;
    align-items: start;
  }
  .compare-table tbody tr.best-offer { border-color: var(--green); border-width: 2px; }
  .compare-table tbody td { display: block; padding: 0; border: none; font-size: .9rem; }
  .compare-table tbody td:nth-child(1) { grid-column: 1; grid-row: 1; }
  .compare-table tbody td:nth-child(2) { grid-column: 1; grid-row: 2; }
  .compare-table tbody td:nth-child(3) { grid-column: 1; grid-row: 3; }
  .compare-table tbody td:nth-child(4) { grid-column: 2; grid-row: 1 / 3; align-self: center; text-align: right; }
  .compare-table tbody td:nth-child(5) { grid-column: 2; grid-row: 3; text-align: right; }
  .price-cell .price { font-size: 1.2rem; }
  .btn-offer { padding: .5rem .85rem; font-size: .85rem; }

  /* FAQ */
  .faq-section { padding: 1.25rem; }

  /* Breadcrumb */
  .breadcrumb { font-size: .8rem; }

  /* Paginazione */
  .pagination { gap: .3rem; }
  .page-btn { padding: .5rem .7rem; font-size: .85rem; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }

  /* Bottone offerta sticky su mobile */
  .btn-offer--large { position: sticky; bottom: 0; border-radius: 0; margin: 0 -1.25rem -1.25rem; width: calc(100% + 2.5rem); }
}

@media (max-width: 400px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .compare-table tbody tr { grid-template-columns: 1fr; }
  .compare-table tbody td:nth-child(4),
  .compare-table tbody td:nth-child(5) { grid-column: 1; text-align: left; }
  .footer-grid { grid-template-columns: 1fr; }
}
