/* =========================================================
   ATELIER MGK – estilo
   Paleta: creme, rosa e verde-folha (a paleta original do site).
   Estrutura de loja: topo, pinceladas, vitrines por
   categoria, sobre a artista, personalizar, atalhos e carrinho.
   ========================================================= */
:root {
  --creme: #fbf7f2;
  --creme-escuro: #f3ebe2;
  --branco: #ffffff;
  --texto: #3b3236;
  --suave: #7a6c71;
  --rosa: #c25b84;
  --rosa-escuro: #a9476f;
  --rosa-claro: #f4dde6;
  --verde: #6f8f62;
  --verde-claro: #e3ebdd;
  --borda: #e8ddd3;

  --titulo: "Bodoni Moda", "Didot", Georgia, serif;
  --corpo: "Mulish", system-ui, sans-serif;
  --margem: clamp(1rem, 4vw, 3rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--creme); color: var(--texto); font: 400 1rem/1.65 var(--corpo); overflow-x: clip; -webkit-font-smoothing: antialiased; }
body.travado { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }
section, #colecoes > * { scroll-margin-top: 80px; }
:focus-visible { outline: 2px solid var(--rosa); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--titulo); font-weight: 500; line-height: 1.12; margin: 0; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
p { margin: 0 0 1rem; }

.enfeite { position: absolute; pointer-events: none; user-select: none; height: auto; z-index: 0; }

/* ---------------- Botões e ícones ---------------- */
.botoes { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 46px; padding: .7rem 1.5rem; border-radius: 999px; cursor: pointer;
  background: var(--rosa); color: var(--branco); border: 1.5px solid var(--rosa);
  font: 700 .95rem/1.2 var(--corpo); text-decoration: none; transition: background-color .2s, color .2s;
}
.botao:hover { background: var(--rosa-escuro); border-color: var(--rosa-escuro); }
.botao-contorno { background: transparent; color: var(--rosa); }
.botao-contorno:hover { background: var(--rosa-claro); color: var(--rosa-escuro); }
.botao-claro { background: var(--branco); color: var(--texto); border-color: var(--branco); }
.botao-claro:hover { background: var(--rosa-claro); border-color: var(--rosa-claro); }
.botao-largo { width: 100%; }
.botao-pequeno { min-height: 38px; padding: .45rem 1rem; font-size: .85rem; }

.icone { width: 44px; height: 44px; display: inline-grid; place-items: center; background: none; border: 0; color: var(--texto); cursor: pointer; border-radius: 50%; position: relative; }
.icone:hover { background: var(--creme-escuro); }
.icone svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------- Topo ---------------- */
.topo {
  position: sticky; top: 0; z-index: 30;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem;
  padding: .7rem var(--margem); background: rgba(251,247,242,.96); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--borda);
}
.menu-botao { display: none; }
.marca { font: italic 500 1.7rem/1 var(--titulo); text-decoration: none; color: var(--texto); }
.menu { display: flex; gap: clamp(1rem, 3vw, 2.2rem); justify-content: center; }
.menu a { text-decoration: none; color: var(--suave); font-weight: 600; font-size: .95rem; }
.menu a:hover { color: var(--rosa); }
.contador {
  position: absolute; top: 3px; right: 1px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px;
  background: var(--rosa); color: var(--branco); font: 700 .72rem/19px var(--corpo); text-align: center;
}

/* ---------------- Topo: pinceladas por tema ----------------
   Fotos recortadas em forma de pincelada (SVG com máscara + filtro #borda-pincel),
   sobre uma mancha de tinta que muda de cor com o tema. As amostras embaixo
   escolhem o tema; a ativa se pinta em --tempo-tema e o script passa ao próximo. */
