/* Live search dropdown (Flipkart-style suggestions) */
#search-box,
form#search-box,
form#mobile-search-box,
form.tsc-hero-search {
  position: relative;
}

.tsc-live-search {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 1200;
}

.tsc-live-search-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.tsc-live-search-list {
  list-style: none;
  margin: 0;
  padding: 6px;
  max-height: 400px;
  overflow-y: auto;
}

.tsc-live-search-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.tsc-live-search-item.active,
.tsc-live-search-item:hover {
  background: #f6f1ea;
}

.tsc-live-search-item img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  background: #efe4d9;
}

.tsc-live-search-item-body {
  flex: 1;
  min-width: 0;
}

.tsc-live-search-item-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--foreground);
  line-height: 1.35;
}

.tsc-live-search-item-name mark {
  background: transparent;
  color: var(--primary);
  font-weight: 700;
}

.tsc-live-search-item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 3px;
  font-size: 12px;
}

.tsc-live-search-item-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--foreground);
}

.tsc-live-search-item-sku {
  color: var(--muted-foreground);
  font-size: 11px;
}

.tsc-live-search-empty {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 16px;
  font-size: 13px;
  color: var(--muted-foreground);
}

.tsc-live-search-empty p {
  margin: 0;
}

.tsc-live-search-empty iconify-icon {
  font-size: 22px;
  color: var(--primary);
  flex-shrink: 0;
}

.tsc-live-search-view-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.tsc-live-search-view-all:hover {
  background: #f6f1ea;
  color: var(--primary);
}

.tsc-live-search-skeleton {
  padding: 6px;
}

.tsc-live-search-skeleton-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
}

.tsc-live-search-skeleton-img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  background: linear-gradient(90deg, #efe4d9 25%, #fbf6f2 50%, #efe4d9 75%);
  background-size: 200% 100%;
  animation: tsc-shimmer 1.5s infinite;
}

.tsc-live-search-skeleton-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tsc-live-search-skeleton-line {
  height: 12px;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, #efe4d9 25%, #fbf6f2 50%, #efe4d9 75%);
  background-size: 200% 100%;
  animation: tsc-shimmer 1.5s infinite;
}

@keyframes tsc-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (max-width: 768px) {
  .tsc-live-search {
    top: calc(100% + 6px);
  }

  .tsc-live-search-panel {
    border-radius: 12px;
  }

  .tsc-live-search-list {
    max-height: 50vh;
  }
}
