/* =========================================================================
   ALLTRIBE · HOME (seções abaixo da passarela)
   Mesmo vocabulário da passarela: preto e branco, Montserrat, títulos em
   caixa alta 800, cantos retos, cinza #f1f1f1 atrás das peças.
   ========================================================================= */

:root {
  --hp-black: #000;
  --hp-white: #fff;
  --hp-card: #f1f1f1;
  --hp-line: #d9d9d9;
  --hp-muted: #6b6b6b;
  --hp-gutter: 40px;
  --hp-ease: cubic-bezier(.16,1,.3,1);
}

.hp-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.hp-sec { padding: 112px var(--hp-gutter) 0; }

.hp-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: 32px;
}
.hp-title {
  margin: 0; font-weight: 800; text-transform: uppercase;
  font-size: clamp(26px, 3.2vw, 40px); line-height: 1; letter-spacing: -.02em;
}
.hp-more {
  font-size: 13px; font-weight: 600; white-space: nowrap;
  border-bottom: 1px solid currentColor; padding-bottom: 3px;
}
.hp-more:hover { border-bottom-width: 2px; }

/* ---------- Lançamentos ---------- */
.hp-tabs {
  display: flex; gap: 28px; margin-bottom: 28px;
  border-bottom: 1px solid var(--hp-line);
  overflow-x: auto; scrollbar-width: none;
}
.hp-tabs::-webkit-scrollbar { display: none; }
.hp-tab {
  position: relative; flex: none;
  background: none; border: 0; padding: 0 0 14px; cursor: pointer;
  font-size: 13px; font-weight: 500; color: var(--hp-muted);
}
.hp-tab::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--hp-black); transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--hp-ease);
}
.hp-tab:hover { color: var(--hp-black); }
.hp-tab[aria-pressed="true"] { color: var(--hp-black); font-weight: 600; }
.hp-tab[aria-pressed="true"]::after { transform: scaleX(1); }

.hp-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 20px;
}
.hp-card[hidden] { display: none; }
.hp-card a { display: block; }
.hp-card__media {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  background: var(--hp-card); margin-bottom: 16px;
}
.hp-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hp-card__pack { object-fit: contain; padding: 14%; transition: opacity .45s var(--hp-ease); }
.hp-card__look { object-fit: cover; object-position: top; opacity: 0; transition: opacity .45s var(--hp-ease); }
@media (hover: hover) {
  .hp-card a:hover .hp-card__look,
  .hp-card a:focus-visible .hp-card__look { opacity: 1; }
  .hp-card a:hover .hp-card__pack,
  .hp-card a:focus-visible .hp-card__pack { opacity: 0; }
}
.hp-card__tag {
  position: absolute; top: 12px; left: 12px;
  background: var(--hp-black); color: var(--hp-white);
  font-size: 11px; font-weight: 600; padding: 5px 8px; line-height: 1;
}
.hp-card__name { margin: 0 0 6px; font-size: 14px; font-weight: 500; line-height: 1.35; }
.hp-card a:hover .hp-card__name { text-decoration: underline; text-underline-offset: 3px; }
.hp-card__price { margin: 0 0 4px; font-size: 14px; }
.hp-card__price s { color: var(--hp-muted); font-size: 12px; margin-right: 4px; }
.hp-card__price strong { font-weight: 700; }
.hp-card__inst { margin: 0; font-size: 12px; color: var(--hp-muted); }

/* ---------- Categorias ---------- */
.hp-cats__row {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px;
}
.hp-cats__row a { display: block; }
.hp-cats__row img {
  display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover;
  background: var(--hp-card); margin-bottom: 14px;
}
.hp-cats__row span { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: -.01em; }
.hp-cats__row a:hover span { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }

/* ---------- Alltribe GYM ---------- */
.hp-gym {
  margin-top: 112px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: var(--hp-black); color: var(--hp-white);
}
.hp-gym__media img { display: block; width: 100%; height: 100%; max-height: 820px; object-fit: cover; }
.hp-gym__body {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  padding: 64px var(--hp-gutter) 64px 72px; gap: 24px;
}
.hp-gym__mark { width: 96px; height: 96px; }
.hp-gym .hp-title { font-size: clamp(32px, 4.6vw, 64px); }
.hp-gym__text { margin: 0; font-size: 16px; line-height: 1.6; color: #bdbdbd; max-width: 40ch; }
.hp-gym__links { list-style: none; margin: 0; padding: 0; width: 100%; max-width: 420px; }
.hp-gym__links a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; border-top: 1px solid #333; font-size: 15px; font-weight: 500;
}
.hp-gym__links li:last-child a { border-bottom: 1px solid #333; }
.hp-gym__links a::after { content: ""; width: 8px; height: 8px; border-top: 1.3px solid; border-right: 1.3px solid; transform: rotate(45deg); }
.hp-gym__links a:hover { padding-left: 6px; transition: padding .35s var(--hp-ease); }

.hp-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 32px; font-size: 14px; font-weight: 600;
  background: var(--hp-black); color: var(--hp-white);
}
.hp-btn--light { background: var(--hp-white); color: var(--hp-black); }
.hp-btn:hover { opacity: .86; }

