:root { --cor: #1f2a44; --fundo: #f6f5f2; --borda: #e2dfd8; --texto: #222; --suave: #6b6b6b; --alerta: #b3262e; }
* { box-sizing: border-box; }
html, body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--fundo); color: var(--texto); }
h1 { font-size: 1.3rem; margin: .5rem 0 1rem; }
a { color: var(--cor); }
.conteudo { padding: 1rem 1rem 5.5rem; max-width: 1200px; margin: 0 auto; }
.barra-inferior { position: fixed; bottom: 0; left: 0; right: 0; display: flex; background: #fff; border-top: 1px solid var(--borda); padding-bottom: env(safe-area-inset-bottom); }
.barra-inferior a { flex: 1; display: flex; flex-direction: column; align-items: center; padding: .45rem 0; font-size: .72rem; text-decoration: none; color: var(--suave); }
.barra-inferior a.active { color: var(--cor); font-weight: 600; }
.barra-inferior .icone { font-size: 1.25rem; line-height: 1.4rem; }
.pagina-vazia { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.login { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: .8rem; }
.marca { font-size: 2rem; letter-spacing: .3rem; text-align: center; color: var(--cor); font-weight: 700; display: flex; flex-direction: column; }
.marca small { font-size: .7rem; letter-spacing: .2rem; font-weight: 400; color: var(--suave); }
label { display: flex; flex-direction: column; gap: .25rem; font-size: .85rem; }
input, select, textarea { font: inherit; padding: .6rem .7rem; border: 1px solid var(--borda); border-radius: 8px; background: #fff; }
.senha { display: flex; gap: .4rem; } .senha input { flex: 1; }
button { font: inherit; cursor: pointer; }
.principal { background: var(--cor); color: #fff; border: 0; border-radius: 8px; padding: .75rem; font-weight: 600; width: 100%; }
.principal:disabled { opacity: .5; cursor: default; }
.secundario { background: #fff; color: var(--cor); border: 1px solid var(--cor); border-radius: 8px; padding: .5rem .9rem; margin-bottom: .8rem; }
.link { background: none; border: 0; color: var(--cor); text-decoration: underline; padding: .25rem; }
.aviso { color: var(--alerta); } .vazio, .detalhe { color: var(--suave); font-size: .85rem; }
.filtros { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; } .filtros input { flex: 1 1 220px; }
.galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .8rem; }
.card { background: #fff; border: 1px solid var(--borda); border-radius: 10px; overflow: hidden; cursor: pointer; text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.foto { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #eee; display: flex; align-items: center; justify-content: center; color: var(--suave); font-size: .8rem; }
.card-texto { padding: .5rem .6rem .7rem; display: flex; flex-direction: column; gap: .2rem; font-size: .85rem; }
.preco { font-weight: 600; }
.bolinhas { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .2rem; }
.bolinha { width: 16px; height: 16px; border-radius: 50%; border: 1px solid #0003; }
.toast { position: fixed; bottom: 5rem; left: 50%; transform: translateX(-50%); background: #222; color: #fff; padding: .5rem 1rem; border-radius: 20px; }
.voltar { display: inline-block; margin-bottom: .5rem; text-decoration: none; }
.grade-topo { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1rem; } .grade-topo .foto { width: 120px; border-radius: 8px; }
.grade { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; }
.grade th, .grade td { padding: .5rem; border-bottom: 1px solid var(--borda); text-align: center; }
.grade .qtd { display: flex; gap: .3rem; justify-content: center; align-items: center; }
.grade .qtd input { width: 4rem; text-align: center; padding: .4rem; }
.grade .qtd button { width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 1px solid var(--borda); background: #fff; font-size: 1.1rem; }
.sem-estoque { color: var(--alerta); }
.totais { display: flex; justify-content: space-between; margin: 1rem 0 .3rem; }
.lista, .menu-mais { list-style: none; padding: 0; margin: 0; background: #fff; border: 1px solid var(--borda); border-radius: 10px; }
.lista li, .menu-mais li { padding: .75rem 1rem; border-bottom: 1px solid var(--borda); display: flex; flex-direction: column; gap: .15rem; }
.menu-mais a { text-decoration: none; }
#blazor-error-ui { display: none; }

.toast-acao { display: flex; gap: 1rem; align-items: center; white-space: nowrap; z-index: 10; }
.toast-acao a { color: #fff; font-weight: 600; }
.resumo { display: flex; gap: .8rem; background: var(--cor); color: #fff; border-radius: 12px; padding: 1rem 1.2rem; margin: .8rem 0 1rem; }
.resumo div { display: flex; flex-direction: column; }
.resumo div:first-child { flex: 1; }
.resumo span { font-size: .8rem; opacity: .8; }
.resumo strong { font-size: 1.5rem; }
.itens-pedido li { flex-direction: row; justify-content: space-between; gap: .5rem; }
.no-carrinho { color: #1d7a3a; font-size: .8rem; font-weight: 600; }
.item-carrinho { display: flex; gap: .8rem; background: #fff; border: 1px solid var(--borda); border-radius: 10px; padding: .6rem; margin-bottom: .6rem; }
.item-carrinho .foto { width: 64px; min-width: 64px; border-radius: 6px; font-size: .6rem; text-align: center; }
.item-info { flex: 1; display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.tamanhos { list-style: none; padding: 0; margin: .3rem 0 0; }
.tamanhos li { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .2rem 0; border-top: 1px dashed var(--borda); }
.tamanhos li span:first-child { min-width: 4.5rem; }
.botao-link { display: block; text-align: center; text-decoration: none; margin-bottom: .8rem; box-sizing: border-box; }
.formulario { display: flex; flex-direction: column; gap: .2rem; }
.opcoes { display: flex; gap: 1.2rem; margin-bottom: .4rem; }
.opcoes label { flex-direction: row; display: flex; align-items: center; gap: .3rem; }
.linha-campos { display: flex; gap: .6rem; }
.linha-campos label { flex: 1; min-width: 0; }
.linha-campos input { width: 100%; box-sizing: border-box; }
.secao { font-size: 1rem; margin: 1.4rem 0 .5rem; color: var(--suave); }
.lista li.chave { flex-direction: row; align-items: center; justify-content: space-between; }
.lista li.chave div { display: flex; flex-direction: column; }
.ligado, .desligado { border: 0; border-radius: 20px; padding: .45rem 1rem; font-weight: 600; min-width: 6.5rem; }
.ligado { background: #1d7a3a; color: #fff; } .desligado { background: #ddd; color: #555; }
.perigo { background: var(--alerta); }
.filtros select { flex: 1; min-width: 0; }
