:root {
  --sky: #e4f1f1;
  --sky-deep: #c9e2e3;
  --ink: #1d1a2e;
  --ink-soft: #4d4860;
  --pink: #f08f95;
  --pink-deep: #b83c3a;
  --blue: #5f9da2;
  --lemon: #ffd23f;
  --paper: #ffffff;
  --radius-big: 22px;
  --radius-small: 12px;
  --comic-shadow: 6px 6px 0 var(--ink);
  --font: "Bricolage Grotesque", system-ui, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--sky);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.5;
  padding-bottom: 5rem;
}

h1, h2, h3 { margin: 0; line-height: 1.1; }
h2 { font-size: clamp(2rem, 6vw, 3rem); font-weight: 800; font-stretch: 80%; }
h3 { font-size: 1.25rem; font-weight: 700; }

:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }

img { max-width: 100%; display: block; }

.hero, .aanbod, .bestellen, .voet {
  max-width: 1080px;
  margin: 0 auto;
  padding-inline: 16px;
}

/* Hero */
.hero {
  display: grid;
  gap: 1.5rem;
  padding-block: 2.5rem 3rem;
  align-items: center;
}
@media (min-width: 760px) {
  .hero { grid-template-columns: 1.3fr 1fr; padding-block: 4rem; }
}

.visueel-verborgen {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.logo { display: block; width: min(100%, 340px); height: auto; animation: plop 600ms cubic-bezier(.3, 1.5, .5, 1) both; }
@keyframes plop {
  from { opacity: 0; transform: scale(.6) rotate(-12deg); }
}

.intro { max-width: 34rem; font-size: 1.2rem; margin: 1.25rem 0 1.75rem; }

.hero-rat { margin: 0; justify-self: center; width: min(72%, 380px); position: relative; }
@media (min-width: 760px) { .hero-rat { width: min(100%, 380px); } }
.hero-rat img {
  width: 100%;
  height: auto;
  border: 4px solid var(--ink);
  border-radius: var(--radius-big);
  box-shadow: var(--comic-shadow);
  transform: rotate(2deg);
}
.ballon {
  position: absolute;
  top: -4%;
  left: -8%;
  z-index: 1;
  margin: 0;
  background: var(--paper);
  border: 4px solid var(--ink);
  border-radius: 999px;
  padding: 0.6rem 1.1rem;
  font-weight: 800;
  font-size: 1.15rem;
  transform: rotate(-6deg);
  box-shadow: 4px 4px 0 var(--ink);
}
.ballon::after {
  content: "";
  position: absolute;
  right: 22%;
  bottom: -18px;
  border: 10px solid transparent;
  border-top: 14px solid var(--ink);
  border-left: 4px solid transparent;
}

/* Buttons */
.button {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  border: 0;
  border-radius: 999px;
  padding: 0.8rem 1.5rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--pink-deep); }
.button:disabled { opacity: 0.6; cursor: progress; }
.button-groot { width: 100%; font-size: 1.15rem; padding-block: 1rem; background: var(--pink-deep); }
.button-groot:hover { background: var(--ink); }

/* Aanbod */
.aanbod { padding-block: 1rem 3rem; }
.aanbod-kop { display: flex; flex-wrap: wrap; gap: 1rem; align-items: end; justify-content: space-between; margin-bottom: 1.5rem; }

.status { color: var(--ink-soft); }
.status:empty { display: none; }

.producten {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}

.product {
  position: relative;
  background: var(--paper);
  border: 4px solid var(--ink);
  border-radius: var(--radius-big);
  box-shadow: var(--comic-shadow);
  padding: 0.75rem 0.75rem 1.25rem;
  display: flex;
  flex-direction: column;
}
.product-foto {
  aspect-ratio: 4 / 3;
  border: 3px solid var(--ink);
  border-radius: calc(var(--radius-big) - 10px);
  overflow: hidden;
  background: var(--sky-deep);
}
.product-foto img { width: 100%; height: 100%; object-fit: cover; }

.prijs {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--lemon);
  border: 3px solid var(--ink);
  font-weight: 800;
  font-size: 1.05rem;
  transform: rotate(10deg);
}

.product-tekst { padding: 1rem 0.5rem 0; flex: 1; }
.product-tekst p { margin: 0.35rem 0 0; color: var(--ink-soft); font-size: 0.98rem; }

.teller { display: flex; align-items: center; gap: 0.5rem; padding: 1rem 0.5rem 0; }
.teller button {
  font: inherit;
  font-weight: 800;
  font-size: 1.3rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  line-height: 1;
}
.teller button.toevoegen {
  width: auto;
  border-radius: 999px;
  padding-inline: 1.25rem;
  font-size: 1rem;
  background: var(--ink);
  color: var(--paper);
}
.teller button:disabled { opacity: 0.35; cursor: default; }
.teller output { min-width: 2ch; text-align: center; font-weight: 800; font-size: 1.2rem; }

/* Bestellen */
.bestellen { padding-block: 2rem 3rem; scroll-margin-top: 1rem; }
#bestel-blok { display: grid; gap: 1.5rem; }
#bestel-blok h2 { margin-bottom: 0.25rem; }
@media (min-width: 820px) {
  #bestel-blok { grid-template-columns: 1fr 1.2fr; column-gap: 2.5rem; }
  #bestel-blok h2 { grid-column: 1 / -1; }
}

.mandje {
  background: var(--ink);
  box-shadow: 6px 6px 0 var(--blue);
  color: var(--paper);
  border-radius: var(--radius-big);
  padding: 1.5rem;
  align-self: start;
}
.mandje-leeg { color: #d9cfe2; }
.mandje-lijst { list-style: none; margin: 1rem 0; padding: 0; }
.mandje-lijst li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.5rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
}
.mandje-totaal { display: flex; justify-content: space-between; font-size: 1.3rem; margin: 1rem 0 0.25rem; }
.mandje-totaal strong { color: var(--lemon); }
.klein { font-size: 0.9rem; color: #d9cfe2; margin: 0; }

.formulier { display: grid; gap: 1rem; }
.formulier label { display: grid; gap: 0.3rem; font-weight: 600; }
.optioneel { font-weight: 400; color: var(--ink-soft); }
.formulier input, .formulier textarea {
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius-small);
  padding: 0.7rem 0.85rem;
  width: 100%;
}
.formulier input:focus-visible, .formulier textarea:focus-visible { outline-offset: 1px; }
.formulier [aria-invalid="true"] { border-color: var(--pink-deep); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.fout {
  margin: 0;
  background: #ffe0ea;
  color: #8a1340;
  border-left: 6px solid var(--pink-deep);
  border-radius: var(--radius-small);
  padding: 0.75rem 1rem;
  font-weight: 600;
}

.bedankt {
  background: var(--paper);
  border: 4px solid var(--ink);
  box-shadow: var(--comic-shadow);
  border-radius: var(--radius-big);
  padding: 2rem 1.5rem;
  max-width: 40rem;
}
.bedankt p { font-size: 1.15rem; margin: 1rem 0 1.5rem; }
.bedankt:focus { outline: none; }

/* Mandje-balk */
.mandje-balk {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0.85rem 0.85rem 1.25rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(43, 26, 58, 0.3);
}
.mandje-balk[hidden] { display: none; }
.mandje-balk-actie {
  background: var(--lemon);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-weight: 800;
  white-space: nowrap;
}

.voet { padding-block: 2rem; color: var(--ink-soft); font-weight: 700; }