/* ---------- Manifesto (o momento grande da página) ---------- */
.hp-manifesto { padding: 120px var(--hp-gutter) 0; overflow: hidden; }
.hp-manifesto__type {
  margin: 0; display: flex; flex-direction: column;
  font-weight: 900; text-transform: uppercase;
  font-size: clamp(54px, 12.6vw, 260px); line-height: .84; letter-spacing: -.045em;
  margin-left: -.04em;
}
.hp-manifesto__type span:nth-child(2) { padding-left: 1.05em; }
.hp-manifesto__foot {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--hp-black);
}
.hp-manifesto__foot p { margin: 0; font-size: 15px; font-weight: 500; }

/* ---------- Instagram ---------- */
.hp-ig__handles { margin: 0; display: flex; gap: 20px; font-size: 13px; font-weight: 600; }
.hp-ig__handles a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hp-ig__grid {
  list-style: none; margin: 0 calc(var(--hp-gutter) * -1); padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
}
.hp-ig__grid a { display: block; position: relative; }
.hp-ig__grid img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.hp-ig__grid a::after { content: ""; position: absolute; inset: 0; background: #000; opacity: 0; transition: opacity .3s; }
.hp-ig__grid a:hover::after { opacity: .18; }

/* ---------- Vantagens ---------- */
.hp-perks {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--hp-line); border-bottom: 1px solid var(--hp-line);
}
.hp-perks > div { padding: 40px var(--hp-gutter) 44px; border-left: 1px solid var(--hp-line); }
.hp-perks > div:first-child { border-left: 0; }
.hp-perks svg { display: block; margin-bottom: 18px; }
.hp-perks h3 { margin: 0 0 6px; font-size: 14px; font-weight: 700; }
.hp-perks p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--hp-muted); }

/* ---------- Rodapé ---------- */
.hp-footer { padding: 72px var(--hp-gutter) 32px; }
.hp-footer__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 56px; }
.hp-footer__logo img { display: block; width: 264px; height: auto; }
.hp-footer__tag { margin: 0; font-size: 13px; color: var(--hp-muted); }
.hp-footer__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.hp-footer__cols h2 { margin: 0 0 16px; font-size: 13px; font-weight: 700; }
.hp-footer__cols a, .hp-footer__cols p { display: block; margin: 0 0 10px; font-size: 13px; color: var(--hp-muted); }
.hp-footer__cols a:hover { color: var(--hp-black); text-decoration: underline; text-underline-offset: 3px; }
.hp-footer__base {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--hp-line);
  font-size: 12px; color: var(--hp-muted);
}
.hp-footer__base p { margin: 0; }

