/* ==========================================================================
   Alpha Planten Demo – app-stijl (mobile-first, iPhone safe areas)
   ========================================================================== */

@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/CormorantGaramond-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/CormorantGaramond-Bold.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/Montserrat-Regular.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/Montserrat-Medium.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/Montserrat-SemiBold.woff2") format("woff2"); }

:root {
  --c-dark: #142B1C;
  --c-dark-2: #1B3A25;
  --c-dark-3: #234A2E;
  --c-dark-4: #2B5636;
  --c-green: #4B8955;
  --c-green-hover: #3F7A49;
  --c-sage: #A9C9A6;
  --c-light: #E5EEE5;
  --c-off: #F5F8F5;
  --c-panel: #F0F5F0;
  --c-white: #FFFFFF;
  --c-ink: #26313A;
  --c-muted: #6B7770;
  --c-faint: #9AA49E;
  --c-line: #DCE5DC;
  --c-danger: #B2473B;
  --c-danger-bg: #FBEAE7;
  --c-warn: #B7791F;
  --c-warn-bg: #FCF3E3;
  --c-ok-bg: #E3F0E4;

  --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font-body: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --shadow-sm: 0 1px 2px rgba(20, 43, 28, .05), 0 2px 8px rgba(20, 43, 28, .05);
  --shadow: 0 2px 6px rgba(20, 43, 28, .05), 0 10px 28px rgba(20, 43, 28, .08);
  --shadow-lg: 0 24px 60px rgba(20, 43, 28, .22);

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --gutter: 22px;
  --tabbar-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--c-dark); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--c-ink);
  background: var(--c-off);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85em; background: var(--c-light); padding: .1em .35em; border-radius: 6px; word-break: break-all; }
:focus-visible { outline: 3px solid rgba(75, 137, 85, .55); outline-offset: 2px; }

.icon { width: 22px; height: 22px; flex: none; }

/* -------------------------------------------------------------- App frame */
.app {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--c-off);
  display: flex;
  flex-direction: column;
}

/* Desktop: gecentreerde mobiele preview */
@media (min-width: 640px) {
  html { background: #DDE7DD; }
  body {
    background:
      radial-gradient(1200px 600px at 10% -10%, rgba(75, 137, 85, .18), transparent 60%),
      radial-gradient(900px 600px at 110% 110%, rgba(20, 43, 28, .16), transparent 60%),
      #DDE7DD;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
  }
  .app {
    width: 412px;
    height: min(892px, calc(100vh - 56px));
    min-height: 0;
    border-radius: 46px;
    overflow-x: hidden;
    overflow-y: auto;
    box-shadow: 0 0 0 10px #0F1F14, 0 0 0 11px #2E3D33, var(--shadow-lg);
    scrollbar-width: none;
    --safe-top: 22px;
    --safe-bottom: 12px;
  }
  .app::-webkit-scrollbar { display: none; }
}

/* ------------------------------------------------------------- Typografie */
.display { font-family: var(--font-display); font-weight: 700; letter-spacing: -.01em; line-height: 1.02; color: var(--c-ink); }
.display em { font-style: normal; color: var(--c-green); }
.display--xl { font-size: 46px; }
.display--lg { font-size: 34px; line-height: 1.08; }
.display--md { font-size: 26px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); }
.eyebrow--light { color: var(--c-sage); }
.lead { font-size: 15.5px; line-height: 1.6; color: #3F4A52; }
.muted { color: var(--c-muted); }
.small { font-size: 12.5px; }
.center { text-align: center; }
.text-link { color: var(--c-green); font-weight: 600; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 0; }
.link-btn { background: none; border: 0; color: var(--c-green); font-weight: 600; padding: 4px 0; text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------- Hero (dark) */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--c-white);
  background:
    radial-gradient(120% 80% at 85% 0%, rgba(75, 137, 85, .22), transparent 60%),
    radial-gradient(90% 70% at 0% 100%, rgba(0, 0, 0, .25), transparent 60%),
    var(--c-dark);
  padding: calc(var(--safe-top) + 14px) var(--gutter) 64px;
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
  min-height: 300px;
}
.hero::after { /* subtiele korrel */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: radial-gradient(rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 3px 3px;
}
.hero__bar { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; min-height: 52px; }
.hero__content { position: relative; z-index: 2; margin-top: auto; padding-top: 40px; }
.hero .display { color: var(--c-white); }
.hero .display em { color: var(--c-sage); }
.hero__sub { margin-top: 12px; font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, .92); }
.hero__leaf, .topbar__leaf, .dash-header__leaf {
  position: absolute; color: rgba(169, 201, 166, .14); pointer-events: none; z-index: 1;
}
.hero__leaf { width: 330px; height: 330px; right: -70px; top: -40px; transform: rotate(-6deg); }
.hero__leaf .leaf-fill, .topbar__leaf .leaf-fill, .dash-header__leaf .leaf-fill { fill: rgba(169, 201, 166, .05); }

