/* ==========================================
   AJAX Live Search Dropdown Styles
========================================== */
.kj-live-search-results {
    position: absolute;
    top: calc(100% + 15px);
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

.kj-live-search-results.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.kj-live-search-results::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 40px;
    width: 12px;
    height: 12px;
    background: #ffffff;
    transform: rotate(45deg);
    border-left: 1px solid rgba(0,0,0,0.05);
    border-top: 1px solid rgba(0,0,0,0.05);
}

.kj-ls-loading, .kj-ls-empty {
    padding: 30px;
    text-align: center;
    color: #64748b;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.kj-ls-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: kj-spin 0.8s linear infinite;
}

.kj-ls-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 400px;
    overflow-y: auto;
}

.kj-ls-list::-webkit-scrollbar {
    width: 6px;
}

.kj-ls-list::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.kj-ls-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.kj-ls-list li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #f1f5f9;
}

.kj-ls-list li:last-child {
    border-bottom: none;
}

.kj-ls-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    text-decoration: none !important;
    transition: background 0.2s;
    gap: 15px;
}

.kj-ls-item:hover {
    background: #f8fafc;
}

.kj-ls-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f1f5f9;
}

.kj-ls-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kj-ls-no-img {
    width: 100%;
    height: 100%;
    background: #e2e8f0;
}

.kj-ls-info {
    flex-grow: 1;
}

.kj-ls-info h4 {
    margin: 0 0 5px 0;
    font-size: 15px;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
}

.kj-ls-badge {
    font-size: 11px;
    background: var(--secondary);
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.kj-ls-price {
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
}

.kj-ls-footer {
    background: #f8fafc;
    padding: 12px 20px;
    text-align: center;
    border-top: 1px solid #e2e8f0;
}

.kj-ls-view-all {
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.kj-ls-view-all:hover {
    text-decoration: underline;
}

/* Mobile Adjustments */
@media (max-width: 767px) {
    .kj-live-search-results {
        position: fixed;
        top: 80px;
        left: 20px;
        right: 20px;
        max-height: 80vh;
        z-index: 99999;
    }
    .kj-live-search-results::before {
        display: none;
    }
}
