/* fontes servidas pelo próprio site (LGPD: o visitante não é repassado ao Google). Figtree e Quicksand, licença OFL */
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fontes/figtree-latin.woff2) format('woff2'); }
@font-face { font-family: 'Quicksand'; font-style: normal; font-weight: 500 700; font-display: swap; src: url(fontes/quicksand-latin.woff2) format('woff2'); }

/* 4orma — landing. O traço arredondado do "4" (um fio de filamento) é a única forma da página:
   botões, máscaras de foto, marcadores, a faixa e a marca do rodapé. */
:root {
  --fundo: #141414;        /* campo escuro do logo */
  --fundo-2: #202020;
  --paper: #F8F7F6;
  --surface: #EFECEA;
  --ink: #1C1C1C;
  --muted: #55504D;
  --claro: #F8F7F6;
  --claro-muted: #C9C3C0;
  --coral: #F7766E;
  --coral-forte: #EE5C54;
  --rose: #F9B0A8;
  --rose-soft: #FCE4E0;
  --accent: var(--coral);
  --accent-ink: var(--ink);

  --font-display: "Quicksand", system-ui, sans-serif;
  --font-text: "Figtree", system-ui, sans-serif;

  --step-small: 0.875rem;
  --step-body: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-lead: clamp(1.125rem, 1.02rem + 0.45vw, 1.375rem);
  --step-head: clamp(2rem, 1.2rem + 3vw, 3.75rem);
  --step-display: clamp(3rem, 0.6rem + 6.4vw, 6.5rem);

  --margin: clamp(1rem, 5vw, 5rem);
  --radius: 1.75rem;
  --pill: 999px;
  --bg: var(--paper);
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--paper); overflow-x: hidden; }
h1, h2, h3 { font-weight: 700; }
.button { border-radius: var(--pill); font-weight: 600; min-height: 3.25rem; padding: 0 1.75rem; }
.button.escuro { background: var(--ink); color: var(--claro); }
.button.pequeno { min-height: 2.5rem; padding: 0 1.1rem; font-size: var(--step-small); }
.button.largo { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--coral-forte); }
  .button.escuro:hover { background: #000; }
}

