/* 쇼핑몰 헤더 검색창 자동완성 목록 — 제조사 판매점 테마 공용(drsoft-store · tplink · synology · qnap · netgear · iptime · disk).
   색·글꼴은 각 테마 mall.css 의 변수(--ml-*)를 쓰고 없을 때의 값을 둔다. 단색만 쓰고 그라데이션은 쓰지 않는다. 동작은 shop-suggest.js. */
.ml-search, .ss-host { position: relative; }
.ss-live { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.ss-list { position: absolute; z-index: 80; top: calc(100% + 6px); left: 0; box-sizing: border-box; width: max(100%, 380px); max-height: min(70vh, 440px); margin: 0; padding: 6px; overflow-y: auto; list-style: none; background: #fff; border: 1px solid var(--ml-line, #e6e6e6); border-radius: 12px; box-shadow: 0 12px 28px rgba(0, 0, 0, .14); overscroll-behavior: contain; }
.ss-list[hidden] { display: none; }
.ps-top .ss-list { left: auto; right: 0; }

.ss-item { display: flex; align-items: center; gap: 12px; box-sizing: border-box; min-height: 52px; padding: 6px 10px; border-radius: 8px; cursor: pointer; color: var(--ml-ink, #222); }
.ss-item:hover, .ss-item.is-active { background: rgba(5, 39, 84, .06); }
.ss-item[aria-selected="true"] { background: rgba(5, 39, 84, .08); }
.ss-thumb { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 6px; background: var(--ml-tile, #f8f8f8); overflow: hidden; }
.ss-thumb img { display: block; width: 40px; height: 40px; object-fit: contain; }
.ss-main { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; gap: 2px; }
.ss-name { display: block; font: 600 14px/1.35 var(--ml-font, 'Noto Sans KR', sans-serif); letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-desc { font-weight: 400; color: var(--ml-ink2, #555); }
.ss-sub { display: block; font: 400 12px/1.3 var(--ml-font, 'Noto Sans KR', sans-serif); color: var(--ml-mute, #8c8c8c); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-price { color: var(--ml-red, #f0463a); font-weight: 700; }
.ss-flag { color: #6b6b6b; font-weight: 600; }
.ss-list mark { background: transparent; color: var(--ml-blue-d, #1565c0); font-weight: 800; }

@media (max-width: 600px) {
    /* 좁은 화면: 검색창 폭이 좁으므로 화면 폭 전체로 펼친다(위치는 shop-suggest.js 가 --ss-top 으로 정한다) */
    .ss-list, .ps-top .ss-list { position: fixed; top: var(--ss-top, 62px); left: 8px; right: 8px; width: auto; max-height: min(72vh, 440px); }
    .ss-item { min-height: 56px; }
}
@media (prefers-reduced-motion: no-preference) {
    .ss-list { animation: ss-in .12s ease-out; }
    @keyframes ss-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
}
