/* Catálogo específico */

header {
  display: flex;
  min-height: 70px;
  background-color: #0f1732;
  color: white;
  justify-content: space-between;
  align-items: center;
  padding: 10px; /* menos padding en general */
}

header nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding-right: 10px;
  font-size: 30px;
}

header nav a:hover{
    color: rgb(0, 234, 255);
}

.logo{
    display: flex;
    align-items: center;
}

.logo img {
  height: 50px; /* tamaño por defecto */
  margin-right: 10px;
  max-width: 100%; /* evita que se desborde */
  height: auto; /* que ajuste proporción */
}

.logo2{
    display: flex;
    align-items: center;
}

.logo2 img {
  height: 50px; /* tamaño por defecto */
  margin-right: 10px;
  max-width: 100%; /* evita que se desborde */
  height: auto; /* que ajuste proporción */
}

@media (max-width:700px) {
  header {
    flex-direction: column; /* reduce aún más en móvil */
    align-items: center;
  }
  
  nav{
    display: block;
    margin: 15px 0; /* separación vertical en móvil */
    text-align: center;
  }
  
  .logo img {
    max-height: 40px !important; /* más pequeño en móvil */
  }
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Open Sans', sans-serif;
}

.carousel-item img {
  width: 100%;
  height: 400px; /* o el tamaño que prefieras */
  object-fit: cover; /* Recorta la imagen para que no se deforme */
}

.container {
  margin-top: 20px;
}

.banner-box {
  border-radius: 12px;
  overflow: hidden;
  max-width: 1140px;
  margin: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.banner-img {
  height: 280px; /* Puedes ajustar a 250px o 300px según necesites */
  object-fit: cover;
}


/* Sidebar de categorías */
.sidebar {
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
}


.btn-outline-primary:hover {
  background-color: #1c2851;
  color: white;
}

/* Barra de filtros */
.filter-bar {
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* Tarjetas de producto */
.product-card {
  background: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  text-align: center;
  padding: 10px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
}

.product-card h6 {
  margin-top: 10px;
  font-size: 14px;
  font-family: 'Open Sans', sans-serif;
}

.product-card:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Footer */
footer {
  background-color: #0f1732;
  color: white;
  text-align: center;
  padding: 20px;
}

.social-buttons a {
  display: inline-block;
  margin: 0 10px;
  color: white;
  text-decoration: none;
  font-size: 30px;
}

.social-buttons a:hover {
  color: #ddd;
}

/* Botón flotante Facebook */
.facebook-float {
  position: fixed;
  bottom: 90px; /* más arriba que WhatsApp para no taparse */
  right: 20px;
  background-color: #3b5998; /* azul Facebook */
  color: white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 30px;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
  text-decoration: none;
  z-index: 1000;
  animation: slideIn 1s ease;
}

.facebook-float:hover {
  background-color: #334d84;
}

/* Botón flotante WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 30px;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
  text-decoration: none;
  z-index: 1000;
  animation: slideIn 1s ease;
}

@keyframes slideIn {
  from {transform: translateY(100px); opacity: 0;}
  to {transform: translateY(0); opacity: 1;}
}

.whatsapp-float:hover {
  background-color: #1ebe57;
}

@media (max-width: 768px) {
  .banner-img {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .banner-img {
    height: 140px;
  }
}

/* Aplicar a todos los li dentro de #categoryList con la clase category-item */
#categoryList .category-item {
  cursor: pointer !important;
  padding: 8px 12px;
  transition: background-color 0.3s, color 0.3s;
  border-radius: 4px;
}

#categoryList .category-item:hover {
  background-color: #007bff !important;
  color: white !important;
}

#categoryList .category-item.active {
  background-color: #0f1732 !important; /* Un tono más oscuro para destacar */
  color: white !important;
}

.boton-vista {
  margin-bottom: 20px; /* Ajusta según lo que necesites */
}

.product-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-card-link:hover .product-card {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

#searchInput {
  touch-action: manipulation;
}
