.smartsearch-title__input-conteiner {
    position: relative;
}

.smartsearch-title__wrap {
    position: relative;
}

.smartsearch-title__wrap .smartsearch-title__input {
    height: 52px;
    padding: 8px 50px;
    padding-right: 100px;
    font-size: 14px;
    color: #2C2C2C;
    border-radius: 32px;
    width: 100%;
    background-color: var(--color-gray-200);
    border: 1px solid var(--color-gray-200);
    outline: none;
}

.smartsearch-title__wrap .smartsearch-title__input:hover {
    border-color: var(--main-color);
}

.smartsearch-title__wrap .smartsearch-title__input:active,
.smartsearch-title__wrap .smartsearch-title__input:focus-visible {
    border-color: var(--main-color);
    background-color: #FFF;
}

.smartsearch-title__wrap .smartsearch-title__input::placeholder {
    font-size: 14px;
    color: var(--color-gray-500);
}

.smartsearch-title__wrap .smartsearch-title__input-conteiner:before {
    content: url("./images/search.svg");
    position: absolute;
    top: 14px;
    left: 16px;
}

.smartsearch-title__result {
    display: flex;
    margin-top: -5px;
    padding: 16px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    overflow: auto;
    align-self: stretch;
    background: #FFF;
    box-shadow: 0px 4px 24px 0px rgba(69, 44, 113, 0.1);
    color: #2C2C2C;
    -ms-overflow-style: -ms-autohiding-scrollbar;
    scrollbar-width: thin;
}

.title-search-result {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 4px 24px 0px rgba(69, 44, 113, 0.1);
    z-index: 1205;
}

.smartsearch-title__result .m-auto {
    margin: auto;
}

.smartsearch-title__result-item {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
}

.smartsearch-title__result-item .item-img {
    width: 80px;
}

.smartsearch-title__result-item .item-img > a {
    display: inline-block;
}

