@font-face {
    font-family: "Bricolage";
    src: url("../fonts/bricolage.woff2") format("woff2-variations"), url("../fonts/bricolage.woff2") format("woff2");
    font-weight: 200 800;
    font-stretch: 75% 100%;
    font-display: swap;
}

/* Vitrine de pedidos — as cores vêm do tema configurado no painel (functions.php: tema_variaveis) */
:root {
    --ganache-texto: var(--ganache); --sobre: #FFFFFF; --caramelo-texto: #8A4513; --sobre-destaque: #FFFFFF;
    --titulo-capa: var(--ganache); --slogan-capa: #6B4E43; --chip-capa: rgba(255,255,255,.6); --chip-texto: #2B1B17; --selo-top-fundo: #F6E7DA;

    --ganache: #5C1A1B;
    --ganache-escuro: #431112;
    --caramelo: #B5652B;
    --massa: #EEDFCA;
    --massa-escura: #E4D3BF;
    --papel: #FFFFFF;
    --nuvem: #F7F4F2;
    --cacau: #2B1B17;
    --poeira: #7D6C65;
    --linha: #ECE4DF;
    --verde: #1E7F4F;
    --erro: #B3261E;
    --whats: #1FAF54;

    --fonte: "Bricolage", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --r-grande: 20px;
    --r-medio: 14px;
    --r-peq: 10px;
    --sombra-tela: 0 -8px 40px rgba(43, 27, 23, .18);
    --topo-seguro: env(safe-area-inset-top, 0px);
    --base-segura: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 132px; }
