/* ── Basis ──────────────────────────────────────────────────────────────── */
:root {
  --accent:    #e65000;
  --accent-dk: #c24400;
  --donker:    #1a1a1a;
  --nav-bg:    #111111;
  --licht:     #f8f8f8;
  --tekst:     #222222;
  --muted:     #666666;
  --border:    #e0e0e0;
  --groen:     #28a745;
  --oranje:    #fd7e14;
  --rood:      #dc3545;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: Arial, Helvetica, sans-serif; color: var(--tekst); background: #fff; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dk); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* ── Navbar ─────────────────────────────────────────────────────────────── */
.navbar { background: var(--nav-bg) !important; }
.navbar-brand { font-weight: 800; font-size: 1.4rem; color: var(--accent) !important; letter-spacing: -0.5px; }
.navbar-brand:hover { color: #fff !important; }
.nav-link { color: #ccc !important; font-size: 0.9rem; }
.nav-link:hover, .nav-link.active { color: var(--accent) !important; }
.navbar-toggler-icon { filter: invert(1); }

.cart-badge {
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 50%;
  padding: 2px 5px;
  position: relative;
  top: -2px;
}

/* ── Categorie balk ─────────────────────────────────────────────────────── */
.cat-bar { background: var(--accent); }
.cat-bar .nav-link { color: rgba(255,255,255,0.9) !important; font-size: 0.85rem; padding: 6px 14px; }
.cat-bar .nav-link:hover { color: #fff !important; background: var(--accent-dk); }

/* ── Mobiel menu categorieën ─────────────────────────────────────────────── */
.nav-cat-header { color: #777; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; padding: 12px 12px 4px; }
.nav-divider { border-color: #333; margin: 8px 0 4px; }
.nav-subcat { font-size: 0.85rem !important; color: #aaa !important; }
.nav-subcat::before { content: "↳ "; color: #555; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--nav-bg) 0%, #2d2d2d 100%);
  color: #fff;
  padding: 60px 0;
  text-align: center;
}
.hero h1 { font-size: 2.4rem; font-weight: 800; margin-bottom: 12px; }
.hero p { font-size: 1.1rem; color: #bbb; margin-bottom: 28px; }
.btn-accent {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
  transition: background 0.2s;
}
.btn-accent:hover { background: var(--accent-dk); color: #fff; text-decoration: none; }

/* ── Productkaarten ─────────────────────────────────────────────────────── */
.product-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.product-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.12); transform: translateY(-2px); }
.product-card .foto-wrap {
  aspect-ratio: 1;
  background: var(--licht);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-card .foto-wrap img { width: 100%; height: 100%; object-fit: cover; }
.product-card .foto-placeholder { color: #ccc; font-size: 3rem; }
.product-card .card-body { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.product-card .naam { font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; color: var(--tekst); }
.product-card .naam:hover { color: var(--accent); }
.product-card .prijs { font-size: 1.2rem; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.product-card .voorraad-badge { font-size: 0.75rem; margin-bottom: 10px; }
.product-card .btn-sm-accent {
  margin-top: auto;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s;
}
.product-card .btn-sm-accent:hover { background: var(--accent-dk); }
.product-card .btn-sm-accent:disabled { background: #ccc; cursor: not-allowed; }

/* ── Voorraad badges ────────────────────────────────────────────────────── */
.badge-op-voorraad  { background: #d4edda; color: #155724; padding: 3px 8px; border-radius: 3px; }
.badge-weinig       { background: #fff3cd; color: #856404; padding: 3px 8px; border-radius: 3px; }
.badge-uitverkocht  { background: #f8d7da; color: #721c24; padding: 3px 8px; border-radius: 3px; }

/* ── Productdetail ──────────────────────────────────────────────────────── */
.product-detail-foto {
  aspect-ratio: 1;
  background: var(--licht);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--border);
}
.product-detail-foto img { width: 100%; height: 100%; object-fit: cover; }
.product-prijs-groot { font-size: 2rem; font-weight: 800; color: var(--accent); }

/* ── Winkelwagen ────────────────────────────────────────────────────────── */
.wagen-foto { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; background: var(--licht); }
.totaal-rij { font-size: 1.2rem; font-weight: 700; }

/* ── Formulieren ────────────────────────────────────────────────────────── */
.form-label { font-weight: 600; font-size: 0.9rem; }
.form-control:focus, .form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(230,80,0,0.15); }

/* ── Breadcrumb ─────────────────────────────────────────────────────────── */
.breadcrumb { background: none; padding: 12px 0; margin: 0; font-size: 0.85rem; }
.breadcrumb-item + .breadcrumb-item::before { color: #aaa; }

/* ── Sectie headers ─────────────────────────────────────────────────────── */
.sectie-titel {
  font-size: 1.4rem;
  font-weight: 700;
  border-left: 4px solid var(--accent);
  padding-left: 12px;
  margin-bottom: 20px;
}

/* ── Status badges ──────────────────────────────────────────────────────── */
.status-nieuw               { background: #cfe2ff; color: #084298; }
.status-betaallink_verstuurd{ background: #fff3cd; color: #664d03; }
.status-betaald             { background: #d1e7dd; color: #0a3622; }
.status-verzonden           { background: #d1e7dd; color: #0a3622; }
.status-geannuleerd         { background: #f8d7da; color: #58151c; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
footer {
  background: var(--nav-bg);
  color: #999;
  padding: 40px 0 20px;
  margin-top: 60px;
  font-size: 0.85rem;
}
footer a { color: #aaa; }
footer a:hover { color: var(--accent); text-decoration: none; }
footer h6 { color: #fff; font-weight: 700; margin-bottom: 12px; font-size: 0.9rem; }

/* ── Admin ──────────────────────────────────────────────────────────────── */
.admin-sidebar {
  background: #1e1e2e;
  min-height: 100vh;
  width: 220px;
  position: fixed;
  top: 0;
  left: 0;
  padding: 20px 0;
  z-index: 100;
}
.admin-sidebar .brand {
  color: var(--accent);
  font-weight: 800;
  font-size: 1.1rem;
  padding: 0 20px 20px;
  border-bottom: 1px solid #333;
  display: block;
}
.admin-sidebar .nav-link {
  color: #aaa;
  font-size: 0.875rem;
  padding: 9px 20px;
  display: block;
  transition: color 0.15s, background 0.15s;
}
.admin-sidebar .nav-link:hover { color: #fff; background: #2a2a3e; text-decoration: none; }
.admin-sidebar .nav-link.actief { color: var(--accent); background: #2a2a3e; font-weight: 600; }
.admin-sidebar .nav-sectie { color: #555; font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.08em; padding: 16px 20px 4px; }

.admin-content { margin-left: 220px; padding: 28px; min-height: 100vh; background: #f5f5f5; }
.admin-topbar { background: #fff; padding: 16px 24px; border-bottom: 1px solid var(--border);
  margin: -28px -28px 28px; display: flex; align-items: center; justify-content: space-between; }
.admin-topbar h1 { font-size: 1.2rem; font-weight: 700; margin: 0; }

.stat-card { background: #fff; border-radius: 8px; padding: 20px; border: 1px solid var(--border); }
.stat-card .getal { font-size: 2rem; font-weight: 800; }
.stat-card .label { color: var(--muted); font-size: 0.85rem; }
.stat-card.accent { border-top: 3px solid var(--accent); }

@media (max-width: 768px) {
  .admin-sidebar { display: none; }
  .admin-content { margin-left: 0; padding: 16px; }
}
