/* ConectaLocal — estilos do cartão público (também usados na prévia do admin)
   Visual "Soft": marrom quente, champanhe e rosé, títulos em serifa (Cormorant Garamond) e texto em Geist.
   A cor escolhida para cada loja tinge tudo via variáveis (--accent, --ink, --cta-*), definidas pelo render.js. */
/* As fontes locais ficam em /fonts/fonts.css (link no <head> de cada página). */

:root {
  --cl-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, 'Times New Roman', serif;
  --cl-sans: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --cl-ease: cubic-bezier(.23, 1, .32, 1);
  --cl-tap: 44px;
}
*, *::before, *::after { box-sizing: border-box; }
html.cl-noscroll, html.cl-noscroll body { overflow: hidden; }

/* Valores padrão (rosé) — usados nas telas de mensagem e no carregamento */
.cl-body {
  --bg: #1a1512; --surface: #241d18; --surface2: #2b2220; --text: #f6e9d2; --muted: #aba191;
  --accent: #cdb68a; --accent2: #f6e9d2; --blush: #e8c9c1; --on-accent: #1a1512; --ink: #cdb68a;
  --cta-a: #f6e9d2; --cta-b: #e9d6b2; --cta-c: #cdb68a;
  --accent-rgb: 205,182,138; --ink-rgb: 205,182,138; --bg-rgb: 26,21,18;
  margin: 0; background: #1a1512; color: #f6e9d2; font-family: var(--cl-sans); font-size: 15px; line-height: 1.4;
  -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; min-height: 100vh;
}
.cl-body #app { position: relative; max-width: 480px; margin: 0 auto; min-height: 100vh; }

/* ---------- Cartão ---------- */
.cl-card {
  --line: rgba(var(--ink-rgb), .35);
  position: relative; isolation: isolate; min-height: 100vh; color: var(--text); font-family: var(--cl-sans);
  overflow: hidden; line-height: 1.4;
}
.cl-card a { color: inherit; text-decoration: none; }
.cl-card button { font: inherit; color: inherit; }
.cl-card svg { display: block; flex: none; }
.cl-card :focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* Fundo animado: degradê de reserva em CSS + canvas WebGL por cima (quando disponível) */
.cl-wall {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(110% 60% at 12% 0%, rgba(var(--accent-rgb), .30), transparent 62%),
    radial-gradient(80% 50% at 100% 18%, rgba(var(--ink-rgb), .16), transparent 60%),
    radial-gradient(90% 60% at 50% 100%, rgba(var(--accent-rgb), .10), transparent 70%),
    var(--bg);
}
.cl-wall-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cl-is-preview { min-height: 100%; }
.cl-is-preview .cl-wall { position: absolute; }
@media (min-width: 481px) {
  /* no computador o fundo ocupa a tela toda e a coluna do cartão ganha um véu discreto */
  .cl-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(var(--bg-rgb), .38); box-shadow: 0 0 80px rgba(0,0,0,.45); }
  .cl-is-preview::before { display: none; }
}

/* Barra superior (pílulas de vidro) */
.cl-top { position: absolute; z-index: 5; inset: 0 0 auto 0; display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: max(14px, env(safe-area-inset-top)) 16px 0; }
.cl-glass { display: inline-flex; align-items: center; gap: 8px; min-height: var(--cl-tap); padding: 0 16px 0 10px; border-radius: 100px;
  background: rgba(var(--bg-rgb), .55); border: 1px solid var(--line); color: var(--text) !important;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); font: 500 12px/1.3 var(--cl-sans); letter-spacing: .08em; cursor: pointer; white-space: nowrap; }
.cl-brand b { font-weight: 600; letter-spacing: .14em; }
.cl-brand .cl-brand-mark { width: 20px; height: 24px; }
.cl-share-btn { padding: 0 16px; font-size: 14px; letter-spacing: 0; }
.cl-share-btn svg { width: 16px; height: 16px; }
.cl-glass:active { transform: scale(.97); }

