/* Replica do layout SW Now usado pela Giralda Rio Claro */
:root {
  --cor-base: #661926;
  --cor-base-escura: #4f111c;
  --texto: #333;
  --texto-suave: #666;
  --linha: #e6e6e6;
  --fundo-cinza: #f2f2f2;
  --verde: #1b8a3a;
  --largura: 900px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  font-family: Montserrat, Roboto, sans-serif;
  color: var(--texto);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font-family: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }

/* Topo */
.topo { position: sticky; top: 0; z-index: 30; background: #fff; }
.topo-in {
  max-width: var(--largura); margin: 0 auto; height: 55px;
  display: grid; grid-template-columns: 48px 1fr 48px; align-items: center;
}
.topo-logo { justify-self: center; }
.topo-logo img { height: 40px; width: auto; }
.icone-btn {
  width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center; border-radius: 50%;
}
.icone-btn:hover { background: #f4f4f4; }
.icone-btn svg { width: 24px; height: 24px; fill: #222; }
#btn-voltar { grid-column: 1; }
#btn-menu { grid-column: 3; }

.titulo-pagina {
  max-width: var(--largura); margin: 0 auto; background: var(--cor-base); color: #fff;
  text-align: center; font-size: 16px; font-weight: 500; padding: 7px 16px;
  border-radius: 0 0 14px 14px; box-shadow: 0 4px 10px rgba(0,0,0,.12);
  position: sticky; top: 55px; z-index: 20;
}

/* Gaveta */
.gaveta { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.gaveta-fundo { position: absolute; inset: 0; background: rgba(0,0,0,.4); opacity: 0; transition: opacity .2s; }
.gaveta-painel {
  position: absolute; right: 0; top: 0; bottom: 0; width: 280px; background: #fff;
  transform: translateX(100%); transition: transform .25s; padding: 20px;
  display: flex; flex-direction: column; gap: 4px;
}
.gaveta-logo { width: 140px; margin: 0 auto 18px; }
.gaveta-painel a { text-decoration: none; padding: 12px 8px; border-radius: 8px; font-size: 15px; }
.gaveta-painel a:hover { background: var(--fundo-cinza); }
.gaveta.aberta { pointer-events: auto; }
.gaveta.aberta .gaveta-fundo { opacity: 1; }
.gaveta.aberta .gaveta-painel { transform: none; }

.app { max-width: var(--largura); margin: 0 auto; padding-bottom: 110px; }

/* Banner */
.banner { position: relative; overflow: hidden; background: #eee; aspect-ratio: 4 / 1; }
.banner-trilho { display: flex; height: 100%; transition: transform .4s; }
.banner-trilho img { width: 100%; height: 100%; object-fit: cover; flex: 0 0 100%; }
.banner-seta {
  position: absolute; top: 50%; transform: translateY(-50%); border: 0; background: none;
  color: #fff; font-size: 28px; cursor: pointer; opacity: .8; padding: 8px 14px;
}
.banner-seta.esq { left: 52px; }
.banner-seta.dir { right: 52px; }
.banner-pontos { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.banner-pontos span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.5); }
.banner-pontos span.ativo { background: #fff; }

/* Cartao da loja */
.card-loja {
  position: relative; margin: -20px 16px 0; background: #fff; border-radius: 16px;
  border: 1px solid #ececec; padding: 14px 16px 12px; z-index: 2;
}
.card-loja-status { display: flex; justify-content: space-between; align-items: center; font-size: 11px; }
.status { display: flex; align-items: center; gap: 5px; font-weight: 500; color: #222; }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--verde); }
.status.fechado::before { background: #c62828; }
.link-sobre { color: var(--cor-base); text-decoration: none; font-size: 11px; font-weight: 500; }
.card-loja h1 { font-size: 17px; font-weight: 500; margin: 10px 0 3px; }
.card-loja-end { font-size: 10px; color: var(--texto-suave); text-transform: uppercase; margin: 0 0 10px; }
.card-loja-info {
  border-top: 1px solid var(--linha); padding-top: 8px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; font-size: 11px; color: var(--texto-suave);
}
.card-loja-info span { display: flex; align-items: center; gap: 6px; }
.card-loja-info svg { width: 13px; height: 13px; fill: #555; flex: none; }
.card-loja-info button { border: 0; background: none; padding: 0; color: var(--cor-base); cursor: pointer; font-size: 11px; }

/* Busca */
.busca { margin: 12px 16px 0; position: relative; }
.busca input {
  width: 100%; border: 0; background: var(--fundo-cinza); border-radius: 8px;
  height: 45px; padding: 0 14px 0 45px; font-size: 16px; color: var(--texto);
}
.busca input:focus { outline: 2px solid var(--cor-base); }
.busca svg { position: absolute; left: 10px; top: 11px; width: 22px; height: 22px; fill: #777; }

/* Abas */
.abas {
  position: sticky; top: 55px; z-index: 15; background: #fff; margin-top: 18px;
  display: flex; overflow-x: auto; scrollbar-width: none; padding: 0 16px;
}
.abas::-webkit-scrollbar { display: none; }
.abas a {
  flex: none; padding: 14px 16px 12px; font-size: 15px; text-decoration: none; color: #666;
  border-bottom: 3px solid transparent; white-space: nowrap;
}
.abas a.ativa { color: var(--cor-base); border-color: var(--cor-base); }

/* Lista de produtos */
.categoria { padding: 0 16px; scroll-margin-top: 110px; }
.categoria h2 {
  font-size: 19px; font-weight: 500; margin: 34px 0 0; padding-bottom: 14px;
  border-bottom: 1px solid var(--linha); color: #1a1a1a;
}
.produto {
  display: flex; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--linha);
  text-decoration: none; color: inherit; cursor: pointer;
}
.produto-txt { flex: 1; min-width: 0; padding-top: 8px; }
.produto-nome { font-size: 15px; font-weight: 400; margin: 0 0 12px; color: #333; text-transform: uppercase; }
.produto-desc { font-size: 13px; color: var(--texto-suave); margin: 0 0 12px; line-height: 1.25; }
.preco { font-size: 15px; color: #333; }
.preco s { color: #777; font-size: 13px; margin-left: 4px; }
.produto img { width: 149px; height: 113px; object-fit: cover; flex: none; }
.indisponivel { opacity: .5; pointer-events: none; }
.vazio { text-align: center; color: var(--texto-suave); padding: 40px 16px; }

/* Detalhe do produto */
.detalhe-img { width: 100%; max-height: 340px; object-fit: cover; margin-top: 12px; }
.detalhe-info { padding: 14px 16px 20px; }
.detalhe-info h2 { font-size: 15px; font-weight: 400; margin: 0 0 8px; text-transform: uppercase; }
.detalhe-info p { font-size: 13px; margin: 0 0 16px; }
.etapa-topo {
  background: var(--fundo-cinza); padding: 18px 16px; display: flex; justify-content: space-between; align-items: center;
}
.etapa-topo strong { display: block; font-weight: 500; font-size: 15px; }
.etapa-topo small { font-size: 12px; }
.selo { background: var(--cor-base); color: #fff; font-size: 12px; padding: 3px 5px; border-radius: 3px; }
.selo.ok { background: var(--verde); }
.opcao { display: flex; gap: 10px; padding: 14px 16px; align-items: flex-start; }
.opcao img { width: 40px; height: 36px; object-fit: cover; flex: none; }
.opcao-txt { flex: 1; }
.opcao-txt b { font-weight: 400; font-size: 15px; display: block; margin-bottom: 8px; }
.opcao-txt span { font-size: 12px; color: #444; }
.contador { display: flex; align-items: center; gap: 4px; flex: none; }
.contador button {
  width: 32px; height: 32px; border: 0; background: none; cursor: pointer; font-size: 22px;
  color: var(--cor-base); display: grid; place-items: center; line-height: 1;
}
.contador button:disabled { opacity: .35; cursor: default; }
.contador output { min-width: 18px; text-align: center; font-size: 14px; }
.obs { padding: 26px 16px; }
.obs label { display: block; font-size: 15px; font-weight: 500; margin-bottom: 8px; }
.obs textarea {
  width: 100%; min-height: 134px; border: 1px solid #555; border-radius: 3px; padding: 12px; font-size: 16px; resize: vertical;
}

.rodape-acao {
  position: fixed; bottom: 0; left: 0; right: 0; background: #fff; z-index: 25;
  box-shadow: 0 -2px 8px rgba(0,0,0,.06);
}
.rodape-acao-in { max-width: var(--largura); margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; gap: 10px; }
.btn-principal {
  flex: 1; height: 40px; border: 0; border-radius: 10px; background: var(--cor-base); color: #fff;
  font-size: 14px; display: flex; justify-content: space-between; align-items: center; padding: 0 16px; cursor: pointer;
  text-decoration: none;
}
.btn-principal:hover { background: var(--cor-base-escura); }
.btn-principal:disabled { background: #b9a1a5; cursor: not-allowed; }
.btn-principal.centro { justify-content: center; }

/* Barra da sacola */
.barra-sacola { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: #fff; box-shadow: 0 -2px 8px rgba(0,0,0,.08); }
.barra-sacola-btn {
  max-width: calc(var(--largura) - 32px); margin: 12px auto; height: 44px; border-radius: 10px; background: var(--cor-base); color: #fff;
  display: flex; align-items: center; justify-content: space-between; padding: 0 16px; text-decoration: none; font-size: 14px;
}
@media (max-width: 932px) { .barra-sacola-btn { margin: 12px 16px; } }
.barra-qtd { background: rgba(255,255,255,.2); border-radius: 50%; min-width: 24px; height: 24px; display: grid; place-items: center; font-size: 12px; }

/* Sobre */
.sobre-fundo { background: var(--fundo-cinza); min-height: calc(100vh - 90px); padding: 16px; }
.sobre-card { background: #fff; border-radius: 10px; padding: 18px 16px; }
.sobre-card h2 { font-weight: 400; font-size: 19px; margin: 0 0 22px; display: inline-block; padding-bottom: 8px; border-bottom: 2px solid #555; }
.sobre-card h3 { font-weight: 400; font-size: 15px; margin: 0 0 16px; }
.horario { display: grid; grid-template-columns: 22px 138px auto; font-size: 14px; color: #555; padding: 6px 0; align-items: center; }
.horario svg { width: 15px; height: 15px; fill: #555; }
.horario.hoje { font-weight: 600; color: #222; }
.sobre-end { font-size: 14px; color: #555; line-height: 1.6; }

/* Sacola / checkout */
.secao { padding: 18px 16px; border-bottom: 8px solid var(--fundo-cinza); }
.secao h3 { font-size: 15px; font-weight: 500; margin: 0 0 12px; }
.item-sacola { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--linha); }
.item-sacola:last-child { border-bottom: 0; }
.item-sacola img { width: 64px; height: 56px; object-fit: cover; }
.item-sacola-txt { flex: 1; font-size: 13px; }
.item-sacola-txt b { font-weight: 500; text-transform: uppercase; display: block; margin-bottom: 4px; }
.item-sacola-txt small { color: var(--texto-suave); display: block; }
.item-sacola-dir { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 14px; }
.linha-total { display: flex; justify-content: space-between; font-size: 14px; padding: 4px 0; }
.linha-total.grande { font-size: 16px; font-weight: 600; }
.aviso { background: #fff4e5; color: #8a4b00; font-size: 13px; padding: 10px 12px; border-radius: 8px; margin-top: 10px; }
.opcoes-radio { display: grid; gap: 8px; }
.opcoes-radio label {
  display: flex; align-items: center; gap: 10px; border: 1px solid var(--linha); border-radius: 8px; padding: 12px; font-size: 14px; cursor: pointer;
}
.opcoes-radio input { accent-color: var(--cor-base); width: 18px; height: 18px; }
.opcoes-radio label:has(input:checked) { border-color: var(--cor-base); background: #fbf5f6; }
.campo { display: block; margin-bottom: 12px; }
.campo span { display: block; font-size: 12px; color: var(--texto-suave); margin-bottom: 4px; }
.campo input, .campo select {
  width: 100%; height: 44px; border: 1px solid #bbb; border-radius: 6px; padding: 0 12px; font-size: 16px; background: #fff;
}
.campo input:focus, .campo select:focus { outline: 2px solid var(--cor-base); border-color: transparent; }
.grade-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.link-simples { border: 0; background: none; color: var(--cor-base); cursor: pointer; font-size: 13px; padding: 4px 0; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; background: rgba(0,0,0,.45); padding: 16px; }
.modal-caixa { background: #fff; border-radius: 12px; padding: 20px; width: min(420px, 100%); }
.modal-caixa h3 { margin: 0 0 12px; font-weight: 500; }
.modal-caixa p { font-size: 14px; color: #555; }

.toast {
  position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: #323232; color: #fff; padding: 10px 18px; border-radius: 6px; font-size: 14px; transition: .25s; z-index: 80;
}
.toast.visivel { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 600px) {
  .topo-logo img { height: 36px; }
  .banner-seta.esq { left: 4px; }
  .banner-seta.dir { right: 4px; }
  .card-loja h1 { font-size: 16px; }
  .categoria h2 { font-size: 19px; }
  .produto img { width: 96px; height: 96px; }
  .produto-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .abas a { font-size: 14px; }
}

/* Integracao com o PDV da loja */
.info-frete { font-size: 13px; color: #1e7b3a; margin: -4px 0 10px; }
.info-frete:empty { display: none; }
.info-frete.erro { color: #b3261e; }
.pedido-num { font-size: 14px; color: var(--texto-suave); }
.pedido-fase { font-size: 22px; font-weight: 600; color: var(--cor-base); margin: 4px 0 6px; }
.pedido-fase.cancelado { color: #b3261e; }
.texto-suave { color: var(--texto-suave); }
