/* Vendu — estilo marketplace (Shopee) com as cores da marca */
:root {
  --laranja: #f25c05;
  --laranja-2: #ff8a00;
  --laranja-escuro: #d94a00;
  --laranja-claro: #fff1e8;
  --preto: #121110;
  --texto: #222;
  --texto-2: #757575;
  --linha: #ececec;
  --fundo: #f5f5f5;
  --branco: #fff;
  --verde: #12a150;
  --zap: #25d366;
  --raio: 10px;
  --topo-h: 112px;
  --nav-h: 60px;
  --seguro-baixo: env(safe-area-inset-bottom, 0px);
  --grad: linear-gradient(135deg, var(--laranja-2), var(--laranja) 55%, #ee4d00);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px; color: var(--texto); background: #e9e9e9;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.app { max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--fundo); position: relative; padding-bottom: calc(var(--nav-h) + var(--seguro-baixo)); }
.oculto { display: none !important; }

/* ---------- Topo ---------- */
.topo { position: sticky; top: 0; z-index: 30; background: var(--grad); color: #fff; padding: 10px 12px 10px; padding-top: calc(10px + env(safe-area-inset-top, 0px)); }
.topo-linha { display: flex; align-items: center; gap: 10px; }
.topo-linha > a:first-child { flex: none; }
.topo-logo { width: 38px; height: 38px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px rgba(255,255,255,.55); }
.busca { flex: 1; display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 6px; height: 40px; padding: 0 10px; color: var(--texto); }
.busca svg { flex: none; color: var(--laranja); }
.busca input { flex: 1; border: 0; outline: 0; background: transparent; min-width: 0; font-size: 14px; }
.busca input::placeholder { color: #9e9e9e; }
.topo-icone { width: 38px; height: 38px; display: grid; place-items: center; color: #fff; flex: none; position: relative; }
.local-chip { margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #fff; opacity: .97; max-width: 100%; }
.local-chip b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.voltar { width: 34px; height: 38px; display: grid; place-items: center; color: #fff; flex: none; margin-left: -6px; }

/* ---------- Chips de regionais ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 12px; background: #fff; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 32px; padding: 0 14px; border-radius: 16px; border: 1px solid var(--linha); background: #fff; font-size: 13px; color: var(--texto); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.chip.ativo { border-color: var(--laranja); color: var(--laranja); background: var(--laranja-claro); font-weight: 600; }

/* ---------- Banners ---------- */
.banners { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0; background: #fff; padding: 0 12px 12px; scrollbar-width: none; }
.banners::-webkit-scrollbar { display: none; }
.banner { flex: 0 0 100%; scroll-snap-align: center; height: 132px; border-radius: 10px; padding: 18px; color: #fff; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; margin-right: 8px; }
.banner:last-child { margin-right: 0; }
.banner h3 { margin: 0 0 6px; font-size: 20px; line-height: 1.15; font-weight: 700; max-width: 70%; }
.banner p { margin: 0; font-size: 12.5px; opacity: .95; max-width: 68%; }
.banner .b-botao { margin-top: 10px; align-self: flex-start; background: #fff; color: var(--laranja); border-radius: 14px; padding: 4px 12px; font-size: 12px; font-weight: 600; }
.banner::after { content: ''; position: absolute; right: -30px; bottom: -40px; width: 170px; height: 170px; border-radius: 50%; background: rgba(255,255,255,.14); }
.banner .b-emoji { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 54px; z-index: 1; }
.b1 { background: var(--grad); }
.b2 { background: linear-gradient(135deg, #1b1a19, #3a2a20); }
.b3 { background: linear-gradient(135deg, #ff3d3d, #f25c05); }
.pontos { display: flex; gap: 5px; justify-content: center; background: #fff; padding-bottom: 10px; margin-top: -4px; }
.pontos i { width: 6px; height: 6px; border-radius: 3px; background: #ddd; transition: .2s; }
.pontos i.ativo { width: 16px; background: var(--laranja); }

/* ---------- Seções ---------- */
.secao { background: #fff; margin-top: 8px; padding: 12px 0; }
.secao-topo { display: flex; align-items: center; justify-content: space-between; padding: 0 12px 10px; }
.secao-topo h2 { margin: 0; font-size: 15px; font-weight: 700; color: var(--laranja); text-transform: uppercase; letter-spacing: .2px; display: flex; align-items: center; gap: 8px; }
.secao-topo h2.neutro { color: var(--texto); text-transform: none; }
.secao-topo a, .secao-topo button { font-size: 12.5px; color: var(--texto-2); display: flex; align-items: center; gap: 2px; }
.contador { display: inline-flex; gap: 3px; font-size: 12px; }
.contador span { background: var(--preto); color: #fff; border-radius: 3px; padding: 1px 4px; font-weight: 600; min-width: 22px; text-align: center; }

/* Categorias */
.categorias { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-auto-columns: 76px; gap: 10px 4px; overflow-x: auto; padding: 0 8px; scrollbar-width: none; }
.categorias::-webkit-scrollbar { display: none; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 11.5px; line-height: 1.2; color: var(--texto); }
.cat-ic { width: 48px; height: 48px; border-radius: 14px; background: var(--laranja-claro); display: grid; place-items: center; font-size: 24px; border: 1px solid #ffe1cc; }

/* Ofertas (carrossel) */
.linha-scroll { display: flex; gap: 8px; overflow-x: auto; padding: 0 12px 2px; scrollbar-width: none; }
.linha-scroll::-webkit-scrollbar { display: none; }
.oferta { flex: 0 0 116px; }
.oferta .foto { width: 116px; height: 116px; border-radius: 6px; background: #f2f2f2; object-fit: cover; }
.oferta .preco { color: var(--laranja); font-weight: 700; font-size: 15px; margin-top: 6px; text-align: center; }
.barra-vendas { margin-top: 5px; height: 16px; border-radius: 8px; background: #ffd5bd; position: relative; overflow: hidden; color: #fff; font-size: 10px; display: grid; place-items: center; font-weight: 600; }
.barra-vendas i { position: absolute; inset: 0 auto 0 0; background: var(--grad); }
.barra-vendas b { position: relative; font-weight: 600; }

/* Lojas (carrossel) */
.loja-mini { flex: 0 0 132px; border: 1px solid var(--linha); border-radius: 10px; padding: 12px 8px 10px; text-align: center; background: #fff; }
.loja-mini .logo { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 8px; object-fit: cover; background: var(--laranja-claro); display: grid; place-items: center; font-size: 22px; font-weight: 700; color: var(--laranja); border: 1px solid #ffe1cc; }
.loja-mini b { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loja-mini small { display: block; color: var(--texto-2); font-size: 11px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loja-mini .dist { color: var(--laranja); font-weight: 600; }

/* ---------- Grade de produtos ---------- */
.titulo-grade { position: sticky; top: var(--topo-h); z-index: 5; background: #fff; text-align: center; color: var(--laranja); font-weight: 700; font-size: 14px; padding: 12px; margin-top: 8px; border-bottom: 3px solid var(--laranja); text-transform: uppercase; }
.grade { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; }
.card { background: #fff; border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 1px rgba(0,0,0,.05); position: relative; }
.card .foto { aspect-ratio: 1; width: 100%; object-fit: cover; background: #f2f2f2; }
.card .info { padding: 6px 8px 8px; display: flex; flex-direction: column; flex: 1; }
.card .nome { font-size: 12.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 34px; }
.card .preco-linha { display: flex; align-items: baseline; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.preco { color: var(--laranja); font-weight: 600; }
.preco small { font-size: 11px; margin-right: 1px; }
.card .preco { font-size: 16px; }
.riscado { color: #aaa; text-decoration: line-through; font-size: 11px; }
.card .meta { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 6px; font-size: 10.5px; color: var(--texto-2); gap: 4px; }
.card .meta span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.selo-bairro { display: inline-flex; align-items: center; gap: 2px; color: var(--texto-2); }
.selo-bairro svg { color: var(--laranja); flex: none; }
.selo-desc { position: absolute; top: 0; right: 0; background: #ffe97a; color: var(--laranja-escuro); font-size: 11px; font-weight: 700; padding: 3px 5px 4px; text-align: center; line-height: 1.05; border-bottom-left-radius: 4px; }
.selo-desc small { display: block; color: #fff; background: var(--laranja); margin: 3px -5px -4px; padding: 1px 0 2px; font-size: 9.5px; font-weight: 600; }
.selo-perto { position: absolute; left: 0; top: 8px; background: var(--laranja); color: #fff; font-size: 10px; font-weight: 600; padding: 2px 6px 2px 5px; border-radius: 0 3px 3px 0; }
.mais { text-align: center; padding: 14px; color: var(--texto-2); font-size: 12.5px; }
.vazio { text-align: center; padding: 48px 24px; color: var(--texto-2); }
.vazio .grande { font-size: 44px; margin-bottom: 8px; }
.vazio b { display: block; color: var(--texto); font-size: 15px; margin-bottom: 4px; }

/* Esqueleto de carregamento */
.esq { background: linear-gradient(90deg, #eee 25%, #f6f6f6 50%, #eee 75%); background-size: 200% 100%; animation: esq 1.2s infinite; }
@keyframes esq { to { background-position: -200% 0; } }

/* ---------- Barra de filtros (busca) ---------- */
.filtros { position: sticky; top: var(--topo-h); z-index: 6; background: #fff; display: flex; border-bottom: 1px solid var(--linha); }
.filtros button { flex: 1; height: 44px; font-size: 13px; color: var(--texto); position: relative; display: flex; align-items: center; justify-content: center; gap: 4px; }
.filtros button.ativo { color: var(--laranja); font-weight: 600; }
.filtros button.ativo::after { content: ''; position: absolute; left: 20%; right: 20%; bottom: 0; height: 2px; background: var(--laranja); }
.filtros button + button::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 1px; background: var(--linha); }

/* ---------- Cabeçalho de bairro/regional ---------- */
.cab-local { background: #fff; padding: 14px 12px; display: flex; align-items: center; gap: 12px; }
.cab-local .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--laranja-claro); color: var(--laranja); display: grid; place-items: center; flex: none; }
.cab-local h1 { font-size: 17px; margin: 0; line-height: 1.2; }
.cab-local p { margin: 2px 0 0; color: var(--texto-2); font-size: 12.5px; }
.cab-local .btn-mapa { margin-left: auto; flex: none; }

/* ---------- Botões ---------- */
.btn { height: 44px; border-radius: 4px; padding: 0 16px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; }
.btn-laranja { background: var(--laranja); color: #fff; }
.btn-laranja:active { background: var(--laranja-escuro); }
.btn-borda { border: 1px solid var(--laranja); color: var(--laranja); background: #fff; }
.btn-zap { background: var(--zap); color: #fff; }
.btn-peq { height: 32px; padding: 0 12px; font-size: 12.5px; border-radius: 4px; }
.btn-bloco { width: 100%; }
.btn[disabled] { opacity: .6; }

/* ---------- Produto ---------- */
.galeria { position: relative; background: #fff; }
.galeria-fotos { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.galeria-fotos::-webkit-scrollbar { display: none; }
.galeria-fotos img { flex: 0 0 100%; aspect-ratio: 1; object-fit: cover; scroll-snap-align: center; background: #f2f2f2; }
.galeria-n { position: absolute; right: 12px; bottom: 12px; background: rgba(0,0,0,.45); color: #fff; font-size: 12px; padding: 2px 10px; border-radius: 12px; }
.flutua { position: absolute; top: calc(10px + env(safe-area-inset-top, 0px)); z-index: 3; width: 36px; height: 36px; border-radius: 50%; background: rgba(0,0,0,.35); color: #fff; display: grid; place-items: center; }
.flutua.esq-pos { left: 10px; } .flutua.dir-pos { right: 10px; }
.p-info { background: #fff; padding: 12px; }
.p-preco { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.p-preco .preco { font-size: 24px; }
.p-preco .tag { background: var(--laranja); color: #fff; font-size: 11px; font-weight: 600; padding: 1px 5px; border-radius: 2px; }
.p-titulo { font-size: 16px; line-height: 1.4; margin: 8px 0 6px; font-weight: 500; }
.p-sub { display: flex; gap: 12px; color: var(--texto-2); font-size: 12.5px; align-items: center; flex-wrap: wrap; }
.p-sub .cod { background: var(--fundo); padding: 2px 6px; border-radius: 3px; font-size: 11.5px; letter-spacing: .3px; }
.bloco { background: #fff; margin-top: 8px; padding: 12px; }
.bloco h3 { margin: 0 0 10px; font-size: 14px; font-weight: 600; }
.desc { white-space: pre-line; line-height: 1.6; font-size: 13.5px; color: #333; }
.var-nome { font-size: 13px; color: var(--texto-2); margin: 4px 0 8px; }
.var-ops { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.var-op { min-width: 44px; height: 34px; padding: 0 12px; border: 1px solid #ddd; border-radius: 4px; background: #fff; font-size: 13px; }
.var-op.ativo { border-color: var(--laranja); color: var(--laranja); background: var(--laranja-claro); position: relative; }
.qtd { display: inline-flex; align-items: center; border: 1px solid #ddd; border-radius: 4px; }
.qtd button { width: 36px; height: 34px; font-size: 18px; color: var(--texto-2); }
.qtd span { width: 42px; text-align: center; border-left: 1px solid #ddd; border-right: 1px solid #ddd; line-height: 34px; }
.loja-card { display: flex; align-items: center; gap: 12px; }
.loja-card .logo { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; background: var(--laranja-claro); display: grid; place-items: center; font-weight: 700; font-size: 22px; color: var(--laranja); flex: none; border: 1px solid #ffe1cc; }
.loja-card b { display: block; font-size: 15px; }
.loja-card small { color: var(--texto-2); font-size: 12px; display: flex; align-items: center; gap: 3px; margin-top: 2px; }
.loja-card .btn { margin-left: auto; flex: none; }
.mini-mapa { height: 150px; border-radius: 8px; margin-top: 12px; overflow: hidden; background: #e8eef0; z-index: 0; }

.barra-compra { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; z-index: 40; display: flex; background: #fff; border-top: 1px solid var(--linha); padding-bottom: var(--seguro-baixo); }
.barra-compra .acao { width: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 10.5px; color: var(--texto-2); height: 54px; border-right: 1px solid var(--linha); }
.barra-compra .acao.ativo { color: var(--laranja); }
.barra-compra .comprar { flex: 1; background: var(--grad); color: #fff; font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 8px; height: 54px; }
.barra-compra .comprar[disabled] { background: #bbb; }

/* ---------- Loja ---------- */
.capa { height: 150px; background: var(--grad); background-size: cover; background-position: center; position: relative; }
.capa::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0,0,0,.45)); }
.loja-cab { background: #fff; padding: 0 12px 12px; position: relative; }
.loja-cab .logo { width: 76px; height: 76px; border-radius: 50%; border: 3px solid #fff; margin-top: -38px; position: relative; z-index: 2; object-fit: cover; background: var(--laranja-claro); display: grid; place-items: center; font-size: 30px; font-weight: 700; color: var(--laranja); box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.loja-cab h1 { margin: 8px 0 2px; font-size: 19px; }
.loja-cab .linha-info { color: var(--texto-2); font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.loja-cab .linha-info span { display: inline-flex; align-items: center; gap: 4px; }
.loja-acoes { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 12px; }
.loja-acoes .btn { height: 38px; font-size: 12.5px; padding: 0 6px; }
.sobre { margin-top: 10px; font-size: 13px; color: #444; line-height: 1.5; white-space: pre-line; }

/* ---------- Mapa ---------- */
.mapa-tela { position: fixed; inset: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; z-index: 20; background: #e8eef0; }
#mapa { position: absolute; inset: 0; bottom: calc(var(--nav-h) + var(--seguro-baixo)); z-index: 1; }
.mapa-topo { position: absolute; top: 0; left: 0; right: 0; z-index: 500; padding: 10px 12px 0; padding-top: calc(10px + env(safe-area-inset-top, 0px)); pointer-events: none; }
.mapa-topo > * { pointer-events: auto; }
.mapa-topo .busca { box-shadow: 0 2px 10px rgba(0,0,0,.18); height: 44px; border-radius: 22px; padding: 0 14px; }
.mapa-topo .chips { background: transparent; padding: 10px 0 4px; }
.mapa-topo .chip { box-shadow: 0 1px 4px rgba(0,0,0,.18); border-color: transparent; }
.mapa-topo .chip.ativo { background: var(--laranja); color: #fff; }
.mapa-botoes { position: absolute; right: 12px; z-index: 500; bottom: calc(var(--nav-h) + var(--seguro-baixo) + 16px); display: flex; flex-direction: column; gap: 10px; transition: bottom .25s; }
.mapa-btn { width: 46px; height: 46px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.22); display: grid; place-items: center; color: var(--laranja); }
.mapa-legenda { position: absolute; left: 12px; z-index: 500; bottom: calc(var(--nav-h) + var(--seguro-baixo) + 16px); background: rgba(255,255,255,.95); border-radius: 8px; padding: 6px 10px; font-size: 11px; box-shadow: 0 1px 6px rgba(0,0,0,.15); display: grid; grid-template-columns: auto auto; gap: 2px 10px; }
.mapa-legenda i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.pin { width: 40px; height: 40px; border-radius: 50% 50% 50% 0; background: var(--laranja); transform: rotate(-45deg); display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0,0,0,.3); border: 2px solid #fff; }
.pin > * { transform: rotate(45deg); }
.pin img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: #fff; }
.pin span { color: #fff; font-weight: 700; font-size: 15px; }
.pin-preco { background: var(--laranja); color: #fff; font-weight: 700; font-size: 12px; padding: 4px 8px; border-radius: 12px; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); white-space: nowrap; position: relative; display: inline-block; }
.pin-preco::after { content: ''; position: absolute; left: 50%; bottom: -7px; margin-left: -5px; border: 5px solid transparent; border-top-color: #fff; }
.pin-eu { width: 18px; height: 18px; border-radius: 50%; background: #1a73e8; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(26,115,232,.25); }
.rotulo-bairro { background: transparent; border: 0; box-shadow: none; color: #333; font-weight: 600; font-size: 11px; text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff; }
.rotulo-bairro::before { display: none; }

/* ---------- Gavetas (bottom sheet) ---------- */
.fundo-escuro { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 900; opacity: 0; transition: opacity .2s; }
.fundo-escuro.aberto { opacity: 1; }
.gaveta { position: fixed; left: 50%; bottom: 0; transform: translate(-50%, 100%); width: 100%; max-width: 480px; background: #fff; z-index: 901; border-radius: 14px 14px 0 0; max-height: 86vh; display: flex; flex-direction: column; transition: transform .25s ease-out; padding-bottom: var(--seguro-baixo); }
.gaveta.aberta { transform: translate(-50%, 0); }
.gaveta-alca { width: 38px; height: 4px; border-radius: 2px; background: #ddd; margin: 8px auto 2px; flex: none; }
.gaveta-cab { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px 10px; flex: none; }
.gaveta-cab h3 { margin: 0; font-size: 16px; }
.gaveta-corpo { overflow-y: auto; padding: 0 16px 16px; }
.gaveta.mapa-gaveta { z-index: 600; max-height: 62vh; bottom: calc(var(--nav-h) + var(--seguro-baixo)); padding-bottom: 0; box-shadow: 0 -4px 16px rgba(0,0,0,.15); }

.lista-bairros { list-style: none; margin: 0; padding: 0; }
.lista-bairros li button { width: 100%; text-align: left; padding: 12px 2px; border-bottom: 1px solid var(--linha); display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.lista-bairros li button small { color: var(--texto-2); font-size: 12px; }
.lista-bairros li button.ativo { color: var(--laranja); font-weight: 600; }
.campo-busca { width: 100%; height: 42px; border: 1px solid #ddd; border-radius: 6px; padding: 0 12px; outline: 0; margin-bottom: 8px; }
.campo-busca:focus { border-color: var(--laranja); }
.op-gps { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px; border-radius: 8px; background: var(--laranja-claro); color: var(--laranja); font-weight: 600; margin-bottom: 10px; }

/* Formulário (pedido) */
.form-campo { display: block; margin-bottom: 12px; }
.form-campo span { display: block; font-size: 12.5px; color: var(--texto-2); margin-bottom: 4px; }
.form-campo input, .form-campo select, .form-campo textarea { width: 100%; height: 44px; border: 1px solid #ddd; border-radius: 6px; padding: 0 12px; background: #fff; outline: 0; font-size: 15px; }
.form-campo textarea { height: auto; padding: 10px 12px; min-height: 90px; resize: vertical; }
.form-campo input:focus, .form-campo select:focus, .form-campo textarea:focus { border-color: var(--laranja); }
.resumo-pedido { display: flex; gap: 10px; padding: 10px; background: var(--fundo); border-radius: 8px; margin-bottom: 14px; }
.resumo-pedido img { width: 64px; height: 64px; border-radius: 6px; object-fit: cover; }
.resumo-pedido b { font-size: 13px; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.aviso-zap { font-size: 12px; color: var(--texto-2); text-align: center; margin-top: 10px; }

/* ---------- Navegação inferior ---------- */
.nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; height: calc(var(--nav-h) + var(--seguro-baixo)); padding-bottom: var(--seguro-baixo); background: #fff; border-top: 1px solid var(--linha); display: flex; z-index: 700; }
.nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 10.5px; color: var(--texto-2); }
.nav a.ativo { color: var(--laranja); }
.nav a.ativo svg { stroke-width: 2.3; }

/* Conta */
.conta-cab { background: var(--grad); color: #fff; padding: 28px 16px 22px; padding-top: calc(28px + env(safe-area-inset-top, 0px)); display: flex; align-items: center; gap: 14px; }
.conta-cab img { width: 64px; height: 64px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(255,255,255,.5); }
.conta-cab h1 { font-size: 18px; margin: 0; }
.conta-cab p { margin: 2px 0 0; font-size: 12.5px; opacity: .9; }
.menu-lista a, .menu-lista button { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border-bottom: 1px solid var(--linha); width: 100%; text-align: left; font-size: 14px; }
.menu-lista .ic { width: 34px; height: 34px; border-radius: 8px; background: var(--laranja-claro); color: var(--laranja); display: grid; place-items: center; flex: none; }
.menu-lista small { display: block; color: var(--texto-2); font-size: 12px; }
.menu-lista .seta { margin-left: auto; color: #bbb; }
.destaque-lojista { margin: 12px; border-radius: 12px; background: var(--preto); color: #fff; padding: 18px; position: relative; overflow: hidden; }
.destaque-lojista h2 { margin: 0 0 6px; font-size: 18px; }
.destaque-lojista p { margin: 0 0 14px; font-size: 13px; opacity: .85; max-width: 80%; }
.destaque-lojista::after { content: '🛍️'; position: absolute; right: 12px; top: 10px; font-size: 46px; opacity: .9; }
.rodape { text-align: center; color: var(--texto-2); font-size: 11.5px; padding: 18px 12px 24px; }
.rodape a { color: var(--laranja); font-weight: 600; }

/* Aviso rápido */
.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 76px); transform: translateX(-50%); background: rgba(0,0,0,.82); color: #fff; padding: 10px 16px; border-radius: 6px; font-size: 13px; z-index: 2000; max-width: 88%; text-align: center; animation: sobe .2s; }
@keyframes sobe { from { opacity: 0; transform: translate(-50%, 8px); } }

@media (min-width: 481px) {
  body { padding: 0; }
  .app { box-shadow: 0 0 24px rgba(0,0,0,.08); }
}

/* ---------- Partes só do computador / só do celular ---------- */
.so-desk, .topo-nav, .miniaturas, .mapa-casa { display: none; }
.espaco-barra { height: 70px; }

/* ================= COMPUTADOR (a partir de 900px) ================= */
@media (min-width: 900px) {
  .comprador {
    --nav-h: 0px;
    --topo-h: 72px;
    background: var(--fundo);
  }
  .comprador .app { max-width: 1200px; box-shadow: none; padding-bottom: 0; }
  .comprador .nav, .comprador .so-mob, .comprador .flutua { display: none !important; }
  .comprador .so-desk { display: contents; }

  /* Topo em uma linha, faixa laranja de ponta a ponta */
  .comprador .topo {
    display: flex; align-items: center; gap: 18px; padding: 14px 24px; min-height: var(--topo-h);
    box-shadow: 0 0 0 100vmax #f46a05; clip-path: inset(0 -100vmax);
  }
  .comprador .topo-linha { flex: 1; min-width: 0; }
  .comprador .topo-logo { width: 44px; height: 44px; }
  .comprador .busca { height: 44px; max-width: 640px; }
  .comprador .local-chip { margin: 0; flex: none; background: rgba(255,255,255,.16); padding: 8px 12px; border-radius: 22px; }
  .comprador .local-chip:hover { background: rgba(255,255,255,.26); }
  .comprador .topo-nav { display: flex; align-items: center; gap: 4px; flex: none; }
  .comprador .topo-nav a { color: #fff; font-weight: 500; font-size: 14px; padding: 8px 12px; border-radius: 8px; display: flex; align-items: center; gap: 6px; }
  .comprador .topo-nav a:hover { background: rgba(255,255,255,.16); }
  .comprador .topo-nav .topo-vender { background: #fff; color: var(--laranja); font-weight: 600; margin-left: 6px; }
  .comprador .topo-nav .topo-vender:hover { background: #fff3ea; }

  /* Home */
  .comprador .chips { padding: 14px 24px; background: transparent; }
  .comprador .banners { padding: 0 24px 12px; background: transparent; gap: 12px; }
  .comprador .banner { flex: 0 0 calc(50% - 6px); height: 220px; padding: 32px; margin-right: 0; }
  .comprador .banner h3 { font-size: 28px; }
  .comprador .banner p { font-size: 15px; }
  .comprador .banner .b-emoji { font-size: 84px; right: 32px; }
  .comprador .pontos { display: none; }
  .comprador .secao { margin: 12px 24px 0; border-radius: 10px; padding: 16px 0; }
  .comprador .secao-topo { padding: 0 16px 12px; }
  .comprador .categorias { grid-auto-flow: row; grid-template-rows: none; grid-template-columns: repeat(12, 1fr); padding: 0 12px; overflow: visible; }
  .comprador .cat:hover .cat-ic { border-color: var(--laranja); transform: translateY(-2px); }
  .comprador .cat-ic { transition: .15s; width: 56px; height: 56px; font-size: 28px; }
  .comprador .linha-scroll { padding: 0 16px 2px; gap: 12px; }
  .comprador .oferta { flex: 0 0 160px; }
  .comprador .oferta .foto { width: 160px; height: 160px; }
  .comprador .loja-mini { flex: 0 0 160px; transition: .15s; }
  .comprador .loja-mini:hover { border-color: var(--laranja); box-shadow: 0 4px 14px rgba(0,0,0,.08); }
  .comprador .titulo-grade { margin: 16px 24px 0; border-radius: 10px 10px 0 0; }
  .comprador .grade { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; padding: 12px 24px; }
  .comprador .card { border-radius: 6px; transition: transform .15s, box-shadow .15s; }
  .comprador .card:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0,0,0,.12); outline: 1px solid var(--laranja); }
  .comprador .card .nome { font-size: 13.5px; }
  .comprador .cab-local { margin: 12px 24px 0; border-radius: 10px; padding: 18px; }
  .comprador .filtros { margin: 0 24px; border-radius: 0 0 10px 10px; }
  .comprador .mais { padding: 20px; }

  /* Produto: foto à esquerda, compra à direita */
  .comprador .p-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin: 16px 24px 0; background: #fff; border-radius: 10px; padding: 20px; }
  .comprador .p-col-foto { min-width: 0; }
  .comprador .galeria { border-radius: 8px; overflow: hidden; }
  .comprador .miniaturas { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
  .comprador .miniaturas button { width: 72px; height: 72px; border: 2px solid transparent; border-radius: 6px; overflow: hidden; flex: none; }
  .comprador .miniaturas button.ativo { border-color: var(--laranja); }
  .comprador .miniaturas img { width: 100%; height: 100%; object-fit: cover; }
  .comprador .p-col-info { min-width: 0; display: flex; flex-direction: column; }
  .comprador .p-col-info .p-info { padding: 0; display: flex; flex-direction: column; }
  .comprador .p-titulo { margin-top: 0; }
  .comprador .p-titulo { font-size: 22px; order: -1; }
  .comprador .p-preco { background: var(--fundo); padding: 14px 16px; border-radius: 6px; margin-top: 10px; }
  .comprador .p-preco .preco { font-size: 30px; }
  .comprador .p-col-info .bloco { padding: 16px 0 0; margin: 0; }
  .comprador .barra-compra { position: static; transform: none; max-width: none; border: 0; padding: 20px 0 0; gap: 10px; }
  .comprador .barra-compra .acao { width: auto; flex-direction: row; gap: 6px; padding: 0 16px; height: 48px; border: 1px solid var(--linha); border-radius: 6px; font-size: 13px; }
  .comprador .barra-compra .comprar { height: 48px; border-radius: 6px; max-width: 320px; }
  .comprador .espaco-barra { height: 24px; }
  .comprador .bloco { margin: 12px 24px 0; border-radius: 10px; padding: 18px; }
  .comprador .titulo-grade[style*="static"] { margin-top: 16px; }

  /* Loja */
  .comprador .capa { height: 260px; margin: 16px 24px 0; border-radius: 10px 10px 0 0; overflow: hidden; }
  .comprador .loja-cab { margin: 0 24px; border-radius: 0 0 10px 10px; padding: 0 24px 20px; }
  .comprador .loja-cab .logo { width: 110px; height: 110px; margin-top: -55px; }
  .comprador .loja-cab h1 { font-size: 24px; }
  .comprador .loja-acoes { max-width: 520px; }

  /* Mapa em tela cheia com painel lateral */
  .comprador .mapa-tela { max-width: none; left: 0; transform: none; }
  .comprador .mapa-topo { padding: 16px 24px 0; max-width: 720px; }
  .comprador .mapa-linha { display: flex; gap: 12px; align-items: center; }
  .comprador .mapa-casa { display: block; flex: none; }
  .comprador .mapa-casa img { width: 46px; height: 46px; border-radius: 50%; box-shadow: 0 2px 10px rgba(0,0,0,.2); }
  .comprador .mapa-linha .busca { flex: 1; max-width: none; }
  .comprador .mapa-botoes { right: 24px; bottom: 32px !important; }
  .comprador .mapa-legenda { left: auto; right: 84px; bottom: 32px; display: grid !important; }
  .comprador .gaveta.mapa-gaveta {
    left: 24px; bottom: 24px; width: 400px; max-height: calc(100vh - 170px); border-radius: 14px;
    transform: translateX(-130%); transition: transform .25s ease-out;
  }
  .comprador .gaveta.mapa-gaveta.aberta { transform: none; }

  /* Gavetas viram janelas no centro da tela */
  .comprador .gaveta:not(.mapa-gaveta) {
    top: 50%; bottom: auto; width: 520px; border-radius: 14px; max-height: 84vh;
    transform: translate(-50%, -46%); opacity: 0; transition: transform .2s, opacity .2s;
  }
  .comprador .gaveta:not(.mapa-gaveta).aberta { transform: translate(-50%, -50%); opacity: 1; }
  .comprador .gaveta-alca { display: none; }
  .comprador .gaveta-cab { padding-top: 16px; }

  /* Conta / favoritos */
  .comprador .conta-cab { margin: 16px 24px 0; border-radius: 10px; }
  .comprador .destaque-lojista { margin: 12px 24px; }
  .comprador .menu-lista { margin: 0 24px; border-radius: 10px; overflow: hidden; }
  .comprador .menu-lista a:hover, .comprador .menu-lista button:hover { background: #fffaf6; }
  .comprador .toast { bottom: 32px; }
  .comprador .rodape { padding: 28px 24px 36px; }
}
@media (min-width: 1200px) {
  .comprador .banner { flex-basis: calc(33.333% - 8px); }
}
