/* =====================================================================
   shop-tools.css — pagina-eigen laag voor de drie gereedschappen

     1  /{loc}/zoeklijst            page-wanted.php       (lijstenoverzicht)
     2  /{loc}/zoeklijst/{id}       page-wanted-list.php  (werkblad)
     3  /{loc}/scan                 page-scan.php         (scanner)

   Laadt na shop.css en dus ook na styles.css. Knoppen, velden, panelen,
   stalen, statuspillen, de dekkingsbalk en de tabelbasis komen uit
   shop.css; hier staat alleen wat pagina-eigen is.

   De klassenamen met het voorvoegsel bb- zijn haken van het inline
   JavaScript in die drie bestanden: het werkblad tekent zijn rijen en
   zijn paginering zelf, de scanner tekent zijn kaarten zelf. Die namen
   blijven daarom staan en krijgen hier alleen een nieuw uiterlijk.

   Volgorde:
      1  Gedeeld kopblok
      2  Zoeklijsten-overzicht
      3  Werkblad: samenvatting
      4  Werkblad: werkbalk
      5  Werkblad: tabel
      6  Werkblad: paginering
      7  Werkblad: zwevende balken en melding
      8  Werkblad: panelen onderaan
      9  Scanner
     10  Responsief
   ===================================================================== */

/* ---------------------------------------------------------------
   1  Gedeeld kopblok
   --------------------------------------------------------------- */
.tools-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: 24px;
}
.tools-head__left { min-width: 0; }
.tools-head__title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tools-head__right { flex: none; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tools-back {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px;
  border: 1px solid var(--gray-line); border-radius: var(--r-sm); background: var(--white);
  font-size: 14px; font-weight: 700; color: var(--navy); text-decoration: none;
}
.tools-back:hover { background: var(--cream); color: var(--navy); text-decoration: none; }
.tools-back svg { flex: none; width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.8; fill: none; }

.tools-notes { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }

/* ---------------------------------------------------------------
   2  Zoeklijsten-overzicht
   --------------------------------------------------------------- */
.wl-cards {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px;
  margin: 24px 0 32px;
}
.wl-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--white); border: 1px solid var(--gray-line); border-radius: var(--r-md);
  box-shadow: var(--sh-1); padding: 18px; text-decoration: none; color: var(--navy);
  transition: box-shadow 160ms ease-out, border-color 160ms ease-out, transform 160ms ease-out;
}
.wl-card:hover {
  border-color: var(--gray-3); box-shadow: var(--sh-lift);
  transform: translateY(-2px); text-decoration: none; color: var(--navy);
}
.wl-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.wl-card__name {
  font-family: var(--font-head); font-weight: 700; font-size: 17px; line-height: 1.3;
  color: var(--navy); margin: 0; overflow-wrap: anywhere;
}
.wl-card__default {
  flex: none; display: grid; place-items: center; width: 26px; height: 26px;
  border-radius: var(--r-pill); background: var(--cream);
}
.wl-card__default svg { width: 15px; height: 15px; stroke: var(--navy); stroke-width: 1.6; fill: none; }
.wl-card__meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--text-muted);
}
.wl-card__meta .sep { color: var(--text-subtle); }
.wl-card__cov { margin-top: auto; }
.wl-card__cov .bsw-cov__track { height: 8px; }
.wl-card__cov-line { margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--success); }
.wl-card__go {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--navy-2);
}
.wl-card__go svg { flex: none; width: 15px; height: 15px; stroke: currentColor; stroke-width: 2; fill: none; }

.wl-empty {
  display: flex; align-items: flex-start; gap: 18px;
  background: var(--white); border: 1px solid var(--gray-line); border-radius: var(--r-md);
  box-shadow: var(--sh-1); padding: 28px; margin: 24px 0 32px;
}
.wl-empty__ico {
  flex: none; display: grid; place-items: center; width: 48px; height: 48px;
  border-radius: var(--r-md); background: var(--cream);
}
.wl-empty__ico svg { width: 24px; height: 24px; stroke: var(--navy); stroke-width: 1.5; fill: none; }
.wl-empty p { margin: 6px 0 0; font-size: 15px; line-height: 1.6; color: var(--text-2); max-width: 620px; }

