/*
 * Série A Camisas — cabeçalho maior + movimento sutil (só visual; nenhuma lógica do site é tocada)
 * Carregado DEPOIS do CSS do index.html, por isso sobrescreve só o que está aqui.
 * Para tirar: apague a linha <link ... catalogo-cabecalho.css> do index.html (ou restaure o index.html.bak.<data>).
 *
 * Tamanhos (identidade da loja): a altura do cabeçalho é FIXA por faixa de tela (--hh) para que a barra de busca
 * e a barra de ligas, que "grudam" embaixo dele, usem o mesmo número e nunca fiquem sobrepostas.
 */
:root {
  --hh: 76px;              /* altura do cabeçalho: celular */
  --h-busca: 60px;         /* altura da barra de busca (não muda) */
  --marca-brilho: 170, 90, 255;   /* cor do brilho do logo (R,G,B) — o logo atual é roxo */
}
@media (min-width: 560px)  { :root { --hh: 88px; } }
@media (min-width: 1024px) { :root { --hh: 100px; } }

/* ===== 1. NOME E LOGO DA LOJA MAIORES ===== */
.header {
  height: var(--hh);
  padding: 0 1rem;
  gap: 12px;
}
.logo-area { gap: 12px; flex: 1 1 auto; min-width: 0; }
.logo-area > div:last-child { min-width: 0; }
.header > div:last-child { flex: none; }

.logo-circle { width: 52px; height: 52px; }
.store-name {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: .2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;              /* nome muito grande de outra loja vira 2 linhas, nunca estoura o cabeçalho */
}
.store-sub { font-size: 12px; margin-top: 3px; color: #8a8a8a; }
@media (max-width: 559px) { .store-sub { display: none; } }   /* celular: sem espaço para o subtítulo */

@media (min-width: 560px) {
  .header { padding: 0 1.25rem; gap: 16px; }
  .logo-circle { width: 62px; height: 62px; }
  .store-name { font-size: 24px; }
  .store-sub { font-size: 13px; }
}
@media (min-width: 1024px) {
  .header { padding: 0 2rem; }
  .logo-circle { width: 76px; height: 76px; }
  .store-name { font-size: 30px; }
  .store-sub { font-size: 15px; margin-top: 4px; }
}

/* botões do cabeçalho: celular = só ícone (cabem na linha); a partir de 560px voltam com texto */
.ig-btn { width: 40px; height: 40px; font-size: 20px; }
.header .wpp-btn { padding: 0; width: 40px; height: 40px; border-radius: 50%; justify-content: center; font-size: 0; gap: 0; }
.header .wpp-btn i { font-size: 20px; }
@media (min-width: 560px) {
  .header .wpp-btn { width: auto; height: 40px; padding: 0 18px; border-radius: 20px; font-size: 14px; gap: 7px; }
  .header .wpp-btn i { font-size: 16px; }
}
@media (min-width: 1024px) {
  .ig-btn { width: 44px; height: 44px; }
  .header .wpp-btn { height: 44px; padding: 0 22px; font-size: 15px; }
}

/* ===== barras que grudam abaixo do cabeçalho: mesma referência (--hh) ===== */
.search-wrap { top: var(--hh); }
.ligas-scroll { top: calc(var(--hh) + var(--h-busca)); }
#conteudo, #secao-medidas { scroll-margin-top: calc(var(--hh) + var(--h-busca) + 64px); }   /* âncoras não ficam escondidas atrás das barras */

/* ===== 2. NOMES DAS LIGAS MAIORES ===== */
.liga-pill { font-size: 14px; padding: 8px 16px; }
@media (min-width: 768px)  { .liga-pill { font-size: 15px; padding: 9px 20px; } .ligas-scroll { gap: 10px; } }
@media (min-width: 1024px) { .liga-pill { font-size: 16px; padding: 10px 22px; } }
.liga-pill.active { font-weight: 600; }

/* ===== 3. MOVIMENTO SUTIL ===== */
/* ao carregar a página (roda uma vez): cabeçalho desce e aparece; logo "pula" de leve; textos entram em seguida */
@keyframes cab-entra  { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes cab-fade   { from { opacity: 0; transform: translateX(-8px); }  to { opacity: 1; transform: none; } }
@keyframes logo-pop   { from { opacity: 0; transform: scale(.7); }         to { opacity: 1; transform: scale(1); } }
@keyframes logo-pulso {                       /* brilho discreto que respira em volta do logo */
  0%   { box-shadow: 0 0 0 0 rgba(var(--marca-brilho), .45); }
  70%  { box-shadow: 0 0 0 12px rgba(var(--marca-brilho), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--marca-brilho), 0); }
}
@keyframes barra-entra { from { opacity: 0; } to { opacity: 1; } }

.header       { animation: cab-entra .5s ease-out both; }
.logo-circle  { animation: logo-pop .6s cubic-bezier(.2, .9, .3, 1.25) .1s both, logo-pulso 3.6s ease-out 1.4s infinite; }
.store-name   { animation: cab-fade .5s ease-out .2s both; }
.store-sub    { animation: cab-fade .5s ease-out .3s both; }
.header > div:last-child { animation: cab-fade .5s ease-out .3s both; }
.search-wrap  { animation: barra-entra .5s ease-out .2s both; }
.ligas-scroll { animation: barra-entra .5s ease-out .3s both; }   /* só o contêiner: as pílulas são recriadas ao trocar de liga e NÃO reanimam */

/* transições suaves nos botões e nas pílulas */
.wpp-btn, .ig-btn { transition: transform .2s ease, box-shadow .2s ease, filter .2s ease; }
.liga-pill { transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease; }
.liga-pill.active { box-shadow: 0 0 16px rgba(224, 0, 0, .35); }

@media (hover: hover) and (pointer: fine) {   /* computador: destaque ao passar o mouse */
  .wpp-btn:hover { transform: translateY(-2px); filter: brightness(1.1); box-shadow: 0 6px 16px rgba(0, 0, 0, .45); }
  .ig-btn:hover  { transform: translateY(-2px) scale(1.08); filter: brightness(1.08); box-shadow: 0 6px 16px rgba(0, 0, 0, .45); }
  .liga-pill:not(.active):hover { background: #262626; border-color: #555; color: #fff; transform: translateY(-1px); }
  .liga-pill.active:hover { filter: brightness(1.1); transform: translateY(-1px); }
}
.wpp-btn:active, .ig-btn:active { transform: scale(.94); }                 /* celular e computador: "aperta" ao tocar/clicar */
.liga-pill:active { transform: scale(.95); }

/* quem pediu "reduzir movimento" no aparelho: sem animação */
@media (prefers-reduced-motion: reduce) {
  .header, .logo-circle, .store-name, .store-sub, .header > div:last-child, .search-wrap, .ligas-scroll { animation: none; }
  .wpp-btn, .ig-btn, .liga-pill { transition: none; }
  .wpp-btn:hover, .ig-btn:hover, .liga-pill:hover { transform: none; }
}

