
/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body setup */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: #fff;
  margin: 0;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image: url('https://plus.unsplash.com/premium_photo-1675798983878-604c09f6d154?q=80&w=387&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
  background-size: cover;
  background-position: center;
  filter: blur(5px);
  z-index: -1;
}

/* Navbar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #3bff29;
  padding: 8px 20px; /* smaller height */
  position: relative;
  height: 130px;
}

/* Left: Logo */
.nav-left .navlogo {
  height: 100px;
  width: 100px;
  border-radius: 50%;
  object-fit: cover;
 box-shadow: 0 4px 12px rgb(0, 0, 0);
  
}
.nav-left {
     height: -100px;  /* Bigger logo */
    width: auto;   /* Keep aspect ratio */
    margin-right: 20px;
}

/* Center: Title */
.nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-center h1 {
  font-size: 2.4rem;
  color: white;
  text-shadow: 1px 1px 4px rgb(255, 255, 255);
}
.nav-center p {
    font-size: 1rem;
    color: black;
    text-shadow: 1px 1px 4px rgb(255, 255, 255);
    padding-left: 30px;
}
/* Right: Menu */

/* Right: Menu */
.nav-right ul {
  display: flex;
  list-style: none;
  gap: 20px;
}

.nav-right ul li a {
  text-decoration: none;
  color: black;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.3s ease;
  transform: translateY(-4px) scale(1.05); 
}

.nav-right ul li a:hover {
  background: white;
  color: #04d631;
  
  transform: translateY(-4px) scale(1.05); 
  box-shadow: 0 10px 20px rgb(255, 255, 255);
  
}

/* user icon */

.profile-menu {
  position: relative;
}

.profile-icon {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  background-color: white;
  object-fit: cover;
  transform: translateY(-4px) scale(1.05); 
   box-shadow: 0 2px 16px rgba(0,0,0,0.2);
  border: black;

}
.profile-icon:hover {
   transform: translateY(-4px) scale(1.05); 
    box-shadow: 0 10px 20px rgb(255, 255, 255);

}

.dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 40px;
  background: white;
  list-style: none;
  padding: 8px 0;
  margin: 0;
  box-shadow: 0px 4px 8px rgba(0,0,0,0.2);
  border-radius: 6px;
  width: 160px;
}

.dropdown li {
  padding: 10px;
}

.dropdown li a {
  text-decoration: none;
  color: #333;
  display: block;
}

.dropdown li:hover {
  background: #f5f5f5;
}

.profile-menu.show .dropdown {
  display: block;
}


/* Main content area fills space */
main {
    flex: 1;
    padding: 20px;
}

/* Footer at bottom */
footer {
    background: #011b03;
    color: #fff;
    text-align: center;
    min-height: 120px;
     padding: 30px 50px;

}


.products {
     display: grid;
      grid-template-columns: repeat(4, 1fr); 
      gap: 20px;
     padding: 20px; 
    }
 .products article { 
    background: #ffffff; 
    color:black;
    border-radius: 8px;
     overflow: hidden; 
     box-shadow: 0 2px 6px rgba(0,0,0,0.1);
      text-align: center;
      padding: 15px; transition:
       transform 0.3s ease, box-shadow 0.3s ease; 
    } 
.products article:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
 } 
.products img 
{ max-width: 100%; 
    height: auto;
     border-radius: 5px;
    } 
.products h3 {
     margin-top: 10px;
      font-size: 1.1rem; 
      color: #04d631; 
}
.nav-right ul li a:hover {
  background: #ffffff;
    transform: translateY(-4px) scale(1.05); 
    box-shadow: 0 10px 20px rgb(255, 255, 255);
}

.search-container {
  text-align: center;
  margin: 20px 0;
}

.search-container input {
  width: 40%;
  padding: 10px;
  border-radius: 25px;
  border: 1px solid #ccc;
  font-size: 16px;
  transition: 0.3s;
}

.search-container input:focus {
  outline: none;
  border-color: #27ae60;
  box-shadow: 0 0 8px rgba(39,174,96,0.5);
}

