/* === 6Vshop.com — design tokens (donkere / blauwe huisstijl) === */
:root {
  --color-bg: #0a0a0a;
  --color-surface: #141414;
  --color-surface-hover: #1a1a1a;
  --color-ink: #ffffff;
  --color-muted: #888888;
  --color-primary: #2a6eff;
  --color-primary-dark: #1a4fc4;
  --color-accent: #D9A441;   /* prijs-kleur: goud, houdt contrast op donker */
  --color-line: #1f1f1f;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  line-height: 1.5;
}

/* === Header === */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-line);
}
.site-header img { height: 40px; display: block; }
.site-header nav a {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--color-ink);
  text-decoration: none;
  margin-left: 1.5rem;
}
.site-header nav a:hover { color: var(--color-primary); }

/* === Hero === */
.hero-banner { width: 100%; display: block; }

/* === Zoekbalk === */
.search-bar {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding: 0 2rem;
}
.search-bar input {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: 8px;
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.search-bar input::placeholder { color: var(--color-muted); }
.search-bar input:focus { outline: 2px solid var(--color-primary); border-color: var(--color-primary); }

.page-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin: 2rem auto 0.25rem;
  padding: 0 2rem;
  max-width: 1200px;
}
.page-subtitle {
  color: var(--color-muted);
  margin: 0 auto 2rem;
  padding: 0 2rem;
  max-width: 1200px;
  font-size: 0.95rem;
}
.page-subtitle a { color: var(--color-primary); }

/* === Product grid: 4 kolommen, 4 rijen per pagina === */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 2rem;
}
@media (max-width: 980px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .product-grid { grid-template-columns: 1fr; } }

.empty-state {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

/* === Productkaart === */
.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, background 0.15s ease;
}
.product-card:hover { transform: translateY(-3px); background: var(--color-surface-hover); }

.product-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 7cm;
  max-height: 7cm;
  margin: 1rem auto 0;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
}
.product-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Affiliate vinkje, rechtsonder op de foto */
.affiliate-badge {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.affiliate-badge svg { width: 12px; height: 12px; }
.affiliate-badge::after {
  content: "Affiliate link — wij ontvangen mogelijk een commissie";
  position: absolute;
  bottom: 28px;
  right: 0;
  background: #000;
  border: 1px solid var(--color-line);
  color: #fff;
  font-size: 0.7rem;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.affiliate-badge:hover::after { opacity: 1; }

.product-body { padding: 0.9rem 1rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.product-name { font-family: var(--font-display); font-size: 1rem; font-weight: 700; margin: 0 0 0.35rem; }

.product-price {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-accent);
  background: rgba(217,164,65,0.12);
  border: 1px solid var(--color-accent);
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  width: fit-content;
}

.product-desc {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin: 0 0 0.6rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-desc .lees-meer { color: var(--color-primary); font-weight: 600; text-decoration: none; }
.product-desc .lees-meer:hover { text-decoration: underline; }

.product-cta {
  margin-top: auto;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: var(--color-primary);
  text-align: center;
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  text-decoration: none;
}
.product-cta:hover { background: var(--color-primary-dark); }

/* === Paginering === */
.pagination { display: flex; justify-content: center; gap: 0.5rem; margin: 1rem 0 3rem; }
.pagination button {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--color-line);
  background: transparent;
  border-radius: 6px;
  color: var(--color-ink);
  cursor: pointer;
}
.pagination button.active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.pagination button:hover:not(.active) { border-color: var(--color-primary); }

/* === Admin formulier (admin.html) === */
.admin-wrap { max-width: 640px; margin: 2rem auto; padding: 0 2rem 4rem; }
.admin-wrap label { display: block; font-family: var(--font-display); font-size: 0.85rem; margin: 1rem 0 0.3rem; }
.admin-wrap input, .admin-wrap textarea {
  width: 100%; padding: 0.6rem 0.8rem; background: var(--color-surface);
  border: 1px solid var(--color-line); border-radius: 6px; color: var(--color-ink); font-family: var(--font-body);
}
.admin-wrap textarea { min-height: 90px; resize: vertical; }
.admin-wrap button {
  margin-top: 1.2rem; font-family: var(--font-display); font-weight: 600; font-size: 0.9rem;
  background: var(--color-primary); color: #fff; border: none; padding: 0.7rem 1.2rem; border-radius: 6px; cursor: pointer;
}
.admin-wrap button:hover { background: var(--color-primary-dark); }
.admin-output { margin-top: 1.5rem; }
.admin-output pre {
  background: var(--color-surface); border: 1px solid var(--color-line); border-radius: 8px;
  padding: 1rem; font-family: var(--font-mono); font-size: 0.8rem; white-space: pre-wrap; word-break: break-word;
}
.copy-btn { margin-top: 0.5rem; }
