/* General Reset and Body Styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background-color: #f7f7f7;
  color: #333;
  line-height: 1.6;
}

/* .spinner {
  border: 8px solid #f3f3f3;
  border-top: 8px solid #3498db;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
      transform: rotate(0deg);
  }
  100% {
      transform: rotate(360deg);
  }
} */

#loader{
  display: flex;
  /* grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); */
  flex-wrap: wrap;
  gap: 0px;
}

.product-card {
  width: 50%;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: white;
  padding: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.skeleton {
  background: linear-gradient(90deg, #e0e0e0 25%, #f2f2f2 50%, #e0e0e0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}

.skeleton.image {
  width: 100%;
  height: 120px;
  border-radius: 8px;
}

.skeleton.text {
  height: 16px;
  width: 80%;
}

.skeleton.button {
  width: 100px;
  height: 32px;
  border-radius: 16px;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}


/* Navbar Styling */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #03ba63;
  color: black;
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #03ba63;
  color: black;
  padding: 10px 20px;
  position: sticky;
  top: 0;
  padding-left: 10px;
  z-index: 1000;
}
.navbar1 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: white;
  color: black;
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header{
  position: sticky;
  top: 0;
  z-index: 1000;
}


.logo {
  font-size: 1.5rem;
  font-weight: bold;
  
}

.search-bar input {
  width: 100%;
  max-width: 400px;
  padding: 8px 10px;
  border: none;
  border-radius: 4px;
}
.nnn{
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
.nn{
  cursor: pointer;
  width: 1.8rem;
}
.nn img{
  width: 100%;
  margin-top: 7px;
}
.menu-icon {
  font-size: 1.8rem;
  cursor: pointer;
}

/* Banner Styling */
.banner {
  width: 90%;
  max-width: 1200px;
  height: 150px;
  background: url('https://i.ibb.co/zhsCkz6Z/Untitled-design.png') no-repeat center/cover;
  border-radius: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin: 20px auto;
}

.banner p span {
  font-size: 2rem;
  transition: font-size 0.3s ease;
}
.banner p {
  font-size: 1.1rem;
  transition: font-size 0.3s ease;
}


.banner-content button {
  background-color: #FFC107;
  color: #333;
  border: none;
  padding: 10px 15px;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.banner-content button:hover {
  background-color: #FFA000;
}



.notice-box {
  border: 2px solid #25D366;
  padding: 15px;
  border-radius: 10px;
  background-color: #f9f9f9;
  display: inline-block;
  max-width: 400px;
}
.notice-box p {
  margin: 10px 0;
  font-size: 16px;
}
.whatsapp-button {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 15px;
  font-size: 16px;
  color: white;
  background-color: #03ba63;
  text-decoration: none;
  border-radius: 5px;
}
.whatsapp-button:hover {
  background-color: #1ebe5d;
}


/* Categories Section */
.categories {
  display: flex;
  justify-content: center;
  gap: 0px;
  flex-wrap: wrap;
  margin: 20px 0 0;
  /* position: sticky;
  top: 60px; */
  background-color: #f7f7f7;
  z-index: 999;
}
.categories .btn {
  display: flex;
  /* justify-content: center; */
  gap: 10px;
  /* flex-wrap: wrap; */
  overflow: auto;
  margin: 0px 5px 10px 10px;
  /* margin: 20px 0; */
  overflow: hidden;
  
}
.categories button.active {
  background-color: green; /* Change to your preferred color */
  color: white;
  font-weight: bold;
}
#categories  {
  position: sticky;
  top: 18px;
}
::-webkit-scrollbar {
  width: 0px;
  background: transparent; /* make scrollbar transparent */
}
.categories h2 {
  flex: 100%;
  text-align: center;
  margin-bottom: 5px;
  margin-top: 10px;
}

.categories button {
  background-color: #FFC107;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9rem;
  /* transition: background 0.3s ease; */
}

/* .categories button:hover {
  background-color: #FFA000;
} */





.category-section {
  padding: 20px;
  background-color: #fff;
  margin: 20px auto;
  max-width: 1200px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

.category-section h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 24px;
  color: #333;
}

.category-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
}

.category-item {
  text-align: center;
  padding: 10px;
  background-color: #ecf7fa;
  border: 1px solid #ddd;
  border-radius: 8px;
  transition: transform 0.2s ease-in-out;
}

.category-item:hover {
  transform: scale(1.05);
  cursor: pointer;
}

.category-item img {
  width: 100%;
  height: 80px;
  object-fit: contain;
  margin-bottom: 10px;
}

.category-item span {
  display: block;
  font-size: 14px;
  color: #505050;
  font-weight: 600;
}


.footer {
  display: flex; /* Use flexbox for layout */
  justify-content: center; /* Center content horizontally */
  align-items: center; /* Center content vertically */
  min-height: 40vh; /* Make the container fill the viewport */
  /*background-color: #F0F0F0;  Light gray background */
  font-family: sans-serif; /* Use a sans-serif font */
}

.footer span {
  font-size: 2.4em; /* Adjust font size as needed */
  font-weight: bold; /* Bold font */
  color: #464646; /* Dark gray text color */
}
.footer2 {
  display: flex; /* Use flexbox for layout */
  justify-content: center; /*Center content horizontally*/
  align-items: center; /*Center content vertically*/
  min-height: 1vh; /* Make the container fill the viewport */
  background-color: #F0F0F0; /* Light gray background */
  font-family: sans-serif; /* Use a sans-serif font */
}

.footer2 span {
  font-size: 0.75em; /* Adjust font size as needed */
  font-weight: bold; /* Bold font */
  color: #333; /* Dark gray text color */
}


/* Product Grid */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0px;
  padding: 5px;
}

.pro {
  display: flex; 
}
.prod {
  width: 40%;

}
.produ {
  width: 60%;
  /* height: 40px; */
  /* overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; */
}

.pp{
  width: 15%;
}
.product {
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  overflow: hidden;
  transition: transform 0.3s ease;
  cursor: pointer;
}

/* .product:hover {
  transform: translateY(-5px);
} */

.product img {
  width: 100%;
  height: 150px;
  object-fit:contain;
}

.product h3 {
  font-size: 0.9em;
  margin: 10px 0;
  margin-left: 5px;
  color: #3d3d3d;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product p {
  color: #b18700;
  margin: 5px 0;
  margin-left: 5px;
}
.product .pr {
  color: #000000;
  margin-left: 10px;
  font-weight: bold;
}

.product button {
  background-color: #dffcee;
  color: black;
  border: 2PX solid #03ba63;
  padding: 8px 10px;
  margin-bottom: 10px;
  border-radius: 5px;
  cursor: pointer;
  margin-left: 34px;
  font-weight: bold;
}

.product button span {
  padding: 0 5px;
}

.product button:hover {
  background-color: #00574b;
}

/* Product Popup */
.product-popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  z-index: 1001;
  padding: 20px;
  width: 90%;
  max-width: 400px;
  max-height: 650px;
  overflow: auto;
  
}

