.category-search-form {
    margin-bottom: 20px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 5px;
}

.search-wrapper {
    position: relative;
    display: inline-block;
    width: 70%;
}

.category-search-form input[type="search"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 16px;
    box-sizing: border-box;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 3px 3px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: none;
}

.search-suggestions ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
}

.suggestion-item:hover,
.suggestion-item.highlighted {
    background-color: #f5f5f5;
}

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

.suggestion-image {
    width: 40px;
    height: 40px;
    object-fit: cover;
    margin-right: 10px;
    border-radius: 3px;
}

.suggestion-content {
    flex-grow: 1;
}

.suggestion-title {
    display: block;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    margin-bottom: 3px;
    font-size: 14px;
}

.suggestion-title:hover {
    color: #0073aa;
}

.suggestion-price {
    font-size: 12px;
    color: #666;
}

.no-suggestions {
    padding: 10px;
    text-align: center;
    color: #666;
    font-style: italic;
    margin: 0;
    font-size: 14px;
}

.category-search-form button {
    width: 25%;
    padding: 10px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 16px;
    margin-left: 5%;
    transition: background-color 0.2s;
}

.category-search-form button:hover {
    background: #005a87;
}

.category-search-form form {
    display: flex;
    align-items: flex-start;
    gap: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .category-search-form form {
        flex-direction: column;
    }
    
    .search-wrapper {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .category-search-form button {
        width: 100%;
        margin-left: 0;
    }
}

/* Fix for themes that might interfere */
.search-suggestions * {
    box-sizing: border-box;
}

.category-search-form input[type="search"]:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

