/* Local Search popup (SearchBooster-like) */

:root {
  --ls-primary: #860030;
  --ls-bg: rgba(0,0,0,.55);
  --ls-panel: #ffffff;
  --ls-text: #1f1f1f;
  --ls-muted: #666666;
  --ls-border: #e5e5e5;
}

.ls-hidden { display: none !important; }

.ls-overlay {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: var(--ls-bg);
  z-index: 2000;
}

.ls-panel {
  position: fixed;
  left: 50%;
  top: 6%;
  transform: translateX(-50%);
  width: 92%;
  max-width: 980px;
  background: var(--ls-panel);
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  overflow: hidden;
  z-index: 2001;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ls-text);
}

.ls-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--ls-border);
}

.ls-input {
  flex: 1;
  height: 40px;
  border: 1px solid var(--ls-border);
  border-radius: 6px;
  padding: 0 12px;
  font-size: 14px;
  outline: none;
}
.ls-input:focus {
  border-color: var(--ls-primary);
  box-shadow: 0 0 0 2px rgba(134,0,48,.15);
}

.ls-close {
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--ls-border);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
}

.ls-body {
  max-height: 70vh;
  overflow: auto;
}

.ls-section {
  padding: 12px;
  border-bottom: 1px solid var(--ls-border);
}

.ls-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ls-muted);
  margin: 0 0 10px 0;
}

.ls-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 6px;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.ls-row:hover {
  background: #faf6f7;
}

.ls-thumb {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: #f2f2f2;
  object-fit: cover;
  flex: 0 0 44px;
}

.ls-name {
  font-size: 14px;
  line-height: 1.2;
  flex: 1;
}

.ls-price {
  font-size: 14px;
  font-weight: bold;
  color: var(--ls-primary);
  white-space: nowrap;
}

.ls-empty {
  color: var(--ls-muted);
  font-size: 14px;
  padding: 12px;
}

.ls-panel .ls-section.ls-hidden {
  display: none;
}