body {
    margin: 0;
    font-family: var(--fonte);
    font-optical-sizing: auto;
    font-size: 16px;
    line-height: 1.45;
    color: var(--cacau);
    background: var(--papel);
    -webkit-font-smoothing: antialiased;
}
body.travado { overflow: hidden; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid var(--caramelo); outline-offset: 2px; border-radius: 6px; }
.isca { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.preco, .preco-antigo, .barra-total, output, .resumo dd { font-variant-numeric: tabular-nums; }

/* ---------- Topo ---------- */
.aviso-topo {
    background: var(--ganache); color: var(--sobre); text-align: center;
    font-size: 14px; font-weight: 500; padding: 9px 16px;
}
.capa { background: var(--massa); padding-top: var(--topo-seguro); }
.capa-in {
    max-width: 1180px; margin: 0 auto; padding: 18px 20px 24px;
    display: flex; flex-direction: column; align-items: flex-start; gap: 6px; position: relative;
}
.capa-marca { display: block; width: 250px; aspect-ratio: 2.7 / 1; overflow: hidden; flex-shrink: 0; }
.capa-marca img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.capa-selo { display: block; width: 92px; height: 92px; flex-shrink: 0; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 3px var(--ganache); }
.capa-selo img { width: 100%; height: 100%; object-fit: cover; }
.capa-in:has(.capa-selo) { flex-direction: row; align-items: center; gap: 16px; }
.capa-logo-letra {
    display: grid; place-items: center; width: 84px; height: 84px; border-radius: 22px; font-size: 42px; font-weight: 800;
    color: var(--ganache-texto); background: var(--papel);
}
.capa-texto h1 {
    font-size: clamp(28px, 5vw, 44px); font-weight: 800; letter-spacing: -0.025em; color: var(--titulo-capa);
    font-variation-settings: "opsz" 96;
}
.oculto { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.capa-slogan { margin: 0 0 14px; color: var(--slogan-capa); font-size: 15.5px; max-width: 42ch; }
.capa-infos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.capa-infos li {
    font-size: 13.5px; font-weight: 500; color: var(--chip-texto);
    background: var(--chip-capa); border-radius: 999px; padding: 5px 12px;
}
.capa-infos .status { font-weight: 700; padding-left: 26px; position: relative; }
.capa-infos .status::before {
    content: ""; position: absolute; left: 11px; top: 50%; width: 8px; height: 8px; margin-top: -4px;
    border-radius: 50%; background: currentColor;
}
.status-aberto { color: var(--status-aberto, var(--verde)) !important; }
.status-fechado { color: var(--status-fechado, var(--erro)) !important; }
.acompanhar-atalho {
    position: absolute; top: 18px; right: 20px; text-decoration: none; color: var(--ganache-texto);
    background: var(--papel); border-radius: 999px; padding: 9px 16px; font-size: 14px; font-weight: 700;
    box-shadow: 0 1px 0 var(--massa-escura);
}
.faixa-fechado {
    max-width: 1180px; margin: 16px auto 0; padding: 14px 18px; border-radius: var(--r-medio);
    background: #FBEDEB; color: #7A2320; font-size: 14.5px;
    width: calc(100% - 40px);
}

/* ---------- Layout ---------- */
.layout {
    max-width: 1180px; margin: 0 auto; padding: 0 20px;
    display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px;
}
.sacola-lateral { display: none; }

/* ---------- Busca + categorias (fixas ao rolar) ---------- */
.ferramentas {
    position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    margin: 0 -20px; padding: calc(12px + var(--topo-seguro)) 20px 0;
    border-bottom: 1px solid var(--linha);
}
.busca {
    display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px;
    background: var(--nuvem); border-radius: var(--r-medio); color: var(--poeira);
}
.busca:focus-within { box-shadow: 0 0 0 2px var(--ganache) inset; }
.busca input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; color: var(--cacau); font-size: 16px; }
.busca input::-webkit-search-cancel-button { display: none; }
.busca-limpar { border: 0; background: none; padding: 4px; color: var(--poeira); display: grid; }
.categorias {
    display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 8px -20px 0; padding: 0 20px;
    scroll-behavior: smooth;
}
.categorias::-webkit-scrollbar { display: none; }
.cat {
    flex-shrink: 0; text-decoration: none; color: var(--poeira); font-weight: 600; font-size: 15px;
    padding: 10px 12px 12px; border-bottom: 3px solid transparent; white-space: nowrap;
}
.cat:hover { color: var(--cacau); }
.cat.ativa { color: var(--ganache-texto); border-bottom-color: var(--ganache-texto); }

/* ---------- Destaques ---------- */
.destaques { padding-top: 28px; }
.destaques h2, .secao h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.015em; margin-bottom: 14px; }
.destaques-trilho {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 240px); gap: 14px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; scrollbar-width: none; margin: 0 -20px; padding: 0 20px 4px;
}
.destaques-trilho::-webkit-scrollbar { display: none; }
.destaque {
    scroll-snap-align: start; text-align: left; border: 0; background: none; padding: 0;
    display: flex; flex-direction: column; gap: 6px;
}
.destaque-foto {
    aspect-ratio: 4 / 3; border-radius: var(--r-grande); overflow: hidden; background: var(--massa); display: block; width: 100%;
}
.destaque-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.destaque:hover .destaque-foto img { transform: scale(1.04); }
.destaque-nome { font-weight: 700; font-size: 15.5px; margin-top: 4px; }

