/* Left category navigation inspired by interprojekt.pl, scoped to the 4hifi catalog. */
:is(#hifi-home,#hifi-content) .hifi-sidebar-layout { display:grid; grid-template-columns:230px minmax(0,1fr); gap:30px; align-items:start; }
:is(#hifi-home,#hifi-content) .hifi-sidebar-main { min-width:0; isolation:isolate; }
:is(#hifi-home,#hifi-content) .hifi-sidebar { position:relative; z-index:3; margin-top:25px; background:#fff; color:#252525; padding:16px 14px 20px; font-size:14px; line-height:1.45; border-radius:4px; }
:is(#hifi-home,#hifi-content) .hifi-sidebar-title { font-size:16px; font-weight:600; line-height:1.4; margin:0 0 12px; padding:0 0 12px; border-bottom:2px solid #dc0935; }
:is(#hifi-home,#hifi-content) .hifi-sidebar ul { margin:0; padding:0; list-style:none; }
:is(#hifi-home,#hifi-content) .hifi-sidebar li { margin:0; padding:0; list-style:none; }
:is(#hifi-home,#hifi-content) .hifi-sidebar li::before { content:none; }
:is(#hifi-home,#hifi-content) .hifi-category-row { display:flex; align-items:center; min-height:41px; border-bottom:1px solid #ededed; }
:is(#hifi-home,#hifi-content) .hifi-category-row a { display:block; flex:1; min-width:0; padding:10px 0; color:#252525; font-size:14px; line-height:1.4; font-weight:400; text-decoration:none; overflow-wrap:anywhere; }
:is(#hifi-home,#hifi-content) .hifi-category-row a:hover,
:is(#hifi-home,#hifi-content) .hifi-category-row a[aria-current="page"],
:is(#hifi-home,#hifi-content) .is-open > .hifi-category-row > a { color:#cf0731; }
:is(#hifi-home,#hifi-content) .hifi-category-row a[aria-current="page"] { font-weight:600; }
:is(#hifi-home,#hifi-content) .hifi-sidebar .hifi-category-toggle { position:relative; flex:0 0 34px; width:34px; height:40px; min-height:0; min-width:0; margin:0; padding:0; background:none; border:0; box-shadow:none; border-radius:0; cursor:pointer; color:#333; }
:is(#hifi-home,#hifi-content) .hifi-category-toggle span::before,
:is(#hifi-home,#hifi-content) .hifi-category-toggle span::after { content:""; position:absolute; width:12px; height:1px; background:currentColor; left:11px; top:19px; }
:is(#hifi-home,#hifi-content) .hifi-category-toggle span::after { transform:rotate(90deg); }
:is(#hifi-home,#hifi-content) .hifi-category-toggle[aria-expanded="true"] { color:#cf0731; }
:is(#hifi-home,#hifi-content) .hifi-category-toggle[aria-expanded="true"] span::after { display:none; }
:is(#hifi-home,#hifi-content) .hifi-sidebar .hifi-category-children { padding-left:14px; }
:is(#hifi-home,#hifi-content) .hifi-category-children .hifi-category-row a { font-size:13px; }
:is(#hifi-home,#hifi-content) .hifi-sidebar [hidden] { display:none!important; }
:is(#hifi-home,#hifi-content) .hifi-sidebar a:focus-visible,
:is(#hifi-home,#hifi-content) .hifi-sidebar button:focus-visible { outline:2px solid #dc0935; outline-offset:2px; }
@media(min-width:1001px) {
 body#html-body:has(.hifi-sidebar-layout) { overflow-x:clip; overflow-y:visible; }
 #hifi-home #root:has(.hifi-sidebar-layout) { overflow:clip; }
 #hifi-content .hifi-sidebar-main .product-page > div { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.15fr); gap:20px; padding-right:0; }
 #hifi-content .hifi-sidebar-main .product-page > div::after { content:none; }
 #hifi-content .hifi-sidebar-main .product-page > div > *,
 #hifi-content .hifi-sidebar-main .product-page > div > :nth-child(2) { float:none; width:auto; min-width:0; margin-right:0; padding-right:0; }
 #hifi-content .hifi-sidebar-main .module-gallery .main-pic figure { height:auto; aspect-ratio:1; }
 #hifi-content .hifi-sidebar-main .module-gallery .main-pic figure a { width:100%; }
 #hifi-content .hifi-sidebar-main .module-gallery .main-pic figure img { height:auto; aspect-ratio:1; }
 #hifi-content .hifi-sidebar-main .module-add { flex-wrap:wrap; gap:12px; }
 #hifi-home .hifi-sidebar-main .hifi-home-products { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); margin-left:0; }
 #hifi-home .hifi-sidebar-main .hifi-home-products .product-a { width:auto; margin:0; padding-inline:18px; }
 #hifi-content .hifi-sidebar-main .hifi-product-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
 #hifi-home .hifi-sidebar-main .module-e > div[style*="209px"] { width:100%; grid-template-columns:1.2fr repeat(6,1fr)!important; height:auto!important; }
 #hifi-home .hifi-sidebar-main .module-e > div[style*="height:85px"] { height:auto!important; }
}
@media(min-width:1001px) and (max-width:1300px) {
 :is(#hifi-home,#hifi-content) .hifi-sidebar-layout { grid-template-columns:200px minmax(0,1fr); gap:24px; }
 :is(#hifi-home,#hifi-content) .hifi-sidebar { padding-inline:10px; }
}
@media(max-width:1000px) {
 :is(#hifi-home,#hifi-content) .hifi-sidebar-layout { display:block; }
 :is(#hifi-home,#hifi-content) .hifi-sidebar { display:none; }
}

/* A disabled menu does not reserve an empty grid column, including the CMS home page. */
:is(#hifi-home,#hifi-content) .hifi-sidebar-layout:not(:has(> .hifi-sidebar)) { grid-template-columns:minmax(0,1fr); }
