.related-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-product {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent; /* Add a border for a box effect */
    padding: 10px; /* Optional padding for better spacing */
}

.related-product:hover {
    transform: translateY(-5px); /* Slight upward lift */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* Shadow for depth */
    border-color: #ddd; /* Optional change in border color on hover */
}

.related-product img {
    width: 100%;
    height: auto;
    display: block;
}

.related-product h3 {
    margin-top: 10px;
    font-size: 16px;
    text-align: center;
}

/* Center Grid */

.center-related-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.center-related-product {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent; /* Add a border for a box effect */
    padding: 10px; /* Optional padding for better spacing */
}

.center-related-product:hover {
    transform: translateY(-5px); /* Slight upward lift */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* Shadow for depth */
    border-color: #ddd; /* Optional change in border color on hover */
}

.center-related-product img {
    width: 100%;
    height: auto;
    display: block;
}

.center-related-product h3 {
    margin-top: 10px;
    font-size: 14px;
    text-align: center;
}



.see-more {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    text-align: center; /* Center text for smaller screens */
}

.see-more-left .button-left,
.see-more-right .button-right {
    background-color: #ea3900; /* Button background color */
    color: #fff; /* Button text color, change if needed */
    padding: 0.3em 1em; /* Button padding */
    border: none; /* Removes border */
    font-weight: 500; /* Font weight */
    font-size: 15px; /* Font size */
    line-height: 1.7em !important; /* Line height */
    cursor: pointer; /* Cursor change to indicate clickability */
    border-radius: 0; /* Optional: rounded corners */
}

.see-more-left {
    text-align: right; /* Align button to the right */
}

.see-more-right {
    text-align: left; /* Align button to the left */
}

.see-more-title {
    text-align: center; /* Center align the title */
    font-weight: bolder;
    margin-top: 30px;
    color: #333; /* Title color */
    font-size: 17px; /* Title font size */
    margin-bottom: 20px; /* Spacing between the title and the columns */
}


.see-more-left .button-left,
.see-more-right .button-right {
    /* Existing button styles */
    /* ... */
    transition: background-color 0.3s ease, transform 0.3s ease; /* Smooth transition for hover effects */
}


.see-more-center-section{
    margin-top: 20px;
    text-align: center; /* Centers the content within the div */
}


.see-more-center {
    display: inline-block; /* Allows the div to shrink to fit the content */
    margin: auto; /* Helps with centering */
}

.button-center {
    text-transform: capitalize;       
    background-color: #ea3900; /* Button background color */
    color: #fff; /* Button text color, change if needed */
    padding: 0.3em 1.5em; /* Button padding */
    border: none; /* Removes border */
    font-weight: 500; /* Font weight */
    font-size: 15px; /* Font size */
    line-height: 1.7em !important; /* Line height */
    cursor: pointer; /* Cursor change to indicate clickability */
    border-radius: 0px; /* Optional: rounded corners */
}


/* Hover effect for buttons */
.see-more-left .button-left:hover,.button-center:hover,
.see-more-right .button-right:hover {
    background-color: #d83500; /* Darker shade of the button color on hover */
    transform: scale(1.05); /* Slightly increase the size */
}


/* Responsive adjustments */
@media (max-width: 1024px) {
    
    .related-products-grid,
    .center-related-products-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
    }

    .related-product:nth-of-type(n+3),
    .center-related-product:nth-of-type(n+3) {
        display: none;
    }

    .button-center,.see-more-left .button-left,
    .see-more-right .button-right {
        font-size: 14px;
    }
}


@media (max-width: 564px) {
    .see-more {
        grid-template-columns: 1fr; /* Stack columns on smaller screens */
    }

    .see-more-left,
    .see-more-right {
        text-align: center; /* Center buttons on smaller screens */
    }

    .related-products-grid,
    .center-related-products-grid {
        grid-template-columns: repeat(1,1fr); /* 2 columns on mobile */
    }

    .related-product:nth-of-type(n+2),
    .center-related-product:nth-of-type(n+2) {
        display: none;
    }
}

