/* ============================= */
/* RESET */
/* ============================= */

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

body {
  font-family: "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #1e293b;
  padding: 40px 20px;
  min-height: 100vh;
}

/* ============================= */
/* TÍTULO PRINCIPAL */
/* ============================= */

h1 {
  text-align: center;
  color: #ffffff;
  margin-bottom: 40px;
  font-weight: 600;
  letter-spacing: 1px;
}

/* ============================= */
/* LAYOUT PRINCIPAL */
/* ============================= */

.container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

/* ============================= */
/* SEÇÕES */
/* ============================= */

section {
  background: #ffffff;
  padding: 25px;
  border-radius: 16px;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.25),
    0 2px 8px rgba(0, 0, 0, 0.1);
  animation: fadeIn 0.5s ease;
}

section h2 {
  margin-bottom: 20px;
  font-weight: 600;
  color: #0f172a;
}

/* ============================= */
/* PRODUTOS */
/* ============================= */

#lista-produtos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.produto {
  background: #f8fafc;
  padding: 18px;
  border-radius: 12px;
  transition: all 0.25s ease;
  border: 1px solid #e2e8f0;
}

.produto:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.produto h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.produto p {
  margin-bottom: 12px;
  font-weight: 500;
  color: #334155;
}

/* ============================= */
/* BOTÕES */
/* ============================= */

button {
  cursor: pointer;
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.25s ease;
}

/* Adicionar */

.btn-adicionar {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  width: 100%;
}

.btn-adicionar:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.35);
}

/* Remover */

.btn-remover {
  background: #ef4444;
  color: white;
  margin-top: 8px;
}

.btn-remover:hover {
  background: #dc2626;
}

/* Limpar carrinho */

#limpar-carrinho {
  margin-top: 20px;
  background: #f1f5f9;
  color: #334155;
  width: 100%;
}

#limpar-carrinho:hover {
  background: #e2e8f0;
}

/* ============================= */
/* CARRINHO */
/* ============================= */

.item-carrinho {
  background: #f8fafc;
  padding: 15px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  margin-bottom: 15px;
  transition: all 0.2s ease;
}

.item-carrinho:hover {
  background: #ffffff;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.item-carrinho strong {
  display: block;
  margin-bottom: 6px;
}

.item-carrinho p {
  font-size: 0.85rem;
  margin-bottom: 5px;
}

/* Input quantidade */

.input-quantidade {
  width: 60px;
  padding: 6px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  margin-left: 6px;
  text-align: center;
}

/* ============================= */
/* TOTAL */
/* ============================= */

h3 {
  margin-top: 20px;
  font-size: 1.1rem;
  color: #0f172a;
}

#total {
  font-weight: bold;
  color: #2563eb;
}

/* ============================= */
/* RESPONSIVIDADE */
/* ============================= */

@media (max-width: 900px) {
  .container {
    grid-template-columns: 1fr;
  }
}

/* ============================= */
/* ANIMAÇÃO */
/* ============================= */

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