.bikeProducts {
  width: 100%;
  padding: 0;
}

.bikeProducts__title {
  max-width: 1440px;
  margin: 0 auto 16px;
  padding: 40px 0;
  width: 90%;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  box-sizing: border-box;
}

.bikeProducts__toolbar {
  max-width: 1440px;
  margin: 0 auto 40px;
  padding: 0;
  width: 90%;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  box-sizing: border-box;
}
.bikeProducts__filterToggle {
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid #0b3a4f;
  background: #0b3a4f; /* dark by default */
  color: #fff;
  padding: 10px 14px;
  font: 700 14px/1 "DM Sans", sans-serif;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.bikeProducts__filterToggle:hover {
  filter: brightness(1.05);
}
.bikeProducts[data-filters-open="1"] .bikeProducts__filterToggle {
  background: rgba(255, 255, 255, 0.85); /* light when active */
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #0a344c;
  border-color: #dbe2e7;
}
.bikeProducts__filterIcon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.bikeProducts__filters {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 200ms ease, opacity 160ms ease;
}
.bikeProducts[data-filters-open="1"] .bikeProducts__filters {
  max-height: 500px;
  opacity: 1;
}
.bikeProducts__sort {
  display: inline-flex;
}
.bikeProducts__filter {
  display: grid;
  gap: 6px;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  color: #334155;
}
.bikeProducts__select {
  min-width: 180px;
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
}

main .bikeProducts .bikeProducts__grid {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0;
  width: 90%;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.bikeProducts__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Leverage Woo's product-card structure; minor harmonization if needed */
.bikeProducts .product-card {
  border: 1px solid rgba(241, 241, 241, 1);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.bikeProducts .bikeProducts__grid .product-card:hover {
  border-color: rgba(241, 241, 241, 1);
}
.bikeProducts .product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}
.bikeProducts .product-card.product {
  padding-top: 0;
} /* override Woo padding used elsewhere */
.bikeProducts .product-card__thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  background: transparent;
  overflow: hidden;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}
.bikeProducts .product-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.bikeProducts .product-card__body {
  margin-top: 10px;
  padding: 15px;
  display: grid;
  gap: 6px;
}
.bikeProducts .product-card__title a,
.bikeProducts .product-card__brand,
.bikeProducts .product-card__category,
.bikeProducts .product-card__price {
  color: #000;
  text-decoration: none;
  font-family: "DM Sans", sans-serif;
}

.bikeProducts .product-card__actions {
  margin-top: 10px;
}
.bikeProducts .nb-price {
  display: inline-flex;
  gap: 8px;
  align-items: baseline;
}
.bikeProducts .nb-price__now {
  color: #e11d48; /* vivid red for sale */
  font-weight: 800;
}
.bikeProducts .nb-price__was {
  color: #6b7280;
  text-decoration: line-through;
  font-weight: 500;
}
.bikeProducts .product-card__badge {
  /* use existing woo default visual; ensure visibility on our cards */
  z-index: 3;
}
.bikeProducts .product-card__badge--demo {
  background: #0b3a4f;
  color: #fff;
}
.bikeProducts .product-card__badge--used {
  background: #e8318a;
  color: #fff62f;
}
.bikeProducts .bikeProducts__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #0a344c;
  font: 600 14px/1 "DM Sans", sans-serif;
  text-decoration: none;
  cursor: pointer;
}
.product-card__title {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  color: #000;
  font-family: "DM Sans", sans-serif;
}
.bikeProducts .bikeProducts__more:hover {
  background: #0b3a4f;
  color: #fff;
  border-color: #0b3a4f;
}

.bikeProducts__empty {
  grid-column: 1 / -1;
  padding: 18px;
  border: 1px dashed #e5e7eb;
  border-radius: 8px;
  background: #fff;
  text-align: center;
  color: #0a344c;
  font: 500 14px/1.4 "DM Sans", sans-serif;
}

/* Center the notice modal specifically inside this block */
.bikeProducts .nb-modal__dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  max-width: 560px;
  width: calc(100% - 24px);
}
.bikeProducts .nb-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}
.bikeProducts .nb-modal__primary {
  border-radius: 999px;
  background: #0b3a4f;
  color: #fff;
  border: 1px solid #0b3a4f;
  padding: 10px 14px;
  font: 600 14px/1 "DM Sans", sans-serif;
  cursor: pointer;
}
.bikeProducts .nb-modal__primary:hover {
  filter: brightness(1.05);
}

.bikeProducts__pagination {
  max-width: 1280px;
  margin: 50px auto 0;
  padding: 0 16px 8px;
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.bikeProducts__pageBtn {
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #0f172a;
  border-radius: 6px;
  cursor: pointer;
}
.bikeProducts__pageBtn.is-active {
  background: #0b3a4f;
  color: #fff;
  border-color: #0b3a4f;
}
.bikeProducts__pageBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 1024px) {
  .bikeProducts__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .bikeProducts__toolbar {
    display: grid;
    gap: 10px;
    align-items: start;
    justify-content: stretch;
  }
  .bikeProducts__filterToggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
  }
  .bikeProducts__filters,
  .bikeProducts__sort {
    width: 100%;
  }
  .bikeProducts__filters {
    flex-direction: column;
    gap: 10px;
  }
  .bikeProducts__filter {
    width: 100%;
  }
  .bikeProducts__select {
    width: 100%;
  }
  .bikeProducts__grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0;
    width: 90%;
  }
  .bikeProducts__pagination {
    padding: 0 0 8px;
    gap: 6px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }
  .bikeProducts .product-card__body {
    padding: 12px;
    gap: 6px;
  }
  .bikeProducts .product-card__title {
    font-size: 18px;
    line-height: 1.25;
  }
  .bikeProducts .product-card__badge {
    font-size: 12px;
    min-width: 0;
    padding: 6px 10px;
  }
  .bikeProducts .product-card__price {
    font-size: 18px;
    line-height: 1.3;
  }
  .bikeProducts .nb-price__now {
    font-size: 20px;
  }
  .bikeProducts .nb-price__was {
    font-size: 12px;
  }
  .bikeProducts .bikeProducts__more {
    padding: 9px 12px;
    font-size: 13px;
  }
}
