
*,
*:before,
*:after {
	box-sizing: border-box;
}
img{
    width: 100%;
}
html{
    display: flex;
    justify-content: center;
}
body{
    max-width: 700px;
}

/*_________________________header__________________________*/

header{
    display: flex;
    justify-content: space-between;
    position: relative;
}
.logo{
    align-self: flex-start;
    padding: 10px;
}
.basket_logo{
    align-self: flex-end;
    border: 2px solid#a9a7a7;
    border-radius: 50%;
    padding: 10px;
    display: flex;
    position: relative;
}
.basket_logo img{
    align-self: center;
}
.cart_items_amount{
    display: none;
    width: 20px;
    height: 20px;
    position: absolute;
    border-radius: 50%;
    bottom: -7px;
    left: -5px;
    color: #fff;
    background: #004ab1;
    align-items: center;
    justify-content: center;
    padding: 10px;

}

/*_________________________main__________________________*/

/*_________________________slider__________________________*/

.slider{
    margin-top: 20px;
    width: 100%;
    padding: 15px;
    position: relative;
    min-width: 0;
  }
  .slick-track{
    display: flex;
  }
  .slick-list{
    overflow: hidden;
  }
  .single-items .slider_item{
    position: relative;
    display: flex;
    color: #fff;
    justify-content: center;
  }
  .slider_item .slider_item_div{
    position: absolute;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding-top: 115px;
    z-index: 1;
  }
  .slider_item_div > h1{
    text-align: center;
  }
  .slider_item_div .add_button{
    text-align: center;
    padding: 10px 20px;
    width: max-content;
  }
.color_black{
    color: #000;
}
/*_________________________shopping_cart__________________________*/

.shopping_cart{
    display: none;
    position: absolute;
    background-color: #fff;
    width: 50%;
    border: 1px solid #0004;
    /*max-width: 50%;
    min-width: 50%;*/
    right: 0;
    z-index: 20;
    border-radius: 10px;
    top: 60px;
    flex-direction: column;
    align-items: center;
}
.shopping_cart.active{
    display: flex;
}
.cart_header{
    display: flex;
    flex-direction: column;
    align-self: center;
    align-items: center;
    width: 100%;
    padding: 10px;
}
.cart_header h4{
    margin: 0;
}
.cart_header :nth-child(n), .cart_amount :nth-child(n){
    padding: 5px;
}
.cart_items{
    width: 100%;
}
.cart_item{
    display: flex;
    padding: 20px;
    position: relative;
    justify-content: center;
}
.cart_img_wrap{
    align-items: center;
    justify-content: center;
    display: flex;
    padding: 0;
    border-radius: 10px;
    width: 31%;
    overflow: hidden;
}
.cart_img_wrap img{
    padding: 0;
}
.cart_item_description{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: 35%;
    padding-left: 10px;
}
.cart_item_description h5, .cart_item_description span{
    margin: 0;
    max-width: max-content;
}
.cart_item_description span{
    margin-top: 10px;
    background-color: #eaf6ff;
    border-radius: 5px;
    color: #4191ff;
    padding: 2px 5px;
    font-size: 13px;
}
.cart_item_amount{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 31%;
}
.cart_item_amount span{
    margin: 0 5px;
    color: #4191ff;
    font-weight: 700;
}
.change_item_amount, .remove_cart_item{
    width: 20px;
    height: 20px;
    justify-content: center;
    align-items: center;
    display: flex;
    background: #3c44b1;
    color: #fff;
    border: none;
}
.remove_cart_item{
    background: #fee0e3;
    color: #f83245;
}
.remove_cart_item{
    margin-left: 15px;
}
.cart_amount{
    width: 100%;
    display: flex;
    padding: 10px;
    background: #eaf6ff;
    margin-bottom: 20px;
    position: relative;
}
.cart_amount::before, .cart_item::before, .cart_item::after{
    display: block;
    width: 100%;
    height: 1px;
    background: #e1e1e1;
    top: 0;
    left: 0;
    content: '';
    position: absolute;
}
.cart_item::after{
    bottom: 0;    
}
.cart_amount span{
    width: 50%;
    color: #767272;
}
/*_________________________search__________________________*/

