/* =====================================================================
   filter.omnilink.it — Enterprise B2B Theme
   ===================================================================== */

:root {
  --c-brand-50:  #eef6ff;
  --c-brand-100: #d9eaff;
  --c-brand-200: #b9d8ff;
  --c-brand-300: #8abdff;
  --c-brand-400: #5b9eff;
  --c-brand-500: #2a7dff;
  --c-brand-600: #1c5fdb;
  --c-brand-700: #1948aa;
  --c-brand-800: #163c8a;
  --c-brand-900: #0d2552;
  --c-accent:    #f59e0b;
  --c-accent-dk: #d97706;
  --c-success:   #059669;
  --c-danger:    #dc2626;
  --c-ink:       #0f172a;
  --c-text:      #1e293b;
  --c-muted:     #64748b;
  --c-line:      #e2e8f0;
  --c-bg:        #f8fafc;
  --c-surface:   #ffffff;
  --shadow-sm:   0 1px 2px 0 rgba(15,23,42,.04);
  --shadow:      0 4px 12px -2px rgba(15,23,42,.08), 0 2px 4px -2px rgba(15,23,42,.04);
  --shadow-lg:   0 20px 40px -10px rgba(15,23,42,.15);
  --radius:      0.6rem;
  --radius-lg:   1rem;
}

/* ----- Base + utilities Tailwind-like ----- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1,h2,h3,h4,h5 { color: var(--c-ink); letter-spacing: -0.02em; font-weight: 700; }
h1 { font-weight: 800; }

.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.prose { line-height: 1.7; }
.prose h2 { font-size: 1.5rem; font-weight: 700; margin-top: 1.5em; }
.prose p { margin: 0.75em 0; }
.prose ul { list-style: disc; padding-left: 1.5em; margin: 0.75em 0; }

*:focus-visible { outline: 2px solid var(--c-brand-500); outline-offset: 2px; border-radius: 4px; }

/* ----- Container ----- */
.container { max-width: 1400px; margin: 0 auto; padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 1024px) {
  .container { padding-left: 2rem; padding-right: 2rem; }
}

/* ----- Override palette brand (Tailwind classes) ----- */
.text-brand-50  { color: var(--c-brand-50); }
.text-brand-500 { color: var(--c-brand-500); }
.text-brand-600 { color: var(--c-brand-600); }
.text-brand-700 { color: var(--c-brand-700); }
.text-brand-900 { color: var(--c-brand-900); }
.bg-brand-50  { background-color: var(--c-brand-50); }
.bg-brand-100 { background-color: var(--c-brand-100); }
.bg-brand-500 { background-color: var(--c-brand-500); }
.bg-brand-600 { background-color: var(--c-brand-600); }
.bg-brand-700 { background-color: var(--c-brand-700); }
.bg-brand-900 { background-color: var(--c-brand-900); }
.border-brand-200 { border-color: var(--c-brand-200); }
.border-brand-500 { border-color: var(--c-brand-500); }
.ring-brand-100  { box-shadow: 0 0 0 4px rgba(42,125,255,.12); }

/* ----- Header enterprise ----- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border-bottom: 1px solid var(--c-line);
}
.topbar {
  background: linear-gradient(90deg, var(--c-brand-900), var(--c-brand-800));
  color: rgba(255,255,255,.92);
  font-size: .8125rem;
}
.topbar a { color: rgba(255,255,255,.85); transition: color .15s; }
.topbar a:hover { color: #fff; }
.topbar .sep { color: rgba(255,255,255,.3); }

.logo-text {
  font-weight: 800; font-size: 1.5rem; letter-spacing: -0.04em;
  color: var(--c-brand-700);
}
.logo-text .accent { color: var(--c-accent); }
.tagline { font-size: .68rem; color: var(--c-muted); letter-spacing: 0.1em; text-transform: uppercase; margin-top: -2px; font-weight: 600; }

/* ----- Search pill premium ----- */
.search-pill { position: relative; width: 100%; max-width: 640px; }
.search-pill input {
  width: 100%; background: #fff;
  border: 2px solid var(--c-line);
  border-radius: 999px;
  padding: 0.85rem 6rem 0.85rem 3rem;
  font-size: .95rem;
  transition: border-color .15s, box-shadow .15s;
}
.search-pill input:focus {
  outline: none; border-color: var(--c-brand-500);
  box-shadow: 0 0 0 4px rgba(42,125,255,.12);
}
.search-pill .icon {
  position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%);
  color: var(--c-muted); pointer-events: none;
}
.search-pill button {
  position: absolute; right: 0.4rem; top: 50%; transform: translateY(-50%);
  background: var(--c-brand-600); color: #fff;
  border: 0; border-radius: 999px; padding: 0.55rem 1.2rem;
  font-weight: 600; cursor: pointer; transition: background .15s;
  display: flex; align-items: center; gap: .3rem;
}
.search-pill button:hover { background: var(--c-brand-700); }

