.navbar
body {
  overflow-x: hidden;
}

  .top-bar {
    background-color: #15887c;
    color: #f4f4f4;
    font-size: 12px;
    padding: 5px 6px;
    text-align: right;
  
    
}
.navbar {
  background-color: rgba(0, 0, 0, 0.904);
  color: white;
  padding: 0px 5px;
  align-items: center;
  position: sticky;
  top: 0; /* below top-bar initially */
  z-index: 100;
 
}

.navbar-container {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
 
}

.content {
    padding-top: 80px; /* prevent overlap with fixed navbar */
}
.navbar a {
    color: white;
    text-decoration: none;
}

.logo {
  flex-shrink: 0;
}

.logo-img {
  height: 80px; 
  width: auto;
}

.search-wrapper {

  display: flex;
  
  background-color: white;
  border: 2px solid #ca9c03;
  border-radius: 5px;
  width: 100%;
  transition: border 0.3s ease;
  overflow: visible;           
  position: relative;         
  z-index: 1100;   

   flex: 1 1 300px;   /* allow it to shrink/grow */
  min-width: 200px; /* prevent collapse */

  flex-wrap: nowrap;   /* ✅ prevent wrapping */
  align-items: center; /* ✅ vertically align center */
  height: 40px;
}
.search-bar,
.category-filter,
.search-button {
  height: 100%;        /* ✅ fill parent height */
  box-sizing: border-box;
  line-height: normal; /* ✅ prevent zoom stretch */
}

.search-container {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
}
.search-dropdown {
  position: absolute;
  top: calc(100% - 1px);       /* tuck under the input border for a seamless seam */
  left: -2px;                  /* match .search-wrapper’s 2px border */
  right: -2px;
  max-height: 360px;
  overflow-y: auto;
  background-color: #fff;
  border: 2px solid #a5a5a5ff;   /* match your brand border */
  border-top: none;            /* merge visually with the input */
  z-index: 2000;               /* above .dropdown-menu (1000) and navbar (100) */
  border-radius: 0 0 5px 5px;  /* rounded only at the bottom */
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
  display: none;
  color: black;
}

/* Toggle visibility via JS by adding .active */
.search-dropdown.active {
  display: block;
  
}

/* Items inside the dropdown */
.suggestion-item {
  display: flex;
  align-items: center;
  gap: 0px;
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
  background: #fff;
}

.suggestion-item:hover {
  background-color: #f8f9fa;
}

.suggestion-item img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 3px;
  flex-shrink: 0;
}

.no-suggestions {
  padding: 12px;
  color: #666;
  font-style: italic;
}

.highlight {
  background-color: #fff3cd;
  font-weight: 600;
  padding: 0 2px;
  border-radius: 2px;
}



.search-wrapper:focus-within {
  border: 2px solid rgb(255, 211, 0);

}
  






.search-button {
background-color: rgb(255, 179, 0);
  color: rgb(0, 0, 0);
  border: none;
  padding: 0.5rem 1rem;
  font-size: 1rem; 
  cursor: pointer;

  display: flex;              /* ✅ arrange children in a row */
  align-items: center;        /* ✅ vertical centering */
  justify-content: center;    /* ✅ center horizontally */
  gap: 6px;                   /* ✅ space between icon & text */
  height: 100%;               /* ✅ match search-wrapper height */
  line-height: 1;  

}

.search-button:hover {
  background-color: #db9600;
}

.category-filter {
  padding: 0.5rem;
  border: none;
  outline: none;
  background-color: #eee;
  font-size: 0.9rem;
  min-width: 0;
}

.search-bar {
 flex: 1;
  padding: 0.5rem 1rem;
  border: none;
  font-size: 1rem;
  outline: none;
  min-width: 0; 
}
/* Optional: Background dark overlay */
.darker-page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.3s ease;
}

.search-wrapper:focus-within ~ .darker-page {
  opacity: 1;
  pointer-events: auto;
}



.nav-right {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;

}

