﻿header {
    /*    background-image: url(./img/image-7.svg);*/
    background-repeat: no-repeat;
    background-size: cover;
    /*   height: 100vh;*/
/*    height: 728px;*/
    width: 100%;
    position: relative;

}

.container {
    max-width: 1440px;
    margin: 60px auto;
    padding: 0 25px;
}

.modal-overlay {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}
.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 60px;
    color: black;
    pointer-events: none; /* Cho phép click xuyên qua icon để bắt sự kiện ở div cha */
}

.modal-content {
    width: 80%;
    max-width: 800px;
    position: relative;
}

    .modal-content iframe {
        width: 100%;
        height: 450px;
    }

.modal-close {
    position: absolute;
    top: -10px;
    right: -10px;
    background: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 16px;
    cursor: pointer;
}

.header-home {
    background-color: black;
    height: 65px;
}
.main-title {
    display: flex;
    justify-content: space-between;
}

    .main-title h2 {
        font-size: 32px;
        font-weight: 500;
    }

    .main-title span {
        font-size: 20px;
        font-weight: 500;
        text-align: center;
    }

.product-list {
    margin-top: 15px;
    margin-bottom: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 25px;
}

.product-item {
    width: 100%;
    height: 100%;
    padding: 17px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background: white;
}

    .product-item .product-item-img {
        border-radius: 10px;
        width: 100%;
        height: 250px;
        margin: 0 auto;
    }

        .product-item .product-item-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

    .product-item .product-item-body {
        margin-top: 25px;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

        .product-item .product-item-body span {
            color: #888;
            font-size: 20px;
            font-weight: 500;
        }

        .product-item .product-item-body h3 {
            font-size: 20px;
            font-weight: 500;
        }

    .product-item .product-item-footer {
        margin-top: 24px;
        display: flex;
        justify-content: space-between;
    }

        .product-item .product-item-footer .product-item-price {
            color: #dc3d1d;
            font-size: 20px;
            font-weight: 500;
        }

.feature-button {
    align-items: center;
    border-color: #848484;
    border-radius: 39px;
    border-style: solid;
    border-width: 0.833333px;
    color: #212529;
    line-height: 24px;
    padding: 10px 24px;
    text-decoration: none;
}

.feature .feature-main-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.feature-main {
    margin-top: 40px;
    display: flex;
    gap: 100px;
    justify-content: space-between;
}

.feature-main-content a {
    background-color: #fff;
    border-color: #121212;
    border-radius: 100px;
    border-style: solid;
    border-width: 0.833333px;
    color: #212529;
    justify-content: center;
    line-height: 24px;
    padding: 10px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
}

.feature .feature-main h3 {
    font-size: 48px;
    font-weight: 500;
    margin: -1px 0px 16px;
}

.feature .feature-main p {
    color: #848484;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.6;
}

.carousel-container {
    position: relative;
    max-width: 100%;
    width: 100%;
    margin-top: 60px;
    display:none;
}

.carousel {
    display: grid;
    grid-template-columns: 4fr 1fr 1fr;
    gap: 15px;
    transition: transform 0.5s ease;
}

    .carousel img {
        object-fit: cover;
        width: 100%;
        border-radius: 10px;
        margin-right: 10px;
        transition: transform 0.5s ease;
    }

        .carousel img:first-child {
            height: 100%;
            width: 100%;
        }

        .carousel img:not(:first-child) {
            height: 100%;
            width: 100%;
            object-fit: cover;
        }

        .carousel img:last-child {
            margin-right: 0;
        }

.carousel-container .next {
    position: absolute;
    top: 50%;
    right: -20px;
    transform: translateY(-50%);
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1;
}

.product-item-cart {
    transition: transform 0.3s ease; /* Thêm hiệu ứng chuyển động mượt mà */
}

    .product-item-cart:hover {
        transform: translateY(-5px); /* Dịch chuyển lên trên 5px khi hover */
    }

.learn-more:hover {
    background-color: orange; /* Màu nền khi hover */
    color: #212529; /* Màu chữ khi hover */
}

.feature-button:hover {
    background-color: orange; /* Màu nền khi hover */
    color: #212529; /* Màu chữ khi hover */
}

.xtproduct {
    transition: transform 0.3s ease; /* Thêm hiệu ứng chuyển động mượt mà */
}

    .xtproduct:hover {
        transform: translateY(-5px); /* Dịch chuyển lên trên 5px khi hover */
    }
@media (width: 1024px) and (height: 1366px) {


    header {
        height: 100%;
    }
    .feature-main{
        gap: 0px;
    }
    .product-item .product-item-body span {
        font-size: 16px;
    }

    .header-home {
      /*  margin-bottom: 17%;*/
        height: 53px;
    }

    .menu {
        overflow: hidden;
        overflow-y: scroll;
        overflow-x: hidden;
        width: 256px;
        height: 511px;
    }

    .product-list {
        grid-template-columns: 1fr 1fr 1fr 1fr;
        gap: 8px;
    }

    .product-item .product-item-img {
        width: 200px;
        height: auto;
    }
}
    @media (max-width: 1023px) {

        header {
            height: 100%;
        }
        .feature-main {
            gap: 0px;
        }
        .product-item .product-item-body span {
            font-size: 16px;
        }

        .header-home {
            /*         margin-bottom: 30%;*/
            height: 53px;
        }

        .menu {
            overflow: hidden;
            overflow-y: scroll;
            overflow-x: hidden;
            width: 256px;
            height: 511px;
        }

        .product-list {
            grid-template-columns: 1fr 1fr 1fr;
            gap: 8px;
        }

        .product-item .product-item-img {
            width: 200px;
            height: auto;
        }
    }

    @media screen and (max-width: 767px) {
        header {
            height: 500px;
        }
        .header-home {
            margin-bottom: 0;
        }
        .main-title {
            padding-top: 20px;
        }

            .main-title h2 {
                font-size: 20px;
                font-weight: 500;
            }

            .main-title span {
                font-size: 16px;
                margin-top: 3px;
            }

        .product-list {
            grid-template-columns: 1fr 1fr;
        }

        .product-item {
            padding: 10px;
        }

            .product-item .product-item-img {
                height: 150px;
                width: 100%;
            }

            .product-item .product-item-body {
                margin-top: 10px;
            }

                .product-item .product-item-body span {
                    font-size: 12px;
                }

                .product-item .product-item-body h3 {
                    font-size: 16px;
                }

            .product-item .product-item-footer {
                margin-top: 10px;
            }

                .product-item .product-item-footer .product-item-price {
                    font-size: 16px;
                }

                .product-item .product-item-footer .product-item-cart {
                    display: none;
                }

        .feature-main {
            flex-direction: column;
            gap: 10px;
        }

        .feature .feature-main h3 {
            font-size: 24px;
        }

        .feature .feature-main p {
            font-size: 16px;
            color: #000;
            font-weight: normal;
            line-height: 1.6;
        }

        .carousel-container {
            margin-top: 20px;
            overflow: hidden;
        }

        .carousel {
            grid-template-columns: 3fr 2fr 1fr;
        }

            .carousel img:first-child {
                height: 289px;
                width: 220px;
            }

            .carousel img:not(:first-child) {
                height: 100%;
                width: 100%;
                object-fit: cover;
            }

            .carousel img {
                height: 289px;
                width: 144px;
            }

        .carousel-container .next {
            /*      display: none;*/
            right: 0px;
        }
    }


    .product-item {
        position: relative;
        transition: background-color 0.3s ease;
    }

        .product-item:hover {
            background-color: #CCFFFF; /* Màu nền khi hover */
        }

            .product-item:hover .product-item-img {
                background-color: initial;
            }
