/* Only the category navigation at the top of collection pages is restyled. */
body:is(.tax-product_cat, .post-type-archive-product) .shop-toolbar {
  border-color: #8fb5d9;
}
body:is(.tax-product_cat, .post-type-archive-product) .shop-toolbar-right {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  gap: 18px;
}
body:is(.tax-product_cat, .post-type-archive-product) #categoryFilters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 10px;
  width: 100%;
  max-width: none;
  overflow: visible;
}
body:is(.tax-product_cat, .post-type-archive-product) #categoryFilters a.filter-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 112px;
  padding: 12px 8px;
  border: 1px solid #8fb5d9;
  border-radius: 12px;
  background: #f5f9fd;
  color: #143b60;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  white-space: normal;
}
body:is(.tax-product_cat, .post-type-archive-product) #categoryFilters a.filter-pill::before {
  content: "🐾";
  display: block;
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 8px;
}
body:is(.tax-product_cat, .post-type-archive-product) #categoryFilters a.filter-pill::after {
  content: "Shop treats →";
  display: block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 400;
}
body:is(.tax-product_cat, .post-type-archive-product) #categoryFilters a[href*="/dog-treats/"]::before { content: "🐶"; }
body:is(.tax-product_cat, .post-type-archive-product) #categoryFilters a[href*="/cat-treats/"]::before { content: "🐱"; }
body:is(.tax-product_cat, .post-type-archive-product) #categoryFilters a[href*="/horse-treats/"]::before { content: "🐴"; }
body:is(.tax-product_cat, .post-type-archive-product) #categoryFilters a[href*="/crunchy-dog-treats/"]::before { content: "🦴"; }
body:is(.tax-product_cat, .post-type-archive-product) #categoryFilters a[href*="/soft-dog-treats/"]::before { content: "💙"; }
body:is(.tax-product_cat, .post-type-archive-product) #categoryFilters a[href*="/dog-dental-chews/"]::before { content: "🦷"; }
body:is(.tax-product_cat, .post-type-archive-product) #categoryFilters a[href*="/dog-training-treats/"]::before { content: "🎯"; }
body:is(.tax-product_cat, .post-type-archive-product) #categoryFilters a[href*="/natural-dog-chews/"]::before { content: "🌿"; }
body:is(.tax-product_cat, .post-type-archive-product) #categoryFilters a[href*="/dehydrated-dog-treats/"]::before { content: "🥩"; }
body:is(.tax-product_cat, .post-type-archive-product) #categoryFilters a[href*="/white-label-dog-treats/"]::before { content: "🏷️"; }
body:is(.tax-product_cat, .post-type-archive-product) #categoryFilters a[href*="bulk-dog-treats-wholesale"]::before { content: "📦"; }
body:is(.tax-product_cat, .post-type-archive-product) #categoryFilters a[href*="/dog-food-toppers/"]::before { content: "🥣"; }
body:is(.tax-product_cat, .post-type-archive-product) #categoryFilters a[href*="filter_new"]::before { content: "✨"; }
body:is(.tax-product_cat, .post-type-archive-product) #categoryFilters a[href*="on_sale"]::before { content: "💲"; }
body:is(.tax-product_cat, .post-type-archive-product) #categoryFilters .filter-divider { display: none; }
body:is(.tax-product_cat, .post-type-archive-product) #categoryFilters a.filter-pill.active-filter {
  background: #143b60;
  border-color: #143b60;
  color: #fff;
}
body:is(.tax-product_cat, .post-type-archive-product) #categoryFilters a.filter-pill:hover {
  border-color: #0072ff;
  background: #e5f0fc;
  color: #143b60;
}
body:is(.tax-product_cat, .post-type-archive-product) #categoryFilters a.filter-pill:focus-visible {
  outline: 2px solid #0072ff;
  outline-offset: 3px;
}
body:is(.tax-product_cat, .post-type-archive-product) .shop-sort-wrapper { align-self: flex-start; }
@media (max-width: 479px) {
  body:is(.tax-product_cat, .post-type-archive-product) #categoryFilters {
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    gap: 8px;
  }
  body:is(.tax-product_cat, .post-type-archive-product) #categoryFilters a.filter-pill {
    min-height: 108px;
    padding: 12px 6px;
  }
}

body.post-type-archive-product .bw-category-heading { font-family: var(--font-sans); font-size: 26px; font-weight: 700; color: #143b60; margin: 28px 0 18px; }
