.ce-catalogo-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  font-family: sans-serif;
}

.ce-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.ce-card {
  background: #ffffff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgb(0 0 0 / 20%);
  border: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
}

.ce-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.ce-img {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  border-bottom: none;
  border-radius: 15px 15px 0 0;
}

.ce-info {
  background-color: #FFF1EB;
  padding: 15px;
  text-align: center;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  border-radius: 0 0 15px 15px;
}

.ce-info h3 {
  margin: 0 0 8px 0;
  font-size: 1.1em;
  color: #333;
  font-weight: 700;
}

.ce-precio {
  color: #f15a24;
  font-size: 1.2em;
  font-weight: 900;
  margin-bottom: 15px;
}

.ce-btn-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: #8bc34a;
  color: #fff;
  padding: 8px 15px;
  font-size: 0.95em;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  margin-top: auto;
}

.ce-btn-wa:hover {
  background: #7cb342;
  color: #fff;
  transform: translateY(-2px);
}

.ce-btn-container {
  text-align: center;
  margin-top: 40px;
}

.ce-btn-ver-mas {
  background: transparent;
  border: 1px solid #666;
  color: #444;
  border-radius: 20px;
  padding: 8px 30px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ce-btn-ver-mas:hover {
  background: #2c3e50;
  color: #fff;
}

.ce-card.ce-oculto {
  display: none;
}

/* Buscador Estilo Minimalista */
.ce-buscador-container {
  max-width: 600px;
  margin: 0;
  width: 600px;
}

.ce-input-wrapper {
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  /* Borde gris muy suave de tu imagen */
  border-radius: 4px;
  /* Bordes ligeramente redondeados */
  padding: 5px 15px;
  transition: border-color 0.3s ease;
}

.ce-input-wrapper:focus-within {
  border-color: #999;
  /* Oscurece un poco el borde al escribir */
}

#ce-input-busqueda {
  flex-grow: 1;
  padding: 5px 0;
  border: none;
  background: transparent;
  font-size: 1rem;
  color: #333;
  outline: none;
  font-family: inherit;
}

#ce-input-busqueda::placeholder {
  color: #928b99;
  /* Tono grisáceo/violáceo del texto de placeholder */
}

.ce-btn-buscar {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  transition: color 0.3s ease;
}

.ce-btn-buscar:hover {
  color: #000;
  /* La lupa se oscurece al pasar el mouse */
}

/* Responsive */
@media (max-width: 992px) {
  .ce-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .ce-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  #ce-form-buscador {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .ce-catalogo-container {
    padding: 0 15px;
    box-sizing: border-box;
  }

  .ce-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .ce-card {
    max-width: 380px;
    margin: 0 auto;
    width: 100%;
  }
}

/* =======================================
   RESULTADOS DEL BUSCADOR EN VIVO
   ======================================= */
.ce-buscador-container {
  position: relative;
  /* Necesario para que la caja flote justo debajo */
}

#ce-resultados-busqueda {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  z-index: 100;
  max-height: 300px;
  overflow-y: auto;
  margin-top: -4px;
}

.ce-lista-resultados {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.ce-item-resultado {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  text-decoration: none;
  color: #333;
  border-bottom: 1px solid #f5f5f5;
  transition: background 0.2s;
}

.ce-item-resultado:last-child {
  border-bottom: none;
}

.ce-item-resultado:hover {
  background: #fff6f2;
  /* Color crema corporativo al pasar el mouse */
}

.ce-item-resultado img {
  width: 45px;
  height: 45px;
  object-fit: cover;
  border-radius: 5px;
  margin-right: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.ce-item-resultado span {
  font-weight: 600;
  font-size: 1em;
}

.ce-sin-resultados {
  padding: 20px;
  text-align: center;
  color: #888;
  font-style: italic;
  font-size: 0.95em;
}