/* ==========================================================
   Catálogo Digital - Vitrine pública
   ========================================================== */
:root {
    --bg: #eceef2;
    --surface: #ffffff;
    --surface-2: #f1f2f5;
    --surface-3: #e4e6ec;
    --txt: #0b0c0f;
    --txt-2: #2b2f38;
    --mut: #555b69;
    --mut-2: #8a8f9c;
    --bd: #dcdfe6;
    --ok: #16a34a;
    --r: 12px;
    --r-lg: 16px;
    --sh-xs: 0 1px 2px rgba(16, 17, 20, .07), 0 1px 1px rgba(16, 17, 20, .03);
    --sh-sm: 0 3px 10px -3px rgba(16, 17, 20, .14);
    --sh: 0 10px 30px -10px rgba(16, 17, 20, .18);
    --sh-lg: 0 30px 70px -20px rgba(16, 17, 20, .35);
    --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --c1-soft: rgba(var(--c1-rgb), .12);
}
*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; scroll-padding-top: 170px; background: var(--surface); }
body { margin: 0; font: 15px/1.5 var(--font); background: var(--bg); color: var(--txt); -webkit-font-smoothing: antialiased; }
a { color: var(--c1); text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -.02em; }
button { font: inherit; color: inherit; }
.icon { flex-shrink: 0; vertical-align: middle; }
.muted { color: var(--mut); }
.green { color: var(--ok); font-weight: 700; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
[hidden] { display: none !important; }

/* Página ocupa a tela toda: o rodapé fica sempre no fim, sem faixa vazia */
.page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; overflow-x: clip; }
.page > * { min-width: 0; }
.page > .main { flex: 1 0 auto; width: 100%; }
body.has-cart .footer { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }

/* ---------- Aviso ---------- */
.topbar-aviso {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--c2); color: #fff; padding: 9px 16px; font-size: .84rem; font-weight: 600; text-align: center;
}
.topbar-aviso .icon { color: var(--c1); filter: brightness(1.6); }

