/* T-021: vyhľadávanie – lupa v hlavičke, okno s našepkávačom a stránka výsledkov. */

/* HLAVIČKA */
.vc-header__main { grid-template-columns: auto 1fr auto auto auto; }
.vc-header__search { justify-self: end; display: inline-flex; width: 42px; height: 42px; padding: 0; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: transparent; color: var(--vc-text); cursor: pointer; transition: background .2s, color .2s; }
.vc-header__search:hover,
.vc-header__search:focus-visible { background: rgba(255, 255, 255, .08); color: var(--vc-green); }

/* OKNO VYHĽADÁVANIA */
html.vc-search-open { overflow: hidden; }
.vc-search[hidden] { display: none; }
.vc-search { position: fixed; inset: 0; z-index: 10050; }
.vc-search__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .72); backdrop-filter: blur(6px); }
.vc-search__dialog { position: relative; width: min(760px, calc(100% - 32px)); margin: clamp(16px, 9vh, 110px) auto 0; overflow: hidden; border: 1px solid rgba(255, 255, 255, .12); border-radius: 18px; background: #121412; box-shadow: 0 40px 100px rgba(0, 0, 0, .5); }
.vc-search__form { display: flex; gap: 12px; padding: 12px 14px 12px 20px; align-items: center; border-bottom: 1px solid rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .55); }
.vc-search__form input { flex: 1; min-width: 0; height: 50px; padding: 0; border: 0; background: transparent; color: #fff; font: inherit; font-size: 18px; outline: none; box-shadow: none; }
.vc-search__form input::placeholder { color: rgba(255, 255, 255, .42); }
.vc-search__form input::-webkit-search-cancel-button { display: none; }
.vc-search__close { flex: 0 0 auto; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .07); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.vc-search__close:hover,
.vc-search__close:focus-visible { background: rgba(255, 255, 255, .14); }
.vc-search__results { max-height: min(64vh, 580px); overflow-y: auto; transition: opacity .15s; }
.vc-search__results:empty { display: none; }
.vc-search__results.is-loading { opacity: .6; }
.vc-search__group { padding: 14px 12px 6px; }
.vc-search__group h3 { margin: 0 8px 10px; color: rgba(255, 255, 255, .5); font-size: 11px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.vc-search__item { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; padding: 8px; align-items: center; border-radius: 12px; color: #fff; text-decoration: none; outline: none; }
.vc-search__item:hover,
.vc-search__item:focus-visible { background: rgba(156, 255, 0, .09); }
.vc-search__item img,
.vc-search__placeholder { display: block; width: 56px; height: 56px; border-radius: 9px; background: #1c1f1c; object-fit: cover; }
.vc-search__item strong { display: block; color: #fff; font-size: 14px; font-weight: 650; line-height: 1.35; }
.vc-search__item small { display: block; margin-top: 2px; color: rgba(255, 255, 255, .55); font-size: 12px; }
.vc-search__item em { color: #fff; font-size: 14px; font-style: normal; font-weight: 700; white-space: nowrap; }
.vc-search__chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 8px 6px; }
.vc-search__chip { display: inline-flex; padding: 9px 13px; flex-direction: column; gap: 2px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; color: #fff; font-size: 13px; font-weight: 650; line-height: 1.3; text-decoration: none; outline: none; transition: border-color .2s, background .2s; }
.vc-search__chip small { color: rgba(255, 255, 255, .5); font-size: 11px; font-weight: 500; }
.vc-search__chip:hover,
.vc-search__chip:focus-visible { border-color: rgba(156, 255, 0, .5); background: rgba(156, 255, 0, .07); }
.vc-search__all { display: block; margin: 8px 12px 12px; padding: 13px; border-radius: 12px; background: linear-gradient(90deg, var(--vc-green), var(--vc-green-dark)); color: #071006; font-size: 14px; font-weight: 750; text-align: center; text-decoration: none; outline: none; }
.vc-search__all:focus-visible { box-shadow: 0 0 0 3px rgba(156, 255, 0, .35); }
.vc-search__hint { margin: 0; padding: 18px 20px; color: rgba(255, 255, 255, .65); font-size: 14px; }
.vc-search__empty { padding: 22px 22px 24px; color: rgba(255, 255, 255, .7); font-size: 14px; line-height: 1.55; }
.vc-search__empty strong { display: block; color: #fff; font-size: 16px; }
.vc-search__empty p { margin: 6px 0 0; }
.vc-search__choose { margin-top: 16px; padding: 12px 20px; border: 0; border-radius: 999px; background: linear-gradient(90deg, var(--vc-green), var(--vc-green-dark)); color: #071006; font: inherit; font-size: 14px; font-weight: 750; cursor: pointer; }

/* STRÁNKA VÝSLEDKOV */
.vc-search-page { padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 110px); }
.vc-search-page__head { max-width: 860px; margin-bottom: 30px; }
.vc-search-page__head h1 { margin: 6px 0 20px; font-size: clamp(32px, 4vw, 52px); line-height: 1.05; }
.vc-search-page__form { display: flex; gap: 10px; }
.vc-search-page__form input { flex: 1; min-width: 0; height: 54px; padding: 0 20px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; background: #151715; color: #fff; font: inherit; font-size: 16px; }
.vc-search-page__form input:focus { border-color: rgba(156, 255, 0, .6); outline: none; }
.vc-search-page__form .vc-button { flex: 0 0 auto; width: auto; }
.vc-search-page__meta { margin: 14px 0 0; color: rgba(255, 255, 255, .6); font-size: 14px; }
.vc-search-page__categories { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 30px; align-items: center; }
.vc-search-page__categories > span { margin-right: 6px; color: rgba(255, 255, 255, .5); font-size: 11px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
/* Mriežka na celú šírku obsahu (globálna má max. 1 180 px a na širších obrazovkách ostávalo vpravo prázdne miesto);
   počet stĺpcov podľa šírky, karty približne ako v obchode (≈ 310–350 px). */
.vc-search-page .vc-product-grid { margin-inline: 0; }
@media (min-width: 981px) {
    .vc-search-page .vc-product-grid { width: 100%; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
}
.vc-search-page__empty { max-width: 760px; padding: clamp(24px, 3vw, 36px); border: 1px solid rgba(255, 255, 255, .12); border-radius: 18px; background: #141614; }
.vc-search-page__empty h2 { margin: 0; font-size: clamp(22px, 2.4vw, 30px); }
.vc-search-page__empty p { margin: 10px 0 0; color: rgba(255, 255, 255, .7); line-height: 1.6; }
.vc-search-page__actions { display: flex; flex-wrap: wrap; gap: 14px 22px; margin-top: 22px; align-items: center; }
.vc-search-page__actions .vc-button { width: auto; }
.vc-search-page__link { color: var(--vc-green); font-weight: 700; }
.vc-search-page__articles { margin-top: 56px; }
.vc-search-page__articles h2 { margin: 0 0 16px; font-size: 24px; }
.vc-search-page__articles ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.vc-search-page__articles li { padding: 18px 20px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; }
.vc-search-page__articles a { color: #fff; font-weight: 700; text-decoration: none; }
.vc-search-page__articles a:hover { color: var(--vc-green); }
.vc-search-page__articles p { margin: 6px 0 0; color: rgba(255, 255, 255, .62); font-size: 14px; }

@media (max-width: 1024px) {
    .vc-header__main { grid-template-columns: 1fr auto auto auto; }
    .vc-header__search { grid-column: 2; grid-row: 1; width: 36px; height: 36px; }
    .vc-header__search svg { width: 18px; height: 18px; }
    .vc-header__cart { grid-column: 3; }
    .vc-header__mobile-toggle { grid-column: 4; }
}

@media (max-width: 680px) {
    .vc-search__dialog { width: calc(100% - 20px); margin-top: 10px; border-radius: 14px; }
    .vc-search__form { padding: 8px 10px 8px 14px; }
    .vc-search__form input { height: 46px; font-size: 16px; }
    .vc-search__results { max-height: calc(100vh - 110px); }
    .vc-search__item { grid-template-columns: 48px minmax(0, 1fr); row-gap: 4px; }
    .vc-search__item img,
    .vc-search__placeholder { width: 48px; height: 48px; }
    .vc-search__item em { grid-column: 2; font-size: 13px; }
    .vc-search-page__form { flex-direction: column; }
    .vc-search-page__form input { flex: 0 0 auto; }
    .vc-search-page__form .vc-button { width: 100%; }
}
