@import url('https://fonts.googleapis.com/css?family=Roboto:300,400,400i,500');
*{
  padding: 0;
  margin: 0;
  list-style: none;
  text-decoration: none;
}
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
body {
    background:rgb(243, 243, 243);
    height: 120vh;
    margin:0;
    font-family: 'Montserrat', sans-serif;
}
.sidebar {
  position: fixed;
  left: -300px;
  width: 300px;
  height: 100%;
  background: #faf8f8;
  transition: all .5s ease;
  z-index: 960;
}
.sidebar header {
  font-size: 22px;
  color: rgb(0, 0, 0);
  line-height: 70px;
  text-align: center;
  background: #faf8f8;
  user-select: none;
  z-index: 1000;
}
.sidebar ul a{
  display: block;
  height: 100%;
  width: 100%;
  line-height: 65px;
  font-size: 20px;
  color: rgb(0, 0, 0);
  padding-left: 40px;
  box-sizing: border-box;
  border-bottom: 1px solid black;
  border-top: 1px solid rgba(255,255,255,.1);
  transition: .4s;
}
ul li:hover a{
  padding-left: 50px;
}
.sidebar ul a i{
  margin-right: 16px;
}
#check{
  display: none;
}
label #btn,label #cancel{
  position: absolute;
  background: #ffffff;
  border-radius: 3px;
  cursor: pointer;
}
label #btn{
  left: 40px;
  top: 25px;
  font-size: 35px;
  color: black;
  padding: 6px 12px;
  transition: all .5s;
  z-index: 950;
  
}
label #cancel{
  z-index: 1000;
  left: -195px;
  top: 17px;
  font-size: 30px;
  color: black;
  padding: 4px 9px;
  transition: all .5s ease;
  position: fixed;
}
#check:checked ~ .sidebar{
  left: 0;
}
#check:checked ~ label #btn{
  left: 250px;
  opacity: 0;
  pointer-events: none;
}
#check:checked ~ label #cancel{
  left: 195px;
}
#check:checked ~ section{
  margin-left: 250px;
}
section{
  background: url(bg.jpeg) no-repeat;
  background-position: center;
  background-size: cover;
  height: 100vh;
  transition: all .5s;
}
h6{
  text-align:center;
  color: white;
  position: absolute; top:115vh; right: 45%;
  font-family:'Times New Roman', Times, serif;
}


h3{
  position: absolute;
  top: 1350px;
  right: 560px;
  color: black;
  font-size: 15px;
  font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  
}
.bild img{
  transition: transform 0.3s ease-in-out;
}
.bild{
  display:inline-block;
  height: auto;
  overflow:visible;
  grid-area: bild;
}
.bild:hover img {
filter: brightness(85%);
}
.bild2 img{
  transition: transform 0.3s ease-in-out;
}
.bild2{
  display:inline-block;
  overflow:visible;
  grid-area: bild2;
  height: auto;
}
.bild2:hover  {
filter: brightness(85%);
}
.bild3 img{
transition: transform 0.3s ease-in-out;
}
.bild3{
display:inline-block;
overflow:visible;
grid-area: bild3;
}
.bild3:hover {
filter: brightness(85%);
}
.bild4 img{
transition: transform 0.3s ease-in-out;
}
.bild4{
display:inline-block;
overflow:visible;
grid-area: bild4;
}
.bild4:hover {
filter: brightness(85%);
}
.bild5 img{
transition: transform 0.3s ease-in-out;
}
.bild5{
display:inline-block;
overflow:visible;
grid-area: bild5;
}
.bild5:hover {
filter: brightness(85%);
transition-duration: 3s;
}
.bild6 img{
  transition: transform 0.3s ease-in-out;
}
.bild6{
  display:inline-block;
  height: auto;
  overflow:visible;
  grid-area: bild6;
}
.bild6:hover img {
filter: brightness(85%);
}
.bild7 img{
  transition: transform 0.3s ease-in-out;
}
.bild7{
  display:inline-block;
  height: auto;
  overflow:visible;
  grid-area: bild7;
}
.bild7:hover img {
filter: brightness(85%);
}
.bild8 img{
  transition: transform 0.3s ease-in-out;
}
.bild8{
  display:inline-block;
  height: auto;
  overflow:visible;
  grid-area: bild8;
}
.bild8:hover img {
filter: brightness(85%);
}

