/* 상품 목록 페이지 스타일 */

.product-list-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-header {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.page-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-info {
    color: #6c757d;
    font-size: 14px;
}

/* 필터 섹션 */
.filter-section {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filter-row {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.filter-row:last-child {
    margin-bottom: 0;
}

.filter-label {
    font-weight: 600;
    color: #333;
    min-width: 80px;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background-color: #fff;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    color: #333;
}

.filter-btn:hover {
    border-color: #06553f;
    color: #06553f;
}

.filter-btn.active {
    background-color: #06553f;
    color: #fff;
    border-color: #06553f;
}

/* 모바일 필터 (select) */
.filter-select {
    display: none;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    background-color: #fff;
}

.filter-select:focus {
    outline: none;
    border-color: #06553f;
}

/* 정렬 바 */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sort-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

.sort-select:focus {
    outline: none;
    border-color: #06553f;
}

/* 상품 그리드 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.product-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.product-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background-color: #f0f0f0;
}

.product-body {
    padding: 15px;
}

.product-category {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 5px;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 38px;
}

.product-author {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 10px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: #06553f;
}

.product-discount-price {
    font-size: 14px;
    color: #6c757d;
    text-decoration: line-through;
    margin-left: 5px;
}

/* 빈 상품 목록 */
.no-products {
    text-align: center;
    padding: 60px 20px;
    background-color: #fff;
    border-radius: 8px;
    color: #6c757d;
}

/* 페이지네이션 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s;
    color: #333;
}

.pagination a:hover {
    background-color: #06553f;
    color: #fff;
    border-color: #06553f;
}

.pagination .active {
    background-color: #06553f;
    color: #fff;
    border-color: #06553f;
}

/* 반응형 디자인 */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-label {
        margin-bottom: 5px;
    }
    
    /* 데스크톱 필터 버튼 숨기기 */
    .filter-buttons {
        display: none;
    }
    
    /* 모바일 select 표시 */
    .filter-select {
        display: block;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .product-img {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .product-list-container {
        padding: 15px 10px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .product-img {
        height: 200px;
    }
    
    .page-header {
        padding: 15px;
    }
    
    .filter-section {
        padding: 15px;
    }
}
