/* Let full category names determine the desktop rail width. */
.product-category-layout{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:32px;align-items:start}
.product-category-results{min-width:0}
.category-sidebar{width:max-content;min-width:360px;max-width:min(480px,42vw);position:sticky;top:calc(var(--site-header-height,134px) + var(--site-admin-height,0px) + 24px)}
.category-sidebar__panel{border:0;border-top:2px solid var(--accent);border-radius:0;background:var(--mist);padding:24px 12px 14px}
.category-sidebar__heading{font-size:22px;line-height:1.3;margin:0 0 18px;padding-inline:12px}
.category-sidebar__toggle{display:none}
.category-sidebar__list,.category-sidebar__children{list-style:none;margin:0;padding:0}
.category-sidebar__list>li+li{margin-top:18px}
.category-sidebar__root{color:var(--ink);font-weight:700;font-size:16px;line-height:1.5;padding:10px 12px 14px;border-bottom:1px solid var(--line)}
.category-sidebar__children{margin-top:10px}
.category-sidebar__children li+li{margin-top:3px}
.category-sidebar__children a{font-size:15px;line-height:1.55;color:var(--ink);min-height:48px;padding:11px 10px 11px 12px;border-left:3px solid transparent;border-radius:0 3px 3px 0}
.category-sidebar .category-sidebar__root,.category-sidebar .category-sidebar__children a{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px}
.category-sidebar__name{min-width:0;white-space:normal;word-break:normal;overflow-wrap:normal}
.category-sidebar__count{font-size:13px;font-weight:700;line-height:1.5;padding:2px 7px;min-width:27px;text-align:center;white-space:nowrap;color:var(--muted);background:#fff;border-radius:3px;font-variant-numeric:tabular-nums}
.category-sidebar a:hover{background:#e8edf5;color:var(--accent);text-decoration:none}
.category-sidebar a[aria-current="page"]{background:#ecf0ff;color:var(--accent);border-left-color:var(--accent);font-weight:700}
.category-sidebar a[aria-current="page"] .category-sidebar__count{background:var(--accent);color:white}
.category-sidebar a:focus-visible,.category-sidebar__toggle:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.product-category-results .section-heading--split{flex-wrap:wrap;gap:16px 24px;margin-bottom:28px}
.product-category-results .section-heading--split h2{margin:0}
.product-category-results .section-heading--split .search-form{flex:1 1 290px;margin:0}
.product-category-results .purchase-tip{flex-wrap:wrap;gap:20px}
@media(max-width:1400px) and (min-width:1201px){
 .product-category-layout{gap:28px}
 .product-category-results .section-heading--split{display:block}
 .product-category-results .section-heading--split .search-form{margin-top:20px;max-width:none}
 .product-category-results .product-card{grid-template-columns:190px minmax(0,1fr);gap:24px}
}
/* Collapse before a wide category rail would squeeze product information. */
@media(max-width:1200px){
 .product-category-layout{grid-template-columns:minmax(0,1fr);gap:30px}
 .category-sidebar{position:static;width:100%;min-width:0;max-width:none}
 .category-sidebar__panel{padding:20px 16px}
 .category-sidebar.is-enhanced .category-sidebar__heading{display:none}
 .category-sidebar.is-enhanced .category-sidebar__toggle{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;min-height:44px;padding:0;border:0;background:transparent;color:var(--ink);font-family:inherit;font-size:19px;font-weight:700;line-height:1.4;text-align:left;cursor:pointer}
 .category-sidebar__toggle svg{width:20px;height:20px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.8}
 .category-sidebar__toggle[aria-expanded="true"] svg{transform:rotate(180deg)}
 .category-sidebar.is-enhanced .category-sidebar__nav:not([hidden]){padding-top:14px}
}
@media(max-width:520px){
 .product-category-layout{gap:26px}
 .category-sidebar__panel{padding:14px 10px}
 .category-sidebar__children a{font-size:15px;padding:12px 8px;border-left-width:3px}
 .category-sidebar__root{padding-inline:8px}
 .category-sidebar__name{overflow-wrap:anywhere}
 .category-sidebar__count{padding-inline:5px;min-width:25px}
 .category-sidebar .category-sidebar__root,.category-sidebar .category-sidebar__children a{align-items:start;gap:8px}
}
