/* ============================================
   제품 리스트 페이지 전용 CSS (v2.3.1)
   슬라이더 관련 모든 코드 제거, 독립적인 스타일
   제품 이미지 정사각형 비율 적용
   5개 고정 그리드 레이아웃 추가 (Grid가 자동으로 1/5 너비 할당)
   검색 필터링 섹션 반응형 레이아웃 추가 (카드 형태로 구분)
   그리드 비율 4:5:3 적용
   가격 필터: 슬라이더 대신 입력 필드 방식으로 변경 (세련된 디자인, 최대값 제한 없음)
   ============================================ */

a {
    text-decoration: none !important;
}

/* 페이지 헤더 */
.product-list-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.product-list-header .page-title {
    font-size: 32px;
    font-weight: 700;
    color: #0058a3;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.product-list-header .page-subtitle {
    font-size: 16px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* 브레드크럼 */
.breadcrumb-section {
    margin-bottom: 24px;
    padding: 12px 0;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #64748b;
}

.breadcrumb-item i {
    font-size: 12px;
    color: #94a3b8;
}

.breadcrumb-item a {
    color: #0058a3;
    text-decoration: none;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.breadcrumb-item a:hover {
    color: #003d7a;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #1e293b;
    font-weight: 500;
}

.breadcrumb-item.active span {
    color: #1e293b;
}

/* 카테고리 필터 섹션 */
.category-filter-section {
    margin-bottom: 30px;
    background: #f8fafc;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

/* 1차 카테고리 탭 */
.category-tabs-primary {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.category-tabs-primary::-webkit-scrollbar {
    height: 6px;
}

.category-tabs-primary::-webkit-scrollbar-track {
    background: transparent;
}

.category-tabs-primary::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.category-tab-primary {
    padding: 10px 20px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #64748b;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.category-tab-primary:hover {
    color: #0058a3;
    border-color: #0058a3;
    background: #f0f7ff;
}

.category-tab-primary.active {
    background: #0058a3;
    color: white;
    border-color: #0058a3;
}

.category-tab-primary.active i {
    color: white;
}

/* 2차 카테고리 탭 */
.category-tabs-secondary {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.sub-tabs-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
}

.sub-tabs-label i {
    font-size: 16px;
    color: #64748b;
}

.sub-tabs-container {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
}

.category-tab-secondary {
    padding: 8px 16px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #64748b;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.category-tab-secondary:hover {
    color: #0058a3;
    border-color: #0058a3;
    background: #f0f7ff;
}

.category-tab-secondary.active {
    background: #0058a3;
    color: white;
    border-color: #0058a3;
}

.category-tab-secondary.active i {
    color: white;
}

/* 제품 개수 툴바 */
.product-list-toolbar {
    margin-bottom: 24px;
    padding: 16px 0;
    border-bottom: 1px solid #e2e8f0;
}

.product-count {
    font-size: 15px;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.product-count strong {
    font-weight: 700;
    color: #0058a3;
    font-size: 16px;
}

.product-count .category-name {
    color: #64748b;
    font-size: 14px;
}

/* 반응형 */
@media (max-width: 768px) {
    /* 검색 결과 페이지: 모바일에서 제목·부제목 블록 숨김 */
    .search-result-title-block {
        display: none !important;
    }

    .product-list-header .page-title {
        font-size: 24px;
    }
    
    .product-list-header .page-subtitle {
        font-size: 14px;
    }
    
    .category-filter-section {
        padding: 16px;
    }
    
    .category-tabs-primary {
        gap: 8px;
        padding-bottom: 16px;
    }
    
    .category-tab-primary {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .category-tabs-secondary {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .sub-tabs-container {
        width: 100%;
    }
    
    .category-tab-secondary {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* 제품 리스트 컨테이너 */
.pl-container {
    margin-bottom: 60px;
    width: 100%;
}

/* 제품 그리드 - 순수 그리드 레이아웃, 슬라이더 없음 */
.pl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    width: 100%;
}

/* 제품 카드 */
.pl-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: box-shadow 0.3s ease-out;
}

.pl-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        #0058a3 0%, 
        #003d7a 50%, 
        #0058a3 100%);
    border-radius: 20px 20px 0 0;
}

.pl-card:hover {
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 8px 16px rgba(0, 0, 0, 0.1);
}

/* 제품 링크 */
.pl-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* 제품 이미지 컨테이너 */
.pl-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1; /* 정사각형 비율 */
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 15px;
    background: #f8fafc;
    flex-shrink: 0;
}

.pl-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.pl-card:hover .pl-image {
    transform: scale(1.05);
}

/* 제품 배지 */
.pl-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #e53e3e;
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(229, 62, 62, 0.3);
    z-index: 2;
}

/* 제품 정보 */
.pl-info {
    text-align: left;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
    min-height: 140px;
}

/* 제품명 */
.pl-name {
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 10px;
    line-height: 1.3;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    height: 24px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

/* 제품 설명 */
.pl-description {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 15px;
    font-weight: 500;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
}

/* 가격 정보 컨테이너 */
.pl-pricing {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-top: auto;
}

/* 렌탈 기간 */
.pl-rental-period {
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

/* 월 렌탈 가격 */
.pl-monthly-price {
    font-size: 20px;
    font-weight: 800;
    color: #0058a3;
    margin-bottom: 6px;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.2;
}

.pl-monthly-price .pl-period {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
}

/* 일일 사용료 */
.pl-daily-fee {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 500;
    line-height: 1.2;
}

/* 견적 추가 문의 (official_price·price 모두 없을 때) */
.pl-quote-inquiry {
    font-size: 18px;
    font-weight: 700;
    color: #dc2626;
    text-align: right;
    line-height: 1.3;
    margin-top: 4px;
}

/* 더보기 카드 (제품 카드와 동일한 크기) */
.pl-card-more {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px dashed #cbd5e1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pl-card-more:hover {
    border-color: #0058a3;
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
    transform: translateY(-4px);
    box-shadow: 
        0 20px 40px rgba(0, 88, 163, 0.15),
        0 8px 16px rgba(0, 88, 163, 0.1);
}

.pl-link-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    height: 100%;
    padding: 40px 20px;
}

.pl-info-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.pl-name-more {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    text-align: center;
    line-height: 1.4;
}

.pl-description-more {
    font-size: 15px;
    color: #6b7280;
    margin: 0;
    text-align: center;
    line-height: 1.5;
}

.pl-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #0058a3, #003d7a);
    color: #ffffff;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 88, 163, 0.25);
    margin-top: 8px;
}

.pl-card-more:hover .pl-more-btn {
    transform: translateX(4px);
    box-shadow: 0 6px 18px rgba(0, 88, 163, 0.35);
    background: linear-gradient(135deg, #0066cc, #004d99);
}

.pl-more-btn i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.pl-card-more:hover .pl-more-btn i {
    transform: translateX(4px);
}

/* 제품 없음 메시지 */
.no-products {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.no-products i {
    font-size: 48px;
    margin-bottom: 20px;
    color: #cbd5e1;
}

.no-products p {
    font-size: 16px;
    margin: 0;
}

/* 반응형 디자인 */
@media (max-width: 1400px) {
    .pl-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 24px;
    }
}

@media (max-width: 1200px) {
    .pl-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
    .pl-image-container {
        /* aspect-ratio로 정사각형 유지 */
    }
    .pl-name {
        font-size: 17px;
    }
    .pl-description {
        font-size: 12px;
        height: 36px;
    }
    .pl-monthly-price {
        font-size: 18px;
    }
}

@media (max-width: 992px) {
    .pl-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }
    .pl-image-container {
        /* aspect-ratio로 정사각형 유지 */
    }
    .pl-name {
        font-size: 16px;
    }
    .pl-description {
        font-size: 11px;
        height: 33px;
    }
    .pl-monthly-price {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .pl-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .pl-image-container {
        /* aspect-ratio로 정사각형 유지 */
    }
    .pl-card {
        padding: 16px;
    }
    .pl-info {
        padding: 0;
        min-height: 120px;
    }
    .pl-name {
        font-size: 15px;
        margin-bottom: 8px;
    }
    .pl-description {
        font-size: 10px;
        margin-bottom: 12px;
        height: 30px;
    }
    .pl-pricing {
        padding: 10px;
    }
    .pl-monthly-price {
        font-size: 15px;
    }
    .pl-monthly-price .pl-period {
        font-size: 12px;
    }
    .pl-daily-fee {
        font-size: 10px;
    }
}

@media (max-width: 576px) {
    .pl-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .pl-image-container {
        /* aspect-ratio로 정사각형 유지 */
    }
    .pl-card {
        padding: 12px;
    }
    .pl-name {
        font-size: 14px;
    }
    .pl-description {
        height: 28px;
    }
    .pl-name-more {
        font-size: 18px;
    }
    
    .pl-description-more {
        font-size: 14px;
    }
    
    .pl-more-btn {
        padding: 12px 24px;
        font-size: 15px;
    }
    
    .pl-link-more {
        padding: 30px 20px;
    }
    
    .pl-monthly-price {
        font-size: 14px;
    }
}

/* 기존 스타일 유지 (카테고리 탭 등) */
/* 1차 카테고리 탭 */
.category-tabs-primary {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.category-tabs-primary::-webkit-scrollbar {
    height: 6px;
}

.category-tabs-primary::-webkit-scrollbar-track {
    background: transparent;
}

.category-tabs-primary::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.category-tab-primary {
    padding: 12px 24px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #64748b;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-tab-primary:hover {
    color: #0058a3;
    border-color: #0058a3;
}

.category-tab-primary.active {
    background: #0058a3;
    color: white;
    border-color: #0058a3;
}

/* 2차 카테고리 탭 */
.category-tabs-secondary {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.category-tab-secondary {
    padding: 8px 16px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #64748b;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-tab-secondary:hover {
    color: #0058a3;
    border-color: #0058a3;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.category-tab-secondary.active {
    background: #0058a3;
    color: white;
    border-color: #0058a3;
    transform: translateY(-2px);
}

/* 페이징 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    margin-bottom: 60px;
}

.pagination .page-item {
    list-style: none;
}

.pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #64748b;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    background: white;
}

.pagination .page-link:hover {
    background: #f8fafc;
    border-color: #0058a3;
    color: #0058a3;
}

.pagination .page-item.active .page-link {
    background: #0058a3;
    border-color: #0058a3;
    color: white;
}

.pagination .page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* 검색 결과 그리드 - product-list.php와 동일한 스타일 사용 (.pl-grid) */
/* .pl-container와 .pl-grid는 위에서 이미 정의되어 있으므로 별도 스타일 불필요 */

/* 리스트 보기 스타일 */
.pl-container.list-view .pl-grid {
    display: flex !important;
    flex-direction: column;
    gap: 16px;
}

.pl-container.list-view .pl-card {
    width: 100%;
    display: flex;
    flex-direction: row;
    padding: 16px;
    gap: 20px;
    align-items: center;
    min-height: 150px;
}

.pl-container.list-view .pl-link {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 20px;
    align-items: center;
}

.pl-container.list-view .pl-image-container {
    width: 200px;
    min-width: 200px;
    height: 200px;
    aspect-ratio: auto;
    margin-bottom: 0;
}

.pl-container.list-view .pl-info {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    min-height: auto;
}

.pl-container.list-view .pl-name {
    font-size: 18px;
    margin-bottom: 8px;
    width: 250px;
    min-width: 250px;
    height: auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pl-container.list-view .pl-description {
    width: 300px;
    min-width: 300px;
    flex: 1;
    margin-bottom: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pl-container.list-view .pl-badges-2nd {
    display: flex;
    gap: 6px;
    margin-bottom: 0;
}

.pl-container.list-view .pl-pricing {
    text-align: right;
    margin-left: auto;
    min-width: 200px;
}

.pl-container.list-view .pl-rental-period {
    font-size: 13px;
    margin-bottom: 4px;
}

.pl-container.list-view .pl-monthly-price {
    font-size: 20px;
    margin-bottom: 4px;
}

.pl-container.list-view .pl-daily-fee {
    font-size: 12px;
}

/* 보기 전환 버튼 활성 상태 */
.view-toggle-btn.active {
    border-color: #0058a3 !important;
    background: #0058a3 !important;
}

.view-toggle-btn.active svg rect {
    fill: #fff !important;
}

.view-toggle-btn:hover {
    border-color: #0058a3;
    background: #f0f7ff;
}

.view-toggle-btn.active:hover {
    background: #004d91;
}

/* 반응형 - 리스트 보기 */
@media (max-width: 1200px) {
    .pl-container.list-view .pl-name {
        width: 200px;
        min-width: 200px;
    }
    .pl-container.list-view .pl-description {
        width: 250px;
        min-width: 250px;
    }
}

@media (max-width: 992px) {
    .pl-container.list-view .pl-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .pl-container.list-view .pl-link {
        flex-direction: column;
        align-items: flex-start;
    }
    .pl-container.list-view .pl-info {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    .pl-container.list-view .pl-name,
    .pl-container.list-view .pl-description {
        width: 100%;
        min-width: 100%;
        white-space: normal;
    }
    .pl-container.list-view .pl-pricing {
        margin-left: 0;
        width: 100%;
        text-align: left;
    }
}

/* AJAX 로딩 상태 */
.search-loading {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

.search-loading i {
    font-size: 48px;
    animation: searchSpin 1s linear infinite;
}

@keyframes searchSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 렌탈가 필터 슬라이더 스타일 - 범용 range input 스타일 */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
}

input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    background: transparent;
}

input[type="range"]::-moz-range-track {
    width: 100%;
    height: 6px;
    background: transparent;
    cursor: default;
    pointer-events: none;
    border: none;
}

input[type="range"]::-moz-range-thumb {
    pointer-events: auto;
    cursor: grab;
}

input[type="range"]::-moz-range-thumb:active {
    cursor: grabbing;
}

/* ============================================
   검색 필터링 섹션 반응형 레이아웃
   ============================================ */

/* 필터 섹션 컨테이너 - 데스크톱: 가로 배치, 모든 섹션 동일 높이 */
.filter-sections-container {
    display: grid;
    grid-template-columns: 4fr 5fr 3fr;
    gap: 20px;
    align-items: stretch;
}

/* 각 필터 섹션 - 카드 형태, 콘텐츠 영역 동일 높이 */
.filter-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.filter-section:hover {
    box-shadow: 0 4px 12px rgba(0, 88, 163, 0.15);
    border-color: #0058a3;
    transform: translateY(-2px);
}

/* 필터 섹션 헤더 */
.filter-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

.filter-section-header i {
    font-size: 18px;
    color: #0058a3;
}

.filter-section-header label {
    font-weight: 700;
    font-size: 16px;
    color: #1e293b;
    margin: 0;
}

/* 필터 섹션 콘텐츠 - 남는 높이 채워 세 섹션 높이 통일 */
.filter-section-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-height: 72px;
}

.filter-section.filter-sort .filter-section-content {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    align-content: flex-start;
}

.filter-section.filter-price .filter-section-content {
    gap: 12px;
    justify-content: center;
}

.filter-section.filter-price .price-filter-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.filter-section.filter-search .filter-section-content {
    gap: 8px;
    justify-content: center;
}

/* 가격 필터 래퍼 */
.price-filter-wrapper {
    width: 100%;
}

/* 가격 필터 메인 영역 (슬라이더 + 보기 버튼) */
.price-filter-main {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}

/* 슬라이더 섹션 */
.slider-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* 가격 표시 (입력 필드 위) */
.price-display-below-slider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

/* 가격 입력 필드 스타일 (세련된 디자인) */
.price-input-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.price-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 220px;
    background: #f8f9fa;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.price-input-group:hover {
    border-color: #0058a3;
    background: #f0f7ff;
    box-shadow: 0 2px 8px rgba(0, 88, 163, 0.1);
}

.price-input-group:focus-within {
    border-color: #0058a3;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 88, 163, 0.1);
}

.price-input-field {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #0058a3;
    background: #ffffff;
    transition: all 0.3s ease;
    text-align: right;
    width: 100%;
    -moz-appearance: textfield;
}

/* number 입력 스피너(위/아래 버튼) 제거 */
.price-input-field::-webkit-outer-spin-button,
.price-input-field::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.price-input-field:focus {
    outline: none;
    border-color: #0058a3;
    box-shadow: 0 0 0 2px rgba(0, 88, 163, 0.15);
    background: #ffffff;
}

.price-input-field:hover {
    border-color: #adb5bd;
}

.price-input-group label {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    white-space: nowrap;
    min-width: 50px;
}

.price-input-group span {
    font-size: 14px;
    font-weight: 600;
    color: #6c757d;
    white-space: nowrap;
}

.price-display-value {
    font-weight: 700;
    font-size: 16px;
    color: #0058a3;
    padding: 4px 10px;
    background: #f0f7ff;
    border-radius: 6px;
    border: 1px solid #cce5ff;
    min-width: 70px;
    text-align: center;
}

.price-separator {
    color: #64748b;
    font-weight: 600;
    font-size: 14px;
}

/* 슬라이더는 search.php와 동일한 인라인 스타일 방식 사용 */
/* 인라인 스타일로 모든 스타일이 적용되므로 CSS 클래스 제거 */

/* 슬라이더 thumb 스타일 - 범용 range input 스타일 사용 */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #0058a3;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    margin-top: -7px;
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: #004d91;
    transform: scale(1.1);
}

input[type="range"]::-webkit-slider-thumb:active {
    transform: scale(1.2);
    cursor: grabbing;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 8px rgba(0, 88, 163, 0.4);
    border-color: #003d7a;
}

input[type="range"]::-webkit-slider-thumb:active {
    transform: scale(1.25);
    box-shadow: 0 4px 10px rgba(0, 88, 163, 0.5);
    cursor: grabbing;
}

input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    background: transparent;
    cursor: default;
    pointer-events: none;
}

input[type="range"]::-webkit-slider-thumb {
    pointer-events: auto;
    cursor: grab;
}

input[type="range"]::-webkit-slider-thumb:active {
    cursor: grabbing;
}

/* .price-range-input 관련 스타일 제거 - 인라인 스타일 사용 */

/* 가격 라벨 (슬라이더 아래) */
.price-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 2px;
    padding: 0 8px;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
}

.price-label-min,
.price-label-max {
    padding: 2px 6px;
    background: #f8f9fa;
    border-radius: 4px;
}

/* 가격 필터 제출 버튼 (우측) */
.price-filter-submit {
    white-space: nowrap;
    padding: 10px 20px;
    font-weight: 600;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
    transition: all 0.3s ease;
    align-self: flex-start;
    margin-top: 0;
    height: fit-content;
}

.price-filter-submit:hover {
    background: linear-gradient(135deg, #218838 0%, #1aa179 100%);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
    transform: translateY(-1px);
}

.filter-section.filter-sort {
    /* 그리드 비율 4 */
}

.filter-section.filter-price {
    /* 그리드 비율 5 */
}

.filter-section.filter-search {
    /* 그리드 비율 3 */
}

/* 검색 입력 래퍼 (한 줄 배치) */
.search-input-wrapper {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

/* 검색 입력 필드 */
.search-input-field {
    flex: 1;
    min-width: 200px;
    padding: 10px 14px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #ffffff;
}

.search-input-field:focus {
    outline: none;
    border-color: #0058a3;
    box-shadow: 0 0 0 3px rgba(0, 88, 163, 0.1);
}

.search-submit-btn {
    white-space: nowrap;
    font-weight: 600;
    padding: 10px 20px;
    background: linear-gradient(135deg, #0058a3 0%, #0073cc 100%);
    border: none;
    box-shadow: 0 2px 4px rgba(0, 88, 163, 0.2);
    transition: all 0.3s ease;
}

.search-submit-btn:hover {
    background: linear-gradient(135deg, #004d91 0%, #0062a8 100%);
    box-shadow: 0 4px 8px rgba(0, 88, 163, 0.3);
    transform: translateY(-1px);
}

.search-reset-btn {
    white-space: nowrap;
    padding: 10px 16px;
    transition: all 0.3s ease;
}

.search-reset-btn:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
    transform: translateY(-1px);
}

/* 태블릿 (992px 이하) */
@media (max-width: 992px) {
    .filter-sections-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .filter-section {
        width: 100%;
    }
}

/* 모바일 (768px 이하) - 세로 배치 */
@media (max-width: 768px) {
    .filter-sections-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .filter-section {
        width: 100%;
    }
    
    .filter-section-header {
        margin-bottom: 16px;
    }
    
    .filter-section.filter-sort .filter-section-content {
        width: 100%;
    }
    
    .filter-section.filter-price .price-filter-wrapper {
        width: 100%;
    }
    
    .filter-section.filter-search .filter-section-content {
        width: 100%;
    }
    
    .price-filter-main {
        flex-direction: column;
        gap: 12px;
    }
    
    .price-filter-submit {
        width: 100%;
        align-self: stretch;
    }
    
    .search-input-wrapper {
        flex-direction: column;
        gap: 8px;
    }
    
    .search-input-field {
        width: 100%;
        min-width: 100%;
    }
    
    .search-submit-btn,
    .search-reset-btn {
        width: 100%;
    }
    
    .price-input-wrapper {
        flex-direction: column;
        gap: 12px;
    }
    
    .price-input-group {
        width: 100%;
        min-width: 100%;
    }
    
    .price-display-below-slider {
        flex-direction: column;
        gap: 6px;
    }
    
    .price-display-value {
        font-size: 14px;
    }
}

/* 작은 모바일 (576px 이하) */
@media (max-width: 576px) {
    .filter-sections-container {
        gap: 12px;
    }
    
    .filter-section {
        padding: 12px;
    }
    
    .filter-section-header {
        margin-bottom: 12px;
        padding-bottom: 10px;
    }
    
    .filter-section-header label {
        font-size: 14px;
    }
    
    .filter-section.filter-sort .filter-section-content {
        gap: 6px;
    }
    
    .filter-section.filter-sort .btn {
        font-size: 12px;
        padding: 6px 10px;
    }
}
