body {
  box-sizing: border-box;
  margin: 0;
  font-family: sans-serif;
  background: #0f0518;
  color: #fff;
}
.container {
  box-sizing: border-box;
  text-align: center;
  padding: 30px 50px;
  padding-bottom: 250px;
}

.box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 100vh;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  direction: rtl;
}
.card {
  background: #1c0f2e;
  padding: 20px;
  border-radius: 16px;
  transition: 0.2s;
}
.card:hover {
  transform: translateY(-5px);
}
.card.active {
  border: 2px solid #7c6ee6;
  box-shadow: 0 0 15px rgba(124,110,230,0.5);
  transform: translateY(-5px) scale(1.02);
}
.card img {
  width: auto;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
}
button {
  margin-top: 10px;
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  background: #7c6ee6;
  color: #fff;
  cursor: pointer;
}
button:hover {
  opacity: 0.99;
}

.qty-box {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.qty-box button {
  width: 32px;
  height: 32px;
  padding: 0;
  font-size: 18px;
  border-radius: 8px;
}

.qty {
  width: 60px;
  text-align: center;
}

/* number input container (optional if you wrap it) */
.qty {
  width: 80px;
  padding: 8px;
  margin-top: 10px;
  text-align: center;
  font-size: 16px;

  background: #140a22;
  color: #fff;

  border: 1px solid #3a2a5c;
  border-radius: 10px;

  outline: none;
  transition: 0.2s;
}

/* focus glow */
.qty:focus {
  border-color: #7c6ee6;
  box-shadow: 0 0 0 2px rgba(124, 110, 230, 0.3);
}

/* remove ugly arrows (chrome, edge, safari) */
.qty::-webkit-outer-spin-button,
.qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* remove arrows (firefox) */
.qty {
  appearance: textfield;
  -moz-appearance: textfield;
}

/* hover effect */
.qty:hover {
  border-color: #7c6ee6;
}

/* loader spinner */
.loader {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* loading state */
button.loading {
  pointer-events: none;
  opacity: 0.99;
}

button.loading .btn-text {
  display: none;
}

button.loading .loader {
  display: block;
}

#donateForm {
  position: relative;
}

#totalPrice {
  box-sizing: border-box;
  position: fixed;
  bottom: 150px;
  left: 50%;
  transform: translateX(-50%);
  font-family: sans-serif !important;
  font-size: 1.2em;
  font-weight: 600;
  padding: 5px 30px;
  border: 5px solid #2b2b2b;
  border-radius: 15px;
  background: #14102af7;
  color: #dcdcdc;
  cursor: pointer;
}
#totalPrice:empty{
  display: none;
}
#donateBtn {
  box-sizing: border-box;
  position: fixed;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  font-family: sans-serif !important;
  font-size: 1.75em;
  font-weight: 900;
  padding: 10px 30px;
  height: 100px;
  border: 5px solid #433797;
  border-radius: 15px;
  background: #7c6ee6;
  color: #ededed;
  cursor: pointer;
}

@media only screen and (max-width: 760px) {
  #totalPrice {
    bottom: 100px;
    width: 100%;
  }
  #donateBtn {
    bottom: 0px;
    width: 100%;
  }
}
