* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
 

  body, ul, li {
    margin: 0;
    padding: 0;
    list-style: none;
  }
  a {
    text-decoration: none;
  }
  /* Top Navbar */
  .top-navbar {
    display: flex;
    justify-content: space-between;
    background-color: rgb(67 0 86);
    /* background-color: #333; */
    color: white;
    padding: 10px 20px;
  }
  
  .top-navbar a {
    color: white;
    margin-left: 10px;
    text-decoration: none;
  }
  .contact-info{
   margin-left: 10px; 
   padding-top: 2px;
  }
  .contact-info span {
    margin-right: 10px;
  }
  .social-icons{
    margin-right: 40px;
    font-size: 20px;
  }
  
  @media (max-width: 768px) {
    .contact-info{
      margin-left:10px; 
      display: inline-flex;
      flex-direction: column;
      font-size: 1rem;
      color: white;
    }
    .social-icons{
      /* margin-top: 100px; */
      margin-right:50px;
      font-size: 25px;
    }
  }
  

header {
    background-color:#f4f3ee;
    color: black;
    padding:15px;
  }
  
  .navbar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: relative;
  }
  
/* Hamburger Button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

.menu-toggle i {
  color: black;
}

  .navbar .logo a {
    color: black;
    font-size: 1.5rem;
    text-decoration: none;
    font-weight: bold;
  }
  
  .nav-links {
    display: flex;
    list-style-type: none;
    font-size: 1.2rem;
    /* margin-top: 1rem; */
  }
  
  .nav-links li {
    margin: 0 20px;
    position: relative; /* Needed for the dropdown */
  }
  
  .nav-links a {
    font-size: 1.3rem;
    color: black;
    text-decoration: none;
    padding: 10px;
  }
  
  .nav-links a:hover {
    background-color: #f39c12;
    border-radius: 5px;
  }
  
  /* Dropdown Menu */
  .dropdown {
    position: relative;
  }
  
  .dropdown-menu {
    display: none;
    position: absolute;
    background-color: #333;
    list-style-type: none;
    padding: 10px 0;
    top: 100%;
    left: 0;
    width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
  }
  
  .dropdown-menu li {
    padding: 10px;
    text-align: left;
  }
  
  .dropdown-menu li a {
    color: #fff;
    padding: 10px 20px;
    display: block;
    text-decoration: none;
  }
  
  .dropdown-menu li a:hover {
    background-color: #f39c12;
    border-radius: 5px;
  }
  
  /* Show the dropdown when hovering */
  .dropdown:hover .dropdown-menu {
    display: block;
  }
  
  .cart {
    position: relative;
  }
  
  .cart-icon {
    color: #333;
    font-size: 30px;
    text-decoration: none;
  }
  
  .cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: red;
    color: #fff;
    border-radius: 50%;
    padding: 4px 10px;
    font-size: 12px;
  }
  
  .cart:hover {
    background-color: #f39c12;
    border-radius: 5px;
    cursor: pointer;
  }
  @media (max-width: 768px) {
    .menu-toggle {
      display: block;
      font-size: 35px;
    }
  
    .nav-links {
      display: none;
      flex-direction: column;
      background-color: #333;
      position: absolute;
      top: 60px;
      left: 0;
      right: 0;
      width: 100%;
      z-index: 1000;
    }
    .nav-links a {
      font-size: 1.2rem;
      color:white;
      text-decoration: none;
      padding: 10px;
      font-weight: 400;
      /* padding-top: 15px; */
      /* padding-left: 1%; */
    }
    
    .nav-links li {
      width: 100%;
    }
  
    .nav-links.show {
      display: flex;
    }
  
    .dropdown-menu {
      position: relative;
      background-color: #333;
    }
  
    
    .dropdown:hover .dropdown-menu {
      display: none;
    }
  
    .dropdown.open > .dropdown-menu {
      display: flex;
      flex-direction: column;
    }
  
    .cart {
      position: absolute;
      top: 15px;
      right: 85px;
    }
  }
  
  
/* ---------------------------------------------------------------------------------- */
  .container {
    display: flex;
  }
  
  .sidebar {
    width: 20%;
    background-color: #f4f4f4;
    padding: 20px;
    height: 100vh; /* Full height */
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: start;
  }
  
  .sidebar h2 {
    text-align: center;
    margin-bottom: 20px;
  }
  
  .sidebar ul {
    list-style-type: none;
  }
  
  .sidebar ul li {
    margin: 10px 0;
    padding: 10px;
    cursor: pointer;
    background-color: #e2e2e2;
    border-radius: 5px;
    text-align: center;
  }
  
  .sidebar ul li:hover {
    background-color: #ddd;
  }
  
 @media (max-width: 768px){

  .sidebar {
    width: 30%;
    background-color: #f4f4f4;
    padding: 20px;
    height: 465vh;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: start;
  }
 } 
  .main-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
  }
  
  .product-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
  
  .product-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }
  
  .product-item img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin-bottom: 10px;
  }
  
  .product-item button {
    margin-top: 10px;
    padding: 8px 15px;
    border: none;
    background-color: #4CAF50;
    color: white;
    border-radius: 5px;
    cursor: pointer;
  }
  
  .product-item button:hover {
    background-color: #2980b9;
  }
  
  /* Popup styling */
  .popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
  }
  
  .popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
  }
  
  .popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  }
  
  .popup-content img {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
  }
  
  .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
    color: red;
  }
  .add-to-cart{
   padding: 6px 20px;
   color: white;
   background-color: #3498db;
   border: none;
   border-radius: 10px;
  }