/* 기본 스타일 */
@font-face {
    font-family: 'CustomFont';
    src: url('../fonts/Paperlogy-7Bold.ttf') format('truetype');
}
/* Product 페이지 */
.product-content {
    font-family: 'CustomFont', sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1002;
    padding: 40px 0;
    background-color: white;
}

body.product-page .hero {
    height: auto;
}

body.product-page .hero-content {
    padding: 0;
    height: auto;
    min-height: calc(100vh - 80px);
}

.product-filters-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.product-filters {
    display: flex;
    gap: 10px;
    padding-bottom: 12px;
}

.filter-btn {
    padding: 10px 20px;
    background-color: white;
    border: 1px solid #548235;
    color: #548235;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.filter-btn.active {
    background-color: #548235;
    color: white;
}

.product-search {
    display: flex;
    gap: 10px;
}

.product-search input {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 200px;
}

.search-btn {
    font-family: 'CustomFont', sans-serif;
    padding: 10px 20px;
    background-color: #548235;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.product-item {
    position: relative;
    text-align: center;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.product-item:hover {
    transform: translateY(-5px);
}

.product-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-label {
    font-family: 'CustomFont', sans-serif;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(84, 130, 53, 0.5);
    color: white;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s ease;
}

.load-more-container {
    text-align: center;
    margin-top: 30px;
    padding: 10px 0;
}

.load-more-btn {
    font-family: 'CustomFont', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background-color: #548235;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background-color: #548235;
}

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

.load-more-btn:hover i {
    transform: translateY(3px);
}

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

@media (max-width: 768px) {
    .product-content {
        padding: 30px 20px 40px;
    }
    
    .product-filters-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .product-filters {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 10px;
        flex-wrap: nowrap;
    }
    
    .product-search {
        width: 100%;
    }
    
    .product-search input {
        flex-grow: 1;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .product-item img {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .product-item img {
        height: 120px;
    }
    
    .product-label {
        padding: 3px;
        font-size: 13px;
        font-weight: 100;
    }
    
    .product-filters {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        white-space: nowrap;
        width: 100%;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin; /* Firefox */
        -ms-overflow-style: -ms-autohiding-scrollbar; /* IE and Edge */
    }
    
    /* Chrome, Safari, Opera에 대한 스크롤바 커스터마이징 */
    .product-filters::-webkit-scrollbar {
        display: block;
        height: 4px;
    }
    
    .product-filters::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 2px;
    }
    
    .product-filters::-webkit-scrollbar-thumb {
        background: #548235;
        border-radius: 2px;
    }
    
    .product-filters::-webkit-scrollbar-thumb:hover {
        background: #3d6126;
    }
    
    .filter-btn {
        padding: 8px 12px;
        font-size: 12px;
        flex-shrink: 0;
    }
    
    .search-btn {
        padding: 8px 15px;
    }
} 