/* Angelus Artigos Religiosos · "Capela ao amanhecer"
   Cor da marca (Cor.pdf): #C9A1EA. Textos e botões usam tons mais escuros da mesma cor para ter contraste. */
:root {
  --lav: #C9A1EA;        /* cor exata da marca */
  --lav-50: #F8F2FD;
  --lav-100: #F0E4FA;
  --lav-200: #E3CFF5;
  --plum: #5B3A7A;       /* botões e títulos */
  --plum-700: #46295F;
  --violet: #7A55A0;     /* textos secundários */
  --ink: #33263F;
  --muted: #6B5B78;
  --ivory: #FBF8F4;
  --paper: #FFFFFF;
  --gold: #B89A5E;       /* só detalhes */
  --line: #E8DDF0;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Nunito Sans', system-ui, sans-serif;
  --r: 18px;
  --shadow: 0 10px 30px -14px rgba(30, 24, 36, .22);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 400 16px/1.6 var(--sans); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--plum); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--plum-700); line-height: 1.15; margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--plum); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--plum); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.star { color: var(--lav); }

/* barra de demo */
.demo-bar { display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 7px 16px; background: var(--plum-700); color: #F3EAFB; font-size: 13px; text-align: center; }
.demo-bar a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* cabeçalho */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 10px 16px; transition: background .25s, box-shadow .25s; }
.top.is-solid { background: rgba(251, 248, 244, .94); backdrop-filter: blur(8px); box-shadow: 0 1px 0 var(--line); }
.brand img { height: 46px; width: auto; }
.nav { display: none; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--plum); }
.cart-btn { margin-left: auto; position: relative; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); display: grid; place-items: center; }
.cart-btn svg { width: 22px; height: 22px; fill: none; stroke: var(--plum); stroke-width: 1.6; stroke-linejoin: round; }
.cart-count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--plum); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.cart-btn.bump { animation: bump .45s ease; }
@keyframes bump { 40% { transform: scale(1.18); } }
.fly { position: fixed; z-index: 90; pointer-events: none; transition: transform .6s cubic-bezier(.5, 0, .3, 1), opacity .6s; }

