.rd-navbar--is-stuck .search-box {
    margin-top: 20px;
}

.search-box-wrap {
    position: relative;
    margin-left: auto;
    width: fit-content;
}

.search-box {
    margin-top: 5px;
    position: relative;
    width: 44px;
    height: 44px;
    border: 1px solid #ddd;
    border-radius: 30px;
    background: #fff;
    transition: width 0.35s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    margin-left: auto;
    z-index: 11;
}

.search-box.active {
    width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.search-input {
    border: none;
    outline: none;
    width: 100%;
    height: 100%;
    padding: 0 50px 0 15px;
    font-size: 14px;
    background: transparent;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.search-box.active .search-input {
    opacity: 1;
}

.search-btn {
    position: absolute;
    top: 0;
    right: 0;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    color: #0d6efd;
}

.search-suggest {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 300px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    display: none;
    max-height: 320px;
    overflow-x: hidden;
    overflow-y: auto;
    z-index: 10;
}

.search-suggest-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f1f1f1;
    transition: background 0.2s ease;
}

.search-suggest-item:last-child {
    border-bottom: none;
}

.search-suggest-item:hover {
    background: #f8f9fa;
}

.search-suggest-thumb {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    border: 1px solid #eee;
}

.search-suggest-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.search-suggest-info {
    flex: 1;
    min-width: 0;
}

.search-suggest-title {
    font-size: 14px;
    font-weight: 500;
    color: #222;
    line-height: 1.4;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-suggest-desc {
    font-size: 12px;
    color: #777;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-suggest-empty {
    padding: 12px 14px;
    font-size: 14px;
    color: #999;
}