﻿.navbar {
    display: flex;
    height: 65px;
    justify-content: space-between;
/*    max-width: calc(100% - 250px);*/
    padding: 10px;
}

.navbar-left {
    display: flex;
    gap: 10px;
    flex-grow: 1;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    list-style: none;
    align-items: center;
}
.navbar-left .nav-links {
    width: 100%;
}
.nav-link-item a {
    text-decoration: none;
    color: white;
}

.navbar-right {
    display: flex;
    gap: 20px;
    align-items: center;
}
    .navbar-right .nav-links {

        gap: 20px;

    }

    .navbar-right input {
        background: white;
        border: none;
        border-radius: 100px;
        padding: 5px 8px;
    }

.navbar .search {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 20px;
    padding: 5px 10px;
}

    .navbar .search input {
        border: none;
        outline: none;
        padding: 5px;
    }

    .navbar .search i {
        color: gray;
    }

.img {
    position: relative;
    width: 16px;
    height: 16px;
    filter: invert(1);
}

.imgsp {
    position: relative;
    width: 16px;
    height: 16px;
}

.polygon-sp {
    filter: invert(1);
}
.img-mobile {
    filter: invert(1);
}


.menu {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 250px;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    color: white;
    overflow: hidden;
    overflow-y: scroll;
    overflow-x: hidden;
}

    .menu::-webkit-scrollbar {
        width: 0px; /* Ẩn thanh cuộn dọc */
        height: 0px; /* Ẩn thanh cuộn ngang nếu có */
    }

    .menu::-webkit-scrollbar-thumb {
        background: transparent; /* Không hiển thị thumb của thanh cuộn */
    }

.menu-body {
    position: relative;
    border-top: 1px solid #ccc;
}
/* Ẩn submenu mặc định */
.dropdown-submenu {
    display: none;
    position: absolute;
    background-color: #f3ecec;
    min-width: 180px;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    padding: 8px 0;
    margin-top: 5px;
    left: 200px;
    border-radius: 4px;
    top: -15px;
    list-style: none;
}

/* Vị trí tương đối cho phần bọc */
.nav-dropdown-wrapper {
    position: relative;
}

    /* Hiển thị submenu khi hover vào nav-dropdown-product */
    .nav-dropdown-wrapper:hover .dropdown-submenu {
        display: block;
    }

/* Tùy chỉnh item con */
.dropdown-submenu li {
    padding: 6px 12px;
}

    .dropdown-submenu li a {
        color: #333;
        text-decoration: none;
        display: block;
    }

        .dropdown-submenu li a:hover {
            background-color: #f0f0f0;
        }

.submenu {
    display: none;
    width: 100%;
    background-color: #f3ecec;
}

.menu-body:hover .submenu {
    display: block;
}

.submenu-item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    color: white;
    text-decoration: none;
}

.submenu-item {
    background-color: black;
}

.submenu-item-sp a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    color: black;
    text-decoration: none;
}

    .submenu-item-sp a:hover {
        background-color: #CCFFFF;
        color: darkgrey
    }

