body {
  font-family: Arial, sans-serif;
  margin: 20px;
  background-color: #f9f9f9;
}

nav {
  background-color: #333;
  padding: 10px 20px;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex; /* makes the menu horizontal */
  gap: 20px;    /* space between menu items */
}

nav ul li {
  display: inline-block;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 8px 12px;
  display: block;
  transition: background-color 0.3s ease;
  border-radius: 4px;
}

nav ul li a:hover {
  background-color: #555;
}
@media (max-width: 600px) {
  nav ul {
    flex-direction: column;
    gap: 10px;
  }
}


.product-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.product-card {
  flex: 0 0 220px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.product-card:hover {
  transform: scale(1.02);
}

.product-card img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

h2, h3 {
  color: #333;
}

.card:hover {
  transform: scale(1.02);
  transition: transform 0.2s;
}

.cart-sidebar {
  position: fixed;
  right: -300px;
  top: 0;
  height: 100%;
  width: 300px;
  background-color: #fff;
  z-index: 1050;
  transition: right 0.3s;
  border-left: 1px solid #ccc;
}

.cart-sidebar.active {
  right: 0;
}

.cart-toggle-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1050;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 24px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}
