/* ============================================================
   RobotTesters — Stylesheet
   ============================================================ */

/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #ffffff;
  --surface:      #f8f9fa;
  --card:         #ffffff;
  --card-hover:   #fafafa;
  --border:       #e2e8f0;
  --border-2:     #cbd5e1;
  --primary:      #C41A1A;
  --primary-dark: #961414;
  --silver:       #8896A3;
  --purple:       #8896A3;
  --gold:         #9B7A35;
  --text:         #1a1a2e;
  --text-2:       #4a5568;
  --text-3:       #9ca3af;
  --radius:       12px;
  --radius-sm:    8px;
  --shadow:       0 4px 24px rgba(0,0,0,.08);
  --transition:   .2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

img { display: block; max-width: 100%; }

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 99px; }

/* ── Typography ───────────────────────────────────────────── */
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.1; }
h2 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; }

/* ── Layout helpers ───────────────────────────────────────── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 600;
  transition: filter var(--transition), transform var(--transition);
}
.btn-primary:hover { filter: brightness(1.15); transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 14px;
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  font-size: .8rem;
  font-weight: 500;
  transition: border-color var(--transition), color var(--transition);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

.btn-buy {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  padding: 8px 16px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  transition: filter var(--transition), transform var(--transition);
}
.btn-buy:hover { filter: brightness(1.15); transform: translateY(-1px); }

.variant-badge {
  display: inline-block;
  vertical-align: middle;
  padding: 2px 8px;
  background: rgba(155,122,53,.13);
  color: var(--gold);
  border: 1px solid rgba(155,122,53,.35);
  border-radius: 4px;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  line-height: 1.6;
}

.variant-badge--large {
  font-size: .75rem;
  padding: 3px 10px;
}

.tag-unavailable {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 6px 12px;
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #d1d5db;
  border-radius: var(--radius-sm);
  font-size: .8rem;
  font-weight: 500;
}

.tag-unavailable--large {
  width: 100%;
  justify-content: center;
  padding: 12px 24px;
  font-size: .95rem;
}

.tag-price-tbc {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .01em;
}

.score-na-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-sm);
  color: #6b7280;
  font-size: .9rem;
  margin-bottom: 20px;
}

.btn-buy--large {
  width: 100%;
  justify-content: center;
  padding: 14px 24px;
  font-size: 1rem;
}

.buy-cta { text-align: center; }

/* ============================================================
   NAVIGATION
   ============================================================ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  background: #ffffff;
  backdrop-filter: none;
  border-bottom: 2px solid #cc0000;
  box-shadow: 0 2px 8px rgba(204,0,0,.10);
}

.navbar__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 16px 24px;
  max-width: 1280px;
  margin: 0 auto;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: #1a1a2e;
  white-space: nowrap;
}
.navbar__logo svg  { flex-shrink: 0; }
.navbar__logo img  { height: 34px; width: auto; flex-shrink: 0; display: block; }
.navbar__logo-text {
  font-size: 1.3rem;
  font-weight: 800;
  color: #1a1a2e;
  letter-spacing: -0.01em;
  line-height: 1;
  margin-left: -18px;
}
.navbar__logo-red { color: #cc0000; }

/* Dropdowns */
.navbar__nav { display: flex; gap: 4px; margin-left: auto; }

.nav-dropdown { position: relative; }

.nav-dropdown__btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: transparent;
  color: #4a5568;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}
