/* Dropdowns Categorias / Lojas na faixa de chips (CE Melhorias 1.3.0) */
.ce-dd{position:relative;flex:none}
.cats .ce-dd-btn{display:inline-flex;align-items:center;gap:6px}
.ce-dd-chev{transition:transform .15s}
.ce-dd-btn[aria-expanded=true]{background:var(--grad);border-color:transparent;color:#fff}
.ce-dd-btn[aria-expanded=true] .ce-dd-chev{transform:rotate(180deg)}
.ce-dd-btn.is-cur:not([aria-expanded=true]){border-color:var(--o);color:var(--o)}
.ce-dd-btn:focus-visible,.ce-dd-a:focus-visible,.ce-dd-x:focus-visible,.ce-dd-all:focus-visible{outline:3px solid var(--o);outline-offset:2px}

.ce-dd-panel{position:absolute;z-index:60;top:calc(100% + 6px);left:0;background:var(--card);border:1px solid var(--line);border-radius:16px;box-shadow:0 18px 44px rgba(20,17,31,.18);padding:8px;min-width:280px;max-height:min(72vh,560px);overflow:auto;overscroll-behavior:contain}
.ce-dd-panel[hidden]{display:none}
.ce-dd-lojas{width:min(560px,92vw)}
.ce-dd-head{display:none}
.ce-dd-list{list-style:none;margin:0;padding:0}
.ce-dd-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:2px 6px}
.ce-dd-a,.ce-hub a{display:flex;align-items:center;gap:12px;padding:9px 10px;border-radius:12px;color:var(--ink);text-decoration:none;font-weight:800;font-size:.95rem;line-height:1.25;min-height:44px}
.ce-dd-a:hover,.ce-hub a:hover{background:rgba(240,83,31,.09);color:var(--o)}
.ce-dd-a.is-cur{background:rgba(240,83,31,.12);color:var(--o)}
.ce-dd-ico{flex:none;width:32px;height:32px;border-radius:10px;background:rgba(240,83,31,.1);display:grid;place-items:center;font-size:1.1rem;line-height:1}
.ce-dd-logo{background:#fff;border:1px solid var(--line);overflow:hidden}
.ce-dd-logo img{width:26px;height:26px;object-fit:contain;display:block}
.ce-dd-ini{background:var(--grad);color:#fff;font-weight:900;font-size:.95rem}
.ce-dd-t{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}
.ce-dd-n{flex:none;font-size:.76rem;color:var(--mute);font-weight:800}
.ce-dd-all{display:block;margin:6px 4px 2px;padding:11px 12px;border-top:1px solid var(--line);text-align:center;font-weight:900;font-size:.9rem;color:var(--o);text-decoration:none;border-radius:0 0 10px 10px}
.ce-dd-all:hover{text-decoration:underline}
.ce-dd-back{display:none}

/* desktop: a faixa deixa o painel sair para baixo */
@media (min-width:821px){.cats-wrap .cats{overflow:visible}}

/* celular / toque: painel de baixo para cima */
@media (max-width:820px){
	.ce-dd-back.on{display:block;position:fixed;inset:0;z-index:998;background:rgba(20,17,31,.5)}
	.ce-dd-panel{position:fixed;z-index:999;left:0;right:0;top:auto;bottom:0;width:auto!important;min-width:0;max-height:78vh;border-radius:20px 20px 0 0;border-width:1px 0 0;padding:0 10px calc(14px + env(safe-area-inset-bottom));box-shadow:0 -12px 40px rgba(20,17,31,.35)}
	.ce-dd-head{display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;background:var(--card);padding:14px 6px 8px;font-size:1.05rem;z-index:1}
	.ce-dd-x{border:0;background:rgba(20,17,31,.08);color:var(--ink);width:36px;height:36px;border-radius:50%;font-size:1.4rem;line-height:1;cursor:pointer}
	.ce-dd-grid{grid-template-columns:1fr 1fr;gap:0 4px}
	.ce-dd-a{font-size:.9rem;padding:8px 6px;gap:10px}
	.ce-dd-lojas .ce-dd-n{display:none}
}
body.ce-dd-lock{overflow:hidden}

/* páginas /categorias/ e /lojas/ */
.ce-hub{list-style:none;margin:16px 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:8px}
.ce-hub li{background:var(--card);border:1px solid var(--line);border-radius:14px}

/* modo noturno */
html.ce-dark .ce-dd-panel{background:#191623;border-color:var(--line);box-shadow:0 18px 44px rgba(0,0,0,.6)}
html.ce-dark .ce-dd-head{background:#191623}
html.ce-dark .ce-dd-x{background:rgba(255,255,255,.1)}
html.ce-dark .ce-dd-logo{background:#fff;border-color:transparent}
html.ce-dark .ce-dd-ico{background:rgba(255,138,31,.16)}
html.ce-dark .ce-dd-ini{background:var(--grad)}
html.ce-dark .ce-dd-a:hover,html.ce-dark .ce-hub a:hover,html.ce-dark .ce-dd-a.is-cur{background:rgba(255,138,31,.16);color:#FFB36B}
html.ce-dark .ce-dd-all{color:#FFB36B}
html.ce-dark .ce-dd-btn.is-cur:not([aria-expanded=true]){color:#FFB36B;border-color:#FF8A1F}

/* ===== Categorias: coluna + subcategorias (v1.4.0) ===== */
.ce-dd-panel.ce-mm{width:min(800px,94vw);padding:0;overflow:hidden;max-height:none}
.ce-mm-body{position:relative;display:block}
.ce-mm-left{width:262px;box-sizing:border-box;padding:10px;min-height:400px;max-height:calc(100vh - 210px);overflow-y:auto;background:#FBF8F5;border-right:1px solid var(--line);overscroll-behavior:contain}
.ce-mm-tabs{list-style:none;margin:6px 0 0;padding:0}
.ce-mm-mv,.ce-mm-tab{display:flex;align-items:center;gap:11px;width:100%;box-sizing:border-box;min-height:38px;padding:4px 10px;border:0;border-radius:12px;background:transparent;color:var(--ink);font:inherit;font-weight:800;font-size:.93rem;line-height:1.2;text-align:left;text-decoration:none;cursor:pointer}
.ce-mm-mv{background:rgba(240,83,31,.1);color:var(--o);margin-bottom:2px}
.ce-mm-tab .ce-dd-chev{margin-left:auto;transform:rotate(-90deg);color:var(--mute)}
.ce-mm-solo .ce-mm-tab .ce-dd-chev{display:none}
.ce-mm-tab:hover,.ce-mm-mv:hover{background:rgba(240,83,31,.09);color:var(--o)}
.ce-mm-item.is-active>.ce-mm-tab{background:#fff;color:var(--o);box-shadow:inset 3px 0 0 var(--o),0 1px 4px rgba(20,17,31,.08)}
.ce-mm-item.is-active>.ce-mm-tab .ce-dd-chev{color:var(--o)}
.ce-mm-tab.is-cur .ce-dd-t::after,.ce-mm-mv.is-cur .ce-dd-t::after{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--o);margin-left:8px;vertical-align:middle}
.ce-mm-tab:focus-visible,.ce-mm-mv:focus-visible,.ce-mm-pill:focus-visible,.ce-mm-ver:focus-visible{outline:3px solid var(--o);outline-offset:2px}
.ce-mm-pane{display:none}
.ce-mm-item.is-active>.ce-mm-pane{display:block}
.ce-mm-ph{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.ce-mm-ph strong{font-size:1.15rem;font-weight:900}
.ce-mm-ver{flex:none;background:var(--grad);color:#fff;text-decoration:none;font-weight:900;font-size:.85rem;padding:8px 14px;border-radius:999px}
.ce-mm-ver:hover{filter:brightness(1.06)}
.ce-mm-subs{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.ce-mm-pill{display:inline-block;border:1.5px solid var(--line);background:#fff;color:var(--ink2);font-weight:800;font-size:.9rem;line-height:1.2;padding:9px 15px;border-radius:999px;text-decoration:none}
.ce-mm-pill:hover{border-color:var(--o);background:rgba(240,83,31,.08);color:var(--o)}
.ce-mm-pill.is-cur{border-color:var(--o);background:rgba(240,83,31,.12);color:var(--o)}

@media (min-width:821px){
	.ce-mm-tab .ce-dd-ico,.ce-mm-mv .ce-dd-ico{width:28px;height:28px;font-size:1rem;border-radius:9px}
	.ce-mm-pane{position:absolute;left:262px;top:0;right:0;bottom:0;padding:18px 22px;overflow-y:auto}
	.ce-mm .ce-dd-all{margin:0;border-top:1px solid var(--line);border-radius:0;background:#FBF8F5}
}
@media (max-width:820px){
	.ce-dd-panel.ce-mm{width:auto!important;padding:0 10px calc(14px + env(safe-area-inset-bottom));overflow-y:auto;max-height:78vh}
	.ce-mm-left{width:auto;min-height:0;max-height:none;overflow:visible;background:transparent;border:0;padding:0}
	.ce-mm-mv,.ce-mm-tab{min-height:48px;font-size:.98rem}
	.ce-mm-item{border-bottom:1px solid var(--line)}
	.ce-mm-item:last-child{border-bottom:0}
	.ce-mm-tab .ce-dd-chev{transform:none}
	.ce-mm-item.is-active>.ce-mm-tab .ce-dd-chev{transform:rotate(180deg)}
	.ce-mm-item.is-active>.ce-mm-tab{background:rgba(240,83,31,.09);box-shadow:none}
	.ce-mm-pane{padding:8px 4px 14px 4px}
	.ce-mm-ph strong{display:none}
	.ce-mm-ph{margin-bottom:10px}
	.ce-mm-ver{font-size:.9rem;padding:9px 16px}
	.ce-mm-pill{padding:10px 14px}
}

/* páginas /categorias/ */
.ce-hubc{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px;margin-top:16px}
.ce-hubc-g{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:14px}
.ce-hubc-g h2{font-size:1.05rem;margin:0 0 10px}
.ce-hubc-g h2 a{display:flex;align-items:center;gap:10px;color:var(--ink);text-decoration:none}
.ce-hubc-g .ce-mm-pill{font-size:.84rem;padding:7px 12px}

/* modo noturno */
html.ce-dark .ce-mm-left,html.ce-dark .ce-mm .ce-dd-all{background:#151220;border-color:var(--line)}
html.ce-dark .ce-mm-mv{background:rgba(255,138,31,.16);color:#FFB36B}
html.ce-dark .ce-mm-tab:hover,html.ce-dark .ce-mm-mv:hover{background:rgba(255,138,31,.14);color:#FFB36B}
html.ce-dark .ce-mm-item.is-active>.ce-mm-tab{background:#221E30;color:#FFB36B;box-shadow:inset 3px 0 0 #FF8A1F}
html.ce-dark .ce-mm-pill{background:#221E30;color:var(--ink2);border-color:var(--line)}
html.ce-dark .ce-mm-pill:hover,html.ce-dark .ce-mm-pill.is-cur{background:rgba(255,138,31,.16);border-color:#FF8A1F;color:#FFB36B}
html.ce-dark .ce-mm-tab.is-cur .ce-dd-t::after,html.ce-dark .ce-mm-mv.is-cur .ce-dd-t::after{background:#FF8A1F}
@media (max-width:820px){html.ce-dark .ce-mm-item.is-active>.ce-mm-tab{background:rgba(255,138,31,.14)}}

/* logos das lojas: cabeçalho do arquivo da loja e títulos da página /lojas/ */
.ce-store-h1{display:flex;align-items:center;gap:12px}
.ce-store-logo{width:48px;height:48px;border-radius:12px;background:#fff;border:1px solid var(--line);object-fit:contain;flex:none;display:block}
.ce-hub-h{font-size:1.15rem;margin:26px 0 0}
.ce-hub-h + .ce-hub{margin-top:12px}
.ce-hub{margin-left:0!important;padding-left:0!important;list-style:none!important}