/* ----- Bottoni ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: 0.65rem 1.2rem; border-radius: 0.6rem;
  font-weight: 600; font-size: .9rem;
  transition: all .15s; cursor: pointer; border: 0;
  white-space: nowrap; text-decoration: none;
}
.btn-primary { background: var(--c-brand-600); color: #fff; }
.btn-primary:hover { background: var(--c-brand-700); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-accent { background: var(--c-accent); color: var(--c-brand-900); font-weight: 700; }
.btn-accent:hover { background: var(--c-accent-dk); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--c-text); border: 1px solid var(--c-line); }
.btn-ghost:hover { border-color: var(--c-brand-500); color: var(--c-brand-700); background: var(--c-brand-50); }
.btn-lg { padding: 0.95rem 1.8rem; font-size: 1rem; border-radius: 0.7rem; }

/* ----- Hero refined ----- */
.hero {
  background: linear-gradient(120deg, var(--c-brand-900) 0%, var(--c-brand-700) 60%, var(--c-brand-500) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero::before {
  content: ''; position: absolute; right: -10%; top: -20%;
  width: 60%; height: 140%;
  background: radial-gradient(circle, rgba(255,255,255,.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; left: -5%; bottom: -50%;
  width: 40%; height: 100%;
  background: radial-gradient(circle, rgba(245,158,11,.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.05; }
.hero .lede { font-size: clamp(1rem, 1.4vw, 1.2rem); opacity: .92; max-width: 56ch; line-height: 1.6; }

/* ----- Stats counter ----- */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap: 1.5rem; }
.stat-counter .n { font-size: 2.2rem; font-weight: 800; color: var(--c-brand-700); line-height: 1; letter-spacing: -0.03em; }
.stat-counter .lbl { font-size: .85rem; color: var(--c-muted); font-weight: 500; margin-top: .25rem; }
.hero .stat-counter .n { color: #fff; }
.hero .stat-counter .lbl { color: rgba(255,255,255,.75); }

/* ----- Card ----- */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  transition: border-color .2s, transform .2s, box-shadow .25s;
}
.card-hover:hover {
  border-color: var(--c-brand-300);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* ----- Product card premium ----- */
.product-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .2s ease;
  display: flex; flex-direction: column;
  position: relative;
}
.product-card:hover {
  border-color: var(--c-brand-400);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.product-card .img-box {
  aspect-ratio: 1;
  max-height: 240px;
  background: linear-gradient(135deg, #f1f5f9 0%, #f8fafc 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.product-card .img-box img {
  max-width: 72%; max-height: 72%; object-fit: contain;
  transition: transform .35s ease;
}

/* =====================================================================
   LAYOUT FIXES — tailwind-mini non supporta classi arbitrarie:
   definiamo qui le grid mancanti come classi dedicate
   ===================================================================== */

/* Pagina prodotto: gallery + info side-by-side */
.product-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 768px) {
  .product-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; }
}
.product-layout .gallery .main-img {
  aspect-ratio: 1;
  max-height: 460px;
  background: linear-gradient(135deg, #f8fafc, #fff);
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-line);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  padding: 1.5rem;
}
.product-layout .gallery .main-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.product-layout .info h1 { font-size: 1.6rem; line-height: 1.2; margin: .25rem 0 1rem; }
@media (min-width: 768px) {
  .product-layout .info h1 { font-size: 1.9rem; }
}
.product-layout .info .key-info { padding: .85rem 1rem; margin-bottom: .85rem; }
.product-layout .info .cta-box { padding: 1rem 1.1rem; margin-bottom: .75rem; }
.product-layout .info .cta-box .btn-accent { padding: .7rem 1rem; font-size: .92rem; }
.product-layout .info .qty-input { width: 64px; padding: .55rem; font-size: .9rem; text-align: center; }

/* Pagina categoria: sidebar facets + risultati */
.category-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 1024px) {
  .category-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 1.5rem; }
}
.category-layout .facets { max-width: 100%; }
.category-layout .results { min-width: 0; /* permette al grid prodotti di shrinkare */ }

/* Grid prodotti dentro categoria: sempre densa */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
@media (min-width: 768px)  { .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .products-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; } }

/* Related products grid (max 6) */
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
}
@media (min-width: 640px)  { .related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .related-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* =====================================================================
   ARBITRARY GRID CLASSES — supporto per syntax tailwind v3 mancante
   ===================================================================== */
/* Newsletter band, hero brand veicolo */
@media (min-width: 768px) {
  .md\:grid-cols-\[1\.2fr_1fr\]  { grid-template-columns: 1.2fr 1fr; }
  .md\:grid-cols-\[1\.4fr_1fr\]  { grid-template-columns: 1.4fr 1fr; }
  .md\:grid-cols-\[1fr_auto\]    { grid-template-columns: 1fr auto; }
}
/* Cart + admin quote detail: contenuto + summary 360px */
@media (min-width: 1024px) {
  .lg\:grid-cols-\[1fr_360px\]   { grid-template-columns: minmax(0, 1fr) 360px; }
  .lg\:grid-cols-\[1fr_1fr\]     { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .lg\:grid-cols-\[280px_1fr\]   { grid-template-columns: 280px minmax(0, 1fr); }
  .lg\:grid-cols-\[240px_1fr\]   { grid-template-columns: 240px minmax(0, 1fr); }
}

/* Hero più contenuto */
.hero { padding: 2.5rem 2rem !important; }
@media (min-width: 768px) {
  .hero { padding: 3rem 2.5rem !important; }
}
.hero h1 { font-size: 1.75rem !important; line-height: 1.15 !important; }
@media (min-width: 768px) {
  .hero h1 { font-size: 2.25rem !important; }
}
.product-card:hover .img-box img { transform: scale(1.06); }
.product-card .badge-corner {
  position: absolute; top: .7rem; left: .7rem;
  background: var(--c-success); color: #fff;
  font-size: .65rem; font-weight: 700; padding: .25rem .6rem;
  border-radius: 999px; text-transform: uppercase; letter-spacing: 0.05em;
}
.product-card .body { padding: .95rem 1.1rem .25rem; flex: 1; display: flex; flex-direction: column; }
.product-card .brand-tag { font-size: .68rem; font-weight: 700; color: var(--c-brand-600); text-transform: uppercase; letter-spacing: 0.08em; }
.product-card h3 {
  font-size: .92rem; font-weight: 600; color: var(--c-ink);
  margin: .3rem 0; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.6em;
}
.product-card .sku-line { font-size: .76rem; color: var(--c-muted); margin-top: auto; padding-top: .3rem; }
.product-card .sku-line code { font-family: ui-monospace,"Menlo",monospace; font-weight: 600; color: var(--c-ink); }
.product-card .actions { padding: 0 1.1rem 1.1rem; display: flex; gap: .4rem; }
.product-card .actions form { flex: 1; }
.product-card .actions button {
  width: 100%; background: var(--c-brand-600); color: #fff;
  border: 0; padding: .55rem 1rem; border-radius: .5rem;
  font-size: .82rem; font-weight: 600; cursor: pointer; transition: background .15s;
}
.product-card .actions button:hover { background: var(--c-brand-700); }
.product-card .actions .btn-cmp {
  width: 38px; flex: 0 0 38px;
  background: #fff; color: var(--c-muted); border: 1px solid var(--c-line);
  display: flex; align-items: center; justify-content: center;
}
.product-card .actions .btn-cmp:hover { background: var(--c-brand-50); color: var(--c-brand-600); border-color: var(--c-brand-300); }

/* ----- USP card ----- */
.usp-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  transition: all .2s;
}
.usp-card:hover { border-color: var(--c-brand-400); box-shadow: var(--shadow); transform: translateY(-2px); }
.usp-card .icon {
  width: 3rem; height: 3rem;
  background: linear-gradient(135deg, var(--c-brand-50), var(--c-brand-100));
  border-radius: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--c-brand-700);
  margin-bottom: 1rem;
}
.usp-card h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.usp-card p { color: var(--c-muted); font-size: .9rem; line-height: 1.55; }

/* ----- Category tile ----- */
.cat-tile {
  display: flex; flex-direction: column; align-items: center;
  padding: 1.4rem 1rem;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  transition: all .2s;
  text-decoration: none; color: inherit;
}
.cat-tile:hover {
  border-color: var(--c-brand-400);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.cat-tile .icon-circle {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--c-brand-50), var(--c-brand-100));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--c-brand-700);
  margin-bottom: .8rem;
  transition: background .2s;
}
.cat-tile:hover .icon-circle { background: linear-gradient(135deg, var(--c-brand-500), var(--c-brand-700)); color: #fff; }
.cat-tile h3 { font-size: .92rem; text-align: center; margin: 0; }
.cat-tile .count { font-size: .75rem; color: var(--c-muted); margin-top: .25rem; }

/* ----- Brand tile ----- */
.brand-tile {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 1rem .75rem;
  display: flex; flex-direction: column; align-items: center;
  text-decoration: none; color: inherit;
  transition: all .2s;
  min-height: 100px;
}
.brand-tile:hover { border-color: var(--c-brand-400); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.brand-tile img { max-height: 36px; max-width: 100%; object-fit: contain; opacity: .8; transition: opacity .2s; }
.brand-tile:hover img { opacity: 1; }
.brand-tile .name { font-size: .78rem; font-weight: 600; color: var(--c-ink); margin-top: .55rem; text-align: center; }
.brand-tile .count { font-size: .7rem; color: var(--c-muted); }

/* ----- Breadcrumb ----- */
.breadcrumb {
  display: flex; align-items: center; gap: .5rem;
  font-size: .875rem; color: var(--c-muted);
  margin-bottom: 1.2rem; flex-wrap: wrap;
}
.breadcrumb a { color: var(--c-muted); transition: color .15s; text-decoration: none; }
.breadcrumb a:hover { color: var(--c-brand-600); }
.breadcrumb svg { color: var(--c-line); width: 14px; height: 14px; }

/* ----- Section heading ----- */
.section-heading {
  display: flex; justify-content: space-between; align-items: end;
  margin-bottom: 1.4rem; gap: 1rem;
}
.section-heading h2 { font-size: clamp(1.4rem, 2.2vw, 1.875rem); margin: 0; }
.section-heading .sub { color: var(--c-muted); font-size: .92rem; margin-top: .25rem; }
.section-heading .link-all { font-size: .85rem; color: var(--c-brand-600); font-weight: 600; text-decoration: none; }
.section-heading .link-all:hover { color: var(--c-brand-700); }

/* ----- Trust signals ----- */
.trust-row {
  display: flex; gap: 2rem; align-items: center; flex-wrap: wrap;
  padding: 1rem 1.4rem; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--c-line);
  font-size: .85rem; color: var(--c-muted);
}
.trust-row .item { display: flex; align-items: center; gap: .55rem; }
.trust-row .item svg { color: var(--c-success); flex-shrink: 0; }
.trust-row .item strong { color: var(--c-ink); font-weight: 600; }

/* ----- Form input ----- */
.input {
  width: 100%; background: #fff;
  border: 1px solid var(--c-line); border-radius: .55rem;
  padding: .65rem .9rem; font-size: .95rem;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus { outline: none; border-color: var(--c-brand-500); box-shadow: 0 0 0 3px rgba(42,125,255,.12); }

/* ----- Chip / Badge ----- */
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .65rem; border-radius: 999px; font-size: .72rem; font-weight: 600; background: var(--c-brand-50); color: var(--c-brand-700); }
.chip-success { background: #d1fae5; color: #065f46; }
.chip-warning { background: #fef3c7; color: #92400e; }
.chip-danger  { background: #fee2e2; color: #991b1b; }

/* ----- Spec table ----- */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table tr { border-bottom: 1px solid var(--c-line); }
.spec-table td { padding: .65rem .25rem; vertical-align: top; }
.spec-table td:first-child { color: var(--c-muted); width: 40%; font-size: .9rem; }
.spec-table td:last-child { font-weight: 600; color: var(--c-ink); font-size: .92rem; }

/* ----- Footer enterprise ----- */
.site-footer { background: var(--c-brand-900); color: rgba(255,255,255,.85); margin-top: 4rem; }
.site-footer h4 { color: #fff; font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem; }
.site-footer a { color: rgba(255,255,255,.7); transition: color .15s; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .brand-block { max-width: 320px; }
.site-footer .brand-block .logo-text { color: #fff; font-size: 1.6rem; }
.site-footer .social { display: flex; gap: .6rem; margin-top: 1rem; }
.site-footer .social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.site-footer .social a:hover { background: var(--c-brand-500); transform: translateY(-2px); color: #fff; }
.site-footer .copyright { border-top: 1px solid rgba(255,255,255,.1); padding: 1.2rem 0; color: rgba(255,255,255,.6); font-size: .82rem; }

/* ===================================================================
   AUTOCOMPLETE — Header Search Dropdown
   =================================================================== */
.hdr-suggest {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  max-height: 480px;
  overflow-y: auto;
  display: none;
}
.hdr-suggest.open { display: block; }
.hdr-suggest .group { padding: .5rem 0; }
.hdr-suggest .group + .group { border-top: 1px solid var(--c-line); }
.hdr-suggest .group-label {
  padding: .4rem 1rem;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--c-muted);
}
.hdr-suggest a.item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .55rem 1rem;
  color: var(--c-text);
  text-decoration: none;
  font-size: .9rem;
  transition: background .12s;
}
.hdr-suggest a.item:hover,
.hdr-suggest a.item.active {
  background: var(--c-brand-50);
  color: var(--c-brand-700);
}
.hdr-suggest a.item .sku {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .78rem;
  color: var(--c-brand-700);
  font-weight: 700;
  background: var(--c-brand-50);
  padding: .15rem .45rem;
  border-radius: .35rem;
  flex-shrink: 0;
}
.hdr-suggest a.item .title {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hdr-suggest a.item .meta {
  font-size: .75rem;
  color: var(--c-muted);
  flex-shrink: 0;
}
.hdr-suggest .no-results {
  padding: 1.25rem 1rem;
  text-align: center;
  color: var(--c-muted);
  font-size: .88rem;
}

/* ===================================================================
   WHATSAPP FLOATING BUTTON
   =================================================================== */
#wa-button {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .35);
  z-index: 90;
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
}
#wa-button:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(37, 211, 102, .5);
  color: #fff;
}
#wa-button svg { width: 28px; height: 28px; }
#wa-button .wa-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  opacity: .55;
  animation: waPulse 2s infinite;
  z-index: -1;
}
@keyframes waPulse {
  0%   { transform: scale(1);   opacity: .55; }
  100% { transform: scale(1.6); opacity: 0;   }
}
@media (max-width: 640px) {
  #wa-button { bottom: 16px; right: 16px; width: 48px; height: 48px; }
  #wa-button svg { width: 24px; height: 24px; }
}

/* ===================================================================
   EXIT-INTENT MODAL
   =================================================================== */
#exit-modal {
  position: fixed;
  inset: 0;
  background: rgba(13, 37, 82, .75);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
#exit-modal.open { display: flex !important; }
#exit-modal .em-card {
  background: #fff;
  border-radius: 1.25rem;
  max-width: 480px;
  width: 100%;
  padding: 2.25rem;
  box-shadow: 0 25px 60px -10px rgba(0,0,0,.4);
  position: relative;
  animation: emPop .35s cubic-bezier(.34,1.56,.64,1);
}
@keyframes emPop {
  from { transform: scale(.85) translateY(20px); opacity: 0; }
  to   { transform: scale(1)   translateY(0);    opacity: 1; }
}
#exit-modal .em-close {
  position: absolute;
  top: .75rem; right: .75rem;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--c-bg);
  border: 0;
  cursor: pointer;
  color: var(--c-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  line-height: 1;
}
#exit-modal .em-close:hover { background: var(--c-line); color: var(--c-ink); }
#exit-modal .em-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--c-accent), var(--c-accent-dk));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.8rem;
  color: #fff;
  box-shadow: 0 8px 20px rgba(245, 158, 11, .35);
}
#exit-modal h3 { text-align: center; font-size: 1.5rem; margin: 0 0 .5rem; }
#exit-modal p { text-align: center; color: var(--c-muted); margin: 0 0 1.5rem; }
#exit-modal form { display: flex; flex-direction: column; gap: .75rem; }
#exit-modal .em-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
  margin: 1rem 0;
  font-size: .82rem;
  color: var(--c-text);
}
#exit-modal .em-features div {
  display: flex; align-items: center; gap: .4rem;
}
#exit-modal .em-success {
  text-align: center;
  padding: 1.5rem 0;
  color: var(--c-success);
  font-weight: 600;
}