/* foco visível em fundo escuro */
.hp-gym a:focus-visible { outline-color: #fff; }

/* =========================================================================
   TABLET
   ========================================================================= */
@media (max-width: 1099px) {
  .hp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hp-cats__row { grid-template-columns: repeat(5, minmax(200px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--hp-gutter); margin: 0 calc(var(--hp-gutter) * -1); padding: 0 var(--hp-gutter); scrollbar-width: none; }
  .hp-cats__row li { scroll-snap-align: start; }
  .hp-gym__body { padding-left: 48px; }
  .hp-perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-perks > div:nth-child(3) { border-left: 0; }
  .hp-perks > div:nth-child(n+3) { border-top: 1px solid var(--hp-line); }
  .hp-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* =========================================================================
   CELULAR (≤ 749 px)
   ========================================================================= */
@media (max-width: 749px) {
  :root { --hp-gutter: 20px; }
  .hp-sec { padding-top: 72px; }
  .hp-head { margin-bottom: 22px; }
  .hp-tabs { gap: 22px; margin: 0 calc(var(--hp-gutter) * -1) 22px; padding: 0 var(--hp-gutter); }
  .hp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .hp-card__name { font-size: 13px; }
  .hp-card__price { font-size: 13px; }
  .hp-cats__row { grid-template-columns: repeat(5, 62%); gap: 12px; }
  .hp-gym { margin-top: 72px; grid-template-columns: 1fr; }
  .hp-gym__media img { aspect-ratio: 4 / 5; max-height: none; }
  .hp-gym__body { padding: 40px var(--hp-gutter) 48px; }
  .hp-gym__mark { width: 72px; height: 72px; }
  .hp-gym .hp-btn { width: 100%; }
  .hp-manifesto { padding-top: 80px; }
  .hp-manifesto__type { font-size: clamp(44px, 15vw, 120px); }
  .hp-manifesto__type span:nth-child(2) { padding-left: 0; }
  .hp-manifesto__foot { flex-direction: column; gap: 14px; }
  .hp-ig .hp-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hp-ig__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hp-ig__grid li:nth-child(n+10) { display: none; }
  .hp-perks > div { padding: 20px 14px 22px var(--hp-gutter); }
  .hp-perks > div:nth-child(even) { padding-left: 16px; }
  .hp-perks svg { margin-bottom: 12px; }
  .hp-perks h3 { font-size: 13px; }
  .hp-perks p { font-size: 12px; }
  .hp-footer { padding-top: 56px; }
  .hp-footer__top { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 40px; }
  .hp-footer__logo img { width: 200px; }
  .hp-footer__base { flex-direction: column; margin-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .hp-tab::after, .hp-card__pack, .hp-card__look, .hp-gym__links a, .hp-ig__grid a::after { transition: none; }
}

/* =========================================================================
   BANNERS (acima de Lançamentos)
   ========================================================================= */
.hp-banners { --hp-interval: 6000ms; }
.hp-banners__viewport { overflow: hidden; background: #000; touch-action: pan-y; }
.hp-banners__track { display: flex; transition: transform .9s var(--hp-ease); will-change: transform; }
.hp-banners__slide { flex: 0 0 100%; display: block; }
.hp-banners__slide img { display: block; width: 100%; height: auto; aspect-ratio: 1920 / 550; object-fit: cover; }
.hp-banners__ctrl { display: flex; align-items: center; gap: 20px; padding: 16px var(--hp-gutter) 0; }
.hp-banners__arrow, .hp-banners__pause {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; background: none; border: 0; padding: 0; cursor: pointer;
}
.hp-banners__arrow:first-child { margin-left: -9px; }
.hp-banners__pause { margin-left: auto; }
.hp-banners__pause .i-play { display: none; }
.hp-banners__pause[aria-pressed="true"] .i-play { display: block; }
.hp-banners__pause[aria-pressed="true"] .i-pause { display: none; }
.hp-banners__ticks { display: flex; gap: 6px; }
.hp-banners__tick {
  flex: 0 0 56px; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; row-gap: 10px;
  background: none; border: 0; padding: 14px 0; cursor: pointer; text-align: left; color: #6b6b6b;
  transition: flex-basis .6s var(--hp-ease);
}
.hp-banners__bar { grid-column: 1 / -1; position: relative; height: 2px; background: var(--hp-line); overflow: hidden; }
.hp-banners__bar::after { content: ""; position: absolute; inset: 0; background: #000; transform: scaleX(0); transform-origin: left; }
.hp-banners__num { font-size: 10px; letter-spacing: .2em; }
.hp-banners__name { font-size: 10px; letter-spacing: .14em; white-space: nowrap; opacity: 0; transition: opacity .4s; }
.hp-banners__tick[aria-current="true"] { flex-basis: 190px; color: #000; }
.hp-banners__tick[aria-current="true"] .hp-banners__name { opacity: 1; }
.hp-banners__tick[aria-current="true"] .hp-banners__bar::after { transform: none; }
.hp-banners.is-playing .hp-banners__tick[aria-current="true"] .hp-banners__bar::after {
  animation: hp-fill var(--hp-interval) linear both;
}
.hp-banners.is-hold .hp-banners__tick[aria-current="true"] .hp-banners__bar::after { animation-play-state: paused; }
@keyframes hp-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* =========================================================================
   LANÇAMENTOS: ver mais / ver todos
   ========================================================================= */
.hp-grid__foot { display: flex; justify-content: center; margin-top: 48px; }
.hp-grid__foot .hp-btn { min-width: 280px; }
.hp-btn[hidden] { display: none; }
.hp-btn--line { background: transparent; color: #000; border: 1px solid #000; cursor: pointer; }
.hp-btn--line:hover { background: #000; color: #fff; opacity: 1; }
.hp-card.is-new { animation: hp-in .7s var(--hp-ease) both; }
.hp-card.is-new:nth-child(4n+2) { animation-delay: .06s; }
.hp-card.is-new:nth-child(4n+3) { animation-delay: .12s; }
.hp-card.is-new:nth-child(4n+4) { animation-delay: .18s; }
@keyframes hp-in { from { opacity: 0; transform: translateY(18px); } }

@media (max-width: 749px) {
  .hp-banners__ctrl { gap: 8px; padding-top: 8px; }
  .hp-banners__tick { flex-basis: 34px; }
  .hp-banners__tick[aria-current="true"] { flex-basis: 120px; }
  .hp-grid__foot { margin-top: 36px; }
  .hp-grid__foot .hp-btn { width: 100%; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hp-banners__track, .hp-banners__tick { transition: none; }
  .hp-card.is-new { animation: none; }
}

/* =========================================================================
   LANÇAMENTOS: adicionar à sacola
   Desktop: a faixa de tamanhos sobe na base da foto no hover/foco.
   Toque: botão de sacola no canto da foto abre a mesma faixa.
   ========================================================================= */
.hp-card { position: relative; }
.hp-qa {
  position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 4 / 5;
  overflow: hidden; pointer-events: none;
}
.hp-qa__panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 12px 14px 14px; background: rgba(255,255,255,.97);
  pointer-events: auto; visibility: hidden; transform: translateY(100%);
  transition: transform .45s var(--hp-ease), visibility 0s linear .45s;
}
.hp-card.is-qa-open .hp-qa__panel,
.hp-card:has(:focus-visible) .hp-qa__panel {
  visibility: visible; transform: none; transition: transform .45s var(--hp-ease), visibility 0s;
}
@media (hover: hover) {
  .hp-card:hover .hp-qa__panel { visibility: visible; transform: none; transition: transform .45s var(--hp-ease), visibility 0s; }
}
.hp-qa__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.hp-qa__label { margin: 0; font-size: 12px; font-weight: 600; }
.hp-qa__close {
  display: none; width: 28px; height: 28px; margin: -6px -6px -6px 0;
  background: none; border: 0; font-size: 20px; line-height: 1; cursor: pointer;
}
.hp-qa__sizes { display: flex; flex-wrap: wrap; gap: 5px; }
.hp-qa__size {
  min-width: 36px; height: 36px; padding: 0 7px;
  background: #fff; color: #000; border: 1px solid var(--hp-line); border-radius: 0;
  font-size: 12px; font-weight: 600; cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
}
.hp-qa__size:hover:not(:disabled) { border-color: #000; }
.hp-qa__size.is-out { color: #b3b3b3; text-decoration: line-through; cursor: not-allowed; background: #fafafa; }
.hp-qa__size.is-added, .hp-qa__one.is-added { background: #000; color: #fff; border-color: #000; }
.hp-qa__one {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 42px;
  background: #000; color: #fff; border: 0; font-size: 13px; font-weight: 600; cursor: pointer;
}
.hp-qa__one:disabled:not(.is-added) { background: var(--hp-line); color: var(--hp-muted); cursor: not-allowed; }

/* Ícone de sacola: sempre visível no canto inferior direito da foto,
   pra mostrar que dá pra comprar sem precisar descobrir o hover. */
.hp-qa__open {
  position: absolute; right: 12px; bottom: 12px; width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: #000; border: 0; border-radius: 50%; cursor: pointer;
  pointer-events: auto; box-shadow: 0 2px 10px rgba(0,0,0,.08);
  transition: opacity .25s, transform .25s var(--hp-ease), background .2s, color .2s;
}
.hp-qa__open::before { content: ""; position: absolute; inset: -4px; border-radius: 50%; } /* área de toque 50px */
.hp-qa__open:hover { background: #000; color: #fff; }
.hp-card.is-qa-open .hp-qa__open { opacity: 0; visibility: hidden; }
.hp-card.is-qa-open .hp-qa__close { display: inline-flex; align-items: center; justify-content: center; }

/* Desktop: no hover a faixa de tamanhos sobe e o ícone sai de cena */
@media (hover: hover) {
  .hp-card:hover .hp-qa__open { opacity: 0; transform: scale(.85); pointer-events: none; }
}
/* Teclado: quando a faixa abre pelo foco, o ícone some (a não ser que ele mesmo esteja focado) */
.hp-card:has(:focus-visible):not(:has(.hp-qa__open:focus-visible)) .hp-qa__open { opacity: 0; pointer-events: none; }

/* Toque: a faixa só abre pelo ícone */
@media (hover: none) {
  .hp-card:has(:focus-visible):not(.is-qa-open) .hp-qa__panel { visibility: hidden; transform: translateY(100%); }
  .hp-card:has(:focus-visible):not(.is-qa-open) .hp-qa__open { opacity: 1; pointer-events: auto; }
}
@media (max-width: 749px) {
  .hp-qa__panel { padding: 10px 10px 12px; }
  .hp-qa__size { min-width: 34px; height: 34px; padding: 0 6px; font-size: 11px; }
  .hp-qa__one { height: 38px; font-size: 12px; }
  .hp-qa__open { right: 8px; bottom: 8px; width: 38px; height: 38px; }
  .hp-qa__open svg { width: 16px; height: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .hp-qa__panel, .hp-card.is-qa-open .hp-qa__panel, .hp-card:has(:focus-visible) .hp-qa__panel { transition: none; }
}
