/* 处理缺失图片的样式 */
.product-image {
    position: relative;
    background-color: #f8f9fa;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    max-width: 100%;
    transition: transform 0.3s;
}

.product-image img.error {
    display: none;
}

.product-image::after {
    content: attr(data-alt);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #495057;
    font-size: 16px;
    text-align: center;
    padding: 20px;
    background-color: #f1f3f5;
}

/* 产品卡片占位样式 */
.product-card {
    min-height: 350px;
} 