:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #1c1f24;
  --muted: #5d6573;
  --border: #e2e5ea;
  --primary: #c2410c;
  --primary-dark: #9a3412;
  --primary-soft: #fff1e6;
  --accent: #1c1f24;
  --danger: #b42318;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.08);
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); }
a:hover { color: var(--primary-dark); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 0.5em; }
h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.05rem; }
[hidden] { display: none !important; }
code { background: rgba(0, 0, 0, 0.06); padding: 0.1em 0.35em; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.main { flex: 1; padding-top: 24px; padding-bottom: 48px; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.pre-line { white-space: pre-line; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  white-space: nowrap;
}
.logo span { color: var(--text); }
.search {
  flex: 1;
  display: flex;
  max-width: 640px;
  margin: 0 auto;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); background: var(--surface); }
.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 10px 18px;
  font: inherit;
  outline: none;
}
.search button {
  border: 0;
  background: var(--primary);
  color: #fff;
  padding: 0 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.search button:hover { background: var(--primary-dark); }
.cart-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}
.cart-icon { position: relative; display: flex; }
.cart-count {
  position: absolute;
  top: -9px;
  right: -11px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.category-nav { border-top: 1px solid var(--border); }
.category-nav .container {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-top: 6px;
  padding-bottom: 6px;
}
.category-nav .container::-webkit-scrollbar { display: none; }
.category-nav a {
  white-space: nowrap;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.925rem;
  padding: 6px 12px;
  border-radius: 999px;
}
.category-nav a:hover { color: var(--text); background: var(--bg); }
.category-nav a.active { color: var(--primary-dark); background: var(--primary-soft); font-weight: 600; }

@media (max-width: 720px) {
  .header-inner { flex-wrap: wrap; gap: 10px 16px; }
  .logo { order: 1; }
  .cart-link { order: 2; margin-left: auto; }
  .cart-label { display: none; }
  .search { order: 3; flex-basis: 100%; }
}

/* ---------- Knoppen ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 20px;
  border: 1.5px solid var(--primary);
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn-outline { background: transparent; color: var(--primary); }
.btn-outline:hover { background: var(--primary-soft); color: var(--primary-dark); }
.btn-danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn-danger:hover { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-small { padding: 6px 12px; font-size: 0.875rem; border-radius: 8px; }
.btn-block { width: 100%; }
.link-button { border: 0; background: none; padding: 0; font: inherit; color: var(--primary); cursor: pointer; text-decoration: underline; }
.link-button.danger { color: var(--danger); }

/* ---------- Homepagina ---------- */
.hero {
  background: linear-gradient(135deg, #f97316 0%, #c2410c 55%, #9a3412 100%);
  color: #fff;
  border-radius: 18px;
  padding: clamp(28px, 5vw, 56px);
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -40px;
  width: 320px;
  height: 320px;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.07) 0 6px, transparent 6px 14px);
  border-radius: 50%;
}
.hero > div { position: relative; z-index: 1; max-width: 560px; }
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.hero p { font-size: 1.1rem; opacity: 0.92; margin: 0 0 20px; }
.hero .btn { background: #fff; color: var(--primary-dark); border-color: #fff; }
.hero .btn:hover { background: var(--primary-soft); }

.section { margin-top: 36px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
}
.category-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
}
.category-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(16, 24, 40, 0.1); color: var(--text); }
.category-card-image {
  aspect-ratio: 4 / 3;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.category-card-image img { width: 100%; height: 100%; object-fit: cover; }
.category-card-recent .category-card-image { background: #1f2937; color: #fdba74; }
.category-card-body { padding: 12px 14px; }
.category-card-body h3 { margin: 0 0 2px; }
.category-card-body span { color: var(--muted); font-size: 0.875rem; }

/* ---------- Productkaarten ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
}
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.product-card-link { color: var(--text); text-decoration: none; flex: 1; }
.product-card-link:hover { color: var(--text); }
.product-card-link:hover h3 { color: var(--primary); }
.product-card-image { aspect-ratio: 1; background: #eef0f3; overflow: hidden; }
.product-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s; }
.product-card-link:hover .product-card-image img { transform: scale(1.03); }
.product-card-body { padding: 12px 14px 4px; }
.product-card-category { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.product-card-body h3 { margin: 2px 0 6px; font-size: 1rem; }
.product-card .btn { margin: 8px 14px 14px; }
.price { font-weight: 700; color: var(--text); }
.price-large { font-size: 1.6rem; margin: 0 0 20px; }

.empty {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  color: var(--muted);
}

.breadcrumbs { font-size: 0.875rem; color: var(--muted); margin-bottom: 16px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs span { margin: 0 4px; }

.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-heading h1 { margin-bottom: 4px; }
.page-heading p { margin: 0; }
.sort-form { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; }

/* ---------- Productpagina ---------- */
.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: clamp(16px, 3vw, 32px);
}
@media (max-width: 820px) { .product-detail { grid-template-columns: 1fr; gap: 24px; } }
.gallery-main { aspect-ratio: 1; background: #eef0f3; border-radius: var(--radius); overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumbs button {
  width: 72px;
  height: 72px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: #eef0f3;
}
.gallery-thumbs button.active { border-color: var(--primary); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-number { font-size: 0.85rem; color: var(--muted); margin: 0 0 4px; }
.add-to-cart { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.add-to-cart label { font-weight: 600; }
.qty-input { display: inline-flex; border: 1.5px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--surface); }
.qty-input button { width: 38px; border: 0; background: var(--bg); font-size: 1.2rem; cursor: pointer; color: var(--text); }
.qty-input button:hover { background: var(--primary-soft); }
.qty-input input { width: 54px; border: 0; text-align: center; font: inherit; padding: 9px 0; -moz-appearance: textfield; appearance: textfield; }
.qty-input input::-webkit-outer-spin-button,
.qty-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.description p { margin: 0 0 1em; white-space: pre-line; }
.specs { width: 100%; border-collapse: collapse; }
.specs th, .specs td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.specs th { width: 40%; color: var(--muted); font-weight: 500; padding-right: 16px; }

/* ---------- Winkelwagen & afrekenen ---------- */
.cart-layout, .checkout-layout, .order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}
@media (max-width: 860px) {
  .cart-layout, .checkout-layout, .order-layout { grid-template-columns: 1fr; }
}
.cart-items { display: flex; flex-direction: column; gap: 12px; }
.cart-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
}
.cart-item-image { width: 88px; height: 88px; border-radius: 8px; overflow: hidden; background: #eef0f3; }
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.cart-item-name { font-weight: 600; color: var(--text); text-decoration: none; }
.cart-item-total { min-width: 90px; text-align: right; }
@media (max-width: 560px) {
  .cart-item { grid-template-columns: 72px minmax(0, 1fr); }
  .cart-item-image { width: 72px; height: 72px; grid-row: span 2; }
  .cart-item-total { text-align: left; }
}
.cart-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: sticky;
  top: 140px;
}
.cart-summary dl { margin: 0; }
.cart-summary dl div { display: flex; justify-content: space-between; padding: 6px 0; }
.cart-summary dt { color: var(--muted); }
.cart-summary dd { margin: 0; }
.cart-summary .total { border-top: 1px solid var(--border); margin-top: 4px; padding-top: 12px; font-size: 1.15rem; font-weight: 700; }
.cart-summary .total dt { color: var(--text); }
.checkout-items { list-style: none; margin: 0; padding: 0; }
.checkout-items li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 0.925rem; }

