/* XXLGifts Inkoop — huisstijl afgeleid van xxlgifts.com */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/instrument-sans-latin.woff2') format('woff2');
}

:root {
  --accent: #b06a2f;
  --accent-dark: #8e5322;
  --accent-light: #d89a63;
  --accent-soft: #f7eee6;
  --heart: #e5463b;
  --ink: #222222;
  --ink-2: #444444;
  --muted: #6b6b6b;
  --line: #e6e6e6;
  --line-2: #d8d8d8;
  --panel: #f4f4f4;
  --bg: #fafafa;
  --white: #ffffff;
  --success: #2f7d4f;
  --success-soft: #e7f4ec;
  --warning: #a86a00;
  --warning-soft: #fdf3e0;
  --danger: #c0392b;
  --danger-soft: #fdecea;
  --info: #2c6a9e;
  --info-soft: #e8f1f9;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 18px rgba(0,0,0,.05);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.14);
  --header-h: 68px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
[x-cloak] { display: none !important; }
:focus-visible { outline: 3px solid rgba(176,106,47,.45); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; color: #fff; }

h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.15; letter-spacing: -.01em; }
h1 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; }
h2 { font-size: 20px; font-weight: 700; }
h3 { font-size: 16px; font-weight: 700; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 700; color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.strong { font-weight: 700; }
.mt-0 { margin-top: 0 } .mt-1 { margin-top: 6px } .mt-2 { margin-top: 12px } .mt-3 { margin-top: 20px } .mt-4 { margin-top: 32px }
.mb-0 { margin-bottom: 0 } .mb-1 { margin-bottom: 6px } .mb-2 { margin-bottom: 12px } .mb-3 { margin-bottom: 20px }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 24px; }
main { padding: 28px 0 80px; min-height: calc(100vh - var(--header-h)); }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.row { display: flex; align-items: center; gap: 12px; }
.row-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }
.grow { flex: 1; min-width: 0; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.layout-sidebar { display: grid; grid-template-columns: 260px minmax(0,1fr); gap: 28px; align-items: start; }
.layout-aside { display: grid; grid-template-columns: minmax(0,1fr) 380px; gap: 28px; align-items: start; }
.sticky { position: sticky; top: calc(var(--header-h) + 16px); }

/* ---------- Header ---------- */
.mode-bar { font-size: 13px; text-align: center; padding: 6px 12px; font-weight: 600; }
.mode-bar.demo { background: #2b2b2b; color: #f1f1f1; }
.mode-bar.test { background: var(--info-soft); color: var(--info); }
.mode-bar.production { background: var(--accent); color: #fff; }
.mode-bar a { text-decoration: underline; }
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .container { height: var(--header-h); display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 38px; width: auto; }
.brand span { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--accent); border-left: 1px solid var(--line); padding-left: 10px; line-height: 1.2; }
.main-nav { display: flex; gap: 4px; }
.main-nav a { padding: 8px 14px; border-radius: 999px; font-weight: 600; color: var(--ink-2); font-size: 14.5px; }
.main-nav a:hover { background: var(--panel); color: var(--ink); }
.main-nav a.active { background: var(--ink); color: #fff; }
.header-search { flex: 1; max-width: 520px; position: relative; }
.header-search input { width: 100%; height: 42px; border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 0 44px 0 42px; transition: .2s var(--ease); }
.header-search input:focus { background: #fff; border-color: var(--accent); outline: none; box-shadow: 0 0 0 4px rgba(176,106,47,.12); }
.header-search .icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.header-search kbd { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); }
.suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; z-index: 50; }
.suggest a { display: flex; gap: 12px; align-items: center; padding: 9px 12px; }
.suggest a.on, .suggest a:hover { background: var(--accent-soft); color: var(--ink); }
.suggest img { width: 44px; height: 44px; object-fit: contain; background: #fff; border-radius: 8px; border: 1px solid var(--line); }
.suggest .all { justify-content: center; font-weight: 600; color: var(--accent); border-top: 1px solid var(--line); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn { position: relative; width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.icon-btn:hover { border-color: var(--ink); color: var(--ink); }
.basket-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px 0 14px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; font-size: 14px; }
.basket-btn:hover { background: var(--accent-dark); color: #fff; }
.basket-btn .count { background: #fff; color: var(--accent); border-radius: 999px; min-width: 22px; height: 22px; display: inline-grid; place-items: center; font-size: 12px; padding: 0 6px; }
.avatar { width: 38px; height: 38px; border-radius: 999px; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.dropdown { position: relative; }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 6px; z-index: 60; }
.dropdown-menu a, .dropdown-menu button { display: flex; width: 100%; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 8px; background: none; border: 0; text-align: left; cursor: pointer; font-size: 14px; }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--panel); color: var(--ink); }
.dropdown-menu .head { padding: 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.mobile-toggle { display: none; }
.mobile-nav { display: none; }

kbd { font-family: inherit; font-size: 11px; font-weight: 700; color: var(--muted); background: #fff; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; font-weight: 700; font-size: 14.5px; cursor: pointer; transition: background .15s, border-color .15s, transform .1s, box-shadow .15s; white-space: nowrap; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; box-shadow: 0 6px 18px rgba(176,106,47,.3); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-outline { background: #fff; border-color: var(--line-2); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--panel); color: var(--ink); }
.btn-danger { background: #fff; border-color: #f0c4bf; color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger-solid { background: var(--danger); color: #fff; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-icon { width: 38px; height: 38px; padding: 0; }
.link { color: var(--accent); font-weight: 600; background: none; border: 0; padding: 0; cursor: pointer; }
.link:hover { text-decoration: underline; color: var(--accent-dark); }
.spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Cards / panels ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 22px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.card-head h2, .card-head h3 { margin: 0; }
.card-body { padding: 18px 22px; }
.card-foot { padding: 14px 22px; border-top: 1px solid var(--line); background: #fcfcfc; border-radius: 0 0 var(--radius) var(--radius); }
.panel { background: var(--panel); border-radius: var(--radius); padding: 18px; }
.divider { height: 1px; background: var(--line); margin: 16px 0; border: 0; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--panel); color: var(--ink-2); }
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .85; }
.badge.plain::before { display: none; }
.badge.success { background: var(--success-soft); color: var(--success); }
.badge.warning { background: var(--warning-soft); color: var(--warning); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge.info { background: var(--info-soft); color: var(--info); }
.badge.accent { background: var(--accent-soft); color: var(--accent-dark); }
.badge.dark { background: var(--ink); color: #fff; }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 700; background: var(--panel); color: var(--ink-2); text-transform: uppercase; letter-spacing: .03em; }
.tag.green { background: #e6f3e8; color: #2d7a3e; }
.src { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 2px 7px; border-radius: 5px; }
.src.confirmed { background: var(--success-soft); color: var(--success); }
.src.estimate { background: var(--warning-soft); color: var(--warning); }
.src.manual { background: var(--info-soft); color: var(--info); }
.src.internal { background: var(--accent-soft); color: var(--accent-dark); }

/* ---------- Alerts ---------- */
.alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid; font-size: 14px; align-items: flex-start; }
.alert svg { flex-shrink: 0; margin-top: 1px; }
.alert ul { margin: 4px 0 0; padding-left: 18px; }
.alert.success { background: var(--success-soft); border-color: #bfe0cb; color: #1f5a37; }
.alert.warning { background: var(--warning-soft); border-color: #f0d9aa; color: #6d4700; }
.alert.danger { background: var(--danger-soft); border-color: #f2c3bd; color: #8a2419; }
.alert.info { background: var(--info-soft); border-color: #c5dbee; color: #1d4b72; }
.alert.neutral { background: var(--panel); border-color: var(--line); color: var(--ink-2); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.field .hint { font-size: 12.5px; color: var(--muted); }
.field .error { font-size: 12.5px; color: var(--danger); font-weight: 600; }
.input, .select, .textarea { width: 100%; height: 44px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: #fff; padding: 0 13px; transition: border-color .15s, box-shadow .15s; }
.textarea { height: auto; min-height: 90px; padding: 10px 13px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23444' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 36px; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(176,106,47,.12); }
.input.invalid { border-color: var(--danger); }
.input-sm { height: 36px; font-size: 14px; }
.input-group { display: flex; align-items: stretch; }
.input-group .input { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.input-group .addon { display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--line-2); border-left: 0; background: var(--panel); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 13px; color: var(--muted); }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); margin-top: 2px; flex-shrink: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; overflow: hidden; }
.qty button { width: 34px; height: 36px; border: 0; background: none; cursor: pointer; font-size: 18px; color: var(--ink-2); }
.qty button:hover { background: var(--panel); }
.qty input { width: 70px; height: 36px; border: 0; text-align: center; font-weight: 700; -moz-appearance: textfield; }
.qty input:focus { outline: none; background: var(--accent-soft); }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.segmented { display: inline-flex; padding: 4px; background: var(--panel); border-radius: 999px; gap: 2px; }
.segmented button, .segmented label { border: 0; background: none; padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; cursor: pointer; color: var(--muted); }
.segmented .on { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.saved-indicator { font-size: 12.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fcfcfc; white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr.clickable { cursor: pointer; }
.table tbody tr.clickable:hover td { background: #fcf8f4; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-compact td, .table-compact th { padding: 7px 10px; }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.p-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s var(--ease), transform .2s var(--ease), border-color .2s; position: relative; }
.p-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: transparent; }
.p-card .img { aspect-ratio: 1; background: #fff; display: grid; place-items: center; padding: 14px; position: relative; }
.p-card .img img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s var(--ease); }
.p-card:hover .img img { transform: scale(1.04); }
.p-card .fav { position: absolute; top: 10px; right: 10px; z-index: 2; }
.p-card .flags { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 4px; z-index: 2; }
.p-card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; border-top: 1px solid var(--line); }
.p-card .code { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .03em; }
.p-card .name { font-weight: 700; font-size: 15px; line-height: 1.25; }
.p-card .desc { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-card .price { font-size: 18px; font-weight: 700; }
.p-card .price small { font-size: 12px; font-weight: 500; color: var(--muted); }
.p-card .foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.swatches { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.swatch { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); display: inline-block; flex-shrink: 0; }
.swatch.lg { width: 26px; height: 26px; }
.stock-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; }
.stock-dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stock-dot.ok { color: var(--success); }
.stock-dot.low { color: var(--warning); }
.stock-dot.out { color: var(--danger); }
.fav-btn { width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.95); display: grid; place-items: center; cursor: pointer; color: var(--muted); transition: .15s; }
.fav-btn:hover { color: var(--heart); border-color: var(--heart); }
.fav-btn.on { color: var(--heart); border-color: #f5c6c2; background: #fff5f4; }
.fav-btn.on svg { fill: currentColor; }
.quick-add { position: absolute; inset: auto 0 0 0; background: #fff; border-top: 1px solid var(--line); padding: 14px; z-index: 3; box-shadow: 0 -10px 30px rgba(0,0,0,.08); }

/* ---------- Filters ---------- */
.filters .group { padding: 16px 0; border-bottom: 1px solid var(--line); }
.filters .group:first-child { padding-top: 0; }
.filters h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; color: var(--ink-2); }
.filters .opt { display: flex; align-items: center; gap: 10px; padding: 4px 0; font-size: 14px; cursor: pointer; }
.filters .opt input { accent-color: var(--accent); width: 16px; height: 16px; }
.filters .opt .n { margin-left: auto; color: var(--muted); font-size: 12px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; }
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip .x { opacity: .6; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }

/* ---------- Dashboard ---------- */
.hero { background: #2a2623 url('../img/hero-products.webp') right center / cover no-repeat; color: #fff; border-radius: 20px; padding: 34px 36px; position: relative; overflow: hidden; min-height: 280px; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(34,30,27,.96) 0%, rgba(34,30,27,.85) 40%, rgba(34,30,27,.1) 75%, transparent 100%); pointer-events: none; }
.hero > * { position: relative; z-index: 2; }
.hero h1 { color: #fff; }
.hero p { color: rgba(255,255,255,.75); margin: 0; }
.hero .hero-search { margin-top: 20px; max-width: 640px; position: relative; z-index: 2; }
.hero .hero-search input { height: 54px; border-radius: 999px; border: 0; padding: 0 140px 0 50px; width: 100%; font-size: 16px; color: var(--ink); }
.hero .hero-search input:focus { outline: none; box-shadow: 0 0 0 4px rgba(216,154,99,.5); }
.hero .hero-search .icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.hero .hero-search .btn { position: absolute; right: 6px; top: 6px; height: 42px; }
.hero .quick { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; position: relative; z-index: 2; }
.hero .quick a { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 7px 14px; font-size: 13.5px; font-weight: 600; }
.hero .quick a:hover { background: rgba(255,255,255,.2); }
.stat { padding: 18px 20px; display: flex; gap: 14px; align-items: center; }
.stat .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.stat .ic.accent { background: var(--accent-soft); color: var(--accent); }
.stat .ic.danger { background: var(--danger-soft); color: var(--danger); }
.stat .ic.warning { background: var(--warning-soft); color: var(--warning); }
.stat .ic.success { background: var(--success-soft); color: var(--success); }
.stat .ic.info { background: var(--info-soft); color: var(--info); }
.stat .n { font-size: 26px; font-weight: 700; line-height: 1; }
.stat .l { font-size: 13px; color: var(--muted); margin-top: 4px; }
a.stat:hover { color: inherit; }
a.card:hover { border-color: var(--line-2); box-shadow: var(--shadow-lg); }
.list-item { display: flex; align-items: center; gap: 14px; padding: 13px 22px; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: 0; }
a.list-item:hover { background: #fcf8f4; color: inherit; }
.list-item .thumb { width: 46px; height: 46px; border-radius: 10px; border: 1px solid var(--line); object-fit: contain; background: #fff; flex-shrink: 0; }
.empty { text-align: center; padding: 34px 22px; color: var(--muted); }
.empty svg { margin: 0 auto 10px; color: var(--line-2); }
.empty h3 { color: var(--ink); }
.mini-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; padding: 16px 22px; }
.mini-products a { border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: #fff; }
.mini-products a:hover { border-color: var(--accent); }
.mini-products img { aspect-ratio: 1; object-fit: contain; width: 100%; }
.mini-products .t { font-size: 13px; font-weight: 700; margin-top: 6px; line-height: 1.2; }

/* ---------- Product detail ---------- */
.gallery .main { aspect-ratio: 1; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); display: grid; place-items: center; padding: 24px; position: relative; overflow: hidden; }
.gallery .main img { max-height: 100%; object-fit: contain; }
.gallery .thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gallery .thumbs button { width: 64px; height: 64px; border: 2px solid var(--line); border-radius: 10px; background: #fff; padding: 4px; cursor: pointer; }
.gallery .thumbs button.on { border-color: var(--accent); }
.gallery .thumbs img { width: 100%; height: 100%; object-fit: contain; }
.spec-list { display: grid; grid-template-columns: 150px 1fr; gap: 8px 16px; font-size: 14px; margin: 0; }
.spec-list dt { color: var(--muted); }
.spec-list dd { margin: 0; font-weight: 600; }
.tier-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tier-table td { padding: 7px 10px; border-bottom: 1px dashed var(--line); }
.tier-table tr.on td { background: var(--accent-soft); font-weight: 700; }
.variant-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 10px; }
.variant { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; background: #fff; transition: border-color .15s, background .15s; }
.variant.on { border-color: var(--accent); background: #fffaf6; }
.variant img { width: 46px; height: 46px; object-fit: contain; flex-shrink: 0; }
.variant .info { flex: 1; min-width: 0; }
.variant .info .t { font-weight: 700; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.variant input { width: 74px; height: 34px; border: 1px solid var(--line-2); border-radius: 8px; text-align: center; font-weight: 700; }
.variant input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(176,106,47,.15); }
.steps { display: flex; gap: 0; counter-reset: s; margin-bottom: 22px; overflow-x: auto; }
.steps button, .steps a { flex: 1; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border: 0; background: #fff; border-bottom: 3px solid var(--line); font-weight: 700; font-size: 14px; color: var(--muted); cursor: pointer; white-space: nowrap; text-align: left; }
.steps .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--panel); font-size: 13px; flex-shrink: 0; }
.steps .on { color: var(--ink); border-bottom-color: var(--accent); }
.steps .on .n { background: var(--accent); color: #fff; }
.steps .done .n { background: var(--success); color: #fff; }
.position-card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.position-card + .position-card { margin-top: 14px; }
.position-card .ph { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: #fcfcfc; border-bottom: 1px solid var(--line); }
.position-card .pb { padding: 16px; display: grid; grid-template-columns: 200px minmax(0,1fr); gap: 18px; }
.preview { position: relative; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.preview img.base { width: 100%; height: 100%; object-fit: contain; }
.preview .area { position: absolute; border: 2px dashed var(--accent); background: rgba(176,106,47,.08); display: grid; place-items: center; }
.preview .area img { max-width: 100%; max-height: 100%; object-fit: contain; }
.preview .label { position: absolute; left: 6px; bottom: 6px; right: 6px; background: rgba(34,34,34,.82); color: #fff; font-size: 10.5px; padding: 3px 7px; border-radius: 6px; text-align: center; line-height: 1.3; }
.tech-options { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-options label { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 14px; cursor: pointer; font-size: 13.5px; font-weight: 600; background: #fff; }
.tech-options label.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); }
.tech-options input { display: none; }
.upload { display: block; font-weight: 500; color: var(--ink); line-height: 1.5; border: 2px dashed var(--line-2); border-radius: 12px; padding: 14px; text-align: center; cursor: pointer; transition: .15s; background: #fcfcfc; font-size: 13.5px; }
.upload:hover, .upload.drag { border-color: var(--accent); background: var(--accent-soft); }
.upload-done { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; background: #fff; }
.upload-done img { width: 40px; height: 40px; object-fit: contain; border-radius: 6px; background: var(--panel); }

/* ---------- Summary ---------- */
.summary { font-size: 14px; }
.summary .line { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; align-items: baseline; }
.summary .line .v { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.summary .sub { color: var(--muted); font-size: 13px; padding-left: 12px; }
.summary .total { border-top: 2px solid var(--ink); margin-top: 8px; padding-top: 12px; font-size: 18px; font-weight: 700; }
.summary .total .v { font-weight: 700; }
.summary .sell { background: var(--accent-soft); border-radius: 10px; padding: 10px 12px; margin-top: 12px; }
.order-line { display: grid; grid-template-columns: 76px minmax(0,1fr) auto; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.order-line:last-child { border-bottom: 0; }
.order-line > img { width: 76px; height: 76px; border: 1px solid var(--line); border-radius: 12px; object-fit: contain; background: #fff; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 16px 24px; font-size: 14px; }
.timeline li::before { content: ''; position: absolute; left: 5px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.timeline li::after { content: ''; position: absolute; left: 9px; top: 18px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.bevestigd::before, .timeline li.verzending::before { background: var(--success); }
.timeline li.fout::before { background: var(--danger); }
.timeline li.proef::before { background: var(--warning); }
.timeline li.ingediend::before { background: var(--accent); }
.supplier-box { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.supplier-box + .supplier-box { margin-top: 16px; }
.supplier-box .sh { padding: 14px 18px; background: #fcfcfc; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.kv .k { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.kv .v { font-weight: 700; }

/* ---------- Modal & toast ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(20,20,20,.55); z-index: 90; display: grid; place-items: center; padding: 20px; backdrop-filter: blur(2px); }
.modal { background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); width: 100%; max-width: 520px; max-height: calc(100vh - 40px); overflow: auto; }
.modal.lg { max-width: 760px; }
.modal-head { padding: 20px 24px 0; }
.modal-body { padding: 14px 24px; }
.modal-foot { padding: 14px 24px 22px; display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 100; display: flex; flex-direction: column; gap: 10px; max-width: min(420px, calc(100vw - 40px)); }
.toast { background: var(--ink); color: #fff; border-radius: 12px; padding: 13px 16px; box-shadow: var(--shadow-lg); display: flex; gap: 10px; align-items: flex-start; font-size: 14px; animation: toastIn .25s var(--ease); }
.toast.success { background: #1f5a37; }
.toast.error { background: #8a2419; }
.toast a { text-decoration: underline; color: #fff; font-weight: 700; }
@keyframes toastIn { from { transform: translateY(10px); opacity: 0; } }
.fade-enter { transition: opacity .2s; }
.skeleton { background: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 50%, #f0f0f0 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 8px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 40px; height: 40px; display: grid; place-items: center; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 14px; }
.pagination .on { background: var(--ink); border-color: var(--ink); color: #fff; }
.pagination .off { opacity: .4; }

/* ---------- Login ---------- */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(420px, 1fr); background: var(--bg); }
.login-art { position: relative; overflow: hidden; color: #fff; padding: 44px 52px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
  background: #221e1b url('../img/hero-products.webp') 72% center / cover no-repeat; }
.login-art::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28,24,21,.92) 0%, rgba(28,24,21,.55) 45%, rgba(28,24,21,.9) 100%); }
.login-art > * { position: relative; z-index: 1; }
.login-art .logo { height: 54px; width: auto; flex: none; }
.login-art h2 { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.05; text-transform: uppercase; letter-spacing: -.01em; max-width: 520px; color: #fff; margin: 10px 0 14px; }
.login-art p { color: rgba(255,255,255,.78); max-width: 460px; font-size: 16px; margin: 0; }
.login-art ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.login-art li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.login-art li span { width: 28px; height: 28px; border-radius: 50%; background: rgba(176,106,47,.9); display: grid; place-items: center; flex: none; }
.login-art .foot { font-size: 12.5px; color: rgba(255,255,255,.55); }
.login-form { display: grid; place-items: center; padding: 40px 28px; }
.login-card { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 38px 36px 32px; }
.login-card .logo { height: 46px; width: auto; margin-bottom: 26px; }
.login-card h1 { font-size: 28px; margin: 0; }
.login-card .intro { color: var(--muted); margin: 6px 0 24px; }
.login-card form > * + * { margin-top: 16px; }
.login-card .pw { position: relative; }
.login-card .pw .input { padding-right: 46px; }
.login-card .pw button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; width: 36px; height: 36px; border-radius: 8px; cursor: pointer; color: var(--muted); display: grid; place-items: center; }
.login-card .pw button:hover { background: var(--panel); color: var(--ink); }
.login-help { text-align: center; font-size: 13px; color: var(--muted); margin-top: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .layout-aside { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .main-nav { display: none; }
  .mobile-toggle { display: inline-grid; }
  .mobile-nav.open { display: block; border-top: 1px solid var(--line); background: #fff; padding: 10px 24px 16px; }
  .mobile-nav a { display: block; padding: 10px 0; font-weight: 700; border-bottom: 1px solid var(--line); }
  .sticky { position: static; }
}
@media (max-width: 860px) {
  .layout-sidebar { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .login-wrap { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .login-form { align-items: start; padding-top: 48px; background: linear-gradient(180deg, #2a2623 0, #2a2623 170px, var(--bg) 170px); }
  .login-card { padding: 30px 22px 26px; }
  .position-card .pb { grid-template-columns: 1fr; }
  .preview { max-width: 260px; }
  .header-search kbd, .brand span { display: none; }
}
@media (max-width: 640px) {
  .hero::after { background: rgba(34,30,27,.85); }
  .container { padding: 0 14px; }
  .site-header .container { gap: 10px; }
  .header-search { display: none; }
  .basket-btn .lbl { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .p-card .body { padding: 10px 12px 12px; }
  .hero { padding: 22px 18px; }
  .hero .hero-search input { padding-right: 16px; }
  .hero .hero-search .btn { display: none; }
  .order-line { grid-template-columns: 56px minmax(0,1fr); }
  .order-line > img { width: 56px; height: 56px; }
  .order-line > .ol-side { grid-column: 1 / -1; }
  .spec-list { grid-template-columns: 1fr; gap: 2px; }
  .spec-list dd { margin-bottom: 8px; }
  .card-pad, .card-body { padding: 16px; }
  .card-head { padding: 14px 16px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Keycord-opties als iconen (van keycords-lanyards.com) met korte tekst; exacte midocean-tekst als hover */
.kc-icons { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 8px; }
.kc-icons figure { margin: 0; width: 92px; text-align: center; cursor: help; }
.kc-icons figure img { width: 80px; height: 80px; object-fit: contain; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 3px; transition: transform .15s ease; }
.kc-icons figure:hover img { transform: scale(1.6); position: relative; z-index: 5; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.kc-icons figcaption { font-size: 12px; line-height: 1.25; color: var(--ink, #1f2937); margin-top: 4px; font-weight: 600; }
.kc-icons.sm { gap: 6px; margin: 4px 0 2px; }
.kc-icons.sm figure { width: 62px; }
.kc-icons.sm figure img { width: 48px; height: 48px; border-radius: 7px; padding: 2px; }
.kc-icons.sm figure:hover img { transform: scale(2); }
.kc-icons.sm figcaption { font-size: 10.5px; font-weight: 500; }

/* Controle door Claude als opsomming */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list > li { border-left: 3px solid var(--line); padding: 2px 0 2px 12px; }
.check-list > li.success { border-left-color: #16a34a; }
.check-list > li.warning { border-left-color: #d97706; }
.check-list > li.danger { border-left-color: #dc2626; }
.check-list > li > ul { margin: 6px 0 0; padding-left: 18px; font-size: 14px; line-height: 1.45; }
.check-list > li > ul > li { margin: 2px 0; }

/* Iconrand volgens de controle: groen = klopt, oranje = klopt niet / twijfel */
.kc-icons figure.st-ok img { border: 3px solid #16a34a; }
.kc-icons figure.st-warning img, .kc-icons figure.st-problem img { border: 3px solid #ea8a0c; }
.kc-icons figure.st-ok figcaption { color: #15803d; }
.kc-icons figure.st-warning figcaption, .kc-icons figure.st-problem figcaption { color: #c2410c; }

/* Volledige controle inklapbaar, met gekleurde blokjes per onderdeel */
.check-details > summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; }
.check-details > summary::-webkit-details-marker { display: none; }
.check-details > summary::before { content: '▸'; color: var(--muted, #6b7280); width: 12px; transition: transform .15s; }
.check-details[open] > summary::before { transform: rotate(90deg); }
.chk-chip { font-size: 12px; padding: 2px 8px 2px 6px; border-radius: 6px; background: #f3f4f6; border-left: 4px solid #9ca3af; }
.chk-chip.success { border-left-color: #16a34a; background: #f0fdf4; }
.chk-chip.warning { border-left-color: #ea8a0c; background: #fff7ed; }
.chk-chip.danger { border-left-color: #dc2626; background: #fef2f2; }

/* Drukproef (PDF) in de orderpagina */
.proof-view { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; background: #fff; }
.proof-view > summary { cursor: pointer; font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.proof-view iframe { width: 100%; height: 640px; border: 1px solid var(--line); border-radius: 8px; margin: 8px 0 4px; background: #f3f4f6; }
.proof-mail { border: 1px solid var(--line); border-left: 4px solid #2563eb; border-radius: 10px; padding: 10px 12px; background: #f8fafc; }
.proof-mail.review { border-left-color: #ea8a0c; background: #fff7ed; }

/* Onze impressie */
.impressions > summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.imp-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.imp-grid a { display: flex; flex-direction: column; gap: 4px; flex: 1 1 360px; min-width: 0; text-decoration: none; }
.imp-grid img { width: 100%; max-height: 520px; object-fit: contain; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.imp-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 20px; }
@media (max-width: 900px) { .imp-cols { grid-template-columns: 1fr; } }
.imp-h { font-size: 14px; margin: 0 0 6px; color: var(--muted, #6b7280); text-transform: uppercase; letter-spacing: .04em; }
.art-item { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; text-decoration: none; }
.art-item img { width: 100%; max-height: 360px; object-fit: contain; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
/* logo's van de klant op lichtgrijs, zodat witte delen (bijv. witte tekst) zichtbaar zijn */
.imp-cols > div:first-child .art-item img { background: #d1d5db; padding: 10px; }
.art-file { display: flex; align-items: center; justify-content: center; height: 90px; border: 1px dashed var(--line); border-radius: 10px; font-weight: 700; color: #6b7280; background: #f9fafb; }

/* Artwork: drie kolommen (logo klant · onze impressie · drukproef) met vergrootglas */
.imp-cols.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .imp-cols.three { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .imp-cols.three { grid-template-columns: 1fr; } }
.impressions .art-item { position: relative; }
.lb-plus { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(17,24,39,.75); color: #fff; font-size: 22px; line-height: 34px; font-weight: 700; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.lb-plus:hover { background: rgba(17,24,39,.95); }
.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,.82); display: flex; align-items: center; justify-content: center; cursor: zoom-out; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 96vw; max-height: 94vh; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.lightbox img { max-width: 96vw; max-height: 88vh; object-fit: contain; background: #fff; border-radius: 6px; cursor: default; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lightbox figcaption { color: #e5e7eb; font-size: 13px; text-align: center; }
/* Artwork: alles in één raster */
.art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; align-items: start; }
.art-grid .art-item { margin-bottom: 0; }
.art-grid .art-item img { height: 220px; max-height: none; background: #f3f4f6; padding: 6px; }
