/* Native archives follow the existing header state; it owns no scroll direction. */
.hbs-archive-page{
    --hbs-catalogue-header-fallback:93px;
    --hbs-catalogue-toolbar-fallback:0px;
    --hbs-catalogue-gap:24px;
    --hbs-catalogue-visible-header:var(--hbs-catalogue-header-height,var(--hbs-catalogue-header-fallback));
}
.admin-bar .hbs-archive-page{--hbs-catalogue-toolbar-fallback:32px}
.hbs-archive-page .hbs-category-rail{
    --hbs-catalogue-rail-top:calc(var(--hbs-catalogue-visible-header) + var(--hbs-adminbar-offset,var(--hbs-catalogue-toolbar-fallback)) + var(--hbs-catalogue-gap));
    top:var(--hbs-catalogue-rail-top);
}
.hbs-navigation-ready .hbs-archive-page .hbs-category-rail{transition:top .34s var(--hbs-ease)}
.hbs-nav-away .hbs-archive-page{--hbs-catalogue-visible-header:0px}
.hbs-nav-keyboard-recovery .hbs-archive-page .hbs-category-rail{transition:none!important}
@media(max-width:1020px){.hbs-archive-page{--hbs-catalogue-header-fallback:85px}}
@media(max-width:782px){.admin-bar .hbs-archive-page{--hbs-catalogue-toolbar-fallback:46px}}
@media(max-width:760px){.hbs-archive-page{--hbs-catalogue-header-fallback:113px;--hbs-catalogue-gap:20px}}
/* Retain the approved horizontal category list in its natural document flow. */
@media(max-width:360px){.hbs-archive-page .hbs-category-rail{position:static;top:auto;transition:none}}
@media(prefers-reduced-motion:reduce){.hbs-archive-page .hbs-category-rail{transition:none!important}}


