/* search-smart.css — только новые элементы. .search/.search__input/.search__btn не трогаем */

.search__dropdown {
    display: none;
    position: absolute;
    top: 94px;
    left: -2px;
    right: -2px;
    background: #fff;
    border: 2px solid #e7f0ed;
    border-top: 2px solid #f07800;
    box-shadow: 0 8px 28px rgba(0,0,0,.13);
    z-index: 200;
    animation: xcSearchFadeIn .12s ease;
    max-height: 480px;
    overflow-y: auto;
}
.search__dropdown.is-open { display: block; }

@keyframes xcSearchFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: none; }
}

.search__dd-group {
    padding: 7px 16px 3px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #b0b0b0;
    font-weight: 700;
    border-top: 1px solid #f5f5f5;
}
.search__dd-group:first-child { border-top: none; }

.search__dd-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: background .1s;
}
.search__dd-item:hover,
.search__dd-item.is-active { background: #fffaf5; text-decoration: none; color: inherit; }

.search__dd-icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    background: #f5f5f5;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
.search__dd-item.is-active .search__dd-icon { background: #ffe4cc; }

.search__dd-info { flex: 1; min-width: 0; }
.search__dd-title {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}
.search__dd-title mark {
    background: #ffe0b2;
    color: #c55000;
    padding: 0 1px;
    border-radius: 2px;
    font-weight: 700;
    font-style: normal;
}
.search__dd-sub {
    font-size: 11px;
    color: #999;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search__dd-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    flex-shrink: 0;
    white-space: nowrap;
}
.search__dd-badge--product { background: #fff0e0; color: #c55000; }
.search__dd-badge--section  { background: #e8eeff; color: #3050c8; }
.search__dd-badge--page     { background: #e8f9ee; color: #1f8b3f; }

.search__dd-tip {
    padding: 8px 16px;
    font-size: 12px;
    background: #fffbf0;
    border-bottom: 1px solid #ffecc0;
    color: #7a5c00;
    display: flex;
    align-items: center;
    gap: 6px;
}
.search__dd-tip a { color: #f07800; font-weight: 700; text-decoration: none; cursor: pointer; }
.search__dd-tip a:hover { text-decoration: underline; }

.search__dd-footer {
    padding: 9px 16px;
    border-top: 1px solid #f0f0f0;
    font-size: 13px;
    color: #f07800;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    text-decoration: none;
}
.search__dd-footer:hover { background: #fffaf5; }
.search__dd-footer kbd {
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 1px 6px;
    font-size: 11px;
    color: #888;
    font-family: inherit;
}

/* Prevent iOS zoom on tap — iOS zooms when font-size < 16px */
@media screen and (max-width: 1024px) {
    input.search__input {
        font-size: 16px !important;
    }
}
