* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;
}

.navbar {
  background-color: #fff;
  padding: 15px 20px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo a {
  font-size: 24px;
  font-weight: bold;
  text-decoration: none;
  color: #333;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 40px;
  font-size: 24px;
}

.nav-links li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.cart-icon {
  position: relative;
}

#cartCount {
  position: absolute;
  top: -8px;
  right: -10px;
  background: red;
  color: white;
  padding: 2px 6px;
  font-size: 12px;
  border-radius: 50%;
}
.username-style {
  color: white;
  background-color: green;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20%;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.hamburger {
  display: none;
  font-size: 24px;
  cursor: pointer;
}
.main-container {
  padding: 1rem;
  max-width: 1200px;
  margin: auto;
}

.cart-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 20px;
  padding: 0 1rem;
}

.cart-header h2 {
  margin: 0;
  font-size: 1.5rem;
}

.cart-summary {
  display: flex;
  align-items: center;
  gap: 1rem;
}

#Buybtn {
  background-color: #4caf50;
  color: white;
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#Buybtn:hover {
  background-color: #388e3c;
}

.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  text-align: center;
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
}
.remove-cart-btn {
  margin-top: 0.7rem;
  padding: 0.5rem 1rem;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.remove-cart-btn:hover {
  background-color: #0056b3;
}

.footer {
  background: #f2f2f2;
  padding: 20px 10px;
  font-size: 14px;
  color: #333;
  margin-top: 40px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  max-width: 1000px;
  margin: auto;
}

.footer-section {
  flex: 1 1 100%;
  margin-bottom: 15px;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 10px;
  color: #333;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li a {
  color: #333;
  text-decoration: none;
}

.footer-section ul li a:hover {
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  padding-top: 10px;
  border-top: 1px solid #ccc;
  font-size: 13px;
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    align-items: center;
    display: none;
    border-top: 1px solid #eee;
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: block;
  }
}