.icon-btn {
  position: relative;
  width: 52px; height: 52px;
  display: inline-grid; place-items: center;
  border-radius: 50%;
  background: var(--c-white);
  color: var(--c-ink);
  border: 0;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
  transition: transform .15s ease;
}
.icon-btn:active { transform: scale(.94); }
.icon-btn .icon { width: 24px; height: 24px; stroke-width: 2; }
.icon-btn--glass { width: 46px; height: 46px; background: rgba(255, 255, 255, .1); color: var(--c-white); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.icon-btn--soft { width: 42px; height: 42px; background: var(--c-light); color: var(--c-green); box-shadow: none; }
.icon-btn--soft.is-on .icon { fill: currentColor; }

/* ------------------------------------------------------------ Panel (sheet) */
.panel {
  position: relative;
  z-index: 3;
  margin-top: -30px;
  background: var(--c-panel);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 30px var(--gutter) calc(var(--safe-bottom) + 28px);
  flex: 0 0 auto;
}
.panel--auth { padding-top: 36px; }

/* ------------------------------------------------------------------ Forms */
.form { display: grid; gap: 22px; }
.field { display: grid; gap: 10px; }
.field__label { font-weight: 600; font-size: 15px; color: var(--c-ink); }
.input {
  width: 100%;
  height: 60px;
  padding: 0 20px;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  background: var(--c-white);
  font-size: 16px; /* voorkomt inzoomen op iOS */
  box-shadow: var(--shadow-sm);
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: var(--c-faint); }
.input:focus { outline: none; border-color: var(--c-green); box-shadow: 0 0 0 4px rgba(75, 137, 85, .14); }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 60px; }
.input-wrap__btn {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border: 0; background: none; color: #8B958F; display: grid; place-items: center; border-radius: 12px;
}
.input-wrap__btn .when-shown { display: none; }
.input-wrap__btn[aria-pressed="true"] .when-shown { display: block; }
.input-wrap__btn[aria-pressed="true"] .when-hidden { display: none; }
.form__aside { display: flex; justify-content: flex-end; margin-top: -8px; }

/* ---------------------------------------------------------------- Buttons */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px;
  padding: 0 24px;
  border-radius: 14px;
  border: 0;
  font-weight: 600;
  font-size: 16.5px;
  text-decoration: none;
  transition: background-color .15s, transform .12s, opacity .15s;
  -webkit-user-select: none; user-select: none;
}
.btn:active { transform: scale(.985); }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn--block { width: 100%; }
.btn--primary { background: var(--c-green); color: var(--c-white); box-shadow: 0 8px 20px rgba(75, 137, 85, .28); }
.btn--primary:hover { background: var(--c-green-hover); }
.btn--secondary { background: var(--c-white); color: var(--c-ink); box-shadow: var(--shadow-sm), inset 0 0 0 1.5px var(--c-line); }
.btn--ghost { background: transparent; color: var(--c-ink); min-height: 50px; }
.btn--danger { color: var(--c-danger); }
.btn--arrow { justify-content: space-between; padding: 0 26px; }
.btn--arrow .icon { width: 26px; height: 26px; stroke-width: 1.8; }
.btn .spinner { display: none; }
.btn.is-loading .btn__label { opacity: .4; }
.btn.is-loading .spinner { display: block; position: absolute; right: 20px; }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.actions { display: grid; gap: 8px; margin-top: 26px; }
.actions--stack { margin: 18px 0; }