/* ---------- Mesa ---------- */
.mesa-bar { display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--c1); color: #fff; padding: 9px 16px; font-size: .86rem; font-weight: 600; text-align: center; }
.mesa-box { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 10px; background: var(--c1-soft); border: 1.5px solid var(--c1); }
.mesa-box > span { width: 46px; height: 46px; border-radius: 8px; display: grid; place-items: center; background: var(--c1); color: #fff; flex-shrink: 0; }
.mesa-box b { display: block; font-size: 1.05rem; }
.mesa-box small { color: var(--mut); }

/* ---------- Botão de enviar: ícone conforme o tipo ---------- */
.btn-main .ico-pix, .btn-main .ico-mesa { display: none; }
.btn-main.mesa .ico-wa { display: none; }
.btn-main.mesa .ico-mesa { display: inline-flex; }
.btn-main.pix, .btn-main.whats.pix { background: #0d9488; box-shadow: 0 12px 24px -12px rgba(14, 165, 164, .85); }
.btn-main.pix .ico-wa, .btn-main.pix .ico-mesa { display: none; }
.btn-main.pix .ico-pix { display: inline-flex; }
.btn-main.mesa:not(.pix) { background: var(--c1); box-shadow: 0 12px 24px -12px rgba(var(--c1-rgb), .8); }
.btn-main > span[class^="ico-"] { align-items: center; }
.btn-main .ico-wa { display: inline-flex; }

/* ---------- Pix online ---------- */
.pay-online { display: block; margin: 0 0 6px; cursor: pointer; }
.pay-online input { position: absolute; opacity: 0; pointer-events: none; }
.pay-online > span { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 13px 16px; border: 1.5px solid var(--bd); border-radius: 10px; transition: all .2s; position: relative; }
.pay-online > span::after { content: ''; position: absolute; right: 16px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; border: 2px solid var(--bd); transition: all .2s; }
.pay-online .pix-ico { grid-column: 1; grid-row: 1 / span 2; width: 40px; height: 40px; border-radius: 7px; display: grid; place-items: center; background: rgba(14, 165, 164, .12); color: #0d9488; font-style: normal; }
.pay-online b { grid-column: 2; font-size: .95rem; padding-right: 30px; line-height: 1.3; }
.pay-online small { grid-column: 2; color: var(--mut); font-size: .78rem; padding-right: 30px; }
.pay-online input:checked + span { border-color: #0d9488; background: rgba(14, 165, 164, .07); }
.pay-online input:checked + span::after { border-color: #0d9488; background: #0d9488; box-shadow: inset 0 0 0 4px var(--surface); }
.pay-online.invalid > span { border-color: #ef4444; }
.pay-sep { display: flex; align-items: center; gap: 10px; color: var(--mut-2); font-size: .76rem; font-weight: 600; margin: 12px 0 10px; text-transform: uppercase; letter-spacing: .04em; }
.pay-sep::before, .pay-sep::after { content: ''; flex: 1; height: 1px; background: var(--bd); }
.pix-modal { max-width: 420px; text-align: center; padding: 30px 24px 22px; }
.px-ico { width: 64px; height: 64px; border-radius: 12px; display: grid; place-items: center; margin: 0 auto 12px; background: rgba(14, 165, 164, .12); color: #0d9488; }
.px-ico.ok { border-radius: 50%; background: #dcfce7; color: #16a34a; animation: pop .5s var(--ease); }
.pix-modal h2 { margin: 0 0 4px; }
.px-sub { margin: 0 0 14px; color: var(--mut); }
.px-qr { width: 220px; height: 220px; margin: 0 auto 12px; border-radius: 11px; border: 1px solid var(--bd); background: #fff; padding: 8px; }
.px-qr img { width: 100%; height: 100%; object-fit: contain; display: block; }
.px-hint { font-size: .84rem; color: var(--mut); margin: 0 0 10px; }
.px-copy { display: flex; gap: 8px; padding: 6px 6px 6px 12px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--bd); }
.px-copy input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: .78rem; color: var(--txt-2); outline: 0; }
.px-copy button { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 6px; padding: 9px 14px; background: #0d9488; color: #fff; font: inherit; font-weight: 700; font-size: .84rem; cursor: pointer; }
.px-status { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 16px 0 6px; font-weight: 700; font-size: .88rem; color: #b45309; }
.px-status #px-tempo { color: var(--mut); font-weight: 500; }
.px-spin { width: 15px; height: 15px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
#px-pago .btn-main { margin-top: 10px; }
@keyframes spin { to { transform: rotate(360deg); } }

.pago-tag { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 14px; padding: 6px 12px; border-radius: 99px; background: #dcfce7; color: #15803d; font-weight: 700; font-size: .84rem; }
.track-pix { text-align: center; padding: 16px; margin: 0 0 16px; border-radius: 11px; border: 1.5px dashed #0d9488; background: rgba(14, 165, 164, .05); }
.track-pix > p:first-child { margin: 0 0 12px; }
.track-pix .px-copy { margin-bottom: 8px; }

.pixm { text-align: left; margin: 0 0 16px; padding: 16px; border-radius: 14px; border: 1.5px solid rgba(13, 148, 136, .35); background: rgba(14, 165, 164, .05); }
.pixm-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.pixm-top b { display: block; font-size: 1rem; }
.pixm-top small { color: var(--mut); }
.pixm-ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: #0d9488; color: #fff; flex-shrink: 0; }
.pixm-qr { display: grid; place-items: center; margin-bottom: 12px; }
.pixm-qr canvas { width: 180px; height: 180px; border-radius: 10px; border: 1px solid var(--bd); background: #fff; }
.pixm .px-copy { margin-bottom: 8px; }
.pixm-chave { margin: 0; font-size: .8rem; color: var(--mut); text-align: center; word-break: break-all; }
.cart-ok .pixm + .btn-main { margin-top: 4px; }

/* ---------- Pedido concluído ---------- */
.fim-card { position: relative; overflow: hidden; text-align: center; padding: 30px 22px 22px; }
.fim-ico { position: relative; z-index: 1; width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: #16a34a; color: #fff; box-shadow: 0 0 0 8px rgba(22, 163, 74, .15); animation: pop .6s var(--ease); }
.fim-num { position: relative; z-index: 1; display: block; margin: 0 0 4px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--mut); }
.fim-card h2 { position: relative; z-index: 1; font-size: 1.5rem !important; margin: 0 0 6px !important; }
.fim-card > p { position: relative; z-index: 1; margin: 0 0 18px; color: var(--mut); }
.fim-confete { position: absolute; inset: 0; pointer-events: none; }
.fim-confete i { position: absolute; top: -12px; width: 8px; height: 14px; border-radius: 2px; opacity: 0; animation: confete 2.4s ease-out forwards; }
.fim-confete i:nth-child(1) { left: 12%; background: var(--c1); animation-delay: .1s; }
.fim-confete i:nth-child(2) { left: 24%; background: #f59e0b; animation-delay: .35s; }
.fim-confete i:nth-child(3) { left: 38%; background: #22c55e; animation-delay: .2s; }
.fim-confete i:nth-child(4) { left: 52%; background: #3b82f6; animation-delay: .5s; }
.fim-confete i:nth-child(5) { left: 64%; background: #ec4899; animation-delay: .15s; }
.fim-confete i:nth-child(6) { left: 76%; background: var(--c1); animation-delay: .45s; }
.fim-confete i:nth-child(7) { left: 88%; background: #f59e0b; animation-delay: .3s; }
.fim-confete i:nth-child(8) { left: 46%; background: #a855f7; animation-delay: .6s; }
@keyframes confete { 0% { opacity: 1; transform: translateY(0) rotate(0); } 100% { opacity: 0; transform: translateY(240px) rotate(540deg); } }
.avaliar { position: relative; z-index: 1; padding: 16px; margin: 0 0 14px; border-radius: 12px; background: var(--surface-2); }
.av-tit { margin: 0 0 8px; font-weight: 700; }
.estrelas { display: flex; justify-content: center; gap: 4px; }
.estrelas button, .estrelas span { border: 0; background: none; padding: 2px 4px; font-size: 2.1rem; line-height: 1; color: var(--surface-3); cursor: pointer; transition: transform .15s, color .15s; }
.estrelas span { cursor: default; font-size: 1.7rem; }
.estrelas .on { color: #f59e0b; }
.estrelas button:hover { transform: scale(1.15); }
.av-extra { margin-top: 12px; display: grid; gap: 10px; }
.av-extra textarea { width: 100%; border: 1px solid var(--bd); border-radius: 10px; padding: 10px 12px; font: inherit; resize: vertical; background: var(--surface); color: var(--txt); }
.av-extra .btn-main { justify-content: center; }
.av-obg { margin: 8px 0 0; color: var(--mut); font-size: .9rem; }
.btn-main.fim-repetir { position: relative; z-index: 1; justify-content: center; }

/* ---------- Banners promocionais ---------- */
.promo { position: relative; margin: 6px 0 22px; }
.promo-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--r-lg); box-shadow: var(--sh-sm, 0 8px 24px -12px rgba(0,0,0,.25)); }
.promo-track::-webkit-scrollbar { display: none; }
.promo-slide { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 12 / 5; max-height: 320px; background: var(--surface-2); }
.promo-slide[data-abrir] { cursor: pointer; }
.promo-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.promo-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.promo-dots button { pointer-events: auto; width: 8px; height: 8px; border-radius: 99px; border: 0; padding: 0; background: rgba(255, 255, 255, .6); box-shadow: 0 1px 4px rgba(0, 0, 0, .3); cursor: pointer; transition: all .3s var(--ease); }
.promo-dots button.on { width: 24px; background: #fff; }

/* ==========================================================
   Vitrine (pensada primeiro para o celular)
   ========================================================== */

body.vitrine { --bg: #ffffff; --surface-2: #f2f3f5; }

/* ---------- Barra do topo: transparente sobre a capa; ao rolar fica branca ---------- */
.appbar { position: fixed; top: 0; left: 0; right: 0; z-index: 40; color: #fff; background: transparent; transition: background .25s, box-shadow .25s, color .25s; }
.appbar-in { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 60px; }
.ab-btn { position: relative; width: 42px; height: 42px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; cursor: pointer; display: grid; place-items: center; color: #fff;
    background: rgba(15, 15, 18, .5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .3); transition: background .2s, color .2s, border-color .2s, box-shadow .2s; }
.ab-btn svg { filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .35)); }
.ab-btn:hover { background: rgba(15, 15, 18, .65); }
.ab-nome { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 9px; opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s var(--ease); pointer-events: none; color: var(--txt); }
.appbar.solida { background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--bd), 0 8px 20px -14px rgba(0, 0, 0, .35); }
.appbar.show .ab-nome, .appbar.solida .ab-nome { opacity: 1; transform: none; }
.appbar.solida .ab-btn { background: var(--surface-2); color: var(--txt); border-color: transparent; box-shadow: none; backdrop-filter: none; }
.appbar.solida .ab-btn svg { filter: none; }
.appbar.solida .ab-btn, .appbar.solida .ab-cart { background: var(--c1); color: #fff; }
.ab-nome strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .98rem; font-weight: 800; }
.ab-nome .mini-logo { width: 30px; height: 30px; border-radius: 50%; }
.mini-count {
    position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
    border-radius: 999px; background: var(--c1); color: #fff; font-size: .7rem; font-weight: 800; border: 2px solid #fff;
    display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
}
.mini-logo { width: 36px; height: 36px; border-radius: 9px; overflow: hidden; flex-shrink: 0; display: grid; place-items: center; background: #fff; }
.mini-logo img { width: 100%; height: 100%; object-fit: cover; }
.mini-logo span, .store-logo span { width: 100%; height: 100%; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.mini-logo.lg { width: 56px; height: 56px; border-radius: 50%; }

/* ---------- Fundo suave do topo (brilho na cor da loja + pontinhos que somem) ---------- */
body { position: relative; isolation: isolate; }
body::before {
    content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1150px; z-index: -1; pointer-events: none;
    background:
        radial-gradient(700px 460px at 8% 300px, rgba(var(--c1-rgb), .30), transparent 70%),
        radial-gradient(620px 420px at 94% 460px, rgba(var(--c1-rgb), .22), transparent 70%),
        radial-gradient(1000px 340px at 50% 780px, rgba(var(--c1-rgb), .12), transparent 70%),
        radial-gradient(rgba(var(--c1-rgb), .38) 1.1px, transparent 1.5px) 0 0 / 22px 22px;
    -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 45%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0, #000 45%, transparent 100%);
}
html:not([data-tema="escuro"]) body::before { opacity: .8; }
@media (max-width: 700px) { body::before { height: 900px; background-size: auto, auto, auto, 18px 18px; } }

/* ---------- Capa ---------- */
.capa { height: 190px; background-color: var(--c2); background-size: cover; background-position: center;
    background-image: radial-gradient(circle at 20% 30%, rgba(var(--c1-rgb), .85), transparent 55%), radial-gradient(circle at 85% 80%, rgba(var(--c1-rgb), .5), transparent 50%), radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1px);
    background-size: auto, auto, 16px 16px;
}
.capa.com-foto { background-size: cover; }

/* ---------- Dados da loja ---------- */
.loja-topo > * { max-width: 100%; min-width: 0; }
.loja-topo { text-align: center; display: flex; flex-direction: column; align-items: center; padding-bottom: 4px; }
.store-logo { width: 112px; height: 112px; margin-top: -60px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #fff; border: 5px solid #fff; box-shadow: 0 10px 26px -10px rgba(0, 0, 0, .35); flex-shrink: 0; position: relative; z-index: 1; }
.store-logo img { width: 100%; height: 100%; object-fit: cover; }
.store-logo span { font-size: 2.4rem; }
.store-logo.sm { width: 58px; height: 58px; margin: 0; border-width: 0; box-shadow: none; }
.store-logo.sm span { font-size: 1.4rem; }
.loja-topo h1 { margin-top: 12px; font-size: 1.55rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.loja-topo h1 i { color: var(--c1); font-style: normal; }
.store-desc { margin: 4px 0 0; color: var(--txt-2); font-size: .95rem; max-width: 34em; }
.status-linha { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 8px; padding: 4px 8px; border: 0; background: none; cursor: pointer; font: inherit; font-size: .9rem; font-weight: 700; border-radius: 8px; }
.status-linha.open { color: #15803d; }
.status-linha.closed { color: #b91c1c; }
.status-linha small { color: var(--mut); font-weight: 500; font-size: .8rem; }
.status-linha:hover { background: var(--surface-2); }

.info-row { display: grid; width: 100%; max-width: 560px; margin-top: 14px; padding: 14px 0; border-top: 1px solid var(--bd); border-bottom: 1px solid var(--bd); }
.info-row.n1 { grid-template-columns: 1fr; }
.info-row.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.info-row.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.info-row > div { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 6px; text-align: left; min-width: 0; }
.info-row > div + div { border-left: 1px solid var(--bd); }
.ir-ico { color: var(--txt-2); display: grid; }
.info-row small { display: block; font-size: .78rem; color: var(--mut); line-height: 1.2; }
.info-row b { display: block; font-size: .86rem; color: var(--txt); line-height: 1.25; }
.info-row.n3 b { font-size: .8rem; }
.info-row.n3 small { font-size: .72rem; }
.info-row.n3 .ir-ico { display: none; }
.info-row.n3 > div { justify-content: center; text-align: center; }

.loja-acoes { display: flex; gap: 8px; margin-top: 14px; overflow-x: auto; max-width: 100%; padding: 2px; scrollbar-width: none; }
.loja-acoes::-webkit-scrollbar { display: none; }
.acao { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--bd); background: var(--surface); color: var(--txt-2); font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; white-space: nowrap; flex-shrink: 0; transition: all .2s; text-decoration: none; }
.acao:hover { border-color: var(--c1); color: var(--c1); }
.acao.icone { width: 36px; padding: 0; justify-content: center; }
.acao.wa { color: #15803d; border-color: rgba(34, 197, 94, .45); background: rgba(34, 197, 94, .08); }
.acao.destaque { background: var(--c1); border-color: var(--c1); color: #fff; }
.acao.destaque:hover { color: #fff; filter: brightness(1.08); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.dot.on { background: #10b981; }
.dot.off { background: #ef4444; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; border: 0; }
.status.open { background: #ecfdf5; color: #047857; }
.status.closed { background: #fef2f2; color: #b91c1c; }

/* ---------- Busca + categorias ---------- */
.sticky-nav { position: sticky; top: 60px; z-index: 30; padding-top: 14px; background: transparent; transition: box-shadow .2s, background-color .2s; }
.sticky-nav.stuck { background: var(--bg); }
.sticky-nav.stuck { box-shadow: 0 10px 18px -16px rgba(0, 0, 0, .45); }
.search { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 16px; background: var(--surface-2); border: 1.5px solid transparent; border-radius: 10px; cursor: text; transition: border-color .2s, background .2s; }
.search .icon { color: var(--c1); }
.search:focus-within { border-color: var(--c1); background: var(--surface); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: .95rem; height: 100%; color: var(--txt); }
.search input::placeholder { color: var(--mut); }
.search input::-webkit-search-cancel-button { cursor: pointer; }
.chips { position: relative; display: flex; gap: 4px; overflow-x: auto; padding: 8px 2px 10px; margin-top: 6px; scrollbar-width: none; border-bottom: 1px solid var(--bd); isolation: isolate; }
.chips::-webkit-scrollbar { display: none; }
.chip { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 8px 15px; border-radius: 999px; color: var(--mut); font-size: .88rem; font-weight: 700; letter-spacing: .01em; transition: color .3s var(--ease), transform .3s var(--ease); }
.chip:hover { color: var(--txt); }
.chip:active { transform: scale(.96); }
.chip.active { color: var(--c1); }
.chip .icon { color: inherit; transition: transform .35s var(--ease); }
.chip:hover .icon { transform: rotate(-8deg) scale(1.12); }
.chip-fav .icon { color: #ef4444; }
/* Pílula que desliza até o item (segue o mouse e volta para o ativo) */
.chips-glider { position: absolute; z-index: 0; top: 8px; left: 0; height: calc(100% - 18px); width: 0; border-radius: 999px; pointer-events: none;
    background: linear-gradient(135deg, rgba(var(--c1-rgb), .16), rgba(var(--c1-rgb), .07));
    box-shadow: inset 0 0 0 1px rgba(var(--c1-rgb), .28), 0 6px 18px -10px rgba(var(--c1-rgb), .6);
    opacity: 0; transition: transform .45s cubic-bezier(.22, 1, .36, 1), width .45s cubic-bezier(.22, 1, .36, 1), opacity .3s; }
.chips-glider.on { opacity: 1; }
.chips-glider.hover { background: linear-gradient(135deg, rgba(var(--c1-rgb), .11), rgba(var(--c1-rgb), .04)); box-shadow: inset 0 0 0 1px rgba(var(--c1-rgb), .18); }
/* Linha fina embaixo do item ativo */
.chips-glider::after { content: ''; position: absolute; left: 50%; bottom: -11px; width: 22px; height: 3px; margin-left: -11px; border-radius: 3px; background: var(--c1); transition: opacity .3s, transform .3s; }
.chips-glider.hover::after { opacity: 0; transform: scaleX(.3); }
@media (prefers-reduced-motion: reduce) { .chips-glider { transition: none; } }
body.menu-on { overflow: hidden; }

/* Resultado da busca */
.busca-info { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 0 0; font-size: .92rem; color: var(--txt-2); }
.busca-info[hidden] { display: none; }
.busca-info b { color: var(--txt); }
.busca-info button { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--bd); background: var(--surface); color: var(--c1); font: inherit; font-size: .82rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; cursor: pointer; }

/* ---------- Seções ---------- */
main.main { padding-bottom: 30px; }
.section { padding-top: 14px; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.section-head .kicker { display: block; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--c1); margin-bottom: 2px; }
.section-head h2 { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; display: flex; align-items: center; gap: 8px; }
.section-head h2 .icon { color: var(--c1); }
#favoritos .section-head h2 .icon { color: #ef4444; fill: #ef4444; }
.ver-tudo { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--c1); font: inherit; font-weight: 700; font-size: .88rem; cursor: pointer; padding: 6px 0; }
.ver-tudo span { display: none; }
.scroll-btns { display: none; gap: 8px; }
.scroll-btns button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--bd); background: var(--surface); cursor: pointer; display: grid; place-items: center; color: var(--txt-2); }
.scroll-btns button:hover { border-color: var(--c1); color: var(--c1); }

/* Fileira que rola para o lado (celular) */
.list, .scroller {
    display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 24px) / 3); gap: 12px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 -16px; padding: 4px 16px 6px; scroll-padding: 0 16px;
}
.list::-webkit-scrollbar, .scroller::-webkit-scrollbar { display: none; }
/* Fileira das categorias: só cards inteiros na tela (nada do próximo aparecendo na borda) */
@media (max-width: 899px) { .list { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; scroll-padding: 0; } }
.list > *, .scroller > * { scroll-snap-align: start; }
.ver-tudo-card { display: flex; align-items: center; justify-content: center; gap: 6px; border: 0; background: none; color: var(--txt-2); font: inherit; font-size: 1rem; cursor: pointer; }
.ver-tudo-card .icon { color: var(--c1); }
/* "Ver tudo" aberto ou buscando: grade */
.section.aberta .list, body.buscando .list { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; overflow: visible; margin: 0; padding: 0; }
@media (max-width: 359px) { .section.aberta .list, body.buscando .list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.section.aberta .ver-tudo-card, body.buscando .ver-tudo-card, body.buscando .ver-tudo { display: none; }

/* Categoria grande: só uma parte aparece até tocar em "Ver mais" (na busca aparece tudo) */
.product.a-mais { display: none; }
body.buscando .product.a-mais:not([hidden]) { display: flex; }
.ver-mais { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 16px; }
.ver-mais[hidden], body.buscando .ver-mais { display: none; }
.ver-mais small { color: var(--txt-2); font-size: .78rem; }
.ver-mais button { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--bd); background: var(--surface); color: var(--c1); font: inherit; font-weight: 700; font-size: .9rem; padding: 10px 22px; border-radius: 999px; cursor: pointer; transition: border-color .2s, transform .2s; }
.ver-mais button:hover { border-color: var(--c1); transform: translateY(-1px); }

/* ---------- Card de produto ---------- */
.product { position: relative; display: flex; flex-direction: column; min-width: 0; cursor: pointer; text-align: center; background: var(--surface); border-radius: 14px; overflow: hidden; box-shadow: 0 2px 10px -4px rgba(16, 17, 20, .14); border: 1px solid rgba(16, 17, 20, .05); transition: transform .3s var(--ease), box-shadow .3s var(--ease); animation: rise .45s var(--ease) both; }
.product:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -18px rgba(16, 17, 20, .4); }
.product:focus-visible { outline: 3px solid rgba(var(--c1-rgb), .4); outline-offset: 2px; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.product.is-out { opacity: .62; }
.product.is-out .product-img img { filter: grayscale(1); }
.product-img { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--surface-2); flex-shrink: 0; }
.product-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.product:hover .product-img img { transform: scale(1.05); }
.noimg { width: 100%; height: 100%; display: grid; place-items: center; background: radial-gradient(circle at 30% 25%, rgba(var(--c1-rgb), .18), transparent 60%), linear-gradient(135deg, var(--surface-2), rgba(var(--c1-rgb), .1)); }
.noimg b { font-size: 2.4rem; font-weight: 800; color: rgba(var(--c1-rgb), .5); }
.product-info { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: 1; min-width: 0; padding: 10px 10px 10px; }
.product-info h3 { font-size: .9rem; font-weight: 700; line-height: 1.25; color: var(--txt); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.product-info p { display: none; }
.product-foot { width: 100%; margin-top: auto; padding-top: 6px; display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.prices { display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
.price { font-size: 1.05rem; font-weight: 800; color: var(--txt); letter-spacing: -.02em; }
.old { order: -1; color: var(--mut-2); text-decoration: line-through; font-size: .74rem; font-weight: 500; }
.prices:has(.old) .price { color: var(--c1); }
.add-btn { display: flex; align-items: center; justify-content: center; gap: 6px; height: 36px; width: 100%; border: 0; border-radius: 8px; background: var(--c1); color: #fff; font: inherit; font-size: .84rem; font-weight: 700; cursor: pointer; transition: filter .2s, transform .15s; }
.add-btn:hover { filter: brightness(1.08); }
.add-btn:active { transform: scale(.97); }
.add-btn.added { animation: pop .45s var(--ease); background: #16a34a; }
.add-btn.off { background: var(--surface-2); color: var(--mut); cursor: default; }
@keyframes pop { 50% { transform: scale(1.06); } }
.badge { position: absolute; top: 8px; left: 8px; z-index: 1; background: var(--c1); color: #fff; font-size: .7rem; font-weight: 800; padding: 3px 8px; border-radius: 999px; }
.badge.out { background: rgba(16, 17, 20, .85); }
.badge.low { background: #f59e0b; }
.fav-btn { position: absolute; top: 8px; right: 8px; z-index: 1; width: 30px; height: 30px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; background: rgba(255, 255, 255, .94); color: var(--mut); box-shadow: 0 2px 8px rgba(0, 0, 0, .15); transition: transform .2s var(--ease), color .2s; }
.fav-btn svg { width: 15px; height: 15px; }
.fav-btn:hover { transform: scale(1.1); color: #ef4444; }
.fav-btn.on { color: #ef4444; }
.fav-btn.on svg { fill: #ef4444; }
.fav-btn.pop { animation: pop .4s var(--ease); }
.fav-btn.lg { position: static; width: 42px; height: 42px; background: var(--surface-2); box-shadow: none; flex-shrink: 0; }
.fav-btn.lg svg { width: 18px; height: 18px; }
.pm-acoes { display: flex; gap: 8px; flex-shrink: 0; }
.fav-btn.pm-share:hover { color: var(--c1); }
.rank-n { position: absolute; left: 8px; bottom: 8px; z-index: 1; min-width: 30px; height: 26px; padding: 0 8px; border-radius: 999px; display: grid; place-items: center; background: var(--c1); color: #fff; font-size: .74rem; font-weight: 800; box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .5); }
#mais-pedidos .product .badge { top: 8px; }

/* ---------- Vazio / rodapé ---------- */
.empty { text-align: center; padding: 60px 20px; color: var(--mut); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.empty strong { color: var(--txt); font-size: 1.05rem; }
.empty-ico { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--bd); color: var(--mut-2); margin-bottom: 10px; }
.footer { background: var(--surface); border-top: 1px solid var(--bd); padding: 30px 0 calc(22px + env(safe-area-inset-bottom)); margin-top: 40px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.footer-inner strong { font-size: 1.05rem; font-weight: 800; margin-top: 6px; }
.footer-inner > small { color: var(--mut); display: flex; align-items: center; gap: 5px; font-size: .84rem; }
.footer-links { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.footer-links a, .footer-links button { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--bd); background: var(--surface); color: var(--txt-2); font: inherit; font-size: .84rem; font-weight: 600; cursor: pointer; }
.footer-links a:hover, .footer-links button:hover { border-color: var(--c1); color: var(--c1); }
.footer-copy { color: var(--mut-2); font-size: .78rem; margin: 18px 0 0; }

/* ---------- Menu lateral ---------- */
.menu-lat { position: fixed; inset: 0; z-index: 70; }
.ml-fundo { position: absolute; inset: 0; background: rgba(10, 11, 15, .5); opacity: 0; transition: opacity .25s; }
.ml-painel { position: absolute; top: 0; bottom: 0; left: 0; width: min(320px, 86vw); background: var(--surface); overflow-y: auto; transform: translateX(-100%); transition: transform .3s var(--ease); padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
.menu-lat.aberto .ml-fundo { opacity: 1; }
.menu-lat.aberto .ml-painel { transform: none; box-shadow: 20px 0 40px -20px rgba(0, 0, 0, .4); }
.ml-topo { display: flex; align-items: center; gap: 12px; padding: 18px 16px; background: var(--c1); color: #fff; }
.ml-topo > div { flex: 1; min-width: 0; }
.ml-topo strong { display: block; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml-topo small { font-size: .8rem; opacity: .9; }
.ml-topo .mini-logo.lg { width: 48px; height: 48px; border: 2px solid rgba(255, 255, 255, .6); }
.ml-x { width: 38px; height: 38px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .15); color: #fff; cursor: pointer; display: grid; place-items: center; }
.ml-links { display: flex; flex-direction: column; padding: 8px 0; }
.ml-links a, .ml-links button { display: flex; align-items: center; gap: 14px; padding: 13px 20px; border: 0; background: none; color: var(--txt); font: inherit; font-size: .95rem; font-weight: 600; text-align: left; cursor: pointer; text-decoration: none; }
.ml-links a:hover, .ml-links button:hover { background: var(--surface-2); color: var(--c1); }
.ml-links .icon { color: var(--c1); }
.ml-links.cats a { justify-content: space-between; padding: 11px 20px; font-weight: 600; }
.ml-links.cats small { min-width: 24px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--surface-2); color: var(--mut); font-size: .72rem; display: grid; place-items: center; }
.ml-tit { margin: 6px 20px 0; padding-top: 14px; border-top: 1px solid var(--bd); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--mut); }

/* ---------- Telas maiores ---------- */
@media (min-width: 640px) {
    .list, .scroller { grid-auto-columns: calc((100% - 36px) / 4); }
}
@media (min-width: 900px) {
    .appbar-in { height: 68px; }
    .sticky-nav { top: 68px; }
    .capa { height: 280px; }
    .store-logo { width: 132px; height: 132px; margin-top: -70px; }
    .loja-topo h1 { font-size: 2rem; }
    .info-row .ir-ico { display: grid !important; }
    .info-row > div { justify-content: center; text-align: left !important; }
    .sticky-nav .wrap { max-width: 1240px; }
    .search { max-width: 560px; margin: 0 auto; }
    .chips { justify-content: safe center; }
    .section-head h2 { font-size: 1.5rem; }
    .scroll-btns { display: flex; }
    /* Categorias em grade, sem rolagem lateral */
    .list { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; overflow: visible; margin: 0; padding: 0; }
    .section.aberta .list, body.buscando .list { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
    .ver-tudo, .ver-tudo-card { display: none !important; }
    .scroller { grid-auto-columns: calc((100% - 72px) / 5); gap: 18px; margin: 0; padding: 4px 2px 12px; }
    .product-info { padding: 12px 12px 12px; }
    .product-info h3 { font-size: .95rem; }
    .add-btn { height: 38px; }
}
@media (max-width: 899px) {
    .wrap { padding: 0 16px; }
}
@media (max-width: 420px) {
    .acao { padding: 0 11px; font-size: .78rem; }
    .acao.icone { padding: 0; }
    #install-btn { font-size: 0; gap: 0; width: 36px; padding: 0; justify-content: center; }
    .info-row .ir-ico svg { width: 19px; height: 19px; }
}
@media (max-width: 380px) {
    .info-row b { font-size: .8rem; }
    .info-row small { font-size: .72rem; }
}
@media (max-width: 339px) { .list, .scroller { grid-auto-columns: calc((100% - 12px) / 2); } }


/* ---------- Barra do carrinho ---------- */
.cart-bar {
    position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 35;
    transform: translateX(-50%); width: calc(100% - 28px); max-width: 480px;
    display: flex; align-items: center; gap: 14px; padding: 9px 9px 9px 10px; border: 0; border-radius: 12px; cursor: pointer;
    background: rgba(16, 17, 20, .94); color: #fff; backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .55); animation: barIn .45s var(--ease);
}
.cart-bar.bump { animation: bump .45s var(--ease); }
@keyframes barIn { from { transform: translate(-50%, 130%); } }
@keyframes bump { 40% { transform: translateX(-50%) scale(1.04); } }
.cart-ico { position: relative; width: 44px; height: 44px; border-radius: 9px; display: grid; place-items: center; background: var(--c1); }
.cart-count { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 7px; background: #fff; color: #111; font-size: .72rem; font-weight: 800; display: grid; place-items: center; }
.cart-label { flex: 1; text-align: left; font-weight: 600; }
.cart-bar strong { background: rgba(255, 255, 255, .1); padding: 10px 14px; border-radius: 8px; }

/* ---------- Modais ---------- */
.modal {
    position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center;
    background: rgba(10, 11, 15, .55); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
    animation: fade .25s ease;
}
@keyframes fade { from { opacity: 0; } }
.modal-box {
    position: relative; width: 100%; max-width: 560px; max-height: 94vh; max-height: 94dvh; overflow-y: auto;
    background: var(--surface); border-radius: 17px 17px 0 0; padding: 26px 22px calc(22px + env(safe-area-inset-bottom));
    animation: sheet .45s var(--ease);
}
.modal-box::before { content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 40px; height: 5px; border-radius: 3px; background: rgba(0, 0, 0, .12); z-index: 4; }
@keyframes sheet { from { transform: translateY(60px); opacity: .5; } }
.modal-box h2 { font-size: 1.35rem; font-weight: 800; }
.modal-box h3 { font-size: .96rem; font-weight: 800; margin: 22px 0 12px; }
.modal-close {
    position: absolute; top: 14px; right: 14px; z-index: 5; width: 38px; height: 38px; border-radius: 7px; border: 0; cursor: pointer;
    display: grid; place-items: center; background: rgba(255, 255, 255, .94); color: var(--txt); box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
}
.modal-close.static { position: static; box-shadow: none; background: var(--surface-2); }
body.no-scroll { overflow: hidden; }

/* Produto */
.product-modal { padding: 0; max-width: 920px; display: flex; flex-direction: column; overflow: hidden; }
.pm-media { position: relative; background: var(--surface-2); flex-shrink: 0; }
.gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery .g-slide { position: relative; width: 100%; flex-shrink: 0; aspect-ratio: 4 / 3; scroll-snap-align: center; overflow: hidden; background: #1a1a1d; }
.g-slide::before { content: ""; position: absolute; inset: -30px; background: var(--img) center / cover no-repeat; filter: blur(22px) brightness(.85) saturate(1.1); }
.g-slide img { position: relative; width: 100%; height: 100%; object-fit: contain; display: block; }
.pm-media:has(.gallery:empty) { display: none; }
.dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.dots span { width: 7px; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .6); transition: all .3s; }
.dots span.on { width: 20px; background: #fff; }
.pm-content { display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; }
/* No celular a foto fica parada e só os textos rolam */
@media (max-width: 719px) { .product-modal .gallery .g-slide { max-height: 42vh; max-height: 42dvh; } }
.pm-body { padding: 20px 22px 18px; }
.pm-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.product-modal:has(.gallery:empty) .pm-body { padding-top: 36px; }
.product-modal:has(.gallery:empty) .pm-title { padding-right: 44px; }
.prices.lg { flex-direction: row; align-items: baseline; gap: 10px; margin-top: 6px; }
.prices.lg .price { font-size: 1.45rem; }
.prices.lg .old { font-size: .92rem; }
.pm-stock { margin: 8px 0 0; display: inline-flex; padding: 4px 10px; border-radius: 8px; background: #fffbeb; color: #b45309; font-size: .8rem; font-weight: 700; }
.pm-desc { color: var(--mut); white-space: pre-line; margin: 12px 0 4px; line-height: 1.6; }
.var-group { margin: 22px 0; }
.var-group-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.var-group-title b { font-size: .98rem; font-weight: 800; display: block; }
.var-group-title small { color: var(--mut); font-size: .78rem; }
.vg-badge { font-size: .68rem; font-weight: 800; padding: 4px 9px; border-radius: 8px; background: var(--surface-2); color: var(--mut); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; transition: all .2s; }
.vg-badge.req { background: #111; color: #fff; }
.vg-badge.ok { background: #ecfdf5; color: #047857; }
.var-group.shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.var-opts { display: flex; flex-direction: column; gap: 8px; }
.var-opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--bd); border-radius: 9px; cursor: pointer; transition: all .2s; }
.var-opt:hover { border-color: rgba(var(--c1-rgb), .45); }
.var-opt.sel, .var-opt:has(input:checked) { border-color: var(--c1); background: var(--c1-soft); }
.var-opt .vo-txt { flex: 1; min-width: 0; }
.var-opt .vo-txt span { font-weight: 600; display: block; }
.var-opt em { font-style: normal; color: var(--mut); font-size: .84rem; font-weight: 600; }
.var-opt input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 0; border-radius: 50%; border: 2px solid var(--mut-2); display: grid; place-items: center; transition: all .2s; flex-shrink: 0; }
.var-opt input:checked { border-color: var(--c1); }
.var-opt input:checked::after { content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--c1); }
.step { display: flex; align-items: center; gap: 2px; background: var(--surface-2); border-radius: 7px; padding: 3px; flex-shrink: 0; }
.step button { width: 30px; height: 30px; border: 0; border-radius: 9px; background: none; color: var(--c1); font-size: 1.15rem; font-weight: 700; cursor: pointer; display: grid; place-items: center; }
.step button:disabled { color: var(--mut-2); cursor: not-allowed; }
.step button:not(:disabled):hover { background: var(--surface); }
.step span { min-width: 20px; text-align: center; font-weight: 800; font-size: .9rem; }
.step.zero span, .step.zero [data-menos] { display: none; }
.share-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--mut); font-size: .85rem; font-weight: 600; padding: 4px 0 8px; cursor: pointer; }
.share-btn:hover { color: var(--c1); }
.pm-footer {
    position: sticky; bottom: 0; margin-top: auto; display: flex; gap: 12px; align-items: center;
    padding: 14px 22px calc(14px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px); border-top: 1px solid var(--bd);
}
.qty { display: flex; align-items: center; background: var(--surface-2); border-radius: 9px; flex-shrink: 0; padding: 4px; }
.qty button { width: 40px; height: 44px; border: 0; background: none; font-size: 1.35rem; font-weight: 600; cursor: pointer; color: var(--c1); border-radius: 6px; display: grid; place-items: center; }
.qty button:hover { background: var(--surface); }
.qty span { min-width: 30px; text-align: center; font-weight: 800; }
.btn-main {
    flex: 1; width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px;
    padding: 0 20px; height: 54px; border: 0; border-radius: 10px; cursor: pointer; text-decoration: none;
    background: var(--c1); color: #fff; font-weight: 700; font-size: 1rem;
    box-shadow: 0 12px 24px -12px rgba(var(--c1-rgb), .85); transition: filter .2s, transform .1s;
}
.btn-main:hover { filter: brightness(1.07); color: #fff; }
.btn-main:active { transform: scale(.99); }
.btn-main:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn-main.whats { justify-content: center; background: #22c55e; box-shadow: 0 12px 24px -12px rgba(34, 197, 94, .85); }
.btn-main.ghost { justify-content: center; background: var(--surface-2); color: var(--txt); box-shadow: none; }
.btn-link { display: block; margin: 10px auto 0; background: none; border: 0; color: var(--mut); cursor: pointer; font-size: .85rem; font-weight: 600; text-align: center; }
.btn-link:hover { color: #ef4444; }

/* Carrinho (gaveta) */
.cart-modal { padding: 0; display: flex; flex-direction: column; overflow: hidden; overflow: clip; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 24px 22px 14px; border-bottom: 1px solid var(--bd); }
.drawer-head h2 { display: flex; align-items: center; gap: 10px; }
.drawer-head h2 .icon { color: var(--c1); }
.drawer-body { flex: 1; overflow-y: auto; padding: 6px 22px 12px; }
.drawer-foot { padding: 14px 22px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--bd); background: var(--surface); }
.cart-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px dashed var(--bd); align-items: center; animation: rise .35s var(--ease) both; }
.cart-item img, .cart-item .ci-noimg { width: 60px; height: 60px; border-radius: 9px; object-fit: cover; background: var(--surface-2); flex-shrink: 0; display: grid; place-items: center; color: var(--mut-2); }
.ci-info { flex: 1; min-width: 0; }
.ci-info strong { display: block; font-weight: 700; line-height: 1.3; }
.ci-info small { display: block; color: var(--mut); font-size: .78rem; }
.ci-info .ci-price { color: var(--txt); font-weight: 800; margin-top: 4px; display: block; }
.ci-right .qty { padding: 3px; border-radius: 7px; }
.ci-right .qty button { width: 32px; height: 32px; font-size: 1.1rem; }
.ci-right .qty span { min-width: 24px; font-size: .9rem; }
.ci-right .qty svg { width: 15px; height: 15px; }
.cart-empty { text-align: center; padding: 50px 10px; color: var(--mut); }
.cart-empty .empty-ico { margin: 0 auto 12px; }
.cart-empty strong { display: block; color: var(--txt); font-size: 1.05rem; }
.cart-ok { text-align: center; padding: 34px 6px; }
.cart-ok .ok-ico { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 16px; background: #dcfce7; color: #16a34a; animation: pop .5s var(--ease); }
.cart-ok h3 { margin: 0 0 6px; font-size: 1.2rem; }
.cart-ok p { color: var(--mut); margin: 0 0 20px; }
.cart-ok .btn-main { margin-bottom: 10px; justify-content: center; }

.block { padding: 4px 0; }
.block h3 { display: flex; align-items: center; gap: 10px; margin-top: 22px; }
.block .n { width: 24px; height: 24px; border-radius: 8px; background: var(--c1); color: #fff; font-size: .76rem; display: grid; place-items: center; }
.field { display: block; margin-bottom: 14px; font-weight: 600; font-size: .85rem; color: var(--txt-2); }
.field input, .field textarea, .field select {
    width: 100%; margin-top: 6px; padding: 13px 14px; border: 1.5px solid var(--bd); border-radius: 8px; background: var(--surface);
    font: inherit; font-weight: 500; font-size: .95rem; color: var(--txt); outline: none; transition: border-color .2s, box-shadow .2s;
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--c1); box-shadow: 0 0 0 4px var(--c1-soft); }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #ef4444; background-color: #fef2f2; }
.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-bottom: 14px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label > span { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 12px 14px; border: 1.5px solid var(--bd); border-radius: 9px; transition: all .2s; }
.seg .icon { grid-row: span 2; color: var(--mut); }
.seg b { font-size: .9rem; }
.seg small { color: var(--mut); font-size: .76rem; font-weight: 500; }
.seg input:checked + span { border-color: var(--c1); background: var(--c1-soft); }
.seg input:checked + span .icon { color: var(--c1); }
.pay-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.pay-grid.invalid .pay span { border-color: #ef4444; }
.pay input { position: absolute; opacity: 0; pointer-events: none; }
.pay span { display: inline-flex; align-items: center; padding: 10px 16px; border: 1.5px solid var(--bd); border-radius: 7px; font-weight: 600; font-size: .88rem; cursor: pointer; transition: all .2s; }
.pay input:checked + span { border-color: var(--c1); background: var(--c1-soft); color: var(--c1); }
.dias { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.dias::-webkit-scrollbar { display: none; }
.dia { flex-shrink: 0; padding: 9px 14px; border-radius: 7px; border: 1.5px solid var(--bd); background: var(--surface); font-weight: 700; font-size: .84rem; cursor: pointer; }
.dia.on { border-color: var(--c1); background: var(--c1); color: #fff; }
.horas { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; margin: 8px 0 14px; }
.hora { padding: 8px 0; border-radius: 6px; border: 1.5px solid var(--bd); background: var(--surface); font-weight: 600; font-size: .84rem; cursor: pointer; }
.hora.on { border-color: var(--c1); background: var(--c1-soft); color: var(--c1); }
.hint { display: flex; align-items: center; gap: 6px; color: var(--mut); font-size: .82rem; margin: -4px 0 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cupom-box { margin: 18px 0 14px; }
.cupom-input { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; border: 1.5px dashed rgba(var(--c1-rgb), .45); border-radius: 9px; background: var(--c1-soft); }
.cupom-input .icon { color: var(--c1); }
.cupom-input input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font: inherit; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.cupom-input input::placeholder { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--mut); }
.cupom-input button, .cupom-ok button { border: 0; border-radius: 6px; padding: 9px 14px; font-weight: 700; cursor: pointer; background: var(--c1); color: #fff; }
.cupom-ok { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-radius: 9px; background: #ecfdf5; color: #047857; font-weight: 600; font-size: .88rem; }
.cupom-ok span { flex: 1; }
.cupom-ok button { background: transparent; color: #047857; padding: 6px 8px; }
.cupom-erro { color: #b91c1c; font-size: .82rem; margin: 6px 0 0; font-weight: 600; }
.resumo { margin-bottom: 12px; }
.resumo div { display: flex; justify-content: space-between; padding: 3px 0; color: var(--mut); font-size: .9rem; }
.resumo .total { color: var(--txt); font-weight: 800; font-size: 1.18rem; padding-top: 8px; }
.aviso { display: flex; align-items: center; gap: 8px; background: #fffbeb; color: #92400e; padding: 10px 12px; border-radius: 7px; font-size: .84rem; font-weight: 500; margin: 0 0 12px; }
.aviso.erro { background: #fef2f2; color: #b91c1c; }
.aviso.info { background: #ecfdf5; color: #047857; }

/* Meus pedidos */
.mp-item { padding: 14px 0; border-bottom: 1px dashed var(--bd); }
.mp-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.mp-top strong { font-weight: 800; }
.mp-st { font-size: .72rem; font-weight: 800; padding: 4px 9px; border-radius: 8px; background: var(--surface-2); color: var(--mut); white-space: nowrap; }
.mp-st.novo { background: #fffbeb; color: #b45309; }
.mp-st.confirmado, .mp-st.preparando { background: #eff6ff; color: #1d4ed8; }
.mp-st.enviado { background: #f5f3ff; color: #6d28d9; }
.mp-st.concluido { background: #ecfdf5; color: #047857; }
.mp-st.cancelado { background: #fef2f2; color: #b91c1c; }
.mp-item p { margin: 4px 0 10px; color: var(--mut); font-size: .84rem; }
.mp-btns { display: flex; gap: 8px; }
.mp-btns button, .mp-btns a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; border-radius: 7px; font-weight: 700; font-size: .84rem; cursor: pointer; border: 1.5px solid var(--bd); background: var(--surface); color: var(--txt); text-decoration: none; }
.mp-btns .again { background: var(--c1); border-color: var(--c1); color: #fff; }

/* Informações */
.info-modal { padding-top: 30px; }
.info-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; padding-right: 40px; }
.info-head h2 { margin-bottom: 6px; }
.info-list { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; }
.info-list li { display: flex; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--bd); }
.info-list li:last-child { border: 0; }
.info-list li > span { width: 40px; height: 40px; border-radius: 7px; display: grid; place-items: center; background: var(--c1-soft); color: var(--c1); flex-shrink: 0; }
.info-list b { display: block; font-size: .85rem; }
.info-list div { color: var(--mut); font-size: .88rem; }
.horarios { width: 100%; border-collapse: collapse; }
.horarios td { padding: 10px 4px; border-bottom: 1px solid var(--bd); font-size: .9rem; }
.horarios td:last-child { text-align: right; font-weight: 600; }
.horarios tr.hoje td { color: var(--c1); font-weight: 800; }
.horarios small { font-size: .68rem; background: var(--c1-soft); padding: 2px 7px; border-radius: 6px; margin-left: 4px; text-transform: uppercase; }
.ios-steps { text-align: center; }
.ios-steps .store-logo { margin: 0 auto 14px; }
.ios-steps ol { text-align: left; margin: 18px 0 4px; padding-left: 22px; line-height: 2; }
.ios-ico { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--surface-2); color: #0a84ff; vertical-align: middle; }

/* Janela de confirmação */
.dlg-overlay { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; background: rgba(10, 11, 15, .5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .2s ease; }
.dlg-overlay.show { opacity: 1; }
.dlg { width: 100%; max-width: 400px; text-align: center; background: var(--surface); border-radius: 16px; padding: 30px 24px 22px; box-shadow: var(--sh-lg); transform: translateY(14px) scale(.96); transition: transform .3s var(--ease); }
.dlg-overlay.show .dlg { transform: none; }
.dlg-ico { width: 62px; height: 62px; border-radius: 12px; margin: 0 auto 16px; display: grid; place-items: center; background: var(--c1-soft); color: var(--c1); }
.dlg-danger .dlg-ico { background: #fef2f2; color: #dc2626; box-shadow: 0 0 0 8px rgba(254, 242, 242, .6); }
.dlg h3 { margin: 0 0 8px; font-size: 1.2rem; font-weight: 800; }
.dlg p { margin: 0; color: var(--mut); font-size: .92rem; line-height: 1.55; }
.dlg-link { display: flex; gap: 8px; margin-top: 18px; padding: 6px; background: var(--surface-2); border-radius: 9px; }
.dlg-link input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: .85rem; color: var(--txt-2); padding: 0 8px; outline: none; }
.dlg-link button { border: 0; border-radius: 6px; background: var(--c1); color: #fff; font-weight: 700; padding: 9px 14px; cursor: pointer; }
.dlg-btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 10px; margin-top: 24px; }
.dlg-btn { height: 50px; border-radius: 9px; border: 1.5px solid var(--bd); background: var(--surface); font-weight: 700; cursor: pointer; transition: all .2s; }
.dlg-btn:hover { background: var(--surface-2); }
.dlg-btn.main { border: 0; background: var(--c1); color: #fff; box-shadow: 0 10px 22px -10px rgba(var(--c1-rgb), .8); }
.dlg-danger .dlg-btn.main { background: #dc2626; box-shadow: 0 10px 22px -10px rgba(220, 38, 38, .7); }

/* Aviso para instalar (celular) */
.install-bar {
    position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 36;
    display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-radius: 11px;
    background: var(--surface); box-shadow: var(--sh-lg); border: 1px solid var(--bd); animation: barIn2 .45s var(--ease);
}
@keyframes barIn2 { from { transform: translateY(130%); } }
.install-bar .mini-logo { width: 42px; height: 42px; }
.install-bar div { flex: 1; min-width: 0; line-height: 1.3; }
.install-bar strong { display: block; font-size: .9rem; }
.install-bar small { color: var(--mut); font-size: .78rem; }
.install-bar .ib-ok { border: 0; border-radius: 7px; background: var(--c1); color: #fff; font-weight: 700; padding: 9px 14px; cursor: pointer; }
.install-bar .ib-x { border: 0; background: none; color: var(--mut); width: 30px; height: 30px; cursor: pointer; display: grid; place-items: center; }
body.has-cart .install-bar { bottom: calc(max(16px, env(safe-area-inset-bottom)) + 76px); }

/* Toast */
.toast { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; align-items: center; gap: 8px; background: #101114; color: #fff; padding: 12px 18px; border-radius: 9px; font-size: .88rem; font-weight: 600; box-shadow: var(--sh-lg); animation: toastIn .35s var(--ease); white-space: nowrap; max-width: calc(100% - 32px); }
.toast svg { color: #4ade80; flex-shrink: 0; }
.toast-erro { white-space: normal; }
.toast-erro svg { color: #f87171; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -16px); } }

/* ---------- Acompanhamento do pedido ---------- */
.track-top { background: var(--c2); color: #fff; padding: 16px 0 70px; }
.track-top-inner { display: flex; align-items: center; gap: 12px; }
.track-top .mini-logo { width: 44px; height: 44px; border-radius: 8px; background: #fff; }
.track-top small { display: block; opacity: .7; font-size: .76rem; }
.track-top strong { font-size: 1.05rem; }
.track-main { max-width: 620px; margin-top: -54px; padding-bottom: 30px; }
.track-grid { display: grid; gap: 0; }
.track-col { min-width: 0; }
.track-actions { display: grid; gap: 10px; }
.track-actions .btn-main { justify-content: center; }
@media (min-width: 900px) {
    .track-top .wrap, .track-main { max-width: 1080px; }
    .track-top { padding: 22px 0 84px; }
    .track-top .mini-logo { width: 52px; height: 52px; }
    .track-top strong { font-size: 1.25rem; }
    .track-main { margin-top: -62px; padding-bottom: 50px; }
    .track-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-areas: "a b" "a c"; column-gap: 22px; align-items: start; }
    .track-grid > .track-col:first-child { grid-area: a; }
    .track-lado { grid-area: b; }
    .track-lado2 { grid-area: c; }
    .track-card { padding: 26px; }
    .track-head h1 { font-size: 1.8rem; }
    .timeline li { padding: 11px 0; font-size: 1rem; }
}
@media (min-width: 1180px) {
    .track-top .wrap, .track-main { max-width: 1320px; }
    .track-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, .85fr); grid-template-areas: "a b c"; }
    .track-lado, .track-lado2 { position: sticky; top: 20px; }
}
.track-card { background: var(--surface); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--sh); margin-bottom: 14px; }
.track-card h2 { font-size: 1.05rem; font-weight: 800; margin-bottom: 10px; }
.track-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.track-head h1 { font-size: 1.45rem; font-weight: 800; margin: 4px 0; }
.track-head p { margin: 0; font-size: .85rem; }
.track-num { font-size: .78rem; font-weight: 800; color: var(--c1); text-transform: uppercase; letter-spacing: .05em; }
.track-live { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; color: #047857; background: #ecfdf5; padding: 5px 10px; border-radius: 12px; white-space: nowrap; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline li { position: relative; display: flex; align-items: center; gap: 14px; padding: 9px 0; color: var(--mut-2); font-weight: 600; }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 17px; top: 44px; bottom: -8px; width: 2px; background: var(--surface-3); }
.timeline li.done::after { background: var(--c1); }
.tl-ico { position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--mut-2); flex-shrink: 0; }
.timeline li.done { color: var(--txt-2); }
.timeline li.done .tl-ico { background: var(--c1); color: #fff; }
.timeline li.current { color: var(--txt); font-weight: 800; }
.timeline li.current .tl-ico { background: var(--c1); color: #fff; box-shadow: 0 0 0 6px var(--c1-soft); animation: ring 1.8s ease-out infinite; }
@keyframes ring { 70% { box-shadow: 0 0 0 10px rgba(var(--c1-rgb), 0); } }
.track-items { list-style: none; padding: 0; margin: 0 0 12px; }
.track-items li { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--bd); font-size: .9rem; }
.track-items .q { font-weight: 800; color: var(--c1); min-width: 28px; }
.track-items li div { flex: 1; }
.track-items small { display: block; color: var(--mut); font-size: .78rem; }
.track-actions { padding: 4px 0 10px; }
.track-actions .btn-link { text-align: center; }

/* ---------- Telas maiores ---------- */
@media (min-width: 720px) {
    .modal { align-items: center; padding: 24px; }
    .modal-box { border-radius: 17px; max-height: 90vh; }
    .modal-box::before { display: none; }
    .product-modal { flex-direction: row; height: min(640px, 90vh); overflow: hidden; }
    .product-modal .pm-media { width: 50%; }
    .product-modal .gallery { height: 100%; }
    .product-modal .gallery .g-slide { aspect-ratio: auto; height: 100%; }
    .product-modal .pm-footer { padding-bottom: 16px; }
    .modal.drawer { justify-content: flex-end; align-items: stretch; padding: 0; }
    .drawer .modal-box { max-width: 460px; height: 100vh; height: 100dvh; max-height: none; border-radius: 17px 0 0 17px; animation: drawer .45s var(--ease); }
    @keyframes drawer { from { transform: translateX(100%); } }
    .install-bar { left: auto; right: 20px; max-width: 380px; }
}
@media (max-width: 719px) {
    .cart-modal { height: 94vh; height: 94dvh; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Janela do produto: acabamento ---------- */
@media (min-width: 720px) { .pm-title { padding-right: 46px; } }
.pm-title h2 { font-size: 1.6rem; letter-spacing: -.03em; }
.prices.lg .price { color: var(--c1); }
.product-modal .modal-close { border-radius: 50%; }
.pm-desc { font-size: .95rem; }
@media (min-width: 720px) { .product-modal { border-radius: 20px; } }

/* ---------- Setas da galeria do produto ---------- */
.gal-seta { position: absolute; top: 50%; z-index: 3; width: 42px; height: 42px; margin-top: -21px; border: 0; border-radius: 50%; cursor: pointer; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--txt); box-shadow: 0 4px 14px rgba(0, 0, 0, .2); transition: transform .2s var(--ease), background .2s; }
.gal-seta:hover { background: #fff; transform: scale(1.08); }
.gal-seta.ant { left: 12px; }
.gal-seta.prox { right: 12px; }
.dots { z-index: 3; }
.dots span { cursor: pointer; }
@media (hover: none) { .gal-seta { width: 36px; height: 36px; margin-top: -18px; background: rgba(255, 255, 255, .8); } }

/* Lixeira do carrinho sempre vermelha */
.ci-right .qty button.lixo { color: #dc2626; }
.ci-right .qty button.lixo:hover { background: #fef2f2; color: #b91c1c; }

/* Foto inteira no card (sem cortar): fundo desfocado da própria foto preenche as sobras */
.product-img.tem-foto { background: #f2f2f4; }
.product-img.tem-foto::before { content: ""; position: absolute; inset: -16px; background: var(--img) center / cover no-repeat; filter: blur(14px) brightness(.96) saturate(1.05); opacity: .9; }
.product-img.tem-foto img { position: relative; object-fit: contain; }

/* Meus pedidos: apagar do histórico */
.mp-top { gap: 8px; }
.mp-top strong { flex: 1; }
.mp-del { width: 34px; height: 34px; margin: -4px -6px -4px 0; border: 0; border-radius: 8px; background: none; color: #dc2626; cursor: pointer; display: grid; place-items: center; flex-shrink: 0; }
.mp-del:hover { background: #fef2f2; }
.mp-limpar { margin: 18px auto 6px; color: #dc2626; }
.mp-limpar:hover { color: #b91c1c; text-decoration: underline; }

.footer-copy a { color: var(--c1); font-weight: 700; text-decoration: none; }
.footer-copy a:hover { text-decoration: underline; }
.avisos-loja { display: flex; flex-direction: column; gap: 8px; }
.avisos-loja:empty { display: none; }
.avisos-loja .mesa-bar, .avisos-loja .topbar-aviso { margin-top: 14px; border-radius: 10px; }
.avisos-loja .topbar-aviso + .mesa-bar, .avisos-loja .mesa-bar + .topbar-aviso { margin-top: 0; }

/* Cards de produto mais destacados */
.product { border: 1px solid rgba(16, 17, 20, .07); box-shadow: 0 1px 2px rgba(16, 17, 20, .06), 0 10px 24px -10px rgba(16, 17, 20, .28); }
.product:hover { box-shadow: 0 2px 4px rgba(16, 17, 20, .06), 0 18px 34px -14px rgba(16, 17, 20, .4); }
.list, .scroller { padding-top: 6px; padding-bottom: 22px; }
.section-head { margin-bottom: 8px; }
@media (min-width: 900px) {
    .list { padding: 6px 0 10px; }
    .scroller { padding-bottom: 22px; }
}

/* ==========================================================
   Botão e modo escuro do catálogo
   ========================================================== */
.loja-topo { position: relative; }
.tema-btn { position: absolute; top: 12px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--bd); background: var(--surface); color: var(--txt-2); cursor: pointer; display: grid; place-items: center; box-shadow: 0 4px 14px -6px rgba(0, 0, 0, .25); transition: transform .2s var(--ease), color .2s, border-color .2s; z-index: 2; }
.tema-btn:hover { transform: rotate(-15deg) scale(1.05); color: var(--c1); border-color: var(--c1); }
.tema-btn .t-sol { display: none; }
html[data-tema="escuro"] .tema-btn .t-sol { display: grid; color: #fbbf24; }
html[data-tema="escuro"] .tema-btn .t-lua { display: none; }
.tema-btn span { display: grid; }
@media (min-width: 900px) { .tema-btn { top: 16px; right: 24px; } }

html[data-tema="escuro"], html[data-tema="escuro"] body.vitrine {
    --bg: #0d0e11; --surface: #16171b; --surface-2: #1e2025; --surface-3: #282a31;
    --txt: #f1f2f4; --txt-2: #cfd2d8; --mut: #9aa0ab; --mut-2: #6f7580; --bd: #2a2c33;
    --c1-soft: rgba(var(--c1-rgb), .2);
    color-scheme: dark;
}
html[data-tema="escuro"] body { background: var(--bg); color: var(--txt); }
html[data-tema="escuro"] .appbar.solida { background: rgba(22, 23, 27, .96); box-shadow: 0 1px 0 var(--bd), 0 8px 20px -14px rgba(0, 0, 0, .8); }
html[data-tema="escuro"] .store-logo { border-color: var(--surface); background: var(--surface); }
html[data-tema="escuro"] .product { border-color: rgba(255, 255, 255, .06); box-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 24px -10px rgba(0, 0, 0, .7); }
html[data-tema="escuro"] .product-img.tem-foto { background: #22242a; }
html[data-tema="escuro"] .fav-btn { background: rgba(22, 23, 27, .9); color: var(--txt-2); }
html[data-tema="escuro"] .status-linha.open { color: #4ade80; }
html[data-tema="escuro"] .status-linha.closed { color: #f87171; }
html[data-tema="escuro"] .acao.wa { color: #4ade80; background: rgba(34, 197, 94, .12); }
html[data-tema="escuro"] .status.open, html[data-tema="escuro"] .vg-badge.ok, html[data-tema="escuro"] .cupom-ok, html[data-tema="escuro"] .aviso.info, html[data-tema="escuro"] .mp-st.concluido, html[data-tema="escuro"] .track-live { background: rgba(16, 185, 129, .15); color: #6ee7b7; }
html[data-tema="escuro"] .status.closed, html[data-tema="escuro"] .aviso.erro, html[data-tema="escuro"] .mp-st.cancelado, html[data-tema="escuro"] .field.invalid input, html[data-tema="escuro"] .field.invalid textarea { background: rgba(239, 68, 68, .14); color: #fca5a5; }
html[data-tema="escuro"] .aviso, html[data-tema="escuro"] .mp-st.novo, html[data-tema="escuro"] .pm-stock { background: rgba(245, 158, 11, .14); color: #fcd34d; }
html[data-tema="escuro"] .mp-st.confirmado, html[data-tema="escuro"] .mp-st.preparando { background: rgba(59, 130, 246, .16); color: #93c5fd; }
html[data-tema="escuro"] .mp-st.enviado { background: rgba(139, 92, 246, .16); color: #c4b5fd; }
html[data-tema="escuro"] .modal-box::before { background: rgba(255, 255, 255, .18); }
html[data-tema="escuro"] .ci-right .qty button.lixo:hover, html[data-tema="escuro"] .mp-del:hover { background: rgba(239, 68, 68, .15); }
html[data-tema="escuro"] .dlg-danger .dlg-ico { background: rgba(239, 68, 68, .15); box-shadow: 0 0 0 8px rgba(239, 68, 68, .08); }
html[data-tema="escuro"] .cart-bar, html[data-tema="escuro"] .sticky-cart { background: rgba(22, 23, 27, .95); }
html[data-tema="escuro"] .footer-copy { color: var(--mut-2); }
html[data-tema="escuro"] .pm-footer { background: rgba(22, 23, 27, .95); }

/* Modo escuro: botão fechar e setas da galeria brancos com ícone preto */
html[data-tema="escuro"] .modal-close:not(.static),
html[data-tema="escuro"] .gal-seta {
    background: #fff; color: #111; border: 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .5);
}
html[data-tema="escuro"] .modal-close:not(.static):hover,
html[data-tema="escuro"] .gal-seta:hover { background: #e9e9ec; color: #000; }

/* Card do produto: preço logo abaixo do nome; só o botão vai para o fim do card */
.product-info h3 { min-height: 0; }
.product-foot { margin-top: 0; padding-top: 4px; flex: 1; }
.product-foot .add-btn { margin-top: auto; }

/* Destaques em carrossel: cards inteiros, quantos couberem na tela */
.scroller.carrossel { --por: 2; grid-auto-columns: calc((100% - (var(--por) - 1) * 12px) / var(--por)) !important; gap: 12px !important; }
@media (min-width: 900px) { .scroller.carrossel { grid-auto-columns: calc((100% - (var(--por) - 1) * 14px) / var(--por)) !important; gap: 14px !important; } }
/* Carrossel alinhado ao conteúdo: o próximo card não aparece pela borda */
.scroller.carrossel { margin-left: 0 !important; margin-right: 0 !important; padding-left: 0 !important; padding-right: 0 !important; scroll-padding: 0 !important; }
.mesa-pagar { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; color: var(--ok, #16a34a); font-weight: 600; }

/* Aviso fixo: pedido em andamento */
.ped-ativo {
    position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 34;
    transform: translateX(-50%); width: calc(100% - 28px); max-width: 480px;
    display: flex; align-items: center; gap: 6px; padding: 8px 8px 8px 10px; border-radius: 12px;
    background: var(--surface, #fff); color: var(--txt); border: 1px solid var(--bd);
    box-shadow: 0 16px 36px -12px rgba(0, 0, 0, .35); animation: barIn .45s var(--ease);
}
.ped-ativo[hidden] { display: none; }
body.has-cart .ped-ativo { bottom: calc(max(16px, env(safe-area-inset-bottom)) + 76px); }
body.tem-ped-ativo .install-bar { display: none !important; }
body.tem-ped-ativo .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
body.tem-ped-ativo.has-cart .footer { padding-bottom: calc(172px + env(safe-area-inset-bottom)); }
.pa-link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.pa-ico { width: 40px; height: 40px; flex: none; border-radius: 10px; display: grid; place-items: center; background: rgba(var(--c1-rgb), .12); color: var(--c1); }
.pa-ico svg { animation: paGira 6s linear infinite; }
@keyframes paGira { to { transform: rotate(360deg); } }
.pa-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.pa-txt b { font-size: .92rem; }
.pa-txt small { color: var(--c1); font-weight: 700; font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pa-btn { flex: none; padding: 9px 13px; border-radius: 9px; background: var(--c1); color: #fff; font-weight: 700; font-size: .84rem; }
.pa-x { flex: none; width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--mut); cursor: pointer; display: grid; place-items: center; }
.pa-x:hover { background: var(--surface-2); color: var(--txt); }
html[data-tema="escuro"] .ped-ativo { background: #1b1c21; border-color: rgba(255, 255, 255, .08); }

/* Acompanhamento: cliente cancela o pedido */
.cancelar-box { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--bd); display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.btn-cancelar { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 46px; border-radius: 10px; border: 1.5px solid #ef4444; background: transparent; color: #dc2626; font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer; transition: all .2s; }
.btn-cancelar:hover { background: rgba(239, 68, 68, .08); }
.btn-cancelar.confirmar { background: #dc2626; color: #fff; border-color: #dc2626; }
.btn-cancelar:disabled { opacity: .7; cursor: wait; }
.cancelar-box small { font-size: .78rem; }
.cancelar-erro { margin: 4px 0 0; color: #dc2626; font-size: .84rem; font-weight: 600; }
html[data-tema="escuro"] .btn-cancelar { color: #f87171; border-color: #f87171; }
html[data-tema="escuro"] .btn-cancelar.confirmar { background: #dc2626; color: #fff; border-color: #dc2626; }

/* Carrinho: lixeira sempre visível, separada da quantidade */
.ci-right { display: flex; align-items: center; gap: 6px; }
.ci-lixo { width: 34px; height: 34px; flex: none; border: 0; border-radius: 8px; background: transparent; color: #dc2626; cursor: pointer; display: grid; place-items: center; transition: background .15s; }
.ci-lixo:hover { background: #fef2f2; color: #b91c1c; }
html[data-tema="escuro"] .ci-lixo { color: #f87171; }
html[data-tema="escuro"] .ci-lixo:hover { background: rgba(239, 68, 68, .15); }
.ci-right .qty button:disabled { opacity: .35; cursor: default; }

/* Aviso do pedido: trocar de mesa */
.ped-ativo { flex-wrap: wrap; }
.pa-troca { order: 3; flex: 1 0 100%; margin-top: 4px; padding: 9px 12px; border: 1.5px dashed var(--c1); border-radius: 9px; background: rgba(var(--c1-rgb), .08); color: var(--txt); font: inherit; font-size: .82rem; cursor: pointer; text-align: center; }
.pa-troca b { color: var(--c1); }
.pa-troca[hidden] { display: none; }
.pa-troca:disabled { opacity: .7; cursor: wait; }

/* Pagar depois de entregue/servido */
.pagar-box { width: 100%; margin: 6px 0 18px; }
.pagar-btn { width: 100%; gap: 9px; }
.pagar-area { padding: 16px; border-radius: 14px; border: 1.5px solid rgba(var(--c1-rgb), .35); background: rgba(var(--c1-rgb), .05); text-align: center; }
.pg-top b { display: block; font-size: 1.02rem; }
.pg-top small { display: block; margin-top: 3px; color: var(--mut); font-size: .82rem; }
.pg-qr { margin: 14px auto; width: 220px; max-width: 100%; padding: 8px; border-radius: 12px; background: #fff; box-shadow: 0 4px 16px rgba(0, 0, 0, .08); }
.pg-qr img, .pg-qr canvas { display: block; width: 100%; height: auto; }
.pg-nota { margin: 10px 0 0; font-size: .8rem; color: var(--mut); line-height: 1.5; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; }
.pg-nota .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; animation: pulsar 1.6s infinite; }
@keyframes pulsar { 50% { opacity: .35; } }
.fim-card .pagar-box { margin: 14px 0 0; }
.pagar-btn { justify-content: center !important; }
.pagar-btn span { flex: none !important; }
.avaliar.sumindo { height: 0 !important; opacity: 0; margin: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; overflow: hidden; transition: all .4s ease; }

/* Modo atendente (pedido lançado pela equipe) */
.atendente-bar { background: #111827 !important; color: #fff !important; }
.atendente-bar a { margin-left: auto; color: #fff; font-weight: 700; text-decoration: underline; white-space: nowrap; }

/* Celular: cards menores, textos e botão um pouco mais compactos */
@media (max-width: 899px) {
    .product-info { padding: 8px 7px 8px; }
    .product-info h3 { font-size: .8rem; }
    .product .price { font-size: .92rem; }
    .add-btn { height: 32px; font-size: .74rem; gap: 4px; border-radius: 7px; }
    .add-btn svg { width: 13px; height: 13px; }
    .product .fav-btn { width: 28px; height: 28px; top: 6px; right: 6px; }
    .product .fav-btn svg { width: 14px; height: 14px; }
}

/* ===================== Vitrine: recursos novos ===================== */

/* Contador no próprio card */
.card-qty { display: none; align-items: center; justify-content: space-between; height: 36px; margin-top: auto; border-radius: 8px; background: rgba(var(--c1-rgb), .12); box-shadow: inset 0 0 0 1.5px rgba(var(--c1-rgb), .45); overflow: hidden; animation: cqIn .3s var(--ease); }
.card-qty button { width: 36px; height: 100%; border: 0; background: transparent; color: var(--c1); font: 800 1.15rem/1 var(--font); cursor: pointer; transition: background .15s; }
.card-qty button:hover { background: rgba(var(--c1-rgb), .14); }
.card-qty button:active { background: rgba(var(--c1-rgb), .24); }
.card-qty span { flex: 1; text-align: center; font-weight: 800; color: var(--txt); font-size: .95rem; }
.product.no-carrinho .add-btn { display: none; }
.product.no-carrinho .card-qty { display: flex; }
@keyframes cqIn { from { opacity: 0; transform: scale(.94); } }
@media (max-width: 899px) { .card-qty { height: 32px; border-radius: 7px; } .card-qty button { width: 30px; } .card-qty span { font-size: .85rem; } }

/* Produto voando até o carrinho */
.voo { position: fixed; z-index: 9999; pointer-events: none; border-radius: 50%; background: var(--c1) center / cover no-repeat; box-shadow: 0 10px 24px -6px rgba(0, 0, 0, .45), 0 0 0 3px #fff; will-change: transform; }
.pulo { animation: pulo .45s var(--ease); }
@keyframes pulo { 40% { scale: 1.14; } 70% { scale: .96; } }

/* Fotos: brilho enquanto carrega e entrada suave (sem "pipocar") */
.product-img img { opacity: 0; filter: blur(10px); transform: scale(1.06); transition: opacity .5s var(--ease), filter .6s var(--ease), transform .6s var(--ease); }
.product-img.ok img { opacity: 1; filter: none; transform: none; }
.product-img:not(.ok):has(img)::after { content: ''; position: absolute; inset: 0; z-index: 0; background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .45) 50%, transparent 80%) -150% 0 / 200% 100% no-repeat; animation: brilhoCarrega 1.2s infinite; }
html[data-tema="escuro"] .product-img:not(.ok):has(img)::after { background-image: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .08) 50%, transparent 80%); }
@keyframes brilhoCarrega { to { background-position: 150% 0; } }
.product-img.tem-foto:not(.ok)::before { opacity: 0; }
.product-img.tem-foto::before { transition: opacity .5s; }

/* Topo com efeito vidro */
.appbar.solida { background: rgba(255, 255, 255, .72); backdrop-filter: blur(18px) saturate(180%); -webkit-backdrop-filter: blur(18px) saturate(180%); }
html[data-tema="escuro"] .appbar.solida { background: rgba(22, 23, 27, .68); }
.sticky-nav.stuck { background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(18px) saturate(180%); -webkit-backdrop-filter: blur(18px) saturate(180%); }

/* Selos (Novo, Vegano, Picante…) */
.selos { position: absolute; left: 6px; bottom: 6px; z-index: 1; display: flex; flex-wrap: wrap; gap: 3px; max-width: calc(100% - 12px); }
.selo { display: inline-flex; align-items: center; gap: 2px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; padding: 2px 6px 2px 5px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: #1f2937; font-size: .58rem; font-weight: 800; letter-spacing: .01em; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); backdrop-filter: blur(6px); white-space: nowrap; }
.selo i { font-style: normal; font-size: .66rem; line-height: 1; }
html[data-tema="escuro"] .selo { background: rgba(22, 23, 27, .85); color: #f3f4f6; }
.selo-mais_vendido { background: linear-gradient(135deg, #f97316, #ef4444) !important; color: #fff !important; }
.selo-novo { background: linear-gradient(135deg, #8b5cf6, #6366f1) !important; color: #fff !important; }
.pm-selos { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 2px; }
.pm-selos .selo { font-size: .76rem; padding: 4px 10px 4px 8px; box-shadow: none; border: 1px solid var(--bd); }
.pm-selos[hidden] { display: none; }
@media (max-width: 899px) { .selo { font-size: .52rem; padding: 2px 5px 2px 4px; } .selo i { font-size: .6rem; } .selos { left: 4px; bottom: 4px; } .selos .selo:nth-child(n+2) { display: none; } }

/* Nota da loja (estrelas) */
.nota-loja { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 4px 12px; border: 1px solid var(--bd); border-radius: 999px; background: var(--surface); color: var(--txt); font: inherit; font-size: .86rem; cursor: pointer; transition: border-color .2s, transform .2s var(--ease); }
.nota-loja:hover { border-color: #f5b301; transform: translateY(-1px); }
.nota-loja small { color: var(--txt-2); }
.nota-estrelas { --n: 0; position: relative; display: inline-block; font-size: .95rem; line-height: 1; letter-spacing: 1px; color: rgba(150, 150, 160, .35); }
.nota-estrelas::before { content: '★★★★★'; }
.nota-estrelas::after { content: '★★★★★'; position: absolute; left: 0; top: 0; width: calc(var(--n) / 5 * 100%); overflow: hidden; white-space: nowrap; color: #f5b301; }
.nota-estrelas.lg { font-size: 1.25rem; }
.nota-estrelas.sm { font-size: .78rem; }
.aval-modal { max-width: 520px; }
.aval-head { display: flex; align-items: center; gap: 14px; padding-right: 40px; margin-bottom: 14px; }
.aval-media { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.aval-head h2 { font-size: .95rem; font-weight: 600; color: var(--txt-2); margin: 4px 0 0; }
.aval-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-height: 60vh; overflow-y: auto; }
.aval-lista li { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.aval-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.aval-top small { margin-left: auto; color: var(--mut); font-size: .74rem; }
.aval-av { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(var(--c1-rgb), .15); color: var(--c1); font-weight: 800; font-size: .8rem; }
.aval-lista p { margin: 6px 0 0; font-size: .9rem; color: var(--txt); }

/* Peça junto (sugestões no carrinho) */
.peca-junto { margin: 4px 0 16px; padding: 14px 0 4px; border-top: 1px dashed var(--bd); }
.pj-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 10px; }
.peca-junto h3 { display: flex; align-items: center; gap: 6px; margin: 0; font-size: .95rem; }
.pj-setas { display: flex; gap: 6px; }
.pj-setas[hidden] { display: none; }
.pj-seta { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--bd); background: var(--surface); color: var(--txt); display: grid; place-items: center; cursor: pointer; transition: border-color .2s, color .2s, opacity .2s; }
.pj-seta:hover:not(:disabled) { border-color: var(--c1); color: var(--c1); }
.pj-seta:disabled { opacity: .35; cursor: default; }
@media (hover: none) { .pj-setas { display: none; } }
.pj-lista.arrastando { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.pj-lista.arrastando .pj-item { pointer-events: none; }
.pj-lista img { -webkit-user-drag: none; user-select: none; }
.peca-junto h3 svg { color: var(--c1); }
.pj-lista { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; scrollbar-width: none; }
.pj-lista::-webkit-scrollbar { display: none; }
.pj-item { position: relative; flex: 0 0 92px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: stretch; gap: 2px; padding: 5px 5px 8px; border: 1px solid var(--bd); border-radius: 12px; background: var(--surface); color: var(--txt); font: inherit; text-align: left; cursor: pointer; transition: border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.pj-item:hover { border-color: rgba(var(--c1-rgb), .6); transform: translateY(-2px); box-shadow: 0 8px 18px -12px rgba(var(--c1-rgb), .8); }
.pj-item img, .pj-noimg { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: var(--surface-2); display: grid; place-items: center; font-weight: 800; color: var(--c1); font-size: 1.4rem; }
.pj-nome { font-size: .72rem; font-weight: 700; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.4em; margin-top: 4px; }
.pj-preco { font-size: .76rem; font-weight: 800; color: var(--c1); }
.pj-add { position: absolute; right: 9px; top: 9px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--c1); color: #fff; box-shadow: 0 4px 10px -4px rgba(var(--c1-rgb), .9); transition: transform .2s var(--ease); }
.pj-item:hover .pj-add { transform: scale(1.12) rotate(90deg); }
.tempo-est { display: flex; align-items: center; gap: 6px; margin: 0 0 14px; padding: 9px 12px; border-radius: 10px; background: rgba(var(--c1-rgb), .08); color: var(--txt); font-size: .86rem; font-weight: 600; }
.tempo-est svg { color: var(--c1); flex-shrink: 0; }
.tempo-est[hidden] { display: none; }

/* Pop-up de promoção */
.promo-modal { position: relative; max-width: 380px; text-align: center; padding: 34px 26px 24px; overflow: hidden; }
.promo-brilho { position: absolute; inset: -40% -20% auto; height: 260px; background: radial-gradient(closest-side, rgba(var(--c1-rgb), .35), transparent); pointer-events: none; animation: promoBrilho 4s ease-in-out infinite alternate; }
@keyframes promoBrilho { to { transform: translateY(20px) scale(1.1); } }
.promo-ico { position: relative; width: 68px; height: 68px; margin: 0 auto 14px; border-radius: 22px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--c1), rgba(var(--c1-rgb), .7)); box-shadow: 0 14px 28px -12px rgba(var(--c1-rgb), .9); animation: promoIco .7s var(--ease) both; }
@keyframes promoIco { from { transform: scale(.4) rotate(-20deg); opacity: 0; } }
.promo-modal h2 { position: relative; margin: 0 0 8px; font-size: 1.35rem; letter-spacing: -.02em; }
.promo-modal p { position: relative; margin: 0 0 16px; color: var(--txt-2); }
.promo-cupom { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 0 0 16px; padding: 12px; border: 2px dashed rgba(var(--c1-rgb), .6); border-radius: 14px; background: rgba(var(--c1-rgb), .07); color: var(--txt); font: inherit; cursor: pointer; transition: background .2s, border-color .2s; }
.promo-cupom span { font-size: 1.35rem; font-weight: 800; letter-spacing: .12em; color: var(--c1); }
.promo-cupom small { display: inline-flex; align-items: center; gap: 4px; color: var(--txt-2); font-size: .76rem; }
.promo-cupom:hover { background: rgba(var(--c1-rgb), .12); }
.promo-cupom.copiado { border-style: solid; border-color: #16a34a; }
.promo-cupom.copiado small { color: #16a34a; font-weight: 700; }
.promo-modal .btn-main { position: relative; width: 100%; justify-content: center; }

/* Cartão fidelidade (página do pedido) */
.fidelidade { margin-top: 14px; padding: 16px; border-radius: 16px; background: linear-gradient(135deg, rgba(var(--c1-rgb), .14), rgba(var(--c1-rgb), .04)); border: 1px solid rgba(var(--c1-rgb), .3); }
.fid-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.fid-top svg { color: var(--c1); }
.fid-top b { display: block; }
.fid-top small { color: var(--txt-2); }
.fid-carimbos { display: grid; grid-template-columns: repeat(auto-fill, minmax(30px, 1fr)); gap: 6px; }
.fid-c { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; border: 2px dashed rgba(var(--c1-rgb), .4); color: transparent; font-size: .8rem; }
.fid-c.on { border: 0; background: var(--c1); color: #fff; animation: pop .45s var(--ease) both; box-shadow: 0 4px 10px -4px rgba(var(--c1-rgb), .9); }
.fid-c.premio { border-style: solid; border-color: #f5b301; color: #f5b301; }
.fid-ganhou { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: #fef3c7; color: #92400e; font-weight: 700; font-size: .9rem; text-align: center; }
html[data-tema="escuro"] .fid-ganhou { background: rgba(245, 179, 1, .15); color: #fcd34d; }

/* ---------- Títulos das categorias mais elegantes ---------- */
.cat-head { justify-content: flex-start; gap: 12px; }
.sh-ico { position: relative; flex-shrink: 0; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; overflow: hidden;
    font-weight: 800; font-size: 1.15rem; color: #fff; letter-spacing: -.02em;
    background: linear-gradient(135deg, var(--c1), rgba(var(--c1-rgb), .62));
    box-shadow: 0 10px 20px -12px rgba(var(--c1-rgb), .95), inset 0 1px 0 rgba(255, 255, 255, .3); }
.sh-ico::after { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, .35) 50%, transparent 65%) -120% 0 / 220% 100% no-repeat; transition: background-position .8s var(--ease); }
.cat-head:hover .sh-ico::after { background-position: 120% 0; }
.sh-txt { display: flex; flex-direction: column; min-width: 0; }
.sh-txt h2 { line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-count { margin-top: 2px; font-size: .72rem; font-weight: 700; letter-spacing: .03em; color: var(--txt-2); }
.sh-linha { flex: 1; min-width: 16px; height: 2px; border-radius: 2px; align-self: center; background: linear-gradient(90deg, rgba(var(--c1-rgb), .5), rgba(var(--c1-rgb), .08) 70%, transparent); }
.cat-head .ver-tudo { flex-shrink: 0; padding: 7px 10px; border-radius: 999px; background: rgba(var(--c1-rgb), .1); transition: background .2s, transform .2s var(--ease); }
.cat-head .ver-tudo:hover { background: rgba(var(--c1-rgb), .18); transform: translateX(2px); }
.cat-head .ver-tudo svg { width: 17px; height: 17px; }
/* Seções especiais (Destaques, Mais pedidos, Favoritos): ícone em selo */
.section-head h2 > .icon { box-sizing: border-box; width: 38px; height: 38px; padding: 9px; border-radius: 12px; background: rgba(var(--c1-rgb), .12); color: var(--c1); flex-shrink: 0; }
@media (max-width: 899px) {
    .sh-ico { width: 36px; height: 36px; border-radius: 11px; font-size: 1rem; }
    .cat-head { gap: 10px; }
    .cat-head .sh-txt h2 { font-size: 1.12rem; }
    .section-head h2 > .icon { width: 34px; height: 34px; padding: 8px; border-radius: 11px; }
}

/* ===================== Rodada 2 ===================== */

/* Foto da categoria (título e menu) */
.sh-ico.com-foto { background: var(--surface-2); padding: 0; }
.sh-ico.com-foto img { width: 100%; height: 100%; object-fit: cover; }
.chip-img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; margin-left: -6px; box-shadow: 0 0 0 2px var(--surface); }

/* Barra do carrinho: fotinhas + progresso do frete grátis */
.cart-thumbs { display: flex; align-items: center; flex-shrink: 0; }
.cart-thumbs[hidden] { display: none; }
.cart-thumbs img, .cart-thumbs b { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(16, 17, 20, .94); margin-left: -10px; background: rgba(255, 255, 255, .15); display: grid; place-items: center; font-size: .75rem; color: #fff; }
.cart-thumbs > :first-child { margin-left: 0; }
.cart-thumbs b.mais { background: rgba(255, 255, 255, .22); font-size: .66rem; }
.cart-label { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cart-frete { display: flex; flex-direction: column; gap: 3px; }
.cart-frete[hidden] { display: none; }
.cf-txt { font-size: .7rem; font-weight: 600; color: rgba(255, 255, 255, .75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf-barra { display: block; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .15); overflow: hidden; max-width: 220px; }
.cf-barra i { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, var(--c1), #4ade80); transition: width .6s var(--ease); }
.cart-frete.ok .cf-txt { color: #4ade80; }
@media (max-width: 420px) { .cart-thumbs img, .cart-thumbs b { width: 26px; height: 26px; } .cart-bar { gap: 10px; } }

/* Loja fechada / indicado */
.fechado-bar, .ind-bar { display: flex; align-items: center; gap: 12px; margin: 10px 0 4px; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(239, 68, 68, .25); background: linear-gradient(135deg, rgba(239, 68, 68, .1), rgba(239, 68, 68, .03)); }
.fechado-bar b, .ind-bar b { display: block; font-size: .92rem; }
.fechado-bar small, .ind-bar small { color: var(--txt-2); font-size: .82rem; }
.fb-ico { flex-shrink: 0; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(239, 68, 68, .14); color: #ef4444; }
.ind-bar { border-color: rgba(var(--c1-rgb), .3); background: linear-gradient(135deg, rgba(var(--c1-rgb), .14), rgba(var(--c1-rgb), .04)); }
.ind-bar[hidden] { display: none; }
.ind-bar .fb-ico { background: rgba(var(--c1-rgb), .16); color: var(--c1); }

/* Prova social */
.social-toast { position: fixed; left: 16px; bottom: calc(max(16px, env(safe-area-inset-bottom)) + 4px); z-index: 34; display: flex; align-items: center; gap: 10px; max-width: min(320px, calc(100% - 32px)); padding: 10px 14px 10px 10px; border-radius: 14px; background: var(--surface); color: var(--txt); border: 1px solid var(--bd); box-shadow: 0 16px 34px -14px rgba(0, 0, 0, .35); font-size: .84rem; opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .35s, transform .35s var(--ease); cursor: pointer; }
.social-toast.show { opacity: 1; transform: none; }
body.has-cart .social-toast { bottom: calc(max(16px, env(safe-area-inset-bottom)) + 80px); }
.st-ico { width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center; font-size: 1.05rem; background: rgba(var(--c1-rgb), .12); }
.social-toast small { display: block; color: var(--mut); font-size: .72rem; }
@media (min-width: 900px) { body.has-cart .social-toast { bottom: 24px; } }

/* Recuperar carrinho */
.volta-cart { position: fixed; left: 50%; top: 76px; z-index: 45; width: min(440px, calc(100% - 24px)); display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--surface); color: var(--txt); border: 1px solid var(--bd); box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .45); opacity: 0; transform: translate(-50%, -20px); transition: opacity .35s, transform .4s var(--ease); }
.volta-cart.show { opacity: 1; transform: translate(-50%, 0); }
.vc-fotos { display: flex; flex-shrink: 0; }
.vc-fotos img, .vc-fotos b { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid var(--surface); margin-left: -12px; background: rgba(var(--c1-rgb), .15); display: grid; place-items: center; color: var(--c1); }
.vc-fotos > :first-child { margin-left: 0; }
.vc-txt { flex: 1; min-width: 0; }
.vc-txt b { display: block; font-size: .9rem; }
.vc-txt small { color: var(--txt-2); font-size: .78rem; }
.vc-btns { display: flex; align-items: center; gap: 6px; }
.vc-ok { border: 0; border-radius: 10px; padding: 9px 12px; background: var(--c1); color: #fff; font: inherit; font-weight: 700; font-size: .82rem; cursor: pointer; white-space: nowrap; }
.vc-nao { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--txt-2); display: grid; place-items: center; cursor: pointer; }

/* Galeria em tela cheia */
.pm-media .g-slide { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(5, 5, 8, .94); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .25s; touch-action: none; }
.lightbox.show { opacity: 1; }
.lightbox[hidden] { display: none; }
.lb-palco { position: absolute; inset: 60px 0 50px; display: grid; place-items: center; overflow: hidden; cursor: zoom-in; }
.lightbox.zoom .lb-palco { cursor: grab; }
.lb-palco img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; will-change: transform; }
.lb-fechar, .lb-seta { position: absolute; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(6px); transition: background .2s; }
.lb-fechar:hover, .lb-seta:hover { background: rgba(255, 255, 255, .24); }
.lb-fechar { top: max(12px, env(safe-area-inset-top)); right: 12px; }
.lb-seta { top: 50%; margin-top: -22px; }
.lb-seta.ant { left: 14px; } .lb-seta.prox { right: 14px; }
.lb-seta[hidden] { display: none; }
.lb-cont { position: absolute; top: max(22px, env(safe-area-inset-top)); left: 18px; color: rgba(255, 255, 255, .8); font-weight: 700; font-size: .9rem; }
.lb-dica { position: absolute; bottom: max(14px, env(safe-area-inset-bottom)); left: 0; right: 0; text-align: center; margin: 0; color: rgba(255, 255, 255, .5); font-size: .78rem; }
@media (hover: none) { .lb-seta { display: none !important; } }

/* Avaliações com foto */
.nota-fotos { display: flex; margin-left: 4px; }
.nota-fotos img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; border: 2px solid var(--surface); margin-left: -7px; }
.nota-fotos img:first-child { margin-left: 0; }
.aval-sub { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: .9rem; }
.aval-fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; margin-bottom: 14px; }
.aval-fotos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; cursor: zoom-in; transition: transform .2s var(--ease); }
.aval-fotos img:hover { transform: scale(1.04); }
.aval-foto { display: block; width: 120px; height: 120px; object-fit: cover; border-radius: 10px; margin-top: 8px; cursor: zoom-in; }
.av-foto { position: relative; display: flex; align-items: center; gap: 10px; margin: 8px 0 10px; padding: 10px 12px; border: 1.5px dashed var(--bd); border-radius: 12px; cursor: pointer; color: var(--txt-2); font-size: .86rem; text-align: left; transition: border-color .2s; }
.av-foto:hover, .av-foto.tem { border-color: var(--c1); color: var(--txt); }
.av-foto input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.av-foto-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(var(--c1-rgb), .12); color: var(--c1); flex-shrink: 0; }
.av-foto img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; margin-left: auto; }

/* Indique e ganhe (página do pedido) */
.indique { margin-top: 14px; padding: 16px; border-radius: 16px; text-align: left; border: 1px solid rgba(var(--c1-rgb), .3); background: linear-gradient(135deg, rgba(var(--c1-rgb), .12), rgba(var(--c1-rgb), .03)); }
.ind-top { display: flex; gap: 10px; align-items: flex-start; }
.ind-top > svg { color: var(--c1); flex-shrink: 0; margin-top: 2px; }
.ind-top > div > b { display: block; }
.ind-top small { color: var(--txt-2); font-size: .84rem; }
.ind-cred { margin: 10px 0 0; padding: 8px 10px; border-radius: 10px; background: #fef3c7; color: #92400e; font-size: .84rem; font-weight: 600; }
html[data-tema="escuro"] .ind-cred { background: rgba(245, 179, 1, .15); color: #fcd34d; }
.ind-acoes { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.ind-acoes .btn-main { flex: 1; min-width: 170px; justify-content: center; background: #16a34a; }
.ind-copiar { display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; min-height: 46px; border: 1px solid var(--bd); border-radius: 12px; background: var(--surface); color: var(--txt); font: inherit; font-weight: 700; font-size: .86rem; cursor: pointer; }
.ind-copiar.ok { border-color: #16a34a; color: #16a34a; }

/* ===================== Layout rodada 3 ===================== */

/* 1. Capa com movimento suave e degradê embaixo */
.capa { position: relative; overflow: hidden; }
.capa.com-foto { background-image: none !important; }
.capa.com-foto::before { content: ''; position: absolute; inset: -40px 0 0; background: inherit; background-image: var(--capa-img); background-size: cover; background-position: center; transform: translateY(var(--py, 0)) scale(var(--pz, 1)); will-change: transform; }
.capa::after { content: ''; position: absolute; inset: auto 0 0; height: 55%; background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, .45)); pointer-events: none; }

/* 2. Anel animado em volta da logo (aberta: cor da loja girando; fechada: cinza) */
.logo-anel { position: relative; margin-top: -64px; padding: 5px; border-radius: 50%; z-index: 1; }
.logo-anel::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, var(--c1), rgba(var(--c1-rgb), .25), var(--c1), rgba(var(--c1-rgb), .55), var(--c1)); animation: anelGira 6s linear infinite; }
.logo-anel.fechada::before { background: conic-gradient(#9ca3af, #d1d5db, #9ca3af); animation: none; }
.logo-anel .store-logo { margin-top: 0; position: relative; border: 4px solid var(--bg); }
@keyframes anelGira { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .logo-anel::before { animation: none; } }

/* 3. Informações em cartões */
.info-row { gap: 8px; border: 0; padding: 0; max-width: 600px; }
.info-row > div { flex-direction: column; justify-content: flex-start; gap: 6px; padding: 12px 8px; text-align: center; border-radius: 14px; background: var(--surface); border: 1px solid var(--bd); box-shadow: 0 6px 18px -14px rgba(0, 0, 0, .35); }
.info-row > div + div { border-left: 1px solid var(--bd); }
.ir-ico, .info-row.n3 .ir-ico { display: grid !important; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: rgba(var(--c1-rgb), .12); color: var(--c1); }
.ir-ico svg { width: 18px; height: 18px; }
.info-row.n3 > div { justify-content: flex-start; }
.info-row small { font-size: .7rem !important; }
.info-row b { font-size: .84rem !important; }

/* 6/7. Card: botão "+" redondo na foto, "Ver detalhes" ao passar o mouse */
.product-img .add-btn { position: absolute; right: 8px; bottom: 8px; z-index: 2; width: 38px; height: 38px; padding: 0; border-radius: 50%; gap: 0; box-shadow: 0 6px 16px -4px rgba(var(--c1-rgb), .8), 0 0 0 3px rgba(255, 255, 255, .9); transition: transform .2s var(--ease), filter .2s; }
html[data-tema="escuro"] .product-img .add-btn { box-shadow: 0 6px 16px -4px rgba(0, 0, 0, .6), 0 0 0 3px rgba(22, 23, 27, .9); }
.product-img .add-btn:hover { transform: scale(1.1) rotate(90deg); }
.product-img .add-btn svg { width: 20px; height: 20px; }
.product-img .card-qty { position: absolute; right: 8px; bottom: 8px; z-index: 2; height: 38px; margin: 0; border-radius: 999px; background: var(--c1); box-shadow: 0 6px 16px -4px rgba(var(--c1-rgb), .8), 0 0 0 3px rgba(255, 255, 255, .9); }
.product-img .card-qty button { color: #fff; width: 34px; }
.product-img .card-qty button:hover { background: rgba(255, 255, 255, .18); }
.product-img .card-qty span { color: #fff; min-width: 18px; }
.product.no-carrinho .product-img .add-btn { display: none; }
.selos { max-width: calc(100% - 58px); }
.product-foot { padding-top: 2px; }
.ver-det { position: absolute; left: 50%; top: 50%; z-index: 1; padding: 8px 14px; border-radius: 999px; background: rgba(16, 17, 20, .72); color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .02em; backdrop-filter: blur(6px); opacity: 0; transform: translate(-50%, -40%); transition: opacity .25s, transform .3s var(--ease); pointer-events: none; white-space: nowrap; }
@media (hover: hover) and (min-width: 900px) {
    .product { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
    .product:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -18px rgba(16, 17, 20, .45), 0 0 0 1px rgba(var(--c1-rgb), .25); }
    .product:hover .ver-det { opacity: 1; transform: translate(-50%, -50%); }
    .product:hover .product-img::before { filter: blur(14px) brightness(.8); }
}
@media (max-width: 899px) {
    .product-img .add-btn, .product-img .card-qty { width: 32px; height: 32px; right: 6px; bottom: 6px; }
    .product-img .card-qty { width: auto; }
    .product-img .card-qty button { width: 28px; }
    .product-img .add-btn svg { width: 17px; height: 17px; }
    .selos { max-width: calc(100% - 46px); }
}

/* 8. Voltar ao topo */
.topo-btn { position: fixed; right: 16px; bottom: calc(max(16px, env(safe-area-inset-bottom)) + 4px); z-index: 33; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--bd); background: var(--surface); color: var(--c1); display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .4); opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; transition: opacity .3s, transform .35s var(--ease); }
.topo-btn.show { opacity: 1; transform: none; pointer-events: auto; }
.topo-btn:hover { background: var(--c1); color: #fff; }
body.has-cart .topo-btn { bottom: calc(max(16px, env(safe-area-inset-bottom)) + 80px); }
@media (min-width: 900px) { body.has-cart .topo-btn { bottom: 24px; } }

/* 10. Esqueleto na primeira abertura */
body.carregando .product-info h3, body.carregando .product-info .prices { color: transparent !important; border-radius: 6px; background: linear-gradient(100deg, var(--surface-2) 30%, rgba(var(--c1-rgb), .08) 50%, var(--surface-2) 70%) 0 0 / 200% 100%; animation: esqueleto 1.1s infinite linear; }
body.carregando .product-info .prices * { visibility: hidden; }
body.carregando .product-img > :not(.product-img img) { opacity: 0; }
@keyframes esqueleto { from { background-position: 150% 0; } to { background-position: -50% 0; } }

/* 11. Rodapé caprichado */
.footer { padding: 36px 0 0; }
.footer-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; text-align: left; }
.footer-grid > * { flex: 0 1 auto; min-width: 0; }
.fg-loja { max-width: 340px; }
.fg-col { padding-left: 32px; border-left: 1px solid var(--bd); }
.fg-loja { display: flex; gap: 14px; align-items: flex-start; }
.fg-loja strong { display: block; font-family: var(--fonte-tit); font-size: 1.15rem; font-weight: 800; }
.fg-loja small { display: block; margin-top: 4px; color: var(--txt-2); font-size: .84rem; line-height: 1.45; }
.fg-nota { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: .8rem; font-weight: 700; color: var(--txt-2); }
.fg-col h4 { display: flex; align-items: center; gap: 7px; margin: 0 0 10px; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--mut); }
.fg-col h4 svg { color: var(--c1); }
.fg-col p { margin: 0 0 6px; font-size: .88rem; color: var(--txt); line-height: 1.45; }
.fg-status { display: flex; align-items: center; gap: 7px; font-weight: 700; }
.fg-status.ok { color: #16a34a; } .fg-status.off { color: #ef4444; }
.fg-link { padding: 0; border: 0; background: none; color: var(--c1); font: inherit; font-size: .84rem; font-weight: 700; cursor: pointer; }
.fg-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 8px 14px; border-radius: 999px; background: rgba(var(--c1-rgb), .12); color: var(--c1); font-size: .84rem; font-weight: 700; transition: background .2s; }
.fg-btn:hover { background: rgba(var(--c1-rgb), .2); }
.fg-redes { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.fg-rede { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: var(--txt); font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; }
.fg-rede svg { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: var(--surface-2); box-sizing: border-box; transition: background .2s, color .2s; }
.fg-rede.wa svg { background: rgba(37, 211, 102, .14); color: #16a34a; }
.fg-rede.ig svg { background: linear-gradient(135deg, rgba(249, 115, 22, .18), rgba(219, 39, 119, .18)); color: #db2777; }
.fg-rede:hover svg { background: var(--c1); color: #fff; }
.footer-copy { width: 100%; margin: 30px 0 0 !important; padding: 16px 0 calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--bd); text-align: center; font-size: .78rem; color: var(--mut); }
.footer-copy .wrap { text-align: center; }
.footer-copy a { color: var(--c1); font-weight: 700; }
@media (max-width: 899px) {
    .footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
    .fg-loja { grid-column: 1 / -1; max-width: none; padding-bottom: 18px; border-bottom: 1px solid var(--bd); }
    .fg-col { padding-left: 0; border-left: 0; }
}
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } .fg-col + .fg-col { padding-top: 18px; border-top: 1px solid var(--bd); } }

/* 12. Letra do nome e dos títulos escolhida pela loja */
.loja-topo h1, .section-head h2, .ab-nome strong, .ab-nome b, .pm-title h2, .promo-modal h2 { font-family: var(--fonte-tit); }
body.fonte-manuscrita .loja-topo h1 { font-weight: 400; letter-spacing: 0; }
body.fonte-manuscrita .section-head h2 { font-weight: 400; letter-spacing: 0; }
body.fonte-elegante .loja-topo h1, body.fonte-classica .loja-topo h1 { letter-spacing: -.01em; }

/* ===================== Rodada 4 ===================== */

/* 5. Cards entram suavemente quando aparecem */
.product.vai-entrar { animation: none; opacity: 0; transform: translateY(18px) scale(.97); transition: opacity .5s var(--ease), transform .6s var(--ease), box-shadow .35s var(--ease); }
.product.vai-entrar.entrou { opacity: 1; transform: none; }
@media (hover: hover) and (min-width: 900px) { .product.vai-entrar.entrou:hover { transform: translateY(-6px); transition-delay: 0s !important; } }

/* 6. Troca de tema suave */
html.tema-trans, html.tema-trans *, html.tema-trans *::before, html.tema-trans *::after { transition: background-color .45s ease, color .45s ease, border-color .45s ease, box-shadow .45s ease !important; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; }

/* 7. Enfeites de datas especiais */
.epoca { position: absolute; left: 0; right: 0; top: 0; height: 900px; overflow: hidden; pointer-events: none; z-index: 3; -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent); mask-image: linear-gradient(to bottom, #000 55%, transparent); }
.epoca i { position: absolute; top: -30px; font-style: normal; line-height: 1; animation-name: epocaCai; animation-timing-function: linear; animation-iteration-count: infinite; will-change: transform; text-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
.epoca-natal i { color: #fff; text-shadow: 0 0 6px rgba(255, 255, 255, .8); }
@keyframes epocaCai { 0% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(var(--dx), 450px) rotate(180deg); } 100% { transform: translate(0, 930px) rotate(360deg); } }
.epoca-faixa { position: relative; z-index: 41; padding: 7px 14px; text-align: center; font-size: .82rem; font-weight: 800; letter-spacing: .02em; color: #fff; background: linear-gradient(90deg, #b91c1c, #15803d, #b91c1c); background-size: 200% 100%; animation: faixaMove 8s linear infinite; }
.epoca-faixa.epoca-black { background: #0a0a0a; color: #facc15; letter-spacing: .08em; border-bottom: 2px solid #facc15; animation: none; }
.epoca-faixa.epoca-namorados, .epoca-faixa.epoca-maes { background-image: linear-gradient(90deg, #db2777, #f43f5e, #db2777); }
.epoca-faixa.epoca-pascoa { background-image: linear-gradient(90deg, #a855f7, #f59e0b, #a855f7); }
.epoca-faixa.epoca-junina { background-image: linear-gradient(90deg, #ea580c, #ca8a04, #ea580c); }
.epoca-faixa.epoca-ano_novo, .epoca-faixa.epoca-carnaval { background-image: linear-gradient(90deg, #7c3aed, #db2777, #f59e0b, #7c3aed); }
.epoca-faixa.epoca-pais { background-image: linear-gradient(90deg, #1d4ed8, #0f766e, #1d4ed8); }
.epoca-faixa.epoca-criancas { background-image: linear-gradient(90deg, #0ea5e9, #f59e0b, #ec4899, #0ea5e9); }
@keyframes faixaMove { to { background-position: 200% 0; } }
body:has(.epoca-faixa) .appbar { top: 33px; }
body:has(.epoca-faixa) .appbar.solida { top: 0; }
@media (prefers-reduced-motion: reduce) { .epoca { display: none; } .epoca-faixa { animation: none; } }

/* 8. Olhadinha rápida */
.olhadinha { position: fixed; z-index: 80; width: 280px; overflow: hidden; border-radius: 16px; background: var(--surface); color: var(--txt); border: 1px solid var(--bd); box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .45); opacity: 0; transform: translateY(8px) scale(.97); transition: opacity .2s, transform .25s var(--ease); pointer-events: none; }
.olhadinha.show { opacity: 1; transform: none; }
.olhadinha[hidden] { display: none; }
.olhadinha > img { width: 100%; height: 150px; object-fit: cover; display: block; }
.ol-corpo { padding: 12px 14px 14px; }
.ol-corpo b { display: block; font-family: var(--fonte-tit); font-size: 1rem; }
.ol-corpo p { margin: 6px 0 0; font-size: .82rem; color: var(--txt-2); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.ol-selos { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.ol-selos .selo { box-shadow: none; border: 1px solid var(--bd); font-size: .66rem; }
.ol-preco { margin-top: 8px; font-size: 1.05rem; color: var(--c1); }
.ol-preco s { color: var(--mut); font-size: .8rem; }
.ol-corpo small { display: block; margin-top: 4px; color: var(--mut); font-size: .72rem; }
.olhadinha.sheet { left: 12px !important; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); top: auto !important; width: auto; pointer-events: auto; transform: translateY(30px); }
.olhadinha.sheet.show { transform: none; }
.olhadinha.sheet > img { height: 170px; }
.ol-btns { padding: 0 14px 14px; }
.ol-btns button { width: 100%; height: 44px; border: 0; border-radius: 12px; background: var(--c1); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.product { -webkit-touch-callout: none; }

/* 9/10. Filtros e ordenar */
.filtros { display: flex; gap: 6px; overflow-x: auto; padding: 10px 2px 2px; scrollbar-width: none; align-items: center; }
.filtros::-webkit-scrollbar { display: none; }
.filtro { flex-shrink: 0; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--bd); background: var(--surface); color: var(--txt-2); font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: all .2s var(--ease); }
.filtro:hover { border-color: rgba(var(--c1-rgb), .5); color: var(--txt); }
.filtro.on { background: var(--c1); border-color: var(--c1); color: #fff; box-shadow: 0 6px 14px -8px rgba(var(--c1-rgb), .9); }
.ordenar { flex-shrink: 0; margin: 0 0 0 auto; position: relative; }
.ordenar select { height: 32px; padding: 0 28px 0 12px; border-radius: 999px; border: 1px solid var(--bd); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center; color: var(--txt-2); font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; appearance: none; -webkit-appearance: none; }
.ordenar select.on { border-color: var(--c1); color: var(--c1); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 900px) { .filtros { justify-content: safe center; } .ordenar { margin-left: 8px; } }

/* 12. Mandar carrinho */
.cart-links { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--mut); }
.cart-links .btn-link { display: inline-flex; align-items: center; gap: 5px; }
#share-cart { color: var(--c1); font-weight: 700; }

/* ===================== Estilos de card (Grade · Lista · Vitrine) ===================== */

/* --- Lista: foto à esquerda, textos ao lado --- */
body.card-lista .cat-section .list, body.card-lista #fav-list { grid-auto-flow: row !important; grid-auto-columns: auto !important; grid-template-columns: minmax(0, 1fr) !important; overflow: visible; gap: 10px; margin: 0; padding: 4px 0 6px; }
body.card-lista .cat-section .product, body.card-lista #fav-list .product { flex-direction: row; align-items: stretch; text-align: left; border-radius: 14px; }
body.card-lista .cat-section .product-img, body.card-lista #fav-list .product-img { width: 112px; flex-shrink: 0; aspect-ratio: 1 / 1; align-self: stretch; height: auto; min-height: 112px; }
body.card-lista .cat-section .product-info, body.card-lista #fav-list .product-info { align-items: flex-start; justify-content: center; text-align: left; padding: 10px 14px; gap: 3px; }
body.card-lista .cat-section .product-info h3, body.card-lista #fav-list .product-info h3 { min-height: 0; font-size: .95rem; }
body.card-lista .cat-section .product-info p, body.card-lista #fav-list .product-info p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; font-size: .8rem; line-height: 1.4; color: var(--txt-2); }
body.card-lista .cat-section .prices, body.card-lista #fav-list .prices { flex-direction: row; align-items: baseline; gap: 8px; }
body.card-lista .cat-section .product-foot, body.card-lista #fav-list .product-foot { padding-top: 4px; flex: 0; }
body.card-lista .ver-tudo, body.card-lista .ver-tudo-card { display: none !important; }
body.card-lista .cat-section .ver-det, body.card-lista .cat-section .selos { display: none; }
body.card-lista .cat-section .product-img .add-btn, body.card-lista .cat-section .product-img .card-qty { right: 6px; bottom: 6px; }
@media (min-width: 900px) {
    body.card-lista .cat-section .list, body.card-lista #fav-list { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 14px; }
    body.card-lista .cat-section .product-img { width: 140px; min-height: 140px; }
}
@media (max-width: 899px) {
    body.card-lista .cat-section .product-img { width: 100px; min-height: 100px; }
}

/* --- Vitrine: foto grande com nome e preço por cima --- */
body.card-vitrine .product { border: 0; }
body.card-vitrine .product-img { aspect-ratio: 4 / 5; }
body.card-vitrine .product-info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; align-items: flex-start; text-align: left; padding: 44px 12px 12px; background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, .55) 45%, rgba(0, 0, 0, .82)); pointer-events: none; }
body.card-vitrine .product-info h3 { color: #fff; min-height: 0; text-shadow: 0 1px 6px rgba(0, 0, 0, .4); }
body.card-vitrine .product-info .prices { align-items: flex-start; }
body.card-vitrine .product-info .price { color: #fff !important; }
body.card-vitrine .product-info .old { color: rgba(255, 255, 255, .7); }
body.card-vitrine .product-foot { padding-top: 2px; }
body.card-vitrine .product-img .add-btn, body.card-vitrine .product-img .card-qty { z-index: 3; bottom: auto; top: 46px; }
body.card-vitrine .price { white-space: nowrap; }
body.card-vitrine .selos { bottom: auto; top: 40px; left: 8px; }
body.card-vitrine .ver-det { top: 40%; }
body.card-vitrine .product-img.tem-foto::before { display: none; }
body.card-vitrine .product-img img { object-fit: cover; }
body.card-vitrine .noimg b { transform: translateY(-14%); }
@media (max-width: 899px) {
    body.card-vitrine .product-info { padding: 36px 8px 8px; }
    body.card-vitrine .product-info h3 { font-size: .78rem; }
    body.card-vitrine .product-info .price { font-size: .86rem; }
    body.card-vitrine .product-img .add-btn, body.card-vitrine .product-img .card-qty { top: 40px; bottom: auto; }
    body.card-vitrine .selos { top: 34px; left: 5px; }
}
body.card-vitrine .product.no-carrinho .ver-det, body.card-vitrine .product.no-carrinho .selos { display: none; }

/* Botão "+" do card do mesmo tamanho do favorito */
.product-img .add-btn, .product-img .card-qty { width: 30px; height: 30px; right: 8px; bottom: 8px; box-shadow: 0 4px 10px -3px rgba(var(--c1-rgb), .7), 0 0 0 2px rgba(255, 255, 255, .9); }
html[data-tema="escuro"] .product-img .add-btn, html[data-tema="escuro"] .product-img .card-qty { box-shadow: 0 4px 10px -3px rgba(0, 0, 0, .6), 0 0 0 2px rgba(22, 23, 27, .9); }
.product-img .card-qty { width: auto; }
.product-img .card-qty button { width: 26px; }
.product-img .card-qty span { font-size: .8rem; min-width: 14px; }
.product-img .add-btn svg { width: 15px; height: 15px; }
.selos { max-width: calc(100% - 46px); }
body.card-vitrine .product-img .add-btn, body.card-vitrine .product-img .card-qty { top: 44px; bottom: auto; }
@media (max-width: 899px) {
    .product-img .add-btn, .product-img .card-qty { width: 28px; height: 28px; right: 6px; bottom: 6px; }
    .product-img .card-qty { width: auto; }
    .product-img .card-qty button { width: 24px; }
    .product-img .add-btn svg { width: 14px; height: 14px; }
    body.card-vitrine .product-img .add-btn, body.card-vitrine .product-img .card-qty { top: 40px; bottom: auto; }
}

/* --- Estilos do topo (Centralizado · Lateral · Cartão) --- */
.topo-nome { display: flex; flex-direction: column; align-items: inherit; }

/* Lateral: logo à esquerda, nome ao lado */
body.topo-lateral .loja-topo { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 18px; align-items: end; justify-items: start; text-align: left; }
body.topo-lateral .logo-anel { grid-row: 1 / span 3; align-self: start; }
body.topo-lateral .topo-nome { grid-column: 2; align-items: flex-start; padding-right: 56px; }
body.topo-lateral .topo-nome h1 { margin-top: 10px; }
body.topo-lateral .status-linha { grid-column: 2; justify-content: flex-start; margin-left: -8px; margin-top: 4px; }
body.topo-lateral .nota-loja { grid-column: 2; }
body.topo-lateral .info-row, body.topo-lateral .loja-acoes { grid-column: 1 / -1; }
body.topo-lateral .info-row { margin-top: 18px; }
body.topo-lateral .loja-acoes { justify-content: flex-start; }
@media (max-width: 899px) {
    body.topo-lateral .loja-topo { column-gap: 12px; }
    body.topo-lateral .logo-anel { margin-top: -44px; }
    body.topo-lateral .store-logo { width: 84px; height: 84px; }
    body.topo-lateral .store-logo span { font-size: 1.8rem; }
    body.topo-lateral .topo-nome { padding-right: 50px; }
    body.topo-lateral .topo-nome h1 { font-size: 1.3rem; margin-top: 8px; }
    body.topo-lateral .store-desc { font-size: .84rem; }
    body.topo-lateral .status-linha { font-size: .82rem; }
    body.topo-lateral .tema-btn { top: 8px; right: 14px; width: 40px; height: 40px; }
}
@media (min-width: 900px) {
    body.topo-lateral .loja-topo { max-width: 1000px; }
    body.topo-lateral .info-row { max-width: none; }
}

/* Cartão: informações num cartão flutuando sobre a capa */
body.topo-cartao .capa { height: 230px; }
body.topo-cartao .loja-topo { max-width: 760px; margin-top: -70px; padding: 0 22px 22px; background: var(--surface); border: 1px solid var(--bd); border-radius: 24px; box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .45); position: relative; z-index: 1; }
body.topo-cartao .logo-anel { margin-top: -56px; }
body.topo-cartao .logo-anel .store-logo { border-color: var(--surface); }
body.topo-cartao .info-row > div { background: var(--surface-2); box-shadow: none; }
body.topo-cartao .tema-btn { top: 12px; right: 12px; background: var(--surface-2); box-shadow: none; }
@media (max-width: 899px) {
    body.topo-cartao .loja-topo { margin: -56px 12px 0; padding: 0 14px 16px; border-radius: 20px; }
    body.topo-cartao .logo-anel { margin-top: -48px; }
    body.topo-cartao .store-logo { width: 96px; height: 96px; }
    body.topo-cartao .tema-btn { top: 10px; right: 10px; width: 38px; height: 38px; }
}
@media (min-width: 900px) {
    body.topo-cartao .capa { height: 320px; }
    body.topo-cartao .loja-topo { margin-top: -110px; padding: 0 32px 26px; }
    body.topo-cartao .logo-anel { margin-top: -70px; }
}
body.topo-lateral .nota-loja { white-space: nowrap; max-width: 100%; }
@media (max-width: 899px) { body.topo-lateral .nota-loja { font-size: .8rem; gap: 4px; padding: 4px 10px; } body.topo-lateral .nota-estrelas { transform: scale(.85); transform-origin: left center; margin-right: -8px; } }

/* --- Busca + botão Filtrar lado a lado (celular) e gaveta de filtros --- */
.busca-linha { display: flex; gap: 8px; align-items: stretch; }
.busca-linha .search { flex: 1; min-width: 0; }
.filtro-abrir, .filtros-fundo, .fs-head, .fs-rot, .fs-pe { display: none; }
html.sem-rolar, html.sem-rolar body { overflow: hidden; }
@media (min-width: 900px) { .busca-linha { justify-content: center; } .busca-linha .search { flex: 0 1 560px; margin: 0; } }
@media (max-width: 899px) {
    .filtro-abrir { position: relative; display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; height: 50px; padding: 0 14px; border-radius: 10px; border: 1.5px solid var(--bd); background: var(--surface-2); color: var(--txt); font: inherit; font-size: .86rem; font-weight: 700; cursor: pointer; transition: border-color .2s, color .2s; }
    .filtro-abrir .icon { color: var(--c1); }
    .filtro-abrir.on { border-color: var(--c1); color: var(--c1); }
    .filtro-abrir em { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--c1); color: #fff; font-style: normal; font-size: .7rem; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg); }
    .filtro-abrir em[hidden] { display: none; }
    .filtros-fundo { display: block; position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .5); backdrop-filter: blur(2px); animation: fadeFundo .25s ease; }
    .filtros-fundo[hidden] { display: none; }
    @keyframes fadeFundo { from { opacity: 0; } }
    .filtros { position: fixed; left: 0; right: 0; bottom: 0; z-index: 81; display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; overflow: visible; max-height: 80vh; overflow-y: auto; padding: 8px 18px calc(18px + env(safe-area-inset-bottom)); background: var(--surface); border-radius: 22px 22px 0 0; box-shadow: 0 -20px 40px -20px rgba(0, 0, 0, .5); transform: translateY(105%); visibility: hidden; transition: transform .35s var(--ease), visibility 0s .35s; }
    .filtros.aberto { transform: none; visibility: visible; transition: transform .35s var(--ease), visibility 0s; }
    .filtros::before { content: ''; flex-basis: 100%; height: 4px; margin: 0 auto 2px; max-width: 42px; border-radius: 4px; background: var(--bd); }
    .fs-head { display: flex; align-items: center; justify-content: space-between; flex-basis: 100%; padding: 2px 0 4px; }
    .fs-head b { font-size: 1.05rem; font-family: var(--fonte-tit); }
    .fs-x { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--txt-2); display: grid; place-items: center; cursor: pointer; }
    .fs-rot { display: block; flex-basis: 100%; margin-top: 6px; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mut); }
    .filtros .filtro { height: 40px; padding: 0 16px; font-size: .86rem; }
    .filtros .ordenar { flex-basis: 100%; margin: 0; }
    .filtros .ordenar select { width: 100%; height: 44px; border-radius: 12px; font-size: .9rem; padding-left: 14px; }
    .fs-pe { display: flex; gap: 10px; flex-basis: 100%; margin-top: 10px; }
    .fs-pe button { height: 48px; border-radius: 12px; font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer; }
    .fs-limpar { flex: 0 0 auto; padding: 0 18px; border: 1px solid var(--bd); background: var(--surface); color: var(--txt-2); }
    .fs-ver { flex: 1; border: 0; background: var(--c1); color: #fff; box-shadow: 0 10px 20px -12px rgba(var(--c1-rgb), .9); }
}

/* Topo Lateral no PC: logo | nome e status | informações à direita */
@media (min-width: 900px) {
    body.topo-lateral .loja-topo { max-width: 1240px; width: 100%; grid-template-columns: auto minmax(0, 1fr) minmax(0, 520px); grid-template-rows: auto auto auto 1fr; column-gap: 26px; row-gap: 0; align-items: start; padding-bottom: 8px; }
    body.topo-lateral .logo-anel { grid-column: 1; grid-row: 1 / span 4; margin-top: -70px; }
    body.topo-lateral .topo-nome { grid-column: 2; grid-row: 1; padding-right: 0; }
    body.topo-lateral .topo-nome h1 { margin-top: 14px; font-size: 2.1rem; }
    body.topo-lateral .status-linha { grid-column: 2; grid-row: 2; margin-top: 6px; }
    body.topo-lateral .nota-loja { grid-column: 2; grid-row: 3; margin-top: 6px; }
    body.topo-lateral .loja-acoes { grid-column: 2; grid-row: 4; margin-top: 14px; }
    body.topo-lateral .info-row { grid-column: 3; grid-row: 1 / span 4; align-self: center; width: 100%; margin-top: 22px; }
    body.topo-lateral .tema-btn { top: -62px; right: 20px; background: rgba(15, 15, 18, .45); color: #fff; border-color: rgba(255, 255, 255, .25); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
}
@media (min-width: 900px) and (max-width: 1150px) {
    body.topo-lateral .loja-topo { grid-template-columns: auto minmax(0, 1fr); }
    body.topo-lateral .info-row { grid-column: 1 / -1; grid-row: 5; max-width: none; }
}

/* Topo Lateral no PC: tudo alinhado à esquerda, caixinhas na horizontal */
@media (min-width: 900px) {
    body.topo-lateral .info-row { align-self: end; margin-top: 0; margin-bottom: 2px; gap: 10px; }
    body.topo-lateral .info-row > div { flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px; padding: 14px 16px; text-align: left !important; }
    body.topo-lateral .info-row .ir-ico { flex-shrink: 0; width: 40px; height: 40px; }
    body.topo-lateral .info-row small { font-size: .72rem !important; }
    body.topo-lateral .info-row b { font-size: .92rem !important; white-space: nowrap; }
    body.topo-lateral .loja-acoes { padding-left: 0; margin-left: -2px; }
    body.topo-lateral .status-linha { margin-left: -8px; }
    /* Busca + filtros na mesma linha, categorias à esquerda */
    body.topo-lateral .sticky-nav .wrap { display: grid; grid-template-columns: minmax(300px, 420px) minmax(0, 1fr); column-gap: 14px; align-items: center; }
    body.topo-lateral .busca-linha { grid-column: 1; }
    body.topo-lateral .busca-linha .search { flex: 1 1 auto; max-width: none; }
    body.topo-lateral .filtros { grid-column: 2; padding: 2px; justify-content: flex-start; }
    body.topo-lateral .chips { grid-column: 1 / -1; justify-content: flex-start; }
    body.topo-lateral .busca-info { text-align: left; }
}
@media (min-width: 900px) and (max-width: 1150px) {
    body.topo-lateral .info-row { margin-top: 18px; }
    body.topo-lateral .sticky-nav .wrap { grid-template-columns: minmax(0, 1fr); }
    body.topo-lateral .filtros { grid-column: 1; padding-top: 10px; }
}
@media (min-width: 900px) { body.topo-lateral .avisos-loja { width: 100%; align-self: center; align-items: flex-start; } }
@media (min-width: 1151px) {
    body.topo-lateral .loja-topo { grid-template-columns: auto minmax(0, 1fr) minmax(0, 640px); }
    body.topo-lateral .info-row small { white-space: nowrap; }
}
/* Lateral: botões nunca cortam; caixinhas descem quando falta espaço */
@media (min-width: 900px) {
    body.topo-lateral .loja-acoes { flex-wrap: wrap; overflow: visible; }
}
@media (min-width: 1151px) {
    body.topo-lateral .loja-topo { grid-template-columns: auto minmax(460px, 1fr) minmax(0, 600px); }
    body.topo-lateral .info-row b { font-size: .88rem !important; }
}
@media (min-width: 900px) and (max-width: 1499px) {
    body.topo-lateral .loja-topo { grid-template-columns: auto minmax(0, 1fr); }
    body.topo-lateral .info-row { grid-column: 1 / -1; grid-row: 5; max-width: none; margin-top: 18px; align-self: start; }
}
@media (min-width: 1500px) {
    body.topo-lateral .info-row small { white-space: normal; }
    body.topo-lateral .info-row > div { padding: 12px 14px; gap: 10px; min-width: 0; }
}
/* Lateral: busca, filtros e categorias centralizados */
@media (min-width: 900px) {
    body.topo-lateral .sticky-nav .wrap { grid-template-columns: minmax(300px, 420px) minmax(0, max-content); justify-content: center; }
    body.topo-lateral .chips { justify-content: safe center; }
}
@media (min-width: 900px) and (max-width: 1150px) {
    body.topo-lateral .sticky-nav .wrap { grid-template-columns: minmax(0, 1fr); }
    body.topo-lateral .filtros { justify-content: safe center; }
}
/* Lateral (teste): caixinhas no alto à direita, botões centralizados embaixo */
@media (min-width: 900px) {
    body.topo-lateral .loja-acoes { grid-column: 1 / -1; grid-row: 6; justify-self: stretch; justify-content: center; margin: 22px 0 0; }
}
@media (min-width: 1500px) {
    body.topo-lateral .loja-topo { grid-template-columns: auto minmax(0, 1fr) minmax(0, 700px); }
    body.topo-lateral .info-row { grid-row: 1 / span 4; align-self: start; margin-top: 18px; }
    body.topo-lateral .info-row small { white-space: nowrap; }
}
@media (min-width: 900px) and (max-width: 1499px) {
    body.topo-lateral .info-row { grid-row: 5; }
}
/* Lateral: avaliação centralizada, logo acima dos botões */
@media (min-width: 900px) {
    body.topo-lateral .nota-loja { grid-column: 1 / -1; grid-row: 6; justify-self: center; margin-top: 22px; }
    body.topo-lateral .loja-acoes { grid-row: 7; margin-top: 12px; }
}
/* Status + avaliação lado a lado (Lateral no PC); nos outros estilos o wrapper não interfere */
.topo-meta { display: contents; }
@media (min-width: 900px) {
    body.topo-lateral .topo-meta { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; grid-column: 1 / -1; grid-row: 6; justify-self: center; margin-top: 22px; }
    body.topo-lateral .topo-meta .nota-loja, body.topo-lateral .topo-meta .status-linha { margin: 0; }
    body.topo-lateral .topo-meta .status-linha { height: 34px; padding: 0 14px; border: 1px solid var(--bd); border-radius: 999px; background: var(--surface); font-size: .86rem; }
    body.topo-lateral .topo-meta .status-linha small { display: none; }
    body.topo-lateral .topo-meta .nota-loja { min-height: 34px; }
}
/* Lateral no celular: status e avaliação lado a lado, embaixo do nome */
@media (max-width: 899px) {
    body.topo-lateral .topo-meta { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; grid-column: 1 / -1; width: 100%; margin-top: 14px; }
    body.topo-lateral .topo-meta .status-linha, body.topo-lateral .topo-meta .nota-loja { grid-column: auto; margin: 0; }
    body.topo-lateral .topo-meta .status-linha { height: 32px; padding: 0 12px; border: 1px solid var(--bd); border-radius: 999px; background: var(--surface); font-size: .8rem; white-space: nowrap; }
    body.topo-lateral .topo-meta .status-linha small { display: none; }
    body.topo-lateral .topo-meta .nota-loja { min-height: 32px; }
    body.topo-lateral .logo-anel { grid-row: 1; }
    body.topo-lateral .topo-nome { align-self: center; }
}
@media (max-width: 899px) {
    body.topo-lateral .topo-meta { flex-wrap: nowrap; gap: 6px; }
    body.topo-lateral .topo-meta .nota-fotos { display: none; }
    body.topo-lateral .topo-meta .nota-loja { font-size: .78rem; padding: 0 10px; gap: 4px; }
    body.topo-lateral .topo-meta .status-linha { padding: 0 10px; font-size: .78rem; gap: 4px; }
}
@media (max-width: 359px) { body.topo-lateral .topo-meta { flex-wrap: wrap; } }

/* --- Avaliação detalhada --- */
.av-det { margin: 4px 0 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); text-align: left; }
.av-det-tit { margin: 0 0 6px; font-size: .86rem; font-weight: 700; }
.av-det-tit small { font-weight: 500; color: var(--txt-2); }
.av-crit { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 0; }
.av-crit + .av-crit { border-top: 1px dashed var(--bd); }
.av-crit > span { font-size: .86rem; color: var(--txt); }
.estrelas.sm { gap: 0; }
.estrelas.sm button { font-size: 1.35rem; padding: 2px 3px; }
.aval-crit { display: grid; gap: 8px; margin: 0 0 16px; padding: 14px; border-radius: 14px; background: var(--surface-2); }
.ac-linha { display: grid; grid-template-columns: minmax(110px, 38%) 1fr 30px; align-items: center; gap: 10px; font-size: .84rem; }
.ac-linha span { color: var(--txt-2); }
.ac-barra { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.ac-barra em { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.ac-linha b { text-align: right; }
.av-crit > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* --- Entrega por distância (carrinho) --- */
.fk-box { margin-bottom: 12px; }
.fk-gps { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 14px; border: 1.5px dashed rgba(var(--c1-rgb), .5); background: rgba(var(--c1-rgb), .06); color: var(--txt); font: inherit; text-align: left; cursor: pointer; transition: background .2s, border-color .2s; }
.fk-gps:hover { background: rgba(var(--c1-rgb), .1); border-color: var(--c1); }
.fk-gps .icon { color: var(--c1); flex-shrink: 0; }
.fk-gps b { display: block; font-size: .92rem; }
.fk-gps small { color: var(--txt-2); font-size: .78rem; }
.fk-gps:disabled { opacity: .6; cursor: wait; }
.fk-res { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: .86rem; line-height: 1.4; }
.fk-res.ok { background: rgba(34, 197, 94, .1); color: var(--txt); }
.fk-res.ok .icon { color: #16a34a; flex-shrink: 0; }
.fk-res.fora { background: rgba(239, 68, 68, .08); color: var(--txt); }
.fk-res.fora .icon { color: #ef4444; flex-shrink: 0; }
.fk-res span { flex: 1; }
.fk-trocar { border: 0; background: none; color: var(--c1); font: inherit; font-weight: 700; font-size: .82rem; cursor: pointer; padding: 2px 4px; }
.fk-gira { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(var(--c1-rgb), .25); border-top-color: var(--c1); animation: fkGira .8s linear infinite; flex-shrink: 0; }
@keyframes fkGira { to { transform: rotate(360deg); } }
.fk-end { display: inline-flex; align-items: center; gap: 6px; margin: -4px 0 12px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--bd); background: var(--surface); color: var(--c1); font: inherit; font-size: .84rem; font-weight: 700; cursor: pointer; }
.fk-end[hidden] { display: none; }
/* Localização opcional no pedido */
.loc-box { margin: -4px 0 12px; }
.loc-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--bd); background: var(--surface); color: var(--txt); font: inherit; text-align: left; cursor: pointer; transition: border-color .2s, background .2s; }
.loc-btn:hover { border-color: rgba(var(--c1-rgb), .6); background: rgba(var(--c1-rgb), .05); }
.loc-btn .icon { color: var(--c1); flex-shrink: 0; }
.loc-btn b { display: block; font-size: .88rem; }
.loc-btn small { color: var(--txt-2); font-size: .76rem; }
.loc-btn[hidden] { display: none; }
.loc-btn:disabled { opacity: .6; cursor: wait; }
/* Fechando em breve — destaque */
.fechando-bar { position: relative; overflow: hidden; gap: 14px; padding: 14px 16px 18px; border: 0; color: #fff; background: linear-gradient(120deg, #f59e0b, #f97316 55%, #ea580c); box-shadow: 0 10px 28px -10px rgba(234, 88, 12, .65), inset 0 1px 0 rgba(255, 255, 255, .25); animation: fbBrilho 2.4s ease-in-out infinite; }
.fechando-bar::before { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%); transform: translateX(-100%); animation: fbVarre 3.2s ease-in-out infinite; pointer-events: none; }
.fechando-bar > * { position: relative; }
.fechando-bar .fb-ico { width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .22); color: #fff; box-shadow: 0 0 0 0 rgba(255, 255, 255, .55); animation: fbAnel 1.6s ease-out infinite; }
.fechando-bar .fb-ico svg { animation: fbBalanca 1.6s ease-in-out infinite; }
.fechando-bar b { color: #fff; font-size: 1rem; letter-spacing: -.01em; }
.fechando-bar .fb-txt small { color: rgba(255, 255, 255, .9); font-weight: 500; }
.fechando-bar .fb-cont { display: flex; flex-direction: column; align-items: center; margin-left: 6px; padding: 6px 12px; border-radius: 12px; background: rgba(0, 0, 0, .18); line-height: 1.1; }
.fechando-bar .fb-cont small { color: rgba(255, 255, 255, .85); font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.fechando-bar .fb-min { color: #fff; font-weight: 800; font-size: 1.15rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fechando-bar .fb-prog { position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: rgba(0, 0, 0, .18); }
.fechando-bar .fb-prog::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--p, 100%); background: #fff; border-radius: 0 4px 4px 0; transition: width 1s linear; }
.fechando-bar.fb-urgente { background: linear-gradient(120deg, #f97316, #ef4444 60%, #dc2626); box-shadow: 0 10px 28px -10px rgba(220, 38, 38, .7), inset 0 1px 0 rgba(255, 255, 255, .25); }
@keyframes fbAnel { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .55); } 100% { box-shadow: 0 0 0 12px rgba(255, 255, 255, 0); } }
@keyframes fbBalanca { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }
@keyframes fbVarre { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }
@keyframes fbBrilho { 50% { box-shadow: 0 12px 34px -8px rgba(234, 88, 12, .85), inset 0 1px 0 rgba(255, 255, 255, .25); } }
@media (max-width: 420px) { .fechando-bar { gap: 10px; padding: 12px 12px 16px; } .fechando-bar .fb-ico { width: 36px; height: 36px; } .fechando-bar b { font-size: .92rem; } .fechando-bar .fb-min { font-size: 1rem; } .fechando-bar .fb-cont { padding: 5px 9px; } }
@media (prefers-reduced-motion: reduce) { .fechando-bar, .fechando-bar::before, .fechando-bar .fb-ico, .fechando-bar .fb-ico svg { animation: none; } }
.fk-valor s { font-weight: 500; color: var(--txt-2); margin-right: 3px; }
.fk-obg { font-style: normal; font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 2px 7px; border-radius: 99px; background: rgba(var(--c1-rgb), .14); color: var(--c1); margin-left: 4px; vertical-align: 2px; }
.fk-box.invalid .fk-gps { border-color: #ef4444; background: rgba(239, 68, 68, .07); animation: fkTreme .4s; }
.fk-box.invalid .fk-obg { background: #ef4444; color: #fff; }
@keyframes fkTreme { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.fk-de { display: block; margin-top: 3px; font-size: .76rem; color: var(--txt-2); line-height: 1.35; }
.fk-de b { font-weight: 700; color: var(--txt); }
.fk-auto { display: block; margin: -6px 0 12px; font-size: .78rem; line-height: 1.4; color: #16a34a; } .fk-auto .icon { vertical-align: -2px; margin-right: 3px; } .fk-auto[hidden] { display: none; }
.fid-c.proximo { border-style: dashed; border-color: var(--c1); animation: fidProx 1.6s ease-in-out infinite; }
@keyframes fidProx { 50% { box-shadow: 0 0 0 4px rgba(var(--c1-rgb), .18); } }

/* Indique e ganhe: mais enquadrado (celular) */
.indique { padding: 16px; }
.ind-top { align-items: center; gap: 12px; }
.ind-top > svg { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: rgba(var(--c1-rgb), .14); margin: 0; box-sizing: border-box; }
.ind-top > div > b { font-size: 1rem; }
.ind-top small { display: block; margin-top: 2px; line-height: 1.45; }
.ind-acoes { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 8px; flex-wrap: nowrap; }
.ind-acoes .btn-main { min-width: 0; min-height: 46px; padding: 0 12px; font-size: .9rem; white-space: nowrap; gap: 8px; }
.ind-acoes .btn-main span, .ind-copiar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ind-copiar { justify-content: center; min-width: 0; white-space: nowrap; }
@media (max-width: 400px) {
    .ind-top { align-items: flex-start; }
    .ind-top small { font-size: .82rem; }
    .ind-acoes .btn-main, .ind-copiar { font-size: .84rem; padding: 0 10px; }
}
@media (max-width: 480px) { .ind-l { display: none; } .ind-acoes { grid-template-columns: 1fr 1fr; } }
.ind-top { align-items: flex-start; }
/* Indique e ganhe: redes em ícones + copiar link */
.ind-acoes { display: flex !important; gap: 8px; }
.ind-rede { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 12px; border: 0; display: grid; place-items: center; color: #fff; cursor: pointer; transition: transform .15s, filter .15s; }
.ind-rede:hover { transform: translateY(-2px); filter: brightness(1.06); }
.ind-rede:active { transform: scale(.95); }
.ind-wa { background: #16a34a; box-shadow: 0 8px 16px -10px rgba(22, 163, 74, .9); }
.ind-fb { background: #1877f2; box-shadow: 0 8px 16px -10px rgba(24, 119, 242, .9); }
.ind-tg { background: #229ed9; box-shadow: 0 8px 16px -10px rgba(34, 158, 217, .9); }
.ind-acoes .ind-copiar { flex: 1; min-height: 46px; }
@media (max-width: 480px) {
    .ind-acoes { gap: 6px; }
    .ind-rede { flex-basis: 42px; width: 42px; height: 44px; }
    .ind-acoes .ind-copiar { min-height: 44px; padding: 0 8px; gap: 5px; font-size: .84rem; }
}
.ind-l2 { font-style: normal; } @media (max-width: 400px) { .ind-l2 { display: none; } }
@media (max-width: 340px) { .ind-acoes .ind-copiar span { display: none; } .ind-acoes .ind-copiar { flex: 1; } }
/* Sugestões de endereço do Google */
#campo-endereco { position: relative; }
.gm-sug { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; margin-top: 4px; padding: 6px; border-radius: 14px; border: 1px solid var(--bd); background: var(--surface); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .45); }
.gm-sug[hidden] { display: none; }
.gm-item { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 10px; background: none; color: var(--txt); font: inherit; text-align: left; cursor: pointer; }
.gm-item:hover, .gm-item:focus { background: var(--surface-2); outline: none; }
.gm-item .icon { color: var(--txt-2); margin-top: 3px; flex-shrink: 0; }
.gm-item b { display: block; font-size: .88rem; font-weight: 600; }
.gm-item small { display: block; font-size: .76rem; color: var(--txt-2); }
.gm-marca { padding: 4px 10px 2px; font-size: .66rem; color: var(--txt-2); text-align: right; }
/* Avisos de status (fechando/fechado/pausa) centralizados no topo */
.avisos-loja .fechado-bar { align-self: center !important; width: fit-content; max-width: 100%; text-align: left; }
@media (min-width: 900px) { body.topo-lateral .avisos-loja { align-items: center; } }
/* Fechando em breve — versão fina e preta */
.fechando-bar { gap: 10px; padding: 8px 10px 10px 10px; border-radius: 14px; background: #111 !important; border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 8px 22px -10px rgba(0, 0, 0, .55); animation: none; }
.fechando-bar::before { background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .08) 50%, transparent 70%); }
.fechando-bar .fb-ico { width: 30px; height: 30px; background: rgba(245, 158, 11, .16); color: #f59e0b; animation-name: fbAnelA; }
.fechando-bar .fb-ico svg { width: 16px; height: 16px; }
.fechando-bar .fb-txt { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.fechando-bar b { font-size: .9rem; }
.fechando-bar .fb-txt small { font-size: .8rem; color: rgba(255, 255, 255, .65); }
.fechando-bar .fb-cont { flex-direction: row; align-items: baseline; gap: 5px; margin-left: 4px; padding: 4px 10px; border-radius: 99px; background: #f59e0b; }
.fechando-bar .fb-cont small { color: rgba(0, 0, 0, .65); font-size: .62rem; }
.fechando-bar .fb-min { color: #111; font-size: .92rem; }
.fechando-bar .fb-prog { height: 3px; background: rgba(255, 255, 255, .08); }
.fechando-bar .fb-prog::after { background: #f59e0b; }
.fechando-bar.fb-urgente { background: #111 !important; box-shadow: 0 8px 22px -10px rgba(0, 0, 0, .55); }
.fechando-bar.fb-urgente .fb-ico { background: rgba(239, 68, 68, .18); color: #ef4444; animation-name: fbAnelV; }
.fechando-bar.fb-urgente .fb-cont, .fechando-bar.fb-urgente .fb-prog::after { background: #ef4444; }
.fechando-bar.fb-urgente .fb-cont small { color: rgba(255, 255, 255, .8); }
.fechando-bar.fb-urgente .fb-min { color: #fff; }
@keyframes fbAnelA { 0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, .5); } 100% { box-shadow: 0 0 0 9px rgba(245, 158, 11, 0); } }
@keyframes fbAnelV { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .55); } 100% { box-shadow: 0 0 0 9px rgba(239, 68, 68, 0); } }
@media (max-width: 420px) { .fechando-bar { gap: 8px; padding: 7px 8px 9px; } .fechando-bar .fb-ico { width: 28px; height: 28px; } .fechando-bar .fb-txt { flex-direction: column; gap: 0; } .fechando-bar b { font-size: .85rem; } .fechando-bar .fb-cont { padding: 3px 8px; } .fechando-bar .fb-min { font-size: .85rem; } }
/* "Fechado agora" pulsando para chamar atenção */
.status-linha.closed { border-color: rgba(239, 68, 68, .45) !important; animation: stFechado 1.8s ease-out infinite; }
.status-linha.closed svg { animation: stFechadoIco 1.8s ease-in-out infinite; }
@keyframes stFechado { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .5); } 70%, 100% { box-shadow: 0 0 0 9px rgba(239, 68, 68, 0); } }
@keyframes stFechadoIco { 50% { transform: scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .status-linha.closed, .status-linha.closed svg { animation: none; } }
/* ===== Denúncia / contato com a plataforma ===== */
.pz-links { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.pz-links button { display: inline-flex; align-items: center; gap: 5px; background: none; border: 0; padding: 2px 0; font: inherit; font-size: .74rem; color: var(--mut); cursor: pointer; opacity: .85; }
.pz-links button:hover { opacity: 1; text-decoration: underline; color: var(--txt-2); }
.pz-links > span { opacity: .5; }
.pz-modal { max-width: 480px; }
.pz-head { display: flex; gap: 12px; align-items: center; margin: 4px 36px 16px 0; }
.pz-head h2 { font-size: 1.12rem !important; }
.pz-head small { display: block; color: var(--mut); font-size: .8rem; margin-top: 2px; }
.pz-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; background: rgba(239, 68, 68, .12); color: #ef4444; }
#modal-pz[data-tipo="contato"] .pz-ico { background: var(--c1-soft); color: var(--c1); }
.pz-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-3); margin-bottom: 16px; }
.pz-tabs button { border: 0; background: none; font: inherit; font-size: .86rem; font-weight: 700; color: var(--mut); padding: 9px 0; border-radius: 9px; cursor: pointer; }
.pz-tabs button.on { background: var(--surface); color: var(--txt); box-shadow: var(--sh-xs); }
#modal-pz[data-tipo="denuncia"] .pz-tabs button.on { color: #dc2626; }
.pz-lbl { display: block; font-size: .8rem; font-weight: 700; color: var(--txt-2); margin-bottom: 7px; }
.pz-lbl em { font-style: normal; font-weight: 500; color: var(--mut); }
.pz-sec { margin-bottom: 14px; }
.pz-chips { display: flex; flex-wrap: wrap; gap: 7px; border-radius: 12px; }
.pz-chips.invalid { outline: 2px solid rgba(239, 68, 68, .5); outline-offset: 4px; }
.pz-chips label { cursor: pointer; }
.pz-chips input { position: absolute; opacity: 0; pointer-events: none; }
.pz-chips span { display: inline-block; font-size: .8rem; font-weight: 600; padding: 7px 12px; border-radius: 99px; border: 1px solid var(--bd); color: var(--txt-2); transition: .15s; }
.pz-chips input:checked + span { border-color: #ef4444; background: rgba(239, 68, 68, .1); color: #dc2626; }
.pz-chips input:focus-visible + span { box-shadow: 0 0 0 3px rgba(239, 68, 68, .25); }
.pz-modal .field { margin-bottom: 12px; }
.pz-modal textarea { min-height: 96px; }
.pz-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pz-row > [hidden] { display: none; }
.pz-row:has(> [hidden] + .pz-cont[hidden]) { display: none; }
.pz-chk { display: flex; gap: 9px; align-items: flex-start; font-size: .8rem; color: var(--txt-2); margin: 2px 0 14px; cursor: pointer; line-height: 1.4; }
.pz-chk input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: #ef4444; flex-shrink: 0; }
.pz-chk small { color: var(--mut); }
.pz-isca { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.pz-erro { background: rgba(239, 68, 68, .1); color: #dc2626; border-radius: 10px; padding: 9px 12px; font-size: .82rem; font-weight: 600; margin: 0 0 12px; }
.btn-pz { width: 100%; border: 0; border-radius: 13px; padding: 14px; font: inherit; font-weight: 800; font-size: .95rem; color: #fff; background: #ef4444; cursor: pointer; }
#modal-pz[data-tipo="contato"] .btn-pz, .btn-pz.ok { background: var(--c1); }
.btn-pz:disabled { opacity: .6; cursor: wait; }
.pz-priv { text-align: center; font-size: .74rem; color: var(--mut); margin: 10px 0 0; }
.pz-ok { text-align: center; padding: 18px 4px 4px; }
.pz-ok-ico { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: rgba(34, 197, 94, .14); color: #16a34a; }
.pz-ok h2 { margin-bottom: 8px; }
.pz-ok p { color: var(--txt-2); font-size: .88rem; line-height: 1.5; margin: 0 0 16px; }
.pz-proto { display: inline-block; font-size: .95rem; padding: 8px 14px; border-radius: 10px; border: 1px dashed var(--bd); background: var(--surface-3); margin-bottom: 18px; color: var(--txt); }
html[data-tema="escuro"] .pz-chips input:checked + span, html[data-tema="escuro"] .pz-erro, html[data-tema="escuro"] #modal-pz[data-tipo="denuncia"] .pz-tabs button.on { color: #fca5a5; }
@media (max-width: 420px) { .pz-row { grid-template-columns: 1fr; gap: 0; } }
.pz-chips label { position: relative; } .pz-chips input { left: 0; top: 0; width: 1px; height: 1px; }
/* Página do protocolo (conversa do cliente com a plataforma) */
.pz-acomp { display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.pz-ok-dica { font-size: .76rem !important; color: var(--mut) !important; margin: 10px 0 6px !important; }
.pz-voltar { background: none; border: 0; font: inherit; font-size: .86rem; font-weight: 700; color: var(--mut); padding: 8px; cursor: pointer; }
.pz-meus { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: .78rem; padding: 9px 12px; border-radius: 11px; background: var(--surface-3); margin-bottom: 12px; }
.pz-meus span { color: var(--mut); font-weight: 600; }
.pz-meus a { color: var(--c1); font-weight: 800; text-decoration: none; }
.pt-card { padding: 20px; }
.pt-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--bd); }
.pt-head h1 { font-size: 1.2rem; font-weight: 800; margin: 4px 0 4px; }
.pt-sub { margin: 0; font-size: .78rem; color: var(--mut); }
.pt-st { font-size: .7rem; font-weight: 800; padding: 5px 10px; border-radius: 99px; white-space: nowrap; }
.pt-aberto { background: rgba(249, 115, 22, .12); color: #ea580c; }
.pt-resp { background: rgba(59, 130, 246, .12); color: #2563eb; }
.pt-fim { background: rgba(34, 197, 94, .12); color: #16a34a; }
.pt-msgs { display: flex; flex-direction: column; gap: 10px; padding: 16px 0; }
.pt-m { max-width: 85%; padding: 11px 14px; border-radius: 14px; font-size: .9rem; line-height: 1.5; overflow-wrap: anywhere; }
.pt-m.eu { align-self: flex-end; background: rgba(var(--c1-rgb), .12); border: 1px solid rgba(var(--c1-rgb), .25); border-top-right-radius: 4px; }
.pt-m.ele { align-self: flex-start; background: var(--surface-3); border: 1px solid var(--bd); border-top-left-radius: 4px; }
.pt-m small { display: block; font-size: .7rem; color: var(--mut); margin-top: 5px; }
.pt-espera { align-self: center; display: flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--mut); text-align: center; margin-top: 4px; }
.pt-dots { display: inline-flex; gap: 3px; }
.pt-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--mut); animation: ptDot 1.2s infinite ease-in-out; }
.pt-dots i:nth-child(2) { animation-delay: .15s; } .pt-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes ptDot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
p.pt-fim { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 11px; font-size: .82rem; font-weight: 600; margin: 0 0 12px; }
.pt-form { border-top: 1px solid var(--bd); padding-top: 14px; }
.pt-form textarea { width: 100%; border: 1px solid var(--bd); border-radius: 12px; padding: 11px 12px; font: inherit; font-size: .9rem; resize: vertical; background: var(--surface); color: var(--txt); margin-bottom: 10px; }
.pt-form textarea:focus { outline: none; border-color: var(--c1); box-shadow: 0 0 0 4px var(--c1-soft); }
.pt-dica { text-align: center; font-size: .76rem; color: var(--mut); margin: 12px 0 0; }
.pt-head .track-num { white-space: nowrap; }
.pz-conta { display: block; text-align: right; font-size: .72rem; font-weight: 600; color: var(--mut); margin-top: 5px; }
.pz-conta.ok { color: var(--mut-2); font-weight: 500; }
.field.invalid .pz-conta:not(.ok) { color: #dc2626; }
/* Campo com erro: só a borda fica vermelha (texto continua legível no claro e no escuro) */
#modal-pz .field.invalid textarea, #modal-pz .field.invalid input, html[data-tema="escuro"] #modal-pz .field.invalid textarea, html[data-tema="escuro"] #modal-pz .field.invalid input { background: var(--surface); color: var(--txt); border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, .15); }
html[data-tema="escuro"] .field.invalid .pz-conta:not(.ok) { color: #fca5a5; }
/* No computador o link "Ajuda ou denúncia" fica na mesma linha do "Feito com" */
@media (min-width: 700px) {
    .pz-links { display: inline; margin: 0; }
    .pz-links::before { content: "·"; margin: 0 6px 0 4px; }
    .pz-links button { font-size: inherit; vertical-align: baseline; padding: 0; }
    .pz-links button svg { vertical-align: -1px; }
}
/* As categorias não podem "esticar" a grade da busca (senão busca + filtros perdem o centro) */
@media (min-width: 1151px) {
    body.topo-lateral .sticky-nav .wrap { grid-template-columns: minmax(0, 1fr) minmax(300px, 420px) minmax(0, max-content) minmax(0, 1fr); justify-content: stretch; }
    body.topo-lateral .busca-linha { grid-column: 2; }
    body.topo-lateral .filtros { grid-column: 3; }
    body.topo-lateral .sticky-nav .chips, body.topo-lateral .sticky-nav .busca-info { grid-column: 1 / -1; contain: inline-size; min-width: 0; }
}
.seg label.desab { opacity: .45; cursor: not-allowed; } .seg label.desab span { pointer-events: none; }
.aviso.fechado-aviso { display: flex; gap: 8px; align-items: flex-start; background: rgba(239, 68, 68, .1); color: #b91c1c; }
.aviso.fechado-aviso svg { flex-shrink: 0; margin-top: 2px; }
html[data-tema="escuro"] .aviso.fechado-aviso { color: #fca5a5; }
.btn-main.btn-fechado { filter: grayscale(1); opacity: .55; box-shadow: none; }
/* Motivos da denúncia: grade alinhada em 2 colunas iguais */
.pz-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pz-chips label { display: block; min-width: 0; }
.pz-chips span { display: flex; align-items: center; justify-content: center; text-align: center; width: 100%; height: 100%; min-height: 40px; padding: 7px 8px; line-height: 1.2; border-radius: 12px; }
/* Convite para avaliar no Google (depois de 4 ou 5 estrelas) */
.av-google { margin: 16px 0 4px; padding: 16px; border-radius: 16px; background: var(--surface-3); border: 1px solid var(--bd); text-align: center; }
.av-google p { margin: 0 0 12px; font-size: .9rem; line-height: 1.5; color: var(--txt-2); }
.btn-google { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 20px; border-radius: 12px; background: #fff; color: #1f1f1f; border: 1px solid #dadce0; font-weight: 700; font-size: .92rem; text-decoration: none; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.btn-google:hover { box-shadow: 0 3px 10px rgba(0, 0, 0, .15); }
