/**
 * Phase 2 — category filter rail (docs/improvements/Home_and_Products.md)
 */

.jdh-cat-filter.creative-card {
  border-radius: 0.5rem;
  box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 0.85rem 0.65rem 1rem;
  background: #fff;
}

.jdh-cat-filter .collection-mobile-back {
  margin-bottom: 0.5rem;
}

.jdh-cat-filter .jdh-cat-filter__block {
  margin-bottom: 0.25rem;
  border-radius: 0.35rem;
  border: 1px solid transparent;
}

.jdh-cat-filter .jdh-cat-filter__block.is-parent-active {
  border-color: rgba(3, 18, 74, 0.12);
  background: rgba(3, 18, 74, 0.02);
}

.jdh-cat-filter .collapse-block-title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0;
  padding: 0.55rem 1.85rem 0.55rem 0.6rem;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  line-height: 1.25;
}

/* Center FontAwesome chevron vertically (theme uses top: 0) */
.jdh-cat-filter .collection-collapse-block .collapse-block-title::after {
  top: 50%;
  transform: translateY(-50%);
  right: 0.25rem;
  line-height: 1;
}

.jdh-cat-filter .jdh-cat-filter__parent-link {
  color: #03124a;
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}

.jdh-cat-filter .collapse-block-title .jdh-cat-filter__count {
  flex-shrink: 0;
  margin-left: auto;
  padding-right: 0.15rem;
}

.jdh-cat-filter .jdh-cat-filter__parent-link:hover {
  text-decoration: none;
  color: #0d47a1;
}

.jdh-cat-filter .jdh-cat-filter__parent-link.is-active {
  color: #0d47a1;
  font-weight: 700;
}

.jdh-cat-filter .jdh-cat-filter__count {
  font-size: 0.8125rem;
  color: #6c757d;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  min-width: 2.25rem;
  text-align: right;
}

.jdh-cat-filter .collection-collapse-block-content {
  padding: 0.4rem 0 0.55rem;
}

.jdh-cat-filter .category-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 0.35rem;
}

.jdh-cat-filter .collection-collapse-block-content .collection-brand-filter .category-list li {
  display: block;
  text-transform: none;
  line-height: normal;
}

.jdh-cat-filter .collection-collapse-block-content .collection-brand-filter .category-list li:first-child {
  margin-top: 0;
}

.jdh-cat-filter .category-list li {
  margin: 0;
  padding: 0;
}

.jdh-cat-filter .category-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.5rem 0.5rem 0.85rem;
  border-radius: 0.25rem;
  font-size: 0.8125rem;
  color: #444;
  border-left: 3px solid transparent;
  line-height: 1.35;
}

.jdh-cat-filter .category-list a .jdh-cat-filter__label {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.jdh-cat-filter .category-list a .jdh-cat-filter__count {
  margin-left: 0;
}

.jdh-cat-filter .category-list a:hover {
  background: rgba(3, 18, 74, 0.04);
  color: #03124a;
  text-decoration: none;
}

.jdh-cat-filter .category-list a.is-active {
  background: rgba(13, 71, 161, 0.08);
  border-left-color: #0d47a1;
  color: #03124a;
  font-weight: 600;
}

/* Override theme (.color5.css) list row rules: padding-bottom, font-size, flex layout */
.jdh-cat-filter .collection-collapse-block .collection-collapse-block-content .collection-brand-filter .category-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.5rem 0.5rem 0.85rem;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: #444;
}
