:root {
  --bg: #0b0c10;
  --bg-2: #12141b;
  --card: #171a22;
  --line: #262b36;
  --text: #f4f5f7;
  --muted: #9aa3b2;
  --red: #e23d3d;
  --red-2: #ff5a5a;
  --gold: #d4a017;
  --ok: #2ecc71;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--text); font-family: Inter, system-ui, sans-serif; min-height: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font-family: inherit; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.hidden { display: none !important; }
.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.04;
  background-image: radial-gradient(#fff 0.6px, transparent 0.6px);
  background-size: 3px 3px;
  z-index: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 12, 16, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 40px; height: 40px; display: grid; place-items: center;
  background: linear-gradient(160deg, var(--red), #8a1111);
  font-family: "Bebas Neue", sans-serif; font-size: 22px; letter-spacing: 1px;
  border-radius: 8px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 15px; }
.brand-text small { color: var(--muted); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.menu { display: flex; gap: 18px; margin-left: auto; }
.menu a { color: var(--muted); font-size: 14px; font-weight: 600; }
.menu a:hover, .menu a.active { color: var(--text); }
.nav-actions { display: flex; gap: 10px; }
.icon-btn, .cart-btn {
  background: var(--card); border: 1px solid var(--line); color: var(--text);
  border-radius: 10px; cursor: pointer;
}
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; }
.cart-btn { display: flex; align-items: center; gap: 8px; padding: 0 14px; height: 42px; font-weight: 600; }
.cart-btn b {
  background: var(--red); min-width: 20px; height: 20px; border-radius: 99px;
  display: grid; place-items: center; font-size: 11px;
}
.search-bar { border-top: 1px solid var(--line); padding: 12px 0; }
.search-bar input {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line); color: var(--text);
  border-radius: 10px; padding: 12px 14px; outline: none;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 56px;
  background:
    radial-gradient(900px 320px at 80% 0%, rgba(226, 61, 61, 0.22), transparent 60%),
    linear-gradient(180deg, #14161d, var(--bg));
}
.kicker {
  color: var(--red-2); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700;
}
.hero h1 {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(48px, 8vw, 92px);
  line-height: 0.9;
  margin: 10px 0 16px;
}
.hero p { color: var(--muted); max-width: 520px; font-size: 16px; }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.stats { display: flex; gap: 28px; margin-top: 40px; color: var(--muted); }
.stats b { display: block; color: var(--text); font-size: 22px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); color: var(--text); font-weight: 700; cursor: pointer;
}
.btn.primary { background: var(--red); border-color: transparent; }
.btn.primary:hover { background: var(--red-2); }
.btn.full { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.section { padding: 48px 0; }
.section h2 {
  font-family: "Bebas Neue", sans-serif; font-size: 36px; letter-spacing: 0.5px; margin-bottom: 6px;
}
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 22px; }
.muted { color: var(--muted); }

.cat-grid, .grid {
  display: grid; gap: 16px;
}
.cat-grid { grid-template-columns: repeat(5, 1fr); }
.grid { grid-template-columns: repeat(4, 1fr); }
.cat-card, .product-card, .panel {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
}
.cat-card { padding: 18px; min-height: 140px; display: flex; flex-direction: column; justify-content: space-between; }
.cat-card span { color: var(--muted); font-size: 13px; }
.cat-card:hover { border-color: #3a4150; transform: translateY(-2px); transition: 0.2s; }
.dot { width: 10px; height: 10px; border-radius: 99px; display: inline-block; }

.product-card { overflow: hidden; display: flex; flex-direction: column; }
.thumb {
  height: 160px; display: grid; place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.08), transparent 40%),
    linear-gradient(160deg, #1d2230, #101218);
  position: relative;
}
.thumb svg { width: 72px; height: 72px; }
.badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--red); color: white; font-size: 11px; font-weight: 700;
  padding: 4px 8px; border-radius: 999px;
}
.product-body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-body h3 { font-size: 15px; }
.price { display: flex; align-items: baseline; gap: 8px; }
.price strong { font-size: 18px; }
.old { color: var(--muted); text-decoration: line-through; font-size: 13px; }
.product-body .btn { margin-top: auto; }

.product-page { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 24px; padding: 40px 0 24px; }
.gallery {
  min-height: 420px; border-radius: 18px; border: 1px solid var(--line);
  background: linear-gradient(160deg, #1a1e29, #0e1015); display: grid; place-items: center;
}
.gallery svg { width: 180px; height: 180px; }
.panel { padding: 24px; }
.panel h1 { font-size: 28px; margin: 8px 0 12px; }
.details { margin: 16px 0 20px; color: var(--muted); display: grid; gap: 8px; }
.details li { list-style: none; padding-left: 16px; position: relative; }
.details li::before { content: ""; width: 7px; height: 7px; background: var(--red); border-radius: 99px; position: absolute; left: 0; top: 7px; }
.qty { display: flex; align-items: center; gap: 10px; margin: 16px 0; }
.qty button { width: 36px; height: 36px; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.chip {
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  border-radius: 999px; padding: 8px 12px; cursor: pointer; font-weight: 600;
}
.chip.active, .chip:hover { color: var(--text); border-color: var(--red); }

.checkout { display: grid; grid-template-columns: 1fr 0.8fr; gap: 20px; padding: 40px 0; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; color: var(--muted); }
.field input, .field textarea, .field select {
  background: var(--bg); border: 1px solid var(--line); color: var(--text);
  border-radius: 10px; padding: 12px; outline: none;
}
.pay-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.pay {
  border: 1px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer; background: var(--bg);
}
.pay.active { border-color: var(--red); }
.summary-line { display: flex; justify-content: space-between; margin-bottom: 8px; color: var(--muted); }
.pix-box {
  margin-top: 16px; padding: 14px; background: #0d1118; border: 1px dashed #314056; border-radius: 12px;
  word-break: break-all; font-size: 12px; color: #c9d4e5;
}
.success { text-align: center; padding: 80px 0; }
.success h1 { font-family: "Bebas Neue", sans-serif; font-size: 48px; }

.drawer {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: none; z-index: 30;
}
.drawer.open { display: block; }
.drawer-panel {
  position: absolute; right: 0; top: 0; height: 100%; width: min(400px, 100%);
  background: var(--bg-2); border-left: 1px solid var(--line); display: flex; flex-direction: column;
}
.drawer-head, .drawer-foot { padding: 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.drawer-foot { border-bottom: 0; border-top: 1px solid var(--line); display: block; }
.cart-list { padding: 18px; overflow: auto; flex: 1; display: grid; gap: 12px; align-content: start; }
.cart-item { display: grid; grid-template-columns: 1fr auto; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.total-row { display: flex; justify-content: space-between; margin-bottom: 12px; }
.empty { color: var(--muted); text-align: center; padding: 40px 0; }

.footer { border-top: 1px solid var(--line); padding: 40px 0 20px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.footer h4 { margin-bottom: 10px; }
.footer a, .footer p { color: var(--muted); display: block; margin-bottom: 6px; }
.copy { margin-top: 28px; color: #6b7382; font-size: 12px; padding-bottom: 12px; }

.terms { padding: 48px 0; max-width: 760px; }
.terms h1 { font-family: "Bebas Neue", sans-serif; font-size: 48px; }
.terms p, .terms li { color: var(--muted); margin: 10px 0; line-height: 1.6; }

@media (max-width: 980px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .product-page, .checkout, .footer-grid { grid-template-columns: 1fr; }
  .menu { display: none; }
}
@media (max-width: 640px) {
  .grid, .cat-grid { grid-template-columns: 1fr; }
  .cart-btn span { display: none; }
}
