:root { 
    --primary: #2563eb; 
    --primary-dark: #1e40af;
    --dark: #0f172a; 
    --border: #e2e8f0; 
    --slate: #64748b;
    --bg: #f8fafc;
    --rating-fill: linear-gradient(90deg, #2563eb 0%, #60a5fa 100%); 
}

.desktop-only { display: block; }
.mobile-only { display: none; }
.desktop-only-720 { display: block; }
.mobile-only-720 { display: none; }

@media (max-width: 980px) {
  .desktop-only { display: none; }
  .mobile-only { display: block; }
}

@media (max-width: 939px) {
  .desktop-only-720 { display: none; }
  .mobile-only-720 { display: block; }
}

/* Prevent fixed compare tray from overlapping content */
@media (max-width: 720px) {
  .editorial-wrap {
    padding-bottom: calc(170px + env(safe-area-inset-bottom)) !important;
  }
  .editorial-wrap.container{
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}


body{
  font-family: 'Inter', system-ui, sans-serif;
  margin: 0;
  background: var(--bg);
  color: var(--dark);
  padding-bottom: 0;
  overflow-x: hidden;
}

/* Only reserve space at the bottom when compare tray is visible */
/*
body.has-compare-tray{
  padding-bottom: calc(92px + env(safe-area-inset-bottom));
}
*/

/* Slightly bigger on small screens (tray gets taller when it wraps) */
/*
@media (max-width: 560px){
  body.has-compare-tray{
    padding-bottom: calc(120px + env(safe-area-inset-bottom));
  }
}
*/


/* Container should never be edge-to-edge on mobile */
.container{
  width: 100%;
  max-width: 1200px;              /* whatever you use */
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}

/* slightly tighter on small screens */
@media (max-width: 720px){
  .container{
    padding-left: 16px;
    padding-right: 16px;
  }
}
.card-brand { 
  margin-bottom: 10px; 
  font-size: 0.85rem; 
  font-weight: 700; 
} 

.card-brand a { 
  color: #64748b; 
  text-decoration: none; 
  border-bottom: 1px solid transparent; 
  transition: border-color 0.2s ease, color 0.2s ease; 
} 

.card-brand a:hover { 
  color: #0f172a; 
  border-color: #cbd5e1; 
} 

.results-controls {
  display: flex;
  gap: 15px;
  align-items: center;
}

.sort-wrap {
  display: flex;
  gap: 15px;
  align-items: center;
}

.sort-dropdown {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  background: #f8fafc;
}

.bike-card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}

.badge-top-pick {
  background: #fbbf24;
  color: #854d0e;
  font-weight: 900;
  font-size: 0.7rem;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 6px;
  width: fit-content;
  letter-spacing: 0.05em;
}

.badge-highest-rated {
  background: #dcfce7;
  color: #166534;
  font-weight: 900;
  font-size: 0.7rem;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 6px;
  width: fit-content;
  letter-spacing: 0.05em;
}

.category-champion-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  padding: 6px 10px;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
  z-index: 10;
  box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
  letter-spacing: 0.05em;
}

.great-value-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(135deg, #dc2626, #ea580c);
  color: white;
  padding: 6px 10px;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
  z-index: 10;
  box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
  letter-spacing: 0.05em;
}

.bike-card-visual {
  position: relative;
  background-color: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
}

.bike-card-visual--champion {
  padding: 20px 20px 35px !important;
}

.badge-score {
  background: #0f172a;
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  width: fit-content;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.badge-score-value {
  font-weight: 900;
  font-size: 1.1rem;
}

.badge-score-max {
  font-size: 0.75rem;
  color: #94a3b8;
}

.badge-score-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #cbd5e1;
}

.card-price--unavailable {
  color: #64748b;
  font-size: 1.1rem;
  font-weight: 700;
  font-style: italic;
}

/* ================================
   Manufacturer Page
   ================================ */

.brand-hero {
  background: #f8fafc;
  padding: 40px 0;
}

.brand-hero__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: start;
}

.is-hidden {
  display: none;
}

.brand-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: #334155;
  font-weight: 700;
  text-decoration: none;
}

.brand-back:hover {
  color: #0f172a;
  text-decoration: underline;
}

