/* Kleurenpalet */
:root {
  --primary: #d62828;
  --dark: #0d0d0d;
  --light: #f9f9f9;
  --accent: #ffbe0b;
}

/* Basis */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--light);
  color: #333;
  line-height: 1.6;
}

/* Header */
.dark-header {
  background: linear-gradient(135deg, var(--dark) 0%, #222 100%);
  color: #fff;
  padding: 25px 20px;
  text-align: center;
  border-bottom: 3px solid var(--primary);
}
.dark-header h1 { font-size: 2rem; letter-spacing: 1px; }
.dark-header p { font-size: 1rem; opacity: 0.8; }

/* Navigatie */
nav {
  background: var(--dark);
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 14px;
}
nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: color 0.3s;
}
nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s;
}
nav a:hover { color: var(--primary); }
nav a:hover::after { width: 100%; }

/* Logo */
.logo {
  display: block;
  margin: 20px auto;
  max-width: 160px;
}

/* Secties */
section {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}
section h2 {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 1.8rem;
}

/* Knoppen */
button, .add-to-cart {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}
button:hover, .add-to-cart:hover {
  background: #a61c1c;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Productcards */
.products {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: center;
}
.product {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  padding: 20px;
  width: 280px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.product:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.product img {
  border-radius: 8px;
  margin-bottom: 12px;
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* Cart overlay */
.cart {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--primary);
  color: white;
  padding: 12px 16px;
  border-radius: 50%;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.2s ease;
  z-index: 2100;
}
.cart:hover { transform: scale(1.1); }

#cartOverlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 2000;
}
#cartContent {
  background: #fff;
  width: 92%;
  max-width: 420px;
  margin: 80px auto;
  padding: 24px;
  border-radius: 12px;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
#cartContent h2 { margin-bottom: 10px; color: var(--primary); }
#cartItems { list-style: none; padding: 0; margin: 0; flex: 1; overflow-y: auto; }
#cartItems li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #eee;
}
#cartItems img { width: 50px; height: 50px; object-fit: cover; border-radius: 6px; }
.remove-btn {
  margin-left: auto;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
}
.remove-btn:hover { background: #a61c1c; }
#cartTotal {
  margin-top: 12px;
  font-size: 18px;
  font-weight: bold;
  text-align: right;
  color: var(--primary);
}
.close-cart {
  margin-top: 8px;
  background: #333;
  color: #fff;
}
.close-cart:hover { background: #000; }

/* Profielen */
.profiles {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: center;
  margin-top: 20px;
}
.profile-card {
  width: 260px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  text-align: center;
  padding: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.profile-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.18);
}
.profile-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}
.profile-card h3 { margin: 6px 0; color: var(--primary); }
.profile-card p { font-size: 14px; color: #555; }

/* Footer */
.dark-footer {
  background: linear-gradient(135deg, var(--dark) 0%, #222 100%);
  color: #fff;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  border-top: 3px solid var(--primary);
}
/* Trainers extra styling */
.profile-card img {
  width: 100%;
  height: 240px;       /* iets groter dan eerder */
  object-fit: cover;   /* vult het kader zonder vervormen */
  border-radius: 10px;
  margin-bottom: 12px;
}
.profile-meta {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  text-align: left;
  color: #555;
}
.profile-meta li {
  margin-bottom: 6px;
}
/* Lightbox overlay */
.lb-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.8);
  display: none; align-items: center; justify-content: center;
  z-index: 3000;
}
.lb-overlay img {
  max-width: 90vw; max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.social-links {
  margin-top: 10px;
}
.social-links a {
  color: var(--accent);
  text-decoration: none;
  margin: 0 8px;
  font-weight: 600;
  transition: color 0.3s;
}
.social-links a:hover {
  color: var(--primary);
}
/* FAQ styling */
.faq-item {
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.faq-item h3 {
  color: var(--primary);
  margin-bottom: 8px;
}

/* Chatbox styling */
#chatBox {
  background: #f1f1f1;
  border-radius: 12px;
  max-width: 600px;
  margin: 20px auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

#chatMessages {
  min-height: 200px;
  max-height: 400px;
  overflow-y: auto;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-bubble {
  padding: 10px 14px;
  border-radius: 16px;
  max-width: 80%;
  word-wrap: break-word;
  font-size: 0.95rem;
}

.chat-user {
  background: var(--primary);
  color: #fff;
  align-self: flex-end;
}

.chat-assistant {
  background: #fff;
  color: #333;
  border: 1px solid #ddd;
  align-self: flex-start;
}

#chatInputArea {
  display: flex;
  gap: 8px;
}

#assistantInput {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

#assistantSend {
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
}
#assistantSend:hover {
  background: #a61c1c;
}
/* Dropdown menu */
.dropdown {
  position: relative;
  display: inline-block;
}
.dropbtn {
  background: none;
  border: none;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  padding: 8px 12px;
}
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 180px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 1;
  border-radius: 6px;
}
.dropdown-content a {
  color: #333;
  padding: 10px 14px;
  text-decoration: none;
  display: block;
}
.dropdown-content a:hover {
  background-color: #f1f1f1;
}
.dropdown.show .dropdown-content {
  display: block;
}

