/* ElectroMarket v0.8.2 — consistent catalog tree, full-width results and live result area */
:root{--v9-border:#d2dce6;--v9-active:#82bce9;--v9-light:#f3f5f7;--v9-filter:#e9edf1}
html{height:100%}body:not(.v5-auth-page){min-height:100vh;display:flex;flex-direction:column}body:not(.v5-auth-page)>main{flex:1 0 auto}body:not(.v5-auth-page)>footer{margin-top:auto}
/* All regular pages remain centered. Only the engineering component list spans the window. */
body.page-catalog main.shell{width:calc(100% - 28px)!important;max-width:none!important;margin-left:14px!important;margin-right:14px!important}
@media (max-width:720px){body.page-catalog main.shell{width:calc(100% - 16px)!important;margin-left:8px!important;margin-right:8px!important}}
/* Core catalog: one connected list of individually outlined branches */
.page-categories .v8-category-controls{justify-content:flex-start!important;margin:15px 0 12px}
.v7-category-tree{display:flex;flex-direction:column;gap:0!important;border:1px solid var(--v9-border)!important;border-radius:10px;overflow:hidden!important;background:#fff}
.v7-category-tree>.v7-category-node,.v7-category-tree>.v7-category-leaf{border:0!important;border-radius:0!important;margin:0!important;box-shadow:none!important}
.v7-category-tree>.v7-category-node + .v7-category-node,.v7-category-tree>.v7-category-node + .v7-category-leaf,.v7-category-tree>.v7-category-leaf + .v7-category-node{border-top:1px solid var(--v9-border)!important}
.v7-category-node{border:1px solid var(--v9-border)!important;border-radius:8px;background:white;overflow:hidden;box-shadow:none;}
.v7-category-node[open]{border-color:var(--v9-active)!important;box-shadow:inset 0 0 0 1px #d4e8fb!important;background:#fdfefe}
.v7-category-node>summary,.v7-category-leaf{display:flex;align-items:center;gap:14px;min-height:54px!important;padding:9px 15px!important;cursor:pointer;color:#19416b}
.v7-category-node>summary:hover,.v7-category-leaf:hover{background:#f0f6fd;text-decoration:none}
.v7-category-tree>.v7-category-node>summary{min-height:64px!important;font-size:15px}
.v7-category-tree>.v7-category-node>summary .v7-category-name{font-size:15px!important;font-weight:760!important}
.v7-category-node img,.v7-category-leaf img{width:32px!important;height:32px!important;min-width:32px!important;object-fit:contain;background:#f1f6fb;border:1px solid #dfebf5;border-radius:7px;padding:3px}
.v7-category-node .v7-category-children{margin:0!important;padding:7px 11px 8px 28px!important;border-top:1px solid #d9e8f5;background:#fbfcfd}
.v7-category-node .v7-category-children>.v7-category-node,.v7-category-node .v7-category-children>.v7-category-leaf{margin:5px 0!important;border:1px solid var(--v9-border)!important;border-radius:8px!important}
.v7-category-node .v7-cat-chevron,.v7-category-leaf .v7-cat-chevron{display:inline-flex!important;align-items:center!important;justify-content:center!important;line-height:1!important;font-size:18px!important;min-width:20px!important;height:22px!important;color:#8296a9!important;margin-left:auto}
.v7-category-node>summary .v7-cat-chevron{transform:none!important}
.v7-category-node[open]>summary .v7-cat-chevron{transform:rotate(180deg)!important}
.v9-all-products{background:#f6faff!important;color:#2071b9!important;font-weight:650;margin:6px 0 9px!important}
.v9-all-products-icon{width:32px;height:32px;flex:0 0 32px;border-radius:7px;background:#e1effc;color:#127ac6;display:inline-flex;align-items:center;justify-content:center}
/* Main-page catalog uses the SAME unlimited-depth tree with a single aligned accordion */
.home-root-list{display:flex;flex-direction:column;gap:0!important;border:1px solid #d0dce8;border-radius:11px;background:#fff;overflow:hidden}
.home-root-list>.home-root-group{margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important}
.home-root-list>.home-root-group+.home-root-group{border-top:1px solid #d0dce8!important}
.home-root-group>summary,.home-root-group>.home-root-static-summary{min-height:72px!important;grid-template-columns:44px minmax(0,1fr) 100px 142px 20px!important;column-gap:16px!important;padding:12px 20px!important}
.home-root-group .home-root-count{margin:0!important;grid-column:3!important;justify-self:end!important;white-space:nowrap}
.home-root-group .home-root-link-btn{margin:0!important;grid-column:4!important;width:142px!important}
.home-root-group .home-root-expand{grid-column:5!important;display:inline-flex;align-items:center;justify-content:center;width:20px;height:28px}
.home-root-group .home-subgroups{padding:10px 12px 10px 48px!important;background:#fafcfe;border-top:1px solid #dce7f1;display:flex;flex-direction:column;gap:5px}
.home-root-group .home-subgroups .v7-category-node,.home-root-group .home-subgroups .v7-category-leaf{margin:0!important}
.home-root-group .home-subgroups .v7-category-node + .v7-category-node,.home-root-group .home-subgroups .v7-category-node + .v7-category-leaf{margin-top:5px!important}
.home-root-group .home-subgroups .v7-category-node>summary,.home-root-group .home-subgroups .v7-category-leaf{min-height:48px!important}
.home-root-group .home-subgroups .v7-category-node img,.home-root-group .home-subgroups .v7-category-leaf img{width:29px!important;height:29px!important;min-width:29px!important}
.home-root-group .home-subgroups .v7-category-children{padding-left:26px!important}
.home-root-group .home-subgroups .v7-category-children>.v7-category-node,.home-root-group .home-subgroups .v7-category-children>.v7-category-leaf{border-radius:7px}
/* Filter section — pale gray overall, slightly more saturated fully outlined cards */
.page-catalog .v4-filters{background:var(--v9-light)!important;border:1px solid #cbd8e3!important;border-radius:10px!important;overflow:hidden}
.page-catalog .v5-category-narrow,.page-catalog .v6-filter-toolbar{background:#f0f3f6!important}
.page-catalog .tech-filter-scroller{background:#e5ebf0!important;border-top:1px solid #cfdbe5;border-bottom:1px solid #cfdbe5}
.page-catalog .tech-filter-cards{background:#e5ebf0!important;gap:0!important;padding:8px!important}
.page-catalog .tech-filter-card,.page-catalog .tech-filter-card:nth-child(2n){background:#e9edf1!important;border:1px solid #c6d0da!important;border-radius:0!important;margin:0!important;box-shadow:none!important;padding:13px!important;min-height:220px}
.page-catalog .tech-filter-card:not(:first-child){border-left:1px solid #c6d0da!important}
.page-catalog .tech-filter-card .tech-filter-label{color:#142f48;font-weight:750}
.page-catalog .v4-filter-bottom{background:#f0f3f6!important;border-top:1px solid #cbd8e3}
.page-catalog .tech-filter-options label:hover{background:#dae6f2}
.page-catalog .tech-filter-card input[type=search],.page-catalog .tech-filter-card input[type=number]{background:#fff!important}
/* Results-only fetch state */
#catalogResults[aria-busy="true"]{opacity:.62;pointer-events:none;transition:opacity .12s}
.v9-ajax-error{border:1px solid #e9abb1;background:#fff3f3;color:#a52837;border-radius:8px;padding:11px 14px;margin:12px 0;font-size:13px}
/* Responsive branch and filter sizing */
@media(max-width:760px){
 .home-root-group>summary,.home-root-group>.home-root-static-summary{grid-template-columns:38px minmax(0,1fr) 16px!important;grid-template-areas:'art title arrow' 'art count button'!important;row-gap:6px!important;padding:12px!important}
 .home-root-group .home-root-icon{grid-area:art}.home-root-group .home-root-meta{grid-area:title}.home-root-group .home-root-count{grid-column:auto!important;grid-area:count;justify-self:start!important}
 .home-root-group .home-root-expand{grid-column:auto!important;grid-area:arrow}.home-root-group .home-root-link-btn{grid-column:auto!important;grid-area:button;justify-self:end!important;width:auto!important;padding:7px 10px!important}
 .home-root-group .home-subgroups{padding-left:17px!important;padding-right:8px!important}
 .v7-category-node .v7-category-children{padding-left:14px!important}
}
