/* ═══════════════════════════════════════════════════════════════
   SSA Materiais Elétricos e Hidráulicos — Design System
   Trust & Authority · Plus Jakarta Sans · B2B Industrial
═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
  --navy:        #0F172A;
  --navy-mid:    #1E293B;
  --navy-soft:   #263148;
  --steel:       #334155;
  --blue-cta:    #0369A1;
  --blue-hover:  #0284C7;
  --blue-light:  #E0F2FE;
  --blue-pale:   #F0F9FF;
  --bg:          #F8FAFC;
  --bg-alt:      #F1F5F9;
  --white:       #FFFFFF;
  --text:        #0F172A;
  --text-mid:    #334155;
  --muted:       #64748B;
  --border:      #E2E8F0;
  --border-mid:  #CBD5E1;
  --success:     #16A34A;
  --warning:     #D97706;

  --radius-sm:   6px;
  --radius:      10px;
  --radius-lg:   14px;
  --radius-pill: 999px;

  --shadow-sm:   0 1px 2px rgba(0,0,0,0.05);
  --shadow:      0 1px 3px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.05);
  --shadow-md:   0 4px 12px rgba(0,0,0,0.08), 0 8px 32px rgba(0,0,0,0.06);
  --shadow-blue: 0 8px 32px rgba(3,105,161,0.18);
  --shadow-pop:  0 20px 60px rgba(0,0,0,0.15);

  --font:        'Plus Jakarta Sans', system-ui, sans-serif;
  --transition:  150ms cubic-bezier(0.4,0,0.2,1);
  --transition-md: 250ms cubic-bezier(0.4,0,0.2,1);

  --navbar-h:    64px;
  --sidebar-w:   256px;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
a { text-decoration: none; color: inherit; }
input, select { font-family: inherit; }
ul { list-style: none; }

/* ── Utilities ──────────────────────────────────────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--navbar-h);
  background: var(--navy);
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.navbar-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.15);
  flex-shrink: 0;
}
.nav-brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.nav-brand-name {
  font-size: 15px;
  font-weight: 700;
  color: white;
  letter-spacing: -0.02em;
  line-height: 1;
}
.nav-brand-sub {
  font-size: 10px;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}
.nav-divider {
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,0.12);
  flex-shrink: 0;
}
.nav-search {
  flex: 1;
  max-width: 400px;
  position: relative;
}
.nav-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.35);
  pointer-events: none;
  display: flex;
}
.nav-search input {
  width: 100%;
  height: 38px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 0 12px 0 36px;
  color: white;
  font-size: 14px;
  transition: var(--transition);
  outline: none;
}
.nav-search input::placeholder { color: rgba(255,255,255,0.35); }
.nav-search input:focus {
  background: rgba(255,255,255,0.1);
  border-color: rgba(3,105,161,0.6);
  box-shadow: 0 0 0 3px rgba(3,105,161,0.15);
}
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.btn-nav {
  height: 36px;
  padding: 0 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-nav-ghost {
  color: rgba(255,255,255,0.7);
  background: transparent;
}
.btn-nav-ghost:hover { color: white; background: rgba(255,255,255,0.07); }
.btn-nav-primary {
  background: var(--blue-cta);
  color: white;
}
.btn-nav-primary:hover { background: var(--blue-hover); }
.btn-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
}
.btn-hamburger:hover { background: rgba(255,255,255,0.07); color: white; }

/* ── Main layout ─────────────────────────────────────────────── */
main { padding-top: var(--navbar-h); }
.view { display: none; }
.view.active { display: block; }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  padding: 80px 24px 72px;
}
.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg stroke='rgba(255,255,255,0.04)' stroke-width='1'%3E%3Cpath d='M0 30h25M35 30h25M30 0v25M30 35v25M25 30h10M30 25v10' stroke-width='0.5'/%3E%3Ccircle cx='30' cy='30' r='3' stroke-width='0.5'/%3E%3Ccircle cx='0' cy='0' r='2'/%3E%3Ccircle cx='60' cy='0' r='2'/%3E%3Ccircle cx='0' cy='60' r='2'/%3E%3Ccircle cx='60' cy='60' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 1;
}
.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(3,105,161,0.18) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  pointer-events: none;
}
.hero-inner {
  max-width: 1320px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(3,105,161,0.2);
  border: 1px solid rgba(3,105,161,0.3);
  color: #7DD3FC;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-badge-dot { width: 6px; height: 6px; background: #38BDF8; border-radius: 50%; animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  color: white;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  max-width: 640px;
}
.hero-title span { color: #38BDF8; }
.hero-sub {
  color: rgba(255,255,255,0.55);
  font-size: 16px;
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 36px;
}
.hero-search {
  display: flex;
  align-items: center;
  max-width: 560px;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-blue);
}
.hero-search-icon { padding: 0 16px; color: var(--muted); display: flex; flex-shrink: 0; }
.hero-search input {
  flex: 1;
  height: 52px;
  border: none;
  outline: none;
  font-size: 15px;
  color: var(--text);
  background: transparent;
}
.hero-search input::placeholder { color: var(--muted); }
.hero-search-btn {
  height: 52px;
  padding: 0 24px;
  background: var(--blue-cta);
  color: white;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-search-btn:hover { background: var(--blue-hover); }
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 36px;
}
.hero-stat { display: flex; flex-direction: column; gap: 2px; }
.hero-stat-num { font-size: 24px; font-weight: 700; color: white; line-height: 1; }
.hero-stat-label { font-size: 12px; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.06em; }

