/* Collection页面布局修复CSS */
/* 解决"内容栏都贴着左边布局，右边缝隙很大，左边贴到了边缘没有缝隙"的问题 */

/* 1. 确保容器有正确的最大宽度和居中 */
.collection-layout-fix .container {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* 2. 修复产品区域的边距问题 */
.collection-layout-fix .shop-product-wrap {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* 3. 修复网格行的负边距 */
.collection-layout-fix .row.row-mtm {
    margin-left: -15px !important;
    margin-right: -15px !important;
}

/* 4. 确保产品列有正确的内边距 */
.collection-layout-fix .shop-col {
    padding-left: 15px !important;
    padding-right: 15px !important;
    margin-bottom: 30px !important;
}

/* 5. 修复产品卡片布局 */
.collection-layout-fix .single-product {
    border: 1px solid #eee !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    height: 100% !important;
}

.collection-layout-fix .single-product:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
    transform: translateY(-5px) !important;
}

/* 6. 修复产品图片容器 */
.collection-layout-fix .product-image {
    padding: 15px !important;
    background: #f8f9fa !important;
}

/* 7. 确保响应式布局正确 */
@media (max-width: 768px) {
    .collection-layout-fix .shop-col {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    .collection-layout-fix .row.row-mtm {
        margin-left: -10px !important;
        margin-right: -10px !important;
    }
}

/* 8. 修复筛选器区域 */
.collection-layout-fix .shop-filter-list {
    margin-bottom: 20px !important;
    padding: 15px !important;
    background: #f8f9fa !important;
    border-radius: 8px !important;
}

/* 9. 修复页面标题区域 */
.collection-layout-fix .page-title {
    margin-bottom: 30px !important;
    padding-bottom: 15px !important;
    border-bottom: 1px solid #eee !important;
}

/* 10. 确保所有内容区域都有正确的边距 */
.collection-layout-fix .content-area {
    padding-top: 30px !important;
    padding-bottom: 30px !important;
}