/* 레퍼런스(판매 사례) 페이지 전용 스타일 */

/* CSS @property로 숫자 애니메이션 GPU 가속 */
@property --num {
    syntax: '<integer>';
    initial-value: 0;
    inherits: false;
}

/* GLightbox 커스텀 */
.glightbox-clean .gslide-description {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
}

.glightbox-clean .gslide-title {
    font-size: 18px;
    font-weight: 600;
}

/* 페이지 헤더 */
.reference-page-header {
    text-align: center;
    padding: 140px 20px 20px;
    margin-bottom: 20px;
}

/* 통계 영역 */
.reference-statistics {
    max-width: 1400px;
    margin: 0 auto 30px;
    padding: 0 20px;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.statistics-card {
    flex: 1;
    max-width: 500px;
    background: white;
    border: 2px solid #e74c3c;
    border-radius: 12px;
    padding: 20px 40px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(231, 76, 60, 0.15);
    transition: all 0.3s ease;
}

.statistics-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.25);
    border-color: #c0392b;
}

.statistics-label {
    font-size: 15px;
    color: #7f8c8d;
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.statistics-value {
    font-size: 42px;
    font-weight: 700;
    color: #e74c3c;
    line-height: 1;
    margin-bottom: 3px;
    font-family: 'Arial', sans-serif;
    /* GPU 가속 숫자 애니메이션 */
    --num: 0;
    counter-reset: num var(--num);
    will-change: --num;
}

.statistics-value.animating {
    animation: countUp 1.5s ease-out forwards;
}

@keyframes countUp {
    to {
        --num: var(--target);
    }
}

.statistics-unit {
    font-size: 18px;
    color: #95a5a6;
    font-weight: 600;
}

.reference-page-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 10px 0;
}

.reference-page-subtitle {
    font-size: 18px;
    color: #6c757d;
    margin: 0;
    font-weight: 500;
}

/* 컨텐츠 래퍼 */
.reference-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

/* 목록 컨텐츠 래퍼 */
.reference-list-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.reference-list-wrapper {
    padding: 0;
}

/* 검색 및 필터 래퍼 */
.search-filter-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

/* 필터 버튼 */
.filter-buttons {
    display: flex;
    gap: 8px;
}

.filter-btn {
    padding: 12px 20px;
    border: 1px solid #e0e0e0;
    background: white;
    color: #666;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    line-height: 1.5;
}

.filter-btn:hover {
    border-color: #e74c3c;
    color: #e74c3c;
    background: #fff5f5;
}

.filter-btn.active {
    border: 1px solid #e74c3c;
    background: #e74c3c;
    color: white;
}

.filter-btn.active:hover {
    background: #c0392b;
    border: 1px solid #c0392b;
}

/* 검색 컨테이너 */
.search-container {
    display: flex;
    gap: 10px;
    flex: 1;
    max-width: 600px;
}

.search-container input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.search-container input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-container button {
    padding: 12px 28px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-container button:hover {
    background: #5568d3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 그리드 레이아웃 */
.reference-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin: 0 0 30px 0;
}

/* 레퍼런스 카드 */
.reference-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    /* 화면 밖 카드 렌더링 최적화 */
    content-visibility: auto;
    contain-intrinsic-size: 0 400px;
}

.reference-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.reference-card-image-wrapper {
    position: relative;
    overflow: hidden;
}

.reference-card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background-color: #f5f5f5;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.reference-card-image.loaded {
    opacity: 1;
}

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

/* 배지 */
.badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    backdrop-filter: blur(10px);
    z-index: 1;
}

