.header_search_container {
    margin-right: 32px;
}

body:has(.ia-search-title.is-focus) {
    overflow: hidden;
}

.ia-search-title.is-focus {
    & .ia-search-title__overlay {
        opacity: 1;
        pointer-events: visible;
    }

    & .ia-search-title__input {
        background-color: var(--color-default);
    }

    & .ia-search-title__result-wrapper {
        display: block;
    }

}

.ia-search-title * {
    word-break: break-word;
}

.ia-search-title {

    & .section {
        width: 100%;
        margin-bottom: 0 !important;
    }

    & .ia-search-slider {
        display: none;
    }

    & .sticker_link {
        word-break: normal;
    }
}


.ia-search-title__result {
    display: flex;
    padding: 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    max-height: 100%;
    overflow: hidden;
    align-self: stretch;
    background: var(--color-default);
    box-shadow: 0px 4px 15px 0px #00000017;

    & .container {
        padding: 0;
    }
}

.ia-search-title__form {
    position: relative;
    z-index: 2;
}

.ia-search-title__overlay {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 9999;
    background: rgba(23, 23, 23, 0.8);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-default);
    z-index: 1;
}

.ia-search-title__wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.ia-search-title__input {
    border: none;
    border-radius: 2px 0 0 2px;
    height: 42px;
    padding: 0 100px 0 16px;
    background-color: var(--color-surface-grey);
    border-radius: var(--border-radius-image);
    width: 100%;
    color: var(--color-primary);
    font-size: 14px;
    text-overflow: ellipsis;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    touch-action: none;
}

.ia-search-title__btns {
    position: absolute;
    right: 14px;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.ia-search-title__icon {
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;

    & svg {
        fill: var(--color-dark-grey);
        transition: var(--transition-default);
        pointer-events: none;
    }

}

.ia-search-title__icon.show,
.ia-search-title__icon--search {
    display: flex;
}

.ia-search-title__delimeter {
    display: none;
    width: 1px;
    height: 18px;
    background-color: var(--color-dark-grey);
}

.ia-search-title__icon.show+.ia-search-title__delimeter {
    display: block;
}

.ia-search-title__result-wrapper {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    border-radius: var(--border-radius-default);
    overflow: hidden;
    box-shadow: 0px 4px 15px 0px #00000017;
    z-index: 3;
    background: var(--color-default);
    display: none;
    flex-grow: 1;
}

.ia-search-title__result-wrapper.is-wait {
    opacity: .7;
}

@keyframes loader {
    33%{background-size:calc(100%/3) 0%  ,calc(100%/3) 100%,calc(100%/3) 100%}
    50%{background-size:calc(100%/3) 100%,calc(100%/3) 0%  ,calc(100%/3) 100%}
    66%{background-size:calc(100%/3) 100%,calc(100%/3) 100%,calc(100%/3) 0%  }
}

.ia-search-title__result-wrapper.is-wait::before {
    content: '';
    opacity: .5;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 9;
    background-color: #f2f1f0;
}

.ia-search-title__result-wrapper.is-wait::after {
    content: '';
    opacity: 1;
    position: absolute;
    width: 40px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    aspect-ratio: 4;
    --_g: no-repeat radial-gradient(circle closest-side, var(--color-primary) 90%, #0000);
    background: var(--_g) 0% 50%, var(--_g) 50% 50%, var(--_g) 100% 50%;
    background-size: calc(100% / 3) 100%;
    animation: loader 1s infinite linear;
}

.ia-search-title__history-list {
    overflow: auto;
    /* max-height: 240px; */
    display: flex;
    flex-direction: column;
    gap: 10px;
    -ms-overflow-style: -ms-autohiding-scrollbar;
    scrollbar-color: var(--color-dark-grey) var(--color-default);
    scrollbar-width: thin;
}

.ia-search-title__history-list:has(.ia-search-title__history-item) {
    margin: 14px 14px 12px;
}

.ia-search-title__history-item {
    display: flex;
    width: 100%;
    padding: 16px 10px;
    justify-content: space-between;
    align-items: center;
}

.ia-search-title__history-item:nth-child(n+4) {
    display: none;
}

.ia-search-title__history-link {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;

    & svg {
        /* padding-top: 2px; */
        width: 16px;
        height: 16px;
        fill: var(--color-secondary);
        pointer-events: none;
    }
}

.ia-search-title__history-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 20px;
    height: 20px;

    & svg {
        width: 9px;
        height: 9px;
        fill: var(--color-dark-grey);
        transition: var(--transition-default);
        pointer-events: none;
    }
}

.ia-search-title__sections {
    width: calc(100% + 24px);
    margin: 0 -12px 8px;
    padding: 0 12px;
}

.ia-search-title__tag {
    width: max-content;

    & a {
        height: 32px;
        line-height: 1;
        font-size: 14px;
        background-color: var(--color-surface-grey);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 3px;
        padding: 0 16px;
        height: 32px;
        border-radius: var(--border-radius-default);
        cursor: pointer;
        transition: var(--transition-default);
    }

    & a:active {
        background-color: var(--color-primary);
        color: var(--color-default);
    }

    & b {
        font-weight: 300;
    }
}

.ia-search-title__link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    line-height: 140%;
    cursor: pointer;

    svg {
        fill: var(--color-primary);
    }
}

