/* Product References Component Styles */

/* Main container */
.product-related-restrict {
    display: flex;
    padding: 40px 80px 80px;
}

/* List container */
.product-related-list-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
}

/* Header section */
.product-related-list-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 1060px;
}

.product-related-subtitle {
    font-family: 'OptimaProRoman', sans-serif;
    font-size: 44px;
    line-height: 56px;
    font-weight: 400;
    margin: 0;
    color: #434B5E;
    text-align: left;
}

/* References grid container */
.product-related-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    column-gap: 32px;
    row-gap: 32px;
    width: 100%;
}

/* Individual reference item */
.product-related {
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-decoration: none;
}

.product-related:hover {
    text-decoration: none;
}

/* Reference image */
.product-related-image {
    height: 260px;
}

.product-related-image .single-news-image {
    object-fit: cover;
    height: 260px;
    width: 100%;
}

/* Reference content */
.product-related-inner-content {
    background-color: #FFF;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-related-date {
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    line-height: 16px;
    font-weight: 400;
    color: #434B5E;
    margin: 0;
}

.single-products .product-related-title {
    font-family: 'OptimaProRoman', sans-serif;
    font-size: 22px;
    line-height: 32px;
    font-weight: 400;
    color: #434B5E;
    margin: 0;
    text-decoration: none;
}

/* View all button */
.single-product-content-button {
    background-color: #1A21C7;
    color: #fff;
    padding: 12px 32px;
    border-radius: 0px;
    border: 1px solid #1A21C7;
    box-sizing: border-box;
    width: fit-content;
    text-align: center;
    line-height: 24px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
}

.single-product-content-button:hover {
    background-color: #fff;
    border: 1px solid #1A21C7;
    color: #1A21C7;
    box-sizing: border-box;
    transition: all 0.3s ease;
    text-decoration: none;
}

/* Responsive Design */
@media screen and (max-width: 1280px) {
    .product-related-restrict {
        padding: 40px;
    }

    .product-related-container {
        grid-template-columns: 1fr;
    }

    .product-related {
        flex-direction: row;
    }

    .product-related-image {
        flex: 1 1 0px;
    }

    .product-related-inner-content {
        flex: 1 1 0px;
        justify-content: center;
    }

    .product-related-image .single-news-image {
        object-fit: none;
    }
}

@media screen and (max-width: 744px) {
    h2.product-related-subtitle {
        font-size: 30px;
        line-height: 40px;
        font-weight: 400;
    }

    .product-related-restrict {
        padding: 40px 16px;
    }

    .product-related-list-container {
        gap: 16px;
    }

    .product-related {
        flex-direction: column;
    }

    .product-related-container {
        row-gap: 16px;
        column-gap: 16px;
    }

    .product-related-image {
        height: 185px;
    }

    .product-related-image .single-news-image {
        height: 185px;
        object-fit: cover;
    }

    .single-product-content-button {
        width: 100%;
        padding: 12px 16px;
    }
}