/* botões */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; border: 1.5px solid var(--plum); transition: background .2s, color .2s, transform .2s; }
.btn-solid { background: var(--plum); color: #fff; }
.btn-solid:hover { background: var(--plum-700); }
.btn-solid:disabled { background: #A99BB5; border-color: #A99BB5; cursor: not-allowed; }
.btn-line { background: transparent; color: var(--plum); }
.btn-line:hover { background: var(--lav-100); }
.btn-wide { width: 100%; }

/* hero */
.hero { display: grid; gap: 28px; padding: 12px 16px 48px; }
.cart-count[hidden] { display: none; }
.hero-arch { position: relative; border-radius: 999px 999px var(--r) var(--r); background: linear-gradient(180deg, #fff 0%, #fff 55%, var(--lav-50) 100%); box-shadow: inset 0 0 0 1px var(--line); padding: 64px 14px 22px; overflow: hidden; }
.hero-arch::before { content: ""; position: absolute; inset: 12px 12px 0; border: 1px solid rgba(201, 161, 234, .7); border-bottom: 0; border-radius: 999px 999px 0 0; }
.hero-logo { position: relative; width: 100%; max-width: 560px; margin: 0 auto; animation: rise 1.1s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--violet); }
.hero h1 { font-size: clamp(34px, 8.6vw, 58px); }
.hero-lead { color: var(--muted); font-size: 17px; margin: 16px 0 24px; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .btn { flex: 1 1 180px; }
.trust { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--muted); }
.trust li::before { content: "✦"; color: var(--lav); margin-right: 6px; }

/* seções */
section { scroll-margin-top: 80px; }
.sec-title { font-size: clamp(30px, 6.4vw, 44px); }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; margin-bottom: 20px; }
.sec-head p { margin: 0; color: var(--muted); }
.cats, .featured, .catalog, .how, .faq { padding: 40px 16px; }

/* categorias */
.cats .sec-title { margin-bottom: 20px; }
.cat-strip { list-style: none; margin: 0 -16px; padding: 4px 16px 12px; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.cat-strip::-webkit-scrollbar { display: none; }
.cat-strip, .feat-row { scroll-padding-inline: 16px; }
.cat-strip li { flex: 0 0 132px; scroll-snap-align: start; }
.cat { width: 100%; border: 0; background: none; padding: 0; text-align: center; }
.cat-art { display: block; aspect-ratio: 5 / 6; transition: transform .3s; }
.cat:hover .cat-art { transform: translateY(-4px); }
.cat-name { display: block; margin-top: 8px; font-weight: 700; font-size: 14px; line-height: 1.3; color: var(--plum-700); }
.cat-n { display: block; font-size: 12.5px; color: var(--muted); }

/* cartões */
.card a { display: flex; flex-direction: column; text-decoration: none; color: inherit; height: 100%; }
.card-art { position: relative; display: block; aspect-ratio: 5 / 6; background: var(--paper); border-radius: var(--r) var(--r) 10px 10px; border: 1px solid var(--line); padding: 10px 10px 0; overflow: hidden; transition: box-shadow .3s, transform .3s; }
.card a:hover .card-art { box-shadow: var(--shadow); transform: translateY(-3px); }
.card-art svg { width: 100%; height: 100%; }
.card-cat { margin-top: 10px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--violet); }
.card-name { font-family: var(--serif); font-size: 20px; font-weight: 600; line-height: 1.2; color: var(--plum-700); margin-top: 2px; }
.card-price { margin-top: 4px; font-weight: 700; color: var(--ink); }
.is-out .card-art svg { opacity: .55; }
.tag { position: absolute; top: 10px; left: 10px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.feat-row { list-style: none; margin: 0 -16px; padding: 4px 16px 12px; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.card-feat { flex: 0 0 62%; max-width: 240px; scroll-snap-align: start; }

/* catálogo */
.catalog { background: var(--lav-50); }
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 22px; padding: 2px 16px 8px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--lav-200); background: var(--paper); font-weight: 600; font-size: 14px; color: var(--plum-700); }
.chip[aria-pressed="true"] { background: var(--plum); border-color: var(--plum); color: #fff; }
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
.grid-empty { grid-column: 1 / -1; color: var(--muted); }

/* presente */
.gift { margin: 40px 16px; display: grid; gap: 18px; background: var(--plum-700); color: #EFE4F8; border-radius: var(--r); padding: 28px 22px; overflow: hidden; }
.gift h2 { color: #fff; font-size: clamp(30px, 6.4vw, 42px); margin-bottom: 12px; }
.gift .eyebrow { color: var(--lav); }
.gift p { margin: 0 0 22px; }
.gift .btn-solid { background: var(--lav); border-color: var(--lav); color: var(--plum-700); }
.gift .btn-solid:hover { background: #fff; border-color: #fff; }
.gift-art { width: 160px; margin: 0 auto; }

/* como comprar */
.steps { list-style: none; counter-reset: s; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 20px 18px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--lav-100); color: var(--plum); font: 600 20px var(--serif); margin-bottom: 10px; }
.steps h3 { font-size: 23px; }
.steps p { margin: 6px 0 0; color: var(--muted); }

/* dúvidas */
.faq-list { margin-top: 20px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 36px 18px 0; position: relative; font-weight: 700; color: var(--plum-700); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font: 400 28px var(--serif); color: var(--violet); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); max-width: 46em; }

/* rodapé */
.foot { margin-top: 24px; padding: 40px 16px 96px; background: var(--paper); border-top: 1px solid var(--line); display: grid; gap: 28px; }
.foot-brand img { width: 240px; height: auto; }
.foot-col h2 { font: 700 13px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--violet); margin-bottom: 10px; }
.foot-col a, .foot-col p { display: block; margin: 0 0 8px; color: var(--ink); text-decoration: none; }
.foot-col a:hover { color: var(--plum); text-decoration: underline; }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.made-by { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; }
.made-by b { color: var(--ink); }

/* WhatsApp flutuante */
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 15; width: 56px; height: 56px; border-radius: 50%; background: #1F8F4E; display: grid; place-items: center; box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .35); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* diálogos */
dialog { border: 0; padding: 0; color: var(--ink); background: var(--ivory); max-width: 100vw; max-height: 100dvh; }
dialog::backdrop { background: rgba(51, 38, 63, .45); }
.x { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--paper); font-size: 26px; line-height: 1; color: var(--plum-700); }
.sheet { width: 100%; margin: auto 0 0; border-radius: 22px 22px 0 0; max-height: 92dvh; overflow-y: auto; }
.sheet[open] { animation: up .3s ease; }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }
.sheet-close { position: sticky; top: 0; height: 0; display: flex; justify-content: flex-end; padding: 10px 10px 0; z-index: 2; }
.sheet-art { background: var(--lav-50); padding: 22px 70px 0; }
.sheet-art svg { max-height: 300px; margin: 0 auto; }
.sheet-body { padding: 20px 20px 28px; }
.sheet-cat { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--violet); }
.sheet-name { font-size: 32px; margin: 4px 0 10px; }
.sheet-desc { margin: 0 0 18px; color: var(--muted); }
.opts { border: 0; padding: 0; margin: 0 0 12px; }
.opts legend { font-weight: 700; margin-bottom: 8px; }
.opts.is-single legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.opt-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.o { position: relative; display: flex; flex-direction: column; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); cursor: pointer; }
.o input { position: absolute; opacity: 0; }
.o:has(input:checked) { border-color: var(--plum); background: var(--lav-50); }
.o:has(input:focus-visible) { outline: 2px solid var(--plum); outline-offset: 2px; }
.o-label { font-weight: 700; }
.o-price { font-size: 14px; color: var(--muted); }
.o.is-out { opacity: .55; cursor: not-allowed; }
.o.is-out .o-label { text-decoration: line-through; }
.stock-msg { min-height: 1.4em; margin: 0 0 10px; color: #8A3B5B; font-size: 14px; font-weight: 600; }
.sheet-buy { display: flex; gap: 10px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); }
.qty button { width: 44px; height: 46px; border: 0; background: none; font-size: 20px; color: var(--plum); }
.qty button:disabled { color: #C2B8CA; cursor: not-allowed; }
.qty output { min-width: 22px; text-align: center; font-weight: 700; }
.share { margin-top: 14px; border: 0; background: none; color: var(--plum); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; padding: 8px 0; }

.drawer, .preview { width: min(440px, 100vw); height: 100dvh; margin: 0 0 0 auto; padding: 0 20px 24px; overflow-y: auto; }
.drawer[open], .preview[open] { animation: side .3s ease; }
@keyframes side { from { transform: translateX(30px); opacity: 0; } }
.drawer-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0 12px; background: var(--ivory); }
.drawer-head h2 { font-size: 28px; }
.drawer-empty { padding: 24px 0; color: var(--muted); }
.lines { list-style: none; margin: 0; padding: 0; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 4px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line-art { grid-row: span 2; width: 64px; height: 76px; background: var(--paper); border-radius: 12px; border: 1px solid var(--line); padding: 4px 4px 0; }
.line-name { margin: 0; font-weight: 700; line-height: 1.3; }
.line-meta { margin: 0 0 6px; font-size: 14px; color: var(--muted); }
.line-total { margin: 0; font-weight: 700; text-align: right; }
.line-rm { grid-column: 3; align-self: end; border: 0; background: none; color: var(--violet); font-size: 13px; text-decoration: underline; padding: 6px 0; }
.qty-sm button { width: 38px; height: 36px; }
.subtotal { display: flex; justify-content: space-between; font-size: 18px; margin: 16px 0 6px; }
.checkout fieldset { border: 0; padding: 0; margin: 18px 0 0; }
.checkout legend { font-weight: 700; margin-bottom: 8px; }
.opt { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); margin-bottom: 8px; cursor: pointer; }
.opt:has(input:checked) { border-color: var(--plum); background: var(--lav-50); }
.opt input { accent-color: var(--plum); width: 18px; height: 18px; flex: none; }
.opt small { display: block; color: var(--muted); font-size: 13px; }
.field { display: block; margin-top: 14px; font-weight: 700; font-size: 15px; }
.field input, .field textarea { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); font: 400 16px var(--sans); color: var(--ink); }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--plum); }
.hint { font-size: 13.5px; color: var(--muted); margin: 12px 0; }
.form-error { min-height: 1.2em; color: #A12C55; font-weight: 600; margin: 0 0 10px; }

.chat { background: #EFE7DE; border-radius: 16px; padding: 16px; }
.bubble { margin: 0 0 0 auto; max-width: 92%; background: #DCF8C6; border-radius: 12px 2px 12px 12px; padding: 10px 12px; white-space: pre-wrap; font-size: 14.5px; line-height: 1.45; color: #1F2A1F; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); }

.toast { position: fixed; left: 16px; right: 16px; bottom: 84px; z-index: 50; background: var(--plum-700); color: #fff; padding: 12px 16px; border-radius: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14.5px; transform: translateY(20px); opacity: 0; pointer-events: none; transition: .3s; }
.toast.is-on { transform: none; opacity: 1; pointer-events: auto; }
.toast button { border: 0; background: var(--lav); color: var(--plum-700); font-weight: 700; padding: 8px 12px; border-radius: 999px; flex: none; }

/* páginas de texto (privacidade, termos, 404) */
.doc { max-width: 720px; margin: 0 auto; padding: 24px 16px 64px; }
.doc h1 { font-size: clamp(34px, 7vw, 48px); margin: 16px 0; }
.doc h2 { font-size: 26px; margin: 32px 0 8px; }
.doc p, .doc li { color: var(--ink); }
.doc .back { display: inline-block; margin-top: 8px; font-weight: 700; }

/* telas maiores */
@media (min-width: 760px) {
  .top { padding: 12px 32px; }
  .nav { display: flex; }
  .cart-btn { margin-left: 8px; }
  .hero { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 48px; padding: 24px 32px 72px; max-width: 1240px; margin: 0 auto; }
  .hero-copy { order: -1; }
  .hero-arch { padding: 120px 34px 72px; }
  .cats, .featured, .catalog, .how, .faq { padding: 64px 32px; }
  .cats > *, .featured > *, .catalog > *, .how > *, .faq > * { max-width: 1176px; margin-left: auto; margin-right: auto; }
  .cats .sec-title { margin-bottom: 28px; }
  .cat-strip { display: grid; grid-template-columns: repeat(7, 1fr); overflow: visible; margin-left: auto; margin-right: auto; padding: 4px 0 0; }
  .feat-row { margin-left: auto; margin-right: auto; padding: 4px 0 12px; }
  .card-feat { flex-basis: 220px; }
  .chips { flex-wrap: wrap; overflow: visible; margin-left: auto; margin-right: auto; padding: 0; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 24px; }
  .gift { grid-template-columns: 220px 1fr; align-items: center; gap: 40px; padding: 48px 56px; max-width: 1176px; margin: 64px auto; }
  .gift-art { width: 220px; }
  .gift-copy { max-width: 560px; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .foot { grid-template-columns: 1.3fr 1fr 1fr; padding: 56px 32px 40px; max-width: 1240px; margin-left: auto; margin-right: auto; background: none; border: 0; }
  .foot-bottom { grid-column: 1 / -1; }
  .sheet { width: min(860px, 94vw); margin: auto; border-radius: 22px; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; max-height: 90dvh; }
  .sheet-close { position: absolute; right: 0; top: 0; height: auto; }
  .sheet-art { display: grid; place-items: center; padding: 40px; }
  .sheet-body { padding: 40px 32px; overflow-y: auto; }
  .toast { left: auto; right: 24px; bottom: 24px; max-width: 420px; }
}

/* versão real: fotos do painel e botão do painel */
[hidden] { display: none !important; }
.card-art img, .sheet-art img, .line-art img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px 12px 6px 6px; }
.card-art:has(img) { padding: 0; }
.sheet-art:has(img) { padding: 0; }
.sheet-art img { aspect-ratio: 5 / 6; max-height: 420px; border-radius: 0; }
.line-art:has(img) { padding: 0; }
.btn-panel { min-height: 40px; padding: 0 16px; font-size: 13px; }
