/* =========================================================
   Redesign "clean" (17/11/2026) — camada por cima do style.css.
   Fundo areia, mais verde que terracota; cabeçalho verde só com ícones;
   busca fixa; menu lateral com a logo escrita; rodapé com a foto do Instagram.
   Seguir sempre o protótipo aprovado pela Bia.
   ========================================================= */

:root { --sand: #f7f3ec; --line: #e3dccd; }

/* ---------- Cabeçalho verde: menu, logo (leva ao início), lua e compartilhar ---------- */
body:has(.public-topbar) { padding-top: 58px; }
.public-topbar {
  height: 58px; opacity: 1; transform: none; pointer-events: auto;
  background: var(--olive); box-shadow: none; border-bottom: 0;
}
body.is-scrolled .public-topbar { box-shadow: 0 2px 10px rgba(30, 26, 20, .18); }
.public-topbar .brand-logo b { font-size: clamp(11px, 3.4vw, 15px); letter-spacing: .2em; padding-left: .2em; font-weight: 500; }
.public-topbar .brand-logo small { font-size: clamp(6px, 1.9vw, 8.5px); letter-spacing: .24em; padding-left: .24em; margin-top: 4px; font-weight: 500; }
.public-sidebar-toggle, .public-share-fixed, .public-theme-toggle {
  position: fixed; top: 9px; width: 40px; height: 40px; padding: 0; gap: 0;
  background: transparent !important; border: 0; box-shadow: none; border-radius: 0;
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
}
.public-sidebar-toggle { left: 8px; z-index: 71; }
.public-share-fixed { right: 8px; z-index: 70; }
.public-theme-toggle { right: 50px; z-index: 70; }
.public-sidebar-toggle svg, .public-share-fixed svg, .public-theme-toggle svg { width: 24px; height: 24px; }
.public-sidebar-toggle:hover, .public-share-fixed:hover, .public-theme-toggle:hover { transform: none; opacity: .85; }
.menu-hint { display: none !important; }

/* ---------- Busca fixa (sempre o mesmo texto); o convite do grupo só aparece dentro dos posts ---------- */
.sticky-nav { top: 58px; background: var(--sand); }
.sticky-nav, .sticky-nav.is-stuck { padding-top: 10px; border-bottom: 0; box-shadow: none; }
.search-bar { max-width: 440px; margin: 0 auto 10px; padding: 0 16px; }
.search-bar input { height: 44px; padding: 0 14px 0 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--cream); font-size: 16px; }
.search-bar input:focus { border-color: var(--olive); outline: 0; }
.gb-dica { display: none !important; }
.gb-faixa__amb, .home-intro-wrap { display: none !important; }
body:not(.gb-no-post) .gb-faixa__wa { display: none; }