.pinceladas { position: relative; background: var(--creme); overflow: hidden; isolation: isolate; }
.pinceladas-filtros { position: absolute; width: 0; height: 0; }
.pinceladas-mancha { position: absolute; z-index: -1; top: 2%; right: -2%; width: 62%; height: 84%; pointer-events: none; overflow: visible; }
.pinceladas-mancha path { fill: none; stroke: var(--rosa); stroke-width: 190; stroke-linecap: round; opacity: .2; transition: stroke 2.4s ease; }
.pinceladas-telas { display: grid; max-width: 1240px; margin: 0 auto; }
.tela {
  grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem); padding: clamp(1.8rem, 4vw, 3.2rem) var(--margem) .5rem;
  opacity: 0; visibility: hidden; transition: opacity 1.6s ease, visibility 0s linear 1.6s;
}
.tela.ativa { opacity: 1; visibility: visible; transition: opacity 1.6s ease, visibility 0s; }
.tela-texto h1, .tela-texto h2 { font-size: clamp(2.6rem, 5.2vw, 4.4rem); font-weight: 400; line-height: 1.04; letter-spacing: -.01em; margin-bottom: 1.1rem; text-wrap: balance; }
.tela-texto p { font-size: 1.08rem; color: #5d4f55; max-width: 26rem; margin-bottom: 1.6rem; }

.tela-fotos { position: relative; aspect-ratio: 10 / 7.4; }
.pincelada { position: absolute; height: auto; overflow: visible; transform: scale(.96) rotate(var(--giro, 0deg)); transition: transform 2.6s cubic-bezier(.2,.7,.2,1); }
.tela.ativa .pincelada { transform: rotate(var(--giro, 0deg)); }
.pincelada.p1 { --giro: -2deg; width: 48%; left: 10%; top: 2%; z-index: 2; }
.pincelada.p2 { --giro: 4deg; width: 33%; right: 1%; top: 0; transition-delay: .15s; }
.pincelada.p3 { --giro: -5deg; width: 29%; left: 52%; bottom: 0; z-index: 3; transition-delay: .3s; }

.pinceladas-amostras { display: flex; flex-wrap: wrap; gap: .4rem 2rem; max-width: 1240px; margin: 0 auto; padding: .6rem var(--margem) clamp(1.8rem, 3.5vw, 2.6rem); }
.amostra { display: grid; justify-items: start; gap: .1rem; padding: .35rem .2rem; background: none; border: 0; cursor: pointer; color: var(--suave); font: italic 400 1.08rem/1.2 var(--titulo); border-radius: 6px; transition: color .4s; }
.amostra:hover, .amostra[aria-pressed="true"] { color: var(--texto); }
.amostra svg { width: 116px; height: 24px; overflow: visible; }
.amostra path { fill: var(--tinta); }
.amostra .fundo { opacity: .28; transition: opacity .4s; }
.amostra:hover .fundo { opacity: .5; }
.amostra .tinta { clip-path: inset(0 100% 0 0); }
.amostra[aria-pressed="true"] .tinta { clip-path: inset(0 0 0 0); }
.passando .amostra[aria-pressed="true"] .tinta { animation: pintar-amostra var(--tempo-tema, 9s) linear both; }
.passando.pausado .amostra[aria-pressed="true"] .tinta { animation-play-state: paused; }
@keyframes pintar-amostra { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) {
  .tela, .tela.ativa, .pincelada, .pinceladas-mancha path { transition: none; }
}

/* ---------------- Vitrines (carrosséis por categoria) ---------------- */
.vitrine { padding: clamp(3rem, 6vw, 4.5rem) 0 0; }
.vitrine-topo { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 0 var(--margem); margin-bottom: 1.4rem; }
.vitrine-topo span { color: var(--suave); font-size: .9rem; }
.trilho {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * var(--margem) - 3 * 1.4rem) / 4);
  gap: 1.4rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--margem);
  padding: 0 var(--margem) .5rem; scrollbar-width: none;
}
.trilho::-webkit-scrollbar { display: none; }
.produto { scroll-snap-align: start; display: flex; flex-direction: column; text-align: center; }
.produto figure { margin: 0 0 .9rem; aspect-ratio: 4 / 5; overflow: hidden; background: var(--creme-escuro); }
.produto figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.produto:hover figure img { transform: scale(1.03); }
.produto h3 { font-size: 1.12rem; font-weight: 500; margin-bottom: .3rem; }
.produto .descricao { color: var(--suave); font-size: .88rem; margin-bottom: .6rem; flex: 1; }
.preco { font-weight: 700; font-size: 1.02rem; margin-bottom: .8rem; }
.preco small { font-weight: 400; color: var(--suave); }
.preco.consulta { font-weight: 600; color: var(--suave); }
.produto .botao { align-self: center; min-height: 42px; padding: .55rem 1.2rem; font-size: .88rem; }
.produto .botao.adicionado { background: var(--rosa-escuro); border-color: var(--rosa-escuro); }

