.logo {
  height: 8vw; /* scales with screen width */
  min-height: 40px;
  max-height: 70px;
}

#header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #dadeec;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  z-index: 99;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  font-weight: 500;
  font-size: 95%;
  padding: 10px 50px;
  box-sizing: border-box;
}

/* Add padding to body to prevent content hiding under header */
body {
  padding-top: 80px;
}

#navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  cursor: pointer;
}

#navbar li {
  list-style: none;
  padding: 0 10px;
  position: relative;
  color: #212121;
}

#navbar li a,
#mobile i {
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  color: #212121;
  transition: color 0.2s ease;
  text-shadow: 1px 1px 1px #E6C87C;
}

#navbar li a {
  position: relative;
}

#header #navbar li a.activeHeader::after {
  content: '';
  height: 2px;
  width: 55%;
  background-color: #b1885d;
  position: absolute;
  bottom: -4px;
  left: 1px;
}

/* ===== CART COUNTER - DESKTOP ===== */
#lg-bag {
  position: relative;
}

#lg-bag a {
  position: relative;
  display: inline-block;
  z-index: 2;
}

#lg-bag a i {
  position: relative;
  z-index: 2;
}

#lg-bag .cart-counter {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: #b1885d;
  color: white;
  font-size: 11px;
  font-weight: bold;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, sans-serif;
  z-index: 5;
}

/* ===== CART COUNTER - MOBILE ===== */
#mobile-cart-icon {
  position: relative;
  display: inline-block;
  text-decoration: none;
  color: #1a1a1a;
}

#mobile-cart-icon i {
  font-size: 24px;
  position: relative;
}

#mobile-cart-icon .cart-counter {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: #b1885d;
  color: white;
  font-size: 11px;
  font-weight: bold;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, sans-serif;
  z-index: 5;
}

/* ===== MOBILE NAV ===== */
#mobile {
  display: none;
  align-items: center;
}

#close {
  display: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 799px) {
  #navbar {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    top: 0;
    right: -300px;
    height: 100vh;
    width: 250px;
    background-color: #E3E6F3;
    box-shadow: 0 40px 60px rgba(0, 0, 0, 0.2);
    position: fixed;
    padding: 80px 0 0 10px;
    transition: 0.3s;
    z-index: 1000;
  }

  #mobile-cart-icon .cart-counter {
    bottom: 13px;
    right: 13px;
  }

  #header {
    padding: 10px 20px;
  }

  #navbar.active {
    right: 0px;
  }

  #navbar li {
    margin-bottom: 25px;
  }

  #mobile {
    display: flex;
    align-items: center;
  }

  #mobile i {
    color: #1a1a1a;
    font-size: 24px;
    padding-left: 20px;
  }

  #close {
    display: initial;
    position: absolute;
    top: 30px;
    left: 30px;
    color: #222;
    font-size: 16px;
    cursor: pointer;
    z-index: 1001;
  }

  /* Hide mobile cart icon when navbar is active */
  #navbar.active ~ #mobile #mobile-cart-icon {
    display: none;
  }

  /* #navbar #mobile-cart-icon {
    display: block;
  } */

  #hero {
    height: 70vh;
    padding: 0 80px;
    background-position: top 30% right 30%;
  }
}

@media (max-width: 555px) {
  #mobile i {
    font-size: 17px;
  }

  #mobile-cart-icon .cart-counter {
    bottom: 10px;
    right: 10px;
  }
}