/* E-mailpoort: zonder adres bestaat een lijst alleen in deze browser. */
.wl-gate { margin: 0 0 32px; padding: 24px; }
.wl-gate__head { display: flex; align-items: center; gap: 12px; }
.wl-gate__head svg { flex: none; width: 22px; height: 22px; stroke: var(--navy); stroke-width: 1.5; fill: none; }
.wl-gate p { margin: 10px 0 16px; font-size: 15px; line-height: 1.6; color: var(--text-2); max-width: 62ch; }
.wl-gate__row { display: flex; gap: 10px; flex-wrap: wrap; }
.wl-gate__row .bsw-input { flex: 1 1 260px; min-width: 0; }
.wl-gate__row .bsw-btn { flex: none; }

.wl-forms { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; align-items: start; }
.wl-panel { padding: 24px; }
.wl-panel__head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.wl-panel__head svg { flex: none; width: 20px; height: 20px; stroke: var(--navy); stroke-width: 1.5; fill: none; }
.wl-panel__help { margin: 0 0 14px; font-size: 14px; line-height: 1.6; color: var(--text-2); }
.wl-panel .bsw-textarea { min-height: 150px; font-family: var(--font-mono); font-size: 13px; }
.wl-panel .bsw-btn { margin-top: 14px; }
.wl-file {
  display: block; margin-top: 12px;
  font-size: 13px; font-weight: 700; color: var(--text-2);
}
.wl-file input[type="file"] {
  display: block; margin-top: 8px; width: 100%; font-family: var(--font-body); font-size: 13px;
  color: var(--text-2);
}
.wl-file input[type="file"]::file-selector-button {
  margin-right: 10px; height: 36px; padding: 0 14px;
  border: 1.5px solid var(--navy); border-radius: var(--r-sm); background: var(--white);
  font-family: var(--font-body); font-weight: 700; font-size: 13px; color: var(--navy); cursor: pointer;
}
.wl-file input[type="file"]::file-selector-button:hover { background: var(--cream); }

.wl-guest { margin: 28px 0 0; font-size: 14px; line-height: 1.6; color: var(--text-muted); }
.wl-guest a { color: var(--navy); font-weight: 700; text-decoration: underline; }

/* ---------------------------------------------------------------
   3  Werkblad: samenvatting
   De klassen bb-wl-summary-main, bb-wl-bar-lg en bb-wl-summary-sub
   worden door het inline JS opgezocht om de totalen bij te werken.
   --------------------------------------------------------------- */
