.zhz-autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: auto;
    transform: none;
    width: var(--ef-inline-width, 720px);
    max-width: min(var(--ef-inline-width, 720px), calc(100vw - 24px));
    max-height: var(--ef-inline-max-height, 520px);
    overflow-y: auto;
    display: none;
    z-index: 10000;
    margin-top: 8px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .15);
    scrollbar-width: thin;
    scrollbar-color: #e5e7eb transparent;
}

.zhz-autocomplete-results.ef-inline-align-right {
    left: auto;
    right: 0;
}

.zhz-autocomplete-results.ef-inline-align-center {
    left: 50%;
    transform: translateX(-50%);
}

.zhz-autocomplete-results.ef-inline-align-full {
    width: 100%;
    max-width: 100%;
}

.zhz-autocomplete-results::-webkit-scrollbar {
    width: 8px;
}

.zhz-autocomplete-results::-webkit-scrollbar-track {
    background: transparent;
}

.zhz-autocomplete-results::-webkit-scrollbar-thumb {
    background: #e5e7eb;
    border-radius: 4px;
}

.zhz-autocomplete-results::-webkit-scrollbar-thumb:hover {
    background: #d1d5db;
}

.zhz-inline-popular {
    padding: 20px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.zhz-inline-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.zhz-inline-section-title svg {
    width: 18px;
    height: 18px;
    color: #94a3b8;
}

.zhz-inline-section-title h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0;
}

.zhz-inline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.zhz-popular-tag-inline {
    padding: 8px 14px;
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: background-color .2s, border-color .2s;
}

.zhz-popular-tag-inline:hover {
    background: rgba(255, 255, 255, .2);
    border-color: rgba(255, 255, 255, .3);
}

.zhz-inline-summary {
    padding: 16px 20px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-bottom: 2px solid #475569;
}

.zhz-inline-summary-inner {
    display: flex;
    align-items: center;
    gap: 8px;
}

.zhz-inline-summary svg {
    width: 16px;
    height: 16px;
    color: #10b981;
}

.zhz-inline-summary span {
    font-size: 14px;
    color: #fff;
    font-weight: 700;
}

.zhz-inline-list {
    display: flex;
    flex-direction: column;
    background: #fff;
}

.zhz-inline-empty,
.zhz-inline-error {
    padding: 16px;
    text-align: center;
}

.zhz-inline-empty {
    color: #6b7280;
}

.zhz-inline-error {
    color: #ef4444;
}

.zhz-inline-powered {
    padding: 10px 16px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
    text-align: center;
}

.zhz-inline-powered-inner {
    font-size: 11px;
    color: #6b7280;
}

.zhz-inline-powered a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.zhz-autocomplete-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: var(--ef-inline-row-height, 74px);
    padding: 10px 14px;
    text-decoration: none;
    color: inherit;
    background: #fff;
    transition: background-color .2s, transform .2s;
}

.zhz-autocomplete-item:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    text-decoration: none;
}

.zhz-autocomplete-nav-item {
    background: #f8fafc;
    border-bottom: 1px solid #eef2f7;
}

.zhz-inline-nav-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #e0f2fe;
    color: #0369a1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex: 0 0 auto;
}

.zhz-inline-nav-content {
    min-width: 0;
    flex: 1;
}

.zhz-inline-nav-title {
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.zhz-inline-nav-desc {
    font-size: 11px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.zhz-inline-nav-badge {
    font-size: 11px;
    font-weight: 700;
    color: #0369a1;
    background: #e0f2fe;
    border-radius: 999px;
    padding: 3px 8px;
}

.zhz-inline-image {
    width: var(--ef-inline-image-size, 52px);
    height: var(--ef-inline-image-size, 52px);
    flex-shrink: 0;
    position: relative;
    background: #f3f4f6;
    border-radius: 8px;
    overflow: hidden;
}

.zhz-inline-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.zhz-inline-product-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.zhz-inline-product-name {
    font-weight: 700;
    color: #0f172a;
    font-size: 14px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.zhz-inline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.zhz-inline-price {
    font-weight: 800;
    color: #0f172a;
    font-size: 16px;
}

.zhz-inline-category,
.zhz-inline-stock {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}

.zhz-inline-category {
    background: #e0e7ff;
    color: #4338ca;
}

.zhz-inline-stock {
    background: #d1fae5;
    color: #065f46;
}
