/* 产品列表完整修复样式 */

/* 确保网格布局 */
.my-product-list .my-product-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    margin-top: 30px !important;
}

.my-product-list .my-product-item {
    width: 100% !important;
    display: block !important;
}

/* 强制产品容器样式 */
.my-product-list .my-product-item .wd-product {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 强制图片容器样式 */
.my-product-list .my-product-item .product-element-top {
    height: 450px !important;
    position: relative !important;
    overflow: hidden !important;
    border-radius: 0 !important;
}

.my-product-list .my-product-item .product-element-top .product-image-link {
    height: 450px !important;
    position: relative !important;
    display: block !important;
    width: 100% !important;
}

.my-product-list .my-product-item .product-element-top .product-image-link img {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* 强制hover图片样式 */
.my-product-list .my-product-item .product-element-top .hover-img {
    height: 450px !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
    z-index: 2 !important;
}

.my-product-list .my-product-item .product-element-top .hover-img img {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* 确保hover效果 */
.my-product-list .my-product-item .product-element-top:hover .hover-img {
    opacity: 1 !important;
}

/* 禁用主题冲突 */
.my-product-list .my-product-item .wd-product {
    pointer-events: auto !important;
}

/* 响应式 */
@media (max-width: 1024px) {
    .my-product-list .my-product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 767px) {
    .my-product-list .my-product-grid {
        grid-template-columns: repeat(1, 1fr) !important;
    }
}

/* 确保在测试环境中样式正确应用 */
body .my-product-list .my-product-item .product-element-top {
    height: 450px !important;
}

body .my-product-list .my-product-item .product-element-top .product-image-link {
    height: 450px !important;
}

body .my-product-list .my-product-item .product-element-top .hover-img {
    height: 450px !important;
} 