header{
    background: #fff;
    color: #263b7e;
    font-family: SCG-Reg;
    font-size: 18px;
    position: relative;
    z-index: 100;
	position: fixed;
	width:100%;
}


.navbar{
    border-bottom: 1px solid #c9c9c9;
}

.navbar-right{
    float: left;
    text-align: right;
}

.navbar-right::before,
.navbar-right::after{
    content: " ";
    display: table;
}

.navbar-right-top{
    background: #3f3f3f;
    display: inline-flex;
    font-size: 14px;
}

.navbar-right-top .narbar-short .narbar-short-item{
    border-right: 1px solid #fff;
    display: inline-block;
}

.navbar-right-top .narbar-short .narbar-short-item a{
    color: #fff;
    display: block;
    padding:  7px 24px;
    text-decoration: none;
}

.navbar-right-top .narbar-short .narbar-short-item:last-child{
    border-right: 0;
}

.navbar-right-top  .narbar-signin{
    align-items: center;
    background: #8b8b8b;
    cursor: pointer;
    padding: 0 24px;
}

.navbar-right-top  .narbar-signin a{
   color: #fff;
   margin: 6px 0;
   text-decoration: none;
}

.navbar-right-top  .narbar-signin img{
    height: 24px;
    margin-left: 5px;
}

.navbar-right-top .narbar-language{
    align-items: center;
    background: #6e6e6e;
    cursor: pointer;
    /* padding: 0 24px; */
    padding: 7px 24px;
}

.navbar-right-top .narbar-language img{
    height: 24px;
}

.navbar-right-bottom{
    background: #ed2324;
    display: flex;
}

.navbar-right-bottom .navbar-main,
.navbar-right-bottom .navbar-search,
.navbar-right-bottom .navbar-cart,
.navbar-right-top .narbar-short,
.navbar-right-top .narbar-signin,
.navbar-right-top .narbar-language{    
    align-items: center;
    display:  inline-flex;
    position: relative;
    justify-content: center;
    vertical-align: middle;
}

.navbar-right-bottom .navbar-main .navbar-main-item{
    border: 1px solid #ed2324;
    border-bottom: 0;
    border-right: 1px solid #fff;
    cursor: pointer;
    display: inline-block;
    height: 100%;
    padding: 20px 24px;
    white-space: nowrap;
}

.navbar-right-bottom .navbar-main .navbar-main-item.active{
    background: #fff;
    border: 1px solid #c9c9c9;
    border-bottom: 0;
    color: #ed2324;
}

.navbar-right-bottom .navbar-search{
    padding: 0 16px;
}

.navbar-right-bottom .navbar-search input{
    background-image: url(../../images/icon/magnifying_glass_red_16_x_16.png);
    background-repeat: no-repeat;
    background-position: right 15px center;
    border: none;
    border-radius: 20px;
    font-size: 16px;
    outline: none;
    padding: 5px 15px;
    vertical-align: middle;
    font-family: SCG-Reg;
    color: gray;
    width: 100%;
}

.navbar-right-bottom .navbar-cart{
    padding-right: 14px;
}

.navbar-right-bottom .navbar-cart a{
    color: #fff;
    text-decoration: none;
}

.navbar-right-bottom .navbar-cart a span{
    border: 1px solid #fff;
    border-radius: 50%;
    display: inline-block;
    font-size: 20px;
    margin-left: .5rem;
    min-width: 32px;
    padding: 0 9px;
    text-align: center;
}

.navbar-right-bottom .narbar-search-cart{
    padding: 5px 0;
}

.narbar-main-wrapper{
    background: #fff;
    border-bottom: 1px solid #c9c9c9;
    border-left: 1px solid #c9c9c9;
    border-right: 1px solid #c9c9c9;
    color: #000;
    display: none;
    font-size: 20px;
    position: absolute;
    width: 100%;
    z-index: 100;
}

.narbar-main-wrapper.open{
    display: block
}

.narbar-main-wrapper .main-category{
    display: none;
}

.narbar-main-wrapper .main-category.open{
    display: flex;
    -webkit-animation: slide-down .3s ease-out;
    -moz-animation: slide-down .3s ease-out;
}

.narbar-main-wrapper .main-category .main-category-title
,.narbar-main-wrapper .main-category .main-category-title-primary
,.narbar-main-wrapper .main-category a.main-category-title-primary{
    background: #ed2324;
    color: #fff;
    font-size: 20px;
    padding: 0 15px;
    text-decoration: none;
}

