/* Responsive grid for NutraMedix */ 
*,
*::before,
*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif; line-height:1.5; color:#111; background:#f7f7f7; }
img { max-width: 100%; height: auto; display: block; }

main { padding:24px 16px; }
.intro, .products, .related { max-width:1100px; margin:0 auto; }

.products { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.product { background:#fff; border-radius:16px; padding:16px; box-shadow:0 2px 10px rgba(0,0,0,.06); display:flex; flex-direction:column; }
.product__media { display:block; margin-bottom:12px; }
.product__media img { margin:0 auto; width:min(225px,100%); }
.product__title { font-size:1.125rem; line-height:1.25; margin:0 0 8px; }
.product__desc { margin:0; color:#333; }

.related { margin-top:32px; background:#fff; border-radius:12px; padding:16px; box-shadow:0 2px 10px rgba(0,0,0,.06); }
/*.linklist { list-style:none; padding:0; margin:12px 0 0; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px 16px; }*/

/* Links in kolommen: 4 op desktop, 1 op mobiel */
.linklist{
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  columns: 4;               /* desktop: 4 kolommen */
  column-gap: 24px;         /* ruimte tussen kolommen */
}

.linklist li{
  break-inside: avoid;      /* voorkom breuken binnen een item */
  -webkit-column-break-inside: avoid;
  margin: 0 0 8px;
}

.linklist a{
  text-decoration: none;
  color: #0c3b23;
  display: inline-block;    /* nette klikbare blokjes */
}
.linklist a:hover{ text-decoration: underline; }

/* Responsief: 3 kolommen op tablet, 1 op mobiel */
@media (max-width:1024px){
  .linklist{ columns: 3; }
}
@media (max-width:640px){
  .linklist{ columns: 1; }
}


.linklist a { text-decoration:none; color:#0c3b23; }
.linklist a:hover { text-decoration:underline; }
.site-footer { text-align:center; padding:20px 16px 40px; color:#666; }

@media (max-width:1024px){ .products{ grid-template-columns:repeat(2,1fr);} .brand__logo img{height:34px;} .linklist{ grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width:640px){ .products{ grid-template-columns:1fr; } .brand__logo img{height:32px;} .linklist{ grid-template-columns:repeat(2,minmax(0,1fr)); } }

/* ============= Product button ============= */
.product__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  padding: 10px 16px;
  background-color: #f26b00; /* oranje */
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.product__button:hover {
  background-color: #d85e00;
  transform: translateY(-1px);
}

.product__button:active {
  background-color: #b84f00;
  transform: translateY(0);
}

.product__button .icon-external {
  font-size: 0.9em;
  line-height: 1;
}

/* Zorg dat de knop netjes onderaan in de card blijft */
.product {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
/* ============= Header layout ============= */
.site-header {
  background: #ffffff; /* huidige donkergroene kleur */
  padding: 12px 16px;
  color: #0c3b23;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.brand {
  display: flex;
  justify-content: space-between; /* logo's aan weerszijden */
  align-items: center;
}

.brand__logo img {
  height: 48px;
  width: auto;
  display: block;
}

/* Optioneel iets kleinere logo’s op mobiel */
@media (max-width: 640px) {
  .brand__logo img {
    height: 36px;
  }
}



/* ===== Quicklinks: 2 kolommen + fade + uitklappen (nu ook desktop) ===== */

.quicklinks {
  position: relative;
}

/* standaard layout: 2 kolommen op mobiel, 4 op desktop */
.linklist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px 16px;
  margin-bottom: 12px;
}

/* toon alleen de eerste 10 items in ingeklapte modus */
.linklist--mobile-collapsed li:nth-child(n+11) {
  display: none;
}

/* fade overlay bij ingeklapte lijst */
.quicklinks[data-collapsed="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 42px; /* eindigt net boven de knop */
  height: 80px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #f7f7f7 75%);
  transition: opacity 0.3s ease;
}

/* knopstijl — zwart, subtiel */
.quicklinks__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #dcdcdc;
  background: #fff;
  color: #000;                /* zwart tekst */
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.quicklinks__toggle:hover {
  background: #f4f4f4;
}

/* responsief: op mobiel 2 kolommen */
@media (max-width: 640px) {
  .linklist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* ===== Scroll naar boven knop ===== */
#scrollTopBtn {
  position: fixed;
  bottom: 20px;
  left: 20px; /* linksonder */
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background-color: rgba(255,255,255,0.9);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  font-size: 22px;
  color: #14395E; /* past bij jouw blauw */
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease;
  z-index: 999;
}

#scrollTopBtn:hover {
  transform: scale(1.08);
}

#scrollTopBtn.show {
  opacity: 1;
  visibility: visible;
}

