/* /css/styles.css */
:root{
  --bg:#f6f8fb;
  --surface:#ffffff;
  --text:#0f172a;
  --muted:#667085;
  --line:rgba(15,23,42,.10);

  --accent:#2563eb;
  --accent2:#06b6d4;

  --shadow:0 10px 30px rgba(15,23,42,.08);
  --shadowHover:0 12px 28px rgba(15,23,42,.10);

  --radius:10px;
  --radiusSm:8px;
  --btnRadius:4px;          /* <- strakke hoeken */
  --max:1080px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background:
    radial-gradient(1100px 520px at 15% -10%, rgba(37,99,235,.12), transparent 55%),
    radial-gradient(900px 520px at 90% 10%, rgba(6,182,212,.10), transparent 55%),
    var(--bg);
  color:var(--text);
  line-height:1.6;
}
a{color:inherit;text-decoration:none}
.wrap{max-width:var(--max); margin:0 auto; padding:0 18px;}
.section{padding:20px 0 30px;}
h1{margin:6px 0 10px; font-size: clamp(30px, 4vw, 46px); line-height:1.05; letter-spacing:-.6px;}
h2{margin:0 0 10px; font-size:22px; letter-spacing:-.25px;}
.muted{color:var(--muted); font-weight:650;}
.small{font-size:13px; line-height:1.45;}

/* NAV */
.nav{
  position:sticky; top:0; z-index:20;
  background: rgba(246,248,251,.80);
  backdrop-filter: blur(12px);
  border-bottom:1px solid var(--line);
}
.nav-inner{display:flex; align-items:center; justify-content:space-between; padding:14px 0; gap:12px;}
.brand{display:flex; align-items:center; gap:10px; font-weight:900; letter-spacing:.2px; min-width:0;}
.logo{height:40px; width:auto; max-width:220px; display:block; object-fit:contain;}
@media (max-width:640px){ .logo{height:34px; max-width:160px;} }

/* CARDS */
.card{
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding:18px;
  overflow:hidden;
}
.card + .card{margin-top:14px;}

/* GRID */
.grid-2{display:grid; grid-template-columns: 1.15fr .85fr; gap:16px; align-items:stretch;}
@media (max-width: 920px){ .grid-2{grid-template-columns:1fr;} }
.grid-3{display:grid; grid-template-columns: repeat(3, 1fr); gap:14px; align-items:stretch;}
@media (max-width: 980px){ .grid-3{grid-template-columns:1fr;} }

/* BADGES */
.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:7px 10px; border-radius:8px;
  font-weight:900; font-size:12.5px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(15,23,42,.04);
  color: rgba(15,23,42,.86);
}

.b-basic{background: rgba(22,163,74,.10); border-color: rgba(22,163,74,.18); color: rgba(22,163,74,.90);}
.b-ext{background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.20); color: rgba(161,98,7,.95);}
.b-comp{background: rgba(37,99,235,.10); border-color: rgba(37,99,235,.18); color: rgba(37,99,235,.95);}

.bullets{
  margin:8px 0 0;
  padding-left:18px;
}

.bullets li{
  margin:6px 0;
}

.card ul{
  padding-left:18px;
  margin-top:8px;
}

.card li{
  margin:6px 0;
}

.pkg img{
  width:auto;
  max-width:auto;
  height:100%;
max-height:50px;

  margin:0px auto;
  display:block;
  padding:0px;
  background:rgba(15,23,42,.03);
  border-radius:0px;
}

/* BUTTONS (strakke hoeken) */
.btn, .link, .product-btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 14px;
  border-radius: var(--btnRadius);
  border:1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.92);
  color: var(--text);
  font-weight:850;
  cursor:pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease, box-shadow .12s ease;
  white-space:nowrap;
}
.btn:hover, .link:hover, .product-btn:hover{
  transform: translateY(-1px);
  background:#fff;
  border-color: rgba(37,99,235,.25);
  box-shadow: 0 10px 20px rgba(15,23,42,.08);
}
.btn:active, .link:active, .product-btn:active{ transform: translateY(-1px); }

/* Primary CTA button (site-wide) */
.btn-primary{
  border:1px solid rgba(37,99,235,.20);
  color:#fff;
  background: linear-gradient(135deg, rgba(37,99,235,.95), rgba(6,182,212,.88));
}
.btn-primary:hover{
  border-color: rgba(37,99,235,.35);
  background: linear-gradient(135deg, rgba(37,99,235,1), rgba(6,182,212,.95));
}

