/* NexDelivery — front do cliente, mobile-first estilo iFood.
   Cor primaria vem do config da loja (JS injeta --cor / --cor-suave / --cor-escura). */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
  --cor: #e63946;
  --cor-suave: #e6394614;
  --cor-escura: #c92a37;
  --txt: #2b2b2b;
  --txt-2: #717171;
  --linha: #ececec;
  --fundo: #f2f3f5;
  --verde: #1f9e54;
  --zap: #1faa59;
}

html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--fundo);
  color: var(--txt);
  font-size: 15px;
  line-height: 1.45;
}

#app {
  max-width: 520px;
  margin: 0 auto;
  background: #fff;
  min-height: 100dvh;
  box-shadow: 0 0 40px rgba(0, 0, 0, .07);
}

.view { min-height: 100dvh; padding-bottom: 120px; }
[hidden] { display: none !important; }

button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }

/* ---- carregando ---- */
.centro { min-height: 100dvh; display: flex; align-items: center; justify-content: center; }
.spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid var(--linha); border-top-color: var(--cor);
  animation: girar .8s linear infinite;
}
@keyframes girar { to { transform: rotate(360deg); } }

/* ---- cardapio: capa + card da loja ---- */
.capa {
  height: 110px;
  background: linear-gradient(135deg, var(--cor), var(--cor-escura));
}
.loja-wrap { padding: 0 16px; margin-top: -44px; position: relative; z-index: 1; }
.loja-card {
  background: #fff; border-radius: 14px; padding: 14px;
  display: flex; gap: 12px; align-items: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .08);
}
.loja-logo {
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
  background: var(--cor-suave); color: var(--cor);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800; overflow: hidden;
}
.loja-logo img { width: 100%; height: 100%; object-fit: cover; }
.loja-info { min-width: 0; }
.loja-info h1 { font-size: 18px; font-weight: 800; letter-spacing: -.2px; }
.loja-meta { font-size: 13px; color: var(--txt-2); display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.badge-aberto { color: var(--verde); font-weight: 700; }
.badge-fechado { color: #b02a37; font-weight: 700; }
.loja-slogan { font-size: 13px; color: var(--txt-2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.aviso-fechado {
  margin: 12px 16px 0; padding: 12px 14px; border-radius: 10px;
  background: #fdf1f2; color: #b02a37; font-size: 13.5px; font-weight: 600;
}

/* ---- busca ---- */
.busca-wrap { position: relative; padding: 14px 16px 4px; }
.busca-wrap svg {
  position: absolute; left: 30px; top: 50%; transform: translateY(-20%);
  width: 18px; height: 18px; stroke: var(--txt-2); pointer-events: none;
}
#busca {
  width: 100%; border: 0; background: var(--fundo);
  border-radius: 10px; padding: 12px 14px 12px 42px; font-size: 16px; outline: none;
}
#busca::placeholder { color: #9a9a9a; }

/* ---- chips de categoria ---- */
.chips {
  position: sticky; top: 0; z-index: 20;
  background: #fff; display: flex; gap: 8px;
  padding: 10px 16px; overflow-x: auto; scrollbar-width: none;
  border-bottom: 1px solid var(--linha);
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; padding: 10px 15px; border-radius: 20px;
  background: var(--fundo); color: var(--txt-2);
  font-size: 13.5px; font-weight: 600; white-space: nowrap; transition: .15s;
}
.chip.ativo { background: var(--cor); color: #fff; }

/* ---- secoes e cards de produto ---- */
.secao { scroll-margin-top: 54px; }
.secao h2 { font-size: 16px; font-weight: 800; padding: 20px 16px 6px; letter-spacing: -.2px; }
.p-card {
  display: flex; gap: 12px; padding: 14px 16px;
  border-bottom: 1px solid #f5f5f5; cursor: pointer;
}
.p-card:active { background: #fafafa; }
.p-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.p-info h3 { font-size: 15px; font-weight: 600; }
.p-desc {
  font-size: 13px; color: var(--txt-2); margin-top: 3px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.p-preco { font-size: 14.5px; font-weight: 600; margin-top: auto; padding-top: 6px; }
.p-foto {
  width: 88px; height: 88px; border-radius: 10px; flex-shrink: 0;
  background: #f7f7f8; display: flex; align-items: center; justify-content: center;
  font-size: 38px; overflow: hidden;
}
.p-foto img { width: 100%; height: 100%; object-fit: cover; }

.sem-resultado { padding: 40px 16px; text-align: center; color: var(--txt-2); font-size: 14px; }

.rodape { padding: 28px 16px 20px; text-align: center; color: #9a9a9a; font-size: 12.5px; }

/* ---- header de view interna ---- */
.view-header {
  position: sticky; top: 0; z-index: 20;
  background: #fff; display: flex; align-items: center; gap: 4px;
  padding: 10px 12px; border-bottom: 1px solid var(--linha);
}
.view-header h2 { font-size: 16px; font-weight: 700; flex: 1; text-align: center; }
.btn-voltar, .btn-header {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; color: var(--txt);
}
.btn-voltar:active { background: var(--fundo); }
.btn-voltar svg { width: 22px; height: 22px; }
.link-topo { color: var(--cor); font-size: 13.5px; font-weight: 600; padding: 8px; }

/* ---- sacola ---- */
.s-item { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #f5f5f5; align-items: flex-start; }
.s-info { flex: 1; min-width: 0; }
.s-nome { font-size: 14.5px; font-weight: 600; }
.s-obs { font-size: 12.5px; color: var(--txt-2); margin-top: 2px; }
.s-preco { font-size: 14px; font-weight: 600; margin-top: 4px; }
.vazio { padding: 70px 24px; text-align: center; }
.vazio .emoji { font-size: 54px; }
.vazio p { color: var(--txt-2); margin: 12px 0 20px; }

.add-mais { display: block; padding: 14px 16px; color: var(--cor); font-size: 14px; font-weight: 600; }

/* ---- stepper ---- */
.stepper {
  display: flex; align-items: center; border: 1.5px solid var(--linha);
  border-radius: 9px; overflow: hidden; flex-shrink: 0; background: #fff;
}
.stepper button {
  width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
  color: var(--cor); font-size: 20px; font-weight: 600;
}
.stepper button:disabled { color: #ccc; }
.stepper span { min-width: 28px; text-align: center; font-size: 14.5px; font-weight: 600; }
.stepper svg { width: 17px; height: 17px; }
.stepper.mini button { width: 38px; height: 38px; font-size: 17px; }
.stepper.mini svg { width: 15px; height: 15px; }

/* ---- blocos / formularios (checkout) ---- */
.bloco { padding: 18px 16px 4px; border-bottom: 8px solid var(--fundo); padding-bottom: 18px; }
.bloco:last-of-type { border-bottom: 0; }
.bloco h3 { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.campo { display: block; margin-bottom: 12px; }
.campo span { display: block; font-size: 13px; font-weight: 600; color: #555; margin-bottom: 6px; }
.campo input, .campo select, .campo textarea {
  width: 100%; border: 1.5px solid #dcdcdc; border-radius: 9px;
  padding: 12px; font-size: 16px; background: #fff; outline: none; transition: border-color .15s;
  appearance: none; -webkit-appearance: none;
}
.campo select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23717171' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.campo textarea { resize: none; height: 74px; }
.campo input:focus, .campo select:focus, .campo textarea:focus { border-color: var(--cor); }

.opcoes-linha { display: flex; gap: 10px; }
.opcoes-col { display: flex; flex-direction: column; gap: 10px; }
.opcao {
  flex: 1; display: flex; align-items: center; gap: 10px;
  border: 1.5px solid var(--linha); border-radius: 10px;
  padding: 13px 14px; font-size: 14.5px; font-weight: 600; text-align: left;
  background: #fff; transition: .15s;
}
.opcao .op-emoji { font-size: 20px; }
.opcao .op-sub { display: block; font-size: 12px; color: var(--txt-2); font-weight: 500; margin-top: 1px; }
.opcao.ativa { border-color: var(--cor); background: var(--cor-suave); }
.opcao .radio {
  margin-left: auto; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid #cfcfcf; flex-shrink: 0; position: relative;
}
.opcao.ativa .radio { border-color: var(--cor); }
.opcao.ativa .radio::after {
  content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--cor);
}
.pag-nota { font-size: 13px; color: var(--txt-2); margin-top: 10px; }

.resumo-linha { display: flex; justify-content: space-between; font-size: 14px; color: var(--txt-2); padding: 3px 0; }
.resumo-linha.total { font-size: 15.5px; font-weight: 700; color: var(--txt); padding-top: 8px; }

/* ---- barra fixa inferior ---- */
#barra-acao {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 520px; z-index: 30;
  background: #fff; border-top: 1px solid var(--linha);
  padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
}
.btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--cor); color: #fff; border-radius: 9px;
  padding: 15px 16px; font-size: 15px; font-weight: 700; transition: .15s;
}
.btn:active { background: var(--cor-escura); }
.btn:disabled { opacity: .55; }
.btn.tres-partes { justify-content: space-between; }
.btn .badge {
  background: rgba(255, 255, 255, .25); border-radius: 6px;
  min-width: 24px; height: 24px; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; padding: 0 6px;
}
.btn-outline { background: #fff; color: var(--cor); border: 1.5px solid var(--cor); }
.btn-outline:active { background: var(--cor-suave); }
.btn-zap { background: var(--zap); }
.btn-zap:active { background: #178c49; }

/* ---- sheet do produto ---- */
#overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .45);
  z-index: 40; opacity: 0; transition: opacity .25s;
}
#overlay.aberto { opacity: 1; }
#sheet {
  position: fixed; bottom: 0; left: 50%; transform: translate(-50%, 102%);
  width: 100%; max-width: 520px; max-height: 90dvh;
  background: #fff; border-radius: 18px 18px 0 0; z-index: 50;
  display: flex; flex-direction: column;
  transition: transform .3s cubic-bezier(.2, .8, .25, 1);
}
#sheet.aberto { transform: translate(-50%, 0); }
.sheet-media {
  height: 180px; background: #f7f7f8; border-radius: 18px 18px 0 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 72px; position: relative; flex-shrink: 0; overflow: hidden;
}
.sheet-media img { width: 100%; height: 100%; object-fit: cover; }
.sheet-fechar {
  position: absolute; top: 12px; right: 12px;
  width: 34px; height: 34px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
  display: flex; align-items: center; justify-content: center;
}
.sheet-fechar svg { width: 16px; height: 16px; }
.sheet-corpo { padding: 16px; overflow-y: auto; }
.sheet-corpo h3 { font-size: 18px; font-weight: 800; letter-spacing: -.2px; }
.sheet-corpo .p-desc { -webkit-line-clamp: unset; margin-top: 6px; }
.sheet-preco { font-size: 16px; font-weight: 700; margin: 10px 0 16px; }
.sheet-footer {
  display: flex; gap: 12px; padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--linha); flex-shrink: 0;
}
.sheet-footer .btn { flex: 1; justify-content: space-between; }

/* ---- tela do pedido ---- */
.ped-hero { text-align: center; padding: 26px 16px 18px; }
.ped-hero .emoji { font-size: 52px; }
.ped-hero h3 { font-size: 19px; font-weight: 800; margin-top: 10px; letter-spacing: -.2px; }
.ped-hero p { font-size: 13.5px; color: var(--txt-2); margin-top: 4px; }

.card-acao {
  margin: 0 16px 14px; border-radius: 12px; padding: 16px;
  background: #eefaf2; border: 1.5px solid #cdeeda;
}
.card-acao.pix-box { background: #f4f9ff; border-color: #d6e8fa; }
.card-acao h4 { font-size: 14.5px; font-weight: 700; margin-bottom: 4px; }
.card-acao > p { font-size: 13px; color: var(--txt-2); margin-bottom: 12px; }
.qr-wrap { display: flex; justify-content: center; margin: 6px 0 12px; }
.qr-wrap img { width: 190px; height: 190px; border-radius: 10px; border: 1px solid var(--linha); background: #fff; }
.pix-copia {
  font-family: monospace; font-size: 11.5px; color: var(--txt-2);
  background: #fff; border: 1px solid var(--linha); border-radius: 8px;
  padding: 10px; margin-bottom: 10px; word-break: break-all;
  max-height: 58px; overflow: hidden;
}
.ped-check { color: var(--verde); font-weight: 700; font-size: 13.5px; display: flex; align-items: center; gap: 6px; }

.tl { padding: 6px 16px 14px; }
.tl-passo { display: flex; gap: 12px; position: relative; padding-bottom: 22px; }
.tl-passo:last-child { padding-bottom: 0; }
.tl-passo::before {
  content: ''; position: absolute; left: 10px; top: 22px; bottom: 0;
  width: 2px; background: var(--linha);
}
.tl-passo:last-child::before { display: none; }
.tl-passo.feito::before { background: var(--verde); }
.tl-bola {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid #d5d5d5; background: #fff; z-index: 1;
  display: flex; align-items: center; justify-content: center;
}
.tl-passo.feito .tl-bola { background: var(--verde); border-color: var(--verde); }
.tl-passo.feito .tl-bola svg { width: 12px; height: 12px; stroke: #fff; }
.tl-label { font-size: 14px; color: var(--txt-2); padding-top: 1px; }
.tl-passo.feito .tl-label { color: var(--txt); font-weight: 600; }
.tl-passo.atual .tl-label { font-weight: 700; }

.ped-cancelado {
  margin: 0 16px 14px; border-radius: 12px; padding: 14px 16px;
  background: #fdf1f2; color: #b02a37; font-weight: 600; font-size: 14px;
}

.ped-itens { border-top: 8px solid var(--fundo); padding: 16px; }
.ped-itens h4 { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.ped-item { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 4px 0; }
.ped-item .q { color: var(--cor); font-weight: 700; margin-right: 6px; }
.ped-item .ped-obs { display: block; font-size: 12.5px; color: var(--txt-2); }
.ped-valores { border-top: 1px solid var(--linha); margin-top: 12px; padding-top: 10px; }
.ped-endereco { font-size: 13.5px; color: var(--txt-2); margin-top: 12px; }
.ped-novo { padding: 8px 16px 24px; }

/* ---- toast ---- */
#toast {
  position: fixed; bottom: 96px; left: 50%; transform: translateX(-50%) translateY(8px);
  background: #2b2b2b; color: #fff; padding: 11px 20px; border-radius: 24px;
  font-size: 13.5px; font-weight: 500; z-index: 99; opacity: 0;
  transition: .25s; pointer-events: none; max-width: 88%; text-align: center;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---- pill "meus pedidos" na capa ---- */
.capa { position: relative; }
.capa-pill {
  position: absolute; top: 12px; right: 14px;
  background: rgba(255, 255, 255, .94); border-radius: 22px;
  padding: 11px 15px; font-size: 12.5px; font-weight: 700; color: var(--txt);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}

/* ---- banner de pedido em andamento ---- */
.banner-ativo {
  display: flex; align-items: center; gap: 10px; width: calc(100% - 32px);
  margin: 12px 16px 0; padding: 12px 14px; text-align: left;
  background: var(--cor-suave); border: 1.5px solid var(--cor); border-radius: 12px;
}
.banner-ativo .ba-emoji { font-size: 22px; }
.banner-ativo .ba-txt { flex: 1; min-width: 0; }
.banner-ativo .ba-txt strong { display: block; font-size: 13.5px; }
.banner-ativo .ba-txt span { font-size: 12.5px; color: var(--txt-2); }
.banner-ativo .ba-ir { color: var(--cor); font-size: 13px; font-weight: 700; white-space: nowrap; }

/* ---- botao + rapido e badge de qtd no card ---- */
.p-foto { position: relative; overflow: visible; }
.p-foto img { border-radius: 10px; }
.p-add {
  position: absolute; right: -7px; bottom: -7px;
  width: 30px; height: 30px; border-radius: 50%;
  background: #fff; color: var(--cor); font-size: 20px; font-weight: 700; line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
  display: flex; align-items: center; justify-content: center;
}
.p-add:active { background: var(--cor); color: #fff; }

/* ---- lista "meus pedidos" ---- */
.mp-card {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 14px 16px; border-bottom: 1px solid #f5f5f5;
}
.mp-card:active { background: #fafafa; }
.mp-info { flex: 1; min-width: 0; }
.mp-topo { display: flex; align-items: center; gap: 8px; }
.mp-topo strong { font-size: 14.5px; }
.mp-topo time { font-size: 12.5px; color: var(--txt-2); }
.mp-itens {
  font-size: 13px; color: var(--txt-2); margin-top: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mp-baixo { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.mp-pill {
  font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 12px;
  background: #eefaf2; color: var(--verde);
}
.mp-pill.fim { background: #f2f3f5; color: var(--txt-2); }
.mp-pill.cancelado { background: #fdf1f2; color: #b02a37; }
.mp-total { font-size: 13px; font-weight: 600; }
.mp-card svg { width: 18px; height: 18px; stroke: #c0c0c0; flex-shrink: 0; }


/* ---- tela de entrada (rota #/) ---- */
#view-inicio { display: flex; flex-direction: column; padding-bottom: 40px; }
.ini-capa {
  height: 150px;
  background: linear-gradient(135deg, var(--cor), var(--cor-escura));
}
.ini-topo { padding: 0 20px; margin-top: -52px; text-align: center; }
.ini-logo {
  width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 12px;
  background: #fff; color: var(--cor);
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; font-weight: 800; overflow: hidden;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .16);
  border: 4px solid #fff;
}
.ini-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.ini-topo h1 { font-size: 23px; font-weight: 800; letter-spacing: -.4px; }
.ini-meta {
  font-size: 13px; color: var(--txt-2); margin-top: 6px;
  display: flex; align-items: center; justify-content: center; gap: 2px;
}
.ini-pill {
  font-weight: 700; padding: 3px 10px; border-radius: 20px; font-size: 12.5px;
}
.ini-pill.aberto { color: var(--verde); background: #1f9e5414; }
.ini-pill.fechado { color: #b02a37; background: #b02a3714; }
.ini-slogan { font-size: 14px; color: var(--txt-2); margin-top: 8px; }

#view-inicio .banner-ativo { margin: 18px 20px 0; width: calc(100% - 40px); }

.ini-acoes { padding: 22px 20px 0; display: flex; flex-direction: column; gap: 12px; }
.ini-btn {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 17px 16px; border-radius: 14px; text-align: left; text-decoration: none;
  background: #fff; color: var(--txt); border: 1.5px solid var(--linha);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
  transition: transform .12s ease;
}
.ini-btn:active { transform: scale(.985); }
.ini-btn .ini-ic { font-size: 26px; line-height: 1; flex-shrink: 0; }
.ini-btn .ini-txt { flex: 1; min-width: 0; }
.ini-btn .ini-txt strong { display: block; font-size: 15.5px; font-weight: 800; letter-spacing: .3px; }
.ini-btn .ini-txt small { display: block; font-size: 12.5px; color: var(--txt-2); margin-top: 2px; }
.ini-btn .ini-seta { width: 20px; height: 20px; flex-shrink: 0; color: var(--txt-2); }
.ini-btn .ini-seta svg { width: 100%; height: 100%; stroke: currentColor; }

.ini-btn.primaria {
  background: var(--cor); color: #fff; border-color: var(--cor);
  box-shadow: 0 6px 18px var(--cor-suave), 0 3px 10px rgba(0, 0, 0, .12);
}
.ini-btn.primaria .ini-txt small { color: rgba(255, 255, 255, .88); }
.ini-btn.primaria .ini-seta { color: rgba(255, 255, 255, .9); }
.ini-btn.primaria:active { background: var(--cor-escura); }

#ini-rodape { margin-top: auto; padding-top: 34px; }

/* voltar da capa do cardapio (espelha o pill de pedidos) */
.capa-voltar {
  position: absolute; top: 12px; left: 14px;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255, 255, 255, .94); color: var(--txt);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}
.capa-voltar svg { width: 19px; height: 19px; }


/* ---- alvos de toque (mobile): area do dedo maior que o desenho ---- */
/* o + do card e o X do sheet sao pequenos de proposito no visual;
   o pseudo-elemento estica so a area clicavel ate ~44px. */
.p-add::after, #sheet-fechar::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 44px; height: 44px; transform: translate(-50%, -50%);
}
#sheet-fechar { position: relative; }


/* ---- modo vitrine: catalogo visivel antes dos precos entrarem ---- */
.aviso-vitrine {
  margin: 12px 16px 0; padding: 11px 14px; border-radius: 10px;
  background: #eef4ff; color: #21457a; font-size: 13px; line-height: 1.4;
}
.aviso-vitrine a { color: #21457a; font-weight: 700; }
.p-vitrine .p-info h3 { color: var(--txt); }
.p-consulta {
  display: inline-block; font-size: 12.5px; font-weight: 700;
  color: var(--txt-2); background: var(--fundo);
  padding: 3px 9px; border-radius: 6px;
}
.p-vitrine .p-foto img { opacity: .92; }


/* ---- controle do card: "+" vira stepper quando o item ja esta na sacola ---- */
.p-ctrl { position: absolute; right: -7px; bottom: -7px; }
.p-ctrl .p-add { position: static; }
.p-mini {
  display: flex; align-items: center; background: #fff;
  border-radius: 16px; box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
  height: 32px; overflow: hidden;
}
.p-mini button {
  width: 32px; height: 32px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--cor); font-size: 19px; font-weight: 700; line-height: 1;
  position: relative;
}
/* area do dedo maior que o desenho, sem mudar o layout */
.p-mini button::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 42px; height: 42px; transform: translate(-50%, -50%);
}
.p-mini button:active { background: var(--cor-suave); }
.p-mini button svg { width: 15px; height: 15px; stroke: var(--cor); }
.p-mini span {
  min-width: 20px; text-align: center;
  font-size: 14px; font-weight: 700; color: var(--txt);
}