/* ---------- Lista de produtos ---------- */
.secao { padding-top: 34px; }
.lista { display: grid; grid-template-columns: 1fr; }
.item { position: relative; border-bottom: 1px solid var(--linha); }
.item:last-child { border-bottom: 0; }
.item-abrir {
    width: 100%; display: flex; gap: 16px; align-items: flex-start; text-align: left;
    background: none; border: 0; padding: 16px 0; border-radius: var(--r-medio);
}
.item-abrir:hover .item-nome { color: var(--ganache-texto); }
.item-texto { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.item-nome { font-weight: 700; font-size: 16.5px; line-height: 1.25; }
.item-desc {
    color: var(--poeira); font-size: 14px; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.item-serve { color: var(--poeira); font-size: 13px; font-weight: 600; }
.item-foto {
    width: 108px; height: 108px; flex-shrink: 0; border-radius: var(--r-medio); overflow: hidden; background: var(--massa);
}
.item-foto img { width: 100%; height: 100%; object-fit: cover; }
.item-sem-foto .item-abrir { padding-right: 44px; }
.item-sem-foto .item-mais { bottom: 16px; right: 0; border-color: transparent; }
.sem-foto { display: grid; place-items: center; width: 100%; height: 100%; font-size: 64px; font-weight: 800; color: var(--ganache); opacity: .22; }
.item-mais {
    position: absolute; right: -6px; bottom: 8px; width: 36px; height: 36px; border-radius: 50%;
    border: 3px solid var(--papel); background: var(--ganache); color: var(--sobre); display: grid; place-items: center;
    transition: transform .15s ease, background .15s ease;
}
.item-mais:hover { background: var(--ganache-escuro); }
.item-mais:active { transform: scale(.9); }
.item-mais svg { width: 18px; height: 18px; stroke-width: 2.6; }

.linha-preco { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; flex-wrap: wrap; }
.preco { font-weight: 700; font-size: 15.5px; color: var(--cacau); }
.preco-promo { color: var(--verde); }
.preco-antigo { color: var(--poeira); font-size: 13.5px; }

.selos { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 2px; }
.selo { font-size: 12px; font-weight: 700; border-radius: 6px; padding: 2px 8px; }
.selo-top { background: var(--selo-top-fundo); color: var(--caramelo-texto); }
.selo-promo { background: #E3F2EA; color: var(--verde); }
.selo-ultimas { background: #FCE9E4; color: #A33A22; }
.selo-esgotado { background: var(--linha); color: var(--poeira); }
.item-esgotado .item-nome, .item-esgotado .linha-preco, .item-esgotado .item-desc { opacity: .55; }
.item-esgotado .item-foto img { filter: grayscale(1); opacity: .6; }

.vazio-busca { text-align: center; padding: 60px 10px; color: var(--poeira); }
.link { background: none; border: 0; color: var(--ganache-texto); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; padding: 8px; font-size: 15px; }

/* ---------- Rodapé ---------- */
.rodape { margin-top: 56px; background: var(--nuvem); padding: 40px 20px calc(110px + var(--base-segura)); color: #5B4B45; font-size: 14.5px; }
.rodape-in { max-width: 1180px; margin: 0 auto; display: grid; gap: 28px; grid-template-columns: 1fr; }
.rodape-bloco h3 { font-size: 15px; font-weight: 700; color: var(--cacau); margin-bottom: 8px; }
.rodape-bloco p { margin: 0 0 6px; }
.rodape-loja strong { font-size: 18px; color: var(--ganache-texto); display: block; margin-bottom: 6px; }
.rodape-links { display: flex; flex-direction: column; gap: 4px; margin-top: 10px !important; }
.rodape a { color: var(--ganache-texto); font-weight: 600; text-decoration: none; }
.rodape a:hover { text-decoration: underline; }
.horarios { margin: 0; display: grid; gap: 4px; }
.horarios div { display: flex; justify-content: space-between; gap: 16px; max-width: 240px; }
.horarios dt { font-weight: 600; }
.horarios dd { margin: 0; font-variant-numeric: tabular-nums; }
.rodape-final { max-width: 1180px; margin: 28px auto 0; padding-top: 18px; border-top: 1px solid var(--linha); font-size: 13px; color: var(--poeira); }

/* ---------- Barra da sacola (celular) ---------- */
.barra-sacola {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + var(--base-segura)); z-index: 30;
    display: flex; align-items: center; gap: 12px; height: 58px; padding: 0 18px;
    border: 0; border-radius: 16px; background: var(--ganache); color: var(--sobre);
    box-shadow: 0 10px 30px rgba(92, 26, 27, .35); font-weight: 700; font-size: 16px;
}
.barra-sacola[hidden] { display: none; }
.barra-qtd {
    min-width: 28px; height: 28px; border-radius: 8px; background: rgba(255,255,255,.18);
    display: grid; place-items: center; font-size: 14px; padding: 0 6px;
}
.barra-rotulo { flex: 1; text-align: left; }
.barra-sacola.pulou .barra-qtd { animation: pulo .35s ease; }
@keyframes pulo { 40% { transform: scale(1.3); } }

/* ---------- Telas sobrepostas ---------- */
.veu { position: fixed; inset: 0; background: rgba(43, 27, 23, .45); z-index: 40; animation: aparecer .2s ease; }
.veu[hidden] { display: none; }
@keyframes aparecer { from { opacity: 0; } }
.tela {
    position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; max-height: calc(100dvh - 24px - var(--topo-seguro));
    background: var(--papel); border-radius: 22px 22px 0 0; box-shadow: var(--sombra-tela);
    display: flex; flex-direction: column; animation: subir .28s cubic-bezier(.2, .8, .2, 1);
}
.tela[hidden] { display: none; }
@keyframes subir { from { transform: translateY(100%); } }
.tela-rolagem { overflow-y: auto; overscroll-behavior: contain; flex: 1; -webkit-overflow-scrolling: touch; }
.tela-fechar, .tela-voltar {
    position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%;
    border: 0; background: rgba(255,255,255,.92); display: grid; place-items: center; color: var(--cacau);
    box-shadow: 0 2px 10px rgba(0,0,0,.12);
}
.tela-topo { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--linha); }
.tela-topo h2 { font-size: 19px; font-weight: 800; }
.tela-voltar { position: static; box-shadow: none; background: var(--nuvem); }
.tela-rodape {
    display: flex; gap: 12px; align-items: center; padding: 12px 16px calc(12px + var(--base-segura));
    border-top: 1px solid var(--linha); background: var(--papel);
}

/* Produto */
.p-foto {
    position: relative; height: 250px; overflow: hidden; background: var(--massa);
    display: grid; place-items: center; border-radius: 22px 22px 0 0;
}
.p-foto .fundo { position: absolute; inset: -30px; background-size: cover; background-position: center; filter: blur(26px) saturate(1.1); opacity: .75; }
.p-foto img { position: relative; height: 200px; width: 200px; object-fit: cover; border-radius: 22px; box-shadow: 0 12px 30px rgba(43,27,23,.28); }
.p-foto.sem-foto { height: 64px; }
.p-corpo { padding: 20px 20px 8px; }
.p-corpo h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.015em; }
.p-desc { color: var(--poeira); margin: 8px 0 0; font-size: 15px; }
.p-serve { color: var(--poeira); font-size: 13.5px; font-weight: 600; margin: 8px 0 0; }
.p-preco { margin: 12px 0 0; }
.p-preco .preco { font-size: 19px; }
.grupo { margin: 22px -20px 0; }
.grupo-topo {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    background: var(--nuvem); padding: 12px 20px;
}
.grupo-topo h3 { font-size: 16px; font-weight: 700; }
.grupo-topo p { margin: 2px 0 0; color: var(--poeira); font-size: 13px; }
.grupo-tag { font-size: 12px; font-weight: 700; border-radius: 6px; padding: 3px 8px; background: var(--cacau); color: #fff; white-space: nowrap; }
.grupo-tag.ok { background: var(--verde); }
.grupo-tag.opcional { background: var(--linha); color: var(--poeira); }
.grupo.faltando .grupo-topo { box-shadow: inset 3px 0 0 var(--erro); }
.opcao {
    display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--linha); cursor: pointer;
}
.opcao:last-child { border-bottom: 0; }
.opcao-nome { flex: 1; font-size: 15px; }
.opcao-preco { color: var(--poeira); font-size: 14px; font-variant-numeric: tabular-nums; }
.opcao input { width: 22px; height: 22px; accent-color: var(--ganache-texto); margin: 0; flex-shrink: 0; }
.p-obs { margin-top: 24px; }

.contador {
    display: flex; align-items: center; border: 1px solid var(--linha); border-radius: 12px; height: 50px; flex-shrink: 0;
}
.contador button { width: 44px; height: 100%; border: 0; background: none; font-size: 22px; color: var(--ganache-texto); font-weight: 600; }
.contador button:disabled { color: var(--linha); cursor: default; }
.contador output { min-width: 24px; text-align: center; font-weight: 700; }

/* Botões */
.botao {
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    min-height: 50px; padding: 0 20px; border-radius: 12px; border: 0; font-weight: 700; font-size: 16px; text-decoration: none;
    transition: background .15s ease, opacity .15s ease;
}
.botao-principal { flex: 1; background: var(--ganache); color: var(--sobre); justify-content: space-between; }
.botao-principal:hover { background: var(--ganache-escuro); }
.botao-principal:disabled { background: #C9B7B3; cursor: not-allowed; }
.botao-principal.so-texto { justify-content: center; }
.botao-cheio { width: 100%; }
.botao-contorno { background: var(--papel); color: var(--ganache-texto); box-shadow: inset 0 0 0 1.5px var(--ganache); min-height: 46px; }
.botao-contorno:hover { background: #FBF5F4; }
.botao-whats { background: var(--whats); color: #fff; }
.botao-whats:hover { background: #18954A; }
.botao.carregando { opacity: .7; pointer-events: none; }

/* Sacola */
.sacola { padding: 22px 20px 20px; display: flex; flex-direction: column; min-height: 100%; }
.sacola h2 { font-size: 21px; font-weight: 800; }
.sacola-sub { color: var(--poeira); font-size: 14px; margin: 2px 0 10px; }
.sacola-vazia { text-align: center; color: var(--poeira); padding: 36px 8px; font-size: 15px; }
.sacola-vazia strong { display: block; color: var(--cacau); font-size: 16.5px; margin-bottom: 4px; }
.linha-sacola { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--linha); }
.linha-sacola:last-of-type { border-bottom: 0; }
.ls-info { flex: 1; min-width: 0; }
.ls-nome { font-weight: 700; font-size: 15px; }
.ls-extra { color: var(--poeira); font-size: 13px; margin-top: 2px; }
.ls-rodape { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; gap: 10px; }
.ls-preco { font-weight: 700; font-variant-numeric: tabular-nums; }
.ls-qtd { display: flex; align-items: center; border: 1px solid var(--linha); border-radius: 10px; height: 36px; }
.ls-qtd button { width: 34px; height: 100%; border: 0; background: none; color: var(--ganache-texto); font-size: 18px; font-weight: 600; display: grid; place-items: center; }
.ls-qtd button svg { width: 16px; height: 16px; }
.ls-qtd span { min-width: 20px; text-align: center; font-weight: 700; font-size: 14px; }
.minimo { margin: 14px 0 4px; font-size: 13.5px; color: var(--poeira); }
.minimo-barra { height: 6px; border-radius: 999px; background: var(--linha); overflow: hidden; margin-top: 6px; }
.minimo-barra span { display: block; height: 100%; background: var(--caramelo); border-radius: inherit; transition: width .3s ease; }
.resumo { margin: 14px 0 0; display: grid; gap: 6px; font-size: 15px; }
.resumo div { display: flex; justify-content: space-between; gap: 12px; }
.resumo dt { color: var(--poeira); }
.resumo dd { margin: 0; }
.resumo .desconto dd { color: var(--verde); font-weight: 600; }
.resumo .total { font-weight: 800; font-size: 18px; padding-top: 8px; margin-top: 4px; border-top: 1px solid var(--linha); }
.resumo .total dt { color: var(--cacau); }
.sacola-acao { margin-top: 16px; }
.sacola-fechada { margin-top: 10px; font-size: 13.5px; color: var(--erro); text-align: center; }

/* Checkout */
.checkout { padding: 4px 16px 20px; }
.bloco { border: 0; margin: 0; padding: 18px 0 6px; border-bottom: 1px solid var(--linha); }
.bloco:last-of-type { border-bottom: 0; }
.bloco legend { font-weight: 800; font-size: 17px; padding: 0; margin-bottom: 12px; float: left; width: 100%; }
.bloco legend + * { clear: both; }
.campo { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.campo-rotulo { font-size: 14px; font-weight: 600; display: flex; justify-content: space-between; gap: 8px; }
.campo-rotulo small { color: var(--poeira); font-weight: 500; }
.campo input, .campo select, .campo textarea, .cupom input {
    width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--linha);
    background: var(--papel); font-size: 16px; outline: none; transition: border-color .15s ease;
}
.campo textarea { min-height: 0; resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus, .cupom input:focus { border-color: var(--ganache-texto); }
.campo.invalido input, .campo.invalido select { border-color: var(--erro); }
.campo-erro { color: var(--erro); font-size: 13px; font-weight: 600; }
.boas-vindas { margin: -4px 0 14px; padding: 10px 12px; border-radius: 10px; background: #F6EEE6; color: #6B3A1D; font-size: 14px; font-weight: 600; }
.segmentos, .pagamentos { display: grid; gap: 8px; margin-bottom: 16px; }
.segmentos { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.segmento, .pagamento { position: relative; cursor: pointer; }
.segmento input, .pagamento input { position: absolute; opacity: 0; pointer-events: none; }
.segmento > span, .pagamento > span {
    display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 12px 44px; border-radius: 12px;
    border: 1.5px solid var(--linha); transition: border-color .15s ease, background .15s ease; position: relative;
}
.segmento > span::before, .pagamento > span::before {
    content: ""; position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; margin-top: -10px;
    border-radius: 50%; border: 2px solid #C9BCB6; background: var(--papel); transition: all .15s ease;
}
.segmento small, .pagamento small { color: var(--poeira); font-size: 13px; }
.segmento input:checked + span, .pagamento input:checked + span { border-color: var(--ganache-texto); background: #FBF6F5; }
.segmento input:checked + span::before, .pagamento input:checked + span::before { border: 6px solid var(--ganache); }
.segmento input:focus-visible + span, .pagamento input:focus-visible + span { outline: 3px solid var(--caramelo); outline-offset: 2px; }
.troco { background: var(--nuvem); border-radius: 12px; padding: 14px 14px 4px; margin-bottom: 14px; }
.marcar { display: flex; align-items: center; gap: 8px; font-size: 14.5px; margin-bottom: 12px; }
.marcar input { width: 20px; height: 20px; accent-color: var(--ganache-texto); }
.cupom { display: flex; gap: 8px; }
.cupom input { flex: 1; text-transform: uppercase; }
.cupom-msg { font-size: 13.5px; font-weight: 600; margin: 8px 0 14px; min-height: 1px; }
.cupom-msg.ok { color: var(--verde); }
.cupom-msg.erro { color: var(--erro); }
.nota { font-size: 13.5px; color: var(--poeira); margin: 0 0 14px; }
.erro-geral { background: #FBEDEB; color: #7A2320; padding: 12px 14px; border-radius: 12px; font-size: 14.5px; font-weight: 600; margin: 14px 0 0; }

/* Confirmação */
.confirmacao { padding: 36px 22px calc(28px + var(--base-segura)); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ok-marca { width: 64px; height: 64px; border-radius: 50%; background: #E3F2EA; color: var(--verde); display: grid; place-items: center; animation: carimbo .45s cubic-bezier(.2, 1.4, .4, 1); }
.ok-marca svg { width: 32px; height: 32px; stroke-width: 2.6; }
@keyframes carimbo { from { transform: scale(.4); opacity: 0; } }
.confirmacao h2 { font-size: 24px; font-weight: 800; }
.ok-texto { color: var(--poeira); max-width: 34ch; margin: 0 0 6px; }
.ok-pix { width: 100%; margin-top: 12px; padding: 18px; border-radius: var(--r-grande); background: var(--nuvem); }
.ok-pix h3 { font-size: 17px; font-weight: 800; }
.ok-pix p { margin: 4px 0; }
.ok-qr { background: #fff; width: 210px; height: 210px; margin: 12px auto; padding: 8px; border-radius: 14px; display: grid; place-items: center; }
.ok-qr svg, .ok-qr img { width: 100%; height: 100%; stroke: none; }
.ok-codigo { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 11.5px; word-break: break-all; text-align: left; background: #fff; border-radius: 10px; padding: 10px; color: var(--poeira); max-height: 76px; overflow: auto; margin-bottom: 12px; }
.ok-acompanhar { margin-top: 10px; }

/* Aviso flutuante */
.aviso-flutuante {
    position: fixed; left: 50%; bottom: calc(86px + var(--base-segura)); z-index: 60; transform: translate(-50%, 20px);
    background: var(--cacau); color: #fff; padding: 11px 18px; border-radius: 12px; font-size: 14.5px; font-weight: 600;
    opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; max-width: calc(100% - 32px); text-align: center;
}
.aviso-flutuante.visivel { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Tablet ---------- */
@media (min-width: 700px) {
    .lista { grid-template-columns: 1fr 1fr; column-gap: 28px; }
    .item:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
    .item-foto { width: 116px; height: 116px; }
    .rodape-in { grid-template-columns: 1.4fr 1fr 1fr; }
    .tela { left: 50%; right: auto; bottom: auto; top: 50%; transform: translate(-50%, -50%); width: min(560px, calc(100% - 48px));
        max-height: min(88dvh, 820px); border-radius: 22px; animation: surgir .22s cubic-bezier(.2, .8, .2, 1); }
    @keyframes surgir { from { opacity: 0; transform: translate(-50%, -46%); } }
    .tela-rodape { border-radius: 0 0 22px 22px; }
    .p-foto { height: 280px; }
    .p-foto img { width: 220px; height: 220px; }
    .aviso-flutuante { bottom: 32px; }
}

/* ---------- Desktop: sacola fixa na lateral ---------- */
@media (min-width: 1080px) {
    html { scroll-padding-top: 120px; }
    .layout { grid-template-columns: minmax(0, 1fr) 360px; }
    .lista { grid-template-columns: 1fr; }
    .item:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid var(--linha); }
    .sacola-lateral { display: block; }
    .sacola-lateral-in {
        position: sticky; top: 20px; margin-top: 28px; border: 1px solid var(--linha); border-radius: var(--r-grande);
        max-height: calc(100vh - 40px); overflow-y: auto;
    }
    .barra-sacola { display: none !important; }
    .tela-sacola { display: none !important; }
    .capa-in { flex-direction: row; align-items: center; gap: 36px; padding: 30px 20px 34px; }
    .capa-marca { width: 340px; }
    .capa-selo { width: 120px; height: 120px; }
    .capa-slogan { margin-top: 2px; }
    .ferramentas { margin: 0; padding: 14px 0 0; border-bottom: 1px solid var(--linha); }
    .categorias { margin: 8px 0 0; padding: 0; }
    .destaques-trilho { margin: 0; padding: 0 0 4px; }
    .rodape { padding-bottom: 40px; }
}
@media (min-width: 1280px) {
    .lista { grid-template-columns: 1fr 1fr; }
    .item:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
}

@media (max-width: 420px) {
    .capa-in { padding: 14px 16px 22px; }
    .capa-marca { width: 220px; margin-left: -6px; }
    .capa-selo { width: 76px; height: 76px; }
    .layout { padding: 0 16px; }
    .ferramentas { margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
    .categorias { margin: 8px -16px 0; padding: 0 16px; }
    .destaques-trilho { margin: 0 -16px; padding: 0 16px 4px; scroll-padding-inline: 16px; grid-auto-columns: 64%; }
    .item-foto { width: 96px; height: 96px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
