:root {
  --bg: #08090d;
  --panel: #11131a;
  --panel2: #171923;
  --panel3: #1c1f2a;
  --text: #f7f7f8;
  --muted: #a8abb7;
  --red: #e50914;
  --red2: #ff3340;
  --line: #292c36;
  --ok: #19c37d;
  --warn: #f5a524;
  --blue: #3b82f6;
  --radius: 16px;
  --shadow: 0 20px 50px rgba(0,0,0,.45);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 8px; }

.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8,9,13,.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: 1200px; margin: auto; height: 68px;
  display: flex; align-items: center; gap: 14px; padding: 0 18px;
}
.logo {
  font-weight: 900; font-size: 19px; letter-spacing: -.6px;
  white-space: nowrap; cursor: pointer;
}
.logo b { color: var(--red); }
.search-wrap {
  flex: 1; max-width: 380px; margin-left: 12px; position: relative;
}
.search-wrap input {
  width: 100%; background: var(--panel); border: 1px solid var(--line);
  color: var(--text); padding: 10px 14px 10px 38px; border-radius: 12px; font-size: 14px;
}
.search-wrap input:focus { outline: none; border-color: #444; }
.search-wrap .icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 15px; pointer-events: none;
}
.links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.links > a, .links > button, .cart-btn {
  color: var(--muted); padding: 9px 12px; border-radius: 10px;
  font-weight: 600; font-size: 13px; transition: .15s;
}
.links > a:hover, .links > button:hover, .cart-btn:hover {
  color: #fff; background: var(--panel2);
}
.cart-btn { position: relative; font-size: 16px; padding: 9px 11px; }
.badge {
  position: absolute; top: 0; right: 0;
  background: var(--red); color: #fff; border-radius: 20px;
  font-size: 10px; min-width: 17px; height: 17px;
  display: none; place-items: center; font-weight: 800;
}
.btn {
  border-radius: 12px; padding: 12px 18px; font-weight: 700; font-size: 14px;
  transition: .15s; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red2); }
