/* ==========================================================================
   FLIPKART STYLE AUTOCOMPLETE SEARCH DROPDOWN
   Clean query & category suggestions (no individual SKU prices)
   ========================================================================== */

.search-container {
    position: relative;
}

.search-container input {
    padding-right: 38px;
}

/* Clear button inside input */
.search-clear-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #878787;
    cursor: pointer;
    font-size: 14px;
    display: none;
    z-index: 5;
    padding: 4px;
}
.search-clear-btn:hover {
    color: #212121;
}

/* Submit button (magnifying glass) clickable */
.search-container .search-icon {
    cursor: pointer;
    z-index: 5;
}

/* Search Dropdown Panel */
.flipkart-search-dropdown {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16);
    border: 1px solid #e0e0e0;
    border-top: none;
    max-height: 460px;
    overflow-y: auto;
    z-index: 99999;
    display: none;
    padding: 6px 0;
    list-style: none;
}

/* Individual Suggestion Row */
.flipkart-search-item {
    display: flex;
    align-items: center;
    padding: 8px 14px;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.12s ease;
    cursor: pointer;
}

.flipkart-search-item:hover,
.flipkart-search-item.active {
    background-color: #f0f5ff;
    text-decoration: none;
}

/* Representative Thumbnail */
.flipkart-search-thumb {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 4px;
    background: transparent;
    overflow: hidden;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flipkart-search-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 4px;
}

.flipkart-search-fallback-icon {
    color: #878787;
    font-size: 14px;
}

/* Suggestion Query & Scope */
.flipkart-search-info {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.flipkart-search-title {
    font-size: 14px;
    color: #212121;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.35;
}

.flipkart-search-title strong {
    color: #000000;
    font-weight: 600;
}

.flipkart-search-category {
    font-size: 12px;
    color: #2874f0;
    font-weight: 500;
    margin-top: 1px;
    line-height: 1.25;
}

/* Loading & Empty states */
.flipkart-search-loading,
.flipkart-search-empty {
    padding: 16px 14px;
    text-align: center;
    color: #717478;
    font-size: 13px;
}

.flipkart-search-empty strong {
    color: #212121;
}
