/* Bestelmodule, kijkversie. Gebruikt de tokens van site/css/style.css. */

.bestel-kop { padding: 120px 0 28px; }
.bestel-kop h1 { font-size: clamp(38px, 5vw, 60px); margin-bottom: 10px; }
.bestel-kop p { color: var(--inkt-zacht); max-width: 60ch; }

.demo-balk {
  background: #fff6e0; border: 1px solid #f0d9a0; color: #6b4e00;
  border-radius: 12px; padding: 12px 16px; margin-top: 18px; font-size: 14.5px;
}

/* Gesloten-melding */
.dicht-melding {
  background: var(--navy); color: #fff; border-radius: var(--radius);
  padding: 22px 26px; margin-top: 18px;
}
.dicht-melding a { color: #9dc0ff; font-weight: 700; }

/* Twee kolommen: kaart links, mandje rechts */
.bestel-grid { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; padding-bottom: 80px; }
/* Moet hieronder staan: een eigen display-regel wint anders van het hidden-attribuut, en dan
   blijft het bestelblok staan terwijl de winkel dicht is. */
[hidden] { display: none !important; }

.cat-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.cat-nav button {
  border: 1px solid var(--lijn); background: var(--wit); color: var(--inkt);
  border-radius: 999px; padding: 8px 16px; font: inherit; font-size: 14px; cursor: pointer;
}
.cat-nav button.actief { background: var(--kobalt); border-color: var(--kobalt); color: #fff; }

.cat-blok { margin-bottom: 40px; }
.cat-blok h2 { font-size: 26px; margin-bottom: 4px; }
.cat-blok .cat-tekst { color: var(--inkt-zacht); font-size: 14.5px; margin-bottom: 14px; }

.p-rij {
  display: flex; align-items: center; gap: 14px;
  background: var(--wit); border: 1px solid var(--lijn); border-radius: 12px;
  padding: 10px 14px; margin-bottom: 8px;
}
.p-rij img { width: 56px; height: 44px; object-fit: contain; flex-shrink: 0; }
.p-rij .leeg { width: 56px; height: 44px; flex-shrink: 0; }
.p-rij .p-naam { flex: 1; font-weight: 600; }
.p-rij .p-prijs { font-weight: 700; white-space: nowrap; }
.p-rij button {
  border: 0; background: var(--kobalt); color: #fff; border-radius: 999px;
  width: 34px; height: 34px; font-size: 20px; line-height: 1; cursor: pointer; flex-shrink: 0;
}
.p-rij button:hover { background: var(--kobalt-diep); }
/* Uitgezet door de zaak (op): grijs, en de knop zegt "Op" in plaats van "+". */
.p-rij.is-op { opacity: .6; }
.p-rij.is-op .p-naam, .p-rij.is-op .p-prijs { text-decoration: line-through; }
.p-rij.is-op button, .sug.is-op .sug-plus, .saus-rij.is-op .sug-plus {
  background: var(--lijn); color: var(--inkt-zacht); cursor: not-allowed; width: auto; padding: 0 12px; font-size: 14px; font-weight: 700;
}
.op-melding { background: #fff4d6; border: 2px solid #e0a800; border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; font-size: 14.5px; }
.op-melding button { margin-left: 8px; border: 1px solid var(--lijn); background: var(--wit); border-radius: 999px; padding: 4px 12px; font: inherit; font-size: 13.5px; cursor: pointer; }

/* Mandje */
.mandje {
  position: sticky; top: 96px;
  background: var(--wit); border: 1px solid var(--lijn); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--schaduw);
}
.mandje h3 { font-size: 20px; margin-bottom: 12px; }
.mandje .leeg-tekst { color: var(--inkt-zacht); font-size: 14.5px; }
.m-rij { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--lijn); font-size: 14.5px; }
.m-rij .m-naam { flex: 1; }
.m-rij .m-extra { display: block; color: var(--inkt-zacht); font-size: 13px; }
.m-rij .m-prijs { font-weight: 700; white-space: nowrap; }
.m-rij.m-som { border-bottom: 0; padding: 8px 0 0; }
.kosten-uitleg { margin: -2px 0 6px; font-size: 12.5px; color: var(--grijs, #5b6472); }

/* Vrijwillige fooi: keuzerondjes, standaard staat "Geen fooi" aan. */
.fooi { border: 1px solid var(--lijn); border-radius: 12px; padding: 12px 16px 14px; margin: 16px 0 6px; }
.fooi legend { font-weight: 700; font-size: 15px; padding: 0 6px; }
.fooi-keuzes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.fooi-optie { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--lijn); border-radius: 999px; padding: 8px 14px; font-size: 14.5px; cursor: pointer; }
.fooi-optie[hidden] { display: none; }
.fooi-optie:has(input:checked) { border-color: var(--kobalt); background: #eef2fd; font-weight: 700; }
.m-rij .m-weg { border: 0; background: none; color: var(--inkt-zacht); cursor: pointer; font-size: 16px; padding: 0 2px; }
.m-totaal { display: flex; justify-content: space-between; font-weight: 700; font-size: 17px; padding-top: 14px; }

.veld { margin-top: 14px; }
.veld label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 5px; }
.veld input, .veld select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--lijn); border-radius: 10px;
  font: inherit; font-size: 15px; background: #fff; color: var(--inkt);
}
.veld .fout { color: #b00020; font-size: 13px; margin-top: 4px; }
.veld-uitleg { color: var(--inkt-zacht); font-size: 13px; margin-top: 4px; }

.knop-vol {
  display: block; width: 100%; text-align: center; margin-top: 16px;
  background: var(--kobalt); color: #fff; border: 0; border-radius: 999px;
  padding: 14px; font: inherit; font-weight: 700; font-size: 15.5px; cursor: pointer;
}
.knop-vol:hover { background: var(--kobalt-diep); }
.knop-vol:disabled { background: #b9c6dd; cursor: not-allowed; }

/* Sauspopup */
.overlay {
  position: fixed; inset: 0; background: rgba(18, 42, 77, .45);
  display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 100;
}
.popup {
  background: var(--wit); border-radius: var(--radius); padding: 26px;
  max-width: 460px; width: 100%; max-height: 86vh; overflow-y: auto; box-shadow: var(--schaduw);
}
.popup h3 { font-size: 22px; margin-bottom: 4px; }
.popup .popup-tekst { color: var(--inkt-zacht); font-size: 14.5px; margin-bottom: 16px; }
.saus-lijst { display: grid; gap: 6px; margin-bottom: 16px; }
.saus-lijst label {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border: 1px solid var(--lijn); border-radius: 10px; cursor: pointer; font-size: 15px;
}
.saus-lijst label:has(input:checked) { border-color: var(--kobalt); background: #f2f6ff; }
.saus-lijst .bij { margin-left: auto; color: var(--inkt-zacht); font-size: 13.5px; }
.popup-knoppen { display: flex; gap: 10px; }
.popup-knoppen button { flex: 1; border-radius: 999px; padding: 12px; font: inherit; font-weight: 700; cursor: pointer; }
.popup-knoppen .annuleer { background: none; border: 1.5px solid var(--lijn); color: var(--inkt); }
.popup-knoppen .bevestig { background: var(--kobalt); border: 0; color: #fff; }

/* Bevestiging */
.klaar { text-align: center; padding: 140px 0 100px; }
.klaar .vink {
  width: 64px; height: 64px; border-radius: 50%; background: var(--kobalt); color: #fff;
  display: grid; place-items: center; font-size: 32px; margin: 0 auto 20px;
}
.klaar h1 { font-size: clamp(32px, 4vw, 46px); margin-bottom: 10px; }
.klaar p { color: var(--inkt-zacht); }
.klaar .bon {
  text-align: left; max-width: 420px; margin: 26px auto 0;
  background: var(--wit); border: 1px solid var(--lijn); border-radius: var(--radius); padding: 20px;
}

@media (max-width: 900px) {
  .bestel-grid { grid-template-columns: 1fr; }
  .mandje { position: static; }
}

@media (max-width: 560px) {
  /* Deze pagina heeft een link naar Bestellen extra in de balk, en dan duwt de belknop op een
     telefoon buiten beeld. Home mag weg: het logo linksboven gaat al naar de homepagina. */
  .nav-links a[href$="index.html"]:not(.nav-cta) { display: none; }
}

/* ---- Mandje op de kaartpagina: lijst scrolt zelf, totaal en "Ga verder" blijven in beeld ---- */
.mandje { display: flex; flex-direction: column; max-height: calc(100vh - 120px); }
.mandje-lijst { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.mandje-voet { flex-shrink: 0; border-top: 1px solid var(--lijn); margin-top: 6px; padding-top: 2px; }
.mandje-voet .m-totaal { padding-top: 12px; }

/* Vaste balk onderaan, alleen op een telefoon */
.mandje-balk {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--wit); border-top: 1px solid var(--lijn); box-shadow: 0 -6px 20px rgba(18, 42, 77, .12);
  padding: 10px 16px; align-items: center; gap: 14px;
}
.mandje-balk span { flex: 1; font-weight: 700; }
.mandje-balk .knop-vol { margin: 0; width: auto; padding: 12px 22px; }

/* ---- Pagina "Je bestelling" ---- */
.terug { color: var(--kobalt); font-weight: 700; }
.afrek-grid { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; padding-bottom: 80px; }
.afrek-kaart { position: sticky; top: 96px; max-height: none; }
.blok { background: var(--wit); border: 1px solid var(--lijn); border-radius: var(--radius); padding: 22px; margin-bottom: 22px; }
.blok h2 { font-size: 24px; margin-bottom: 8px; }
.blok .mandje-lijst { max-height: none; overflow: visible; }

.suggesties { display: grid; gap: 8px; margin-top: 6px; }
.sug { display: flex; align-items: center; gap: 14px; border: 1px solid var(--lijn); border-radius: 12px; padding: 10px 14px; }
.sug img { width: 56px; height: 44px; object-fit: contain; flex-shrink: 0; }
.sug .leeg { width: 56px; height: 44px; flex-shrink: 0; }
.sug-tekst { flex: 1; display: flex; flex-direction: column; }
.sug-naam { font-weight: 600; }
.sug-aantal { font-size: 13px; color: var(--kobalt); font-weight: 700; min-height: 1em; }
.sug-prijs { font-weight: 700; white-space: nowrap; }
.sug-plus {
  border: 0; background: var(--kobalt); color: #fff; border-radius: 999px;
  width: 34px; height: 34px; font-size: 20px; line-height: 1; cursor: pointer; flex-shrink: 0;
}
.sug-plus:hover { background: var(--kobalt-diep); }

@media (max-width: 900px) {
  .mandje { max-height: none; }
  .mandje-voet { display: none; }              /* de knop zit dan in de vaste balk onderaan */
  .mandje-balk { display: flex; }
  #hoofd { padding-bottom: 76px; }
  .afrek-grid { grid-template-columns: 1fr; }
  .afrek-kaart { position: static; }
}

/* ---- Kaart "Saus" en de lijst met alle sauzen ---- */
.sug-icoon {
  width: 56px; height: 44px; flex-shrink: 0; display: grid; place-items: center;
  color: var(--kobalt); background: #f2f6ff; border-radius: 10px;
}
.sug-onder { font-size: 13px; color: var(--inkt-zacht); }
.saus-kies { display: grid; gap: 6px; margin-bottom: 16px; max-height: 50vh; overflow-y: auto; }
.saus-rij { display: flex; align-items: center; gap: 12px; border: 1px solid var(--lijn); border-radius: 10px; padding: 8px 12px; }
.saus-naam { flex: 1; font-size: 15px; }
.saus-aantal { color: var(--kobalt); font-weight: 700; }
.saus-prijs { font-weight: 700; white-space: nowrap; font-size: 15px; }
