/* Empório Sports — estilos do site. A cor de destaque (--accent) vem de data/config.json. */
:root {
  --bg: #0d0e0c;
  --bg-card: #131511;
  --line: #26281f;
  --line-soft: #1c1e17;
  --text: #f2f2ec;
  --muted: #a8ab9d;
  --dim: #6c6f60;
  --wa: #25d366;
  --font-display: 'Archivo', sans-serif;
  --font-body: 'Barlow', sans-serif;
  --font-mono: ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); }
a { color: var(--accent); text-decoration: none; }
a:hover { color: color-mix(in srgb, var(--accent) 80%, white); }
button { font: inherit; }
img { max-width: 100%; display: block; }
.page { min-height: 100vh; }

/* Faixa de avisos */
.marquee { background: var(--accent); color: var(--bg); overflow: hidden; white-space: nowrap; padding: 7px 0; }
.marquee__track { display: inline-block; animation: marquee 18s linear infinite; font-family: var(--font-display); font-weight: 800; font-stretch: 110%; font-size: 13px; letter-spacing: 2px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* Cabeçalho */
.header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 48px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(13,14,12,0.92); backdrop-filter: blur(10px); z-index: 50; }
.logo { font-family: var(--font-display); font-weight: 900; font-stretch: 125%; font-size: 28px; letter-spacing: 1px; color: var(--text); }
.logo:hover { color: var(--text); }
.logo span { color: var(--accent); }
.nav { display: flex; gap: 8px; }
.nav__link { font-family: var(--font-display); font-weight: 800; font-size: 13px; letter-spacing: 1.5px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--muted); }
.nav__link:hover { color: var(--text); }
.nav__link--on { border-color: var(--accent); background: var(--accent); color: var(--bg); }
.nav__link--on:hover { color: var(--bg); }
.btn-wa-top { display: flex; align-items: center; gap: 8px; background: var(--text); color: var(--bg); font-family: var(--font-display); font-weight: 800; font-size: 13px; letter-spacing: 1px; padding: 11px 20px; border-radius: 999px; white-space: nowrap; }
.btn-wa-top:hover { color: var(--bg); filter: brightness(1.05); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wa); display: inline-block; }

/* Hero (feed) */
.hero { padding: 72px 48px 56px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.hero__glow { position: absolute; inset: 0; background: radial-gradient(ellipse 60% 80% at 80% 20%, color-mix(in srgb, var(--accent) 10%, transparent), transparent); }
.hero__inner { position: relative; max-width: 1100px; }
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 3px; color: var(--accent); margin-bottom: 16px; }
.hero h1 { font-family: var(--font-display); font-weight: 900; font-stretch: 120%; font-size: clamp(48px, 7vw, 104px); line-height: 0.94; margin: 0 0 24px; text-transform: uppercase; }
.hero h1 span { color: var(--accent); }
.hero p { font-size: 18px; color: var(--muted); max-width: 480px; margin: 0 0 32px; line-height: 1.5; }
.btn-primary { display: inline-block; background: var(--accent); color: var(--bg); border: none; font-family: var(--font-display); font-weight: 800; font-size: 14px; letter-spacing: 1px; padding: 16px 32px; border-radius: 999px; cursor: pointer; }
.btn-primary:hover { color: var(--bg); filter: brightness(1.1); }

/* Seções */
.section { padding: 56px 48px 80px; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 28px; }
.section__head h2, .section h1.title { font-family: var(--font-display); font-weight: 900; font-stretch: 120%; margin: 0; text-transform: uppercase; }
.section__head h2 { font-size: 28px; }
.section h1.title { font-size: 44px; margin-bottom: 24px; }
.mono-dim { font-family: var(--font-mono); font-size: 12px; color: var(--dim); }