.paginador { display: flex; align-items: center; justify-content: center; gap: .6rem; margin-top: 1.2rem; color: var(--suave); font-size: .85rem; }
.paginador button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--borda); background: var(--branco); color: var(--texto); cursor: pointer; font-size: 1.1rem; }
.paginador button:disabled { opacity: .35; cursor: default; }

/* ---------------- Sobre a artista ---------------- */
.sobre {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 5rem); align-items: center;
  max-width: 1180px; margin: clamp(4rem, 8vw, 6rem) auto 0; padding: 0 var(--margem);
}
.sobre-foto { position: relative; margin: 0; justify-self: center; width: min(100%, 380px); }
.sobre-foto > img:first-child { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; border-radius: 200px 200px 6px 6px; }
.e-sobre-1 { width: 140px; left: -60px; bottom: -30px; z-index: 2; transform: rotate(-16deg); }
.e-sobre-2 { width: 110px; right: -40px; top: -20px; z-index: 2; transform: rotate(16deg); }
.sobre-texto { max-width: 38rem; }
.sobre-texto h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: .3rem; }
.sobre-papel { font: italic 400 1.15rem/1.4 var(--titulo); color: var(--rosa); margin-bottom: 1.4rem; }
.sobre-texto p:not(.sobre-papel) { color: #4d4247; }

/* ---------------- Personalize ---------------- */
.personalize {
  position: relative; overflow: hidden; text-align: center;
  margin-top: clamp(4rem, 8vw, 6rem); padding: clamp(3.5rem, 7vw, 5rem) var(--margem);
  background: var(--rosa-claro);
}
.personalize > :not(.enfeite) { position: relative; z-index: 1; }
.personalize h2 { margin-bottom: .8rem; }
.personalize p { max-width: 36rem; margin: 0 auto 1.6rem; color: #5d4f55; }
.e-pers-1 { width: 380px; left: -90px; top: -60px; opacity: .55; transform: rotate(165deg); }
.e-pers-2 { width: 150px; right: 2%; bottom: -40px; opacity: .55; transform: rotate(-14deg); }

/* ---------------- Atalhos por categoria ---------------- */
.atalhos { max-width: 1180px; margin: 0 auto; padding: clamp(3.5rem, 7vw, 5rem) var(--margem) 0; }
.atalhos h2 { text-align: center; margin-bottom: 2rem; }
/* Linhas incompletas ficam centralizadas (ex.: 7 categorias = 4 + 3) */
.atalhos-grade { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.atalhos-grade .atalho { flex: 0 0 calc((100% - 3rem) / 4); }
.atalho { text-decoration: none; text-align: center; }
.atalho img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; margin-bottom: .6rem; }
.atalho span { font: 500 1.05rem/1.3 var(--titulo); }
.atalho:hover span { color: var(--rosa); }

/* ---------------- Contato e rodapé ---------------- */
.contato { text-align: center; padding: clamp(4rem, 8vw, 6rem) var(--margem); }
.contato .divisor { width: 220px; margin: 0 auto 1.4rem; }
.contato h2 { margin-bottom: .7rem; }
.contato > p { color: var(--suave); max-width: 32rem; margin: 0 auto 1.6rem; }
.rodape { text-align: center; padding: 2rem var(--margem); background: var(--rosa-claro); color: var(--texto); }
.rodape p { margin: 0; font-size: .88rem; opacity: .9; }
.rodape .rodape-marca { font: italic 500 1.5rem/1.2 var(--titulo); opacity: 1; margin-bottom: .3rem; }

/* ---------------- Carrinho ---------------- */
.fundo { position: fixed; inset: 0; background: rgba(59,50,54,.45); z-index: 40; }
.carrinho {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 50; width: min(420px, 100%);
  background: var(--creme); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .3s ease; box-shadow: -10px 0 40px rgba(59,50,54,.15);
  visibility: hidden;
}
.carrinho.aberto { transform: none; visibility: visible; }
@media (prefers-reduced-motion: reduce) { .carrinho, .aviso-flutuante { transition: none; } }
.carrinho-topo { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.2rem; border-bottom: 1px solid var(--borda); }
.carrinho-topo h2 { font-size: 1.5rem; }
.carrinho-passo { flex: 1; overflow-y: auto; display: flex; flex-direction: column; padding: 1rem 1.2rem 1.4rem; }
.itens { list-style: none; margin: 0; padding: 0; flex: 1; }
.item { display: grid; grid-template-columns: 72px 1fr auto; gap: .9rem; padding: 1rem 0; border-bottom: 1px solid var(--borda); align-items: start; }
.item img { width: 72px; height: 90px; object-fit: cover; }
.item h3 { font-size: 1rem; margin-bottom: .2rem; }
.item-preco { font-size: .88rem; color: var(--suave); margin: 0 0 .5rem; }
.qtd { display: inline-flex; align-items: center; border: 1px solid var(--borda); border-radius: 999px; background: var(--branco); }
.qtd button { width: 32px; height: 32px; border: 0; background: none; cursor: pointer; font-size: 1rem; color: var(--texto); }
.qtd span { min-width: 22px; text-align: center; font-weight: 700; font-size: .9rem; }
.remover { display: block; background: none; border: 0; color: var(--suave); font-size: .8rem; text-decoration: underline; cursor: pointer; padding: .4rem 0 0; }
.item-subtotal { font-weight: 700; font-size: .92rem; white-space: nowrap; }
.carrinho-vazio { text-align: center; padding: 3rem 0; color: var(--suave); }
.carrinho-resumo { border-top: 1px solid var(--borda); padding-top: 1rem; }
.linha-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .8rem; font-size: 1.05rem; }
.linha-total strong { font-size: 1.3rem; }
.nota { font-size: .82rem; color: var(--suave); margin: .7rem 0 0; }
#nota-consulta { margin: 0 0 .9rem; }

.voltar {
  align-self: flex-start; display: inline-flex; align-items: center; gap: .35rem;
  margin: 0 0 1.2rem -.4rem; padding: .35rem .8rem .35rem .4rem; border: 0; border-radius: 999px;
  background: none; color: var(--suave); font: 600 .9rem/1 var(--corpo); cursor: pointer;
  transition: background-color .2s, color .2s;
}
.voltar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.voltar:hover { background: var(--creme-escuro); color: var(--texto); }
#carrinho-titulo:focus { outline: none; }
.pix h3 { font-size: 1.4rem; margin-bottom: .6rem; }
.pix-valor { font-size: 1.05rem; }
.pix-valor strong { font-size: 1.3rem; }
.pix-rotulo { font-weight: 700; font-size: .9rem; margin: 1.2rem 0 .4rem; }
.pix-chave { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem .8rem; background: var(--branco); border: 1px dashed var(--rosa); border-radius: 10px; padding: .8rem 1rem; }
.pix-chave code { font: 700 1.05rem/1.2 var(--corpo); letter-spacing: .02em; white-space: nowrap; }
.pix-passos { margin: 1.2rem 0; padding-left: 1.2rem; color: var(--suave); font-size: .92rem; }
.pix-passos li { margin-bottom: .35rem; }
.campo { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 1rem; }
.campo input { display: block; width: 100%; margin-top: .4rem; min-height: 46px; padding: .6rem .9rem; border: 1px solid var(--borda); border-radius: 10px; background: var(--branco); font: 400 1rem var(--corpo); color: var(--texto); }

.aviso-flutuante {
  position: fixed; left: 50%; bottom: 1.4rem; z-index: 60; transform: translate(-50%, 200%);
  background: var(--texto); color: var(--branco); padding: .75rem 1.2rem; border-radius: 999px; font-weight: 600; font-size: .9rem;
  transition: transform .3s ease; pointer-events: none; max-width: calc(100% - 2rem); text-align: center;
}
.aviso-flutuante.visivel { transform: translate(-50%, 0); }

/* ---------------- Tablet ---------------- */
@media (max-width: 1000px) {
  .trilho { grid-auto-columns: calc((100% - 2 * var(--margem) - 2 * 1.2rem) / 2.6); gap: 1.2rem; }
}

/* ---------------- Celular ---------------- */
@media (max-width: 720px) {
  .menu-botao { display: inline-grid; }
  .topo { grid-template-columns: 44px 1fr 44px; padding: .5rem .75rem; }
  .marca { text-align: center; font-size: 1.5rem; }
  .menu {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--creme); border-bottom: 1px solid var(--borda); display: none;
  }
  .menu.aberto { display: flex; }
  .menu a { padding: 1rem 1.2rem; border-top: 1px solid var(--borda); font-size: 1rem; }
  .tela { grid-template-columns: 1fr; gap: 1.1rem; padding: 1.2rem 1rem .2rem; text-align: center; }
  .tela-fotos { order: -1; width: min(100%, 420px); margin: 0 auto; }
  .tela-texto p { margin-left: auto; margin-right: auto; font-size: 1rem; }
  .pinceladas-mancha { top: 0; right: -20%; width: 140%; height: 52%; }
  .pinceladas-amostras { display: grid; grid-template-columns: repeat(2, max-content); justify-content: center; gap: .2rem 1.6rem; padding: .4rem 1rem 1.8rem; }
  .trilho { grid-auto-columns: 72%; gap: 1rem; padding: 0 1rem .5rem; scroll-padding: 0 1rem; }
  .vitrine-topo { padding: 0 1rem; }
  .sobre { grid-template-columns: 1fr; }
  .sobre-foto { width: min(80%, 300px); }
  .e-sobre-1 { width: 100px; left: -40px; }
  .e-sobre-2 { width: 80px; right: -30px; }
  .e-pers-1 { width: 240px; left: -100px; opacity: .35; }
  .e-pers-2 { width: 90px; opacity: .35; }
  .atalhos-grade .atalho { flex-basis: calc((100% - 1rem) / 2); }
  .contato .botoes .botao { flex: 1 1 100%; }
}