/* Cart overlay */
.cart {
  position: fixed;
  top: 10px;
  right: 20px;
  cursor: pointer;
  background: var(--primary);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
}
#cartOverlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
}
#cartContent {
  background: #fff;
  max-width: 400px;
  margin: 80px auto;
  padding: 20px;
  border-radius: 12px;
}
/* Dropdown menu */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  background: none;
  border: none;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  padding: 8px 12px;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 180px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 1;
  border-radius: 6px;
}

.dropdown-content a {
  color: #333;
  padding: 10px 14px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}

/* Toon submenu als class 'show' actief is */
.dropdown.show .dropdown-content {
  display: block;
}
body {
  background-image: url("images/boxgym-parkstad-1.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: white; /* optioneel, voor leesbaarheid */
}
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5); /* donker overlay */
  z-index: -1;
}
header, nav, section, footer {
  background-color: rgba(0,0,0,0.6);
  padding: 20px;
  border-radius: 12px;
}
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 180px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 1;
}

.dropdown.show .dropdown-content {
  display: block;
}
.products h3,
.products p {
  color: #000; /* zwart */
}

.product button {
  background-color: #ff0000;
  color: #fff;
  font-weight: bold;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
}
.faq {
  color: #000; /* maakt alle tekst in de FAQ zwart */
}

.faq h2,
.faq h3,
.faq p {
  color: #000; /* expliciet voor titels en paragrafen */
}
.faq-item {
  background-color: rgba(255,255,255,0.9);
  color: #000;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 12px;
}
.discount-popup {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #4caf50;
  color: #fff;
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: bold;
  z-index: 9999;
}
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 180px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 1;
}

.dropdown.show .dropdown-content {
  display: block;
}
.discount-section {
  margin-top: 10px;
}

#discountInput {
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

#applyDiscountBtn {
  padding: 6px 12px;
  margin-left: 5px;
  background: #28a745;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#applyDiscountBtn:hover {
  background: #218838;
}
.cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 20px;
  z-index: 2000;
}
.cart-overlay.show { display: block; }

.product {
  margin: 20px;
}
.product button {
  padding: 6px 12px;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.product button:hover {
  background: #0056b3;
}
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 verhouding */
  height: 0;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.95); /* lichte achtergrond */
  color: #000; /* alle tekst zwart */
  padding: 20px;
  z-index: 2000;
}

.cart-overlay.show { display: block; }

#cartItems li {
  color: #000; /* items zwart */
}

#cartTotal {
  color: #000; /* totaal zwart */
}
/* Winkelwagen overlay */
.cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: #fff; /* witte achtergrond */
  color: #000;      /* zwarte tekst */
  padding: 20px;
  z-index: 2000;
  border: 2px solid #000;
}

.cart-overlay.show { display: block; }

#cartItems li {
  color: #000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 6px 0;
}

/* Sluitknop */
#closeCart {
  background: #007bff; /* blauw */
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 12px;
}

#closeCart:hover {
  background: #0056b3;
}

/* Verwijderknop */
.remove-btn {
  background: #dc3545; /* rood */
  color: #fff;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.remove-btn:hover {
  background: #a71d2a;
}
.product-table {
  margin: 20px;
}

.product-table h2 {
  margin-bottom: 10px;
  color: #000;
}

.product-table table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  color: #000;
}

.product-table th,
.product-table td {
  border: 1px solid #000;
  padding: 8px;
  text-align: left;
}

.product-table th {
  background: #007bff;
  color: #fff;
}
.product-table th {
  background: #007bff; /* blauwe achtergrond */
  color: #fff;         /* witte tekst */
  padding: 8px;
  text-align: left;
}
.product-table h2 {
  color: #fff;       /* titel wit */
  background: #007bff; /* optioneel: blauwe achtergrond */
  padding: 10px;
  border-radius: 4px;
}
.product-table {
  margin: 20px auto;   /* auto zorgt voor horizontale centrering */
  width: 80%;          /* breedte van de tabel */
  text-align: center;  /* tekst in de cellen centreren */
}

.product-table h2 {
  color: #fff;
  background: #007bff;
  padding: 10px;
  border-radius: 4px;
  text-align: center;  /* titel centreren */
}

.product-table table {
  margin: 0 auto;      /* tabel zelf centreren */
  border-collapse: collapse;
  background: #fff;
  color: #000;
}

.product-table th,
.product-table td {
  border: 1px solid #000;
  padding: 8px;
}