/* Capa */
.cl-hero { position: relative; height: 55vh; min-height: 340px; max-height: 520px; }
.cl-hero-img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; display: block;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 58%, rgba(0,0,0,.55) 80%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 58%, rgba(0,0,0,.55) 80%, transparent 100%); }
.cl-hero-fade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(var(--bg-rgb), .5) 0%, rgba(var(--bg-rgb), 0) 26%); }
.cl-hero-empty { height: 38vh; min-height: 270px; max-height: 380px; }
.cl-hero-empty .cl-hero-fade { background: linear-gradient(180deg, rgba(var(--bg-rgb), .25) 0%, rgba(var(--bg-rgb), 0) 40%); }
.cl-is-preview .cl-hero { height: 360px; min-height: 0; }
.cl-is-preview .cl-hero-empty { height: 280px; }

.cl-avatar { position: absolute; left: 20px; bottom: -52px; z-index: 2; width: 124px; height: 124px; }
.cl-logo { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: var(--surface2); display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--text); box-shadow: 0 0 0 5px var(--bg), 0 0 0 6px var(--ink), 0 14px 34px rgba(0,0,0,.5); }
.cl-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cl-initials { font: 600 46px/1 var(--cl-serif); color: var(--ink); }
.cl-verified { position: absolute; right: 4px; bottom: 6px; width: 28px; height: 28px; }

/* Corpo */
.cl-main { position: relative; z-index: 1; padding: 68px 20px 28px; display: grid; gap: 22px; }

/* Identidade */
.cl-card .cl-name { margin: 0; font: 600 38px/1.04 var(--cl-serif); letter-spacing: -.005em; color: var(--text); overflow-wrap: anywhere; text-wrap: balance; }
.cl-nowrap { white-space: nowrap; }
.cl-card .cl-seal { display: inline-block; width: 26px; height: 26px; margin-left: 8px; vertical-align: -3px; }
.cl-slogan { margin: 8px 0 12px; color: rgba(246, 233, 210, .72); color: color-mix(in srgb, var(--text) 72%, transparent); font: italic 500 19px/1.3 var(--cl-serif); }
.cl-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 5px 12px; border-radius: 100px; border: 1px solid var(--line);
  color: var(--ink); background: var(--surface); font: 500 12px/1.3 var(--cl-sans); letter-spacing: .04em; }
.cl-chip svg { width: 12px; height: 12px; stroke-width: 2; }
.cl-chip span { min-width: 0; }
.cl-id > .cl-chip:first-child { margin-top: 0; }
.cl-rating { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; font: 400 14px/1.3 var(--cl-sans); color: var(--ink); letter-spacing: .02em; }
.cl-rating svg { width: 14px; height: 14px; }

/* Botões de contato */
.cl-actions { display: grid; gap: 10px; grid-template-columns: repeat(4, 1fr); }
.cl-actions.cl-n1 { grid-template-columns: 1fr; } .cl-actions.cl-n2 { grid-template-columns: repeat(2, 1fr); } .cl-actions.cl-n3 { grid-template-columns: repeat(3, 1fr); }
.cl-action { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 4px 12px; border-radius: 16px; text-align: center;
  background: var(--surface); border: 1px solid var(--line); color: var(--text) !important; font: 400 12px/1.25 var(--cl-sans);
  transition: transform .16s var(--cl-ease), border-color .16s var(--cl-ease); }
.cl-action:hover { border-color: var(--ink); transform: translateY(-2px); }
.cl-action:active { transform: scale(.97); }
.cl-action-ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--ink);
  background: rgba(246, 233, 210, .07); border: 1px solid var(--line); }
.cl-action-ic svg { width: 22px; height: 22px; }

/* Botão principal */
.cl-cta { text-wrap: balance; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 18px 10px 20px; border-radius: 100px;
  background-color: var(--cta-b); background-image: linear-gradient(100deg, var(--cta-a) 0%, var(--cta-b) 50%, var(--cta-c) 100%);
  color: var(--on-accent) !important; font: 600 16px/1.25 var(--cl-sans);
  box-shadow: 0 10px 30px rgba(var(--accent-rgb), .25), inset 0 1px 0 rgba(255,255,255,.55); transition: transform .16s var(--cl-ease); }
.cl-cta svg { width: 24px; height: 24px; }
.cl-cta svg:last-child { width: 18px; height: 18px; }
.cl-cta:hover { transform: translateY(-1px); }
.cl-cta:active { transform: translateY(1px); }
.cl-grow { flex: 1; min-width: 0; }