/* ---------- Menu lateral: faixa verde com a logo escrita ---------- */
.public-sidebar__header {
  position: relative; justify-content: center; padding: 26px 16px 22px;
  background: var(--olive); border-bottom: 0;
}
.public-sidebar__header .brand-logo { color: #fff; }
.public-sidebar__header .brand-logo b { font-size: 15px; letter-spacing: .22em; padding-left: .22em; font-weight: 500; }
.public-sidebar__header .brand-logo small { font-size: 8px; letter-spacing: .26em; padding-left: .26em; margin-top: 5px; }
.public-sidebar__close { position: absolute; right: 10px; top: 10px; background: transparent; color: #fff; }
.public-sidebar__close svg { stroke: currentColor; }
.public-sidebar__collapse { display: none; }
.public-push-bell { display: none !important; }
.public-sidebar__end { display: none; }
.public-sidebar__social { padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }

/* ---------- Rodapé ---------- */
.site-footer { text-align: center; padding: 30px 20px 110px; }
.site-footer__main { font-family: var(--font-body); font-size: 13.5px; font-weight: 500; color: var(--ink); margin: 0 0 6px; }
.site-footer__ig {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 4px 8px;
  color: var(--ink); font-size: 13px; text-decoration: none;
}
.site-footer__ig img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; display: block; }
.public-sidebar-toggle[aria-expanded="true"] { visibility: hidden; }
body:has(.public-sidebar.is-open) .gb-bottom-nav { visibility: hidden; }

/* =========================================================
   Cards de produto como na referência: foto 4:5 com a tag da loja e o coração na foto,
   nome em 2 linhas + compartilhar, categoria em caixa alta e botão "Ver na loja".
   ========================================================= */
.posts-grid { gap: 12px; padding-left: 16px; padding-right: 16px; }
.vitrine-card { background: color-mix(in srgb, var(--cream) 0%, var(--sand)); background: #efe8da; border: 0; border-radius: 14px; overflow: hidden; box-shadow: none; display: flex; flex-direction: column; }
:root[data-theme="dark"] .vitrine-card { background: #2b2f24; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .vitrine-card { background: #2b2f24; } }
.vitrine-card .post-card__media { aspect-ratio: 4 / 5; height: auto; border-radius: 0; position: relative; overflow: hidden; background: var(--olive-soft); cursor: pointer; }
.vitrine-card .post-card__media > img, .vitrine-card .card-slider, .vitrine-card .card-slider__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vitrine-card .card-slider { height: 100%; }
.card-loja-overlay { position: absolute; left: 8px; bottom: 8px; z-index: 3; line-height: 0; }
.card-loja-overlay .loja-tag { margin: 0; font-size: 11px; }
.loja-tag--shopee { background: #ee4d2d; color: #fff; }
.loja-tag--shopee img { filter: brightness(0) invert(1); }
.card-fav { position: absolute; right: 8px; top: 8px; z-index: 4; width: 36px; height: 36px; border-radius: 50%; border: 0; padding: 0; background: rgba(255, 255, 255, .93); color: #2c3225; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.card-fav svg { width: 19px; height: 19px; }
.card-fav.is-on { background: var(--olive); color: #fff; }
.card-fav.is-on svg { fill: currentColor; }
.vitrine-card .post-card__body { padding: 10px; display: flex; flex-direction: column; gap: 5px; flex: 1; background: transparent; }
.vitrine-card .post-card__body > div:first-child { display: flex; flex-direction: column; gap: 5px; }
.card-titulo-linha { display: flex; gap: 6px; align-items: flex-start; justify-content: space-between; }
.vitrine-card .post-card__title { font-family: var(--font-body); font-weight: 500; font-size: 13.5px; line-height: 1.3; color: var(--ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; min-height: 0; }
.card-share-btn--corpo { position: static !important; flex: none; width: 26px; height: 26px; padding: 2px; border: 0; background: transparent !important; box-shadow: none !important; color: var(--ink-soft); display: inline-flex; align-items: center; justify-content: center; }
.card-share-btn--corpo svg { width: 18px; height: 18px; }
.card-cat { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.vitrine-card .post-card__cta { margin-top: auto; height: 38px; border-radius: 9px; background: var(--cream); color: var(--ink); font-weight: 500; font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; border: 0; }
.vitrine-card .post-card__cta:hover { background: var(--cream); }
/* menos informação no card: sem selo de desconto, sem "por que gosto" e sem balão de comentário (a dona logada continua vendo) */
.vitrine-card .card-desc, .vitrine-card .post-card__why, .vitrine-card .post-card__code { display: none; }
body[data-is-admin="0"] .vitrine-card .card-linha, body[data-is-admin="0"] .vitrine-card .card-fala { display: none; }
.vitrine-card .card-fotoacoes .card-share-btn { display: none; }
.vitrine-card .card-fotoacoes { position: static; }
.amb-titulo { display: none; }

/* ---------- Explorar: chips de categoria + "Carregar mais" ---------- */
.gb-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 4px; padding: 14px 16px 0; }
.gb-chips::-webkit-scrollbar { display: none; }
.gb-chip { flex: none; height: 36px; padding: 0 15px; border-radius: 10px; border: 1px solid var(--line); background: var(--cream); color: var(--ink); font: inherit; font-size: 13.5px; cursor: pointer; }
.gb-chip.is-active { background: var(--olive-dark); border-color: var(--olive-dark); color: var(--on-olive); }
.pagination--mais { display: block !important; }
.pagination--mais .btn { width: 100%; height: 46px; border-radius: 12px; border: 1px solid var(--olive); background: transparent; color: var(--accent-text); font-weight: 600; font-size: 14px; }
.pagination--mais[style*="none"] { display: none !important; }

/* ---------- Início: cards do grupo e do Instagram ---------- */
.gb-cta { display: flex; align-items: center; gap: 12px; border-radius: 14px; padding: 14px; margin: 12px 0 0; text-decoration: none; }
.gb-cta__ic { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; }
.gb-cta__ic svg { width: 23px; height: 23px; }
.gb-cta__txt { display: flex; flex-direction: column; min-width: 0; }
.gb-cta__txt b { font-weight: 600; font-size: 14.5px; }
.gb-cta__txt small { font-size: 12.5px; }
.gb-cta__bt { margin-left: auto; border-radius: 10px; height: 34px; padding: 0 15px; display: inline-flex; align-items: center; font-weight: 600; font-size: 12.5px; }
.gb-cta--wa { background: var(--olive); color: var(--on-olive); }
.gb-cta--wa .gb-cta__ic { background: #22a55a; color: #fff; }
.gb-cta--wa .gb-cta__txt small { opacity: .85; }
.gb-cta--wa .gb-cta__bt { background: #fff; color: var(--olive-dark); }
.gb-cta--ig { background: var(--cream); border: 1px solid var(--line); color: var(--ink); }
.gb-cta--ig .gb-cta__ic { background: var(--olive-soft); color: var(--accent-text); }
.gb-cta--ig .gb-cta__txt small { color: var(--ink-soft); }
.gb-cta--ig .gb-cta__bt { background: var(--olive-soft); color: var(--accent-text); }

/* ---------- Barra inferior: ícones e rótulos como no protótipo ---------- */
.gb-bottom-nav__item.is-active { color: var(--ink); }
.gb-bottom-nav__item.is-active svg { stroke: var(--olive); }
.favoritos-panel .home-head, .favoritos-panel .home-sub, .favoritos-panel .coupons-empty { padding-left: 16px; padding-right: 16px; }

/* ---------- Categorias: foto quadrada com o nome embaixo (como no protótipo) ---------- */
.cat-cards { gap: 12px 10px; }
.cat-card { aspect-ratio: auto; overflow: visible; background: transparent; display: flex; flex-direction: column; gap: 6px; color: var(--ink); }
.cat-card img { position: static; width: 100%; aspect-ratio: 1; height: auto; border-radius: 12px; display: block; }
.cat-card::after { display: none; }
.cat-card u { position: static; color: var(--ink); font-size: 12.5px; font-weight: 500; text-decoration: none; padding: 0 2px; }
.cat-card--sem-foto { aspect-ratio: auto; }

/* =========================================================
   Pop-up do grupo: trilha de fotos rolando acima da frase curta; fecha ao tocar fora ou no X
   ========================================================= */
.gp-ov { background: rgba(38, 44, 28, .55); }
.gp-box { background: var(--sand); border-radius: 20px; max-width: 360px; color: var(--ink); }
.gp-box .gp-badge { display: none; }
.gp-x { background: rgba(255, 255, 255, .92); color: #2c3225; width: 34px; height: 34px; }
.gp-car--trilha { height: 160px; background: var(--olive-soft); }
.gp-car--trilha::after, .gp-car--trilha .gp-cap, .gp-car--trilha .gp-dots { display: none; }
.gp-trilha { display: flex; gap: 6px; width: max-content; height: 100%; padding-right: 6px; will-change: transform; }
.gp-trilha.rola { animation: gp-rola 36s linear infinite; }
.gp-trilha .gp-sl { position: relative; inset: auto; flex: 0 0 118px; height: 160px; opacity: 1; transition: none; }
.gp-tn { position: absolute; left: 6px; bottom: 6px; background: rgba(255, 255, 255, .92); color: #2c3225; font: 600 10.5px "Plus Jakarta Sans", sans-serif; padding: 2px 7px; border-radius: 6px; }
@keyframes gp-rola { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .gp-trilha.rola { animation: none; } }
.gp-cp { padding: 20px 22px 16px; }
.gp-cp h2 { font: 500 23px/1.2 "Fraunces", Georgia, serif; color: var(--ink); }
.gp-cp h2 em { color: var(--olive); }
.gp-cp p { color: var(--ink-soft); font-size: 14px; margin: 0 0 16px; }
.gp-go { background: #22a55a; box-shadow: none; height: 46px; border-radius: 12px; font-size: 14.5px; font-weight: 600; }
.gp-pula { color: var(--ink-soft); font-weight: 400; text-decoration: underline; font-size: 13px; }

/* Convite do grupo fixo dentro do post (janela de baixo): botão verde com o logo do WhatsApp */
.ed-sheet__grid { padding-left: 0; padding-right: 0; }
.ed-sheet__wa { background: #22a55a; border: 0; box-shadow: none; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 9px; font-weight: 600; font-size: 14.5px; color: #fff; text-decoration: none; }
.ed-sheet__wa svg { width: 22px; height: 22px; }
.ed-sheet__wa { animation: none; }

/* =========================================================
   Página de Cupons (como a referência): card do grupo, Shopee, Mercado Livre e os cupons do painel
   (formatos Shein e Camicado: tag da loja, título, subtítulo, passos, aviso, código + Copiar, botão do link)
   ========================================================= */
.cp-page { padding: 0 14px; }
.cp-page .home-sub { margin: 6px 0 0; }
.cp-eb { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--olive); font-weight: 700; margin: 2px 0 6px; }
.cp-h { font-family: var(--font-display); font-weight: 500; font-size: 22px; margin: 0; color: var(--ink); }
.cp-grupo { display: flex; align-items: center; gap: 12px; background: var(--cream); border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin: 16px 0 14px; text-decoration: none; color: var(--ink); }
.cp-grupo__ic { width: 40px; height: 40px; border-radius: 50%; background: #22a55a; color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.cp-grupo__ic svg { width: 23px; height: 23px; }
.cp-grupo__txt { display: flex; flex-direction: column; min-width: 0; }
.cp-grupo__txt b { font-weight: 600; font-size: 14px; line-height: 1.25; }
.cp-grupo__txt small { color: var(--ink-soft); font-size: 12px; }
.cp-grupo__bt { margin-left: auto; flex: none; border-radius: 9px; background: var(--olive-dark); color: var(--on-olive); height: 36px; padding: 0 14px; display: inline-flex; align-items: center; font-weight: 700; font-size: 12px; letter-spacing: .08em; }
.cp-card { --cp: #5f6f3f; border-radius: 14px; padding: 14px; margin-bottom: 12px; border: 1px solid color-mix(in srgb, var(--cp) 35%, var(--sand)); background: color-mix(in srgb, var(--cp) 12%, var(--sand)); }
.cp-card--shopee { --cp: #ee4d2d; } .cp-card--ml, .cp-card--mercado-livre { --cp: #ffe600; } .cp-card--amazon { --cp: #ff9900; } .cp-card--shein { --cp: #888; } .cp-card--camicado { --cp: #c8102e; }
.cp-tag { display: inline-block; border-radius: 999px; padding: 3px 10px; font-size: 11px; font-weight: 700; background: var(--cp, #5f6f3f); color: #fff; }
.cp-card .cp-tag { background: var(--cp); }
.cp-tag--ml, .cp-tag--mercado-livre { background: #ffe600 !important; color: #2d3277; }
.cp-tag--shein { background: #111 !important; }
.cp-card h3 { font-family: var(--font-body); font-size: 16px; font-weight: 500; margin: 10px 0 12px; color: var(--ink); }
.cp-card h3 b, .cp-card h3 strong { font-weight: 700; }
.cp-sub { font-size: 12.5px; color: var(--ink-soft); margin: -6px 0 10px; }
.cp-sub--link { margin: 12px 0 8px; }
.cp-passos { margin: 0 0 12px; padding-left: 20px; font-size: 13px; line-height: 1.5; color: var(--ink); }
.cp-passos li { margin-bottom: 4px; }
.cp-aviso { display: flex; gap: 8px; align-items: flex-start; background: color-mix(in srgb, var(--cream) 72%, transparent); border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; font-size: 12.5px; margin: 0 0 10px; color: var(--ink); }
.cp-aviso svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.cp-cod { display: flex; gap: 8px; }
.cp-cod code { flex: 1; display: flex; align-items: center; justify-content: center; border: 1px dashed var(--ink-soft); border-radius: 9px; height: 42px; font-weight: 700; letter-spacing: .12em; font-family: ui-monospace, monospace; background: var(--cream); color: var(--ink); }
.cp-copiar { height: 42px; padding: 0 16px; border: 0; border-radius: 9px; background: var(--olive-dark); color: var(--on-olive); font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; }
.cp-btn { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; height: 42px; border-radius: 9px; font-weight: 600; font-size: 13.5px; text-decoration: none; border: 1px solid var(--line); background: color-mix(in srgb, var(--cream) 80%, transparent); color: var(--ink); }
.cp-btn svg { width: 15px; height: 15px; }
.cp-btn--shopee { background: #ee4d2d; border-color: #ee4d2d; color: #fff; }
.cp-btn--ml { background: #ffe600; border-color: #ffe600; color: #2d3277; }
.cp-btn--link { margin-top: 10px; }
.cp-sub--link + .cp-btn--link { margin-top: 0; }
.cp-val { font-size: 12px; color: var(--ink-soft); margin: 10px 0 0; text-align: center; }

/* ---------- Coleções: foto grande com o nome e a quantidade ---------- */
.colecoes-lista { padding: 0 14px; }
.colecoes-panel .home-head, .colecoes-panel .home-sub, .colecoes-panel .coupons-empty { padding-left: 14px; padding-right: 14px; }
.colecao-card { height: auto; aspect-ratio: 4 / 3; border-radius: 14px; }
.colecao-card::after { background: linear-gradient(transparent 45%, rgba(30, 34, 16, .72)); }
.colecao-card__txt small { background: rgba(255, 255, 255, .9); color: #2c3225; }
.colecao-card__txt b { font-family: var(--font-body); font-weight: 600; font-size: 18px; }

/* selo flutuante "Cupons Shopee": os cupons agora moram na aba Cupons */
.gb-pop { display: none !important; }

/* ---------- Seta de voltar ao topo no canto DIREITO (mais comum), acima da barra de baixo no celular ---------- */
.gb-topo { left: auto; right: 14px; }
.back-to-top-btn, body:has(.gb-faq-btn) .back-to-top-btn { left: auto; right: 16px; }
@media (max-width: 900px) { .back-to-top-btn, body:has(.gb-faq-btn) .back-to-top-btn { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); } }
/* no Início/Explorar já existe a seta .gb-topo: não mostra a outra por cima (ficava uma seta dupla) */
body:has(.gb-topo) .back-to-top-btn { display: none !important; }

/* "Ver na loja" nunca troca de cor: no celular o :hover do style.css ficava preso depois do toque (marrom) */
body .vitrine-card .post-card__cta,
body .vitrine-card:hover .card-cta-loja,
body .vitrine-card:hover .post-card__cta,
body .vitrine-card .card-cta-loja:hover,
body .vitrine-card .card-cta-loja:active,
body .vitrine-card .card-cta-loja:focus,
body .vitrine-card .card-cta-loja:visited { background: var(--cream); color: var(--ink); transform: none; box-shadow: none; }

/* Pop-up: letras menores; *destaque* em verde, **negrito** */
.gp-cp h2 { font-size: 19px; }
.gp-cp p { font-size: 12.5px; }
.gp-cp h2 em, .gp-cp p em { font-style: normal; color: var(--olive); font-weight: 700; }
.gp-cp strong { font-weight: 700; color: var(--ink); }
