/* 产品分类网格样式 */
.pcg-wrapper {
    width: 100%;
}

.pcg-grid {
    display: grid;
    gap: 20px;
}

.pcg-columns-2 { grid-template-columns: repeat(2, 1fr); }
.pcg-columns-3 { grid-template-columns: repeat(3, 1fr); }
.pcg-columns-4 { grid-template-columns: repeat(4, 1fr); }
.pcg-columns-5 { grid-template-columns: repeat(5, 1fr); }
.pcg-columns-6 { grid-template-columns: repeat(6, 1fr); }

.pcg-product-item {
    text-align: center;
}

.pcg-product-image-wrapper {
    position: relative;
    overflow: hidden;
    margin-bottom: 15px;
}

.pcg-product-image {
    width: 100%;
    height: 280px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
}

.pcg-product-image-wrapper:hover .pcg-product-image {
    transform: scale(1.05);
}

.pcg-no-image {
    background-color: #f5f5f5;
}

/* 徽章样式 */
.pcg-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 6px 12px;
    border-radius: 50px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.pcg-badge-sale {
    background-color: #7eb934;
}

.pcg-badge-hot {
    background-color: #ff6b35;
}

/* 产品信息 */
.pcg-product-info {
    padding: 0 10px;
}

.pcg-product-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
}

.pcg-product-title a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.pcg-product-category {
    font-size: 13px;
    margin-bottom: 8px;
}

.pcg-product-price {
    font-size: 16px;
    font-weight: 600;
}

.pcg-product-price del {
    font-weight: 400;
    margin-right: 8px;
}

.pcg-product-price ins {
    text-decoration: none;
}

/* 响应式 */
@media (max-width: 1024px) {
    .pcg-columns-5,
    .pcg-columns-6 {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .pcg-columns-3,
    .pcg-columns-4,
    .pcg-columns-5,
    .pcg-columns-6 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pcg-product-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .pcg-columns-2,
    .pcg-columns-3,
    .pcg-columns-4,
    .pcg-columns-5,
    .pcg-columns-6 {
        grid-template-columns: 1fr;
    }
}
