/* Live search suggestions (assets/search-suggest.js) */

.k4u-suggest-host {
    position: relative;
}

.k4u-suggest {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 100;
    max-height: min(70vh, 560px);
    overflow-y: auto;
    padding: 8px;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
    text-align: left;
    font-size: 14px;
    color: #333;
}

.k4u-suggest[hidden] {
    display: none;
}

.k4u-suggest.is-loading {
    opacity: 0.7;
}

.k4u-suggest__section + .k4u-suggest__section {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #f0f0f0;
}

.k4u-suggest__label {
    padding: 6px 10px 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9a7b5f;
}

.k4u-suggest__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 8px;
    color: #333 !important;
    text-decoration: none !important;
    white-space: normal;
    font-size: 14px;
}

.k4u-suggest__item:hover,
.k4u-suggest__item.is-active,
.k4u-suggest__all:hover,
.k4u-suggest__all.is-active {
    background: #f5f2ee;
}

.k4u-suggest__thumb {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 6px;
    overflow: hidden;
    background: #f7f6f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.k4u-suggest__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.k4u-suggest__thumb--text {
    font-weight: 700;
    color: #9a7b5f;
}

.k4u-suggest__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.k4u-suggest__title {
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.k4u-suggest__title mark {
    background: none;
    color: inherit;
    font-weight: 700;
    padding: 0;
}

.k4u-suggest__meta {
    font-size: 12px;
    color: #777;
}

.k4u-suggest__all {
    display: block;
    margin-top: 6px;
    padding: 11px 10px;
    border-top: 1px solid #f0f0f0;
    border-radius: 8px;
    color: #333 !important;
    font-weight: 600;
    text-align: center;
    text-decoration: none !important;
    white-space: normal;
}

.k4u-suggest__empty,
.k4u-suggest__loading {
    padding: 14px 10px;
    color: #666;
    line-height: 1.5;
    white-space: normal;
}

.k4u-suggest__empty a {
    color: #333;
    text-decoration: underline;
}

/* Header: keep the dropdown above the desktop nav / mega menu bar while it is open. */
.k4u-suggest-open .k4u-header .k4u-main {
    z-index: 9995;
}

/* Header mobile: the search drawer clips overflow while animating; let the dropdown show once open. */
.k4u-header.is-mobile-search-open .k4u-mobile__search-wrap {
    overflow: visible;
}

.k4u-mobile__search .k4u-suggest {
    max-height: 60vh;
}
