.brachos-search-wrap {
    position: relative;
    max-width: 560px;
    width: 100%;
    font-family: inherit;
}

.brachos-search-input-wrap {
    display: flex;
    align-items: center;
    position: relative;
}

.brachos-search-icon {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    color: #888;
    pointer-events: none;
    flex-shrink: 0;
}

.brachos-search-input {
    width: 100%;
    padding: 12px 44px 12px 44px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
    background: #fff;
}

.brachos-search-input:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.15);
}

.brachos-search-spinner {
    position: absolute;
    right: 14px;
    width: 16px;
    height: 16px;
    border: 2px solid #ddd;
    border-top-color: #1a73e8;
    border-radius: 50%;
    animation: brachos-spin 0.7s linear infinite;
    display: none;
}

.brachos-search-spinner.active {
    display: block;
}

@keyframes brachos-spin {
    to { transform: rotate(360deg); }
}

.brachos-search-results {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    z-index: 9999;
    max-height: 336px; /* exactly 4 results */
    overflow-y: auto;
}

.brachos-search-results.active {
    display: block;
}

@keyframes brachos-fade-in-up {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.brachos-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
    opacity: 0;
    animation: brachos-fade-in-up 0.25s ease forwards;
}

.brachos-result-item:last-child {
    border-bottom: none;
}

.brachos-result-item:hover {
    background: #f5f8ff;
}

.brachos-result-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    background: #f0f0f0;
}

.brachos-result-thumb-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    background: #e8edf5;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 20px;
}

.brachos-result-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.brachos-result-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brachos-result-category {
    font-size: 0.8rem;
    color: #888;
}

.brachos-no-results {
    padding: 16px 14px;
    color: #888;
    font-size: 0.9rem;
    text-align: center;
}