/* AstraMarket category tree: scoped to product-category navigation only. */
.category-filter-list[data-category-tree-ssr] {
  display: block;
  min-width: 0;
  gap: 0;
  padding-right: 0;
}
.category-filter-list[data-category-tree-ssr] .category-tree-all-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 9px 10px;
  margin-bottom: 9px;
  border-radius: 9px;
  color: #263a5b;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}
.category-filter-list[data-category-tree-ssr] .category-tree-all-link:hover,
.category-filter-list[data-category-tree-ssr] .category-tree-all-link:focus-visible {
  background: #eef5ff;
  color: #0759c9;
}
.category-filter-list[data-category-tree-ssr] .category-filter-tree {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
}
.category-filter-list[data-category-tree-ssr] .category-filter-node {
  position: relative;
  margin: 1px 0;
  min-width: 0;
}
.category-filter-list[data-category-tree-ssr] .category-tree-row {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 3px 6px;
  border-radius: 9px;
  color: #23334e;
  transition: background-color 150ms ease, color 150ms ease;
}
.category-filter-list[data-category-tree-ssr] .category-tree-row:hover,
.category-filter-list[data-category-tree-ssr] .category-tree-row:focus-within {
  background: #eff5ff;
}
.category-filter-list[data-category-tree-ssr] .category-tree-row.is-ancestor {
  color: #075acb;
  background: #eaf2ff;
}
.category-filter-list[data-category-tree-ssr] .category-tree-row.is-active {
  color: #fff;
  background: #075bd2;
  box-shadow: 0 6px 14px rgb(0 83 195 / 14%);
}
.category-filter-list[data-category-tree-ssr] .category-tree-icon {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: #607392;
}
.category-filter-list[data-category-tree-ssr] .category-tree-row.is-active .category-tree-icon,
.category-filter-list[data-category-tree-ssr] .category-tree-row.is-ancestor .category-tree-icon {
  color: currentColor;
}
.category-filter-list[data-category-tree-ssr] .category-tree-row > .category-tree-link {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  min-height: 34px;
  padding: 5px 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.category-filter-list[data-category-tree-ssr] .category-tree-row > .category-tree-link:hover,
.category-filter-list[data-category-tree-ssr] .category-tree-row > .category-tree-link:focus-visible {
  background: transparent;
  box-shadow: none;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.category-filter-list[data-category-tree-ssr] .category-tree-row.is-active > .category-tree-link {
  color: #fff;
  background: transparent;
  box-shadow: none;
}
.category-filter-list[data-category-tree-ssr] .category-tree-count {
  display: inline-flex;
  min-width: 23px;
  height: 23px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0 6px;
  border-radius: 999px;
  background: #e8f0fc;
  color: #3c5f90;
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.category-filter-list[data-category-tree-ssr] .category-tree-row.is-active .category-tree-count {
  color: #fff;
  background: rgb(255 255 255 / 20%);
}
.category-filter-list[data-category-tree-ssr] .category-tree-toggle {
  display: none;
  width: 26px;
  height: 28px;
  min-width: 26px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.category-filter-list[data-category-tree-ssr].category-tree-enhanced .category-tree-toggle {
  display: inline-flex;
}
.category-filter-list[data-category-tree-ssr] .category-tree-toggle:hover,
.category-filter-list[data-category-tree-ssr] .category-tree-toggle:focus-visible {
  background: rgb(34 94 180 / 12%);
  outline-offset: 2px;
}
.category-filter-list[data-category-tree-ssr] .category-tree-row.is-active .category-tree-toggle:hover,
.category-filter-list[data-category-tree-ssr] .category-tree-row.is-active .category-tree-toggle:focus-visible {
  background: rgb(255 255 255 / 20%);
}
.category-filter-list[data-category-tree-ssr] .category-tree-toggle svg {
  display: block;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 150ms ease;
  transform: rotate(-90deg);
}
.category-filter-list[data-category-tree-ssr] .category-filter-node.is-expanded > .category-tree-row .category-tree-toggle svg {
  transform: rotate(0deg);
}
.category-filter-list[data-category-tree-ssr] .category-tree-children {
  min-width: 0;
  margin: 3px 0 5px 16px;
  padding-left: 9px;
  border-left: 1px solid #ccdcf1;
}
.category-filter-list[data-category-tree-ssr] .category-tree-children > .category-filter-tree > .category-filter-node::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 20px;
  width: 9px;
  height: 1px;
  background: #ccdcf1;
}
.category-filter-list[data-category-tree-ssr].category-tree-enhanced .category-filter-node:not(.is-expanded) > .category-tree-children {
  display: none;
}
.category-filter-list[data-category-tree-ssr] .category-tree-children .category-tree-row > .category-tree-link {
  font-size: 12px;
  font-weight: 600;
}
@media (min-width: 821px) {
  .product-category-page .category-filter-panel {
    position: static;
    display: block;
    max-height: none;
    overflow: visible;
    padding: 18px 14px;
    border-radius: 12px;
  }
  .product-category-page .category-filter-list {
    max-height: none;
    min-height: 0;
    overflow: visible;
    overscroll-behavior: auto;
    margin-top: 14px;
  }
  .product-category-page .filter-block {
    margin-top: 18px;
  }
}
@media (min-width: 821px) and (max-width: 1200px) {
  .product-category-page .category-filter-panel {
    padding: 15px 10px;
  }
  .category-filter-list[data-category-tree-ssr] .category-tree-row {
    gap: 5px;
    padding: 2px 4px;
  }
  .category-filter-list[data-category-tree-ssr] .category-tree-children {
    margin-left: 12px;
    padding-left: 7px;
  }
}
@media (max-width: 820px) {
  .product-category-page .category-filter-list[data-category-tree-ssr] {
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }
  .category-filter-list[data-category-tree-ssr] .category-tree-row {
    min-height: 44px;
  }
  .category-filter-list[data-category-tree-ssr] .category-tree-row > .category-tree-link {
    min-height: 38px;
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .category-filter-list[data-category-tree-ssr] .category-tree-row,
  .category-filter-list[data-category-tree-ssr] .category-tree-toggle svg {
    transition: none;
  }
}

/*
 * Tree visual polish v4.
 * Scoped to the existing sidebar; no product-grid or layout-column rules.
 */
.category-filter-list[data-category-tree-ssr] {
  margin-top: 12px;
}
.category-filter-list[data-category-tree-ssr] > .category-tree-all-link {
  min-height: 42px;
  margin: 0 0 9px;
  padding: 8px 10px;
  border-bottom: 1px solid #e7eef8;
  border-radius: 7px;
  font-size: 12.8px;
  font-weight: 700;
  gap: 9px;
}
.category-filter-list[data-category-tree-ssr] > .category-tree-all-link .category-tree-icon {
  width: 16px;
  height: 16px;
}
.category-filter-list[data-category-tree-ssr] .category-filter-tree[data-category-tree-root] > .category-filter-node {
  margin: 0;
}
.category-filter-list[data-category-tree-ssr] .category-filter-tree[data-category-tree-root] > .category-filter-node + .category-filter-node {
  border-top: 1px solid #eff3fa;
}
.category-filter-list[data-category-tree-ssr] .category-tree-row {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) 28px 25px;
  column-gap: 6px;
  min-height: 44px;
  margin: 2px 0;
  padding: 4px 5px;
  border-radius: 8px;
}
.category-filter-list[data-category-tree-ssr] .category-tree-icon {
  width: 16px;
  height: 16px;
  color: #6c829e;
}
.category-filter-list[data-category-tree-ssr] .category-tree-row > .category-tree-link {
  display: block;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 5px 0;
  color: inherit;
  background: transparent;
  border-radius: 0;
  font-size: 12.8px;
  font-weight: 680;
  line-height: 1.32;
  overflow-wrap: break-word;
  text-decoration: none;
  box-shadow: none;
}
.category-filter-list[data-category-tree-ssr] .category-tree-row > .category-tree-link:hover,
.category-filter-list[data-category-tree-ssr] .category-tree-row > .category-tree-link:focus-visible {
  text-decoration: none;
  background: transparent;
  color: inherit;
  box-shadow: none;
}
.category-filter-list[data-category-tree-ssr] .category-tree-count {
  justify-self: center;
  min-width: 25px;
  width: auto;
  max-width: 28px;
  height: 22px;
  padding: 0 4px;
  background: #e8f0fc;
  color: #42668f;
  font-size: 11px;
  font-weight: 750;
}
.category-filter-list[data-category-tree-ssr] .category-tree-count.is-empty {
  background: #f2f5f9;
  color: #99a9ba;
}
.category-filter-list[data-category-tree-ssr] .category-tree-toggle {
  display: none;
  justify-self: end;
  width: 25px;
  min-width: 25px;
  height: 30px;
}
.category-filter-list[data-category-tree-ssr].category-tree-enhanced .category-tree-toggle {
  display: flex;
}
.category-filter-list[data-category-tree-ssr] .category-tree-toggle-spacer {
  display: block;
  width: 25px;
  height: 1px;
}
.category-filter-list[data-category-tree-ssr] .category-tree-toggle svg {
  width: 18px;
  height: 18px;
}
.category-filter-list[data-category-tree-ssr] .category-tree-branch-marker {
  display: block;
  justify-self: center;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #b9cce5;
}
.category-filter-list[data-category-tree-ssr] .category-tree-children {
  margin: 1px 0 7px 14px;
  padding-left: 7px;
  border-left: 1px solid #d2e1f2;
}
.category-filter-list[data-category-tree-ssr] .category-tree-children > .category-filter-tree > .category-filter-node::before {
  top: 22px;
  left: -8px;
  width: 7px;
  background: #d2e1f2;
}
.category-filter-list[data-category-tree-ssr] .category-tree-children .category-tree-row {
  min-height: 39px;
  padding: 3px 4px;
  column-gap: 5px;
}
.category-filter-list[data-category-tree-ssr] .category-tree-children .category-tree-row > .category-tree-link {
  font-size: 12px;
  font-weight: 575;
  line-height: 1.35;
}
.category-filter-list[data-category-tree-ssr] .category-tree-row.is-ancestor {
  background: #eaf2ff;
  color: #155bb0;
}
.category-filter-list[data-category-tree-ssr] .category-tree-row.is-active {
  background: #075bd2;
  color: #fff;
}
.category-filter-list[data-category-tree-ssr] .category-tree-row.is-active .category-tree-branch-marker {
  background: #fff;
}
.category-filter-list[data-category-tree-ssr] .category-tree-row.is-active .category-tree-count,
.category-filter-list[data-category-tree-ssr] .category-tree-row.is-active .category-tree-count.is-empty {
  color: #fff;
  background: rgb(255 255 255 / 20%);
}
.product-category-page .category-filter-panel .category-filter-panel-head {
  padding: 2px 2px 3px;
}
.product-category-page .category-filter-panel .filter-block {
  border-top-color: #e6edf8;
}
@media (min-width: 821px) and (max-width: 1200px) {
  .category-filter-list[data-category-tree-ssr] .category-tree-row {
    grid-template-columns: 15px minmax(0, 1fr) 27px 23px;
    column-gap: 4px;
  }
  .category-filter-list[data-category-tree-ssr] .category-tree-children {
    margin-left: 11px;
    padding-left: 6px;
  }
}
@media (max-width: 820px) {
  .category-filter-list[data-category-tree-ssr] .category-tree-row {
    grid-template-columns: 18px minmax(0, 1fr) 30px 30px;
    column-gap: 8px;
    min-height: 46px;
  }
  .category-filter-list[data-category-tree-ssr] .category-tree-toggle,
  .category-filter-list[data-category-tree-ssr] .category-tree-toggle-spacer {
    width: 30px;
    min-width: 30px;
  }
}
