body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #d6d6e8;
  /* Matches the background from the image */
  display: flex;
  flex-direction: column;
  /* Stack navbar and content vertically */
  align-items: center;
  min-height: 100vh;
  /* Ensure content covers the viewport height */
}

/* Navigation Bar Styling */
.navbar {
  background-color: #333;
  padding: 10px 0;
  position: sticky;
  top: 0;
  width: 100%;
  /* Full width for the navbar */
  z-index: 1000;
  /* Ensures it's on top of other elements */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  /* Subtle shadow for separation */
}

.navbar ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.navbar ul li {
  display: inline;
}

.navbar ul li a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  padding: 10px 20px;
  transition: background-color 0.3s ease;
}

.navbar ul li a:hover,
.navbar ul li a.active {
  background-color: #007B5F;
  /* Green hover and active effect */
  border-radius: 5px;
}

/* Card Container Styling */
.card-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  /* Add space below the navbar */
  flex-wrap: wrap;
  /* Ensures responsiveness for multiple cards */
  gap: 20px;
  /* Space between cards */
}

/* Card Styling */
.card {
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  max-width: 400px;
  text-align: center;
  padding: 20px;
  position: relative;
}

.badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: #f9e79f;
  /* Light yellow */
  color: #000;
  font-size: 14px;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 10px;
}

.product-image {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 20px;
}

h1 {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
}

.series {
  font-weight: normal;
  font-size: 16px;
  color: #555;
}

.description {
  font-size: 14px;
  line-height: 1.6;
  color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar ul {
    flex-direction: column;
    /* Stack navbar links vertically */
    gap: 10px;
    padding: 0 10px;
  }

  .navbar ul li a {
    font-size: 14px;
    /* Smaller font size for navbar links */
    padding: 8px 15px;
  }

  .card-container {
    gap: 15px;
    /* Adjust space between cards */
  }

  .card {
    padding: 15px;
    /* Reduce card padding for smaller screens */
    max-width: 90%;
    /* Make cards fit better on smaller screens */
  }

  h1 {
    font-size: 20px;
  }

  .series {
    font-size: 14px;
  }

  .description {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .navbar ul li a {
    font-size: 12px;
    /* Reduce font size further for very small screens */
    padding: 6px 10px;
  }

  .card {
    padding: 10px;
    /* Further reduce padding for small screens */
    max-width: 100%;
    /* Cards take full width of the viewport */
  }

  h1 {
    font-size: 18px;
  }

  .series {
    font-size: 12px;
  }

  .description {
    font-size: 12px;
  }
}