/* Caixas (galeria, serviços, informações, avaliação) */
.cl-box { background: var(--surface); background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--line);
  border-radius: 24px; padding: 18px; box-shadow: 0 10px 30px rgba(0,0,0,.25); min-width: 0; }
.cl-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.cl-card .cl-sec-head h2 { margin: 0; display: flex; align-items: center; gap: 8px; font: 600 24px/1.1 var(--cl-serif); color: var(--text); }
.cl-sec-head h2 svg { width: 22px; height: 22px; color: var(--ink); }
.cl-link-btn { background: none; border: 0; padding: 0; min-height: var(--cl-tap); display: inline-flex; align-items: center; color: var(--ink) !important;
  font: 500 14px/1.3 var(--cl-sans); cursor: pointer; white-space: nowrap; }

/* Galeria */
.cl-gallery { display: grid; gap: 8px; grid-template-columns: repeat(4, 1fr); }
.cl-gallery.cl-g1 { grid-template-columns: 1fr; }
.cl-gallery.cl-g2 { grid-template-columns: repeat(2, 1fr); }
.cl-gallery.cl-g3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 400px) { .cl-gallery.cl-g4 { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.cl-is-preview .cl-gallery.cl-g4 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
.cl-tile { position: relative; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; aspect-ratio: 1 / 1; background: var(--surface2); cursor: zoom-in; }
.cl-g1 .cl-tile { aspect-ratio: 4 / 3; }
.cl-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--cl-ease); }
.cl-tile:hover img { transform: scale(1.05); }
.cl-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(14, 11, 9, .55); color: #f6e9d2; font: 500 22px/1 var(--cl-sans); }
.cl-insta { margin: 10px 0 0; text-align: center; }
.cl-insta a { color: var(--ink) !important; font: 400 14px/1.3 var(--cl-sans); min-height: var(--cl-tap); display: inline-flex; align-items: center; text-decoration: underline !important; text-underline-offset: 3px; }

/* Serviços */
.cl-pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cl-pill { padding: 8px 14px; border-radius: 100px; border: 1px solid var(--line); font: 400 14px/1.3 var(--cl-sans); color: var(--text); background: var(--surface2); max-width: 100%; overflow-wrap: anywhere; }
.cl-pill::before { content: '•'; color: var(--blush); margin-right: 8px; }

/* Catálogo (v3) */
.cl-cat-nav { display: flex; gap: 8px; overflow-x: auto; margin: -4px -18px 12px; padding: 2px 18px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.cl-cat-nav::-webkit-scrollbar { display: none; }
.cl-cat-chip { flex: none; min-height: 36px; padding: 6px 14px; border-radius: 100px; border: 1px solid var(--line); background: var(--surface2); color: var(--text) !important;
  font: 500 13px/1.2 var(--cl-sans); cursor: pointer; white-space: nowrap; }
.cl-cat-chip:active { transform: translateY(1px); }
.cl-cat-group { scroll-margin-top: 16px; }
.cl-cat-group + .cl-cat-group { margin-top: 18px; }
.cl-card .cl-cat-title { margin: 0 0 10px; font: 600 13px/1.2 var(--cl-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.cl-cat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cl-cat-item { display: flex; gap: 12px; align-items: stretch; padding: 10px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface2); min-width: 0; }
.cl-cat-photo { flex: none; width: 92px; height: 92px; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--surface); cursor: zoom-in; align-self: center; }
.cl-cat-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.cl-cat-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cl-card .cl-cat-name { margin: 0; font: 500 15px/1.25 var(--cl-sans); color: var(--text); overflow-wrap: anywhere; }
.cl-card .cl-cat-obs { margin: 0; font: 400 12.5px/1.35 var(--cl-sans); color: var(--muted); overflow-wrap: anywhere; }
.cl-cat-foot { margin-top: auto; padding-top: 6px; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.cl-card .cl-cat-price { margin: 0; display: flex; flex-direction: column; line-height: 1.1; }
.cl-cat-price small { font: 400 11px/1.2 var(--cl-sans); color: var(--muted); }
.cl-cat-price b { font: 600 20px/1.1 var(--cl-serif); color: var(--ink); white-space: nowrap; }
.cl-cat-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 100px;
  background: linear-gradient(135deg, var(--cta-a), var(--cta-b) 55%, var(--cta-c)); color: var(--on-accent) !important; font: 600 13px/1 var(--cl-sans); white-space: nowrap; }
.cl-cat-btn svg { width: 16px; height: 16px; }
.cl-cat-btn:active { transform: translateY(1px); }
.cl-cat-note { margin: 14px 0 0; text-align: center; font: 400 12px/1.4 var(--cl-sans); color: var(--muted); }
@media (max-width: 359px) { .cl-cat-photo { width: 76px; height: 76px; } .cl-cat-btn span { display: none; } .cl-cat-btn { padding: 0 11px; } }

/* Informações */
.cl-info { display: grid; gap: 18px; }
.cl-info-row { display: flex; gap: 12px; align-items: flex-start; }
.cl-info-ic { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); border: 1px solid var(--line); }
.cl-info-ic svg { width: 20px; height: 20px; }
.cl-info-body { min-width: 0; flex: 1; }
.cl-info-body small { display: block; font: 400 12px/1.3 var(--cl-sans); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin: 2px 0 3px; }
.cl-info-body p { margin: 0; font: 400 15px/1.4 var(--cl-sans); color: var(--text); overflow-wrap: anywhere; }
.cl-hours { list-style: none; margin: 0; padding: 0; font: 400 15px/1.45 var(--cl-sans); color: var(--text); }
.cl-text-link { color: var(--ink) !important; text-decoration: underline !important; text-underline-offset: 3px; }
.cl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--cl-tap); padding: 0 18px; margin-top: 10px; border-radius: 100px;
  border: 1px solid var(--ink); color: var(--text) !important; background: transparent; font: 500 14px/1.3 var(--cl-sans); white-space: nowrap; transition: background .16s var(--cl-ease); }