.search{
    position: relative;
}
.input_container{
    padding: 20px 30px;
    display: flex;
}
.input_container > input{
    width: 100%;
    padding: 10px;
    padding-left: 35px;
    border-radius: 5px;
    border: none;
    box-shadow: 0px 0px 10px 2px rgba(0, 0, 0, 0.2);
}
.input_container img{
    width: 30px;
    right: 75px;
    align-self: center;
    position: absolute;
}
.input_container img:first-child{
    width: 15px;
    left: 40px;
}
.input_container img:last-child{    
    right: 35px;
}
.search_tune{
    display: none;
    position: absolute;
    right: 20px;
    width: 40%;
    background: #fff;
    z-index: 40;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3%;
    box-shadow: 0 0 10px rgb(0 0 0 / 50%);
    border-radius: 5%;
}
.search_tune.active{
    display: flex;
}
.search_category_stock{
    display: flex;
    width: 100%;
}
.search_category, .search_stock, .search_order h4{
    color: #688dd1;
    width: max-content;
}
.search_category, .search_stock{
    display: flex;
    flex-direction: column;
    justify-content: start;
    width: 50%;
}
.search_stock input{
    text-align: center;
}
.search_order{
    width: 100%;
    display: flex;
    flex-direction: column;
}
.search_category select, .search_stock input, .search_button{
    width: 94%;
    padding: 3%;
    margin: 3%;
    position: relative;
    display: flex;
    justify-content: center;
}
.search_button{
    border-radius: 10px;
    border: none;
}
.search_button.search_choise{
    background: #edf3ff;
}
.ascending_default::after, .descending_default::after{
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    background: url('../img/icons/arrow_left.svg') center/ 200% no-repeat;
    transform: rotate(90deg);
    position: absolute;
    align-self: center;
    left: 10%;
}
.ascending_default::after{
    transform: rotate(-90deg);
}

/*_________________________catalog__________________________*/

.catalog{
    display: flex;
    justify-content: center;
}

/*_________________________accordion_filter__________________________*/

.accordion_filter{
    display: none;
    align-self: flex-start;
    border-radius: 10px;
    box-shadow: 5px 5px 20px 0 rgb(0 0 0 / 20%);
    min-width: 30%;
    max-width: 30%;
    margin: 10px;
    background-color: #ecf3fe;
    overflow: hidden;
}
.accordion_filter.active{
    display: flex;
}
.accordion_filter > ul{
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
    width: 100%;
}
.accordion_filter li{
    display: flex;
    position: relative;
    flex-wrap: wrap;
    list-style: none;
    padding: 10px 0;
    padding-left: 7%;
}
.accordion_filter > ul > li:after{
    content: '';
    background: url('../img/icons/arrow_left.svg') center/100% no-repeat;
    display: block;
    position: absolute;
    right: 5%;
    width: 20px;
    height: 20px;
    transform: scale(1.3);
}
.accordion_filter > ul > li:not(:last-of-type):before{
    content: '';
    background: #bac0d6;
    display: block;
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    bottom: 0;
}
.accordion_filter > ul > li.rotate_after{
    background: white;
}
.accordion_filter > ul > li.rotate_after:before{
    content: '';
    background: #bac0d6;
    display: block;
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    top: 39px;
}
.accordion_filter > ul > li.rotate_after:after{
    transform: rotate(90deg) scale(1.3);
}
.accordion_filter > ul > li > span:nth-child(1){
    width: 100%;
    text-align: start;
}
.accordion_filter > ul > li > span:nth-child(2){
    display: block;
    width: 111%;
    height: 1px;
    bottom: -12px;
    left: -4%;
    background-color: #bac0d6;
}
.filter_price, .filter_color, .filter_memory, .filter_os, .filter_display{
    display: none;
    flex-wrap: wrap;
    padding: 0;
    margin-top: 20px;
    position: relative;
    font-size: 13px;
    width: 100%;
}
input[type = 'checkbox']{
    order: -1;
}
.filter_price:after, .filter_color:after, .filter_memory:after, .filter_os:after{
    content: '';
    display: block;
    height: 1px;
    background: #bac0d6;
    bottom: -10px;
    width: 108%;
    left: -8%;
    position: absolute;
}
.filter_price span{
    width: 20%;
}
.filter_price input{
    width: 50%;
    margin-left: 30px;
    text-align: center;
}
.filter_color li, .filter_storage li{
    width: 49%;
    padding-left: 3%;
}
.filter_os li, .filter_display li{
    width: 100%;
}