.nav-dropdown__btn:hover,
.nav-dropdown:hover .nav-dropdown__btn { background: #f5f5f5; color: #1a1a2e; }

.nav-dropdown__chevron {
  width: 14px; height: 14px;
  transition: transform var(--transition);
}
.nav-dropdown:hover .nav-dropdown__chevron { transform: rotate(180deg); }

.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 180px;
  background: #ffffff;
  border: 1px solid #cc0000;
  border-radius: var(--radius);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  box-shadow: 0 4px 16px rgba(204,0,0,.12);
  z-index: 200;
}
.nav-dropdown:hover .nav-dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  color: #4a5568;
  transition: background var(--transition), color var(--transition);
}
.nav-dropdown__item:hover { background: #fef2f2; color: #cc0000; }
.nav-dropdown__item .dot {
  width: 8px; height: 8px; border-radius: 50%;
  flex-shrink: 0;
}

/* ── Nested brand submenu ─────────────────────────────────── */
.nav-dropdown__menu--brands { min-width: 230px; }

.nav-subdropdown { position: relative; }

.nav-dropdown__item--parent {
  justify-content: space-between;
}
.nav-dropdown__item--parent:hover { background: #fef2f2; color: #cc0000; }

.nav-subdropdown__arrow {
  flex-shrink: 0;
  opacity: .45;
  margin-left: auto;
  transition: opacity var(--transition);
}
.nav-subdropdown:hover .nav-subdropdown__arrow { opacity: .9; }

.nav-subdropdown__menu {
  position: absolute;
  right: calc(100% + 2px);
  left: auto;
  top: -4px;
  min-width: 190px;
  background: #ffffff;
  border: 1px solid #cc0000;
  border-radius: var(--radius-sm);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-6px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  box-shadow: -4px 4px 20px rgba(204,0,0,.12);
  z-index: 300;
}
.nav-subdropdown:hover .nav-subdropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* Mobile toggle */
.navbar__mobile-toggle {
  display: none;
  padding: 8px;
  color: #4a5568;
  margin-left: auto;
}
.navbar__mobile-toggle:hover { color: #cc0000; }

/* ── Mobile menu ─────────────────────────────────────────── */
#mobile-menu {
  display: none;
  position: fixed;
  top: 62px; left: 0; right: 0;
  max-height: calc(100dvh - 62px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border-top: 2px solid var(--primary);
  box-shadow: 0 8px 32px rgba(0,0,0,.13);
  z-index: 99;
}
#mobile-menu.open { display: block; }

/* Top-level groups */
.mm-group { border-bottom: 1px solid #f0f0f0; }

.mm-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}
.mm-toggle:active { background: #fafafa; }

.mm-panel { display: none; }
.mm-panel.is-open { display: block; }

/* Category links */
.mm-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px 12px 28px;
  font-size: .88rem;
  color: var(--text-2);
  border-top: 1px solid #f9f9f9;
}
.mm-link:hover { background: #fef2f2; color: var(--primary); }
.mm-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }

/* Brand sub-groups */
.mm-subgroup { border-top: 1px solid #f0f0f0; }
.mm-subgroup:first-child { border-top: none; }

.mm-subtoggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  font-size: .88rem;
  color: var(--text-2);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}
.mm-subtoggle:active { background: #fafafa; }
.mm-subtoggle.is-open { color: var(--primary); }

.mm-subpanel { display: none; background: #fafafa; }
.mm-subpanel.is-open { display: block; }

.mm-sublink {
  display: block;
  padding: 10px 20px 10px 46px;
  font-size: .82rem;
  color: var(--text-2);
  border-top: 1px solid #efefef;
}
.mm-sublink:hover { background: #fef2f2; color: var(--primary); }

/* Arrow icon (shared by toggle + subtoggle) */
.mm-arrow {
  flex-shrink: 0;
  color: var(--text-3);
  transition: transform .2s ease;
  margin-left: auto;
}
.mm-toggle.is-open .mm-arrow,
.mm-subtoggle.is-open .mm-arrow { transform: rotate(180deg); }

/* Direct footer links */
.mm-direct {
  display: block;
  padding: 15px 20px;
  font-size: .9rem;
  font-weight: 600;
  border-top: 1px solid #f0f0f0;
}
.mm-direct:last-child { padding-bottom: 20px; }

@media (max-width: 768px) {
  .navbar__nav { display: none; }
  .navbar__mobile-toggle { display: flex; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 48px 24px 32px;
  text-align: center;
  background: #ffffff;
}

.hero::before { display: none; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(204,0,0,.08);
  border: 1px solid rgba(204,0,0,.4);
  border-radius: 99px;
  padding: 5px 14px;
  font-size: .8rem;
  font-weight: 600;
  color: #cc0000;
  margin-bottom: 20px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.hero__title { color: #111827; margin-bottom: 16px; }
.hero__title em {
  font-style: normal;
  background: linear-gradient(135deg, #cc0000, #ff4444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  max-width: 600px;
  margin: 0 auto 32px;
  color: #374151;
  font-size: 1.05rem;
}

.hero__stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  margin-top: 0px;
  padding-top: 0px;
  border-top: 1px solid rgba(204,0,0,.2);
}

.hero__stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: #cc0000;
}
.hero__stat-label {
  font-size: .8rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ============================================================
   FEATURED SECTION
   ============================================================ */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.section-header h2 { color: #1a1a2e; }
.section-header p { color: var(--text-3); font-size: .875rem; }

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}

@media (max-width: 1000px) { .featured-grid { grid-template-columns: 1fr; } }

/* ── Featured card ─────────────────────────────────────────── */
.featured-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
}
.featured-card:hover {
  border-color: var(--accent, var(--primary));
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(196,26,26,.12);
}

.featured-card__image {
  position: relative;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.robot-silhouette { position: relative; z-index: 1; }

/* When the silhouette wrapper contains a real photo,
   stretch it to fill the card image area */
.robot-silhouette:has(.robot-photo) {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.robot-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
}

.featured-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  background: rgba(196,26,26,.12);
  border: 1px solid rgba(196,26,26,.35);
  color: var(--primary);
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ── Rank badges (#1 #2 #3) ────────────────────────────────── */
.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-size: .75rem;
  font-weight: 800;
  padding: 4px 11px;
  border-radius: 99px;
  letter-spacing: .04em;
}
.rank-badge--1 { background: rgba(155,122,53,.16); border: 1px solid rgba(155,122,53,.45); color: var(--gold); }
.rank-badge--2 { background: rgba(136,150,163,.15); border: 1px solid rgba(136,150,163,.4); color: var(--silver); }
.rank-badge--3 { background: rgba(140,105,55,.15); border: 1px solid rgba(140,105,55,.38); color: #8C6937; }

/* ── Category SEO section ──────────────────────────────────── */
/* ── Category SEO — bold dark section ─────────────────────── */
#category-seo {
  background: var(--bg);
}
.cseo {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 24px 72px;
  border-top: 3px solid var(--cat-accent, var(--primary));
}
.cseo-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 52px;
}
.cseo-eyebrow {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cat-accent, var(--primary));
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cseo-eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--cat-accent, var(--primary));
  border-radius: 2px;
}
.cseo-heading {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 900;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -.02em;
}
.cseo-intro {
  font-size: .95rem;
  color: var(--text-2);
  line-height: 1.85;
  margin-bottom: 16px;
}
.cseo-body-text {
  font-size: .875rem;
  color: var(--text-3);
  line-height: 1.85;
}
.cseo-criteria-header {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 32px;
}
.cseo-criteria-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
}
.cseo-criterion {
  padding: 0 28px 0 0;
  border-right: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.cseo-criterion:not(:first-child) { padding-left: 28px; }
.cseo-criterion:last-child { border-right: none; }
.cseo-num {
  display: block;
  font-size: 4.5rem;
  font-weight: 900;
  line-height: .9;
  color: var(--cat-accent, var(--primary));
  opacity: .1;
  margin-bottom: -18px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.04em;
  user-select: none;
}
.cseo-crit-label {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  position: relative;
}
.cseo-crit-desc {
  font-size: .75rem;
  color: var(--text-3);
  line-height: 1.65;
}
@media (max-width: 1024px) {
  .cseo-criteria-row { grid-template-columns: repeat(3, 1fr); }
  .cseo-criterion:nth-child(3) { border-right: none; }
  .cseo-criterion:nth-child(n+4) { padding-top: 28px; border-right: 1px solid var(--border); border-top: 1px solid var(--border); }
  .cseo-criterion:last-child { border-right: none; }
}
@media (max-width: 768px) {
  .cseo-top { grid-template-columns: 1fr; gap: 24px; }
  .cseo-criteria-row { grid-template-columns: repeat(2, 1fr); }
  .cseo-criterion { border-right: 1px solid var(--border) !important; border-top: none !important; }
  .cseo-criterion:nth-child(even) { border-right: none !important; }
  .cseo-criterion { padding-top: 20px !important; }
}

/* ── Category FAQ (pre-footer) ─────────────────────────────── */
#category-faq {
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.category-faq-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 24px;
}
.category-faq-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 32px;
}
.category-faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px 40px;
}
.category-faq-item {
  border-left: 2px solid var(--border-2);
  padding-left: 16px;
}
.category-faq-q {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text-2);
  margin-bottom: 8px;
  line-height: 1.4;
}
.category-faq-a {
  font-size: .85rem;
  color: var(--text-3);
  line-height: 1.75;
}

.featured-card__body { padding: 20px; }

.card-brand {
  font-size: .75rem;
  font-weight: 700;
  color: var(--accent, var(--primary));
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 4px;
}

.card-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 6px;
}

.card-tagline {
  font-size: .85rem;
  color: var(--text-2);
  margin-bottom: 16px;
  line-height: 1.4;
}

.card-score-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.score-circle {
  display: flex;
  align-items: baseline;
  gap: 2px;
  background: rgba(0,0,0,.04);
  border: 2px solid var(--score-color, var(--primary));
  border-radius: 10px;
  padding: 8px 14px;
}
.score-value  { font-size: 1.8rem; font-weight: 900; color: inherit; }
.score-max    { font-size: .75rem; color: var(--text-3); }
.score-label  { font-size: .85rem; font-weight: 700; }

.card-price {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 14px;
}

.card-mini-bars { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }

.mini-bar {
  display: grid;
  grid-template-columns: 90px 1fr 36px;
  align-items: center;
  gap: 8px;
}
.mini-bar__label { font-size: .75rem; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-bar__track {
  height: 5px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}
.mini-bar__fill {
  height: 100%;
  border-radius: 99px;
  transition: width .5s ease;
}
.mini-bar__val { font-size: .7rem; color: var(--text-3); text-align: right; }

/* ============================================================
   COMPARATOR SECTION
   ============================================================ */
.comparator-section { padding: 0 24px 80px; max-width: 1280px; margin: 0 auto; }

/* ── Filters ───────────────────────────────────────────────── */
.filters-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-label {
  font-size: .75rem;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .06em;
  min-width: 60px;
}

.filter-pill {
  padding: 6px 14px;
  border-radius: 99px;
  border: 1px solid var(--border-2);
  background: transparent;
  color: var(--text-2);
  font-size: .8rem;
  font-weight: 500;
  transition: all var(--transition);
}
.filter-pill:hover { border-color: var(--primary); color: var(--primary); }
.filter-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.filter-brand-pill {
  padding: 6px 14px;
  border-radius: 99px;
  border: 1px solid var(--border-2);
  background: transparent;
  color: var(--text-2);
  font-size: .8rem;
  font-weight: 500;
  transition: all var(--transition);
}
.filter-brand-pill:hover { border-color: var(--purple); color: var(--purple); }
.filter-brand-pill.active {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
}
.brand-pill--hidden  { display: none; }
.cat-pill--hidden    { display: none; }
.score-pill--hidden  { display: none; }

/* Desktop: always show all category pills and hide the "+ N more" toggle */
@media (min-width: 769px) {
  .cat-pill--hidden { display: inline-block !important; }
  #cat-more-btn { display: none !important; }
}
.brand-pill--more {
  padding: 6px 12px;
  border-radius: 99px;
  border: 1px dashed var(--border-2);
  background: transparent;
  color: var(--text-3);
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.brand-pill--more:hover { border-color: var(--primary); color: var(--primary); }

.filter-score-pill {
  padding: 6px 14px;
  border-radius: 99px;
  border: 1px solid var(--border-2);
  background: transparent;
  color: var(--text-2);
  font-size: .8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}
.filter-score-pill:hover { border-color: var(--silver); color: var(--silver); }
.filter-score-pill.active {
  background: var(--silver);
  border-color: var(--silver);
  color: #fff;
}

.subcategory-pill {
  padding: 5px 12px;
  border-radius: 99px;
  border: 1px solid var(--border-2);
  background: transparent;
  color: var(--text-2);
  font-size: .75rem;
  font-weight: 500;
  transition: all var(--transition);
}
.subcategory-pill:hover { border-color: var(--gold); color: var(--gold); }
.subcategory-pill.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

/* Search + sort row */
.filters-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.search-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
}
.search-wrap svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  pointer-events: none;
}
.search-input {
  width: 100%;
  padding: 9px 12px 9px 36px;
  background: var(--card);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: .875rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition);
}
.search-input:focus { border-color: var(--primary); }
.search-input::placeholder { color: var(--text-3); }

