body {
  font-family: Arial, sans-serif;
  padding: 20px;
  background-color: #f1f2ff; 
}

h1 {
  text-align: center;
}

.productos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  justify-items: center;
  padding: 20px;
}

.producto {
  background-color: #fff;
  border: 1px solid #bbb;
  width: 100%;
  max-width: 650px;    
  min-height: 420px;    
  padding: 30px;         
  box-shadow: 0 0 18px rgba(0,0,0,0.08);
  border-radius: 12px;
  text-align: center;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 15px;
  justify-content: space-between;
}

.producto img {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  border-radius: 8px;
  padding: 10px;
  background-color: #f0f0f0;
  border: 1px solid #ddd;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.categorias {
  text-align: center;
  margin-bottom: 20px;
}

.categorias button {
  padding: 15px 25px;
  margin: 8px;
  font-size: 16px;
  background-color: #000;     
  color: #fff;               
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.categorias button:hover {
  background-color: #333;   
}

.categorias button:hover {
  background-color: #0b7dda;
}

.producto h3 {
  font-size: 22px;
  margin-bottom: 5px;
}

.producto p {
  font-size: 16px;
  color: #333;
  line-height: 1.6;
  margin: 5px 0;
}

.whatsapp-fijo {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.whatsapp-fijo:hover {
  transform: scale(1.1);
}

.whatsapp-fijo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.busqueda {
  text-align: center;
  margin: 20px 0;
}

#buscador {
  width: 80%;
  max-width: 500px;
  padding: 10px 15px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.ordenar {
  text-align: center;
  margin-bottom: 20px;
  font-size: 16px;
}

.ordenar select {
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid #ccc;
  margin-left: 8px;
}

.barra-superior {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  margin: 20px 0;
}

.barra-superior input {
  padding: 10px 14px;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #ccc;
  width: 260px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.ordenar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.producto {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.producto:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.producto {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.carrito-flotante {
  position: fixed;
  top: 60px;
  right: 20px;
  width: 300px;
  max-height: 80vh;
  background: white;
  border: 2px solid #333;
  padding: 20px;
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
  overflow-y: auto;
  display: none;
  z-index: 999;
}

.carrito-flotante h3 {
  margin-top: 0;
  font-size: 20px;
}

.btn-ver-carrito {
  position: fixed;
  top: 20px;
  right: 20px;
  background: black;
  color: white;
  padding: 12px 16px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  z-index: 998;
  font-size: 16px;
}

.carrito-flotante button {
  margin-top: 10px;
  width: 100%;
  padding: 8px;
  font-size: 14px;
  background: #25D366;
  border: none;
  color: white;
  cursor: pointer;
  border-radius: 5px;
}

.carrito-flotante button:last-child {
  background: #999;
}

.cantidad-control {
  display: flex;
  justify-content: center; 
  align-items: center;  
  gap: 5px;
}

.cantidad-control button {
  background: #ddd;
  border: none;
  padding: 5px 10px;
  font-size: 16px;
  cursor: pointer;
}

.cantidad-control input {
  width: 35px; 
  padding: 3px; 
  text-align: center;
  font-size: 14px;
}




