/* Header live search suggestions */

.top-search form.form-search .box-search .header-search-suggestions-wrap {
    opacity: 0;
    top: calc(100% + 6px) !important;
    visibility: hidden;
    width: 100% !important;
}

.top-search form.form-search .box-search .header-search-suggestions-wrap.is-open {
    opacity: 1 !important;
    visibility: visible !important;
}

.header-search-box {
    position: relative;
}

.nasad-header-search__form > .header-search-suggestions-wrap {
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    width: 100%;
}

.header-search-suggestions-wrap {
    left: 0;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: calc(100% + 6px);
    transform: translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    visibility: hidden;
    width: 100%;
    z-index: 120;
}

.header-search-suggestions-wrap.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
}

.header-search-suggestions-wrap.is-loading .header-search-suggestions__panel {
    min-height: 88px;
    position: relative;
}

.header-search-suggestions-wrap.is-loading .header-search-suggestions__panel::after {
    animation: header-search-spin 0.7s linear infinite;
    border: 2px solid #e4e7ec;
    border-radius: 50%;
    border-top-color: #443297;
    content: "";
    height: 24px;
    left: 50%;
    margin: -12px 0 0 -12px;
    position: absolute;
    top: 50%;
    width: 24px;
}

@keyframes header-search-spin {
    to {
        transform: rotate(360deg);
    }
}

.header-search-suggestions__panel {
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(16, 24, 40, 0.12);
    overflow: hidden;
}

.header-search-suggestions__head {
    align-items: center;
    background: linear-gradient(135deg, rgba(68, 50, 151, 0.06) 0%, rgba(255, 255, 255, 0) 100%);
    border-bottom: 1px solid #f2f4f7;
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
    padding: 0.65rem 0.85rem;
}

.header-search-suggestions__head-label {
    color: #667085;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.header-search-suggestions__head-count {
    background: rgba(68, 50, 151, 0.1);
    border-radius: 999px;
    color: #443297;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    padding: 0.28rem 0.55rem;
}

.header-search-suggestions__list {
    list-style: none;
    margin: 0;
    max-height: 360px;
    overflow-y: auto;
    padding: 0.35rem;
    scrollbar-width: thin;
}

.header-search-suggestions__list::-webkit-scrollbar {
    width: 6px;
}

.header-search-suggestions__list::-webkit-scrollbar-thumb {
    background: #d0d5dd;
    border-radius: 999px;
}

.header-search-suggestions__link {
    align-items: center;
    border-radius: 12px;
    color: inherit;
    display: flex;
    gap: 0.75rem;
    padding: 0.55rem 0.6rem;
    text-decoration: none;
    transition: background-color 0.18s ease;
}

.header-search-suggestions__link:hover,
.header-search-suggestions__link:focus {
    background: rgba(68, 50, 151, 0.06);
    color: inherit;
}

.header-search-suggestions__thumb {
    align-items: center;
    background: #f9fafb;
    border: 1px solid #eef2f6;
    border-radius: 10px;
    display: inline-flex;
    flex-shrink: 0;
    height: 52px;
    justify-content: center;
    overflow: hidden;
    width: 52px;
}

.header-search-suggestions__thumb img {
    display: block;
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.header-search-suggestions__thumb-placeholder {
    color: #98a2b3;
    font-size: 1rem;
}

.header-search-suggestions__info {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.header-search-suggestions__brand {
    color: #667085;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.header-search-suggestions__title {
    color: #101828;
    display: -webkit-box;
    font-size: 0.86rem;
    font-weight: 600;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    line-height: 1.35;
    overflow: hidden;
}

.header-search-suggestions__price {
    color: #443297;
    font-size: 0.82rem;
    font-weight: 700;
}

.header-search-suggestions__price-from {
    color: #667085;
    font-size: 0.72rem;
    font-weight: 600;
    margin-right: 0.2rem;
}

.header-search-suggestions__currency {
    color: #667085;
    font-size: 0.72rem;
    font-weight: 600;
    margin-left: 0.15rem;
}

.header-search-suggestions__footer {
    border-top: 1px solid #f2f4f7;
    padding: 0.55rem;
}

.header-search-suggestions__view-all {
    align-items: center;
    background: #443297;
    border-radius: 12px;
    color: #fff;
    display: flex;
    font-size: 0.82rem;
    font-weight: 700;
    gap: 0.45rem;
    justify-content: center;
    min-height: 40px;
    padding: 0.55rem 0.85rem;
    text-decoration: none;
    transition: background-color 0.18s ease;
}

.header-search-suggestions__view-all:hover,
.header-search-suggestions__view-all:focus {
    background: #362678;
    color: #fff;
}

.header-search-suggestions__empty {
    padding: 1.35rem 1rem;
    text-align: center;
}

.header-search-suggestions__empty-icon {
    align-items: center;
    background: rgba(68, 50, 151, 0.08);
    border-radius: 999px;
    color: #443297;
    display: inline-flex;
    font-size: 1rem;
    height: 44px;
    justify-content: center;
    margin-bottom: 0.65rem;
    width: 44px;
}

.header-search-suggestions__empty-title {
    color: #101828;
    font-size: 0.92rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
}

.header-search-suggestions__empty-text {
    color: #667085;
    font-size: 0.8rem;
    line-height: 1.5;
    margin: 0;
}

.mobile_menu_search_widget .header-search-suggestions-wrap {
    width: 100%;
}

@media (max-width: 991.98px) {
    .mobile_menu_search_widget .header-search-suggestions__list {
        max-height: 280px;
    }
}
