/* Force hide cookie banner everywhere if .force-hide is present */
.cookie-banner.force-hide {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  z-index: -1 !important;
}
/* Extra force hide for cookie banner on mobile */
@media (max-width: 700px) {
  .cookie-banner.force-hide {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }
}
@media (max-width: 700px) {
  .category-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .category-card {
    display: block;
  }
  /* Remove hiding for categories 7 and 8 */
  .category-card:nth-child(n+7) {
    display: block !important;
  }
}
@media (max-width: 700px) {
  .hero-filter-form,
  #hero-filter-form,
  .filters-container,
  #all-bikes-filter-form,
  #single-bike-filter-form {
    max-width: 100vw;
    width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
  }
  .hero-filters,
  .filter-group {
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }
  .hero-filter-form select,
  .hero-filter-form input,
  #hero-filter-form select,
  #hero-filter-form input,
  .filters-container select,
  .filters-container input,
  #all-bikes-filter-form select,
  #all-bikes-filter-form input,
  #single-bike-filter-form select,
  #single-bike-filter-form input {
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }
}
@media (max-width: 700px) {
  .all-bikes-layout {
    flex-direction: column;
    align-items: stretch;
  }
  .filters-sidebar {
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .filters-container {
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    border-radius: 0;
    padding-left: 0;
    padding-right: 0;
  }
  #mobile-filter-toggle {
    width: 100%;
    margin-bottom: 0.5rem;
  }
}
/* Mobile filter overlay for all-bikes */
.filters-sidebar #mobile-filter-overlay {
  display: none;
}

.filters-container.open {
  z-index: auto;
  position: static;
  width: 100%;
  max-width: none;
  height: auto;
  box-shadow: none;
}
}

#mobile-filter-close {
  display: none;
  cursor: pointer;
  color: #d32f2f;
  font-weight: bold;
  background: none;
  border: none;
}
/* --- HOMEPAGE BRAND SECTIONS --- */
.honda-brand-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 20px;
}
@media (max-width: 700px) {
  .honda-brand-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }
}
/* General Body & Layout */
body {
  font-family: Arial, sans-serif;
  background: #f4f4f4;
  margin: 0;
  padding: 0;
  color: #333;
}

.page-wrapper {
  display: flex;
  justify-content: center;
  gap: 25px;
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 20px;
}