.cl-btn:hover { background: rgba(var(--ink-rgb), .12); }
.cl-btn svg { width: 16px; height: 16px; }
.cl-review .cl-btn svg { width: 18px; height: 18px; }

/* Avaliação */
.cl-review { text-align: center; display: grid; justify-items: center; gap: 6px; padding: 24px 18px; }
.cl-card .cl-review h2 { margin: 6px 0 0; font: 600 26px/1.1 var(--cl-serif); color: var(--text); }
.cl-review p { margin: 0 0 4px; color: var(--muted); font: 400 15px/1.4 var(--cl-sans); }
.cl-star { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(var(--ink-rgb), .12); color: var(--ink); border: 1px solid var(--line); }
.cl-star svg { width: 24px; height: 24px; }

/* Rodapé */
.cl-footer { position: relative; z-index: 1; text-align: center; padding: 8px 20px max(36px, env(safe-area-inset-bottom)); display: grid; gap: 8px; justify-items: center; }
.cl-foot-mark { display: flex; align-items: center; gap: 12px; width: 100%; color: var(--ink); }
.cl-foot-mark::before, .cl-foot-mark::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--ink)); }
.cl-foot-mark::after { background: linear-gradient(90deg, var(--ink), transparent); }
.cl-foot-mark span { display: inline-flex; align-items: center; gap: 8px; font: 600 12px/1.3 var(--cl-sans); letter-spacing: .16em; color: var(--text); }
.cl-foot-mark .cl-brand-mark { width: 18px; height: 22px; }
.cl-footer p { margin: 0; color: var(--muted); font: italic 500 17px/1.3 var(--cl-serif); }

/* Animação de entrada */
@keyframes clRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes clFade { from { opacity: 0; } to { opacity: 1; } }
.cl-in { animation: clRise .7s var(--cl-ease) both; }
.cl-d1 { animation-delay: 80ms; } .cl-d2 { animation-delay: 160ms; } .cl-d3 { animation-delay: 240ms; }
.cl-d4 { animation-delay: 320ms; } .cl-d5 { animation-delay: 400ms; } .cl-d6 { animation-delay: 480ms; }

/* Toast */
.cl-toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 10000;
  max-width: calc(100% - 32px); padding: 12px 20px; border-radius: 100px; background: #f6e9d2; color: #1a1512; font: 500 14px/1.35 var(--cl-sans);
  box-shadow: 0 10px 30px rgba(0,0,0,.4); transition: opacity .2s var(--cl-ease), transform .2s var(--cl-ease); text-align: center; }
