/* Tắt hoàn toàn khung kết quả tìm kiếm mặc định bị trùng lặp của Flatsome theme */
.autocomplete-suggestions,
.ux-search-results,
.live-search-results,
.autocomplete-suggestion {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
}

.m4h-live-search-dropdown {
    display: none;

    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    width: 100%;
    max-height: 420px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
    z-index: 99999;
    box-sizing: border-box;
    padding: 6px;
    animation: fadeInSlideDown 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes fadeInSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Item Card */
.m4h-ls-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 10px;
    text-decoration: none !important;
    color: #1e293b;
    transition: background 0.18s ease;
}

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

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

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

.m4h-ls-info {
    flex: 1;
    min-width: 0;
}

.m4h-ls-title {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.m4h-ls-highlight {
    background: #fef08a;
    color: #854d0e;
    border-radius: 2px;
    padding: 0 2px;
    font-weight: 700;
}

.m4h-ls-price {
    font-size: 12px;
    font-weight: 700;
    color: #f0683a;
    margin-top: 2px;
}

.m4h-ls-price del {
    color: #94a3b8;
    font-weight: 400;
    margin-right: 4px;
}

/* Footer Xem Tất Cả */
.m4h-ls-footer {
    display: block;
    text-align: center;
    padding: 10px;
    margin-top: 4px;
    border-top: 1px dashed #e2e8f0;
    font-size: 12px;
    font-weight: 700;
    color: #f0683a;
    text-decoration: none !important;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.m4h-ls-footer:hover {
    background: #fff5f2;
}

.m4h-ls-no-results {
    padding: 16px;
    text-align: center;
    font-size: 13px;
    color: #64748b;
}

/* Skeleton Loading Animation */
.m4h-ls-skeleton-wrap {
    padding: 4px;
}

.m4h-ls-skeleton-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
}

.m4h-ls-skeleton-item .s-img {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    background: #e2e8f0 linear-gradient(90deg, #e2e8f0 0%, #cbd5e1 20%, #ffffff 50%, #cbd5e1 80%, #e2e8f0 100%) !important;
    background-size: 200% 100% !important;
    animation: skeleton-shimmer 1.2s cubic-bezier(0.4, 0, 0.6, 1) infinite, skeleton-pulse 1.8s ease-in-out infinite !important;
}

.m4h-ls-skeleton-item .s-text {
    flex: 1;
}

.m4h-ls-skeleton-item .s-line {
    height: 12px;
    border-radius: 4px;
    background: #e2e8f0 linear-gradient(90deg, #e2e8f0 0%, #cbd5e1 20%, #ffffff 50%, #cbd5e1 80%, #e2e8f0 100%) !important;
    background-size: 200% 100% !important;
    animation: skeleton-shimmer 1.2s cubic-bezier(0.4, 0, 0.6, 1) infinite, skeleton-pulse 1.8s ease-in-out infinite !important;
    margin-bottom: 6px;
}

.m4h-ls-skeleton-item .s-line.t1 { width: 70%; }
.m4h-ls-skeleton-item .s-line.t2 { width: 40%; margin-bottom: 0; }

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