/* =========================================================
   SITE COM VÁRIAS PÁGINAS
   ========================================================= */
.menu a[aria-current="page"] { color: var(--rosa); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }
.link-seta { color: var(--rosa); font-weight: 700; font-size: .92rem; text-decoration: underline; text-underline-offset: 4px; }
.centro { text-align: center; }
.botoes-esquerda { justify-content: flex-start; margin-top: 1.6rem; }

/* Rodapé com links */
.rodape-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.4rem; margin: .4rem 0 .9rem; }
.rodape-links a { text-decoration: none; font-weight: 600; font-size: .92rem; }
.rodape-links a:hover { color: var(--rosa); }

/* Topo de página interna */
.pagina-topo { position: relative; overflow: hidden; text-align: center; padding: clamp(3rem, 7vw, 5rem) var(--margem) clamp(2rem, 4vw, 3rem); }
.pagina-topo > :not(.enfeite) { position: relative; z-index: 1; }
.pagina-topo h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 400; margin-bottom: .8rem; }
.pagina-topo p { max-width: 36rem; margin: 0 auto; color: var(--suave); }
.pagina-topo-rosa { background: var(--rosa-claro); padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.pagina-topo-rosa p { color: #5d4f55; }
.e-topo-1 { width: 150px; left: -30px; top: 10px; opacity: .5; transform: rotate(-14deg); }
.e-topo-2 { width: 130px; right: 0; top: 20px; opacity: .5; transform: rotate(14deg); }
.pagina-topo-rosa .e-topo-1 { width: 340px; left: -90px; top: -60px; transform: rotate(165deg); }

/* Página de peças: filtros e grade */
.catalogo { max-width: 1240px; margin: 0 auto; padding: 0 var(--margem); }
.filtros { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 2.5rem; }
.filtros button {
  font: 600 .92rem/1 var(--corpo); color: var(--texto); background: var(--branco); cursor: pointer;
  border: 1px solid var(--borda); border-radius: 999px; padding: .7rem 1.1rem; min-height: 42px;
}
.filtros button span { color: var(--suave); font-weight: 400; margin-left: .15rem; }
.filtros button:hover { border-color: var(--rosa); }
.filtros button[aria-pressed="true"] { background: var(--rosa); border-color: var(--rosa); color: var(--branco); }
.filtros button[aria-pressed="true"] span { color: rgba(255,255,255,.8); }
.grade-produtos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.6rem 1.4rem; }
.faixa-ajuda { text-align: center; margin: clamp(3.5rem, 7vw, 5rem) var(--margem) 0; padding: 2.2rem 1rem; border-top: 1px solid var(--borda); }
.faixa-ajuda p { color: var(--suave); margin-bottom: 1rem; }
main > :last-child { margin-bottom: clamp(3.5rem, 7vw, 5rem); }

/* Página da artista */
.sobre-pagina { margin-top: clamp(3rem, 7vw, 5rem); }
.sobre-pagina h1 { font-size: clamp(2.3rem, 5vw, 3.4rem); font-weight: 500; margin-bottom: .3rem; }
.sobre-resumo { margin-bottom: 0; }
.sobre-resumo .botao { margin-top: .4rem; }

/* Página personalizar */
.passos-secao, .exemplos-secao { max-width: 1100px; margin: 0 auto; padding: clamp(3.5rem, 7vw, 5rem) var(--margem) 0; }
.passos-secao h2, .exemplos-secao h2 { text-align: center; margin-bottom: 2.2rem; }
.passos { list-style: none; padding: 0; margin: 0 0 2.5rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; counter-reset: passo; }
.passos li { counter-increment: passo; text-align: center; }
.passos li::before { content: counter(passo); display: block; font: italic 400 3.4rem/1 var(--titulo); color: var(--rosa); margin-bottom: .5rem; }
.passos h3 { font-size: 1.3rem; margin-bottom: .4rem; }
.passos p { color: var(--suave); max-width: 18rem; margin: 0 auto; }
.exemplos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 300px)); justify-content: center; gap: 1.4rem; }
.exemplos figure { margin: 0; text-align: center; }
.exemplos img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; margin-bottom: .6rem; }
.exemplos figcaption { font: 500 1.05rem/1.3 var(--titulo); }

