/* ------------------------------------------------------------------
   Общие стили поиска
------------------------------------------------------------------ */
.advanced-search-container {
    width: 100%;
    max-width: 500px;
    margin: 20px auto;
    display: flex;
    gap: 10px;
    align-items: center;
    position: relative;
    font-size: 16px; /* База – 16px, чтобы подсказки были видны */
}

#search-input {
    flex: 1;
    padding: 12px;
    font-size: 16px;          /* увеличили до 16px */
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

#search-button {
    padding: 12px 20px;
    background-color: #FD6506;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
#search-button:hover { background-color: #B14400; transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.2); }

/* ------------------------------------------------------------------
   Подсказки
------------------------------------------------------------------ */
#search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-size: 16px;          /* 16px – увеличили */
    line-height: 1.5;
}

#search-suggestions.show { display: block; }

/* Элементы списка */
.suggestion-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 16px;          /* увеличили */
}
.suggestion-item:hover { background-color: #f5f5f5; }
.suggestion-item:last-child { border-bottom: none; }

.suggestion-item a {
    text-decoration: none;
    color: #333;
    display: flex;
    align-items: flex-start;
    width: 100%;
    gap: 10px;
}

.suggestion-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.suggestion-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
}

.suggestion-text strong {
    font-size: 16px;          /* увеличили */
    font-weight: 600;
}

.suggestion-text small {
    font-size: 14px;          /* увеличили */
    line-height: 1.3;
    color: #666;
}

/* ------------------------------------------------------------------
   Результаты поиска
------------------------------------------------------------------ */
.search-results {
    margin-top: 20px;
}
.search-result-item {
    margin-bottom: 20px;
}
.search-result-thumb {
    width: 100px;
    height: auto;
    float: left;
    margin-right: 15px;
    margin-bottom: 10px;
}
.search-result-item h3 {
    margin: 0 0 5px;
}
.search-result-item p {
    margin: 0 0 10px;
}
.search-result-item small {
    display: block;
    margin-bottom: 3px;
}

/* ------------------------------------------------------------------
   Мобильная адаптация
------------------------------------------------------------------ */
@media (max-width: 768px) {
    .advanced-search-container { flex-direction: column; align-items: stretch; }
    #search-button { width: 100%; }
    .suggestion-item { padding: 8px; gap: 8px; }
    .suggestion-thumb { width: 40px; height: 40px; }
    .suggestion-text strong { font-size: 13px; }
    .suggestion-text small { font-size: 11px; }
}