/* ===================================================================
   NEWSLETTER BAND
   =================================================================== */
.nl-band {
  background: linear-gradient(135deg, var(--c-brand-900) 0%, var(--c-brand-700) 100%);
  color: #fff;
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}
.nl-band::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 50%; height: 200%;
  background: radial-gradient(circle, rgba(245, 158, 11, .15) 0%, transparent 70%);
  pointer-events: none;
}
.nl-band .nl-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.nl-band h2 {
  color: #fff;
  font-size: 1.75rem;
  margin: 0 0 .5rem;
}
.nl-band p { color: rgba(255,255,255,.8); margin: 0; }
.nl-band .nl-features {
  display: flex; flex-wrap: wrap; gap: 1.2rem;
  margin-top: 1rem;
  font-size: .85rem;
  color: rgba(255,255,255,.9);
}
.nl-band .nl-features span {
  display: inline-flex; align-items: center; gap: .35rem;
}
#nl-form {
  display: flex; gap: .5rem;
  background: #fff;
  padding: .4rem;
  border-radius: .8rem;
  box-shadow: 0 8px 30px rgba(0,0,0,.2);
}
#nl-form input[type=email] {
  flex: 1;
  border: 0;
  padding: .75rem 1rem;
  font-size: .95rem;
  background: transparent;
  color: var(--c-ink);
}
#nl-form input[type=email]:focus { outline: none; }
#nl-form button {
  background: var(--c-accent);
  color: #fff;
  border: 0;
  padding: .75rem 1.4rem;
  border-radius: .55rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