.sort-select {
  padding: 9px 32px 9px 12px;
  background: var(--card);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: .875rem;
  font-family: inherit;
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: border-color var(--transition);
}
.sort-select:focus { border-color: var(--primary); }
.sort-select option { background: var(--card); }

/* ── Robot grid ────────────────────────────────────────────── */
.robot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.robot-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.robot-card:hover {
  border-color: var(--accent, var(--primary));
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(196,26,26,.10);
}

.robot-card__image {
  position: relative;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.robot-silhouette--sm svg { /* smaller variant via JS size param */ }

.category-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 2;
  background: rgba(255,255,255,.85);
  border: 1px solid var(--border-2);
  color: #64748b;
  font-size: .68rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.robot-card__body { padding: 16px; }

.card-score-inline {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 12px;
}
.score-inline      { font-size: 1.5rem; font-weight: 900; }
.score-inline-max  { font-size: .75rem; color: var(--text-3); }
.score-inline-label { font-size: .78rem; font-weight: 700; margin-left: 6px; }

.card-bars { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* No results */
#no-results {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 80px 24px;
  color: var(--text-3);
  text-align: center;
}

/* ============================================================
   ROBOT DETAIL PAGE
   ============================================================ */
.detail-hero {
  padding: 32px 24px 48px;
  position: relative;
  overflow: hidden;
  min-height: 340px;
}

.detail-hero::after {
  display: none;
}

.detail-hero__content { max-width: 1280px; margin: 0 auto; position: relative; z-index: 1; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  color: #6b7280;
  margin-bottom: 24px;
  transition: color var(--transition);
}
.back-link:hover { color: #111827; }

.detail-hero__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: center;
}

.detail-robot-image {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 230px;
  height: 230px;
  flex-shrink: 0;
  position: relative;
}
.detail-robot-image .robot-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  border-radius: 0;
}

.detail-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.detail-brand {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .1em;
}
.detail-cat-tag {
  font-size: .72rem;
  font-weight: 600;
  color: #6b7280;
  background: #f3f4f6;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.detail-name { color: #111827; margin-bottom: 8px; }
.detail-tagline { color: #6b7280; margin-bottom: 24px; font-size: 1.05rem; }

.detail-score-block {
  display: flex;
  align-items: center;
  gap: 20px;
}

.detail-score-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 3px solid;
  border-radius: 14px;
  padding: 12px 20px;
  background: #f9fafb;
  min-width: 90px;
}
.detail-score-value { font-size: 2.2rem; font-weight: 900; line-height: 1; }
.detail-score-sub   { font-size: .7rem; color: #9ca3af; margin-top: 2px; }
.detail-score-label { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.detail-price       { font-size: 1.3rem; font-weight: 700; color: #111827; margin-bottom: 2px; }
.detail-year        { font-size: .8rem; color: #9ca3af; }

@media (max-width: 768px) {
  .detail-hero__inner { grid-template-columns: 1fr; }
  .detail-robot-image { width: fit-content; }
}

/* ── Detail body ───────────────────────────────────────────── */
.detail-body {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 80px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.detail-section {}
.section-title {
  color: #1a1a2e;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.detail-description {
  color: var(--text-2);
  font-size: 1.02rem;
  line-height: 1.75;
  max-width: 760px;
}

/* Pentagon radar chart */
.pentagon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.pentagon-svg {
  width: 100%;
  max-width: 460px;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.07));
}

.pentagon-label {
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  fill: #5a6a80;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.pentagon-score {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 800;
}

.pentagon-tick {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 500;
  fill: #9aaabb;
}

/* Score breakdown */
.score-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.score-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  transition: border-color var(--transition);
}
.score-card:hover { border-color: var(--accent, var(--primary)); }

.score-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.score-card__title { font-size: .95rem; font-weight: 700; color: #1a1a2e; }
.score-card__pct   { font-size: 1.3rem; font-weight: 900; }

.score-card__bar-track {
  height: 6px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 14px;
}
.score-card__bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width .6s ease;
}

.score-card__subs { display: flex; flex-direction: column; gap: 8px; }

.sub-row {
  display: grid;
  grid-template-columns: 1fr 80px minmax(56px, auto) 40px;
  align-items: center;
  gap: 8px;
}
.sub-label { font-size: .78rem; color: var(--text-3); }
.sub-track {
  height: 4px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}
.sub-fill  { height: 100%; border-radius: 99px; transition: width .5s ease; }
.sub-spec  { font-size: .70rem; color: var(--text-3); text-align: right; opacity: .7; white-space: nowrap; }
.sub-val   { font-size: .72rem; color: var(--text-3); text-align: right; }

.score-card__weight {
  margin-top: 12px;
  font-size: .72rem;
  color: var(--text-3);
  border-top: 1px solid var(--border);
  padding-top: 8px;
}

/* Specs table */
.specs-table {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 700px;
}
.spec-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  border-bottom: 1px solid var(--border);
}
.spec-row:last-child { border-bottom: none; }
.spec-row:nth-child(odd) { background: var(--surface); }
.spec-key {
  padding: 12px 16px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-2);
  border-right: 1px solid var(--border);
}
.spec-val {
  padding: 12px 16px;
  font-size: .875rem;
  color: var(--text);
}

/* Pros & Cons */
.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 640px) { .pros-cons-grid { grid-template-columns: 1fr; } }