.badge-large {
    background: linear-gradient(135deg, #c0392b 0%, #8e2a1f 100%);
    box-shadow: 0 2px 8px rgba(192, 57, 43, 0.4);
}

.badge-small {
    background: linear-gradient(135deg, #e74c3c 0%, #ec7063 100%);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.4);
}

.reference-card-body {
    padding: 20px;
}

.reference-card-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 12px;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

/* 제품 정보 */
.reference-card-product {
    margin-bottom: 12px;
    padding: 10px 0;
    border-top: 1px solid #f0f0f0;
}

/* 모델명 - 첫번째, 볼드, 파란색 */
.product-model-highlight {
    font-size: 16px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 6px;
}

.product-manufacturer {
    font-size: 15px;
    color: #666;
    margin-bottom: 4px;
}

.product-name {
    font-size: 14px;
    color: #999;
}

.product-model {
    font-size: 14px;
    color: #999;
}

.reference-card-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.reference-card-price {
    font-size: 20px;
    font-weight: bold;
    color: #e74c3c;
}

.reference-card-date {
    font-size: 15px;
    color: #999;
}

/* 상세 페이지 */
.reference-detail {
    padding: 0 20px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* 이미지 섹션 */
.images-section {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 20px;
    margin-bottom: 25px;
}

.thumbnail-container {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    background: #f8f9fa;
}

.thumbnail-main {
    width: 100%;
    height: 360px;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.thumbnail-container .glightbox:hover .thumbnail-main {
    transform: scale(1.05);
}

.glightbox {
    display: block;
    cursor: pointer;
}

.additional-images-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-content: start;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 5px;
    scrollbar-width: thin;
    scrollbar-color: #e74c3c #f8f9fa;
}

.additional-images-grid::-webkit-scrollbar {
    width: 6px;
}

.additional-images-grid::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 3px;
}

.additional-images-grid::-webkit-scrollbar-thumb {
    background: #e74c3c;
    border-radius: 3px;
    transition: background 0.3s ease;
}

.additional-images-grid::-webkit-scrollbar-thumb:hover {
    background: #c0392b;
}

.additional-image-item {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.additional-image-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* 유튜브 썸네일 래퍼 */
.youtube-thumbnail-wrapper {
    position: relative;
    width: 100%;
    height: 190px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    background: #000;
}

.youtube-label {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(255, 0, 0, 0.9);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.youtube-thumbnail-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}


/* 판매 정보 카드 (회색 매트) */
.sale-info-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-bottom: 25px;
    border: 1px solid #e9ecef;
}

.sale-info-title {
    font-size: 26px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #dee2e6;
}

.sale-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.sale-info-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px 18px;
    transition: all 0.3s ease;
}

.sale-info-item:hover {
    border-color: #ced4da;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.sale-info-label {
    font-size: 24px;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 10px;
    display: block;
}

.sale-info-value {
    font-size: 24px;
    color: #495057;
    font-weight: 700;
    display: block;
    padding-left: 8px;
}

/* 두 개의 카드 컨테이너 */
.detail-cards-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

/* 제품 상세 정보 카드 */
.product-detail-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #e9ecef;
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #667eea;
}

.detail-info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-info-item {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.detail-info-item:last-child {
    border-bottom: none;
}

.detail-info-label {
    font-size: 14px;
    color: #6c757d;
    font-weight: 600;
    min-width: 120px;
    flex-shrink: 0;
}

.detail-info-value {
    font-size: 15px;
    color: #2c3e50;
    font-weight: 500;
    line-height: 1.4;
    white-space: pre-wrap;
}

/* 문의하기 카드 */
.inquiry-card {
    background: linear-gradient(135deg, #e74c3c 0%, #ff6b9d 100%);
    border-radius: 12px;
    padding: 30px 25px;
    box-shadow: 0 2px 12px rgba(231, 76, 60, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.inquiry-content {
    text-align: center;
}

.inquiry-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.inquiry-title {
    font-size: 22px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.inquiry-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    margin-bottom: 20px;
}

.inquiry-button {
    display: inline-block;
    background: white;
    color: #e74c3c;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
}

.inquiry-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.15);
    color: #c0392b;
}

/* 설명 섹션 */
.description-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #e9ecef;
}

.section-title,
.description-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #2c3e50;
    padding-bottom: 12px;
    border-bottom: 2px solid #667eea;
    display: inline-block;
}

.description-content {
    line-height: 1.8;
    color: #4a5568;
    font-size: 17px;
    margin-top: 15px;
}

.description-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.description-content p {
    margin-bottom: 18px;
    font-size: 17px;
}

/* h2, h3에 대한 common.css 오버라이드 */
.article h2,
.article h3 {
    margin: 0 0 20px 0 !important;
    padding-bottom: 12px !important;
    border-bottom: 2px solid #e9ecef;
}

