@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');
/* Reset and Global Styles */
html, body {
  margin: 0;
  padding: 0;
  height: 100%; /* Set height of html and body to 100% */
}

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column; /* Fix footer at the bottom of the page */
  min-height: 100vh; /* Make sure the content fills the whole screen even with little content */
}

/* Main Section */
main {
  flex: 1; /* Allocate the remaining space to the main section */
  padding: 2em;
}

header {
  background-color: #333;
  padding-top: 0.01%;
}

/* Footer Section */
footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 1em;
}

.footer-icons {
  display: flex; 
  justify-content: center; 
  align-items: center; 
  gap: 15px; 
}


.footer-icons .social img {
  width: 100%;
  height: auto;
  display: block;
}

.footer-distributed {
  background: #333;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);
  width: 100%;
  text-align: left;
  color: #fff;
  padding: 35px 20px;
}

.footer-distributed .footer-left,
.footer-distributed .footer-center,
.footer-distributed .footer-right {
  display: inline-block;
  vertical-align: top;
  width: 33%;
}

.footer-distributed .footer-left h3 {
  color: #fff;
  margin: 0;
}

.footer-distributed .footer-left .footer-links {
  color: #AFE1AF;
  margin: 20px 0;
  padding: 0;
}

.footer-links a {
  color: #AFE1AF;
  text-decoration: none;
  font-weight: bold; 
}

.footer-distributed .footer-links a {
  text-decoration: none;
  color: #AFE1AF;
  margin-right: 5px;
}

.footer-distributed .footer-center i {
  background-color: #AFE1AF;
  color: #333;
  font-size: 20px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  text-align: center;
  line-height: 30px;
  margin-right: 10px;
}

.footer-distributed .footer-center p {
  display: inline-block;
  margin: 0;
  color: #AFE1AF;
}

.footer-distributed .footer-right .footer-company-about {
  line-height: 20px;
  color: #AFE1AF;
  font-size: 14px;
}

.footer-distributed .footer-icons a {
  color: #AFE1AF;
  margin-right: 5px;
}

@media (max-width: 768px) {
  .footer-distributed {
    text-align: center;
  }

  .footer-distributed .footer-left,
  .footer-distributed .footer-center,
  .footer-distributed .footer-right {
    display: block;
    width: 100%;
    margin-bottom: 20px;
  }
}


nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.compname {
  color: white;
  padding-left: 1%;
}

.logo-img img{
  width: 15%;
  height: 15%;
}

.compname > p {
  font-size: 90%;
  margin-left: 20px;
  padding-left: 20px;
}
.display {
  background-color: #575757;
  color: #fff;
  border-color: #333;
  border-style: solid;
  border-radius: 3%;
  margin: 1% 40%;
  text-align: center;
  padding: 0.5%;
}

.menu-icon {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-icon .bar {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 4px 0;
}

.nav-links {
  list-style: none;
  display: flex;
}

.nav-links li {
  margin: 0 10px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.nav-links a:hover {
  background-color: #575757;
}

.news {
  margin: 0% 1%
}

.product-image {
  border-style: solid;
  border-radius: 10%;
  border-color: #333;
  width: 80%;
}

@media (max-width: 768px) {
  .menu-icon {
      display: flex;
  }

  .nav-links {
      display: none;
      flex-direction: column;
      width: 100%;
  }

  .nav-links li {
      text-align: center;
      margin: 10px 0;
  }

  .nav-links.active {
      display: flex;
  }
}

#copy {
  padding-left: 1%;
  color: #ffffff9c;
  background-color: #333;
  padding-bottom: 1%;
  padding-right: 94.58%;
  padding-top: 1%;
  margin-bottom: 0%;
}

/* Style for product list */

.productList {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  align-items: stretch; /* Ensures all cards have equal height */
  flex-wrap: wrap; /* Allow wrapping for smaller screens */
}

.item {
  background-color: #fff;
  padding: 20px;
  border: 3px solid black;
  border-radius: 15px;
  width: 20%; /* Default width for large screens */
  max-width: 250px; /* Ensure cards don't become too wide */
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Ensure spacing between elements */
  align-items: center;
  box-sizing: border-box;
  height: auto;
  position: relative; /* For absolute positioning of button */
  margin: 10px; /* Add spacing between cards */
}

.item a {
  text-decoration: none; /* Remove underline */
  color: black; /* Use default text color */
  font-weight: bold; /* Make text bold for better visibility */
}

/* Hover effect for product name */
.item a:hover {
  color: red; /* Change color to red on hover */
  text-decoration: none; /* Ensure underline does not appear */
}

.item img {
  width: 200px; /* Adjust image width to fit card */
  height: 200px; /* Maintain aspect ratio */
  margin-bottom: 15px;
  flex-shrink: 0; /* Prevent shrinking */
}

.item h2 {
  font-size: 1.2em; /* Make the product name slightly smaller */
  margin-bottom: -15px;
  min-height: 50px; /* Set consistent height for the title */
}

.item .price {
  font-size: 1em; /* Set price font size */
  margin-bottom: 40px; /* Add spacing between price and button */
  color: #333;
  position: relative; /* Ensure price stays above the button */
  margin-top: 5px;
}

.item .order-btn {
  background-color: #2f45d3;
  color: white;
  padding: 10px 15px; /* Make button size smaller */
  border: none;
  border-radius: 5px;
  cursor: pointer; /* Changes cursor to pointer on hover */
  text-align: center; /* Align text in the center */
  text-decoration: none; /* Remove underline */
  bottom: 20px; /* Position button at the bottom of the card */
  left: 50%; /* Center horizontally */
}

.item .order-btn:hover {
  background-color: rgba(47, 69, 211, 0.8); /* Changes background color when hovered */
}

/* Responsive design */
@media (max-width: 1024px) {
  .item {
      width: 30%; /* Adjust width for medium screens */
      max-width: none; /* Allow flexible widths */
  }
}

@media (max-width: 768px) {
  .productList {
      flex-direction: column; /* Switch layout to vertical direction */
      align-items: center; /* Center the cards */
  }

  .item {
      width: 90%; /* Expand the width for smaller screens */
      margin-bottom: 20px;
      height: auto; /* Remove height restrictions */
  }

  .item img {
      width: 80%; /* Make the image smaller */
      max-width: 200px; /* Adjust maximum size */
      height: auto; /* Maintain aspect ratio */
  }

  .item h2 {
      font-size: 1em; /* Further reduce title size on small screens */
      min-height: 40px; /* Ensure consistent title height on small screens */
  }

  .price {
      font-size: 0.9em; /* Reduce font size for price on smaller screens */
      margin-top: 10px; /* Adjust spacing */
      margin-bottom: 20px; /* Ensure spacing above button */
  }

  .order-btn {
      padding: 8px 12px; /* Further reduce button size */
      bottom: 10px; /* Adjust button position */
  }
}

@media (max-width: 480px) {
  .item {
      width: 95%; /* Use almost full width for very small screens */
      margin: 10px 0; /* Reduce horizontal spacing */
  }

  .item img {
      width: 100%; /* Adjust image width */
      max-width: 150px; /* Reduce maximum size */
      height: auto;
  }

  .order-btn {
      padding: 6px 10px; /* Further reduce button size */
      font-size: 0.9em; /* Reduce font size for button text */
  }
}