/* ── Section wrapper ─────────────────────────────────────────── */
.section { padding: 64px 24px; }
.section-alt { background: var(--bg-alt); }
.section-inner { max-width: 1320px; margin: 0 auto; }
.section-header { margin-bottom: 36px; }
.section-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--blue-cta);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.section-title {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.section-sub { color: var(--muted); font-size: 14px; margin-top: 6px; }

/* ── Suppliers strip ─────────────────────────────────────────── */
.suppliers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.supplier-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: var(--transition-md);
  position: relative;
  overflow: hidden;
}
.supplier-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--supplier-color, var(--blue-cta));
  opacity: 0;
  transition: var(--transition);
}
.supplier-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--border-mid); }
.supplier-card:hover::before { opacity: 1; }
.supplier-logo { height: 40px; object-fit: contain; object-position: left; }
.supplier-logo-placeholder {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  width: fit-content;
}
.supplier-name { font-size: 14px; font-weight: 600; color: var(--text); }
.supplier-desc { font-size: 13px; color: var(--muted); line-height: 1.5; }
.supplier-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue-cta);
  background: var(--blue-light);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  width: fit-content;
}

/* ── Category grid ───────────────────────────────────────────── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.category-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  cursor: pointer;
  transition: var(--transition-md);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.category-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--blue-cta); }
.category-card:hover .category-icon { background: var(--blue-cta); color: white; }
.category-icon {
  width: 48px;
  height: 48px;
  background: var(--blue-pale);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-cta);
  transition: var(--transition-md);
}
.category-name { font-size: 15px; font-weight: 600; color: var(--text); }
.category-desc { font-size: 13px; color: var(--muted); line-height: 1.5; }
.category-count { font-size: 12px; color: var(--muted); font-weight: 500; }

/* ── Featured shelf ──────────────────────────────────────────── */
.shelf-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.shelf-track::-webkit-scrollbar { display: none; }

/* ── Catalog view ────────────────────────────────────────────── */
#view-catalog { display: none; }
#view-catalog.active { display: flex; flex-direction: column; }
.catalog-layout {
  display: flex;
  min-height: calc(100vh - var(--navbar-h));
  max-width: 1320px;
  margin: 0 auto;
  width: 100%;
  padding: 24px 24px 48px;
  gap: 24px;
}