.brand-logo {
  width: 96px;
  height: 96px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.brand-logo img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.brand-logo__letter {
  font-size: 2.2rem;
  font-weight: 900;
  color: #0f172a;
}

.brand-title {
  font-size: 2.6rem;
  margin: 0 0 12px;
  font-weight: 900;
}

.brand-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.meta-pill {
  background: #e2e8f0;
  color: #0f172a;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: 999px;
}

.brand-summary {
  color: #334155;
  line-height: 1.6;
  margin: 0;
}

.brand-bikes {
  padding: 40px 0 60px;
}

.brand-bikes__title {
  font-size: 1.8rem;
  font-weight: 900;
  margin: 0 0 24px;
}

.brand-bike-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.bike-card .rating-label svg {
  color: #64748b;
  display: block;
}

@media (max-width: 720px) {
  .brand-hero__inner {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .brand-logo {
    width: 84px;
    height: 84px;
  }
}

/* ================================
   Brands Landing Page
   ================================ */

.brands-hero {
  background: #f8fafc;
  padding: 40px 0 24px;
}

.brands-hero__title {
  font-size: 2.6rem;
  margin: 0 0 10px;
  font-weight: 900;
}

.brands-hero__subtitle {
  color: #475569;
  margin: 0;
  line-height: 1.6;
  font-size: 1.05rem;
}

.brands-list {
  padding: 24px 0 60px;
}

.brands-list__title {
  font-size: 1.8rem;
  font-weight: 900;
  margin: 0 0 24px;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.brand-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 18px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}

.brand-card__logo {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.brand-card__logo img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.brand-card__letter {
  font-size: 1.8rem;
  font-weight: 900;
  color: #0f172a;
}

.brand-card__title {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 900;
}

.brand-card__title a {
  color: #0f172a;
  text-decoration: none;
}

.brand-card__title a:hover {
  color: #1e293b;
}

.brand-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.brand-card__summary {
  color: #475569;
  line-height: 1.6;
  margin: 0 0 12px;
}

.brand-card__link {
  font-weight: 700;
  color: #1d4ed8;
  text-decoration: none;
}

.brand-card__link:hover {
  text-decoration: underline;
}

@media (max-width: 720px) {
  .brand-card {
    grid-template-columns: 1fr;
  }

  .brand-card__logo {
    width: 72px;
    height: 72px;
  }
}


/* NAV FIX */
.site-header { background: #fff; border-bottom: 1px solid var(--border); padding: 15px 0; position: sticky; top:0; z-index:1002; }

.nav-flex { display: flex; align-items: center; gap: 12px; }
.logo { font-weight: 800; font-size: 1.5rem; text-decoration: none; color: var(--dark); letter-spacing: -0.5px; }
.logo span { color: var(--primary); }
.logo { display: inline-flex; align-items: center; }
.logo-image { display: block; height: 56px; width: auto; max-width: 260px; object-fit: contain; }
.main-nav { display: flex; align-items: center; gap: 0; }
.nav-item { position: relative; }
.nav-link { margin-left: 24px; text-decoration: none; color: var(--slate); font-weight: 600; font-size: 0.9rem; background: none; border: none; cursor: pointer; padding: 0; transition: color 0.2s ease; }
.nav-link:hover, .nav-link.is-open { color: var(--dark); }

/* Desktop Find My Bike Pill */
@media (min-width: 940px) {
  .nav-link[data-open-bike-finder] {
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    transition: background 0.2s ease, transform 0.2s ease;
  }
  
  .nav-link[data-open-bike-finder]:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-1px);
  }
}

/* Desktop Dropdown */
.nav-dropdown { position: relative; }
.nav-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    min-width: 180px;
    margin-top: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    display: none;
    flex-direction: column;
    z-index: 1010;
    overflow: hidden;
}

.nav-submenu.is-open {
    display: flex;
}

.nav-submenu-item {
    display: block;
    padding: 12px 18px;
    color: var(--slate);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.nav-submenu-item:hover {
    background: #f8fafc;
    color: var(--primary);
    border-left-color: var(--primary);
}

.hamburger {
  display: none;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  padding: 4px;
  margin: 0;
  flex-shrink: 0;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 1px;
  transition: all 0.3s ease;
  display: block;
  transform-origin: center;
}

.hamburger.is-open span:nth-child(1) {
  transform: rotate(50deg) translate(0, 10px);
}

.hamburger.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.is-open span:nth-child(3) {
  transform: rotate(-50deg) translate(0, -10px);
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.nav-overlay.is-open {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 939px) {
  .site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1002 !important;
  }
  
  body {
    overflow-x: clip !important;
  }

  .hamburger {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 65px;
    left: 0;
    bottom: 0;
    width: 85vw;
    max-width: 400px;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
    scrollbar-width: none;
    margin-left: 0;
    border-right: 1px solid var(--border);
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav.is-open {
    transform: translateX(0);
  }

  .nav-link {
    display: block;
    margin-left: 0;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    color: var(--dark);
    text-align: left;
    width: 100%;
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .nav-item,
  .nav-dropdown {
    width: 100%;
  }

  /* Mobile submenu */
  .nav-dropdown .nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .nav-categories-toggle i {
    transition: transform 0.3s ease;
  }

  .nav-categories-toggle.is-open i {
    transform: rotate(180deg);
  }

  .nav-submenu {
    position: static;
    border: none;
    box-shadow: none;
    margin-top: 0;
    background: #f8fafc;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-submenu.is-open {
    max-height: 500px;
    border-top: 1px solid var(--border);
  }

  .nav-submenu-item {
    border-left: none;
    padding: 12px 40px;
    border-bottom: 1px solid #e2e8f0;
    width: 100%;
    text-align: left;
    box-sizing: border-box;
  }

  .nav-submenu-item:last-child {
    border-bottom: none;
  }

  .nav-submenu-item:hover {
    background: white;
  }
}

/* HERO & SEARCH (CLEAN STACK) */
.hero-section { background: var(--dark); padding: 60px 0; text-align: center; color: white; }
.hero-section h1 { font-size: 2.8rem; margin: 0; font-weight: 800; }
.search-bar-wrapper { 
  background: white; 
  border-bottom: 1px solid var(--border); 
  padding: 24px 0; 
  margin-bottom: 40px; 
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

@media (max-width: 720px) {
  .search-bar-wrapper {
    padding: 16px 0;
  }
}

/* CATEGORY CHAMPIONS SECTION */
.category-champions-section {
  background: linear-gradient(to bottom, #f8fafc, #ffffff);
  padding: 80px 0;
  margin-top: 60px;
  border-top: 3px solid var(--border);
  box-shadow: 0 -4px 6px -1px rgba(0,0,0,0.02);
}

.category-champions-section .section-header {
  text-align: center;
  margin-bottom: 40px;
}

.category-champions-section .section-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--dark);
  margin: 0 0 10px;
}

.category-champions-section .section-subtitle {
  color: var(--slate);
  font-size: 0.95rem;
  margin: 0;
  font-style: italic;
}

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

.champion-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.champion-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border-color: var(--primary);
}

.champion-card__header {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  padding: 12px 16px;
  text-align: center;
}

.champion-card__header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.champion-card__image {
  background: #f8fafc;
  padding: 30px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.champion-card__image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.champion-card__footer {
  padding: 16px;
  background: var(--dark);
  text-align: center;
}

.champion-card__button {
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Mobile: 2-column grid */
@media (max-width: 980px) {
  .champions-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .category-champions-section .section-title {
    font-size: 1.8rem;
  }
  
  .champion-card__image {
    height: 180px;
    padding: 20px;
  }
}

/* Mobile: Single column slider-like on very small screens */
@media (max-width: 640px) {
  .champions-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .category-champions-section {
    padding: 40px 0;
  }
  
  .category-champions-section .section-title {
    font-size: 1.5rem;
  }
}

.search-card { 
  display: flex; 
  gap: 15px; 
  align-items: flex-end;
  flex-wrap: wrap;
}

@media (max-width: 940px) {
  .search-card {
    gap: 12px;
  }
}

.field-item { 
  flex: 1; 
  display: flex; 
  flex-direction: column; 
  gap: 6px;
  min-width: 200px;
}

@media (max-width: 940px) {
  .field-item {
    min-width: 150px;
  }

  .field-item.flex-2 {
    flex: 1 1 100%;
    min-width: 100%;
  }

  .search-actions {
    flex: 1 1 100%;
    width: 100%;
  }

  .btn-search,
  .btn-clear {
    flex: 1 1 0;
    width: 100%;
  }
}

.field-item.mobile-only-720 {
  display: none;
}

.field-item.flex-2 { 
  flex: 2;
  min-width: 300px;
}

.field-item label { 
  font-size: 0.7rem; 
  font-weight: 800; 
  text-transform: uppercase; 
  color: var(--slate); 
}

.search-card select, 
.search-card input { 
  padding: 12px; 
  border: 1px solid var(--border); 
  border-radius: 8px; 
  font-size: 0.95rem; 
  background: #fff;
  width: 100%;
  box-sizing: border-box;
}

.search-input-wrap {
  position: relative;
}

.search-input-wrap input {
  padding-right: 34px;
}

.search-spinner {
  position: absolute;
  right: 38px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border: 2px solid #cbd5e1;
  border-top-color: #2563eb;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  animation: searchSpin 0.8s linear infinite;
}

.search-spinner.is-visible {
  opacity: 1;
}

@keyframes searchSpin {
  to { transform: rotate(360deg); }
}

.search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #9ca3af;
  font-size: 16px;
  cursor: pointer;
  display: none;
  line-height: 1;
}

.search-clear.is-visible {
  display: block;
}

.search-suggest {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.08);
  max-height: 200px;
  overflow-y: auto;
  z-index: 60;
  display: none;
}

.search-suggest.is-open {
  display: block;
}

.search-suggest.search-suggest--loading {
  max-height: none;
  overflow: hidden;
}

.search-suggest-item {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 10px 12px;
  font-size: 0.9rem;
  color: #111;
  cursor: pointer;
}

.search-suggest-item--loading {
  color: #64748b;
  cursor: default;
}

.search-suggest-item:hover {
  background: #f9fafb;
}

.search-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.search-row {
  display: contents;
}

/* Checkbox dropdown filters */

.filter-acc {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 0;
  position: relative;
}

.filter-acc summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--dark);
}

.filter-summary-text {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.filter-clear {
  border: none;
  background: transparent;
  color: #9ca3af;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  padding: 2px 4px;
}

.filter-acc.has-selection .filter-clear {
  opacity: 1;
  pointer-events: auto;
}

.filter-acc summary::-webkit-details-marker { display: none; }

.filter-acc summary::after {
  content: "▾";
  color: var(--slate);
  transition: transform 0.2s ease;
  margin-left: 4px;
}

.filter-acc[open] summary::after { transform: rotate(180deg); }

.filter-acc-content {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 320px;
  right: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 12px 14px 14px;
  text-align: left;
  font-size: 0.95rem;
  line-height: 1.3;
  max-height: 160px;
  overflow-y: auto;
  box-shadow: 0 8px 16px rgba(0,0,0,0.08);
  z-index: 50;
  column-count: 2;
  column-gap: 18px;
  column-fill: auto;
  color: #313131;
  font-weight: 600;
}

.filter-checkbox {
  display: grid;
  grid-template-columns: 16px 1fr;
  align-items: start;
  column-gap: 8px;
  break-inside: avoid;
  padding: 4px 0;
  cursor: pointer;
}

.filter-checkbox-text {
  font-size: 0.9rem;
  color: #313131;
  font-weight: 600;
}

.filter-acc--single .filter-acc-content {
  column-count: 1;
}

.filter-checkbox input {
  margin-top: 2px;
  accent-color: var(--primary);
}

.filters-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  height: 46px;
}

.filters-trigger__icon {
  display: inline-flex;
  color: #111827;
}

.filters-trigger__icon {
  display: inline-flex;
  color: #111827;
}

.filters-panel {
  display: none;
}

.filters-panel__overlay {
  display: none;
}

@media (max-width: 720px) {
  .field-item.desktop-only-720 {
    display: none;
  }

  .field-item.mobile-only-720 {
    display: flex;
    flex: 0 0 auto;
    min-width: auto;
  }

  .search-row {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    width: 100%;
  }

  .search-row .field-item label {
    display: none;
  }

  .search-row input {
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  .search-row .field-item.flex-2 {
    flex: 1 1 auto;
    min-width: 0;
  }

  .search-row .filters-item {
    flex: 0 0 auto;
    min-width: 0;
  }

  .filters-trigger {
    height: 40px;
    padding: 6px 10px;
    font-size: 0.8rem;
    width: auto;
    white-space: nowrap;
  }

  .filter-acc-content {
    column-count: 1;
  }

  .filter-checkbox {
    align-items: center;
  }

  .filter-checkbox input {
    margin-top: 0;
  }

  .filters-panel {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 320px;
    max-width: 90vw;
    background: #fff;
    box-shadow: -8px 0 24px rgba(0,0,0,0.15);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 1200;
    display: flex;
    flex-direction: column;
  }

  .filters-panel.is-open {
    transform: translateX(0);
  }

  .filters-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid #eee;
  }

  .filters-panel__header h2 {
    font-size: 16px;
    font-weight: 800;
    margin: 0;
  }

  .filters-panel__close {
    border: none;
    background: #e5e7eb;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
  }

  .filters-panel__body {
    padding: 16px 18px;
    overflow-y: auto;
  }

  .filters-panel__accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .filters-panel__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 1100;
    display: block;
  }

  .filters-panel__overlay.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .filters-panel .filter-acc {
    border: none;
    border-top: 1px solid #eee;
    padding-top: 8px;
  }

  .filters-panel .filter-acc summary {
    padding: 10px 0;
    font-weight: 800;
    font-size: 13px;
    color: #111;
    justify-content: space-between;
  }

  .filters-panel .filter-acc-content {
    position: static;
    min-width: 0;
    border: none;
    box-shadow: none;
    padding: 8px 0 0;
    max-height: none;
  }

  .filters-panel__footer {
    padding: 14px 18px 18px;
    border-top: 1px solid #eee;
  }

  .filters-panel__footer .btn-apply {
    width: 100%;
    height: 44px;
    padding: 10px 16px;
  }
}