/*_________________________items__________________________*/

.items{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    height: max-content;
}
.item{
    width: 29%;
    /*width: 45%;*/
    margin: 10px;
    display: flex;
    border-radius: 5%;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}
.item.item_two_elm{
    width: 45%;
}
.item > .item_favorite{
    display: flex;
    width: 25px;
    height: 25px;
    background: url('../img/icons/like_empty.svg') center/80% no-repeat;
    z-index: 1;
    top: 15px;
    right: 5px;
    position: absolute;
}
.item > .item_favorite.active{
    background: url('../img/icons/icons/like_filled 1.svg') center/80% no-repeat;
}
.item_main{
    display: flex;
    flex-direction: column;
    font-size: 12px;
    color: #a09e9e;
    justify-content: space-evenly;
}
.item > img{
    padding: 15px 35px;
}
.item_main h1, span{
    text-align: center;
    width: 100%;
    position: relative;
    margin-bottom: 2px;
}
.item_main h1{
    color: #000;
    margin-bottom: 10px;
    font-size: 18px;
    padding: 0 10px;
}
.inStock{
    display: flex;
    justify-content: center;
}
.inStock span{
    width: 15px;
    height: 15px;
    background: url('../img/icons/icons/check 1.svg') center/85% no-repeat,
                url('../img/icons/icons/Ellipse 2.png') center/100% no-repeat;
    top: -1px;
    left: -5px;
}
.inStock .no_stock{
    background: url('../img/icons/icons/close 1.svg') center/100% no-repeat;
}
.add_button{
    background-color: #004ab1;
    align-self: center;
    width: 75%;
    border-radius: 5px;
    padding: 10px;
    color: #fff;
    border: none;
    margin-bottom: 20px;
}
.add_button[disabled], .change_item_amount[disabled]{
    background-color: #dddddd;
}
.item_footer{
    background-color: #d9e2ea;
    display: flex;
    padding: 10px;
    align-self: flex-end;
    width: 100%;
}
.item_footer img{
    width: 8%;
    height: auto;
    align-self: flex-start;
    margin-right: 2%;
    margin-top: 1%;
}
.reviews, .orders{
    padding: 0 5px;
    font-size: 10px;
    color: #767c96;
    display: flex;
    flex-wrap: wrap;
    flex-grow: 10;
}
.orders{
    flex-grow: 1;
}
.orders_counts, .reviews_counts{
    width: 100%;
}
.reviews span{
    text-align: left;
}

/*_________________________modal page__________________________*/

.modal_page{
    position: fixed;
    z-index: 30;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    padding: 10%;
    background-color: #000a;
}
.modal_back{
    width: 100%;
    height: 100vh;
    z-index: 40;
    position: absolute;
}
.modal_content{
    background: white;
    width: 70%;
    display: flex;
    height: max-content;
    align-self: center;
    z-index: 100;
}
.modal_wrap_img, .modal_price{
    width: 25%;
    padding: 2%;
    justify-content: center;
    align-self: center;
}
.modal_main{
    width: 50%;
    display: flex;
    flex-direction: column;
    padding: 0 7%;
    position: relative;
    color: #3a3e64;
}
.modal_main::before, .modal_main::after{
    content: '';
    display: block;
    height: 100%;
    width: 2px;
    background-color: #f5f5f5;
    position: absolute;
    left: 0;
}
.modal_main::after{
    right: 0;
    left: 100%;
}
.modal_reviews{
    border-radius: 10px;
}
.modal_description{
    display: flex;
    flex-direction: column;
    padding: 10% 0;
    font-size: 12px;
}
.modal_description > span{
    width: max-content;
    padding: 1%;
    color: #a9a7a7;
}
.modal_description > span span{
    color: #000;
}
.modal_price{
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #3a3e64;
}
.modal_price span{
    padding: 15%;
}
.modal_price h2{
    margin: 0;
}