/* ------------------------------------------------------------ Alerts/hints */
.alert {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 14px 16px; border-radius: var(--radius);
  font-size: 14px; font-weight: 500; line-height: 1.45;
  margin-bottom: 20px;
}
.alert .icon { width: 20px; height: 20px; margin-top: 1px; }
.alert--error { background: var(--c-danger-bg); color: var(--c-danger); }
.alert--inset { margin: 0 0 18px; }
.install-hint {
  display: flex; align-items: center; gap: 12px;
  background: var(--c-white); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 22px;
  box-shadow: var(--shadow-sm); font-size: 13.5px; line-height: 1.4;
}
.install-hint__icon { width: 38px; height: 38px; border-radius: 12px; background: var(--c-light); color: var(--c-green); display: grid; place-items: center; flex: none; }
.install-hint__text { flex: 1; }
.install-hint__text strong { display: block; }

/* ------------------------------------------------------- Onboarding (bell) */
.hero--bell { min-height: 420px; align-items: stretch; padding-bottom: 80px; }
.rings { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.rings span {
  position: absolute; left: 50%; top: 50%;
  border-radius: 50%; transform: translate(-50%, -50%);
}
.rings span { aspect-ratio: 1; }
.rings span:nth-child(1) { width: 128%; background: var(--c-dark-2); }
.rings span:nth-child(2) { width: 104%; background: var(--c-dark-3); }
.rings span:nth-child(3) { width: 80%; background: var(--c-dark-4); }
.page--onboarding .rings span:nth-child(1) { animation: breathe 6s ease-in-out infinite; }
.page--onboarding .rings span:nth-child(2) { animation: breathe 6s ease-in-out .4s infinite; }
@keyframes breathe { 50% { transform: translate(-50%, -50%) scale(1.025); } }
.bell-mark {
  position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 132px; height: 132px; color: #B6D1B2;
}
.bell-mark svg { width: 100%; height: 100%; }
.bell-mark > svg:first-child { animation: ring 4.5s ease-in-out 1s infinite; transform-origin: 50% 20%; }
.bell-mark__check { position: absolute; inset: 0; opacity: 0; transform: scale(.6); transition: opacity .35s, transform .35s; }
@keyframes ring { 0%, 70%, 100% { transform: rotate(0); } 74% { transform: rotate(10deg); } 78% { transform: rotate(-9deg); } 82% { transform: rotate(6deg); } 86% { transform: rotate(-4deg); } 90% { transform: rotate(0); } }
body[data-push-state="success"] .bell-mark > svg:first-child { opacity: 0; transform: scale(.7); transition: opacity .3s, transform .3s; animation: none; }
body[data-push-state="success"] .bell-mark__check { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rings span, .bell-mark > svg:first-child { animation: none !important; } }

.dots { display: flex; gap: 6px; align-items: center; margin-bottom: 22px; }
.dots span { width: 12px; height: 12px; border-radius: 6px; background: #D8DEDA; }
.dots span:first-child { background: var(--c-green); }
.dots span.is-active { width: 42px; background: var(--c-green); }
.panel--onboarding .display { margin-bottom: 16px; }

/* Onboarding-statussen */
.state { display: none; }
#onboarding[data-state="checking"] .state--checking,
#onboarding[data-state="idle"] .state--idle,
#onboarding[data-state="working"] .state--working,
#onboarding[data-state="success"] .state--success,
#onboarding[data-state="install"] .state--install,
#onboarding[data-state="denied"] .state--denied,
#onboarding[data-state="unsupported"] .state--unsupported,
#onboarding[data-state="error"] .state--error { display: block; }
#onboarding[data-state="checking"] .actions { visibility: hidden; }
#onboarding[data-state="unsupported"] [data-only-error] { display: none; }

/* ----------------------------------------------------------------- Steps */
.steps { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 12px; counter-reset: s; }
.steps li { display: flex; align-items: center; gap: 14px; font-size: 14.5px; line-height: 1.4; }
.steps small { display: block; color: var(--c-muted); font-size: 12.5px; margin-top: 2px; }
.steps__icon { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--c-white); color: var(--c-green); box-shadow: var(--shadow-sm); flex: none; }
.steps--compact { margin: 16px 0 4px; }

/* ------------------------------------------------------------ Bottom sheet */
.sheet-overlay {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(10, 22, 14, .45);
  display: flex; align-items: flex-end; justify-content: center;
  animation: fade .2s ease;
}
.bottom-sheet {
  width: 100%; max-width: 430px;
  background: var(--c-panel);
  border-radius: 28px 28px 0 0;
  padding: 10px var(--gutter) calc(var(--safe-bottom) + 22px);
  box-shadow: var(--shadow-lg);
  animation: slide-up .28s cubic-bezier(.2, .8, .2, 1);
  max-height: 92vh; overflow: auto;
}
.bottom-sheet__grip { width: 40px; height: 5px; border-radius: 3px; background: #C9D3CB; margin: 4px auto 18px; }
.bottom-sheet__title { font-size: 30px; margin-bottom: 8px; }
@keyframes fade { from { opacity: 0; } }
@keyframes slide-up { from { transform: translateY(100%); } }

/* ------------------------------------------------------------------ Toast */
.toast {
  position: fixed; z-index: 60; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--safe-bottom) + var(--tabbar-h) + 18px);
  width: max-content; max-width: min(380px, calc(100vw - 32px));
  background: var(--c-dark); color: var(--c-white);
  padding: 13px 18px; border-radius: 14px; font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: toast-in .25s ease;
}
.toast.is-error { background: var(--c-danger); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 10px); } }

