/* 공통 스타일 */
body {
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    color: #333;
    background-color: #f8f9fa;
}

/* 페이지 타이틀 */
.page-title {
    position: relative;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.page-title::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: #0d6efd;
}

/* 카드 스타일 */
.content-card {
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    background-color: #fff;
    overflow: hidden;
    margin-bottom: 2rem;
    padding: 1.5rem;
}

/* 필터 영역 */
.filter-area {
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #e9ecef;
}

.filter-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.filter-title i {
    margin-right: 0.5rem;
    color: #0d6efd;
}

/* 상품 카드 */
.product-card {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    border: 1px solid #e9ecef;
    background-color: #fff;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-img-container {
    position: relative;
    padding-top: 75%; /* 4:3 비율 */
    overflow: hidden;
    background-color: #f8f9fa;
}

.product-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.product-status {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.35rem 0.65rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 1;
}

.status-new {
    background-color: #d1e7dd;
    color: #0f5132;
}

.status-used {
    background-color: #fff3cd;
    color: #664d03;
}

.status-free {
    background-color: #cfe2ff;
    color: #084298;
}

.product-wishlist {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1;
    transition: all 0.2s;
}

.product-wishlist:hover {
    background-color: #fff;
    transform: scale(1.1);
}

.product-wishlist i {
    color: #dc3545;
    font-size: 1rem;
}

.product-info {
    padding: 1rem;
}

.product-category {
    font-size: 0.75rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
    display: inline-block;
    background-color: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #212529;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 2.5rem;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0d6efd;
    margin-bottom: 0.5rem;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #6c757d;
    padding-top: 0.5rem;
    border-top: 1px solid #e9ecef;
}

/* 빈 상태 메시지 */
.empty-state {
    padding: 3rem;
    text-align: center;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.empty-state-icon {
    font-size: 3rem;
    color: #adb5bd;
    margin-bottom: 1rem;
}

.empty-state-text {
    color: #6c757d;
    margin-bottom: 1rem;
}

/* 버튼 스타일 */
.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-outline-primary {
    color: #0d6efd;
    border-color: #0d6efd;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-outline-primary:hover {
    background-color: #0d6efd;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 페이지네이션 */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.page-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0.25rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s;
}

.page-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.page-btn.disabled,
.page-btn[disabled] {
    opacity: 0.65;
    pointer-events: none;
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #6c757d;
    box-shadow: none;
    transform: none;
}

/* 뷰 전환 버튼 */
.view-toggle {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.view-toggle-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    margin-right: 0.5rem;
    background-color: #fff;
    border: 1px solid #dee2e6;
    transition: all 0.2s;
}

.view-toggle-btn:hover {
    background-color: #f8f9fa;
}

.view-toggle-btn.active {
    background-color: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}

/* 테이블 뷰 */
.table-view {
    display: none;
}

.custom-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.custom-table thead th {
    background-color: #e7f1ff;
    color: #0d6efd;
    font-weight: 600;
    padding: 1rem;
    border-bottom: 2px solid #dee2e6;
}

.custom-table tbody tr {
    transition: all 0.2s;
}

.custom-table tbody tr:hover {
    background-color: #f8f9fa;
}

.custom-table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #dee2e6;
}

.custom-table tbody tr:last-child td {
    border-bottom: none;
}

.full-link {
    display: block;
    width: 100%;
    height: 100%;
    padding: 8px 0;
}

/* 반응형 조정 */
@media (max-width: 768px) {
    .product-card {
        margin-bottom: 1rem;
    }

    .filter-area {
        padding: 1rem;
    }

    .view-toggle {
        display: none;
    }

    .table-view {
        display: none !important;
    }
}