/* Shergroup Enhanced Search Styles */
.shergroup-search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    font-family: Arial, sans-serif;
}

.shergroup-search-form {
    position: relative;
    background: #fff;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.shergroup-search-form:hover,
.shergroup-search-form:focus-within {
    border-color: #8b5cf6;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.15);
}

.search-input-wrapper {
    display: flex;
    align-items: center;
}

.shergroup-search-input {
    flex: 1;
    padding: 16px 20px;
    border: none;
    font-size: 16px;
    background: transparent;
    outline: none;
}

.shergroup-search-input::placeholder {
    color: #9ca3af;
}

.shergroup-search-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    background: #8b5cf6;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.shergroup-search-button:hover {
    background: #7c3aed;
}

.shergroup-search-suggestions,
.shergroup-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e1e5e9;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
}

.suggestions-content,
.results-content {
    padding: 10px 0;
}

.suggestion-item,
.result-item {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s ease;
}

.suggestion-item:hover,
.result-item:hover {
    background: #f9fafb;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.result-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.result-details {
    flex: 1;
}

.result-title {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.result-price {
    color: #8b5cf6;
    font-weight: 600;
    margin-bottom: 4px;
}

.result-description {
    color: #6b7280;
    font-size: 14px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 2px solid #f3f4f6;
    background: #f9fafb;
}

.results-header h3 {
    margin: 0;
    color: #1f2937;
}

.results-count {
    color: #6b7280;
    font-size: 14px;
}

.corrected-search {
    padding: 10px 20px;
    background: #fef3c7;
    border-bottom: 1px solid #f59e0b;
    font-size: 14px;
}

.no-results {
    padding: 40px 20px;
    text-align: center;
    color: #6b7280;
}

/* Responsive Design */
@media (max-width: 768px) {
    .shergroup-search-container {
        max-width: 100%;
        margin: 0 10px;
    }
    
    .shergroup-search-input {
        padding: 14px 16px;
        font-size: 16px;
    }
    
    .shergroup-search-button {
        padding: 14px 20px;
        font-size: 14px;
    }
    
    .result-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .result-image {
        width: 100%;
        height: 120px;
    }
}