#nl-form button:hover { background: var(--c-accent-dk); transform: translateY(-1px); }
#nl-form button:disabled { opacity: .6; cursor: wait; }
.nl-band .nl-success,
.nl-band .nl-error {
  margin-top: .75rem;
  font-size: .88rem;
  font-weight: 600;
}
.nl-band .nl-success { color: #d1fae5; }
.nl-band .nl-error { color: #fecaca; }
.nl-band .nl-privacy {
  font-size: .75rem;
  color: rgba(255,255,255,.6);
  margin-top: .75rem;
}
.nl-band .nl-privacy a { color: rgba(255,255,255,.85); text-decoration: underline; }
@media (max-width: 768px) {
  .nl-band .nl-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .nl-band h2 { font-size: 1.4rem; }
  #nl-form { flex-direction: column; padding: .6rem; }
  #nl-form button { width: 100%; }
}

/* ===================================================================
   RECENTLY VIEWED
   =================================================================== */
.recently-viewed {
  margin: 3rem 0;
  padding-top: 2rem;
  border-top: 1px solid var(--c-line);
}
.recently-viewed h2 {
  font-size: 1.25rem;
  margin: 0 0 1.25rem;
  display: flex; align-items: center; gap: .5rem;
}
.recently-viewed h2::before {
  content: '⏱️';
  font-size: 1.4rem;
}
.recently-viewed .rv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1rem;
}

/* ===================================================================
   FACETS SIDEBAR
   =================================================================== */
.facets {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 1rem;
}
.facets .f-group + .f-group {
  border-top: 1px solid var(--c-line);
  padding-top: 1rem;
  margin-top: 1rem;
}
.facets h3 {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--c-muted);
  margin: 0 0 .75rem;
}
.facets label {
  display: flex; align-items: center; gap: .5rem;
  padding: .35rem 0;
  font-size: .9rem;
  color: var(--c-text);
  cursor: pointer;
  transition: color .12s;
}
.facets label:hover { color: var(--c-brand-700); }
.facets label input[type=checkbox] {
  accent-color: var(--c-brand-600);
  width: 16px; height: 16px;
  cursor: pointer;
}
.facets label .count {
  margin-left: auto;
  font-size: .75rem;
  color: var(--c-muted);
  background: var(--c-bg);
  padding: .1rem .45rem;
  border-radius: 999px;
}
.facets .f-reset {
  margin-top: 1rem;
  display: block;
  width: 100%;
  padding: .55rem;
  background: var(--c-bg);
  color: var(--c-text);
  border: 1px solid var(--c-line);
  border-radius: .5rem;
  text-align: center;
  text-decoration: none;
  font-size: .85rem;
  font-weight: 600;
  transition: all .15s;
}
.facets .f-reset:hover { background: var(--c-brand-50); color: var(--c-brand-700); border-color: var(--c-brand-200); }

