/* =========================================================
   VapeBenelux Design System
   Zwart / wit / donkergrijs basis met premium accentkleur.
   Alle kleuren, spacing en typografie lopen via CSS-variabelen
   zodat het hele thema centraal bij te sturen is.
   ========================================================= */

:root {
  /* --- Merkkleuren --- */
  --vb-black: #0b0b0c;
  --vb-near-black: #16171a;
  --vb-dark-gray: #2b2d31;
  --vb-mid-gray: #6b6f76;
  --vb-light-gray: #e7e8ea;
  --vb-off-white: #f7f7f8;
  --vb-white: #ffffff;

  /* Accent: premium teal-emerald. Gebruik spaarzaam voor CTA's,
     badges en actieve staten -- niet als achtergrondkleur van vlakken. */
  --vb-accent: #00b389;
  --vb-accent-dark: #00976f;
  --vb-accent-light: #e5f7f2;

  /* Statuskleuren (voorraad) */
  --vb-status-instock: #00976f;
  --vb-status-low: #c98a00;
  --vb-status-verylow: #d64545;
  --vb-status-out: #8a8d93;

  /* Semantiek */
  --vb-bg: var(--vb-white);
  --vb-bg-alt: var(--vb-off-white);
  --vb-text: var(--vb-near-black);
  --vb-text-muted: var(--vb-mid-gray);
  --vb-border: var(--vb-light-gray);

  /* --- Typografie --- */
  --vb-font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --vb-font-display: "Inter", var(--vb-font-base);

  --vb-fs-xs: 0.75rem;   /* 12px */
  --vb-fs-sm: 0.875rem;  /* 14px */
  --vb-fs-base: 1rem;    /* 16px */
  --vb-fs-md: 1.125rem;  /* 18px */
  --vb-fs-lg: 1.375rem;  /* 22px */
  --vb-fs-xl: 1.75rem;   /* 28px */
  --vb-fs-2xl: 2.25rem;  /* 36px */
  --vb-fs-3xl: 3rem;     /* 48px */

  --vb-lh-tight: 1.2;
  --vb-lh-base: 1.5;

  /* --- Spacing schaal (8px basis) --- */
  --vb-space-1: 4px;
  --vb-space-2: 8px;
  --vb-space-3: 12px;
  --vb-space-4: 16px;
  --vb-space-5: 24px;
  --vb-space-6: 32px;
  --vb-space-7: 48px;
  --vb-space-8: 64px;
  --vb-space-9: 96px;

  /* --- Radius / schaduw --- */
  --vb-radius-sm: 6px;
  --vb-radius-md: 12px;
  --vb-radius-lg: 20px;
  --vb-radius-pill: 999px;

  --vb-shadow-sm: 0 1px 2px rgba(11,11,12,0.06);
  --vb-shadow-md: 0 4px 16px rgba(11,11,12,0.08);
  --vb-shadow-lg: 0 12px 32px rgba(11,11,12,0.12);

  /* --- Layout --- */
  --vb-container-max: 1280px;
  --vb-header-height: 72px;
  --vb-header-height-mobile: 56px;
}

/* =========================================================
   Basis reset / typografie
   ========================================================= */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--vb-bg);
  color: var(--vb-text);
  font-family: var(--vb-font-base);
  line-height: var(--vb-lh-base);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font-family: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--vb-accent);
  outline-offset: 2px;
}

.vb-scope, .vapebenelux {
  color: var(--vb-text);
  font-family: var(--vb-font-base);
  line-height: var(--vb-lh-base);
}

.vb-h1 { font-size: var(--vb-fs-3xl); line-height: var(--vb-lh-tight); font-weight: 700; letter-spacing: -0.02em; }
.vb-h2 { font-size: var(--vb-fs-2xl); line-height: var(--vb-lh-tight); font-weight: 700; letter-spacing: -0.01em; }
.vb-h3 { font-size: var(--vb-fs-xl);  line-height: var(--vb-lh-tight); font-weight: 600; }
.vb-body-sm { font-size: var(--vb-fs-sm); color: var(--vb-text-muted); }

