:root {
  color-scheme: dark;
}

body {
  margin: 0;
  padding: 1rem;
  font: 16px/1.5 system-ui, sans-serif;
  background: #0d1117;
  color: #e6edf3;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

/* --- product card styles (global, naturally) --- */
.grid {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.card {
  width: 220px;
  padding: 1.25rem;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 12px;
}
.title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
}
.price {
  color: #5fd3bc;
  font-weight: 600;
  margin: 0 0 1rem;
}
.stepper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.stepper button {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid #30363d;
  background: #21262d;
  color: inherit;
  font-size: 1rem;
}
.qty {
  min-width: 1.5rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.btn {
  width: 100%;
  padding: 0.55rem;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  background: #238636;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}
.btn.added {
  background: #2ea043;
}

/* --- an UNRELATED widget that also wants `.title` and `.btn` --- */
/* It's a different component by a different author, but the names are global,
   so it has to fight the card for them (note the overrides it's forced into). */
.newsletter {
  width: 240px;
  padding: 1.25rem;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 12px;
}
.newsletter .title {
  font-size: 1rem;
} /* clawing `.title` back */
.newsletter input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.5rem;
  margin: 0.5rem 0 0.75rem;
  border-radius: 6px;
  border: 1px solid #30363d;
  background: #0d1117;
  color: inherit;
}
.newsletter .btn {
  background: #1f6feb;
} /* clawing `.btn` back */
