/* ===== DS AJAX SEARCH — detskestany.sk ===== */

/* Skryjeme starý VM search modul v navigácii */
#navigation div.moduletable.virtuemart_search { display: none !important; }

/* Ľavý span — vertikálne centrovanie lupy */
#top .span4.mobile:first-child {
    display: flex !important;
    align-items: center;
    padding-left: 16px;
}

/* Search button */
#ds-search-btn {
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    color: #555;
    padding: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: color .2s;
    line-height: 1;
    flex-shrink: 0;
}
#ds-search-btn:hover,
#ds-search-btn:focus,
#ds-search-btn.active { color: #b16040; }

/* Overlay */
#ds-overlay {
    position: fixed;
    inset: 0;
    background: rgba(245, 248, 252, 0.97);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 99999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
}
#ds-overlay.open {
    opacity: 1;
    pointer-events: all;
}
#ds-overlay-inner {
    width: 100%;
    max-width: 660px;
    padding: 0 20px;
    transform: translateY(-16px);
    transition: transform .28s cubic-bezier(.34,1.45,.64,1);
}
#ds-overlay.open #ds-overlay-inner {
    transform: translateY(0);
}
#ds-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid #b16040!important;
    padding-bottom: 14px;
    margin-bottom: 20px;
    transition: border-color .2s;
}
#ds-input-wrap:focus-within { border-bottom-color: #b16040; }
#ds-search-icon { color: #aabbc8; flex-shrink: 0; }
#ds-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-size: clamp(20px, 3vw, 26px);
    color: #1a1a1a;
    font-family: inherit;
    padding: 0;
    caret-color: #b16040;
}
#ds-input::placeholder { color: #b0bec5; }
#ds-close {
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    color: #aabbc8;
    padding: 6px;
    display: flex;
    align-items: center;
    border-radius: 50%;
    transition: color .15s;
    flex-shrink: 0;
}
#ds-close:hover { color: #b16040; }
#ds-hint {
    font-size: 12px;
    color: #b0bec5;
    text-transform: uppercase;
    letter-spacing: .09em;
    margin-bottom: 6px;
    transition: opacity .2s;
}
#ds-hint.hidden { opacity: 0; }
#ds-results {
    max-height: calc(100vh - 260px);
    overflow-y: auto;
    overscroll-behavior: contain;
}
#ds-results::-webkit-scrollbar { width: 4px; }
#ds-results::-webkit-scrollbar-thumb { background: #d0dde8; border-radius: 2px; }
.ds-list { list-style: none; margin: 0; padding: 0; }
.ds-item {
    border-bottom: 1px solid #e8eef4;
    animation: dsFadeIn .15s ease both;
}
.ds-item:nth-child(2) { animation-delay: .04s; }
.ds-item:nth-child(3) { animation-delay: .08s; }
.ds-item:nth-child(4) { animation-delay: .12s; }
.ds-item:nth-child(5) { animation-delay: .16s; }
.ds-item:nth-child(6) { animation-delay: .20s; }
@keyframes dsFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.ds-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    text-decoration: none;
    color: inherit;
    border-radius: 6px;
}
.ds-link:hover { text-decoration: none; }
.ds-link:hover .ds-name { color: #b16040; }
.ds-thumb {
    width: 56px; height: 56px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #eef3f8;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid #dde5ed;
}
.ds-thumb img { width:100%; height:100%; object-fit:contain; display:block; }
.ds-thumb-empty { color: #b0bec5; font-size: 22px; }
.ds-info { flex: 1; min-width: 0; }
.ds-name {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .15s;
}
.ds-name mark { background: none; color: #b16040; font-weight: 700; padding: 0; }
.ds-meta { display: flex; align-items: center; gap: 10px; }
.ds-cat { font-size: 11px; color: #90a4ae; text-transform: uppercase; letter-spacing: .5px; }
.ds-price { font-size: 14px; font-weight: 700; color: #b16040; }
.ds-more { border-top: 1px solid #e8eef4; margin-top: 4px; }
.ds-more a {
    display: block; text-align: center;
    padding: 12px 0;
    font-size: 13px; font-weight: 600;
    color: #90a4ae;
    text-decoration: none;
    letter-spacing: .05em;
    text-transform: uppercase;
    transition: color .15s;
}
.ds-more a:hover { color: #b16040; text-decoration: none; }
.ds-loading {
    display: flex; align-items: center; justify-content: center;
    gap: 8px; padding: 36px 0;
}
.ds-loading span {
    width: 8px; height: 8px;
    border-radius: 50%; background: #b16040;
    animation: dsDot 1.1s ease-in-out infinite; opacity: .3;
}
.ds-loading span:nth-child(2) { animation-delay: .18s; }
.ds-loading span:nth-child(3) { animation-delay: .36s; }
@keyframes dsDot {
    0%,80%,100% { transform:scale(.7); opacity:.3; }
    40%          { transform:scale(1.2); opacity:1; }
}
.ds-empty, .ds-error { padding: 36px 0; font-size: 15px; color: #90a4ae; }
.ds-error { color: #e74c3c; }
.ds-empty strong { color: #546e7a; }
body.ds-body-lock { overflow: hidden; }

#top .span4.mobile:first-child {
    display: flex !important;
    align-items: center !important;
    height: 102px !important;
    padding-left: 16px;
}
#ds-input {margin-bottom: 0px!important; border:none!important;}
#ds-input {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}