html {
  overflow-x: hidden;
}
.hidden {
  display: none;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Kumbh Sans", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-variation-settings: "YOPQ" 300;
  display: flex;
  flex-direction: column;
  align-content: center;
  min-height: 100vh;
}
button {
  cursor: pointer;
  transition: all 0.1s ease;
}
button:active{
  transform: scale(0.97);
}
header {
  box-sizing: border-box;
  max-width: 1000px;
  width: 100%;
  height: 70px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header div {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
header * {
  margin-left: 7px;
  margin-right: 7px;
}
header button {
  border: none;
  background-color: inherit;
}
header img {
  margin: 0;
  padding: 0;
}
#desktop-nav{
  margin: 0;
  padding: 0;
  display: none;
}
#desktop-nav ul{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  display: flex;
  margin-left: 20px;
  list-style: none;
  height: 100%;
}
#desktop-nav li {
  height: 100%;
  margin: 0;
  padding: 0;
}
#desktop-nav a:link, #desktop-nav a:visited {
  text-decoration: none;
  color: hsl(219, 9%, 45%);
  font-size: 16px;
  font-weight: 400;
  height: 100%;
  padding-bottom: 23px;
  border-bottom: 3px solid transparent;
}
#desktop-nav a:hover, #desktop-nav a:active {
  border-bottom: 3px solid hsl(26, 100%, 55%);
  color: hsl(220, 13%, 13%);
}
#avatar {
  width: 20px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  margin-right: 10px;
}
#avatar:hover{
    border: 2px solid hsl(26, 100%, 55%);
}
#menu-button {
  height: 30px;
  width: auto;
}


#card-btn-wrapper{
    position: relative;
    margin: 0;
    padding: 0;
    width: 20px;
    height: 20px;
}
#cart{
    display: flex;
    position: absolute;
    right: 40px;
    margin: 0;
    padding: 0;
}
#cart-icon {
    margin: 0;
    padding: 0;
}
#little-cart-num {
    font-size: 8px;
    font-weight: 700;
    color: white;
    padding: 0;
    margin: 0;
    padding-left: 5px;
    padding-right: 5px;
    background-color: hsl(26, 100%, 55%);
    position: absolute;
    right: 30px;
    bottom: 15px;
    border-radius: 5px;
}

#cart-card{
  position: absolute;
  z-index: 100;
  top: 60px;
  right: -20px;
  height: 85vw;
  width: 87vw;

    flex-direction: column;
    justify-content: flex-start;
    margin: 0;
    padding: 0;
    background-color: hsl(0, 0%, 100%);
    border-radius: 10px;
    box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.145);
}
#cart-card p {
    font-weight: 700;
    color: hsl(219, 9%, 45%);
}
#cart-card h2 {
    box-sizing: border-box;
    padding-left: 20px;
    padding-top: 10px;
    padding-bottom: 10px;
    width: 100%;
    border-bottom: 1px solid hsl(223, 64%, 98%) ;
    font-size: 16px;
}
#empty-cart{
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

#full-cart{
    width: 100%;
    padding-top: 15px;
    padding-right: 10px;
}
#full-cart div{
    align-items: center;
    justify-content: space-between;
}
#cart-prod-img {
    width: 40px;
    border-radius: 3px;
    box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.119);
}
#cart-info{
    margin: 0;
    padding: 0;
    padding-left: 10px;
    font-size: 10px;
}
#cart-info b {
    color: hsl(220, 13%, 13%);
}
#how-many{
  color: hsl(219, 9%, 45%);
  font-weight: 700;
}
#delete-img{
    padding: 0;
    margin: 0;
}
#checkout{
    width: 90%;
  box-sizing: border-box;
  padding: 15px;
  margin-top: 10px;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  font-weight: 700;
  color: hsl(220, 13%, 13%);
  border: none;
  background-color: hsl(26, 100%, 55%);
}
#checkout:hover{
  background-color: hsl(26, 80%, 71%);
}


#page-content{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#img-gallery {
    position: relative;
    margin: 0;
    padding: 0;
}
#thumbnails{
  width: 100%;
  margin: 0;
  padding: 0;
  display: none;
  justify-content: space-between;
  margin-top: 20px;
}
.thumbnails-wrapper{
  width: 20%;
  border-radius: 8px;
  padding: 0;
  margin: 0;
}
.thumbnails-imgs{
  box-sizing: border-box;
  border-radius: 8px;
  margin: 0;
  padding: 0;
  cursor: pointer;
  display: block;
  width: 100%;
}
.thumbnails-imgs.mouse{
  opacity: 0.4;
}
.thumbnails-wrapper.selected{
  border: 2px solid hsl(26, 100%, 55%);
}
#prod-img {
  width: 100%;
  margin: 0;
  padding: 0;
}
#previous,
#next {
  position: absolute;
  top: 45%;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 100%;
  box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.097);
  display: flex;
  align-items: center;
  justify-content: center;
}
#previus img,
#next img {
  padding: 0;
  margin: 0;
}
#previous {
  left: 2%;
}
#next {
  right: 2%;
}