/* ── Sidebar ─────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--navbar-h) + 24px);
  max-height: calc(100vh - var(--navbar-h) - 48px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.sidebar-section { margin-bottom: 28px; }
.sidebar-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 12px;
}
.filter-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}
.filter-item:hover { background: var(--bg-alt); }
.filter-item input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--blue-cta); cursor: pointer; }
.filter-item-label { font-size: 13px; color: var(--text-mid); flex: 1; }
.filter-item-count { font-size: 11px; color: var(--muted); }
.filter-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.sidebar-divider { height: 1px; background: var(--border); margin: 20px 0; }
.btn-clear-filters {
  width: 100%;
  padding: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-cta);
  border: 1px solid var(--blue-light);
  background: var(--blue-pale);
  border-radius: var(--radius);
  transition: var(--transition);
}
.btn-clear-filters:hover { background: var(--blue-light); }

/* ── Catalog main ────────────────────────────────────────────── */
.catalog-main { flex: 1; min-width: 0; }
.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
  flex-wrap: wrap;
}
.catalog-count { font-size: 14px; color: var(--muted); }
.catalog-count strong { color: var(--text); font-weight: 600; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--blue-cta);
  background: var(--blue-light);
  border: 1px solid rgba(3,105,161,0.2);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}
.filter-pill-remove {
  display: flex;
  align-items: center;
  opacity: 0.6;
  transition: var(--transition);
  cursor: pointer;
}
.filter-pill-remove:hover { opacity: 1; }
.catalog-toolbar-right { display: flex; align-items: center; gap: 8px; }
.sort-select {
  height: 34px;
  padding: 0 28px 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  background: var(--white);
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2364748B' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.btn-filter-mobile {
  display: none;
  height: 34px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.btn-filter-mobile:hover { border-color: var(--blue-cta); color: var(--blue-cta); }

/* ── Product grid ────────────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-md);
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  min-width: 200px;
}
.product-card:hover {
  box-shadow: var(--shadow-blue);
  border-color: var(--blue-cta);
  transform: translateY(-2px);
}
.product-card-img {
  aspect-ratio: 4/3;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.product-card:hover .product-card-img img { transform: scale(1.04); }
.product-card-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--border-mid);
  width: 100%;
  height: 100%;
}
.product-card-placeholder-icon { color: var(--border-mid); }
.product-card-placeholder-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.product-supplier-dot {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px white;
}
.product-card-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-line-badge {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue-cta);
  background: var(--blue-light);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  width: fit-content;
}
.product-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}
.product-code {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
}
.product-specs-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}
.spec-chip {
  font-size: 11px;
  color: var(--text-mid);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}
.product-card-footer {
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.product-cta {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue-cta);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}
.product-card:hover .product-cta { gap: 7px; }
.supplier-tag {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
.supplier-tag-dot { width: 8px; height: 8px; border-radius: 50%; }

/* ── Skeleton ────────────────────────────────────────────────── */
@keyframes skeleton-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.skeleton { animation: skeleton-pulse 1.5s ease-in-out infinite; }
.skeleton-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.skeleton-img { aspect-ratio: 4/3; background: var(--bg-alt); }
.skeleton-body { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.skeleton-line { height: 12px; background: var(--bg-alt); border-radius: 4px; }
.skeleton-line.w-60 { width: 60%; }
.skeleton-line.w-80 { width: 80%; }
.skeleton-line.w-40 { width: 40%; }

/* ── Empty state ─────────────────────────────────────────────── */
.empty-state {
  grid-column: 1/-1;
  text-align: center;
  padding: 80px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.empty-state-icon { color: var(--border-mid); }
.empty-state-title { font-size: 18px; font-weight: 600; color: var(--text-mid); }
.empty-state-sub { font-size: 14px; color: var(--muted); }
.btn-reset {
  height: 38px;
  padding: 0 20px;
  background: var(--blue-cta);
  color: white;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
}
.btn-reset:hover { background: var(--blue-hover); }

/* ── Modal ───────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-md);
  backdrop-filter: blur(4px);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 740px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-pop);
  transform: scale(0.96) translateY(16px);
  transition: transform var(--transition-md);
  scrollbar-width: thin;
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-header {
  position: sticky;
  top: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  z-index: 1;
}
.modal-title-group { display: flex; flex-direction: column; gap: 6px; }
.modal-supplier-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  width: fit-content;
}
.modal-title { font-size: 20px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; line-height: 1.2; }
.modal-code { font-size: 12px; color: var(--muted); font-weight: 500; letter-spacing: 0.04em; }
.modal-close {
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  background: var(--bg-alt);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}
.modal-close:hover { background: var(--border); color: var(--text); }
.modal-body { padding: 24px; display: flex; flex-direction: column; gap: 24px; }
.modal-img {
  aspect-ratio: 16/9;
  background: var(--bg-alt);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.modal-img img { width: 100%; height: 100%; object-fit: cover; }
.modal-img-placeholder { display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--border-mid); }
.modal-section-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 12px; }
.modal-desc { font-size: 14px; color: var(--text-mid); line-height: 1.75; }
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table tr { border-bottom: 1px solid var(--border); }
.specs-table tr:last-child { border-bottom: none; }
.specs-table td { padding: 10px 0; font-size: 14px; }
.specs-table td:first-child { color: var(--muted); font-weight: 500; width: 40%; }
.specs-table td:last-child { color: var(--text); font-weight: 600; }
.modal-line-info {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.modal-line-name { font-size: 14px; font-weight: 600; color: var(--text); }
.modal-line-desc { font-size: 13px; color: var(--muted); }
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-whatsapp {
  flex: 1;
  min-width: 200px;
  height: 44px;
  background: #16A34A;
  color: white;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}
.btn-whatsapp:hover { background: #15803D; }
.btn-catalog-page {
  height: 44px;
  padding: 0 20px;
  background: var(--bg-alt);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}
.btn-catalog-page:hover { border-color: var(--blue-cta); color: var(--blue-cta); }

/* ── Mobile drawer ───────────────────────────────────────────── */
.filter-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-md);
}
.filter-drawer-overlay.open { opacity: 1; pointer-events: all; }
.filter-drawer {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 300px;
  max-width: 85vw;
  background: var(--white);
  z-index: 151;
  transform: translateX(-100%);
  transition: transform var(--transition-md);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.filter-drawer-overlay.open .filter-drawer { transform: translateX(0); }
.filter-drawer-header {
  padding: 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.filter-drawer-title { font-size: 16px; font-weight: 700; }
.filter-drawer-body { padding: 20px; flex: 1; }
.filter-drawer-footer { padding: 16px 20px; border-top: 1px solid var(--border); }
.btn-apply-filters {
  width: 100%;
  height: 44px;
  background: var(--blue-cta);
  color: white;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
}
.btn-apply-filters:hover { background: var(--blue-hover); }

/* ── Scroll to top ───────────────────────────────────────────── */
#scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--navy);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity var(--transition-md), transform var(--transition-md);
  z-index: 90;
}
#scroll-top.visible { opacity: 1; pointer-events: all; transform: translateY(0); }
#scroll-top:hover { background: var(--navy-soft); }

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.5);
  padding: 40px 24px;
}
.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-brand { font-size: 14px; font-weight: 700; color: white; }
.footer-copy { font-size: 12px; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .sidebar { display: none; }
  .btn-filter-mobile { display: flex; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}
@media (max-width: 768px) {
  .nav-search { display: none; }
  .nav-divider { display: none; }
  .btn-hamburger { display: flex; }
  .btn-nav-ghost { display: none; }
  .hero { padding: 56px 20px 48px; }
  .hero-stats { gap: 20px; }
  .section { padding: 48px 20px; }
  .catalog-layout { padding: 16px 16px 40px; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .modal-overlay { padding: 12px; align-items: flex-end; }
  .modal { max-height: 95vh; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
}
@media (max-width: 480px) {
  .hero-search { flex-direction: column; border-radius: var(--radius); overflow: visible; background: transparent; box-shadow: none; gap: 8px; }
  .hero-search input { width: 100%; border-radius: var(--radius); height: 48px; background: white; padding: 0 16px; }
  .hero-search-icon { display: none; }
  .hero-search-btn { width: 100%; border-radius: var(--radius); justify-content: center; }
  .product-grid { grid-template-columns: 1fr 1fr; }
}
