﻿/* fixsp */
header {
    background-image: url(./img/image-16.png);
    height: 100px;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    width: 100%;
}
/* fixsp */
.navbar {
    padding: 0 50px;
    max-width: 100%;
    margin: 0 auto;
}

.heading-product {
    position: absolute;
    top: 50%;
    left: 50px;
    color: #fff;
    font-size: 48px;
    font-weight: 700;
}
.layout-product-left {
    display: flex;
    flex-direction: column;
    gap: 25px
}

.menu-sidebar {
    width: 260px;
    background-color: white;
    color: black;
    overflow: hidden;
    overflow-y: scroll;
    height: 420px;
    overflow-x: hidden;
}
/*.menu-sidebar::-webkit-scrollbar {
    width: 0px;*/ /* Ẩn thanh cuộn dọc */
    /*height: 0px;*/ /* Ẩn thanh cuộn ngang nếu có */
/*}*/
.menu-header-sidebar {
    padding: 25px;
    font-size: 18px;
    border-bottom: 1px solid #ccc;
}

.menu-item-sidebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px;
    border-bottom: 1px solid #ccc;
    cursor: pointer;
}

    .menu-item-sidebar:last-child {
        border-bottom: none;
    }

    .menu-item-sidebar i {
        margin-right: 10px;
    }

.product-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .product-header h3 {
        font-size: 32px;
        font-weight: 500;
    }

.product-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .product-header-left span {
        color: #848484;
        font-size: 17px;
    }

.product-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}
    /*.product-item-body h3 {
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}*/
    .product-header-right span {
        font-weight: 500;
    }

.product-list-3 {
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    row-gap: 73px;
    column-gap: 25px;
    column-gap: 20px;
}

.product-list {
    display: grid;
}

/*.product-list-1 {
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 73px;
}*/
.product-list-1 {
    margin-top: 100px;
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 73px;
    margin-right:10px;
}

    .product-list-1 .product-item {
        width: 300px;
        margin-left: auto;
    }

        .product-list-1 .product-item .product-item-img {
          /*  height: 200px;
            width: 200px;*/
        }

.product-item-body h3 {
    max-width: 280px;
    height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* text-overflow: ellipsis;
  white-space: nowrap; */
}

.product-item {
    flex-shrink: 0;
    overflow: hidden;
}

.layout-product {
    justify-content: center;
    width: 100%;
    display: flex;
    column-gap: 20px;
}

.pagination {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

    .pagination a {
        text-decoration: none;
        color: black;
        font-size: 16px;
    }

    .pagination .current {
        border: 1px solid black;
        padding: 2px 6px;
        border-radius: 50%;
    }

.pagination-mobile {
    display: none;
}
@media (width: 1024px) and (height: 1366px) {

    .product-list-3 {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 8px;
    }

        .product-list-3 .product-item-img {
            width: 180px;
            height: 170px;
        }

    .product-header-left {
   
    }

    .product-header-right {
        justify-content: space-between;
        width: 100%;
    }

    .product-list-1 .product-item .product-item-img {
        width: 180px;
        height: 170px;
    }

    .product-list-1 {
        margin-top: 6%;
        margin-left: auto;
        margin-right: inherit;
        gap: 8px;
    }

    .menu-sidebar {
        width: 230px;
        height: 380px;
        margin-left: -1px;
    }

    .product-list-1 .product-item {
        width: 230px;
    }

    .product-item {
        width: 230px;
    }
    .product-header {
        flex-direction: column-reverse;
        align-items: start;
        gap: 10px;
    }
    #productTypeName {
        font-weight: bold;
        font-size: 17px;
    }
}
@media (max-width: 1023px) {
    .product-list-3 {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

        .product-list-3 .product-item-img {
            width: 180px;
            height: 170px;
        }

    .product-header-left {
   
    }

    .product-header-right {
        justify-content: space-between;
        width: 100%;
    }

    .product-list-1 .product-item .product-item-img {
        width: 180px;
        height: 170px;
    }

    .product-list-1 {
        margin-top: 5%;
        margin-left: auto;
        margin-right: inherit;
        gap: 8px;
    }
    .menu-sidebar {
        width: 230px;
        height:380px;
    }
        .product-list-1 .product-item {
         
            width: 230px;
        }

    .product-item {
        width: 230px;
    }
    .product-header {
        flex-direction: column-reverse;
        align-items: start;
        gap: 10px;
    }

    #productTypeName {
        font-size: 17px;
    }
}
@media screen and (max-width: 767px) {
    /*    .product-item-body h3 {
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: wrap;
        width: 100%;
    }*/
    .product-item-body h3 {
        max-width: 150px;
        height: fit-content;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: wrap;
        width: 100%;
    }

    .container {
        margin: 20px 0;
        padding: 0 10px;
    }

    header {
        height: 250px;
    }

    .layout-product {
        column-gap: 0;
    }

    .heading-product {
        transform: translateX(10%);
    }

    .heading-product {
        font-size: 24px;
    }

    .menu-sidebar {
        display: none;
    }

    .product-header {
        flex-direction: column-reverse;
        align-items: start;
        gap: 10px;
    }

    .product-header-right {
        width: 100%;
        justify-content: space-between;
    }

    .product-header h3 {
 /*       margin-top: 10px;*/
        font-size: 20px;
        font-weight: 500;
    }

    .product-list-3 {
        grid-template-columns: 1fr 1fr;
    }

    .product-list {
        grid-template-columns: 1fr 1fr;
    }

    .product-list-3 {
        row-gap: 10px;
    }

    .product-list-1 {
        display: none;
    }

    .product-item {
        width: 100%;
        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: 16px;
            }

            .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;
            }

    /*  .pagination {
        display: none;
    }*/

    .pagination-mobile {
        margin-top: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        cursor: pointer;
        font-weight: 500;
    }
}

.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;
        }

.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 */
    }


