/* Styles for autocomplete search dropdown */
.store-search-wrap {
    position: relative;
}

.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    margin-top: 8px;
    z-index: 1000;
    overflow: hidden;
    display: none;
    flex-direction: column;
}

.search-dropdown.active {
    display: flex;
}

.search-dropdown-header {
    padding: 12px 16px;
    font-size: 11px;
    font-weight: 700;
    color: var(--on-surface-variant);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--surface-container);
}

.search-dropdown-list {
    max-height: 350px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.search-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--on-surface);
    border-bottom: 1px solid var(--surface-container);
    transition: background-color 0.2s;
}

.search-dropdown-item:last-child {
    border-bottom: none;
}

.search-dropdown-item:hover {
    background-color: var(--surface-container-low);
}

.search-item-img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--surface-container);
}

.search-item-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
}

/* The neon purple highlight from the reference */
.search-highlight {
    background-color: rgba(138, 43, 226, 0.15); /* light purple bg */
    color: #6a1b9a; /* deep purple text */
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 12px;
}

.search-dropdown-footer {
    padding: 14px 16px;
    background-color: var(--white);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #6a1b9a; /* deep purple */
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.search-dropdown-footer:hover {
    background-color: var(--surface-container-low);
}

.search-dropdown-footer svg {
    width: 18px;
    height: 18px;
}

/* Input focus effect */
.store-search-input:focus {
    border-color: #6a1b9a !important;
    box-shadow: 0 0 0 2px rgba(106, 27, 154, 0.2) !important;
}
