﻿.sam-product-collection {
    /* padding: 1.6rem 3.5rem; */
}

.sam-product-collection .collection-title {
    display: flex;
    flex-wrap: wrap;
    /* gap: 0.64rem; */
    /* justify-content: space-between; */
    margin-bottom: 0.6rem;
    gap: 0.2rem;
    padding: 0 0.58rem;
}

.sam-product-collection .collection-title .title-item {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-size: 0.20rem;
    /* text-transform: uppercase; */
    color: #3F3F3F;
    cursor: pointer;
    /* padding-bottom: 0.19rem; */
    /* border-bottom: 0.03rem solid transparent; */
    display: flex;
    justify-content: center;
    align-items: center;
    width: calc(24% - 0.06rem);
    height: 0.5rem;
    text-align: center;
    border-radius: 0.06rem;
    box-sizing: border-box;
    border: 1px solid #888;
    padding: 0.18rem 0.1rem;
}

/* .sam-product-collection .collection-title .title-item:hover {
    color: #2C63A0;
    border-bottom: 0.03rem solid #2C63A0;
} */

.sam-product-collection .collection-title .title-item.active-item {
    color: #fff;
    /* border-bottom: 0.03rem solid #2C63A0; */
    background-color: #2C63A0;
    border: 1px solid #2C63A0;
}

.sam-product-collection .products-wrapper {
    display: flex;
    column-gap: 0.18rem;
    flex-wrap: wrap;
    row-gap: 0.6rem;
    position: relative;
}

.sam-product-collection .products-wrapper .sam-loading-mask {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    display: flex;
    justify-content: center;
    background-color: rgba(0, 0, 0, .2);

}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.sam-product-collection .products-wrapper .sam-loading-mask .loading-content {
    border: 0.1rem solid #f3f3f3;
    border-top: 0.1rem solid #2C63A0;
    border-radius: 50%;
    width: 0.5rem;
    height: 0.5rem;
    display: inline-block;
    animation: spin 2s linear infinite;
    margin-top: 2rem;

}

.sam-product-collection .products-wrapper .product-item {
    /* width: calc(34% - 0.27rem * 3 / 4) */
    width: 3.99rem;
}

.sam-product-collection .products-wrapper .product-item a {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}


.sam-product-collection .products-wrapper .product-item a .product-title {
    /* width: 2.6rem; */
    padding: 0 0.1rem;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-size: max(0.2rem, 16px);
    line-height: 1.5;
    /* 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;
}

.sam-product-collection .products-wrapper .product-item a .product-title:hover {
    color: #2C63A0;
}

.sam-product-collection .products-wrapper .product-item a .product-content {
    display: flex;
    flex-direction: column;
    background-color: #F4F4F4;
    /* align-items: center; */
    justify-content: space-between;
    flex: 1;
}

.sam-product-collection .products-wrapper .product-item a .product-img {
    width: 100%;
    /* height: 3.6rem; */
}

.sam-product-collection .products-wrapper .product-item a .product-img:hover {
    scale: 1.05;
}

.sam-product-collection .products-wrapper .product-item a .product-content .product-atc-btn {
    width: 1.5rem;
    margin-bottom: 0.45rem;
    display: flex;
}

.sam-product-collection .products-wrapper .product-item a .product-content .product-atc-btn img {
    width: 100%;
    height: 100%;
}

.sam-product-collection .products-wrapper .product-item a .product-content .product-atc-btn .atc-icon-hover {
    display: none;
}

.sam-product-collection .products-wrapper .product-item a .product-content .product-atc-btn:hover .atc-icon {
    display: none;
}

.sam-product-collection .products-wrapper .product-item a .product-content .product-atc-btn:hover .atc-icon-hover {
    display: block;
}


/*分页样式*/

.list-page {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-top: 1.15rem;
    padding: 0 0.34rem;
}

.list-page .paging-btn {
    font-size: 0.18rem;
}

.list-page .page-prev:hover {
    color: #1E73BD !important;
}

.list-page .page-next:hover {
    color: #1E73BD !important;
}
.sam-product-collection-products-p{
    font-family: Roboto;
    font-size: 0.22rem;
    font-weight: 400;
    line-height: 0.36rem;
    text-align: left;
    word-break: keep-all;
    /* margin-bottom: 0.0614rem; */
    margin-bottom: 0.2rem;
    margin-top: -0.09rem;
}
.products-wrapper .page-btn-box {
    display: flex;
    gap: 0.18rem;
    margin-right: 0.4rem;
}

.products-wrapper .page-btn-box button {
    margin-left: 5px;
    background-color: #F0F0F0;
    background: #D9D9D9;
    font-size: 0.18rem;

}

.products-wrapper .page-btn-box .buttonActive {
    background: #2C63A0;
    color: #fff;
}

.products-wrapper .page-btn-box button {
    border-radius: 8px;
    width: 0.54rem;
    height: 0.54rem;
}

.sam-product-collection .sam-product-title {
    font-family: 'Anton';
    font-size: 0.4rem;
    color: #3F3F3F;
    text-align: center;
    font-weight: 400;
    text-transform: uppercase;
    margin-bottom: 0.42rem;
    margin-top: -0.09rem;
}
.oc-main-sam-pagination-pc-fenlei{
    display: block;
}
.oc-main-sam-pagination-mobile-fenlei{
    display: none;
}
/* 移动端样式 */
@media screen and (max-width: 1025px) {
    .sam-product-collection {
        padding: 0.2rem 0.34rem;
    }
    .oc-main-sam-pagination-pc-fenlei{
        display: none;
    }
    .oc-main-sam-pagination-mobile-fenlei{
        display: block;
    }
    .sam-product-collection .sam-product-title {
        display: block;
        font-family: 'Anton';
        font-style: normal;
        font-weight: 400;
        font-size: 0.48rem;
        text-align: center;
        color: #505A60;
    }

    .sam-product-collection .collection-title {
        justify-content: start;
        column-gap: 0.12rem;
        row-gap: 0.2rem;
        padding: 0;
    }

    .sam-product-collection .collection-title .title-item {
        width: calc(50% - 0.06rem);
        padding: 0.16rem;
        font-size: 0.24rem;
        box-sizing: border-box;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 0.82rem;
        font-weight: 600;
    }

    .sam-product-collection .collection-title .title-item.active-item {
        background-color: #2C63A0;
        color: #fff;
    }
    .sam-product-collection .collection-title{
        margin-bottom: 0.39rem;
    }
    .sam-product-collection .products-wrapper .product-item {
        width: calc(50% - 0.09rem);
    }

    .sam-product-collection .products-wrapper .product-item a .product-img {
        /* height: 2.78rem; */
    }

    .sam-product-collection .products-wrapper .product-item a .product-content {
        padding: 0 0.14rem;
    }

    .sam-product-collection .products-wrapper .product-item a .product-title {
        font-size: 0.24rem;
        width: 100%;
    }

    .sam-product-collection .products-wrapper .product-item a .product-content .product-atc-btn {
        width: 1.98rem;
        height: 0.5rem;
    }

    .list-page .paging-btn {
        font-size: 0.24rem;
    }

    .products-wrapper .page-btn-box button {
        border-radius: 0.05rem;
        width: 0.4rem;
        height: 0.4rem;
    }
}
