/* product_search — 검색 결과 전용 */

.item-search-page {
    background: #f7f8fa;
}

.item-search-page .item-search-section {
    padding: 24px 0 48px;
    overflow: visible;
}

.item-search-page .item-search-layout {
    max-width: 1280px;
}

/* ── 검색창 (컴팩트) ── */
.item-search-page .search-box {
    max-width: 560px;
    margin: 0 auto 16px;
    padding: 12px 14px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

@media (min-width: 992px) {
    .item-search-page .search-box {
        position: sticky;
        top: 30px;
        z-index: 100;
    }
}

.item-search-page .search-box form {
    border: 1px solid #e2e5eb;
    border-radius: 10px;
    padding: 0 4px 0 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.item-search-page .search-box form:focus-within {
    border-color: var(--color-main-font);
    box-shadow: 0 0 0 3px var(--color-main-bg-white);
}

.item-search-page .search-box form input {
    height: 40px;
    font-size: 14px;
    color: #1a1d26;
}

.item-search-page .search-box form input::placeholder {
    color: #9ca3af;
}

.item-search-page .search-box form .search {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background-color: var(--color-main-bg-white);
    background-size: 18px;
    transition: background-color 0.2s ease;
}

.item-search-page .search-box form .search:hover {
    background-color: #d6e8ff;
}

.item-search-page .search-box .search-box-component#autocomplete-box {
    top: calc(100% + 6px);
    border-radius: 10px;
    border-color: #eceef2;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
    z-index: 200;
    max-height: min(480px, calc(100vh - 120px));
}

/* ── 정렬·개수 ── */
.item-search-page .list-top-box {
    margin: 0 0 20px;
    padding: 16px 20px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.item-search-page .list-top-box p {
    font-size: 14px;
    color: #6b7280;
}

.item-search-page .list-top-box p b {
    color: #1a1d26;
    font-weight: 700;
}

.item-search-page .list-top-box ul li.active > * {
    color: var(--color-main-font);
    font-weight: 700;
}

/* ── 상품 그리드 ── */
.item-search-page #product-list.item-list-box,
.item-search-page #product-list.item-list-box ul {
    margin: 0;
}

.item-search-page #product-list.item-list-box ul {
    margin: 0 -6px -28px;
}

.item-search-page #product-list.item-list-box ul li {
    width: calc(20% - 12px);
    margin: 0 6px 28px;
}

.item-search-page .list-none-box {
    padding: 48px 24px;
    background: #fff;
    border-radius: 14px;
    border: none;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.item-search-page .list-none-box p {
    color: #6b7280;
    font-size: 15px;
}

/* ── 반응형 ── */
@media (max-width: 991px) {
    .item-search-page {
        background: #fff;
    }

    .item-search-page .item-search-section {
        padding: 16px 0 32px;
    }

    .item-search-page .search-box {
        position: sticky;
        top: 0;
        z-index: 100;
        max-width: none;
        margin-bottom: 12px;
        padding: 10px 12px;
        border-radius: 0;
        box-shadow: 0 1px 0 #eceef2;
        border-bottom: none;
    }

    .item-search-page .search-box form input {
        height: 38px;
        font-size: 14px;
    }

    .item-search-page .search-box form .search {
        width: 34px;
        height: 34px;
    }

    .item-search-page .list-top-box {
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        border-bottom: 1px solid #eceef2;
    }

    .item-search-page #product-list.item-list-box {
        padding: 0 12px;
    }

    .item-search-page #product-list.item-list-box ul {
        margin: 0 -3px -18px;
    }

    .item-search-page #product-list.item-list-box ul li {
        width: calc(33.33% - 6px);
        margin: 0 3px 18px;
    }
}

@media (max-width: 570px) {
    .item-search-page #product-list.item-list-box ul li {
        width: calc(50% - 6px);
    }
}
