body {
  font-family: Arial, sans-serif;
  background: #f4f4f4;
  margin: 0;
  padding: 20px;
  transition: background 0.3s, color 0.3s;
}

body.dark-mode {
  background: #121212;
  color: white;
}

h1 {
  text-align: center;
}

#controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px auto;
  flex-wrap: wrap;
}

input, select, button {
  padding: 8px 12px;
  font-size: 16px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.theme-btn {
  background-color: #ccc;
  color: #000;
  border: none;
}

body.dark-mode .theme-btn {
  background-color: #00bfff;
  color: #000;
}

#search-box {
  width: 200px;
}

#product-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

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

body.dark-mode .product-card {
  background: #1f1f1f;
  color: white;
}

.product-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
}

.product-card p {
  font-weight: bold;
  color: rgb(23, 147, 23);
}

.product-card button {
  background-color: yellow;
  color: black;
  padding: 8px 12px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

#cart {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #000;
  color: #ffffff;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
}

#cart-modal, #auth-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  display: none;
  max-width: 90%;
  z-index: 1000;
}

body.dark-mode #cart-modal,
body.dark-mode #auth-modal {
  background: #2a2a2a;
  color: white;
}

#user-area {
  position: fixed;
  top: 20px;
  left: 20px;
}

.hidden {
  display: none;
}

/* Theme Colors */
body.theme-red {
  background-color: #ffe5e5;
}

body.theme-blue {
  background-color: #e5f0ff;
}