.bb-wl-summary {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 24px; margin: 0 0 20px; padding: 24px;
  background: var(--white); border: 1px solid var(--gray-line); border-radius: var(--r-md);
  box-shadow: var(--sh-1);
}
.bb-wl-summary-main { flex: 1 1 340px; min-width: 0; }
.bb-wl-summary-main strong {
  display: block; font-size: 16px; font-weight: 700; color: var(--success); margin: 0 0 10px;
}
.bb-wl-bar {
  height: 8px; border-radius: var(--r-pill); background: var(--gray-2); overflow: hidden; margin: 0;
}
.bb-wl-bar > span { display: block; height: 100%; background: var(--success); border-radius: var(--r-pill); }
.bb-wl-bar-lg { height: 12px; }
.bb-wl-summary-sub { margin-top: 10px; font-size: 14px; color: var(--text-2); }
.bb-wl-summary-actions { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.bb-wl-summary-actions form { margin: 0; }
.bb-wl-notify { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bb-wl-notify .bsw-input { width: 200px; height: 48px; }

/* ---------------------------------------------------------------
   4  Werkblad: werkbalk
   --------------------------------------------------------------- */
.bb-wl-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px; margin: 0 0 12px; padding: 12px 16px;
  background: var(--off); border: 1px solid var(--gray-line); border-radius: var(--r-md);
}
.bb-wl-tool-left { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.bb-wl-tool-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bb-wl-checkall {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px;
  font-size: 14px; font-weight: 700; color: var(--navy); cursor: pointer;
}
.bb-wl-checkall input { width: 18px; height: 18px; accent-color: var(--navy); cursor: pointer; }
.bb-wl-count {
  display: inline-flex; align-items: center; height: 26px; padding: 0 10px;
  border-radius: var(--r-pill); background: var(--cream); border: 1px solid var(--cream-3);
  font-size: 12px; font-weight: 700; color: var(--navy);
}
.bb-wl-count[hidden] { display: none; }

.tools-search {
  display: flex; align-items: center; height: 40px; min-width: 220px;
  border: 1.5px solid var(--gray-3); border-radius: var(--r-sm); background: var(--white);
}
.tools-search svg { flex: none; width: 17px; height: 17px; margin: 0 6px 0 12px; stroke: var(--text-muted); stroke-width: 2; fill: none; }
.tools-search input[type="search"] {
  flex: 1; min-width: 0; height: 100%; padding: 0 12px 0 0;
  border: 0; background: transparent; outline: none;
  font-family: var(--font-body); font-size: 14px; color: var(--navy);
}
.tools-search input[type="search"]::placeholder { color: var(--text-placeholder); }
.tools-search:focus-within { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(27,42,78,0.10); }

/* Native select, want het werkblad luistert naar het change-signaal.
   Wel het uiterlijk van de eigen dropdown: navy chevron, geen systeempijl. */
.tools-select {
  height: 40px; padding: 0 34px 0 12px;
  border: 1.5px solid var(--gray-3); border-radius: var(--r-sm); background: var(--white);
  font-family: var(--font-body); font-size: 14px; font-weight: 700; color: var(--navy);
  outline: none; cursor: pointer;
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B2A4E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 16px 16px;
}
.tools-select:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(27,42,78,0.10); }

/* ---------------------------------------------------------------
   5  Werkblad: tabel
   Het JS tekent de rijen opnieuw met exact deze klassen.
   --------------------------------------------------------------- */
.wl-tablewrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  background: var(--white); border: 1px solid var(--gray-line); border-radius: var(--r-md);
  box-shadow: var(--sh-1);
}
.bb-wl-table { width: 100%; min-width: 880px; border-collapse: collapse; }
.bb-wl-table th {
  text-align: left; padding: 12px 14px;
  background: var(--off); border-bottom: 1px solid var(--gray-line);
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-2); white-space: nowrap;
}
.bb-wl-table td {
  padding: 12px 14px; border-bottom: 1px solid var(--gray-2); vertical-align: middle;
  font-size: 14px; color: var(--navy);
}
.bb-wl-table tbody tr:last-child td { border-bottom: 0; }
.bb-wl-table tbody tr:hover { background: var(--off); }
.bb-wl-table.is-laden { opacity: 0.5; pointer-events: none; }

.bb-wl-pick { width: 44px; }
.bb-wl-pick input { width: 18px; height: 18px; accent-color: var(--navy); cursor: pointer; }
.bb-wl-row.is-picked { background: var(--cream); }
.bb-wl-row.is-picked:hover { background: var(--cream-2); }
.bb-wl-row.is-weg { opacity: 0.35; }

.bb-wl-thumb { width: 76px; }
.bb-wl-thumb img {
  width: 60px; height: 60px; object-fit: contain;
  background: var(--off); border-radius: var(--r-xs); padding: 5px;
}
.bb-wl-none .bb-wl-thumb img,
.bb-wl-unknown .bb-wl-thumb img { filter: saturate(0.6); }

.bb-wl-name { font-size: 15px; font-weight: 700; color: var(--navy); overflow-wrap: anywhere; }
a.bb-wl-name:hover { text-decoration: underline; color: var(--navy); }
.bb-wl-no {
  margin-top: 2px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--text-muted);
}
.bb-wl-sub {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 4px;
  font-size: 13px; color: var(--text-2);
}
.bb-wl-remark {
  margin-top: 4px; font-size: 13px; color: var(--text-muted);
  border-left: 2px solid var(--cream-3); padding-left: 8px;
}
/* Kleurstaal: hetzelfde onderdeel als op de kaart en in de filters. */
.bb-wl-sub .bb-color-swatch {
  width: 18px; height: 18px; margin: 0; border-radius: var(--r-pill);
  border: 1px solid rgba(27,42,78,0.18); flex: none;
}