.nav-links {
  list-style: none;
  display: flex;
  gap: 15px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-links li a {
  text-decoration: none;

  color: white;
  font-weight: 500;
}


/* login and signup buttons */

.login-btn {
  background-color: transparent; /* Use 'transparent', not 'none' */
  color: white;
  padding: 6px 10px;
  text-decoration: none;
  border: 1px solid rgb(250, 250, 250); /* Add 'solid' */
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  font-family: 'Poppins', Arial, sans-serif;
}

.login-btn:hover {
  background-color: #e6e6e6;
  color: black;
}


.signup-btn {
  background-color: transparent; /* Use 'transparent', not 'none' */
  color: white;
  padding: 6px 10px;
  text-decoration: none;
  border: 1px solid rgb(250, 250, 250); /* Add 'solid' */
  border-radius: 5px;
   font-size: 14px;
  font-family: 'Poppins', Arial, sans-serif;
  cursor: pointer;
}

.signup-btn:hover {
  background-color: #e6e6e6;
  color: black;
}


.hireus-btn {
  background-color: #1cb72d;
  color: white;
  padding: 0.50rem 1.0rem;
  text-decoration: none;
  border: none;
  border-radius: 5px;
   font-size: 14px;
  font-family: 'Poppins', Arial, sans-serif;
  cursor: pointer;
}

.hireus-btn:hover {
  background-color: #17d82d;
  color: black; 
}
.cart-icon {
  color: rgb(255, 174, 0) !important;
  font-size: 1.2rem;
}

.cart-icon:hover {
  color: #db9600;
   transform: scale(1.1);
  transition: transform 0.2s ease;
}


.main-menu {
  display: flex;
  flex-wrap: nowrap;      /* keep in one row */
  overflow-x: auto;        /* allow horizontal scrolling or hiding */
  white-space: nowrap;
  list-style-type: none;
  margin: 0;
  padding: 0;
  background-color: #333;
  font-size: 13px;
  font-family: 'Poppins', Arial, sans-serif;
  line-height: 1;
  scrollbar-width: none;   /* hide scrollbar in Firefox */
}

.main-menu::-webkit-scrollbar {
  display: none;           /* hide scrollbar in Chrome/Safari */
}

.main-menu li {
  flex: 0 0 auto;          /* prevent shrinking */
}

.main-menu li a {
  display: block;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

.main-menu li a:hover:not(.active) {
  background-color: rgb(158, 156, 19);
}

.main-menu a.active {
  background-color: #04AA6D;
}






/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: -18%; /* Start hidden off-screen */
  width: 18%;
  height: 100%;
  background-color: #000;
  z-index: 9999;
  transition: left 0.5s ease; /* Smooth in and out */
  display: flex;
  flex-direction: column;
  color: white;
}

/* When overlay is open */
.overlay.open {
  left: 0;
}


/* Header inside overlay */
.overlay-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #36796D;
  padding: 15px 20px;
}

/* User info in header */
.user-info {
  display: flex;
  align-items: center;
  
}

.fa-user-alt {
  font-size: 20px;
  margin-right: 8px;
  color: white;
}

.greeting {
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.closebtn {
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
}

/* Menu Links */
.overlay-content {
  padding: 20px;
}

.overlay-content a {
  display: block;
  font-size: 16px;
  color: white;
  text-decoration: none;
  padding: 12px;
}

.overlay-content a:hover {
  background-color: #2e2e2e;
}

/* Menu Trigger */
.menu-trigger {
  font-size: 16px;
  cursor: pointer;
  color: rgb(245, 245, 245);
  padding: 10px;
  display: inline-flex;
  align-items: center;
 
}
.menu-icon {
  font-size: 25px;
  line-height: 1;
}

.menu-text {
  font-size: 16px;
  margin-left: 8px;
}


/* Overlay End */




.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -8px; /* adjust to gap size */
  left: 0;
  width: 100%;
  height: 20px; /* bridge height */
  background: transparent;
}



.nav-account {
  display: inline-block;
  position: relative;
  color: white;
  font-family: Arial, sans-serif;
  padding: 4px 1px 3px 7px;
  border: 1px solid #1a1a1a;
  cursor: pointer;
}

.nav-account:hover{
  border: 1px solid #d7d7d7;
  padding: 4px 1px 3px 7px;
  cursor: pointer;
  
}

.nav-label {
  display: block;
  font-size: 14px;
  color: #ccc;
}

.dropdown-toggle {
  display: block;
  font-size: 16px;
  cursor: pointer;
  color: white;
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 134%;
  left: -9px;
  background-color: white;
  min-width: 200px;
  padding: 10px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  z-index: 1000;
  
}

.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  color: #111;
  text-decoration: none;
  font-size: 14px;
}

.dropdown-menu a:hover {
  background-color: #f3f3f3;
}

.dropdown:hover .dropdown-menu {
  display: block;
}


.list-social a {
  float: right;
  padding: 0px 0px 0px 15px;
  color: white;
}

/* XXL devices (larger desktops, ≥ 1400px) */
@media (min-width: 1400px) {
 .navbar-container {
    flex-wrap: nowrap;
  }

  .search-wrapper {
    margin-top: 0;
    flex: 1 1 auto;
    
  }
}

/* Extra large devices (desktops ≥ 1200px and < 1400px) */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .navbar-container {
    flex-wrap: nowrap;
    
  }

  .search-wrapper {
    margin-top: 0;
    flex: 1 1 auto;
    
  }
}


