﻿a {
    text-decoration: none !important;
}
.btn-white {
    border: 1px solid rgba(39,64,109,.22);
    border-radius: 5px;
    font-size: 15px;
    /*color: #27406d;*/
    font-weight: 600;
    text-transform: uppercase;
    padding: 2px 24px;
    display: inline-block;
}
.btn-white:hover {
    background: #31476c;
    color: #fff;
}
.btn-blue {
    text-transform: uppercase;
    border-radius: 4px;
    color: #fff;
    background: #0098da;
    border: none;
}
/*menu*/
.right .btn-white {
    margin-top: 8px;
    margin-right: 16px;
    float: left;
}
.header .left .bar1, .header .left .bar2, .header .left .bar3 {
    width: 25px;
    height: 3px;
    background-color: #666;
    margin: 6px 0;
    transition: .4s;
}

.header {
    width: 100%;
    height: 50px;
}

    .header.fixed {
        position: fixed;
        top: 0px;
        z-index: 1001;
        /*border-bottom: 1px solid #ebebeb;*/
        box-shadow: 0 0px 8px 0 rgba(0,0,0,.3);
    }

    .header .left {
        width: 20%;
        background: #fff;
        float: left;
        height: 100%;
        border-bottom: 1px solid #ebebeb;
    }

        .header .left .ic-menu-bar {
            float: left;
            margin: 8px 16px;
            display: none;
        }

        .header .left .bar1,
        .header .left .bar2,
        .header .left .bar3 {
            width: 25px;
            height: 3px;
            background-color: #666;
            margin: 6px 0;
            transition: 0.4s;
        }

        /* Rotate first bar */
        .header .left .change .bar1 {
            -webkit-transform: rotate(-45deg) translate(-6px, 6px);
            transform: rotate(-45deg) translate(-6px, 6px);
        }

        /* Fade out the second bar */
        .header .left .change .bar2 {
            opacity: 0;
        }

        /* Rotate last bar */
        .header .left .change .bar3 {
            -webkit-transform: rotate(45deg) translate(-7px, -7px);
            transform: rotate(45deg) translate(-7px, -7px);
        }

        .header .left img {
            margin-top: 4px;
            margin-left: 16px;
        }

    .header .center {
        width: 55%;
        background: #fff;
        float: left;
        height: 100%;
        float: left;
        border-bottom: 1px solid #ebebeb;
        /*position:relative;*/
    }

    .header .right {
        width: 25%;
        background: #fff;
        display: inline-block;
        height: 100%;
        text-align: right;
        border-bottom: 1px solid #ebebeb;
    }

        .header .right .Logged {
            float: right;
        }

        .header .right a:first-child {
            float: left;
            margin-top: 12px;
        }

.center .menu-bar {
    list-style: none;
    margin: 0;
}

    .center .menu-bar li a {
        float: left;
        padding: 16px;
        font-size: 14px;
        color: #27406d;
        text-transform: uppercase;
    }

