/* ================= TELA INICIAL ================= */
.inicio {
  max-width: 560px;
  margin: 0 auto;
  padding: env(safe-area-inset-top, 0px) 20px 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.topo {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 0 16px;
  border-bottom: 1px solid var(--linha);
}
.topo__nome { font-size: 22px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.capa { padding: 34px 0 26px; }
.capa__etq { color: var(--cinza); display: block; margin-bottom: 14px; }
.capa__titulo { font-size: clamp(56px, 17vw, 92px); margin: 0 0 18px; }
.capa__texto { margin: 0; color: var(--cinza); max-width: 34ch; font-size: 15px; }

/* Bloco LOOKS (combos) */
.looks-bloco {
  position: relative; display: block; width: 100%;
  height: 170px; margin-bottom: 14px;
  background: var(--off); color: var(--preto);
  border: 2px solid var(--preto); border-radius: 2px;
  text-align: left; overflow: hidden;
}
.looks-bloco__midia { position: absolute; top: 0; right: 0; bottom: 0; width: 42%; background: var(--palco); border-left: 2px solid var(--preto); }
.looks-bloco__midia img { width: 100%; height: 100%; object-fit: cover; }
.looks-bloco__midia svg { position: absolute; inset: 10%; width: 80%; height: 80%; }
.looks-bloco__etq { position: absolute; top: 16px; left: 18px; color: var(--cinza); }
.looks-bloco__titulo { position: absolute; left: 18px; bottom: 44px; font-size: 64px; }
.looks-bloco__qtd { position: absolute; left: 18px; bottom: 16px; right: 44%; display: flex; align-items: center; gap: 8px; line-height: 1.3; }
.looks-bloco__qtd .seta-l { color: var(--laranja); flex: none; }
.looks-bloco:active { opacity: .92; }

/* Bloco de destaque (1ª categoria) */
.destaque {
  position: relative; display: block; width: 100%;
  height: 300px;
  background: var(--preto); color: var(--off);
  text-align: left; overflow: hidden;
  border-radius: 2px;
}
.destaque__midia { position: absolute; inset: 0 0 0 38%; background: var(--palco); }
.destaque__midia img { width: 100%; height: 100%; object-fit: cover; }
.destaque__midia svg { position: absolute; inset: 8% 6%; width: 88%; height: 84%; }
.destaque__midia::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--preto) 0%, rgba(14,14,14,.0) 45%);
}
.destaque__texto {
  position: absolute; left: 20px; bottom: 20px; right: 20px;
  display: flex; flex-direction: column; gap: 10px;
}
.destaque__num { position: absolute; top: 18px; left: 20px; color: var(--cinza-escuro); }
.destaque__nome { font-size: clamp(46px, 14vw, 72px); max-width: 80%; word-break: break-word; }
.destaque__qtd { display: flex; align-items: center; gap: 8px; color: var(--off); }
.destaque__qtd .seta-l { color: var(--laranja); }
.destaque:active { opacity: .92; }

