/* Huisstijl Envitron, zoals de Envitron-login (Keycloak-thema, afgestemd op Watt): navy, Switzer, groen voor de
   hoofdactie, lichtblauw voor accenten en focus. */

@font-face {
  font-family: Switzer;
  src: url("assets/Switzer-Variable.woff2") format("woff2-variations"),
       url("assets/Switzer-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --envi-navy: #02162a;
  --envi-panel: #062d54;
  --envi-panel-2: #052744;
  --envi-blue: #0258ae;
  --envi-sky: #84bdf6;
  --envi-ice: #e9f4ff;
  --envi-green: #a0f9a9;
  --envi-muted: #cbd5e1;
  --envi-red: #ffd1d1;
  --line: rgba(132, 189, 246, .22);
  --radius: 10px;
  font-family: Switzer, -apple-system, "system-ui", "Segoe UI", Roboto, sans-serif;
  color: #fff;
  background: var(--envi-navy);
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; position: relative; }
body::before {
  content: "";
  position: fixed;
  inset: -40px;
  z-index: -1;
  pointer-events: none;
  background-color: var(--envi-navy);
  background-image:
    radial-gradient(circle at 20% 30%, rgba(0, 106, 212, .28) 0%, transparent 48%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, .08) 0%, transparent 46%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><g fill='none' stroke='%2384bdf6' stroke-width='1.5' opacity='0.15'><circle cx='60' cy='60' r='58'/><path d='M60 0v120M0 60h120'/></g></svg>");
  background-size: auto, auto, 120px 120px;
}

code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; color: var(--envi-ice); }
h2 { font-size: 1.4rem; font-weight: 600; margin: 3rem 0 1rem; }
.muted { color: var(--envi-muted); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 1.25rem; }
:focus-visible { outline: 2px solid var(--envi-sky); outline-offset: 2px; }

/* Kop */
.top { position: sticky; top: 0; z-index: 5; background: rgba(2, 22, 42, .82); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; gap: .9rem; align-items: center; color: #fff; text-decoration: none; }
.logo img { height: 26px; width: auto; display: block; }
.logo .shop { padding-left: .9rem; border-left: 1px solid var(--line); font-weight: 500; color: var(--envi-muted); }
.cart-button { border: 1px solid var(--envi-sky); background: transparent; color: #fff; border-radius: 999px; padding: .5rem 1rem; font: inherit; font-weight: 500; cursor: pointer; }
.cart-button:hover { background: rgba(132, 189, 246, .12); }
.badge { display: inline-block; min-width: 1.5rem; padding: 0 .4rem; margin-left: .35rem; border-radius: 999px; background: var(--envi-green); color: var(--envi-navy); font-weight: 700; text-align: center; }

/* Actiebalk */
.promo { background: linear-gradient(90deg, var(--envi-green), var(--envi-sky)); color: var(--envi-navy); padding: .7rem 0; font-size: 1.05rem; text-align: center; animation: promo-in .6s ease-out; }
.promo strong { font-weight: 700; }
.promo span { opacity: .75; }
@keyframes promo-in { from { transform: translateY(-100%); opacity: 0; } to { transform: none; opacity: 1; } }
.tag.actie { background: var(--envi-green); color: var(--envi-navy); border-color: var(--envi-green); }

/* Hero */
.hero { position: relative; padding: 4.5rem 0 2.5rem; overflow: hidden; }
.hero-art { position: absolute; right: -60px; top: 10px; width: min(560px, 55vw); opacity: .55; pointer-events: none; }
.hero .wrap { position: relative; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; color: var(--envi-green); font-weight: 600; margin: 0 0 .75rem; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.08; font-weight: 600; letter-spacing: -.01em; margin: 0 0 1.1rem; }
h1 span { color: var(--envi-sky); }
.lead { font-size: 1.15rem; line-height: 1.55; max-width: 44rem; color: var(--envi-muted); margin: 0; }
.steps { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .75rem; margin: 2rem 0 0; }
.steps li { background: rgba(6, 45, 84, .85); border: 1px solid var(--line); border-radius: 999px; padding: .45rem 1rem .45rem .45rem; }
.steps b { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--envi-green); color: var(--envi-navy); margin-right: .5rem; font-size: .85rem; }

/* Producten */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 1rem; }
.card { background: linear-gradient(180deg, var(--envi-panel), var(--envi-panel-2)); border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem; display: flex; flex-direction: column; gap: .55rem; transition: border-color .15s, transform .15s; }
.card:hover { border-color: rgba(132, 189, 246, .55); transform: translateY(-2px); }
.card .icon-big { font-size: 2.1rem; }
.card h3 { margin: 0; font-size: 1.08rem; font-weight: 600; }
.card p { margin: 0; color: var(--envi-muted); font-size: .95rem; line-height: 1.5; flex: 1; }
.price { font-weight: 700; font-size: 1.05rem; }
.price small { font-weight: 400; color: var(--envi-sky); }
.tag { align-self: flex-start; font-size: .75rem; font-weight: 600; padding: .18rem .6rem; border-radius: 999px; background: rgba(160, 249, 169, .14); color: var(--envi-green); border: 1px solid rgba(160, 249, 169, .35); }
.card button { font: inherit; font-weight: 600; border-radius: 8px; padding: .6rem .8rem; cursor: pointer; border: 1px solid var(--envi-green); background: var(--envi-green); color: var(--envi-navy); }
.card button:hover { filter: brightness(1.05); }
.card button.in-cart { background: transparent; color: var(--envi-green); }
.card.soldout { background: repeating-linear-gradient(-45deg, rgba(6, 45, 84, .9), rgba(6, 45, 84, .9) 12px, rgba(5, 39, 68, .9) 12px, rgba(5, 39, 68, .9) 24px); }
.card.soldout:hover { transform: none; }
.card.soldout .stamp { align-self: flex-start; transform: rotate(-4deg); border: 2px solid var(--envi-red); color: var(--envi-red); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: .1rem .5rem; border-radius: 6px; font-size: .78rem; }
.card.soldout button { background: transparent; color: rgba(203, 213, 225, .55); border-color: rgba(203, 213, 225, .25); cursor: not-allowed; }

