/* Smoke Factory search suggest - vzhľad zjednotený s Euforia */
.sfs-host { position: relative; }
.sfs-host.sfs-open input { box-shadow: 0 0 0 2px #292929; }

.sfs {
  --sfs-g: #00c346;
  --sfs-gd: #00843a;
  --sfs-gl: #e9fff1;
  --sfs-ink: #292929;
  --sfs-muted: #5c5c5c;
  --sfs-line: #e6e6e6;
  --sfs-soft: #f3f3f3;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: max(100%, 620px);
  max-width: calc(100vw - 24px);
  max-height: min(72vh, 660px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  border: 1px solid var(--sfs-line);
  border-top: 3px solid var(--sfs-g);
  box-shadow: 0 14px 32px rgba(0, 0, 0, .2);
  z-index: 1100;
  text-align: left;
  color: var(--sfs-ink);
  animation: sfs-in .14s ease-out;
}
.sfs[hidden] { display: none; }
@keyframes sfs-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.sfs a { text-decoration: none; }
.sfs a:focus { outline: 0; }
.sfs a:focus-visible { outline: 2px solid var(--sfs-gd); outline-offset: -2px; }

.sfs__section { padding: 14px 14px 6px; }
.sfs__section + .sfs__section { border-top: 1px solid var(--sfs-line); }
.sfs__label {
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--sfs-muted); margin: 0 4px 8px;
}

/* Kategórie a značky */
.sfs__chips { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 8px; }
.sfs__chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px 7px 10px;
  background: var(--sfs-soft); color: var(--sfs-ink) !important;
  font-size: 14px; font-weight: 600; line-height: 1.2;
  border: 1px solid transparent; transition: background-color .12s, border-color .12s;
}
.sfs__chip svg { width: 16px; height: 16px; color: var(--sfs-gd); flex: none; }
.sfs__chip small { display: block; font-size: 11px; font-weight: 400; color: var(--sfs-muted); }
.sfs__chip:hover, .sfs__chip.is-active { background: var(--sfs-gl); border-color: var(--sfs-g); }

/* Produkty */
.sfs__products { list-style: none; margin: 0; padding: 0 0 6px; }
.sfs__product {
  display: grid; grid-template-columns: 60px 1fr auto; align-items: center; gap: 14px;
  padding: 8px; color: var(--sfs-ink) !important; transition: background-color .12s;
}
.sfs__product:hover, .sfs__product.is-active { background: var(--sfs-gl); }
.sfs__thumb {
  width: 60px; height: 60px; background: #fff; border: 1px solid var(--sfs-line);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.sfs__thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sfs__noimg svg { width: 26px; height: 26px; color: #b5b5b5; }
.sfs__body { min-width: 0; }
.sfs__title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 15px; font-weight: 600; line-height: 1.3;
}
.sfs__title mark, .sfs__chip mark { background: none; color: var(--sfs-gd); font-weight: 800; padding: 0; }
.sfs__meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; font-size: 12px; color: var(--sfs-muted); }
.sfs__stock { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }
.sfs__stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.sfs__stock--in { color: var(--sfs-gd); }
.sfs__stock--out { color: #c2410c; }
.sfs__stock--order, .sfs__stock--delivery { color: #8a6d0b; }
.sfs__price { font-weight: 800; font-size: 16px; color: var(--sfs-ink); white-space: nowrap; }

/* Pätička */
.sfs__all {
  position: sticky; bottom: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; background: var(--sfs-g); color: #fff !important;
  font-size: 15px; font-weight: 700;
}
.sfs__all strong { font-weight: 800; }
.sfs__all svg { width: 20px; height: 20px; flex: none; transition: transform .15s; }
.sfs__all:hover, .sfs__all.is-active { background: var(--sfs-gd); }
.sfs__all:hover svg, .sfs__all.is-active svg { transform: translateX(3px); }

/* Bez výsledkov */
.sfs__empty { padding: 26px 24px 18px; text-align: center; color: var(--sfs-muted); font-size: 14px; }
.sfs__empty svg { width: 34px; height: 34px; color: #b5b5b5; margin-bottom: 6px; }
.sfs__empty p { margin: 0; }

/* Načítavanie */
.sfs__skeleton { display: grid; grid-template-columns: 60px 1fr; gap: 14px; padding: 8px; align-items: center; }
.sfs-sk { display: block; background: linear-gradient(90deg, #eee 25%, #f7f7f7 50%, #eee 75%); background-size: 200% 100%; animation: sfs-sk 1.1s infinite linear; }
.sfs-sk--img { width: 60px; height: 60px; }
.sfs-sk-lines { display: grid; gap: 8px; }
.sfs-sk--line { height: 12px; }
.sfs-sk--short { width: 45%; }
@keyframes sfs-sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }

@media (max-width: 767px) {
  .sfs { left: -12px; right: -12px; width: auto; max-width: none; max-height: 70vh; }
  .sfs__product { grid-template-columns: 48px 1fr; gap: 10px; }
  .sfs__thumb { width: 48px; height: 48px; }
  .sfs__price { grid-column: 2; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .sfs, .sfs-sk { animation: none; }
}