/* Lista numerada */
.lista { list-style: none; margin: 8px 0 0; padding: 0; }
.lista li { border-bottom: 1px solid var(--linha); }
.lista__btn {
  width: 100%; display: grid; grid-template-columns: 36px 1fr auto 20px; align-items: center; gap: 12px;
  padding: 20px 0; text-align: left;
}
.lista__num { color: var(--cinza); }
.lista__nome { font-size: 30px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lista__qtd { color: var(--cinza); }
.lista__btn svg { transition: transform .2s; }
.lista__btn:hover svg, .lista__btn:active svg { transform: translateX(4px); }

.vazio { color: var(--cinza); padding: 24px 0; }

.rodape {
  margin-top: auto;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 40px 0 calc(24px + env(safe-area-inset-bottom, 0px));
  color: var(--cinza);
}
.rodape__admin { text-decoration: none; color: var(--cinza); border-bottom: 1px solid var(--linha); padding-bottom: 2px; }
.rodape__admin:hover { color: var(--preto); }

/* ================= TELA DA CATEGORIA ================= */
body.em-categoria { overflow: hidden; background: var(--preto); }
.cat {
  position: fixed; inset: 0; z-index: 10;
  background: var(--preto); color: var(--off);
}
.cat__coluna {
  height: 100%; max-width: 520px; margin: 0 auto;
  display: flex; flex-direction: column;
}
.cat__barra { padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 10px; flex: none; }
.cat__linha { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.cat__voltar { display: inline-flex; align-items: center; gap: 4px; color: var(--off); padding: 6px 0; justify-self: start; }
.cat__nome { font-size: 20px; line-height: 1.25; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; }
.cat__contador { justify-self: end; color: var(--cinza-escuro); font-variant-numeric: tabular-nums; }
.cat__progresso { display: flex; gap: 4px; margin-top: 10px; }
.cat__progresso span { flex: 1; height: 3px; background: rgba(243,241,236,.2); transition: background .2s; }
.cat__progresso span.ativo { background: var(--laranja); }

/* Trilho horizontal: um modelo por tela */
.trilho {
  flex: 1; min-height: 0;
  display: flex;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.trilho::-webkit-scrollbar, .rolo::-webkit-scrollbar { display: none; }

/* Modelo: área de fotos (rola) + painel fixo (não rola) */
.modelo {
  flex: 0 0 100%; height: 100%;
  display: flex; flex-direction: column;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
}

.fotos { position: relative; flex: 1 1 0; min-height: 34%; background: var(--palco); overflow: hidden; }

/* Fotos do item: rolagem vertical, uma por vez.
   Sem touch-action restrito: o navegador decide o eixo pelo gesto,
   então o deslize lateral continua chegando ao trilho. */
.rolo {
  height: 100%;
  overflow-y: auto; overflow-x: hidden;
  scroll-snap-type: y mandatory;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
}
.foto {
  margin: 0; height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.foto img { width: 100%; height: 100%; object-fit: cover; }

/* Slide sem foto: desenho de reserva + nome gigante apagado ao fundo */
.foto--arte { position: relative; overflow: hidden; }
.fantasma {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%);
  font-size: 100px; /* ajustado via JS para caber na largura */
  line-height: 1;
  color: rgba(14,14,14,.07);
  white-space: nowrap; pointer-events: none; user-select: none;
}
.arte { position: absolute; inset: 8% 12% 14%; display: flex; align-items: center; justify-content: center; }
.arte svg { width: 100%; height: 100%; max-width: 360px; filter: drop-shadow(0 10px 0 rgba(14,14,14,.08)); }

/* Indicadores sobre a foto */
.tracos {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 5px;
  padding: 7px 5px; background: rgba(14,14,14,.55); border-radius: 2px;
  pointer-events: none;
}
.tracos span { width: 3px; height: 16px; background: rgba(243,241,236,.35); transition: height .2s, background .2s; }
.tracos span.ativo { background: var(--off); height: 24px; }

.selo-foto { position: absolute; left: 14px; bottom: 14px; background: var(--preto); color: var(--off); pointer-events: none; }
.selo-esgotado {
  position: absolute; left: 14px; top: 14px; pointer-events: none;
  background: var(--off); color: var(--preto); border: 2px solid var(--preto);
  font-size: 12px; padding: 6px 14px;
}
.dica {
  position: absolute; right: 14px; bottom: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--off); color: var(--preto); padding: 6px 10px; border-radius: 2px;
  pointer-events: none;
  animation: cutucar 1.6s ease-in-out infinite;
}
.dica svg { color: var(--laranja); }
.fotos.rolou .dica { display: none; } /* só na 1ª foto */
@keyframes cutucar { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-6px); } }

