/* ============================================
   ANALOG FINDER v3 — Design System
   Brand-oriented series configurator
   CORNETA Tech © 2026
   ============================================ */

:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-card: #1a2235;
  --bg-card-hover: #1f2942;
  --bg-input: #0f1623;
  --bg-modal: #141c2e;

  --text-primary: #f0f4ff;
  --text-secondary: #8b95b0;
  --text-muted: #5a6580;
  --text-accent: #60a5fa;

  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --accent-teal: #14b8a6;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --accent-emerald: #10b981;

  --gradient-main: linear-gradient(135deg, #3b82f6, #8b5cf6);
  --gradient-card: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(139,92,246,0.05));
  --gradient-glow: radial-gradient(ellipse 600px 400px at 50% 0%, rgba(59,130,246,0.12), transparent 70%);

  --border-color: rgba(139,149,176,0.12);
  --border-active: rgba(59,130,246,0.4);

  --shadow-card: 0 4px 20px rgba(0,0,0,0.2);
  --shadow-glow: 0 0 30px rgba(59,130,246,0.15);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.4);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --sidebar-w: 280px;
  --header-h: 60px;
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

/* ===== HEADER ===== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,14,23,0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  height: var(--header-h);
}
.header__inner {
  display: flex; align-items: center;
  height: var(--header-h); gap: 16px;
}

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo__icon { font-size: 24px; filter: drop-shadow(0 0 6px rgba(59,130,246,0.5)); }
.logo__text { display: flex; flex-direction: column; }
.logo__name { font-size: 14px; font-weight: 800; color: var(--text-primary); letter-spacing: 1.5px; }
.logo__sub { font-size: 9px; color: var(--text-muted); letter-spacing: 2px; text-transform: uppercase; }

.nav__link--ext {
  margin-left: auto; padding: 6px 14px;
  color: var(--accent-teal); text-decoration: none;
  font-size: 13px; font-weight: 500;
  border: 1px solid rgba(20,184,166,0.2); border-radius: 6px;
  transition: all 0.2s; flex-shrink: 0;
}
.nav__link--ext:hover { background: rgba(20,184,166,0.1); }

/* Brand selector */
.brand-selector {
  display: flex; gap: 4px; flex: 1;
  overflow-x: auto; scrollbar-width: none;
  justify-content: center;
}
.brand-selector::-webkit-scrollbar { display: none; }

.brand-sel-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px; font-size: 12px; font-weight: 600;
  background: none; border: 1px solid transparent;
  color: var(--text-muted); border-radius: 6px;
  cursor: pointer; transition: all 0.2s;
  white-space: nowrap; flex-shrink: 0;
}
.brand-sel-btn:hover { color: var(--text-secondary); background: rgba(255,255,255,0.03); }
.brand-sel-btn--active {
  color: var(--text-primary);
  background: rgba(59,130,246,0.1);
  border-color: var(--border-active);
}
.brand-sel-btn .brand-dot { width: 20px; height: 20px; font-size: 9px; }

