.chamnar-search-wrapper {
    position: relative;
    width: 100%;
    height: auto;
    border: 2px solid var(--brand-color);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.chamnar-search-bar {
    display: flex;
    align-items: center;
    background: var(--white-background-color);
    height: 40px;
    position: relative;
    z-index: 1000;
    box-sizing: border-box;
}

.chamnar-cat-trigger {
    min-width: 135px;
    max-width: 135px;
    height: 100%;
    background: var(--alt-background-color);
    border-right: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-color);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.chamnar-cat-trigger:hover {
    background: #e0e0e0;
}

.chamnar-cat-trigger.is-open .cat-arrow {
    transform: rotate(180deg);
}

.cat-label-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
    max-width: 95px;
    pointer-events: none;
}

.cat-arrow {
    font-size: 10px;
    color: var(--text-body);
    transition: transform 0.2s;
    pointer-events: none;
}

@media (max-width: 768px) {
    .chamnar-cat-trigger {
        min-width: 45px;
        max-width: 45px;
        justify-content: center;
        padding: 0;
    }

    .cat-label-text {
        display: none;
    }

    .cat-arrow {
        font-size: 14px;
        color: var(--brand-color);
    }
}

.chamnar-cat-menu {
    display: none;
    position: absolute;
    top: 42px;
    left: 0;
    width: 220px;
    background: var(--white-background-color);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 99999;
    max-height: 300px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.chamnar-cat-menu.active {
    display: block;
}

.chamnar-cat-item {
    padding: 12px 15px;
    font-size: 13px;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
}

.chamnar-cat-item:hover {
    background: #f9f9f9;
    color: var(--brand-color);
}

.chamnar-cat-item.selected {
    font-weight: bold;
    background: var(--alt-background-color);
    color: var(--brand-color);
}

input.chamnar-search-input {
    border-radius: 0;
}

.chamnar-search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0 12px;
    font-size: 14px;
    color: var(--text-color);
    height: 100%;
    outline: none;
    min-width: 0;
    -webkit-appearance: none;
    border-radius: 0;
    margin: 0;
}

.chamnar-search-submit {
    width: 45px;
    height: 100%;
    background: var(--brand-color);
    color: var(--white-background-color);
    border: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    -webkit-appearance: none;
}

/* 7. RESULTS */
.chamnar-live-results {
    display: none;
    position: absolute;
    top: 44px;
    left: 0;
    right: 0;
    background: var(--white-background-color);
    border: 1px solid var(--border-color);
    z-index: 99998;
    max-height: 60vh;
    overflow-y: auto;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.chamnar-live-results.show {
    display: block;
}

.live-product-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-color);
}

.live-product-img {
    width: 35px;
    height: 45px;
    object-fit: cover;
    margin-right: 12px;
    background: #eee;
}

.live-product-info {
    display: flex;
    flex-direction: column;
}

.live-product-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
}

.live-product-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.live-no-results {
    padding: 15px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

.chamnar-live-results img {
    width: 35px !important;
    height: auto !important;
    aspect-ratio: 2 / 3 !important;
    object-fit: cover !important;
}
