/* Onderdelen zoeken – resultaatweergave. Knoppen en voorraadlabels komen uit het thema
   (.primary-btn, .secondary-btn, .stock.in-stock/.available-on-backorder/.out-of-stock). */

/* Het thema toont op elke pagina een wit laadscherm tot ± 1,2 s na DOMContentLoaded.
   Hier niet: de resultaten zijn er eerder dan dat scherm weg zou zijn. */
body.yoz-pagina #preloader { display: none !important; }

.yoz {
  --yoz-rand: #e3e5e8;
  --yoz-grijs: #6f7580;
  --yoz-blauw: #0a2d82;
  --yoz-rood: #d52b1e;
  max-width: 1140px;
  margin: 0 auto 56px;
  padding-top: 24px;
}
@media (min-width: 1200px) {
  /* de vaste kopbalk is hier twee regels hoog (± 140 px), .wrapper geeft 7em */
  .yoz { padding-top: 40px; }
}
.yoz-titel {
  margin: 0 0 14px;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.15;
}

/* Zoekbalk */
.yoz-zoekbalk {
  position: relative;
  display: flex;
  gap: 10px;
  margin: 0 0 18px;
  padding: 16px;
  background: #ebebeb;
  border-radius: 8px;
}
.yoz-q {
  flex: 1 1 auto;
  min-width: 0;
  padding: 11px 42px 11px 14px;
  font-size: 1.05rem;
  border: 1px solid #c8cbd0;
  border-radius: 6px;
  background: #fff;
}
.yoz-q:focus {
  outline: 2px solid var(--yoz-blauw);
  outline-offset: 0;
  border-color: transparent;
}
.yoz-q::-webkit-search-cancel-button { display: none; }
.yoz-wis {
  position: relative;
  margin-left: -52px;
  width: 42px;
  border: 0;
  background: transparent;
  color: var(--yoz-grijs);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.yoz-wis[hidden] { display: none; }
.yoz .yoz-knop {
  flex: 0 0 auto;
  padding: 8px 26px;
}

/* Status, filters, meldingen */
.yoz-status p { margin: 0 0 10px; }
.yoz-telling { font-size: 1.05rem; }
.yoz-tijd { color: var(--yoz-grijs); font-size: 0.9rem; }
.yoz-start { font-size: 1.05rem; }
.yoz-voorbeelden, .yoz-los { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.yoz-chip {
  display: inline-block;
  padding: 3px 12px;
  border: 1px solid #c8cbd0;
  border-radius: 999px;
  color: #000;
  text-decoration: none;
  font-size: 0.92rem;
  background: #fff;
}
.yoz-chip:hover { background: #dbdbdb; color: #000; }
.yoz-fout { color: var(--yoz-rood); }

.yoz-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: 0 0 8px;
}
.yoz-filters:empty { display: none; }
.yoz-filter { display: inline-flex; align-items: center; gap: 6px; margin: 0; cursor: pointer; }
.yoz-select {
  max-width: 100%;
  padding: 6px 10px;
  border: 1px solid #c8cbd0;
  border-radius: 6px;
  background: #fff;
}
.yoz-select--sort { margin-left: auto; }
.yoz-genegeerd { margin: 0 0 8px; padding: 8px 12px; background: #fff6e0; border-left: 3px solid orange; }

/* Resultaten */
.yoz-lijst {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--yoz-rand);
  transition: opacity 0.12s;
}
.yoz-lijst:empty { border-top: 0; }
.yoz--laden .yoz-lijst { opacity: 0.5; }

.yoz-item {
  display: grid;
  grid-template-columns: minmax(150px, 190px) minmax(0, 1fr) auto minmax(190px, auto);
  grid-template-areas: "code info prijs actie";
  align-items: center;
  gap: 6px 22px;
  margin: 0;
  padding: 14px 6px;
  border-bottom: 1px solid var(--yoz-rand);
  list-style: none;
}
.yoz-item:hover { background: #fafafa; }
.yoz-code {
  grid-area: code;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 700;
  font-size: 0.98rem;
  color: #000;
  text-decoration: none;
  white-space: nowrap;
}
.yoz-info { grid-area: info; min-width: 0; }
.yoz-naam {
  display: block;
  color: var(--yoz-blauw);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.yoz-code:hover, .yoz-naam:hover { text-decoration: underline; }
.yoz-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 5px; font-size: 0.85rem; }
.yoz .yoz-vr {
  display: inline-block;
  margin: 0;
  padding: 1px 8px;
  border-radius: 3px;
  font-size: 0.78rem;
  line-height: 1.5;
}
.yoz-vv { color: var(--yoz-grijs); }
.yoz-vv a { color: var(--yoz-blauw); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.yoz-prijs { grid-area: prijs; text-align: right; white-space: nowrap; }
.yoz-prijs strong { display: block; font-size: 1.1rem; }
.yoz-prijs small { display: block; color: var(--yoz-grijs); font-size: 0.75rem; }
.yoz-actie { grid-area: actie; display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.yoz-aantal {
  width: 62px;
  padding: 6px 4px;
  border: 1px solid #c8cbd0;
  border-radius: 6px;
  text-align: center;
}
.yoz .yoz-koop { padding: 4px 18px; white-space: nowrap; }
.yoz .yoz-koop.loading { opacity: 0.6; }
.yoz .yoz-koop.added { background-color: green !important; color: #fff !important; }
.yoz-item--nla .yoz-code, .yoz-item--nla .yoz-naam { color: var(--yoz-grijs); }

/* Laadskelet */
.yoz-skelet span {
  display: block;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(90deg, #eceef1 25%, #f6f7f8 50%, #eceef1 75%);
  background-size: 200% 100%;
  animation: yoz-glans 1.1s linear infinite;
}
.yoz-skelet__a { grid-area: code; }
.yoz-skelet__b { grid-area: info; width: 70%; }
.yoz-skelet__c { grid-area: actie; width: 160px; height: 30px !important; justify-self: end; }
@keyframes yoz-glans { to { background-position: -200% 0; } }

/* Leeg, voet */
.yoz-leeg:empty, .yoz-voet:empty { display: none; }
.yoz-leeg { padding: 8px 0 0; }
.yoz-geen { font-size: 1.1rem; font-weight: 700; }
.yoz-tip { color: var(--yoz-grijs); }
.yoz-hulp { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.yoz .yoz-offerte { padding: 4px 20px; }
.yoz-catalogus { color: var(--yoz-blauw); }
.yoz-voet { padding: 18px 0 0; text-align: center; }
.yoz .yoz-meer { padding: 4px 28px; }
.yoz-stand { margin: 14px 0 0; color: var(--yoz-grijs); font-size: 0.8rem; }

@media (max-width: 767.98px) {
  .yoz-zoekbalk { padding: 10px; }
  .yoz .yoz-knop { padding: 8px 14px; }
  .yoz-item {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "code prijs" "info info" "actie actie";
    gap: 4px 12px;
    padding: 12px 2px;
  }
  .yoz-actie { justify-content: flex-end; } /* aantal + Bestellen rechts, onder de prijs */
  .yoz-select--sort { margin-left: 0; }
  .yoz-skelet__c { justify-self: end; }
}

@media (prefers-reduced-motion: reduce) {
  .yoz-skelet span { animation: none; }
  .yoz-lijst { transition: none; }
}

/* Exacte match en verwante resultaten */
.yoz-kop {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 12px;
  margin: 0;
  padding: 14px 6px 6px;
  list-style: none;
  border-bottom: 1px solid var(--yoz-rand);
}
.yoz-kop strong { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.02em; }
.yoz-kop--verwant { margin-top: 18px; }
.yoz-kop__uitleg { color: var(--yoz-grijs); font-size: 0.85rem; }
.yoz-item--exact { background: #eef6ee; border-left: 4px solid green; }
.yoz-item--exact:hover { background: #e6f1e6; }
.yoz-filter--exact { font-weight: 700; }
.yoz-verborgen { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; margin: 0; color: var(--yoz-grijs); }
.yoz .yoz-toon-verwant { padding: 2px 18px; }
.yoz-vanaf { display: block; color: var(--yoz-grijs); font-size: 0.75rem; }

/* Live prijscontrole */
.yoz-item--controle .yoz-prijs strong { opacity: 0.45; }
.yoz-controle { color: var(--yoz-grijs); font-style: italic; }
.yoz-gewijzigd { color: green; font-weight: 700; }