.bb-wl-qty { display: flex; align-items: center; gap: 8px; margin: 0; }
.bb-wl-qty input[type="number"],
.bb-wl-qty-input {
  width: 78px; height: 40px; padding: 0 10px;
  border: 1.5px solid var(--gray-3); border-radius: var(--r-sm); background: var(--white);
  font-family: var(--font-mono); font-size: 14px; font-weight: 500; color: var(--navy); outline: none;
}
.bb-wl-qty input[type="number"]:focus,
.bb-wl-qty-input:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(27,42,78,0.10); }

.bb-wl-have { font-family: var(--font-mono); font-size: 14px; font-weight: 500; color: var(--navy); }
.bb-wl-price {
  text-align: right; white-space: nowrap;
  font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--navy);
}

.bb-wl-badge {
  display: inline-flex; align-items: center; height: 26px; padding: 0 10px;
  border-radius: var(--r-pill); font-size: 12px; font-weight: 700; white-space: nowrap;
}
.bb-wl-badge-full,
.bb-wl-badge-done    { color: var(--success);    background: var(--success-bg); }
.bb-wl-badge-partial { color: var(--warn);       background: var(--cream); }
.bb-wl-badge-none    { color: var(--danger);     background: #FBEDEB; }
.bb-wl-badge-unknown { color: var(--text-muted); background: var(--gray-soft); }
.bb-wl-alerted { display: inline-flex; vertical-align: middle; margin-left: 6px; color: var(--text-muted); }
.bb-wl-alerted svg { width: 16px; height: 16px; }

.bb-wl-x {
  display: grid; place-items: center; width: 36px; height: 36px; padding: 0;
  border: 0; border-radius: var(--r-sm); background: transparent;
  color: var(--text-muted); font-size: 20px; line-height: 1; cursor: pointer;
  transition: background 160ms ease-out, color 160ms ease-out;
}
.bb-wl-x:hover { background: #FBEDEB; color: var(--danger); }

/* ---------------------------------------------------------------
   6  Werkblad: paginering
   Het JS tekent deze knoppen opnieuw met de klasse bb-btn-ghost.
   --------------------------------------------------------------- */
.bb-wl-pager {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: 16px;
}
/* Het JS verbergt de paginering met het hidden-attribuut zodra er nog maar
   één pagina over is; display:flex hierboven zou dat anders overrulen. */
.bb-wl-pager[hidden] { display: none !important; }
.bb-wl-pager-info { font-size: 13px; color: var(--text-muted); }
.bb-wl-pager-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.bb-wl-pager-btns .bb-btn-ghost {
  display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px;
  border: 1px solid var(--gray-line); border-radius: var(--r-sm); background: var(--white);
  font-family: var(--font-body); font-size: 14px; font-weight: 700; color: var(--navy);
  text-decoration: none; text-align: center;
}
.bb-wl-pager-btns .bb-btn-ghost:hover { background: var(--cream); color: var(--navy); text-decoration: none; }
.bb-wl-pager-btns .is-active {
  background: var(--navy); border-color: var(--navy); color: var(--white);
}
.bb-wl-pager-btns .is-active:hover { background: var(--navy); color: var(--white); }
.bb-wl-pager-btns .is-off { opacity: 0.35; pointer-events: none; }

/* ---------------------------------------------------------------
   7  Werkblad: zwevende balken en melding
   --------------------------------------------------------------- */
.bb-wl-bulk, .bb-wl-save { position: sticky; bottom: 12px; z-index: 30; margin-top: 12px; }
/* display:flex hieronder wint anders van het hidden-attribuut, waardoor
   de balk zichtbaar bleef staan nadat het JS hem verborgen had. */
.bb-wl-bulk[hidden], .bb-wl-save[hidden] { display: none !important; }
.bb-wl-bulk-inner, .bb-wl-save {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 16px;
  background: var(--navy); color: var(--white);
  border-radius: var(--r-md); box-shadow: var(--sh-3);
}
.bb-wl-bulk-count, .bb-wl-save span { font-size: 14px; font-weight: 700; color: var(--white); }
.bb-wl-bulk-acties { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bb-wl-save { background: var(--cream); border: 1px solid var(--cream-3); }
.bb-wl-save span { color: var(--navy); }
/* De selectiebalk staat op navy: de tekstknop moet daar licht op zijn. */
.bb-wl-bulk .bsw-btn-text { color: var(--cream); }
.bb-wl-bulk .bsw-btn-text:hover { color: var(--white); }

.bb-wl-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(12px);
  z-index: 200; padding: 12px 20px;
  background: var(--navy); color: var(--white);
  border-radius: var(--r-pill); box-shadow: var(--sh-3);
  font-family: var(--font-body); font-size: 14px; font-weight: 700;
  opacity: 0; pointer-events: none;
  transition: opacity 200ms ease-out, transform 200ms ease-out;
}
.bb-wl-toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------------------------------------------------------------
   8  Werkblad: panelen onderaan
   --------------------------------------------------------------- */
.wl-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.wl-inline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wl-inline .bsw-input { flex: 1 1 200px; min-width: 0; }
.wl-inline .bsw-btn { flex: none; }
.wl-share { display: block; margin-top: 16px; }
.wl-share .bsw-input {
  margin-top: 6px; font-family: var(--font-mono); font-size: 12px; font-weight: 500;
}
.wl-danger { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--gray-line); }
.wl-danger button {
  border: 0; background: none; padding: 0; cursor: pointer;
  font-family: var(--font-body); font-size: 13px; font-weight: 700; color: var(--danger);
  text-decoration: underline; text-underline-offset: 2px;
}
.wl-danger button:hover { color: #8E1B26; }
.wl-foot { display: flex; justify-content: flex-end; margin-top: 24px; }

/* ---------------------------------------------------------------
   9  Scanner
   De klassen bb-scan-card tot en met bb-scan-mailrij worden door het
   inline JS opgebouwd; hier alleen het uiterlijk.
   --------------------------------------------------------------- */
.scan-wrap { max-width: 900px; margin: 0 auto; }
.scan-head { text-align: center; margin-bottom: 24px; }
.scan-head .bsw-lead { margin: 10px auto 0; }
.scan-attr {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
  height: 26px; padding: 0 12px; border-radius: var(--r-pill);
  background: var(--cream); border: 1px solid var(--cream-3);
  font-size: 12px; font-weight: 700; color: var(--navy);
}
.scan-attr svg { flex: none; width: 14px; height: 14px; stroke: currentColor; stroke-width: 2; fill: none; }

.bb-scan-paired {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 0 0 20px; padding: 12px 16px;
  border: 1px solid #BFE0C7; border-radius: var(--r-md);
  background: var(--success-bg); color: var(--success);
  font-size: 14px; font-weight: 700;
}
.bb-scan-paired svg { flex: none; width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.6; fill: none; }

.bb-scan-stage {
  text-align: center; padding: 32px 24px;
  background: var(--white); border: 1px solid var(--gray-line); border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
}
.bb-scan-icon {
  display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 14px;
  border-radius: var(--r-md); background: var(--cream);
}
.bb-scan-icon svg { width: 32px; height: 32px; stroke: var(--navy); stroke-width: 1.5; fill: none; }
.bb-scan-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 12px; }
.bb-scan-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }

