.ajax-search-wrapper {
    position: relative;
    z-index: 999;
}

.search-toggle img {
    width: 24px;
    cursor: pointer;
}

.ajax-search-box {
    position: absolute;
    right: 0;
    top: 50px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    padding: 10px;
    width: 540px;
}

#ajax-search-input {
    width: 100%;
    padding: 8px 35px 8px 35px; /* space for icons */
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}

#ajax-search-input:focus {
    outline: none;
    border-color: #f36f3a; /* match highlight color */
    box-shadow: 0 0 5px rgba(243,111,58,0.5);
}

.ajax-search-input-wrapper {
    position: relative;
    width: 100%;
}

/* left search icon inside input */
.input-icon-search {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    pointer-events: none; /* avoid blocking typing */
    opacity: 0.6;
}

/* right clear (x) icon inside input */
.input-icon-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    cursor: pointer;
    display: none;
    opacity: 0.7;
}

.search-result-item .highlight {
    background: #fce2d7;
    color: #d94100;
    font-weight: bold;
    padding: 0 2px;
    border-radius: 2px;
}

#ajax-search-results .search-header {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    padding: 5px 0;
    border-bottom: 1px solid #ccc;
}

.search-result-item {
    display: flex;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
    color: #000;
    text-decoration: none;
}

.search-result-item .icon {
    width: 45px;
    height: 45px;
    margin-right: 10px;
    margin-top: 5px;
}

.search-result-item .text .title {
    font-weight: 600;
}

.search-result-item .text .breadcrumb {
    font-size: 12px;
    color: #666;
}

#ajax-search-results {
    display: none; /* hidden until typing */
    margin-top: 8px;
    background: #fff;
}

#ajax-search-results span.count {
    color: #00000099;
    font-size: 14px;
    font-weight: 400;
}