/* Visual 1.0 · camada leve e calma por cima do app.css (carregar depois dele).
   Só aparência: pesos de letra, cartões, listas, barra de baixo e botões. Nada de fluxo muda aqui. */
:root{--bg:#f6f4fb;--line:#ebe7f1;--muted:#6b6675;--soft:#efeaff;--ink2:#625c6b;--shadow:0 1px 2px rgba(24,21,30,.04),0 8px 24px rgba(60,40,120,.06)}
html body{background:var(--bg);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
html body .money,html body .price,html body .kpi b,html body .sitotal b,html body .planprice{font-variant-numeric:tabular-nums}

/* Letras: menos negrito, mais hierarquia */
html body b,html body strong{font-weight:600}
html body .title{font-size:24px;font-weight:700;letter-spacing:-.3px}
html body .pagehead .small{font-size:13px}
html body .store{font-weight:700;letter-spacing:-.2px}
html body .strong,html body .name,html body .siname{font-weight:600}
html body .money,html body .price{font-weight:600}
html body .pill{font-weight:600}
html body .section h3,html body h3{font-weight:600}
html body .sheethead h2{font-weight:700;letter-spacing:-.2px}
html body .field label{font-weight:600}
html body .delta{font-weight:600}

/* Topo */
html body .top{background:rgba(255,255,255,.94);border-bottom-color:var(--line)}
html body #who{font-size:12px;color:var(--muted)}

/* Botões */
html body .btn{font-weight:600;border-radius:14px;letter-spacing:0}
html body .btn.full{min-height:48px;font-size:15px}
html body .ghost{font-weight:500;border-color:var(--line);border-radius:12px;color:var(--text);letter-spacing:0}
html body .smallbtn{min-height:34px;padding:0 12px;font-size:13px;font-weight:500}
html body .dangerbtn{font-weight:600}
html body .close{background:#f2f0f6;border-radius:12px}

/* Campos */
html body .search,html body .field input,html body .field select,html body .field textarea{border-color:#e4e0ea;border-radius:12px}
html body .search{height:46px;padding:0 14px}

/* Abas e filtros */
html body .seg{background:#ebe7f3;border-radius:13px;padding:3px}
html body .seg button{font-weight:500;color:var(--ink2);font-size:13px}
html body .seg button.on{font-weight:600;color:var(--text);box-shadow:0 1px 3px rgba(24,21,30,.08)}
html body .chip{font-weight:500;font-size:13px;padding:8px 14px;border-color:transparent;background:#fff;box-shadow:0 1px 2px rgba(24,21,30,.05)}
html body .chip.on{background:var(--soft);border-color:transparent;color:#4f33d6;font-weight:600;box-shadow:none}

/* Cartões: sem borda pesada, sombra suave */
html body .card,html body .kpi,html body .tabcard,html body .histcard{border-color:#efebf5;border-radius:18px;box-shadow:0 1px 2px rgba(24,21,30,.04)}
html body .trialcard{background:#fff;border-color:#e6defe}
html body .badge{font-weight:600;font-size:11px}
html body #recent .badge.paid{display:none}
html body .cat{font-weight:600}

/* Início: faturamento em destaque, os outros números menores ao lado */
@media(max-width:699px){
  html body .kpis{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  html body .kpis .kpi:first-child{grid-column:1/-1;padding:16px}
  html body .kpis .kpi:first-child span{font-size:13px}
  html body .kpis .kpi:first-child b{font-size:32px;font-weight:700;letter-spacing:-.8px}
  html body .kpis .kpi:not(:first-child) b{font-size:16px;font-weight:600}
}
html body .kpi span{font-size:12px;color:var(--muted)}
html body .homesell{margin-top:12px}
html body .onboardstep{font-weight:500;border-color:#efebf5}
html body .onboardeyebrow{font-weight:700}

/* Listas: linhas agrupadas num cartão só, com divisória (navegador sem :has mantém o visual antigo) */
html body div:has(> .row){background:#fff;border-radius:18px;padding:0 14px;box-shadow:0 1px 2px rgba(24,21,30,.04)}
html body div:has(> .row) > .row{border:0;border-bottom:1px solid #f0edf5;border-radius:0;margin:0;padding:12px 0;background:transparent;box-shadow:none}
html body div:has(> .row) > .row:last-child{border-bottom:0}

/* Vender: grade de 2 colunas no celular, cartão limpo */
@media(max-width:699px){html body #sellGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}}
html body .prod{border-color:#efebf5;box-shadow:0 1px 2px rgba(24,21,30,.04),0 6px 18px rgba(60,40,120,.05)}
html body .prod .body .cat{display:none}
html body .prod .name{font-size:14px;font-weight:500;line-height:1.3}
html body .prod .price{font-size:17px;font-weight:700}
html body .prod .small{font-size:12px}
html body .noimg{background:#f3f0fa!important}
html body .noimg span{font-weight:600!important;color:#6D4AFF}
html body .noimg small{display:none}
html body .cartbar{background:var(--p);border-radius:18px;box-shadow:0 10px 28px rgba(109,74,255,.32)}
html body .cartbar .btn{background:#fff;color:#4a2fd6;font-weight:600}

/* Estoque */
html body .sitem{border-color:#efebf5;box-shadow:0 1px 2px rgba(24,21,30,.04)}
html body .siname{font-size:15px}
html body .sistate{font-weight:600}
html body .sitotal b{font-weight:600}
html body .sitotal small{font-weight:400}
html body .sipill b{font-weight:600}

/* Barra de baixo com ícones de traço */
html body .nav{background:rgba(255,255,255,.97);border-top-color:var(--line)}
html body .nav button{font-weight:500;color:var(--ink2);font-size:11px}
html body .nav button .navico{display:grid;place-items:center;width:52px;height:30px;margin:0 auto 3px;border-radius:15px}
html body .nav button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
html body .nav button.on{background:transparent;color:#5b3ee8;font-weight:600}
html body .nav button.on .navico{background:var(--soft)}
@media(min-width:1024px){
  html body .nav button .navico{margin:0;width:34px;height:34px;border-radius:10px}
  html body .nav button.on{background:var(--soft)}
  html body .nav button.on .navico{background:transparent}
}

/* Ícone do leitor de código de barras */
html body .icobarcode{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;display:block;margin:auto}
html body .scanbtn{color:var(--text);border-color:#e4e0ea}

/* Vender: foto menos alta, aviso "no carrinho" mais leve, valor do carrinho legível */
html body #sellGrid .img{aspect-ratio:4/3}
html body .incart{font-weight:600;font-size:11px;box-shadow:none}
html body .cartbar #cartCount{display:block;font-size:13px;font-weight:500;color:rgba(255,255,255,.88)}
html body .cartbar #cartTotal{font-size:18px;font-weight:700;color:#fff;opacity:1;font-variant-numeric:tabular-nums}

/* Estoque e Produtos: só mostra o que pede atenção */
html body .sistate.st-ok{display:none}
html body .sipills:has(> .sipill:only-child){display:none}
html body .piprice{font-weight:600;font-variant-numeric:tabular-nums}
html body .piprice small{font-weight:400}
html body .pistock{font-weight:500}

/* Loja: títulos de seção sem os símbolos de texto */
html body .settingsLabel{font-weight:600;font-size:15px}
html body .settingsLabel>span{display:none}
html body .setico{font-weight:400}
html body .settxt b{font-weight:600}

/* Guia de primeiros passos: passo concluído vira uma linha simples */
html body .onboardstep.done{background:transparent;border-color:transparent;padding:4px 10px}
html body .onboardstep.done .onboardstatus{display:none}
@media(min-width:1024px){html body .nav button{font-size:14px}}
html body:has(.nav.platformadmin) #homeSell{display:none}

/* Telas 1.0: tablet em pé, tablet deitado, computador e celular deitado */
/* Números do Início ocupam a linha toda, sem buraco no fim (Caixa vê só 2) */
@media(min-width:700px){
  html body .kpis{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
  html body #cartModal .sheet{max-width:680px}
  html body .nav button{font-size:12px}
}
/* Carrinho aberto: o fim da lista de produtos não fica escondido atrás da barra roxa */
html body:has(#cartBar:not(.hide)){padding-bottom:calc(160px + env(safe-area-inset-bottom))}
@media(min-width:1024px){
  html body:has(#cartBar:not(.hide)){padding-bottom:112px}
  /* Vender: fotos mais baixas para caber mais produtos na tela */
  html body #sellGrid .img{aspect-ratio:3/2}
  /* Minha loja: usa as duas colunas em vez de uma faixa estreita */
  html body .settingsGrid>.settingsColumn:only-child{grid-column:1/-1;display:block;columns:2;column-gap:16px}
  html body .settingsGrid>.settingsColumn:only-child>*{break-inside:avoid;margin-bottom:16px}
}
/* Celular deitado (pouca altura): topo rola junto e a barra de baixo fica fina, ícone ao lado do nome */
@media(orientation:landscape) and (max-height:500px){
  html body .top{position:static}
  html body{padding-bottom:calc(60px + env(safe-area-inset-bottom))}
  html body:has(#cartBar:not(.hide)){padding-bottom:calc(124px + env(safe-area-inset-bottom))}
  html body .nav{padding:3px 6px calc(3px + env(safe-area-inset-bottom))}
  html body .nav button{height:40px;display:flex;align-items:center;justify-content:center;gap:6px;font-size:12px}
  html body .nav button .navico{margin:0;width:32px;height:26px}
  html body .cartbar{bottom:calc(54px + env(safe-area-inset-bottom));padding:7px 12px}
  html body .modal{align-items:flex-end}
  html body .sheet{max-height:94dvh;margin-bottom:0}
  html body #productBody .productsavebar{position:static}
}

/* Visual 1.1 (revisão com as skills impeccable e taste): ícones de traço no lugar dos símbolos de texto,
   listas agrupadas no celular, um só botão roxo por bloco e números alinhados. Só aparência. */
html body .vico{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;vertical-align:-3px}
html body .vicon{display:inline-flex;align-items:center;justify-content:center;gap:7px}
html body .gearbtn .vico,html body .backbtn .vico{width:20px;height:20px}
html body .setgo .vico{width:18px;height:18px;color:#b9b2c6}
html body .emptyicon .vico{width:24px;height:24px}
html body .emptyicon{background:#f1eef7;color:var(--ink2)}
/* Configurações: ícone cinza sem quadrado colorido em cada linha */
html body .setico{background:transparent;color:var(--ink2);width:24px;flex-basis:24px}
html body .setico .vico{width:20px;height:20px}
html body .setrow.danger .setico{background:transparent}
/* Minha loja: sem o desenho de celular e o ícone em quadrado; "Editar catálogo" vira botão secundário */
html body .settingsStoreIcon,html body .catalogPhone{display:none}
html body #editCatalogBtn{background:#fff;color:#4f33d6;border:1px solid #ddd5fb;box-shadow:none}
html body #editCatalogBtn:hover{background:var(--soft)}
html body .catalogSettingsTop .small:first-child,html body .catlink .small:first-child{text-transform:lowercase;font-size:12px}
html body .catalogSettingsTop .small:first-child::first-letter,html body .catlink .small:first-child::first-letter{text-transform:uppercase}
/* Estoque e Produtos: o aviso fica só na etiqueta (antes era etiqueta + borda colorida) */
html body .sitem.st-low,html body .sitem.st-out,html body .pitem.st-out{border-color:#efebf5}
/* Números alinhados em toda lista de valores */
html body .sitotal,html body .piprice,html body .kpi b,html body .bar b,html body .catrow b,html body #recent b{font-variant-numeric:tabular-nums}
/* Celular: listas de Estoque e Produtos num cartão só, com divisórias, em vez de um cartão por produto */
@media(max-width:699px){
  html body .stocklist,html body #prodGrid.prodlist{gap:0;background:#fff;border-radius:18px;box-shadow:0 1px 2px rgba(24,21,30,.04);overflow:hidden}
  html body .stocklist>.sitem,html body #prodGrid.prodlist>.pitem{border:0;border-radius:0;box-shadow:none;border-bottom:1px solid #f0edf5}
  html body .stocklist>.sitem:last-child,html body #prodGrid.prodlist>.pitem:last-child{border-bottom:0}
  html body .stocklist:empty,html body #prodGrid.prodlist:empty{display:none}
  /* Início: Lucro, Margem e Vendas num bloco só, separados por linha fina */
  html body .kpis{column-gap:0}
  html body .kpis .kpi:not(:first-child){border-radius:0;border-left-width:0;box-shadow:none}
  html body .kpis .kpi:nth-child(2){border-radius:18px 0 0 18px;border-left-width:1px}
  html body .kpis .kpi:last-child:not(:first-child){border-radius:0 18px 18px 0}
  html body .kpis .kpi:nth-child(2):last-child{border-radius:18px}
}

/* Visual 1.2 · "jeito de banco" no celular: faturamento em roxo, atalhos redondos, Vendas no meio da barra
   e forma de pagamento em botões no carrinho. Computador e tablet ficam como estão. */
html body .shortcuts{display:none}
html body .paytitle{font-size:14px;font-weight:600;margin:16px 0 8px}
html body .paychips{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
html body .paychip{min-height:62px;border:1px solid #e4e0ea;border-radius:16px;background:#fff;color:var(--text);font:inherit;font-size:13px;font-weight:500;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:6px 2px;cursor:pointer}
html body .paychip .vico{width:20px;height:20px}
html body .paychip.on{border:2px solid var(--p);background:var(--soft);color:#3f24c4;font-weight:600}
html body .paychip:focus-visible{outline:3px solid var(--p);outline-offset:2px}
html body .field.paysel{display:none}
html body .cartaddmore{margin:10px 0 4px;min-height:44px;display:flex;align-items:center;justify-content:center;gap:8px;color:#4f33d6}
@media(max-width:699px){
  /* Faturamento em destaque roxo */
  html body .kpis .kpi:first-child{background:var(--p);border-color:var(--p);color:#fff;padding:18px 18px 16px;border-radius:22px}
  html body .kpis .kpi:first-child span{color:rgba(255,255,255,.88)}
  html body .kpis .kpi:first-child b{color:#fff;font-size:36px}
  /* Atalhos redondos no lugar do botão Nova venda */
  html body .shortcuts{display:grid;grid-template-columns:repeat(auto-fit,minmax(0,1fr));gap:4px;background:#fff;border-radius:20px;padding:14px 6px;margin-top:10px;box-shadow:0 1px 2px rgba(24,21,30,.04)}
  html body .shortcut{border:0;background:none;font:inherit;font-size:13px;color:var(--text);display:flex;flex-direction:column;align-items:center;gap:7px;min-height:44px;cursor:pointer;padding:0}
  html body .shortcut .scico{width:52px;height:52px;border-radius:50%;background:#f1eff5;color:#3b3644;display:grid;place-items:center}
  html body .shortcut .scico .vico{width:24px;height:24px}
  html body .shortcut[data-sc="sell"] .scico{background:var(--soft);color:#4f33d6}
  html body .shortcut:active .scico{transform:scale(.94)}
  html body #homeSell{display:none}
  /* Barra de baixo: Vendas no meio, em círculo roxo */
  html body .nav button[data-p="home"]{order:1}
  html body .nav button[data-p="stock"]{order:2}
  html body .nav button[data-p="sell"]{order:3}
  html body .nav button[data-p="products"]{order:4}
  html body .nav button[data-p="more"]{order:5}
  html body .nav button[data-p="adminPage"]{order:6}
  html body .nav button[data-p="sell"] .navico{width:56px;height:56px;margin:-26px auto 2px;border-radius:50%;background:var(--p);color:#fff;box-shadow:0 8px 20px rgba(109,74,255,.32)}
  html body .nav button[data-p="sell"] .navico svg{width:26px;height:26px}
  html body .nav button[data-p="sell"].on .navico{background:#4f33d6}
}
@media(max-width:699px) and (orientation:landscape) and (max-height:500px){
  html body .nav button[data-p="sell"] .navico{width:32px;height:26px;margin:0;box-shadow:none}
}
html body .paychips~.splitbox .splittitle{display:none}

/* Editar catálogo: miniaturas e prévia dos estilos Esporte, Adega e Mercado */
html body .cslmini.esp{grid-template-columns:1fr 1fr;background:#fff;border:1px solid var(--line)}
html body .cslmini.esp::before{background:#0d0d0f;height:30%;border-bottom:3px solid #d7ff3d}
html body .cslmini.esp i{background:#f3f3f4;border-radius:5px}
html body .cslmini.ade{grid-template-columns:1fr 1fr;background:#0f0d0d}
html body .cslmini.ade::before{background:linear-gradient(#5a1726,#0f0d0d);border-bottom:1px solid #c9a55c}
html body .cslmini.ade i{background:#f7f3ee;border-radius:3px}
html body .cslmini.mer{grid-template-columns:1fr 1fr;padding-top:24%;background:#f3f5f2}
html body .cslmini.mer::before{background:var(--p);height:17%}
html body .cslmini.mer i{background:#fff;border-radius:4px;border:1px solid #e2e6e0}
html body .catpreview[data-layout="ESPORTE"]{background:#0d0d0f;color:#fff}
html body .catpreview[data-layout="ESPORTE"] .pvEyebrow{display:inline-block;background:#d7ff3d;color:#0d0d0f;font-weight:800;padding:3px 8px;border-radius:4px;opacity:1}
html body .catpreview[data-layout="ESPORTE"]:not([data-font]),html body .catpreview[data-layout="ESPORTE"][data-font="SISTEMA"]{font-family:'TL Archivo',-apple-system,"Segoe UI",Arial,sans-serif}
html body .catpreview[data-layout="ESPORTE"] .pvTitle{font-family:'TL Anton',Impact,"Arial Narrow",sans-serif;font-weight:400;text-transform:uppercase;font-size:calc(34px*var(--fs,1));line-height:1}
html body .catpreview[data-layout="ADEGA"]{background:radial-gradient(90% 110% at 50% 0,#5a1726 0%,#2a0d14 45%,transparent 80%),#0f0d0d;color:#f3ece2;text-align:center}
html body .catpreview[data-layout="ADEGA"][data-font="SISTEMA"]{font-family:'TL Lato',-apple-system,"Segoe UI",Arial,sans-serif}
html body .catpreview[data-layout="ADEGA"] .pvEyebrow{color:#c9a55c;letter-spacing:.24em;opacity:1}
html body .catpreview[data-layout="ADEGA"] .pvTitle{font-family:'TL Cormorant Garamond',Georgia,serif;font-weight:700;font-size:calc(32px*var(--fs,1))}
html body .catpreview[data-layout="ADEGA"] .pvSub{color:#bcae9d;opacity:1}
html body .catpreview[data-layout="MERCADO"]{background:var(--p);padding:12px 16px}
html body .catpreview[data-layout="MERCADO"][data-font="SISTEMA"]{font-family:'TL Rubik',-apple-system,"Segoe UI",Arial,sans-serif}
html body .catpreview[data-layout="MERCADO"] .pvEyebrow{text-transform:none;letter-spacing:0;font-weight:500}
html body .catpreview[data-layout="MERCADO"] .pvTitle{font-size:calc(24px*var(--fs,1));font-weight:800}
html body .catpreview[data-layout="BOUTIQUE"][data-font="SISTEMA"]{font-family:'TL Jost',-apple-system,"Segoe UI",Arial,sans-serif}