/* Mandje en afrekenen */
.drawer, .modal { position: fixed; inset: 0; background: rgba(2, 22, 42, .6); backdrop-filter: blur(2px); display: none; z-index: 10; }
.drawer.open, .modal.open { display: flex; }
.drawer { justify-content: flex-end; }
.modal { align-items: center; justify-content: center; padding: 1rem; }
.drawer-panel { width: min(430px, 100%); height: 100%; background: var(--envi-panel); border-left: 1px solid var(--line); padding: 1.4rem; display: flex; flex-direction: column; gap: 1rem; overflow: auto; }
.modal-panel { width: min(740px, 100%); max-height: 92vh; overflow: auto; background: var(--envi-panel); border: 1px solid var(--line); border-radius: 18px; padding: 1.4rem; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; }
.drawer-head h2 { margin: 0; }
.icon { border: 0; background: transparent; color: #fff; font-size: 1.2rem; cursor: pointer; }
.lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.lines li { display: flex; justify-content: space-between; gap: .5rem; align-items: center; background: rgba(2, 22, 42, .45); border: 1px solid var(--line); border-radius: var(--radius); padding: .65rem .85rem; }
.lines button { border: 1px solid var(--line); background: transparent; color: #fff; border-radius: 6px; width: 1.7rem; height: 1.7rem; cursor: pointer; }
.qty { display: inline-flex; gap: .4rem; align-items: center; }
.total { font-weight: 600; border-top: 1px dashed var(--line); padding-top: .85rem; color: var(--envi-ice); }
.primary { font: inherit; font-weight: 600; border: 0; border-radius: 8px; padding: .85rem 1rem; background: var(--envi-green); color: var(--envi-navy); cursor: pointer; }
.primary:disabled { opacity: .5; cursor: not-allowed; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin: 1.1rem 0 .6rem; }
.form label { display: flex; flex-direction: column; gap: .35rem; font-weight: 500; font-size: .9rem; color: var(--envi-muted); }
.form input { font: inherit; font-family: ui-monospace, Menlo, monospace; padding: .6rem .75rem; border: 1px solid #cbd5e1; border-radius: var(--radius); background: #fff; color: var(--envi-navy); }
.form input:focus { border-color: var(--envi-sky); outline: 0; box-shadow: 0 0 0 3px rgb(132 189 246 / 35%); }
.error { color: var(--envi-red); margin: 0; }
.receipt { background: #fff; color: var(--envi-navy); border-radius: 6px; padding: 1.1rem 1.2rem; font-size: .84rem; line-height: 1.5; overflow: auto; white-space: pre; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); border-top: 6px solid var(--envi-green); }
.actions { display: flex; gap: 1rem; align-items: center; margin-top: 1rem; }

.foot { margin-top: 4.5rem; padding: 2rem 0 2.5rem; border-top: 1px solid var(--line); color: var(--envi-muted); font-size: .95rem; }
.foot img { height: 18px; vertical-align: -3px; margin-right: .5rem; opacity: .8; }

@media (max-width: 640px) {
  .form { grid-template-columns: 1fr; }
  .logo .shop { display: none; }
  .hero-art { opacity: .25; }
}