/* ---------- Formulieren ---------- */
fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px 6px; margin: 0 0 18px; background: var(--surface); }
legend { font-weight: 700; padding: 0 6px; }
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; flex: 1; }
.field label { font-weight: 600; font-size: 0.925rem; }
.field-row { display: flex; gap: 14px; }
@media (max-width: 560px) { .field-row { flex-direction: column; gap: 0; } }
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]), select, textarea {
  font: inherit;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  width: 100%;
}
.qty-input input:not([type="checkbox"]):not([type="radio"]):not([type="file"]) { width: 54px; border: 0; border-radius: 0; padding: 9px 0; box-shadow: none; }
.search input:not([type="checkbox"]):not([type="radio"]):not([type="file"]) { border: 0; background: transparent; padding: 10px 18px; border-radius: 0; box-shadow: none; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.sort-form select { width: auto; padding: 6px 10px; }
.checkbox { display: flex; gap: 8px; align-items: center; margin: 8px 0 18px; font-weight: 500; }
.form-error {
  background: #fef3f2;
  color: var(--danger);
  border: 1px solid #fecdca;
  border-radius: 8px;
  padding: 10px 14px;
}
.form-error ul { margin: 0; padding-left: 18px; }
.notice { background: var(--primary-soft); color: var(--primary-dark); border-radius: 8px; padding: 10px 14px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; gap: 12px; }

/* ---------- Bedankt / 404 / login ---------- */
.thanks { text-align: center; max-width: 520px; margin: 40px auto; color: var(--text); }
.thanks svg { color: var(--primary); margin: 0 auto 12px; }
.login-box { max-width: 380px; margin: 40px auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }

/* ---------- Beheer ---------- */
.admin-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.admin-nav { display: flex; gap: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 4px; flex-wrap: wrap; }
.admin-nav a { text-decoration: none; color: var(--muted); padding: 6px 14px; border-radius: 7px; font-weight: 500; }
.admin-nav a.active { background: var(--primary); color: #fff; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.925rem; }
.admin-table th, .admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.admin-table thead th { background: var(--bg); font-weight: 600; color: var(--muted); }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table .num { text-align: right; white-space: nowrap; }
.admin-table td.actions { text-align: right; white-space: nowrap; }
.admin-table .actions form { margin: 0 0 0 6px; display: inline-block; }
.admin-table .actions > .btn { vertical-align: middle; }
.table-wrap + h2 { margin-top: 32px; }
.thumb { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; background: #eef0f3; }
.input-small { max-width: 80px; }
.admin-form { max-width: 760px; }
.inline-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.inline-form .field { margin-bottom: 0; min-width: 200px; }
.spec-rows { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.spec-row { display: grid; grid-template-columns: 1fr 1.6fr auto; gap: 8px; }
.image-manager { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; margin-bottom: 16px; }
.image-item { border: 1px solid var(--border); border-radius: 8px; padding: 8px; font-size: 0.85rem; display: flex; flex-direction: column; gap: 4px; }
.image-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; background: #eef0f3; }
.image-item label { display: flex; gap: 6px; align-items: center; }
.photo-preview { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.photo-preview img { width: 80px; height: 80px; object-fit: cover; border-radius: 6px; }

/* ---------- Footer & melding ---------- */
.site-footer { background: #111827; color: #d1d5db; padding: 28px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-inner p { margin: 4px 0 0; color: #9ca3af; }
.footer-inner nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: #d1d5db; }
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  opacity: 0;
  background: #111827;
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: opacity 0.25s, transform 0.25s;
  z-index: 50;
  max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast a { color: #fdba74; margin-left: 6px; }

/* ---------- Kleuren ---------- */
.swatch {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--swatch, #ccc);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
  vertical-align: middle;
}
.swatch-large { width: 34px; height: 34px; }
.swatch-options { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 6px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font-size: 0.875rem;
  cursor: pointer;
  background: var(--surface);
}
.swatch-check:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.swatch-check input { margin: 0; }
.swatch-radio { position: relative; cursor: pointer; display: inline-flex; }
.swatch-radio input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.swatch-radio .swatch { transition: box-shadow 0.15s, transform 0.15s; }
.swatch-radio:hover .swatch { transform: scale(1.08); }
.swatch-radio input:checked + .swatch { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--primary); }
.swatch-radio input:focus-visible + .swatch { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--text); }
.color-pickers { flex-basis: 100%; display: flex; flex-direction: column; gap: 12px; }
.color-picker { border: 0; padding: 0; margin: 0; background: none; }
.color-picker legend { padding: 0; margin-bottom: 8px; font-weight: 600; }
.color-picker.invalid legend { color: var(--danger); }
.chosen-color { font-weight: 400; color: var(--muted); margin-left: 4px; }
.photo-colors { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: -8px 0 20px; font-size: 0.925rem; }
.color-chip { display: inline-flex; align-items: center; gap: 6px; margin-right: 10px; }
.order-colors { margin-top: 4px; font-size: 0.875rem; }
.cart-item-colors { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--muted); }
.cart-item-colors.invalid { color: var(--danger); font-weight: 600; }
.checkout-items li > span:first-child { display: flex; flex-direction: column; gap: 2px; }
.color-choice { border-left: 3px solid var(--primary-soft); padding-left: 14px; margin-bottom: 12px; }
.field-label { font-weight: 600; font-size: 0.925rem; }
.slot-rows { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 8px; max-width: 360px; }
.slot-row { display: flex; gap: 8px; }
.color-input { width: 48px; height: 38px; padding: 2px; border: 1.5px solid var(--border); border-radius: 8px; background: var(--surface); cursor: pointer; }
.inline-form .field.field-color { flex: 0 0 auto; min-width: 0; }
.btn.disabled { opacity: 0.5; pointer-events: auto; cursor: not-allowed; }

/* ---------- Formuliercontrole ---------- */
.field-error { color: var(--danger); font-size: 0.85rem; }
input.invalid, select.invalid, textarea.invalid { border-color: var(--danger) !important; }
input.invalid:focus { box-shadow: 0 0 0 3px #fee4e2 !important; }
.field-row-address .field:nth-child(1) { flex: 1.2; }
.field-row-address .field:nth-child(2) { flex: 1; }
.field-row-address .field:nth-child(3) { flex: 0.8; }
.address-status { margin: -4px 0 14px; font-size: 0.9rem; }
.address-status.ok { color: #067647; }
.address-status.error { color: var(--danger); }

.footer-admin { opacity: 0.45; font-size: 0.85rem; }
.footer-admin:hover { opacity: 1; }
.swatch-radio.unavailable { cursor: not-allowed; }
.swatch-radio.unavailable .swatch { opacity: 0.35; background: linear-gradient(to top right, transparent calc(50% - 1.5px), #555 calc(50% - 1.5px), #555 calc(50% + 1.5px), transparent calc(50% + 1.5px)), var(--swatch); }
.swatch-radio.unavailable:hover .swatch { transform: none; }
.checkbox-inline { margin: 0; }

/* ---------- Foto's slepen ---------- */
.image-manager:empty { display: none; }
.image-item { position: relative; background: var(--surface); user-select: none; }
.js-images .image-item { cursor: grab; }
.image-item.is-dragging { opacity: 0.55; outline: 2px dashed var(--primary); outline-offset: 2px; cursor: grabbing; }
.image-manager.is-sorting { cursor: grabbing; }
.main-badge, .new-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  display: none;
  pointer-events: none;
}
.new-badge { top: auto; bottom: 48px; left: 14px; background: var(--text); display: block; }
.image-item:first-child .main-badge { display: block; }
.image-item:first-child { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.drag-handle {
  position: absolute;
  bottom: 44px;
  right: 12px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  color: var(--muted);
  touch-action: none;
  cursor: grab;
}
.image-item-actions { display: flex; gap: 4px; justify-content: space-between; }
.icon-button {
  flex: 1;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 6px;
  padding: 4px 0;
  cursor: pointer;
  font: inherit;
  color: var(--text);
}
.icon-button:hover { background: var(--primary-soft); }
.icon-button.danger { color: var(--danger); }
.icon-button.danger:hover { background: #fef3f2; }
.image-item:first-child [data-move="-1"], .image-item:last-child [data-move="1"] { visibility: hidden; }
.dropzone { position: relative; margin-bottom: 8px; }
.dropzone input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.js-images .dropzone input[type="file"] { pointer-events: none; }
.dropzone-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 22px 16px;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--muted);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.dropzone-label svg { color: var(--primary); margin-bottom: 4px; }
.dropzone-label strong { color: var(--text); }
.dropzone:hover .dropzone-label, .dropzone.is-dragover .dropzone-label { border-color: var(--primary); background: var(--primary-soft); }
.dropzone input[type="file"]:focus-visible + .dropzone-label { outline: 2px solid var(--primary); outline-offset: 2px; }
.drop-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(194, 65, 12, 0.14);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  pointer-events: none; /* het loslaten gaat naar de pagina zelf */
}
.drop-overlay-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 32px 40px;
  border: 3px dashed var(--primary);
  border-radius: 18px;
  background: var(--surface);
  color: var(--primary);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
  text-align: center;
}
.drop-overlay-box strong { color: var(--text); font-size: 1.15rem; }

/* ---------- Bestelstatus ---------- */
.status-form { display: flex; flex-direction: column; }
.tracking-fields { border-left: 3px solid var(--primary-soft); padding-left: 12px; margin-bottom: 6px; }
.status-form .checkbox { align-items: flex-start; margin: 4px 0 14px; }
.history-title { margin: 18px 0 6px; font-size: 1rem; }
.status-history { list-style: none; padding: 0; margin: 0; font-size: 0.875rem; display: flex; flex-direction: column; gap: 6px; }
.status-history li { display: flex; flex-direction: column; border-left: 2px solid var(--border); padding-left: 10px; }

/* ---------- Dashboard ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat-tile {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  color: var(--text);
  text-decoration: none;
}
.stat-link:hover { border-color: var(--primary); color: var(--text); }
.stat-label { color: var(--muted); font-size: 0.875rem; }
.stat-value { font-size: 1.6rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat-sub { color: var(--muted); font-size: 0.8rem; }
.dash-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 20px; }
.dash-card h2 { font-size: 1.1rem; }
.dash-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.dash-columns .dash-card { margin-bottom: 0; }

.bar-chart { display: grid; grid-template-columns: auto 1fr; gap: 10px; height: 260px; margin-top: 8px; }
.bar-chart-axis { display: flex; flex-direction: column; justify-content: space-between; font-size: 0.75rem; color: var(--muted); text-align: right; padding-bottom: 22px; transform: translateY(-0.5em); font-variant-numeric: tabular-nums; }
.bar-chart-plot { position: relative; }
.bar-chart-grid { position: absolute; inset: 0 0 22px 0; display: flex; flex-direction: column-reverse; justify-content: space-between; pointer-events: none; }
.bar-chart-grid span { border-top: 1px solid var(--border); }
.bar-chart-grid span:first-child { border-top-color: #c9ced6; }
.bar-chart-bars { position: absolute; inset: 0; display: flex; gap: 2px; }
.bar-col { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding-bottom: 22px; outline: none; cursor: default; }
.bar { width: 72%; max-width: 48px; background: var(--primary); border-radius: 4px 4px 0 0; transition: background 0.15s; }
.bar-col:hover .bar, .bar-col:focus-visible .bar { background: var(--primary-dark); }
.bar-col:focus-visible { box-shadow: inset 0 0 0 2px var(--text); border-radius: 6px; }
.bar-label { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: max-content; font-size: 0.72rem; color: var(--muted); white-space: nowrap; }
.bar-tip {
  position: absolute;
  bottom: calc(100% - 10px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: #fff;
  font-size: 0.8rem;
  line-height: 1.35;
  padding: 6px 10px;
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s;
  z-index: 2;
}
.bar-tip .muted { color: #cbd2dc; }
.bar-col:hover .bar-tip, .bar-col:focus-visible .bar-tip { opacity: 1; }
.bar-col:first-child .bar-tip { left: 0; transform: none; }
.bar-col:last-child .bar-tip { left: auto; right: 0; transform: none; }
@media (max-width: 640px) { .bar-label-odd { visibility: hidden; } }
.table-toggle { margin-top: 12px; font-size: 0.9rem; }
.table-toggle summary { cursor: pointer; color: var(--primary); }
.table-toggle table { margin-top: 8px; }

.rank-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.rank-head { display: flex; justify-content: space-between; gap: 12px; font-size: 0.925rem; margin-bottom: 4px; }
.rank-head a { color: var(--text); text-decoration: none; font-weight: 600; }
.rank-head a:hover { color: var(--primary); }
.rank-value { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rank-value strong { color: var(--text); }
.rank-track { height: 10px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.rank-bar { height: 100%; background: var(--bar, var(--primary)); border-radius: 999px; }
.rank-bar-light { box-shadow: inset 0 0 0 1px #b8bec8; }

/* ---------- Printlijst ---------- */
.printlist-actions { display: flex; gap: 8px; }
.printlist-summary { margin: -6px 0 16px; }
.printlist { display: flex; flex-direction: column; gap: 14px; margin-bottom: 14px; }
.print-group { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.print-group.is-done { opacity: 0.6; }
.print-group-head { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--border); background: var(--bg); }
.print-group-head h2 { margin: 0; font-size: 1.1rem; }
.print-swatches { display: flex; gap: 4px; }
.swatch-unknown { display: inline-flex; align-items: center; justify-content: center; color: var(--muted); font-weight: 700; background: var(--surface); }
.print-jobs { list-style: none; margin: 0; padding: 0; }
.print-jobs li + li { border-top: 1px solid var(--border); }
.print-job { display: flex; align-items: flex-start; gap: 12px; padding: 10px 18px; cursor: pointer; }
.print-job input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--primary); flex-shrink: 0; }
.print-job:has(input:checked) .print-name strong { text-decoration: line-through; color: var(--muted); }
.print-qty { font-weight: 700; min-width: 30px; font-variant-numeric: tabular-nums; }
.print-name { display: flex; flex-direction: column; }
.print-part { display: inline-block; font-size: 0.8rem; background: var(--primary-soft); color: var(--primary-dark); padding: 0 8px; border-radius: 999px; margin-left: 4px; }
.badge-printing { color: var(--primary-dark); font-weight: 600; }

@media print {
  .site-header, .site-footer, .admin-bar, .printlist-actions, .toast { display: none !important; }
  body { background: #fff; }
  .print-group { break-inside: avoid; }
  .swatch { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.bar-col:first-child .bar-label { left: 0; transform: none; }
.bar-col:last-child .bar-label { left: auto; right: 0; transform: none; }

/* ---------- Personalisatie ---------- */
.personalize { flex-basis: 100%; display: flex; flex-direction: column; gap: 4px; }
.personalize label { font-weight: 600; }
.personalize input { max-width: 360px; font-size: 1.05rem; }
.personalize-meta { display: flex; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.personalize.invalid input { border-color: var(--danger); }
.pers-text { display: inline-block; font-size: 0.875rem; }
.pers-text strong { background: var(--primary-soft); color: var(--primary-dark); padding: 1px 8px; border-radius: 6px; }
.print-text { font-size: 0.95rem; }
.print-text strong { font-size: 1.05rem; background: #fff7ed; border: 1px dashed var(--primary); padding: 0 8px; border-radius: 6px; letter-spacing: 0.02em; }

/* ---------- Delen ---------- */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 22px 0 6px; padding-top: 16px; border-top: 1px solid var(--border); }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.875rem;
  text-decoration: none;
  cursor: pointer;
}
.share-btn:hover { border-color: var(--primary); color: var(--primary-dark); }
.share-whatsapp svg { color: #128c4b; }

/* ---------- Video's ---------- */
.video-rows { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.video-row { display: flex; gap: 8px; align-items: center; }
.video-row input { flex: 1; }
.video-thumb { width: 72px; height: 40px; object-fit: cover; border-radius: 6px; background: #000; flex-shrink: 0; }
.gallery-main { position: relative; }
.gallery-main.is-video { aspect-ratio: 16 / 9; background: #000; }
.gallery-main iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gallery-video-thumb { position: relative; background: #000 !important; }
.gallery-video-thumb img { opacity: 0.85; }
.gallery-video-thumb .play-icon { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5)); transition: transform 0.15s; }
.gallery-video-thumb:hover .play-icon { transform: scale(1.12); }
.video-note { margin: 8px 0 0; }
.admin-bar-right { display: flex; align-items: center; gap: 14px; }
.version-badge { font-size: 0.78rem; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 2px 10px; }

/* ---------- Foto vergroten (lightbox) ---------- */
.gallery-main img[data-gallery-main] { cursor: zoom-in; }
.zoom-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.72);
  color: #fff;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  backdrop-filter: blur(4px);
}
.zoom-hint:hover { background: rgba(17, 24, 39, 0.9); }
html.lightbox-open, html.lightbox-open body { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10, 12, 16, 0.96); color: #fff; }
.lightbox-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; touch-action: none; cursor: zoom-in; user-select: none; }
.lightbox.is-zoomed .lightbox-stage { cursor: grab; }
.lightbox.is-panning .lightbox-stage { cursor: grabbing; }
.lightbox-img { max-width: calc(100vw - 32px); max-height: calc(100vh - 200px); margin-bottom: 70px; object-fit: contain; transform-origin: center center; will-change: transform; -webkit-user-drag: none; }
.lightbox-top { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: linear-gradient(rgba(0, 0, 0, 0.55), transparent); pointer-events: none; }
.lightbox-top > * { pointer-events: auto; }
.lightbox-count { font-size: 0.95rem; opacity: 0.85; font-variant-numeric: tabular-nums; }
.lightbox-tools { display: flex; gap: 8px; }
.lb-btn {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.26); }
.lb-btn:focus-visible { outline: 2px solid #fdba74; outline-offset: 2px; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 2.2rem; }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lightbox.single .lb-nav, .lightbox.is-zoomed .lb-nav { display: none; }
.lightbox-bottom { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 16px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.55)); pointer-events: none; }
.lightbox-help { margin: 0; text-align: center; font-size: 0.85rem; opacity: 0.7; }
.lightbox-strip { display: flex; gap: 8px; overflow-x: auto; max-width: 100%; padding: 4px; pointer-events: auto; scrollbar-width: thin; }
.lightbox-strip:empty { display: none; }
.lb-thumb { position: relative; flex: 0 0 auto; width: 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: #222; cursor: pointer; opacity: 0.6; transition: opacity 0.15s, border-color 0.15s; }
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb-thumb:hover { opacity: 0.9; }
.lb-thumb.active { opacity: 1; border-color: #fdba74; }
.lb-thumb:focus-visible { outline: 2px solid #fdba74; outline-offset: 2px; }
.lb-play { position: absolute; left: 50%; top: 50%; width: 30px; height: 21px; transform: translate(-50%, -50%); border-radius: 6px; background: #f00; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); }
.lb-play::after { content: ""; position: absolute; left: 12px; top: 5px; border-style: solid; border-width: 5.5px 0 5.5px 9px; border-color: transparent transparent transparent #fff; }
.lightbox-video { position: relative; width: min(calc(100vw - 140px), calc((100vh - 220px) * 16 / 9)); aspect-ratio: 16 / 9; margin-bottom: 70px; background: #000; border-radius: 10px; overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.lightbox-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lightbox.is-video .lightbox-stage { cursor: default; }
.lightbox.is-video [data-lb-zoom] { display: none; }
@media (max-width: 640px) { .lightbox-video { width: calc(100vw - 16px); } .lb-thumb { width: 52px; height: 52px; } }
@media (max-width: 640px) {
  .lb-nav { width: 44px; height: 44px; font-size: 1.8rem; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
}
/* Tijdens een video staat "Groot bekijken" onder de speler, zodat de YouTube-knoppen vrij blijven. */
.gallery-main.is-video { overflow: visible; margin-bottom: 46px; }
.gallery-main.is-video iframe { border-radius: var(--radius); }
.gallery-main.is-video .zoom-hint { bottom: -42px; right: 0; background: var(--text); z-index: 2; }

/* ---------- Algemene voorwaarden ---------- */
.legal { max-width: 760px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(18px, 4vw, 40px); }
.legal h2 { font-size: 1.15rem; margin: 1.6em 0 0.4em; }
.legal p, .legal li { line-height: 1.65; }
.legal ul { padding-left: 20px; }
.legal-actions { margin-top: 28px; }
.terms-notice {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px 16px;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.18);
}
.terms-notice p { margin: 0; flex: 1 1 300px; font-size: 0.95rem; }
.terms-notice-actions { display: flex; gap: 8px; }
body.has-terms-notice .toast { bottom: 110px; }
@media print {
  .no-print, .terms-notice { display: none !important; }
  .legal { border: 0; padding: 0; max-width: none; }
}
.terms-editor { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.875rem; line-height: 1.5; }

/* ---------- Aanbiedingen ---------- */
.discount-text { color: var(--primary-dark); font-weight: 600; }
.promo-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 56px; padding: 4px 10px; border-radius: 8px; background: var(--primary); color: #fff; font-weight: 800; font-size: 0.85rem; white-space: nowrap; letter-spacing: 0.01em; }
.promo-badge-large { font-size: 1rem; padding: 4px 12px; vertical-align: middle; }
.promo-list { display: flex; flex-direction: column; gap: 10px; }
.promo-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; }
.promo-row.status-uit, .promo-row.status-verlopen { opacity: 0.65; }
.promo-main { flex: 1 1 380px; display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--text); }
.promo-main:hover strong { color: var(--primary); }
.promo-info { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.promo-thumbs { display: flex; gap: 4px; align-items: center; margin-top: 4px; }
.promo-thumbs img { width: 30px; height: 30px; border-radius: 6px; object-fit: cover; background: #eef0f3; }
.promo-status { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.status-actief .promo-status, .promo-status-text.status-actief { color: #067647; }
.status-gepland .promo-status, .promo-status-text.status-gepland { color: #b54708; }
.promo-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.promo-actions form { margin: 0; }
.form-error-inline { color: var(--danger); }
.preset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-bottom: 16px; }
.preset-card { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 10px; background: var(--surface); cursor: pointer; }
.preset-card input { position: absolute; opacity: 0; pointer-events: none; }
.preset-card:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 1px var(--primary); }
.preset-card:has(input:focus-visible) { outline: 2px solid var(--text); outline-offset: 2px; }
.promo-settings summary { cursor: pointer; }
.promo-settings[open] summary { margin-bottom: 14px; }
.picker-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.picker-head h2 { margin: 0; }
.picker-tools { display: flex; gap: 6px; align-items: center; }
.picker-tools input { width: 220px; }
.picker-group { margin-top: 14px; }
.picker-group-head { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--border); margin-bottom: 10px; cursor: pointer; }
.picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.picker-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1.5px solid var(--border); border-radius: 10px; cursor: pointer; background: var(--surface); }
.picker-item.is-selected { border-color: var(--primary); background: var(--primary-soft); }
.picker-item input { width: 18px; height: 18px; accent-color: var(--primary); flex-shrink: 0; }
.picker-item img { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; background: #eef0f3; flex-shrink: 0; }
.picker-text { display: flex; flex-direction: column; min-width: 0; }
.picker-text strong { font-size: 0.925rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-warn { color: #b54708; }
.sticky-actions { position: sticky; bottom: 0; background: var(--bg); padding: 12px 0; border-top: 1px solid var(--border); margin-top: 8px; z-index: 5; }
.product-card-image { position: relative; }
.offer-badge { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 8px; background: var(--primary); color: #fff; font-weight: 800; font-size: 0.85rem; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18); }
.price-old { color: var(--muted); font-weight: 500; font-size: 0.85em; margin-right: 2px; }
.price-sale { color: var(--primary-dark); }
.offer-box { background: var(--primary-soft); border: 1px solid #fed7aa; border-radius: 10px; padding: 10px 14px; margin: -8px 0 20px; }
.offer-box p { margin: 4px 0; }
.offer-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.offer-heading h2 { margin: 0; }
.offer-heading p { margin: 2px 0 0; }
.category-nav a.nav-offers { color: var(--primary-dark); font-weight: 700; }
.cart-discount { color: var(--primary-dark); font-weight: 600; }
.cart-item-total { display: flex; flex-direction: column; align-items: flex-end; }
.cart-summary .discount-row dt, .cart-summary .discount-row dd { color: var(--primary-dark); font-weight: 600; }
.offer-hint { margin: 0; background: #fff7ed; border: 1px dashed var(--primary); color: var(--primary-dark); border-radius: 8px; padding: 8px 10px; }
[data-cart-hints] { display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 560px) { .cart-item-total { align-items: flex-start; } }
.cart-summary .discount-row { align-items: flex-start; gap: 10px; }
.cart-summary .discount-row dd { white-space: nowrap; }

/* ---------- Reclameblokken ---------- */
.banner-row { margin: -12px 0 8px; }
.section + .banner-row { margin: 28px 0 0; }
.promo-banner { position: relative; display: flex; align-items: stretch; min-height: 170px; border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--border); transition: transform 0.15s, box-shadow 0.15s; }
a.promo-banner:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(16, 24, 40, 0.12); }
.promo-banner:hover { color: var(--text); }
.promo-banner-text { flex: 1 1 60%; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 22px 24px; position: relative; z-index: 1; }
.promo-banner h2, .promo-banner h3 { margin: 0; font-size: 1.3rem; line-height: 1.25; }
/* Brede balk: de foto vult de rechterkant, de hoogte volgt de tekst. */
.promo-banner.has-image:not(.promo-banner-tile) .promo-banner-text { padding-right: calc(38% + 24px); }
.promo-banner.has-image:not(.promo-banner-tile) .promo-banner-img { position: absolute; top: 0; right: 0; bottom: 0; width: 38%; height: 100%; }
/* Kleine tegel tussen de producten, even groot als een productkaart. */
.promo-banner-tile { flex-direction: column-reverse; justify-content: flex-end; min-height: 0; }
.promo-banner-tile .promo-banner-img { flex: none; width: 100%; aspect-ratio: 1 / 1; height: auto; }
.promo-banner-tile .promo-banner-text { flex: 1; justify-content: flex-start; padding: 14px 16px 16px; }
.promo-banner-tile h3 { font-size: 1.05rem; }
.promo-banner-tile p { font-size: 0.92rem; }
.promo-banner-tile:not(.has-image) .promo-banner-text { justify-content: center; padding: 24px 18px; }
.promo-banner p { margin: 0; opacity: 0.9; }
.promo-banner-btn { align-self: flex-start; margin-top: 8px; padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: 0.9rem; background: var(--primary); color: #fff; }
.promo-banner-img { flex: 0 0 40%; width: 40%; object-fit: cover; }
.promo-banner.banner-orange { background: linear-gradient(135deg, #fb923c, #c2410c); color: #fff; border: 0; }
.banner-orange .promo-banner-btn { background: #fff; color: var(--primary-dark); }
.promo-banner.banner-dark { background: #1f2937; color: #fff; border: 0; }
.banner-dark .promo-banner-btn { background: #fb923c; color: #111; }
.promo-banner.banner-light { background: var(--primary-soft); border-color: #fed7aa; }
.promo-banner.banner-green { background: linear-gradient(135deg, #10b981, #047857); color: #fff; border: 0; }
.banner-green .promo-banner-btn { background: #fff; color: #047857; }
.promo-banner.banner-blue { background: linear-gradient(135deg, #3b82f6, #1e3a8a); color: #fff; border: 0; }
.banner-blue .promo-banner-btn { background: #fff; color: #1e3a8a; }
.banner-swatch-orange { --swatch: #ea580c; }
.banner-swatch-dark { --swatch: #1f2937; }
.banner-swatch-light { --swatch: #fff1e6; }
.banner-swatch-green { --swatch: #059669; }
.banner-swatch-blue { --swatch: #2563eb; }
@media (max-width: 560px) {
  .promo-banner { flex-direction: column-reverse; }
  .promo-banner.has-image:not(.promo-banner-tile) .promo-banner-text { padding-right: 24px; }
  .promo-banner.has-image:not(.promo-banner-tile) .promo-banner-img { position: static; width: 100%; height: 150px; }
}
.admin-form-wide { max-width: 1100px; }
.banner-editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.banner-preview { margin-top: 6px; position: sticky; top: 150px; }
@media (max-width: 900px) { .banner-editor { grid-template-columns: 1fr; } }
.banner-admin-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 16px; }
.banner-admin-item { display: flex; flex-direction: column; gap: 8px; }
.banner-admin-item.is-off .promo-banner { opacity: 0.45; filter: grayscale(0.6); }
.banner-admin-item .promo-actions { align-items: center; }
.banner-count { margin: 0 0 18px; }
.code-chip { font-weight: 700; letter-spacing: 0.04em; background: var(--primary-soft); color: var(--primary-dark); padding: 2px 8px; border-radius: 6px; }
.code-input { text-transform: uppercase; letter-spacing: 0.04em; }
.code-box { border-top: 1px solid var(--border); padding-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.code-box label { font-weight: 600; font-size: 0.9rem; }
.code-row { display: flex; gap: 6px; margin-top: 4px; }
.code-row input { flex: 1; min-width: 0; }
.code-applied { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: var(--primary-soft); border-radius: 8px; padding: 8px 10px; }
.code-error { color: var(--danger); margin: 0; }
.code-ok { color: #067647; margin: 0; }
/* Kleurmelding op de productpagina */
.color-alert { margin: 14px 0 6px; border: 1px dashed #fdba74; background: var(--primary-soft); border-radius: 12px; padding: 0 14px; }
.color-alert summary { cursor: pointer; padding: 10px 0; font-weight: 600; color: var(--primary-dark); list-style-position: inside; }
.color-alert[open] { padding-bottom: 12px; }
.color-alert form { display: grid; gap: 8px; }
.color-alert p { margin: 0; }
.color-alert .swatch { vertical-align: -3px; }
.color-alert-options { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.color-alert .code-row input { flex: 1; min-width: 0; }
.swatch-radio.unavailable { cursor: pointer; }
.waiting-chip { white-space: nowrap; text-decoration: none; font-weight: 600; }
/* Aftelbalk */
.countdown-bar { position: relative; background: linear-gradient(90deg, #ea580c, #c2410c); color: #fff; font-size: 0.95rem; }
.countdown-bar.countdown-dark { background: #1f2937; }
.countdown-bar.countdown-red { background: linear-gradient(90deg, #dc2626, #991b1b); }
.countdown-bar.countdown-green { background: linear-gradient(90deg, #059669, #047857); }
.countdown-bar.countdown-blue { background: linear-gradient(90deg, #2563eb, #1e3a8a); }
.countdown-inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 14px; padding: 8px 44px; text-align: center; color: inherit; text-decoration: none; }
a.countdown-inner:hover { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.countdown-text { font-weight: 600; }
.countdown-timer { display: inline-flex; gap: 6px; font-variant-numeric: tabular-nums; }
.countdown-unit { background: rgba(255, 255, 255, 0.18); border-radius: 6px; padding: 1px 7px; font-size: 0.85rem; white-space: nowrap; }
.countdown-unit b { font-size: 0.95rem; }
.countdown-close { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: inherit; font-size: 1.4rem; line-height: 1; padding: 4px 8px; cursor: pointer; opacity: 0.85; }
.countdown-close:hover { opacity: 1; }
.countdown-preview { margin-top: 6px; border-radius: 10px; overflow: hidden; }
.countdown-preview .countdown-inner { padding: 10px 16px; }
.countdown-swatch-orange { --swatch: #ea580c; }
.countdown-swatch-dark { --swatch: #1f2937; }
.countdown-swatch-red { --swatch: #dc2626; }
.countdown-swatch-green { --swatch: #059669; }
.countdown-swatch-blue { --swatch: #2563eb; }
.preset-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; }
@media (max-width: 560px) {
  .countdown-bar { font-size: 0.85rem; }
  .countdown-inner { padding: 7px 36px 7px 12px; gap: 4px 8px; }
  .countdown-unit { padding: 1px 5px; }
}
.order-docs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; }
.order-docs form { margin: 0; }
/* Verzendopties bij het afrekenen */
.shipping-options { display: grid; gap: 8px; margin: 6px 0 4px; }
.shipping-option { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.shipping-option:hover { border-color: #fdba74; }
.shipping-option:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 1px var(--primary) inset; }
.shipping-option input { accent-color: var(--primary); margin: 0; flex: none; }
.shipping-text { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.shipping-name { font-weight: 600; }
.shipping-price { white-space: nowrap; }
.shipping-price.free { color: #067647; }
.shipping-price s { font-weight: 400; margin-left: 4px; }
.carrier-badge { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 54px; height: 28px; padding: 0 8px; border-radius: 6px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.02em; }
.carrier-postnl { background: #ff6200; color: #fff; }
.carrier-dhl { background: #ffcc00; color: #d40511; }
.carrier-dpd { background: #dc0032; color: #fff; }
.carrier-gls { background: #061ab1; color: #ffd100; }
.carrier-ups { background: #351c15; color: #ffb500; }
.carrier-other { background: #e5e7eb; color: #374151; }
.carrier-pickup { background: #ecfdf3; font-size: 1rem; }
.shipping-choice .field-label { display: block; margin: 6px 0 2px; font-weight: 600; }
@media (max-width: 560px) {
  .shipping-option { gap: 8px; padding: 9px 10px; }
  .carrier-badge { min-width: 44px; font-size: 0.7rem; }
}
.shipping-chip { display: inline-block; margin: 0 0 12px; padding: 4px 10px; border-radius: 999px; background: #eef2ff; font-size: 0.9rem; font-weight: 600; }
.shipping-chip.is-pickup { background: #ecfdf3; color: #067647; }
.shipping-table td { vertical-align: middle; }
.shipping-table tr.is-off td { opacity: 0.55; }
.shipping-table .price-input { width: 76px; text-align: right; }
.shipping-name-cell { display: grid; gap: 4px; min-width: 220px; }
.shipping-name-cell input.small { font-size: 0.85rem; }
/* Zoekresultaten met filters */
.search-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
.filters-toggle > summary { display: none; }
.filters { display: grid; gap: 4px; position: sticky; top: 16px; }
.filters.is-loading { opacity: 0.6; pointer-events: none; }
.filter-group { border-bottom: 1px solid var(--border); padding: 4px 0 12px; }
.filter-group > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 700; padding: 8px 0; }
.filter-group > summary::-webkit-details-marker { display: none; }
.filter-group > summary::after { content: ''; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-135deg); margin-right: 4px; transition: transform 0.15s; }
.filter-group:not([open]) > summary::after { transform: rotate(45deg); }
.filter-options { display: grid; gap: 2px; }
.filter-option { display: flex; align-items: center; gap: 8px; padding: 4px 0; cursor: pointer; font-size: 0.95rem; }
.filter-option input { width: 18px; height: 18px; accent-color: var(--primary); margin: 0; flex: none; }
.filter-option input:disabled + span { color: var(--muted); }
.filter-option .swatch { flex: none; }
.filter-count { color: var(--muted); font-size: 0.85rem; }
.filter-option.is-extra { display: none; }
.show-extra .filter-option.is-extra { display: flex; }
.filter-more { background: none; border: 0; padding: 4px 0; color: var(--primary); font-weight: 600; cursor: pointer; text-align: left; font-size: 0.9rem; }
.filter-more::before { content: '» '; display: inline-block; transform: rotate(90deg); margin-right: 4px; }
.show-extra .filter-more::before { transform: rotate(-90deg); }
.price-inputs { display: flex; align-items: center; gap: 8px; }
.price-inputs input { width: 100%; min-width: 0; text-align: center; padding: 8px; }
.range-slider { position: relative; height: 32px; margin: 10px 8px 0; }
.range-track { position: absolute; left: 0; right: 0; top: 50%; height: 4px; transform: translateY(-50%); background: var(--border); border-radius: 4px; }
.range-fill { position: absolute; top: 0; bottom: 0; background: var(--primary); border-radius: 4px; }
.range-slider input[type=range] { position: absolute; left: -8px; right: -8px; width: calc(100% + 16px); top: 0; height: 32px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.range-slider input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--primary); cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.range-slider input[type=range]::-moz-range-thumb { pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--primary); cursor: pointer; }
.range-slider input[type=range]::-webkit-slider-runnable-track { background: none; }
.range-slider input[type=range]::-moz-range-track { background: none; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.filter-chip { display: inline-flex; gap: 6px; align-items: center; padding: 4px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-dark); text-decoration: none; font-size: 0.875rem; font-weight: 600; }
.filter-chip:hover { background: #fed7aa; }
.filter-clear { font-size: 0.875rem; }
@media (max-width: 800px) {
  .search-layout { grid-template-columns: 1fr; gap: 12px; }
  .filters-toggle > summary { display: block; list-style: none; margin-bottom: 8px; }
  .filters-toggle > summary::-webkit-details-marker { display: none; }
  .filters { position: static; }
}
/* Afhaalpunt kiezen */
.point-list { display: grid; gap: 6px; max-height: 380px; overflow-y: auto; }
.point-option { display: flex; align-items: flex-start; gap: 10px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; }
.point-option:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.point-option input { margin-top: 4px; accent-color: var(--primary); flex: none; }
.point-text { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.point-distance { white-space: nowrap; }
.carrier-logo { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 32px; }
.carrier-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-list { display: grid; gap: 10px; margin-bottom: 8px; }
.logo-item { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.logo-item form { margin: 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.carrier-logo-large { width: 90px; height: 40px; }
.range-slider input[type=range] { border: 0; padding: 0; box-shadow: none; background: transparent; border-radius: 0; outline: none; }
.range-slider input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.25); }
.howto { margin: 8px 0 16px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.howto summary { cursor: pointer; font-weight: 600; }
.howto ol { margin: 10px 0 6px; padding-left: 20px; line-height: 1.6; }
