/* Product List Page Styles */

.main-content {
    padding: 30px 0 60px;
    background: #fff;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Page Title Section */
.page-title-section {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 30px;
}

.title-accent {
    width: 4px;
    height: 50px;
    background: #d4a017;
    border-radius: 2px;
}

.title-text h1 {
    font-size: 28px;
    font-weight: 300;
    color: #c9a227;
    letter-spacing: 3px;
    margin: 0 0 5px 0;
    font-family: 'Arial', sans-serif;
}

.title-text p {
    font-size: 14px;
    color: #333;
    margin: 0;
}

/* Product Banner */
.product-banner {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 0;
}

.banner-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.banner-slide.active {
    opacity: 1;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: all 0.3s ease;
    z-index: 10;
}

.banner-arrow:hover {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.banner-prev {
    left: 15px;
}

.banner-next {
    right: 15px;
}

/* Separator Bar */
.separator-bar {
    width: 100%;
    height: 50px;
    background: linear-gradient(to bottom, #e0e0e0 0%, #f5f5f5 50%, #e8e8e8 100%);
    margin: 0 0 40px 0;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

.product-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.product-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    padding: 15px;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.product-info {
    padding: 15px;
}

.product-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1.4;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-desc {
    font-size: 12px;
    color: #999;
    margin: 0 0 10px 0;
    line-height: 1.5;
    height: 36px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price {
    font-size: 16px;
    font-weight: bold;
    color: #e53935;
    margin-bottom: 12px;
}

.btn-buy {
    width: 100%;
    padding: 10px 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-buy:hover {
    background: #0078d4;
    border-color: #0078d4;
    color: #fff;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.page-btn,
.page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    height: 32px;
    padding: 0 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-num {
    min-width: 32px;
    padding: 0 10px;
}

.page-num.active {
    background: #f5f5f5;
    border-color: #ccc;
    color: #333;
    font-weight: 500;
}

.page-btn:hover,
.page-num:hover {
    border-color: #0078d4;
    color: #0078d4;
}

/* Responsive */
@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .title-text h1 {
        font-size: 22px;
    }
    
    .product-banner {
        height: 200px;
    }
    
    .product-image {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .page-btn {
        min-width: 50px;
        padding: 0 10px;
        font-size: 12px;
    }
}
