.dark-toggle-wrapper {
  position: absolute;
  top: 20px;
  right: 120px;
}

.toggle-label {
  background: #ccc;
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  height: 30px;
  width: 60px;
  padding: 0 8px;
  transition: background 0.3s ease;
}

.toggle-label .icon {
  font-size: 14px;
  z-index: 1;
}

.toggle-label .ball {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

input#darkToggle {
  display: none;
}

input#darkToggle:checked + .toggle-label {
  background: #4f46e5;
}

input#darkToggle:checked + .toggle-label .ball {
  transform: translateX(30px);
}

/* Mode gelap */
body.dark-mode {
  background: #121212;
  color: #e0e0e0;
}
body.dark-mode .product {
  background: #1e1e1e;
}
body.dark-mode .btn {
  background: #1e1e1e;
  color: #4f46e5;
}
body.dark-mode .btn:hover {
  background: #4f46e5;
  color: white;
}