/* Página de contato */
.contato-pagina { position: relative; overflow: hidden; padding-top: clamp(4rem, 9vw, 7rem); padding-bottom: clamp(4rem, 9vw, 7rem); }
.contato-pagina > :not(.enfeite) { position: relative; z-index: 1; }
.contato-pagina h1 { font-size: clamp(2.3rem, 5vw, 3.4rem); font-weight: 400; margin-bottom: .8rem; }
.e-con-1 { width: 180px; left: 4%; top: 40px; opacity: .55; transform: rotate(-22deg); }
.e-con-2 { width: 160px; right: 4%; top: 40px; opacity: .55; transform: scaleX(-1) rotate(-22deg); }

@media (max-width: 1000px) {
  .grade-produtos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .menu a[aria-current="page"] { text-decoration: none; background: var(--rosa-claro); }
  .filtros { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin-left: -1rem; margin-right: -1rem; padding: 0 1rem; }
  .filtros::-webkit-scrollbar { display: none; }
  .filtros button { white-space: nowrap; flex: none; }
  .grade-produtos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem .9rem; }
  .grade-produtos .produto h3 { font-size: 1rem; }
  .grade-produtos .produto .descricao { display: none; }
  .grade-produtos .produto .botao { padding: .5rem .8rem; font-size: .8rem; width: 100%; }
  .passos { grid-template-columns: 1fr; }
  .botoes-esquerda .botao { flex: 1 1 100%; }
  .contato-pagina .botoes .botao { flex: 1 1 100%; }
  .e-con-1, .e-con-2 { width: 100px; opacity: .35; }
  .e-con-1 { left: -40px; } .e-con-2 { right: -40px; }
  .e-topo-1 { width: 100px; left: -50px; opacity: .35; }
  .e-topo-2 { width: 90px; right: -40px; opacity: .35; }
  .pagina-topo-rosa .e-topo-1 { width: 220px; left: -110px; }
}