/* Large devices (laptops ≥ 992px and < 1200px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .navbar-container {
    flex-wrap: nowrap;
  }

  .search-wrapper {
    margin-top: 0;
    flex: 1 1 auto;
    
  }
    .overlay {
  left: -30%; /* Start hidden off-screen */
  width: 30%;
    }
 
  
}


/* Medium devices (tablets ≥ 768px and < 992px) */
@media (min-width: 768px) and (max-width: 991px) {
  .navbar-container {
    flex-wrap: nowrap;
  }
.navbar{
  padding: 0px 35px;
padding-right: 18px;
}
  .search-wrapper {
    margin-top: 0;
    flex: 1 1 auto;
    
  }




   .signup-btn {
    display: none;
    }
  .overlay {
  left: -30%; /* Start hidden off-screen */
  width: 30%;
 
    }
  .navbar-container, .nav-links {
  gap: 5px; 
  
  }

  .cart-icon
  {
     margin-right: -20px;
     margin-left: 13px;
  }
  .nav-right{
    margin-left: 33px;
    gap: 0px;

  }

  .nav-account {
    margin-left: 25px;
  }
 
.search-wrapper{
  margin-right: -55px;
  margin-left: -10px;
}
  .category-filter{
    padding-right: 0px; 
  }
    .logo-img {
  height: 75px; 

  margin-left: -30px;
  margin-right: -10px;
    }
}



/* Small devices (phones ≥ 576px and < 768px) */
@media (min-width: 576px) and (max-width: 767.98px) {



  .search-wrapper {
    margin-top: 0;
    flex: 1 1 auto;
    z-index: 200;
    
  }

    .signup-btn {
      display: block !important;
    }
 
      .nav-right{
   gap:25px;
}

   .nav-links{

    gap: 34px;
}

 .search-wrapper {
    order: 3;
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;  
    border-radius: 0;
    top: 60px;  
   
  }
    .navbar-container {

    justify-content: none;
  gap: 15px;

    } 
      .navbar{
  padding: 0px 15px;

}
.menu-trigger{
  padding-left: 22px;
}
     .logo-img {
  height: 60px; 
  width: auto;
  margin-left: -8px;
    } 


       .overlay {

  left: -55%; /* Start hidden off-screen */
  width: 55%; 
}

.main-menu {
  margin-top: 34px;
  font-size: 12px;
  line-height: 0.5;
}
} 


  /* Mobile tweaks: keep dropdown full-width with your absolute search bar */
@media (max-width: 767.98px) {
  .search-dropdown {
    left: 0;                   /* align to viewport edges for absolute search bar */
    right: 0;
    border-left-width: 0;      /* avoid double border when full-width */
    border-right-width: 0;
    border-radius: 0 0 5px 5px;
  }
}


/* Extra small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  .navbar-container {
    flex-wrap: nowrap;
  }
.cart-icon {
  padding-left: 4px;
}
  .search-wrapper {
    margin-top: 0;
    flex: 1 1 auto;
    z-index: 200;
  }

      .top-bar{
      font-family: "Lato", sans-serif;
      line-height: 20px;
      font-size: 11px;
    }

    .login-btn, .signup-btn, .main-menu {
      display: none;
    }
 
  .search-wrapper {
    order: 3;
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;  
    border-radius: 0;
    top: 60px;  
   max-width: 100%;
  }
 .search-button{
  padding: 0.5rem 5px;
 }
 
  .navbar-container {

  gap: 0px;   

  }
  .logo {
    order: 1;
  }
  .menu-trigger {
    order: 2;
    margin-left: -7px;

  }
   .dropdown{
    order: 3;
  }
   .nav-right {
    order: 4;
      gap: 7px; 
    
  }
    .logo-img {
  height: 60px; 
  width: auto;
  margin-left: -5px;
    }

    .hireus-btn {
  margin-left: -31px;
   padding: 0.4rem 0.5rem;
  font-size: 11px;
    }

    .menu-icon {
  font-size: 21px;
}

.menu-text {
  margin-left: 5px;
  font-size: 15px;
  margin-right: -6px;
}
.dropdown-toggle {

  font-size: 15px;
}

.nav-label {
font-size: 13px;
}
.navbar{

    padding: 0rem 0.5rem;
   
    }
  .category-filter{
    padding-right: 0px; 
    padding-left: 2px;
  }
    .overlay {

  left: -55%; /* Start hidden off-screen */
  width: 55%; 
}
}



/* Max zoom in hidden off-screen */
@media (max-width: 380px) {
      .overlay {

  left: -80%; /* Start hidden off-screen */
  width: 80%; 
}

}






