/* Search Styles for Reliable Sign Supply */

/* Search box positioning
.search-box {
    position: relative;
    width: 100%;
    max-width: 300px;
} */

/* Search dropdown styling */
.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 313px;
    max-height: 500px;
    overflow-y: auto;
    background: white;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    padding: 10px;
    margin-top: 5px;
}

/* Results container */
.search-results-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Individual result item */
.search-result-item {
    display: flex;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s;
    align-items: center;
}

.search-result-item:hover,
.category-item:hover,
.brand-item:hover,
.selected {
    background-color: #f5f5f5;
}

/* Result image */
.result-image {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    margin-right: 15px;
    overflow: hidden;
    border-radius: 5px;
    border: 1px solid #eee;
}

.result-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Result details */
.result-details {
    flex-grow: 1;
}

.result-name {
    font-weight: bold;
    margin-bottom: 3px;
    color: #333;
}

.result-category {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 3px;
}

.result-price {
    font-weight: bold;
    color: #e53935;
}

/* No results message */
.no-results {
    padding: 15px;
    text-align: center;
    color: #666;
    font-style: italic;
}

/* Suggestion sections */
.suggestion-section {
    margin-top: 15px;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.suggestion-section h3 {
    font-size: 0.9rem;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Category and brand items */
.category-item,
.brand-item {
    padding: 8px 10px;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-item i,
.brand-item i {
    color: #999;
    width: 16px;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .search-dropdown {
        width: 100vw;
        max-width: 100vw;
        position: fixed;
        left: 0;
        max-height: 80vh;
        box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    }
}

