/* One category meaning on desktop and mobile. Product-card styles stay separate. */
.kg-category-path { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin:0 0 10px; color:#727881; font-size:12px; line-height:1.5; }
.kg-category-path[hidden] { display:none; }
.kg-category-path a { display:inline-flex; align-items:center; min-height:36px; color:#333a42; text-decoration:underline; text-underline-offset:3px; }
.kg-category-path [aria-current] { font-weight:600; color:#333a42; }
html body #kgCategoryTree .kg-tree-level { display:grid; gap:7px; }
html body #kgCategoryTree .kg-tree-node { margin:0; min-width:0; }
html body #kgCategoryTree .kg-category-row { display:flex; align-items:stretch; gap:5px; min-width:0; }
html body #kgCategoryTree .kg-tree-toggle { display:flex; flex:1 1 auto; align-items:center; justify-content:space-between; gap:7px; min-width:0; width:100%!important; margin:0!important; min-height:48px; padding:11px!important; border:1px solid #d9dde2!important; border-radius:4px!important; background:#fff!important; color:#242a30!important; font-weight:500; box-shadow:none!important; }
html body #kgCategoryTree .kg-tree-toggle:hover { border-color:#e30613!important; background:#fff6f7!important; }
html body #kgCategoryTree .kg-tree-toggle .kg-tree-main { display:flex; align-items:center; min-width:0; gap:9px; }
html body #kgCategoryTree .kg-tree-label { display:block; font-size:13px; line-height:1.45; overflow-wrap:anywhere; white-space:normal!important; overflow:visible!important; text-overflow:clip!important; }
html body #kgCategoryTree .kg-tree-label small { display:block; margin-top:3px; font-size:10px; color:#747b84!important; font-weight:400; }
html body #kgCategoryTree .kg-category-choice-mark { display:inline-flex; justify-content:center; align-items:center; flex:0 0 19px; width:19px; height:19px; border:1px solid #b8c0c8; border-radius:50%; background:#fff; font-size:11px; line-height:1; }
html body #kgCategoryTree .kg-category-selected { flex-shrink:0; font-size:10px; font-weight:700; color:#a90611!important; }
html body #kgCategoryTree .kg-tree-toggle[aria-pressed="true"] { border:2px solid #e30613!important; padding:10px!important; color:#242a30!important; background:#fff0f2!important; }
html body #kgCategoryTree .kg-tree-toggle[aria-pressed="true"] * { color:inherit!important; }
html body #kgCategoryTree .kg-tree-toggle[aria-pressed="true"] .kg-category-choice-mark { border-color:#e30613; background:#e30613; color:#fff!important; }
html body #kgCategoryTree .kg-category-row .kg-tree-toggle { flex-wrap:wrap; }
html body #kgCategoryTree .kg-category-row .kg-tree-main { flex:1 1 100%; }
html body #kgCategoryTree .kg-category-row .kg-category-selected { margin-left:28px; }
html body #kgCategoryTree .kg-category-expand { flex:0 0 40px; width:40px; padding:0; border:1px solid #d9dde2; border-radius:4px; color:#242a30; background:#f7f8f9; }
html body #kgCategoryTree .kg-category-expand:hover { color:#e30613; border-color:#e30613; }
html body #kgCategoryTree .kg-tree-children { padding:7px 0 0 11px; border-left:1px solid #e6e8eb; margin-left:7px; }
html body #kgCategoryTree .kg-tree-children[hidden] { display:none!important; }
html body #kgCategoryTree .kg-tree-brand-wrap { margin-top:16px; }
html body #kgCategoryTree button:focus-visible { outline:3px solid #20242a!important; outline-offset:2px; }
html body #kgCategoryTree .kg-category-options { display:grid; gap:8px; }
html body #kgCategoryTree #kgCategoryLevelTitle { margin:12px 0; color:#242a30; font-size:18px; line-height:1.4; font-weight:700; }
html body #kgCategoryTree .kg-category-back { display:flex; align-items:center; gap:9px; width:100%; min-height:44px; padding:8px 0; border:0; background:transparent; color:#454d56; text-align:left; font-size:12px; font-weight:600; }
html body #kgCategoryTree .kg-category-all { margin-bottom:14px!important; border-color:#e30613!important; background:#fff6f7!important; }
html body #kgCategoryTree .kg-category-all .kg-tree-label { font-weight:700; }
html body #kgCategoryTree .kg-category-branch { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; min-height:62px; padding:12px; background:#fff; color:#242a30; border:1px solid #d9dde2; border-radius:4px; text-align:left; font-size:14px; font-weight:600; }
html body #kgCategoryTree .kg-category-branch small { display:block; margin-top:4px; color:#747b84; font-size:11px; font-weight:400; }
html body #kgCategoryTree .kg-category-branch > span:last-child { font-size:26px; color:#747b84; }
html body #kgCategoryTree .kg-category-branch:hover,html body #kgCategoryTree .kg-category-branch.is-current-branch { border-color:#e30613; background:#fff6f7; }
@media (max-width:991.98px) {
  html body #kgFilterDialog #kgCategoryTree .kg-tree-toggle { min-height:52px; }
  html body #kgFilterDialog #kgCategoryTree .kg-tree-label { font-size:14px; }
  html body #kgFilterDialog #kgCategoryTree .kg-tree-label small { font-size:12px; }
  html body #kgFilterDialog #kgCategoryTree .kg-category-all { min-height:70px; }
  .kg-category-path a { min-height:44px; }
}
@media (prefers-reduced-motion:reduce) {
  html body #kgCategoryTree button { transition:none!important; }
}
/* The mobile header opens the same category browser, not a second dropdown. */
#kgHeaderCategoryDialog { box-sizing:border-box; width:min(100%,440px); height:100%; height:100dvh; max-width:100%; max-height:100%; margin:0 0 0 auto; padding:0; border:0; color:#242a30; background:#fff; }
#kgHeaderCategoryDialog::backdrop { background:#14191f80; }
#kgHeaderCategoryDialog[open] { display:flex; flex-direction:column; }
.kg-header-category-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding:20px; border-bottom:1px solid #e4e6e9; flex-shrink:0; }
.kg-header-category-heading h2 { margin:0 0 4px; font-size:20px; font-weight:700; }
.kg-header-category-heading p { margin:0; font-size:13px; color:#727881; }
.kg-header-category-heading button { flex:0 0 44px; width:44px; height:44px; border:0; border-radius:4px; background:#f4f5f7; color:#242a30; font-size:28px; line-height:1; }
.kg-header-category-body { min-height:0; padding:8px 20px 24px; overflow-y:auto; overscroll-behavior:contain; }
html.kg-header-categories-open body { position:fixed!important; top:var(--kg-category-scroll,0)!important; left:0; right:0; overflow:hidden!important; }
@media(max-width:991.98px) { html.kg-unified-categories-ready #navbar-vertical { display:none!important; } }
