:root {
  --bg-color: #0a0a0a;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --accent-color: #00ff88;
  --accent-hover: #00cc6a;
  --text-main: #ffffff;
  --text-muted: #b0b0b0;
  --danger: #ff4d4d;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(0, 255, 136, 0.08), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(0, 100, 255, 0.05), transparent 25%);
  color: var(--text-main);
  font-family: var(--font-main);
  min-height: 100vh;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* --- Layout --- */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* --- Glass Components --- */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* --- Header --- */
.site-header {
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -1px;
}

.logo span { color: var(--accent-color); }

.nav { display: flex; gap: 1.5rem; align-items: center; }
.nav a { font-weight: 500; font-size: 0.95rem; color: var(--text-muted); }
.nav a:hover, .nav a.active { color: var(--accent-color); }

.admin-link {
  border: 1px solid var(--glass-border);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem !important;
}

/* --- Hero & Sections --- */
.hero { text-align: center; padding: 4rem 0 2rem; }
.hero h2 { font-size: 2.5rem; margin-bottom: 0.5rem; background: linear-gradient(to right, #fff, #b0b0b0); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { color: var(--text-muted); margin-bottom: 2rem; }

.sort-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

/* --- Custom Inputs & Selects --- */
input:not([type="checkbox"]):not([type="radio"]) {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: #fff;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  outline: none;
  font-family: inherit;
}
input:focus { border-color: var(--accent-color); }

/* Custom Select Styling */
.custom-select-container {
  position: relative;
  min-width: 200px;
  text-align: left;
}
.custom-select-trigger {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 0.7rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  user-select: none;
}
.custom-select-trigger:after {
  content: '▼';
  font-size: 0.7em;
  margin-left: 10px;
  color: var(--accent-color);
}
.custom-options {
  position: absolute;
  top: 110%;
  left: 0;
  right: 0;
  background: #111;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  overflow: hidden;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.custom-select-container.open .custom-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.custom-option {
  padding: 0.8rem 1rem;
  cursor: pointer;
  transition: 0.2s;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.custom-option:last-child { border-bottom: none; }
.custom-option:hover {
  background: var(--accent-color);
  color: #000;
}
.custom-option.selected {
  background: rgba(255,255,255,0.1);
  color: var(--accent-color);
}

/* Custom Number Input (Admin) */
.custom-number-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  overflow: hidden;
}
.num-btn {
  background: var(--glass-bg);
  border: none;
  color: var(--accent-color);
  width: 35px;
  height: 35px;
  cursor: pointer;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}
.num-btn:hover { background: rgba(255,255,255,0.1); }
.num-display {
  width: 50px;
  text-align: center;
  border-left: 1px solid var(--glass-border);
  border-right: 1px solid var(--glass-border);
  padding: 0.3rem;
  font-size: 0.9rem;
}

/* --- Custom Popup / Modal --- */
.custom-modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(5px);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}
.custom-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.custom-modal-box {
  background: #1a1a1a;
  border: 1px solid var(--accent-color);
  padding: 2rem;
  border-radius: 16px;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 0 40px rgba(0, 255, 136, 0.1);
  transform: scale(0.8);
  transition: 0.3s;
}
.custom-modal-overlay.active .custom-modal-box {
  transform: scale(1);
}

/* --- Grid --- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  padding-bottom: 4rem;
}

.product-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-color);
}

.product-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.product-card .desc { font-size: 0.85rem; color: var(--text-muted); flex-grow: 1; margin-bottom: 1rem; }
.product-card .price { font-size: 1.2rem; font-weight: bold; color: var(--accent-color); }

.badge {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
}

.low-stock { color: var(--danger); font-weight: bold; font-size: 0.8rem; margin-top: 0.5rem; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  background: var(--accent-color);
  color: #000;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
  text-align: center;
  margin-top: 1rem;
  width: 100%;
}

.btn:hover { background: var(--accent-hover); transform: scale(1.02); }
.btn-outline { background: transparent; border: 1px solid var(--glass-border); color: #fff; }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.05); color: #fff; }

/* --- Forms & Admin --- */
.login-form { max-width: 400px; margin: 4rem auto; text-align: center; }
.login-form input { width: 100%; margin-bottom: 1rem; padding: 1rem; }

.admin-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--glass-border);
}
.stock-control { display: flex; gap: 10px; align-items: center; }

/* --- Cart & Footer --- */
.cart-item { display: flex; justify-content: space-between; padding: 1rem 0; border-bottom: 1px solid var(--glass-border); }
.site-footer { text-align: center; padding: 2rem; color: var(--text-muted); font-size: 0.8rem; border-top: 1px solid var(--glass-border); margin-top: auto; }

/* Mobile */
@media (max-width: 768px) {
  main { grid-template-columns: 1fr !important; }
}
/* ... (Houd je bestaande CSS, voeg dit toe of vervang) ... */

/* --- Receipt / Confirmation Styling --- */
.receipt-container {
    background: #fff; /* Bonnetje is vaak wit of heel licht grijs */
    color: #000;      /* Zwarte tekst voor contrast zoals een echte bon */
    padding: 2rem;
    border-radius: 4px; /* Scherpe hoeken of lichte ronding zoals papier */
    font-family: 'Courier New', Courier, monospace; /* Monospace voor bon-look */
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    margin: 2rem 0;
    text-align: left;
    position: relative;
    overflow: hidden;
}

/* Kartelrand effect onderaan de bon (optioneel, leuk detail) */
.receipt-container::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 10px;
    background: radial-gradient(circle, transparent 50%, #fff 50%);
    background-size: 10px 10px;
}

/* Maar omdat we Dark Mode glass design hebben, maken we een "Digital Receipt" variant die past bij het thema */
.digital-receipt-card {
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.05);
    max-width: 400px;
    margin: 0 auto;
}

/* --- Mobile Optimalisaties --- */
@media (max-width: 600px) {
    .container {
        width: 95%;
        padding: 0 0.5rem;
    }
    
    .glass-panel {
        padding: 1.5rem 1rem; /* Minder padding op mobiel */
    }

    .hero h2 {
        font-size: 1.8rem; /* Kleiner font voor titles */
    }

    .digital-receipt-card {
        padding: 1.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .nav {
        gap: 0.8rem;
    }
    
    .nav a {
        font-size: 0.85rem;
    }

    /* Zorg dat knoppen makkelijk te tikken zijn */
    .btn {
        padding: 0.8rem 1rem;
    }
}