/* General styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f5f5f5;
    color: #333;
    text-align: center;
  }

  header {
    background-color: #04919b;
    color: white;
    padding: 10px;
    text-align: center;
  }

  header img {
    max-width: 100px;
    height: auto;
    margin-bottom: 10px;
  }

/* Navigation Bar Styling */
nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 5px;
  flex-wrap: wrap;
  max-width: 100%;
  overflow-x: hidden;
}

/* Navigation Buttons */
.nav-button {
  margin: 2px 4px;
  color: #f0f0f0;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 5px;
  background-color: #66bb6a;
  transition: background-color 0.3s ease, transform 0.3s ease;
  font-size: 14px;
  text-align: center;
  white-space: nowrap;
  flex: 1 1 auto; /* Allows buttons to flex and take space */
  min-width: 120px; /* Ensures minimum width */
  text-align: center;
}

/* Button Hover Effect */
.nav-button:hover {
  transform: scale(1.02);
  background-color: #81c784;
}

/* Responsive Design */
@media (max-width: 768px) {
  nav {
      flex-direction: column;
      align-items: center;
  }

  .nav-button {
      width: 100%; /* Full width on small screens */
      max-width: 200px; /* Prevents too wide buttons */
  }
}

/* Extra Small Screens */
@media (max-width: 480px) {
  .nav-button {
      flex: 1 1 45%; /* Makes buttons take 45% width */
      min-width: 90px; /* Prevents shrinking too much */
  }
}

  /* Main Content Styling */
  .products, .about, .contact, .social {
    padding: 20px;
    text-align: center;
  }

  .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    justify-items: center;
  }

  .product-card {
    background-color: #ffffff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 200px;
    transition: transform 0.3s ease;
    cursor: pointer;
    text-align: center;
  }

  .product-card:hover {
    transform: scale(1.05);
  }

  button {
    background-color: #4CAF50;
    border: none;
    color: white;
    padding: 10px;
    margin: 5px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }

  button:hover {
    background-color: #45a049;
  }

  /* Cart section */
  .cart {
    padding: 20px;
    background-color: #ffffff;
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    margin: 20px auto;
  }

  .cart ul {
    list-style-type: none;
    padding: 0;
  }

  .cart li {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
  }

  #total-price {
    font-weight: bold;
    color: #333;
  }

  .buy-now {
    width: 100%;
    padding: 10px;
    font-size: 1em;
    margin-top: 10px;
    background-color: #ff5722;
    transition: transform 0.2s ease;
  }

  .buy-now:hover {
    transform: scale(1.1);
  }

  /* Footer */
  footer {
    background-color: #2C3E50;
    color: white;
    text-align: center;
    padding: 40px 20px;
    margin-top: 20px;
    font-size: 0.9em;
  }

  footer p {
    margin: 10px 0;
  }

  footer .social-links a {
    color: #ecf0f1;
    margin: 0 15px;
    text-decoration: none;
    font-size: 1.2em;
    transition: color 0.3s ease;
  }

  footer .social-links a:hover {
    color: #3498db;
  }

  /* Mobile & Tablet view */
  @media (max-width: 768px) {
    .product-grid {
      grid-template-columns: repeat(2, 1fr);
    }
    nav {
      flex-direction: column;
      gap: 10px;
    }
    header h1 {
      font-size: 1.5em;
    }
  }

  @media (max-width: 480px) {
    .product-grid {
      grid-template-columns: 1fr;
    }
    .nav-button {
      width: 100%;
      text-align: center;
    }
  }

  /* Links styling */
  a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease, text-decoration 0.3s ease;
  }

  a:hover {
    color: #2980b9;
    text-decoration: underline;

  }
  #logo {
border-radius: 50%;
width: 100px; /* You can adjust the size as needed */
height: 100px; /* Ensure the height and width are the same for a perfect circle */
object-fit: cover; /* Ensures the image maintains aspect ratio */
margin-top: 20px;
}
#contact {
background-color: #341877;  /* Light grey background */
padding: 40px;  /* Adds space inside the section */
border-radius: 10px;  /* Rounded corners */
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);  /* Soft shadow effect */
transition: transform 0.3s ease, box-shadow 0.3s ease;  /* Smooth transition for hover */
}

#contact:hover {
transform: translateY(-5px);  /* Slight lift effect on hover */
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);  /* Stronger shadow on hover */
}

#contact h2 {
color: #fffdfd;  /* Dark color for the heading */
font-size: 2em;
margin-bottom: 20px;
}

#contact p {
color: #fffcfc;  /* Dark grey color for text */
font-size: 1.1em;
}

#contact a {
color: #a4fa05;  /* Link color */
text-decoration: none;
transition: color 0.3s ease;  /* Smooth transition for link color */
}

#contact a:hover {
color: #ff6600;  /* Change link color on hover */
text-decoration: underline;  /* Underline the link on hover */
}

#about {
background-color: #6135c9;  /* Light background for the about section */
padding: 40px;  /* Adds space inside the section */
border-radius: 0px;  /* Rounded corners for smooth appearance */
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);  /* Soft shadow effect */
transition: transform 0.3s ease, box-shadow 0.3s ease;  /* Smooth transition on hover */
margin-top: 30px;
}

#about:hover {
transform: translateY(-2px);  /* Slight lift effect on hover */
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);  /* Stronger shadow on hover */
}

#about h2 {
color: #f8efef;  /* Dark color for heading */
font-size: 2em;
margin-bottom: 20px;
}

#about p {
color: #fffbfb;  /* Dark grey color for text */
font-size: 1.1em;
}

#about p bold {
font-weight: bold;  /* Makes the bold text bold */
}

#about p:hover {
color: #e7c608;  /* Change text color to blue when hovered */
transition: color 0.3s ease;  /* Smooth transition for text color change */
}
/* Image inside the card */
.product-card img {
width: 100%; /* The image will now take up 100% of the card's width */
height: 200px; /* Set a fixed height for the image */
object-fit: cover; /* Ensures the image maintains aspect ratio and covers the space */
}

/* Title inside the card */
.product-card h3 {
font-size: 18px;
margin: 10px 0;
}

/* Description inside the card */
.product-card p {
font-size: 16px;
margin: 5px 0;
}

/* Button inside the card */
.product-card button {
background-color: #28a745;
color: white;
border: none;
padding: 5px 10px;
margin: 5px 0;
cursor: pointer;
border-radius: 4px;
font-size: 14px;
}

.product-card button:hover {
background-color: #218838;
}

 @media (max-width: 200px) {
    #lang-btn {
      padding: 4px 6px;   /* Even smaller padding for very small screens */
      font-size: 10px;     /* Even smaller font size */
      top: 5px;            /* Adjust position if necessary */
      right: 5px;          /* Adjust position if necessary */
    }
  }