/* Búsqueda instantánea (assets/js/live-search.js) */
.ls-host { position: relative; }
.ls-panel {
  position: absolute; z-index: 60; top: calc(100% + 8px); left: 0; right: 0;
  max-height: min(70vh, 560px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface-lowest, #fff); color: var(--ink, #012237);
  border-radius: var(--r-lg, 20px); box-shadow: 0 12px 40px rgba(1, 34, 55, .18), 0 0 0 1px var(--outline-variant, #d7dee3);
  padding: 8px; text-align: left;
}
.ls-panel[hidden] { display: none; }
.ls-loading .search-field > .ms, .ls-loading > .ms { animation: ls-pulse .8s ease-in-out infinite alternate; }
@keyframes ls-pulse { from { opacity: 1; } to { opacity: .35; } }

.ls-cats { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 6px 10px; border-bottom: 1px solid var(--outline-variant, #e3e8ec); margin-bottom: 4px; }
.ls-cat { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--surface-low, #f0f4f7); font-size: 13px; font-weight: 600; color: var(--ink, #012237); text-decoration: none; }
.ls-cat .ms { font-size: 17px; color: var(--secondary-ink, #0298b9); }
.ls-cat:hover { background: var(--surface-container, #e2e8ec); }

.ls-list { list-style: none; margin: 0; padding: 0; }
.ls-item { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; color: inherit; text-decoration: none; }
.ls-item:hover, .ls-item.is-active { background: var(--surface-low, #f0f4f7); }
.ls-img { width: 48px; height: 48px; flex-shrink: 0; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--outline-variant, #e3e8ec); display: grid; place-items: center; overflow: hidden; }
.ls-img img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.ls-img .ms { color: var(--outline, #9aa5ae); }
.ls-txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ls-name { font-size: 14.5px; font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ls-name b { font-weight: 800; }
.ls-txt small { font-size: 12px; color: var(--on-surface-variant, #5b6670); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ls-price { flex-shrink: 0; font-family: var(--font-display, inherit); font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; }
.ls-price em { font-style: normal; font-weight: 600; font-size: 12.5px; color: var(--warning, #b45309); }

.ls-all { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 4px; padding: 12px; border-top: 1px solid var(--outline-variant, #e3e8ec); border-radius: 0 0 12px 12px; font-size: 14px; font-weight: 700; color: var(--secondary-ink, #0298b9); text-decoration: none; }
.ls-all .ms { font-size: 18px; }
.ls-all:hover, .ls-all.is-active { background: var(--surface-low, #f0f4f7); }
.ls-empty { margin: 0; padding: 16px 12px; font-size: 14px; color: var(--on-surface-variant, #5b6670); }
.ls-empty a { color: var(--secondary-ink, #0298b9); font-weight: 600; }

@media (max-width: 600px) {
  .ls-panel { max-height: 65vh; border-radius: 16px; }
  .ls-img { width: 42px; height: 42px; }
  .ls-name { font-size: 14px; }
  .ls-price { font-size: 14px; }
}