.product-popup .popup-content img {
  width: 100%;
  height: auto;
  margin-bottom: 10px;
  height: 300px;
  object-fit:contain;
}

.popup-content h3 {
  margin-bottom: 10px;
}
.popup-content .pr {
  color: #0c831f;
  margin-bottom: 10px;
  font-weight: bold;
}
.popup-content button {
  background-color: #00796B;
  color: white;
  border: none;
  padding: 8px 10px;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.popup-content button:hover {
  background-color: #004D40;
}

.close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 1.5rem;
  cursor: pointer;
}






/* Hamburger Icon */
#hamburgerIcon {
  font-size: 30px;
  cursor: pointer;
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 1000;
}

/* Sidebar */
#sidebar {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  background-color: #111;
  overflow-x: hidden;
  transition: 0.3s;
  padding-top: 60px;
}

#sidebar a {
  padding: 10px 15px;
  text-decoration: none;
  font-size: 18px;
  color: white;
  display: block;
  transition: 0.3s;
}

#sidebar a:hover {
  color: #f1f1f1;
}

#sidebar .closebtn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 25px;
  cursor: pointer;
}












/* Cart Popup */
/* Cart Popup */
/* .cart-popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  width: 280px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: none;
} */
.cart-popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  z-index: 1001;
  padding: 20px;
  width: 90%;
  max-width: 400px;
}

.cart-item-image {
  width: 50px;
  height: 50px;
  margin-right: 10px;
}

.cart-popup h3 {
  margin: 0 0 15px;
  font-size: 1.4em;
  color: #333;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}

.cart-popup ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cart-popup li {
  margin-bottom: 10px;
  font-size: 0.9em;
}

.cart-popup button {
  background: #03ba63;
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

.cart-popup button:hover {
  background: #006666;
}


/* Floating Cart Icon */
.cart-icon {
  width: 60px;
  height: 60px;
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #03ba63;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 15px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.cart-icon img{
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.cart-icon span {
  position: absolute;
      top: 0px;
      right: 0px;
      background-color: red;
      color: white;
      width: 20px;
      height: 20px;
      display: flex;
      justify-content: center;
      align-items: center;
      border-radius: 50%;
      font-size: 0.8rem;
      padding: 1px 6px;
      font-weight: bold;
}

.cart-icon:hover {
  background-color: #004D40;
}


@media (max-width: 768px) {
  .products {
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  .banner {
    padding: 20px 10px;
  }
  .banner-content h1 {
    margin-bottom: 10px;
    font-size: 2rem;
  }
}