.facets .f-sort {
  width: 100%;
  padding: .55rem .75rem;
  border: 1px solid var(--c-line);
  border-radius: .5rem;
  background: #fff;
  font-size: .88rem;
  color: var(--c-text);
  cursor: pointer;
}

/* ===================================================================
   BLOG
   =================================================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.blog-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
  color: inherit;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.blog-card .bc-cover {
  height: 180px;
  background: linear-gradient(135deg, var(--c-brand-700), var(--c-brand-900));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 2.5rem;
}
.blog-card .bc-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.blog-card .bc-meta {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--c-muted);
  margin-bottom: .5rem;
}
.blog-card h3 {
  font-size: 1.05rem;
  margin: 0 0 .5rem;
  line-height: 1.4;
}
.blog-card p {
  font-size: .88rem;
  color: var(--c-muted);
  margin: 0 0 1rem;
  flex: 1;
  line-height: 1.55;
}
.blog-card .bc-read {
  font-size: .82rem;
  color: var(--c-brand-700);
  font-weight: 600;
}

.blog-post {
  max-width: 760px;
  margin: 0 auto;
}
.blog-post h1 { font-size: 2.25rem; line-height: 1.2; margin: 0 0 1rem; }
.blog-post .bp-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: .85rem;
  color: var(--c-muted);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--c-line);
}
.blog-post .bp-content { font-size: 1.05rem; line-height: 1.75; color: var(--c-text); }
.blog-post .bp-content h2 { font-size: 1.6rem; margin: 2rem 0 .75rem; }
.blog-post .bp-content h3 { font-size: 1.25rem; margin: 1.5rem 0 .5rem; }
.blog-post .bp-content img { max-width: 100%; height: auto; border-radius: var(--radius); margin: 1.25rem 0; }
.blog-post .bp-content code { background: var(--c-brand-50); color: var(--c-brand-800); padding: .1rem .4rem; border-radius: .3rem; font-family: ui-monospace, monospace; font-size: .92em; }
.blog-post .bp-content blockquote {
  border-left: 4px solid var(--c-accent);
  padding: .5rem 1.25rem;
  background: #fef3c7;
  color: #92400e;
  margin: 1.25rem 0;
  border-radius: 0 .5rem .5rem 0;
}
.site-footer .badges { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.site-footer .badges .b { background: rgba(255,255,255,.1); padding: .35rem .8rem; border-radius: .5rem; font-size: .72rem; font-weight: 600; }

/* ----- Animations ----- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp .5s ease both; }
.fade-up-delay-1 { animation: fadeUp .5s ease .1s both; }
.fade-up-delay-2 { animation: fadeUp .5s ease .2s both; }
.fade-up-delay-3 { animation: fadeUp .5s ease .3s both; }

/* ----- Skeleton loader ----- */
.skeleton { background: linear-gradient(90deg,#f1f5f9 25%,#e2e8f0 50%,#f1f5f9 75%); background-size: 200% 100%; animation: skel 1.4s infinite; border-radius: .4rem; }
@keyframes skel { 0%{background-position:200% 0;} 100%{background-position:-200% 0;} }

/* ----- Print ----- */
@media print {
  .site-header, .site-footer, .no-print { display: none; }
  body { background: #fff; }
}

/* ----- Mobile refinements ----- */
@media (max-width: 768px) {
  .hero { padding: 2rem 1.5rem; }
  .section-heading { flex-direction: column; align-items: flex-start; }
}