.btn-secondary { background: var(--panel2); color: #fff; border: 1px solid var(--line); }
.btn-secondary:hover { border-color: #4a4e5c; }
.btn-danger { background: #2a1215; color: #ff8a8a; border: 1px solid #5a2028; }
.btn-danger:hover { background: #3a181c; }
.btn-ok { background: #0d2e22; color: var(--ok); border: 1px solid #1a5c40; }
.btn-pix { background: #00b4a0; color: #fff; }
.btn-pix:hover { background: #00c9b3; }
.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.btn-sm { padding: 7px 12px; font-size: 12px; border-radius: 8px; }
.btn-block { width: 100%; }

.hero {
  max-width: 1200px; margin: auto;
  padding: 56px 18px 36px;
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center;
}
.eyebrow {
  color: #ff5b64; font-weight: 800; text-transform: uppercase;
  font-size: 11px; letter-spacing: 1.8px; margin-bottom: 10px;
}
.hero h1 {
  font-size: clamp(34px, 5.2vw, 58px); line-height: .97;
  letter-spacing: -2.2px; margin-bottom: 16px;
}
.hero h1 span { color: var(--red); }
.hero > div > p { color: var(--muted); font-size: 16px; max-width: 520px; margin-bottom: 22px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-card {
  background: linear-gradient(160deg, #1c0c10 0%, #12141c 60%);
  border: 1px solid #3a2228; border-radius: 22px; padding: 26px;
  box-shadow: var(--shadow);
}
.hero-card .big { font-size: 44px; font-weight: 900; color: var(--red); line-height: 1; }
.hero-card .sub { color: var(--muted); font-size: 13px; margin: 4px 0 18px; }
.ticks { display: grid; gap: 9px; }
.ticks span {
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; color: #ddd;
}
.ticks span::before {
  content: "✓"; color: var(--ok); font-weight: 900; font-size: 14px;
}

.wrap { max-width: 1200px; margin: auto; padding: 12px 18px 28px; }
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 12px; margin-bottom: 16px; flex-wrap: wrap;
}
.section-head h2 { font-size: 26px; letter-spacing: -1px; }
.section-head p { color: var(--muted); font-size: 13px; }

.filters {
  display: flex; gap: 7px; overflow-x: auto; padding-bottom: 14px;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.filter {
  white-space: nowrap; background: var(--panel); border: 1px solid var(--line);
  color: var(--muted); padding: 8px 14px; border-radius: 999px;
  font-weight: 600; font-size: 12.5px; transition: .15s;
}
.filter.active, .filter:hover { background: var(--red); color: #fff; border-color: var(--red); }

.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px;
}
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; display: flex; flex-direction: column; gap: 8px;
  transition: border-color .15s, transform .15s;
}
.card:hover { border-color: #3f4352; transform: translateY(-2px); }
.card .brand {
  font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  color: var(--red); background: rgba(229,9,20,.1); padding: 3px 7px;
  border-radius: 5px; width: fit-content;
}
.card h3 { font-size: 15px; line-height: 1.3; font-weight: 700; }
.card .meta { color: var(--muted); font-size: 12px; }
.card .price-row { margin-top: auto; }
.card .price { font-size: 20px; font-weight: 900; }
.card .price small { font-size: 11px; font-weight: 600; color: var(--muted); }
.card .row-btns { display: flex; gap: 6px; margin-top: 4px; }

.info-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 40px 0 10px;
}
.info-box {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
}
.info-box .num {
  width: 32px; height: 32px; border-radius: 10px; background: rgba(229,9,20,.12);
  color: var(--red); font-weight: 900; font-size: 13px;
  display: grid; place-items: center; margin-bottom: 12px;
}
.info-box strong { display: block; margin-bottom: 4px; font-size: 14px; }
.info-box p { color: var(--muted); font-size: 13px; }

.footer {
  border-top: 1px solid var(--line); margin-top: 48px;
  padding: 28px 18px; text-align: center; color: var(--muted); font-size: 12.5px;
}
.footer a { color: var(--red); font-weight: 600; }

.overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.65); z-index: 80;
  opacity: 0; pointer-events: none; transition: .2s;
}
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; width: min(400px, 100vw); height: 100%;
  background: var(--panel); border-left: 1px solid var(--line); z-index: 90;
  transform: translateX(100%); transition: .25s cubic-bezier(.2,.8,.2,1);
  display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px; border-bottom: 1px solid var(--line);
}
.drawer-head h3 { font-size: 17px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 12px 18px; }
.drawer-foot { padding: 14px 18px 20px; border-top: 1px solid var(--line); }
.cart-item {
  display: flex; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--line); align-items: center;
}
.cart-item .ci-info { flex: 1; min-width: 0; }
.cart-item .name {
  font-weight: 700; font-size: 13.5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cart-item .sub { color: var(--muted); font-size: 12px; }
.qty-ctrl { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.qty-ctrl button {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--panel2); border: 1px solid var(--line); font-weight: 800; font-size: 14px;
}
.qty-ctrl span { min-width: 18px; text-align: center; font-weight: 700; font-size: 13px; }
.cart-total {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 17px; font-weight: 900; margin-bottom: 12px;
}
.empty-state { color: var(--muted); text-align: center; padding: 48px 12px; font-size: 14px; }

.modal-bg {
  position: fixed; inset: 0; background: rgba(0,0,0,.75); z-index: 100;
  display: none; align-items: center; justify-content: center; padding: 16px;
}
.modal-bg.open { display: flex; }
.modal-box {
  background: var(--panel); border: 1px solid var(--line); border-radius: 20px;
  padding: 26px; width: min(440px, 100%); position: relative;
  max-height: 92vh; overflow-y: auto; box-shadow: var(--shadow);
}
.modal-box.wide { width: min(520px, 100%); }
.modal-box h3 { font-size: 20px; margin-bottom: 6px; }
.modal-box .desc { color: var(--muted); font-size: 13.5px; margin-bottom: 16px; }
.modal-box label {
  display: block; font-size: 12px; font-weight: 600; margin-bottom: 4px; color: var(--muted);
}
.modal-box input, .modal-box select, .modal-box textarea {
  width: 100%; background: #0b0c10; color: #fff; border: 1px solid var(--line);
  padding: 11px 12px; border-radius: 10px; margin-bottom: 12px; font-size: 14px;
}
.modal-box input:focus, .modal-box select:focus, .modal-box textarea:focus {
  outline: none; border-color: var(--red);
}
.close-x {
  position: absolute; top: 12px; right: 14px;
  color: var(--muted); font-size: 22px; line-height: 1; padding: 4px 8px; border-radius: 8px;
}
.close-x:hover { background: var(--panel2); color: #fff; }
.login-error { color: #ff6b6b; font-size: 13px; margin-bottom: 10px; display: none; }

.detail-price { font-size: 28px; font-weight: 900; margin: 8px 0 16px; }
.detail-price small { font-size: 13px; color: var(--muted); font-weight: 600; }
.detail-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip {
  background: var(--panel2); border: 1px solid var(--line);
  padding: 4px 10px; border-radius: 999px; font-size: 12px; color: var(--muted);
}

/* PIX payment box */
.pix-box {
  background: var(--panel2); border: 1px solid var(--line);
  border-radius: 16px; padding: 20px; text-align: center; margin: 12px 0;
}
.pix-box .pix-amount {
  font-size: 32px; font-weight: 900; color: var(--ok); margin: 8px 0;
}
.pix-qr {
  width: 200px; height: 200px; margin: 14px auto;
  background: #fff; border-radius: 12px; padding: 10px;
  display: flex; align-items: center; justify-content: center;
}
.pix-qr img { width: 100%; height: 100%; object-fit: contain; }
.pix-key-box {
  background: #0b0c10; border: 1px dashed var(--line);
  border-radius: 10px; padding: 12px; margin: 12px 0;
  word-break: break-all; font-size: 13px; font-family: monospace; color: #ccc;
  text-align: left;
}
.pix-steps {
  text-align: left; margin: 14px 0; font-size: 13px; color: var(--muted);
}
.pix-steps li { margin: 6px 0 6px 18px; }
.pix-order-id {
  font-weight: 800; font-size: 15px; margin-bottom: 4px;
}

.admin-header {
  background: var(--panel); border-bottom: 1px solid var(--line);
  padding: 0 18px; height: 60px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  position: sticky; top: 0; z-index: 40;
}
.admin-header .logo { font-size: 17px; }
.admin-header .spacer { flex: 1; }
.admin-tabs {
  display: flex; gap: 4px; padding: 14px 18px 0; max-width: 1200px; margin: auto;
  overflow-x: auto; scrollbar-width: none;
}
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tab {
  padding: 10px 16px; border-radius: 10px 10px 0 0; font-weight: 600; font-size: 13px;
  color: var(--muted); border: 1px solid transparent; border-bottom: 0;
  white-space: nowrap;
}
.admin-tab.active {
  background: var(--panel); color: #fff; border-color: var(--line);
}
.admin-content { max-width: 1200px; margin: auto; padding: 0 18px 40px; }
.tab-panel { display: none; padding-top: 18px; }
.tab-panel.active { display: block; }
.admin-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px; margin-bottom: 18px;
}
.stat-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px;
}
.stat-card .label {
  color: var(--muted); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .6px;
}
.stat-card .value { font-size: 26px; font-weight: 900; margin-top: 2px; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.admin-box {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
}
.admin-box h3 { font-size: 15px; margin-bottom: 12px; }
.admin-box input, .admin-box select, .admin-box textarea {
  width: 100%; background: #0b0c10; color: #fff; border: 1px solid var(--line);
  padding: 10px 12px; border-radius: 9px; margin: 3px 0 10px; font-size: 13.5px;
}
.admin-box input:focus, .admin-box select:focus, .admin-box textarea:focus {
  outline: none; border-color: var(--red);
}
.admin-box label { font-size: 12px; color: var(--muted); font-weight: 600; }
.product-row {
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--line); padding: 10px 0; gap: 10px;
}
.product-row:last-child { border-bottom: 0; }
.product-row .info b { font-size: 13.5px; display: block; }
.product-row .info small { color: var(--muted); font-size: 11.5px; }
.admin-list { max-height: 380px; overflow-y: auto; }
.full { grid-column: 1 / -1; }
.note { color: var(--muted); font-size: 12px; line-height: 1.5; margin-top: 8px; }
.order-row {
  background: var(--panel2); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px; margin-bottom: 10px;
}
.order-row .ord-top {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px;
}
.order-row .ord-id { font-weight: 800; font-size: 14px; }
.order-row .ord-date { color: var(--muted); font-size: 12px; }
.order-row .ord-items { font-size: 13px; color: #ccc; margin-bottom: 4px; }
.order-row .ord-total { font-weight: 800; color: var(--ok); }
.status-badge {
  font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px;
  background: rgba(245,165,36,.15); color: var(--warn);
}
.status-badge.done { background: rgba(25,195,125,.15); color: var(--ok); }
.status-badge.paid { background: rgba(0,180,160,.15); color: #00c9b3; }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: #0d2e22; color: var(--ok); border: 1px solid #1a5c40;
  padding: 12px 20px; border-radius: 12px; font-weight: 700; font-size: 13px;
  z-index: 200; transition: .3s; opacity: 0; pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.err { background: #2a1215; color: #ff8a8a; border-color: #5a2028; }
.no-results {
  grid-column: 1 / -1; text-align: center; padding: 48px 16px; color: var(--muted);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 36px; }
  .hero-card { order: -1; }
  .admin-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .search-wrap { display: none; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .links > a:not(.keep), .links > button:not(.keep) { display: none; }
  .nav { height: 58px; }
  .hero h1 { font-size: 32px; }
}
