@import url("item.css");
@import url('shop.css');
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@200;300;400;700&display=swap');

*{
  margin: 0;
  padding: 0;
  margin-block-start: 0;
  margin-block-end: 0;
  margin-inline-start: 0;
  margin-inline-end: 0;
  box-sizing: border-box;
}
body {
  position: relative;
  width: 100vw;
  height: 100vh;
  color: #000;
  font-family: 'Nunito Sans', sans-serif;
  
}
.wrapper{
  /* background-color: blue; */
  max-width: 100vw;
  max-height: 100vh;
  margin: 3rem;
  position: relative;
  /* border: 2px solid red; */
}

a {
  cursor: pointer;
}

.top{
  
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  height: 40px;
  margin:0.5rem;
  font-size: 1.5rem;
  z-index: 1;

}
.top .bars{
  display: flex;
  flex-direction: column;
  height:1.5rem;
  /* list-style: none; */
  justify-content: center;
  justify-self: flex-end;
  margin-top: -5px;
  opacity: 0;
}
.top .bars .bar {
  display: inline-block;
  border-bottom:2px solid black;
  /* width:30px;
  height:2rem; */
  width: 35px;
  height: 2px;
  background-color: #000;
  margin: 6px 0;
  /* transform: rotate(45deg); */

}

                                              /* NAVBAR */
.nav {
  position: relative;
  display: flex;
  margin:2rem 0;
  align-items: center;


}
nav ul{
  display: flex;
  justify-content: flex-start;
  list-style: none;
  align-items: center;
  font-weight: 700;
 
}
nav ul li a{
  margin: 0 2rem;
  text-decoration: none;
  color:rgba(34,35,43,0.4);
}
.active{
  color:#00C98D;
}
li a:hover{
   color:#000;
  ;
}

.nav .cart{
  display: flex;
  margin-left: auto;
  justify-content: space-evenly;
}

.nav .cart a {
  margin: .1rem 2rem;
  font-weight: 700;
}
.nav .cart .shoppingCart {
  position: relative;
}
.nav .cart .shoppingCart.active:after {
  content:attr(data-value);
  display: flex;
  align-items: center;
  justify-content: center;
  color:#fff;
  position: absolute;
  top:-10px;
  right:-10px;
  width: 20px;
  height:20px;
  border-radius: 50%;
  background-color:#00C98D;
}

.search {
  display: flex;
  min-width: 90vw;

}
.search .searchBar, .searchBar form{
  display: flex;
  min-width: 100%;
  justify-content: space-between;

}
.search #searchQuery{

  background-image: url("../img/Search.png");
  background-size:35px;
  background-repeat: no-repeat;
  width: 74%;
  border:none;
  border-bottom: 3px solid  rgba(151, 151, 151, 0.4);;
  padding: .5rem;
  font-size: 1.5rem;

}
.search #searchQuery:focus{
background-image: none;
outline: none;


}
.search #sort {
  width: 24%;
  border:none;
  border-bottom: 3px solid rgba(151, 151, 151, 0.4);;
}

.mainDisplay{
  position: relative;
  min-width: 100%;
  
}

.mainDisplay .carousel {
  position: relative;
  max-width: 100vw;
  margin-top: 3rem;
  
 


}

                                                          /* main display  */
.mainDisplay .carousel .previous{
  filter:drop-shadow(0px 0px 10px rgba(0,0,0,.9));
  background:url('../img/ArrowLeft.png');
  background-size: contain;
  background-repeat: no-repeat;
  color: #00C98D;
  height:4rem;
  width:2rem;
  position: absolute;
  top:45%;
  left:2%;
  border: none;

}
.mainDisplay .carousel .next{
  filter:drop-shadow(0px 0px 10px rgba(0,0,0,.9));
  background:url('../img/ArrowRight.png');
  background-size: contain;
  background-repeat: no-repeat;
  color: #00C98D;
  height:4rem;
  width:2rem;
  position: absolute;
  top:45%;
  right:2%;
  border: none;

}
.mainDisplay .carousel .carouselText{
  position: absolute;
  color: #fff;
  left:5%;
  top:5%;
  
}
.mainDisplay .carousel .carouselText h1{
  filter:drop-shadow(0px 0px 10px rgba(0,0,0,.5));
  font-weight: 700;
  font-size: 3rem;
}

.mainDisplay .carousel .carouselText h3{
  filter:drop-shadow(0px 0px 10px rgba(0,0,0,.9));
  font-weight: 300;
  font-size: 2rem;
  border-bottom: 3px solid #fff;
  display: inline;
}

.mainDisplay .carousel .imgWrap img{
  width: 100%;
  height: 60vh;
  object-fit: cover;
  object-position: 0 100%;
}

                                                       
                                                                /* footer  */
