/* Product Page Specific Styles */

/* Header Dark Style */
.header-dark {
    background: rgba(0, 0, 0, 0.85);
}



/* Product Page Content */
.product-page-content {
    padding: 40px 0 60px;
    background: #fff;
}

.product-layout {
    display: flex;
    gap: 30px;
}

/* Left Sidebar */
.product-sidebar {
    width: 220px;
    flex-shrink: 0;
}

.sidebar-header {
    background: #e63946;
    padding: 18px 20px;
    border-radius: 4px 4px 0 0;
}

.sidebar-header h3 {
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    margin: 0;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #fff;
    border: 1px solid #eee;
    border-top: none;
}

.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.3s;
}

.category-item:last-child {
    border-bottom: none;
}

.category-item a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    flex: 1;
}

.category-item svg {
    color: #ccc;
    transition: color 0.3s;
}

.category-item:hover {
    background: #fafafa;
}

.category-item:hover a {
    color: #e63946;
}

.category-item:hover svg {
    color: #e63946;
}

.category-item.active {
    border-left: 3px solid #e63946;
}

.category-item.active a {
    color: #e63946;
    font-weight: 500;
}

/* Product Grid Area */
.product-grid-area {
    flex: 1;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.product-card {
    display: block;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
}

.product-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.product-card:hover .product-card-image img {
    transform: scale(1.05);
}

.product-card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card-title {
    padding: 15px;
    font-size: 14px;
    font-weight: 400;
    color: #333;
    margin: 0;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.page-btn {
    background: #fff;
    border: 1px solid #ddd;
    padding: 8px 20px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
}

.page-btn.page-num {
    padding: 8px 14px;
    min-width: 36px;
}

.page-btn:hover {
    border-color: #b22234;
    color: #b22234;
}

.page-btn.active {
    background: #b22234;
    color: #fff;
    border-color: #b22234;
}

/* Language Switch */
.language-switch {
    display: flex;
    gap: 10px;
    color: #999;
    font-size: 13px;
}

.language-switch span {
    cursor: pointer;
    transition: color 0.3s;
}

.language-switch span:hover {
    color: #fff;
}

/* Floating Sidebar */
.floating-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
}

.float-btn {
    width: 50px;
    height: 50px;
    background: #e63946;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.float-btn:hover {
    background: #c62f3b;
}

.float-btn.qr-btn {
    background: #e63946;
}


/* Responsive */
@media (max-width: 992px) {
    .product-layout {
        flex-direction: column;
    }
    
    .product-sidebar {
        width: 100%;
    }
    
    .category-list {
        display: flex;
        flex-wrap: wrap;
    }
    
    .category-item {
        flex: 0 0 auto;
        border-bottom: none;
        border-right: 1px solid #f0f0f0;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .page-banner .banner-content {
        padding: 30px;
    }
    
    .banner-title-cn {
        font-size: 28px;
    }
    
    .banner-title-en {
        font-size: 20px;
    }
}
