#main {
  width: 100%;
  max-width: 736px;
  height: 100dvh;
  /* padding-top: 65px; */ /* 5px for extra space, it is 60px as upper-section height */
  padding-bottom: 50px;
  overflow-y: auto; /* scroll inside main only if needed */
  background-color: var(--primary);
  margin: 0px auto;
  position: relative;
  /* display: flex; */
  /* flex-direction: column; */
}

#upper-section {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 95%;
  /* max-width: 736px; */
  height: 8vw;
  min-height: 50px;
  max-height: 60px;
  margin: 0px auto 5px;
  background-color: var(--accentOrange);
  position: sticky;
  inset: 0;
  z-index: 1000;
  border-radius: 0px 0px 20px 20px;
}

.back-btn,
.home {
  background-color: var(--accentOrangeDark);
  border: none;
  color: var(--light2);
  font-size: 16px;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  /* gap: 6px; */
  cursor: pointer;
  /* margin-bottom: 1rem; */
  border-radius: 50%;
  /* padding: 10px; */
  width: 30px;
  height: 30px;
  position: absolute;
  top: 12px;
  right: 10px;
}

a#cart {
  position: absolute;
  left: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}

#cart-items-counter {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 25px;
  height: 20px;
  line-height: 20px;
  /* background-color: #00cf17; */
  color: var(--errorColor);
  text-align: center;
  /* font-size: 18px; */
  font-weight: bold;
}

#upper-section i.fa-cart-shopping {
  position: absolute;
  top: 23px;
  left: 3px;
  font-size: 20px;
  color: var(--light2);
  margin-bottom: 8px;
}

#logo {
  /* margin: 60px auto 20px; */
  width: 43px;
  display: block;
}

@keyframes cart-bounce {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1);
  }
}

#cart-items-counter.animate {
  animation: cart-bounce 0.4s ease;
}

@keyframes cart-bounce {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1);
  }
}

#cart.animate {
  animation: cart-bounce 0.4s ease;
}

/* sign / signup */
#auth-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.auth-modal-content {
  position: relative;
  width: 280px;
  background: var(--light1);
  color: var(--accentGreen);
  border-radius: 8px;
  text-align: center;
  padding: 25px 10px 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  direction: rtl;
}

.close-btn {
  position: absolute;
  top: 0px;
  left: 8px;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--errorColor);
  cursor: pointer;
  /* height: 50px; */
}

.auth-text {
  font-size: 12px;
  margin: 12px auto 17px;
}

.auth-buttons {
  display: flex;
  justify-content: space-evenly;
}

.auth-btn {
  width: 75px;
  padding: 4px 0;
  border-radius: 6px;
  /* font-weight: 600; */
  text-decoration: none;
  text-align: center;
  color: #fff;
  font-size: 13px;
}

.signup-btn {
  background-color: var(--successColor);
}

.login-btn {
  background-color: var(--primaryDark);
}

#signup-login {
  width: 243px;
  margin: 100px auto;
}

#signup-login p {
  text-align: center;
}