/* =========================================================
   Knoppen
   ========================================================= */
.vb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--vb-space-2);
  padding: 12px 24px;
  border-radius: var(--vb-radius-sm);
  font-size: var(--vb-fs-sm);
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.05s ease;
  text-decoration: none;
  line-height: 1;
}
.vb-btn:active { transform: translateY(1px); }

.vb-btn--primary {
  background: var(--vb-black);
  color: var(--vb-white);
}
.vb-btn--primary:hover { background: var(--vb-near-black); }

.vb-btn--accent {
  background: var(--vb-accent);
  color: var(--vb-white);
}
.vb-btn--accent:hover { background: var(--vb-accent-dark); }

.vb-btn--outline {
  background: transparent;
  border-color: var(--vb-border);
  color: var(--vb-text);
}
.vb-btn--outline:hover { border-color: var(--vb-text); }

.vb-btn--disabled,
.vb-btn:disabled {
  background: var(--vb-light-gray);
  color: var(--vb-mid-gray);
  cursor: not-allowed;
}

/* =========================================================
   Invoervelden
   ========================================================= */
.vb-input,
.vb-select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--vb-border);
  border-radius: var(--vb-radius-sm);
  font-size: var(--vb-fs-sm);
  background: var(--vb-white);
  color: var(--vb-text);
}
.vb-input:focus,
.vb-select:focus {
  outline: none;
  border-color: var(--vb-accent);
  box-shadow: 0 0 0 3px var(--vb-accent-light);
}

/* =========================================================
   Badges (voorraad + productlabels)
   ========================================================= */
.vb-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--vb-radius-pill);
  font-size: var(--vb-fs-xs);
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}
.vb-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.vb-badge--instock   { background: #e6f6f0; color: var(--vb-status-instock); }
.vb-badge--low       { background: #fbf1de; color: var(--vb-status-low); }
.vb-badge--verylow   { background: #fbe9e9; color: var(--vb-status-verylow); }
.vb-badge--out       { background: var(--vb-light-gray); color: var(--vb-status-out); }

.vb-badge--label {
  background: var(--vb-black);
  color: var(--vb-white);
}
.vb-badge--label.vb-badge--sale { background: var(--vb-status-verylow); }
.vb-badge--label.vb-badge--new  { background: var(--vb-accent); }

/* =========================================================
   Productkaart
   ========================================================= */
.vb-card {
  display: flex;
  flex-direction: column;
  background: var(--vb-white);
  border: 1px solid var(--vb-border);
  border-radius: var(--vb-radius-md);
  overflow: hidden;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  height: 100%;
}
.vb-card:hover {
  box-shadow: var(--vb-shadow-md);
  transform: translateY(-2px);
}
.vb-card--soldout { opacity: 0.72; }

.vb-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--vb-bg-alt);
}
.vb-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.vb-card__badges {
  position: absolute;
  top: var(--vb-space-3);
  left: var(--vb-space-3);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vb-card__body {
  padding: var(--vb-space-4);
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.vb-card__brand {
  font-size: var(--vb-fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--vb-text-muted);
  font-weight: 600;
}
.vb-card__title {
  font-size: var(--vb-fs-sm);
  font-weight: 600;
  color: var(--vb-text);
  line-height: var(--vb-lh-tight);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vb-card__flavour {
  font-size: var(--vb-fs-xs);
  color: var(--vb-text-muted);
}
.vb-card__stock {
  margin-top: 2px;
}
.vb-card__price-row {
  margin-top: auto;
  padding-top: var(--vb-space-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--vb-space-2);
}
.vb-card__price {
  font-size: var(--vb-fs-md);
  font-weight: 700;
}
.vb-card__price--was {
  font-size: var(--vb-fs-sm);
  color: var(--vb-text-muted);
  text-decoration: line-through;
  font-weight: 400;
  margin-right: 6px;
}
.vb-card__cta {
  padding: 8px 14px;
  font-size: var(--vb-fs-xs);
}

@media (max-width: 640px) {
  .vb-card__body { padding: var(--vb-space-3); }
}