/* ------------------------------------------------------- Dashboard header */
.dash-header {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(75, 137, 85, .25), transparent 55%),
    var(--c-dark);
  color: var(--c-white);
  padding: calc(var(--safe-top) + 12px) var(--gutter) 26px;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}
.dash-header__leaf { width: 280px; height: 280px; right: -90px; top: 30px; transform: rotate(18deg); }
.dash-header__row, .dash-header__greeting, .dash-header .search { position: relative; z-index: 2; }
.dash-header__row { display: flex; align-items: center; justify-content: space-between; min-height: 52px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { width: 36px; height: 36px; border-radius: 11px; background: var(--c-green); display: grid; place-items: center; }
.brand__mark .icon { width: 20px; height: 20px; color: #fff; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: .01em; }
.brand__name em { font-style: normal; color: var(--c-sage); }
.dash-header__greeting { margin-top: 22px; }
.dash-header__greeting .eyebrow { color: var(--c-sage); letter-spacing: .04em; text-transform: none; font-size: 14px; font-weight: 500; }
.dash-header .display { color: var(--c-white); font-size: 42px; margin-top: 2px; }
.dash-header .display em { font-size: .7em; }
.dash-header__meta { margin-top: 8px; font-size: 13px; color: rgba(255, 255, 255, .7); }
.search {
  margin-top: 20px;
  display: flex; align-items: center; gap: 12px;
  height: 52px; padding: 0 18px;
  border-radius: 14px; background: rgba(255, 255, 255, .1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .7); text-decoration: none; font-size: 14.5px;
}
.search .icon { width: 20px; height: 20px; }

.badge {
  position: absolute; top: -4px; right: -6px;
  min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 10px; background: #E0564A; color: #fff;
  font-size: 11px; font-weight: 600; line-height: 19px; text-align: center;
  box-shadow: 0 0 0 2px var(--c-white);
}
.badge--dot { top: 4px; right: 2px; box-shadow: 0 0 0 2px var(--c-dark); }

/* --------------------------------------------------------- Content/secties */
.content { padding: 22px var(--gutter) 28px; flex: 1 0 auto; }
.content--sheet { position: relative; z-index: 3; margin-top: -26px; background: var(--c-off); border-radius: var(--radius-xl) var(--radius-xl) 0 0; padding-top: 26px; }
.section { margin-top: 30px; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }

.push-cta {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; margin-bottom: 18px;
  background: var(--c-white); border-radius: var(--radius-lg); text-decoration: none;
  box-shadow: var(--shadow); border: 1.5px solid #CFE1CF;
}
.push-cta__icon { width: 44px; height: 44px; border-radius: 14px; background: var(--c-light); color: var(--c-green); display: grid; place-items: center; flex: none; }
.push-cta__text { flex: 1; font-size: 14.5px; line-height: 1.35; }
.push-cta__text strong { display: block; }
.push-cta__text small { color: var(--c-muted); font-size: 12.5px; }
.push-cta__go { color: var(--c-green); }

.liveshop {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: linear-gradient(135deg, var(--c-green), #3B6F45);
  color: #fff; border-radius: var(--radius-lg); padding: 18px 20px;
  box-shadow: 0 12px 26px rgba(75, 137, 85, .3);
}
.liveshop__title { font-size: 16px; margin-top: 2px; }
.liveshop__pill { display: inline-flex; gap: 6px; align-items: center; background: rgba(255, 255, 255, .16); padding: 7px 12px; border-radius: 20px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.liveshop__pill .icon { width: 16px; height: 16px; }

/* Productkaarten */
.carousel {
  display: flex; gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
  margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 18px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.carousel::-webkit-scrollbar { display: none; }
.product {
  flex: 0 0 172px; scroll-snap-align: start;
  background: var(--c-white); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow);
}
.product__media { position: relative; aspect-ratio: 1; background: var(--c-light); }
.product__media img { width: 100%; height: 100%; object-fit: cover; }
.product__tag { position: absolute; left: 10px; top: 10px; background: var(--c-dark); color: #fff; font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 8px; }
.product__fav { position: absolute; right: 8px; top: 8px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: var(--c-ink); display: grid; place-items: center; }
.product__fav .icon { width: 18px; height: 18px; }
.product__body { padding: 12px 14px 14px; }
.product__name { font-size: 14px; font-weight: 600; line-height: 1.3; min-height: 2.6em; }
.product__name span { color: var(--c-green); }
.product__meta, .product__unit { font-size: 12px; color: var(--c-muted); margin-top: 3px; }
.product__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.price { display: flex; flex-direction: column; line-height: 1.15; }
.price strong { font-size: 16px; }
.price s { font-size: 12px; color: var(--c-faint); }
.add-btn { width: 36px; height: 36px; border-radius: 12px; border: 0; background: var(--c-green); color: #fff; display: grid; place-items: center; }
.add-btn .icon { width: 18px; height: 18px; stroke-width: 2.4; }

/* Categorieën */
.categories { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.category {
  position: relative; display: flex; flex-direction: column;
  background: var(--c-white); border-radius: var(--radius-lg); overflow: hidden;
  text-decoration: none; box-shadow: var(--shadow);
}
.category img { width: 100%; aspect-ratio: 10 / 7; object-fit: cover; background: var(--c-light); }
.category__body { padding: 12px 14px 14px; display: flex; flex-direction: column; }
.category__title { font-weight: 600; font-size: 15px; }
.category__count { font-size: 12px; color: var(--c-muted); }
.category__arrow { position: absolute; right: 12px; bottom: 16px; width: 30px; height: 30px; border-radius: 50%; background: var(--c-light); color: var(--c-green); display: grid; place-items: center; }
.category__arrow .icon { width: 16px; height: 16px; stroke-width: 2.2; }

/* ----------------------------------------------------------------- Tabbar */
.tabbar {
  position: sticky; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 6px max(8px, var(--safe-left)) calc(var(--safe-bottom) + 6px) max(8px, var(--safe-right));
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  border-top: 1px solid rgba(20, 43, 28, .08);
  margin-top: auto;
}
.tabbar__item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 0 4px; min-height: 52px;
  color: #8A948E; text-decoration: none; font-size: 10.5px; font-weight: 600; letter-spacing: .01em;
}
.tabbar__icon { position: relative; display: grid; place-items: center; width: 44px; height: 30px; border-radius: 15px; transition: background-color .2s; }
.tabbar__icon .icon { width: 23px; height: 23px; }
.tabbar__item.is-active { color: var(--c-green); }
.tabbar__item.is-active .tabbar__icon { background: var(--c-light); }
.tabbar .badge { top: -3px; right: 2px; }

/* ---------------------------------------------------- Subpagina-header */
.topbar {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 90% at 100% 0%, rgba(75, 137, 85, .25), transparent 55%), var(--c-dark);
  color: #fff;
  padding: calc(var(--safe-top) + 26px) var(--gutter) 52px;
}
.topbar__leaf { width: 220px; height: 220px; right: -50px; top: -20px; transform: rotate(12deg); }
.topbar__content { position: relative; z-index: 2; }
.topbar .display { color: #fff; }
.topbar .display em { color: var(--c-sage); }
.topbar__sub { margin-top: 8px; color: rgba(255, 255, 255, .72); font-size: 14px; }

/* ------------------------------------------------------------ Meldingen */
.status-strip {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; margin-bottom: 18px;
  border-radius: var(--radius); background: var(--c-white); box-shadow: var(--shadow-sm);
  font-size: 13.5px; font-weight: 500; text-decoration: none;
}
.status-strip__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c-faint); flex: none; }
.status-strip__dot.is-ok { background: #3FA35A; box-shadow: 0 0 0 4px rgba(63, 163, 90, .16); }
.status-strip__dot.is-warn { background: #E0A43A; box-shadow: 0 0 0 4px rgba(224, 164, 58, .18); }
.status-strip__dot.is-bad { background: var(--c-danger); box-shadow: 0 0 0 4px rgba(178, 71, 59, .14); }
.status-strip__text { flex: 1; }
.status-strip .icon { width: 18px; height: 18px; color: var(--c-faint); }

.list-head { display: flex; justify-content: space-between; align-items: center; margin: 4px 2px 10px; font-size: 13px; }
.notif-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.notif {
  display: flex; gap: 14px; padding: 16px;
  background: var(--c-white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  transition: background-color .2s;
}
.notif.is-unread { background: #FFFFFF; box-shadow: var(--shadow); }
.notif__icon { width: 42px; height: 42px; border-radius: 14px; background: var(--c-light); color: var(--c-green); display: grid; place-items: center; flex: none; }
.notif:not(.is-unread) .notif__icon { background: #EEF1EE; color: var(--c-faint); }
.notif__body { flex: 1; min-width: 0; }
.notif__top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.notif__title { font-size: 15px; font-weight: 600; line-height: 1.35; }
.notif:not(.is-unread) .notif__title { font-weight: 500; color: #48535B; }
.notif__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c-green); margin-top: 6px; flex: none; }
.notif:not(.is-unread) .notif__dot { display: none; }
.notif__text { font-size: 14px; color: #4A555D; margin-top: 3px; overflow-wrap: anywhere; }
.notif__meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; font-size: 12px; color: var(--c-faint); }
.notif__link { display: inline-flex; align-items: center; gap: 4px; color: var(--c-green); font-weight: 600; text-decoration: none; font-size: 13px; }
.notif__link .icon { width: 15px; height: 15px; }

.empty { text-align: center; padding: 34px 10px; display: grid; justify-items: center; gap: 12px; }
.empty__art { width: 88px; height: 88px; border-radius: 30px; background: var(--c-light); color: var(--c-green); display: grid; place-items: center; margin-bottom: 6px; }
.empty__art .icon { width: 40px; height: 40px; }
.empty .btn { margin-top: 10px; min-height: 48px; }

/* --------------------------------------------------------- Pushstatus */
.status-card {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px; border-radius: var(--radius-lg);
  background: var(--c-white); box-shadow: var(--shadow);
}
.status-card__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: #EEF1EE; color: var(--c-muted); flex: none; }
.status-card__icon .icon { width: 28px; height: 28px; }
.status-card__title { font-family: var(--font-display); font-size: 26px; line-height: 1.1; margin-top: 2px; }
.status-card__text { font-size: 14px; color: #4A555D; margin-top: 6px; }
.status-card.is-ok .status-card__icon { background: var(--c-ok-bg); color: #2F8A49; }
.status-card.is-warn .status-card__icon { background: var(--c-warn-bg); color: var(--c-warn); }
.status-card.is-bad .status-card__icon { background: var(--c-danger-bg); color: var(--c-danger); }

.card { background: var(--c-white); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow-sm); margin-top: 14px; }
.card__title { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.card--details summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; margin: 0; }
.card--details summary::after { content: "+"; color: var(--c-muted); font-weight: 500; }
.card--details[open] summary::after { content: "–"; }
.card--details summary::-webkit-details-marker { display: none; }

.checks { list-style: none; margin: 0; padding: 0; }
.checks li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid #EDF1ED; font-size: 14px; }
.checks li:first-child { border-top: 0; }
.checks__mark { width: 22px; height: 22px; border-radius: 50%; flex: none; background: #EEF1EE; position: relative; }
.checks__mark::after { content: ""; position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; text-align: center; line-height: 22px; }
.checks li.is-ok .checks__mark { background: #3FA35A; }
.checks li.is-ok .checks__mark::after { content: "✓"; }
.checks li.is-bad .checks__mark { background: var(--c-danger); }
.checks li.is-bad .checks__mark::after { content: "✕"; }
.checks li.is-warn .checks__mark { background: #E0A43A; }
.checks li.is-warn .checks__mark::after { content: "!"; }
.checks__label { flex: 1; }
.checks__value { font-size: 12.5px; color: var(--c-muted); text-align: right; max-width: 45%; }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 14px 0 0; font-size: 13px; }
.kv dt { color: var(--c-muted); }
.kv dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.kv__mono { font-family: ui-monospace, Menlo, monospace; font-size: 11px; text-align: left !important; grid-column: 1 / -1; background: var(--c-off); padding: 8px; border-radius: 8px; }

/* ------------------------------------------------- Account/assortiment */
.profile { display: flex; align-items: center; gap: 14px; padding: 18px; background: var(--c-white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.profile__avatar { width: 56px; height: 56px; border-radius: 18px; background: var(--c-dark); color: var(--c-sage); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 28px; }
.profile__name { font-weight: 600; font-size: 17px; }
.profile .muted { font-size: 13px; }
.menu { margin-top: 16px; background: var(--c-white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.menu__item { display: flex; align-items: center; gap: 14px; padding: 15px 16px; text-decoration: none; border-top: 1px solid #EDF1ED; }
.menu__item:first-child { border-top: 0; }
.menu__item > .icon { width: 18px; height: 18px; color: var(--c-faint); }
.menu__icon { width: 40px; height: 40px; border-radius: 13px; background: var(--c-light); color: var(--c-green); display: grid; place-items: center; flex: none; }
.menu__text { flex: 1; font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.menu__text small { display: block; font-weight: 400; font-size: 12.5px; color: var(--c-muted); }
.menu__item.is-disabled { opacity: .55; }
.logout-form { margin: 22px 0 12px; }

.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 calc(var(--gutter) * -1) 16px; padding: 0 var(--gutter) 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 9px 16px; border-radius: 20px; background: var(--c-white); font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow-sm); }
.chip.is-active { background: var(--c-dark); color: #fff; }
.grid-products { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.product--grid { flex: none; }

.fav-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.fav { display: flex; align-items: center; gap: 14px; padding: 12px; background: var(--c-white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.fav img { width: 72px; height: 72px; border-radius: 14px; background: var(--c-light); }
.fav__body { flex: 1; }
.fav .product__name { min-height: 0; }

/* ----------------------------------------------------------- Offline */
.hero--offline { min-height: 55vh; }
