/* Cabeçalho v3 (prévia) — busca com painel, prévia do chat, menu de perfil com carteira. */
.mxh,.mxh-modal{
  --h-bg:rgba(255,255,255,.86);--h-line:#e3e9f1;--h-text:#0f1b2d;--h-muted:#64748b;--h-soft:#f2f5f9;--h-hover:#eef3f9;
  --h-accent:var(--gx-accent,#2563eb);--h-accent-2:#1e40af;--h-drop:#fff;--h-ok:#16a34a;--h-red:#e11d48;
  --h-shadow:0 22px 50px -12px rgba(15,27,45,.22),0 2px 6px rgba(15,27,45,.06);
  --h-font:var(--font-body,"Poppins",sans-serif);--h-head:var(--font-heading,"Manrope",sans-serif)
}
body.dark-theme .mxh,body.dark-theme .mxh-modal{
  --h-bg:rgba(13,17,26,.86);--h-line:#253044;--h-text:#eef3fb;--h-muted:#94a3b8;--h-soft:#161d2a;--h-hover:#1d2636;
  --h-accent:var(--gx-accent,#4f8cff);--h-accent-2:#2554c7;--h-drop:#121823;
  --h-shadow:0 22px 50px -12px rgba(0,0,0,.6),0 2px 6px rgba(0,0,0,.3)
}
.mxh a{text-decoration:none}
.mxh-bar{padding:0!important;height:80px;background:var(--h-bg)!important;border-bottom:1px solid var(--h-line);box-shadow:none!important}
.mxh-wrap{max-width:1380px;height:80px;margin:0 auto;padding:0 28px;display:flex;align-items:center;gap:18px}
.mxh-logo{flex:none;display:block}.mxh-logo img{display:block;width:150px;height:auto}
.mxh-links{display:flex;gap:2px;flex:none}
.mxh-links a{padding:9px 12px;border-radius:10px;color:var(--h-muted);font:600 .9rem var(--h-font);transition:color .15s,background .15s}
.mxh-links a:hover{color:var(--h-text);background:var(--h-hover)}

/* busca */
.mxh-search{position:relative;flex:1 1 auto;min-width:220px;max-width:640px;margin:0 auto;transition:opacity .2s,transform .2s,visibility .2s}
.mxh-search.is-tucked{opacity:0;visibility:hidden;transform:translateY(-6px)}
.mxh-search>i{position:absolute;left:16px;top:23px;transform:translateY(-50%);color:var(--h-muted);font-size:.9rem;pointer-events:none;transition:color .15s}
.mxh-search input{width:100%;height:46px;margin:0;padding:0 48px 0 44px;border:1px solid var(--h-line);border-radius:14px;background:var(--h-soft);color:var(--h-text);font:500 .92rem var(--h-font);outline:0;-webkit-appearance:none;appearance:none;transition:border-color .15s,box-shadow .15s,background .15s}
.mxh-search input::placeholder{color:var(--h-muted);opacity:1}
.mxh-search input::-webkit-search-cancel-button{display:none}
.mxh-search input:hover{border-color:color-mix(in srgb,var(--h-accent) 35%,var(--h-line))}
.mxh-search input:focus{background:var(--h-drop);border-color:var(--h-accent);box-shadow:0 0 0 4px color-mix(in srgb,var(--h-accent) 15%,transparent)}
.mxh-search:focus-within>i{color:var(--h-accent)}
.mxh-search>kbd{position:absolute;right:12px;top:23px;transform:translateY(-50%);min-width:24px;height:24px;padding:0 7px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--h-line);border-radius:7px;background:var(--h-drop);color:var(--h-muted);font:600 .74rem/1 ui-monospace,Menlo,monospace;box-shadow:none;pointer-events:none;transition:opacity .15s}
.mxh-search:focus-within>kbd{opacity:0}
.mxh-panel{position:absolute;z-index:1080;top:calc(100% + 8px);left:0;right:0;display:none;max-height:min(72vh,580px);overflow:auto;padding:8px;background:var(--h-drop);border:1px solid var(--h-line);border-radius:16px;box-shadow:var(--h-shadow);color:var(--h-text);font-family:var(--h-font);overscroll-behavior:contain}
.mxh-search.open .mxh-panel{display:block;animation:mxhIn .14s ease-out}
@keyframes mxhIn{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
.mxh-sec{display:flex;align-items:center;justify-content:space-between;padding:10px 10px 6px;color:var(--h-muted);font:700 .68rem var(--h-font);letter-spacing:.07em;text-transform:uppercase}
.mxh-sec button{border:0;background:none;padding:0;color:var(--h-accent);font:600 .74rem var(--h-font);text-transform:none;letter-spacing:0;cursor:pointer}
.mxh-chips{display:flex;flex-wrap:wrap;gap:6px;padding:2px 8px 8px}
.mxh-chip{display:inline-flex;align-items:center;gap:7px;height:32px;padding:0 12px;border:1px solid var(--h-line);border-radius:999px;background:var(--h-drop);color:var(--h-text)!important;font-size:.82rem;font-weight:500;cursor:pointer;transition:background .15s,border-color .15s}
.mxh-chip:hover,.mxh-chip.is-active{background:var(--h-hover);border-color:color-mix(in srgb,var(--h-accent) 35%,var(--h-line))}
.mxh-chip i{color:var(--h-muted);font-size:.72rem}
.mxh-chip img{width:18px;height:18px;object-fit:contain}
.mxh-search:not(.mxh-search--modal) .mxh-panel{right:auto;width:max(100%,600px)}
.mxh-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:2px 8px 6px}
.mxh-tiles .mxh-skel{height:auto;aspect-ratio:16/11;margin:0}
.mxh-tile{display:flex;flex-direction:column;gap:6px;padding:4px;border-radius:12px;color:var(--h-text)!important;font:700 .8rem var(--h-head);transition:background .12s}
.mxh-tile:hover,.mxh-tile.is-active{background:var(--h-hover)}
.mxh-tile img{width:100%;aspect-ratio:16/11;object-fit:cover;border-radius:9px;background:var(--h-soft);transition:transform .2s}
.mxh-tile:hover img{transform:scale(1.02)}
.mxh-tile span{padding:0 2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mxh-row{display:flex;align-items:center;gap:10px;min-height:58px;padding:0 10px 0 0;border-radius:11px;transition:background .12s}
.mxh-row:hover,.mxh-row.is-active{background:var(--h-hover)}
.mxh-row-main{flex:1;min-width:0;display:flex;align-items:center;gap:12px;padding:8px 0 8px 10px;color:var(--h-text)!important}
.mxh-row-main>img{flex:none;width:42px;height:42px;border-radius:10px;object-fit:cover;background:var(--h-soft);border:1px solid var(--h-line)}
.mxh-row-txt{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.mxh-row-txt strong{font:700 .9rem var(--h-head);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mxh-row-txt strong mark{padding:0;background:none;color:var(--h-accent)}
.mxh-row-txt span{color:var(--h-muted);font-size:.76rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mxh-row-cats{display:flex;gap:4px;flex:none}
.mxh-row-cats a{display:inline-flex;align-items:center;gap:5px;height:26px;padding:0 9px;border-radius:8px;background:var(--h-soft);color:var(--h-muted)!important;font-size:.72rem;font-weight:600;transition:background .12s,color .12s}
.mxh-row-cats a:hover{background:color-mix(in srgb,var(--h-accent) 14%,transparent);color:var(--h-accent)!important}
.mxh-row-cats img{width:14px;height:14px;object-fit:contain}
.mxh-empty{padding:26px 16px;text-align:center;color:var(--h-muted);font-size:.88rem}
.mxh-empty b{color:var(--h-text)}
.mxh-skel{height:56px;margin:2px 0;border-radius:11px;background:linear-gradient(90deg,var(--h-soft) 25%,var(--h-hover) 50%,var(--h-soft) 75%);background-size:200% 100%;animation:mxhSk 1.1s linear infinite}
@keyframes mxhSk{to{background-position:-200% 0}}
.mxh-pfoot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:6px;padding:10px 10px 4px;border-top:1px solid var(--h-line);color:var(--h-muted);font-size:.74rem}
.mxh-pfoot kbd{display:inline-block;min-width:20px;margin-right:3px;padding:1px 5px;border:1px solid var(--h-line);border-radius:5px;background:var(--h-soft);color:var(--h-muted);font:600 .68rem ui-monospace,Menlo,monospace;box-shadow:none;text-align:center}
.mxh-pfoot a{color:var(--h-accent)!important;font-weight:600}
.mxh-pfoot .mxh-keys span{margin-right:12px}

/* ações */
.mxh-actions{display:flex;align-items:center;gap:8px;flex:none}
.mxh-dd{position:relative}
.mxh-icon{position:relative;display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:12px;color:var(--h-muted)!important;font-size:1.02rem;transition:background .15s,color .15s}
.mxh-icon:hover,.mxh-icon[aria-expanded=true]{background:var(--h-hover);color:var(--h-text)!important}
.mxh-icon.sm{width:38px;height:38px;font-size:.95rem}
.mxh .mxh-badge{position:absolute!important;top:4px!important;right:3px!important;left:auto!important;min-width:18px;height:18px;padding:0 5px!important;border-radius:999px;background:var(--h-red)!important;color:#fff!important;border:2px solid var(--h-drop);font:700 .64rem/14px var(--h-font)!important;text-align:center;transform:none!important}
.mxh-sell{display:inline-flex;align-items:center;gap:8px;height:42px;margin-left:6px;padding:0 16px;border-radius:12px;background:var(--h-accent);color:#fff!important;font:600 .88rem var(--h-font);white-space:nowrap;box-shadow:0 1px 0 rgba(255,255,255,.2) inset,0 6px 16px -4px color-mix(in srgb,var(--h-accent) 60%,transparent);transition:filter .15s,transform .1s}
.mxh-sell:hover{filter:brightness(1.08)}.mxh-sell:active{transform:translateY(1px)}
.mxh-sell i{font-size:.78rem}
.mxh-login{display:inline-flex;align-items:center;height:42px;padding:0 14px;border-radius:12px;color:var(--h-text)!important;font:600 .88rem var(--h-font);transition:background .15s}
.mxh-login:hover{background:var(--h-hover)}
.mxh-login.sm{height:38px;padding:0 10px;font-size:.84rem}
.mxh-register{display:inline-flex;align-items:center;height:42px;padding:0 16px;border-radius:12px;background:color-mix(in srgb,var(--h-accent) 12%,transparent);color:var(--h-accent)!important;font:700 .88rem var(--h-font)}
.mxh-register:hover{background:color-mix(in srgb,var(--h-accent) 20%,transparent)}
.mxh-me{display:flex;align-items:center;gap:10px;height:46px;margin-left:4px;padding:0 12px 0 5px;border:1px solid var(--h-line);border-radius:999px;color:var(--h-text)!important;transition:background .15s,border-color .15s}
.mxh-me:hover,.mxh-me[aria-expanded=true]{background:var(--h-hover)}
.mxh-ava{position:relative;flex:none;width:34px;height:34px}
.mxh-ava img{width:100%;height:100%;border-radius:50%;object-fit:cover;display:block}
.mxh-ava.lg{width:48px;height:48px}
.mxh-online{position:absolute;right:-1px;bottom:-1px;width:11px;height:11px;border-radius:50%;background:var(--h-ok);border:2px solid var(--h-drop)}
.mxh-ava.lg .mxh-online{width:13px;height:13px}
.mxh-me-txt{display:flex;flex-direction:column;line-height:1.15;min-width:0;max-width:130px}
.mxh-me-txt strong{font:700 .84rem var(--h-head);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mxh-me-txt small{color:var(--h-muted);font-size:.72rem;font-variant-numeric:tabular-nums;white-space:nowrap}
.mxh-chev{color:var(--h-muted);font-size:.66rem;transition:transform .2s}
.mxh-me[aria-expanded=true] .mxh-chev{transform:rotate(180deg)}
html.mxh-hide [data-mxh-bal]{filter:blur(7px);user-select:none}

/* menus */
.mxh .mxh-menu{margin-top:10px!important;padding:8px;border:1px solid var(--h-line)!important;border-radius:16px!important;background:var(--h-drop)!important;box-shadow:var(--h-shadow)!important;color:var(--h-text);font-family:var(--h-font)}
.mxh-menu-head{display:flex;align-items:center;justify-content:space-between;padding:8px 10px 10px}
.mxh-menu-head strong{font:800 1rem var(--h-head)}
.mxh-menu-head a{color:var(--h-accent)!important;font-size:.8rem;font-weight:600}
.mxh-menu-head a i{font-size:.7rem;margin-left:3px}
.mxh-chat{width:380px}
.mxh-chat-list{max-height:430px;overflow:auto}
.mxh-chat-row{display:flex;align-items:center;gap:12px;padding:10px;border-radius:12px;color:var(--h-text)!important;transition:background .12s}
.mxh-chat-row:hover{background:var(--h-hover)}
.mxh-chat-row .mxh-ava{width:42px;height:42px}
.mxh-chat-row .mxh-ava b{display:flex;width:100%;height:100%;align-items:center;justify-content:center;border-radius:50%;background:var(--h-accent);color:#fff;font-size:.9rem}
.mxh-chat-txt{flex:1;min-width:0}
.mxh-chat-top{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.mxh-chat-top strong{font:700 .88rem var(--h-head);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mxh-chat-top time{flex:none;color:var(--h-muted);font-size:.72rem}
.mxh-chat-msg{display:flex;align-items:center;gap:8px;margin-top:2px}
.mxh-chat-msg span{flex:1;min-width:0;color:var(--h-muted);font-size:.8rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mxh-chat-msg em{flex:none;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:var(--h-accent);color:#fff;font:700 .68rem/20px var(--h-font);font-style:normal;text-align:center}
.mxh-chat-row.unread .mxh-chat-msg span{color:var(--h-text);font-weight:600}
.mxh-chat-row.unread .mxh-chat-top time{color:var(--h-accent);font-weight:600}
.mxh-sys{display:inline-flex;align-items:center;gap:5px}
.mxh-sys i{color:var(--h-accent);font-size:.72rem}
.mxh-sys small{color:var(--h-muted);font:500 .72rem ui-monospace,Menlo,monospace;opacity:.8}
.mxh-notif{width:360px}

.mxh-profile{width:350px}
.mxh-p-head{display:flex;align-items:center;gap:12px;padding:10px;border-radius:12px;color:var(--h-text)!important;transition:background .12s}
.mxh-p-head:hover{background:var(--h-hover)}
.mxh-p-id{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px}
.mxh-p-id strong{font:800 1.02rem var(--h-head);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mxh-lvl{display:flex;align-items:center;gap:8px;color:var(--h-muted);font-size:.72rem}
.mxh-lvl b{font-weight:600;white-space:nowrap}
.mxh-lvl i{flex:1;max-width:110px;height:5px;border-radius:999px;background:var(--h-soft);overflow:hidden}
.mxh-lvl em{display:block;height:100%;border-radius:999px;background:var(--h-accent)}
.mxh-p-view{flex:none;color:var(--h-accent);font-size:.76rem;font-weight:600}
.mxh-wallet{margin:6px 2px 8px;padding:14px 14px 12px;border-radius:14px;color:#fff;background:radial-gradient(120% 140% at 100% 0,rgba(255,255,255,.18),transparent 55%),linear-gradient(135deg,var(--h-accent),var(--h-accent-2))}
.mxh-wallet-top{display:flex;align-items:center;justify-content:space-between;font-size:.76rem;opacity:.88}
.mxh-eye{width:28px;height:28px;border:0;border-radius:8px;background:rgba(255,255,255,.14);color:#fff;font-size:.75rem;cursor:pointer}
.mxh-eye:hover{background:rgba(255,255,255,.24)}
.mxh-wallet-val{display:block;margin:2px 0 12px;font:800 1.5rem var(--h-head);font-variant-numeric:tabular-nums;letter-spacing:-.01em}
.mxh-wallet-btns{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.mxh-wallet-btns a{display:flex;align-items:center;justify-content:center;gap:7px;height:36px;border-radius:10px;background:rgba(255,255,255,.16);color:#fff!important;font-size:.8rem;font-weight:600;transition:background .15s}
.mxh-wallet-btns a:hover{background:rgba(255,255,255,.26)}
.mxh-wallet-btns i{font-size:.74rem}
.mxh-grid{display:grid;grid-template-columns:1fr 1fr;gap:2px 6px;padding-bottom:6px}
.mxh-grid small{display:block;padding:8px 10px 4px;color:var(--h-muted);font:700 .64rem var(--h-font);letter-spacing:.07em;text-transform:uppercase}
.mxh-grid a,.mxh-list a,.mxh-mini a{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:10px;color:var(--h-text)!important;font-size:.84rem;transition:background .12s}
.mxh-grid a:hover,.mxh-list a:hover,.mxh-mini a:hover{background:var(--h-hover)}
.mxh-grid a i,.mxh-list a i,.mxh-mini a i{width:16px;flex:none;text-align:center;color:var(--h-muted);font-size:.84rem}
.mxh-grid .badge-inline-count{margin-left:auto}
.mxh-list{display:grid;grid-template-columns:1fr 1fr;gap:2px 6px;padding:6px 0;border-top:1px solid var(--h-line)}
.mxh-gift i{color:#9333ea!important}
.mxh-foot{display:flex;align-items:center;gap:6px;padding-top:8px;border-top:1px solid var(--h-line)}
.mxh-foot a{display:inline-flex;align-items:center;gap:8px;height:34px;padding:0 10px;border-radius:10px;color:var(--h-muted)!important;font-size:.8rem;font-weight:600;transition:background .12s,color .12s}
.mxh-foot a:hover{background:var(--h-hover);color:var(--h-text)!important}
.mxh-foot .mxh-out{margin-left:auto;color:var(--h-red)!important}
.mxh-foot .mxh-out:hover{background:color-mix(in srgb,var(--h-red) 10%,transparent);color:var(--h-red)!important}
.mxh-switch{position:relative;width:30px;height:18px;border-radius:999px;background:var(--h-line);transition:background .2s}
.mxh-switch::after{content:"";position:absolute;top:2px;left:2px;width:14px;height:14px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.25);transition:transform .2s}
body.dark-theme .mxh-switch{background:var(--h-accent)}
body.dark-theme .mxh-switch::after{transform:translateX(12px)}
.mxh-mini{width:230px}

/* mobile */
.mxh-mbar{background:var(--h-bg)!important;border-bottom:1px solid var(--h-line);box-shadow:none!important}
.mxh-mwrap{display:flex;align-items:center;gap:8px;width:100%;padding:0 12px}
.mxh-mlogo{flex:none}.mxh-mlogo img{display:block;height:26px;width:auto}
.mxh-mpill{flex:1;min-width:0;display:flex;align-items:center;gap:9px;height:40px;padding:0 14px;border:1px solid var(--h-line);border-radius:12px;background:var(--h-soft);color:var(--h-muted);font:500 .86rem var(--h-font);text-align:left;cursor:pointer}
.mxh-mpill span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mxh-mpill i{font-size:.82rem}
.mxh-modal .modal-content{border:0;border-radius:18px;background:var(--h-drop);color:var(--h-text);overflow:hidden}
.mxh-modal .modal-dialog{margin-top:72px}
.mxh-search--modal{max-width:none;margin:0;padding:12px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;align-content:start;gap:8px}
.mxh-search--modal>i{left:28px;top:35px}
.mxh-search--modal input{min-width:0}
.mxh-x{flex:none;height:46px;padding:0 6px;border:0;background:none;color:var(--h-accent);font:600 .88rem var(--h-font)}
.mxh-search--modal .mxh-panel{position:static;display:block;grid-column:1/-1;width:auto;max-height:none;padding:4px 0 0;border:0;border-radius:0;box-shadow:none;animation:none}
.mxh-search--modal .mxh-pfoot .mxh-keys{display:none}
@media (max-width:575.98px){
  .mxh-modal .modal-dialog{margin:0}
  .mxh-modal .modal-content{border-radius:0;min-height:100dvh}
  .mxh-search--modal .mxh-row{flex-wrap:wrap;padding-right:0}
  .mxh-search--modal .mxh-row-cats{display:flex;flex-wrap:wrap;width:100%;padding:0 10px 10px 64px;margin-top:-6px}
  .mxh-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:1279.98px){.mxh-me-txt{display:none}.mxh-me{padding-right:10px}}
@media (max-width:1179.98px){.mxh-links{display:none}.mxh-wrap{gap:12px;padding:0 20px}.mxh-row-cats{display:none}}
/* menu de perfil: layout antigo (pedido dos vendedores) */
.mxh-oldme{display:flex;align-items:center;margin-left:6px}
.mxh-oldme>.nav-link{color:var(--h-text)!important}
.mxh-oldme .profile-name-text{font:700 .86rem var(--h-head);color:var(--h-text)}
.mxh-oldme .profile-chevron{font-size:.66rem;color:var(--h-muted)}

/* ===== v4: duas linhas (busca + categorias), inspirado em Eldorado/DFG ===== */
.mxh-bar{height:auto}
.mxh-wrap{height:64px;gap:20px}
.mxh-search{max-width:720px}
.mxh-row2{border-top:1px solid var(--h-line)}
.mxh-wrap2{max-width:1380px;height:42px;margin:0 auto;padding:0 22px;display:flex;align-items:center;gap:12px}
.mxh-cats{flex:0 1 auto;min-width:0;display:flex;align-items:center;gap:2px;overflow-x:auto;scrollbar-width:none}
.mxh-cats::-webkit-scrollbar{display:none}
.mxh-cat,.mxh-cat-link,.mxh-tool{flex:none;display:inline-flex;align-items:center;gap:7px;height:32px;padding:0 10px;border:0;border-radius:9px;background:none;color:var(--h-muted)!important;font:600 .83rem var(--h-font);white-space:nowrap;cursor:pointer;transition:background .15s,color .15s}
.mxh-cat:hover,.mxh-cat[aria-expanded=true],.mxh-cat-link:hover,.mxh-tool:hover{background:var(--h-hover);color:var(--h-text)!important}
.mxh-cat[aria-expanded=true]{color:var(--h-accent)!important}
.mxh-cat img{width:18px;height:18px;object-fit:contain}
.mxh-cat>.fa-chevron-down{font-size:.56rem;opacity:.7;transition:transform .2s}
.mxh-cat[aria-expanded=true]>.fa-chevron-down{transform:rotate(180deg)}
.mxh-cat-link i,.mxh-tool i{font-size:.8rem}
.mxh-cats-sep{flex:none;width:1px;height:18px;margin:0 6px;background:var(--h-line)}
.mxh-tools{flex:none;display:flex;align-items:center;gap:2px}
.mxh-tool-ico{width:32px;padding:0;justify-content:center}
body.dark-theme .mxh-when-light,body:not(.dark-theme) .mxh-when-dark{display:none}
.mxh .mxh-oldme{margin-left:4px}

.mxh-mega{position:absolute;z-index:1070;top:100%;width:min(780px,calc(100vw - 32px));margin-top:6px;padding:14px;background:var(--h-drop);border:1px solid var(--h-line);border-radius:16px;box-shadow:var(--h-shadow);color:var(--h-text);font-family:var(--h-font);animation:mxhIn .14s ease-out}
.mxh-mega[hidden]{display:none}
.mxh-mega-body{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);gap:14px}
.mxh-mega-body.one{grid-template-columns:1fr}
.mxh-mega-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px}
.mxh-mega-body.one .mxh-mega-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.mxh-mg{display:flex;align-items:center;gap:10px;min-width:0;padding:7px 8px;border-radius:10px;color:var(--h-text)!important;transition:background .12s}
.mxh-mg:hover{background:var(--h-hover)}
.mxh-mg img{flex:none;width:32px;height:32px;border-radius:8px;object-fit:cover;background:var(--h-soft)}
.mxh-mg span{min-width:0;display:flex;flex-direction:column}
.mxh-mg b{font:700 .84rem var(--h-head);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mxh-mg small{color:var(--h-muted);font-size:.72rem}
.mxh-mega-all{display:flex;flex-direction:column;min-height:0;padding-left:14px;border-left:1px solid var(--h-line)}
.mxh-mega-filter{position:relative;display:block;margin:0 2px 6px}
.mxh-mega-filter i{position:absolute;left:11px;top:50%;transform:translateY(-50%);color:var(--h-muted);font-size:.76rem}
.mxh-mega-filter input{width:100%;height:36px;padding:0 10px 0 32px;border:1px solid var(--h-line);border-radius:10px;background:var(--h-soft);color:var(--h-text);font:500 .84rem var(--h-font);outline:0}
.mxh-mega-filter input:focus{border-color:var(--h-accent);background:var(--h-drop)}
.mxh-mega-list{max-height:248px;overflow:auto;overscroll-behavior:contain}
.mxh-mega-list .mxh-mg{padding:6px 8px}
.mxh-mega-list .mxh-mg img{width:24px;height:24px;border-radius:6px}
.mxh-mega-foot{display:flex;justify-content:flex-end;margin-top:10px;padding-top:10px;border-top:1px solid var(--h-line)}
.mxh-mega-foot a{color:var(--h-accent)!important;font-size:.8rem;font-weight:600}
.mxh-mega .mxh-sec{padding:2px 8px 8px}

.mxh-mcats{display:flex;gap:6px;width:100%;padding:2px 12px 8px;overflow-x:auto;scrollbar-width:none}
.mxh-mcats::-webkit-scrollbar{display:none}
.mxh-mcats a{flex:none;display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 11px;border:1px solid var(--h-line);border-radius:999px;background:var(--h-drop);color:var(--h-text)!important;font:600 .76rem var(--h-font);text-decoration:none}
.mxh-mcats img{width:16px;height:16px;object-fit:contain}
.mxh-mbar{flex-direction:column;padding:6px 0 0!important}
@media (max-width:1179.98px){.mxh-wrap2{padding:0 14px}.mxh-tool:not(.mxh-tool-ico){font-size:0;gap:0;width:32px;padding:0;justify-content:center}.mxh-tool:not(.mxh-tool-ico) i{font-size:.8rem}}
.mxh-mini img{width:18px;height:18px;object-fit:contain}
.mxh-wrap2>.mxh-dd{flex:none;margin-right:auto}
.mxh-mega-body.one .mxh-mega-all{padding-left:0;border-left:0}
.mxh-mega-body.one .mxh-mega-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px;max-height:300px}
.mxh-mega-grid{align-content:start}

/* ===== v5: movimento (refs 21st.dev tubelight, 60fps, uiverse) ===== */
.mxh,.mxh-modal{--h-ease:cubic-bezier(.2,.8,.2,1)}
.mxh-bar{transition:box-shadow .25s,background .25s}
.mxh-bar.is-scrolled{box-shadow:0 10px 30px -18px rgba(15,27,45,.35)!important;-webkit-backdrop-filter:blur(16px) saturate(1.4);backdrop-filter:blur(16px) saturate(1.4)}
.mxh-row2{height:43px;overflow:hidden;transition:height .3s var(--h-ease),opacity .2s,border-color .3s}
.mxh-bar.is-compact .mxh-row2{height:0;opacity:0;border-color:transparent}
.mxh-bar.is-compact .mxh-row2 *{pointer-events:none}

/* tubelight: destaque que desliza entre as categorias */
.mxh-cats{position:relative}
.mxh-glow{position:absolute;z-index:0;top:5px;left:0;height:32px;width:0;border-radius:9px;background:var(--h-hover);opacity:0;pointer-events:none;transition:transform .32s var(--h-ease),width .32s var(--h-ease),opacity .2s}
.mxh-glow::after{content:"";position:absolute;left:22%;right:22%;bottom:-5px;height:2px;border-radius:2px;background:var(--h-accent);box-shadow:0 0 10px 1px var(--h-accent),0 0 22px 4px color-mix(in srgb,var(--h-accent) 45%,transparent)}
.mxh-cat,.mxh-cat-link{position:relative;z-index:1}
.mxh-cats .mxh-cat:hover,.mxh-cats .mxh-cat[aria-expanded=true],.mxh-cats .mxh-cat-link:hover{background:none}

/* menu de categoria que muda de forma */
.mxh-mega{overflow:hidden;transition:left .32s var(--h-ease),height .32s var(--h-ease);animation:mxhPop .2s var(--h-ease)}
.mxh-mega-in{animation:mxhFade .22s ease-out}
@keyframes mxhFade{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
@keyframes mxhPop{from{opacity:0;transform:translateY(-6px) scale(.98)}to{opacity:1;transform:none}}

/* dropdowns do topo abrem com escala */
.mxh .dropdown-menu.show{animation:mxhPop .18s var(--h-ease);transform-origin:top right}

/* botão vender: brilho que atravessa */
.mxh-sell{position:relative;overflow:hidden;background:linear-gradient(135deg,var(--h-accent),color-mix(in srgb,var(--h-accent) 70%,#7c3aed))}
.mxh-sell::after{content:"";position:absolute;top:0;left:-60%;width:40%;height:100%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.45),transparent);transform:skewX(-20deg);transition:left .6s var(--h-ease)}
.mxh-sell:hover::after{left:130%}
.mxh-sell i{transition:transform .3s var(--h-ease)}
.mxh-sell:hover i{transform:rotate(90deg)}

/* contador pula quando muda */
.mxh-badge.bump{animation:mxhBump .45s var(--h-ease)}
@keyframes mxhBump{0%{transform:scale(1)}35%{transform:scale(1.35)}100%{transform:scale(1)}}

/* resultados da busca entram em sequência */
.mxh-panel .mxh-row,.mxh-panel .mxh-tile,.mxh-mega-in .mxh-mg{animation:mxhFade .28s var(--h-ease) both}
.mxh-panel .mxh-row:nth-child(2),.mxh-panel .mxh-tile:nth-child(2),.mxh-mega-grid .mxh-mg:nth-child(2){animation-delay:.03s}
.mxh-panel .mxh-row:nth-child(3),.mxh-panel .mxh-tile:nth-child(3),.mxh-mega-grid .mxh-mg:nth-child(3){animation-delay:.06s}
.mxh-panel .mxh-row:nth-child(4),.mxh-panel .mxh-tile:nth-child(4),.mxh-mega-grid .mxh-mg:nth-child(4){animation-delay:.09s}
.mxh-panel .mxh-row:nth-child(5),.mxh-panel .mxh-tile:nth-child(5),.mxh-mega-grid .mxh-mg:nth-child(5){animation-delay:.12s}
.mxh-panel .mxh-row:nth-child(n+6),.mxh-panel .mxh-tile:nth-child(n+6),.mxh-mega-grid .mxh-mg:nth-child(n+6){animation-delay:.15s}
.mxh-search input:focus{box-shadow:0 0 0 4px color-mix(in srgb,var(--h-accent) 15%,transparent),0 8px 28px -10px color-mix(in srgb,var(--h-accent) 45%,transparent)}
.mxh-icon i{transition:transform .25s var(--h-ease)}
.mxh-icon:hover i{transform:translateY(-1px) scale(1.08)}
#notificationDropdown:hover i{animation:mxhRing .6s ease}
@keyframes mxhRing{0%,100%{transform:rotate(0)}20%{transform:rotate(14deg)}40%{transform:rotate(-12deg)}60%{transform:rotate(8deg)}80%{transform:rotate(-4deg)}}

@media (prefers-reduced-motion:reduce){.mxh *,.mxh *::before,.mxh *::after,.mxh-modal *{animation:none!important;transition:none!important}}
.mxh-mega{box-sizing:content-box;width:min(752px,calc(100vw - 62px))}
.mxh-cats{height:42px;overflow-y:hidden}

/* ===== v6: perfil organizado, mensagens com abas, "Mais" no painel ===== */
.mxh-me2{display:flex;align-items:center;gap:9px;height:44px;padding:0 10px 0 4px;border-radius:999px;color:var(--h-text)!important;transition:background .15s}
.mxh-me2:hover,.mxh-me2[aria-expanded=true]{background:var(--h-hover)}
.mxh-me2-name{max-width:130px;font:700 .86rem var(--h-head);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mxh-me2[aria-expanded=true] .mxh-chev{transform:rotate(180deg)}
.mxh .mxh-pf{width:320px;padding:8px}
.mxh-pf-head{display:flex;align-items:center;gap:12px;padding:12px 10px 14px;margin:-8px -8px 8px;border-radius:16px 16px 0 0;background:linear-gradient(180deg,color-mix(in srgb,var(--h-accent) 9%,var(--h-drop)),var(--h-drop))}
.mxh-pf-id{min-width:0;flex:1;display:flex;flex-direction:column;gap:2px}
.mxh-pf-id strong{font:800 1rem var(--h-head);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mxh-pf-id>a{width:max-content;color:var(--h-accent)!important;font-size:.8rem;font-weight:600}
.mxh-pf-id>a:hover{text-decoration:underline}
.mxh-pf-id .mxh-lvl{margin-top:3px}
.mxh-pf-bal{display:flex;align-items:center;gap:12px;padding:10px;margin-bottom:6px;border:1px solid var(--h-line);border-radius:12px;color:var(--h-text)!important;transition:border-color .15s,background .15s}
.mxh-pf-bal:hover{background:var(--h-hover);border-color:color-mix(in srgb,var(--h-accent) 30%,var(--h-line))}
.mxh-pf-bal-txt{flex:1;display:flex;flex-direction:column;line-height:1.2}
.mxh-pf-bal-txt small{color:var(--h-muted);font-size:.74rem}
.mxh-pf-bal-txt strong{font:800 1.08rem var(--h-head);font-variant-numeric:tabular-nums}
.mxh-pf-go{color:var(--h-muted);font-size:.7rem;transition:transform .2s var(--h-ease)}
.mxh-pf-bal:hover .mxh-pf-go{transform:translateX(3px)}
.mxh-pf-sec{display:flex;flex-direction:column;padding:4px 0;border-top:1px solid var(--h-line)}
.mxh-pf-bal+.mxh-pf-sec{border-top:0}
.mxh-pf-sec a{display:flex;align-items:center;gap:11px;padding:7px 8px;border-radius:10px;color:var(--h-text)!important;font-size:.87rem;transition:background .12s}
.mxh-pf-sec a:hover{background:var(--h-hover)}
.mxh-pf-sec a .badge-inline-count{margin-left:auto}
.mxh-pf-sec a em{margin-left:auto;font-style:normal;color:var(--h-muted);font-size:.74rem;font-weight:600}
.mxh-pf-sec a .mxh-switch{margin-left:auto}
.mxh-pf-ico{flex:none;width:30px;height:30px;display:inline-flex;align-items:center;justify-content:center;border-radius:9px;font-size:.8rem}
.mxh-pf-ico i{margin:0!important}
.c-blue{background:rgba(37,99,235,.11);color:#2563eb}.c-violet{background:rgba(124,58,237,.11);color:#7c3aed}
.c-amber{background:rgba(217,119,6,.12);color:#d97706}.c-slate{background:var(--h-soft);color:var(--h-muted)}
.c-pink{background:rgba(219,39,119,.11);color:#db2777}.c-green{background:rgba(22,163,74,.12);color:#16a34a}
body.dark-theme .c-blue{color:#60a5fa}body.dark-theme .c-violet{color:#a78bfa}body.dark-theme .c-amber{color:#fbbf24}body.dark-theme .c-pink{color:#f472b6}body.dark-theme .c-green{color:#4ade80}
.mxh-pf-out{display:flex;align-items:center;justify-content:center;gap:8px;height:38px;margin-top:4px;border-radius:10px;background:color-mix(in srgb,var(--h-red) 8%,transparent);color:var(--h-red)!important;font-size:.85rem;font-weight:600;transition:background .15s}
.mxh-pf-out:hover{background:color-mix(in srgb,var(--h-red) 15%,transparent)}

.mxh-tabs{display:flex;gap:2px;padding:3px;border-radius:10px;background:var(--h-soft)}
.mxh-tabs button{display:inline-flex;align-items:center;gap:6px;height:26px;padding:0 10px;border:0;border-radius:8px;background:none;color:var(--h-muted);font:600 .76rem var(--h-font);cursor:pointer;transition:background .15s,color .15s}
.mxh-tabs button.on{background:var(--h-drop);color:var(--h-text);box-shadow:0 1px 3px rgba(15,27,45,.12)}
.mxh-tabs b{min-width:16px;height:16px;padding:0 4px;border-radius:999px;background:var(--h-accent);color:#fff;font-size:.62rem;line-height:16px;text-align:center}
.mxh-tabs b:empty{display:none}
.mxh-chat-row .mxh-ava{position:relative}
.mxh-chat-row .mxh-online{width:12px;height:12px}
.mxh-chat-row.unread{background:color-mix(in srgb,var(--h-accent) 5%,transparent)}
.mxh-chat-row.unread:hover{background:var(--h-hover)}
.mxh-chat-row+.mxh-chat-row{margin-top:2px}
.mxh-chat-all{display:flex;align-items:center;justify-content:center;gap:6px;height:38px;margin-top:6px;border-top:1px solid var(--h-line);color:var(--h-accent)!important;font-size:.82rem;font-weight:600}
.mxh-chat-all i{font-size:.7rem;transition:transform .2s var(--h-ease)}
.mxh-chat-all:hover i{transform:translateX(3px)}
.mxh-more{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
.mxh-more .mxh-mg img{object-fit:contain;background:none}
.mxh-mega.is-more{width:360px}.mxh-mega.is-more .mxh-more{grid-template-columns:1fr 1fr}
/* celular: topo com altura livre (categorias embaixo) */
.navbar.mxh-mbar{height:auto!important;min-height:0!important;flex-wrap:nowrap!important;flex-direction:column;align-items:stretch;padding:8px 0 0!important}
.mxh-mwrap{height:44px}
.mxh-mbar .mxh-icon.sm{flex:none}
/* celular: categorias recolhem ao rolar pra baixo */
.mxh-mbar .mxh-mcats{height:40px;transition:height .3s var(--h-ease),opacity .2s,padding .3s}
.mxh-mbar.is-compact .mxh-mcats{height:0;padding-top:0;padding-bottom:0;opacity:0;pointer-events:none}
.mxh-mbar{transition:box-shadow .25s}
.mxh-mbar.is-scrolled{box-shadow:0 8px 24px -16px rgba(15,27,45,.35)!important}

/* ===== acabamento global (05/11/2026): identidade azul e botões sem caixa-alta ===== */
body,body.light-theme,body.dark-theme{--accent-color:#2563eb}
.btn{text-transform:none!important;letter-spacing:.005em!important;font-weight:600}
.btn:not(.btn-sm):not(.btn-lg):not(.btn-floating){font-size:.82rem}
/* painel do vendedor: "carregando" como véu leve, sem escurecer a tela */
body:has(nav.sidebar) #loader.loading-overlay{background:color-mix(in srgb,var(--bg-color,#f4f7f9) 45%,transparent)!important;-webkit-backdrop-filter:blur(1.5px);backdrop-filter:blur(1.5px)}