.cl-toast.cl-show { opacity: 1; transform: translate(-50%, 0); }

/* Lightbox */
.cl-lightbox { position: fixed; inset: 0; z-index: 9999; background: rgba(14, 11, 9, .96); display: none; align-items: center; justify-content: center; touch-action: pan-y; }
.cl-lightbox.cl-open { display: flex; animation: clFade .24s var(--cl-ease); }
.cl-lb-stage { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 64px 12px; }
.cl-lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.6); user-select: none; -webkit-user-drag: none; }
.cl-lb-close, .cl-lb-nav { position: absolute; z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(205, 182, 138, .5);
  background: rgba(36, 29, 24, .8); color: #f6e9d2; display: grid; place-items: center; cursor: pointer; padding: 0; }
.cl-lb-close svg, .cl-lb-nav svg { width: 20px; height: 20px; }
.cl-lb-close { top: max(16px, env(safe-area-inset-top)); right: 16px; }
.cl-lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.cl-lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.cl-lightbox.cl-single .cl-lb-nav { display: none; }
.cl-lb-count { position: absolute; bottom: max(24px, env(safe-area-inset-bottom)); left: 0; right: 0; text-align: center; color: rgba(246, 233, 210, .7); font: 400 14px var(--cl-sans); pointer-events: none; }

/* Esqueleto de carregamento */
.cl-skel { min-height: 100vh; background: radial-gradient(110% 60% at 12% 0%, rgba(205,182,138,.22), transparent 62%), #1a1512; position: relative; }
.cl-skel .sk { background: linear-gradient(90deg, #241d18 0%, #2f2620 50%, #241d18 100%); background-size: 200% 100%; animation: clShimmer 1.3s infinite linear; border-radius: 12px; }
.cl-skel .sk-hero { height: 55vh; min-height: 340px; max-height: 520px; border-radius: 0; background: transparent; animation: none; }
.cl-skel .sk-logo { width: 124px; height: 124px; border-radius: 50%; margin: -72px 0 22px 20px; position: relative; box-shadow: 0 0 0 5px #1a1512, 0 0 0 6px rgba(205,182,138,.5); }
.cl-skel .sk-line { height: 18px; margin: 12px 20px; }
.cl-skel .sk-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 26px 20px 22px; }
.cl-skel .sk-dot { height: 92px; border-radius: 16px; }
.cl-skel .sk-btn { height: 60px; margin: 0 20px; border-radius: 100px; }
@keyframes clShimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* Página não encontrada / erro / mensagens (loja.html e q.html) */
.cl-empty { position: relative; isolation: isolate; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 40px 26px; color: var(--text); --line: rgba(var(--ink-rgb), .35); }
.cl-empty .cl-brand-mark { width: 54px; height: 64px; margin-bottom: 18px; }
.cl-empty h1 { font: 600 34px/1.08 var(--cl-serif); margin: 0 0 10px; }
.cl-empty p { color: var(--muted); margin: 0 0 24px; max-width: 330px; font: 400 15px/1.5 var(--cl-sans); }
.cl-empty a { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 100px;
  background-image: linear-gradient(100deg, var(--cta-a), var(--cta-b) 50%, var(--cta-c)); color: var(--on-accent); font: 600 15px/1.2 var(--cl-sans); text-decoration: none;
  box-shadow: 0 10px 30px rgba(var(--accent-rgb), .25), inset 0 1px 0 rgba(255,255,255,.55); }
.cl-empty a + a { margin-top: 12px; background: transparent; border: 1px solid var(--ink); color: var(--text); box-shadow: none; }
.cl-empty code { background: #2b2220; padding: 2px 6px; border-radius: 6px; color: var(--ink); }
.cl-empty .cl-code { font: 500 13px/1 var(--cl-sans); letter-spacing: .16em; color: var(--ink); border: 1px solid var(--line); border-radius: 100px; padding: 8px 14px; margin: -4px 0 16px; }
.cl-empty-foot { position: absolute; left: 0; right: 0; bottom: max(22px, env(safe-area-inset-bottom)); font: italic 500 16px/1.3 var(--cl-serif); color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .cl-in, .cl-lightbox.cl-open { animation: none; }
  .cl-skel .sk { animation: none; }
  .cl-action, .cl-cta, .cl-tile img, .cl-btn { transition: none; }
}

/* Telas bem estreitas (ex.: 320px) */
@media (max-width: 359px) {
  .cl-top { padding-left: 12px; padding-right: 12px; }
  .cl-share-btn { padding: 0 14px; }
  .cl-share-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cl-main { padding-left: 16px; padding-right: 16px; }
  .cl-actions { gap: 8px; }
  .cl-action { font-size: 11px; }
}

/* =====================================================================
   v4 — Agenda online (folha que abre por cima da página da loja)
   Usa as mesmas variáveis de cor do cartão (tema da loja).
   ===================================================================== */
html.ag-lock, html.ag-lock body { overflow: hidden; height: 100%; }
.ag-ov { position: fixed; inset: 0; z-index: 100; background: rgba(10, 8, 6, .66); display: flex; align-items: flex-end; justify-content: center;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); font-family: var(--cl-sans); }
.ag-sh { background: var(--bg); color: var(--text); width: 100%; max-width: 480px; height: 92vh; height: 92dvh; border-radius: 22px 22px 0 0;
  border: 1px solid rgba(var(--accent-rgb), .2); display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 -10px 40px rgba(0,0,0,.45); }
.ag-hd { display: flex; align-items: center; gap: 10px; padding: 14px 16px 10px; }
.ag-hd h3 { flex: 1; margin: 0; font: 600 23px/1.1 var(--cl-serif); color: var(--text); }
.ag-ib { width: 38px; height: 38px; flex: none; border-radius: 50%; border: 1px solid rgba(var(--accent-rgb), .25); background: var(--surface); color: var(--text);
  font-size: 20px; line-height: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.ag-steps { display: flex; gap: 6px; padding: 0 16px 12px; }
.ag-steps i { flex: 1; height: 3px; border-radius: 3px; background: var(--surface2); }
.ag-steps i.on { background: var(--accent); }
.ag-bd { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 4px 16px 20px; }
.ag-ft { padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(var(--accent-rgb), .14); background: var(--bg); }
.ag-btn { display: block; width: 100%; box-sizing: border-box; border: 0; border-radius: 14px; padding: 15px; font: 600 15.5px var(--cl-sans); cursor: pointer;
  background: linear-gradient(180deg, var(--cta-a), var(--cta-b) 55%, var(--cta-c)); color: var(--on-accent); text-align: center; text-decoration: none; }
.ag-btn[disabled], .ag-btn.dis { opacity: .45; pointer-events: none; }
.ag-btn.sec { background: var(--surface); color: var(--text); border: 1px solid rgba(var(--accent-rgb), .3); margin-top: 10px; font-weight: 500; font-size: 14.5px; }
.ag-file { position: relative; overflow: hidden; }
.ag-file input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; font-size: 0; }
.ag-in { width: 100%; box-sizing: border-box; background: var(--surface); border: 1px solid rgba(var(--accent-rgb), .22); color: var(--text); border-radius: 12px;
  padding: 13px 14px; font: 16px var(--cl-sans); margin: 6px 0 12px; outline: none; -webkit-appearance: none; appearance: none; }
.ag-in:focus { border-color: var(--accent); }
.ag-lb { display: block; font-size: 13px; color: var(--muted); }
.ag-cat { font: 600 12px var(--cl-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin: 16px 0 6px; }
.ag-it { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--surface); border: 1px solid rgba(var(--accent-rgb), .14);
  border-radius: 14px; padding: 13px 14px; margin: 0 0 8px; color: var(--text); font: 15px var(--cl-sans); cursor: pointer; }
.ag-it.sel { border-color: var(--accent); background: var(--surface2); box-shadow: inset 0 0 0 1px var(--accent); }
.ag-it b { font-weight: 600; }
.ag-it small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.ag-it .pr { margin-left: auto; color: var(--ink); font-weight: 600; white-space: nowrap; text-align: right; }
.ag-it .pr small { font-weight: 400; font-size: 11px; margin: 0; }
.ag-av { width: 40px; height: 40px; border-radius: 50%; background: var(--blush); color: var(--bg); display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
.ag-days { display: flex; gap: 8px; overflow-x: auto; padding: 4px 16px 12px; margin: 0 -16px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.ag-days::-webkit-scrollbar { display: none; }
.ag-day { flex: none; width: 58px; border-radius: 14px; background: var(--surface); border: 1px solid rgba(var(--accent-rgb), .14); color: var(--text); padding: 9px 0;
  text-align: center; font: 13px var(--cl-sans); cursor: pointer; }
.ag-day b { display: block; font-size: 19px; margin: 2px 0; }
.ag-day small { color: var(--muted); font-size: 11px; }
.ag-day.sel { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.ag-day.sel small { color: var(--on-accent); }
.ag-day[disabled] { opacity: .35; cursor: default; }
.ag-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ag-sl { border-radius: 12px; padding: 12px 0; background: var(--surface); border: 1px solid rgba(var(--accent-rgb), .18); color: var(--text); font: 600 14.5px var(--cl-sans); cursor: pointer; }
.ag-sl.sel { background: var(--accent); color: var(--on-accent); }
.ag-sl[disabled] { opacity: .28; text-decoration: line-through; cursor: default; }
.ag-card { background: var(--surface); border: 1px solid rgba(var(--accent-rgb), .18); border-radius: 16px; padding: 12px 16px; margin: 4px 0 14px; }
.ag-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 14.5px; }
.ag-row span { color: var(--muted); flex: none; }
.ag-row b { text-align: right; font-weight: 600; }
.ag-big { font: 600 34px/1.1 var(--cl-serif); color: var(--ink); margin: 2px 0 8px; }
.ag-how { margin: 0 0 14px; padding-left: 20px; color: var(--text); font-size: 14px; line-height: 1.5; }
.ag-pix { display: flex; gap: 10px; align-items: stretch; }
.ag-pix code { flex: 1; min-width: 0; font: 13.5px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text); word-break: break-all; background: var(--surface);
  border: 1px solid rgba(var(--accent-rgb), .18); border-radius: 10px; padding: 11px 12px; }
.ag-copy { flex: none; border-radius: 10px; padding: 0 16px; background: var(--accent); color: var(--on-accent); border: 0; font: 600 14px var(--cl-sans); cursor: pointer; }
.ag-note { font-size: 13px; color: var(--muted); line-height: 1.45; margin: 0 0 10px; }
.ag-note b { color: var(--text); }
.ag-center { text-align: center; }
.ag-alert { font-size: 13.5px; line-height: 1.45; color: var(--text); background: rgba(var(--accent-rgb), .1); border: 1px solid rgba(var(--accent-rgb), .3); border-radius: 12px; padding: 10px 12px; margin: 10px 0; }
.ag-linkbtn { background: none; border: 0; padding: 0; color: var(--ink); font: inherit; text-decoration: underline; cursor: pointer; }
.ag-ocr { margin-top: 14px; }
.ag-bar { height: 6px; border-radius: 6px; background: var(--surface2); overflow: hidden; margin-bottom: 8px; }
.ag-bar i { display: block; height: 100%; background: var(--accent); transition: width .3s; }
.ag-checks { list-style: none; margin: 14px 0 8px; padding: 0; font-size: 14px; }
.ag-checks li { display: flex; gap: 8px; align-items: baseline; padding: 4px 0; }
.ag-checks li span { width: 18px; flex: none; font-weight: 700; }
.ag-checks li.ok span { color: #7fae86; }
.ag-checks li.bad span { color: var(--blush); }
.ag-ok { text-align: center; padding: 26px 6px 10px; }
.ag-ok .c { width: 68px; height: 68px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 34px; display: flex; align-items: center; justify-content: center; margin: 6px auto 16px; }
.ag-ok.wait .c { background: var(--surface2); color: var(--ink); border: 1px solid rgba(var(--accent-rgb), .4); }
.ag-ok h4 { font: 600 28px/1.1 var(--cl-serif); margin: 0 0 8px; color: var(--text); }
.ag-reasons { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.5; }
@media (min-width: 520px) { .ag-ov { align-items: center; } .ag-sh { height: min(760px, 92vh); border-radius: 22px; } }