footer {
  display: flex;
  margin: 3rem 0;
  border-top: 2px solid #1b1b1b5b;
  justify-content: space-around;
  
  
}
footer ul {
  display: flex;
  list-style: none;
  margin: 3rem 0;
  align-items: center;
  
  
}
footer li a{
  text-decoration: none;
  text-wrap:nowrap;
  font-weight: 700;
  color: #000;
  margin:2rem;
}
                                                /*Media Queries siteWide*/

@media only screen and (max-width: 960px)  {
  .wrapper{
    margin:0;
  }
  .top{
    position: fixed;
    width: 100vw;
    padding: 1.5rem 1rem;
    margin: 0;
    background-color: #fff;
    min-height:4rem;
  }
  .top .bars {
    opacity: 1;
  }
  .top .bars .bar1,.bar2{
    /* color: #00C98D; */
    transition: 0.4s;
  }
  .change.bar1 {
    /* -webkit-transform: rotate(-45deg) translate(-5px, 6px); */
    transform: rotate(-45deg) translate(-20px, 0px);
    /* background-color: blue; */
    transform-origin: top right;
  }
  
  .change.bar2 {
    /* -webkit-transform: rotate(45deg) translate(15px, -26px); */
    transform: rotate(45deg) translate(-0px, 0px);
    transform-origin: top left;
  }
  .change.bar3 {
    opacity: 0;
  }
  .nav {
    background-color: #fff;;
    height:95vh;
    width: 0;
    z-index: 7;
    position: fixed;
    left:0;
    top:40PX;
    overflow: hidden;
    transition: 0.5s;
    /* max-width: 90vw; */
    /* margin: 0; */
    /* display: none; */
  }
  .nav.open {
    width: 100vw;
  }
  .nav nav ul{
    flex-direction: column;
    justify-content: center;
  }
  .nav, .nav > .cart, .nav nav ul {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin:0;
  }
  .nav, .nav > .cart .shoppingCart, .nav nav ul LI{
    margin: 1rem 0;
  }

  main {
    padding-top:7rem;
  }
  .search {
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 2em;
    max-width: 90vh;
    margin-left: 1em;

  }
  .searchBar #searchQuery {
    width: 90%;
  }
  .searchBar #sort {
    display: none;
  }
  footer,footer ul.footerLinks {
    flex-direction: column;
    /* margin-top: 3rem; */
    justify-content: center;
  }
  footer ul.social {
    justify-content: center;
    margin-top: 0;
  }
  .mainDisplay .carousel .carouselText h1{
    /* background-color: blue; */
    font-size: 2rem;
    margin:0;
  }
  .mainDisplay .carousel .carouselText h3{
    font-size: 1rem;
  }
                                        /*Shop Page*/

  .shopDisplay {
    /* width:0; */
    /* overflow: hidden; */
    display:flex;
    flex-direction: column;
    flex-wrap: wrap;
  }
  .shopDisplay .filterList{
    display:flex;
    flex-direction: column;
    flex-wrap: wrap;
    max-width:90vw;
    padding: 1.5rem;
  }
  .shopDisplay .filterList .filterHeader{
    display: flex;
    justify-self: center;
    border: #000 solid 2px;
    width:70px;
    border-radius: 5px;
    padding: .2rem;

  }
  .shopDisplay .filterList .filterForm{
    position: absolute;
    display:flex;
    justify-content: center;
    margin-top: 1.5rem;
    /* align-items: center; */
    flex-wrap: wrap;
    height: 0;
    overflow: hidden;
    /* background-color: blue; */
    /* transition: 0.3s; */
    
  }
  .shopDisplay .filterList .filterForm.filterOpen{
    height:100%;
    position: relative;

  }
  .shopDisplay .filterList .filterForm .priceRangeSlider {
    width:83%;
  }  
  .shopDisplay .filterList form > fieldset {
    width: 170px;
  }
  .shopDisplay .filterList form > fieldset .fieldHeader{
    justify-content: space-around;
  }
  
  .shopDisplay .displayGrid .gridItems li{
    margin: 0 auto;
  }
 
 
  
                                    /*  item page  */
  .productWrap{
    /* margin-top: 1em; */
    min-width: 100vw;
    position: relative;
    display: flex;
    flex-direction: column;
  }
  .itemPage {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 40px;
    height:auto;
  }
  .imageDisplay{
    max-width:100vw;
    /* margin:2rem; */
    margin:0;
    overflow: hidden;
  }
  .imageDisplay .mainImg {
    aspect-ratio:90/60;
    min-height: 1vh;

  }
  .itemOptions{
    width:100vw;
    padding:2rem;
    margin:0;
    height: auto;
  }

}
@media only screen and (min-width:200px)and (max-width:530px){
  /* .applyFilters{
    margin-left:2rem;
  }         */
  .shopDisplay .filterList .filterForm .priceRangeSlider {
    width:70%;
  }                                     
}