.pros-block, .cons-block {
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid;
}
.pros-block { background: rgba(16,185,129,.06); border-color: rgba(16,185,129,.2); }
.cons-block { background: rgba(239,68,68,.06); border-color: rgba(239,68,68,.2); }

.pros-title { color: #10b981; margin-bottom: 12px; font-size: .95rem; }
.cons-title { color: #ef4444; margin-bottom: 12px; font-size: .95rem; }

.pros-list li, .cons-list li {
  font-size: .875rem;
  color: var(--text-2);
  padding: 6px 0;
  border-bottom: 1px solid rgba(0,0,0,.06);
  display: flex;
  gap: 8px;
}
.pros-list li::before { content: '✓'; color: #10b981; flex-shrink: 0; }
.cons-list li::before { content: '✗'; color: #ef4444; flex-shrink: 0; }
.pros-list li:last-child, .cons-list li:last-child { border-bottom: none; }

/* Related robots */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.related-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  transition: border-color var(--transition), transform var(--transition);
}
.related-card:hover {
  border-color: var(--accent, var(--primary));
  transform: translateY(-2px);
}
.related-img {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.related-info { padding: 12px; }
.related-brand { font-size: .7rem; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }
.related-name  { font-size: .9rem; font-weight: 700; color: #1a1a2e; margin: 2px 0 6px; }
.related-score { font-size: .85rem; font-weight: 700; }

.not-found {
  display: flex; flex-direction: column; align-items: center;
  gap: 16px; padding: 80px 24px; text-align: center;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 40px 24px;
}

.footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

@media (max-width: 768px) { .footer__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer__inner { grid-template-columns: 1fr; } }

.footer__brand { }
.footer__logo  { font-size: 1.1rem; font-weight: 800; margin-bottom: 8px; }
.footer__logo span { color: var(--primary); }
.footer__tagline { font-size: .85rem; color: var(--text-3); max-width: 240px; }

.footer__col h4  { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin-bottom: 14px; }
.footer__col li  { margin-bottom: 8px; }
.footer__col a   { font-size: .85rem; color: var(--text-2); transition: color var(--transition); }
.footer__col a:hover { color: var(--text); }

.footer__social-link { display: flex; align-items: center; gap: 7px; }
.footer__social-link svg { flex-shrink: 0; opacity: .75; }
.footer__social-link:hover svg { opacity: 1; }

.footer__bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 24px;
  margin-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: .8rem;
  color: var(--text-3);
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.detail-robot-image--zoomable {
  cursor: zoom-in;
  position: relative;
}
.detail-robot-image--zoomable:hover .zoom-hint {
  opacity: 1;
}
.zoom-hint {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 6px;
  padding: 5px 7px;
  color: #fff;
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
  display: flex;
  align-items: center;
}

#lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,.88);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
}
#lightbox-overlay.open { display: flex; }

#lightbox-img {
  width: auto;
  height: auto;
  max-width: 90vw;
  max-height: 88vh;
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0,0,0,.8);
  cursor: zoom-in;
  user-select: none;
  transform-origin: center center;
}

/* ============================================================
   CONTENT AREA — card accent borders
   ============================================================ */
.page-content {
  background: #ffffff;
  color: #1a1a2e;
}

/* ── Featured cards: thin red border accent ──────────────── */
.page-content .featured-card {
  border: 1px solid rgba(196,26,26,.35);
  box-shadow: none;
}
.page-content .featured-card:hover {
  border-color: var(--primary);
  box-shadow: 0 12px 40px rgba(196,26,26,.10);
}
.page-content .featured-card__image { background: #f5f5f5; }

/* ── Robot grid cards: thin red border accent ────────────── */
.page-content .robot-card {
  border: 1px solid rgba(196,26,26,.35);
  box-shadow: none;
}
.page-content .robot-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 32px rgba(196,26,26,.10);
}
.page-content .robot-card__image { background: #f5f5f5; }

/* ── Ghost button ─────────────────────────────────────────── */
.page-content .btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* ── Footer ───────────────────────────────────────────────── */
.page-content .footer {
  background: #f8f9fa;
  border-top: 1px solid #e5e7eb;
}

#lightbox-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,.6);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 99px;
  padding: 6px 16px;
  font-size: .78rem;
  color: rgba(255,255,255,.6);
  white-space: nowrap;
  pointer-events: none;
  animation: fadeHint 3s ease forwards;
}

@keyframes fadeHint {
  0%   { opacity: 1; }
  60%  { opacity: 1; }
  100% { opacity: 0; }
}

#lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  font-size: 1.2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
}
#lightbox-close:hover { background: rgba(255,255,255,.2); }

/* ============================================================
   UTILITIES
   ============================================================ */
.text-primary { color: var(--primary); }
.text-muted   { color: var(--text-3); }
.mt-2  { margin-top: 8px; }
.mt-4  { margin-top: 16px; }
.mb-0  { margin-bottom: 0; }

/* Fade-in animation */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.robot-card, .featured-card {
  animation: fadeUp .3s ease both;
  will-change: transform;
}
.robot-grid.no-animate .robot-card {
  animation: none;
}

/* ============================================================
   ROBOT DETAIL PAGE — White background overrides
   ============================================================ */

/* Full white background for the robot detail page */
body.robot-page { background: #ffffff; }


/* Section titles */
.detail-body .section-title {
  color: #1a1a2e;
  border-bottom-color: #e5e7eb;
}

/* Overview description */
.detail-body .detail-description { color: #4a5568; }

/* Pentagon radar labels */
.detail-body .pentagon-label { fill: #4a5568; }

/* Score cards */
.detail-body .score-card {
  background: #f8f9fa;
  border-color: #e5e7eb;
}
.detail-body .score-card__title   { color: #1a1a2e; }
.detail-body .score-card__bar-track { background: #e5e7eb; }
.detail-body .score-card__weight {
  color: #9ca3af;
  border-top-color: #e5e7eb;
}

/* Sub-rows inside score cards */
.detail-body .sub-label { color: #64748b; }
.detail-body .sub-track { background: #e5e7eb; }
.detail-body .sub-spec  { color: #9ca3af; }
.detail-body .sub-val   { color: #9ca3af; }

/* Specs table */
.detail-body .specs-table { border-color: #e5e7eb; }
.detail-body .spec-row { border-bottom-color: #e5e7eb; }
.detail-body .spec-row:nth-child(odd) { background: #f8f9fa; }
.detail-body .spec-key {
  color: #64748b;
  border-right-color: #e5e7eb;
}
.detail-body .spec-val { color: #1a1a2e; }

/* Pros & Cons lists */
.detail-body .pros-list li,
.detail-body .cons-list li { color: #4a5568; }
.detail-body .pros-list li { border-bottom-color: rgba(16,185,129,.15); }
.detail-body .cons-list li { border-bottom-color: rgba(239,68,68,.15); }

/* Related cards */
.detail-body .related-card {
  background: #ffffff;
  border-color: #e5e7eb;
}
.detail-body .related-card:hover { border-color: var(--accent, var(--primary)); }
.detail-body .related-brand { color: #9ca3af; }
.detail-body .related-name  { color: #1a1a2e; }

/* ── Article: Related Articles block ──────────────────────── */
.related-articles {
  margin: 56px 0 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.related-articles__header {
  margin-bottom: 24px;
}
.related-articles__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0;
}
.related-articles__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.related-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.related-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(59,130,246,.12);
}
.related-card__tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.related-tag {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(59,130,246,.1);
  color: var(--primary);
  border: 1px solid rgba(59,130,246,.2);
}
.related-tag--orange {
  background: rgba(245,158,11,.1);
  color: #f59e0b;
  border-color: rgba(245,158,11,.2);
}
.related-tag--purple {
  background: rgba(139,92,246,.1);
  color: #8b5cf6;
  border-color: rgba(139,92,246,.2);
}
.related-tag--green {
  background: rgba(16,185,129,.1);
  color: #10b981;
  border-color: rgba(16,185,129,.2);
}
.related-tag--blue {
  background: rgba(59,130,246,.1);
  color: #60a5fa;
  border-color: rgba(59,130,246,.2);
}
.related-card__title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin: 0;
  flex: 1;
}
.related-card__excerpt {
  font-size: .85rem;
  color: var(--text-2);
  line-height: 1.6;
  margin: 0;
}
.related-card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .75rem;
  color: var(--text-3);
  flex-wrap: wrap;
}
.related-card__dot { opacity: .5; }
.related-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 4px;
}

/* ── Compare toggle button on robot cards ─────────────────── */
.robot-card__image { position: relative; }
.featured-card__image { position: relative; }

.card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.compare-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 12px;
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  font-size: .8rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.compare-btn:hover { border-color: var(--primary); color: var(--primary); }
.compare-btn.compare-checked {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.compare-btn.compare-checked:hover {
  filter: brightness(1.1);
}

/* ── Price slider ─────────────────────────────────────────── */
.price-slider-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  max-width: 280px;
}
.price-slider {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 4px;
  border-radius: 99px;
  background: var(--border);
  outline: none;
  cursor: pointer;
}
.price-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.price-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  border: none;
  cursor: pointer;
}
.price-slider-label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
  min-width: 80px;
}
.price-reset-btn {
  font-size: 1rem;
  line-height: 1;
  color: var(--text-3);
  padding: 2px 6px;
  border-radius: 4px;
  transition: color var(--transition);
}
.price-reset-btn:hover { color: var(--primary); }

/* ── Compare floating bar ─────────────────────────────────── */
#compare-bar {
  position: fixed;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: var(--text);
  color: #fff;
  border-radius: 12px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
  transition: bottom .3s ease;
  max-width: 760px;
  width: calc(100% - 48px);
  flex-wrap: wrap;
}
#compare-bar.visible { bottom: 24px; }

.compare-bar__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  font-weight: 500;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.compare-bar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.compare-bar__go {
  padding: 7px 16px;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 600;
  transition: filter var(--transition);
}
.compare-bar__go:hover { filter: brightness(1.2); }
.compare-bar__clear {
  padding: 7px 12px;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.8);
  border-radius: 8px;
  font-size: .8rem;
  transition: background var(--transition);
}
.compare-bar__clear:hover { background: rgba(255,255,255,.22); }

/* ── Compare page ─────────────────────────────────────────── */
.compare-header {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px 16px;
}
.compare-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--text);
  margin-top: 12px;
}
.compare-empty {
  max-width: 600px;
  margin: 80px auto;
  text-align: center;
  color: var(--text-2);
  font-size: 1rem;
}
.compare-empty a { color: var(--primary); text-decoration: underline; }

.compare-table-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 80px;
  overflow-x: auto;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: .875rem;
}
.compare-th-label {
  width: 180px;
  min-width: 120px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: bottom;
}
.compare-th-robot {
  padding: 20px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  text-align: center;
  vertical-align: top;
  border-top: 3px solid var(--accent, #3b82f6);
}
.compare-robot-img {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}
.compare-robot-brand {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-3);
  margin-bottom: 4px;
}
.compare-robot-name {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
}
.compare-robot-score {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.compare-robot-score span { font-size: .9rem; font-weight: 500; color: var(--text-3); }
.compare-robot-price {
  font-size: .8rem;
  color: var(--text-2);
  margin-bottom: 10px;
}
.compare-buy { font-size: .78rem; padding: 6px 12px; margin-top: 0; }

.compare-section-header td {
  background: var(--surface);
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-3);
  padding: 10px 16px;
  border: 1px solid var(--border);
}
.compare-row-label {
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 600;
  color: var(--text-2);
  font-size: .8rem;
  vertical-align: top;
}
.compare-cell {
  padding: 10px 16px;
  border: 1px solid var(--border);
  text-align: center;
  color: var(--text);
  vertical-align: top;
}
.compare-cell.compare-best {
  background: #f0fdf4;
  color: #15803d;
  font-weight: 700;
}
.compare-cell.compare-na { color: var(--text-3); }
.compare-row-top .compare-cell { vertical-align: top; }
.compare-cell--list { text-align: left; }
.compare-cell--list ul { padding-left: 14px; list-style: disc; }
.compare-cell--list li { margin-bottom: 4px; font-size: .8rem; color: var(--text-2); }
.related-card:hover .related-card__cta { text-decoration: underline; }

/* ── Cross-category comparison banner ─────────────────────── */
.compare-cross-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin: 0 0 20px;
  color: #92400e;
  font-size: .875rem;
  line-height: 1.5;
}
.compare-cross-banner svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: #d97706;
}

/* ============================================================
   BRANDS PAGES — brands.html & brand.html
   ============================================================ */

/* ── Shared brand page layout ───────────────────────────────── */
.brands-page-wrap {
  min-height: 100vh;
  background: var(--bg);
}

/* ── BRANDS LISTING PAGE hero ───────────────────────────────── */
.brands-hero {
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border);
  padding: 56px 24px 48px;
  text-align: center;
}
.brands-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 20px;
}
.brands-hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.brands-hero__title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -.03em;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.1;
}
.brands-hero__subtitle {
  font-size: 1rem;
  color: var(--text-2);
  max-width: 560px;
  margin: 0 auto 28px;
  line-height: 1.65;
}
.brands-hero__stats {
  display: inline-flex;
  gap: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 32px;
}
.brands-hero__stat { text-align: center; }
.brands-hero__stat-val {
  display: block;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--brands-accent, var(--primary));
  line-height: 1;
}
.brands-hero__stat-label {
  display: block;
  font-size: .75rem;
  color: var(--text-3);
  margin-top: 4px;
}