/* De knoppen van de scanner volgen de knoppentabel uit shop.css. */
.bb-scan-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 20px; border: 0; border-radius: var(--r-sm);
  background: var(--yellow); color: var(--navy);
  font-family: var(--font-body); font-weight: 700; font-size: 15px; line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background 160ms ease-out;
}
.bb-scan-btn svg { flex: none; width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.8; fill: none; }
.bb-scan-btn-primary { background: var(--yellow); color: var(--navy); }
.bb-scan-btn-primary:hover { background: var(--yellow-2); color: var(--navy); }
.bb-scan-btn-ghost { background: var(--white); color: var(--navy); border: 1.5px solid var(--navy); }
.bb-scan-btn-ghost:hover { background: var(--cream); color: var(--navy); }
.bb-scan-btn[disabled] { background: var(--gray-2); color: var(--text-2); border-color: var(--gray-3); cursor: not-allowed; }
/* De camera-knop staat op hidden tot het JS vaststelt dat getUserMedia mag;
   display:inline-flex hierboven zou het hidden-attribuut anders overrulen. */
.bb-scan-btn[hidden] { display: none !important; }

.bb-scan-camera { display: none; margin-top: 18px; }
.bb-scan-camera.is-on { display: block; }
.bb-scan-video {
  display: block; width: 100%; max-width: 440px; margin: 0 auto;
  aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--r-md); background: var(--navy-ink);
}