/* ===== BRAND DOTS ===== */
.brand-dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  font-size: 12px; font-weight: 700; color: white;
}
.brand-dot--festo { background: linear-gradient(135deg, #0091dc, #00629b); }
.brand-dot--smc { background: linear-gradient(135deg, #e63946, #c1121f); }
.brand-dot--camozzi { background: linear-gradient(135deg, #2196F3, #1565C0); }
.brand-dot--waalpc { background: linear-gradient(135deg, #10b981, #059669); }
.brand-dot--airtac { background: linear-gradient(135deg, #f59e0b, #d97706); }
.brand-dot--sns { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.brand-dot--pemaks { background: linear-gradient(135deg, #ef4444, #dc2626); }

/* ===== HERO ===== */
.hero {
  position: relative; padding: 48px 0 32px; overflow: hidden;
}
.hero__content { text-align: center; max-width: 700px; margin: 0 auto; }
.hero__title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900; line-height: 1.2; margin-bottom: 12px;
}
.gradient-text {
  background: var(--gradient-main);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__subtitle { font-size: 16px; color: var(--text-secondary); margin-bottom: 24px; }
.hero__glow {
  position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 500px; background: var(--gradient-glow);
  pointer-events: none; z-index: -1;
}

/* Search */
.search { max-width: 580px; margin: 0 auto; }
.search__input-wrap {
  display: flex; align-items: center;
  background: var(--bg-input);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 4px 4px 4px 18px;
  transition: all 0.3s;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
.search__input-wrap:focus-within {
  border-color: var(--accent-blue);
  box-shadow: var(--shadow-glow), 0 4px 24px rgba(0,0,0,0.3);
}
.search__icon { color: var(--text-muted); flex-shrink: 0; margin-right: 10px; }
.search__input {
  flex: 1; background: none; border: none;
  color: var(--text-primary); font-size: 15px;
  font-family: 'JetBrains Mono', monospace;
  padding: 12px 0; outline: none;
}
.search__input::placeholder { color: var(--text-muted); font-family: 'Inter', sans-serif; font-size: 14px; }
.search__clear {
  background: none; border: none; color: var(--text-muted);
  font-size: 22px; cursor: pointer; padding: 8px 14px;
  border-radius: var(--radius-md); transition: all 0.2s; display: none;
}
.search__clear--visible { display: block; }
.search__clear:hover { color: var(--accent-rose); }

.search__hint {
  text-align: center; font-size: 13px; color: var(--text-muted);
  margin-top: 10px;
}
.link-btn {
  background: none; border: none; color: var(--text-accent);
  cursor: pointer; font-size: 13px; text-decoration: underline;
  font-family: inherit;
}
.link-btn:hover { color: var(--accent-blue); }

/* ===== MAIN LAYOUT ===== */
.main-section { padding: 0 0 64px; }
.main-layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  gap: 24px;
  min-height: 60vh;
}

/* ===== SIDEBAR ===== */
.sidebar {
  position: sticky; top: calc(var(--header-h) + 12px);
  max-height: calc(100vh - var(--header-h) - 24px);
  overflow-y: auto; padding-right: 8px;
  scrollbar-width: thin; scrollbar-color: var(--border-color) transparent;
}

.sidebar__brand-label {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; margin-bottom: 12px;
  background: rgba(59,130,246,0.08);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600;
}
.sidebar__brand-dot { width: 24px; height: 24px; border-radius: 50%; }
.sidebar__brand-clear {
  margin-left: auto; background: none; border: none;
  color: var(--text-muted); cursor: pointer; font-size: 14px;
  transition: color 0.2s;
}
.sidebar__brand-clear:hover { color: var(--accent-rose); }

/* Category tree */
.tree-group { margin-bottom: 4px; }
.tree-group__head {
  display: flex; align-items: center;
  padding: 8px 10px; border-radius: var(--radius-sm);
  cursor: pointer; gap: 8px; font-size: 13px;
  font-weight: 600; transition: all 0.15s;
  color: var(--text-secondary);
}
.tree-group__head:hover { background: rgba(255,255,255,0.04); color: var(--text-primary); }
.tree-group__head--active { background: rgba(59,130,246,0.1); color: var(--text-accent); }
.tree-group__arrow {
  font-size: 9px; color: var(--text-muted);
  transition: transform 0.2s; width: 14px; text-align: center;
}
.tree-group__arrow--open { transform: rotate(90deg); }
.tree-group__count {
  margin-left: auto; font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-muted);
}

.tree-group__children { padding-left: 18px; display: none; }
.tree-group__children--open { display: block; }

.tree-child {
  display: flex; align-items: center;
  padding: 5px 10px; border-radius: 6px;
  cursor: pointer; font-size: 12px;
  color: var(--text-muted); transition: all 0.15s; gap: 6px;
}
.tree-child:hover { background: rgba(255,255,255,0.04); color: var(--text-secondary); }
.tree-child--active { background: rgba(59,130,246,0.1); color: var(--text-accent); }
.tree-child__count {
  margin-left: auto; font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
}

.tree-group__arrow--sm { font-size: 7px; margin-right: 2px; }

.tree-subcats { padding-left: 16px; display: none; }
.tree-subcats--open { display: block; }

.tree-subcat {
  display: flex; align-items: center;
  padding: 4px 10px; border-radius: 5px;
  cursor: pointer; font-size: 11px;
  color: var(--text-muted); transition: all 0.15s; gap: 4px;
}
.tree-subcat:hover { background: rgba(255,255,255,0.04); color: var(--text-secondary); }
.tree-subcat--active { background: rgba(59,130,246,0.1); color: var(--text-accent); }

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 0; font-size: 13px; color: var(--text-muted);
  flex-wrap: wrap;
}
.bc-link {
  color: var(--text-accent); text-decoration: none;
}
.bc-link:hover { text-decoration: underline; }
.bc-sep { color: var(--text-muted); }
.bc-current { color: var(--text-secondary); }

/* ===== VIEWS ===== */
.view__title {
  font-size: 22px; font-weight: 700; margin-bottom: 16px;
}
.results-count {
  font-size: 14px; font-weight: 400; color: var(--text-muted);
  margin-left: 8px;
}

/* Landing grid — category cards */
.landing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.landing-card {
  display: flex; flex-direction: column;
  padding: 20px; background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer; transition: all 0.25s;
  position: relative; overflow: hidden;
}
.landing-card::before {
  content: ''; position: absolute; inset: 0;
  background: var(--gradient-card); opacity: 0;
  transition: opacity 0.3s;
}
.landing-card:hover { border-color: var(--border-active); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.landing-card:hover::before { opacity: 1; }
.landing-card__icon { font-size: 28px; margin-bottom: 8px; position: relative; z-index: 1; }
.landing-card__name { font-size: 15px; font-weight: 700; position: relative; z-index: 1; }
.landing-card__count { font-size: 20px; font-weight: 800; color: var(--text-accent); font-family: 'JetBrains Mono', monospace; position: relative; z-index: 1; }
.landing-card__subs { font-size: 11px; color: var(--text-muted); margin-top: 6px; position: relative; z-index: 1; line-height: 1.5; }

/* Series grid */
.series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.series-card {
  padding: 16px 20px; background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer; transition: all 0.2s;
}
.series-card:hover { border-color: var(--border-active); box-shadow: var(--shadow-card); transform: translateY(-1px); }
.series-card__header {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  margin-bottom: 4px;
}
.series-card__name {
  font-size: 18px; font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
}
.series-card__brand {
  font-size: 11px; font-weight: 600;
  color: var(--text-accent); opacity: 0.8;
  white-space: nowrap;
}
.series-card__desc { font-size: 12px; color: var(--text-secondary); margin-bottom: 6px; }
.series-card__meta { font-size: 11px; color: var(--text-muted); }
.series-card__brands {
  display: flex; gap: 3px; margin-top: 8px; flex-wrap: wrap;
}
.series-card__brands .brand-dot { width: 18px; height: 18px; font-size: 8px; opacity: 0.5; }
.series-card__brands .brand-dot--primary { opacity: 1; box-shadow: 0 0 0 2px var(--text-accent); }
.series-card__analogs {
  display: flex; gap: 4px; margin-top: 8px; flex-wrap: wrap;
}
.series-card__analog-dot {
  display: flex; align-items: center; gap: 3px;
  font-size: 10px; color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  padding: 2px 6px; border-radius: 4px;
}
.series-card__analog-dot .brand-dot { width: 14px; height: 14px; font-size: 7px; }

/* ===== CONFIGURATOR ===== */
.config-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
}
.config__title {
  font-size: 28px; font-weight: 900;
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 4px;
}
.config__desc { font-size: 14px; color: var(--text-secondary); margin-bottom: 20px; }

.config__selectors { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; }

.config-select-group { min-width: 140px; }
.config-select-group__label {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 6px;
}
.config-select {
  width: 100%; padding: 10px 14px;
  background: var(--bg-input); border: 1px solid var(--border-color);
  border-radius: var(--radius-sm); color: var(--text-primary);
  font-size: 14px; font-family: 'JetBrains Mono', monospace;
  outline: none; cursor: pointer;
  transition: border-color 0.2s;
}
.config-select:focus { border-color: var(--accent-blue); }

/* Chips for bore/stroke */
.config-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.config-chip {
  padding: 6px 14px; font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-color);
  border-radius: 6px; cursor: pointer;
  transition: all 0.15s; color: var(--text-secondary);
}
.config-chip:hover { border-color: var(--border-active); color: var(--text-primary); }
.config-chip--active {
  background: rgba(59,130,246,0.15);
  border-color: var(--accent-blue);
  color: var(--text-accent);
  font-weight: 600;
}

/* Config result (formed article) */
.config__result {
  padding: 16px; margin-top: 8px;
  background: rgba(59,130,246,0.06);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-md);
}
.config-article {
  font-size: 22px; font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-accent); margin-bottom: 6px;
}
.config-specs {
  font-size: 13px; color: var(--text-secondary);
}

/* Engineering table */
.eng-table {
  width: 100%;
  border-collapse: collapse;
}
.eng-table tr {
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.eng-table tr:last-child { border-bottom: none; }
.eng-table td { padding: 6px 0; }
.eng-label {
  color: var(--text-muted);
  font-size: 12px;
  width: 45%;
  padding-right: 12px;
  vertical-align: top;
}
.eng-value {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
}

.config-spec { 
  background: rgba(255,255,255,0.05);
  padding: 3px 10px; border-radius: 4px;
  display: inline-block; margin: 2px;
}

/* ===== ANALOGS TABLE ===== */
.analogs-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.analogs__title {
  font-size: 16px; font-weight: 700; margin-bottom: 12px;
}
.analogs__count {
  font-size: 13px; font-weight: 400; color: var(--text-muted);
}

.analog-row {
  display: grid;
  grid-template-columns: 120px 1fr auto auto;
  align-items: center;
  padding: 12px 14px; gap: 12px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.analog-row:last-child { border-bottom: none; }
.analog-row:hover { background: rgba(255,255,255,0.03); }

.analog-row__brand {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600;
}
.analog-row__brand .brand-dot { width: 22px; height: 22px; font-size: 10px; }

.analog-row__article {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px; font-weight: 500;
}

.compat-badge {
  padding: 3px 10px; border-radius: 4px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.3px;
}
.compat-badge--drop-in {
  background: rgba(16,185,129,0.15); color: var(--accent-emerald);
  border: 1px solid rgba(16,185,129,0.3);
}
.compat-badge--functional {
  background: rgba(245,158,11,0.12); color: var(--accent-amber);
  border: 1px solid rgba(245,158,11,0.25);
}
.compat-badge--original {
  background: rgba(59,130,246,0.15); color: var(--accent-blue);
  border: 1px solid rgba(59,130,246,0.3);
}

.analog-row--original {
  background: rgba(59,130,246,0.06);
  border-radius: 8px;
  border: 1px solid rgba(59,130,246,0.15);
  margin: -2px -8px; padding: 12px 16px;
}

.analog-row__price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px; font-weight: 700;
  color: var(--accent-emerald);
  text-align: right; min-width: 90px;
}

/* ===== SEARCH RESULTS ===== */
.search-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 10px;
}
.sr-card {
  padding: 14px 18px; background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer; transition: all 0.2s;
}
.sr-card:hover { border-color: var(--border-active); box-shadow: var(--shadow-card); }
.sr-card__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.sr-card__cat { font-size: 10px; font-weight: 600; text-transform: uppercase; color: var(--accent-teal); }
.sr-card__specs { font-size: 11px; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; }
.sr-card__title { font-size: 15px; font-weight: 700; font-family: 'JetBrains Mono', monospace; margin-bottom: 8px; }
.sr-card__brands { display: flex; flex-wrap: wrap; gap: 4px; }
.sr-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; font-size: 11px;
  border-radius: 4px; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}
.sr-pill__name { font-weight: 600; color: var(--text-secondary); }
.sr-pill__price { color: var(--accent-emerald); font-family: 'JetBrains Mono', monospace; }

/* ===== BATCH ===== */
.batch-zone { max-width: 600px; }
.batch-drop {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 40px; border: 2px dashed var(--border-color);
  border-radius: var(--radius-lg);
  text-align: center; margin-bottom: 16px;
  transition: border-color 0.2s;
}
.batch-drop--active { border-color: var(--accent-blue); background: rgba(59,130,246,0.05); }
.batch-drop__icon { font-size: 40px; margin-bottom: 8px; }
.batch-drop__text { font-size: 14px; color: var(--text-secondary); }
.batch-drop__browse {
  color: var(--text-accent); cursor: pointer; text-decoration: underline;
}

.batch-textarea-wrap { }
.batch-textarea {
  width: 100%; padding: 14px;
  background: var(--bg-input); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); color: var(--text-primary);
  font-size: 13px; font-family: 'JetBrains Mono', monospace;
  resize: vertical; outline: none; margin-bottom: 10px;
}
.batch-textarea:focus { border-color: var(--accent-blue); }

.btn {
  padding: 10px 24px; font-size: 14px; font-weight: 600;
  border: none; border-radius: var(--radius-sm);
  cursor: pointer; transition: all 0.2s;
}
.btn--primary {
  background: var(--gradient-main); color: white;
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-glow); }

.batch-results { margin-top: 20px; }
.batch-result-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  align-items: start;
}
.batch-result-row__query {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px; font-weight: 600;
}
.batch-result-row__analogs {
  display: flex; flex-wrap: wrap; gap: 6px;
}

/* ===== MODAL ===== */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.7); z-index: 1000;
  backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
}
.modal-overlay--active { display: flex; }
.modal {
  background: var(--bg-modal);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  max-width: 700px; width: 95%; max-height: 90vh;
  overflow-y: auto; position: relative;
  box-shadow: var(--shadow-lg);
}
.modal__close {
  position: absolute; top: 14px; right: 14px;
  background: none; border: none; color: var(--text-muted);
  font-size: 26px; cursor: pointer; z-index: 10;
  width: 36px; height: 36px; display: flex;
  align-items: center; justify-content: center;
  border-radius: 50%; transition: all 0.2s;
}
.modal__close:hover { color: var(--text-primary); background: rgba(255,255,255,0.08); }
.modal__content { padding: 28px; }

/* ===== FOOTER ===== */
.footer { border-top: 1px solid var(--border-color); padding: 20px 0; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer__left { display: flex; flex-direction: column; gap: 4px; }
.footer__logo { font-size: 13px; font-weight: 700; color: var(--text-secondary); }
.footer__copy { font-size: 11px; color: var(--text-muted); }
.footer__stat { font-size: 11px; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .container { padding: 0 12px; }

  /* Header: stack brand selector */
  .header { height: auto; padding: 8px 0; }
  .header__inner { flex-wrap: wrap; height: auto; gap: 8px; }
  .logo__name { font-size: 12px; letter-spacing: 1px; }
  .logo__sub { font-size: 8px; }
  .brand-selector {
    order: 3; width: 100%; justify-content: flex-start;
    gap: 4px; padding: 4px 0;
    -webkit-overflow-scrolling: touch;
  }
  .brand-sel-btn { padding: 4px 8px; font-size: 11px; }
  .brand-sel-btn .brand-dot { width: 16px; height: 16px; font-size: 8px; }
  .nav__link--ext { padding: 4px 10px; font-size: 11px; }

  /* Hero */
  .hero { padding: 24px 0 16px; }
  .hero__title { font-size: 24px; }
  .hero__subtitle { font-size: 13px; margin-bottom: 16px; }
  .search__input { font-size: 14px; padding: 10px 0; }
  .search__input::placeholder { font-size: 12px; }

  /* Layout: single column */
  .main-layout { grid-template-columns: 1fr; }
  .sidebar {
    position: static; max-height: none;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px; margin-bottom: 12px;
  }

  /* Cards */
  .landing-grid, .series-grid { grid-template-columns: 1fr; }
  .search-results { grid-template-columns: 1fr; }
  .sr-card__brands { gap: 3px; }
  .sr-pill { font-size: 10px; padding: 2px 6px; }

  /* Analog rows: stack on mobile */
  .analog-row {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 6px 8px; padding: 10px 12px;
  }
  .analog-row__brand { font-size: 12px; }
  .analog-row__article { font-size: 13px; }
  .analog-row__price { font-size: 13px; min-width: auto; }
  .compat-badge { font-size: 9px; padding: 2px 6px; }

  /* Config panel */
  .config-panel { padding: 14px; }
  .config__title { font-size: 20px; }
  .config__selectors { gap: 10px; }
  .config-select-group { min-width: 100px; flex: 1; }

  /* Modal */
  .modal { width: 98%; border-radius: var(--radius-md); }
  .modal__content { padding: 16px; }

  /* Footer */
  .footer__inner { flex-direction: column; text-align: center; }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.landing-card, .series-card, .sr-card { animation: fadeIn 0.25s ease backwards; }
.landing-card:nth-child(1) { animation-delay: 0.03s; }
.landing-card:nth-child(2) { animation-delay: 0.06s; }
.landing-card:nth-child(3) { animation-delay: 0.09s; }
.landing-card:nth-child(4) { animation-delay: 0.12s; }
.landing-card:nth-child(5) { animation-delay: 0.15s; }
.landing-card:nth-child(6) { animation-delay: 0.18s; }
