<style>
    /* --------------------------------------------------
       [전체 스크롤 버그 원천 차단]
    -------------------------------------------------- */
    html, body {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    /* --------------------------------------------------
       [매물 리스트] 고유 페이지 전용 스타일 (와이드 스크린 최적화)
    -------------------------------------------------- */
    .wide-container {
        max-width: 1750px !important; 
        width: 100% !important;
        margin: 0 auto !important;
        padding: 0 24px !important;
        box-sizing: border-box;
    }

    .sub-hero { 
        background: radial-gradient(circle at 75% 30%, rgba(255, 87, 34, 0.12) 0%, transparent 60%), 
                    linear-gradient(135deg, #141517 0%, #1c1e22 100%);
        min-height: 200px; 
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff; 
        text-align: center; 
        position: relative;
        overflow: hidden;
        width: 100%;
    }
    .sub-hero-tag { font-size: 0.85rem; font-weight: 700; color: var(--primary-color); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 6px; display: block; }
    .sub-hero h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 10px; }
    .sub-hero p { color: #94a3b8; font-size: 1.05rem; }

    .products-container-layout { 
        display: grid; 
        grid-template-columns: 280px 1fr; 
        gap: 35px; 
        padding: 50px 0; 
        background: var(--light-bg); 
        width: 100%;
    }

    /* [PC 기본] 모바일 필터 wrapper는 숨김 */
    .mobile-filter-wrapper { display: none; }

    /* PC 사이드바 필터 디자인 */
    .filter-sidebar { background: #fff; border-radius: 16px; border: 1px solid #eef2f5; padding: 22px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); height: max-content; }
    .sidebar-title { font-size: 1.1rem; font-weight: 700; color: var(--dark-bg); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid #1a1c1e; display: flex; justify-content: space-between; align-items: center; }
    .sidebar-section { margin-bottom: 25px; }
    .sidebar-section-title { font-size: 0.95rem; font-weight: 700; color: #334155; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
    
    .sidebar-list { display: flex; flex-direction: column; gap: 4px; max-height: 240px; overflow-y: auto; padding-right: 5px; }
    .sidebar-list::-webkit-scrollbar { width: 5px; }
    .sidebar-list::-webkit-scrollbar-track { background: #f1f3f5; }
    .sidebar-list::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

    .sidebar-item-btn { width: 100%; text-align: left; background: none; border: none; padding: 8px 12px; border-radius: 8px; font-size: 0.9rem; color: #475569; cursor: pointer; transition: 0.2s; display: flex; justify-content: space-between; align-items: center; }
    .sidebar-item-btn:hover { background: #f8fafc; color: var(--primary-color); }
    .sidebar-item-btn.active { background: #fff5f2; color: var(--primary-color); font-weight: 700; }
    .sidebar-item-btn .cnt-badge { font-size: 0.8rem; color: #94a3b8; font-weight: 400; }
    .sidebar-item-btn.active .cnt-badge { color: var(--primary-color); font-weight: 600; }

    /* 우측 메인 컨텐츠 영역 */
    .main-products-content { display: flex; flex-direction: column; gap: 20px; width: 100%; overflow: hidden; }

    /* PC 상단 디테일 조건 필터 영역 */
    .detail-filter-bar { background: #fff; border-radius: 16px; border: 1px solid #eef2f5; padding: 20px 25px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); }
    .detail-filter-grid { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 15px; align-items: flex-end; }
    .filter-field { display: flex; flex-direction: column; gap: 6px; }
    .filter-field label { font-size: 0.85rem; font-weight: 700; color: #64748b; }
    .filter-select { width: 100%; padding: 9px 12px; border-radius: 8px; border: 1px solid #cbd5e1; font-size: 0.9rem; color: #334155; background-color: #fff; outline: none; }
    .filter-select:focus { border-color: var(--primary-color); }
    
    .btn-apply-filter { background: var(--dark-bg); color: #fff; padding: 10px 20px; border-radius: 8px; font-weight: 600; font-size: 0.9rem; border: none; cursor: pointer; transition: 0.2s; height: 38px; }
    .btn-apply-filter:hover { background: var(--primary-color); }

    /* 정렬 및 개수 툴바 */
    .sort-utility-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 5px; border-bottom: 1px solid #e2e8f0; margin-bottom: 5px; width: 100%; box-sizing: border-box; }
    .total-count-indicator { font-size: 0.95rem; color: #334155; }
    .total-count-indicator strong { color: var(--primary-color); font-weight: 700; }
    
    .sort-links { display: flex; align-items: center; gap: 16px; }
    .sort-link { font-size: 0.9rem; color: #748094; background: none; border: none; cursor: pointer; padding: 4px 0; font-weight: 500; transition: 0.2s; position: relative; white-space: nowrap; }
    .sort-link:hover, .sort-link.active { color: var(--dark-bg); font-weight: 700; }
    .sort-link.active::after { content: ''; position: absolute; bottom: -6px; left: 0; width: 100%; height: 2px; background: var(--dark-bg); }

    /* 매물 그리드 영역 */
    .grid-container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; width: 100%; }
    .product-item { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--card-shadow); border: 1px solid #eef2f5; transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; height: 100%; cursor: pointer; text-decoration: none; }
    .product-item:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(0,0,0,0.08); }
    
    .prod-img-box { position: relative; height: 190px; background: #ddd center/cover no-repeat; }
    .badge-status { position: absolute; top: 12px; left: 12px; background: var(--primary-color); color: #fff; padding: 4px 10px; border-radius: 4px; font-size: 0.75rem; font-weight: 700; }
    .badge-status.sold { background: #70757a; }

    .prod-info-box { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
    .prod-brand { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; margin-bottom: 4px; text-transform: uppercase; }
    .prod-title { font-size: 1.15rem; font-weight: 700; color: var(--dark-bg); margin-bottom: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    
    .prod-specs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 15px; }
    .spec-tag { background: #f1f3f5; color: #495057; padding: 4px 8px; border-radius: 6px; font-size: 0.8rem; font-weight: 500; }
    
    .prod-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 12px; border-top: 1px solid #f1f3f5; }
    .prod-price { font-size: 1.25rem; font-weight: 800; color: var(--primary-color); }
    .prod-price span { font-size: 0.85rem; color: var(--text-dark); font-weight: 500; }
    .btn-detail { background: var(--dark-bg); color: #fff; padding: 8px 14px; border-radius: 6px; font-size: 0.85rem; font-weight: 600; border: none; cursor: pointer; }

    /* 페이지네이션 */
    .pagination-wrapper { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 40px; width: 100%; }
    .page-link { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 6px; background: #fff; border: 1px solid #eef2f5; color: var(--text-dark); font-weight: 600; font-size: 0.9rem; text-decoration: none; transition: 0.2s; }
    .page-link:hover, .page-link.active { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }
    .page-link.disabled { color: #ccc; pointer-events: none; background: #f8f9fa; }

    /* --------------------------------------------------
       ★ 모바일/태블릿 가로 스크롤 깨짐 방지 대수술 반응형
    -------------------------------------------------- */
    @media (max-width: 1600px) {
        .grid-container { grid-template-columns: repeat(3, 1fr); } 
    }

    @media (max-width: 1200px) {
        .filter-sidebar, .detail-filter-bar { display: none; } 
        
        .wide-container {
            padding: 0 16px !important;
        }

        .products-container-layout { 
            grid-template-columns: 1fr; 
            padding: 15px 0;
            gap: 15px;
            width: 100%;
        }

        /* [모바일] 완전히 바뀐 고급 칩/스크롤 필터 디자인 */
        .mobile-filter-wrapper { 
            display: block; 
            background: #fff; 
            border-radius: 16px;
            padding: 15px 0; 
            margin-bottom: 5px;
            width: 100%;
            box-sizing: border-box;
        }

        .m-filter-title { font-size: 0.85rem; font-weight: 700; color: #94a3b8; padding: 0 15px; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px;}

        /* 가로 스크롤형 프리미엄 칩 컨테이너 */
        .m-chip-scroll-container {
            display: flex;
            gap: 8px;
            overflow-x: auto;
            padding: 2px 15px 12px 15px;
            scroll-behavior: smooth;
            -webkit-overflow-scrolling: touch;
        }
        .m-chip-scroll-container::-webkit-scrollbar { display: none; } /* 스크롤바 숨김 */

        /* 칩 버튼 스타일 */
        .m-chip-btn {
            display: inline-flex;
            align-items: center;
            white-space: nowrap;
            background: #f1f5f9;
            color: #475569;
            padding: 8px 16px;
            border-radius: 30px;
            font-size: 0.85rem;
            font-weight: 600;
            border: 1px solid transparent;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        .m-chip-btn.active {
            background: var(--dark-bg);
            color: #fff;
            box-shadow: 0 4px 10px rgba(0,0,0,0.15);
        }
        .m-chip-btn .m-cnt {
            font-size: 0.75rem;
            opacity: 0.6;
            margin-left: 4px;
        }

        /* 하단 서브 그리드 (연식, 가격) */
        .m-select-box-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
            padding: 5px 15px 0 15px;
        }
        .m-select-box-grid .filter-select {
            padding: 11px 12px;
            font-size: 0.85rem;
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 10px;
            font-weight: 500;
        }

        .m-submit-wrapper { padding: 12px 15px 0 15px; }
        .m-btn-submit {
            width: 100%;
            background: var(--primary-color);
            color: #fff;
            border: none;
            padding: 13px;
            border-radius: 10px;
            font-weight: 700;
            font-size: 0.95rem;
            cursor: pointer;
            box-shadow: 0 4px 12 rgba(255, 87, 34, 0.2);
        }

        /* [핵심 수정] 정렬 툴바 모바일 가로 튀어나감 전면 차단 */
        .sort-utility-bar {
            flex-direction: column;
            align-items: flex-start;
            gap: 10px;
            padding: 10px 0;
            width: 100%;
        }
        
        /* 최근연식순이 우측을 찢고 나가지 않도록 내부에 독자적인 가로 스크롤 부여 */
        .sort-links {
            width: 100%;
            overflow-x: auto;
            white-space: nowrap;
            display: flex;
            gap: 16px;
            padding-bottom: 8px;
            -webkit-overflow-scrolling: touch;
        }
        .sort-links::-webkit-scrollbar { display: none; } /* 미관상 모바일 스크롤바 숨김 */

        .grid-container { 
            grid-template-columns: repeat(3, 1fr); 
            gap: 15px; 
            padding: 0;
            width: 100%;
        }
    }

    @media (max-width: 768px) {
        .grid-container { grid-template-columns: repeat(2, 1fr); gap: 12px; }
        .prod-img-box { height: 150px; }
        .prod-info-box { padding: 12px; }
        .prod-title { font-size: 1rem; }
        .prod-price { font-size: 1.15rem; }
        .sub-hero { min-height: 140px; }
        .sub-hero h2 { font-size: 1.6rem; }
    }

    @media (max-width: 480px) {
        /* 스마트폰 세로모드 전용 꽉 찬 1열 레이아웃 체인지 */
        .grid-container { grid-template-columns: 1fr; gap: 16px; }
        .prod-img-box { height: 190px; }
    }
</style>