:root {
  --bg: #f4f2ef;
  --ink: #17171a;
  --muted: #6d6a66;
  --line: #e2ded8;
  --card: #fff;
  --green: #1fa855;
  --radius: 14px;
  --bar-h: 60px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 12px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.45 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- barra ---------- */
.bar { position: sticky; top: 0; z-index: 30; height: var(--bar-h); display: flex; align-items: center; gap: 14px; padding: 0 16px; background: rgba(250, 249, 247, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.bar-brand { display: flex; align-items: center; height: 100%; color: inherit; text-decoration: none; flex: none; }
.bar-brand img { max-height: 30px; max-width: 120px; object-fit: contain; }
.bar-brand b { font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 14px; }
.bar-title { font-weight: 600; font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
.bar-modes { display: flex; background: #e9e6e1; border-radius: 99px; padding: 3px; flex: none; }
.bar-modes button { border: 0; background: none; padding: 6px 14px; border-radius: 99px; font-size: 13px; font-weight: 600; color: var(--muted); }
.bar-modes button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.bar-actions { display: flex; gap: 4px; flex: none; }
.ib { position: relative; display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 8px 10px; border-radius: 10px; font-size: 13px; font-weight: 600; }
.ib:hover { background: rgba(0,0,0,.05); }
.ib svg { width: 20px; height: 20px; }
.ib.off svg { opacity: .45; }
.ib.off span { text-decoration: line-through; }
.ib-cart i { position: absolute; top: 2px; left: 22px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--green); color: #fff; font: 700 11px/18px system-ui; text-align: center; font-style: normal; }
.admin-note { background: #fff7d6; color: #6b5300; font-size: 13px; text-align: center; padding: 7px 12px; border-bottom: 1px solid #f0e2a8; }

/* ---------- páginas ---------- */
.view-pages { display: flex; justify-content: center; gap: 18px; padding: 22px 16px 120px; }
.pages { display: grid; gap: 22px; width: min(100%, calc((100vh - var(--bar-h) - 44px) * 0.7071), 760px); }
.page { position: relative; border-radius: 4px; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 10px 30px rgba(0,0,0,.08); background: #fff; }
.page [data-product] { cursor: pointer; }
.pick { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 6px; border: 0; padding: 9px 14px; border-radius: 99px; background: rgba(255,255,255,.94); color: var(--ink); font-size: 13px; font-weight: 700; box-shadow: 0 4px 16px rgba(0,0,0,.18); transition: transform .15s; }
.pick:hover { transform: translateY(-1px); }
.pick svg { width: 16px; height: 16px; }
.pnav { position: sticky; top: calc(var(--bar-h) + 22px); align-self: flex-start; display: flex; flex-direction: column; gap: 4px; max-height: calc(100vh - var(--bar-h) - 44px); overflow: auto; scrollbar-width: none; }
.pnav a { display: grid; place-items: center; width: 34px; height: 26px; border-radius: 7px; font-size: 11px; font-weight: 700; color: var(--muted); text-decoration: none; }
.pnav a.on { background: var(--ink); color: #fff; }
.pnav a:hover:not(.on) { background: rgba(0,0,0,.06); }
@media (max-width: 900px) { .pnav { display: none; } }
@media (min-width: 1300px) {
  .pages { grid-template-columns: 1fr 1fr; width: min(calc(100% - 60px), calc((100vh - var(--bar-h) - 44px) * 1.42 + 22px), 1500px); }
  .page[data-kind="cover"] { grid-column: 1 / -1; width: calc(50% - 11px); justify-self: center; }
}
body.hide-prices .sheet .price, body.hide-prices .js-price { display: none !important; }

/* ---------- vitrine ---------- */
.view-shop { max-width: 1200px; margin: 0 auto; padding: 18px 16px 120px; }
.shop-tools { position: sticky; top: var(--bar-h); z-index: 5; background: var(--bg); padding: 10px 0 12px; display: grid; gap: 10px; }
.shop-tools input { width: 100%; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; font: inherit; background: #fff; outline: none; }
.shop-tools input:focus { border-color: #b9b3ab; box-shadow: 0 0 0 3px rgba(0,0,0,.05); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips button { flex: none; border: 1px solid var(--line); background: #fff; padding: 7px 14px; border-radius: 99px; font-size: 13px; font-weight: 600; color: var(--muted); }
.chips button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 22px 16px; }
@media (min-width: 700px) { .shop-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } }
.pc { display: flex; flex-direction: column; gap: 8px; border: 0; background: none; padding: 0; text-align: left; }
.pc-img { position: relative; aspect-ratio: 3/4; border-radius: 12px; overflow: hidden; background: #e8e4df; }
.pc-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform .4s ease; }
.pc:hover .pc-img img { transform: scale(1.03); }
.pc-st { position: absolute; left: 8px; top: 8px; background: #fff3cd; color: #7a5a00; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 99px; }
.pc-name { font-weight: 700; font-size: 14px; line-height: 1.25; }
.pc-ref { font-size: 12px; color: var(--muted); }
.pc-price { font-weight: 800; font-size: 15px; }
.pc-price small { font-weight: 600; color: var(--muted); font-size: 11px; margin-left: 4px; text-transform: uppercase; letter-spacing: .05em; }
.pc-dots { display: flex; gap: 4px; }
.pc-dots i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.shop-empty { text-align: center; color: var(--muted); padding: 50px 0; }

/* ---------- modais ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; }
.modal-bg { position: absolute; inset: 0; background: rgba(20, 18, 16, .5); animation: fade .18s ease; }
.modal-box { position: relative; background: #fff; border-radius: 18px; max-height: calc(100dvh - 40px); overflow: auto; animation: pop .22s cubic-bezier(.2,.9,.3,1.2); box-shadow: 0 30px 80px rgba(0,0,0,.3); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@keyframes up { from { transform: translateY(100%); } }
.x { position: absolute; top: 10px; right: 10px; z-index: 4; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.x svg { width: 18px; height: 18px; }

.pm { width: min(980px, calc(100vw - 40px)); display: grid; grid-template-columns: 1.1fr 1fr; overflow: hidden; padding: 0; }
.pm-gal { position: relative; background: #eeebe7; min-height: 0; }
.pm-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; height: 100%; max-height: calc(100dvh - 40px); aspect-ratio: 3/4; }
.pm-track::-webkit-scrollbar { display: none; }
.pm-track img { flex: none; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: center; }
.pm-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.pm-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.55); box-shadow: 0 0 2px rgba(0,0,0,.3); }
.pm-dots i.on { background: #fff; width: 18px; border-radius: 4px; }
.pm-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); display: grid; place-items: center; }
.pm-arrow svg { width: 18px; height: 18px; }
.pm-prev { left: 10px; } .pm-next { right: 10px; }
.pm-info { padding: 28px 28px 24px; display: flex; flex-direction: column; gap: 14px; overflow: auto; max-height: calc(100dvh - 40px); }
.pm-cat { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.pm-name { font-size: 26px; line-height: 1.1; margin: -6px 0 0; font-weight: 800; }
.pm-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); }
.pm-meta b { color: var(--ink); font-weight: 600; }
.pm-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pm-price strong { font-size: 28px; font-weight: 800; }
.pm-price span { color: var(--muted); font-size: 13px; }
.pm-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); background: #fff; padding: 7px 12px; border-radius: 99px; font-size: 13px; font-weight: 600; }
.opt i { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }
.opt.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; }
.qty button { border: 0; background: none; width: 40px; height: 42px; font-size: 20px; }
.qty input { width: 44px; border: 0; text-align: center; font: 700 16px system-ui; outline: none; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.pm-buy { display: flex; gap: 10px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; background: var(--ink); color: #fff; padding: 13px 20px; border-radius: 12px; font-weight: 700; font-size: 15px; text-decoration: none; }
.btn svg { width: 18px; height: 18px; }
.btn-green { background: var(--green); }
.btn-ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-link { background: none; color: var(--muted); font-weight: 600; }
.btn:disabled { opacity: .5; cursor: default; }
.pm-buy .btn { flex: 1; }
.pm-desc { font-size: 14px; color: #3c3a37; white-space: pre-line; border-top: 1px solid var(--line); padding-top: 14px; }
.pm-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pm-links a { font-size: 13px; font-weight: 600; color: var(--ink); display: inline-flex; gap: 6px; align-items: center; text-decoration: none; padding: 8px 12px; border-radius: 10px; background: #f3f1ee; }
.pm-links svg { width: 16px; height: 16px; }

.drawer { width: min(460px, 100vw); height: 100dvh; max-height: none; margin-left: auto; border-radius: 0; display: flex; flex-direction: column; animation: slide .25s ease; }
.modal[data-modal="cart"] { justify-content: flex-end; }
@keyframes slide { from { transform: translateX(100%); } }
.dr-h { padding: 20px 22px 14px; border-bottom: 1px solid var(--line); }
.dr-h h3 { margin: 0; font-size: 20px; }
.dr-h p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.dr-items { flex: 1; overflow: auto; padding: 8px 22px; }
.ci { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.ci img { width: 64px; height: 84px; object-fit: cover; border-radius: 8px; background: #eee; }
.ci b { display: block; font-size: 14px; }
.ci small { color: var(--muted); font-size: 12px; display: block; }
.ci .qty button { width: 30px; height: 32px; font-size: 16px; }
.ci .qty input { width: 30px; font-size: 14px; }
.ci-rm { border: 0; background: none; color: var(--muted); font-size: 12px; text-decoration: underline; padding: 4px 0 0; }
.dr-empty { text-align: center; color: var(--muted); padding: 60px 10px; }
.dr-f { padding: 16px 22px calc(16px + var(--safe-b)); border-top: 1px solid var(--line); display: grid; gap: 12px; }
.dr-total { display: flex; justify-content: space-between; font-size: 16px; }
.dr-total b { font-size: 20px; }
.dr-f textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 14px; resize: none; }
.dr-note { font-size: 12px; color: var(--muted); margin: 0; }

.dl { width: min(420px, calc(100vw - 32px)); padding: 26px; display: grid; gap: 10px; text-align: center; }
.dl h3 { margin: 0; font-size: 20px; }
.dl p { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.dl-hint { color: var(--ink) !important; font-weight: 600; }

.toast { position: fixed; left: 50%; bottom: calc(24px + var(--safe-b)); transform: translateX(-50%); z-index: 60; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.25); animation: pop .2s ease; }

/* ---------- celular ---------- */
@media (max-width: 760px) {
  :root { --bar-h: 54px; }
  /* sem backdrop-filter aqui: ele faria a barra de ações "fixed" ficar presa dentro da barra */
  .bar { gap: 8px; padding: 0 10px; background: #faf9f7; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .bar-title { display: none; }
  .bar-brand { flex: 1; }
  .bar-actions { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; justify-content: space-around; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + var(--safe-b)); }
  .ib { flex-direction: column; gap: 2px; font-size: 11px; padding: 6px 12px; }
  .ib-cart i { left: 50%; margin-left: 4px; }
  .view-pages { padding: 10px 0 100px; }
  .pages { width: 100%; gap: 10px; }
  .page { border-radius: 0; box-shadow: none; }
  .view-shop { padding: 8px 12px 100px; }
  .pm { grid-template-columns: 1fr; width: 100vw; max-height: 94dvh; border-radius: 18px 18px 0 0; align-self: flex-end; animation: up .28s cubic-bezier(.2,.9,.3,1); overflow: auto; }
  .modal[data-modal="product"] { align-items: flex-end; }
  .pm-track { height: 62dvh; max-height: none; aspect-ratio: auto; width: 100%; }
  .pm-info { max-height: none; overflow: visible; padding: 20px 18px calc(20px + var(--safe-b)); }
  .pm-name { font-size: 22px; }
  .pm-arrow { display: none; }
  .toast { bottom: calc(84px + var(--safe-b)); }
}

/* ---------- gate ---------- */
.gate-body { min-height: 100dvh; overflow: hidden; background: #111; }
.gate-bg { position: fixed; inset: -40px; filter: blur(22px) brightness(.55); transform: scale(1.08); display: grid; place-items: center; }
.gate-bg .sheet { width: max(110vw, 110vh * .7071); }
.gate { position: relative; z-index: 2; min-height: 100dvh; display: grid; place-items: center; padding: 20px 16px; }
.gate-card { width: min(420px, 100%); background: #fff; border-radius: 22px; padding: 30px 26px 22px; text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,.4); animation: pop .35s ease; }
.gate-brand img { max-height: 46px; max-width: 180px; object-fit: contain; }
.gate-brand b { font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.gate-badge { display: inline-block; margin-top: 16px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; background: #f2efe9; padding: 6px 12px; border-radius: 99px; color: #6d6a66; }
.gate-card h1 { margin: 12px 0 6px; font-size: 24px; line-height: 1.15; }
.gate-lead { margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.gate-form { display: grid; gap: 12px; text-align: left; }
.gate-form label span { display: block; font-size: 12px; font-weight: 700; margin-bottom: 5px; color: #4b4845; }
.gate-form input { width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; font-size: 16px; outline: none; }
.gate-form input:focus { border-color: var(--ink); }
.gate-form button { margin-top: 6px; border: 0; background: var(--ink); color: #fff; padding: 15px; border-radius: 12px; font-weight: 700; font-size: 16px; }
.gate-form button:disabled { opacity: .6; }
.gate-err { margin: 0; color: #b42318; font-size: 13px; font-weight: 600; }
.gate-legal { margin: 16px 0 0; font-size: 11.5px; color: #8a8682; }

/* Selo "Feito com Catálogo Pro" (planos sem remover_selo). Discreto, abaixo do conteúdo, mas legível (contraste AA). */
.selo { text-align: center; padding: 6px 16px calc(22px + var(--safe-b)); margin-top: -96px; font-size: 12px; color: var(--muted); position: relative; }
.selo a { color: inherit; text-decoration: none; letter-spacing: .04em; display: inline-block; padding: 6px 10px; border-radius: 99px; }
.selo a:hover { background: rgba(0,0,0,.05); color: var(--ink); }
.selo a b { font-weight: 700; color: #4b4845; }
@media (max-width: 760px) { .selo { margin-top: -84px; padding-bottom: calc(76px + var(--safe-b)); } }

/* Aviso de cookies (LGPD): cartão pequeno no canto, acima da barra de ações no celular. */
.lgpd { position: fixed; z-index: 45; left: 16px; bottom: calc(16px + var(--safe-b)); max-width: 380px; display: flex; align-items: center; gap: 12px; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 14px; padding: 12px 12px 12px 16px; box-shadow: 0 12px 40px rgba(0,0,0,.16); font-size: 13px; line-height: 1.4; animation: pop .25s ease; }
.lgpd p { margin: 0; flex: 1; }
.lgpd button { flex: none; border: 0; background: var(--ink); color: #fff; padding: 9px 14px; border-radius: 10px; font-weight: 700; font-size: 13px; }
.gate-body .lgpd { left: 50%; transform: translateX(-50%); width: calc(100% - 32px); }
@media (max-width: 760px) { .lgpd { left: 10px; right: 10px; max-width: none; bottom: calc(70px + var(--safe-b)); } .gate-body .lgpd { bottom: calc(12px + var(--safe-b)); transform: none; left: 10px; width: auto; } }
