/* [LOJA-APP-0212] BG Atacado — as cores do site bgatacado.com: verde #1A5C3A e dourado #C9A84C */
[hidden] { display: none !important; }
:root { --v: #1A5C3A; --v2: #2E8B57; --v3: #4CAF7D; --o: #C9A84C; --o2: #d9bd6a; --f: #F8FAF9; --f2: #F2F5F3; --t: #1C1C1E; --c: #6b7470; --r: 16px;
        --sb: env(safe-area-inset-bottom, 0px); --st: env(safe-area-inset-top, 0px); }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--f); color: var(--t); font: 15px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }

.topo { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 10px;
        padding: calc(10px + var(--st)) 14px 10px; background: var(--v); color: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.18); }
.marca { display: flex; align-items: center; gap: 10px; }
.marca img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--o); }
.marca b { display: block; font-size: 18px; letter-spacing: .3px; }
.marca small { display: block; font-size: 10px; color: var(--o2); font-weight: 700; letter-spacing: .8px; }
.topo-conta { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--o); background: rgba(255,255,255,.08); color: #fff; font-size: 18px; }

main { padding: 0 0 calc(86px + var(--sb)); min-height: 70vh; }
.heroi { position: relative; color: #fff; padding: 26px 18px 22px; background: linear-gradient(135deg, rgba(26,92,58,.93), rgba(20,22,22,.80)), url(img/fachada.jpg) center/cover; }
.heroi .selo { display: inline-block; background: var(--o); color: var(--t); font-weight: 800; font-size: 11px; padding: 4px 10px; border-radius: 99px; letter-spacing: .6px; }
.heroi h1 { margin: 10px 0 6px; font-size: 25px; line-height: 1.15; }
.heroi h1 em { color: var(--o2); font-style: normal; }
.heroi p { margin: 0; opacity: .92; font-size: 14px; }
.busca { position: sticky; top: calc(60px + var(--st)); z-index: 15; padding: 10px 14px; background: var(--f); }
.busca input { width: 100%; padding: 13px 16px 13px 42px; border-radius: 99px; border: 2px solid #dfe7e2; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%231A5C3A' stroke-width='2.4'%3E%3Ccircle cx='8.5' cy='8.5' r='6'/%3E%3Cpath d='m13 13 5 5'/%3E%3C/svg%3E") 14px center no-repeat; outline: none; }
.busca input:focus { border-color: var(--v2); }
.faixa { display: flex; gap: 8px; overflow-x: auto; padding: 4px 14px 10px; scrollbar-width: none; }
.faixa::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; padding: 8px 14px; border-radius: 99px; border: 1.5px solid #cfe0d6; background: #fff; color: var(--v); font-weight: 700; font-size: 13px; }
.chip.on { background: var(--v); color: #fff; border-color: var(--v); }
.vantagens { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 14px 4px; }
.vantagens div { background: #fff; border-radius: 12px; padding: 10px; font-size: 12px; color: var(--c); border: 1px solid #e5ece8; }
.vantagens b { display: block; color: var(--v); font-size: 13px; }
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 8px 14px; }
.cat { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 1; border: 0; padding: 0; background: var(--v) center/cover; color: #fff; }
.cat span { position: absolute; inset: auto 0 0 0; padding: 18px 6px 6px; font-weight: 800; font-size: 11px; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.titulo { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 14px 6px; }
.titulo h2 { margin: 0; font-size: 17px; color: var(--v); }
.titulo small { color: var(--c); }

.grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 10px; padding: 4px 14px 14px; }
.prod { background: #fff; border-radius: var(--r); border: 1px solid #e5ece8; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 4px rgba(0,0,0,.04); }
.prod .foto { aspect-ratio: 1; background: var(--f2); display: flex; align-items: center; justify-content: center; font-size: 34px; color: #b9c9bf; }
.prod .foto img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.prod .info { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.prod .nome { font-size: 13px; font-weight: 600; line-height: 1.25; min-height: 2.5em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.prod .cod { font-size: 10px; color: var(--c); }
.prod .de { font-size: 11px; color: var(--c); text-decoration: line-through; }
.prod .preco { font-size: 18px; font-weight: 800; color: var(--v); }
.prod .preco small { font-size: 11px; color: var(--c); font-weight: 600; }
.prod .add { margin-top: auto; border: 0; border-radius: 10px; padding: 9px; background: var(--v); color: #fff; font-weight: 800; }
.prod .add.tem { background: var(--o); color: var(--t); }
.mais { display: block; margin: 4px auto 18px; padding: 12px 22px; border-radius: 99px; border: 2px solid var(--v); background: #fff; color: var(--v); font-weight: 800; }
.vazio { text-align: center; padding: 40px 24px; color: var(--c); }
.vazio b { display: block; font-size: 40px; margin-bottom: 8px; }

.qtd { display: inline-flex; align-items: center; border: 2px solid var(--v); border-radius: 10px; overflow: hidden; }
.qtd button { width: 36px; height: 36px; border: 0; background: var(--v); color: #fff; font-size: 18px; font-weight: 800; }
.qtd input { width: 52px; height: 36px; border: 0; text-align: center; font-weight: 800; }
.lista { padding: 6px 14px; display: flex; flex-direction: column; gap: 8px; }
.item { display: grid; grid-template-columns: 54px 1fr; gap: 10px; background: #fff; border-radius: 14px; padding: 10px; border: 1px solid #e5ece8; }
.item img, .item .sem { width: 54px; height: 54px; object-fit: contain; border-radius: 10px; background: var(--f2); display: flex; align-items: center; justify-content: center; color: #b9c9bf; }
.item .nome { font-size: 13px; font-weight: 700; }
.item .linha { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; gap: 6px; }
.item .tot { font-weight: 800; color: var(--v); }
.tirar { border: 0; background: none; color: #b03a2e; font-size: 12px; font-weight: 700; }
.resumo { margin: 8px 14px; background: #fff; border-radius: 16px; padding: 14px; border: 1px solid #e5ece8; }
.resumo .tot { display: flex; justify-content: space-between; font-size: 18px; font-weight: 800; color: var(--v); margin-top: 6px; }
.resumo label { display: block; font-size: 12px; font-weight: 800; color: var(--c); margin: 10px 0 4px; letter-spacing: .4px; }
.resumo select, .resumo textarea, .campo { width: 100%; padding: 11px 12px; border-radius: 10px; border: 1.5px solid #d6e2db; background: #fff; }
.resumo textarea { min-height: 56px; resize: vertical; }
.dica { font-size: 12px; color: var(--v2); font-weight: 700; margin-top: 6px; }
.dica.alerta { color: #a16207; }
.botao { display: block; width: 100%; padding: 15px; border: 0; border-radius: 14px; background: var(--v); color: #fff; font-weight: 800; font-size: 16px; margin-top: 12px; }
.botao.ouro { background: var(--o); color: var(--t); }
.botao.claro { background: #fff; color: var(--v); border: 2px solid var(--v); }
.botao:disabled { opacity: .55; }

.ped { background: #fff; border-radius: 14px; padding: 12px; border: 1px solid #e5ece8; }
.ped .cab { display: flex; justify-content: space-between; font-weight: 800; }
.ped .sit { font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 99px; background: #e8f3ec; color: var(--v); }
.ped small { color: var(--c); display: block; margin-top: 3px; }

.chat { display: flex; flex-direction: column; height: calc(100vh - 150px - var(--sb) - var(--st)); }
.msgs { flex: 1; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; background: #eef3ef; }
.msg { max-width: 80%; padding: 8px 12px; border-radius: 14px; background: #fff; align-self: flex-start; box-shadow: 0 1px 2px rgba(0,0,0,.06); white-space: pre-wrap; word-wrap: break-word; }
.msg.eu { align-self: flex-end; background: #d9f2e2; }
.msg small { display: block; font-size: 10px; color: var(--c); margin-top: 2px; }
.msg b { display: block; font-size: 11px; color: var(--v); }
.escrever { display: flex; gap: 8px; padding: 8px 10px; background: #fff; border-top: 1px solid #e5ece8; }
.escrever textarea { flex: 1; resize: none; height: 44px; padding: 11px 12px; border-radius: 22px; border: 1.5px solid #d6e2db; }
.escrever button { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--v); color: #fff; font-size: 18px; }
.whats { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 8px 14px; padding: 10px; border-radius: 12px; background: #25D366; color: #fff; font-weight: 800; text-decoration: none; }

.abas { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(4, 1fr); background: #fff;
        border-top: 1px solid #e1e8e4; padding-bottom: var(--sb); box-shadow: 0 -2px 12px rgba(0,0,0,.06); }
.abas button { position: relative; border: 0; background: none; padding: 8px 2px 9px; font-size: 11px; font-weight: 700; color: var(--c); }
.abas button i { display: block; font-style: normal; font-size: 20px; }
.abas button.on { color: var(--v); }
.abas button.on::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; background: var(--o); border-radius: 0 0 3px 3px; }
.abas em { position: absolute; top: 4px; right: calc(50% - 22px); min-width: 18px; height: 18px; border-radius: 9px; background: #d93025; color: #fff;
           font: 800 10px/18px system-ui; font-style: normal; padding: 0 4px; }

.rodape { text-align: center; padding: 18px 14px 8px; font-size: 11px; color: var(--c); }
.rodape b { color: var(--v); }
.rodape .loja { margin-bottom: 8px; line-height: 1.6; }

.modal { position: fixed; inset: 0; z-index: 50; background: rgba(10,20,15,.55); display: flex; align-items: flex-end; justify-content: center; }
.modal .caixa { width: 100%; max-width: 520px; max-height: 92vh; overflow-y: auto; background: #fff; border-radius: 22px 22px 0 0; padding: 18px 18px calc(18px + var(--sb)); }
.modal h3 { margin: 0 0 4px; color: var(--v); }
.modal p { margin: 0 0 10px; color: var(--c); font-size: 13px; }
.modal label { display: block; font-size: 12px; font-weight: 800; color: var(--c); margin: 10px 0 4px; }
.modal .troca { background: none; border: 0; color: var(--v); font-weight: 800; margin-top: 10px; width: 100%; padding: 8px; }
.aviso { position: fixed; left: 14px; right: 14px; bottom: calc(80px + var(--sb)); z-index: 60; background: var(--t); color: #fff; padding: 12px 14px; border-radius: 12px; font-weight: 700; text-align: center; }
.aviso.erro { background: #b03a2e; }
.instalar { position: fixed; left: 10px; right: 10px; bottom: calc(76px + var(--sb)); z-index: 40; display: flex; align-items: center; gap: 10px; background: #fff;
            border: 2px solid var(--o); border-radius: 16px; padding: 10px; box-shadow: 0 6px 22px rgba(0,0,0,.18); }
.instalar img { width: 40px; height: 40px; border-radius: 50%; }
.instalar div { flex: 1; font-size: 12px; }
.instalar b { display: block; font-size: 13px; color: var(--v); }
.instalar button { border: 0; border-radius: 10px; padding: 9px 12px; background: var(--v); color: #fff; font-weight: 800; }
.instalar .x { background: none; color: var(--c); padding: 6px; }
.perfil { padding: 14px; }
.perfil .card { background: #fff; border-radius: 16px; padding: 14px; border: 1px solid #e5ece8; }
@media (min-width: 760px) { main { max-width: 1100px; margin: 0 auto; } .cats { grid-template-columns: repeat(6, 1fr); } .heroi { border-radius: 0 0 22px 22px; } }