.btn-search { 
  background: var(--primary); 
  color: white; 
  border: none; 
  padding: 12px 30px; 
  border-radius: 8px; 
  font-weight: 700; 
  cursor: pointer; 
  height: 46px;
  white-space: nowrap;
}

.btn-clear {
  background: #fff;
  color: #111827;
  border: 1px solid var(--border);
  padding: 0 30px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  height: 46px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Mobile search form: 2-col for price/brand, full-width for search, full-width for button */
@media (max-width: 720px) {
  .search-card {
    gap: 12px;
  }

  .field-item {
    flex: 0 1 calc(50% - 6px);
    min-width: auto;
  }

  .field-item.flex-2 {
    flex: 0 1 100%;
    min-width: auto;
  }

  .search-actions {
    flex: 0 1 100%;
    width: 100%;
  }

  .btn-search,
  .btn-clear {
    flex: 1 1 0;
    width: 100%;
    padding: 14px 16px;
    box-sizing: border-box;
    justify-content: center;
  }
}

/* RESULTS HEADER */
.results-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.view-toggles { display: flex; background: #e2e8f0; padding: 4px; border-radius: 8px; }
.view-btn { border: none; padding: 8px 16px; border-radius: 6px; cursor: pointer; background: transparent; color: var(--slate); }
.view-btn.active { background: white; color: var(--dark); box-shadow: 0 1px 3px rgba(0,0,0,0.1); }

/* GRID CARDS FIX */
.bike-list.grid-view { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 30px; }
.bike-card { 
  background: white; 
  border-radius: 16px; 
  border: 1px solid var(--border); 
  overflow: hidden; 
  display: flex; 
  flex-direction: column; 
  transition: 0.3s;
  box-sizing: border-box;
}

.bike-card:hover { 
  transform: translateY(-5px); 
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); 
}

.selected-card { 
  border: 2px solid var(--primary) !important; 
  background: #f0f9ff; 
}

/* Image Container: Prevents bikes from touching borders */
.visual { 
  background: #fff; 
  width: 100%; 
  aspect-ratio: 3 / 2; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  padding: 20px; 
  box-sizing: border-box; 
  border-bottom: 1px solid #f1f5f9;
  overflow: hidden;
}

.visual img { 
  max-width: 90%; 
  max-height: 90%; 
  object-fit: contain;
  display: block;
}

.details { 
  padding: 24px; 
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.details h3 { 
  margin: 0; 
  font-size: 1.2rem; 
  font-weight: 700;
  line-height: 1.3;
  word-break: break-word;
}

.details h3 a { 
  text-decoration: none; 
  color: inherit; 
}

.card-price {
  font-size: 1.6rem;
  font-weight: 900;
  color: #059669;
  word-break: break-word;
}

/* Tighten details on mobile */
@media (max-width: 720px) {
  .details {
    padding: 16px;
    gap: 10px;
  }

  .details h3 {
    font-size: 1.05rem;
    margin: 0;
  }

  .card-price {
    font-size: 1.4rem;
  }

  .performance-ratings {
    max-width: 100%;
    margin: 0;
  }

  .rating-row {
    margin-bottom: 6px;
  }

  .rating-label {
    font-size: 0.6rem;
  }

  .rating-bar-bg {
    height: 6px;
  }
}

/* ================================
   Product Highlights (Grid / Tight)
   ================================ */

/* Product Highlights — tight adaptive grid */
.highlights{
  display:grid;
  gap: 12px;
  margin-top: 18px;

  /* key line: auto-fit creates as many columns as will fit */
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

/* right column gets tighter: allow slightly smaller cards */
@media (max-width: 1100px){
  .highlights{
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

/* mobile: force 2-up like your current behavior */
@media (max-width: 640px){
  .highlights{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.highlight-card {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 14px;
  padding: 12px 12px 10px;       /* tighter */
  box-shadow: 0 8px 20px rgba(0,0,0,0.04); /* slightly softer */
}

.highlight-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.highlight-icon {
  width: 30px;                   /* smaller */
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #f1f5f9;
  font-size: 16px;               /* smaller */
}

.highlight-icon svg {
  display: block;
  vertical-align: middle;
}

.highlight-kicker {
  font-size: 10px;               /* smaller */
  font-weight: 900;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--slate);
  line-height: 1.2;
  white-space: nowrap;           /* prevents wrap */
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 92px;               /* keep it tidy */
}

.highlight-value {
  font-size: 18px;               /* smaller */
  font-weight: 900;
  margin-top: 2px;
  line-height: 1.1;
}

.highlight-label {
  font-size: 11px;               /* smaller */
  font-weight: 700;
  margin-top: 6px;
  color: var(--slate);
  line-height: 1.2;
}

.highlight-note {
  font-size: 11px;
  line-height: 1.35;
  color: #475569;
  margin-top: 6px;
}

.highlight-card.is-ul-cert .highlight-icon {
  background: #ffffff;
  border: 1px solid #111827;
}

.highlight-card.is-ul-cert .highlight-value {
  font-size: 16px;
}

.ul-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 2px solid #111827;
  color: #111827;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1;
}

.ul-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 12px;
}

.ul-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #0f172a;
  color: #0f172a;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  background: #fff;
  white-space: nowrap;
}

.ul-chip-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 999px;
  border: 2px solid #0f172a;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.02em;
}



/* RATINGS FIX: constrained width */
.performance-ratings { 
  max-width: 280px; 
  margin: 0;
  flex-shrink: 0;
}

.rating-row { 
  margin-bottom: 10px;
}

.rating-label { 
  display: flex; 
  justify-content: space-between; 
  font-size: 0.7rem; 
  font-weight: 800; 
  color: var(--slate); 
  text-transform: uppercase; 
  margin-bottom: 4px;
  line-height: 1.2;
}

.rating-bar-bg { 
  background: #f1f5f9; 
  height: 8px; 
  border-radius: 10px; 
  overflow: hidden;
}

.rating-fill { 
  height: 100%; 
  background: var(--rating-fill); 
  border-radius: 10px;
}

.card-footer { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  gap: 12px;
  padding: 15px 24px; 
  border-top: 1px solid #f1f5f9; 
  background: #fcfcfc;
  flex-wrap: wrap;
}

.btn-more { 
  background: var(--bg); 
  color: var(--dark); 
  padding: 8px 16px; 
  border-radius: 6px; 
  text-decoration: none; 
  font-weight: 700; 
  font-size: 0.85rem; 
  border: 1px solid var(--border);
  min-width: fit-content;
}

.compare-toggle {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* LIST VIEW - Desktop only gets horizontal layout */

.bike-list.list-view { 
  display: flex; 
  flex-direction: column; 
  gap: 20px;
}

/* Mobile (≤720px): List view matches grid view - vertical stacked cards */
/* No special styling needed - inherits base card styles */

/* DESKTOP LIST VIEW: 721px+ only */
@media (min-width: 721px) {
  .bike-list.list-view { 
    display: flex; 
    flex-direction: column; 
    gap: 20px;
  }

  .list-view .bike-card {
    flex-direction: row;
    align-items: stretch;
  }

  .list-view .visual {
    width: 200px;
    min-width: 200px;
    height: auto;
    aspect-ratio: 3/2;
    padding: 16px;
    box-sizing: border-box;
    border-right: 1px solid #f1f5f9;
    border-bottom: none;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .list-view .visual img {
    object-fit: contain;
    max-width: 95%;
    max-height: 95%;
    display: block;
  }

  .list-view .details {
    flex: 1;
    min-width: 0;
    padding: 20px 24px 0 24px;
    gap: 12px;
    box-sizing: border-box;
    overflow: visible;
  }

  .list-view .details h3 {
    font-size: 1.15rem;
    margin: 0;
  }

  .list-view .card-price {
    font-size: 1.5rem;
  }

  .list-view .performance-ratings {
    max-width: 280px;
  }

  .list-view .card-footer {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
    padding: 16px 24px;
    border-top: none;
    border-left: 1px solid #f1f5f9;
    margin-left: auto;
    flex-shrink: 0;
    box-sizing: border-box;
    overflow: visible;
  }

  .list-view .btn-more {
    width: auto;
    padding: 8px 16px;
    flex: none;
    white-space: nowrap;
  }

  .list-view .compare-toggle {
    width: auto;
    flex: none;
    margin: 0;
    padding: 0;
  }
}

/* Editorial / rich text safety */
.editorial-wrap *{
  max-width: 100%;
}

.editorial-wrap img,
.editorial-wrap video{
  max-width: 100%;
  height: auto;
}

.editorial-wrap table{
  width: 100%;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.editorial-wrap{
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Editorial Scorecard */
.scorecard {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.06);
}

.scorecard-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.score-badge {
  display:flex;
  align-items:baseline;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #0f172a;
  color: #fff;
}

.score-badge .num {
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.score-badge .den {
  opacity: 0.8;
  font-weight: 800;
}

.score-sub {
  color: var(--slate);
  font-weight: 700;
  font-size: 13px;
}

.score-rows {
  display:grid;
  gap: 10px;
  margin-top: 14px;
}

.score-row {
  display:grid;
  grid-template-columns: 170px 1fr 44px;
  gap: 12px;
  align-items:center;
}

@media (max-width: 720px) {
  .scorecard-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .score-badge {
    align-self: flex-start;
  }

  .score-row { grid-template-columns: 1fr; gap: 8px; }

  .score-val {
    text-align: left;
  }
}

.score-label {
  display:flex;
  align-items:center;
  gap: 6px;
  font-weight: 900;
}

.score-icon {
  display: inline-flex;
  color: #64748b;
}

.score-icon svg {
  display: block;
  vertical-align: middle;
}

.score-track {
  height: 10px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow:hidden;
}

.score-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--primary);
}

.score-val {
  font-weight: 900;
  text-align:right;
  color: #0f172a;
}


/* =========================
   COMPARE BUTTON (product page)
   ========================= */

#productCompareBtn {
  background: #f1f5f9 !important;
  color: #1f2937 !important;
  border: none !important;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.product-hero-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: nowrap;
}

.product-hero-title {
  flex: 1 1 auto;
  min-width: 0;
}

@media (max-width: 720px) {
  .product-hero-title-row {
    flex-wrap: wrap;
  }
}

#productCompareBtn.compare-selected {
  background: #dbeafe !important;
  color: #0369a1 !important;
  border: 2px solid #0d99ff !important;
  font-weight: 700;
}


/* =========================
   COMPARE TRAY (fixed bar)
   ========================= */

#compareTray{
  position: fixed;
  left: 0; right: 0;
  bottom: -140px;
  background: var(--dark);
  color: #fff;
  transition: bottom 0.35s ease;
  z-index: 2000;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.30);
  padding-bottom: env(safe-area-inset-bottom);
  overflow: visible;
}