.kpi{
  display:grid;
  grid-template-columns:1fr;
  gap:8px;
}

.kpi-row{
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:10px 12px;
  border:1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.92);
  border-radius:14px;
  box-shadow: 0 8px 20px rgba(15,23,42,.05);
}

.kpi-row strong{
  font-size:14px;
}

.kpi-row span{
  font-weight:900;
}

.save{
  margin-top:6px;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(34,197,94,.35);
  background: rgba(34,197,94,.10);
  color:#14532d;
  font-weight:900;
  display:flex;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}


/* Product affiliate button – lighter (like configurator) */
.product-btn.primary{
  color: rgba(15,23,42,.92);
  background: rgba(37,99,235,.10);
  border:1px solid rgba(37,99,235,.22);
  box-shadow: none;
}
.product-btn.primary:hover{
  background: rgba(37,99,235,.16);
  border-color: rgba(37,99,235,.30);
  box-shadow: 0 10px 20px rgba(15,23,42,.08);
}

.product-btn .price{
  font-size: 11px;
  font-weight: 500;
  opacity: .80;
}

/* footer links */
.footer-grid{
  display:flex;
  align-items:center;
}

.footer-links{
  margin-left:auto;
  display:flex;
  gap:12px;
}

.footer-btn{
  font-size:13px;
  padding:6px 10px;
  border-radius:6px;
  border:1px solid rgba(15,23,42,.10);
  background:rgba(255,255,255,.6);
  text-decoration:none;
  font-weight:600;
  transition:all .15s ease;
}

.footer-btn:hover{
  border-color:#2563eb;
  color:#2563eb;
  background:#fff;
  transform:translateY(-1px);
}

.footer-note{
  margin-top:16px;
  font-size:13px;
  color:#667085;
  line-height:1.5;
}

/* Supermarket button – light green */
.product-btn.supermarket-btn{
  color: rgba(22,101,52,.95);
  background: rgba(22,163,74,.10);
  border:1px solid rgba(22,163,74,.22);
  box-shadow: none;
}
.product-btn.supermarket-btn:hover{
  background: rgba(22,163,74,.16);
  border-color: rgba(22,163,74,.30);
  box-shadow: 0 10px 20px rgba(15,23,42,.08);
}


/* ===== Shared visual components ===== */

.hero-img{
  width:100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display:block;
  object-fit: cover;
  background: rgba(15,23,42,.04);
}

.card.tight{padding:14px;}
.card.no-padding{padding:0;}

/* Content labels */
.l-checklist{background:#E8F1FD; border-color:#BFDBFE; color:#1D4ED8;}
.l-article{background:#FEF3C7; border-color:#FDE68A; color:#92400E;}
.l-saving{background:#F3E8FF; border-color:#E9D5FF; color:#6B21A8;}

/* Package / article cards */
.pkg{
  position:relative;
  overflow:hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding:14px;
  display:flex;
  flex-direction:column;
  gap:9px;
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}

.pkg:hover{
  transform: translateY(-2px);
  border-color: rgba(37,99,235,.18);
  box-shadow: 0 16px 34px rgba(15,23,42,.10);
}

.pkg-sub{
  margin:0;
  color: var(--muted);
  font-weight:750;
}

/* Soft package backgrounds */
.pkg-soft::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(420px 190px at 18% 22%, rgba(var(--softA), .35), transparent 60%),
    radial-gradient(520px 220px at 78% 12%, rgba(var(--softB), .30), transparent 62%),
    radial-gradient(520px 260px at 60% 90%, rgba(255,255,255,.85), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.65), rgba(255,255,255,.92));
  filter: saturate(1.05);
  opacity:.95;
}
.pkg-soft > *{
  position:relative;
  z-index:1;
}

.pkg-soft-basic{--softA:34,197,94; --softB:16,185,129;}
.pkg-soft-ext{--softA:245,158,11; --softB:251,191,36;}
.pkg-soft-comp{--softA:59,130,246; --softB:37,99,235;}

/* Compact cards */
.pkg.compact{
  padding:12px;
  gap:8px;
}
.pkg.compact h3{font-size:16px;}
.pkg.compact .muted{
  font-size:13px;
  line-height:1.45;
}
.pkg.compact .pkg-footer{margin-top:2px;}

/* Lists inside cards */
.bullets{
  margin:0;
  padding-left:18px;
  color: var(--muted);
  font-weight:650;
}
.bullets li{margin:6px 0;}

/* Footer area inside cards */
.pkg-footer{
  margin-top:auto;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}

.hint{
  color: var(--muted);
  font-weight:900;
  font-size:13px;
}
.arrow{
  font-weight:950;
  opacity:.9;
}

/* Small "new" pill */
.pillNew{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 10px;
  border-radius: var(--btnRadius);
  font-weight:950;
  font-size:12.5px;
  width:max-content;
  border:1px solid rgba(245,158,11,.28);
  background: rgba(245,158,11,.14);
  color: rgba(146,64,14,.98);
}

.pillNew .spark{
  width:10px;
  height:10px;
  border-radius:999px;
  background: linear-gradient(135deg, rgba(245,158,11,1), rgba(37,99,235,1));
  box-shadow: 0 0 0 6px rgba(245,158,11,.12);
}

/* LIST / ROWS */
.list{display:grid; gap:10px; margin-top:12px;}
.row{
  -webkit-tap-highlight-color: transparent;

  border:1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.92);
  border-radius: var(--radiusSm);
  padding:12px;
  display:flex; justify-content:space-between; gap:12px; align-items:center;
  box-shadow: 0 8px 20px rgba(15,23,42,.05);
  cursor:pointer;
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease, background .12s ease;
  will-change: transform;
}
.row:hover{
  transform: translateY(-2px);
  background:#fff;
  border-color: rgba(37,99,235,.18);
  box-shadow: var(--shadowHover);
}
.row-content{display:flex; gap:12px; align-items:center;}
.row strong{font-size:14px}
.row small{color:var(--muted); font-weight:650}

