* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  background: linear-gradient(135deg, #0f172a, #020617);
  display: flex;
  justify-content: center;
}

/* APP */
.app {
  width: 100%;
  max-width: 420px;
  min-height: 100vh;
  background: #f8fafc;
  border-radius: 30px;
  overflow: hidden;
  animation: fadeIn 0.6s ease;
}

/* HEADER */
.header {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.logo {
  width: 45px;
  border-radius: 10px;
}

.title {
  font-size: 18px;
  font-weight: bold;
}

/* PAGES */
.page {
  display: none;
  padding: 20px;
  animation: slideUp 0.4s ease;
}

.page.active {
  display: block;
}

/* CARDS */
.card {
  background: white;
  padding: 18px;
  border-radius: 20px;
  margin-bottom: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: 0.25s;
}

.card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.product {
  background: white;
  border-radius: 15px;
  padding: 10px;
  transition: 0.2s;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.product:hover {
  transform: scale(1.05);
}

.product img {
  width: 100%;
  border-radius: 10px;
}

.product h4 {
  font-size: 14px;
  margin-top: 5px;
}

.product span {
  color: #16a34a;
  font-weight: bold;
}

/* NAV */
.nav {
  position: fixed;
  bottom: 0;
  width: 100%;
  max-width: 420px;
  display: flex;
  justify-content: space-around;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  padding: 12px;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.nav button {
  background: none;
  border: none;
  color: white;
  font-size: 22px;
  transition: 0.2s;
}

.nav button:hover {
  transform: scale(1.2);
  color: #22c55e;
}

/* ANIMAÇÕES */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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