/* Muizels.nl - Mobile-first webshop */

/* Onderhoudsmodus - overlay masker */
.onderhoud-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--kleur-primair);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.3s ease;
}

.onderhoud-overlay.verborgen {
  opacity: 0;
  pointer-events: none;
}

.onderhoud-overlay h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.onderhoud-overlay p {
  font-size: 1.2rem;
  opacity: 0.9;
}

:root {
  --kleur-primair: #8B6F5A;
  --kleur-primair-donker: #6B5342;
  --kleur-accent: #D4A574;
  --kleur-achtergrond: #FDF8F3;
  --kleur-kaart: #FFFFFF;
  --kleur-tekst: #3A3A3A;
  --kleur-tekst-licht: #777;
  --kleur-rand: #E8DDD3;
  --kleur-succes: #5A8F6B;
  --kleur-fout: #C0392B;
  --kleur-actie: #C0392B;
  --schaduw: 0 2px 8px rgba(0, 0, 0, 0.08);
  --radius: 8px;
  --max-breedte: 1200px;
}

/* Thema's: overschrijven de standaardkleuren via data-thema op <html>.
   Beschikbare thema's staan ook in worker (BESCHIKBARE_THEMAS) en admin.js (THEMAS). */

[data-thema="lente"] {
  --kleur-primair: #4E7D57;
  --kleur-primair-donker: #3A5F42;
  --kleur-accent: #A8C686;
  --kleur-achtergrond: #F4F9F0;
  --kleur-tekst: #2F3A2F;
  --kleur-tekst-licht: #6E7D6E;
  --kleur-rand: #D8E6D0;
  --kleur-succes: #4E7D57;
}

[data-thema="pastel"] {
  --kleur-primair: #B96A8C;
  --kleur-primair-donker: #96506E;
  --kleur-accent: #F2C4CE;
  --kleur-achtergrond: #FDF4F7;
  --kleur-tekst: #43333A;
  --kleur-tekst-licht: #8A7480;
  --kleur-rand: #F0DAE2;
}

[data-thema="kerst"] {
  --kleur-primair: #9E3B3B;
  --kleur-primair-donker: #7C2D2D;
  --kleur-accent: #C9A227;
  --kleur-achtergrond: #FAF5EF;
  --kleur-tekst: #35302B;
  --kleur-tekst-licht: #7A736B;
  --kleur-rand: #E6DCCB;
  --kleur-succes: #3F6B4F;
}

[data-thema="nacht"] {
  --kleur-primair: #D4A574;
  --kleur-primair-donker: #E6BE8E; /* op donker juist lichter bij hover */
  --kleur-accent: #8B6F5A;
  --kleur-achtergrond: #1E1B18;
  --kleur-kaart: #2A2622;
  --kleur-tekst: #EAE3DA;
  --kleur-tekst-licht: #A79D91;
  --kleur-rand: #3D372F;
  --kleur-succes: #7BAF8C;
  --schaduw: 0 2px 8px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--kleur-achtergrond);
  color: var(--kleur-tekst);
  line-height: 1.6;
}

a { color: var(--kleur-primair); text-decoration: none; }
a:hover { color: var(--kleur-primair-donker); }

img { max-width: 100%; height: auto; }

/* Header */
.header {
  background: var(--kleur-kaart);
  border-bottom: 2px solid var(--kleur-rand);
  padding: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-breedte);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-slogan {
  font-size: 0.85rem;
  color: var(--kleur-tekst-licht);
  font-style: italic;
  white-space: nowrap;
}

@media (max-width: 479px) {
  .header-slogan { display: none; }
}

.logo-img {
  height: 50px;
  width: auto;
}

@media (min-width: 640px) {
  .logo-img { height: 60px; }
}

.header-nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.header-nav a {
  color: var(--kleur-tekst);
  font-size: 1.5rem;
}

.winkelwagen-link {
  position: relative;
  font-size: 1.4rem;
}

.winkelwagen-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  background: var(--kleur-actie);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.winkelwagen-badge:empty { display: none; }

/* Zoekbalk */
.zoekbalk {
  max-width: var(--max-breedte);
  margin: 1rem auto;
  padding: 0 1rem;
}

.zoekbalk input {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--kleur-rand);
  border-radius: var(--radius);
  font-size: 0.95rem;
  background: var(--kleur-kaart);
}

