/* ============================================================
   search-suggest.css — premium autocomplete dropdown
   Body-appended, absolutely positioned under the search input.
   ============================================================ */

.ss-dropdown {
    position: absolute;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    box-shadow: 0 18px 56px rgba(0, 0, 0, 0.14);
    max-height: 460px;
    overflow-y: auto;
    z-index: 5000;
    padding: 6px 0;
    font-family: 'DM Sans', system-ui, sans-serif;
    animation: ss-fade-in 0.18s ease;
}

@keyframes ss-fade-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Custom scrollbar */
.ss-dropdown::-webkit-scrollbar       { width: 6px; }
.ss-dropdown::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.15); border-radius: 3px; }

/* Single suggestion row */
.ss-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.15s ease;
    border-left: 2px solid transparent;
    text-decoration: none;
    color: inherit;
}
.ss-item:hover,
.ss-item.active {
    background: #f8f5f0;
    border-left-color: #2C6E4E;
}

.ss-item__thumb {
    width: 62px;
    height: 46px;
    object-fit: cover;
    border-radius: 4px;
    background: #f0eee8;
    flex-shrink: 0;
}
.ss-item__thumb--empty {
    width: 62px;
    height: 46px;
    border-radius: 4px;
    background: linear-gradient(135deg, #f0eee8 0%, #e5e1d8 100%);
    flex-shrink: 0;
}

.ss-item__body {
    flex: 1;
    min-width: 0;
}
.ss-item__title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 17px;
    font-weight: 500;
    color: #0d0d0d;
    line-height: 1.2;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ss-item__meta {
    font-size: 10.5px;
    color: #888888;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ss-item__price {
    font-size: 12px;
    font-weight: 500;
    color: #2C6E4E;
    letter-spacing: 0.02em;
    flex-shrink: 0;
    text-align: right;
    white-space: nowrap;
}

.ss-empty {
    padding: 22px 18px;
    text-align: center;
    font-size: 13px;
    color: #888888;
    letter-spacing: 0.02em;
}

.ss-loading {
    padding: 18px;
    text-align: center;
    font-size: 11px;
    color: #888888;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* ── Mobile ───────────────────────────────────────────────── */
@media (max-width: 600px) {
    .ss-item {
        padding: 10px 14px;
        gap: 12px;
    }
    .ss-item__thumb,
    .ss-item__thumb--empty {
        width: 54px;
        height: 40px;
    }
    .ss-item__title { font-size: 16px; }
    .ss-item__price { font-size: 11px; }
    .ss-dropdown    { max-height: 60vh; border-radius: 8px; }
}