.menu-header {
    padding: 25px;
    font-size: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

    .menu-item:hover {
        background-color: #0052b4; /* Màu nền khi hover */
    }

        .menu-item:hover .polygon {
            transform: rotate(88deg);
        }

        .menu-item:hover .polygon-sp {
            transform: rotate(88deg);
        }
        .menu-item:hover .img-mobile {
            transform: rotate(88deg);
        }

    .menu-item:last-child {
        border-bottom: none;
    }

    .menu-item i {
        margin-right: 10px;
    }

.menu-item-sp:hover .polygon-sp {
    filter: brightness(0) invert(1); /* Đảo màu ảnh khi hover */
}
.menu-item-sp:hover .img-mobile {
    filter: brightness(0) invert(1); /* Đảo màu ảnh khi hover */
}
.menu-item-sp:hover .img-mobile {
    transform: rotate(88deg);
}
.menu-mobile-item:hover .img-mobile1 {
    filter: brightness(0) invert(1); /* Đảo màu ảnh khi hover */
    transform: rotate(88deg);
}
.menu-item-sp:hover .product-namenn {
    color: white; /* Đổi màu thành trắng khi hover */
}
.product-namenn {
    text-align: left;
    width: 68%;
}
.menu-item-sp:hover .imgsp {
    filter: invert(1); /* Đảo màu ảnh khi hover */
}

.menu-item-sp:hover .submenu-text {
    filter: invert(1); /* Đảo màu */
}

.menu-item-sp {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

    .menu-item-sp:hover {
        background-color: #0052B4;
    }

    .menu-item-sp:last-child {
        border-bottom: none;
    }

    .menu-item-sp i {
        margin-right: 10px;
    }

.main-content {
    color: white;
    display: flex;
    align-items: center;
    gap: 40px;
    height: 100%;
    padding: 10px;
}

    .main-content .cards {
        display: flex;
        display: none;
        align-items: center;
        gap: 10px;
        position: relative;
    }
#card-container {
        display: flex;
        align-items: center;
        gap: 10px;
        position: relative;
    }
.card-controls {
    position: absolute;
    left: 0;
    bottom: -20%;
    width: 100%;
    justify-content: space-between;
    display: flex;
    align-items: center;
}

.card-control {
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-controls span {
    font-size: 32px;
}

.card-controls .rectangle {
    width: 475px;
    height: 3px;
    background-color: #ffffff;
    border-radius: 100px;
}

.main-content .cards .card {
    width: 210px;
    height: 289px;
    /*         background: rgba(0, 0, 0, 0.5);*/
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    border: none;
    background-color: transparent;
}

    .main-content .cards .card:last-child {
        height: 100%;
    }

    .main-content .cards .card img {
        width: 100%;
        /*      height: 100%;*/
        object-fit: cover;
    }

    /* fix */
    .main-content .cards .card .card-title {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 10px;
        /* text-align: center; */
        width: 72%;
        line-height: normal;
        font-size: 20px;
        color: #f8f9fa; /* Màu sáng hơn */
    }

.main-content .text-content {
    display:none;
    /*    max-width: 468px;*/
}

    .main-content .text-content .text-content-main {
        font-size: 40px;
        display: flex;
        flex-direction: column;
        font-weight: bold;
        margin-bottom: 20px;
        line-height: normal;
        color: white;
        width: 100%;
    }

    .main-content .text-content p {
        width: 372px;
        font-size: 16px;
        margin-bottom: 20px;
        line-height: 1.4;
        font-weight: 500;
    }

    .main-content .text-content .buttons {
        display: flex;
        gap: 20px;
    }

        .main-content .text-content .buttons a {
            padding: 10px 20px;
            border-radius: 20px;
            text-decoration: none;
            color: white;
            font-size: 16px;
        }

        .main-content .text-content .buttons .btn-primary {
            background: #007bff;
        }

        .main-content .text-content .buttons .btn-secondary {
            background: #ffffff;
            color: #007bff
        }

            .main-content .text-content .buttons .btn-secondary:hover {
                background: orange; /* Màu nền đổi thành màu chữ cũ */
                color: black; /* Màu chữ đổi thành màu nền cũ */
            }

        .main-content .text-content .buttons .btn-primary:hover {
            background: orange;
            color: black
        }

.navbar-mobile {
    display: none;
}

.menu-mobile {
    display: none;
}
/* dropdown */
/* Style cho dropdown */
.nav-link-item {
    position: relative;
    flex-grow: 1;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    padding: 10px 0;
    z-index: 1000;
}
.dropdown-toggle.active + .dropdown-menu {
    display: block;
}
    .dropdown-menu li {
        list-style: none;
    }

    .dropdown-menu a {
        padding: 8px 15px;
        display: block;
        color: #333;
        line-height: 1.5;
        border-bottom: 1px solid #ccc;
        font-weight: normal;
    }

        .dropdown-menu a:hover {
            background-color: #f5f5f5;
        }

/* Hiển thị dropdown khi hover */
.dropdown:hover .dropdown-menu {
    display: block;
}
@media (width: 1024px) and (height: 1366px) {
    .nav-links {
        font-size: 13px;
        gap: 5px;
    }
    .product-item {
        width: 228px;
    }
    .product-list-1 .product-item {
        width: 228px;

    }
    .menu-sidebar{
        margin-left: -31px;
    }
    .navbar {
        display: none;
    }

    .card-controls {
        display: none;
    }

    .cards {
        transform: translate(-25%, 50%);
        margin-left: 203px;
    }

    .menu {
        height: auto;
    }
    #logoimg{
        transform: translate(-447%, -1%);
    }
    .main-content .text-content .text-content-main {
        flex-direction: row;
        max-width: 500px;
        display: block;
        width: 100%;
        font-size: 29px;
    }

    .text-content {
        max-width: 100%;
        width: 100%;
        transform: translate(-190%, -50%);
    }

    .main-content .text-content p {
        width: 450px;
    }

    .main-content .text-content .buttons {
        display: none;
    }

    .navbar-mobile {
        display: flex;
        align-items: center;
        justify-content: space-between;
        color: white;
        padding: 10px;
    }

    .navbar-mobile-right {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .navbar-mobile-right-home {
        transform: translate(-100%, 0);
    }

    .search-bar {
        flex-grow: 1;
        position: relative;
    }

        .search-bar input {
            width: 100%;
            padding: 5px 25px;
            border-radius: 20px;
            border: 1px solid #ccc;
            outline: none;
            background: white;
        }

        .search-bar i {
            position: absolute;
            left: 10px;
            top: 50%;
            transform: translateY(-50%);
            color: #aaa;
        }

    .icons {
        display: flex;
        gap: 10px;
        align-items: center;
    }

    .menu-mobile {
        width: 100%;
        margin: 0 auto;
        box-sizing: border-box;
        background: white;
        z-index: 999;
        position: absolute;
    }

    .menu-mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
        border-bottom: 1px solid #ddd;
    }

        .menu-mobile-header h1 {
            font-size: 18px;
            margin: 0;
        }

        .menu-mobile-header .close {
            font-size: 18px;
            cursor: pointer;
        }

    .menu-mobile-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
        border-bottom: 1px solid #ddd;
        cursor: pointer;
    }

        .menu-mobile-item i {
            margin-right: 10px;
        }

        .menu-mobile-item:last-child {
            border-bottom: none;
        }

    .submenu-mobile {
        display: none;
    }

    .submenu-mobile-item {
        width: 100%;
        background-color: #eaf4ff;
        padding: 20px;
    }

    .submenu-mobile a {
        color: #848484;
        text-decoration: none;
    }

    .menu-mobile-footer {
        padding-top: 20px;
    }

        .menu-mobile-footer a {
            display: block;
            padding: 10px;
            color: #000;
            text-decoration: none;
        }

    .menu-mobile-footer-bottom {
        margin-top: 10px;
        /* padding-top: 20px;
    color: #888; */
    }

        .menu-mobile-footer-bottom a {
            color: #848484;
        }

    .menu-mobile.active {
        display: block;
        right: 0px;
    }

    .menu-mobile-item.active {
        background: #0052b4;
        color: white;
    }
    .img-mobile {
        position: relative;
        width: 16px;
        height: 16px;
      
    }
    .img-mobile1 {
        position: relative;
        width: 16px;
        height: 16px;
        filter: invert(1);
    }

}
@media (max-width: 1023px) {
    .navbar {
        display: none;
    }
    #logoimg {
        transform: translate(-276%, -1%);
    }
    .card-controls {
        display: none;
    }

    .cards {
        transform: translate(-25%, 50%);
    }
    .img-mobile{
    position: relative;
    width: 16px;
    height: 16px;
    }
    .img-mobile1 {
        position: relative;
        width: 16px;
        height: 16px;
        filter: invert(1);
    }
    .menu {
        height: auto;
    }

    .main-content .text-content .text-content-main {
        flex-direction: row;
        max-width: 500px;
        display: block;
        width: 100%;
        font-size: 29px;
    }

    .text-content {
        max-width: 100%;
        width: 100%;
        transform: translate(-150%, -50%);
    }

    .main-content .text-content p {
        width: 450px;
    }

    .main-content .text-content .buttons {
        display: none;
    }

    .navbar-mobile {
        display: flex;
        align-items: center;
        justify-content: space-between;
        color: white;
        padding: 10px;
    }

    .navbar-mobile-right {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .navbar-mobile-right-home {
        transform: translate(-100%, 0);
    }

    .search-bar {
        flex-grow: 1;
        position: relative;
    }

        .search-bar input {
            width: 100%;
            padding: 5px 25px;
            border-radius: 20px;
            border: 1px solid #ccc;
            outline: none;
            background: white;
        }

        .search-bar i {
            position: absolute;
            left: 10px;
            top: 50%;
            transform: translateY(-50%);
            color: #aaa;
        }

    .icons {
        display: flex;
        gap: 10px;
        align-items: center;
    }

    .menu-mobile {
        width: 100%;
        margin: 0 auto;
        box-sizing: border-box;
        background: white;
        z-index: 999;
        position: absolute;
    }

    .menu-mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
        border-bottom: 1px solid #ddd;
    }

        .menu-mobile-header h1 {
            font-size: 18px;
            margin: 0;
        }

        .menu-mobile-header .close {
            font-size: 18px;
            cursor: pointer;
        }

    .menu-mobile-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
        border-bottom: 1px solid #ddd;
        cursor: pointer;
    }

        .menu-mobile-item i {
            margin-right: 10px;
        }

        .menu-mobile-item:last-child {
            border-bottom: none;
        }

    .submenu-mobile {
        display: none;
    }

    .submenu-mobile-item {
        width: 100%;
        background-color: #eaf4ff;
        padding: 20px;
    }

    .submenu-mobile a {
        color: #848484;
        text-decoration: none;
    }

    .menu-mobile-footer {
        padding-top: 20px;
    }

        .menu-mobile-footer a {
            display: block;
            padding: 10px;
            color: #000;
            text-decoration: none;
        }

    .menu-mobile-footer-bottom {
        margin-top: 10px;
        /* padding-top: 20px;
    color: #888; */
    }

        .menu-mobile-footer-bottom a {
            color: #848484;
        }

    .menu-mobile.active {
        display: block;
    }

    .menu-mobile-item.active {
        background: #0052b4;
        color: white;
    }
}
@media screen and (max-width: 767px) {
    header {
        height: 500px;
    }
    .navbar {
        display: none;
    }
    #logoimg {
        transform: translate(12%, -1%);
    }
    .menu {
        display: none;
    }

    .card-controls {
        display: none;
    }

    .navbar-mobile {
        display: block;
    }
    .navbar-mobile-right {
        transform: translate(0, 0);
    }
    header {
        height: 500px;
    }

    .main-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
        /* fix */
        .main-content .cards {
            position: absolute !important;
            bottom: -10%;
            right: 0;
            z-index: 1;
            transform: translate(0, 0);
        }

            .main-content .cards .card {
                width: 158px;
                height: 217px;
                gap: 0px;
                opacity: 0px;
                flex-shrink: 0;
            }

                .main-content .cards .card:last-child {
                    width: 187px;
                    height: 253px;
                    gap: 0px;
                    opacity: 0px;
                    flex-shrink: 0;
                }

    .text-content {
        transform: translateY(-100px);
        max-width: 350px;
        margin: 0 auto;
    }
    .main-content .cards {
        display: none;
    }
    .main-content .text-content .text-content-main {
        display: flex;
        /*        flex-direction: row;*/
        margin-bottom: 20px;
        line-height: normal;
        color: white;
        font-weight: normal;
    }

        .main-content .text-content .text-content-main span {
            font-size: 24px;
            font-weight: 500;
        }

    .main-content .text-content p {
        font-size: 16px;
        margin-bottom: 20px;
        font-weight: normal;
        line-height: normal;
        width: 300px;
    }

    .buttons {
        display: none !important;
    }

    .navbar-mobile {
        display: flex;
        align-items: center;
        justify-content: space-between;
        color: white;
        padding: 10px;
    }

    .navbar-mobile-right {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .search-bar {
        flex-grow: 1;
        position: relative;
        left: 13px;
    }

        .search-bar input {
            width: 90%;
            padding: 5px 25px;
            border-radius: 20px;
            border: 1px solid #ccc;
            outline: none;
            background: white;
        }

        .search-bar i {
            position: absolute;
            left: 10px;
            top: 50%;
            transform: translateY(-50%);
            color: #aaa;
        }

    .icons {
        display: flex;
        gap: 10px;
        align-items: center;
    }

    .menu-mobile {
        width: 100%;
        margin: 0 auto;
        box-sizing: border-box;
        background: white;
        z-index: 999;
        position: absolute;
    }

    .menu-mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
        border-bottom: 1px solid #ddd;
    }

        .menu-mobile-header h1 {
            font-size: 18px;
            margin: 0;
        }

        .menu-mobile-header .close {
            font-size: 18px;
            cursor: pointer;
        }

    .menu-mobile-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
        border-bottom: 1px solid #ddd;
        cursor: pointer;
    }

        .menu-mobile-item i {
            margin-right: 10px;
        }

        .menu-mobile-item:last-child {
            border-bottom: none;
        }

    .submenu-mobile {
        display: none;
    }

    .submenu-mobile-item {
        width: 100%;
        background-color: #eaf4ff;
        padding: 20px;
    }

    .submenu-mobile a {
        color: #848484;
        text-decoration: none;
    }

    .menu-mobile-footer {
        padding-top: 20px;
    }

        .menu-mobile-footer a {
            display: block;
            padding: 10px;
            color: #000;
            text-decoration: none;
        }

    .menu-mobile-footer-bottom {
        margin-top: 10px
    }

        .menu-mobile-footer-bottom a {
            color: #848484;
        }

    /*           .menu-mobile-footer a:last-child {
                padding-top: 20px;
                color: #888;
            }*/

    .menu-mobile.active {
        display: block;
        right: 3px;
    }

    .menu-mobile-item.active {
        background: #0052b4;
        color: white;
    }

    .img-mobile {
        position: relative;
        width: 16px;
        height: 16px;
    }

    .polygon-mobile {
        filter: invert(1);
    }
  .mobile-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.mobile-dropdown-content {
    display: none;
    background-color: #f9f9f9;
}
    .dropdown-menu {
        display: none;
    }

    .dropdown-toggle.active + .dropdown-menu {
        display: block;
    }

.mobile-dropdown-content a {
    padding-left: 30px;
    font-size: 0.95em;
}

.mobile-dropdown-content.active {
    display: block;
}

}

