/* ═══════════════════════════════════════════════════════════════════
   Keuken Suite — Shared CSS
   Geladen door alle pagina's. Gecached na eerste request.
   Bevat: reset, fonts, gedeelde utilities, touch optimalisaties.
   ═══════════════════════════════════════════════════════════════════ */

/* ── RESET ──────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

/* ── FONTS ──────────────────────────────────────────────────────── */
/* Playfair Display + DM Sans via Google Fonts met display=swap */
/* De @import staat hier zodat alle pagina's hetzelfde font laden */

/* ── TOUCH OPTIMALISATIES ───────────────────────────────────────── */
button, a, [onclick], [ontouchstart],
input[type="button"], input[type="submit"] {
  touch-action: manipulation;
  cursor: pointer;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* ── INPUT ZOOM PREVENTIE (Android + iOS) ───────────────────────── */
/* Font-size >= 16px voorkomt automatisch inzoomen bij focus */
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
select,
textarea {
  font-size: 16px;
}

/* ── SCROLLBAR VERBERGEN ────────────────────────────────────────── */
.hide-scroll { scrollbar-width: none; }
.hide-scroll::-webkit-scrollbar { display: none; }

/* ── TOAST NOTIFICATIE (gedeeld patroon) ────────────────────────── */
.ks-toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #2C2520;
  color: #F7F4EF;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  z-index: 9999;
  opacity: 0;
  transition: opacity .25s, transform .25s;
  pointer-events: none;
  white-space: nowrap;
  max-width: calc(100vw - 32px);
  text-align: center;
}
.ks-toast.on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.ks-toast.success { background: #3a6a3a; }
.ks-toast.error   { background: #7A4A4A; }
.ks-toast.warning { background: #8C6B3A; }

/* ── SAFE AREA INSETS (iOS notch/dynamic island) ────────────────── */
.safe-top    { padding-top:    env(safe-area-inset-top,    0px); }
.safe-bottom { padding-bottom: env(safe-area-inset-bottom, 0px); }

/* ── UTILITY ────────────────────────────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── LOADING DOTS ANIMATIE ──────────────────────────────────────── */
.ks-dots { display: inline-flex; gap: 5px; align-items: center; }
.ks-dots span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: .3;
  animation: ksDot 1.2s ease-in-out infinite;
}
.ks-dots span:nth-child(2) { animation-delay: .2s; }
.ks-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes ksDot {
  0%, 80%, 100% { opacity: .3; transform: scale(1); }
  40%           { opacity: 1;  transform: scale(1.2); }
}

/* ── PRINT ──────────────────────────────────────────────────────── */
@media print {
  .no-print, nav, .mob-nav, .hdr-tabs, button { display: none !important; }
  body { background: white !important; color: black !important; }
}
