body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f6f6f6;
  margin: 0;
  padding: 0;
}

.container {
  width: 90%;
  max-width: 400px;
  margin: 50px auto;
  text-align: center;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

input {
  width: 90%;
  padding: 10px;
  margin: 10px 0;
  border-radius: 6px;
  border: 1px solid #ccc;
}

button {
  background-color: #2a9d8f;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
}

button:hover {
  background-color: #21867a;
}

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

.user-info {
  display: flex;
  gap: 10px;
  align-items: center;
}

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

.product {
  background: white;
  padding: 15px;
  border-radius: 10px;
  width: 180px;
  text-align: center;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

.cart-item {
  border-bottom: 1px solid #ddd;
  padding: 10px;
  text-align: left;
}

.remove-btn {
  background-color: #e63946;
  border: none;
  color: white;
  padding: 5px 8px;
  border-radius: 5px;
  cursor: pointer;
}

.weather-box {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  color: #333;
  background: #f0f8ff;
  padding: 8px 12px;
  border-radius: 8px;
  width: fit-content;
  margin: 10px auto;
}

.weather-box img {
  width: 30px;
  height: 30px;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  background-color: #f9fafc;
}

.navbar {
  background-color: #007bff;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
}

.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  
}

.nav-links a.active {
  text-decoration: underline;
}

.main {
  text-align: center;
  padding: 50px 20px;
}

.weather-section {
  margin-top: 30px;
}

.weather-section input {
  padding: 8px;
  font-size: 16px;
}

.weather-section button {
  padding: 8px 15px;
  font-size: 16px;
  background-color: #007bff;
  color: white;
  border: none;
  cursor: pointer;
}

#weatherResult {
  margin-top: 20px;
  font-size: 18px;
  font-weight: 500;
  color: #333;
}

.nav-links a:hover {
  text-decoration: none;
  opacity: 0.9;
}

.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  padding: 20px;
}

.product {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-align: center;
  padding: 15px;
  transition: transform 0.2s ease;
}

.product:hover {
  transform: translateY(-5px);
}

.product img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}