.zoekbalk input:focus {
  outline: none;
  border-color: var(--kleur-primair);
}

/* Container */
.container {
  max-width: var(--max-breedte);
  margin: 0 auto;
  padding: 1rem;
}

/* Banner carrousel */
.banner-carrousel {
  max-width: var(--max-breedte);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.banner-slides {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 1;
  background: var(--kleur-rand);
}

.banner-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.banner-slide.actief {
  opacity: 1;
}

.banner-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 0;
}

.banner-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--kleur-primair);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.banner-dot.actief {
  background: var(--kleur-primair);
}

/* Categorie rondjes */
.categorie-rondjes {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.5rem 0 1.5rem;
  -webkit-overflow-scrolling: touch;
  justify-content: center;
  flex-wrap: wrap;
}

.categorie-rondje {
  cursor: pointer;
  text-align: center;
  flex-shrink: 0;
}

.categorie-rondje-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 3px solid transparent;
  transition: border-color 0.2s, transform 0.2s;
  box-shadow: var(--schaduw);
}

.categorie-rondje-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 50%;
}

.categorie-rondje-titel {
  position: relative;
  z-index: 1;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  padding: 0.2rem;
  text-align: center;
  line-height: 1.2;
}

.categorie-rondje:hover .categorie-rondje-img {
  transform: scale(1.05);
}

.categorie-rondje.actief .categorie-rondje-img {
  border-color: var(--kleur-primair);
}

.categorie-rondje-titel {
  font-size: 0.95rem;
}

@media (max-width: 639px) {
  .categorie-rondje-img {
    width: 150px;
    height: 150px;
  }
}

/* Productgrid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 960px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
}

.product-kaart {
  background: var(--kleur-kaart);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--schaduw);
  transition: transform 0.2s;
  cursor: pointer;
}

.product-kaart:hover { transform: translateY(-2px); }

.product-kaart-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--kleur-rand);
}

.product-kaart-info {
  padding: 0.75rem;
}

.product-kaart-naam {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-kaart-prijs {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--kleur-primair);
}

.product-kaart-prijs .oud {
  text-decoration: line-through;
  color: var(--kleur-tekst-licht);
  font-weight: 400;
  font-size: 0.8rem;
  margin-left: 0.3rem;
}

.product-kaart-prijs .actie {
  color: var(--kleur-actie);
}

.niet-op-voorraad {
  color: var(--kleur-tekst-licht);
  font-size: 0.8rem;
  font-style: italic;
}

/* Productdetail */
.product-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 1rem 0;
}

@media (min-width: 768px) {
  .product-detail { grid-template-columns: 1fr 1fr; }
}

.product-afbeeldingen {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-hoofdafbeelding {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--kleur-rand);
}

.product-thumbnails {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
}

.product-thumbnail {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  flex-shrink: 0;
}

.product-thumbnail.actief {
  border-color: var(--kleur-primair);
}

.kleur-varianten {
  margin-bottom: 1rem;
}

.kleur-varianten-label {
  font-size: 0.9rem;
  color: var(--kleur-tekst-licht);
  margin-bottom: 0.5rem;
}

.kleur-varianten-lijst {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.kleur-swatch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s;
}

.kleur-swatch:hover,
.kleur-swatch.actief {
  border-color: var(--kleur-primair);
  outline: 2px solid var(--kleur-primair);
  outline-offset: 2px;
}

.kleur-swatch-kleur {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.kleur-swatch-foto {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info h1 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.product-prijs-groot {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--kleur-primair);
  margin-bottom: 1rem;
}

.product-prijs-groot .actie { color: var(--kleur-actie); }
.product-prijs-groot .oud {
  text-decoration: line-through;
  color: var(--kleur-tekst-licht);
  font-size: 1rem;
  font-weight: 400;
}

.product-beschrijving {
  color: var(--kleur-tekst);
  margin-bottom: 1.5rem;
  white-space: pre-line;
  font-size: 0.95rem;
}

.product-categorie {
  font-size: 0.85rem;
  color: var(--kleur-tekst-licht);
  margin-bottom: 1rem;
}

/* Knoppen */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  background: var(--kleur-rand);
  color: var(--kleur-tekst);
}

