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

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: #FFF9F3;
  color: #2C2C2C;
  min-height: 100vh;
}

.pagina {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
}

/* Header */
.kop {
  padding: 28px 24px 20px;
  border-bottom: 1px solid #F0E8DF;
  text-align: center;
}

.logo {
  width: 180px;
  height: auto;
  display: block;
  margin: 0 auto 8px;
}

.logo-klein {
  width: 100px;
}

.kop-onderschrift {
  font-size: 13px;
  color: #B08060;
  letter-spacing: 0.04em;
}

/* Nav met terugknop */
.kop:has(.terug) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  padding: 16px 24px;
}

.terug {
  font-size: 14px;
  color: #B08060;
  text-decoration: none;
  font-weight: 500;
}

.terug:hover {
  color: #E8901A;
}

/* Main content */
main {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Welkom sectie */
.welkom h2 {
  font-size: 18px;
  font-weight: 700;
  color: #1E1E1E;
  margin-bottom: 8px;
}

.welkom p {
  font-size: 14px;
  color: #666;
  line-height: 1.65;
}

/* Info strip */
.info {
  display: flex;
  border: 1px solid #F0E8DF;
  border-radius: 8px;
  overflow: hidden;
}

.info-blok {
  flex: 1;
  padding: 14px 12px;
  text-align: center;
  border-right: 1px solid #F0E8DF;
}

.info-blok:last-child {
  border-right: none;
}

.info-blok h3 {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #B08060;
  margin-bottom: 5px;
  font-weight: 600;
}

.info-blok p {
  font-size: 12px;
  color: #333;
  word-break: break-word;
}

/* Menu knop */
.menu-knop {
  display: block;
  background: #E8901A;
  color: #fff;
  text-align: center;
  padding: 16px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.menu-knop:hover {
  background: #D07F10;
}

/* Categorie (menu pagina) */
.categorie {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.categorie-titel {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #B08060;
  font-weight: 600;
  padding-bottom: 10px;
  border-bottom: 1px solid #F0E8DF;
  margin-bottom: 0;
}

.gerechten {
  display: flex;
  flex-direction: column;
}

.gerecht {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #F7F0E8;
}

.gerecht:last-child {
  border-bottom: none;
}

.gerecht-tekst {
  flex: 1;
}

.gerecht-naam {
  font-size: 15px;
  font-weight: 600;
  color: #1E1E1E;
  margin-bottom: 3px;
}

.gerecht-omschrijving {
  font-size: 12px;
  color: #888;
  line-height: 1.4;
}

.gerecht-prijs {
  font-size: 15px;
  font-weight: 700;
  color: #E8901A;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Terug naar home knop */
.home-knop {
  display: block;
  text-align: center;
  padding: 12px;
  border: 1px solid #E0D4C8;
  border-radius: 8px;
  font-size: 14px;
  color: #B08060;
  text-decoration: none;
}

.home-knop:hover {
  background: #FFF4EA;
}

/* Footer */
.voet {
  padding: 16px 24px;
  border-top: 1px solid #F0E8DF;
  text-align: center;
}

.voet p {
  font-size: 12px;
  color: #C0A080;
}

/* ===========================================================
   Bestelflow: menu met fotos, mandje, gegevens, bevestiging
   =========================================================== */

/* Paginakop met alleen een titel */
.kop-titel {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  padding: 16px 24px;
}

.pagina-titel {
  font-size: 17px;
  font-weight: 700;
  color: #1E1E1E;
}

.menu-uitleg {
  font-size: 13px;
  color: #888;
  line-height: 1.5;
  background: #FFF4EA;
  border-radius: 8px;
  padding: 12px 14px;
}

.menu-uitleg strong {
  color: #E8901A;
}

/* Gerecht met foto en plusknop */
.gerecht {
  align-items: flex-start;
  gap: 14px;
}

.gerecht-foto {
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  border: 1px solid #F0E8DF;
  border-radius: 8px;
  background: #F7F0E8;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gerecht-foto:hover {
  border-color: #E8901A;
}

.gerecht-foto img,
.detail-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.foto-leeg {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #C0A080;
}

.gerecht-tekst .gerecht-prijs {
  display: inline-block;
  margin-top: 6px;
}

.plus-knop {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border: 1px solid #E8901A;
  border-radius: 8px;
  background: #fff;
  color: #E8901A;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  align-self: center;
}

.plus-knop:hover {
  background: #E8901A;
  color: #fff;
}

/* Balk onderaan met het mandje */
.mandje-balk {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 12px;
  width: calc(100% - 24px);
  max-width: 456px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #E8901A;
  color: #fff;
  padding: 14px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  z-index: 10;
}

.mandje-balk:hover {
  background: #D07F10;
}

.balk-teller {
  min-width: 24px;
  height: 24px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.25);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
}

.balk-tekst {
  flex: 1;
}

body.met-balk .voet {
  padding-bottom: 80px;
}

/* Korte melding na toevoegen */
.melding {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 84px;
  background: #2C2C2C;
  color: #fff;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 20px;
  z-index: 20;
}

/* Productinfo-venster */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 20, 10, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 30;
}

body.vast {
  overflow: hidden;
}

.overlay-vlak {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.overlay-sluit {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  color: #666;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.detail-foto {
  height: 170px;
  border-radius: 10px;
  background: #F7F0E8;
  border: 1px solid #F0E8DF;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.detail-tekst {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-naam {
  font-size: 20px;
  font-weight: 700;
  color: #1E1E1E;
}

.detail-prijs {
  font-size: 17px;
  font-weight: 700;
  color: #E8901A;
}

.detail-info {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

.detail-extra {
  font-size: 13px;
  color: #B08060;
  background: #FFF4EA;
  border-radius: 8px;
  padding: 10px 12px;
}

.detail-allergenen {
  border-top: 1px solid #F0E8DF;
  padding-top: 12px;
}

.detail-allergenen h3 {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #B08060;
  margin-bottom: 4px;
}

.detail-allergenen p {
  font-size: 13px;
  color: #666;
}

/* Grote knop door de hele flow heen */
.hoofd-knop {
  display: block;
  width: 100%;
  background: #E8901A;
  color: #fff;
  text-align: center;
  padding: 16px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
}

.hoofd-knop:hover {
  background: #D07F10;
}

.knop-hulp {
  font-size: 12px;
  color: #888;
  text-align: center;
  line-height: 1.5;
  margin-top: 10px;
}

.blok-label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #B08060;
  font-weight: 600;
}

/* Winkelmandje */
.mandje-regel {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #F7F0E8;
}

.mandje-foto {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border: 1px solid #F0E8DF;
  border-radius: 8px;
  background: #F7F0E8;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mandje-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mandje-tekst {
  flex: 1;
  min-width: 0;
}

.mandje-tekst h3 {
  font-size: 14px;
  font-weight: 600;
  color: #1E1E1E;
}

.mandje-tekst p {
  font-size: 12px;
  color: #888;
}

.teller {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.teller button {
  width: 28px;
  height: 28px;
  border: 1px solid #E0D4C8;
  border-radius: 6px;
  background: #fff;
  color: #B08060;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

.teller button:hover {
  border-color: #E8901A;
  color: #E8901A;
}

.teller span {
  min-width: 20px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}

.mandje-prijs {
  font-size: 14px;
  font-weight: 700;
  color: #1E1E1E;
  white-space: nowrap;
  flex-shrink: 0;
}

.leeg-melding {
  font-size: 14px;
  color: #888;
  line-height: 1.6;
  text-align: center;
  padding: 20px 0;
}

.veld:focus {
  outline: none;
  border-color: #E8901A;
}

.tekst-link {
  font-size: 14px;
  color: #B08060;
  text-decoration: none;
  font-weight: 500;
}

.tekst-link:hover {
  color: #E8901A;
}

.totaal-blok {
  border-top: 1px solid #F0E8DF;
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.totaal-regel {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #666;
}

.totaal-regel-dik {
  font-size: 17px;
  font-weight: 700;
  color: #1E1E1E;
}

/* Gegevensformulier */
#gegevensFormulier {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stappen {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.stap {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: #F0E8DF;
}

.stap-klaar {
  background: #E0D4C8;
}

.stap-nu {
  background: #E8901A;
}

.veld-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #B08060;
  font-weight: 600;
  margin-top: 10px;
}

.veld {
  width: 100%;
  border: 1px solid #E0D4C8;
  border-radius: 8px;
  padding: 13px 12px;
  font-family: inherit;
  font-size: 15px;
  color: #2C2C2C;
}

.veld-hulp {
  font-size: 12px;
  color: #888;
  line-height: 1.5;
}

#gegevensFormulier .blok-label {
  margin-top: 20px;
}

.samenvatting {
  border: 1px solid #F0E8DF;
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.samenvatting-regel {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  color: #666;
}

.samenvatting-totaal {
  border-top: 1px solid #F0E8DF;
  padding-top: 8px;
  font-size: 16px;
  font-weight: 700;
  color: #1E1E1E;
}

/* Betaalkeuze */
.keuze {
  display: block;
  cursor: pointer;
}

.keuze input {
  position: absolute;
  opacity: 0;
}

.keuze-vlak {
  display: block;
  border: 1px solid #E0D4C8;
  border-radius: 8px;
  padding: 14px;
}

.keuze input:checked + .keuze-vlak {
  border-color: #E8901A;
  background: #FFF4EA;
}

.keuze input:focus-visible + .keuze-vlak {
  outline: 2px solid #E8901A;
  outline-offset: 2px;
}

.keuze-naam {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #1E1E1E;
  margin-bottom: 4px;
}

.keuze-uitleg {
  display: block;
  font-size: 12px;
  color: #888;
  line-height: 1.5;
}

.fout-melding {
  font-size: 13px;
  color: #C0392B;
  background: #FDEDEA;
  border-radius: 8px;
  padding: 10px 12px;
  line-height: 1.5;
}

/* Bevestigingspagina */
.bevestiging {
  text-align: center;
  gap: 16px;
}

.vink {
  width: 56px;
  height: 56px;
  margin: 6px auto 0;
  border: 2px solid #E8901A;
  border-radius: 28px;
  color: #E8901A;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bevestiging-titel {
  font-size: 21px;
  font-weight: 700;
  color: #1E1E1E;
}

.bevestiging-oproep {
  font-size: 18px;
  font-weight: 700;
  color: #C0392B;
  background: #FDEDEA;
  border-radius: 8px;
  padding: 14px;
  line-height: 1.4;
}

.bevestiging-email {
  font-size: 12px;
  color: #888;
  word-break: break-word;
}

.bestelnummer {
  border: 1px solid #E0D4C8;
  border-radius: 10px;
  padding: 14px;
}

.bestelnummer-label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #B08060;
  margin-bottom: 4px;
}

.bestelnummer strong {
  font-size: 30px;
  color: #1E1E1E;
  letter-spacing: 0.02em;
}

.betaal-blok {
  border: 1px solid #F0E8DF;
  border-radius: 10px;
  padding: 18px 16px;
}

.betaal-blok h2 {
  font-size: 15px;
  font-weight: 700;
  color: #1E1E1E;
  margin-bottom: 12px;
}

.qr-vlak {
  display: flex;
  justify-content: center;
  padding: 12px;
  background: #fff;
  border-radius: 8px;
}

.qr-vlak img,
.qr-vlak canvas {
  display: block;
}

.qr-fout {
  font-size: 13px;
  color: #888;
  line-height: 1.6;
}

.contant-bedrag {
  font-size: 28px;
  font-weight: 700;
  color: #E8901A;
  margin-bottom: 4px;
}

.betaal-uitleg {
  font-size: 12px;
  color: #888;
  line-height: 1.6;
  margin-top: 10px;
}

/* Stappen: wat gebeurt er nu */
.stappen-uitleg {
  text-align: left;
  border: 1px solid #F0E8DF;
  border-radius: 10px;
  padding: 18px 16px;
}

.stappen-uitleg h2 {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #B08060;
  margin-bottom: 12px;
}

.stappen-uitleg ol {
  list-style: none;
  counter-reset: stap;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stappen-uitleg li {
  counter-increment: stap;
  position: relative;
  padding-left: 34px;
}

.stappen-uitleg li::before {
  content: counter(stap);
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 12px;
  background: #E8901A;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stappen-uitleg strong {
  display: block;
  font-size: 14px;
  color: #1E1E1E;
  margin-bottom: 2px;
}

.stappen-uitleg span {
  font-size: 13px;
  color: #888;
  line-height: 1.5;
}

/* Bon */
.bon {
  text-align: left;
  border: 1px solid #F0E8DF;
  border-radius: 10px;
  padding: 18px 16px;
}

.bon h2 {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #B08060;
  margin-bottom: 12px;
}

.bon-regel {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  color: #666;
  padding: 6px 0;
}

.bon-totaal {
  border-top: 1px solid #F0E8DF;
  margin-top: 6px;
  padding-top: 10px;
  font-size: 16px;
  font-weight: 700;
  color: #1E1E1E;
}

.bewaar-tip {
  font-size: 12px;
  color: #888;
}

/* Afstand tussen de blokken binnen een pagina */
#menu,
#restVanPagina {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

#menu {
  gap: 24px;
}

.kop-titel {
  justify-content: flex-start;
}

.bestel-uitleg {
  font-size: 13px;
  color: #888;
  line-height: 1.6;
  text-align: center;
}

/* Elementen met hidden blijven echt verborgen */
[hidden] {
  display: none !important;
}

/* ===========================================================
   Baliepagina: het scherm van de kraam zelf
   =========================================================== */

.balie-body {
  background: #F7F0E8;
}

/* Het slot met de API-sleutel */
.slot {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.slot-vlak {
  width: 100%;
  max-width: 360px;
  background: #fff;
  border-radius: 12px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
}

.slot-vlak h1 {
  font-size: 20px;
  font-weight: 700;
  color: #1E1E1E;
}

.slot-vlak p {
  font-size: 13px;
  color: #888;
  line-height: 1.5;
}

.slot-vlak .veld-label {
  text-align: left;
  margin-top: 6px;
}

/* De lijst met bestellingen */
.balie {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

.balie-kop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.balie-kop h1 {
  font-size: 22px;
  font-weight: 700;
  color: #1E1E1E;
}

.balie-status {
  font-size: 12px;
  color: #B08060;
  margin-top: 2px;
}

.ververs-knop {
  border: 1px solid #E0D4C8;
  background: #fff;
  color: #B08060;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
}

.ververs-knop:hover {
  border-color: #E8901A;
  color: #E8901A;
}

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.filter {
  border: 1px solid #E0D4C8;
  background: #fff;
  color: #666;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
}

.filter span {
  background: #F0E8DF;
  color: #B08060;
  border-radius: 10px;
  padding: 1px 8px;
  font-size: 12px;
}

.filter-aan {
  background: #E8901A;
  border-color: #E8901A;
  color: #fff;
}

.filter-aan span {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
}

/* De kaarten */
.balie-lijst {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.kaart {
  background: #fff;
  border-radius: 10px;
  border-left: 5px solid #E0D4C8;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kaart-nieuw {
  border-left-color: #C0392B;
}

.kaart-betaald {
  border-left-color: #E8901A;
}

.kaart-klaar {
  border-left-color: #2E9E5B;
}

.kaart-afgehaald {
  opacity: 0.55;
}

.kaart-kop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.kaart-nummer {
  font-size: 22px;
  font-weight: 700;
  color: #1E1E1E;
}

.kaart-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: #B08060;
  background: #FFF4EA;
  border-radius: 10px;
  padding: 4px 9px;
  text-align: center;
}

.kaart-nieuw .kaart-label {
  color: #C0392B;
  background: #FDEDEA;
}

.kaart-klaar .kaart-label {
  color: #227A45;
  background: #E9F6EE;
}

.kaart-naam {
  font-size: 14px;
  color: #666;
}

.kaart-regels {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-top: 1px solid #F0E8DF;
  border-bottom: 1px solid #F0E8DF;
  padding: 10px 0;
}

.kaart-regels li {
  font-size: 15px;
  color: #1E1E1E;
  font-weight: 600;
}

.kaart-regels .aantal {
  display: inline-block;
  min-width: 28px;
  color: #E8901A;
  font-weight: 700;
}

.kaart-voet {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  color: #999;
}

.kaart-knoppen {
  display: flex;
  gap: 8px;
}

.kaart-knop {
  flex: 1;
  border: none;
  background: #E8901A;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
}

.kaart-knop:hover {
  background: #D07F10;
}

.kaart-knop:disabled {
  background: #E0D4C8;
  cursor: default;
}

@media (max-width: 520px) {
  .balie-lijst {
    grid-template-columns: 1fr;
  }
}