/* ── Category tabs ──────────────────────────────────────────── */
.brands-tabs-bar {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 60px;
  z-index: 40;
}
.brands-tabs {
  display: flex;
  gap: 0;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  overflow-x: auto;
  scrollbar-width: none;
}
.brands-tabs::-webkit-scrollbar { display: none; }
.brands-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-3);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color var(--transition), border-color var(--transition);
  text-decoration: none;
}
.brands-tab:hover { color: var(--text-2); }
.brands-tab--active {
  color: var(--tab-accent, var(--primary));
  border-bottom-color: var(--tab-accent, var(--primary));
}
.brands-tab__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Brands grid (listing page) ─────────────────────────────── */
.brands-grid-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

/* ── Brand card (listing page) ──────────────────────────────── */
.brand-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
  position: relative;
}
.brand-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--brand-accent, var(--primary));
  opacity: 0;
  transition: opacity var(--transition);
}
.brand-card:hover {
  border-color: var(--brand-accent, var(--primary));
  box-shadow: 0 12px 40px rgba(0,0,0,.10);
  transform: translateY(-3px);
}
.brand-card:hover::before { opacity: 1; }

.brand-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 0;
}
.brand-card__logo-area {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-card__initial {
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
}
.brand-card__score-badge {
  display: flex;
  align-items: baseline;
  gap: 2px;
  border: 2px solid;
  border-radius: 8px;
  padding: 6px 10px;
  background: rgba(255,255,255,.9);
}
.brand-card__score-val {
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1;
}
.brand-card__score-sub {
  font-size: .7rem;
  color: var(--text-3);
}

.brand-card__body {
  padding: 16px 20px;
  flex: 1;
}
.brand-card__name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}
.brand-card__tagline {
  font-size: .8rem;
  font-weight: 600;
  color: var(--brand-accent, var(--primary));
  margin-bottom: 10px;
}
.brand-card__desc {
  font-size: .82rem;
  color: var(--text-2);
  line-height: 1.6;
}

