@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --oranje:       #F27A1A;
  --groen:        #4CAF50;
  --wit:          #ffffff;
  --lichtgrijs:   #EBEBEB;
  --donkeroranje: #AA5918;
  --tekstgrijs:   #303030;
}

body {
  font-family: 'Poppins', Arial, sans-serif;
  background: var(--wit);
  color: var(--tekstgrijs);
  min-height: 100vh;
}

/* ── Shared ── */
.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 48px 32px 32px;
}

.logo {
  width: 180px;
  max-width: 55vw;
  margin-bottom: 48px;
}

.btn {
  display: block;
  width: 100%;
  max-width: 320px;
  padding: 18px 24px;
  color: var(--wit);
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
}

.btn-oranje {
  background: var(--oranje);
  box-shadow: 0 6px 0 var(--donkeroranje);
}

.btn-oranje:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 var(--donkeroranje);
}

.btn-groen {
  background: var(--groen);
  box-shadow: 0 3px 0 #357a38;
}

.btn-groen:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #357a38;
}

/* ── Homepage ── */
.home {
  justify-content: center;
  gap: 0;
}

.home .menu {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 320px;
  gap: 20px;
}

/* ── Bestellen pagina ── */
.bestellen-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 320px;
  gap: 16px;
  flex: 1;
}

.input-oranje {
  width: 100%;
  padding: 18px 24px;
  background: var(--oranje);
  color: var(--wit);
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  outline: none;
}

.input-oranje::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.snack-lijst {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.snack-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--wit);
  border-radius: 20px;
  padding: 14px 20px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  border-left: 4px solid var(--oranje);
}

.snack-naam {
  font-weight: 600;
  color: var(--tekstgrijs);
  font-size: 0.95rem;
}

.snack-teller {
  display: flex;
  align-items: center;
  gap: 12px;
}

.teller-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--oranje);
  color: var(--wit);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.teller-btn-disabled {
  background: var(--lichtgrijs);
  color: #aaa;
  cursor: not-allowed;
}

.teller-waarde {
  min-width: 20px;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--tekstgrijs);
}

.bestellen-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 32px 32px;
  background: var(--wit);
  display: flex;
  justify-content: center;
}

/* ── Voorraad pagina ── */
.logo-klein {
  width: 120px;
  margin-bottom: 8px;
}

.pagina-titel {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--tekstgrijs);
  margin-bottom: 28px;
}

.voorraad-lijst {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 320px;
  gap: 12px;
}

.voorraad-rij {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.voorraad-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--oranje);
  border-radius: 50px;
  padding: 14px 24px;
  cursor: pointer;
  user-select: none;
}

.voorraad-actief {
  background: var(--donkeroranje);
}

.voorraad-naam-tekst {
  color: var(--wit);
  font-weight: 600;
  font-size: 0.95rem;
}

.voorraad-naam-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--wit);
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  min-width: 0;
}

.voorraad-naam-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.voorraad-aantal-tekst {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 700;
  font-size: 0.95rem;
}

.voorraad-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--wit);
  border-radius: 50px;
  padding: 10px 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.stepper-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--oranje);
  color: var(--wit);
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.stepper-waarde {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--tekstgrijs);
  min-width: 32px;
  text-align: center;
}

.voorraad-nieuw {
  opacity: 0.55;
}

/* ── Popup ── */
.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.popup-overlay.popup-zichtbaar {
  display: flex;
}

.popup-kaart {
  background: var(--wit);
  border-radius: 28px;
  padding: 36px 32px;
  width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.popup-logo {
  width: 100px;
}

.popup-tekst {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--tekstgrijs);
  text-align: center;
}

/* ── Bestellingen pagina ── */
.regel-actief {
  outline: 3px solid #4A90D9;
  outline-offset: -3px;
}

.regel-klaar {
  background: var(--donkeroranje);
  opacity: 0.5;
  text-decoration: line-through;
}

.btn-met-icoon {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.btn-icoon {
  height: 1.5em;
  position: absolute;
  right: 52px;
}

.bestellers-lijst {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 8px;
}

.besteller-regel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(242, 122, 26, 0.15);
  border-radius: 50px;
  padding: 10px 20px;
}

.besteller-naam {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--oranje);
}

.besteller-aantal {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--oranje);
  opacity: 0.75;
}

.geen-bestellingen {
  color: var(--tekstgrijs);
  opacity: 0.5;
  font-size: 0.95rem;
  text-align: center;
  padding: 24px 0;
}

/* ── Terug knop ── */
.terug {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 1.4rem;
  text-decoration: none;
  color: var(--tekstgrijs);
  background: var(--lichtgrijs);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
