body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  background: radial-gradient(circle at top, #e3f2fd, #f4f4f4 60%);
}

.layout {
  display: grid;
  grid-template-areas:
    "nav nav"
    "aside main"
    "footer footer";
  grid-template-columns: 250px 1fr;
  grid-template-rows: 60px 1fr 50px;
  min-height: 100vh;
}

.navbar {
  grid-area: nav;
  background: linear-gradient(90deg, #1f3c5b, #0d47a1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.sidebar {
  grid-area: aside;
  background: #eee7e7;
  padding: 20px;
}

.products {
  grid-area: main;
  padding: 20px;
  background: linear-gradient(to bottom, #f4f4f4, #eaeaea);
}

.products h2 {
  font-weight: 600;
}
 
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.categorias {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.categorias a {
  text-decoration: none;
  color: #333;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.categorias a:hover {
  background: #ffcc00;
  color: #000;
  transform: translateX(5px);
}
.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: white;
  padding: 15px;
  border: 1px solid #ddd;
  gap: 10px;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.4);
}
.card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.card:hover img {
  transform: scale(1.05);
  filter: brightness(1.05);
}

.card button {
  background: linear-gradient(90deg, #d32f2f, #b71c1c);
  color: white;
  border: none;
  padding: 10px;
  width: 100%;
  cursor: pointer;
  border-radius: 8px;
  font-weight: 600;
  transition: transform 0.2s ease;
  animation: pulse 2.5s infinite;
}


.card button:hover {
  transform: scale(1.07);
}
.card h4 {
  font-weight: 500;
}

.card p {
  font-weight: 300;
}

.footer {
  grid-area: footer;
  background: #1f3c5b;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 992px) {

  .layout {
    grid-template-areas:
      "nav"
      "aside"
      "main"
      "footer";
    grid-template-columns: 1fr;
    grid-template-rows: 60px auto 1fr 50px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media (max-width: 576px) {

  .product-grid {
    grid-template-columns: 1fr;
  }

  .navbar {
    font-size: 0.9rem;
    text-align: center;
  }

  .card img {
    height: 160px;
  }

}
