#main {
  width: 100%;
  max-width: 400px;
  height: 100dvh;
  padding-bottom: 50px;
  overflow-y: auto; /* scroll inside main only if needed */
  background-color: green;
  margin: 0px auto;
}

#upper-section {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 95%;
  height: 60px;
  margin: 0px auto 3px;
  background-color: var(--accentYellow);
  position: relative;
  border-radius: 0px 0px 20px 20px;
}

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

#cart-items-counter {
  /* position: absolute; */
  top: 1px;
  left: 12px;
  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: 20px;
  left: 10px;
  font-size: 24px;
  color: var(--successColor);
  margin-bottom: 8px;
}

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

#user {
  position: absolute;
  right: 5px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 10px;
  height: 56px;
  /* background-color: red; */
}

#user span {
  /* background-color: green; */
  height: 18px;
  line-height: 18px;
  font-weight: bold;
}

#user span#name {
  font-weight: normal;
}

@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;
}

.back-btn,
.home {
  background-color: var(--light3);
  border: none;
  color: var(--primary);
  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: 10px;
  right: 10px;
}

/* 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;
}