.main-content {
  flex: 1;
  min-width: 0; /* Prevents flexbox overflow */
  background: #fff;
  padding: 20px 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Header and Navbar */
.navbar { background: white; display: flex; justify-content: space-between; align-items: center; padding: 10px 20px; border-bottom: 1px solid #ddd; flex-wrap: wrap; }
.logo { font-weight: bold; font-size: 24px; color: red; }
.nav-links a { margin: 0 10px; text-decoration: none; color: black; font-weight: bold; }
.search-form { display: flex; }
.search-form input { padding: 8px; border: 1px solid #ccc; border-radius: 4px 0 0 4px; }
.search-form button { background: red; color: white; border: none; padding: 8px 12px; cursor: pointer; border-radius: 0 4px 4px 0; }

/* Sidebar */
.sidebar {
  width: 300px;
  flex-shrink: 0;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.sidebar h3 { margin-top: 0; color: #333; }
.sidebar ul { list-style: none; padding: 0; }
.sidebar ul li { margin-bottom: 10px; }
.sidebar ul li a { text-decoration: none; color: #555; }
.sidebar-ad-placeholder { background: #f0f0f0; text-align: center; padding: 50px 10px; margin-top: 20px; color: #aaa; border-radius: 4px; }

/* Main Content Styles */
.bike-image img { width: 100%; border-radius: 8px; margin: 20px auto; }
.review-title { margin-top: 30px; font-size: 24px; }
.bike-description { line-height: 1.6; font-size: 16px; }

/* Affiliate Links */
.affiliate-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 20px 0; }
.affiliate-links a { background: red; color: white; padding: 10px 8px; text-align: center; text-decoration: none; border-radius: 5px; font-weight: bold; font-size: 14px; transition: background-color 0.2s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.affiliate-links a:hover { background-color: #c00; }

/* Pros, Cons, Alternatives */
.pros-cons-wrapper { display: flex; gap: 20px; margin-top: 30px; }
.pros-box, .cons-box, .alternatives-box { padding: 20px; border-radius: 8px; background: #f9f9f9; border: 1px solid #eee; flex: 1; }
.pros-box h3, .cons-box h3, .alternatives-box h3 { margin-top: 0; color: red; }
.pros-box ul, .cons-box ul, .alternatives-box ul { padding-left: 20px; margin-bottom: 0; }

/* Footer */
.site-footer { background: #222; color: #aaa; padding: 20px; text-align: center; margin-top: 30px; }
.footer-content { max-width: 1400px; margin: auto; }
.footer-links a { color: #fff; text-decoration: none; margin: 0 10px; }

/* Cookie Banner */
.cookie-banner { position: fixed; bottom: 0; left: 0; width: 100vw; max-width: 100vw; background: rgba(0,0,0,0.8); color: white; padding: 15px; display: flex; justify-content: center; align-items: center; gap: 20px; z-index: 1000; transform: translateY(100%); transition: transform 0.5s ease-in-out; box-sizing: border-box; }
#cookie-necessary-btn { background: #444; color: white; border: none; padding: 8px 16px; border-radius: 4px; cursor: pointer; }
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 8px;
    font-size: 15px;
  }
  .cookie-banner button {
    width: 100%;
    font-size: 16px;
    margin: 0;
  }
  .cookie-banner p {
    text-align: left;
    margin-bottom: 8px;
  }
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { margin: 0; }
.cookie-banner a { color: #ff4d4d; text-decoration: underline; }
#cookie-accept-btn { background: red; color: white; border: none; padding: 8px 16px; border-radius: 4px; cursor: pointer; }

/* --- Responsive Design --- */
@media screen and (min-width: 993px) {
  .affiliate-links { grid-template-columns: repeat(4, 1fr); gap: 15px; }
}

@media screen and (max-width: 992px) {
  .page-wrapper { flex-direction: column; padding: 0; }
  .sidebar { display: block; width: 100%; }
  .hide-on-mobile { display: none; }
  .main-content { border-radius: 0; }
}

@media screen and (max-width: 768px) {
  .navbar { flex-direction: column; gap: 15px; padding: 15px; }
  .nav-links { order: 2; }
  .search-form { order: 1; width: 100%; }
  .search-form input { width: 100%; }
  .logo { order: 0; }
  .pros-cons-wrapper { flex-direction: column; }
}

/* --- STYLES FOR STATIC PAGES (About, Contact, Privacy) --- */

.page-wrapper-static {
  max-width: 800px;
  margin: 30px auto;
  padding: 0 20px;
}

.static-content {
  background: #ffffff;
  padding: 30px 40px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  line-height: 1.7;
  border: 1px solid #e5e5e5;
}

.static-content h1 {
  margin-top: 0;
  font-size: 2.2em;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 15px;
  margin-bottom: 25px;
}

.static-content h2, .static-content h3 {
  margin-top: 35px;
  color: #333;
}

.static-content ul {
  padding-left: 20px;
}

.static-content li {
  margin-bottom: 10px;
}

/* Contact Form Styles */
.contact-form {
  margin-top: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  font-size: 0.9em;
  color: #555;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box; /* Important for padding and width */
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #ff4d4d;
  box-shadow: 0 0 0 3px rgba(255, 77, 77, 0.2);
}

.submit-btn {
  background: red;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s, transform 0.2s;
}

.submit-btn:hover {
  background-color: #c00;
  transform: translateY(-2px);
}

/* --- STYLES FOR ALL BIKES PAGE --- */
.all-bikes-layout {
  display: flex;
  gap: 30px;
  margin-top: 20px;
}

.filters-sidebar {
  width: 280px;
  flex-shrink: 0;
}

.filters-sidebar h3 {
  margin-top: 0;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.filters-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.filter-group {
  display: flex;
  flex-direction: column;
}

.filter-group label {
  font-size: 0.9em;
  color: #555;
  margin-bottom: 5px;
}

.filter-group select, .filter-group input {
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

#apply-filters-btn {
  align-self: stretch;
  margin-top: 10px;
  padding: 12px 20px;
  background-color: red;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.2s;
}
#apply-filters-btn:hover {
  background-color: #c00;
}

.bike-results-container {
  flex-grow: 1;
}

.bike-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

@media (max-width: 700px) {
  .bike-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }
}

.btn-category {
  display: inline-block;
  background: #e0e0e0;
  color: #333;
  border-radius: 4px;
  padding: 0.4em 1em;
  font-size: 0.95em;
  font-weight: 500;
  margin-right: 0.7em;
  border: none;
  cursor: default;
}


.bike-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.bike-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.bike-card img, .bike-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: contain;
  display: block;
  height: auto;
  max-height: 220px;
}

@media (max-width: 700px) {
  .bike-card img, .bike-card-img {
    width: 100%;
    height: 140px;
    object-fit: contain;
    border-radius: 8px 8px 0 0;
    display: block;
    background: #f8f8f8;
    aspect-ratio: unset;
    max-height: 140px;
  }
  .card-actions .btn-category {
    display: none;
  }
  .card-category-bar {
    display: block;
    margin-bottom: 0;
  }
}


.bike-card h3 {
  padding: 15px;
  margin: 0;
  font-size: 1.1em;
  flex-grow: 1;
}

.card-actions {
  display: flex;
  flex-direction: row;
  gap: 0;
  border-top: 1px solid #e0e0e0;
  background-color: #fcfcfc;
  width: 100%;
}

.card-actions .btn-category {
  flex: 1 1 50%;
  min-width: 0;
  text-align: center;
  padding: 14px 0;
  text-decoration: none;
  color: #333;
  background: #f7f7f7;
  border: none;
  font-weight: bold;
  border-right: 1px solid #e0e0e0;
  border-radius: 0 0 0 8px;
  cursor: default;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 1.05em;
}
.card-actions .btn-view {
  flex: 1 1 50%;
  min-width: 0;
  text-align: center;
  padding: 14px 0;
  text-decoration: none;
  color: #fff;
  background: #d32f2f;
  border: none;
  font-weight: bold;
  border-radius: 0 0 8px 0;
  transition: background-color 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 1.05em;
}
.card-actions .btn-view:hover {
  background: #b71c1c;
  }
@media (max-width: 700px) {
  .card-category-bar {
    display: block;
    width: 100%;
    padding: 4px 0 0 0;
    text-align: left;
  }
  .card-category-bar .btn-category {
    display: inline-block;
    background: #e0e0e0;
    color: #333;
    border-radius: 20px;
    padding: 2px 12px;
    font-size: 0.95em;
    font-weight: 500;
    margin: 0 0 4px 8px;
    border: none;
    cursor: default;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    letter-spacing: 0.02em;
  }
  .card-actions {
    flex-direction: column;
    gap: 0;
    padding: 0;
    border-top: none;
    background: none;
    width: 100%;
  }
  .card-actions .btn-category {
    display: none !important;
  }
  .card-actions .btn-view {
    width: 100%;
    border-radius: 0 0 8px 8px;
    font-size: 1.1em;
    padding: 18px 0;
    margin: 0;
    background: #d32f2f;
    color: #fff;
    text-align: center;
    display: block;
    font-weight: bold;
    letter-spacing: 0.04em;
    position: relative;
    box-sizing: border-box;
  }
}

.card-actions a, .card-actions button {
  flex: 1;
  text-align: center;
  padding: 12px;
  text-decoration: none;
  color: #333;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.2s;
}
.card-actions .btn-compare.active {
  background-color: #ffebee;
  color: red;
}
.card-actions a:hover, .card-actions button:hover {
  background-color: #f0f0f0;
}

.card-actions button {
  border-left: 1px solid #e0e0e0;
}

/* --- STYLES FOR COMPARE PAGE --- */
.page-wrapper-compare {
  max-width: 1600px;
  margin: 20px auto;
  padding: 0 20px;
}

.compare-table {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
}

.compare-row {
  display: flex;
  border-bottom: 1px solid #ddd;
}
.compare-row:last-child {
  border-bottom: none;
}
.compare-row:nth-child(even) {
  background-color: #f9f9f9;
}

.compare-cell {
  flex: 1;
  padding: 20px;
  min-width: 280px;
  border-right: 1px solid #ddd;
}
.compare-cell:last-child {
  border-right: none;
}

.feature-title {
  flex-shrink: 0;
  width: 180px;
  min-width: 180px;
  font-weight: bold;
  background-color: #f5f5f5 !important;
  position: sticky;
  left: 0;
  z-index: 1;
}

.header-row {
  background-color: #f0f0f0 !important;
}
.header-row h3 {
  margin: 0;
}

.compare-cell img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 5px;
}

.compare-cell ul {
  margin: 0;
  padding-left: 20px;
}

/* --- COMPARE TRAY STYLES --- */
.compare-tray {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #222;
  color: white;
  box-shadow: 0 -5px 15px rgba(0,0,0,0.2);
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 10px 20px;
}
.compare-tray.visible {
  transform: translateY(0);
}
.compare-tray-items {
  display: flex;
  gap: 15px;
  flex-grow: 1;
}
.tray-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #444;
  padding: 5px 10px;
  border-radius: 5px;
}
.tray-item img {
  width: 40px;
  height: 40px;
  border-radius: 3px;
  object-fit: cover;
}
.compare-now-btn {
  padding: 10px 25px;
  background-color: red;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
}
.compare-now-btn.disabled {
  background-color: #888;
  cursor: not-allowed;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 992px) {
  .all-bikes-layout {
      flex-direction: column;
  }
  .filters-sidebar {
      width: 100%;
  }
}

/* --- HOMEPAGE STYLES --- */

.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 500px;
    /* This path points to the image in your dist/images/ folder */
    background: url('/images/hero-background.webp') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 20px 0;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 20px;
}
.hero-content h1 {
  font-size: 3.5em;
  margin: 0;
  font-weight: bold;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}
.hero-slogan {
  font-size: 1.2em;
  margin-top: 10px;
  margin-bottom: 30px;
  opacity: 0.9;
}
.hero-search-form {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  border-radius: 5px;
}
.hero-search-form input {
  flex-grow: 1;
  padding: 15px;
  font-size: 1em;
  border: none;
  border-radius: 5px 0 0 5px;
}
.hero-search-form input:focus {
  outline: none;
}
.hero-search-form button {
  padding: 15px 30px;
  font-size: 1em;
  border: none;
  background-color: red;
  color: white;
  cursor: pointer;
  border-radius: 0 5px 5px 0;
  font-weight: bold;
  transition: background-color 0.2s;
}
.hero-search-form button:hover {
  background-color: #c00;
}

/* Featured Sections */
.featured-section {
  padding: 40px 0;
}
.section-title {
  text-align: center;
  font-size: 2em;
  margin-bottom: 30px;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.category-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  display: block;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.category-card:hover img {
  transform: scale(1.1);
}
.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 50%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
  transition: background 0.3s;
}
.category-card:hover .card-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.1) 50%);
}
.card-overlay h3 {
  color: white;
  margin: 0;
  font-size: 1.5em;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

/* Brand Logos Section */
.brand-logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}


.brand-logo {
  text-align: center;
}
.brand-logo a {
  display: inline-block;
  padding: 10px;
}
.brand-logo img {
  max-height: 50px;
  max-width: 120px;
  width: 100%;
  filter: grayscale(100%);
  transition: filter 0.3s;
  opacity: 0.7;
}
.brand-logo img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.view-all-btn {
  display: block;
  width: fit-content;
  margin: 30px auto 0;
  padding: 12px 30px;
  background-color: red;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  text-align: center;
  transition: background-color 0.2s;
}
.view-all-btn:hover {
  background-color: #c00;
}


/* --- COMMENTS SECTION STYLES --- */

.comments-section {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #eee;
}

.comments-section h2 {
  font-size: 24px;
  margin-bottom: 20px;
}

/* This makes the bike description text easier to read */
.bike-description {
  line-height: 1.7;
}
.bike-description p {
  margin-bottom: 1em;
}

/* --- HERO FILTER FORM STYLES --- */
.hero-filter-form {
  background: rgba(0, 0, 0, 0.3);
  padding: 20px;
  border-radius: 8px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.hero-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}
.hero-filter-form select, .hero-filter-form input {
  flex: 1;
  min-width: 150px;
  padding: 15px;
  font-size: 1em;
  border: 1px solid #555;
  border-radius: 5px;
  background-color: #333;
  color: white;
}
.hero-filter-form select option {
  background: #333;
  color: white;
}
.hero-filter-form .filter-separator {
  display: flex;
  align-items: center;
  text-align: center;
  color: rgba(255,255,255,0.7);
  margin: 15px 0;
  font-weight: bold;
}
.hero-filter-form .filter-separator::before, .hero-filter-form .filter-separator::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255,255,255,0.3);
}
.hero-filter-form .filter-separator:not(:empty)::before { margin-right: .5em; }
.hero-filter-form .filter-separator:not(:empty)::after { margin-left: .5em; }

.hero-filter-form .text-search-group {
  display: flex;
  width: 100%;
  gap: 15px;
}
.hero-filter-form .text-search-group input {
  flex-grow: 1;
}

.hero-filter-form button {
  padding: 15px 30px;
  font-size: 1em;
  border: none;
  background-color: red;
  color: white;
  cursor: pointer;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.2s;
}
.hero-filter-form button:hover {
  background-color: #c00;
}

/* --- ALL BIKES PAGE FILTER STYLES --- */
.filters-container {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: max-height 0.3s, opacity 0.3s;
}

@media (max-width: 700px) {
  .filters-sidebar {
    width: 100%;
    margin-bottom: 1rem;
  }
  /* Only hide filters-container for the all-bikes layout on small screens */
  .all-bikes-layout .filters-container {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    padding: 0 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    background: #fff;
    margin-bottom: 0;
    transition: max-height 0.3s, opacity 0.3s, padding 0.3s, margin-bottom 0.3s;
  }
  .all-bikes-layout .filters-container.open {
    max-height: 800px;
    opacity: 1;
    pointer-events: auto;
    padding: 20px;
    margin-bottom: 1rem;
    overflow: visible;
  }
  .filter-toggle-btn {
    display: block;
    width: 100%;
    background: #d32f2f;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px 0;
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 10px;
    cursor: pointer;
  }
}
.filters-container h3 {
  margin-top: 0;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}
.filter-separator {
  display: flex;
  align-items: center;
  text-align: center;
  color: #aaa;
  margin: 20px 0;
}
.filter-separator::before, .filter-separator::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #ddd;
}
.filter-separator:not(:empty)::before { margin-right: .25em; }
.filter-separator:not(:empty)::after { margin-left: .25em; }

