/* Polychromo Search — παράθυρο αποτελεσμάτων */
.pfs-layer {
  --pfs-blue: #206dc5; --pfs-blue-dark: #17539a; --pfs-ink: #16181d; --pfs-muted: #5f6672;
  --pfs-line: #e4e7ec; --pfs-bg: #ffffff; --pfs-soft: #f4f6f9; --pfs-green: #1d7a46; --pfs-orange: #a15c07;
  --pfs-mark: #fff1b8; --pfs-red: #c62828;
  position: fixed; inset: 0; z-index: 2147483000; font-family: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--pfs-ink); font-size: 14px; line-height: 1.4;
}
.pfs-layer[hidden] { display: none; }
html.pfs-lock, html.pfs-lock body { overflow: hidden; }
.pfs-layer *, .pfs-layer *::before, .pfs-layer *::after { box-sizing: border-box; }
.pfs-backdrop { position: absolute; inset: 0; background: rgba(15, 20, 30, .45); }
.pfs-panel {
  position: absolute; left: 50%; top: 24px; transform: translateX(-50%); width: min(1200px, calc(100vw - 32px));
  max-height: calc(100vh - 48px); background: var(--pfs-bg); border-radius: 14px; display: flex; flex-direction: column;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .25); overflow: hidden;
}
.pfs-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--pfs-line); }
.pfs-icon { width: 22px; height: 22px; fill: none; stroke: var(--pfs-blue); stroke-width: 2.2; stroke-linecap: round; flex: none; }
.pfs-q {
  flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 19px; font-weight: 600; color: var(--pfs-ink);
  background: transparent; padding: 6px 0; -webkit-appearance: none; appearance: none;
}
.pfs-q::-webkit-search-cancel-button { display: none; }
.pfs-q::placeholder { color: #9aa1ad; font-weight: 500; }
.pfs-close {
  border: 0; background: var(--pfs-soft); color: var(--pfs-ink); width: 36px; height: 36px; border-radius: 50%;
  font-size: 16px; cursor: pointer; flex: none;
}
.pfs-close:hover { background: var(--pfs-line); }
.pfs-body { display: flex; min-height: 0; flex: 1; }
.pfs-facets { width: 240px; flex: none; padding: 16px 18px; border-right: 1px solid var(--pfs-line); overflow-y: auto; }
.pfs-facets:empty { display: none; }
.pfs-main { flex: 1; min-width: 0; overflow-y: auto; padding: 14px 18px 24px; }
.pfs-meta { color: var(--pfs-muted); margin-bottom: 12px; min-height: 20px; }
.pfs-meta strong { color: var(--pfs-ink); }
.pfs-meta em { font-style: normal; color: var(--pfs-blue); font-weight: 600; }
.pfs-ms { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 99px; background: #e8f5ee; color: var(--pfs-green); font-weight: 700; font-size: 12px; }
.pfs-note { color: var(--pfs-orange); }
.pfs-redirect { color: var(--pfs-blue); font-weight: 700; }
.pfs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.pfs-card {
  display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; padding: 10px;
  border: 1px solid var(--pfs-line); border-radius: 10px; background: #fff; transition: box-shadow .15s, border-color .15s;
}
.pfs-card:hover, .pfs-card:focus-visible { border-color: var(--pfs-blue); box-shadow: 0 6px 18px rgba(32, 109, 197, .15); outline: 0; }
.pfs-img { display: block; aspect-ratio: 1; background: #fff; border-radius: 6px; overflow: hidden; margin-bottom: 4px; }
.pfs-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pfs-noimg { background: var(--pfs-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b4bac4' stroke-width='1.5'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Ccircle cx='9' cy='10' r='2'/%3E%3Cpath d='m21 17-5-5-9 8'/%3E%3C/svg%3E") center / 38% no-repeat; }
.pfs-brand { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--pfs-muted); font-weight: 700; }
.pfs-title { font-size: 13.5px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.9em; }
.pfs-title mark { background: var(--pfs-mark); color: inherit; border-radius: 2px; padding: 0 1px; }
.pfs-price { margin-top: auto; font-size: 16px; }
.pfs-price s { color: var(--pfs-muted); font-size: 13px; }
.pfs-sale { color: var(--pfs-red); }
.pfs-from { font-size: 12px; color: var(--pfs-muted); }
.pfs-opts { font-size: 12px; color: var(--pfs-blue); font-weight: 700; }
.pfs-stock { font-size: 12px; font-weight: 600; }
.pfs-in { color: var(--pfs-green); }
.pfs-order { color: var(--pfs-orange); }
.pfs-empty { padding: 40px 0; text-align: center; color: var(--pfs-muted); }
.pfs-empty p:first-child { font-size: 16px; color: var(--pfs-ink); font-weight: 600; }
.pfs-more-wrap { text-align: center; margin-top: 18px; }
.pfs-more {
  border: 1px solid var(--pfs-blue); color: var(--pfs-blue); background: #fff; font: inherit; font-weight: 700;
  padding: 10px 22px; border-radius: 8px; cursor: pointer;
}
.pfs-more:hover { background: var(--pfs-blue); color: #fff; }
.pfs-group { margin-top: 18px; }
.pfs-group h4 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--pfs-muted); }
.pfs-check { display: flex; align-items: center; gap: 8px; padding: 4px 0; cursor: pointer; font-size: 13.5px; }
.pfs-check input { accent-color: var(--pfs-blue); width: 16px; height: 16px; margin: 0; flex: none; }
.pfs-check span { margin-left: auto; color: var(--pfs-muted); font-size: 12px; }
.pfs-stockf { font-weight: 600; }
.pfs-toggle, .pfs-clear { border: 0; background: none; color: var(--pfs-blue); font: inherit; font-weight: 700; padding: 4px 0; cursor: pointer; }
.pfs-clear { display: block; margin-bottom: 6px; }
.pfs-price-row { display: flex; align-items: center; gap: 6px; }
.pfs-price-row input { width: 100%; min-width: 0; border: 1px solid var(--pfs-line); border-radius: 6px; padding: 7px 8px; font: inherit; }
.pfs-hint, .pfs-loading { color: var(--pfs-muted); }
.pfs-ftoggle { display: none; }

@media (max-width: 760px) {
  .pfs-panel { top: 0; left: 0; transform: none; width: 100vw; height: 100%; max-height: none; border-radius: 0; }
  .pfs-body { flex-direction: column; overflow-y: auto; }
  .pfs-facets { width: auto; border-right: 0; border-bottom: 1px solid var(--pfs-line); padding: 10px 16px; overflow: visible; display: none; }
  .pfs-show-filters .pfs-facets:not(:empty) { display: block; }
  .pfs-ftoggle:not([hidden]) {
    display: inline-block; float: right; border: 1px solid var(--pfs-line); background: #fff; border-radius: 8px;
    padding: 6px 12px; font: inherit; font-weight: 700; color: var(--pfs-blue); cursor: pointer; margin: -4px 0 8px 8px;
  }
  .pfs-group { margin-top: 10px; }
  .pfs-main { overflow: visible; padding: 12px 16px 24px; }
  .pfs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pfs-q { font-size: 17px; }
}
