﻿.sam-related-products {
    /* margin: 0 3.9rem; */
    margin-top: 0.48rem;
    margin-bottom: 0.48rem;
}

.sam-related-products .title {
    font-family: 'Anton';
    font-style: normal;
    font-weight: 400;
    font-size: 0.40rem;
    text-align: center;
    letter-spacing: 0.03em;
    color: #3F3F3F;
    margin-bottom: 0.69rem;
}

.sam-related-products .products-wrapper {
    display: flex;
    gap: 0.18rem;
    flex-wrap: wrap;
}

.sam-related-products .products-wrapper .product-item {
    background: #F4F4F4;
    width: calc(33% - 0.1rem)
}

.sam-related-products .products-wrapper .product-item a {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sam-related-products .products-wrapper .product-item a .product-title {
    /* width: 2.6rem; */
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-size: 0.2rem;
    line-height: 0.3rem;
    /* text-align: center; */
    text-transform: capitalize;
    color: #3F3F3F;
    margin-top: 0.3rem;
    margin-bottom: 0.23rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    padding: 0 0.2rem;
}

.sam-related-products .products-wrapper .product-item a .product-title:hover {
    color: #2C63A0;
}

.sam-related-products .products-wrapper .product-item a .product-content {
    display: flex;
    flex-direction: column;
    background-color: #F4F4F4;
    /* align-items: center; */
    flex: 1;
}

.sam-related-products .products-wrapper .product-item a .product-img {
    width: 100%;
    /* height: 3.6rem; */
    height: 2.6586rem;
}

.sam-related-products .products-wrapper .product-item a .product-img:hover {
    scale: 1.05;
}

.sam-related-products .products-wrapper .product-item a .product-content .atc-btn {
    width: 1.5rem;
    margin-bottom: 0.45rem;
}
.sam-related-products .products-wrapper .product-item a .product-content .atc-btn .atc-icon-hover {
    display: none;
}

.sam-related-products .products-wrapper .product-item a .product-content .atc-btn:hover .atc-icon {
    display: none;
}
.sam-related-products .products-wrapper .product-item a .product-content .atc-btn:hover .atc-icon-hover {
    display: block;
}


.sam-related-products .products-wrapper .product-item a .product-content {
    display: flex;
    flex-direction: column;
    background-color: #F4F4F4;
    /* align-items: center; */
    flex: 1;
}

.sam-related-products .products-wrapper .product-item a .product-img {
    width: 100%;
    /* height: 3.6rem; */
}

.sam-related-products .products-wrapper .product-item a .product-img:hover {
    scale: 1.05;
}

.sam-related-products .products-wrapper .product-item a .product-content .atc-btn {
    width: 1.5rem;
    margin-bottom: 0.45rem;
}

@media screen and (max-width: 1025px) {
    .sam-related-products {
        margin: 0;
    }

    .sam-related-products .products-wrapper {
        /* flex-wrap: nowrap;  */ /* 不注释，数据一行展示  */
        overflow-x: auto;
        padding: 0 0.34rem;

    }

    .sam-related-products .products-wrapper .product-item {
        width: calc(50% - 0.09rem);
        flex-shrink: 0;
    }

    .sam-related-products .products-wrapper .product-item a .product-img {
        height: 2.8rem;
    }
    .sam-related-products .products-wrapper .product-item a .product-content .atc-btn {
        width: 2rem;
    }
    .sam-related-products .products-wrapper .product-item a .product-content .atc-btn img {
        width: 100%;
    }
    .sam-related-products .title {
        margin-top: 0.69rem;
    }
}