.bb-scan-preview { display: none; margin-top: 18px; }
.bb-scan-preview.is-on { display: block; }
.bb-scan-preview img {
  max-width: 220px; margin: 0 auto; padding: 8px;
  border: 1px solid var(--gray-line); border-radius: var(--r-md); background: var(--off);
}

.bb-scan-note {
  max-width: 520px; margin: 16px auto 0;
  font-size: 13px; line-height: 1.6; color: var(--text-muted);
}

.bb-scan-status {
  display: none; align-items: center; justify-content: center; gap: 10px;
  margin: 24px 0; font-size: 14px; font-weight: 700; color: var(--text-2);
}
.bb-scan-status.is-on { display: flex; }
.bb-scan-spinner {
  width: 22px; height: 22px; flex: none; color: var(--navy);
  animation: scan-spin 0.8s linear infinite;
}
@keyframes scan-spin { to { transform: rotate(360deg); } }

.bb-scan-msg {
  display: none; max-width: 560px; margin: 20px auto; padding: 14px 16px;
  border: 1px solid var(--cream-3); border-radius: var(--r-md); background: var(--cream);
  font-size: 14px; line-height: 1.6; color: var(--navy); text-align: center;
}
.bb-scan-msg.is-on { display: block; }

.bb-scan-results { margin: 28px 0 8px; }
.scan-results__head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.bb-scan-results .sub {
  display: inline-flex; align-items: center; gap: 6px; margin: 0;
  font-size: 12px; font-weight: 700; color: var(--text-muted);
}
.bb-scan-results .sub svg { flex: none; width: 13px; height: 13px; stroke: currentColor; stroke-width: 2; fill: none; }
.bb-scan-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px;
}

.bb-scan-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--white); border: 1px solid var(--gray-line); border-radius: var(--r-md);
  box-shadow: var(--sh-1);
  transition: box-shadow 160ms ease-out, border-color 160ms ease-out, transform 160ms ease-out;
}
.bb-scan-card:hover { border-color: var(--gray-3); box-shadow: var(--sh-lift); transform: translateY(-2px); }
.bb-scan-card-img {
  position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center;
  padding: 16px; background: var(--off);
}
.bb-scan-card-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.bb-scan-score {
  position: absolute; top: 8px; left: 8px; padding: 0 8px; height: 22px;
  display: inline-flex; align-items: center; border-radius: var(--r-pill);
  background: var(--yellow); color: var(--navy);
  font-size: 11px; font-weight: 700; line-height: 1;
}
.bb-scan-card-body { display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; padding: 14px; }
.bb-scan-card-no { font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--text-muted); }
.bb-scan-card-name { font-size: 15px; font-weight: 700; line-height: 1.35; color: var(--navy); }
.bb-scan-card-price { font-family: var(--font-head); font-weight: 700; font-size: 20px; color: var(--navy); }
.bb-scan-card-price small {
  font-family: var(--font-body); font-weight: 400; font-size: 12px; color: var(--text-muted);
}
.bb-scan-card-stock { font-size: 13px; color: var(--text-2); }
.bb-scan-card-tag {
  align-self: flex-start; height: 22px; padding: 0 8px;
  display: inline-flex; align-items: center; border-radius: var(--r-xs);
  background: var(--gray-2); color: var(--text-2); font-size: 11px; font-weight: 700;
}
.bb-scan-cta {
  margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 44px; padding: 0 14px; border-radius: var(--r-sm);
  background: var(--yellow); color: var(--navy);
  font-family: var(--font-body); font-weight: 700; font-size: 14px; text-decoration: none;
}
.bb-scan-cta:hover { background: var(--yellow-2); color: var(--navy); text-decoration: none; }
.bb-scan-cta.is-ghost { background: var(--white); color: var(--navy); border: 1.5px solid var(--navy); }
.bb-scan-cta.is-ghost:hover { background: var(--cream); color: var(--navy); }
.bb-scan-cta svg { flex: none; width: 15px; height: 15px; stroke: currentColor; stroke-width: 1.8; fill: none; }

