/* Catálogo novo (mobile first): coluna única centralizada, categorias fixas, produto em gaveta.
   Tudo escopado em body.v2 — a página de acompanhamento do pedido não muda. */
body.v2 { --col: 560px; padding-bottom: 96px; }
body.v2 .app { max-width: var(--col); margin: 0 auto; background: var(--cartao); min-height: 100vh; box-shadow: 0 0 0 1px var(--linha); }
@media (max-width: 560px) { body.v2 .app { box-shadow: none; } }

/* topo */
body.v2 .capa { background: var(--cartao); color: var(--tinta); padding: 0 0 .9rem; }
body.v2 .capa-img { height: 112px; background: linear-gradient(135deg, var(--cor), color-mix(in srgb, var(--cor) 55%, #ffd43b)); }
body.v2 .capa-in { max-width: none; display: block; padding: 0 1rem; }
body.v2 .logo { width: 76px; height: 76px; margin-top: -38px; background: var(--cor); color: #fff; border: 3px solid var(--cartao); box-shadow: 0 2px 10px rgba(0,0,0,.18); }
body.v2 .capa h1 { font-size: 1.35rem; margin: .5rem 0 0; }
body.v2 .slogan { color: var(--suave); margin: .1rem 0 .1rem; }
body.v2 .infos { color: var(--tinta); gap: .45rem .5rem; margin-top: .55rem; }
body.v2 .infos > span { display: inline-flex; align-items: center; gap: .3rem; padding: .28rem .65rem; border-radius: 999px; background: var(--fundo); border: 1px solid var(--linha); font-size: .78rem; }
body.v2 .infos > .st { padding-left: .65rem; }
body.v2 .infos > .st.on { background: #dcfce7; border-color: #bbf7d0; color: #166534; }
body.v2 .infos > .st.off { background: #fde2e1; border-color: #fecaca; color: #b42318; }
body.v2 .tema-btn { background: rgba(0,0,0,.28); border-color: rgba(255,255,255,.35); }
body.v2 .ajuda-wpp { display: flex; align-items: center; gap: .5rem; margin: .8rem 1rem 0; padding: .6rem .8rem; border-radius: 12px; background: #ecfdf3; color: #166534; font-size: .85rem; font-weight: 600; text-decoration: none; }
body.v2 .ajuda-wpp i { font-size: 1.1rem; }
[data-bs-theme="dark"] body.v2 .ajuda-wpp { background: #12301d; color: #7ee2a0; }
body.v2 .aviso-fechado { text-align: left; }
body.v2 .horarios-loja { max-width: none; margin: 0; padding: .6rem 1rem 0; }

/* barra fixa: ☰ categorias · abas · busca */
body.v2 .cats { background: var(--cartao); }
body.v2 .cats-in { max-width: none; padding: 0 .35rem; display: flex; align-items: center; }
.cats-ib { flex: 0 0 auto; width: 42px; height: 48px; display: grid; place-items: center; border: 0; background: none; font-size: 1.3rem; color: var(--tinta); }
body.v2 .tabs { flex: 1; min-width: 0; padding: 0; gap: 0; }
body.v2 .tabs a { border-radius: 0; padding: .95rem .75rem; font-weight: 600; font-size: .9rem; position: relative; background: none; color: var(--suave); }
body.v2 .tabs a.on { background: none; color: var(--tinta); }
body.v2 .tabs a.on::after { content: ""; position: absolute; left: .55rem; right: .55rem; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--cor); }
.busca-linha { padding: 0 .75rem .6rem; }
.busca-linha[hidden] { display: none; }

/* seções e produtos: lista limpa, uma coluna */
body.v2 .wrap { max-width: none; padding: 0 1rem; }
body.v2 .sec { padding-top: 1.35rem; scroll-margin-top: 56px; }
body.v2 .sec h2 { font-size: 1.15rem; margin-bottom: .5rem; }
body.v2 .cat-sec { display: block; }
body.v2 .cat-sec .prod { height: auto; }
body.v2 .prod { background: none; border: 0; border-bottom: 1px solid var(--linha); border-radius: 0; padding: .9rem 0; margin: 0; gap: .8rem; box-shadow: none; }
body.v2 .prod:last-child { border-bottom: 0; }
body.v2 .prod:hover { box-shadow: none; border-color: var(--linha); }
body.v2 .ptxt { display: flex; flex-direction: column; }
body.v2 .ptxt strong { font-size: .98rem; line-height: 1.25; }
body.v2 .ptxt p { margin: .25rem 0 0; }
body.v2 .pimg { width: 112px; height: 112px; border-radius: 12px; }
body.v2 .meta { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .45rem; }
body.v2 .meta span { font-size: .7rem; padding: .1rem .5rem; border-radius: 999px; background: var(--fundo); color: var(--suave); }
body.v2 .preco { display: block; margin-top: auto; padding-top: .5rem; font-size: .95rem; }
body.v2 .preco s { font-size: .78rem; font-weight: 400; color: var(--suave); }
body.v2 .preco .off { font-size: .68rem; font-weight: 700; color: #166534; background: #dcfce7; border-radius: 6px; padding: .05rem .38rem; }
[data-bs-theme="dark"] body.v2 .preco .off { background: #12301d; color: #7ee2a0; }
body.v2 .add-rapido { background: var(--cartao); color: var(--cor); right: .4rem; bottom: .4rem; font-weight: 700; }
body.v2 .prod:not(:has(.pimg)) .add-rapido { right: 0; bottom: .8rem; background: var(--cor); color: #fff; }

/* destaques */
body.v2 .dest-scroll { margin: 0 -1rem; padding: 0 1rem .4rem; scroll-snap-type: x mandatory; }
body.v2 .dest { flex: 0 0 150px; display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; scroll-snap-align: start; padding: 0; overflow: hidden; }
body.v2 .dest .dimg { flex: none; }
body.v2 .dest .preco { margin-top: auto; }
body.v2 .dest .dimg { height: 104px; border-radius: 0; margin: 0; }
body.v2 .dest strong, body.v2 .dest span { padding: 0 .6rem; }
body.v2 .dest strong { margin-top: .5rem; height: 2.4em; overflow: hidden; }
body.v2 .dest .preco { padding: .1rem .6rem .6rem; margin: 0; color: var(--tinta); font-size: .85rem; }

/* banners: sempre 1 por vez na coluna */
body.v2 .bn-carrossel.bn-varios .bn-slide { flex-basis: 100%; }

/* sacola flutuante, sempre centralizada na coluna */
body.v2 .sacola-bar { width: min(536px, calc(100% - 24px)); left: 50%; right: auto; transform: translateX(-50%); }
body.v2 .toast-add { bottom: 90px; }

/* gaveta do produto (de baixo pra cima, com foto grande no topo) */
body.v2 #mProd .modal-dialog, body.v2 #mCats .modal-dialog { max-width: var(--col); width: 100%; height: 100%; margin: 0 auto; display: flex; align-items: flex-end; pointer-events: none; }
body.v2 #mProd .modal-content, body.v2 #mCats .modal-content { pointer-events: auto; width: 100%; height: auto; max-height: 92vh; border: 0; border-radius: 20px 20px 0 0; }
body.v2 #mProd.fade .modal-dialog, body.v2 #mCats.fade .modal-dialog { transform: translateY(40px); }
body.v2 #mProd.show .modal-dialog, body.v2 #mCats.show .modal-dialog { transform: none; }
body.v2 #mProd .modal-header { display: block; position: relative; padding: 0; border: 0; }
body.v2 #mProd .modal-header > .d-flex { display: block !important; }
body.v2 #mProd .mp-img { width: 100%; height: 210px; border-radius: 20px 20px 0 0; }
body.v2 #mProd .modal-header .flex-fill { padding: .9rem 1rem .4rem; }
body.v2 #mProd .modal-title { font-size: 1.2rem; }
body.v2 #mProd .btn-close { position: absolute; top: .7rem; right: .7rem; z-index: 3; width: 34px; height: 34px; padding: 0; margin: 0; border-radius: 50%; background-color: rgba(255,255,255,.95);
  background-size: .85rem; opacity: 1; box-shadow: 0 1px 6px rgba(0,0,0,.25); filter: none; }
body.v2 #mProd .modal-footer { box-shadow: 0 -4px 14px rgba(0,0,0,.05); }
body.v2 #mProd .grp-head { top: 0; margin: 0 -1rem; padding: .6rem 1rem; background: var(--fundo); }

/* gaveta de categorias */
body.v2 #mCats .modal-header { border: 0; padding-bottom: 0; }
.cat-item { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: .95rem 1.25rem; border: 0; border-bottom: 1px solid var(--linha); background: none; text-align: left; font-size: 1rem; }
.cat-item small { color: var(--suave); }

/* coração de favorito (versão com favoritos): canto do texto, sem empurrar o preço */
body.v2 .prod .fav { position: absolute; top: .5rem; right: calc(112px + 1.1rem); margin: 0; }
body.v2 .prod:not(:has(.pimg)) .fav { top: auto; bottom: .75rem; right: 46px; }
body.v2 .ptxt strong { padding-right: 34px; }

/* capa com foto enquadrada pelo lojista (Configurações → Aparência) */
body.v2 .capa-img.tem-capa { height: auto; aspect-ratio: 3.2 / 1; min-height: 104px; background-size: cover; background-position: center; position: relative; }
body.v2 .capa-img.tem-capa::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
body.v2 .capa-img.ef-suave::after { background: linear-gradient(to top, rgba(0,0,0,.42), rgba(0,0,0,0) 62%), linear-gradient(to bottom, rgba(0,0,0,.28), rgba(0,0,0,0) 38%); }
body.v2 .capa-img.ef-cor::after { background: linear-gradient(135deg, color-mix(in srgb, var(--cor) 62%, transparent), color-mix(in srgb, var(--cor) 8%, transparent) 70%); mix-blend-mode: multiply; }
body.v2 .capa-in { position: relative; z-index: 1; }

/* cabeçalho no estilo cartão: logo ao lado do nome, status do dia, endereço e três informações em caixa */
body.v2 .capa-in { display: flex; gap: .8rem; align-items: flex-start; }
body.v2 .capa-in .logo { flex: none; border-radius: 16px; }
body.v2 .capa-txt { min-width: 0; padding-top: .55rem; }
body.v2 .capa-txt h1 { margin: .1rem 0 0; font-size: 1.2rem; line-height: 1.2; }
body.v2 .st-linha { font-size: .78rem; font-weight: 700; }
body.v2 .st-linha.on { color: #15803d; }
body.v2 .st-linha.off { color: #b42318; }
body.v2 .capa-txt .end, body.v2 .capa-txt .slogan { margin: .2rem 0 0; font-size: .82rem; color: var(--suave); }
body.v2 .info-card { display: flex; margin: .9rem 1rem 0; border: 1px solid var(--linha); border-radius: 14px; overflow: hidden; }
body.v2 .info-card > div { flex: 1; text-align: center; padding: .6rem .3rem; display: flex; flex-direction: column; gap: .15rem; justify-content: center; }
body.v2 .info-card > div + div { border-left: 1px solid var(--linha); }
body.v2 .info-card small { font-size: .72rem; color: var(--suave); }
body.v2 .info-card b { font-size: .9rem; font-weight: 600; line-height: 1.2; }
body.v2 .ajuda-wpp { display: inline-flex; margin: 0; padding: .45rem .9rem; border-radius: 999px; font-size: .82rem; }
body.v2 .lista .prod:has(> .etq-solta), body.v2 .prod:has(> .etq-solta) { padding-top: 2.2rem; }
body.v2 .prod > .etq-solta { top: .6rem; left: 0; }

/* linha de conta + WhatsApp, e a gaveta de login */
body.v2 .conta-linha { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin: .8rem 1rem 0; }
body.v2 .conta-btn { border: 0; background: none; padding: .3rem 0; font-weight: 700; font-size: .9rem; color: var(--cor); display: inline-flex; align-items: center; gap: .35rem; }
body.v2 #mConta .modal-dialog { max-width: var(--col); width: 100%; height: 100%; margin: 0 auto; display: flex; align-items: flex-end; pointer-events: none; }
body.v2 #mConta .modal-content { pointer-events: auto; width: 100%; max-height: 92vh; border: 0; border-radius: 20px 20px 0 0; }
body.v2 #mConta.fade .modal-dialog { transform: translateY(40px); }
body.v2 #mConta.show .modal-dialog { transform: none; }
body.v2 #mConta .modal-header { border: 0; padding-bottom: 0; }
body.v2 .conta-abas { display: flex; gap: .4rem; margin-bottom: .7rem; }
body.v2 .conta-abas button { flex: 1; border: 1px solid var(--linha); background: var(--cartao); color: var(--tinta); border-radius: 999px; padding: .4rem; font-weight: 600; font-size: .88rem; }
body.v2 .conta-abas button.on { border-color: var(--cor); color: var(--cor); }
body.v2 .conta-fid { display: flex; gap: .7rem; align-items: center; padding: .8rem; border-radius: 14px; background: color-mix(in srgb, var(--cor) 10%, var(--cartao)); }
body.v2 .conta-fid > i { font-size: 1.5rem; color: var(--cor); }
body.v2 .conta-fid small { display: block; color: var(--suave); }
body.v2 .conta-ped { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .6rem 0; border-bottom: 1px solid var(--linha); text-decoration: none; color: inherit; font-size: .88rem; }
body.v2 .conta-ped small { display: block; color: var(--suave); }
/* "Pedir de novo" fora da tela do cliente (o histórico fica em Entrar → Meus pedidos) */
body.v2 #pedirDeNovo { display: none !important; }
/* banner de arte: grande e arredondado logo abaixo do cabeçalho, na proporção em que foi enquadrado */
body.v2 .bn-arte img { aspect-ratio: auto; height: auto; }
body.v2 #banners { margin-top: .9rem; }
body.v2 .bn { border-radius: 16px; }
/* títulos de seção centralizados e preço promocional "De R$ x por R$ y" em verde (estilo Brendi) */
body.v2 .sec h2, body.v2 .cat-sec > h2 { text-align: center; }
body.v2 .preco:has(s) { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .4rem; }
body.v2 .preco:has(s) s { order: -1; }
body.v2 .preco:has(s) s::before { content: "De "; }
body.v2 .preco:has(s) b { color: #15803d; }
[data-bs-theme="dark"] body.v2 .preco:has(s) b { color: #7ee2a0; }
/* botões de idioma e tema sobre a capa: brancos e legíveis em qualquer foto, sem se encostar */
body.v2 .tema-btn, body.v2 .lang-btn { background: rgba(255,255,255,.92); color: #1f2430; border: 0; box-shadow: 0 2px 8px rgba(0,0,0,.28); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
body.v2 .tema-btn { width: 36px; height: 36px; top: .6rem; right: .6rem; }
body.v2 .lang-dd { top: .6rem; right: 3.4rem; }
body.v2 .lang-btn { height: 36px; padding: 0 .65rem; }
[data-bs-theme="dark"] body.v2 .tema-btn, [data-bs-theme="dark"] body.v2 .lang-btn { background: rgba(20,24,34,.85); color: #fff; }
