.search-input {
    border-top-left-radius: 0.375rem;
    border-bottom-left-radius: 0.375rem;
    border-right: none;
}

.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 0.25rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    max-height: 400px;
    overflow-y: auto;
    width: 100%;
}

.dropdown-header {
    padding: 0.5rem 1rem;
    font-weight: 600;
    background-color: #f8f9fa;
}

.search-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    text-decoration: none;
    color: var(--bs-body-color);
    transition: background-color 0.2s ease;
}

.search-item:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.05);
    text-decoration: none;
}

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

.search-item-image {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-item-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.search-item-details {
    flex: 1;
    min-width: 0;
}

.search-item-title {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    font-weight: 500;
    line-height: 1.2;
    color: var(--bs-body-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}

.search-item-price {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--bs-primary);
}

.dropdown-footer {
    padding: 0.5rem 1rem;
    background-color: #f8f9fa;
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* Mobile optimizations */
@media (max-width: 576px) {
    .search-item-title {
        max-width: 150px;
    }
}

.empty-results {
    padding: 2rem;
    text-align: center;
}

.empty-results .empty-icon {
    font-size: 3rem;
    color: var(--bs-gray-400);
    margin-bottom: 1rem;
}

/* Line clamp utility */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Active filters */
.active-filter-tag {
    display: inline-flex;
    align-items: center;
    background-color: var(--bs-gray-200);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.active-filter-tag .remove-filter {
    margin-left: 0.25rem;
    color: var(--bs-gray-700);
    text-decoration: none;
}

.active-filter-tag .remove-filter:hover {
    color: var(--bs-danger);
}

/* Filter styles */
.filter-group {
    margin-bottom: 1.5rem;
}

.filter-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.filter-content {
    padding-left: 0.25rem;
}

/* Mobile filter sidebar */
@media (max-width: 767.98px) {
    #filterSidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 1050;
        width: 280px;
        background-color: white;
        overflow-y: auto;
        transition: transform 0.3s ease;
        transform: translateX(-100%);
        box-shadow: 0 0 10px rgba(0,0,0,0.1);
        padding: 1rem;
    }

    #filterSidebar.show {
        transform: translateX(0);
    }

    body.filter-open::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0,0,0,0.5);
        z-index: 1040;
    }
}