.bb-scan-kleur {
  width: 100%; height: 44px; margin-top: 8px; padding: 0 34px 0 12px;
  border: 1.5px solid var(--gray-3); border-radius: var(--r-sm); background-color: var(--white);
  font-family: var(--font-body); font-size: 14px; color: var(--navy); cursor: pointer; outline: none;
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B2A4E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 16px 16px;
}
.bb-scan-kleur:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(27,42,78,0.10); }

.bb-scan-wl {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; min-height: 44px; margin-top: 8px; padding: 0 14px;
  border: 1.5px solid var(--navy); border-radius: var(--r-sm); background: var(--white);
  font-family: var(--font-body); font-size: 14px; font-weight: 700; color: var(--navy);
  text-decoration: none; cursor: pointer;
  transition: background 160ms ease-out;
}
.bb-scan-wl:hover { background: var(--cream); color: var(--navy); }
.bb-scan-wl svg { flex: none; width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.8; fill: none; }
.bb-scan-wl.is-done {
  border-color: #BFE0C7; background: var(--success-bg); color: var(--success); cursor: default;
}
.bb-scan-wl[disabled] { opacity: 0.6; cursor: not-allowed; }
.bb-scan-wl-hint { margin-top: 6px; font-size: 12px; line-height: 1.5; color: var(--text-muted); }
a.bb-scan-wl-hint { color: var(--navy); font-weight: 700; text-decoration: underline; }

.bb-scan-mailrij { margin-top: 10px; }
.bb-scan-mailrij input[type="email"] {
  width: 100%; height: 44px; padding: 0 12px;
  border: 1.5px solid var(--gray-3); border-radius: var(--r-sm); background: var(--white);
  font-family: var(--font-body); font-size: 14px; color: var(--navy); outline: none;
}
.bb-scan-mailrij input[type="email"]:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(27,42,78,0.10); }

