/* msSearchManticore — suggestions dropdown and pagination.
   Deliberately small: the results grid itself is styled by the shop theme. */
.mss-form { position: relative; }

.mss-suggest {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 60;
    max-height: 60vh;
    overflow-y: auto;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 6px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .14);
}

.mss-suggest-item {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 8px 12px;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
}
.mss-suggest-item:last-child { border-bottom: 0; }
.mss-suggest-item:hover,
.mss-suggest-item.is-active { background: rgba(0, 0, 0, .05); }

.mss-suggest-thumb { width: 40px; height: 40px; object-fit: contain; flex: 0 0 40px; }
.mss-suggest-body { display: flex; flex-direction: column; min-width: 0; }
.mss-suggest-title {
    font-size: 13px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mss-suggest-meta { display: flex; gap: 8px; font-size: 12px; opacity: .7; }
.mss-suggest-out { color: #b00; }

.mss-suggest-all {
    display: block;
    padding: 9px 12px;
    font-size: 13px;
    text-align: center;
    text-decoration: underline;
    color: inherit;
}
.mss-suggest-all.is-active { background: rgba(0, 0, 0, .05); }

.mss-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border: 1px solid rgba(0, 0, 0, .15);
    border-radius: 4px;
    text-decoration: none;
    color: inherit;
}
.mss-page:hover { border-color: rgba(0, 0, 0, .4); }
.mss-page-active { background: #1d1713; border-color: #1d1713; color: #fff; }
.mss-gap { padding: 0 4px; opacity: .5; }

/* Narrow screens (2026-09-23, card 637): the header box is ~180px wide on a phone, so a
   one-line title showed two words. Up to three lines of title, prices never break. */
@media (max-width: 640px) {
    .mss-suggest-title {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
    }
    .mss-suggest-meta { flex-wrap: wrap; column-gap: 8px; row-gap: 0; }
    .mss-suggest-meta > * { white-space: nowrap; }
}
@media (max-width: 640px) {
    .mss-suggest-item { gap: 6px; padding: 6px 8px; }
    .mss-suggest-thumb { width: 32px; height: 32px; flex-basis: 32px; }
}