.thumb{
  width:48px; height:48px;
  border-radius:10px;
  object-fit:cover;
  background: rgba(15,23,42,.04);
  border:1px solid rgba(15,23,42,.10);
  flex-shrink:0;
}
.cta{display:flex; align-items:center; gap:8px; margin-left:auto;}
.price{font-size:12px; color:var(--muted); font-weight:800;}

/* FOOTER */
footer{
  padding: 28px 0 40px;
  color: var(--muted);
  border-top:1px solid var(--line);
  background: rgba(255,255,255,.65);
}

/* Supermarkt popup */
.sp-overlay{
  position:fixed; inset:0;
  background: rgba(2,6,23,.45);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:999;
  padding:18px;
}
.sp-overlay.isOpen{display:flex;}
.sp-modal{
  width:min(520px, 100%);
  background:#fff;
  border:1px solid rgba(15,23,42,.12);
  border-radius: 18px;
  box-shadow: 0 30px 70px rgba(2,6,23,.25);
  padding:18px;
}
.sp-modal h3{margin:0 0 6px; letter-spacing:-.2px;}
.sp-modal p{margin:0 0 12px; color:var(--muted); font-weight:650;}
.sp-actions{display:flex; gap:10px; justify-content:flex-end; flex-wrap:wrap;}

.product-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
  white-space: normal;   /* voorkomt dat hij buiten frame duwt */
}

.product-btn .price {
  font-size: 11px;
  font-weight: 600;
  opacity: .8;
}


/* HERO CARD */
.hero-card{
  padding:0;
  overflow:hidden;
}

.hero-card > .grid-2{
  gap:0;
}

.hero-text{
  padding:24px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.hero-media{
  line-height:0;
  overflow:hidden;
}

.hero-media picture{
  display:block;
  width:100%;
  height:100%;
  line-height:0;
}

.hero-card .hero-img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  border:none;
  box-shadow:none;
  border-radius:0;
  background:transparent;
}

/* CONFIGURATOR CARD */
.configurator-card{
  padding:0;
  overflow:hidden;
}

.configurator-card > .grid-2{
  gap:0;
}

.configurator-media{
  line-height:0;
  overflow:hidden;
}

.configurator-media picture{
  display:block;
  width:100%;
  height:100%;
  line-height:0;
}

.configurator-card .hero-img,
.configurator-media img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  border:none;
  box-shadow:none;
  border-radius:0;
  background:transparent;
}

.configurator-text{
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:20px;
}

/* Homepage articles */
.pkg.compact .badge{
  font-size:11px;
  padding:5px 8px;
}

.pkg.compact .pkg-footer{
  justify-content:flex-end;
  gap:8px;
}

/* €50 Challenge badge kleur */
.pkg[href*="goedkoop-noodpakket"] .badge{
  background:#fef3c7;
  color:#92400e;
  border:1px solid #fde68a;
}