.right .info-login {
    /*display: inline-block;*/
    float: left;
}

    .right .info-login .image {
        width: 32px;
        height: 32px;
        float: left;
        border-radius: 50%;
        margin-right: 8px;
        /*margin-top: -8px;*/
        /*margin-top: -6px;*/
        margin-top: 8px;
        overflow: hidden;
        border: 1px solid #e8e8e8;
        text-align: center;
        background: url(https://static.homedy.com/src/images/icon/icon-desktop.png);
        background-position: 0 -64px;
    }

        .right .info-login .image img {
            /*width: 100%;*/
            /*height: auto;*/
            margin-top: 3px;
        }

    .right .info-login .name {
        display: inline-block;
        margin-right: 8px;
        position: relative;
    }

        .right .info-login .name a {
            font-size: 15px;
            color: #27406d;
            position: relative;
        }

        .right .info-login .name .full-name {
            /*padding: 12px 0;*/
            max-width: 90px;
            overflow: hidden;
            white-space: nowrap;
            display: inline-block;
            margin-bottom: -3px;
            padding: 14px 0;
            padding-right: 16px;
            margin-top: 0;
        }

            .right .info-login .name .full-name:after {
                content: "";
                background: url(https://static.homedy.com/src/images/icon/icon-desktop.png) no-repeat center;
                background-position: -90px -70px;
                width: 16px;
                height: 16px;
                position: absolute;
                right: -3px;
                top: 15px;
                /*top: 12px;*/
                background-color: #FFF;
            }

            .right .info-login .name .full-name:hover + .parent-menu, .right .info-login .name .parent-menu:hover {
                display: block;
            }

        .right .info-login .name .parent-menu {
            display: none;
            position: absolute;
            top: 40px;
            /*right:0;*/
            width: 180px;
            background: #fff;
            border: 1px solid #e8e8e8;
            text-align: left;
            border-radius: 4px;
        }

            .right .info-login .name .parent-menu li a {
                display: block;
                padding: 8px 12px;
                float: unset;
                margin-top: 0;
            }

            .right .info-login .name .parent-menu li:not(:last-child) {
                border-bottom: 1px solid #f5f5f5;
            }

            .right .info-login .name .parent-menu li a:hover {
                background: #f5f5f5;
            }

            .right .info-login .name .parent-menu:before {
                content: '';
                position: absolute;
                top: 0;
                left: 10%;
                width: 0;
                height: 0;
                border: 5px solid transparent;
                border-bottom-color: #fff;
                border-top: 0;
                margin-left: -5px;
                margin-top: -5px;
                z-index: 1;
            }

            .right .info-login .name .parent-menu:after {
                content: '';
                position: absolute;
                top: 0;
                left: 10%;
                width: 0;
                height: 0;
                border: 6px solid transparent;
                border-bottom-color: #c8c8c8;
                border-top: 0;
                margin-left: -6px;
                margin-top: -6px;
            }

    .right .info-login .red {
        padding: 0px 8px;
        border-radius: 20px;
        color: #fff;
        background: red;
        margin-left: 8px;
    }

.right .not-logged-in {
    /*float: left;*/
    /*width: calc(100% - 150px);*/
    text-align: right;
    /*padding: 16px 0;*/
    display: inline-block;
    margin-right: 8px;
    float: left;
    position: relative;
}

    .right .not-logged-in a {
        color: #27406d;
        margin-top: 0 !important;
        padding: 16px 4px;
    }

        .right .not-logged-in a:hover {
            color: #4c98da;
        }

    .right .not-logged-in .login-button:hover + .popup-hidden,
    .right .not-logged-in .popup-hidden:hover {
        display: block;
    }

    .right .not-logged-in .popup-hidden {
        position: absolute;
        z-index: 1;
        top: 45px;
        right: 0;
        box-shadow: 0px 2px 4px 0px rgba(0,0,0,.3);
        background: #fff;
        width: 120px;
        border-radius: 3px;
        -moz-border-radius: 3px;
        -webkit-border-radius: 3px;
        display: none;
    }

        .right .not-logged-in .popup-hidden a {
            padding: 12px 8px;
            width: 100%;
            box-sizing: border-box;
        }

            .right .not-logged-in .popup-hidden a:hover {
                /*background: #f5f5f5;*/
            }

        .right .not-logged-in .popup-hidden::before {
            content: '';
            position: absolute;
            top: 0;
            right: calc(20% + 1px);
            width: 0;
            height: 0;
            border: 5px solid transparent;
            border-bottom-color: #fff;
            border-top: 0;
            margin-left: -5px;
            margin-top: -5px;
            z-index: 1;
        }

        .right .not-logged-in .popup-hidden::after {
            content: '';
            position: absolute;
            top: 0;
            right: 20%;
            width: 0;
            height: 0;
            border: 6px solid transparent;
            border-bottom-color: #c8c8c8;
            border-top: 0;
            margin-left: -6px;
            margin-top: -6px;
        }
/*Menu dropdown*/
/*Strip the ul of padding and list styling*/
#menu-bar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    position: absolute;
}

/*Create a horizontal list with spacing*/
#menu-bar li {
    float: left;
    margin-right: 1px;
}

    #menu-bar li.logged-in-option {
        display: none;
    }

    /*Style for menu links*/
    #menu-bar li a {
        display: block;
    }

    /*Hide dropdown links until they are needed*/
    #menu-bar li ul {
        display: none;
        background-color: #fff;
        /*border: 1px solid #c8c8c8;*/
        position: absolute;
        top: 49px;
        /*left: 0;*/
        border-radius: 4px;
        z-index: 2;
        box-shadow: 0 8px 16px 0 rgba(0,0,0,.2);
        max-width: 220px;
    }

        #menu-bar li ul.parent-menu::after {
            content: '';
            position: absolute;
            top: 0;
            left: 25%;
            width: 0;
            height: 0;
            border: 6px solid transparent;
            border-bottom-color: #c8c8c8;
            border-top: 0;
            margin-left: -6px;
            margin-top: -6px;
        }

        #menu-bar li ul.parent-menu::before {
            content: '';
            position: absolute;
            top: 0;
            left: 25%;
            width: 0;
            height: 0;
            border: 5px solid transparent;
            border-bottom-color: #fff;
            border-top: 0;
            margin-left: -5px;
            margin-top: -5px;
            z-index: 1;
        }

    #menu-bar li:nth-child(2) ul.parent-menu::before, #menu-bar li:nth-child(2) ul.parent-menu::after {
        left: 16%;
    }
    /*Make dropdown links vertical*/
    #menu-bar li ul li {
        display: block;
        float: none;
    }

        #menu-bar li ul li a {
            /*border-bottom: 1px solid #e8e8e8;*/
            /*width: calc(100% - 20px);*/
            white-space: nowrap;
            padding: 10px;
            float: none;
            position: relative;
        }

            #menu-bar li ul li a:hover {
                background: #f5f5f5;
                color: #4c98da;
            }

    #menu-bar li a.active {
        color: #4c98da;
        font-weight: 500;
    }
