/* Collection页面显示修复CSS */
/* 确保动态加载的产品正确显示 */

/* 修复产品卡片显示 */
.shop-col {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* 修复动态添加的卡片 */
.col-6.col-md-4.shop-col {
    display: block !important;
}

/* 修复产品图片显示 */
.product-image img {
    display: block !important;
    max-width: 100% !important;
    height: auto !important;
}

/* 修复产品内容显示 */
.product-content {
    display: block !important;
    visibility: visible !important;
}

/* 修复价格显示 */
.product-price {
    display: block !important;
}

/* 修复标题显示 */
.product-title {
    display: block !important;
}

/* 修复描述显示 */
.product-description {
    display: block !important;
}

/* 修复操作按钮显示 */
.product-action-wrap {
    display: flex !important;
}

/* 确保产品网格正确布局 */
.row.row-mtm {
    display: flex !important;
    flex-wrap: wrap !important;
}

.shop-product-wrap.data-grid {
    display: block !important;
}

/* 隐藏被隐藏的卡片 */
.shop-col[style*="display: none"],
.shop-col[style*="display:none"] {
    display: none !important;
}

/* 显示动态修复的卡片 */
.shop-col.dynamic-fixed {
    display: block !important;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 修复分页显示 */
.pagination {
    display: flex !important;
    justify-content: center !important;
    margin-top: 20px !important;
}

/* 响应式修复 */
@media (max-width: 768px) {
    .col-6.col-md-4.shop-col {
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
}

@media (max-width: 576px) {
    .col-6.col-md-4.shop-col {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* 错误状态显示 */
.collection-fix-error {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 5px;
    padding: 15px;
    margin: 20px 0;
    color: #856404;
}

.collection-fix-error h4 {
    margin-top: 0;
    color: #856404;
}

/* 加载状态 */
.collection-loading {
    text-align: center;
    padding: 40px 20px;
}

.collection-loading .spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}