/* Nossas Lojas — Japão da Construção (repaginação 13/11/2026) */
:root {
  --vermelho: #d7141c;
  --vermelho-escuro: #a80f15;
  --amarelo: #ffd200;
  --verde: #1f9d55;
  --tinta: #16181d;
  --texto: #2b2f36;
  --suave: #667080;
  --linha: #e6e8ec;
  --fundo: #f5f6f8;
  --cartao: #ffffff;
  --raio: 16px;
  --sombra: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .06);
  --fonte: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.5 var(--fonte); color: var(--texto); background: var(--fundo); }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.caixa { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
:focus-visible { outline: 3px solid var(--amarelo); outline-offset: 2px; }

/* Cabeçalho */
.topo { background: var(--amarelo); position: sticky; top: 0; z-index: 20; box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.topo .caixa { display: flex; align-items: center; gap: 16px; height: 68px; }
.topo .logo img { height: 46px; width: auto; }
.topo nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.topo nav a { text-decoration: none; font-weight: 700; font-size: 15px; padding: 8px 12px; border-radius: 10px; color: var(--tinta); }
.topo nav a:hover { background: rgba(0,0,0,.06); }
.topo .social { width: 38px; height: 38px; padding: 0; display: grid; place-items: center; }
.topo .social svg { width: 20px; height: 20px; }
.topo .comprar { background: var(--vermelho); color: #fff; display: inline-flex; gap: 8px; align-items: center; }
.topo .comprar:hover { background: var(--vermelho-escuro); }
.topo .comprar svg { width: 18px; height: 18px; }

/* Capa */
.capa { position: relative; color: #fff; background: var(--tinta); overflow: hidden; }
.capa::before { content: ""; position: absolute; inset: 0; background: url(img/capa.jpg) center 40% / cover no-repeat; opacity: .42; }
.capa::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(14,15,18,.92) 0%, rgba(14,15,18,.65) 55%, rgba(14,15,18,.25) 100%); }
.capa .caixa { position: relative; z-index: 1; padding-top: 56px; padding-bottom: 64px; }
.selo { display: inline-flex; align-items: center; gap: 8px; background: var(--amarelo); color: var(--tinta); font-weight: 800; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; padding: 6px 12px; border-radius: 99px; }
.capa h1 { font-size: clamp(32px, 5.4vw, 56px); line-height: 1.05; margin: 18px 0 12px; font-weight: 900; letter-spacing: -.02em; max-width: 720px; }
.capa h1 em { font-style: normal; color: var(--amarelo); }
.capa p.sub { font-size: clamp(16px, 1.7vw, 19px); color: #d9dde3; margin: 0 0 28px; max-width: 600px; }
.busca { display: flex; gap: 10px; flex-wrap: wrap; max-width: 720px; }
.busca label { flex: 1 1 320px; position: relative; }
.busca input { width: 100%; height: 56px; border: 0; border-radius: 14px; padding: 0 16px 0 48px; font: inherit; font-size: 17px; color: var(--tinta); background: #fff; }
.busca label svg { position: absolute; left: 16px; top: 18px; width: 20px; height: 20px; color: var(--suave); }
.btn-local { height: 56px; border: 0; border-radius: 14px; padding: 0 20px; background: var(--vermelho); color: #fff; font-weight: 800; display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.btn-local:hover { background: var(--vermelho-escuro); }
.btn-local svg { width: 20px; height: 20px; }
.btn-local[aria-busy="true"] { opacity: .75; cursor: progress; }
.aviso-local { margin: 12px 0 0; font-size: 14px; color: #c8cdd4; min-height: 21px; }
.numeros { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 28px; font-size: 14px; color: #c8cdd4; }
.numeros b { display: block; font-size: 26px; color: #fff; font-weight: 900; line-height: 1.1; }

/* Barra de filtros */
.filtros { position: sticky; top: 68px; z-index: 10; background: rgba(245,246,248,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--linha); }
.filtros .caixa { display: flex; align-items: center; gap: 10px; min-height: 64px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.chips { display: flex; gap: 8px; }
.chip { border: 1px solid var(--linha); background: #fff; border-radius: 99px; padding: 8px 14px; font-weight: 700; font-size: 14px; color: var(--texto); }
.chip[aria-pressed="true"] { background: var(--tinta); color: #fff; border-color: var(--tinta); }
.contagem { color: var(--suave); font-size: 14px; margin-left: 4px; }
.vistas { margin-left: auto; display: inline-flex; background: #fff; border: 1px solid var(--linha); border-radius: 12px; padding: 3px; }
.vistas button { border: 0; background: none; border-radius: 9px; padding: 7px 14px; font-weight: 700; font-size: 14px; color: var(--suave); display: inline-flex; gap: 6px; align-items: center; }
.vistas button svg { width: 16px; height: 16px; }
.vistas button[aria-pressed="true"] { background: var(--vermelho); color: #fff; }

/* Lista */
main { padding: 28px 0 56px; }
.grade { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.grade[hidden], .vazio[hidden] { display: none; }
.loja { background: var(--cartao); border-radius: var(--raio); box-shadow: var(--sombra); overflow: hidden; display: flex; flex-direction: column; scroll-margin-top: 150px; transition: box-shadow .2s, transform .2s; }
.loja:hover { box-shadow: 0 2px 4px rgba(16,24,40,.06), 0 16px 32px rgba(16,24,40,.10); }
.loja.destaque { outline: 3px solid var(--amarelo); }
.loja[hidden] { display: none; }
.foto { position: relative; aspect-ratio: 16 / 10; background: #dfe2e7; }
.foto img { width: 100%; height: 100%; object-fit: cover; }
.foto .uf { position: absolute; top: 12px; left: 12px; background: rgba(22,24,29,.82); color: #fff; font-size: 12px; font-weight: 800; padding: 4px 9px; border-radius: 8px; letter-spacing: .04em; }
.foto .perto { position: absolute; top: 12px; right: 12px; background: var(--amarelo); color: var(--tinta); font-size: 12px; font-weight: 900; padding: 4px 10px; border-radius: 8px; display: none; }
.loja.mais-perto .foto .perto { display: block; }
.corpo { padding: 16px 18px 6px; flex: 1; }
.corpo h2 { margin: 0 0 4px; font-size: 20px; line-height: 1.25; font-weight: 900; color: var(--tinta); }
.endereco { margin: 0 0 12px; color: var(--suave); font-size: 15px; }
.info { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 14px; }
.status { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.status.aberta { color: var(--verde); }
.status.fechada { color: var(--vermelho); }
.status small { font-weight: 600; color: var(--suave); }
.distancia { color: var(--texto); font-weight: 700; }
.distancia:empty { display: none; }
.acoes { display: grid; grid-template-columns: 1fr auto auto auto; gap: 8px; padding: 14px 18px 18px; }
.acao { height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font-weight: 800; font-size: 15px; border: 1px solid var(--linha); background: #fff; color: var(--tinta); padding: 0 14px; }
.acao svg { width: 18px; height: 18px; flex: 0 0 auto; }
.acao:hover { border-color: #c9ced6; background: #fafbfc; }
.acao.rota { background: var(--vermelho); border-color: var(--vermelho); color: #fff; }
.acao.rota:hover { background: var(--vermelho-escuro); }
.acao.whats { background: var(--verde); border-color: var(--verde); color: #fff; width: 44px; padding: 0; }
.acao.whats:hover { background: #17834a; }
.acao.icone { width: 44px; padding: 0; }
.vazio { text-align: center; padding: 48px 16px; color: var(--suave); }
.vazio button { margin-top: 10px; }

/* Mapa */
#mapa { height: min(70vh, 640px); border-radius: var(--raio); box-shadow: var(--sombra); background: #e9ecef; display: grid; place-items: center; color: var(--suave); }
#mapa[hidden] { display: none; }
.pino { width: 30px; height: 30px; border-radius: 50% 50% 50% 0; background: var(--vermelho); transform: rotate(-45deg); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.pino.voce { background: #1a73e8; border-radius: 50%; transform: none; width: 18px; height: 18px; }
.leaflet-popup-content { font-family: var(--fonte); margin: 12px 14px; }
.pop b { display: block; font-size: 16px; color: var(--tinta); }
.pop span { display: block; color: var(--suave); font-size: 13px; margin: 2px 0 8px; }
.pop a { display: inline-block; margin-right: 10px; font-weight: 800; color: var(--vermelho); text-decoration: none; }

/* Faixa final */
.faixa { background: var(--tinta); color: #fff; }
.faixa .caixa { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-top: 40px; padding-bottom: 40px; }
.faixa a.bloco { display: flex; gap: 16px; align-items: center; text-decoration: none; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--raio); padding: 22px; transition: background .2s; }
.faixa a.bloco:hover { background: rgba(255,255,255,.1); }
.faixa a.bloco svg { width: 40px; height: 40px; flex: 0 0 auto; color: var(--amarelo); }
.faixa b { display: block; font-size: 19px; }
.faixa span { color: #c3c8cf; font-size: 15px; }
footer { background: #0e0f12; color: #9aa1ab; font-size: 13px; padding: 20px 0; }
footer .caixa { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* Barra fixa no celular */
.barra-cel { display: none; }

@media (max-width: 760px) {
  .topo .caixa { height: 60px; }
  .topo .logo img { height: 38px; }
  .topo nav .historia, .topo nav .comprar span { display: none; }
  .topo .comprar { width: 40px; height: 40px; padding: 0; justify-content: center; }
  .filtros { top: 60px; }
  .capa .caixa { padding-top: 36px; padding-bottom: 40px; }
  .btn-local { width: 100%; justify-content: center; }
  .numeros { gap: 20px; }
  .grade { grid-template-columns: 1fr; gap: 16px; }
  .filtros .caixa { gap: 8px; flex-wrap: nowrap; min-height: 58px; }
  .chip { padding: 7px 12px; }
  .contagem { display: none; }
  .vistas button { padding: 7px 10px; }
  .vistas button span { display: none; }
  .faixa .caixa { grid-template-columns: 1fr; }
  body { padding-bottom: 68px; }
  .barra-cel { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--linha); padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); gap: 8px; }
  .barra-cel a, .barra-cel button { height: 48px; border-radius: 12px; border: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 12px; font-weight: 800; text-decoration: none; background: var(--fundo); color: var(--tinta); }
  .barra-cel svg { width: 20px; height: 20px; }
  .barra-cel .w { background: var(--verde); color: #fff; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .loja { transition: none; } }