#compareTray.active{ bottom: 0; }

#compareTray .tray-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  overflow: visible;
}

/* allow the left text to shrink/wrap without pushing buttons off-screen */
#compareTray .tray-status{
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

#compareTray .tray-status span{
  font-weight: 800;
}

/* right side buttons */
#compareTray .tray-actions{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

#compareTray .btn-clear,
#compareTray .btn-compare-action{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: 10px;
  padding: 12px 16px;
  font-weight: 800;
  line-height: 1;
}

#compareTray .btn-compare-action{
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  border: 0;
}

#compareTray .btn-clear{
  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  cursor: pointer;
}

/* ===== Mobile: stack actions and make buttons equal width ===== */
@media (max-width: 560px){

  /* Make sure the inner row can't exceed viewport */
  #compareTray .tray-inner{
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Stack rows */
  #compareTray .tray-inner{
    flex-wrap: wrap;
  }

  #compareTray .tray-status,
  #compareTray .tray-actions{
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
  }

  /* Buttons: always fit, no overflow */
  #compareTray .tray-actions{
    display: flex;
    gap: 10px;
  }

  #compareTray .btn-clear,
  #compareTray .btn-compare-action{
    flex: 1 1 0;
    min-width: 0;              /* critical: prevents clipping */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}


@media (max-width: 720px){
  #compareTray .tray-inner{
    padding-top: 12px;
    padding-bottom: 12px;
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* EDITORIAL INSIGHTS SECTION */
.editorial-insights-section {
  background: #f9fafb;
  padding: 60px 0;
  margin-top: 60px;
  border-top: 1px solid var(--border);
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 40px;
  color: var(--dark);
}

.insights-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.radar-chart-wrapper {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.radar-chart-wrapper canvas {
  max-width: 100%;
  height: auto;
}

.insights-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.insight-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  border-left: 4px solid var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.insight-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.insight-card__header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.insight-checkmark {
  color: var(--primary);
  font-weight: 800;
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.insight-card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
}

.insight-card__description {
  font-size: 0.9rem;
  color: var(--slate);
  margin: 8px 0 12px;
  line-height: 1.5;
}

.insight-card__metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f0f2f5;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
}

.metric-label {
  font-weight: 700;
  color: var(--slate);
}

.metric-values {
  color: var(--dark);
  font-weight: 600;
}

@media (max-width: 940px) {
  .insights-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* POPULAR COMPARISONS CAROUSEL */
.popular-comparisons-section {
  padding: 60px 0;
  margin-top: 60px;
  border-top: 1px solid var(--border);
}

.comparisons-carousel-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.carousel-nav {
  border: 1px solid var(--border);
  background: #fff;
  color: #0f172a;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.carousel-nav svg {
  width: 18px;
  height: 18px;
}

.carousel-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.12);
}