.description-content h1,
.description-content h2,
.description-content h3 {
    color: #2c3e50;
    margin-top: 30px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    font-weight: 600;
}

.description-content h1 {
    font-size: 26px;
    border-bottom: 3px solid #e9ecef;
}

.description-content h2 {
    font-size: 24px;
    border-bottom: 2px solid #e9ecef;
}

.description-content h3 {
    font-size: 22px;
    border-bottom: 1px solid #e9ecef;
}

.description-content ul,
.description-content ol {
    margin-left: 25px;
    margin-bottom: 18px;
}

.description-content li {
    margin-bottom: 10px;
    font-size: 17px;
}

/* 유사 레퍼런스 추천 섹션 */
.similar-section {
    margin-top: 40px;
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #e9ecef;
}

.similar-section .section-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #2c3e50;
    padding-bottom: 12px;
    border-bottom: 2px solid #e74c3c;
    display: block;
}

.similar-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding-bottom: 15px;
    /* 스크롤바 스타일링 */
    scrollbar-width: thin;
    scrollbar-color: #e74c3c #f8f9fa;
}

.similar-grid::-webkit-scrollbar {
    height: 8px;
}

.similar-grid::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 4px;
}

.similar-grid::-webkit-scrollbar-thumb {
    background: #e74c3c;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.similar-grid::-webkit-scrollbar-thumb:hover {
    background: #c0392b;
}

.similar-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    flex: 0 0 280px;
    min-width: 280px;
}

.similar-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #e74c3c;
}

.similar-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
    position: relative;
}

.similar-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.similar-card:hover .similar-card-image img {
    transform: scale(1.1);
}

.similar-card-content {
    padding: 18px;
}

.similar-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    min-height: 44px;
}

.similar-card-scale {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-bottom: 10px;
}

.similar-card-price {
    font-size: 18px;
    font-weight: 700;
    color: #e74c3c;
    margin-top: 8px;
}

/* Similar Sales Cases 정보 표시 */
.similar-card-info {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
    line-height: 1.4;
}

.similar-card-info .info-label {
    color: #999;
    font-weight: 500;
}

.similar-card-info.highlight {
    font-weight: 700;
    color: #667eea;
}

.similar-card-info.highlight .info-label {
    color: #667eea;
}

/* 반응형 */
@media (max-width: 1024px) {
    .reference-page-header {
        padding: 25px 20px 15px;
        margin-bottom: 15px;
    }

    .reference-page-title {
        font-size: 24px;
    }

    .images-section {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 20px;
    }

    .thumbnail-main {
        height: 350px;
    }

    .additional-images-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .additional-image-item {
        height: 170px;
    }

    .youtube-thumbnail-wrapper {
        height: 170px;
    }
}

