/* naradovna.sk – vyhľadávanie, dávka 1 (16. 11. 2026), v2 načítavanie – k hladanie.js. Našepkávač Shoptetu poskladaný ako Alza:
   kategórie (čipy) navrch, produkty, návody, „Zobraziť všetky výsledky“; oprava preklepu; Často hľadané; stránka bez výsledkov. */

/* ---------- Našepkávač: poradie blokov (Shoptet ich má v DOM inak – kategórie a články v jednom obale pred produktmi) ---------- */
.search-whisperer.active.nd-sh { display: flex !important; flex-direction: column !important; flex-wrap: nowrap !important; align-items: stretch !important; }
.search-whisperer.nd-sh > * { flex: 0 0 auto !important; max-width: 100%; }
.search-whisperer.nd-sh > .search-whisperer-documents:not(.text-center):not(.search-whisperer-empty) { display: contents !important; }
.search-whisperer.nd-sh .nd-sh-fix { order: 0; }
.search-whisperer.nd-sh .search-box.kategorie { order: 1; }
.search-whisperer.nd-sh > ul.search-whisperer-products { order: 2; }
.search-whisperer.nd-sh .search-box.clanky { order: 3; }
.search-whisperer.nd-sh > .search-whisperer-documents.text-center { order: 4; }

/* kategórie ako čipy s ikonou priečinka (Alza), bez nadpisu */
.search-whisperer.nd-sh .search-box.kategorie { display: flex !important; flex-direction: row !important; flex-wrap: wrap !important; align-items: flex-start !important; gap: 8px; width: 100%; height: auto !important; margin: 0 0 16px; padding: 0; border: 0; }
.search-whisperer.nd-sh .search-box.kategorie > a { flex: 0 1 auto !important; height: auto !important; min-height: 0 !important; }
.search-whisperer.nd-sh .search-box.kategorie:empty { display: none !important; }
.search-whisperer.nd-sh .search-box.kategorie::before, .search-whisperer.nd-sh > ul.search-whisperer-products::before { display: none !important; }
.search-whisperer.nd-sh a.search-whisperer-category {
  display: inline-flex !important; align-items: center; gap: 6px; width: auto !important; max-width: 100%; margin: 0 !important; padding: 7px 12px !important;
  border: 1px solid #d9dbde; border-radius: 6px; background: #fff; color: #171717 !important; font-size: 14px; font-weight: 600; line-height: 1.3; text-decoration: none;
}
.search-whisperer.nd-sh a.search-whisperer-category:hover, .search-whisperer.nd-sh a.search-whisperer-category:focus-visible { border-color: #d0150a; color: #d0150a !important; }
.search-whisperer.nd-sh a.search-whisperer-category em { margin: 0 !important; position: static !important; }
.search-whisperer.nd-sh a.search-whisperer-category span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* návody: krátky nadpis */
.search-whisperer.nd-sh .search-box.clanky { width: 100%; margin-top: 8px; }
.search-whisperer.nd-sh .search-box.clanky:empty { display: none !important; }
.search-whisperer.nd-sh .search-box.clanky::before { content: "Návody a články" !important; }

/* produkty: najviac 6 (desktop 2 stĺpce × 3), mobil 4 – zvyšok cez „Zobraziť všetky výsledky“ */
.search-whisperer.nd-sh > ul.search-whisperer-products > li:nth-child(n+7) { display: none !important; }
@media (max-width: 767px) {
  .search-whisperer.nd-sh > ul.search-whisperer-products > li:nth-child(n+5) { display: none !important; }
  .search-whisperer.nd-sh .search-box.kategorie { margin-bottom: 12px; }
  .search-whisperer.nd-sh a.search-whisperer-category { font-size: 14px; padding: 6px 10px !important; }
}

/* „Zobraziť všetky výsledky“ ako tlačidlo */
.search-whisperer.nd-sh a.whisperer-trigger {
  display: inline-flex !important; align-items: center; justify-content: center; margin: 12px auto 0 !important; padding: 10px 20px !important;
  border: 1px solid #171717; border-radius: 6px; color: #171717 !important; font-weight: 700; text-decoration: none;
}
.search-whisperer.nd-sh a.whisperer-trigger:hover, .search-whisperer.nd-sh a.whisperer-trigger:focus-visible { background: #171717; color: #fff !important; }

/* ---------- Oprava preklepu / nič nenájdené (v šepkači) ---------- */
.search-whisperer .nd-sh-fix { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; width: 100%; margin: 0 0 14px; font-size: 15px; color: #171717; }
.search-whisperer .nd-sh-fix + .search-whisperer-empty { display: none !important; }

/* ---------- Čipy (Často hľadané, oprava, nulové výsledky) ---------- */
.nd-sh-chip {
  display: inline-flex; align-items: center; padding: 6px 12px; border: 1px solid #d9dbde; border-radius: 6px; background: #fff;
  color: #171717 !important; font-size: 14px; font-weight: 600; line-height: 1.3; text-decoration: none !important;
}
.nd-sh-chip:hover, .nd-sh-chip:focus-visible { border-color: #d0150a; color: #d0150a !important; }
.nd-sh-chip.is-fix { border-color: #d0150a; color: #d0150a !important; text-decoration: underline !important; }
.nd-sh-chip:focus-visible { outline: 3px solid #171717; outline-offset: 2px; }

/* ---------- Prázdne pole po kliknutí: Často hľadané ---------- */
.nd-sh-pop {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 1002; display: flex; flex-wrap: wrap; gap: 8px;
  padding: 14px 16px 16px; background: #fff; border: 1px solid #e1e2e4; border-radius: 8px; box-shadow: 0 16px 32px rgba(0, 0, 0, .14); text-align: left;
}
.nd-sh-pop[hidden] { display: none !important; }
.nd-sh-pop-h { width: 100%; margin: 0 0 2px; color: #525960; font-size: 13px; font-weight: 700; text-transform: none; }

/* ---------- Stránka výsledkov bez produktov ---------- */
.nd-sh-zero { margin: 8px 0 32px; padding: 20px 22px; border: 1px solid #e1e2e4; border-radius: 8px; background: #fafafa; }
.nd-sh-zero p { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 16px; }
.nd-sh-zero p:last-child { margin-bottom: 0; }
.nd-sh-zero-h { font-weight: 700; font-size: 18px !important; }
.nd-sh-zero-help a { color: #d0150a; font-weight: 700; }

/* ---------- v2: načítavanie (koliesko v poli pred tlačidlom, stlmené staré výsledky, „Hľadám …“ pri oprave) ---------- */
.nd-sh-spin { position: absolute; z-index: 1001;   /* pole má z-index 999 */  width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px #fff; pointer-events: none; }
.nd-sh-spin::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; border-radius: 50%; border: 2px solid #d9dbde; border-top-color: #d0150a; animation: nd-sh-spin .7s linear infinite; }
.nd-sh-spin[hidden] { display: none !important; }
@keyframes nd-sh-spin { to { transform: rotate(360deg); } }
.search-whisperer.nd-sh-wait > :not(.nd-sh-fixwait) { opacity: .45; transition: opacity .15s; }
.search-whisperer .nd-sh-fixwait { color: #525960; }
@media (prefers-reduced-motion: reduce) {
  .nd-sh-spin::before { animation: none; border-color: #d0150a #d9dbde #d9dbde #d0150a; }
  .search-whisperer.nd-sh-wait > :not(.nd-sh-fixwait) { transition: none; }
}