.carousel-nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.comparisons-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 10px 0;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  min-width: 0;
  touch-action: pan-x;
  cursor: grab;
}

.comparisons-carousel.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.comparison-card,
.comparison-card * {
  -webkit-user-drag: none;
  user-select: none;
}

.comparisons-carousel::-webkit-scrollbar {
  height: 6px;
}

.comparisons-carousel::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 10px;
}

.comparisons-carousel::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 10px;
}

.comparisons-carousel::-webkit-scrollbar-thumb:hover {
  background: #a0aec0;
}

.comparison-card {
  flex: 0 0 280px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}

.comparison-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.comparison-card__bikes {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 12px;
  padding: 18px;
  background: #f9fafb;
  min-height: 150px;
}

.comparison-card__bike {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 110px;
  padding: 4px;
}

.comparison-card__bike img {
  max-width: 100%;
  max-height: 110px;
  object-fit: contain;
}

.comparison-card__placeholder {
  width: 100px;
  height: 100px;
  background: #e2e8f0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #cbd5e0;
}

.comparison-card__vs {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--slate);
  flex-shrink: 0;
}

.comparison-card__title {
  padding: 16px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--dark);
  text-align: center;
  line-height: 1.3;
}

@media (max-width: 720px) {
  .section-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
  }

  .comparison-card {
    flex: 0 0 240px;
  }

  .comparisons-carousel {
    gap: 12px;
  }

  .comparisons-carousel-wrap {
    gap: 8px;
  }

  .carousel-nav {
    width: 34px;
    height: 34px;
  }
}

