.home-product{
    max-width: 1440px;
    margin: 0 auto;
    padding-top: 80px;
    padding-bottom: 80px;
    display: flex;
    align-items: center;
    >.content{
        display: grid;
        align-items: flex-start;
        grid-template-columns: min-content;
        >div{
            grid-area: 1 / 1;
            padding: 63px;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.5s;
            >h2{
                white-space: nowrap;
                border-left: 5px solid var(--color-primary-1);
                padding-left: 27px;
                color: var(--color-primary-1);
                margin-bottom: 60px;
            }

            >h4{
                white-space: pre-line;
            }

            &.active{
                opacity: 1;
                pointer-events: initial;
            }
        }
    }
    >.product-list{
        flex-grow: 1;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (width < 1248px) {
    .home-product > .content > div {
        padding: 40px;
    }
}
@media screen and (width < 1024px) {
    .home-product{
        flex-direction: column;
        align-items: stretch;
        >.content{
            grid-template-columns: auto;
            >div>h2{
                white-space: initial;
            }
        }
        >.product-list{
            display: none;
        }
    }
}
@media screen and (width < 768px) {
    .home-product{
        padding-top: 60px;
        padding-bottom: 60px;
        > .content > div {
            padding: 0 24px 40px;
            >h2{
                margin-bottom: 40px;
            }
        }
    }
}
@media screen and (width < 576px) {
    .home-product{
        padding-top: 60px;
        padding-bottom: 60px;
        > .content > div {
            >h2{
                padding-left: 15px;
            }
        }
    }
}

.product-list-item{
    width: 100%;
    padding: 31px;
    border: 1px solid white;
    transition: background-color 0.5s;
    display: grid;
    grid-row: span 2;
    grid-template-rows: subgrid;
    >p{
        color: var(--color-gray-3);
        margin-bottom: 10px;
    }
    >img{
        margin: 0 auto;
    }

    &:hover,
    &.active{
        background-color: var(--color-gray-7);
        border: 1px solid white;
    }
}
@media screen and (width < 1024px) {
    .product-list-item{
        display: flex;
        flex-direction: column;
        border: none;
        height: 100%;
        >p{
            flex-grow: 1;
        }
    }
}

.home-product-swiper{
    position: relative;
    padding: 0 74px;
    width: 100%;
    display: none;
    .swiper{
        overflow-x: clip;
        overflow-y: visible;
        .swiper-slide{
            height: auto;
        }
    }

    >.home-product-swiper-prev,
    >.home-product-swiper-next{
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        cursor: pointer;
        width: 40px;
        height: 40px;
        >svg{
            width: 100%;
            height: 100%;
            color: var(--color-gray-5);
            transition: color 0.3s;
            &:hover{
                color: var(--color-primary-1);
            }
        }
    }
    >.home-product-swiper-prev{
        left: 24px;
    }
    >.home-product-swiper-next{
        right: 24px;
    }
}
@media screen and (width < 1024px) {
    .home-product-swiper{
        display: block;
    }
}
@media screen and (width < 576px) {
    .home-product-swiper{
        padding: 0 52px;
        >.home-product-swiper-prev,
        >.home-product-swiper-next{
            width: 20px;
            height: 20px;
        }
    }
}

.home-product-swiper-pagination{
    margin-top: 60px;
    display: none;
    justify-content: center;
    align-items: center;
    gap: 24px;
    >.bullet{
        display: block;
        width: 9px;
        height: 9px;
        border-radius: 999px;
        border: 1px solid var(--color-primary-1);
        transition: background-color 1s;
        &.active{
            background-color: var(--color-primary-1);
        }
    }
}

@media screen and (width < 1024px) {
    .home-product-swiper-pagination{
        display: flex;
    }
}
@media screen and (width < 576px) {
    .home-product-swiper-pagination{
        gap: 16px;
    }
}