/* Placeholder de imagem (listras) */
.ph { background: repeating-linear-gradient(45deg, #191b15, #191b15 12px, #15170f 12px, #15170f 24px); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.ph span { font-family: var(--font-mono); font-size: 12px; color: var(--dim); }
.ph img { width: 100%; height: 100%; object-fit: cover; }

/* Feed */
.feed { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.post { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--bg-card); display: flex; flex-direction: column; color: inherit; }
.post:hover { border-color: #3a3d2e; color: inherit; }
.post .ph { height: 200px; }
.post__body { padding: 20px 20px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post__body h3 { font-family: var(--font-display); font-weight: 800; font-size: 19px; margin: 0; line-height: 1.2; }
.post__body p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; flex: 1; }
.post__body time { font-family: var(--font-mono); font-size: 11px; color: var(--dim); }
.tag { align-self: flex-start; font-family: var(--font-display); font-weight: 800; font-size: 10px; letter-spacing: 1.5px; padding: 4px 10px; border-radius: 999px; }
.tag--promocao { color: var(--bg); background: var(--accent); }
.tag--lancamento { color: var(--accent); border: 1px solid var(--accent); }
.tag--dica { color: var(--muted); border: 1px solid #3a3d2e; }
.tag--depoimento { color: #f2b95a; border: 1px solid #5a4a2e; }

/* Categorias (chips) */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.chip { white-space: nowrap; font-family: var(--font-body); font-weight: 600; font-size: 13px; padding: 8px 16px; border-radius: 999px; cursor: pointer; border: 1px solid var(--line); background: none; color: var(--muted); }
.chip:hover { color: var(--text); }
.chip--on { border-color: var(--accent); background: var(--accent); color: var(--bg); }
.chip--on:hover { color: var(--bg); }

/* Grade de produtos */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--bg-card); color: inherit; transition: transform .15s, border-color .15s; }
.card:hover { border-color: var(--accent); transform: translateY(-2px); color: inherit; }
.card .ph { height: 220px; }
.badge { position: absolute; top: 12px; left: 12px; background: var(--accent); color: var(--bg); font-family: var(--font-display); font-weight: 800; font-size: 11px; letter-spacing: 1px; padding: 5px 10px; border-radius: 999px; }
.card__body { padding: 18px 18px 22px; }
.card__cat { font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px; color: var(--dim); margin-bottom: 6px; text-transform: uppercase; }
.card__body h3 { font-family: var(--font-display); font-weight: 800; font-size: 18px; margin: 0 0 10px; }
.card__row { display: flex; align-items: center; justify-content: space-between; }
.price { font-family: var(--font-display); font-weight: 900; font-size: 20px; color: var(--accent); }
.rating { font-size: 13px; color: var(--muted); }

/* Página do produto */
.detail { padding: 32px 48px 80px; max-width: 1200px; }
.back { display: inline-block; color: var(--muted); font-family: var(--font-mono); font-size: 13px; margin-bottom: 24px; }
.back:hover { color: var(--text); }
.detail__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.detail .ph { border-radius: 20px; height: 520px; border: 1px solid var(--line); }
.detail .ph span { font-size: 13px; }
.detail__info { display: flex; flex-direction: column; gap: 20px; }
.detail__cat { font-family: var(--font-mono); font-size: 12px; letter-spacing: 2px; color: var(--accent); margin-bottom: 8px; text-transform: uppercase; }
.detail h1 { font-family: var(--font-display); font-weight: 900; font-stretch: 115%; font-size: 40px; margin: 0 0 8px; line-height: 1; text-transform: uppercase; }
.stars { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.stars b { color: var(--accent); font-weight: 400; }
.detail__desc { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px; color: var(--dim); margin-bottom: 10px; }
.sizes { display: flex; gap: 8px; flex-wrap: wrap; }
.prices { display: flex; align-items: baseline; gap: 12px; }
.prices .price { font-size: 40px; }
.old { color: var(--dim); font-size: 15px; text-decoration: line-through; }
.btn-wa { display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--wa); color: #06130a; font-family: var(--font-display); font-weight: 800; font-size: 16px; letter-spacing: 1px; padding: 18px; border-radius: 14px; }
.btn-wa:hover { color: #06130a; filter: brightness(1.08); }
.nutri { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.nutri__head { padding: 14px 18px; background: var(--bg-card); font-family: var(--font-display); font-weight: 800; font-size: 13px; letter-spacing: 1px; }
.nutri__head span { color: var(--dim); font-weight: 400; font-family: var(--font-body); }
.nutri__row { display: flex; justify-content: space-between; padding: 11px 18px; border-top: 1px solid var(--line-soft); font-size: 14px; }
.nutri__row span:first-child { color: var(--muted); }
.nutri__row span:last-child { font-weight: 600; }

/* Rodapé e botão flutuante */
.footer { border-top: 1px solid var(--line); padding: 32px 48px; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--dim); font-size: 13px; }
.footer__logo { font-family: var(--font-display); font-weight: 900; font-size: 16px; color: var(--text); }
.footer__logo span { color: var(--accent); }
.footer__legal { max-width: 420px; text-align: center; }
.zap { position: fixed; right: 24px; bottom: 24px; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(37,211,102,0.35); z-index: 100; font-family: var(--font-display); font-size: 15px; letter-spacing: .5px; color: #06130a; font-weight: 900; transition: transform .15s; }
.zap:hover { transform: scale(1.06); color: #06130a; }

/* Página 404 */
.notfound { padding: 96px 48px; text-align: center; }
.notfound h1 { font-family: var(--font-display); font-weight: 900; font-size: 64px; margin: 0 0 12px; }
.notfound p { color: var(--muted); margin: 0 0 24px; }

/* Celular */
@media (max-width: 760px) {
  .header, .hero, .section, .detail, .footer { padding-left: 20px; padding-right: 20px; }
  .header { flex-wrap: wrap; }
  .btn-wa-top { display: none; }
  .hero { padding-top: 48px; }
  .section { padding-top: 40px; padding-bottom: 56px; }
  .detail__grid { grid-template-columns: 1fr; gap: 28px; }
  .detail .ph { height: 320px; }
  .detail h1 { font-size: 32px; }
  .footer { flex-direction: column; text-align: center; }
  .zap { right: 16px; bottom: 16px; }
}

/* Quando há foto real, a caixa segue a proporção da imagem em vez da altura fixa */
.detail .ph:has(img) { height: auto; aspect-ratio: 11 / 6; }
.post .ph:has(img), .card .ph:has(img) { height: auto; aspect-ratio: 11 / 6; }
@media (max-width: 760px) { .detail .ph:has(img) { height: auto; } }
