/* Catálogo no visual CE·2 (item 9, Fase 5; SPEC 6.7). Navegação de
   03/Nov/26 (pesquisa Rommanel/Vivara/Mejuri, Baymard, NN/g): topo escuro
   baixo, linhas em abas de texto e "Filtrar · Ordenar · N peças" numa
   barra de vidro presa ao rolar; tipo em chips com a contagem logo acima
   da grade; filtros ativos removíveis; "Seu pedido" escuro no pé. */

/* ---------- topo escuro curto ---------- */
/* Só "Catálogo" e o nome da linha (04/Nov/26): a faixa preta é o
   cabeçalho (77 px; 68 no celular) e uma linha de título. */
.ct-topo { padding: 92px 0 18px; background-color: #0d0d0c; color: #efe9dd; }
@media (max-width: 760px) { .ct-topo { padding-top: 82px; } }
.ct-topo__in { max-width: 860px; }
.ct-topo__rot { font-size: .78rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.ct-topo h1 { margin-top: 2px; font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.1; font-weight: 300; color: #f6f0e4; text-wrap: balance; }


/* ---------- vitrine clara ---------- */
.ct { background: var(--bg); padding-top: 0; padding-bottom: 140px; }
.ct-nav {
  position: sticky; top: 76px; z-index: 30; /* logo abaixo do cabeçalho (77 px no computador, 68 no celular) */
  background: rgba(247,245,242,.86);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid rgba(13,13,12,.08);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .ct-nav { background: var(--bg); }
}
@media (max-width: 760px) { .ct-nav { top: 67px; } }

/* abas de linha: texto em serifada, traço embaixo da ativa; rolam no celular */
.ct-abas { display: flex; gap: 26px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid rgba(13,13,12,.08); }
.ct-abas::-webkit-scrollbar { display: none; }
.ct-aba {
  flex: none; display: inline-flex; align-items: center; min-height: 46px; padding: 2px 0 0;
  font-family: var(--font-head); font-size: 1.12rem; color: var(--text-muted); white-space: nowrap; text-decoration: none;
  border-bottom: 1.5px solid transparent; transition: color .2s ease, border-color .2s ease;
}
.ct-aba:hover { color: var(--text); }
.ct-aba[aria-current="page"] { color: var(--text); border-bottom-color: var(--text); }

/* Filtrar · Ordenar · N peças (· busca no computador) */
.ct-barra-filtros { display: flex; align-items: center; gap: 6px; min-height: 48px; }
.ct-acao {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 10px; margin-left: -10px;
  border: 0; border-radius: 999px; background: transparent; color: var(--text); font: inherit; font-size: .88rem; cursor: pointer;
}
.ct-acao + .ct-ordenar { margin-left: 4px; }
.ct-acao:hover, .ct-acao:focus-within { background: rgba(13,13,12,.05); }
.ct-acao__n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #0d0d0c; color: #f6f0e4; font-size: .7rem; }
.ct-ordenar { margin: 0; }
.ct-ordenar select {
  border: 0; background: transparent; font: inherit; font-size: .88rem; color: var(--text); cursor: pointer;
  -webkit-appearance: none; appearance: none; padding: 0 2px; outline: none;
}
.ct-total { margin-left: auto; font-size: .82rem; color: var(--text-muted); white-space: nowrap; }
.ct-busca { flex: 0 1 300px; min-width: 0; margin-left: 12px; }
.ct-busca__caixa {
  display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px;
  background: #fffefb; border: 1px solid #d9d3ca; border-radius: 999px; color: var(--text-muted);
}
.ct-busca__caixa:focus-within { border-color: var(--accent-texto); }
.ct-busca__caixa input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: inherit; font-size: 16px; color: var(--text); }
/* no celular a busca vai pro "Filtrar": a barra presa fica com ~96 px */
@media (max-width: 720px) { .ct-busca { display: none; } }

/* tipo em chips com a contagem, acima da grade */
.ct-tipos { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 14px 0 2px; margin-right: calc(-1 * var(--gutter, 0px)); }
.ct-tipos::-webkit-scrollbar { display: none; }
.ct-tipo {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 999px;
  border: 1px solid #d9d3ca; background: #fffefb; color: var(--text); font-size: .84rem; white-space: nowrap; text-decoration: none;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.ct-tipo span { color: var(--text-muted); font-size: .76rem; }
.ct-tipo:hover { border-color: var(--text); color: var(--text); }
.ct-tipo[aria-current="page"] { background: #0d0d0c; border-color: #0d0d0c; color: #f6f0e4; }
.ct-tipo[aria-current="page"] span { color: rgba(246,240,228,.7); }

/* filtros aplicados: chips com × e "Limpar" */
.ct-ativos { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 12px; }
.ct-ativo {
  display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 12px; border-radius: 999px;
  background: #ece6da; color: var(--text); font-size: .8rem; text-decoration: none;
}
.ct-ativo span { font-size: 1rem; line-height: 1; color: var(--text-muted); }
.ct-ativo:hover span { color: var(--text); }
.ct-ativos__limpar { font-size: .8rem; color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; }

.ct-vitrine { padding-top: 4px; }
.ct-vitrine .ct-grade { margin-top: 14px; }

/* ---------- aba Coleções (capas e fotos com pontos, colecoes.css) ---------- */
.ct-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 16px; margin-top: 18px; }
.ct-cols .cl-cartao { min-height: clamp(340px, 52vh, 540px); border-radius: 18px; }
.ct-cols .cl-cartao__nome { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.ct-col { max-width: 1080px; margin: 0 auto; padding-top: 18px; }
.ct-col__volta { display: inline-flex; align-items: center; min-height: 40px; font-size: .86rem; color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; }
.ct-col__volta:hover { color: var(--text); }
.ct-col__chamada { margin: 4px 0 0; font-family: var(--font-head); font-size: clamp(1.2rem, 2vw, 1.5rem); color: var(--text); }
.ct-col__capa { margin: 16px 0 0; border-radius: 18px; overflow: hidden; background: #e9e3d8; }
.ct-col__capa img { width: 100%; max-height: 70vh; object-fit: cover; display: block; }
.ct-col__texto { margin-top: 16px; max-width: 680px; color: var(--text-muted); line-height: 1.65; }
.ct-col__dica { margin: 18px 0 0; font-size: .84rem; color: var(--text-muted); }
.ct-col__cap { margin: 30px 0 0; font-family: var(--font-head); font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 400; }
.ct-col .cl-fotos { margin-top: 14px; }
.ct-col .cl-foto { background: #e9e3d8; border-radius: 18px; }

/* ---------- pronta entrega: selo dourado e faixa em "Todas" (seção 12) ---------- */
.ct-card--pronta .ct-selo { background: rgba(201,168,76,.92); color: #0d0d0c; }
.ct-faixa-pe { margin-top: 18px; }
.ct-faixa-pe__cab { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ct-faixa-pe__cab h2 { margin: 0; font-family: var(--font-head); font-weight: 400; font-size: 1.5rem; }
.ct-faixa-pe__cab a { font-size: .86rem; color: var(--text); text-underline-offset: 3px; }
.ct-faixa-pe__trilho { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 46%); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 12px 0 4px; }
.ct-faixa-pe__trilho::-webkit-scrollbar { display: none; }
.ct-faixa-pe__trilho .ct-card { scroll-snap-align: start; }
@media (min-width: 720px) { .ct-faixa-pe__trilho { grid-auto-columns: minmax(220px, calc((100% - 60px) / 4)); gap: 20px; } }

/* ---------- cartões ---------- */
.ct-grade { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 720px) { .ct-grade { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; } }
.ct-card {
  background: #fffefb; border: 1px solid var(--border); border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column; transition: transform .3s ease, box-shadow .3s ease, border-color .2s ease;
}
.ct-card:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -28px rgba(13,13,12,.5); }
.ct-card.escolhido { border-color: var(--accent-texto); box-shadow: 0 0 0 1px var(--accent-texto); }
.ct-foto { display: block; width: 100%; aspect-ratio: 1 / 1; padding: 0; border: 0; background: #efe9e1; cursor: pointer; position: relative; overflow: hidden; }
.ct-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.ct-card:hover .ct-foto img { transform: scale(1.04); }
/* Colar infantil: foto em pé com o nome embaixo; o corte do quadrado tira o topo da corrente, não o nome. */
.ct-card[data-linha="infantil"] .ct-foto img { object-position: center bottom; }
.ct-selo {
  position: absolute; left: 10px; top: 10px; padding: 4px 10px; border-radius: 999px;
  background: rgba(13,13,12,.55); color: #f6f0e4; font-size: .66rem; font-weight: 500; letter-spacing: .04em;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.ct-corpo { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ct-cod { font-size: .72rem; letter-spacing: .06em; color: var(--text-muted); }
.ct-nome { margin: 0; font-family: var(--font-head); font-size: 1.2rem; font-weight: 400; line-height: 1.2; min-height: 2.4em; }
.ct-precos { margin: 0; display: flex; flex-direction: column; gap: 2px; }
.ct-precos div { display: flex; justify-content: space-between; gap: 6px; font-size: .84rem; }
.ct-precos dt { color: var(--text-muted); white-space: nowrap; }
.ct-precos dd { margin: 0; font-weight: 600; white-space: nowrap; }
.ct-btn {
  min-height: 44px; margin-top: auto; border-radius: 999px; border: 1px solid #0d0d0c; background: transparent; color: var(--text);
  font: inherit; font-size: .84rem; font-weight: 500; cursor: pointer; transition: background .2s ease, color .2s ease;
}
.ct-btn:hover { background: #0d0d0c; color: #f6f0e4; }
.ct-btn.escolhido, .ct-btn--cheio { background: #0d0d0c; color: #f6f0e4; }
.ct-vazio { padding: 48px 0; color: var(--text-muted); }
.ct-vazio a { color: var(--text); }
.ct-paginas { display: flex; justify-content: center; align-items: center; gap: 14px; padding: 32px 0 0; }
.ct-paginas span { font-size: .82rem; color: var(--text-muted); }
.ct-paginas a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border: 1px solid #d9d3ca; border-radius: 999px; color: var(--text); text-decoration: none; }
.ct-paginas a:hover { border-color: var(--text); }

/* ---------- "Seu pedido" no pé ---------- */
.ct-barra [hidden] { display: none !important; }
.ct-barra {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; color: #efe9dd;
  background: rgba(13,13,12,.9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid rgba(201,168,76,.35);
}
.ct-barra__dentro { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; padding-top: 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
.ct-barra__rot { font-size: .8rem; font-weight: 500; color: var(--accent); }
.ct-barra__total { font-family: var(--font-head); font-size: 1.6rem; color: #f6f0e4; }
.ct-barra__dica { font-size: .88rem; color: rgba(239,233,221,.8); }
.ct-barra__btn {
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: .88rem; font-weight: 500; color: #f7e9c2; border: 1px solid rgba(214,184,98,.7);
  background: linear-gradient(135deg, rgba(201,168,76,.32), rgba(201,168,76,.12));
}
.ct-barra__btn:hover { color: #fff8e6; background: linear-gradient(135deg, rgba(201,168,76,.46), rgba(201,168,76,.2)); }
/* O WhatsApp flutuante não existe aqui (bloco vazio); a barra ocupa o pé. */

/* ---------- ficha e pedido (folhas) ---------- */
.ct-folha { border: 0; padding: 0; width: min(560px, 100%); max-height: 92vh; margin: auto auto 0; background: var(--bg); color: var(--text); border-radius: 20px 20px 0 0; }
@media (min-width: 720px) { .ct-folha { margin: auto; border-radius: 20px; } }
.ct-folha::backdrop { background: rgba(13,13,12,.6); }
.ct-folha__cab { display: flex; align-items: center; justify-content: space-between; padding: 10px 8px 10px 20px; border-bottom: 1px solid var(--border); }
.ct-folha__cab h2 { margin: 0; font-size: 1.6rem; font-weight: 400; }
.ct-fechar { width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; color: var(--text); font-size: 1.4rem; }
.ct-fechar:hover { background: #ece6da; }
.ct-folha__corpo { padding: 16px 20px; display: flex; flex-direction: column; gap: 16px; overflow-y: auto; max-height: calc(92vh - 150px); }
.ct-folha__foto { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #efe9e1; border-radius: 14px; }
.ct-folha__pe { padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: #fffefb; display: flex; flex-direction: column; gap: 10px; }
.ct-rot { font-size: .8rem; font-weight: 500; color: var(--text-muted); }
.ct-versoes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; border: 0; padding: 0; margin: 0; }
.ct-versao {
  min-height: 64px; padding: 10px 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left;
  border: 1px solid #d9d3ca; border-radius: 14px; background: transparent; color: var(--text); font: inherit; cursor: pointer;
}
.ct-versao[aria-pressed="true"] { border: 1.5px solid var(--accent-texto); background: #fffefb; }
.ct-versao b { font-family: var(--font-head); font-weight: 400; font-size: 1.3rem; }
.ct-campo { display: flex; flex-direction: column; gap: 6px; }
.ct-folha [hidden] { display: none !important; }   /* o display acima não pode vencer o hidden (personalização) */
.ct-campo input { height: 48px; padding: 0 14px; background: #fffefb; border: 1px solid #d9d3ca; border-radius: 12px; font: inherit; font-size: 16px; color: var(--text); }
.ct-ajuda { font-size: .8rem; color: var(--text-muted); }
.ct-linha-total { display: flex; justify-content: space-between; align-items: baseline; }
.ct-linha-total b { font-family: var(--font-head); font-weight: 400; font-size: 1.6rem; }
.ct-lista { list-style: none; margin: 0; padding: 0; }
.ct-lista li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.ct-lista img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; background: #efe9e1; flex: none; }
.ct-lista .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: .86rem; }
.ct-lista .info small { color: var(--text-muted); }
.ct-lista .fora { color: #8a2f1d; font-weight: 500; }
.ct-lista li.indisponivel { opacity: .75; }
.ct-lista li.indisponivel .valor { text-decoration: line-through; color: var(--text-muted); }
.ct-msg { margin: 0; padding: 12px; background: #fffefb; border: 1px solid var(--border); border-radius: 12px; font-size: .76rem; line-height: 1.55; white-space: pre-wrap; font-family: ui-monospace, monospace; }
.ct-atendimento { margin: 0; font-size: .84rem; color: var(--text-muted); }
.ct-acoes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ct-acoes a, .ct-acoes button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 999px; padding: 0 10px;
  font: inherit; font-size: .86rem; font-weight: 500; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.ct-acoes button { border: 1px solid #0d0d0c; background: transparent; color: var(--text); }
.ct-acoes a { background: #0d0d0c; color: #f6f0e4; border: 1px solid #0d0d0c; }
.ct-acoes a:hover { color: #f6f0e4; background: #2a2925; }

/* painel "Filtrar": opções em chips (rádio), pé com Limpar e Ver peças */
#ct-filtros form { display: flex; flex-direction: column; max-height: 92vh; }
.ct-opcoes { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ct-opcoes legend { width: 100%; padding: 0; margin-bottom: 8px; }
.ct-opcao { position: relative; cursor: pointer; }
.ct-opcao input { position: absolute; opacity: 0; pointer-events: none; }
.ct-opcao span {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1px solid #d9d3ca; background: #fffefb; font-size: .86rem;
}
.ct-opcao small { color: var(--text-muted); font-size: .74rem; }
.ct-opcao input:checked + span { background: #0d0d0c; border-color: #0d0d0c; color: #f6f0e4; }
.ct-opcao input:checked + span small { color: rgba(246,240,228,.7); }
.ct-opcao input:focus-visible + span { outline: 2px solid var(--accent-texto); outline-offset: 2px; }
.ct-filtros-pe { flex-direction: row; align-items: center; justify-content: space-between; }
.ct-filtros-pe .ct-btn { margin: 0; flex: 0 1 220px; }
.ct-filtros-pe__limpar { font-size: .88rem; color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .ct-card, .ct-foto img, .ct-aba, .ct-tipo, .ct-btn { transition: none; }
  .ct-card:hover { transform: none; }
  .ct-card:hover .ct-foto img { transform: none; }
}