.narbar-main-wrapper .main-category a:active
,.narbar-main-wrapper .main-category a:hover{
    text-decoration: none;
}

.narbar-main-wrapper .main-category .main-category-list{
    max-width: 20%;
    width: 100%;
}

.narbar-main-wrapper .main-category .main-category-detail {
    display: flex;
    height: 404px;
    max-width: 80%;
    overflow-y: auto;
    width: 100%;
}

.narbar-main-wrapper .main-category .main-category-detail .main-category-detail-list{
    max-width: 75%;
    width: 100%;
}

.narbar-main-wrapper .main-category .main-category-detail .main-category-detail-image{
    max-width: 25%;
    padding: 10px;
    width: 100%;
}

.narbar-main-wrapper .main-category .main-category-detail .main-category-detail-list{
    align-content: baseline;
    display: flex;
    flex-wrap: wrap;
}

.narbar-main-wrapper .main-category .main-category-detail .main-category-detail-list .main-category-sublist-item-title {
    max-width: 33.333333%;
    width: 100%;
}

.narbar-main-wrapper .main-category .main-category-detail .main-category-detail-list .main-category-sublist-item-title.item-lv-1 {}
.narbar-main-wrapper .main-category .main-category-detail .main-category-detail-list .main-category-sublist-item-title.item-lv-1 a:hover{
    background-color: #ed2324;
    color: #fff;
}

.narbar-main-wrapper .main-category .main-category-detail .main-category-detail-list .main-category-sublist-item-title.item-lv-1 .item-lv-2,
.narbar-main-wrapper .main-category .main-category-detail .main-category-detail-list .main-category-sublist-item-title.item-lv-1 .item-lv-2 .item-lv-3 {
    font-size: 14px;
    margin-left: 15px;
}

.narbar-main-wrapper .main-category .main-category-detail .main-category-detail-list .main-category-sublist-item-title.item-lv-1 .item-lv-2 a:hover{
    background-color: unset;
    color: #ed2324;
}

.narbar-main-wrapper .main-category .main-category-detail .main-category-detail-list .main-category-sublist-item-title.item-lv-1 .item-lv-2 a,
.narbar-main-wrapper .main-category .main-category-detail .main-category-detail-list .main-category-sublist-item-title.item-lv-1 .item-lv-2 .item-lv-3 a {
    line-height: 30px;
    padding: 0 15px;
}

.narbar-main-wrapper .main-category .main-category-detail .main-category-detail-list .main-category-sublist-item-title a{
    color: #232323;
    display: block;
    font-family: SCG-Reg;
    font-size: 14px;
    padding: 10px 15px;
    text-decoration: none;
}

.narbar-main-wrapper .main-category .main-category-detail .main-category-detail-list .main-category-sublist .main-category-sublist-item-title a:hover{
    color: #ed2324;
}

.narbar-main-wrapper .main-category .main-category-list .main-category-list-item{    
    border-bottom: 1px solid #c9c9c9;
    border-right: 1px solid #c9c9c9;
    vertical-align: top;
}

.narbar-main-wrapper .main-category .main-category-list .main-category-list-item:last-child{    
    border-bottom: 0;
}

.narbar-main-wrapper .main-category .main-category-list .main-category-list-item .main-category-list-title a{
    background: #ed2324;
    color: #fff;
    display: block;
    font-family: SCG-Reg;
    font-size: 16px;
    padding: 10px 15px;
    text-decoration: none;
}

.narbar-main-wrapper .main-category .main-category-list .main-category-list-item .main-category-list-title a:hover{
    background: #3b3b3b;
	
}

