/* Marketplace (Consultas, Cursos, Loja) com o mesmo aspeto do resto da plataforma:
   fundo em gradiente vermelho, cartões escuros de cantos arredondados e espaçados,
   botões em pílula, Poppins. SÓ visual: não mexe em estrutura, ids ou classes usadas
   por JS. O cabeçalho (header.main-nav) e o rodapé ficam como estão; os balões de
   leitura (Ver mais, comentários, carrinho) mantêm o fundo branco, só ganham cantos
   arredondados. Sem desfocados (backdrop-filter) nos cartões, para as páginas serem leves.
   Ligado no fim do <head> de consultas.html, _cursos-src.html e _loja-src.html. */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* ── Página ── */
body {
  background: #8A0000 linear-gradient(160deg, #8A0000 0%, #CC0000 55%, #A30000 100%) fixed;
  color: #F8F6F3;
  font-family: 'Poppins', sans-serif;
  cursor: auto;
}
a, button { cursor: pointer; }
#cur, #cur-r { display: none !important; }
.sec-rule { display: none; }
.servicos, .cursos-section, .loja-section, .como-section { background: transparent; }

/* ── Hero ── */
.page-hero { background: transparent; }
.page-hero-orb, .hero-orb, .page-hero-orb1, .page-hero-orb2, .hero-orb1, .hero-orb2 { display: none; }
.page-hero .h1 { color: #fff; }
.page-hero .h1 em { color: #E8B84B; }
.page-hero .eyebrow { color: #E8B84B; }
.page-hero .eyebrow::before { background: #E8B84B; }
.page-hero p { color: #E4DED3; font-family: 'Poppins', sans-serif; }
.stat-n { color: #E8B84B; }
.stat-l { color: #C9C3B8; }

/* ── Botões em pílula ── */
.page-hero .btn, .cta-banner .btn, .cg-ajuda .btn, .digital-banner .btn, .como-section .btn,
.cursos-section .btn, .loja-section .btn, .servicos .btn {
  border-radius: 999px; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: .74rem;
  letter-spacing: .06em; text-transform: none; padding: 13px 26px; min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
}
.page-hero .btn-r { background: #fff; color: #CC0000; border: 1px solid #fff; }
.page-hero .btn-r:hover { background: #F8F6F3; border-color: #F8F6F3; }
.cta-banner .btn-r, .digital-banner .btn-r, .cursos-section .btn-r, .loja-section .btn-r { background: #CC0000; color: #fff; border: 1px solid #CC0000; }
.cta-banner .btn-r:hover, .digital-banner .btn-r:hover, .cursos-section .btn-r:hover, .loja-section .btn-r:hover { background: #E60000; border-color: #E60000; }
.page-hero .btn-o, .digital-banner .btn-o, .cursos-section .btn-o, .loja-section .btn-o, .cg-ajuda .btn {
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.55);
}
.page-hero .btn-o:hover, .digital-banner .btn-o:hover, .cursos-section .btn-o:hover, .loja-section .btn-o:hover, .cg-ajuda .btn:hover { background: rgba(255,255,255,.14); border-color: #fff; }

/* ── Filtros em pílulas ── */
.cg-filters, .tri-filters { border-bottom: none; gap: 8px; }
.cg-filter, .tri-filter {
  border: 1px solid rgba(255,255,255,.3); background: rgba(17,10,10,.4); color: #F8F6F3;
  border-radius: 999px; padding: 11px 20px; min-height: 44px; font-family: 'Poppins', sans-serif;
  font-size: .72rem; letter-spacing: .08em; text-transform: none; white-space: nowrap;
}
.cg-filter::after, .tri-filter::after { display: none; }
.cg-filter:hover, .tri-filter:hover { color: #fff; border-color: #E8B84B; }
.cg-filter.active, .tri-filter.active { background: #fff; border-color: #fff; color: #CC0000; }
.cg-filter svg [stroke="#CC0000"], .tri-filter svg [stroke="#CC0000"] { stroke: currentColor; }
.cg-filter svg [fill="#CC0000"], .tri-filter svg [fill="#CC0000"] { fill: currentColor; }
.cg-filter svg, .tri-filter svg { opacity: .9; }
.cg-filter em, .tri-filter em { color: #E4DED3; font-family: 'Poppins', sans-serif; font-size: .75rem; }
.cg-filter.active em, .tri-filter.active em { color: #CC0000; opacity: 1; }

/* ── Pesquisa e ordenação ── */
.list-search input, .list-sort, .sort-select {
  background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px; font-family: 'Poppins', sans-serif; min-height: 44px;
}
.list-search input::placeholder { color: #C9C3B8; }
.list-search input:focus, .list-sort:focus, .sort-select:focus { border-color: #E8B84B; }
.list-search svg { color: #C9C3B8; }
.list-sort option, .sort-select option { color: #111; background: #fff; text-transform: none; }

/* ── Grelhas espaçadas (sem as linhas finas entre cartões) ── */
.cg, .cursos-grid, .loja-grid { background: transparent; border: none; gap: 20px; }
@media (max-width: 640px) { .cg, .cursos-grid, .loja-grid { gap: 16px; } }

/* ── Cartões ── */
.cg-card, .curso-card, .prod-card {
  background: rgba(24,8,8,.82); border: 1px solid rgba(255,255,255,.18); border-radius: 20px;
  box-shadow: 0 18px 44px rgba(0,0,0,.28); overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.cg-card:hover, .curso-card:hover, .prod-card:hover {
  background: rgba(24,8,8,.88); border-color: rgba(232,184,75,.55); transform: translateY(-3px);
  box-shadow: 0 24px 54px rgba(0,0,0,.34);
}
.cg-card::before { display: none; }
.cg-ico, .curso-img, .prod-img { background: #2a1210; }
.cg-nome { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 500; color: #fff; line-height: 1.2; }
.curso-nome, .prod-nome { color: #fff; }
.cg-terapeuta, .curso-cat, .prod-cat { color: #E8B84B; }
.cg-desc, .curso-desc, .prod-desc { color: #C9C3B8; }
.cg-tag { color: #E8B84B; }
.cg-meta { color: #C9C3B8; }
.cg-meta .cg-novo { color: #E8B84B; border-color: rgba(232,184,75,.5); }
.cg-p1, .curso-preco, .prod-preco { color: #fff; }
.cg-p2, .cg-desde, .curso-preco span, .prod-preco .tipo, .curso-preco .riscado, .prod-preco .antes, .curso-meta-item { color: #C9C3B8; }
.curso-footer, .prod-footer { border-top-color: rgba(255,255,255,.16); }
.cg-ver { color: #E8B84B; }
.curso-inclui li { color: #C9C3B8; }

/* Gostos e comentários dentro dos cartões escuros */
.cg-card .eng-btn, .curso-card .eng-btn, .prod-card .eng-btn { color: #C9C3B8; }
.cg-card .eng-btn:hover, .curso-card .eng-btn:hover, .prod-card .eng-btn:hover { color: #fff; background: rgba(255,255,255,.1); }
.cg-card .eng-like-btn.liked, .curso-card .eng-like-btn.liked, .prod-card .eng-like-btn.liked { color: #FF6B6B; }
.cg-card .eng-last-comment, .curso-card .eng-last-comment, .prod-card .eng-last-comment { color: #C9C3B8; }
.cg-card .eng-last-comment-text strong, .curso-card .eng-last-comment-text strong, .prod-card .eng-last-comment-text strong { color: #fff; }
.cg-card .eng-last-comment-vermais, .curso-card .eng-last-comment-vermais, .prod-card .eng-last-comment-vermais { color: #E8B84B; }

.cg-card .eng-liked-by-text, .curso-card .eng-liked-by-text, .prod-card .eng-liked-by-text { color: #C9C3B8; }
.cg-card .eng-liked-by-vermais, .curso-card .eng-liked-by-vermais, .prod-card .eng-liked-by-vermais { color: #E8B84B; }
.cg-card .eng-foot-icon, .curso-card .eng-foot-icon, .prod-card .eng-foot-icon { color: #C9C3B8; border-color: transparent; background: transparent; }
.cg-card .eng-foot-icon:hover, .curso-card .eng-foot-icon:hover, .prod-card .eng-foot-icon:hover { color: #fff; background: rgba(255,255,255,.1); }

/* Etiquetas (badges) em pílula */
.curso-badge, .prod-badge { border-radius: 999px; }
.curso-badge.novo, .badge-novo { background: rgba(17,10,10,.85); border: 1px solid rgba(255,255,255,.3); }
.badge-dig { background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.3); }
.curso-featured { background: rgba(24,8,8,.82); border-top: 1px solid rgba(255,255,255,.18); }
.prod-digital { background: rgba(24,8,8,.82); }

/* Botões dos cartões */
.cg-wa, .cg-em, .cg-copy, .cg-more button { border-radius: 999px; font-family: 'Poppins', sans-serif; letter-spacing: .04em; text-transform: none; font-weight: 600; font-size: .74rem; }
.cg-wa { padding: 0 20px; }
.cg-em { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.45); padding: 0 18px; }
.cg-em:hover { background: rgba(255,255,255,.14); border-color: #fff; color: #fff; }
.cg-copy { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.45); padding: 0; }
.cg-copy:hover { background: rgba(255,255,255,.14); border-color: #fff; color: #fff; }
.curso-footer .btn, .prod-footer .btn { border-radius: 999px; font-family: 'Poppins', sans-serif; font-weight: 600; letter-spacing: .04em; text-transform: none; }
.add-btn, .info-btn { border-radius: 50%; width: 44px; height: 44px; }
.info-btn { color: #fff; border-color: rgba(255,255,255,.5); }
.info-btn:hover { background: rgba(255,255,255,.14); }
.prod-fav { border-radius: 50%; }
.cg-more { background: transparent; }
.cg-more button { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.55); padding: 0 30px; }
.cg-more button:hover { background: #CC0000; border-color: #CC0000; }

/* Caixas de ajuda e secções de apoio */
.cg-ajuda, .cta-banner, .digital-banner, .como-item {
  background: rgba(24,8,8,.82); border: 1px solid rgba(255,255,255,.18); border-radius: 20px;
  box-shadow: 0 18px 44px rgba(0,0,0,.28);
}
.cta-banner::before { display: none; }
.cta-banner { margin: 0 72px 56px; }
.digital-banner { margin: 0 72px 56px; }
@media (max-width: 900px) { .cta-banner, .digital-banner { margin: 0 24px 40px; } }
.cg-ajuda h3, .cta-banner h2, .digital-banner .h2, .como-ttl, .df strong { color: #fff; }
.cg-ajuda h3 em, .digital-banner .h2 em, .cta-banner h2 em { color: #E8B84B; }
.cg-ajuda p, .cta-banner p, .digital-banner p, .df p, .como-txt { color: #C9C3B8; }
.como-grid { background: transparent; gap: 20px; }
.como-num { color: rgba(255,255,255,.1); }
.como-ico svg [stroke="#CC0000"] { stroke: #E8B84B; }
.como-ico svg [fill="#CC0000"] { fill: #E8B84B; }
.btn-white { border-radius: 999px; }

/* ── Balões de leitura (continuam brancos, com cantos arredondados) ── */
.cgm, .cprev-modal, .saiba-mais-modal, .sales-blocked-modal { border-radius: 20px !important; }
.cgm-img { border-radius: 20px 20px 0 0; }
.cgm .cg-wa, .cprev-modal .btn, .cprev-modal .cprev-add-btn { border-radius: 999px !important; }

/* ── Telemóvel e tablet: filtros numa só linha que se arrasta; hero baixo e sem espera de animação ── */
@media (max-width: 900px) {
  .cg-filters, .tri-filters { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-left: 0; padding-right: 0; }
  .cg-filters::-webkit-scrollbar, .tri-filters::-webkit-scrollbar { display: none; }
  .cg-filter, .tri-filter { flex: none; }
  .tri-filters { padding-left: 24px; padding-right: 24px; }
  .loja-filters .tri-filters { justify-content: flex-start; margin: 0; padding-left: 0; padding-right: 0; }
  .page-hero { min-height: 0; padding: calc(110px + var(--hero-lift, 0px)) 24px 36px; }
  .page-hero .h1, .page-hero p, .page-hero-btns { opacity: 1; animation: none; }
  .page-hero p { margin-top: 14px; }
  .page-hero-btns { margin-top: 22px; }
}

/* ── Cursos e Loja: cartões mais curtos (texto cortado, o completo está no "Ver mais") ── */
.curso-img { aspect-ratio: 16 / 10; }
.prod-img { aspect-ratio: 4 / 3; }
.curso-body { padding: 22px 22px 24px; }
.prod-body { padding: 18px 18px 20px; }
.curso-nome { font-size: 1.3rem; }
.curso-desc, .prod-desc { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.6; }
.curso-desc { -webkit-line-clamp: 3; font-size: .92rem; margin-bottom: 14px; }
.prod-desc { -webkit-line-clamp: 2; font-size: .9rem; margin-bottom: 12px; }
.curso-meta { margin-bottom: 14px; gap: 6px 14px; }
.curso-inclui { margin: .25rem 0 .9rem; }
.curso-inclui li { font-size: .85rem; }
.curso-inclui svg path { stroke: #E8B84B; }
.curso-inclui .mkt-inclui-extra { display: none; }
.curso-inclui .mkt-inclui-mais { display: block; color: #E8B84B; font-size: .8rem; list-style: none; }
.prod-footer { flex-wrap: wrap; }
.mkt-page-hide { display: none !important; }
.mkt-more { grid-column: 1 / -1; text-align: center; padding: 14px 0 4px; }
.mkt-more button { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.55); border-radius: 999px; font-family: 'Poppins', sans-serif; font-size: .74rem; font-weight: 600; letter-spacing: .04em; padding: 0 30px; min-height: 44px; }
.mkt-more button:hover { background: #CC0000; border-color: #CC0000; }
.mkt-vazio { text-align: center; color: #E4DED3; font-size: .95rem; padding: 40px 16px; }

/* Etiquetas de categoria dos cartões em dourado (eram vermelhas, ilegíveis sobre o escuro) */
.curso-cat .dtag, .prod-cat .dtag, .curso-cat a, .prod-cat a { color: #E8B84B; }

/* Nomes (quem gostou, quem comentou) em branco dentro dos cartões escuros: o estilo geral punha-os a preto */
.cg-card strong, .curso-card strong, .prod-card strong,
.cg-card .eng-liked-by strong, .curso-card .eng-liked-by strong, .prod-card .eng-liked-by strong { color: #fff; }
