/**
 * Search Dropdown - Simple Implementation
 * Desktop only - dropdown below search box, same width
 */

/* Search Section - positioning context */
.search_section {
    position: relative;
    z-index: 1000;
}

.search_container {
    position: relative;
}

/* Dropdown - Simple & Direct */
.search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    max-height: 600px;
    overflow-y: auto;
    overflow-x: hidden;
    display: none;
    z-index: 10000;
}

.search-suggestions.active {
    display: block;
}

/* Products Section */
.search-products-section {
    padding: 20px;
}

.search-products-title {
    font-size: 13px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-products-title::before {
    content: '';
    width: 3px;
    height: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.search-products-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Product Card Row */
.search-product-card-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    cursor: pointer;
}

/* Product Card - Horizontal layout */
.search-product-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    height: 80px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    cursor: pointer;
}

.search-product-card-row:hover .search-product-card {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.search-product-image-wrapper {
    width: 80px;
    height: 80px;
    overflow: hidden;
    background: #f8f8f8;
    flex-shrink: 0;
}

.search-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.search-product-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    height: 100%;
}

.search-product-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Suggestions List */
.suggestions-section {
    padding: 12px 0;
    border-top: 1px solid #f0f0f0;
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.2s ease;
    gap: 12px;
}

.suggestion-item:hover,
.suggestion-item.selected {
    background: #f8f9fa;
}

.suggestion-item i {
    color: #667eea;
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.suggestion-content {
    flex: 1;
}

.suggestion-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.suggestion-description {
    font-size: 13px;
    color: #666;
}

/* Loading & Empty States */
.search-loading {
    padding: 40px 20px;
    text-align: center;
    color: #999;
}

.search-loading i {
    font-size: 24px;
    margin-bottom: 12px;
    display: block;
}

.no-suggestions {
    padding: 40px 20px;
    text-align: center;
    color: #999;
}

.no-suggestions i {
    font-size: 32px;
    margin-bottom: 12px;
    display: block;
    opacity: 0.5;
}