.brand-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  flex-wrap: wrap;
  gap: 8px;
}
.brand-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.brand-card__pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .72rem;
  color: var(--text-3);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 3px 9px;
}
.brand-card__pill svg { opacity: .6; }
.brand-card__pill--robots {
  background: rgba(196,26,26,.06);
  border-color: rgba(196,26,26,.2);
  color: var(--primary);
  font-weight: 600;
}
.brand-card__cta {
  font-size: .8rem;
  font-weight: 700;
  color: var(--brand-accent, var(--primary));
  white-space: nowrap;
}

/* ── BRAND DETAIL PAGE hero ─────────────────────────────────── */
.brand-hero {
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border);
}
.brand-hero__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px 48px;
}
.brand-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  color: var(--text-3);
  margin-bottom: 28px;
}
.brand-hero__breadcrumb a { color: var(--text-3); }
.brand-hero__breadcrumb a:hover { color: var(--brand-accent, var(--primary)); }
.brand-hero__breadcrumb span { color: var(--text-2); font-weight: 600; }
.brand-hero__breadcrumb svg { opacity: .5; flex-shrink: 0; }

.brand-hero__content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
}
.brand-hero__left { display: flex; gap: 24px; align-items: flex-start; }
.brand-hero__logo-wrap {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-hero__initial {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}
.brand-hero__eyebrow {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.brand-hero__name {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -.03em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 8px;
}
.brand-hero__tagline {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.5;
  margin-bottom: 16px;
}
.brand-hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.brand-hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .78rem;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 5px 12px;
  font-weight: 500;
}
.brand-hero__pill svg { opacity: .55; flex-shrink: 0; }

.brand-hero__right { flex-shrink: 0; }
.brand-hero__score-card {
  background: var(--card);
  border: 1px solid;
  border-radius: var(--radius);
  padding: 24px 28px;
  text-align: center;
  min-width: 140px;
}
.brand-hero__score-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}
.brand-hero__score-val {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  display: block;
}
.brand-hero__score-sub {
  font-size: .8rem;
  color: var(--text-3);
  margin-top: 4px;
  display: block;
}
.brand-hero__score-grade {
  font-size: .85rem;
  font-weight: 700;
  margin-top: 8px;
}

/* ── Brand description section ──────────────────────────────── */
.brand-description {
  border-bottom: 1px solid var(--border);
}
.brand-desc-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 56px;
  align-items: start;
}
.brand-desc-heading {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -.02em;
}
.brand-desc-body {
  font-size: .95rem;
  color: var(--text-2);
  line-height: 1.85;
}

.brand-highlights {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.brand-highlights__title {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
}
.brand-highlights__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.brand-highlights__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .875rem;
  color: var(--text-2);
  line-height: 1.4;
}
.brand-highlights__icon {
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Brand filter bar ───────────────────────────────────────── */
.brand-filter-section {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 60px;
  z-index: 30;
}
.brand-filter-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.brand-filter__row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 0;
}
.brand-filter__search-wrap {
  position: relative;
  flex: 1;
  min-width: 180px;
  max-width: 320px;
}
.brand-filter__search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  pointer-events: none;
}
.brand-filter__search {
  width: 100%;
  padding: 8px 12px 8px 34px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition);
  outline: none;
}
.brand-filter__search:focus { border-color: var(--primary); }
.brand-filter__search::placeholder { color: var(--text-3); }

.brand-filter__sort-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.brand-filter__sort-label {
  font-size: .78rem;
  color: var(--text-3);
  white-space: nowrap;
}
.brand-filter__sort {
  padding: 8px 12px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  cursor: pointer;
  outline: none;
}
.brand-filter__sort:focus { border-color: var(--primary); }

