.category-tree { border-bottom: 1px solid #e5e8eb; }
.category-tree__heading { position: sticky; top: 0; z-index: 1; padding: 15px 14px 11px; background: #fff; color: #171b20; font-size: 15px; font-weight: 800; }
.category-tree { max-height: min(55vh, 520px); overflow-y: auto; scrollbar-width: thin; }
.category-tree__group { border-top: 1px solid #f0f1f2; }
.category-tree__parent { display: flex; min-height: 38px; align-items: center; }
.category-tree__parent a { min-width: 0; flex: 1; padding: 9px 0 9px 14px; color: #46515d; font-size: 11.5px; font-weight: 650; line-height: 1.3; }
.category-tree__parent button { width: 36px; align-self: stretch; border: 0; background: transparent; color: #8a939e; font-size: 19px; cursor: pointer; transition: transform .25s ease; }
.category-tree__parent button[aria-expanded="true"] { transform: rotate(180deg); }
.category-tree__group.is-current > .category-tree__parent { background: #fff4e4; }
.category-tree__group.is-current > .category-tree__parent a { color: #a2620b; font-weight: 800; }
.category-tree__parent:hover { background: #f7f8f9; }
.category-tree__children { display: grid; max-height: 0; padding: 0 0 0 11px; overflow: hidden; opacity: 0; background: #fafbfc; transition: max-height .32s cubic-bezier(.2,.7,.2,1), padding .32s ease, opacity .2s ease; }
.category-tree__children.is-expanded { max-height: 760px; padding-top: 3px; padding-bottom: 8px; opacity: 1; }
.category-tree__children a { display: flex; min-height: 32px; align-items: center; justify-content: space-between; gap: 5px; padding: 6px 10px; border-left: 2px solid #e5e9ed; color: #626c78; font-size: 10.5px; line-height: 1.25; }
.category-tree__children a:hover, .category-tree__children a.is-selected { border-left-color: #e4941b; color: #a2620b; background: #fff3e2; }
.category-tree__children a span { color: #a3abb3; }
.category-tree__mobile-trigger, .category-tree__drawer { display: none; }
@media (max-width: 700px) {
  .category-tree__mobile-trigger { display: flex; width: 100%; min-height: 48px; align-items: center; gap: 11px; margin: 0 0 12px; padding: 0 14px; border: 1px solid #dfe3e7; border-radius: 8px; background: #fff; color: #171b20; text-align: left; cursor: pointer; }
  .category-tree__mobile-trigger strong { flex: 1; font-size: 14px; }
  .category-tree__mobile-trigger span:last-child { font-size: 24px; }
  .category-tree__drawer { display: block; position: fixed; inset: 0; z-index: 230; background: rgba(12,15,19,.48); opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s; }
  .category-tree__drawer.is-open { opacity: 1; visibility: visible; }
  .category-tree__drawer-panel { width: min(86vw, 340px); height: 100%; overflow-y: auto; background: #fff; box-shadow: 12px 0 32px rgba(0,0,0,.15); transform: translateX(-100%); transition: transform .2s ease; }
  .category-tree__drawer.is-open .category-tree__drawer-panel { transform: none; }
  .category-tree__drawer-head { display: flex; min-height: 54px; align-items: center; gap: 8px; padding: 0 11px; background: #171b20; color: #fff; }
  .category-tree__drawer-head strong { min-width: 0; flex: 1; font-size: 14px; }
  .category-tree__drawer-head button { width: 32px; height: 32px; border: 0; background: transparent; color: #fff; font-size: 22px; cursor: pointer; }
  .category-tree__drawer-head button[hidden] { visibility: hidden; }
  .category-tree__drawer-list > a, .category-tree__mobile-parent { display: flex; min-height: 47px; align-items: center; border-bottom: 1px solid #edf0f2; }
  .category-tree__drawer-list > a { justify-content: space-between; padding: 10px 16px; color: #333b44; font-size: 13px; }
  .category-tree__drawer-list > a.is-selected { color: #a2620b; font-weight: 800; }
  .category-tree__mobile-parent a { min-width: 0; flex: 1; padding: 12px 16px; color: #333b44; font-size: 13px; }
  .category-tree__mobile-parent button { width: 48px; align-self: stretch; border: 0; background: transparent; color: #596571; font-size: 23px; cursor: pointer; }
  body.category-tree-open { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) { .category-tree__drawer, .category-tree__drawer-panel, .category-tree__children, .category-tree__parent button { transition: none; } }
