/* Поиск */
.search-section {
    background: var(--surface);
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-subtle);
    position: relative;
    z-index: 50;
}

.search-bar {
    display: flex;
    gap: 8px;
    align-items: center;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 10px 14px 10px 40px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 14px;
    background: var(--surface-elevated);
    color: var(--text);
    transition: all 0.3s;
}

.search-input::placeholder {
    color: var(--text-secondary);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 147, 51, 234), 0.15);
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    opacity: 0.45;
    color: var(--text-secondary);
}

.filter-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--primary-light);
}

.filter-btn:hover {
    border-color: var(--primary);
}

.filter-btn:active {
    transform: scale(0.95);
}

.filter-icon {
    width: 18px;
    height: 18px;
    opacity: 0.8;
}

/* Подсказки поиска */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-radius: 12px;
    margin-top: 6px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    border: 1px solid var(--border);
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.suggestions-group {
    padding: 6px 0;
}

.suggestions-title {
    padding: 10px 14px 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 4px;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--border-subtle);
}

.suggestion-item-product {
    padding: 10px 12px;
}

.suggestion-product-image-wrap {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--surface-elevated);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.suggestion-product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 3px;
}

.suggestion-product-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.suggestion-product-price {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-light);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: rgba(var(--primary-rgb, 147, 51, 234), 0.1);
}

.suggestion-icon {
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
    width: 22px;
    text-align: center;
}

.suggestion-text {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.suggestion-type {
    font-size: 9px;
    font-weight: 600;
    color: var(--primary-light);
    background: rgba(var(--primary-rgb, 147, 51, 234), 0.15);
    padding: 2px 7px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    flex-shrink: 0;
    border: 1px solid var(--border);
}