/* Swiper Pagination Bullets */
.swiper-pagination {
  position: relative !important;
  text-align: center;
  transition: .3s opacity;
  transform: translate3d(0, 0, 0);
  z-index: 10;
  top: 10px !important;
}

.swiper-pagination-bullet {
  background: #cbd5e1 !important;
  opacity: 1 !important;
  width: 10px !important;
  height: 10px !important;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  background: #0f172a !important;
  width: 24px !important;
  border-radius: 5px !important;
}

/* PAGINATION */
.pagination-wrap {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

.pagination-wrap .MarkupPagerNav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.pagination-wrap .MarkupPagerNav li {
  margin: 0;
  padding: 0;
}

.pagination-wrap .MarkupPagerNav > li > a,
.pagination-wrap .MarkupPagerNav > li > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #0f172a;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.pagination-wrap .MarkupPagerNav > li > a:hover {
  background: #f8fafc;
  border-color: #cbd5f5;
}

.pagination-wrap .MarkupPagerNav > li > a:focus-visible {
  outline: 2px solid #1d4ed8;
  outline-offset: 2px;
}

.pagination-wrap .MarkupPagerNav li.MarkupPagerNavOn > a,
.pagination-wrap .MarkupPagerNav li.MarkupPagerNavOn > span,
.pagination-wrap .MarkupPagerNav > li > span.MarkupPagerNavCurrent {
  background: #111827;
  border-color: #111827;
  color: #fff;
}