.products button {
   background-color: #28a745;   /* Green background */
    color: white;                /* White text */
    border: none;                /* Remove border */
    padding: 10px 20px;          /* Add spacing */
    border-radius: 20px;         /* Rounded corners */
    font-size: 14px;             /* Font size */
    font-weight: bold;
    cursor: pointer;             /* Pointer on hover */
    margin-top: 10px;            /* Space from text above */
    display: block;              /* Center align */
    margin-left: auto;
    margin-right: auto;
    transition: 0.3s ease;  
}
.products button:hover {
    background-color: #218838;   /* Darker green on hover */
    transform: scale(1.05);      /* Slight zoom on hover */
}
.view-bill {

    text-align: right;
  margin: 20px 0;
}
.view-bill button {
  background-color: #28a745;   /* Green background */
    color: white;                /* White text */
    border: none;                /* Remove border */
    padding: 10px 20px;          /* Add spacing */
    border-radius: 20px;         /* Rounded corners */
    font-size: 14px;             /* Font size */
    font-weight: bold;
    cursor: pointer;             /* Pointer on hover */
    margin-top: 10px;            /* Space from text above */
    display: block;              /* Center align */
    text-align: left;
    transition: 0.3s ease;
}
.view-bill button:hover {
  outline: none;
  border-color: #27ae60;
  box-shadow: 0 0 8px rgba(39,174,96,0.5);
  transform: scale(1.05);
}

.popup {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}

.popup-content {
  background: white;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 600px;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 15px;
}

th, td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: center;
}

td input {
  width: 60px;
  text-align: center;
}

h3 {
  margin-top: 0;
}



/* Popup styles */
.popup {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

/* Popup content */
.popup-content {
    position: relative;
    width: 300px;
    margin: 100px auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    text-align: center;
}

/* Close button (X) */
.close-btn {
    position: absolute;
    
    top: 10px;
    right: 15px;
    font-size: 22px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
}

.close-btn:hover {
    color: red;
}



    /* --- Hamburger (hidden on desktop) --- */
.hamburger{
  display:none;
  flex-direction:column;
  gap:4px;
  cursor:pointer;
  padding:8px;
  border-radius:8px;
  -webkit-tap-highlight-color: transparent;
}
.hamburger .bar{
  width:26px;
  height:3px;
  background:#111;           /* keeps your dark nav link color vibe */
  border-radius:2px;
  transition:transform .25s ease, opacity .25s ease;
}

/* Desktop keeps your current layout */
.nav-right ul{ display:flex; gap:20px; }
.mobile-nav{
  display: none;
}
.profileiconmenu {
  display: none;
}
.searchnotFOUND {
   display: none;
  text-align: center;
  margin-top: 20px;
  font-size: 18px;
  font-weight: bold;
  color: #ff4d4d;
  background: #ffe6e6;
  border: 1px solid #ff9999;
  padding: 10px 20px;
  border-radius: 8px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;

  /* animation */
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.5s ease, transform 0.5s ease;

}
.searchnotFOUND.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}
/* Bill Popup Styling */
#billContainer h2 {
    text-align: center;
    color: #2c3e50;
}

.bill-container {
   max-height: 80vh;   /* keep within screen height */
  overflow-y: auto;   /* enable scroll if needed */
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    max-width: 350px;
    margin: auto;
}

.bill-container ul {
    list-style: none;
    padding: 0;
}

.bill-container li {
    background: #ecf0f1;
    margin: 8px 0;
    padding: 10px;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
}

