:root{
  --bg:#0b0f19;
  --card:#121827;
  --muted:#8d99ae;
  --txt:#eef2ff;
  --line:#263249;
  --pri:#7c3aed;
  --acc:#f5bb4e;
  --ok:#22c55e;
}

*{box-sizing:border-box}

body{
  margin:0;
  font-family:Inter,system-ui,Arial,sans-serif;
  background:linear-gradient(135deg,#080b12,#111827);
  color:var(--txt);
}

/* MENU */

.top{
  position:sticky;
  top:0;
  z-index:999;
  background:rgba(11,15,25,.90);
  backdrop-filter:blur(12px);
  border-bottom:1px solid var(--line);
}

.nav-container{
  max-width:1400px;
  margin:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 24px;
}

.brand{
  font-weight:800;
  color:var(--acc)!important;
  font-size:22px;
  text-decoration:none;
}

.nav-links{
  display:flex;
  gap:12px;
  align-items:center;
}

.nav-links a{
  color:#e5e7eb;
  text-decoration:none;
  padding:10px 13px;
  border-radius:12px;
  transition:.2s;
  white-space:nowrap;
}

.nav-links a:hover{
  background:#263249;
  color:#fff;
}

.menu-toggle{
  display:none;
  background:transparent;
  border:1px solid var(--line);
  color:#fff;
  font-size:26px;
  border-radius:12px;
  padding:6px 12px;
  cursor:pointer;
}

/* LAYOUT */

.wrap{
  max-width:1180px;
  margin:auto;
  padding:28px;
}

.grid,
.dashboard-grid,
.catalogo-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:18px;
}

.row{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:14px;
}

/* CARDS */

.card,
.form-card,
.dashboard-card{
  background:rgba(18,24,39,.9);
  border:1px solid var(--line);
  border-radius:22px;
  padding:22px;
  box-shadow:0 14px 40px rgba(0,0,0,.25);
}

h1{
  font-size:34px;
  margin:0 0 18px;
}

h2{margin-top:0}

.muted{color:var(--muted)}

.price{
  font-size:26px;
  font-weight:900;
  color:var(--acc);
}

.pill{
  display:inline-block;
  padding:5px 10px;
  border-radius:999px;
  background:#1f2937;
}

/* FORMULÁRIOS */

input,
select,
textarea{
  width:100%;
  padding:12px;
  border-radius:12px;
  border:1px solid #334155;
  background:#0f172a;
  color:#fff;
  margin:6px 0 14px;
}

label{
  font-size:13px;
  color:#cbd5e1;
}

/* BOTÕES */

.btn,
button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:11px 16px;
  border-radius:14px;
  border:0;
  background:var(--pri);
  color:#fff;
  text-decoration:none;
  font-weight:700;
  cursor:pointer;
}

.btn.alt{background:#263249}
.btn.gold{background:var(--acc);color:#111827}

/* TABELA */

.table{
  width:100%;
  border-collapse:collapse;
}

.table th,
.table td{
  padding:12px;
  border-bottom:1px solid var(--line);
  text-align:left;
}

/* CATÁLOGO */

.catalog-hero{
  padding:42px;
  border-radius:28px;
  background:
    radial-gradient(circle at top left,#7c3aed55,transparent 36%),
    linear-gradient(135deg,#111827,#020617);
  margin-bottom:24px;
}

.product-card{
  overflow:hidden;
  padding:0;
}

.product-card img,
.produto-card img{
  width:100%;
  height:230px;
  object-fit:cover;
  background:#1f2937;
}

.product-body{
  padding:20px;
}

/* CELULAR */

@media(max-width:768px){

  .nav-container{
    padding:12px 16px;
  }

  .menu-toggle{
    display:block;
    width:auto;
    margin:0;
  }

  .nav-links{
    display:none;
    position:absolute;
    top:64px;
    left:0;
    width:100%;
    background:rgba(11,15,25,.98);
    flex-direction:column;
    align-items:stretch;
    padding:14px;
    border-top:1px solid var(--line);
  }

  .nav-links.active{
    display:flex;
  }

  .nav-links a{
    width:100%;
    padding:14px;
  }

  .wrap{
    padding:16px;
  }

  h1{
    font-size:26px;
  }

  .row,
  .grid,
  .dashboard-grid,
  .catalogo-grid{
    grid-template-columns:1fr!important;
  }

  .card,
  .form-card,
  .dashboard-card{
    width:100%;
    padding:18px;
    margin-bottom:15px;
  }

  .table,
  table{
    display:block;
    width:100%;
    overflow-x:auto;
    white-space:nowrap;
  }

  input,
  select,
  textarea,
  .btn{
    width:100%;
  }

  button:not(.menu-toggle){
    width:100%;
  }

  .catalog-hero{
    padding:24px;
    border-radius:22px;
  }

  .product-card img,
  .produto-card img{
    height:190px;
  }
}

/* SUBMENU COMPUTADOR */

.nav-item{
  position:relative;
}

.submenu{
  display:none;
  position:absolute;
  top:42px;
  left:0;
  min-width:220px;
  background:rgba(11,15,25,.98);
  border:1px solid var(--line);
  border-radius:16px;
  padding:8px;
  box-shadow:0 18px 40px rgba(0,0,0,.35);
  z-index:1000;
}

.submenu a{
  display:block;
  padding:12px 14px;
}

.nav-item:hover .submenu{
  display:block;
}

/* CELULAR */

@media(max-width:768px){

  .nav-links{
    display:none;
  }

  .nav-links.active{
    display:flex;
  }

  .nav-item{
    width:100%;
  }

  .submenu{
    display:block;
    position:static;
    min-width:100%;
    box-shadow:none;
    border:0;
    background:#121827;
    margin-top:6px;
  }

  .submenu a{
    padding:12px 18px;
  }
}

/* COMPUTADOR */

@media(min-width:769px){

  .menu-toggle{
    display:none!important;
  }

  .nav-links{
    display:flex!important;
  }
}

.nav-item.open .submenu{
  display:block;
}

.nav-item:hover .submenu{
  display:none;
}