* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: sans-serif;
  font-size: 62.5%;
}

/* ------------------------Start Navbar----------------------- */
.navbar {
  position: fixed;
  display: flex;
  top: 0;
  width: 100%;
  height: 3rem;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  text-align: center;
  font-size: 1.6rem;
  padding: 0.5rem;
  z-index: 1;
  background-image: linear-gradient(to top, #accbee 0%, #e7f0fd 100%);
}
.cart-btn {
  position: relative;
  cursor: pointer;
}
.cart-items {
  position: absolute;
  top: -0.5rem;
  right: -0.7rem;
  width: 0.9rem;
  height: 0.9rem;
  font-size: 0.6rem;
  text-align: center;
  color: white;
  border: 0.1rem solid red;
  border-radius: 50%;
  background-color: red;
}
/* ------------------------End Navbar----------------------- */

/* ------------------------Start Banner----------------------- */
.banner {
  height: calc(100vh - 3rem);
  background: url("./images/brown-wooden-desk-with-rolling-chair-and-shelves-near-window-667838.jpg");
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
}
.banner-center {
  border: 2px solid white;
  font-size: 2.5rem;
  color: black;
  background: rgba(255, 255, 255, 0.8);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 0.5rem;
}
.banner-btn {
  padding: 0.6rem;
  background: #f7b157;
  color: white;
  border-radius: 0.3rem;
  border: 0.13rem solid #f7b157;
  font-size: 1.2rem;
  transition: 0.3s all linear;
}
.banner-btn:hover {
  background: transparent;
  color: white;
}
/* ------------------------End Banner----------------------- */

/* ------------------------Start Product----------------------- */
.products {
  padding: 0 0.6rem;
}
.product-title {
  text-align: center;
  font-size: 1.6rem;
  margin: 0.6rem;
  text-transform: capitalize;
}
.product-center {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  grid-column-gap: 1rem;
  grid-row-gap: 1rem;
}
.product-img {
  width: 100%;
  max-height: 11rem;
}
.img-container:hover .add-to-cart {
  transform: translateX(0);
}
.img-container:hover img {
  opacity: 0.5;
}
.product {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.img-container {
  position: relative;
  overflow: hidden;
}

.add-to-cart {
  position: absolute;
  top: 70%;
  right: 0;
  margin-top: 0 auto;
  background: #f7b157;
  border: none;
  border-radius: 0.3rem 0 0 0.3rem;
  padding: 0.3rem;
  cursor: pointer;
  transform: translateX(100%);
  transition: all 0.3s ease-in-out;
}
.add-to-cart:hover {
  color: white;
}
.fa-cart-plus {
  padding: 0 0.2rem;
}
.products h3 {
  font-size: 0.8rem;
  text-transform: capitalize;
}
.products h4 {
  font-size: 0.6rem;
  color: darkgoldenrod;
}
/* ------------------------End Product----------------------- */
/* ------------------------Start Cart----------------------- */

.cart-overlay {
  position: fixed;
  background: rgba(126, 180, 202, 0.8);
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  transition: all 0.3s ease-in-out;
  visibility: hidden;
}
.showCartOverlay {
  visibility: visible;
}

.cart {
  position: fixed;
  z-index: 3;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: rgb(92, 143, 211);
  transition: all 0.3s ease-in-out;
  transform: translateX(100%);
  overflow-y: scroll;
}
.transcart {
  transform: translateX(0);
}
.close-cart {
  font-size: 1.8rem;
  display: block;
  margin: 1rem 1rem 0 1rem;
}
.your-cart {
  font-size: 1rem;
  text-align: center;
}
.your-cart-items {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-column-gap: 0.5rem;
  grid-row-gap: 0.5rem;
  padding: 1rem;
}
.your-cart-items img {
  height: 4rem;
  width: 4rem;
  border: 0.1rem solid white;
}
.remove-cart {
  font-size: 1rem;
  color: darkolivegreen;
  cursor: pointer;
}
.close-cart {
  cursor: pointer;
}
.info-items {
  padding-left: 1rem;
}
.cart-mount {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 1rem;
}
.fa-chevron-up,
.fa-chevron-down {
  color: var(--primaryColor);
  cursor: pointer;
}
.mount {
  color: brown;
}
.cart-footer {
  padding: 1rem;
  font-size: 1.3rem;
  text-align: center;
}
.cart-footer button {
  margin: 1rem;
}
.cart-total {
  color: f7b157;
}
@media screen and (min-width: 768px) {
  .cart {
    width: 30vw;
    min-width: 450px;
  }
}
/* ------------------------End Cart----------------------- */