.smartsearch-title__result-item .item-img img {
    border-radius: 8px;
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.smartsearch-title__result-item .item-name {
    color: #2C2C2C;
    font-size: 16px;
    font-weight: 400;
    line-height: 140%;
    text-decoration: none;
    cursor: pointer;
}

.smartsearch-title__result-item .item-name b {
    color: var(--main-color);
}

.smartsearch-title__result-item .item-name:hover {
    color: var(--main-color);
}

a.smartsearch-title__items .item-price {
    margin-top: 4px;
    font-size: 16px;
    font-weight: 700;
    line-height: 140%;
}

a.smartsearch-title__items .item-price .old {
    color: var(--color-gray-500);
    font-weight: bold;
    text-decoration: line-through;
    margin-left: 4px;
    font-size: 80%;
}

.smartsearch-title__result-item .section {
    margin-top: 4px;
    font-size: 16px;
    line-height: 140%;
    color: var(--color-gray-500);
}

.smartsearch-title__result-item .all-result {
    color: var(--main-color);
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 140%;
    text-decoration: none;
}

.icon-wrapper {
    position: absolute;
    display: flex;
    gap: 4px;
    align-items: center;
    top: 14px;
    right: 16px;
}

.search-title__icon {
    display: none;
    cursor: pointer;
    color: var(--color-gray-500);
}

.search-title__icon.speech {
    color: var(--main-color);
}

.search-title__icon.show {
    display: block;
}

.search-title__icon:not(:last-child) {
    fill: #0a962f;
}

.smartsearch-title__items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.smartsearch-title__result .result-group {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 16px;
    width: 100%;
}

.smartsearch-title__result .result-group .result-group__title {
    max-width: 120px;
    min-width: 0;
    color: var(--color-gray-500);
}

@media (hover: hover) {
    .search-title__icon:hover {
        color: var(--main-color);
    }
}

.smartsearch-title__req_history {
    display: none;
    position: absolute;
    width: 100%;
    top: 56px;
    left: 0;
    z-index: 505;
    border-radius: 10px;
}

.smartsearch-title__req_history_content {
    padding: 16px 24px;
    max-height: 40vh;
    overflow-y: auto;
    -ms-overflow-style: -ms-autohiding-scrollbar;
    scrollbar-width: thin;
}

.smartsearch-title__req_history .smartsearch-title__result-item {
    display: flex;
    padding: 6px 0;
}

.smartsearch-title__wrap .icon {
    color: var(--color-gray-500);
}

.smartsearch-title__wrap .icon:hover:not(.icon-history) {
    color: var(--main-color);
}

.smartsearch-title__wrap .delete-item {
    margin-left: auto;
    cursor: pointer;
}

.smartsearch-title__req_history:empty,
.smartsearch-title__req_history .item {
    list-style: none;
    display: none;
}

.smartsearch-title__req_history_title {
    margin-bottom: 12px;
    font-size: 16px;
    color: var(--color-gray-500);
}

.smartsearch-title__current_searchimg_wrap {
    position: absolute;
    top: 0;
    left: 0;
    display: none;
    height: 52px;
    padding: 10px 16px;
    border-radius: 32px;
    width: 100%;
    border: 1px solid var(--main-color);
    background: #FFFFFF;
}

.smartsearch-title__current_searchimg_wrap.show {
    display: block;
}

.smartsearch-title__current_searchimg {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100%;
    width: max-content;
    background: var(--color-gray-200);
    border-radius: 8px;
    max-width: 50%;
}

.smartsearch-title__current_searchimg img {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 6px;
}

.smartsearch-title__current_searchimg .search-title__icon {
    display: block;
    position: relative;
    top: 0;
    left: 0;
}

.smartsearch-title__current_searchimg .filename {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-title__searchimg_form_wrap {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    box-shadow: 0px 4px 24px 0px #452C711C;
    background: #FFFFFF;
    width: 100%;
    padding: 16px 24px;
    border-radius: 24px;
    z-index: 205;
}

.search-title__searchimg_form_container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.search-title__searchimg_form_container .error {
    display: none;
    padding: 8px 16px;
    border-radius: 4px;
    background: #F6676729;
    color: #F66767;
}

.search-title__searchimg_form_container .image_href {
    display: flex;
    gap: 16px;
}

.search-title__searchimg_form_container .input-text {
    width: 100%;
    height: 52px;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid var(--color-gray-500);
}

.search-title__searchimg_form_container .input-text::placeholder {
    color: var(--color-gray-500)
}

.search-title__searchimg_form_container .btn {
    width: fit-content;
    height: 52px;
    padding: 0 32px;
    border: none;
    border-radius: 32px;
    background-color: var(--main-color);
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.search-title__searchimg_form_container .title {
    display: flex;
    justify-content: space-between;
}
.title-search-result {
    margin-top: 5px;
}
.smartsearch-title__result {
    padding: 16px 0;
}

a.smartsearch-title__items {
    width: 100%;
    padding-inline: 16px;
    display: flex;
    flex-direction: row;
    padding-bottom: 8px;
    padding-top: 8px;
    border-bottom: 1px solid #DDD;
    align-items: center;
}
a.smartsearch-title__items:last-child {
    display: none;
}
a.smartsearch-title__items .item-img {
    width: 64px;
    text-align: center;
    flex-shrink: 0;
}
a.smartsearch-title__items .item-img img {
    object-fit: contain;
    width: 100%;
    margin: -2px 0;
    height: 64px;
}

.smartsearch-title__result {
    gap: 0;
    padding: 32px 8px 32px 32px;
}
.smartsearch-title__result ~ a.smartsearch-title__items {
    display: none;
}
a.smartsearch-title__items:hover {
    background-color: #EEE6;
}
.smartsearch-title__result_list {
    max-height: 230px;
    overflow: auto;
    width: 100%;
    scrollbar-width: thin;
}
.smst-list-title {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 16px;
    color: #5F5F5F;
}

.smst-list {
    font-size: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #000;
    margin-bottom: 16px;
    width: calc(100% - 24px);
    border-bottom: 1px solid #E8DDE1;
    padding-bottom: 16px;
}

.smst-list a:before {
    content: '';
    display: inline-block;
    margin-right: 8px;
    margin-bottom: -4px;
    width: 16px;
    height: 16px;
}
.smartsearch-title__popular a:before {
    background-image: url('data:image/svg+xml,<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M11.3 11.3L14 14M12.8 7.4C12.8 4.41766 10.3824 2 7.4 2C4.41766 2 2 4.41766 2 7.4C2 10.3824 4.41766 12.8 7.4 12.8C10.3824 12.8 12.8 10.3824 12.8 7.4Z" stroke="%23962956" stroke-width="0.666667" stroke-linecap="round" stroke-linejoin="round"/></svg>');  
}
.smartsearch-sections__result a:before {
    background-image: url('data:image/svg+xml,<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6.45768 3.87499C6.45768 2.44825 5.30109 1.29166 3.87435 1.29166C2.44761 1.29166 1.29102 2.44825 1.29102 3.87499C1.29102 5.30173 2.44761 6.45832 3.87435 6.45832C5.30109 6.45832 6.45768 5.30173 6.45768 3.87499Z" stroke="%23962956" stroke-width="0.645833"/><path d="M6.45768 11.625C6.45768 10.1983 5.30109 9.04166 3.87435 9.04166C2.44761 9.04166 1.29102 10.1983 1.29102 11.625C1.29102 13.0517 2.44761 14.2083 3.87435 14.2083C5.30109 14.2083 6.45768 13.0517 6.45768 11.625Z" stroke="%23962956" stroke-width="0.645833"/><path d="M14.2077 3.87499C14.2077 2.44825 13.0511 1.29166 11.6243 1.29166C10.1976 1.29166 9.04102 2.44825 9.04102 3.87499C9.04102 5.30173 10.1976 6.45832 11.6243 6.45832C13.0511 6.45832 14.2077 5.30173 14.2077 3.87499Z" stroke="%23962956" stroke-width="0.645833"/><path d="M14.2077 11.625C14.2077 10.1983 13.0511 9.04166 11.6243 9.04166C10.1976 9.04166 9.04102 10.1983 9.04102 11.625C9.04102 13.0517 10.1976 14.2083 11.6243 14.2083C13.0511 14.2083 14.2077 13.0517 14.2077 11.625Z" stroke="%23962956" stroke-width="0.645833"/></svg>');  
}
@media (max-width: 991px) {
  .title-search-result {
    z-index: 1051;
    transform: unset;
    box-shadow: unset;
    height: 100%;
    overflow-y: scroll;
    left: 0 !important;
    right: 0 !important;
    width: auto !important;
    background: transparent;
    top: 55px !important;
    padding: 0;
    margin-top: 0;
  }
  .search-title {
    background: #FFF;
  }
  a.smartsearch-title__items .item-img {
    height: 75px;
  }
  a.smartsearch-title__items .item-img img {
    object-fit: contain;
    max-height: 100%;
  }

  .smartsearch-title__result {
      max-height: initial;
  }

  .title-search-result {
      border-radius: 0px;
      overflow: hidden;
  }
}
#title-search.backdropped form {
    position: relative;
    z-index: 1000;
}
/* карточка товара в выдаче */
.p-card.p-card-search {
    flex-direction: row;
}

.p-card-search .p-card__art {
    font-size: 11.52px;
    font-weight: 500;
}

.p-card-search .p-card__title {
    font-size: 12.26px;
    margin: 4px 0;
}

.p-card-search .p-card__props {
    font-size: 12.26px;
}

.p-card-search .p-card__info {
    margin-top: 0;
}

.p-card-search .p-card__bot {
    flex-direction: row;
    justify-content: space-between;
}

.p-card-search .p-card__buy .w-100 {
    width: auto !important;
}

.p-card-search .p-card__buy {
    justify-content: end;
}

.p-card-search .p-card__buy .p-card__btn span + span {
    display: none;
}

.p-card-search .p-card__buy .p-card__btn span {
    margin: 0 !important;
}
.p-card.p-card-search > div {
    width: 115px;
}

.p-card.p-card-search > div + div {
    width: calc(100% - 115px);
}

.p-card-search .p-card__percent {
    width: 28px;
    height: 28px;
    font-size: 0.65em;
}

.p-card-search .p-card__avail {
    font-size: 10.56px;
    white-space: nowrap;
    pointer-events: none;
}

.p-card-search .p-card__bot {
    align-items: center;
}

.p-card-search .p-card__price-current {
    font-size: 18.39px;
}

.p-card-search .p-card__price_discount {
    font-size: 12.36px;
}

.p-card-search .p-card__price {
    margin: 0 27px 0 0;
}
.p-card-search .icon-cart-btn:after {
    zoom: 0.7;
}

.smartsearch-title__result_list .p-card.p-card-search {
    border-radius: 0;
    border: none;
    border-bottom: 1px solid #e8dde1;
}

.smartsearch-title__result_list .p-card-item-line {
    padding: 0 24px 0 0;
}
.smartsearch-title__result_list .p-card-item-line .p-card__img img {
    max-height: 100px;
}
.p-card.p-card-search > div {
    width: 115px;
}

.p-card.p-card-search > div + div {
    width: calc(100% - 115px);
}

.p-card-search .p-card__percent {
    width: 28px;
    height: 28px;
    font-size: 0.65em;
}

.p-card-search .p-card__avail {
    font-size: 10.56px;
    white-space: nowrap;
    pointer-events: none;
}

.p-card-search .p-card__bot {
    align-items: center;
}

.p-card-search .p-card__price-current {
    font-size: 18.39px;
}

.p-card-search .p-card__price_discount {
    font-size: 12.36px;
}

.p-card-search .p-card__price {
    margin: 0 27px 0 0;
}

::after {}

.p-card-search .icon-cart-btn:after {
    zoom: 0.7;
}

.smartsearch-title__result_list .p-card.p-card-search {
    border-radius: 0;
    border: none;
    border-bottom: 1px solid #e8dde1;
}

.smartsearch-title__result_list .p-card-item-line {padding: 0 12px 0 0;}

.smartsearch-title__result_list .p-card-item-line .p-card__img img {
    max-height: 100px;
}

.smst-list-title.search-result-items {
    color: #962956;
    font-weight: 500;
    margin-bottom: 0;
}

.smartsearch-title__result_list .c-list__row {
    row-gap: 0;
    margin-inline: 0;
}
.p-card-search .prod__add-form.p-card__add-form .prod__add-form-input {
    width: 55px;
}

.p-card-search .p-card__add-form {
    zoom: 0.7;
}
/* конец карточки товара в выдаче */
@media (min-width: 992px) {
    #title-search.backdropped .smartsearch-title__result:not(.smartsearch-title__req_history) {
        max-height: 80dvh;
        overflow: auto;
        display: block;
    }
    .smartsearch-title__result_list {
        max-height: initial;
    }
    .smartsearch-title__result {
        padding: 0;
    }
    #title-search.backdropped  .smartsearch-title__result {
        padding: 32px 8px 32px 32px;
    }
}