/* ========================== */
/* ПОЛЕ ДЛЯ ПОИСКА */
/* ========================== */

.headerSearch_wrapper{
    position: relative;
    top: 0;
    left: 0;
    height: 40px;

}
.searchDarkArea{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(3,8,13,.32);
    z-index: 99;
}

.search-box {
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    row-gap: 10px;
    background: #fff;
    padding: 10px 10px;
    border-radius: 5px;
    overflow: hidden;
    z-index: 999;
}

.headerSearchContent {
    height: 50vh;
    overflow-y: auto;
    scrollbar-width: 10px;
    scrollbar-color:var(--gray-dark);
}
.headerSearchContent::-webkit-scrollbar {
    width: 10px;
  }
  .headerSearchContent::-webkit-scrollbar-thumb {
    background-color: var(--gray-dark);
    border-radius: 5px;
  }

.listVariantSearch {
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: 0 0 15px rgb(0 0 0 / 15%);
    padding: 5px;
    border-radius: 0 0 5px 5px;
}
.searchResultBlock {
    display: flex;
    flex-direction: column;
    row-gap: 10px;
    overflow-y: scroll;
    scrollbar-width: 10px;
    scrollbar-color:var(--gray-dark);
}
.searchResultBlock::-webkit-scrollbar {
    width: 10px;
  }
  .searchResultBlock::-webkit-scrollbar-thumb {
    background-color: var(--gray-dark);
    border-radius: 5px;
  }
.searchResultElement{
    align-items: center;
    cursor: pointer;
    display: flex;
    font-size:14px;
    position: relative;
    transition: .2s ease-out;
    transition-property: background-color, color;
}
.titleSearchScreen{
    font-size: 20px;
    font-weight: 600;
    letter-spacing: .4px;
    padding-bottom: 10px;
}
.searchResultElement:last-child::before{
    content: none;
}
.searchResultElement:hover{
    background: rgba(247, 188, 88, .1);
}
.imageInSearch{
    display: flex;
    justify-content: center;
    color: #96a3ae;
    padding-left: 10px;
}
.titleElement {
    width: 100%;
    border-bottom: 1px solid rgba(247, 188, 88, .3);
    padding: 10px 10px 10px 0px;
    margin-left: 10px;
}

.productOfferSearch{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));   
    gap: 10px;
    background: #fff;
}
.deleteSearchValue{
    position: absolute;
    top: 40%;
    left: auto;
    right: 7px;
    display: block;
    width: 10px;
    height: 10px;
    background-image: url(/local/templates/adeta/images/icons/cross_exit.svg);
    background-size: cover;
    background-repeat: no-repeat;
    cursor: pointer;
}
form.headerSearch_form {
    position: relative;
    width: 100%;
    /* height: 100%; */
    display: flex;
    z-index: 20;
}
form.headerSearch_form input {
    width: 100%;
    height: 40px;
    display: flex;
    border-radius: 5px 0 0 5px;
    border-top: 2px solid;
    border-bottom: 2px solid;
    border-left: 2px solid;
    border-color: var(--yellow-color);
    padding: 8px;
}
form.headerSearch_form input::placeholder {
	font-size: 15px;
}
.headerSearch_but {
    height: 40px;
    width: 40px;
    background-color: var(--yellow-color);
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
	margin: 0;
	font: menu;
}
.sectionSearch {
	margin-bottom: 15px;
}
.sectionSearch .headingSearchSection {
	font-weight: 500;
	text-transform: uppercase;
	font-size: 14px;
	margin-bottom: 10px;
	padding: 0 10px;
}
.sectionSearch .listItemVariant li a {
	position: relative;
	width: 100%;
	display: flex;
	align-items: center;
	padding: 10px 10px;
	column-gap: 10px;
	border-bottom: 1px solid #eee;
	font-size: 14px;
}
.sectionSearch .listItemVariant li a:hover {
	background: #fafafa;
    cursor: pointer;
}
.lastSearchQuery .listItemVariant li a::before {
	opacity: 1;
	content: "";
	display: block;
	width: 23px;
	height: 20px;
	top: 0;
	background-image: url(/local/templates/adeta/images/icons/search_black.svg);
	background-repeat: no-repeat;
	background-size: 20px;
}
.searchListProducts {
	overflow: hidden;
}
.listProducts {
	display: grid;
	grid-template-columns: 1fr 1fr;
	padding: 15px;
	position: relative;
	overflow: hidden;
	overflow-y: auto;
	height: 100%;
}
#headerSearchForm .fieldBlock {
	position: relative;
	width: 100%;
}