.pagination-wrap .MarkupPagerNav li.MarkupPagerNavSeparator > span {
  min-width: auto;
  border: none;
  background: transparent;
  color: #94a3b8;
  padding: 0 6px;
}

.pagination-wrap .MarkupPagerNav > li > a > span {
  border: none;
  background: transparent;
  padding: 0;
  min-width: 0;
  height: auto;
}

@media (max-width: 720px) {
  .pagination-wrap .MarkupPagerNav {
    gap: 6px;
  }

  .pagination-wrap .MarkupPagerNav > li > a,
  .pagination-wrap .MarkupPagerNav > li > span {
    min-width: 34px;
    height: 34px;
    font-size: 0.85rem;
  }
}

/* PRODUCT SCORE BANNER */
.product-category-champion-strip {
  width: 100%;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  padding: 10px 16px;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 0.05em;
  border-radius: 8px;
  margin-top: 16px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
  box-sizing: border-box;
}

.ebikes-score-banner {
  width: 100%;
  background: #111827;
  color: #fff;
  border: 2px solid #22c55e;
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.16);
  box-sizing: border-box;
}

.ebikes-score-banner__value {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 90px;
}

.ebikes-score-banner__number {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
}

.ebikes-score-banner__label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a7f3d0;
  font-weight: 800;
}