/* ---------- topo ---------- */
.topo { position: absolute; inset: 0 0 auto 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding-block: 1.5rem; color: var(--claro); }
.marca { display: inline-flex; align-items: flex-end; gap: 0.1rem; text-decoration: none; }
.marca img { width: 2.6rem; height: auto; background: none; }
.marca span { font-family: var(--font-display); font-weight: 600; font-size: 2rem; line-height: 1; letter-spacing: -0.01em; margin-bottom: -0.1rem; }
.menu { display: flex; gap: clamp(1rem, 2.4vw, 2.25rem); font-weight: 500; }
.menu a { text-decoration-thickness: 2px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; background: var(--fundo); color: var(--claro); overflow: hidden; display: flex; align-items: center; }
.hero-forma { position: absolute; width: 84vw; max-width: none; right: -30vw; top: 55%; translate: 0 -50%; background: none; pointer-events: none; user-select: none; }
.hero-texto { position: relative; z-index: 1; width: 100%; padding-block: 8rem 6rem; }
.hero h1 { font-size: clamp(3rem, 0.4rem + 6.4vw, 6.5rem); line-height: 1; letter-spacing: -0.03em; max-width: 9.5em; }
.hero .lead { margin-top: 2.25rem; color: var(--claro-muted); max-width: 30ch; font-size: clamp(1.125rem, 1rem + 0.35vw, 1.25rem); }
.acoes { margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; }
.acoes .link-plain { font-weight: 500; text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.hero-peca { position: absolute; z-index: 2; right: clamp(2rem, 16vw, 18rem); bottom: 7svh; width: clamp(12rem, 17vw, 16.5rem); display: grid; gap: 0.75rem; color: var(--claro); text-decoration: none; }
.hero-peca-foto { display: block; aspect-ratio: 3 / 4.2; border-radius: var(--pill); overflow: hidden; background: var(--paper); outline: 0.5rem solid var(--fundo); }
.hero-peca-foto img { width: 100%; height: 100%; object-fit: cover; transition: opacity 500ms ease, scale 900ms var(--ease-expo); }
.hero-peca.troca .hero-peca-foto img { opacity: 0; scale: 1.06; }
.hero-peca-info { display: grid; gap: 0.15rem; padding: 0.9rem 1.1rem 1rem; border-radius: 1.25rem; background: var(--fundo); transition: opacity 400ms ease; }
.hero-peca.troca .hero-peca-info { opacity: 0; }
.hero-peca-selo[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .hero-peca.troca .hero-peca-foto img { scale: 1; } }
.hero-peca-selo { justify-self: start; margin-bottom: 0.4rem; padding: 0.2rem 0.7rem; border-radius: var(--pill); background: var(--coral); color: var(--ink); font-size: var(--step-small); font-weight: 600; }
.hero-peca-nome { font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; line-height: 1.2; }
.hero-peca-preco { color: var(--claro-muted); }
@media (hover: hover) and (pointer: fine) {
  .hero-peca:hover .hero-peca-foto img { scale: 1.04; }
  .hero-peca:hover .hero-peca-nome { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-peca { animation: entra-peca 1200ms 700ms var(--ease-expo) both; }
}
@keyframes entra-peca { from { opacity: 0; translate: 0 3rem; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-forma { animation: entra-forma 1600ms var(--ease-expo) both, flutua 9s 1.6s ease-in-out infinite alternate; }
}
/* o "4" impresso camada por camada (app.js): enquanto imprime, a entrada e a flutuação ficam paradas */
.hero.imprimindo .hero-forma { animation: none; }
.hero.impresso .hero-forma { animation: flutua 9s ease-in-out infinite alternate; }
.hero-sombra { position: absolute; background: none; opacity: 0.08; pointer-events: none; user-select: none; transition: opacity 900ms ease; }
.hero.impresso .hero-sombra { opacity: 0; }
.mesa-x { position: absolute; right: 0; height: 2px; background: linear-gradient(90deg, transparent, rgba(248,247,246,0.22) 15%, rgba(248,247,246,0.22) 85%, transparent); pointer-events: none; transition: opacity 600ms ease; }
.bico { position: absolute; width: 3.25em; height: 4.25em; translate: -50% -100%; pointer-events: none; transition: opacity 600ms ease; }
.bico::before { content: ""; position: absolute; inset: 0 0 1.4em; border-radius: 0.5em; background: #3a3a3a; box-shadow: inset 0 -0.35em 0 #2b2b2b, inset 0 0.3em 0 #4a4a4a; }
.bico::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 1.3em; height: 1.45em; translate: -50% 0; background: linear-gradient(#d7b16a, #b38a45); clip-path: polygon(0 0, 100% 0, 64% 100%, 36% 100%); }
.bico i { position: absolute; left: 50%; bottom: -0.2em; width: 0.45em; height: 0.45em; translate: -50% 0; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0.9em 0.25em rgba(247,118,110,0.65); }
.hero.impresso .bico, .hero.impresso .mesa-x { opacity: 0; }
.bico, .mesa-x { z-index: 3; }
/* a cápsula de novidade entra quando o "4" termina de imprimir */
.hero.imprimindo .hero-peca { animation: none; opacity: 0; translate: 0 3rem; }
.hero.impresso .hero-peca { animation: entra-peca 1100ms var(--ease-expo) both; }
@keyframes entra-forma { from { opacity: 0; transform: translateX(8vw) rotate(-6deg) scale(0.94); } }
@keyframes flutua { to { transform: rotate(2.5deg) translateY(-1.5%); } }
@media (max-width: 47.99em) {
  .hero { align-items: flex-start; min-height: 100svh; }
  .hero-texto { padding-block: 15svh 0; }
  .hero h1 { font-size: 11.5vw; }
  .hero .lead { font-size: 1rem; margin-top: 1.5rem; }
  .acoes { margin-top: 1.75rem; }
  .hero-forma { width: 130vw; right: auto; left: 50%; top: 58svh; translate: -46% 0; }
  .hero-peca { right: var(--margin); bottom: 4svh; width: 10rem; gap: 0.5rem; }
  .hero-peca-info { padding: 0.7rem 0.85rem 0.8rem; }
  .hero-peca-nome { font-size: 1rem; }
  .hero-peca-selo { margin-bottom: 0.2rem; }
}

/* ---------- vitrine (catálogo) ---------- */
.vitrine { background: var(--paper); }
.vitrine-topo { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem); }
.vitrine-topo h2 { grid-column: 1 / 8; }
.vitrine-sub { grid-column: 8 / 13; color: var(--muted); }

/* barra do catálogo: busca, coleções e o pedido; gruda no alto da tela enquanto a grade passa */
.ferramentas { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: nowrap; align-items: center; gap: 0.75rem 1rem; margin-inline: calc(var(--margin) * -1); padding: 0.85rem var(--margin); background: var(--paper); box-shadow: 0 1px 0 rgba(28,28,28,0.08); }
.ferramentas[hidden] { display: none; }
.busca { flex: 0 1 18rem; min-width: 11rem; }
.busca input { width: 100%; min-height: 2.75rem; padding: 0 1.1rem 0 2.6rem; border: 0; border-radius: var(--pill); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%2355504D' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='m12.5 12.5 4 4'/%3E%3C/svg%3E") no-repeat 1rem 50%; font: inherit; font-size: 1rem; color: var(--ink); }
.busca input::placeholder { color: var(--muted); }
.busca input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.abas { display: flex; gap: 0.5rem; flex: 1 1 0; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.abas::-webkit-scrollbar { display: none; }
.abas button { flex: none; min-height: 2.75rem; padding: 0 1.1rem; border-radius: var(--pill); background: var(--surface); color: var(--muted); font-weight: 500; font-size: 1rem; transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.abas button[aria-pressed="true"] { background: var(--ink); color: var(--claro); }
.abas button:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .abas button:not([aria-pressed="true"]):hover { color: var(--ink); background: var(--rose-soft); } }
.ver-pedido { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 2.75rem; padding: 0 0.4rem 0 1.1rem; border-radius: var(--pill); background: var(--ink); color: var(--claro); font-weight: 600; font-size: 0.9375rem; white-space: nowrap; }
.ver-pedido[hidden] { display: none; }
.ver-pedido strong { min-width: 2rem; padding: 0.3rem 0.6rem; border-radius: var(--pill); background: var(--coral); color: var(--ink); text-align: center; }
.ver-pedido.pulsa { animation: pulsa 520ms var(--ease-out); }
.ferramentas .ver-pedido { margin-left: auto; }

.fila-total { margin-top: 1.75rem; scroll-margin-top: 6rem; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; }
.fila-total:empty { display: none; }
.fila-total.falhou { font-family: var(--font-text); font-weight: 400; font-size: 1rem; letter-spacing: 0; color: var(--muted); max-width: 46ch; }
.fila-total.falhou a { color: var(--ink); }
.vitrine .fila { margin-top: 1.25rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem clamp(0.75rem, 1.2vw, 1rem); padding: 0; }
@media (min-width: 64em) { .vitrine .fila { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (min-width: 90em) { .vitrine .fila { grid-template-columns: repeat(7, minmax(0, 1fr)); } }

/* card: foto e nome abrem a peça; o botão põe no pedido ali mesmo */
.peca { position: relative; display: flex; flex-direction: column; text-align: left; }
.peca-link { display: block; color: var(--ink); text-decoration: none; }
.peca-foto { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--pill); overflow: hidden; background: var(--surface); }
.peca-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-soft); }
@media (hover: hover) and (pointer: fine) {
  .peca-link:hover .peca-foto img { transform: scale(1.05); }
  .peca-link:hover .peca-nome { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; text-decoration-color: var(--coral); }
}
.peca-link:focus-visible { outline: none; }
.peca-link:focus-visible .peca-foto { outline: 3px solid var(--ink); outline-offset: 3px; }
.peca-nome { display: block; margin-top: 0.65rem; font-weight: 600; font-size: 0.9375rem; line-height: 1.3; }
.peca-preco { display: block; margin-top: 0.15rem; color: var(--ink); font-size: 0.9375rem; font-weight: 600; }
.peca-ncores { color: var(--muted); font-weight: 400; font-size: 0.875rem; }
.peca-preco { margin-bottom: 0.75rem; }   /* o botão vai para o pé do card: todos alinhados na linha */
.peca-add { margin-top: auto; min-height: 2.75rem; border-radius: var(--pill); background: var(--rose-soft); color: var(--ink); font-weight: 600; font-size: 0.9375rem; transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.peca-add.tem { background: var(--ink); color: var(--claro); }
.peca-add.ok { background: var(--coral); color: var(--ink); }
.peca-add:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .peca-add:not(.tem):hover { background: var(--rose); } }
.selo { position: absolute; top: 1.1rem; left: 50%; translate: -50% 0; background: var(--coral); color: var(--ink); font-size: 0.875rem; font-weight: 600; padding: 0.2rem 0.7rem; border-radius: var(--pill); }
/* escolha rápida de cor no próprio card */
.peca.escolhendo .peca-add { display: none; }
.cores-rapidas { margin-top: 0.75rem; display: grid; gap: 0.5rem; }
.cores-rapidas .rotulo { margin: 0; }
.cores-rapidas .cores { gap: 0.4rem; }
.cores-rapidas .cores button { min-height: 2.25rem; padding: 0 0.75rem; }
.cores-voltar { justify-self: start; font-size: 0.875rem; color: var(--muted); text-decoration: underline; text-underline-offset: 0.2em; min-height: 2rem; }
.nada { grid-column: 1 / -1; padding: 1rem 0 2rem; color: var(--muted); max-width: 52ch; }
.nada a { color: var(--ink); font-weight: 600; }
.mais-box { display: flex; justify-content: center; margin-top: clamp(2rem, 4vw, 3rem); }
.mais-box .button[hidden] { display: none; }

@media (max-width: 47.99em) {
  .vitrine-topo h2, .vitrine-sub { grid-column: 1 / -1; }
  .vitrine-sub { margin-top: 1rem; }
  .ferramentas { flex-wrap: wrap; gap: 0.6rem; padding-block: 0.7rem; }
  .busca { flex: 1 1 0; }
  .abas { order: 3; flex-basis: 100%; margin-inline: calc(var(--margin) * -1); padding-inline: var(--margin); }
  .abas button { min-height: 2.5rem; padding: 0 1rem; font-size: 0.9375rem; }
  .ver-pedido { padding-left: 0.9rem; font-size: 0; gap: 0; }   /* no celular só o número; o texto fica para o leitor de tela */
  .ver-pedido strong { font-size: 0.9375rem; }
  .ver-pedido::before { content: "Pedido"; font-size: 0.875rem; margin-right: 0.5rem; }
  .vitrine .fila { grid-template-columns: 1fr 1fr; gap: 1.5rem 0.75rem; }
  .vitrine .fila .peca-foto { aspect-ratio: 1 / 1; }   /* no celular a foto quadrada mostra mais peças por tela */
  .peca-foto { border-radius: 7rem; }
}

/* ---------- peça aberta ---------- */
.ficha-peca { width: min(68rem, calc(100vw - 2 * var(--margin))); max-width: none; max-height: 92dvh; margin: auto; padding: 0; border: 0; border-radius: var(--radius); background: var(--paper); color: var(--ink); overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 30px 80px rgba(0,0,0,0.35); /* taste-skill-ignore: janela aberta sobre a página */ }
.ficha-peca::backdrop { background: rgba(20,20,20,0.6); }
.ficha-peca[open] { animation: ficha-entra 420ms var(--ease-expo); }
@keyframes ficha-entra { from { opacity: 0; transform: translateY(24px) scale(0.985); } }
.ficha-cab { position: sticky; top: 0; z-index: 2; display: flex; justify-content: flex-end; gap: 0.5rem; padding: 1rem 1rem 0; pointer-events: none; }
.ficha-cab > * { pointer-events: auto; box-shadow: 0 4px 14px rgba(0,0,0,0.12); }
.ficha-cab .fechar { background: var(--paper); }
.ficha-corpo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 3.5vw, 3.5rem); padding: 0 clamp(1.25rem, 3.5vw, 3rem) clamp(1.5rem, 3vw, 2.5rem); margin-top: -2.75rem; }
.ficha-foto { display: grid; gap: 0.75rem; align-content: start; }
.ficha-foto-quadro { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.ficha-foto-quadro img { width: 100%; height: 100%; object-fit: cover; }
.ficha-foto-quadro img[data-fundo="recorte"] { padding: 10%; }
.miniaturas { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.miniaturas button { width: 4.25rem; height: 4.25rem; padding: 0; border-radius: 1rem; overflow: hidden; background: var(--surface); outline: 2px solid transparent; outline-offset: 2px; transition: outline-color var(--t-hover) ease; }
.miniaturas button[aria-current="true"] { outline-color: var(--coral); }
.miniaturas img { width: 100%; height: 100%; object-fit: cover; }
.miniaturas img[data-fundo="recorte"] { padding: 10%; }
.ficha-info { display: flex; flex-direction: column; gap: 1.25rem; padding-top: clamp(2.75rem, 4vw, 3.75rem); }
.ficha-colecao { font-size: var(--step-small); font-weight: 600; color: var(--coral-forte); }
.ficha-colecao:empty { display: none; }
.ficha-colecao + .placa-nome { margin-top: -0.85rem; }
.placa-nome { font-family: var(--font-display); font-size: clamp(1.75rem, 0.9rem + 2vw, 2.5rem); line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
.tamanho { display: flex; align-items: center; gap: 1rem; margin: 0; padding: 0.75rem 1.25rem 0.75rem 0.75rem; border-radius: 1.25rem; background: var(--surface); }
.tamanho[hidden] { display: none; }
.tamanho svg { flex: none; width: 9.5rem; height: auto; }
.t-chao { stroke: var(--muted); stroke-width: 1; stroke-linecap: round; opacity: 0.5; }
.t-peca { fill: var(--coral); }
.t-ref circle, .t-ref rect { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 3 2.5; }
.t-rotulo { font: 600 11px var(--font-text); fill: var(--muted); }
.tamanho figcaption { display: grid; gap: 0.2rem; }
.tamanho-frase { font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; line-height: 1.2; }
.tamanho-medidas { font-size: 0.875rem; color: var(--muted); }
.placa-desc { max-width: 46ch; }
.placa-desc:empty { display: none; }
.fatos { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; color: var(--muted); font-size: 0.875rem; }
.fatos li { display: flex; align-items: center; gap: 0.55rem; }
.fatos li::before { content: ""; width: 0.95rem; height: 0.42rem; border-radius: var(--pill); background: var(--coral); rotate: -42deg; flex: none; }
.fatos li.destaque { color: var(--ink); font-weight: 600; }
.escolha { display: flex; flex-wrap: wrap; gap: 1.25rem 2.5rem; }
.rotulo { font-size: var(--step-small); font-weight: 600; margin-bottom: 0.6rem; }
.cores { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cores button { min-height: 2.5rem; padding: 0 1rem; border-radius: var(--pill); background: var(--surface); font-size: 0.875rem; display: inline-flex; align-items: center; gap: 0.5rem; transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.cores button i { width: 0.85rem; height: 0.85rem; border-radius: 50%; background: var(--c, #999); outline: 1.5px solid rgba(0,0,0,0.2); outline-offset: -1.5px; }
.cores button[aria-checked="true"] { background: var(--ink); color: var(--claro); }
.cores button:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .cores button:not([aria-checked="true"]):hover { background: var(--rose-soft); } }
.passo { display: inline-flex; align-items: center; background: var(--surface); border-radius: var(--pill); }
.passo button { width: 2.75rem; height: 2.75rem; border-radius: 50%; font-size: 1.25rem; transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.passo button:active { transform: scale(0.9); }
@media (hover: hover) and (pointer: fine) { .passo button:hover { background: var(--rose-soft); } }
.passo input { width: 3.25rem; text-align: center; background: none; border: 0; font-weight: 600; font-size: 1rem; -moz-appearance: textfield; }
.passo input::-webkit-inner-spin-button, .passo input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.preco { font-size: 1rem; color: var(--muted); }
.preco strong { font-family: var(--font-display); font-size: clamp(1.75rem, 1.2rem + 1.2vw, 2.25rem); color: var(--ink); letter-spacing: -0.02em; margin-right: 0.35rem; }
.faixas { margin-top: -0.75rem; font-size: 0.875rem; color: var(--muted); }
.faixas:empty { display: none; }
.celulas { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0.625rem; }
.celula { min-height: 3.75rem; border-radius: var(--pill); display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 1.25rem; font-weight: 600; font-size: 1rem; text-decoration: none; transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.celula:active { transform: scale(0.97); }
.celula.escura { background: var(--ink); color: var(--claro); }
.celula.escura.ok { background: var(--coral); color: var(--ink); }
.celula.clara { background: var(--rose-soft); color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .celula.escura:not(.ok):hover { background: #000; }
  .celula.clara:hover { background: var(--rose); }
}
.parecidas { padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.25rem, 3.5vw, 3rem) clamp(1.5rem, 3vw, 2.5rem); background: var(--surface); }
.parecidas[hidden] { display: none; }
.parecidas h3 { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 1rem; }
.parecidas-fila { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; padding: 0; }
.parecidas-fila .peca-foto { background: var(--paper); }
html.travada { overflow: hidden; }

@media (max-width: 47.99em) {
  /* no celular a peça sobe de baixo e ocupa quase a tela toda; o botão de adicionar fica sempre à mão */
  .ficha-peca { width: 100vw; max-height: 94dvh; margin: auto 0 0; border-radius: var(--radius) var(--radius) 0 0; }
  .ficha-peca[open] { animation: ficha-sobe 420ms var(--ease-expo); }
  .ficha-corpo { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; padding-inline: var(--margin); }
  .ficha-foto-quadro { aspect-ratio: 5 / 4; }
  .ficha-info { padding-top: 0; gap: 1.1rem; }
  .celulas { position: sticky; bottom: 0; z-index: 1; order: 9; margin-inline: calc(var(--margin) * -1); padding: 0.75rem var(--margin) calc(0.75rem + env(safe-area-inset-bottom)); background: var(--paper); box-shadow: 0 -1px 0 rgba(28,28,28,0.08); }
  .celula { min-height: 3.5rem; padding: 0 0.75rem; font-size: 0.9375rem; }
  .parecidas { padding-inline: var(--margin); }
  .parecidas-fila { grid-template-columns: repeat(4, 42%); overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--margin) * -1); padding-inline: var(--margin); }
  .parecidas-fila li { scroll-snap-align: start; }
}
@keyframes ficha-sobe { from { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) { .ficha-peca[open] { animation: none; } }

/* fotos do catálogo: o mesmo fundo em toda parte (o tipo vem do app.js, lendo a borda da foto) */
.peca-foto, .ficha-foto-quadro, .hero-peca-foto { background: var(--surface); }
img[data-fundo="recorte"] { object-fit: contain; padding: 16% 14%; }
img[data-fundo="estudio"] { filter: brightness(var(--clarear, 1)); mix-blend-mode: multiply; }

/* ---------- faixa ---------- */
.faixa { background: var(--coral); color: var(--ink); overflow: hidden; padding-block: clamp(1.5rem, 3vw, 2.5rem); }
.faixa-trilho { display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 3rem); width: max-content; font-family: var(--font-display); font-weight: 700; font-size: clamp(2.25rem, 1.2rem + 4vw, 5.5rem); letter-spacing: -0.03em; white-space: nowrap; }
.faixa-trilho i { flex: none; width: 1.6em; height: 0.62em; border-radius: var(--pill); background: var(--rose); rotate: -42deg; }
.faixa-trilho i:nth-of-type(3n+2) { background: var(--ink); }
.faixa-trilho i:nth-of-type(3n) { background: var(--claro); }
@media (prefers-reduced-motion: no-preference) {
  .faixa-trilho { animation: corre 38s linear infinite; }
}
@keyframes corre { to { transform: translateX(-50%); } }
/* com movimento reduzido a faixa não corre: mostra a frase uma vez, inteira e centrada (quebra linha se faltar espaço) */
@media (prefers-reduced-motion: reduce) {
  .faixa-trilho { width: auto; flex-wrap: wrap; justify-content: center; row-gap: 0.75rem; padding-inline: var(--gutter, 1.25rem); font-size: clamp(1.6rem, 0.7rem + 2vw, 2.75rem); }
  .faixa-trilho > :nth-child(n+6) { display: none; }
}

/* ---------- etapas (sob medida) ---------- */
.etapas { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 2rem; padding-top: var(--section); }
.etapas-cab { grid-column: 1 / 8; grid-row: 1; align-self: start; max-width: 34rem; position: relative; z-index: 1; }
.etapas-cab p { margin-top: 1.25rem; }
.etapas-cab .button { margin-top: 1.75rem; }
.etapas-lista { grid-column: 1 / -1; grid-row: 1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 10px; align-items: end; padding: 0; list-style: none; }
.etapa h3 { margin-top: 1.25rem; font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; }
.etapa p { margin-top: 0.4rem; color: var(--muted); max-width: 32ch; }
.etapa .tile { border-radius: var(--radius); overflow: hidden; }
.etapa img, .etapa video { width: 100%; height: 100%; object-fit: cover; }
.e1 { grid-column: 1 / 4; }
.e1 .tile { height: 30vh; min-height: 13rem; background: var(--rose); }
.e2 { grid-column: 4 / 8; }
.e2 .tile { height: 44vh; min-height: 18rem; background: var(--fundo); }
.e2 img { object-position: 50% 0; }
.e3 { grid-column: 8 / 13; grid-row: 1; }
.e3 .tile { height: 60vh; min-height: 24rem; background: var(--coral); }
/* o cabeçalho ocupa o vazio acima das duas peças menores */
.etapas-cab { margin-bottom: calc(44vh + 9rem); }
@media (max-width: 47.99em) {
  .etapas-cab { grid-column: 1 / -1; margin-bottom: 1rem; }
  .etapas-lista { grid-row: 2; grid-template-columns: 1fr; row-gap: 1.75rem; }
  .e1, .e2, .e3 { grid-column: 1; grid-row: auto; }
  .e1 .tile { height: 34vw; min-height: 9rem; }
  .e2 .tile { height: 46vw; min-height: 12rem; }
  .e3 .tile { height: 62vw; min-height: 14rem; }
  .etapa h3 { font-size: 1.125rem; }
}

/* ---------- instagram ---------- */
.insta { background: var(--rose-soft); padding-block: var(--section); overflow: hidden; }
.insta[hidden] { display: none; }
.insta-cab { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem 3rem; }
.insta-sub { margin-top: 1.25rem; max-width: 34ch; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); }
.insta .insta-trilho { margin-top: clamp(2.5rem, 5vw, 4rem); display: flex; gap: clamp(0.75rem, 1.4vw, 1.25rem); padding: 0 var(--margin) 0.5rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--margin); scrollbar-width: none; overscroll-behavior-x: contain; }
.insta-trilho::-webkit-scrollbar { display: none; }
.insta-exemplo { margin-top: 0.75rem; font-size: 0.875rem; font-weight: 600; color: var(--coral-forte); }   /* só no servidor de teste, sem chave */
.insta-trilho li { flex: none; width: clamp(13rem, 21vw, 18.5rem); scroll-snap-align: start; }
.post { display: block; text-decoration: none; color: var(--ink); }
.post-foto { position: relative; display: block; aspect-ratio: 3 / 4.2; border-radius: var(--pill); overflow: hidden; background: var(--surface); }
.post-foto img, .post-foto video { width: 100%; height: 100%; object-fit: cover; transition: scale 700ms var(--ease-soft); }
.post-foto video { position: absolute; inset: 0; }
.post-tipo { position: absolute; top: 1.1rem; left: 50%; translate: -50% 0; padding: 0.2rem 0.7rem; border-radius: var(--pill); background: var(--ink); color: var(--claro); font-size: 0.875rem; font-weight: 600; }
.post-data { display: block; margin-top: 0.9rem; font-size: 0.875rem; color: var(--muted); }
.post-legenda { display: -webkit-box; margin-top: 0.2rem; font-size: 1rem; line-height: 1.4; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (hover: hover) and (pointer: fine) {
  .post:hover .post-foto img, .post:hover .post-foto video { scale: 1.04; }
  .post:hover .post-legenda { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }
}
@media (max-width: 47.99em) {
  .insta-cab .button { width: 100%; }
  .insta-trilho li { width: 68vw; }
}

/* ---------- dúvidas: fichas com aba ---------- */
.duvidas { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding-top: var(--section); }
.duvidas h2 { grid-column: 3 / 11; margin-bottom: 3.5rem; }
.fichas { grid-column: 3 / 11; }
.ficha { --cor: var(--rose); --tinta: var(--ink); position: relative; margin-top: -1.25rem; background: var(--cor); color: var(--tinta); border-radius: var(--radius); }
.ficha:first-child { margin-top: 2.25rem; }
.ficha:nth-child(4n+2) { --cor: var(--coral); }
.ficha:nth-child(4n+3) { --cor: var(--ink); --tinta: var(--claro); }
.ficha:nth-child(4n+4) { --cor: var(--surface); }
.ficha + .ficha { margin-top: 3.25rem; }   /* a aba (2,25rem) cabe inteira no vão, com folga até a ficha de cima */
.ficha summary { list-style: none; cursor: pointer; display: block; padding: 1.9rem 2.25rem 2rem; }
.ficha summary::-webkit-details-marker { display: none; }
.aba { position: absolute; top: -2.2rem; left: calc(1.25rem + var(--n) * (100% - 16rem) / 5); width: 12.5rem; height: 2.25rem; display: flex; align-items: center; padding: 0 1.25rem; background: var(--cor); border-radius: 1.3rem 1.3rem 0 0; font-size: 1rem; font-weight: 600; }
.pergunta { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; }
.pergunta::after { content: ""; flex: none; width: 1.6rem; height: 0.6rem; border-radius: var(--pill); background: currentColor; rotate: 0deg; transition: rotate var(--t-ui) var(--ease-out); }
.ficha[open] .pergunta::after { rotate: -42deg; }
.ficha p { padding: 0 2.25rem 2.25rem; max-width: 52ch; font-size: 1rem; }
/* abre e fecha deslizando a altura (onde o navegador sabe animar até "auto"; nos outros, abre direto) */
@media (prefers-reduced-motion: no-preference) {
  .fichas { interpolate-size: allow-keywords; }
  .ficha::details-content { block-size: 0; overflow: hidden; transition: block-size 450ms var(--ease-out), content-visibility 450ms allow-discrete; }
  .ficha[open]::details-content { block-size: auto; }
  .ficha p { opacity: 0; transition: opacity 300ms ease; }
  .ficha[open] p { opacity: 1; transition-delay: 120ms; }
  .pergunta::after { transition-duration: 450ms; }
}
@media (max-width: 47.99em) {
  .duvidas h2, .fichas { grid-column: 1 / -1; }
  .duvidas h2 { margin-bottom: 2rem; }
  /* no celular as abas não descem em degraus: todas alinhadas à esquerda, do tamanho do texto, com vão curto */
  .aba { width: auto; left: 1.25rem; top: -1.9rem; height: 2rem; font-size: 0.875rem; padding: 0 1rem; border-radius: 1rem 1rem 0 0; }
  .ficha:first-child { margin-top: 2rem; }
  .ficha + .ficha { margin-top: 2.75rem; }
  .ficha summary { padding: 1.5rem 1.25rem 1.6rem; }
  .pergunta { font-size: 1.125rem; }
  .ficha p { padding: 0 1.25rem 1.5rem; font-size: 1rem; }
}

/* ---------- chamada final ---------- */
.chamada { overflow: hidden; padding-block: var(--section); }
.chamada-fileira { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 12px; padding-inline: var(--margin); }
.chamada-fileira > * { height: 22.5rem; border-radius: var(--radius); overflow: hidden; }
.lado-foto { grid-column: 1 / 3; margin-left: calc(var(--margin) * -1 - 3rem); background: var(--fundo); }
.lado-foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; }
.lado-cor { grid-column: 11 / 13; margin-right: calc(var(--margin) * -1 - 3rem); background: var(--ink); }
.chamada-centro { grid-column: 3 / 11; background: var(--coral); color: var(--ink); padding: 2.5rem clamp(2rem, 4vw, 3.5rem); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.chamada-centro h2 { font-size: clamp(1.75rem, 0.9rem + 2vw, 2.5rem); line-height: 1.1; letter-spacing: -0.02em; max-width: 16em; }
.chamada-centro p { margin-top: 1rem; font-size: 1rem; }
.chamada-centro .button { margin-top: 1.75rem; }
@media (max-width: 47.99em) {
  .chamada-fileira { grid-template-columns: 1fr 1fr; row-gap: 12px; }
  .chamada-centro { grid-column: 1 / -1; grid-row: 1; height: auto; min-height: 19rem; padding: 2rem 1.5rem; }
  .lado-foto, .lado-cor { height: 7.5rem; margin: 0; grid-row: 2; }
  .lado-foto { grid-column: 1; }
  .lado-cor { grid-column: 2; }
  .chamada-centro h2 { font-size: 1.75rem; }
}

/* ---------- rodapé ---------- */
.rodape { background: var(--fundo); color: var(--claro); padding-block: clamp(4rem, 8vw, 7rem) 2rem; }
.marca-grande { container-type: inline-size; display: flex; align-items: flex-end; gap: 1cqi; }
.marca-grande img { width: 30cqi; height: auto; flex: none; background: none; margin-bottom: -2.5cqi; }
.marca-grande span { font-family: var(--font-display); font-weight: 600; font-size: 26cqi; line-height: 0.74; letter-spacing: -0.03em; white-space: nowrap; }
.rodape-grade { margin-top: 3.5rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem var(--gutter); }
.rodape-grade h2 { font-family: var(--font-text); font-size: 0.875rem; font-weight: 600; color: var(--claro-muted); margin-bottom: 0.9rem; }
.rodape-grade a, .rodape-grade p { display: block; font-size: 0.875rem; margin-bottom: 0.55rem; }
.rodape-grade .contato a { font-size: 1.125rem; font-weight: 500; }
.rodape-fim { margin-top: 3.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; font-size: 0.875rem; color: var(--claro-muted); }
.creditos { max-width: 70ch; }
.rodape-fim .button { color: var(--ink); }
@media (max-width: 47.99em) {
  .rodape-grade { grid-template-columns: 1fr 1fr; }
  .rodape-grade .contato { grid-column: 1 / -1; }
}

/* ---------- pedido: botão flutuante e gaveta ---------- */
.sacola { position: fixed; z-index: 20; right: var(--margin); bottom: 1.25rem; display: inline-flex; align-items: center; gap: 0.9rem; min-height: 3.5rem; padding: 0 0.6rem 0 1.5rem; border-radius: var(--pill); background: var(--ink); color: var(--claro); font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,0.25); /* taste-skill-ignore: barra fixa sobre a página */ transition: transform var(--t-press) var(--ease-out); }
.sacola[hidden] { display: none; }
.na-vitrine .sacola { display: none; }
.sacola strong { background: var(--coral); color: var(--ink); border-radius: var(--pill); padding: 0.55rem 1rem; font-weight: 600; }
.sacola:active { transform: scale(0.97); }
.sacola.pulsa { animation: pulsa 520ms var(--ease-out); }
@keyframes pulsa { 40% { transform: scale(1.07); } }
.gaveta { width: min(34rem, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0 0 0 auto; padding: 0; border: 0; background: var(--paper); color: var(--ink); overflow-y: auto; box-shadow: -20px 0 60px rgba(0,0,0,0.25); /* taste-skill-ignore: gaveta aberta sobre a página */ }
.gaveta::backdrop { background: rgba(20,20,20,0.55); }
.gaveta[open] { animation: gaveta-entra 380ms var(--ease-out); }
@keyframes gaveta-entra { from { transform: translateX(40px); opacity: 0; } }
.gaveta-cab { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 1.5rem 1.75rem 1rem; background: var(--paper); }
.gaveta h2 { font-size: 1.75rem; letter-spacing: -0.02em; }
.fechar { min-height: 2.75rem; padding: 0 1.1rem; border-radius: var(--pill); background: var(--surface); font-weight: 600; font-size: 0.875rem; }
#pedidoCorpo, .enviado { padding: 0 1.75rem 2rem; }
.itens { display: grid; gap: 1rem; padding: 0; list-style: none; }
.item { display: grid; grid-template-columns: 4rem 1fr auto; gap: 0.25rem 1rem; align-items: center; }
.item img { grid-row: span 2; width: 4rem; height: 5.5rem; object-fit: cover; border-radius: var(--pill); }
.item-nome { font-weight: 600; font-size: 0.875rem; line-height: 1.3; }
.item-det { font-size: 0.875rem; color: var(--muted); }
.item-acoes { grid-column: 3; grid-row: 1 / 3; display: flex; flex-direction: column; align-items: flex-end; gap: 0.4rem; }
.item .passo button { width: 2.25rem; height: 2.25rem; font-size: 1rem; }
.item .passo span { min-width: 1.75rem; text-align: center; font-weight: 600; font-size: 0.875rem; }
.remover { font-size: 0.875rem; color: var(--muted); text-decoration: underline; text-underline-offset: 0.2em; }
.total { margin-top: 1.5rem; padding-top: 1.25rem; display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; border-top: 0; background: none; }
.total strong { font-family: var(--font-display); font-size: 1.75rem; }
.nota { font-size: 0.875rem; color: var(--muted); margin-top: 0.25rem; }
#formPedido { margin-top: 1.75rem; display: grid; gap: 1rem; }
#formPedido label { display: grid; gap: 0.4rem; font-size: 0.875rem; font-weight: 600; }
#formPedido small { font-weight: 400; color: var(--muted); }
#formPedido .field { border-radius: 1rem; background: var(--surface); font-weight: 400; }
#formPedido textarea { resize: vertical; }
.aceite { grid-template-columns: auto 1fr !important; align-items: start; font-weight: 400 !important; }
.aceite input { width: 1.25rem; height: 1.25rem; margin-top: 0.15rem; accent-color: var(--coral-forte); }
.isca { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* taste-skill-ignore: campo-isca escondido */
.erro { background: var(--rose-soft); padding: 0.8rem 1rem; border-radius: 1rem; font-size: 0.875rem; }
.vazio { color: var(--muted); padding-block: 1rem; }
.enviado-titulo { font-family: var(--font-display); font-size: 2rem; font-weight: 700; margin-bottom: 0.75rem; }
.enviado .button { margin-top: 1.5rem; }

/* logo protegida: não arrasta, não seleciona, sem "salvar imagem" no clique direito nem no toque longo do celular
   (o clique passa para o elemento de trás; app.js também bloqueia o menu sobre a logo) */
img[data-logo], .hero-sombra { pointer-events: none; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none; }
.marca, .marca-grande, .hero { -webkit-touch-callout: none; }