/*Display the dropdown on hover*/
#menu-bar ul li a:hover + .parent-menu, #menu-bar .parent-menu:hover {
    display: block;
}

.menu-bar .parent-menu .sub-menu {
    position: absolute;
    /*top: -1px !important;*/
    max-width: unset !important;
    /*width: 250px;*/
    left: 100%;
    background: #f5f5f5 !important;
    top: auto !important;
    margin-top: -38px !important;
    overflow: hidden;
}

    .menu-bar .parent-menu .sub-menu .menu-item a {
        border-bottom: 1px solid #e8e8e8;
    }

.menu-bar .parent-menu .parent-item {
    display: inline-block !important;
    width: 100%;
    padding: 0;
    margin: 0;
    border-bottom: 1px solid #e8e8e8;
}

    .menu-bar .parent-menu .parent-item .arrow-left {
        position: absolute;
        top: 12px;
        right: 4px;
        width: 20px;
        height: 20px;
        background: url(https://static.homedy.com/src/images/icon/icon-desktop.png) no-repeat center;
        background-position: -35px -51px;
        background-size: 601%;
        opacity: 0.6;
    }

    .menu-bar .parent-menu .parent-item a:hover + .sub-menu,
    .sub-menu:hover {
        display: block !important;
    }

.accordion,
.header .center .login-mobile {
    display: none;
}
/*yêu thích*/

.wishlist {
    /*display: none;*/
    width: 20px;
    /* height: 20px; */
    /* float: left; */
    margin-right: 20px;
    /* margin-top: 15px; */
    /* overflow: hidden; */
    text-align: center;
    position: relative;
    padding-top: -3px;
    display: inline-block;
    /* margin-bottom: -1px; */
    top: 6px;
}

.count-wishlist {
    position: absolute;
    top: -6px;
    width: 22px;
    background: #d00;
    color: #fff;
    margin-left: -8px;
    text-align: center;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
}

.wish-list-mobile {
    display: none;
}
@media(max-width: 1024px) {
    .header.fixed {
        text-align: center;
        width: 100%;
    }

    .header .left .ic-menu-bar {
        display: block;
        position: absolute;
        z-index: 9999;
    }

    .header .left {
        width: 100%;
    }

    .header .right {
        display: none;
    }

    .header .center {
        position: fixed;
        height: 100%;
        background: #fff;
        width: 250px;
        top: 0;
        /*top: 30px;*/
        left: -250px;
        z-index: 1;
        transition: 0.5s;
        padding-top: 50px;
        border-right: 1px solid #e8e8e8;
    }

        .header .center .post-product {
            display: block !important;
            position: absolute;
            top: 8px;
            right: 8px;
            padding: 8px 16px;
            font-size: 13px;
        }

        .header .center .login-mobile {
            /*display: block !important;
            position: absolute;
            top: 8px;
            right: 8px;*/
            display: block;
            border-top: 1px solid #ebebeb;
        }

            .header .center .login-mobile a {
                padding: 16px 0px;
                display: inline-block !important;
                width: 49% !important;
                text-transform: uppercase;
                text-align: center;
                /*float:left;*/
            }

                .header .center .login-mobile a:first-child {
                    border-right: 1px solid #ebebeb;
                }


    #menu-bar ul {
        position: unset;
        overflow: auto;
        /*height: calc(100% - 100px);*/
        position: relative;
        height: auto;
    }

    #menu-bar nav {
        position: unset;
        overflow: auto;
        height: calc(100% - 100px);
        position: relative;
    }

    #menu-bar li {
        width: 99% !important;
        float: none !important;
        display: inline-block !important;
        text-align: left;
        border-top: 1px solid #E8E8E8;
        position: relative;
    }

        #menu-bar li ul li a {
            border: unset;
            width: 100% !important;
        }
    
    #menu-bar li a {
        /*width: auto;*/
        width: calc(100% - 64px)
    }

    .accordion {
        display: block;
        border: none;
        background: #fff;
        color: #8493a8;
        font-size: 22px;
        position: absolute;
        right: 6px;
        top: 4px;
        margin-top: 12px;
        width: 22px;
        height: 22px;
        background: url(https://static.homedy.com/src/images/icon/icon-desktop.png);
        background-position: -294px -95px;
        opacity: 0.5;
    }

        .accordion:focus {
            outline: none;
        }

        .accordion.animate {
            -webkit-transform: rotate(-90deg);
            transform: rotate(90deg);
            transition: .5s;
        }

    #menu-bar li ul {
        display: block;
        transition: max-height 0.2s ease-out;
        position: unset;
        max-height: 0;
        overflow: hidden;
        background: #f5f5f5;
        border-radius: 0;
        border: none;
        width: 100%;
        margin-bottom: -3px;
        max-width: unset;
        box-shadow: none;
    }

        #menu-bar li ul.parent-menu:before,
        #menu-bar li ul.parent-menu:after {
            content: none;
        }

        #menu-bar li ul.parent-menu li a {
            color: #54657e;
        }

    .header .center .box-bottom {
        display: block !important;
        position: absolute;
        height: 50px;
        /*background: #27406d;*/
        z-index: 2;
        bottom: 50px;
        left: 0;
        width: 100%;
        background: #fff;
    }

        .header .center .box-bottom .ic {
            width: 24px;
            height: 24px;
            float: left;
            margin-left: 12px;
            margin-top: 12px;
            /*border: 1px solid #27406d;*/
        }

            .header .center .box-bottom .ic.ic-facebook {
                background: url('../images/icon/ic-orther-menu.png') no-repeat;
                background-position-x: -2px;
                /*border: 1px solid #27406d;*/
            }

            .header .center .box-bottom .ic.ic-youtube {
                background: url('../images/icon/ic-orther-menu.png') no-repeat;
                background-position-x: -42px;
                /*border: 1px solid #27406d;*/
            }

            .header .center .box-bottom .ic.ic-call {
                background: url('../images/icon/ic-orther-menu.png') no-repeat;
                background-position-x: -82px;
                /*border: 1px solid #27406d;*/
            }

            .header .center .box-bottom .ic.ic-email {
                background: url('../images/icon/ic-orther-menu.png') no-repeat;
                background-position-x: -119px;
                /*border: 1px solid #27406d;*/
            }

    .menu-bar .parent-menu .parent-item .arrow-left {
        display: none !important;
    }

    .menu-bar .parent-menu .sub-menu {
        position: unset !important;
        /*transition: max-height .2s ease-out;*/
        max-height: 0;
        margin-top: unset !important;
        background: #e8e8e8 !important;
    }

    .menu-bar .parent-item .accordion {
        top: -5px;
    }

    .menu-bar .parent-menu .parent-item {
        border-bottom: none;
    }
}