.btn:hover {
  background: #d8cdc3;
  color: var(--kleur-tekst);
}

.btn-primair {
  background: var(--kleur-primair);
  color: white;
}

.btn-primair:hover { background: var(--kleur-primair-donker); color: white; }

.btn-accent:hover { color: white; }

.btn-accent {
  background: var(--kleur-accent);
  color: white;
}

.btn-klein {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
}

.btn-breed { width: 100%; }

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Aantal selector */
.aantal-selector {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--kleur-rand);
  border-radius: var(--radius);
  overflow: hidden;
}

.aantal-selector button {
  background: var(--kleur-kaart);
  border: none;
  padding: 0.5rem 0.8rem;
  font-size: 1rem;
  cursor: pointer;
}

.aantal-selector button:hover { background: var(--kleur-rand); }

.aantal-selector span {
  padding: 0.5rem 1rem;
  font-weight: 600;
  min-width: 2.5rem;
  text-align: center;
}

/* Winkelwagen */
.winkelwagen-leeg {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--kleur-tekst-licht);
}

.winkelwagen-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--kleur-rand);
  align-items: center;
}

.winkelwagen-item-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.winkelwagen-item-info {
  flex: 1;
}

.winkelwagen-item-naam {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.winkelwagen-item-prijs {
  color: var(--kleur-primair);
  font-weight: 700;
}

.winkelwagen-item-verwijder {
  background: none;
  border: none;
  color: var(--kleur-tekst-licht);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0.5rem;
}

.winkelwagen-item-verwijder:hover { color: var(--kleur-fout); }

.winkelwagen-totaal {
  padding: 1.5rem 0;
  border-top: 2px solid var(--kleur-rand);
  margin-top: 1rem;
}

.winkelwagen-totaal-regel {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.winkelwagen-totaal-regel.eindtotaal {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--kleur-rand);
}

/* Formulieren */
.formulier {
  max-width: 500px;
}

.formulier-groep {
  margin-bottom: 1rem;
}

.formulier-groep label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--kleur-tekst);
}

.formulier-groep input,
.formulier-groep textarea,
.formulier-groep select {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--kleur-rand);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
}

.formulier-groep input:focus,
.formulier-groep textarea:focus,
.formulier-groep select:focus {
  outline: none;
  border-color: var(--kleur-primair);
}

.formulier-rij {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1rem;
}