.ia-search-title__items {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ia-search-title__item {
    position: relative;
    padding: 8px 12px;
    border-radius: var(--border-radius-image);
    display: flex;
    align-items: center;
    transition: var(--transition-default);
    background-color: var(--color-default);
    cursor: pointer;

    & svg {
        width: 12px;
        height: 12px;
        fill: var(--color-secondary);
        flex: none;
        margin-right: 10px;
    }

    & a {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
    }
}

.ia-search-title__info {
    display: flex;
    flex-direction: column;
}

.ia-search-title__section {
    display: flex;
    gap: 5px;
    font-size: 12px;
    line-height: 140%;
    color: var(--color-dark-grey);
}

.ia-search-title__name {
    font-size: 14px;
    line-height: 140%;
    color: var(--color-primary);

    & b {
        font-weight: 300;
    }
}

.ia-search-title__cancel {
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1.4;
    height: 32px;
    flex: none;
}

.ia-search-title__popular {
    width: 100%;
    display: none;
    overflow: hidden;
    gap: 10px;
    flex-direction: column;
    padding: 20px;
}

.ia-search-title__popular--nothing {
    width: calc(100% + 40px);
    margin: 0 -20px;
    padding: 20px 20px 24px;
}

.ia-search-title__popular-list {
    width: calc(100% + 40px);
    margin: 0 -20px;
    padding: 0 20px;
}

.ia-search-title__title {
    margin-bottom: 14px;
    font-size: 20px;
    line-height: 120%;
    text-align: center;
}

.ia-search-title__sections-mob {
    margin-bottom: 24px;
    display: none;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.ia-search-title__section-mob {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
    line-height: 140%;
    min-height: 20px;

    & svg {
        width: 13px;
        height: 13px;
        margin-left: 2px;
    }

    & b {
        font-weight: 300;
    }
}

.ia-search-title__items-mob {
    width: 100%;
    display: none;
}

.ia-search-title__btn-submit {
    width: 100%;
    display: none;
}

.ia-search-title__nothing {
    margin-bottom: 16px;
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 4px;
    width: 100%;
}

.ia-search-title__nothing-title {
    font-size: 20px;
    line-height: 120%;
}

.ia-search-title__nothing-subtitle {
    font-size: 12px;
    line-height: 140%;
}

@media screen and (min-width: 1024px) and (hover: hover) {

    .ia-search-title__icon:hover {

        & svg {
            fill: var(--color-primary);
        }
    }

    .ia-search-title__tag {
        & a:hover {
            background-color: var(--color-accent);
            color: var(--color-default);
        }
    }

    .ia-search-title__link:hover {
        & svg {
            fill: var(--color-accent);
        }
    }

    .ia-search-title__item:hover {
        background-color: var(--color-surface-grey);
    }
}

@media screen and (max-width: 1024px) {

    .header_search_container {
        margin-right: 0;
    }

    .ia-search-title__nothing {
        margin-top: 0;
    }

    .ia-search-title {
        & .catalog-grid.ia-catalog-grid {
            margin-bottom: 24px;
        }

        & .ia-card .catalog-card__image-box {
            margin-bottom: 9px;
            padding-top: 105%;
        }

        & .ia-card .catalog-card__name {
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
            max-height: 3em;
        }

        & .ia-search-slider {
            display: block;
        }
    }

    .ia-search-title__input {
        height: 32px;
        padding: 0 10px 1px 28px;
        font-size: 12px;
    }

    .ia-search-title__btns {
        right: auto;
        left: 0;
    }

    .ia-search-title__icon {
        display: none !important;
    }

    .ia-search-title__delimeter {
        display: none !important;
    }

    .ia-search-title__icon--search {
        display: flex !important;
    }

    .ia-search-title.is-focus {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        bottom: 0;
        background-color: var(--color-default);
        display: flex;
        flex-direction: column;

        & .ia-search-title__overlay {
            display: none;
        }

        & .ia-search-title__form {
            padding: 56px 20px 16px;
            border-bottom: 1px solid var(--color-dark-grey);
        }

        & .ia-search-title__input {
            background-color: var(--color-surface-grey);
        }

        & .ia-search-title__cancel {
            display: flex;
        }

        & .ia-search-title__btn-submit {
            display: flex;
        }



    }

    .ia-search-title__items-mob {
        display: block;
    }

    .ia-search-title__wrapper {
        gap: 10px;
    }

    .ia-search-title__result-wrapper {
        position: relative;
        top: 0;
        box-shadow: none;
        border-radius: 0;
        overflow: auto;
        scrollbar-width: none;
        flex-direction: column;
    }

    .ia-search-title__popular {
        display: flex;
    }

    .ia-search-title__tag {
        & a {
            padding: 0 12px;
            font-size: 12px;
            height: 28px;
        }
    }

    .ia-search-title__history-item:nth-child(n+4) {
        display: flex;
    }

    .ia-search-title__history-item {
        padding: 6px;
    }

    .ia-search-title__history-list {
        gap: 8px;
    }

    .ia-search-title__history-link {
        gap: 4px;
        color: var(--color-secondary);
    }

    .ia-search-title__result {
        padding: 0 20px 100px;
        box-shadow: none;
    }

    .ia-search-title__result.is-empty {
        padding-top: 41px;
    }

    .ia-search-title__sections {
        display: none;
    }

    .ia-search-title__sections-mob {
        display: flex;
    }

    .ia-search-title__title {
        margin-bottom: 13px;
    }

    .ia-search-title__result-wrapper:has(.is-full) {

        & .ia-search-title__popular {
            padding-top: 0;
            
            & .ia-search-title__title {
                display: none;
            }

            & .ia-search-title__popular-list {
                display: none;
            }
        }

    }

    .ia-search-title__result-wrapper:has(.is-empty) {
        & .ia-search-title__popular:not(.ia-search-title__popular--nothing) {
            display: none;
        }
    }

    .ia-search-title__link,
    .ia-search-title__items {
        display: none;
    }

    .ia-search-title__history-remove {

        & svg {
            fill: var(--color-secondary);
        }
    }

}