.ebikes-score-banner__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ebikes-score-banner__title {
  font-size: 1.05rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ebikes-score-banner__desc {
  font-size: 0.9rem;
  color: #e2e8f0;
}

.product-hero-left {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.product-hero-image {
  width: 100%;
}

.product-hero-quickstats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  margin-top: 10px;
}

.product-hero-stat {
  position: relative;
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-hero-stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 24px;
  background: #2563eb;
  border-radius: 2px;
}

.product-hero-stat__label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate);
}

.product-hero-stat__value {
  font-size: 1.1rem;
  font-weight: 900;
  color: #0f172a;
}

@media (max-width: 720px) {
  .product-hero-columns {
    flex-direction: column;
    gap: 28px;
    align-items: stretch;
  }

  .product-hero-left,
  .product-hero-columns > div {
    min-width: 0;
    width: 100%;
  }

  .product-hero-title {
    margin: 10px 0 6px !important;
    font-size: 2.4rem !important;
  }

  .product-hero-manufacturer {
    margin: 0 0 12px !important;
  }
}

@media (max-width: 720px) {
  .ebikes-score-banner {
    padding: 12px 14px;
    gap: 12px;
    flex-wrap: wrap;
  }

  .ebikes-score-banner__number {
    font-size: 1.9rem;
  }

  .ebikes-score-banner__title {
    font-size: 0.95rem;
  }
}

@media (max-width: 560px) {
  .ebikes-score-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .ebikes-score-banner__value {
    min-width: 0;
  }

  .ebikes-score-banner__text {
    width: 100%;
  }
}

/* FOOTER */
.site-footer { background: var(--dark); color: var(--slate); padding: 80px 0 40px; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 50px; margin-bottom: 40px; }
.logo-footer { color: white; font-weight: 800; font-size: 1.8rem; text-decoration: none; display: block; margin-bottom: 20px; }
.logo-footer { display: inline-flex; align-items: center; }
.logo-footer-image { display: block; max-height: 80px; width: auto; max-width: 300px; object-fit: contain; }

@media (max-width: 720px) {
  .logo-image { height: 42px; }
  .logo-footer-image { max-height: 64px; }
}
.footer-links h4 { color: white; margin-bottom: 25px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }
.footer-links a { display: block; color: var(--slate); text-decoration: none; margin-bottom: 12px; }
.footer-links a:hover { color: white; }

/* FORCE mobile side padding site-wide */
@media (max-width: 720px){
  .container{
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .editorial-wrap > div {
    max-width: 100% !important;
  }

  /* If any wrappers are forcing full-bleed, this prevents horizontal overflow */
  body, html{
    overflow-x: clip;
  }
}