/* ============================================================
   shop.css — de webshop-laag (founder 01-09): zoekoverlay,
   hero-zoekbalk, USP-balk en kleine shopdetails. Bewust een
   NIEUW bestand naast redesign.css (bestaande CSS blijft
   onaangeraakt); geladen bovenin de body via BaseLayout
   (Tier B, dus geen head-parity nodig). Gebruikt de bestaande
   design-tokens uit styles.css/redesign.css.
   ============================================================ */

/* ---- hero-zoekbalk (knop die de overlay opent) ---- */
.shop-search {
  display: flex; align-items: center; gap: 12px; width: 100%; max-width: 560px;
  margin-top: 22px; padding: 0 8px 0 18px; height: 54px;
  background: var(--pls-white, #fff);
  border: 1.5px solid var(--color-border-strong, #d8d4e6); border-radius: 999px;
  font-family: inherit; font-size: 15px; color: var(--color-text-muted, #5b5670);
  cursor: text; text-align: left;
  box-shadow: 0 1px 2px rgba(20, 2, 45, 0.05);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.shop-search:hover, .shop-search:focus-visible {
  border-color: var(--pls-purple, #6d28d9);
  box-shadow: 0 2px 10px rgba(20, 2, 45, 0.09);
  outline: none;
}
.shop-search svg { flex: none; color: var(--pls-purple, #6d28d9); }
.shop-search .shop-search-ph {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.shop-search .shop-search-kbd {
  flex: none; font-size: 12px; font-weight: 600; color: var(--color-text-muted, #5b5670);
  border: 1px solid var(--color-border, #e6e2f0); border-radius: 8px; padding: 5px 9px;
  background: var(--color-surface, #f6f4fb);
}
@media (max-width: 620px) { .shop-search .shop-search-kbd { display: none; } }

/* ---- zoekknop in de nav ---- */
.shop-nav-search {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; flex: none; cursor: pointer;
  background: none; border: 1.5px solid var(--color-border-strong, #d8d4e6);
  border-radius: var(--radius-sm, 10px); color: var(--color-text, #14022d);
}
.shop-nav-search:hover { border-color: var(--pls-purple, #6d28d9); color: var(--pls-purple, #6d28d9); }

/* ---- USP-balk onder de hero ---- */
.shop-usp { border-top: 1px solid var(--color-border, #e6e2f0); border-bottom: 1px solid var(--color-border, #e6e2f0); background: var(--pls-white, #fff); }
.shop-usp-row {
  max-width: 1280px; margin: 0 auto; padding: 14px clamp(20px, 5vw, 48px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 10px 24px;
}
.shop-usp-item { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; letter-spacing: -0.005em; color: var(--color-text, #14022d); }
.shop-usp-item svg { flex: none; color: var(--pls-purple, #6d28d9); }

/* ---- zoekoverlay ---- */
.shop-overlay { position: fixed; inset: 0; z-index: 140; }
.shop-overlay[hidden] { display: none; }
.shop-overlay-backdrop { position: absolute; inset: 0; background: rgba(20, 2, 45, 0.45); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.shop-panel {
  position: relative; margin: clamp(16px, 9vh, 90px) auto 0; width: min(680px, calc(100% - 32px));
  max-height: min(76vh, 640px); display: flex; flex-direction: column;
  background: var(--pls-white, #fff); border-radius: var(--radius-lg, 16px);
  box-shadow: 0 24px 70px rgba(20, 2, 45, 0.35); overflow: hidden;
  animation: shop-pop 240ms cubic-bezier(.16, .64, .24, 1) both;
}
@keyframes shop-pop { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .shop-panel { animation: none; } }

.shop-inputrow { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--color-border, #e6e2f0); color: var(--pls-purple, #6d28d9); }
.shop-inputrow input {
  flex: 1; min-width: 0; border: none; outline: none; background: none;
  font-family: inherit; font-size: 17px; font-weight: 500; color: var(--color-text, #14022d);
}
.shop-inputrow input::placeholder { color: var(--color-text-muted, #5b5670); opacity: .75; }
.shop-inputrow input::-webkit-search-cancel-button { display: none; }
.shop-close { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 34px; height: 34px; background: none; border: 1px solid var(--color-border, #e6e2f0); border-radius: 9px; color: var(--color-text, #14022d); cursor: pointer; }
.shop-close:hover { border-color: var(--pls-purple, #6d28d9); color: var(--pls-purple, #6d28d9); }

.shop-default { padding: 18px 18px 22px; }
.shop-hintlabel { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--color-text-muted, #5b5670); }
.shop-chiprow { display: flex; flex-wrap: wrap; gap: 8px; }
.shop-chip {
  font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--color-text, #14022d);
  background: var(--color-surface, #f6f4fb); border: 1px solid var(--color-border, #e6e2f0);
  border-radius: 999px; padding: 8px 14px; cursor: pointer;
}
.shop-chip:hover { border-color: var(--pls-purple, #6d28d9); color: var(--pls-purple, #6d28d9); }

.shop-results { overflow-y: auto; overscroll-behavior: contain; }
.shop-result {
  display: flex; align-items: center; gap: 14px; padding: 11px 18px;
  text-decoration: none; color: inherit; border-bottom: 1px solid var(--color-border, #e6e2f0);
}
.shop-result:last-child { border-bottom: none; }
.shop-result img { width: 44px; height: 44px; border-radius: 9px; object-fit: cover; flex: none; border: 1px solid var(--color-border, #e6e2f0); background: var(--color-surface, #f6f4fb); }
.shop-result .shop-result-noimg { width: 44px; height: 44px; border-radius: 9px; flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--color-surface, #f6f4fb); border: 1px solid var(--color-border, #e6e2f0); color: var(--pls-purple, #6d28d9); }
.shop-result-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.shop-result-l { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-result-c { font-size: 12.5px; color: var(--color-text-muted, #5b5670); }
.shop-result svg.shop-result-arrow { flex: none; color: var(--pls-purple, #6d28d9); opacity: 0; transform: translateX(-4px); transition: opacity 160ms ease, transform 160ms ease; }
.shop-result:hover, .shop-result.is-active { background: var(--color-surface, #f6f4fb); }
.shop-result:hover svg.shop-result-arrow, .shop-result.is-active svg.shop-result-arrow { opacity: 1; transform: none; }

.shop-empty { padding: 26px 18px 26px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.shop-empty[hidden] { display: none; }
.shop-empty-t { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.shop-empty-s { margin: 0 0 8px; font-size: 14px; line-height: 1.55; color: var(--color-text-muted, #5b5670); max-width: 46ch; }

/* ---- categoriefilters (branchechips + naamfilter boven het assortiment) ---- */
.shop-filterbar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px;
  margin: 0 0 clamp(18px, 2.5vw, 26px); padding: 12px 14px;
  background: var(--pls-white, #fff); border: 1px solid var(--color-border, #e6e2f0);
  border-radius: var(--radius-lg, 16px);
}
.shop-filterchips { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; min-width: 0; }
.shop-fchip {
  font-family: inherit; font-size: 13px; font-weight: 600; letter-spacing: -0.005em;
  color: var(--color-text, #14022d); background: var(--color-surface, #f6f4fb);
  border: 1px solid var(--color-border, #e6e2f0); border-radius: 999px;
  padding: 7px 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}
.shop-fchip span { font-size: 11.5px; font-weight: 700; color: var(--color-text-muted, #5b5670); }
.shop-fchip:hover { border-color: var(--pls-purple, #6d28d9); color: var(--pls-purple, #6d28d9); }
.shop-fchip.is-active { background: var(--pls-purple, #6d28d9); border-color: var(--pls-purple, #6d28d9); color: #fff; }
.shop-fchip.is-active span { color: rgba(255, 255, 255, 0.75); }
.shop-fchip--nieuw:not(.is-active) { border-color: var(--pls-purple, #6d28d9); color: var(--pls-purple, #6d28d9); }
.shop-fchip--nieuw:not(.is-active) span { color: var(--pls-purple, #6d28d9); }

.shop-fsearch {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  padding: 0 12px; height: 36px; min-width: 170px;
  background: var(--color-surface, #f6f4fb); border: 1px solid var(--color-border, #e6e2f0);
  border-radius: 999px; color: var(--color-text-muted, #5b5670);
}
.shop-fsearch:focus-within { border-color: var(--pls-purple, #6d28d9); }
.shop-fsearch svg { flex: none; }
.shop-fsearch input {
  border: none; outline: none; background: none; width: 130px;
  font-family: inherit; font-size: 13.5px; font-weight: 500; color: var(--color-text, #14022d);
}
.shop-fsearch input::-webkit-search-cancel-button { display: none; }
.shop-fcount { flex: none; font-size: 12.5px; font-weight: 600; color: var(--color-text-muted, #5b5670); }
@media (max-width: 620px) {
  .shop-fsearch { flex: 1; }
  .shop-fsearch input { width: 100%; flex: 1; }
}

/* gefilterde kaarten: class i.p.v. hidden-attribuut (display:flex op
   .plsx-prod zou [hidden] verslaan, zie de shop-empty les) */
.plsx-prod.is-filtered-out { display: none !important; }
.shop-fempty { margin: 10px 2px 0; font-size: var(--text-sm, 14px); color: var(--color-text-muted, #5b5670); }
.shop-fempty[hidden] { display: none; }
.shop-freset { font-family: inherit; font-size: inherit; background: none; border: none; padding: 0; cursor: pointer; }

/* body-scroll vast tijdens open overlay */
body.shop-search-open { overflow: hidden; }
