#js-product-list-header .cbl-category-header {
  margin: 0 0 18px;
  color: #171717;
}

#js-product-list-header .cbl-category-header *,
#js-product-list-header .cbl-category-header *::before,
#js-product-list-header .cbl-category-header *::after {
  box-sizing: border-box;
}

#js-product-list-header .cbl-category-header h1 {
  margin: 0;
  color: #111827;
  font-size: 34px;
  line-height: 1.06;
  letter-spacing: 0;
}

#js-product-list-header .cbl-category-description {
  margin-top: 8px;
  color: #2f343a;
  font-size: 14px;
  line-height: 1.42;
}

#js-product-list-header .cbl-category-description p {
  margin: 0 0 7px;
}

#js-product-list-header .cbl-category-description p:last-child {
  margin-bottom: 0;
}

#js-product-list-header .cbl-category-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 5px 9px;
  border-radius: 4px;
  background: #cef2da;
  color: #053b27;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

#js-product-list-header .cbl-category-routes {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

#js-product-list-header .cbl-category-routes a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border: 1px solid #dedede;
  border-radius: 5px;
  background: #fff;
  color: #1f2937;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

#js-product-list-header .cbl-category-routes a:hover {
  border-color: #0b8a5a;
  background: #f0fdf4;
  color: #053b27;
}

#js-product-list-header .cbl-category-editorial {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 34%);
  gap: 18px;
  align-items: stretch;
  padding: 18px;
  border: 1px solid #e1e4e8;
  border-radius: 8px;
  background: #fffdf8;
}

#js-product-list-header .cbl-category-header--no-image .cbl-category-editorial {
  grid-template-columns: 1fr;
}

#js-product-list-header .cbl-category-editorial__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#js-product-list-header .cbl-category-editorial__media {
  min-height: 178px;
  margin: 0;
  overflow: hidden;
  border-radius: 7px;
  background: #f3f4f5;
}

#js-product-list-header .cbl-category-editorial__media img,
#js-product-list-header .cbl-category-finder__media img,
#js-product-list-header .cbl-category-hero-bar__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#js-product-list-header .cbl-category-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

#js-product-list-header .cbl-category-stats span,
#js-product-list-header .cbl-category-facts span,
#js-product-list-header .cbl-category-facts a {
  display: flex;
  min-width: 0;
  min-height: 46px;
  flex-direction: column;
  justify-content: center;
  padding: 7px 9px;
  border: 1px solid #e1e4e8;
  background: rgba(255, 255, 255, .78);
  color: #111827;
  text-align: center;
  text-decoration: none;
}

#js-product-list-header .cbl-category-stats strong,
#js-product-list-header .cbl-category-facts strong {
  overflow: hidden;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#js-product-list-header .cbl-category-stats small,
#js-product-list-header .cbl-category-facts small {
  margin-top: 3px;
  color: #6b7280;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}

#js-product-list-header .cbl-category-hero-bar {
  position: relative;
  min-height: 255px;
  overflow: hidden;
  border-radius: 8px;
  background: #111827;
}

#js-product-list-header .cbl-category-hero-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .48) 46%, rgba(0, 0, 0, .18) 100%);
}

#js-product-list-header .cbl-category-header--no-image .cbl-category-hero-bar::after {
  background: linear-gradient(135deg, #111827 0%, #0b8a5a 100%);
}

#js-product-list-header .cbl-category-hero-bar__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  max-width: 720px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 30px;
}

#js-product-list-header .cbl-category-hero-bar h1,
#js-product-list-header .cbl-category-hero-bar .cbl-category-description {
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .35);
}

#js-product-list-header .cbl-category-hero-bar h1 {
  margin-top: 8px;
}

#js-product-list-header .cbl-category-hero-bar .cbl-category-description {
  display: -webkit-box;
  max-width: 640px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

#js-product-list-header .cbl-category-hero-bar .cbl-category-routes a {
  border-color: rgba(255, 255, 255, .72);
  background: rgba(255, 255, 255, .92);
}

#js-product-list-header .cbl-category-finder {
  display: grid;
  grid-template-columns: minmax(180px, 27%) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  padding: 16px;
  border: 1px solid #e1e4e8;
  border-radius: 8px;
  background: #fffdf8;
}

#js-product-list-header .cbl-category-header--no-image .cbl-category-finder {
  grid-template-columns: 1fr;
}

#js-product-list-header .cbl-category-finder__media {
  min-height: 170px;
  margin: 0;
  overflow: hidden;
  border-radius: 7px;
  background: #f3f4f5;
}

#js-product-list-header .cbl-category-finder__content {
  min-width: 0;
}

#js-product-list-header .cbl-category-finder h1 {
  margin-top: 7px;
}

#js-product-list-header .cbl-category-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 13px;
}

#js-product-list-header .cbl-category-facts a:hover {
  border-color: #2f62d6;
  background: #f5f8ff;
}

@media (max-width: 991px) {
  #js-product-list-header .cbl-category-header h1 {
    font-size: 28px;
  }

  #js-product-list-header .cbl-category-editorial,
  #js-product-list-header .cbl-category-finder {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }

  #js-product-list-header .cbl-category-editorial__media,
  #js-product-list-header .cbl-category-finder__media {
    order: -1;
    min-height: 145px;
    max-height: 190px;
  }

  #js-product-list-header .cbl-category-hero-bar {
    min-height: 235px;
  }

  #js-product-list-header .cbl-category-hero-bar__overlay {
    padding: 20px;
  }

  #js-product-list-header .cbl-category-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  #js-product-list-header .cbl-category-header {
    margin-bottom: 12px;
  }

  #js-product-list-header .cbl-category-header h1 {
    font-size: 24px;
  }

  #js-product-list-header .cbl-category-description {
    display: -webkit-box;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
  }

  #js-product-list-header .cbl-category-pill {
    min-height: 21px;
    padding: 4px 7px;
    font-size: 10px;
  }

  #js-product-list-header .cbl-category-routes {
    gap: 5px;
    margin-top: 9px;
  }

  #js-product-list-header .cbl-category-routes a {
    min-height: 24px;
    padding: 5px 7px;
    font-size: 10px;
  }

  #js-product-list-header .cbl-category-editorial,
  #js-product-list-header .cbl-category-finder {
    padding: 10px;
  }

  #js-product-list-header .cbl-category-editorial__media,
  #js-product-list-header .cbl-category-finder__media {
    min-height: 96px;
    max-height: 118px;
  }

  #js-product-list-header .cbl-category-stats {
    gap: 5px;
    margin-top: 9px;
  }

  #js-product-list-header .cbl-category-stats span,
  #js-product-list-header .cbl-category-facts span,
  #js-product-list-header .cbl-category-facts a {
    min-height: 39px;
    padding: 5px 6px;
  }

  #js-product-list-header .cbl-category-stats strong,
  #js-product-list-header .cbl-category-facts strong {
    font-size: 12px;
  }

  #js-product-list-header .cbl-category-stats small,
  #js-product-list-header .cbl-category-facts small {
    font-size: 8px;
  }

  #js-product-list-header .cbl-category-hero-bar {
    min-height: 205px;
  }

  #js-product-list-header .cbl-category-hero-bar::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, .18) 0%, rgba(0, 0, 0, .76) 100%);
  }

  #js-product-list-header .cbl-category-hero-bar__overlay {
    padding: 12px;
  }

  #js-product-list-header .cbl-category-hero-bar .cbl-category-description {
    -webkit-line-clamp: 3;
  }

  #js-product-list-header .cbl-category-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    margin-top: 9px;
  }
}