.brand-filter__cats {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.brand-filter__count {
  font-size: .78rem;
  color: var(--text-3);
  padding: 0 0 12px;
  font-weight: 500;
}

/* ── Brand robots grid ──────────────────────────────────────── */
.brand-robots-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}
.brand-robots-section h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 28px;
  letter-spacing: -.01em;
}
.brand-robots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* ── Brand robot card (no compare button) ───────────────────── */
.brand-robot-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.brand-robot-card:hover {
  border-color: var(--accent, var(--primary));
  box-shadow: 0 10px 36px rgba(0,0,0,.09);
  transform: translateY(-2px);
}
.brand-robot-card__image {
  position: relative;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  border-bottom: 1px solid var(--border);
}
.brand-robot-card__img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-robot-card__body {
  padding: 18px 18px 16px;
}
.brand-robot-card__tagline {
  font-size: .8rem;
  color: var(--text-2);
  line-height: 1.4;
  margin-bottom: 12px;
}
.brand-robot-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .brand-hero__content { grid-template-columns: 1fr; gap: 24px; }
  .brand-hero__right { display: none; }
  .brand-desc-inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .brand-hero__left { flex-direction: column; gap: 16px; }
  .brands-hero { padding: 40px 16px 32px; }
  .brands-hero__stats { flex-direction: column; gap: 12px; padding: 16px 24px; }
  .brand-filter__row { flex-direction: column; align-items: stretch; }
  .brand-filter__search-wrap { max-width: 100%; }
  .brands-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .brand-robots-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
.compare-cross-banner strong { color: #78350f; }

/* ── Mobile: hero + global spacing ───────────────────────── */
@media (max-width: 640px) {
  /* Hero */
  .hero {
    padding: 28px 16px 20px;
  }
  .hero__eyebrow {
    font-size: .62rem;
    margin-bottom: 10px;
  }
  .hero__title    { font-size: 1.65rem; margin-bottom: 8px; }
  .hero__subtitle { font-size: .85rem; margin-bottom: 14px; }

  /* Stats: 2×2 grid, compact */
  .hero__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0;
    border-top: none;
    border: 1px solid rgba(204,0,0,.15);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-top: 16px;
  }
  .hero__stats > div {
    padding: 12px 8px;
    border-right: 1px solid rgba(204,0,0,.12);
    border-bottom: 1px solid rgba(204,0,0,.12);
  }
  .hero__stats > div:nth-child(2n) { border-right: none; }
  .hero__stats > div:nth-child(3),
  .hero__stats > div:nth-child(4)  { border-bottom: none; }
  .hero__stat-value { font-size: 1.45rem; }
  .hero__stat-label { font-size: .62rem; letter-spacing: .06em; }

  /* Comparator section */
  .comparator-section { padding: 0 12px 40px; }

  /* Section header */
  .section-header      { margin-bottom: 14px; }
  .section-header h2   { font-size: 1.1rem; }

  /* Filters bar */
  .filters-bar         { padding: 12px; gap: 10px; border-radius: var(--radius-sm); }
  .filter-row          { gap: 6px; }
  .filter-label        { font-size: .65rem; }
  .filter-pill,
  .filter-brand-pill,
  .filter-score-pill   { padding: 4px 10px; font-size: .75rem; }
  .brand-pill--more    { padding: 4px 9px; font-size: .72rem; }

  /* Search + sort row */
  .search-sort-row     { gap: 8px; }
  .search-input        { font-size: .82rem; }
}

/* ── Mobile: 2-column robot grid ─────────────────────────── */
@media (max-width: 640px) {
  .robot-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  /* Compact image */
  .robot-card__image { height: 100px; }

  /* Compact body */
  .robot-card__body { padding: 9px 10px 10px; }

  .card-brand        { font-size: .62rem; margin-bottom: 2px; }
  .card-name         { font-size: .78rem; line-height: 1.3; margin-bottom: 5px; }

  /* Score: keep but smaller */
  .score-inline      { font-size: 1.1rem; }
  .score-inline-max  { font-size: .6rem; }
  .score-inline-label{ font-size: .62rem; margin-left: 4px; }
  .card-score-inline { margin-bottom: 8px; }

  /* Hide bars — not enough space */
  .card-bars { display: none; }

  /* Footer: price above button */
  .card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding-top: 8px;
  }
  .card-price        { font-size: .78rem; margin-bottom: 0; }
  .compare-btn       { padding: 5px 8px; font-size: .7rem; }
  .card-actions .btn-ghost { padding: 5px 8px; font-size: .7rem; }

  /* Featured: 1 column, smaller image */
  .featured-grid                { grid-template-columns: 1fr; }
  .featured-card__image         { height: 120px; }

  /* Brand listing cards: 2-col, hide description */
  .brand-card__desc  { display: none; }
  .brand-card__body  { padding: 8px 12px; }
  .brand-card__name  { font-size: .95rem; }

  /* Brand robot cards 2-col */
  .brand-robot-card__image   { min-height: 90px; padding: 10px; }
  .brand-robot-card__body    { padding: 9px 10px; }
  .brand-robot-card__tagline { display: none; }
  .brand-robot-card__footer  { gap: 4px; }
}


/* ── Toast notification ─────────────────────────────────── */
.rt-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: #1e293b;
  color: #f1f5f9;
  font-size: .85rem;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
  opacity: 0;
  transition: opacity .2s, transform .2s;
  pointer-events: none;
  z-index: 9999;
}
.rt-toast--show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ══════════════════════════════════════════════════════════════
   PARTS / SPARE PARTS
══════════════════════════════════════════════════════════════ */
.parts-hero {
  padding: 72px 24px 48px;
  text-align: center;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.parts-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}
.parts-hero h1 {
  font-size: clamp(1.9rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--text);
  margin: 0 0 14px;
}
.parts-hero h1 em { font-style: normal; color: var(--primary); }
.parts-hero p {
  font-size: 1rem;
  color: var(--text-2);
  max-width: 520px;
  margin: 0 auto;
}
.parts-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 28px 24px 0;
  max-width: 1300px;
  margin: 0 auto;
  align-items: center;
}
.parts-filters label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.parts-filters select {
  background: var(--card);
  border: 1px solid var(--border-2);
  color: var(--text);
  font-family: inherit;
  font-size: .875rem;
  padding: 8px 32px 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  min-width: 160px;
  transition: border-color .2s;
}
.parts-filters select:focus { outline: none; border-color: var(--primary); }
.parts-search {
  background: var(--card);
  border: 1px solid var(--border-2);
  color: var(--text);
  font-family: inherit;
  font-size: .875rem;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  min-width: 200px;
  transition: border-color .2s;
}
.parts-search::placeholder { color: var(--text-3); }
.parts-search:focus { outline: none; border-color: var(--primary); }
.parts-results-count {
  padding: 20px 24px 0;
  max-width: 1300px;
  margin: 0 auto;
  font-size: .82rem;
  color: var(--text-3);
}
.parts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
  padding: 24px;
  max-width: 1300px;
  margin: 0 auto;
}
.part-card {
  background: var(--card);
  border: 1px solid rgba(196,26,26,.25);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.part-card__image {
  height: 160px;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.part-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}
.part-card__image--placeholder {
  background: linear-gradient(135deg, #fff 0%, #fef2f2 100%);
}
.part-card__image--placeholder svg {
  opacity: .85;
  transition: transform var(--transition);
}
.part-card:hover .part-card__image--placeholder svg {
  transform: scale(1.06);
}
.part-card__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.part-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(196,26,26,.10);
}
.part-card__type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--primary);
  padding: 3px 9px;
  background: rgba(196,26,26,.08);
  border-radius: 99px;
  width: fit-content;
}
.part-card__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin: 0;
}
.part-card__brand {
  font-size: .8rem;
  color: var(--text-3);
  font-weight: 500;
}
.part-card__compat {
  font-size: .78rem;
  color: var(--text-2);
  line-height: 1.5;
}
.part-card__compat strong { color: var(--text); font-weight: 600; }
.part-card__desc {
  font-size: .82rem;
  color: var(--text-2);
  line-height: 1.6;
  flex: 1;
}
.part-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.part-card__price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
}
.btn-part-buy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: .82rem;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background var(--transition);
  white-space: nowrap;
}
.btn-part-buy:hover { background: var(--primary-dark); }
.parts-empty {
  text-align: center;
  padding: 64px 24px;
  color: var(--text-3);
  grid-column: 1 / -1;
}
.parts-empty p { font-size: 1rem; margin: 0; }

