
/* General styles (Light Mode by default) */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #f9f9f9;
  color: #333;
  transition: background 0.3s, color 0.3s;
}

header {
  background: #333;
  color: #fff;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  margin: 0;
}

nav a {
  color: #fff;
  margin: 0 10px;
  text-decoration: none;
}

nav a:hover {
  text-decoration: underline;
}

/* Theme toggle button */
#themeToggle {
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: white;
}

.hero {
  text-align: center;
  padding: 50px;
  background: #ececec;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background: blue;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
}

.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  padding: 20px;
}

.card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  width: 200px;
  padding: 10px;
  text-align: center;
  transition: background 0.3s, color 0.3s;
}

.card img {
  max-width: 100%;
  height: 150px;
  object-fit: contain;
}

/* Dark Mode Styles */
body.dark-mode {
  background: #1e1e1e;
  color: #eee;
}

body.dark-mode header {
  background: #111;
  color: #eee;
}

body.dark-mode nav a {
  color: #eee;
}

body.dark-mode .hero {
  background: #333;
  color: #eee;
}

body.dark-mode .card {
  background: #2a2a2a;
  border-color: #555;
}

body.dark-mode .btn {
  background: orange;
  color: #111;
}

 /* Center the heading */
.top-products h2 {
  text-align: center;
  margin-top: 30px;
  margin-bottom: 20px;
}

/* Footer Styles */
footer {
  background: #333;
  color: #fff;
  padding: 20px 10px;
  margin-top: 40px;
}

.footer-container {
  display: flex;
  justify-content: space-between; /* space between copyright and links */
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap; /* wrap for smaller screens */
}

.footer-container p {
  margin: 0;
  font-size: 14px;
}

.footer-nav a {
  color: #ddd;
  margin-left: 15px;
  text-decoration: none;
  font-size: 14px;
}

.footer-nav a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Dark Mode Footer */
body.dark-mode footer {
  background: #111;
  color: #ccc;
}

body.dark-mode .footer-nav a {
  color: #aaa;
}

body.dark-mode .footer-nav a:hover {
  color: #fff;
}
