.custom-related-products-items {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center; /* Ensure alignment in center */
}

.custom-related-product-item {
    flex: 1 1 calc(25% - 20px); 
    max-width: 300px; 
    text-align: center; 
    box-sizing: border-box; 
}

.custom-related-product-item img {
    max-width: 100%; 
    height: auto; 
    margin-bottom: 10px;
	border-radius: 10px;
}
.custom-related-product-title {
    font-size: 16px;
    margin: 5px 0; 
    color: #333; 
}
.custom-related-product-price {
    font-size: 16px; 
    color: #E9168C; 
}
section.custom-related-products {
    margin-bottom: 30px;
}

h2.custom-related-products-title {
    margin-bottom: 30px;
}
section.related-products {
    display: none !important;
}
section.up-sells.upsells.products {
    display: none !important;
}
.tp-product-details-bottom {
    padding-bottom: 30px;
}
.product-filter-area {
    padding: 0px 0px !important;
}


@media (max-width: 768px) {
    .custom-related-products-items {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between; /* Ensure items are spaced out properly */
    }

    .custom-related-product-item {
        flex: 1 1 calc(50% - 20px); /* 2 items per row with some spacing */
        max-width: calc(50% - 20px); /* 50% width for 2 items per row */
        text-align: center; 
        box-sizing: border-box; 
        margin-bottom: 20px; /* Space between rows */
    }
	.custom-related-product-title {
    font-size: 14px;
    margin: 5px 0; 
    color: #333; 
}
	.custom-related-product-price {
    font-size: 14px; 
    color: #E9168C; 
}
	.custom-related-products-items {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center; /* Ensure alignment in center */
}
	h2.custom-related-products-title {
    margin-bottom: 30px;
		font-size: 20px;
}section.related-products {
    display: none !important;
}
section.up-sells.upsells.products {
    display: none !important;
}
}