.veg-name { font-weight: bold; color: #34495e; }
.kg-value { color: #27ae60; }
.veg-amt { color: #c0392b; }

.total {
    margin-top: 15px;
    font-size: 18px;
    font-weight: bold;
    text-align: right;
    color: #2c3e50;
}

.buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.buttons button {
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    color: white;
}

.edit-btn { background: #f39c12; }
.clear-btn { background: #e74c3c; }
.order-btn { background: #39ff49; }

.qty-control {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 5px 0;
}

.qty-btn {
  color: white;
  border: none;
  padding: 5px 12px;
  font-size: 18px;
  cursor: pointer;
  border-radius: 5px;
  transition: 0.2s ease;
}

/* Decrement button (red) */
.qty-btn.decrease {
  background: #ce1500;
}

.qty-btn.decrease:hover {
  background: #ff341e;
}

/* Increment button (green) */
.qty-btn.increase {
  background: #2bf519;
}

.qty-btn.increase:hover {
  background: #2ef014;
}

.qty-control input {
  width: 60px;
  text-align: center;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
}

#billPopup {
   position: fixed;
    top: 0; 
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);  /* dim background */
    display: none;
    justify-content: center;
    align-items: flex-start; /* aligns content to top */
    overflow-y: auto; /* allow scroll if content is tall */
    padding-top: 30px; /* small gap from very top */
    z-index: 9999;
}
/* --- Mobile menu --- */
@media (max-width: 768px){
  .navbar{ height:auto; padding:10px 16px; position:relative; }
  .nav-left .navlogo{ height:64px; width:64px; }

  .nav-center h1{ font-size:1.4rem; text-align:center; }
  .nav-center p{ font-size:.9rem; padding-left:0; text-align:center; }

  /* Show hamburger */
  .hamburger{ display:flex; margin-left:auto; transform: translateY(-4px) scale(1.05);  }

  /* Hide menu by default on mobile */
  .nav-right{
    display:none;                 /* hidden until active */
    position:absolute;
    top:100%; left:0; right:0;
    background:#26ff26;   
    
    color: rgb(58, 253, 58);        /* same navbar green */
    z-index: 2000;                /* on top of everything */
    box-shadow: 0 6px 16px rgba(0,0,0,.15);
  }
 
  .profileiconmenu {
    display: none;
    position: absolute;
    top:100%; left:0; right:0;
    background:#26ff26;   
    
    color: rgb(58, 253, 58);        /* same navbar green */
    z-index: 2000;                /* on top of everything */
    box-shadow: 0 6px 16px rgba(0,0,0,.15);  
  }
  .profileiconmenu.active{ display:block; }

  .profileiconmenu ul{
   
    flex-direction:column;
    align-items:center;
    gap:0;
    padding:8px 0;
    margin:0;
  }
  .profileiconmenu ul li{ width:100%; }
  .profileiconmenu ul li a{
    display:block;
    width:100%;
    padding:12px 20px;
    text-align:center;
    transform:none;               /* remove your desktop lift on mobile */
  }
  /* Nice X animation for burger */
  .hamburger.active .bar:nth-child(1){ transform: translateY(7px) rotate(45deg); }
  .hamburger.active .bar:nth-child(2){ opacity:0; }
  .hamburger.active .bar:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

.profileiconmenu ul li a {
  text-decoration: none;
  color: black;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.3s ease;
  transform: translateY(-4px) scale(1.05); 
}

.profileiconmenu ul li a:hover {
  background: white;
  color: #04d631;
  
  transform: translateY(-4px) scale(1.05); 
  box-shadow: 0 10px 20px rgb(255, 255, 255);
  
}
  
  .products {
    grid-template-columns: repeat(1,1fr); 
    width: 100%;
    
  }
  .products .p
  .search-container {
    transform: translateX();
    width: 500px;
  }
  .footer {
    height: 2000px;
  }
  .search-container input {
    width: 80%;       /* increase width */
  max-width: 500px; /* optional limit for larger screens */
  padding: 12px 16px; /* bigger padding inside */
  font-size: 18px;    /* larger text */
  border-radius: 25px; /* rounded edges */
  border: 1px solid #ccc;
  display: block;
  margin: 10px auto; 
  }
   .mobile-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-top: 1px solid #ddd;
    padding: 8px 0;
    z-index: 1000;
  }

  .mobile-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #444;
    font-size: 12px;
    text-decoration: none;
  }

  .mobile-nav .nav-item i {
    font-size: 20px;
    margin-bottom: 3px;
  }

  .mobile-nav .nav-item.active {
    color: green; /* Highlight active tab */
  }
  
  .mobile-nav .nav-item:hover {
    color:#04d631;
    
  }
  
.mobile-nav .nav-item.active {
  color: #4CAF50;  /* green for text */
}

.mobile-nav .nav-item.active i {
  color: #3dff43;  /* green for icon */
}
.mobile-nav .nav-item:hover {
    color: #04d631;
}

/* Login Popup */
#loginPopup {
  position: fixed;  /* stays on top of the page */
  top: 50%;
  left: 50%;
  
  transform: translate(-50%, -50%);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  z-index: 2000; /* must be higher than navbar */
  display: none;  /* hidden by default */
}
#billPopup {
   position: fixed;
    top: 0; 
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);  /* dim background */
    display: none;
    justify-content: center;
    align-items: flex-start; /* aligns content to top */
    overflow-y: auto; /* allow scroll if content is tall */
    padding-top: 30px; /* small gap from very top */
    z-index: 9999;
}
}