/* Painel fixo */
.painel { flex: none; background: var(--preto); padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 0px)); }
.painel__topo { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.painel__nome { font-size: 30px; line-height: 1; margin: 0; word-break: break-word; }
.painel__preco { font-size: 28px; line-height: 1; color: var(--laranja); white-space: nowrap; }

.escolha { margin: 12px 0 14px; }
.tamanhos { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; border-radius: 2px; transition: box-shadow .2s; }
.tamanhos.alerta { box-shadow: 0 0 0 1px var(--laranja); }
.tamanhos.sacode { animation: sacode .35s ease; }
@keyframes sacode { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.tamanhos__rot { color: var(--cinza-escuro); margin-right: 6px; }
.tam-info { color: var(--cinza-escuro); padding: 6px 0; }
.aviso { margin: 8px 0 0; color: var(--laranja); }
.faz-parte {
  display: inline-flex; align-items: center; gap: 6px; margin: 0 0 12px;
  color: var(--cinza-escuro); text-decoration: none; border-bottom: 1px solid #3a3a3a; padding-bottom: 2px;
}
.faz-parte:hover { color: var(--off); }
.faz-parte .seta-l { width: 14px; height: 14px; }
.tam {
  font-family: var(--anton); font-size: 19px; text-transform: uppercase;
  color: var(--cinza-escuro); padding: 4px 8px 3px; min-width: 38px; text-align: center;
  border-bottom: 3px solid transparent; border-radius: 0;
}
.tam:hover { color: var(--off); }
.tam.sel { color: var(--off); border-bottom-color: var(--laranja); }

/* Abas no produto com look: "Só a peça" / "O look" */
.painel--abas { display: flex; flex-direction: column; flex: 0 1 auto; min-height: 0; max-height: 66%; padding-top: 6px; }
.abas { flex: none; display: flex; border-bottom: 1px solid #2a2a2a; margin-bottom: 14px; }
.aba {
  flex: 1 1 0; min-width: 0; padding: 11px 6px 9px; text-align: center;
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--cinza-escuro); border-bottom: 3px solid transparent; margin-bottom: -1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.aba:hover { color: var(--off); }
.aba.on { color: var(--off); border-bottom-color: var(--laranja); }
.aba--select { position: relative; padding: 0; display: flex; }
.aba--select select {
  width: 100%; appearance: none; -webkit-appearance: none; border: 0; background: transparent; cursor: pointer;
  color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; text-align: center; text-align-last: center;
  padding: 11px 6px 9px;
}
.aba--select select option { background: var(--preto); color: var(--off); text-transform: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.aba-painel { display: flex; flex-direction: column; min-height: 0; flex: 0 1 auto; }
.aba-painel > * { flex: none; }
.aba-painel--look .look-itens {
  flex: 0 1 auto; min-height: 56px; overflow-y: auto; overscroll-behavior: contain;
  list-style: none; margin: 12px 0; padding: 0; border-top: 1px solid #2a2a2a;
}

/* Painel do look: a lista de itens rola dentro do painel; o botão fica sempre visível */
.painel--look { display: flex; flex-direction: column; flex: 0 1 auto; min-height: 0; max-height: 66%; }
.painel--look > * { flex: none; }
.look-precos { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 8px; }
.look-precos__de { color: var(--cinza-escuro); text-decoration: line-through; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.look-precos__por { color: var(--laranja); font-size: 28px; line-height: 1; }
.look-precos .selo { align-self: center; }
.painel--look .look-itens {
  flex: 0 1 auto; min-height: 56px; overflow-y: auto; overscroll-behavior: contain;
  list-style: none; margin: 12px 0 12px; padding: 0;
  border-top: 1px solid #2a2a2a;
}
.look-item { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid #2a2a2a; margin: 0; }
.look-item__mini { width: 44px; height: 44px; background: var(--palco); overflow: hidden; border-radius: 2px; }
.look-item__mini img { width: 100%; height: 100%; object-fit: cover; }
.look-item__mini svg { width: 100%; height: 100%; }
.look-item__topo { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.look-item__nome { font-family: var(--anton); text-transform: uppercase; font-size: 17px; line-height: 1.15; }
.look-item__preco { color: var(--cinza-escuro); font-size: 13px; white-space: nowrap; }
.look-item .tamanhos { margin-top: 4px; }
.look-item .tam-info { padding: 2px 0; font-size: 10px; }
.look-item .aviso { margin-top: 4px; font-size: 10px; }
.tamanhos--compacta .tam { font-size: 16px; min-width: 30px; padding: 2px 5px 1px; }

.pedir {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--off); color: var(--preto);
  font-family: var(--anton); font-size: 21px; text-transform: uppercase; letter-spacing: .02em;
  padding: 15px 16px 14px; border-radius: 2px; text-decoration: none;
}
.pedir svg { color: var(--laranja); transition: transform .2s; }
.pedir:hover svg { transform: translateX(4px); }
.pedir:active { transform: scale(.99); }

/* Setas no computador */
.seta {
  display: none;
  position: fixed; top: 50%; transform: translateY(-50%); z-index: 11;
  width: 52px; height: 52px; align-items: center; justify-content: center;
  border: 1px solid rgba(243,241,236,.35); color: var(--off); border-radius: 2px;
}
.seta:hover:not(:disabled) { border-color: var(--off); }
.seta:disabled { opacity: .25; cursor: default; }
.seta--ant { left: calc(50% - 260px - 76px); }
.seta--prox { right: calc(50% - 260px - 76px); }
@media (hover: hover) and (min-width: 700px) {
  .seta { display: flex; }
}

/* Telas baixas: painel compacto para sobrar espaço às fotos */
@media (max-height: 640px) {
  .cat__barra { padding-top: calc(8px + env(safe-area-inset-top, 0px)); padding-bottom: 8px; }
  .cat__progresso { margin-top: 7px; }
  .painel { padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); }
  .painel__nome { font-size: 22px; }
  .painel__preco { font-size: 21px; }
  .escolha { margin: 6px 0 8px; }
  .tamanhos__rot { display: none; }
  .faz-parte { margin-bottom: 8px; }
  .painel--look, .painel--abas { max-height: 70%; }
  .abas { margin-bottom: 8px; }
  .aba, .aba--select select { padding-top: 8px; padding-bottom: 6px; }
  .aba-painel--look .look-itens { margin: 8px 0; }
  .look-precos__por { font-size: 22px; }
  .painel--look .look-itens { margin: 8px 0; }
  .look-item { padding: 6px 0; }
  .tam { font-size: 16px; padding: 3px 6px 2px; min-width: 32px; }
  .pedir { font-size: 18px; padding: 10px 14px 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .dica { animation: none; }
  .trilho, .rolo { scroll-behavior: auto; }
}
