/* ============================================================
   Rockit Search — dropdown stilovi
   Dizajn prati Woodmart paletu (neutralni sivi toni, čist izgled)
   ============================================================ */

.rs-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 99999;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .10);
    max-height: 480px;
    overflow-y: auto;
    font-size: 14px;
}

/* ---------- lista ---------- */
.rs-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rs-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    cursor: pointer;
    transition: background .15s ease;
    border-bottom: 1px solid #f5f5f5;
    text-decoration: none;
    color: inherit;
}

.rs-item:last-child {
    border-bottom: none;
}

.rs-item:hover,
.rs-item.rs-active {
    background: #f7f7f7;
}

/* ---------- thumbnail ---------- */
.rs-img {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 4px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rs-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.rs-img-empty {
    background: #f0f0f0;
}

/* ---------- info ---------- */
.rs-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.rs-title {
    font-weight: 500;
    font-size: 13px;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.rs-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.rs-sku {
    color: #888;
    font-family: monospace;
    font-size: 11px;
}

.rs-price {
    color: #444;
    font-size: 12px;
}

/* WooCommerce ins/del unutar cene */
.rs-price ins {
    text-decoration: none;
    font-weight: 600;
    color: #d63638;
}

.rs-price del {
    color: #aaa;
    font-size: 11px;
    margin-left: 2px;
}

/* ---------- footer "prikaži sve" ---------- */
.rs-footer {
    padding: 8px 14px;
    border-top: 1px solid #eee;
    text-align: center;
}

.rs-show-all {
    font-size: 13px;
    font-weight: 500;
    color: #2271b1;
    text-decoration: none;
    display: inline-block;
    padding: 4px 0;
}

.rs-show-all:hover {
    text-decoration: underline;
    color: #135e96;
}

/* ---------- stanja ---------- */
.rs-loading,
.rs-no-results {
    padding: 14px 16px;
    color: #888;
    font-size: 13px;
    text-align: center;
}

.rs-loading::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 8px;
    border: 2px solid #ccc;
    border-top-color: #2271b1;
    border-radius: 50%;
    animation: rs-spin .6s linear infinite;
    vertical-align: middle;
}

@keyframes rs-spin {
    to { transform: rotate(360deg); }
}

/* ---------- scrollbar ---------- */
.rs-dropdown::-webkit-scrollbar {
    width: 4px;
}
.rs-dropdown::-webkit-scrollbar-track {
    background: #f5f5f5;
}
.rs-dropdown::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

/* ---------- mobile ---------- */
@media (max-width: 767px) {
    .rs-dropdown {
        font-size: 13px;
    }
    .rs-img {
        width: 42px;
        height: 42px;
    }
    .rs-title {
        font-size: 12px;
    }
}