.huvud img{
  width: 70px;
  height: auto;
  z-index: 500;
  position: absolute;
  left: 550px;
  top: 10px;

}
.container{
display: grid;
grid-template-areas:
"bild bild2 bild3 bild4"
"bild5 bild6 bild7 bild8";
position: absolute;
top: 150px;
left: 95px;
gap: 35px;
}
.container img {
width: 240px;
height: auto;
}
.text{
  position: relative;
  bottom: 5px;
}
.text button{
grid-area: t1;
background-color:#4CAF50;
color: white;
text-align: center;
font-size: 20px;
width: 240px;
height: 40px;
}
.text button:hover{
filter: brightness(85%);
}
.huvud{
  width: 100%;
  max-width: 100%;
  margin: auto;
  text-align: center;
  padding-top: 10px;
  position: absolute;
  background-color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  }
svg{
  width: 50px;
}
.huvud header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}
.cart-count {
  position: absolute;
  top: -5px;
  right: 0px;
  background: red;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.cart {
  position: relative;
  cursor: pointer;
  right: 30px;
}
.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  background: white;
  border-left: 1px solid #ddd;
  z-index: 100;
  overflow-y: auto;
  box-shadow: -2px 0 5px rgba(0,0,0,0.1);
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.cart-sidebar.open {
  transform: translateX(0);
}
.cart-header {
  padding: 15px;
  background: #f5f5f5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ddd;
}
.cart-header h1{
  position: fixed;
  left: 40px;
  font-size: larger;
}
.cart-content {
  padding: 15px;
}
.cart-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}
.cart-total {
  font-weight: bold;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #ddd;
  position: fixed;
  bottom: 60px;
}
.close-cart {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}
.main-content {
  transition: margin-right 0.3s ease;
}
.main-content.cart-open {
  margin-right: 300px;
}
.delete-item {
  color: #ff0000;
  cursor: pointer;
  margin-left: 10px;
}
.checkoutBtn button{
 width: 100%;
padding: 10px; 
margin-top: 15px; 
background: #4CAF50; 
color: white; 
border: none; 
cursor: pointer;
border-radius: 20px;
position: fixed;
bottom: 10px;
}
.checkoutBtn button:hover{
  filter: brightness(85%);
}
.title{
  position: relative;
  left: 250px;
  bottom: 5px;
  font-weight: bold;
  font-size: 35px;
  font-family: sans-serif;
  font-weight: normal;
}
footer{
  position: absolute;
  left: 0px;
  bottom: -500px;
  width: 100%;
  max-width: 100%;
  padding-top: 20px;
  padding-bottom: 20px;
  background: #ffffff;
  color: black;
  text-align: center;
  height: 30px;
  font-size: large;
}
svg{
  position: relative;
  top: 4px;
  right: 10px;
}
/* Responsiv design */
@media screen and (max-width: 768px) {

  .huvud {
    padding: 0px;
    position: relative;
  }

  .huvud img {
    width: 60px;
    position: static;
  }

  .title {
    display: none;
  }

  .cart {
    position: absolute;
    right: 45px;
    top: 50px;
  }
  .container{
    align-items: center;
    grid-template-areas:
"bild"
"bild2" 
"bild3" 
"bild4"
"bild5" 
"bild6" 
"bild7" 
"bild8";
  }

  /* Menyknappar */
  label #btn {
    left: 15px;
    top: 15px;
    font-size: 25px;
  }

  label #cancel {
    left: -165px;
    top: 10px;
    font-size: 25px;
  }
  

  /* Kundvagn */
  .cart-sidebar {
    width: 90%;
  }

  /* Footer */
  footer {
    font-size: 14px;
    padding: 15px 0;
    position: absolute;
    top: 3500px;
  }
  .sidebar{
    position: fixed;
    top: 0px;
  }
}