/* Native Woo retains the result count, ordering, product loop and pagination. */
.hbs-archive-page .hbs-archive-results ul.products{grid-template-columns:repeat(3,minmax(0,1fr));gap:32px 20px}
.hbs-archive-page .hbs-archive-results h1.page-title{font-size:clamp(38px,5vw,78px);margin-bottom:23px}
.hbs-archive-results .woocommerce-pagination{clear:both}
/* A parent is one row: the name navigates and native summary toggles children. */
.hbs-category-tree-group{min-width:0;margin:0 0 4px}
.hbs-category-tree-group>summary{display:grid;grid-template-columns:minmax(0,1fr) 44px;align-items:center;min-height:53px;list-style:none;cursor:pointer}
.hbs-category-tree-group>summary::-webkit-details-marker{display:none}
.hbs-category-tree-group>summary>.hbs-category-tree-link{display:flex;align-items:center;gap:11px;min-height:53px;min-width:0;padding:14px 6px 14px 10px;border:1px solid transparent}
.hbs-category-tree-group>summary>.hbs-category-tree-link>span{color:var(--hbs-red);line-height:1}
.hbs-category-tree-toggle{display:grid;place-items:center;align-self:stretch;color:var(--hbs-red);width:44px;min-width:44px;min-height:44px}
.hbs-category-tree-toggle svg{transition:transform .25s var(--hbs-ease)}
.hbs-category-tree-group[open]>summary>.hbs-category-tree-toggle svg{transform:rotate(90deg)}
.hbs-category-tree-group>summary:hover,.hbs-category-tree-link.is-active-branch:not([aria-current=page]){background:var(--hbs-paper)}
.hbs-category-tree-group>summary>.hbs-category-tree-link[aria-current=page]{background:var(--hbs-ink);color:var(--hbs-cream)}
.hbs-category-tree-group>summary>.hbs-category-tree-link[aria-current=page] small{color:#b8afa2}
.hbs-category-tree-children{min-width:0;margin:0 5px 6px 11px;padding-left:9px;border-left:1px solid #ef42283d}
.hbs-category-tree-children .hbs-category-tree-link{display:flex;align-items:center;gap:8px;min-height:44px;padding:10px 7px;border:1px solid transparent}
.hbs-category-tree-children .hbs-category-tree-link strong{width:auto;max-width:100%;font-size:10px;line-height:1.55;flex:1;overflow-wrap:anywhere}
.hbs-category-tree-children .hbs-category-tree-link small{font-size:8px;color:var(--hbs-muted)}
.hbs-category-tree-children .hbs-category-tree-link:hover{background:var(--hbs-paper)}
.hbs-category-tree-children .hbs-category-tree-link[aria-current=page]{background:var(--hbs-ink);color:var(--hbs-cream)}
.hbs-category-tree-children .hbs-category-tree-link[aria-current=page] small{color:#b8afa2}
@media(min-width:361px){
    .hbs-archive-page .hbs-category-rail{display:flex;flex-direction:column;max-height:calc(100vh - var(--hbs-catalogue-rail-top) - 20px);max-height:calc(100dvh - var(--hbs-catalogue-rail-top) - 20px);min-height:0}
    .hbs-category-rail>.hbs-eyebrow,.hbs-category-rail-help{flex-shrink:0}
    .hbs-archive-page .hbs-category-rail>nav{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;scrollbar-width:thin}
    .hbs-category-rail nav>a,.hbs-category-tree-group{flex-shrink:0}
    .hbs-archive-page .hbs-category-rail-help{padding-block:15px 0}
}
@media(max-width:1020px){.hbs-archive-page .hbs-archive-results ul.products{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Mobile categories occupy the full content width before the product grid. */
@media(max-width:760px){
    .hbs-archive-page .hbs-archive-browser{display:block;min-width:0}
    .hbs-archive-page .hbs-category-rail{position:static;top:auto;display:block;max-height:none;min-width:0;border-right:0;border-bottom:1px solid var(--hbs-line);padding:0 0 20px;margin-bottom:24px;transition:none}
    .hbs-archive-page .hbs-category-rail>.hbs-eyebrow{font-size:8px;margin-bottom:10px}
    .hbs-archive-page .hbs-category-rail>nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;align-items:start;max-width:100%;min-width:0;overflow:visible;padding-bottom:0}
    .hbs-archive-page .hbs-category-rail>nav>a,.hbs-archive-page .hbs-category-rail>nav>.hbs-category-tree-group{width:auto;min-width:0;max-width:100%;margin:0;border:1px solid var(--hbs-line);background:transparent;flex:none}
    .hbs-archive-page .hbs-category-rail>nav>a{flex-direction:row;align-items:center;text-align:left;min-height:54px;padding:10px 12px;gap:8px}
    .hbs-archive-page .hbs-category-rail>nav>a>span svg{width:18px;height:18px}
    .hbs-archive-page .hbs-category-rail>nav>.hbs-category-tree-group[open]{grid-column:1/-1}
    .hbs-archive-page .hbs-category-rail strong{font-size:11px;line-height:1.45;width:auto;min-width:0}
    .hbs-archive-page .hbs-category-rail small{display:inline;font-size:8px}
    .hbs-archive-page .hbs-category-tree-group>summary{grid-template-columns:minmax(0,1fr) 44px;min-height:54px}
    .hbs-archive-page .hbs-category-tree-group>summary>.hbs-category-tree-link{flex-direction:row;align-items:center;text-align:left;min-height:54px;min-width:0;padding:10px 8px;gap:6px}
    .hbs-archive-page .hbs-category-tree-group>summary>.hbs-category-tree-link>span{display:none}
    .hbs-archive-page .hbs-category-tree-toggle{width:44px;min-width:44px;min-height:44px}
    .hbs-archive-page .hbs-category-tree-children{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;overflow:visible;max-width:100%;min-width:0;margin:0;padding:8px;border-left:0}
    .hbs-archive-page .hbs-category-tree-children>.hbs-category-tree-group[open]{grid-column:1/-1}
    .hbs-archive-page .hbs-category-tree-children .hbs-category-tree-link{min-width:0;min-height:44px;padding:10px 8px;gap:6px;border:1px solid var(--hbs-line);flex:none;text-align:left;justify-content:flex-start}
    .hbs-archive-page .hbs-category-tree-children .hbs-category-tree-link strong{font-size:10px;min-width:0;overflow-wrap:anywhere}
    .hbs-archive-page .hbs-category-rail-help{display:none}
    .hbs-archive-page .hbs-archive-results h1.page-title{font-size:clamp(32px,8vw,51px);margin-bottom:19px}
    .hbs-archive-page .hbs-archive-results ul.products{grid-template-columns:repeat(auto-fit,minmax(min(100%,max(116px,calc((100% - 9px)/2))),1fr));gap:23px 9px}
}
/* Selection wins over mobile transparency and every parent/child hover rule. */
.hbs-archive-page .hbs-category-rail a[aria-current=page],
.hbs-archive-page .hbs-category-rail a[aria-current=page]:hover{background:var(--hbs-ink);color:var(--hbs-cream);border-color:var(--hbs-ink)}
@media(prefers-reduced-motion:reduce){.hbs-category-tree-toggle svg{transition:none!important}}

/* Two explicit native accordion groups keep categories and series separate. */
.hbs-catalogue-group{min-width:0;margin-top:8px}
.hbs-catalogue-group>summary{display:grid;grid-template-columns:minmax(0,1fr) 44px;align-items:center;min-height:54px;padding-left:12px;border:1px solid var(--hbs-ink);list-style:none;cursor:pointer;font:800 17px/1 var(--hbs-display);letter-spacing:.025em}
.hbs-catalogue-group>summary::-webkit-details-marker{display:none}
.hbs-catalogue-group[open]>summary{background:var(--hbs-ink);color:var(--hbs-cream)}
.hbs-catalogue-group[open]>summary .hbs-category-tree-toggle svg{transform:rotate(90deg)}
.hbs-catalogue-group.hbs-catalogue-animating{overflow:hidden;overflow-anchor:none}
.hbs-catalogue-group.hbs-catalogue-enhanced>summary{touch-action:manipulation;transition:background-color .25s var(--hbs-ease),color .25s var(--hbs-ease)}
.hbs-catalogue-group.hbs-catalogue-enhanced[data-hbs-disclosure-open="true"]>summary{background:var(--hbs-ink);color:var(--hbs-cream)}
.hbs-catalogue-group.hbs-catalogue-enhanced[data-hbs-disclosure-open="false"]>summary{background:transparent;color:var(--hbs-ink)}
.hbs-catalogue-group.hbs-catalogue-enhanced[data-hbs-disclosure-open="false"]>summary .hbs-category-tree-toggle svg{transform:rotate(0)}
.hbs-catalogue-group-links{display:flex;flex-direction:column;gap:4px;min-width:0;padding-top:6px}
@media(prefers-reduced-motion:reduce){.hbs-catalogue-group.hbs-catalogue-enhanced>summary{transition:none}}
.hbs-catalogue-group-links>.hbs-category-tree-link{display:flex;align-items:center;gap:9px;min-width:0;min-height:48px;padding:12px 9px;border:1px solid transparent}
.hbs-catalogue-group-links>.hbs-category-tree-link>span{color:var(--hbs-red);line-height:1}
.hbs-catalogue-group-links>.hbs-category-tree-link:hover{background:var(--hbs-paper)}
.hbs-archive-page .hbs-catalogue-group-links a[aria-current=page],.hbs-archive-page .hbs-catalogue-group-links a[aria-current=page]:hover{background:var(--hbs-ink);color:var(--hbs-cream);border-color:var(--hbs-ink)}
@media(max-width:760px){
    .hbs-archive-page .hbs-category-rail>nav{display:block;grid-template-columns:none;min-width:0;max-width:100%}
    .hbs-archive-page .hbs-category-rail>nav>.hbs-catalogue-group{min-width:0;max-width:100%}
    .hbs-catalogue-group>summary{min-height:54px;font-size:18px}
    .hbs-archive-page .hbs-catalogue-group-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;max-width:100%;min-width:0}
    .hbs-archive-page .hbs-catalogue-group-links>.hbs-category-tree-group[open]{grid-column:1/-1}
    .hbs-archive-page .hbs-catalogue-group-links>.hbs-category-tree-link{gap:7px;padding:10px 8px;min-height:54px;border:1px solid var(--hbs-line)}
    .hbs-archive-page .hbs-catalogue-group-links>.hbs-category-tree-link>span{display:none}
}