/* --- LAYOUT & USABILITY FIXES --- */

/* This ensures the grid on the All Bikes page is always multi-column */
.all-bikes-layout .bike-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

@media (max-width: 700px) {
  .all-bikes-layout .bike-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.2rem;
  }
}

/* This makes the bike card clickable */
.bike-card {
    position: relative; /* Needed for the link wrapper */
}
.card-link-wrapper {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.card-link-wrapper h3 {
    flex-grow: 1;
}

/* This fixes the compare tray overflow issue */
.compare-tray {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.compare-tray-items {
    flex: 1;
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-right: 15px;
}

/* --- LAYOUT & USABILITY FIXES --- */

/* This ensures the grid on the All Bikes page is always multi-column */
.all-bikes-layout .bike-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

/* This makes the bike card clickable */
.bike-card {
    position: relative; /* Needed for the link wrapper */
}
.card-link-wrapper {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.card-link-wrapper h3 {
    flex-grow: 1;
}

/* This fixes the compare tray overflow issue */
.compare-tray {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.compare-tray-items {
    flex: 1;
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-right: 15px;
}

/* --- LAYOUT & USABILITY FIXES --- */

/* This ensures the grid on the All Bikes page is always multi-column */
.all-bikes-layout .bike-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

/* This makes the bike card clickable */
.bike-card {
    position: relative; /* Needed for the link wrapper */
}
.card-link-wrapper {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.card-link-wrapper h3 {
    flex-grow: 1;
}

/* This fixes the compare tray overflow issue */
.compare-tray {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.compare-tray-items {
    flex: 1;
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-right: 15px;
}

/* --- ALL BIKES PAGE - NEW LAYOUT & PAGINATION --- */

.all-bikes-header {
    margin-bottom: 20px;
}

.all-bikes-layout .bike-grid {
    grid-template-columns: repeat(4, 1fr); /* 4 bikes per row on desktop */
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.page-link {
    display: inline-block;
    padding: 10px 15px;
    background-color: #fff;
    border: 1px solid #ddd;
    color: red;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.2s, color 0.2s;
}

.page-link:hover {
    background-color: red;
    color: white;
}

.page-link.active {
    background-color: red;
    color: white;
    border-color: red;
    cursor: default;
}

.page-link.disabled {
    color: #ccc;
    pointer-events: none;
}

/* Responsive adjustments for the grid */
@media screen and (max-width: 1200px) {
    .all-bikes-layout .bike-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 992px) {
    .all-bikes-layout .bike-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- NEW COMPARE MENU IN HEADER --- */
.nav-compare-menu {
    position: relative;
    margin-left: 20px;
}
.nav-compare-menu #nav-compare-link {
    position: relative;
    display: flex;
    align-items: center;
    color: #333;
}
.nav-compare-count {
    position: absolute;
    top: -8px;
    right: -12px;
    background-color: red;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}
.nav-compare-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    width: 300px;
    z-index: 1001;
}
.nav-compare-menu:hover .nav-compare-dropdown {
    display: block;
}
.compare-dropdown-empty {
    padding: 20px;
    text-align: center;
    color: #888;
}
.compare-dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
}
.compare-dropdown-item:last-child {
    border-bottom: none;
}
.compare-dropdown-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 10px;
}
.compare-dropdown-item span {
    flex-grow: 1;
    font-size: 14px;
}
.remove-from-menu {
    background: none;
    border: none;
    font-size: 20px;
    color: #aaa;
    cursor: pointer;
    padding: 5px;
}
.remove-from-menu:hover {
    color: red;
}

/* --- ALL BIKES PAGE - WIDER LAYOUT & PAGINATION --- */
.page-wrapper-full {
    max-width: 1600px; /* Wider container */
    margin: 30px auto;
    padding: 0 30px;
}
.all-bikes-header {
    background: #fff;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid #e5e5e5;
    margin-bottom: 30px;
}
.all-bikes-header h1 { margin-top: 0; }
.all-bikes-layout .bike-grid {
    grid-template-columns: repeat(4, 1fr);
}
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  flex-wrap: nowrap;
}
.page-link {
    display: inline-block;
    padding: 8px 14px;
    background-color: #fff;
    border: 1px solid #ddd;
    color: red;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.2s, color 0.2s;
}
.page-link:hover {
    background-color: red;
    color: white;
    border-color: red;
}
.page-link.active {
    background-color: red;
    color: white;
    border-color: red;
    cursor: default;
}
.page-link.disabled {
    color: #ccc;
    pointer-events: none;
    background-color: #f9f9f9;
}

/* --- COMPARE TRAY FIXES --- */
.compare-tray-items {
    flex: 1;
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-right: 15px;
}
.remove-from-tray {
    background: none;
    border: none;
    font-size: 20px;
    color: #aaa;
    cursor: pointer;
    padding: 0 5px;
    margin-left: 5px;
}
.remove-from-tray:hover {
    color: white;
}