/* Melding */
.melding {
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.melding-succes {
  background: #E8F5E9;
  color: var(--kleur-succes);
  border: 1px solid #C8E6C9;
}

.melding-fout {
  background: #FFEBEE;
  color: var(--kleur-fout);
  border: 1px solid #FFCDD2;
}

.melding-info {
  background: #FFF3E0;
  color: #E65100;
  border: 1px solid #FFE0B2;
}

.melding-waarschuwing {
  background: #FFF8E1;
  color: #F57F17;
  border: 1px solid #FFECB3;
}

/* Paginamelding banners */
.pagina-melding {
  width: 100%;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
}

.pagina-melding-type-1 {
  background: #E3F2FD;
  color: #0D47A1;
  border-bottom: 2px solid #90CAF9;
}

.pagina-melding-type-2 {
  background: #FFF8E1;
  color: #E65100;
  border-bottom: 2px solid #FFCC02;
}

.pagina-melding-type-3 {
  background: #FFEBEE;
  color: #7F0000;
  border: 2px solid #E53935;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.pagina-melding-icoon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Bestelling bevestiging */
.bestelling-status {
  text-align: center;
  padding: 2rem 0;
}

.bestelling-status h1 { margin-bottom: 1rem; }

.status-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.status-aangemaakt { background: #FFF3E0; color: #E65100; }
.status-betaald { background: #E8F5E9; color: var(--kleur-succes); }
.status-open { background: #FFF3E0; color: #E65100; }
.status-verlopen, .status-geannuleerd, .status-mislukt { background: #FFEBEE; color: var(--kleur-fout); }
.status-verzonden { background: #E3F2FD; color: #1565C0; }
.status-afgerond { background: #E8F5E9; color: var(--kleur-succes); }

/* Breadcrumb */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--kleur-tekst-licht);
  padding: 0.5rem 0;
}

.breadcrumb a { color: var(--kleur-tekst-licht); }
.breadcrumb a:hover { color: var(--kleur-primair); }

/* Banner tekst overlay */
.banner-tekst {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.banner-tekst.actief {
  opacity: 1;
}

.banner-tekst-groot {
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  margin-bottom: 0.3rem;
}

.banner-tekst-klein {
  font-size: 0.85rem;
  font-weight: 400;
  color: white;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

@media (min-width: 640px) {
  .banner-tekst-groot { font-size: 1.8rem; }
  .banner-tekst-klein { font-size: 1rem; }
}

@media (min-width: 960px) {
  .banner-tekst-groot { font-size: 2.4rem; }
  .banner-tekst-klein { font-size: 1.15rem; }
}

/* Uitgelichte producten */
.uitgelicht-sectie {
  max-width: var(--max-breedte);
  margin: 2rem auto;
  padding: 0 1rem;
}

.uitgelicht-sectie h2 {
  text-align: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--kleur-primair-donker);
}

.uitgelicht-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) {
  .uitgelicht-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Instagram sectie */
.instagram-sectie {
  max-width: var(--max-breedte);
  margin: 2rem auto 0;
  padding: 2rem 1rem;
  text-align: center;
  border-top: 1px solid var(--kleur-rand);
}

.instagram-sectie h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--kleur-primair-donker);
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  max-width: var(--max-breedte);
  margin: 0 auto;
}

@media (min-width: 640px) {
  .instagram-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 960px) {
  .instagram-grid { grid-template-columns: repeat(5, 1fr); }
}

.instagram-foto {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--schaduw);
  transition: transform 0.2s;
}

.instagram-foto:hover {
  transform: translateY(-2px);
}

.instagram-foto img {
  width: 100%;
  height: auto;
  display: block;
}

.instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: white;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: opacity 0.2s;
}

.instagram-link:hover {
  opacity: 0.9;
  color: white;
}

/* Footer */
.footer {
  margin-top: 2rem;
  border-top: 1px solid var(--kleur-rand);
  background: var(--kleur-kaart);
  padding: 2rem 1rem;
  font-size: 0.85rem;
  color: var(--kleur-tekst);
}

.footer-inner {
  max-width: var(--max-breedte);
  margin: 0 auto;
}

.footer-slogan {
  text-align: center;
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  color: var(--kleur-primair-donker);
}

.footer-kolommen {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .footer-kolommen { grid-template-columns: 1fr 1fr 1fr; }
}

.footer-kolom h3 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: var(--kleur-primair-donker);
}

.footer-kolom ul {
  list-style: none;
  padding: 0;
}

.footer-kolom ul li {
  margin-bottom: 0.3rem;
}

.footer-kolom ul a {
  color: var(--kleur-tekst);
  font-size: 0.85rem;
}

.footer-kolom ul a:hover {
  color: var(--kleur-primair);
}

.footer-kolom p {
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
  color: var(--kleur-tekst);
}

.footer-betaallogos {
  max-width: 200px;
  height: auto;
}

.footer-copyright {
  text-align: center;
  color: var(--kleur-tekst-licht);
  padding-top: 1rem;
  border-top: 1px solid var(--kleur-rand);
}

/* Informatiepagina */
.info-inhoud {
  max-width: 700px;
  line-height: 1.8;
  font-size: 0.95rem;
}

.info-inhoud h1 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--kleur-primair-donker);
}

.info-inhoud h2 {
  font-size: 1.15rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--kleur-primair-donker);
}

.info-inhoud p {
  margin-bottom: 0.8rem;
}

/* Laden */
.laden {
  text-align: center;
  padding: 3rem;
  color: var(--kleur-tekst-licht);
}

/* Admin */
.admin-tabel {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.admin-tabel th,
.admin-tabel td {
  padding: 0.6rem;
  text-align: left;
  border-bottom: 1px solid var(--kleur-rand);
}

.admin-tabel th {
  background: var(--kleur-achtergrond);
  font-weight: 600;
  position: sticky;
  top: 0;
}

.admin-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--kleur-rand);
}

.admin-tab {
  padding: 0.7rem 1.2rem;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--kleur-tekst-licht);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

.admin-tab.actief {
  color: var(--kleur-primair);
  border-bottom-color: var(--kleur-primair);
}

