/* Loja HAND7 — identidade de atletas.hand7.com.br */
:root {
  --navy: #0a1730;
  --navy-deep: #060e22;
  --navy-2: #0f2142;
  --navy-3: #1e3a6f;
  --orange: #ff6a1a;
  --orange-2: #ff8440;
  --indigo: #110775;
  --muted: #a9b4c9;
  --muted-2: #6e7a94;
  --paper: #f6f5f1;
  --white: #ffffff;
  --line: rgba(255, 255, 255, 0.08);
  --line-dark: rgba(10, 23, 48, 0.08);
  --radius: 8px;
  --sans: 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--white);
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  padding-bottom: 64px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 60% at 85% -10%, rgba(255, 106, 26, 0.22), transparent 60%),
    radial-gradient(50% 40% at 10% 110%, rgba(30, 58, 111, 0.5), transparent 60%);
  pointer-events: none;
}
.hero > * { position: relative; }
.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  padding-bottom: 24px;
}
.brand img { width: 155px; height: auto; }
.nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.nav a {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}
.nav a:hover { color: var(--white); }

.hero-body {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 40px;
  padding-top: 48px;
}
.hero-title {
  margin: 20px 0 22px;
  font-size: clamp(56px, 8.4vw, 112px);
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: -0.035em;
}
.hero-title em { font-style: italic; color: var(--orange); }
.hero-sub {
  max-width: 520px;
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
  color: var(--muted);
}
.counter { text-align: right; }
.counter .eyebrow { margin-bottom: 4px; }
.counter-number {
  margin: 0;
  font-size: clamp(96px, 11vw, 154px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  background: linear-gradient(180deg, #fff 0%, #fff 60%, var(--orange-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.counter-unit {
  margin: 0;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Filtros ---------- */
.filters { background: var(--paper); color: var(--navy); padding: 28px 0 8px; }
.filters-inner { display: flex; flex-wrap: wrap; gap: 14px 40px; }
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.filter-label {
  margin-right: 8px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.chip {
  padding: 8px 15px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: var(--white);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--navy);
  cursor: pointer;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.chip:hover { border-color: var(--navy-2); transform: translateY(-1px); }
.chip.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(10, 23, 48, 0.2);
}

/* ---------- Catálogo ---------- */
.catalog { background: var(--paper); color: var(--navy); padding: 36px 0 88px; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.section-head h2 {
  margin: 0;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.section-label {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  text-align: right;
}
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 1px 0 rgba(10, 23, 48, 0.04);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(10, 23, 48, 0.18); }
.card[hidden] { display: none; }
.card-hit {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}
.card-hit:focus-visible { outline: 3px solid var(--orange); outline-offset: -3px; }
.card-media { position: relative; aspect-ratio: 4 / 5; background: #000; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.card:hover .card-media img { transform: scale(1.03); }
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  border: 1px solid var(--indigo);
  border-radius: 6px;
  background: rgba(17, 7, 117, 0.58);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.card-body { padding: 16px 18px 10px; }
.card-kind {
  margin: 0 0 6px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}
.card-name {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.card-meta { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding: 14px 18px 16px;
  border-top: 1px solid var(--line);
}
.price { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
.buy-pill {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--orange);
  font-size: 13px;
  font-weight: 700;
  color: var(--navy-deep);
  white-space: nowrap;
  transition: background-color 0.2s var(--ease);
}
.card:hover .buy-pill { background: var(--orange-2); }
.noscript { color: var(--navy); }

/* ---------- Como funciona ---------- */
.steps { background: var(--navy-2); padding: 64px 0; }
.steps-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.steps-list li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(6, 14, 34, 0.35);
}
.step-n { font-size: 40px; font-weight: 900; line-height: 1; letter-spacing: -0.04em; color: var(--orange); }
.steps-list strong { margin-top: 6px; font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.steps-list li > span:last-child { font-size: 15px; color: var(--muted); }

/* ---------- Rodapé ---------- */
.footer { background: var(--navy-deep); padding: 44px 0 36px; }
.footer-note {
  margin: 0 0 28px;
  padding: 16px 20px;
  border: 1px solid rgba(255, 106, 26, 0.35);
  border-radius: var(--radius);
  background: rgba(255, 106, 26, 0.08);
  font-size: 17px;
  font-weight: 700;
  text-align: center;
}
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.footer-copy { margin: 26px 0 0; font-size: 12px; color: var(--muted-2); }

/* ---------- Ficha do produto ---------- */
.sheet {
  width: min(980px, calc(100% - 32px));
  max-height: calc(100dvh - 40px);
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
}
.sheet[open] {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  animation: sheet-in 0.28s var(--ease);
}
.sheet::backdrop { background: rgba(6, 14, 34, 0.72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(14px) scale(0.985); } to { opacity: 1; transform: none; } }
.sheet-media { background: #000; }
.sheet-media picture { display: block; height: 100%; }
.sheet-media img { width: 100%; height: 100%; object-fit: cover; }
.sheet-body { padding: 34px 32px 28px; overflow-y: auto; max-height: calc(100dvh - 40px); }
.sheet-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(6, 14, 34, 0.7);
  cursor: pointer;
}
.sheet-close:hover { background: var(--navy-2); }
.sheet-title { margin: 0; font-size: 32px; font-weight: 900; line-height: 1.02; letter-spacing: -0.03em; padding-right: 36px; }
.sheet-meta { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.sheet-price { margin: 16px 0 22px; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }

.sizes { margin: 0; padding: 0; border: 0; }
.sizes legend, .qty-label, .field span {
  padding: 0;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.size-group-label { margin: 12px 0 6px; font-size: 12px; color: var(--muted-2); }
.size-row { display: flex; flex-wrap: wrap; gap: 6px; }
.size-row input { position: absolute; opacity: 0; pointer-events: none; }
.size-row label {
  display: grid;
  place-items: center;
  min-width: 46px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease);
}
.size-row label:hover { border-color: rgba(255, 255, 255, 0.4); }
.size-row input:checked + label { background: var(--white); border-color: var(--white); color: var(--navy); }
.size-row input:focus-visible + label { outline: 3px solid var(--orange); outline-offset: 2px; }

.qty { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; }
.qty-ctrl { display: flex; align-items: center; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 999px; }
.qty-ctrl button { width: 44px; height: 44px; border: 0; background: none; font-size: 20px; cursor: pointer; }
.qty-ctrl output { min-width: 28px; font-weight: 700; text-align: center; }

.made-to-order {
  margin: 22px 0 14px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--orange); color: var(--navy-deep); }
.btn-primary:hover { background: var(--orange-2); }
.btn-ghost { margin-top: 18px; border: 1px solid rgba(255, 255, 255, 0.2); background: none; color: var(--white); }
.btn-link {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 10px;
  border: 0;
  background: none;
  font-size: 14px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.err { margin: 0; font-size: 13px; color: var(--orange-2); text-transform: none; letter-spacing: 0; font-family: var(--sans); }
#dados-err { margin: -4px 0 12px; }

.summary {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(6, 14, 34, 0.45);
  font-size: 14px;
  color: var(--muted);
}
.summary strong { color: var(--white); }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; margin-bottom: 6px; }
.field input {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: var(--navy-deep);
  font: inherit;
  font-size: 16px;
  color: var(--white);
}
.field input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 106, 26, 0.2); }
.ok-title { margin: 6px 0 8px; font-size: 22px; font-weight: 800; }
.ok-text { margin: 0; color: var(--muted); }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .hero-body { grid-template-columns: 1fr; gap: 28px; padding-top: 28px; }
  .counter { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .steps-list { grid-template-columns: 1fr; }
  .sheet[open] { display: block; overflow-y: auto; overscroll-behavior: contain; }
  .sheet { width: 100%; max-width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; }
  .sheet-close { position: fixed; top: calc(12px + env(safe-area-inset-top)); }
  .sheet-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; }
  .sheet-media picture { position: absolute; inset: 0; }
  .sheet-media img { width: 100%; height: 100%; object-position: 50% 45%; }
  .sheet-body { max-height: none; overflow: visible; padding: 24px 20px calc(28px + env(safe-area-inset-bottom)); }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .hero-top { flex-direction: column; align-items: flex-start; }
  .brand img { width: 130px; }
  .nav { gap: 6px 16px; }
  .hero { padding-bottom: 44px; }
  .hero-sub { font-size: 16px; }
  .filters-inner { gap: 12px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .section-head h2 { font-size: 32px; }
  .section-label { text-align: left; }
  .card-body { padding: 12px 12px 8px; }
  .card-name { font-size: 16px; }
  .card-meta { font-size: 12px; }
  .card-foot { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 12px 12px; }
  .price { font-size: 16px; }
  .buy-pill { text-align: center; padding: 9px 12px; }
  .badge { top: 8px; left: 8px; padding: 4px 7px; font-size: 9px; }
  .sheet-title { font-size: 26px; }
  .sheet-price { font-size: 26px; margin: 12px 0 18px; }
  .size-row label { min-width: 44px; padding: 0 10px; }
  .footer-note { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
