@font-face {
    font-family: 'newcastle-basiccluploadedfile';
    src: url('assets/font/newcastle_basic_clean-webfont.woff2') format('woff2'),
         url('assets/font/newcastle_basic_clean-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'newcastle-basicruuploadedfile';
    src: url('assets/font/newcastle_basic_rusty-webfont.woff2') format('woff2'),
         url('assets/font/newcastle_basic_rusty-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'fonseca_bold';
    src: url('assets/font/fonseca_bold.woff2') format('woff2'),
         url('assets/font/fonseca_bold.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@import url('https://fonts.googleapis.com/css?family=IBM+Plex+Sans:300,400&display=swap');

form {
    display: inline;
}

body{
/*  background-image: url("assets/pattern.png");*/
/*  background-color: #2e393c;*/
  background-color: #fdf7ef9c;
  background-repeat: repeat;
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color:#000;
}

h1,
h2,
h3,
h4,
h5,
h6,
button,
.price,
.input-label,
.total-sum {
/*  font-family: 'newcastle-basicruuploadedfile', 'IBM Plex Sans', sans-serif;*/
  font-family: 'fonseca_bold', 'IBM Plex Sans', sans-serif;
  font-weight: normal;
  margin-bottom: 8px;
}
.input-label{
  color:#737272;
  font-size: 0.85em;
}
a{
  text-decoration: none;
  color:#000;

  color: #F6D8A5;
}

header{
  background:#fff;
  width:100%;
  position: sticky;
  top:0;
  z-index: 999;

  background: #2e393c;
}
h1{
  font-size:3em;
  margin-bottom: 60px;

  font-family: 'Fonseca Light', sans-serif;
  font-weight: initial;
  color: #f7ddbe;
  text-shadow: -2px 2px 0px #000;
}
.star{
  color:#ffaa33;
}
.header-flex{
  display:flex;
}
.header-logo{
  width:100px;
  margin-top: 10px;
}
.header-nav{
  flex-grow: 1;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  max-height:80px;
}
.nav-link{
  height:100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 10px;
}
.header-nav a{
  font-family: 'fonseca_bold', 'IBM Plex Sans', sans-serif;
  font-weight: normal;
}
.container{
  width:1200px;
  max-width:100%;
  margin:0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  padding: 5px;
}
section{
  padding:80px 0;
  box-sizing: border-box;
}
.products{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-column-gap:30px;
  grid-row-gap:30px;
  max-width: 100%;
}
.product{
  max-width:100%;
  height:auto;
  min-height: 450px;
  background: #fff;
  padding:30px;
  box-sizing: border-box;
  display:flex;
  flex-direction: column;
  transition: all 150ms ease-in-out;
  color: #000;
  position: relative;
  overflow: hidden;

  border: 2px solid #f4c660;
}
.product-wrapper{
  position: relative;
  flex-grow: 1;
}

.product-img{
  height:300px;
  width:100%;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 25px;
  transition: all 150ms ease-in-out;
}

.product-flex{
  display: block;
}
.product-img img{
max-height:100%;
max-width: 100%;
display: block;
margin: 0 auto;
transition: all 150ms ease-in-out;
}
.sold-out-img{
  width:85%;
  position:absolute;
  top:40%;
  left:50%;
  transform: translate(-50%,-50%);
}
.sold-out .sold-out-product-img{
  opacity:0.35;
}
.sold-out .sold-out-img{
  display: block;
}


h3{
  text-align: center;
  margin: 0;
  margin-bottom: 15px;
}
.price{
  background: #fdf7ef;
  color: #2e393c;
  border: 2px solid #f4c660;

  /*position: absolute;
  top:0;
  right:0;*/
/*  background: #EEEAE2;*/
  padding:8px;
  margin-bottom: 10px;
  font-size: 1.2em;
  text-align: center;
  /*box-shadow: 0px 20px 40px 0px rgba(0,0,0,0.2);*/
  z-index: 998;
  transition: all 150ms ease-in-out;
}
button{
  display: block;
  background:#de2c3b;
  padding:16px 16px;
  color:#fff;
  border:none;
  font-size:0.8em;
  transition: all 150ms ease-in-out;
  cursor: pointer;

  background: #fdf7ef;
  color: #2e393c;
  border: 2px solid #f4c660;
}
button:hover{
  background: #2e393c;
  color: #fdf7ef;
}
.product .btn{
  width:100%;
  bottom:0;
  left:0;
  right:0;
}
.disabled-btn, .disabled-btn:hover{
  background: #2e393c69
}

.login-form{
  display:flex;
  flex-direction: column;
  width:100%;
  padding-bottom: 40px;
}
.center-heading{
  text-align: center;
}
.center{
  margin: 0 auto;
}
.main-logo{
  width: 120px;
  display: block;
}
label{
  margin-bottom: 8px;
  font-size: 0.85em;
  display: block;
  color:#737272;
}
input{
  padding:12px;
  margin-bottom: 16px;
  width: 100%;
  box-sizing: border-box;
  border:none;
  background:#f2f1ef;
  transition: 0.2s ease-out;
}
.upload-input{
  padding:10px;
}
input:hover {
  background-color: #f7f7f7;
}
.remember{
  margin-top: 15px;
}
.psw{
  font-size: 0.8em;
  font-weight: 500;
  text-align: center;
  margin-top: 10px;
}
.login-wrapper{
  min-height:100vh;
  display:flex;
  flex-direction: column;
  justify-content: center;
  max-width:70%;
  margin:0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.login-grid{
  display:grid;
  grid-template-columns: 2fr 3fr;
  padding: 0;
  position: relative;
}
.img-holder{
  position: absolute;
  right: 0;
  top: 0;
  width: 60%;
  height:100%;
  background: url('assets/background.jpg') no-repeat left bottom;
  background-size: cover;
}

.profile-heading{
  width: 100%;
  display:flex;
}
.profile-heading div{
  flex-grow:1;
}
.profile-heading h1{
  margin-top: 0;
  margin-bottom: 16px;
}
.profile-heading h3{
  text-align: left;
}
.profile-heading{
  padding-bottom: 16px;
  margin-bottom: 40px;
}
.block{
  width: 100%;
  background: #fff;
  box-shadow: 0px 20px 40px 0px rgba(0,0,0,0.2);
  padding: 35px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  margin-bottom: 50px;
  overflow-y: scroll;
  overflow-x: hidden;
}
h2{
  margin: 0;
  margin-bottom: 35px;
}
.ww-grid{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-gap: 25px;
  grid-row-gap: 15px;
}

.flex-right{
  width: 100%;
  display: flex;
  justify-content: flex-end;
}
.orders{
  min-width: 500px;
}
.order-grid{
  display: grid;
  text-align: left;
  padding: 18px;
  grid-template-columns: 1fr 15% 15% 15% 1fr;
}
.order-grid span{
  flex-grow: 1;
}
.order-grid button{
  margin:0;
  padding: 0;
  font-size: 1.1em;
}

.user-grid{
  display: grid;
  text-align: left;
  padding: 18px;
  grid-template-columns: 1fr 1fr 1.6fr 10% 0.7fr 24px;
}
.user-grid span{
  flex-grow: 1;
}
.user-grid button{
  margin:0;
  padding: 0;
  font-size: 1.1em;
}
.search-results-list{
  max-height: 480px;
  overflow-y: scroll;
}

.product-grid{
  display: grid;
  text-align: left;
  padding: 18px;
  grid-template-columns: 1fr 15% 20% 1fr;
}
.secondary-btn{
  /*background:#e6e5e3;*/
  color:#bfbdb8;
  background: none;
}
.secondary-btn:hover{
  /*background:#e6e5e3;*/
  color:#96948f;
  background: none;
}
.subtle-btn{
  background:rgba(0,0,0,0.04);
  color:#96948f;
}
.subtle-btn:hover{
  background:rgba(0,0,0,0.07);
  color:#96948f;
}
/* Style the buttons that are used to open and close the accordion panel */
.accordion {
  background-color:#f2f1ef;
  cursor: pointer;
  color:#000;

  box-shadow: none;
  width: 100%;
  text-align: left;
  border: none;
  outline: none;
  transition: 0.4s;
  margin-bottom: 4px;
  margin-top: 4px;
}
.accordion label{
  margin: 0;
}
.accordion svg{
  width:20px;
  height:20px;
}

/* Add a background color to the button if it is clicked on (add the .active class with JS), and when you move the mouse over it (hover) */
.accordion:hover {
  background-color: #f7f7f7;
}
.active{
  background-color: #f2f1ef;
  box-shadow: none;
}

/* Style the accordion panel. Note: hidden by default */
.panel {
  padding: 0 18px;
  margin: 0px;
  background-color:#f7f7f7;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
}

.delivered{
  color:#05ab5b;
}
.waiting{
  color:#dba100;
}
.denied{
  color:#b22222;
}


.order-product-grid{
  display: grid;
  padding: 10px 18px;
  grid-template-columns: 56px 150px 1fr 100px 100px 24px;
  column-gap: 10px;
}
.order-product-grid .input-label{
  font-size:0.85em;
}
.order-product img{
  max-width: 100%;
}
.order-product-grid a{
  display: flex;
  align-items: center;
}
.order-product{
  background: #fff;
  margin-bottom: 8px;
}
.order-img-holder{
  padding: 10px;
  text-align: center;
}
.order-img-holder img{
  max-width: 100%;
}
.product-info{
  display: flex;
  flex-direction: column;
  justify-content:center;
}
.product-info p{
  margin: 0;
  padding: 0;
}
.top-labels span{
  margin-top: 20px;
}
.product-bottom-bar{
  display: grid;
  grid-template-columns: 1fr 100px;
  column-gap: 20px;
  margin: 30px 0;
}
.product-bottom-bar .total-sum{
  font-size: 1.5em;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content:center;
}
select{
  width: 100%;
  height: 44px;
  background:#fff;
  border-color: #f2f1ef;
  border-width: 3px;
}
.user-request select{
  margin-bottom:16px;
}
.token-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-column-gap: 25px;
}
.no-margin{
  margin: 0;
}
.no-padding{
  padding: 0;
}
.flex-search{
  display: flex;
  justify-content: space-between;
}
.flex-search input{
  width:40%;
  margin-left: 20px;
}
.product-block{
  padding: 18px;
}
.product-edit{
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-column-gap:20px;
  grid-row-gap:20px;
}
.product-edit input{
  background: #fff;
}

.shopping-cart-box{
  display: none;
  background:rgba(0,0,0,0.4);
  width:100vw;
  height:100vh;
  position:fixed;
  top:0px;
  left:0px;
  z-index:1000;
}
.shopping-cart-inner{
  background: #fff;
  width:640px;
  min-height:400px;
  max-width: 90%;
  max-height: 100%;
  padding:20px;
  box-sizing: border-box;
  z-index: 1001;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color:#000;
}

.cart-box {
  display: block;
  width: auto;
  background: rgba(219, 0, 33, 1);
  padding: 12px 16px 12px 16px;
  color:#fff;
  margin-left: 8px;
  /*margin-right: 2px;
  margin-left: 2px;*/

  background: #fdf7ef;
  color: #2e393c;
  border: 2px solid #f4c660;
}
#cart-items-count{
  margin-left: 12px;
  font-size: 1em;
}
.cart-icon{
  width:16px;
  margin-left: 4px;
  transform: translateY(2px);
  filter: invert(1);
}

.cart-products-loaded{
  padding: 0px;
}


/* The switch - the box around the slider */
.visible-toggle{
  display:flex;
  align-items: center;
  justify-content: flex-start;
}
.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 28px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #5B9E48;
}

input:focus + .slider {
  box-shadow: 0 0 1px #5B9E48;
}

input:checked + .slider:before {
  -webkit-transform: translateX(20px);
  -ms-transform: translateX(20px);
  transform: translateX(20px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 28px;
}

.slider.round:before {
  border-radius: 50%;
}
.logout{
  display: flex;
  justify-content: center;
  margin-top: 150px;
  margin-bottom: 100px;
}



/* Loader icon */
.lds-ring {
  display: inline-block;
  position: relative;
  width: 16px;
  height: 16px;
}
.lds-ring div {
  border: 3px solid white;
  border-color: black transparent transparent transparent;
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}
.lds-ring div:nth-child(1) {
  animation-delay: -0.45s;
}
.lds-ring div:nth-child(2) {
  animation-delay: -0.3s;
}
.lds-ring div:nth-child(3) {
  animation-delay: -0.15s;
}
@keyframes lds-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}




/* DASHBOARD TILES */
.dashboard-section{
  padding: 0;
  /*background:#de2c3b;*/
  /*background-image: url("assets/texture.png");*/
}
.masonry{
  width:100vw;
  height:100vh;
  box-sizing: border-box;
  padding: 30px;
  display: grid;
  grid-template-columns: repeat(12,1fr);
  grid-template-rows: repeat(8,1fr);
  grid-column-gap: 12px;
  grid-row-gap: 12px;
}
.masonry > a{
  width: 100%;
  height: 100%;
  background: #fff;
  transition: all 150ms ease-in-out;
  display: flex;
  flex-direction: column;
}
.masonry > a:hover{
  /*transform: scale(1.06);*/
  box-shadow: 0px 20px 80px 0px rgba(0,0,0,0.2);
  z-index: 1;
}
.tile-content{
  flex-grow: 1;
}
.masonry > a img{
  width: 100%;
}
.l-tile-p{
  grid-area: span 6 / span 4;
}
.m-tile{
  grid-area: span 3 / span 3;
}
.s-tile{
  grid-area: span 2 / span 2;
}
.s-tile-l{
  grid-area: span 2 / span 6;
}

.group-grid{
  display: grid;
  grid-template-columns: 1fr 1fr 0.35fr;
  grid-column-gap:20px;
  grid-row-gap:20px;
  grid-column: 3 / 1;
}



/* Media Queries */
@media screen and (min-width: 1000px) {
  .product:hover{
    box-shadow: 0px 20px 80px 0px rgba(0,0,0,0.1);
    /*transform: translateY(-4px);*/
  }
  .product:hover .product-img{
  height:245px;
  }
  .product:hover .btn{
    bottom:0;
    opacity:1;
  }
  .product:hover .price{
    background:none;
    border: none;
  }
  .product .btn{
    position: absolute;
    width:100%;
    bottom:-40px;
    left:0;
    right:0;
    opacity:0;
  }
  .sold-out:hover .btn{
    opacity:0;
  }
  .sold-out:hover .product-img{
    height:300px;
  }
  .sold-out:hover .price{
    background: #fdf7ef;
  }
}

@media screen and (max-width: 1300px) {
  .login-grid{
    grid-template-columns: 1fr 1fr;
  }
  .img-holder{
    width:50%;
  }
  h1{
    font-size: 2.7em;
  }
}

@media screen and (max-width: 1000px) {
  .login-grid{
    grid-template-columns: 1fr;
  }
  .img-holder{
    display: none;
  }
  h1{
    font-size: 2.5em;
  }
  .products{
    grid-template-columns: 1fr 1fr;
    grid-column-gap:20px;
    grid-row-gap:20px;
  }
  .ww-grid{
    grid-template-columns: 1fr 1fr;
  }

}

@media screen and (max-width: 768px) {
  h1{
    font-size: 2em;
  }
  .products{
    grid-template-columns: 1fr;
    grid-column-gap:20px;
    grid-row-gap:20px;
  }
  .ww-grid{
    grid-template-columns: 1fr;
  }
  .login-wrapper{
    max-width:100%;
  }
  .cart-text{
    display: none;
  }
  #cart-items-count{
    margin-left: 0px;
  }
}
