/* Našepkávač v hlavičke (www/js/naseptavac.js) – farby starého webu: tmavomodrá #363F4D, červená #EB3E32 */
.nsp-panel {
  --nsp-navy: #363F4D;
  --nsp-red: #EB3E32;
  --nsp-line: #e8eaee;
  --nsp-soft: #f5f6f8;
  position: fixed;
  top: 120px;
  left: 16px;
  z-index: 100000;
  width: 620px;
  max-width: calc(100vw - 32px);
  max-height: 640px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  border: 1px solid var(--nsp-line);
  border-top: 3px solid var(--nsp-red);
  border-radius: 4px 4px 12px 12px;
  box-shadow: 0 18px 40px rgba(54, 63, 77, .22);
  text-align: left;
  font-size: 14px;
  line-height: 1.35;
  color: var(--nsp-navy);
}
.nsp-panel[hidden] { display: none; }
.nsp-panel.is-loading { background-image: linear-gradient(90deg, transparent, rgba(235, 62, 50, .5), transparent); background-size: 40% 2px; background-repeat: no-repeat; animation: nsp-load 0.9s linear infinite; }
@keyframes nsp-load { from { background-position: -40% 0; } to { background-position: 140% 0; } }

.nsp-sec { padding: 6px 0; }
.nsp-sec + .nsp-sec { border-top: 1px solid var(--nsp-line); }
.nsp-head {
  padding: 8px 16px 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8a909a;
}
.nsp-panel a { display: flex; align-items: center; gap: 12px; padding: 8px 16px; color: var(--nsp-navy); text-decoration: none; min-height: 44px; }
.nsp-panel a:hover, .nsp-panel a:focus, .nsp-panel a.is-active { background: var(--nsp-soft); color: var(--nsp-navy); text-decoration: none; }
.nsp-panel a.is-active { box-shadow: inset 3px 0 0 var(--nsp-red); }
.nsp-panel mark { background: none; color: var(--nsp-red); font-weight: 700; padding: 0; }

/* kategórie */
.nsp-cat-ic {
  flex: 0 0 32px; height: 32px; border-radius: 8px; background: #fdecea;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23EB3E32' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='1'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 16px;
}
.nsp-cat-tx { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.nsp-cat-t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nsp-cat-p { font-size: 12px; color: #8a909a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nsp-cat-n { flex: 0 0 auto; font-size: 12px; color: #6b7280; background: var(--nsp-soft); border-radius: 999px; padding: 2px 9px; }
.nsp-panel a.is-active .nsp-cat-n { background: #fff; }

/* produkty */
.nsp-thumb {
  flex: 0 0 52px; width: 52px; height: 52px; border-radius: 8px; border: 1px solid var(--nsp-line);
  background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.nsp-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.nsp-thumb.is-empty {
  background: #f3f4f7 url("/images/bez-fotky-ikona.svg") no-repeat center / cover;
}
.nsp-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.nsp-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nsp-meta { display: flex; gap: 6px; }
.nsp-badge { font-size: 11px; font-weight: 600; border-radius: 4px; padding: 1px 7px; }
.nsp-badge.is-ok { color: #1f7a35; background: #e7f5ea; }
.nsp-badge.is-no { color: #6b7280; background: #eef0f3; }
.nsp-price { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; white-space: nowrap; }
.nsp-price b { font-size: 15px; color: var(--nsp-navy); }
.nsp-old { font-size: 12px; color: #9aa0a8; }
.nsp-prod.is-off .nsp-title, .nsp-prod.is-off .nsp-price b { color: #8a909a; }

/* päta a prázdny stav */
.nsp-panel a.nsp-all {
  display: block; text-align: center; padding: 14px 16px; border-top: 1px solid var(--nsp-line); font-weight: 600; color: #fff;
  background: var(--nsp-navy); min-height: 48px; position: sticky; bottom: 0;
}
.nsp-panel a.nsp-all:hover, .nsp-panel a.nsp-all.is-active { background: var(--nsp-red); color: #fff; box-shadow: none; }
.nsp-all b { margin: 0; color: #fff; }
.nsp-empty { padding: 18px 16px; display: flex; flex-direction: column; gap: 4px; color: #6b7280; }
.nsp-empty b { color: var(--nsp-navy); }

/* mobil: celá šírka obrazovky pod poľom, veľké dotykové plochy */
@media (max-width: 767px) {
  .nsp-panel {
    left: 0; right: 0; width: auto; max-width: none;
    border-radius: 0; border-left: 0; border-right: 0;
    font-size: 15px;
  }
  .nsp-panel a { min-height: 52px; padding: 10px 16px; }
  .nsp-cat-p { display: none; }
}
@media (prefers-reduced-motion: reduce) { .nsp-panel.is-loading { animation: none; } }