#text {
  box-sizing: border-box;
  padding: 20px;
  margin: auto;
}
#description {
  font-size: 16px;
  color: hsl(219, 9%, 45%);
  font-weight: 400;
}
h1 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  color: hsl(219, 9%, 45%);
}
h2 {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  color: hsl(220, 13%, 13%);
}
#price {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#price div {
  display: flex;
  align-items: center;
}
#actual {
  font-size: 30px;
  color: hsl(220, 13%, 13%);
  padding-right: 20px;
  font-weight: 700;
}
#discount {
  background-color: hsl(220, 13%, 13%);
  color: hsl(0, 0%, 100%);
  font-size: 16px;
  font-weight: 700;
  padding: 2px;
  border-radius: 3px;
}
#old {
  font-size: 16px;
  font-weight: 700;
  text-decoration: line-through;
  color: hsl(219, 9%, 45%);
  left: 80%;
}
#item-num {
  display: flex;
  box-sizing: border-box;
  justify-content: space-between;
  align-items: center;
  background-color: hsl(223, 64%, 98%);
  color: hsl(220, 13%, 13%);
  font-weight: 700;
  padding: 15px;
  border-radius: 8px;
}
#num {
  padding: 0;
  margin: 0;
}
#minus,
#plus {
  border: none;
  background-color: inherit;
}
#add-cart{
  width: 100%;
  box-sizing: border-box;
  padding: 15px;
  margin-top: 10px;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  font-weight: 700;
  color: hsl(220, 13%, 13%);
  border: none;
  background-color: hsl(26, 100%, 55%);
  box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.141);
}
#add-cart:hover{
    background-color: hsl(26, 80%, 71%);
}
#black-cart-icon {
  margin-right: 5px;
}

#menu-panel {
  width: 70%;
  height: 100%;
  z-index: 1000;
  position: fixed;
  top: 0;
  left: 0;
  background-color: hsl(0, 0%, 100%);
  padding-top: 20px;
  transform: translateX(-100%);
  transition: transform 0.2s ease;
}
#menu-panel.open {
  transform: translateX(0);
}
#close-menu {
  border: none;
  background-color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
  padding: 10px;
}
#mobile-menu ul {
    box-sizing: border-box;
    width: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
  margin-left: 15px;
  margin-right: 10px;
  margin-top: 30px;
}
#mobile-menu li {
    padding: 10px;
  box-sizing: border-box;
  width: 90%;
  height: 100%;
}
#mobile-menu a {
  text-decoration: none;
  box-sizing: border-box;
  width: 100%;
  font-size: 16px;
  font-weight: 700;
  padding: 15px;
  color: hsl(220, 13%, 13%);
}
#mobile-menu li:hover{
    border-right: 4px solid hsl(26, 100%, 55%);
    background-color: hsl(223, 64%, 98%);
}
#overlay {
  z-index: 900;
  position: fixed;
  inset: 0;
  background-color: hsla(0, 0%, 0%, 0.751);
  display: none;
}
#overlay.visible {
  display: block;
}

@media only screen and (min-width: 700px){
  #img-gallery{
    box-sizing: border-box;
    width: 45%;
    height: auto;
  }
  #thumbnails {
    box-sizing: border-box;
    display: flex;
    width: 100%;
  }
  #prod-img{
    display: block;
    height: auto;
    border-radius: 10px;
    margin: 0;
  }
  #previous, #next {
    display: none;
  }
  #text{
    box-sizing: border-box;
    width: 45%;
  }
}

@media only screen and (min-width: 1000px) {
  header {
    border-bottom: 1px solid hsl(219, 9%, 45%);
    max-width: 900px;
  }
  #menu-button, #mobile-menu {
    display: none;
  }
  #desktop-nav {
    display: block;
  }
  
  #cart-card{
    position: absolute;
    top: 30px;
    left: -160px;
    z-index: 100;
    width: 250px;
    height: 200px;
  }

  
  #page-content{
    margin-top: 50px;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }
  #price{
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 20px;
  }
  #price *{
    margin: 0;
  }
  #add-cart-wrapper{
    display: flex;
    justify-content: space-between;
    margin: 0;
    padding: 0;
  }
  #item-num{
    box-sizing: border-box;
    width: 35%;
    height: 100%;
    margin: 0;
  }
  #add-cart{
    box-sizing: border-box;
    width: 60%;
    height: 100%;
    margin: 0;
  }
}