/* ---------------- Cartão: link para a página da peça ---------------- */
.produto-link { display: block; text-decoration: none; color: inherit; }
.produto-link figure { position: relative; }
.produto-link:hover h3 { color: var(--rosa); }
.exemplo-link { text-decoration: none; color: inherit; }
.exemplo-link:hover figcaption { color: var(--rosa); }

/* ---------------- Página da peça ---------------- */
.peca { max-width: 1180px; margin: 0 auto; padding: clamp(1.2rem, 3vw, 2rem) var(--margem) 0; }
.migalhas { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .88rem; color: var(--suave); margin-bottom: 1.2rem; }
.migalhas a { color: var(--suave); text-decoration: none; }
.migalhas a:hover { color: var(--rosa); text-decoration: underline; }
.peca-grade { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }

.galeria { position: relative; }
.galeria-trilho {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  aspect-ratio: 4 / 5; background: var(--creme-escuro); border-radius: 4px;
}
.galeria-trilho::-webkit-scrollbar { display: none; }
.galeria-trilho img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.galeria-seta {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: rgba(255,255,255,.35); border: 1px solid rgba(255,255,255,.6); color: var(--texto);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); transition: background-color .2s;
}
.galeria-seta:hover { background: rgba(255,255,255,.75); }
.galeria-seta svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.galeria-seta.anterior { left: .8rem; }
.galeria-seta.proxima { right: .8rem; }
.galeria-pontos { display: flex; justify-content: center; gap: .5rem; margin-top: .8rem; }
.galeria-pontos button { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 1px solid var(--rosa); background: transparent; cursor: pointer; }
.galeria-pontos button[aria-current="true"] { background: var(--rosa); }

.peca-info { padding-top: .5rem; }
.peca-categoria { color: var(--rosa); font: italic 400 1.05rem/1.4 var(--titulo); margin-bottom: .4rem; }
.peca-info h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: .9rem; }
.peca-info .preco { font-size: 1.15rem; margin-bottom: 1.4rem; }
.peca-texto p { color: #4d4247; }
.peca-botoes { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.6rem 0 1.2rem; }
.peca-botoes .botao.adicionado { background: var(--rosa-escuro); border-color: var(--rosa-escuro); }
.peca-nota { font-size: .88rem; color: var(--suave); border-top: 1px solid var(--borda); padding-top: 1rem; }
.peca-nota a { color: var(--rosa); font-weight: 700; }
.peca-nao-achada { text-align: center; padding: 4rem 0; }
.peca-nao-achada h1 { margin-bottom: 1rem; }

@media (max-width: 800px) {
  .peca-grade { grid-template-columns: 1fr; }
  .galeria { margin: 0 calc(-1 * var(--margem)); }
  .galeria-trilho { border-radius: 0; }
  .galeria-seta { width: 40px; height: 40px; }
  .peca-botoes .botao { flex: 1 1 100%; }
}
