/**
 * OrthoVitality Live Search Dropdown
 */
.ov-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    max-height: 70vh;
    overflow-y: auto;
    margin-top: 8px;
    font-family: inherit;
}

.ov-search-dropdown[hidden] {
    display: none !important;
}

.ov-search-loading,
.ov-search-empty,
.ov-search-error {
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

.ov-search-empty p {
    margin: 0 0 10px 0;
    color: #333;
}

.ov-search-fallback,
.ov-search-view-all {
    display: block;
    padding: 12px 16px;
    text-align: center;
    color: #7fb941;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}

.ov-search-fallback:hover,
.ov-search-view-all:hover {
    background: #f0f0f0;
    color: #5a8a2f;
}

.ov-search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}

.ov-search-item:last-of-type {
    border-bottom: none;
}

.ov-search-item:hover,
.ov-search-item-active {
    background: #f5faec;
}

.ov-search-thumb {
    width: 50px;
    height: 50px;
    object-fit: contain;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
}

.ov-search-info {
    flex: 1;
    min-width: 0;
}

.ov-search-title {
    font-size: 14px;
    font-weight: 500;
    color: #222;
    line-height: 1.3;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ov-search-title mark {
    background: #fff3a3;
    padding: 0 2px;
    border-radius: 2px;
    color: inherit;
    font-weight: 600;
}

.ov-search-cat {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ov-search-snippet {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    margin: 3px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-style: italic;
}

.ov-search-snippet mark {
    background: #fff3a3;
    padding: 0 2px;
    border-radius: 2px;
    color: inherit;
    font-weight: 600;
    font-style: normal;
}

.ov-search-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.ov-price {
    color: #7fb941;
    font-weight: 600;
}

.ov-price-sale {
    color: #d63638;
    font-weight: 600;
}

.ov-price-regular {
    color: #999;
    text-decoration: line-through;
    font-size: 12px;
    font-weight: normal;
}

.ov-search-oos {
    color: #999;
    font-size: 11px;
    font-style: italic;
}

/* Mobile */
@media (max-width: 640px) {
    .ov-search-dropdown {
        max-height: 60vh;
    }
    .ov-search-thumb {
        width: 44px;
        height: 44px;
    }
    .ov-search-title {
        font-size: 13px;
    }
}
