/* ===================== RESET ===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #0f172a;
  color: #e6eef8;
  font-family: 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

/* ===================== NAVBAR ===================== */
.navbar {
  background: #111827;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.navbar .logo {
  color: #8b5cf6;
  font-size: 1.4rem;
  font-weight: bold;
}

.navbar .nav-links {
  list-style: none;
  display: flex;
  gap: 1.2rem;
}

.navbar .nav-links a {
  color: #e6eef8;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.2s;
}

.navbar .nav-links a:hover {
  color: #8b5cf6;
}

/* ===================== HERO (opcional) ===================== */
.hero {
  position: relative;
  text-align: center;
}

.hero img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 1.6rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.7);
}

/* ===================== MAIN ===================== */
main.container {
  flex: 1;
  padding: 2rem 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  font-size: 1rem;
}

/* ===================== CARDS ===================== */
.card {
  background: #1e293b;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  text-align: center;
  width: 280px;
  transition: transform 0.2s;
}

.card:hover {
  transform: scale(1.03);
}

.card h2, .card h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.card p {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

/* ===================== INPUTS ===================== */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 0.6rem 0.8rem;
  margin: 0.5rem 0;
  border-radius: 8px;
  border: 1px solid #334155;
  background-color: #1e293b;
  color: #e6eef8;
  font-size: 1rem;
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
}

input::placeholder {
  color: #94a3b8;
}

input:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 5px rgba(139, 92, 246, 0.5);
}

/* ===================== BOTÕES ===================== */
.btn,
.qty-btn {
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
  text-align: center;
  color: #fff;
  background: linear-gradient(90deg,#8b5cf6,#ec4899);
}

.btn {
  display: inline-block;
  padding: 0.7rem 1rem;
  margin-top: 0.7rem;
  font-size: 1rem;
}

.btn:hover,
.qty-btn:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.qty-btn {
  padding: 0.4rem 0.8rem;
  font-size: 1.2rem;
}

/* ===================== FOOTER ===================== */
.footer {
  background: #111827;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: #9aa4b2;
  margin-top: auto;
}

/* ===================== QUANTIDADE - LOJA ===================== */
.quantity-selector {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0.8rem;
  gap: 0.5rem;
}

.quantity-selector input[type="number"] {
  width: 60px;
  text-align: center;
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  border: 1px solid #334155;
  background-color: #1e293b;
  color: #e6eef8;
  font-size: 1rem;
  -moz-appearance: textfield;
}

.quantity-selector input::-webkit-inner-spin-button,
.quantity-selector input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ===================== MODAL PADRÃO (PIX / NICK) ===================== */
.added-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.added-content {
  background: #1e293b;
  color: #e6eef8;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  width: 320px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.6);
  animation: popIn 0.3s ease-out;
}

.added-content h3 {
  color: #8b5cf6;
  margin-bottom: 0.8rem;
}

.added-content p {
  margin-bottom: 1rem;
  font-weight: bold;
  font-size: 1rem;
}

.added-content input {
  width: 80%;
  padding: 0.6rem 0.8rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  border: 1px solid #334155;
  background-color: #0f172a;
  color: #e6eef8;
  font-size: 1rem;
  outline: none;
}

.added-content input::placeholder {
  color: #94a3b8;
}

.added-content button {
  margin: 0.3rem;
  padding: 0.5rem 1rem;
  font-weight: bold;
}

/* ===================== ANIMAÇÃO ===================== */
@keyframes popIn {
  0% { transform: scale(0.7); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
