* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /*border: 2px solid red;  */
}

body, html {
    overflow-x: hidden;  /* stop horizontal scrolling */
    overflow-y: auto;    /* vertical scrolling only within content */
    overscroll-behavior: none; /* ios Safari stop scrolling above and below header and footer*/
    height: 100%;
    margin: 0;
    padding: 0;   
    font-family: var(--font-family);
    letter-spacing: var(--one-letter-spacing);
}

/* Sticky navigation bar */
header {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: #ffffff !important; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-large);
    z-index: 999999;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-menu-container, .nav-shopping-menu {
    position: absolute;
    right: 2rem; 
    display: flex;
    align-items: center;
    justify-content: flex-end; 
    width: auto;
}

.logo img {
    height: 4rem;
}

/* Navigation menu - about / resources / contact */
.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-menu ul li a {
    color:var(--secondary-colour);
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease;
}

.nav-menu ul li a:hover {
    color: var(--primary-colour);
}

.hamburger-icon {
    display: none;
}

/*Cart header*/
.nav-shopping-menu {
    visibility: hidden;
    color: var(--secondary-colour);
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    cursor: pointer;
    border: none;
    padding: 8px;
    margin: 0;
    background: none; 
    font-size: 1rem; /* sets font size of country / currency */
    font-weight: bold;
    color: var(--secondary-colour);
    outline: none;
}

.dropdown-content {
    padding: 20px;
    display: none;
    position: absolute;
    background-color: var(--white);
    color: var(--primary-colour);
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    white-space: nowrap;  /* Keeps content on a single line*/
}


.dropdown-content a {
    padding-top: 5px;
    color: black;
    text-decoration: none;
    display: block;
    font-size: 1rem;
    font-weight: bold; 
    color: rgb(0, 226, 174);
}

#cart-icon {
    cursor: pointer;
    display: flex;
    flex-direction: row;
    padding: 0 0.5rem;
    /*flex: 0 0 auto; /* auto width without growing or shrinking */
    height: 1.5rem;
    width: auto;

   /* margin-left: auto;  Pushes everything else to the left */
}

#cart-icon img {
    height: 1.5rem;
    width: 1.5rem;
}

#user-icon {
    cursor: pointer;
    display: flex;
    flex-direction: row;
    padding: 0 0.5rem 0 1rem;
    height: 1.5rem;
    width: auto;
}

#user-icon img {
    height: 1.5rem;
    width: 1.2rem;
}

#country-content, #currency-content {
    right: 0; 
}


#menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background-color: rgba(240, 240, 240, 0.98);
  padding: 1rem;
  box-sizing: border-box;
  overflow: auto;
  transition: all 0.3s ease;
  transform: translateX(-100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 101;
}

#menu.show {
  transform: translateX(0);
}

.menu-items a {
  display: block;
  margin-bottom: 1rem;
  text-decoration: none;
  color: black;
  font-size: 2rem;
  text-align: center;
}

.menu-items a:hover {
  color: RGB(27,168,109);
}

.overlay-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-colour);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
}

.overlay-menu.show {
    transform: translateY(0);
}

.overlay-nav ul {
    list-style: none;
    text-align: center;
}

.overlay-nav ul li {
    margin: 1.5rem 0;
}

.overlay-nav ul li a {
    color: var(--secondary-colour);
    text-decoration: none;
    font-size: 2rem;
}

.close-icon {
    position: absolute;
    top: 5.5rem;
    right: 2.1rem;
    cursor: pointer;
    width: 1.6rem;
}

 
@media (max-width: 1280px) {


}

@media (max-width: 768px) {
    .header {
        align-items: center;
        padding: var(--spacing-medium);
    }

    .logo img {
        max-height: 3rem;
    }

    .nav-menu {
        display: none;
    }

    .hamburger-icon {
        display: block;
            cursor: pointer;
    }

    .hamburger-icon img {
        max-width: 2rem;
    }

    .header-shop-now-button {
        display: none;
    }

}

@media only screen and (max-width: 480px) {

    header {
        padding: 1rem;
    }

    .dropbtn {
        font-size: 0.9rem; /* sets font size of country / currency */
    }

    .nav-shopping-menu {
        right: 0; 
    }

    #cart-icon {
        padding: 0 0.5rem;
        height: 1rem;
    }

    #user-icon {
        padding: 0 0.25rem 0 1rem;
        height: 1rem;
    }


}