/* Telefoon koppelen via QR */
.bb-scan-pair {
  margin: 28px 0 0; padding: 24px; text-align: center;
  border: 1px solid var(--cream-3); border-radius: var(--r-md); background: var(--cream);
}
.bb-scan-pair .bsw-h3 { margin-bottom: 6px; }
.bb-scan-pair p { max-width: 480px; margin: 0 auto 16px; font-size: 14px; line-height: 1.6; color: var(--text-2); }
.bb-scan-pair-box { margin-top: 18px; }
.bb-scan-qr {
  display: inline-block; padding: 12px; line-height: 0;
  background: var(--white); border: 1px solid var(--gray-line); border-radius: var(--r-md);
}
.bb-scan-qr img, .bb-scan-qr canvas { display: block; width: 200px; height: 200px; }
.bb-scan-qr a { font-family: var(--font-mono); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.bb-scan-pair-status { margin: 14px 0 0 !important; font-size: 13px; font-weight: 700; color: var(--navy); }

/* Tips op een navy vlak, zoals de banden elders. */
.scan-tips {
  position: relative; overflow: hidden;
  max-width: 680px; margin: 32px auto 0; padding: 24px 28px;
  background-color: var(--navy); border-radius: var(--r-lg); color: var(--white);
}
.scan-tips > * { position: relative; }
.scan-tips__head { color: var(--yellow); margin: 0 0 14px; }
.scan-tips ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.scan-tips li { display: flex; gap: 10px; font-size: 14px; line-height: 1.5; color: var(--cream); }
.scan-tips li svg { flex: none; width: 16px; height: 16px; margin-top: 3px; stroke: var(--yellow); stroke-width: 2; fill: none; }

/* ---------------------------------------------------------------
   10  Responsief
   --------------------------------------------------------------- */
@media (max-width: 1100px) {
  .wl-cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 900px) {
  .wl-forms { grid-template-columns: minmax(0,1fr); }
  .bb-wl-summary { padding: 20px; }
  .bb-wl-summary-actions { flex: 1 1 100%; }
  .bb-wl-summary-actions .bsw-btn { flex: 1 1 auto; }
}

@media (max-width: 700px) {
  .tools-head { gap: 14px; }
  .wl-cards { grid-template-columns: minmax(0,1fr); }
  .wl-empty { flex-direction: column; gap: 14px; padding: 24px 20px; }

  .bb-wl-toolbar { flex-direction: column; align-items: stretch; }
  .bb-wl-tool-right { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .tools-search { grid-column: 1 / -1; min-width: 0; }
  .tools-select { width: 100%; }

  /* De tabel wordt een kaartenlijst: de koprij verdwijnt en elke cel
     draagt zijn eigen label. */
  .wl-tablewrap { overflow-x: visible; }
  .bb-wl-table { min-width: 0; }
  .bb-wl-table thead { display: none; }
  .bb-wl-table tbody tr {
    display: grid; grid-template-columns: 34px 64px minmax(0,1fr);
    gap: 2px 10px; padding: 14px 12px; border-bottom: 1px solid var(--gray-2);
  }
  .bb-wl-table td { border: 0; padding: 2px 0; }
  .bb-wl-table td[data-label]::before {
    content: attr(data-label) ": ";
    font-size: 12px; font-weight: 400; color: var(--text-muted);
  }
  .bb-wl-pick { grid-row: span 5; align-self: start; padding-top: 8px !important; width: auto; }
  .bb-wl-thumb { grid-row: span 5; width: auto; }
  .bb-wl-price { text-align: left; }
  .bb-wl-table td:last-child { justify-self: start; }

  /* De site heeft onderaan een vaste navigatiebalk; de zwevende balken
     gaan daarboven staan in plaats van eronder te verdwijnen. */
  .bb-wl-bulk, .bb-wl-save { bottom: 78px; }
  .bb-wl-bulk-inner, .bb-wl-save { flex-direction: column; align-items: stretch; }
  .bb-wl-bulk-acties { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .bb-wl-bulk-acties .bsw-btn { width: 100%; }
  .bb-wl-bulk-acties .bsw-btn-text { grid-column: 1 / -1; justify-content: center; }
  .bb-wl-toast { left: 12px; right: 12px; bottom: 96px; transform: none; text-align: center; }
  .bb-wl-toast.is-on { transform: none; }

  .bb-scan-pair { display: none; }
}

@media (max-width: 560px) {
  .bb-scan-stage { padding: 24px 16px; }
  .bb-scan-actions .bb-scan-btn { width: 100%; }
  .bb-scan-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .scan-tips { padding: 20px; }
  .wl-gate__row .bsw-btn { width: 100%; }
}

/* ---------------------------------------------------------------
   11  Beweging: alle animatie is versiering, nooit betekenis
   --------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  /* shop.css zet alle animatie op 0,01ms met !important. Voor deze ene
     draaicirkel is dat te streng: hij vertelt dat de herkenning loopt, en
     stilstaand leest hij als een vastgelopen pagina. Daarom traag in
     plaats van uit. */
  .bb-scan-spinner { animation-duration: 1.6s !important; }
  .wl-card:hover, .bb-scan-card:hover { transform: none; }
}
