/* HOTFIX15 - genuinely distinct storefront category sidebar layouts.
   Paint AND typography derive exclusively from current theme variables/inheritance.
   No demo palette, independent fonts, or external dependencies. */
.store-shell:not(.theme-default) .mercuno-category-navigation:is(.mercuno-category-mode-emarket,.mercuno-category-mode-deep-erp){
  --category-panel:var(--mercuno-surface,transparent);
  --category-ink:var(--mercuno-text,inherit);
  --category-muted:var(--mercuno-muted,currentColor);
  --category-line:var(--mercuno-border,currentColor);
  --category-accent:var(--mercuno-accent,var(--mercuno-menu-hover,var(--mercuno-text,currentColor)));
  --category-hover:color-mix(in srgb,var(--category-panel) 92%,var(--category-accent) 8%);
  --category-selected:color-mix(in srgb,var(--category-panel) 83%,var(--category-accent) 17%);
  font:inherit!important;color:var(--category-ink)!important;background:transparent!important;
  border:0!important;box-shadow:none!important;isolation:isolate;min-width:0;
}
.store-shell:not(.theme-default) .mercuno-category-navigation:is(.mercuno-category-mode-emarket,.mercuno-category-mode-deep-erp) :is(.mercuno-category-name,.mercuno-category-all,.mercuno-category-toggle){
  font-family:inherit!important;color:inherit!important;transition:background-color .16s ease,color .16s ease,border-color .16s ease!important;
}
.store-shell:not(.theme-default) .mercuno-category-navigation:is(.mercuno-category-mode-emarket,.mercuno-category-mode-deep-erp) :is(.mercuno-category-name,.mercuno-category-all,.mercuno-category-toggle):focus-visible{
  outline:2px solid var(--category-accent)!important;outline-offset:2px;
}
.store-shell:not(.theme-default) .mercuno-category-navigation:is(.mercuno-category-mode-emarket,.mercuno-category-mode-deep-erp) .mercuno-category-name small{
  font-family:inherit!important;font-size:.78em!important;color:var(--category-muted)!important;
  border-radius:999px!important;background:var(--category-hover)!important;padding:2px 6px!important;
}
/* Sidebar 3: a stack of separate, FULL-WIDTH panel cards. Each category group
   owns its own row and child accordion area; peers have generous gaps. */
.store-shell:not(.theme-default) .mercuno-category-mode-emarket .mercuno-category-root{
  padding:4px!important;display:flex!important;flex-direction:column!important;gap:11px!important;
}
.store-shell:not(.theme-default) .mercuno-category-mode-emarket .mercuno-category-root>.mercuno-category-all{
  order:-2;display:block!important;margin:0!important;padding:13px 16px!important;
  border:1px solid var(--category-line)!important;border-radius:12px!important;background:var(--category-panel)!important;
  font-weight:inherit!important;line-height:1.45;
}
.store-shell:not(.theme-default) .mercuno-category-mode-emarket .mercuno-category-root>.mercuno-category-offers{order:-1}
.store-shell:not(.theme-default) .mercuno-category-mode-emarket .mercuno-category-root>.mercuno-category-node{
  width:100%;display:block!important;margin:0!important;padding:0!important;
  border:1px solid var(--category-line)!important;background:var(--category-panel)!important;
  border-radius:12px!important;overflow:hidden;box-shadow:0 1px 3px color-mix(in srgb,var(--category-ink) 7%,transparent)!important;
}
.store-shell:not(.theme-default) .mercuno-category-mode-emarket .mercuno-category-root>.mercuno-category-node>.mercuno-category-row{
  display:flex!important;align-items:center!important;gap:4px;min-height:50px!important;
  padding:5px 9px 5px 6px!important;border-radius:0!important;background:var(--category-panel)!important;
}
.store-shell:not(.theme-default) .mercuno-category-mode-emarket .mercuno-category-root>.mercuno-category-node>.mercuno-category-row .mercuno-category-name{
  flex:1;min-width:0!important;padding:10px 11px!important;min-height:40px!important;font-weight:inherit!important;
  font-size:inherit!important;background:transparent!important;border:0!important;box-shadow:none!important;
}
.store-shell:not(.theme-default) .mercuno-category-mode-emarket .mercuno-category-root>.mercuno-category-node>.mercuno-category-children{
  margin:0!important;padding:10px 12px 12px 16px!important;background:var(--category-hover)!important;
  border:0!important;border-top:1px solid var(--category-line)!important;border-radius:0!important;
}
.store-shell:not(.theme-default) .mercuno-category-mode-emarket .mercuno-category-children .mercuno-category-children{
  margin:4px 0 5px 12px!important;padding-left:12px!important;border-left:1px solid var(--category-line)!important;
}
.store-shell:not(.theme-default) .mercuno-category-mode-emarket .mercuno-category-children .mercuno-category-row{
  padding:3px!important;margin:1px 0!important;border-radius:7px!important;background:transparent!important;
}
.store-shell:not(.theme-default) .mercuno-category-mode-emarket .mercuno-category-children .mercuno-category-name{
  padding:9px!important;min-height:36px!important;font-size:inherit!important;border-radius:7px!important;background:transparent!important;
}
.store-shell:not(.theme-default) .mercuno-category-mode-emarket .mercuno-category-toggle{
  width:32px!important;min-width:32px!important;height:33px!important;margin-right:3px!important;
  border:1px solid var(--category-line)!important;border-radius:8px!important;background:var(--category-panel)!important;
}
.store-shell:not(.theme-default) .mercuno-category-mode-emarket :is(.mercuno-category-name,.mercuno-category-all):is(:hover,.is-active),
.store-shell:not(.theme-default) .mercuno-category-mode-emarket .mercuno-category-toggle:is(:hover,[aria-expanded="true"]){
  background:var(--category-selected)!important;color:var(--category-accent)!important;
}
/* Sidebar 6: ONE UNBROKEN compact rail, no cards/panels.
   A continuous spine + nested indents convey levels; a slim bar marks active row. */
