:root {
  --red: #89190e;
  --red-hot: #a22114;
  --green: #1a5e3e;
  --black: #121212;
  --white: #ffffff;
  --mist: #e8ebe9;
  --muted: #9aa39c;
  --card: #1a1a1a;
  --font-display: "Bebas Neue", sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --base: /atletica/loja;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(137, 25, 14, 0.35), transparent 55%),
    radial-gradient(900px 400px at 90% 0%, rgba(26, 94, 62, 0.28), transparent 50%),
    linear-gradient(180deg, #0c0c0c, var(--black) 40%, #0a100d);
  color: var(--white);
  line-height: 1.45;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}

.top, main, .foot { position: relative; z-index: 1; }

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px clamp(16px, 4vw, 40px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  background: rgba(12,12,12,0.72);
  z-index: 20;
}

.brand { display: flex; gap: 12px; align-items: center; text-decoration: none; color: inherit; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--red); font-family: var(--font-display); font-size: 1.4rem; letter-spacing: 0.04em;
}
.brand-text { display: flex; flex-direction: column; }
.brand-text strong { font-size: 1rem; }
.brand-text small { color: var(--muted); font-size: 0.78rem; }

.nav { display: flex; gap: 8px; flex-wrap: wrap; }
.nav a {
  color: var(--mist);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  border: 1px solid transparent;
}
.nav a:hover { border-color: rgba(255,255,255,0.15); }
.cart-link span {
  display: inline-grid; place-items: center;
  min-width: 1.4rem; height: 1.4rem; border-radius: 999px;
  background: var(--green); color: white; font-size: 0.75rem; margin-left: 4px;
}

main { padding: 28px clamp(16px, 4vw, 40px) 64px; max-width: 1100px; margin: 0 auto; }

.hero {
  display: grid;
  gap: 18px;
  margin-bottom: 36px;
  animation: rise 0.6s ease both;
}
.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 4.8rem);
  letter-spacing: 0.03em;
  line-height: 0.95;
}
.hero p { margin: 0; max-width: 42ch; color: var(--mist); font-size: 1.05rem; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(26,94,62,0.25); border: 1px solid rgba(26,94,62,0.5);
  color: #b7e0c9; font-size: 0.85rem; width: fit-content;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.card {
  background: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease;
  animation: rise 0.55s ease both;
}
.card:hover { transform: translateY(-3px); border-color: rgba(137,25,14,0.55); }
.card .media {
  aspect-ratio: 4/3;
  background:
    linear-gradient(135deg, rgba(137,25,14,0.85), rgba(18,18,18,0.2)),
    repeating-linear-gradient(-45deg, transparent, transparent 8px, rgba(255,255,255,0.03) 8px, rgba(255,255,255,0.03) 16px);
  display: grid; place-items: end start;
  padding: 14px;
}
.card .media.event {
  background:
    linear-gradient(135deg, rgba(26,94,62,0.9), rgba(18,18,18,0.35)),
    repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.035) 10px, rgba(255,255,255,0.035) 20px);
}
.badge {
  font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(0,0,0,0.45); padding: 6px 10px; border-radius: 999px;
}
.card .body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { margin: 0; font-size: 1.15rem; }
.card .desc { margin: 0; color: var(--muted); font-size: 0.92rem; flex: 1; }
.price { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: 0.03em; color: var(--white); }
.meta { color: var(--muted); font-size: 0.85rem; }

.btn {
  appearance: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 16px; border-radius: 12px;
  font-family: var(--font-body); font-weight: 700; font-size: 0.95rem;
  text-decoration: none; color: var(--white);
  background: var(--red);
  transition: filter 0.2s ease, transform 0.2s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(0.98); }
.btn.green { background: var(--green); }
.btn.ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
}
.btn.block { width: 100%; }

.panel {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: clamp(18px, 3vw, 28px);
  animation: rise 0.45s ease both;
}
.panel h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: 0.03em;
}
.panel .lead { color: var(--mist); margin: 0 0 22px; }

.form { display: grid; gap: 12px; }
label { display: grid; gap: 6px; font-size: 0.88rem; color: var(--mist); }
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.35);
  color: white;
  font: inherit;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(137,25,14,0.55);
  border-color: transparent;
}

.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.line {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.line:last-child { border-bottom: 0; }
.total { font-family: var(--font-display); font-size: 2rem; }

.ticket {
  border: 1px dashed rgba(26,94,62,0.6);
  background: rgba(26,94,62,0.12);
  border-radius: 14px;
  padding: 14px;
  margin-top: 10px;
}
.ticket code { font-size: 1.05rem; color: #d8ffe8; }

.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.table th { color: var(--muted); font-weight: 600; }

.muted { color: var(--muted); }
.err { color: #ffb4a8; }
.ok { color: #b7e0c9; }
code { font-family: ui-monospace, monospace; }

.foot {
  padding: 28px clamp(16px, 4vw, 40px) 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: var(--muted);
  font-size: 0.9rem;
}
.foot p { margin: 0 0 6px; }

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 720px) {
  .top { flex-direction: column; align-items: flex-start; }
  .nav { width: 100%; }
}
