/* ########################

CSS stylesheet specific to header.php 

########################## */


header {
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 100;
    background-color: white;
}

nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1%;
}

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

.left-menu-container {
    display: flex;
    flex: 1; /* Makes sure both sides have equal width */
    align-items: center;
    justify-content: flex-start; /* Aligns content of left side to start */
}

.right-shopping-menu {
    display: flex;
    flex: 1; /* Makes sure both sides have equal width */
    align-items: center;
    justify-content: flex-end; /* Aligns content of right side to end */
}

.logo {
    flex-grow: 0.2;
    text-align: center;
    margin: 0;
}

.logo img {
    max-width: 50%; 
    height: auto;
}

#hamburger-icon, #cart-icon {
    flex: 0 0 auto; /* auto width without growing or shrinking */
    padding: 0 10px; 
}

#close-icon {
  display: block;
  position: relative;
  cursor: pointer;
  position: absolute; 
  top: 6%; left: 4.2%;
}


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

.dropbtn {
    cursor: pointer;
    border: none;
    padding: 8px;
    margin: 0;
    background: none; 
    font-size: 1rem;
    font-weight: bold;
    color: black;
    outline: none;
}


.dropdown-content {
    padding: 20px;
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    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);
}

#hamburger-icon, #cart-icon {
    cursor: pointer;
    display: block;
}


.menu-container > * {
    margin-right: 10px; 
}


#hamburger-icon {
    margin-right: auto; /* Pushes everything else to the right */
    padding-left: 20px; 
}

#cart-icon {
    display: flex;
    flex-direction: row;
    padding-right: 20px; 
   /* margin-left: auto;  Pushes everything else to the left */
}

#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);
  font-weight: bold;
  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);
}


/*CART*/

.cart {
  position: fixed;
  right: 0;
  top: 0;
  width: 20rem;
  height: 100%;
  background-color: rgba(238,238,238, 1);
  padding: 2rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  z-index: 210;
  overflow-y: auto;
  text-align: left;
}

.cart.open {
  transform: translateX(0);
}

.cart h2 {
  margin-top: 0;
}

#close-cart {
  position: relative;
  top: 1rem;
  left: 19rem;
  z-index: 220;
  background: none;
  border: none;
  cursor: pointer;
}

#close-cart img {
  width: 1rem;
  height: 1rem;
}


/* Adjustments for Medium devices (tablets, 1024px and up) */
@media only screen and (max-width: 1024px) {
    
    .logo img {
       width: 30%; 
    }
    
}

/* Adjustments for Small devices (landscape phones, 768px and down) */
@media only screen and (max-width: 768px) {
    
    nav {
      padding: 0.5rem;
    }
    
    .menu {
      display: none;
      flex-direction: column;
    }
    
    #menu {
    width: 100%;
    }
    
    .logo img {
        width: 40%;
        height: auto;
    }
    
    #hamburger-icon img {
      width: 1.4rem;
    }
    
    #close-icon {
      top: 2.5%; 
      left: 3.5%;
      width: 1rem;
    }
    
    #cart-icon img{
      width: 1.6rem;
      padding-top: 0 0.5em 0 0.5em;
     }
     
    .cart {
      width: 50%;
    }
    
    #close-cart {
      position: relative;
      top: 0.6rem;
      right: 0;
    }
    
    #close-cart img {
      width: 1.2rem;
      height: 1.2rem;
    }

     
}


/* Adjustments for Extra small devices (portrait phones, 480px and down) */
@media only screen and (max-width: 480px) {

    .logo {
      width: 70%;

    }
    
    .logo img {
      width: 100%;
      padding-left: 15%;
    }
    
    .dropdown-content {
        right: 0;         
        width: 15rem;
    }
    
    
    #close-icon {
      top: 2.5%; 
      left: 3.5%;
      width: 1rem;
    }
    
    #cart-icon img{
      width: 1.5rem;
      padding: 0.5em 0;
     }
     
    #hamburger-icon, #cart-icon {
    padding: 0; 
    }

    #countryDropdown {
      display: none;
  }
    
    .cart {
      width: 80%;
    }
    
} 
    
    

