.custom-loadmore-wrap {
    text-align: center;
}
.custom-loadmore-wrap .custom-products-grid {
    display: grid;
    grid-gap: 0px;
}
.custom-loadmore-wrap .columns-2 { grid-template-columns: repeat(2, 1fr); }
.custom-loadmore-wrap .columns-3 { grid-template-columns: repeat(3, 1fr); }
.custom-loadmore-wrap .columns-4 { grid-template-columns: repeat(4, 1fr); }
.custom-loadmore-wrap .columns-5 { grid-template-columns: repeat(5, 1fr); }
.custom-loadmore-wrap .columns-6 { grid-template-columns: repeat(6, 1fr); }

/* Nút tải thêm - trước khi load */
.custom-loadmore-wrap .ux-relay__button {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 50px;
    border-radius: 5px;
    background-color: #5d5d5d;
    color: #fff;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease-in-out;
}

/* Giảm khoảng cách giữa ảnh và phần thông tin */
.custom-products-grid .product,
.custom-products-grid li.product {
    margin-bottom: -16px; /* chỉnh lại giá trị theo ý muốn, mặc định có thể là 20-30px */
}

/* Ẩn nút xem nhanh */
.custom-products-grid .quick-view,
.custom-products-grid .product-quick-view,
.custom-products-grid .button.quick-view {
    display: none !important;
}

/* Sau khi load sản phẩm */
.custom-loadmore-wrap.has-products .ux-relay__button {
    margin-top: -8px;
    margin-bottom: 6px;
}

/* Hover effect */
.custom-loadmore-wrap .ux-relay__button:hover {
    background-color: #444;
    transform: scale(1.05);
}

/* Hiệu ứng zoom-in */
.custom-products-grid .zoom-effect {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.4s ease-in-out;
}
.custom-products-grid .zoom-effect.show {
    opacity: 1;
    transform: scale(1);
}

/* Mobile fix */
@media (max-width: 768px) {
    .custom-loadmore-wrap {
        margin-top: -20 !important;
        margin-bottom: -20 !important;
        padding-top: -20 !important;
        padding-bottom: -20 !important;
    }

    .custom-loadmore-wrap .ux-relay__button {
        margin-top: 4px !important;
        margin-bottom: 4px !important;
        padding: 6px 20px !important; /* nút nhỏ gọn hơn */
        font-size: 13px;
    }
}