.admin-acties {
  display: flex;
  gap: 0.3rem;
}

/* Responsive tabel wrapper */
.tabel-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Overlay / Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1rem;
}

.modal {
  background: var(--kleur-kaart);
  border-radius: var(--radius);
  padding: 1.5rem;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal h2 {
  margin-bottom: 1rem;
}

.modal-sluiten {
  float: right;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--kleur-tekst-licht);
}

/* Admin Login */
.admin-login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: var(--kleur-achtergrond);
}

.admin-login-kaart {
  background: var(--kleur-kaart);
  border-radius: var(--radius);
  box-shadow: var(--schaduw);
  padding: 2rem;
  width: 100%;
  max-width: 400px;
}

.admin-login-kaart h1 {
  text-align: center;
  color: var(--kleur-primair-donker);
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
}

.admin-wachtwoord-link {
  display: block;
  text-align: center;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--kleur-tekst-licht);
}

/* Admin Dashboard Layout */
.admin-layout {
  display: flex;
  min-height: calc(100vh - 70px);
}

.admin-sidebar {
  width: 220px;
  background: var(--kleur-kaart);
  border-right: 1px solid var(--kleur-rand);
  flex-shrink: 0;
}

.admin-nav {
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
}

.admin-nav-item {
  display: block;
  padding: 0.7rem 1.5rem;
  color: var(--kleur-tekst);
  font-size: 0.9rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}

.admin-nav-item:hover {
  background: var(--kleur-achtergrond);
  color: var(--kleur-primair);
}

.admin-nav-item.actief {
  background: var(--kleur-achtergrond);
  color: var(--kleur-primair);
  border-left-color: var(--kleur-primair);
  font-weight: 600;
}

.admin-inhoud {
  flex: 1;
  padding: 1.5rem 2rem;
  overflow-x: auto;
}

.admin-inhoud h2 {
  font-size: 1.3rem;
  color: var(--kleur-primair-donker);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.admin-inhoud h3 {
  font-size: 1.1rem;
  color: var(--kleur-primair-donker);
  margin-bottom: 0.75rem;
}

/* Admin secties */
.admin-sectie {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--kleur-rand);
}

.admin-sectie:last-child {
  border-bottom: none;
}

/* Afbeeldingen grid */
.afbeeldingen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}

.afbeelding-kaart {
  background: var(--kleur-kaart);
  border-radius: var(--radius);
  box-shadow: var(--schaduw);
  overflow: hidden;
}

.afbeelding-kaart img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.2s;
}

.afbeelding-kaart img:hover {
  transform: scale(1.03);
}

.afbeelding-info {
  padding: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.3rem;
}

.afbeelding-info small {
  font-size: 0.7rem;
  color: var(--kleur-tekst-licht);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Product afbeeldingen preview */
.prod-afbeeldingen-preview {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.prod-afb-item {
  position: relative;
  width: 60px;
  height: 60px;
}

.prod-afb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--kleur-rand);
}

.prod-afb-verwijder {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--kleur-fout);
  color: white;
  border: none;
  font-size: 0.7rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Afbeelding kiezer modal */
.afbeelding-kiezer-item {
  position: relative;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  border: 3px solid transparent;
  transition: border-color 0.15s;
}

.afbeelding-kiezer-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.afbeelding-kiezer-item.geselecteerd {
  border-color: var(--kleur-primair);
}

.afbeelding-kiezer-check {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--kleur-primair);
  color: white;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s;
}

.afbeelding-kiezer-item.geselecteerd .afbeelding-kiezer-check {
  opacity: 1;
}

/* Responsive admin */
@media (max-width: 768px) {
  .admin-layout {
    flex-direction: column;
  }

  .admin-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--kleur-rand);
  }

  .admin-nav {
    flex-direction: row;
    overflow-x: auto;
    padding: 0;
    -webkit-overflow-scrolling: touch;
  }

  .admin-nav-item {
    white-space: nowrap;
    padding: 0.7rem 1rem;
    border-left: none;
    border-bottom: 3px solid transparent;
    font-size: 0.8rem;
  }

  .admin-nav-item.actief {
    border-left-color: transparent;
    border-bottom-color: var(--kleur-primair);
  }

  .admin-inhoud {
    padding: 1rem;
  }

  .afbeeldingen-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
}
