:root {
  --bg: #f3f9f8;
  --card-bg: #ffffff;
  --text: #1e2a2e;
  --muted: #6b8086;
  --accent: #2f8f7a;
  --accent2: #3b82c4;
  --accent-light: #e2f3ef;
  --border: #dcebe8;
  --coral: #e9633d;
  --coral-light: #fdeae3;
  --pink: #d1477a;
  --pink-light: #fbe6ee;
  --purple: #7c5aa6;
  --yellow: #e8b93f;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12191b;
    --card-bg: #182226;
    --text: #e7f1f0;
    --muted: #8fa6ab;
    --accent: #4fb89f;
    --accent2: #5fa3e0;
    --accent-light: #1c2f2f;
    --border: #24343a;
    --coral: #f0805c;
    --coral-light: #3a241c;
    --pink: #e072a0;
    --pink-light: #33202a;
    --purple: #a488c9;
    --yellow: #edc563;
  }
}
* { box-sizing: border-box; }
html { scroll-padding-top: env(safe-area-inset-top, 0px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

/* --- Header met kleurrijke, subtiele decoratie --- */
header {
  position: relative;
  padding: 1.9rem 1.25rem 1.5rem;
  padding-top: calc(1.9rem + env(safe-area-inset-top, 0px));
  text-align: center;
  background: linear-gradient(135deg, var(--accent-light), var(--bg));
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
header::before, header::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(38px);
  opacity: 0.35; z-index: 0; pointer-events: none;
}
header::before { width: 220px; height: 220px; background: var(--coral); top: -110px; left: -60px; }
header::after { width: 260px; height: 260px; background: var(--accent2); top: -130px; right: -80px; }
header > * { position: relative; z-index: 1; }

.logo-link { display: inline-block; line-height: 0; }
.logo { height: 40px; width: auto; max-width: 90vw; display: inline-block; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  .logo-light { display: none; }
  .logo-dark { display: inline-block; }
}
header p { color: var(--muted); margin: 0.6rem 0 0; font-size: 0.9rem; }

main { max-width: 1150px; margin: 0 auto; padding: 1.5rem 1rem 4rem; }

h1 { font-size: 1.3rem; margin: 0 0 0.5rem; }

.intro {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 14px;
  padding: 1.1rem 1.3rem;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}
.intro .updated { color: var(--muted); font-size: 0.82rem; margin: 0.5rem 0 0; }

.breadcrumbs { font-size: 0.8rem; color: var(--muted); margin-bottom: 1rem; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
.breadcrumbs a { color: var(--accent2); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .sep { margin: 0 0.4rem; }

.categories { display: flex; gap: 0.5rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.categories a {
  padding: 0.55rem 1rem; border-radius: 999px; border: 1px solid var(--border);
  color: var(--text); text-decoration: none; font-size: 0.85rem; background: var(--card-bg);
  min-height: 40px; display: inline-flex; align-items: center; font-weight: 600;
}
.categories a.active, .categories a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.categories a.pink.active, .categories a.pink:hover { background: var(--pink); border-color: var(--pink); }
.categories a.blue.active, .categories a.blue:hover { background: var(--accent2); border-color: var(--accent2); }
.categories a.gold { background: linear-gradient(90deg, var(--yellow), var(--coral)); color: #fff; border-color: transparent; font-weight: 700; }
.categories a.gold:hover { filter: brightness(1.08); }

.brand-links { margin-top: 2.5rem; }
.brand-links h2 { font-size: 1.1rem; }
.brand-links ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.brand-links a {
  color: var(--accent2); text-decoration: none; font-size: 0.85rem; display: inline-block;
  padding: 0.4rem 0.85rem; border-radius: 999px; background: var(--accent-light); font-weight: 600;
}
.brand-links a:hover { background: var(--accent); color: #fff; }
.brand-links a.top10-link { background: var(--pink-light); color: var(--pink); }
.brand-links a.top10-link:hover { background: var(--pink); color: #fff; }

.grid-ranked { position: relative; }
.rank-wrap { position: relative; }
.rank-badge {
  position: absolute; top: -10px; left: -10px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--yellow), var(--coral));
  color: #fff; font-weight: 800; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 8px rgba(233,99,61,0.4);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}
.filter-group { display: flex; flex-direction: column; gap: 0.35rem; flex: 1 1 140px; min-width: 0; }
.filter-group label {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--muted); font-weight: 600;
}
.filter-group select {
  padding: 0.65rem 0.7rem; border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font-size: 1rem; min-height: 44px;
  width: 100%; -webkit-appearance: none; appearance: none;
}
.reset-btn {
  padding: 0.65rem 1.1rem; border-radius: 8px; border: 1px solid var(--accent);
  background: transparent; color: var(--accent); font-weight: 600; font-size: 0.85rem;
  cursor: pointer; text-decoration: none; display: inline-flex; align-items: center;
  min-height: 44px; justify-content: center;
}
.reset-btn:hover { background: var(--accent-light); }

.count { margin: 0 0 1rem; font-size: 0.85rem; color: var(--muted); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px -8px rgba(47,143,122,0.35), 0 6px 14px -6px rgba(59,130,196,0.25);
}
.img-wrap { position: relative; aspect-ratio: 3/4; background: var(--accent-light); overflow: hidden; display: block; }
.img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.25s ease; }
.card:hover .img-wrap img { transform: scale(1.05); }
.badge {
  position: absolute; top: 10px; left: 10px;
  background: linear-gradient(135deg, var(--coral), var(--pink));
  color: #fff; font-weight: 700; font-size: 0.78rem; padding: 0.3rem 0.65rem;
  border-radius: 999px; box-shadow: 0 3px 8px rgba(217,71,61,0.35);
}
.badge-lg { font-size: 1rem; padding: 0.45rem 0.9rem; top: 14px; left: 14px; }
.info { padding: 0.9rem 1rem 1.1rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.brand a { text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.72rem; color: var(--accent2); font-weight: 700; text-decoration: none; }
.brand a:hover { text-decoration: underline; }
.title { font-size: 1rem; font-weight: 600; margin: 0; }
.title a { color: inherit; text-decoration: none; }
.title a:hover { color: var(--accent); }
.blurb { font-size: 0.8rem; color: var(--muted); margin: 0; }
.tags { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.1rem; }
.tag { font-size: 0.72rem; color: var(--muted); background: var(--accent-light); border-radius: 999px; padding: 0.2rem 0.6rem; display: inline-flex; align-items: center; gap: 0.35rem; }
.tag-color { padding-left: 0.4rem; }
.swatch {
  display: inline-block; width: 11px; height: 11px; border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.15); flex-shrink: 0;
}
.prices { margin-top: auto; padding-top: 0.5rem; display: flex; align-items: baseline; gap: 0.55rem; flex-wrap: wrap; }
.price-new {
  font-size: 1.25rem; font-weight: 800;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.price-old { font-size: 0.9rem; color: var(--muted); text-decoration: line-through; }
.save-chip {
  font-size: 0.72rem; font-weight: 700; color: #fff; background: var(--coral);
  padding: 0.2rem 0.55rem; border-radius: 999px;
}

.delivery-info { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.4rem; }
.ship-badge, .stock-badge {
  font-size: 0.72rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 0.3rem;
}
.ship-badge { color: var(--muted); background: var(--accent-light); }
.ship-badge.ship-free { color: #fff; background: var(--accent); font-weight: 700; }
.stock-badge.stock-yes { color: var(--accent); background: var(--accent-light); }
.stock-badge.stock-yes::before { content: '●'; font-size: 0.6rem; }
.stock-badge.stock-no { color: var(--muted); background: var(--border); }
.stock-badge.stock-no::before { content: '●'; font-size: 0.6rem; }
.prices-lg + .delivery-info { margin-bottom: 0.6rem; }

.cta {
  display: block; text-align: center; margin: 0.8rem 1rem 1rem; padding: 0.75rem 0;
  border-radius: 8px; background: linear-gradient(90deg, var(--accent), var(--accent2), var(--purple));
  background-size: 160% 100%; background-position: 0% 0%;
  color: #fff; text-decoration: none; font-weight: 700; font-size: 0.95rem;
  min-height: 44px; line-height: 1.5; transition: background-position 0.25s ease, transform 0.15s ease;
}
.cta:hover { background-position: 100% 0%; transform: translateY(-1px); }
.cta-lg { margin: 1.2rem 0; padding: 0.95rem 1.2rem; font-size: 1.05rem; border-radius: 10px; }
.empty { text-align: center; color: var(--muted); padding: 3rem 1rem; }

.pagination {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  margin: 2rem 0 1rem; flex-wrap: wrap;
}
.page-btn {
  padding: 0.6rem 1.1rem; border-radius: 8px; border: 1px solid var(--accent);
  background: var(--card-bg); color: var(--accent); text-decoration: none; font-weight: 700;
  font-size: 0.9rem; min-height: 44px; display: inline-flex; align-items: center;
}
.page-btn:hover { background: var(--accent); color: #fff; }
.page-status { color: var(--muted); font-size: 0.85rem; }

/* --- Productdetailpagina --- */
.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 420px) 1fr;
  gap: 2rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.5rem;
  margin-bottom: 2.5rem;
}
.product-media { position: relative; border-radius: 14px; overflow: hidden; background: var(--accent-light); aspect-ratio: 3/4; }
.product-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-info { display: flex; flex-direction: column; }
.product-info h1 { font-size: 1.5rem; margin: 0.2rem 0 0.6rem; }
.prices-lg { align-items: center; }
.prices-lg .price-new { font-size: 2rem; }
.prices-lg .price-old { font-size: 1.1rem; }
.product-text p { font-size: 0.95rem; color: var(--text); }
.product-text p:first-child { font-weight: 600; }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1rem; margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--border); }
.specs dt { color: var(--muted); font-size: 0.85rem; }
.specs dd { margin: 0; font-weight: 600; font-size: 0.9rem; }

.similar { margin-top: 2rem; }
.similar h2 { font-size: 1.25rem; margin-bottom: 1rem; }

.faq { margin-top: 2.5rem; }
.faq h2 { font-size: 1.2rem; }
.faq details {
  background: var(--card-bg); border: 1px solid var(--border); border-left: 3px solid var(--purple);
  border-radius: 10px; padding: 0.2rem 1rem; margin-bottom: 0.6rem;
}
.faq summary { cursor: pointer; font-weight: 600; padding: 0.8rem 0; min-height: 44px; display: flex; align-items: center; }
.faq p { color: var(--muted); font-size: 0.9rem; margin: 0 0 0.9rem; }

footer { text-align: center; padding: 2rem 1.25rem calc(2rem + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: 0.8rem; }

/* --- Mobiel (smartphone) --- */
@media (max-width: 640px) {
  .logo { height: 32px; }
  header p { font-size: 0.82rem; }
  main { padding: 1.25rem 0.85rem 3rem; }
  .intro { font-size: 0.9rem; padding: 1rem; }
  .filters { flex-direction: column; align-items: stretch; padding: 0.9rem; }
  .filter-group { flex: 1 1 auto; }
  .reset-btn { width: 100%; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.9rem; }
  .info { padding: 0.75rem 0.85rem 0.95rem; }
  .title { font-size: 0.92rem; }
  .blurb { display: none; } /* op smalle schermen: focus op prijs, niet op leestekst */
  .price-new { font-size: 1.1rem; }
  .cta { margin: 0.6rem 0.85rem 0.85rem; font-size: 0.9rem; }
  .categories a { flex: 1 1 auto; justify-content: center; }
  .product-detail { grid-template-columns: 1fr; padding: 1rem; gap: 1.2rem; }
  .product-info h1 { font-size: 1.25rem; }
  .prices-lg .price-new { font-size: 1.6rem; }
}

/* Zorg dat niets ooit breder wordt dan het scherm (afbeeldingen, lange woorden) */
img { max-width: 100%; height: auto; }
