/* =====================================================================
   COMPONENTES — cards, galeria, perfil em arco, abas, modais, alertas...
   ===================================================================== */

/* ---------- Alertas / toasts ---------- */
.toasts { position: fixed; top: 90px; right: 20px; z-index: 1000; display: flex; flex-direction: column; gap: 10px; max-width: 380px; }
.toast { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--branco); box-shadow: var(--sombra-lg); border-left: 5px solid var(--info); font-size: .85rem; animation: entrar .35s ease; }
.toast i { font-size: 1.15rem; margin-top: 1px; }
.toast-ok { border-color: var(--ok); } .toast-ok i { color: var(--ok); }
.toast-erro { border-color: var(--erro); } .toast-erro i { color: var(--erro); }
.toast-alerta { border-color: var(--alerta); } .toast-alerta i { color: var(--alerta); }
.toast-info i { color: var(--info); }
.toast .fechar { margin-left: auto; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1rem; }
@keyframes entrar { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }

.aviso { display: flex; gap: 12px; padding: 14px 18px; border-radius: 14px; font-size: .85rem; margin-bottom: 18px; line-height: 1.5; }
.aviso i { font-size: 1.1rem; }
.aviso-info { background: var(--info-bg); color: #3b5b80; }
.aviso-ok { background: var(--ok-bg); color: #2f6b50; }
.aviso-erro { background: var(--erro-bg); color: #8e3036; }
.aviso-alerta { background: var(--alerta-bg); color: #7d5a17; }

.badge { display: inline-block; padding: .2em .75em; border-radius: var(--pill); font-size: .7rem; font-weight: 600; letter-spacing: .2px; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-erro { background: var(--erro-bg); color: var(--erro); }
.badge-alerta { background: var(--alerta-bg); color: var(--alerta); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-neutro { background: var(--azul-100); color: var(--azul-700); }

/* ---------- Card genérico ---------- */
.card { background: var(--branco); border: 1.5px solid var(--borda); border-radius: var(--raio); padding: 24px; }
.card-suave { background: var(--azul-100); border: 1.5px solid var(--azul-300); border-radius: var(--raio); padding: 22px; }
.card h3 { margin-top: 0; }
.card-titulo { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.card-titulo h2, .card-titulo h3 { margin: 0; }

/* ---------- Grades ---------- */
.grade { display: grid; gap: 22px; }
.grade-2 { grid-template-columns: repeat(2, 1fr); }
.grade-3 { grid-template-columns: repeat(3, 1fr); }
.grade-4 { grid-template-columns: repeat(4, 1fr); }
.grade-auto { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

/* ---------- Card de procedimento (Explorar) ---------- */
.card-proc { background: var(--branco); border: 1.5px solid var(--azul-200); border-radius: var(--raio); overflow: hidden; display: flex; flex-direction: column; transition: transform var(--trans), box-shadow var(--trans); }
.card-proc:hover { transform: translateY(-4px); box-shadow: var(--sombra-lg); }
.card-proc .foto { aspect-ratio: 1 / 1.05; background: var(--azul-100); position: relative; overflow: hidden; }
.card-proc .foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card-proc:hover .foto img { transform: scale(1.05); }
.card-proc .corpo { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.card-proc h3 { font-size: .95rem; color: var(--preto); font-weight: 500; margin-bottom: 4px; }
.card-proc .meta { font-size: .75rem; color: var(--texto); line-height: 1.5; margin-bottom: 10px; }
.card-proc .preco { font-size: .95rem; margin: auto 0 10px; }
.card-proc .acoes { display: flex; gap: 8px; align-items: center; }
.card-proc .acoes .btn { flex: 1; }
.selo { position: absolute; left: 10px; top: 10px; background: rgba(255,255,255,.92); color: var(--azul-700); border-radius: var(--pill); font-size: .68rem; font-weight: 600; padding: .25em .8em; }

.coracao { background: none; border: 0; color: var(--azul-500); font-size: 1.35rem; cursor: pointer; padding: 2px; line-height: 1; transition: transform .2s ease; }
.coracao:hover { transform: scale(1.12); }
.coracao.ativo { color: #d9536b; }
.coracao.ativo i::before { content: "\f415"; } /* bi-heart-fill */
.coracao-flutuante { position: absolute; top: 10px; right: 10px; color: #fff; filter: drop-shadow(0 1px 3px rgba(0,0,0,.35)); z-index: 2; }

/* ---------- Galeria em mosaico (masonry) ---------- */
.mosaico { columns: 4 240px; column-gap: 16px; }
.mosaico-item { break-inside: avoid; margin-bottom: 16px; position: relative; border-radius: 12px; overflow: hidden; background: var(--azul-100); display: block; }
.mosaico-item img { width: 100%; transition: transform .5s ease; }
.mosaico-item:hover img { transform: scale(1.04); }
.mosaico-item .mais { position: absolute; right: 10px; bottom: 10px; width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--azul-700); display: grid; place-items: center; font-size: .8rem; }
.mosaico-item .legenda { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; background: linear-gradient(transparent, rgba(0,0,0,.55)); color: #fff; font-size: .78rem; opacity: 0; transition: opacity var(--trans); }
.mosaico-item:hover .legenda { opacity: 1; }
.card-dica { aspect-ratio: 3/4; }
.card-dica img { height: 100%; object-fit: cover; }
.dica-texto { aspect-ratio: 3/4; display: flex; align-items: center; justify-content: center; padding: 30px; text-align: center; font-size: 1.05rem; color: var(--azul-900); background: linear-gradient(160deg, #f2f2f2, #e7ecf1); font-style: italic; }

/* ---------- Perfil (salão/profissional) com imagem em arco ---------- */
.perfil-hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center; padding: 40px 0 20px; }
.perfil-texto { text-align: center; }
.perfil-texto h1 { font-weight: 700; color: var(--azul-700); margin-bottom: 0; letter-spacing: .5px; }
.perfil-texto .slogan { color: var(--azul-500); font-size: .85rem; margin-bottom: 20px; }
.perfil-texto .resumo { text-align: justify; font-size: .88rem; color: var(--texto); }
.perfil-arco { border-radius: var(--arco); overflow: hidden; border: 2px solid var(--azul-300); aspect-ratio: 5/5.4; background: var(--azul-100); box-shadow: var(--sombra); }
.perfil-arco img { width: 100%; height: 100%; object-fit: cover; }
.perfil-info { margin-top: 24px; text-align: left; border: 1.5px solid var(--azul-400); border-radius: 4px; padding: 16px 20px; font-size: .82rem; background: var(--branco); position: relative; }
.perfil-info p { margin: 0 0 4px; }
.perfil-info b { color: var(--azul-600); font-weight: 600; }
.perfil-info .redes { position: absolute; right: 14px; bottom: 10px; display: flex; gap: 8px; }
.perfil-info .redes a { color: var(--azul-500); }
.avatares { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.avatar-mini { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .68rem; color: var(--muted); }
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--azul-100); border: 2px solid var(--branco); box-shadow: 0 0 0 1.5px var(--azul-300); display: grid; place-items: center; color: var(--azul-700); font-weight: 600; font-size: .8rem; overflow: hidden; flex-shrink: 0; }
.avatar-g { width: 96px; height: 96px; font-size: 1.6rem; }
.avatar-p { width: 30px; height: 30px; font-size: .65rem; }
.acoes-perfil { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- Abas (tabs) ---------- */
.abas { display: flex; gap: 4px; border-bottom: 1.5px solid var(--azul-400); margin: 30px 0 24px; overflow-x: auto; scrollbar-width: none; }
.abas::-webkit-scrollbar { display: none; }
.aba { padding: .55em 1em; font-size: .78rem; font-weight: 600; color: var(--azul-500); border-radius: 6px 6px 0 0; white-space: nowrap; background: none; border: 0; cursor: pointer; font-family: var(--fonte); }
.aba:hover { color: var(--azul-800); }
.aba.ativa { background: var(--azul-500); color: #fff; }
.painel-aba { display: none; animation: aparecer .3s ease; }
.painel-aba.ativo { display: block; }
@keyframes aparecer { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Card de pessoa (profissional / salão) ---------- */
.card-pessoa { background: var(--azul-100); border: 1.5px solid var(--azul-300); border-radius: 12px; padding: 18px 16px; text-align: center; display: flex; flex-direction: column; align-items: center; transition: transform var(--trans), box-shadow var(--trans); }
.card-pessoa:hover { transform: translateY(-3px); box-shadow: var(--sombra); }
.card-pessoa .avatar { width: 84px; height: 84px; font-size: 1.4rem; margin-bottom: 10px; }
.card-pessoa h3 { font-size: .95rem; margin: 0; color: var(--azul-700); }
.card-pessoa .sub { font-size: .75rem; color: var(--muted); margin-bottom: 8px; }
.card-pessoa .linha { width: 85%; height: 1.5px; background: var(--azul-400); margin: 4px 0 10px; }
.card-pessoa .esp { font-size: .78rem; color: var(--texto); line-height: 1.45; }
.card-pessoa .cidade { font-size: .74rem; color: var(--muted); margin-bottom: 12px; }
.card-pessoa .btn { margin-top: auto; }

/* ---------- Card horizontal (procedimentos do salão / cursos) ---------- */
.card-linha { display: flex; gap: 16px; padding: 12px; border: 1.5px solid var(--azul-300); border-radius: 10px; background: var(--branco); margin-bottom: 14px; transition: box-shadow var(--trans); }
.card-linha:hover { box-shadow: var(--sombra); }
.card-linha .thumb { width: 96px; min-width: 96px; aspect-ratio: 3/4; border-radius: 8px; overflow: hidden; background: var(--azul-100); }
.card-linha .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-linha .info { flex: 1; font-size: .8rem; }
.card-linha h3 { font-size: .9rem; margin-bottom: 2px; color: var(--preto); font-weight: 600; }
.card-linha .desc { color: var(--texto); margin-bottom: 6px; }
.card-linha .lado { display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-end; }
.lista-categoria { font-size: 1rem; color: var(--azul-700); margin: 26px 0 12px; font-weight: 600; }

/* ---------- Detalhe (procedimento / post / curso) ---------- */
.detalhe { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; padding: 30px 0; align-items: start; }
.detalhe-foto { border: 2px solid var(--azul-300); border-radius: 10px; overflow: hidden; aspect-ratio: 1/1.05; background: var(--azul-100); }
.detalhe-foto img { width: 100%; height: 100%; object-fit: cover; }
.miniaturas { display: flex; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.miniaturas button { width: 110px; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--azul-100); }
.miniaturas button.ativa { border-color: var(--azul-500); }
.miniaturas img { width: 100%; height: 100%; object-fit: cover; }
.detalhe-info h1 { font-size: 1.6rem; font-weight: 600; margin-bottom: 8px; }
.detalhe-info .valor { font-size: 1.1rem; color: var(--azul-500); font-weight: 600; margin-bottom: 14px; }
.detalhe-info h4 { color: var(--azul-600); font-size: .92rem; margin: 18px 0 6px; }
.detalhe-info ul { margin: 0; padding-left: 20px; font-size: .85rem; }
.detalhe-info p { font-size: .87rem; text-align: justify; }
.divisor { height: 1.5px; background: var(--azul-400); margin: 18px 0; border: 0; }
.voltar { float: right; }
.mini-perfil { display: flex; align-items: center; gap: 12px; margin: 6px 0; }
.mini-perfil strong { display: block; color: var(--azul-700); font-size: .85rem; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; background: rgba(30, 40, 52, .5); backdrop-filter: blur(3px); display: none; align-items: center; justify-content: center; z-index: 900; padding: 20px; }
.modal.aberto { display: flex; animation: aparecer .25s ease; }
.modal-caixa { background: var(--branco); border-radius: var(--raio-lg); width: 100%; max-width: 520px; max-height: 92vh; overflow-y: auto; padding: 28px; box-shadow: var(--sombra-lg); position: relative; }
.modal-caixa-lg { max-width: 820px; }
.modal-fechar { position: absolute; top: 14px; right: 14px; }
.modal h3 { padding-right: 40px; }

/* ---------- Vazio ---------- */
.vazio { text-align: center; padding: 56px 20px; color: var(--muted); }
.vazio i { font-size: 2.6rem; color: var(--azul-400); display: block; margin-bottom: 10px; }
.vazio h3 { color: var(--azul-700); }

/* ---------- Placeholder elegante quando não há foto ---------- */
.placeholder-foto { width: 100%; height: 100%; min-height: 120px; display: grid; place-items: center; background: linear-gradient(145deg, var(--azul-100), var(--azul-300)); color: var(--branco); font-size: 2.2rem; }

/* ---------- Cookie banner ---------- */
.cookie-banner { position: fixed; left: 20px; right: 20px; bottom: 20px; max-width: 760px; margin: 0 auto; background: var(--branco); border: 1.5px solid var(--borda); border-radius: 18px; box-shadow: var(--sombra-lg); padding: 18px 22px; display: flex; gap: 18px; align-items: center; z-index: 950; font-size: .82rem; }
.cookie-banner i { font-size: 1.8rem; color: var(--azul-500); }
.cookie-banner p { margin: 0; }

/* ---------- Relógio de sessão ---------- */
.aviso-sessao .contador { font-size: 2rem; font-weight: 700; color: var(--azul-700); text-align: center; margin: 10px 0; }

/* ---------- Paginação ---------- */
.paginacao { display: flex; gap: 6px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.paginacao a, .paginacao span { min-width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--borda); font-size: .8rem; color: var(--azul-700); padding: 0 8px; }
.paginacao .atual { background: var(--azul-700); color: #fff; border-color: var(--azul-700); }

/* ---------- Notificações (página) ---------- */
.notif { display: flex; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--azul-100); }
.notif.nao-lida { background: var(--azul-50); }
.notif .icone { width: 42px; height: 42px; border-radius: 50%; background: var(--azul-100); color: var(--azul-700); display: grid; place-items: center; flex-shrink: 0; }
.notif h4 { margin: 0 0 2px; font-size: .9rem; color: var(--azul-900); }
.notif h4 .origem { color: var(--azul-600); }
.notif p { margin: 0; font-size: .84rem; white-space: pre-line; }
.notif time { font-size: .72rem; color: var(--muted); }