#headerSearchForm .fieldBlock .deleteSearch {
	display: none;
}

#searchBox.active #headerSearchForm .fieldBlock .deleteSearch {
	display: block;
    width: 10px;
    height: 10px;
    position: absolute;
    top: 40%;
    left: auto;
    right: 7px;
    
    background-image: url(/local/templates/adeta/images/icons/cross_exit.svg);
    background-size: cover;
    background-repeat: no-repeat;
    cursor: pointer;
}

#appHeaderSearch .skeleton-loading {
    position: relative;
    width: 100%;
    max-width: 280px;
    min-height: 406px;
    padding: 10px 10px 15px;
    border-radius: var(--small-radius);
    border: 1px solid #fff;
}

.skeleton-loading__line {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;

    background: linear-gradient(
        100deg,
        rgba(255, 255, 255, 0) 40%,
        rgba(255, 255, 255, .5) 50%,
        rgba(255, 255, 255, 0) 60%
      );
      background-size: 200% 100%;
      background-position-x: 180%;
      border-radius: var(--small-radius);
      animation: 1s loading ease-in-out infinite;
}

#appHeaderSearch .skeleton-loading__img,
#appHeaderSearch .skeleton-loading__price,
#appHeaderSearch .skeleton-loading__text,
#appHeaderSearch .skeleton-loading__btn {
  background-color: var(--loading-grey);
}

#appHeaderSearch .skeleton-loading__img {
    height: 186px;
}
#appHeaderSearch .skeleton-loading__price {
    height: 30px;
    width: 70%;
    margin-top: 50px;
}
#appHeaderSearch .skeleton-loading__text {
    height: 50px;
    margin-top: 10px;
    width: 100%;
}
#appHeaderSearch .skeleton-loading__btn {
    height: 28px;
    margin-top: 40px;
    width: 40%;
}



@keyframes loading {
  to {
    background-position-x: -20%;
  }
}

@media(max-width: 768px) {
    #appHeaderSearch .skeleton-loading {
        min-height: 300px;
    }
    #appHeaderSearch .skeleton-loading__img {
        height: 140px;
    }
    #appHeaderSearch .skeleton-loading__price,
    #appHeaderSearch .skeleton-loading__btn {
        margin-top: 15px;
    }
    #appHeaderSearch {
        order: 4;
        grid-column: 1/4;
    }
    .headerSearch_wrapper{
        width:100%;
    }
    .headerSearch_wrapper {
        width: 100%;
        height: 40px;
        z-index: 99;
        background: #fff;
    }
    .headerSearch_wrapper.active {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
    }
    .headerSearch_wrapper.active .headerSearchBlock {
        padding: 0 10px;
    }
    .headerSearchContent {
        height: auto;
        padding: 0 10px;
    }
    .productOfferSearch{
        grid-template-columns: repeat(2, 1fr);   
    }
    .search-box {
        position: static;
        padding: 0;
    }
    .headerSearch_wrapper.active .search-box {
        top: 0;
        height: 90vh;
        
    }

    #appHeaderSearch .butExit {
        width: 18px;
        height: 18px;
        background-image: url("/local/templates/adeta/images/icons/cross_exit.svg");
        background-size: cover;
        background-repeat: no-repeat;
        cursor: pointer;
        margin: 10px 0 10px auto;
    }
    


}
