/* Estilos básicos */
body {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  margin: 0;
  padding-top: 70px; /* Compensar altura da navbar fixa */
}

h1 {
  text-align: center;
  font-size: 2em;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  background-color: #f8f9fa;
}

.navbar-brand {
  font-size: 1.3em;
  font-weight: bold;
}

.navbar-toggler {
  margin-left: auto;
}

.nav-link {
  font-size: 1.1em;
}

/* Offcanvas */
.offcanvas-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.offcanvas-title {
  font-size: 1.5em;
  font-weight: bold;
}

/* Container principal */
.container {
  max-width: 800px;
  margin: auto;
  padding: 20px;
}

/* Formulário de produto */
#productForm {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#productForm input,
#productForm textarea,
#productForm button {
  width: 100%;
  padding: 10px;
  font-size: 1em;
}

#productForm label {
  font-size: 1.1em;
  font-weight: bold;
  margin-top: 10px;
}

/* Lista de produtos */
#productList {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Cartão de produto */
.product {
  display: flex;
  align-items: flex-start;
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 8px;
  background-color: #f9f9f9;
  margin-bottom: 15px;
}

.product img {
  width: 150px;
  height: auto;
  border-radius: 8px;
  margin-right: 15px;
}

.product-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-title {
  font-size: 1.3em;
  font-weight: bold;
}

.product-price {
  font-size: 1.2em;
  color: #4CAF50;
  font-weight: bold;
}

.product-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.btn {
  font-size: 1em;
}


/* Container Principal */
.container {
  max-width: 700px;
  margin: auto;
  padding: 20px;
  background-color: #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

/* Títulos */
.container h1, .container h2 {
  text-align: center;
  color: #333;
  font-weight: 600;
  margin-bottom: 20px;
}

/* Formulário */
#productForm {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#productForm label {
  font-weight: 500;
  color: #555;
  margin-bottom: 5px;
}

/* Campos do Formulário */
#productForm input[type="text"],
#productForm input[type="number"],
#productForm textarea {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  transition: border-color 0.3s ease;
}

#productForm input[type="text"]:focus,
#productForm input[type="number"]:focus,
#productForm textarea:focus {
  border-color: #4CAF50;
  outline: none;
}

#productForm textarea {
  resize: vertical;
  min-height: 80px;
}

/* Botão de Adicionar Produto */
#productForm .btn {
  padding: 12px;
  font-size: 1.1rem;
  font-weight: bold;
  background-color: #4CAF50;
  border: none;
  color: white;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

#productForm .btn:hover {
  background-color: #45a049;
}

/* Lista de Produtos */
h2 {
  margin-top: 40px;
  font-size: 1.8rem;
  color: #333;
  border-bottom: 2px solid #ddd;
  padding-bottom: 10px;
}