.narbar-main-wrapper .main-category .main-category-list .main-category-list-item .main-category-list-title a.detail{
    background-image: url(../../images/icon/right_arrow_white_16_x_16.png);
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.narbar-main-wrapper .main-category .main-category-list .main-category-list-item .main-category-list-title a.active{
    background-color: #ffffff;
    background-image: url(../../images/icon/right_arrow_red_16_x_16.png);
    background-repeat: no-repeat;
    background-position: right 10px center;
	color: #ed2324;
}

/*
.narbar-main-wrapper .main-category .main-category-list .main-category-list-item .main-category-list-title-unlink a{
    background: #ed2324;
    color: #fff;
    display: block;
    font-family: SCG-Reg;
    font-size: 16px;
    padding: 10px 15px;
    text-decoration: none;
}
*/

.narbar-main-wrapper .main-category .main-category-list .main-category-list-item .main-category-sublist{
    display: none;
}

.narbar-main-wrapper .main-category .main-category-list .main-category-list-item .main-category-sublist .main-category-sublist-title{
    color: #333;
    font-family: SCG-Reg;    
    padding: 5px;
}

.narbar-main-wrapper .main-category .main-category-list .main-category-list-item .main-category-sublist .main-category-sublist-item a{
    color: #232323;
    display: block;
    padding: 5px;
    text-decoration: none;
    font-size: 14px;
}

.logo-img{
    width: 150px; 
}

.line-bottom hr{
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    border: 0;
    border-top: 1px solid rgba(0,0,0,.1);
}

.text-keywords {
    padding: 0 7px 0 7px;
    color: #232323;
}

.navbar-bottom{
    align-items: center;
    background: #ed2324;
    display: flex;
    width: 100%;
    font-family: SCG-Reg;
    font-size: 14px;
}

.navbar-bottom .navbar-main{
    width: 185px;
}

.navbar-bottom .navbar-main .navbar-main-item{
    border-right: 1px solid #fff;
    cursor: pointer;
    padding: 10px 15px;
    text-align: center;
}

.navbar-bottom .navbar-keyword{
    font-size: 14px;
    margin-bottom: 5px;
    padding: 0 15px;
    text-align: left;
}

.navbar-bottom .navbar-keyword ul{
    display: inline-block;    
    margin: 0;
    padding: 0;
}

.navbar-bottom .navbar-keyword ul li{
    border-right: 1px solid #fff;
    cursor: pointer;        
    display: inline-block;
    padding-right: 5px;
}

.navbar-bottom .navbar-keyword ul li a{
    color: white;
    padding: 0px 0px 0px 5px;
    text-decoration: none;

}

.cart-dialog-content{
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-left: 15px;
    padding-right: 15px;
}

.cart-dialog{
    font-family : SCG-Bol;
    font-size   : 12px;
    padding     : 10px; 
    width       : 400px;
    height      : auto;
}

.cart-dialog:after{
    position: absolute;
    top: -6px;
    left: auto;
    right: 47px;
    content: '';
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #fff;
    display: inline-block;
}

.cart-dialog .cart-dialog-title{
    font-size: 13px;
}

.cart-dialog .price{
    color: #ed2324;
    display: block;
    padding-left: 5px;
    font-size: 14px;
}

.cart-dialog .discount-price{
    display: block; 
    padding-left: 5px;
    padding-bottom: 5px;
}

.cart-dialog .purchase-size::before{
    content: " ( ";
}

.cart-dialog .purchase-size::after{
    content: " ) ";
}

.cart-dialog .cart-dialog .discount{
    padding-left: 10px;
}

.cart-dialog .purchase-unit::before{
    padding-left: 5px;
    padding-bottom: 5px;
    content: "จำนวน: ";
}

.cart-dialog .per-unit-txt::after{
    content: " บาท / ชิ้น";
}

.cart-dialog .bin{
    cursor:pointer;
}

.cart-dialog .cart-dialog-summary .text{
    font-size: 14px;
}

.cart-dialog .cart-dialog-summary .text:after{
    content: ':';
}

.cart-dialog .cart-dialog-summary .price{
    padding-top: 0px;
}

ul.user-navbar{
    display: none;
    position: absolute;
    padding: 0;
    top: 100%;      
    width: 100%;
    z-index: 999999;
}

ul.user-navbar li{
    border-bottom: 1px solid #c9c9c9;
    list-style-type: none;
    text-align: left;
}

ul.user-navbar li:last-child{
    border-bottom: 0;
}

ul.user-navbar li a{
    background: #3f3f3f;
    
    display: block;
    margin: 0 !important;
    padding: 7px;
}

ul.user-navbar li a:hover{
    background-color: #fff;
    color: #ed2324;
}

.cart-dialog .unit_summary{
    color: #ed2324;
    display: block;
    font-size: 15px;
}
.cart-dialog .unit_summary:after{
    content: " รายการ";
}

.cart-dialog .price-summary{
    font-size: 15px;
}

.search-mobile{
    background-color: #f7f7f7;
    border-bottom-style: solid;
    border-bottom-color: #eeeeee;
    border-bottom-width: 2px;
    padding: 3px 0px;
    display: none;

}

.search-mobile.active{
    display: block;
}

@media (max-width: 992px){
    header{
        background: #fff;
        position: fixed;
        width: 100%;
    }

    .logo-img{
       /*  width: 70px;  */
    }

    .navbar-right-mobile-main{
        display: inline-flex;
    }

    .navbar-right-mobile-main .navbar-right-mobile-main-item{        
        border-right: 1px solid #c9c9c9;
        cursor: pointer;
        display: inline-flex;
    }

    .navbar-right-mobile-main .navbar-right-mobile-main-item:last-child{
        border-right: 0;
    }

    .navbar-right-mobile-main .navbar-right-mobile-main-item .navbar-search-mobile,
    .navbar-right-mobile-main .navbar-right-mobile-main-item .navbar-cart-mobile,
    .navbar-right-mobile-main .navbar-right-mobile-main-item .navbar-signin-mobile,
    .navbar-right-mobile-main .navbar-right-mobile-main-item .navbar-language-mobile,
    .navbar-right-mobile-main .navbar-right-mobile-main-item .navbar-hamburger{
        padding: 8px 6px 15px 8px;
    }

    .navbar-right-mobile-main .navbar-right-mobile-main-item .navbar-search-mobile{
        background-color: #fff;
        background-image: url(../../images/icon/magnifying_glass_gray_24_x_24.png);
        background-repeat: no-repeat;
        background-position: center;
        width: 39px;
    }

    .navbar-right-mobile-main .navbar-right-mobile-main-item .navbar-search-mobile.active{
        background-color: #8b8b8b;
        background-image: url(../../images/icon/magnifying_glass_24_x_24.png);
        background-repeat: no-repeat;
        background-position: center;
        width: 39px;
    }

    .navbar-hamburger {
        background: #ed2324;
        cursor: pointer;
        height: auto;
        position: relative;
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
        -webkit-transition: .5s ease-in-out;
        -moz-transition: .5s ease-in-out;
        -o-transition: .5s ease-in-out;
        transition: .5s ease-in-out;
        width: 54px;
    }

    .navbar-hamburger span {
        display: block;
        position: absolute;
        height: 3px;
        width: 24px;
        background: #fff;
        border-radius: 9px;
        opacity: 1;
        left: 15px;
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
        -webkit-transition: .25s ease-in-out;
        -moz-transition: .25s ease-in-out;
        -o-transition: .25s ease-in-out;
        transition: .25s ease-in-out;
    }

    .navbar-hamburger span:nth-child(1) {
        /*top: 19px;*/
        top: 14px;
    }

    .navbar-hamburger span:nth-child(2),
    .navbar-hamburger span:nth-child(3) {
        /*top: 29px;*/
        top: 24px;
    }

    .navbar-hamburger span:nth-child(4){
        /*top: 39px;*/
        top: 34px;
    }

    .navbar-hamburgerspan:nth-child(4) {
        top: 14px;
    }

    .navbar-hamburger.open span:nth-child(1) {
        /*top: 18px;*/
        top: 13px;
        width: 0%;
        left: 50%;
    }

    .navbar-hamburger.open span:nth-child(2) {
        -webkit-transform: rotate(45deg);
        -moz-transform: rotate(45deg);
        -o-transform: rotate(45deg);
        transform: rotate(45deg);
        /*top: 29px;*/
        top: 24px;
    }

    .navbar-hamburger.open span:nth-child(3) {
        -webkit-transform: rotate(-45deg);
        -moz-transform: rotate(-45deg);
        -o-transform: rotate(-45deg);
        transform: rotate(-45deg);
        /*top: 29px;*/
        top: 24px;
    }

    .navbar-hamburger.open span:nth-child(4) {
        /* top: 18px; */
        top: 13px;
        width: 0%;
        left: 50%;
    }

    /* .narbar-main{
        top: 51px;
    } */

    .narbar-main-wrapper .main-category {
        margin: 0px;
    }

    .narbar-main-wrapper .main-category .main-category-title {
        background: #ed2324 url(../../images/icon/add_white_16_x_16.png) no-repeat 90% 50%/11px auto;
        background-position: right 15px center;
        cursor: pointer;
        padding: 14px 15px;
        font-family: SCG-Reg;
        font-size: 14px;
    }

    .narbar-main-wrapper .main-category .main-category-title.active {
        background: #3b3b3b url(../../images/icon/remove_white_16_x_16.png) no-repeat 90% 50%/11px auto;
        background-position: right 15px center;
    }

    .narbar-main-wrapper .main-category .main-category-title-primary{
        cursor: pointer;
        padding: 14px 15px;
        font-family: SCG-Reg;
        font-size: 14px;
    }

    .narbar-main-wrapper .main-category a.main-category-title-primary{
        font-family: SCG-Reg;
        font-size: 14px;
        text-decoration: none;
    }

    .narbar-main-wrapper .main-category a:active,
    .narbar-main-wrapper .main-category a:hover {
        text-decoration: none;
    }

    .narbar-main-wrapper .main-category  .main-category-list{
        display: none;
    }

    .narbar-main-wrapper .main-category  .main-category-list.active{
        display: block;
    }

    .narbar-main-wrapper .main-category .main-category-list .main-category-list-item{
        border-right: 0;
        display: block;
        margin: 0;
        padding: 0;
        width: 100% !important;
    }

    .narbar-main-wrapper .main-category .main-category-list .main-category-list-item:nth-child(n + 6){
        padding-top: 0;
    }

    .narbar-main-wrapper .main-category .main-category-list .main-category-list-item .main-category-list-title a{
        background: #fff url(../../images/icon/add_dark_gray_16_x_16.png) no-repeat 90% 50%/11px auto;
        color: #3b3b3b;
        font-family: SCG-Reg;
        font-size: 14px;
        padding: 7px 15px;
        font-size: 13px;
        height: 37px;
    }

    .narbar-main-wrapper .main-category .main-category-list .main-category-list-item .main-category-list-title a:hover{
        background: transparent;
        color: #3b3b3b;
    }

    .narbar-main-wrapper .main-category .main-category-list .main-category-list-item .main-category-list-title a.active{
        background: #fff;
        color: #ed2324;
    }

    .narbar-main-wrapper .main-category .main-category-list .main-category-list-item .main-category-list-title a.detail{
        background: url(../../images/icon/add_dark_gray_16_x_16.png) no-repeat 90% 50%/11px auto;
        background-position: right 15px center;
    }
    
    .narbar-main-wrapper .main-category .main-category-list .main-category-list-item .main-category-list-title a.active{
        background: #ffffff url(../../images/icon/remove_red_16_x_16.png) no-repeat 90% 50%/11px auto;
        background-position: right 15px center;
        color: #ed2324;
    }

    .narbar-main-wrapper .main-category .main-category-list .main-category-list-item .main-category-sublist .main-category-sublist-title{
        background: #eee;
        padding: 7px 15px;
    }

    .narbar-main-wrapper .main-category .main-category-list .main-category-list-item .main-category-sublist a{
        color: #232323;
        display: block;
        padding: 7px 15px;
        text-decoration: none;
        font-size: 12px;
    }

    .narbar-main-wrapper .main-category .main-category-list .main-category-list-item .main-category-sublist .item-lv-1 a
    {
        background: #eee;
    }

    .narbar-main-wrapper .main-category .main-category-list .main-category-list-item .main-category-sublist .item-lv-1 .item-lv-2,
    .narbar-main-wrapper .main-category .main-category-list .main-category-list-item .main-category-sublist .item-lv-1 .item-lv-2 .item-lv-3 {
        margin-left: 15px;
    }

    .narbar-main-wrapper .main-category .main-category-list .main-category-list-item .main-category-sublist .item-lv-1 .item-lv-2 a,
    .narbar-main-wrapper .main-category .main-category-list .main-category-list-item .main-category-sublist .item-lv-1 .item-lv-2 .item-lv-3 a {
        background: transparent;
        color: #232323;
    }

    .narbar-main-wrapper .main-category .main-category-list .main-category-list-item .main-category-sublist .main-category-sublist-item a:hover{
        background: transparent;
        color: #232323;
    }

    .narbar-main-wrapper .main-category .main-category-list .main-category-list-item .main-category-sublist{
        border-top: 1px solid #c9c9c9;
        display: none;
        margin: 0;
    }

    .narbar-main-wrapper .main-category .main-category-list .main-category-list-item .main-category-sublist.active{
        display: block;
    }

    .narbar-main-wrapper .main-category.open{
        display: block;
        border-bottom-style: solid;
        border-bottom-width: 1px;
        border-bottom-color: #464646;
    }

    .narbar-main-wrapper .main-category .main-category-list{
        max-width: 100%;
    }

    .narbar-main-wrapper .main-category .main-category-detail,
    .narbar-main-wrapper .main-category .main-category-detail .main-category-detail-image{
        display: none;
    }

    .navbar-bottom{
        display: none;
    }
}