.store-shell:not(.theme-default) .mercuno-category-mode-deep-erp{
  border-left:2px solid var(--category-line)!important;border-radius:0!important;
}
.store-shell:not(.theme-default) .mercuno-category-mode-deep-erp .mercuno-category-root{
  display:flex!important;flex-direction:column!important;gap:0!important;
  padding:0 0 0 7px!important;background:transparent!important;
}
.store-shell:not(.theme-default) .mercuno-category-mode-deep-erp .mercuno-category-root>.mercuno-category-all{
  order:-2;margin:0 0 2px!important;padding:9px 11px!important;min-height:35px!important;
  background:transparent!important;border:0!important;border-radius:0 5px 5px 0!important;
}
.store-shell:not(.theme-default) .mercuno-category-mode-deep-erp .mercuno-category-root>.mercuno-category-offers{order:-1}
.store-shell:not(.theme-default) .mercuno-category-mode-deep-erp .mercuno-category-node{
  border:0!important;border-radius:0!important;padding:0!important;margin:0!important;
  background:transparent!important;box-shadow:none!important;
}
.store-shell:not(.theme-default) .mercuno-category-mode-deep-erp .mercuno-category-row{
  position:relative!important;border:0!important;border-radius:0!important;
  padding:0 2px 0 0!important;margin:1px 0!important;gap:1px!important;min-height:33px!important;
  background:transparent!important;box-shadow:none!important;
}
.store-shell:not(.theme-default) .mercuno-category-mode-deep-erp .mercuno-category-name{
  min-width:0!important;min-height:32px!important;padding:7px 9px!important;font-size:inherit!important;
  font-weight:inherit!important;border:0!important;border-radius:0 4px 4px 0!important;
  background:transparent!important;box-shadow:none!important;line-height:1.25!important;
}
.store-shell:not(.theme-default) .mercuno-category-mode-deep-erp .mercuno-category-toggle{
  width:23px!important;min-width:23px!important;height:27px!important;margin:0!important;
  border:0!important;background:transparent!important;border-radius:3px!important;
}
.store-shell:not(.theme-default) .mercuno-category-mode-deep-erp .mercuno-category-children{
  margin:1px 0 3px 10px!important;padding:0 0 0 10px!important;
  border:0!important;border-left:1px solid var(--category-line)!important;background:transparent!important;
}
.store-shell:not(.theme-default) .mercuno-category-mode-deep-erp :is(.mercuno-category-name,.mercuno-category-all):hover{
  background:var(--category-hover)!important;color:var(--category-ink)!important;
}
.store-shell:not(.theme-default) .mercuno-category-mode-deep-erp .mercuno-category-row.is-active:before,
.store-shell:not(.theme-default) .mercuno-category-mode-deep-erp :is(.mercuno-category-all.is-active):before{
  content:"";position:absolute;left:-9px;top:5px;bottom:5px;width:3px;
  background:var(--category-accent)!important;border-radius:4px;
}
.store-shell:not(.theme-default) .mercuno-category-mode-deep-erp .mercuno-category-all{position:relative!important;}
.store-shell:not(.theme-default) .mercuno-category-mode-deep-erp :is(.mercuno-category-name.is-active,.mercuno-category-all.is-active){
  background:var(--category-selected)!important;color:var(--category-accent)!important;
}
@media(max-width:1023px){
 .store-shell:not(.theme-default) .mercuno-mobile-category-list .mercuno-category-navigation:is(.mercuno-category-mode-emarket,.mercuno-category-mode-deep-erp) .mercuno-category-scroll{max-height:none;overflow:visible;}
}
@media(prefers-reduced-motion:reduce){
 .store-shell:not(.theme-default) .mercuno-category-navigation:is(.mercuno-category-mode-emarket,.mercuno-category-mode-deep-erp) *{transition:none!important;}
}
