/* ── Contenedor principal ── */
#sev-search-container {
  position: relative;
  display: inline-block;
  font-family: inherit;
}

/* ── Barra de búsqueda ── */
#sev-search-bar {
  display: flex;
  align-items: center;
  background: #f0f0f0;
  border: 1.5px solid #e0e0e0;
  border-radius: 24px;
  padding: 0 10px 0 12px;
  gap: 6px;
  transition: border-color 0.2s, background 0.2s, width 0.35s ease, box-shadow 0.2s;
  overflow: hidden;
  width: 42px;
  height: 42px;
}

#sev-search-bar.expanded {
  width: 240px;
  background: #ffffff;
  border-color: #2a3528;
  box-shadow: 0 2px 12px rgba(42,53,40,0.10);
}

/* ── Botón lupa ── */
#sev-trigger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: color 0.2s;
}
#sev-trigger:hover { color: #2a3528; }

/* ── Input ── */
#sev-input {
  border: none !important;
  background: transparent !important;
  outline: none !important;
  font-size: 13px !important;
  color: #1c1c1c !important;
  width: 0;
  opacity: 0;
  flex: 1;
  padding: 0 !important;
  transition: width 0.35s ease, opacity 0.25s ease;
  box-shadow: none !important;
}
#sev-search-bar.expanded #sev-input {
  width: 100%;
  opacity: 1;
}
#sev-input::placeholder {
  color: #aaa;
  font-size: 12px;
}

/* ── Botón limpiar ── */
#sev-clear {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: #aaa;
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  transition: color 0.2s;
}
#sev-clear:hover { color: #555; }
#sev-clear.visible { display: flex; }

/* ── Dropdown de resultados ── */
#sev-results {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 320px;
  background: #ffffff;
  border: 0.5px solid #e0e0e0;
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.10);
  z-index: 99999;
  overflow: hidden;
  max-height: 420px;
  overflow-y: auto;
}
#sev-results.visible { display: block; }

/* ── Cada resultado ── */
.sev-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none !important;
  border-bottom: 0.5px solid #f0f0f0;
}
.sev-result-item:last-child { border-bottom: none; }
.sev-result-item:hover { background: #f7f7f7; }

.sev-result-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 6px;
  background: #f5f5f5;
  flex-shrink: 0;
}
.sev-result-img-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  background: #f0f0f0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: 20px;
}

.sev-result-info { flex: 1; min-width: 0; }
.sev-result-name {
  font-size: 12px;
  font-weight: 500;
  color: #1c1c1c;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}
.sev-result-price {
  font-size: 12px;
  color: #2a3528;
  font-weight: 600;
}

.sev-result-arrow {
  color: #ccc;
  font-size: 14px;
  flex-shrink: 0;
}

/* ── Estado: buscando / sin resultados ── */
.sev-state {
  padding: 16px 14px;
  font-size: 12px;
  color: #888;
  text-align: center;
}

/* ── Ver todos los resultados ── */
#sev-view-all {
  display: block;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 500;
  color: #2a3528;
  text-align: center;
  border-top: 0.5px solid #e8e8e8;
  background: #fafafa;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}
#sev-view-all:hover { background: #f0f0f0; }