@media (max-width: 768px) {
    /* 통계 영역 반응형 */
    .reference-statistics {
        flex-direction: column;
        padding: 0 15px;
        margin-bottom: 25px;
    }

    .statistics-card {
        padding: 25px 30px;
    }

    .statistics-label {
        font-size: 13px;
    }

    .statistics-value {
        font-size: 36px;
    }

    .statistics-unit {
        font-size: 16px;
    }

    /* 검색 및 필터 영역 반응형 */
    .search-filter-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-bottom: 20px;
    }

    .filter-buttons {
        width: 100%;
        justify-content: flex-start;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 13px;
        flex: 1;
    }

    .search-container {
        max-width: 100%;
    }

    .reference-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 18px;
        margin-bottom: 25px;
    }

    .reference-page-header {
        padding: 20px 15px 10px;
        margin-bottom: 15px;
    }

    .reference-page-title {
        font-size: 22px;
    }

    .reference-page-subtitle {
        font-size: 14px;
    }

    .reference-list-content {
        padding: 0 15px;
    }

    .search-container input {
        padding: 10px 14px;
        font-size: 14px;
    }

    .search-container button {
        padding: 10px 22px;
        font-size: 14px;
    }

    .reference-detail {
        padding: 0 15px 15px;
    }

    .images-section {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 15px;
    }

    .thumbnail-main {
        height: 280px;
    }

    .additional-images-grid {
        grid-template-columns: repeat(2, 1fr);
        max-height: 400px;
    }

    .additional-image-item {
        height: 180px;
    }

    .youtube-thumbnail-wrapper {
        height: 180px;
    }

    .youtube-label {
        font-size: 11px;
        padding: 3px 8px;
    }

    /* 판매 정보 카드 반응형 */
    .sale-info-card {
        padding: 20px;
    }

    .sale-info-title {
        font-size: 22px;
        margin-bottom: 15px;
        padding-bottom: 12px;
    }

    .sale-info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .sale-info-item {
        padding: 14px 16px;
    }

    .sale-info-label {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .sale-info-value {
        font-size: 22px;
        padding-left: 6px;
    }

    /* 두 개의 카드 컨테이너 반응형 */
    .detail-cards-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .product-detail-card {
        padding: 20px;
    }

    .card-title {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .detail-info-list {
        gap: 8px;
    }

    .detail-info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 6px 0;
    }

    .detail-info-label {
        font-size: 12px;
        min-width: auto;
    }

    .detail-info-value {
        font-size: 14px;
    }

    .reference-card-price {
        font-size: 18px;
    }

    .reference-card-date {
        font-size: 14px;
    }

    .inquiry-card {
        padding: 25px 20px;
    }

    .inquiry-icon {
        font-size: 36px;
    }

    .inquiry-title {
        font-size: 20px;
    }

    .inquiry-description {
        font-size: 15px;
    }

    .inquiry-button {
        font-size: 15px;
        padding: 11px 26px;
    }

    /* 설명 섹션 반응형 */
    .description-section {
        padding: 20px;
    }

    .product-name {
        font-size: 15px;
        margin-bottom: 5px;
    }

    .product-manufacturer {
        font-size: 14px;
        margin-bottom: 3px;
    }

    .product-model {
        font-size: 13px;
    }

    .section-title,
    .description-title {
        font-size: 20px;
    }

    .description-content {
        font-size: 16px;
    }

    .description-content p {
        font-size: 16px;
        margin-bottom: 16px;
    }

    .article h2,
    .article h3 {
        margin: 25px 0 18px 0 !important;
        padding-bottom: 10px !important;
    }

    .description-content h1,
    .description-content h2,
    .description-content h3 {
        margin-bottom: 18px;
        padding-bottom: 10px;
    }

    .description-content h1 {
        font-size: 24px;
    }

    .description-content h2 {
        font-size: 22px;
    }

    .description-content h3 {
        font-size: 20px;
    }

    .description-content li {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .button-container {
        margin-top: 25px;
        padding: 15px;
    }

    .button-container .btn {
        padding: 10px 30px;
        font-size: 15px;
    }

    /* 유사 레퍼런스 추천 섹션 반응형 */
    .similar-section {
        margin-top: 25px;
        padding: 20px;
    }

    .similar-section .section-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .similar-card {
        flex: 0 0 250px;
        min-width: 250px;
    }

    .similar-card-image {
        height: 180px;
    }

    .similar-card-content {
        padding: 15px;
    }

    .similar-card-title {
        font-size: 15px;
        min-height: 42px;
    }

    .similar-card-scale {
        font-size: 11px;
        padding: 3px 10px;
    }

    .similar-card-price {
        font-size: 16px;
    }
}

/* 로딩 상태 */
.reference-grid.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* 빈 상태 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.empty-state-text {
    font-size: 18px;
}

/* 페이지네이션 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.page-item {
    display: inline-block;
}

.page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    background: #f8f9fa;
    color: #6c757d;
}

.page-item.active .page-link {
    background: #667eea;
    color: white;
    border-color: #667eea;
    font-weight: 700;
}

.page-link {
    display: block;
    padding: 10px 16px;
    color: #495057;
    text-decoration: none;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 15px;
    font-weight: 600;
    min-width: 44px;
    text-align: center;
}

.page-link:hover {
    background: #f8f9fa;
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.page-item.active .page-link:hover {
    background: #5568d3;
    border-color: #5568d3;
    color: white;
}

/* 버튼 컨테이너 */
.button-container {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
}

.button-container .btn {
    padding: 12px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.button-container .btn-outline-danger {
    background: white;
    color: #e74c3c !important;
    border: 2px solid #e74c3c;
}

.button-container .btn-outline-danger:hover {
    background: #e74c3c;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}
