/* =========================================
   STYLE.CSS - COMARKA APP (Glassmorphism UI)
   Versión Final Limpia y Corregida
   ========================================= */

@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap");

:root {
  /* Paleta Glassmorphism */
  --bg-dark: #0f1016;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: 16px;

  --primary-gradient: linear-gradient(135deg, #ff3b3b 0%, #ff8a3d 100%);
  --accent-glow: rgba(255, 59, 59, 0.4);

  --text-main: #ffffff;
  --text-muted: #9ca3af;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Outfit", sans-serif;
  background: radial-gradient(circle at 50% 0%, #1f213a 0%, var(--bg-dark) 80%);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  padding-bottom: 4rem;
}

/* ================= HEADER FLOTANTE ================= */
.app-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.5rem;
  background: rgba(15, 16, 22, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.logo {
  display: flex;
  flex-direction: column;
}

.logo-mark {
  font-weight: 800;
  font-size: 1.3rem;
  background: linear-gradient(to right, #ff3b3b, #ff8a3d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.5px;
}

.logo-sub {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ================= ÍCONOS DEL HEADER ================= */
.header-actions {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.header-icons-row {
  display: flex;
  gap: 1.2rem;
}

.header-icon-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.icon-btn {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s;
  position: relative;
  filter: grayscale(100%) brightness(1.5);
}

.icon-btn:hover {
  transform: translateY(-2px);
  filter: grayscale(0%) brightness(1);
}

.icon-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Estilos Brand (Botones especiales) */
.btn-comercio-brand {
  font-family: "Outfit", sans-serif;
  font-weight: 900;
  font-size: 1.6rem;
  background: linear-gradient(180deg, #ff5f5f 0%, #d80000 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: none !important;
  text-shadow: 0px 4px 10px rgba(255, 0, 0, 0.3);
  transition: transform 0.2s;
}

.btn-inicio-brand {
  color: #4da3ff;
  filter: drop-shadow(0 0 5px rgba(77, 163, 255, 0.4));
  transition: all 0.3s;
}
.btn-inicio-brand:hover {
  color: #fff;
  filter: drop-shadow(0 0 8px rgba(77, 163, 255, 0.8));
  transform: scale(1.1);
}

/* ================= LAYOUT PRINCIPAL ================= */
main {
  max-width: 1200px;
  margin: 1.5rem auto;
  padding: 0 1rem;
}

.card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  color: var(--text-main);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hero Section */
.home-hero {
  text-align: center;
  margin-bottom: 2rem;
}

.home-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.home-hero p {
  color: var(--text-muted);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
}

/* ================= BUSCADOR ================= */
.home-search {
  position: relative; /* Clave para que el absoluto se pegue aquí */
  max-width: 100%;
  margin-bottom: 2rem;
  z-index: 1000; /* Aseguramos que esté por encima de todo */
}

.home-search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  z-index: 1001; /* El input queda arriba del menú */
}

.home-search-input-wrapper input {
  width: 100%;
  padding: 14px 20px;
  padding-right: 50px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s;
}

.home-search-input-wrapper input:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: #ff3b3b;
  box-shadow: 0 0 20px rgba(255, 59, 59, 0.2);
}

.home-search-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}

.home-search-suggestions {
  position: absolute;
  top: 100%; /* Pegado justo debajo del input */
  left: 0;
  right: 0; /* Ocupa todo el ancho del padre (.home-search) */
  width: 100%;

  margin-top: 4px; /* Pequeña separación estética */

  background: #151623;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;

  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  display: none; /* JS lo activa */
  z-index: 999;
}

/* Lista interna */
.home-search-suggestions ul {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 300px;
  overflow-y: auto;
}

/* ================= FILTROS DESPLEGABLES (NUEVO & FIXED) ================= */

/* 1. Contenedor: Flex para centrar y ancho completo */
.home-filters-container {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center; /* Centra el botón */
  align-items: center; /* Alineación vertical */
  margin-bottom: 2rem;
  z-index: 500;
}

/* 2. Botón del Filtro */
.btn-filter-toggle {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 12px 28px;
  border-radius: 99px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;

  /* Flex para alinear texto y flecha */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);

  /* Tamaño controlado */
  min-width: 220px;
  max-width: 300px;
}

.btn-filter-toggle:hover,
.btn-filter-toggle.active {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ff8a3d;
}

.btn-filter-toggle .arrow {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.btn-filter-toggle.active .arrow {
  transform: rotate(180deg);
}

/* 3. Menú Desplegable */
.filter-dropdown-menu {
  position: absolute;
  top: 120%; /* Debajo del botón */
  left: 50%;
  transform: translateX(-50%) translateY(-10px); /* Centrado perfecto */

  width: 280px;
  max-height: 400px; /* Altura máxima con scroll */
  overflow-y: auto;

  background: #151623;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7);
  padding: 0.5rem;

  display: flex;
  flex-direction: column;
  gap: 2px;

  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

/* Scrollbar */
.filter-dropdown-menu::-webkit-scrollbar {
  width: 6px;
}
.filter-dropdown-menu::-webkit-scrollbar-track {
  background: transparent;
}
.filter-dropdown-menu::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 10px;
}

.filter-dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* 4. Opciones */
.filter-group-title {
  font-size: 0.75rem;
  color: #ff8a3d;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 10px 5px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 5px;
  pointer-events: none;
}
.filter-group-title:first-child {
  margin-top: 0;
}

.filter-option {
  padding: 10px 15px;
  color: #ccc;
  font-size: 0.95rem;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s;
  text-align: left;
}

.filter-option:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.filter-option.active {
  background: linear-gradient(135deg, #ff3b3b 0%, #ff8a3d 100%);
  color: #fff;
  font-weight: 600;
}

/* ================= LISTA DE PRODUCTOS ================= */
#homeProductosList ul,
.lista-productos-comercio-detalle {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 0;
}

.producto-item {
  background: rgba(30, 32, 45, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.producto-item:hover {
  transform: translateY(-4px);
  background: rgba(40, 42, 55, 0.7);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.producto-col-img {
  display: flex;
  justify-content: center;
  margin-bottom: 0.5rem;
  height: 90px;
  align-items: center;
}

.producto-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s;
}

.producto-item:hover .producto-img {
  transform: scale(1.08);
}

.producto-col-info {
  text-align: left;
  margin-bottom: 0.5rem;
  flex-grow: 1;
}

.producto-col-info h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  color: #fff;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.producto-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
  margin-bottom: 0.3rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.producto-comercio {
  font-size: 0.65rem;
  color: #4da3ff;
  margin-top: 2px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.producto-col-acciones {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: auto;
}

.producto-precio {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  letter-spacing: -0.5px;
}

/* Botones */
.btn-primary {
  background: var(--primary-gradient);
  border: none;
  padding: 6px 14px;
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 59, 59, 0.5);
  filter: brightness(1.1);
}

.btn-link {
  background: none;
  border: none;
  color: #ff8a3d;
  cursor: pointer;
  text-decoration: underline;
}

/* Ver Más */
.ver-mas-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  padding-bottom: 1rem;
}

.btn-ver-mas {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  padding: 12px 30px;
  border-radius: 99px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.btn-ver-mas:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* ================= ESTADO Y BADGES ================= */
.shop-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.2);
  padding: 4px 12px;
  border-radius: 99px;
  width: fit-content;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.status-text.status-abierto {
  color: #2ecc71;
}
.status-dot.status-abierto {
  background-color: #2ecc71;
  box-shadow: 0 0 10px rgba(46, 204, 113, 0.6);
}

.status-text.status-cerrado {
  color: #ef4444;
}
.status-dot.status-cerrado {
  background-color: #ef4444;
  box-shadow: none;
}

.shop-badges,
.comercio-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge,
.badge-pill {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ccc;
}

.badge-pill.badge-no {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

/* ================= VISTAS COMERCIOS ================= */
.grid-comercios {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  padding: 1rem 0;
}

.shop-card {
  background: rgba(30, 32, 45, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  transition: transform 0.3s, box-shadow 0.3s;
  backdrop-filter: blur(10px);
}

.shop-card:hover {
  transform: translateY(-5px);
  background: rgba(40, 42, 55, 0.8);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.2);
}

.shop-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.shop-logo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.shop-logo-placeholder {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4da3ff, #2563eb);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 800;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.shop-info h3 {
  font-size: 1.2rem;
  margin: 0;
  color: #fff;
  font-weight: 700;
}

.shop-rubro {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0.2rem 0 0.4rem 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-full {
  width: 100%;
  text-align: center;
  margin-top: auto;
  font-size: 0.9rem;
  padding: 10px;
}

/* Detalle Comercio Header */
.comercio-detalle-container {
  padding: 1rem 0;
}

.comercio-detalle-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.comercio-header-glass {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.shop-logo-big {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.1);
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.shop-logo-placeholder.big {
  width: 100px;
  height: 100px;
  font-size: 3rem;
}

.comercio-nombre {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(to right, #fff, #ccc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.texto-rubro {
  color: #4da3ff;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.texto-direccion {
  color: #ccc;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

/* Footer */
.app-footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  border-top: 1px solid var(--glass-border);
  margin-top: 2rem;
}

/* Responsive */
@media (max-width: 600px) {
  .app-header {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  .header-actions {
    width: 100%;
    justify-content: space-around;
  }
  .home-hero h1 {
    font-size: 1.8rem;
  }

  #homeProductosList ul,
  .lista-productos-comercio-detalle {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }

  .producto-item {
    padding: 0.6rem;
  }
  .producto-col-img {
    height: 70px;
  }
  .producto-col-info h3 {
    font-size: 0.85rem;
  }
  .producto-desc {
    font-size: 0.7rem;
    -webkit-line-clamp: 2;
  }
  .producto-precio {
    font-size: 0.95rem;
  }
  .producto-col-acciones .btn-primary {
    padding: 5px 10px;
    font-size: 0.7rem;
  }

  .comercio-header-glass {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  .shop-status {
    margin: 0.5rem auto;
  }
  .shop-badges,
  .comercio-badges {
    justify-content: center;
  }
}

/* Login */
.auth-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  padding: 1rem;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: rgba(20, 22, 30, 0.75);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border-radius: 24px;
  padding: 2.5rem;
  text-align: center;
}

.auth-title {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(to right, #fff, #ccc);
  -webkit-background-clip: text;
  color: transparent;
}

.auth-form .form-group {
  margin-bottom: 1.2rem;
  text-align: left;
}
.auth-form label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.auth-form input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: #fff;
  outline: none;
  transition: border-color 0.3s;
}
.auth-form input:focus {
  border-color: #4da3ff;
}

.btn-google {
  margin-top: 1rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background-color: #ffffff;
  color: #1f1f1f;
  border: none;
  padding: 12px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s;
}
.btn-google:hover {
  transform: translateY(-2px);
}
.google-icon {
  width: 24px;
  height: 24px;
}

/* Asistente */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.3s ease-out;
}
.modal-glass {
  background: #020610;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  border-radius: 24px;
  max-width: 380px;
  width: 100%;
  padding: 1.2rem;
  max-height: 95vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  text-align: center;
  animation: slideUp 0.4s;
}
.modal-img-container {
  margin-bottom: 0.5rem;
  flex-shrink: 1;
  min-height: 0;
  display: flex;
  justify-content: center;
}
.modal-hero-image {
  width: 100%;
  max-height: 400px;
  height: auto;
  object-fit: contain;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  margin-bottom: 1.5rem;
  pointer-events: none;
}
.modal-title {
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
  line-height: 1.2;
  font-weight: 700;
  color: #fff;
}
.modal-desc {
  font-size: 0.85rem;
  line-height: 1.4;
  margin-bottom: 1rem;
  color: #ccc;
}
.modal-desc strong {
  color: #4da3ff;
}
.modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}
.modal-buttons .btn-primary {
  width: 100%;
  padding: 10px;
  font-size: 0.9rem;
  margin-top: 0;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #4da3ff 0%, #2563eb 100%);
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s;
}
.modal-buttons .btn-secondary {
  width: 100%;
  padding: 10px;
  font-size: 0.9rem;
  margin-top: 0;
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ca3af;
  border-radius: 12px;
  cursor: pointer;
}
.modal-buttons .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #fff;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
/* ================= ANIMACIÓN DE PRODUCTO BUSCADO ================= */

@keyframes highlight-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 138, 61, 0.7);
    background-color: rgba(255, 138, 61, 0.2);
    transform: scale(1.02);
    border-color: #ff8a3d;
  }
  70% {
    box-shadow: 0 0 0 20px rgba(255, 138, 61, 0);
    background-color: rgba(255, 138, 61, 0);
    transform: scale(1);
    border-color: rgba(255, 255, 255, 0.08);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 138, 61, 0);
    background-color: rgba(30, 32, 45, 0.4); /* Vuelve al color original */
    border-color: rgba(255, 255, 255, 0.08);
  }
}

.producto-destacado {
  animation: highlight-pulse 2s ease-out;
  border: 2px solid #ff8a3d !important; /* Borde naranja fijo mientras dura la clase */
  z-index: 10;
}
/* Estilo para los resultados de la búsqueda (Dropdown) */
.home-search-item {
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.home-search-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.home-search-item:last-child {
  border-bottom: none;
}