/* Robot detail — compatible parts section */
.robot-parts {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
  border-top: 1px solid var(--border);
}
.robot-parts__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.robot-parts__title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0;
}
.robot-parts__all-link {
  font-size: .82rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}
.robot-parts__all-link:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .parts-filters { flex-direction: column; align-items: flex-start; }
}

/* ── CLS prevention: reserve space for JS-populated content ── */
#brand-filter-row { min-height: 40px; }
#score-filter-row:not(:empty) { min-height: 40px; }
.featured-grid { min-height: 540px; }
@media (max-width: 1000px) {
  .featured-grid { min-height: 1640px; }
}
.robot-grid { min-height: 720px; }
@media (max-width: 1000px) {
  .robot-grid { min-height: 1080px; }
}

/* ============================================================
   FAQ section (robot + part detail pages)
   ============================================================ */
.faq-section { }
.faq-section .section-title { margin-bottom: 12px; }
.faq-intro {
  color: var(--text-2);
  font-size: .95rem;
  margin: 0 0 18px;
  max-width: 820px;
}
.faq-list {
  display: flex;
  flex-direction: column;
  max-width: 820px;
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  padding: 4px 20px;
  background: var(--card);
}
.faq-item {
  border-bottom: 1px solid rgba(196,26,26,.12);
  background: transparent;
  transition: background var(--transition);
}
.faq-item:last-child { border-bottom: none; }
.faq-item[open] { background: rgba(196,26,26,.025); }
.faq-q {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  font-weight: 500;
  font-size: .88rem;
  color: var(--text);
  user-select: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q-text { flex: 1; line-height: 1.45; }
.faq-chevron {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  color: var(--text-3);
  transition: transform var(--transition), color var(--transition);
}
.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}
.faq-q:hover { color: var(--primary); }
.faq-q:hover .faq-chevron { color: var(--primary); }
.faq-a {
  padding: 0 0 14px;
  color: var(--text-2);
  font-size: .86rem;
  line-height: 1.6;
}
.faq-a p { margin: 0; }
@media (max-width: 640px) {
  .faq-list { padding: 2px 14px; }
  .faq-q { font-size: .85rem; padding: 11px 0; }
  .faq-a { font-size: .82rem; padding: 0 0 12px; }
}

/* ============================================================
   Part detail page (part.html)
   ============================================================ */
.part-page main { background: var(--bg); }
.part-hero {
  background: linear-gradient(135deg, #fff 0%, #fef2f2 100%);
  border-bottom: 1px solid var(--border);
  padding: 32px 0 40px;
}
.part-hero__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.part-hero__row {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 24px;
}
.part-hero__image {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
}
.part-hero__image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.part-hero__image svg { width: 160px; height: 160px; opacity: .85; }
.part-hero__info { display: flex; flex-direction: column; gap: 14px; }
.part-hero__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.part-hero__type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--primary);
  padding: 4px 10px;
  background: rgba(196,26,26,.08);
  border-radius: 99px;
}
.part-hero__brand-tag {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-2);
  padding: 4px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
}
.part-hero__name {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  margin: 0;
  line-height: 1.2;
}
.part-hero__desc {
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}
.part-hero__compat {
  font-size: .9rem;
  color: var(--text-2);
  line-height: 1.6;
}
.part-hero__compat strong { color: var(--text); margin-right: 6px; }
.part-hero__compat-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}
.part-hero__compat-link:hover { text-decoration: underline; }
.part-hero__compat-link + .part-hero__compat-link::before { content: ", "; color: var(--text-2); }
.part-hero__price-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.part-hero__price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
}
@media (max-width: 760px) {
  .part-hero__row { grid-template-columns: 1fr; gap: 20px; }
  .part-hero__image { height: 240px; }
  .part-hero__name { font-size: 1.5rem; }
  .part-hero__price { font-size: 1.3rem; }
}

/* Compatible robots grid on part page reuses .related-grid; add link variant */
.related-card--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

/* ============================================================
   Clickable part card (links to part.html)
   ============================================================ */
.part-card--clickable { position: relative; }
.part-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  text-decoration: none;
  /* invisible link surface */
}
.part-card--clickable .btn-part-buy,
.part-card--clickable .part-card__price,
.part-card--clickable .part-card__footer {
  position: relative;
  z-index: 2;
}

/* ============================================================
   REVIEW-TYPE BADGE (hands-on vs specs-based)
   ============================================================ */
.review-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
  vertical-align: middle;
}
.review-badge svg { width: 12px; height: 12px; flex-shrink: 0; }
.review-badge--hands-on {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.35);
}
.review-badge--specs-based {
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
  border-color: rgba(148, 163, 184, 0.30);
}
.review-badge--sm {
  padding: 2px 7px;
  font-size: 0.62rem;
  gap: 4px;
}
.review-badge--sm svg { width: 10px; height: 10px; }

/* Card-level badge (positioned over hero image area) */
.card-badge-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

/* Partial-score asterisk + tooltip */
.score-partial-mark {
  display: inline-block;
  margin-left: 4px;
  color: #f59e0b;
  font-weight: 700;
  cursor: help;
}
.score-partial-note {
  font-size: 0.75rem;
  color: var(--text-2);
  margin-top: 6px;
  line-height: 1.4;
}
.score-partial-note strong { color: #f59e0b; }

/* Pending-hands-on subcategory marker */
.subcat-pending {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  color: #f59e0b;
  font-style: italic;
  font-weight: 500;
}
.subcat-pending::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f59e0b;
  display: inline-block;
}
.score-row--pending td,
.score-row--pending {
  opacity: 0.55;
}

/* Compare hands-on filter */
.compare-handson-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-2);
  cursor: pointer;
  user-select: none;
  padding: 6px 12px;
  border: 1px solid var(--border, rgba(148, 163, 184, 0.2));
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.05);
  transition: background 0.15s, border-color 0.15s;
}
.compare-handson-filter:hover { background: rgba(16, 185, 129, 0.08); border-color: rgba(16, 185, 129, 0.35); }
.compare-handson-filter input { accent-color: #10b981; cursor: pointer; }
.compare-handson-filter--active { background: rgba(16, 185, 129, 0.12); border-color: rgba(16, 185, 129, 0.45); color: #10b981; }

