/* ================= Relaxê: seções próprias do colar (carregado depois do loja.css) ================= */

/* Em números: cartões no painel escuro */
.metricas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.metrica { position: relative; overflow: hidden; background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.12); border-radius: var(--raio); padding: 30px 24px 26px; }
.metrica::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(196,181,253,.28), transparent 70%); }
.metrica .ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(196,181,253,.14); color: var(--lavanda); margin-bottom: 22px; }
.metrica .ico svg { width: 24px; height: 24px; }
.metrica b { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(44px, 4.6vw, 62px); line-height: 1; letter-spacing: -1.5px; color: #fff; }
.metrica b small { font-size: .45em; letter-spacing: 0; color: var(--lavanda); margin-left: 4px; }
.metrica strong { display: block; margin-top: 12px; color: #fff; font-size: 16px; }
.metrica span { display: block; margin-top: 4px; color: rgba(255,255,255,.62); font-size: 14px; font-weight: 500; line-height: 1.45; }
@media (max-width: 900px) { .metricas { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .metricas { gap: 10px; } .metrica { padding: 22px 16px; } .metrica .ico { margin-bottom: 14px; } }

/* Como funciona: painéis desenhados no lugar das fotos */
.bloco .img.visual { aspect-ratio: auto; min-height: 440px; display: grid; place-items: center; padding: 34px; background: var(--noite); color: #fff; position: relative; overflow: hidden; }
.bloco .img.visual.claro { background: var(--areia); color: var(--texto); }
.visual::before { content: ""; position: absolute; right: -80px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(196,181,253,.22), transparent 70%); }
.visual > * { position: relative; width: 100%; max-width: 400px; }
.display { background: #0b0807; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; box-shadow: inset 0 0 30px rgba(0,0,0,.6); }
.display .led { font-family: "Courier New", ui-monospace, monospace; font-weight: 700; font-size: 46px; letter-spacing: 4px; color: #c4b5fd; text-shadow: 0 0 14px rgba(167,139,250,.8); line-height: 1; }
.display .led .dois { animation: piscar-led 1s steps(1) infinite; }
.display small { font-size: 11px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: rgba(255,255,255,.55); text-align: right; line-height: 1.4; }
.botoes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.botoes span { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 12px 4px 10px; text-align: center; font-size: 12px; font-weight: 700; color: rgba(255,255,255,.85); transition: background .3s, border-color .3s, box-shadow .3s; }
.botoes span i { display: block; font-style: normal; font-size: 22px; margin-bottom: 4px; }
.botoes span.ativo { background: var(--noite-3); border-color: var(--noite-3); color: #fff; box-shadow: 0 10px 24px rgba(124,58,237,.4); }
.botoes-rodape { margin-top: 12px; text-align: center; font-size: 12.5px; font-weight: 700; color: rgba(255,255,255,.55); }
@keyframes pulsar { 50% { box-shadow: 0 0 0 8px rgba(47,208,123,0); } }
@keyframes piscar-led { 50% { opacity: .25; } }
@media (max-width: 960px) { .bloco .img.visual { min-height: 0; padding: 26px 20px; } }
@media (max-width: 420px) { .display .led { font-size: 36px; } }

/* Avaliações: cartões brancos, avatar, selo verificado, colunas em alvenaria */
#avaliacoes .aval-topo { background: #fff; box-shadow: var(--sombra-leve); }
#avaliacoes .barra .trilho { background: var(--areia); }
#avaliacoes .aval-destaques div { background: var(--areia); }
.aval-media .estrelas, .dep .estrelas { color: var(--estrela); letter-spacing: 2px; }
.aval-fotos { gap: 12px; margin: 28px 0 32px; }
.aval-fotos a { flex: 0 0 150px; height: 150px; border-radius: 18px; box-shadow: var(--sombra-leve); }
.depoimentos { display: block; columns: 3 290px; column-gap: 18px; }
.depoimentos .dep { break-inside: avoid; margin-bottom: 18px; background: #fff; box-shadow: var(--sombra-leve); border: 1px solid var(--borda); padding: 22px 22px 20px; }
.dep .autor { display: flex; align-items: center; gap: 12px; }
.dep .avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--noite-3); flex: none; font-size: 16px; }
.dep .autor b { display: block; font-size: 15px; line-height: 1.2; }
.dep .verif { display: inline-flex; align-items: center; gap: 5px; color: var(--verde); font-size: 12.5px; font-weight: 800; }
.dep .verif::before { content: "✓"; display: grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: var(--verde); color: #fff; font-size: 9px; font-weight: 900; }
.dep p { font-size: 15.5px; line-height: 1.6; color: var(--texto); }
.dep .fotos-dep a { width: 92px; height: 92px; border-radius: 14px; }
@media (max-width: 640px) { .aval-fotos a { flex-basis: 120px; height: 120px; } }

/* Topo: ícone da pessoa abre "Minha conta" e "Rastrear pedido" */
.menu-conta { position: relative; padding: 0; border: 0; display: grid; }
.menu-conta > summary { list-style: none; }
.menu-conta > summary::-webkit-details-marker { display: none; }
.menu-conta > summary::after { content: none; }
.menu-conta[open] > summary { background: var(--areia); }
.menu-conta-painel { position: absolute; right: -6px; top: calc(100% + 10px); z-index: 50; width: 268px; background: #fff; border: 1px solid var(--borda); border-radius: 18px; padding: 8px; box-shadow: var(--sombra); animation: mc-entrar .18s ease; }
.menu-conta-painel::before { content: ""; position: absolute; top: -7px; right: 20px; width: 12px; height: 12px; background: #fff; border-left: 1px solid var(--borda); border-top: 1px solid var(--borda); transform: rotate(45deg); }
.menu-conta-painel a { display: flex; align-items: center; gap: 12px; padding: 10px 10px; border-radius: 12px; text-decoration: none; color: var(--texto); }
.menu-conta-painel a:hover { background: var(--areia); }
.menu-conta-painel b { display: block; font-size: 14.5px; line-height: 1.25; }
.menu-conta-painel small { display: block; font-size: 12.5px; color: var(--suave); font-weight: 500; }
.mc-ico { flex: 0 0 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--areia); color: var(--noite-3); }
.mc-ico svg { width: 20px; height: 20px; }
@keyframes mc-entrar { from { opacity: 0; transform: translateY(-4px); } }

/* Visor do colar: modos e medidor de 16 níveis */
.display small b { color: #fff; font-size: 15px; }
.medidor { display: grid; grid-template-columns: repeat(16, 1fr); gap: 4px; margin-top: 14px; height: 34px; align-items: end; }
.medidor i { display: block; border-radius: 4px; background: rgba(255,255,255,.1); transition: background .35s, box-shadow .35s; }
.medidor i:nth-child(n) { height: calc(30% + var(--h, 0%)); }
.medidor i:nth-child(1){--h:0%}.medidor i:nth-child(2){--h:4%}.medidor i:nth-child(3){--h:8%}.medidor i:nth-child(4){--h:12%}.medidor i:nth-child(5){--h:16%}.medidor i:nth-child(6){--h:20%}.medidor i:nth-child(7){--h:24%}.medidor i:nth-child(8){--h:28%}.medidor i:nth-child(9){--h:32%}.medidor i:nth-child(10){--h:36%}.medidor i:nth-child(11){--h:40%}.medidor i:nth-child(12){--h:46%}.medidor i:nth-child(13){--h:52%}.medidor i:nth-child(14){--h:58%}.medidor i:nth-child(15){--h:64%}.medidor i:nth-child(16){--h:70%}
.medidor i.on { background: linear-gradient(180deg, #c4b5fd, #7c3aed); box-shadow: 0 0 10px rgba(167,139,250,.45); }
.botoes.modos { grid-template-columns: repeat(5, 1fr); }
.botoes.modos span { font-size: 11px; letter-spacing: .5px; text-transform: uppercase; }
.botoes.modos span i { font-family: var(--serif); font-size: 24px; margin: 2px 0 0; }

/* Calor em 3 níveis */
.calor { display: grid; gap: 14px; }
.cal { display: grid; grid-template-columns: 70px 1fr 64px; gap: 12px; align-items: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 14px 16px; font-weight: 700; font-size: 14px; color: rgba(255,255,255,.8); }
.cal b { text-align: right; color: #fff; font-size: 16px; }
.cal .trilho { height: 10px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; }
.cal .trilho i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, #c4b5fd, #f0abfc, #fb923c); animation: aquecer 2.8s ease-in-out infinite alternate; transform-origin: left; }
.cal.ativo { border-color: rgba(196,181,253,.6); box-shadow: 0 0 0 4px rgba(124,58,237,.18); }
@keyframes aquecer { from { transform: scaleX(.82); filter: saturate(.8); } to { transform: scaleX(1); filter: saturate(1.2); } }

/* Galeria e blocos com as fotos em pé (4:5) */
.principal { aspect-ratio: 1; }
.bloco .img:not(.visual), .posicoes-grid .img { aspect-ratio: 4 / 5; }
.posicoes-grid .img img { width: 100%; height: 100%; object-fit: cover; }

/* Kits */
.variante { grid-template-columns: auto 1fr auto; }
.variante .vt small { display: block; margin-top: 3px; }
.variante .vp small.vde { text-decoration: line-through; }

/* Vídeo de demonstração */
.video-grid { display: grid; grid-template-columns: minmax(0, .8fr) 1fr; gap: 56px; align-items: center; }
.video-moldura { position: relative; border-radius: var(--raio); overflow: hidden; background: var(--noite); aspect-ratio: 9 / 16; max-height: 640px; max-width: 380px; width: 100%; justify-self: center; box-shadow: var(--sombra); }
.video-moldura video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-selo { position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.92); color: var(--noite); font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; }
.video-selo i { width: 8px; height: 8px; border-radius: 50%; background: #7c3aed; animation: pulsar-v 1.6s ease-in-out infinite; }
@keyframes pulsar-v { 50% { box-shadow: 0 0 0 6px rgba(124,58,237,0); } 0%, 100% { box-shadow: 0 0 0 0 rgba(124,58,237,.5); } }
@media (max-width: 960px) { .video-grid { grid-template-columns: 1fr; gap: 28px; } .video-moldura { max-width: 340px; } }

/* Onde usar: 6 áreas */
.funcoes.areas { grid-template-columns: repeat(6, 1fr); }
.areas .funcao { background: var(--areia); }
@media (max-width: 900px) { .funcoes.areas { grid-template-columns: repeat(3, 1fr); } }

/* Botões na cor da marca */
.btn { background: var(--noite-3); box-shadow: 0 14px 30px rgba(124, 58, 237, .28); }
.btn:hover { background: #6d28d9; box-shadow: 0 18px 36px rgba(124, 58, 237, .36); }
.btn-claro { background: #fff; color: var(--noite); box-shadow: 0 14px 30px rgba(0, 0, 0, .25); }
.btn-claro:hover { background: var(--lavanda-clara); }
.btn-sec { background: #fff; color: var(--noite); box-shadow: none; }
.btn-sec:hover { background: var(--areia); }
.variante:has(input:checked) { border-color: var(--noite-3); }
.variante:has(input:checked) .radio { border-color: var(--noite-3); }
.variante .radio::after { background: var(--noite-3); }
.variante .selo { background: var(--noite-3); }

/* ---------- Quem usa, aprova (GIFs) ---------- */
.quem-usa .gifs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
.quem-usa figure { margin: 0; border-radius: var(--raio); overflow: hidden; background: #000; box-shadow: var(--sombra-leve); position: relative; }
.quem-usa figure img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.quem-usa figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; font-size: 13px; font-weight: 700; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.72)); line-height: 1.3; }
@media (max-width: 760px) { .quem-usa .gifs { grid-template-columns: repeat(2, 1fr); gap: 10px; } .quem-usa figcaption { font-size: 12px; } }

/* ---------- Logo ---------- */
.logo .simbolo { width: 40px; height: 40px; flex: none; }
.logo span { font-family: var(--serif); font-weight: 600; letter-spacing: -0.03em; font-size: 26px; }

/* ---------- Foto da avaliação ampliada ---------- */
.foto-zoom { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; overflow: visible; }
.foto-zoom::backdrop { background: rgba(0,0,0,.86); }
.foto-zoom img { display: block; max-width: min(92vw, 900px); max-height: 86vh; border-radius: 14px; object-fit: contain; }
.foto-zoom button { position: fixed; border: 0; background: rgba(255,255,255,.14); color: #fff; width: 46px; height: 46px; border-radius: 50%; font-size: 30px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.foto-zoom .fz-fechar { top: 14px; right: 14px; }
.foto-zoom .fz-ant { left: 10px; top: 50%; transform: translateY(-50%); }
.foto-zoom .fz-prox { right: 10px; top: 50%; transform: translateY(-50%); }
.foto-zoom.so-uma .fz-ant, .foto-zoom.so-uma .fz-prox { display: none; }

.bloco .img.info, .posicoes-grid .img.info { aspect-ratio: 1; background: #fff; }
.posicoes-grid .img.info img, .bloco .img.info img { object-fit: contain; }

/* ---------- Escolha da cor ---------- */
.cores { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 18px; }
.cores button { display: grid; justify-items: center; gap: 4px; padding: 6px; border: 2px solid var(--linha, #e7e1e3); border-radius: 14px; background: #fff; cursor: pointer; font: inherit; font-size: 12px; font-weight: 700; color: var(--texto); transition: border-color .15s, transform .15s; }
.cores button img { width: 56px; height: 56px; object-fit: contain; border-radius: 10px; }
.cores button[aria-pressed="true"] { border-color: #7c3aed; box-shadow: 0 0 0 3px rgba(124,58,237,.14); }
.cores button:active { transform: scale(.97); }
