@import (reference) "../../../../public/assets/less/bootstrap-less/mixins.less";
@import (reference) "../../../../public/assets/less/bootstrap-less/variables.less";
@import (reference) "../../../../public/assets/less/fastadmin/mixins.less";
@import (reference) "../../../../public/assets/less/fastadmin/variables.less";
@import "../../../../public/assets/less/lesshat.less";
@import "tinycss.less";

@primary-color: #007bff;
//@primary-color: #f28044;
//@primary-color: #ff464e;
//@primary-color: #574bc4;
//@primary-color: #ec3185;
//@primary-color: #1abc9c;

html,
body {
    height: 100%;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'liga';
    -webkit-text-size-adjust: 100%;
    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Ubuntu, Helvetica Neue, Helvetica, Arial, PingFang SC, Hiragino Sans GB, Microsoft YaHei UI, Microsoft YaHei, Source Han Sans CN, sans-serif;
    font-weight: 400;
    background: #f4f6f8;
    font-size: 14px;
    color: #616161;
}

body {
    overflow-x: hidden;
    overflow-y: auto;
}

a {
    color: #555;

    &:hover, &:focus {
        color: @primary-color;
    }
}

a.primary-link {
    color: @primary-color;
}

.btn-primary {
    color: #fff;
    background-color: @primary-color;
    border-color: @primary-color;

    &:hover, &:focus, &:active, &:active:focus {
        color: #fff;
        background-color: darken(@primary-color, 10%);
        border-color: darken(@primary-color, 10%);
    }
}

.btn-gray {
    color: #212529;
    background-color: #f8f9fa;
    border-color: #f8f9fa;

    &:hover {
        color: #212529;
        background-color: #e2e6ea;
        border-color: #dae0e5;
    }
}

.btn-light {
    color: @primary-color;
    background: lighten(@primary-color, 35%);
    border-color: transparent;

    &:hover {
        color: #fff;
        background-color: @primary-color;
        border-color: @primary-color;
    }

}

.label-primary {
    color: #fff;
    background-color: @primary-color;
    border-color: @primary-color;
}

.btn-outline-primary {
    color: @primary-color;
    background-color: transparent;
    background-image: none;
    border-color: @primary-color;

    &:hover {
        color: #fff;
        background-color: @primary-color;
        border-color: @primary-color;
    }
}

.btn-lg {
    .border-radius(3px);
}

.wow {
    visibility: hidden;
}

.bg-white {
    background: #fff !important;
}

.bg-gray {
    background: #f8f9fa !important;
}

@media (hover: hover) {
    .dropdown > a:hover + .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

.alert-paid {
    margin: 10px 0;
    text-align: center;

    a {
        color: #f39c12;
    }
}

.dropdown-submenu {
    position: relative;

    > .dropdown-menu {
        top: 0;
        left: 100%;
        margin-top: 0px;
        margin-left: 0px;

        .border-radius(3px 0 3px 3px);
    }

    &:hover {
        > .dropdown-menu {
            display: block;
        }

        > a:after {
            border-left-color: #fff;
        }
    }

    &.pull-left {
        float: none;

        > .dropdown-menu {
            left: -100%;
            margin-left: 10px;
            .border-radius(3px 0 3px 3px);
        }
    }

}

.top-bar {
    line-height: 36px;
    height: 36px;
    color: #666;
    font-size: 12px;
    background: #f7f7f7;

    a {
        color: #888;
        display: block;

        &:hover {
            color: @primary-color;
            text-decoration: none;
        }
    }

    ul.dropdown-menu {
        border: none;

        > li > a {
            padding: 5px 20px;
        }
    }

    @media (min-width: 979px) {
        li.dropdown:hover > .dropdown-menu {
            display: block;
            margin-top: 0;
        }
    }
}

.btn-lg, .input-lg {
    font-size: 14px;
}

.header-search {
    .search-form {
        .search-input {
            border: none;
            .border-radius(0);
            height: 40px;
            line-height: 40px;
            background: #f3f3f3;
            .box-shadow(none);
        }

        .btn-search {
            .border-radius(0);
            padding: 0 20px;

            height: 40px;
            line-height: 40px;
        }

    }

    .search-hot {
        a {
            margin-right: 5px;
            color: #999;
            font-size: 13px;
        }
    }
}

.header-header {
    padding: 35px 0 35px 0;
    background: #fff;
}

.header-menu {
    background: #fff;
    //border-bottom: 2px solid @primary-color;
    box-shadow: 0 2px 4px 0 hsla(210, 7%, 43%, .09);
    position: relative;
    z-index: 99;

    &.fixed {
        position: fixed;
        top: 0;
        z-index: 9999;
        width: 100%;
    }
}

.top-menu {
    display: none;
}

.hasbanner {
    .top-menu {
        display: block;
    }
}


.nav-menu {
    margin: 0 auto;
    list-style: none;
    padding: 0;
    position: relative;
    z-index: 100;

    > li {
        text-align: center;
        min-width: 50px;

        > a {
            color: #333;
        }

        > ul {
            a {
                color: #314555;
                background-color: #fff;
            }

            li {
                &:hover, &.active {
                    a {
                        color: @primary-color;
                        background-color: #f1f1f1;
                    }
                }

                a .indicator {
                    position: absolute;
                    top: 0;
                    right: 15px;
                }
            }
        }

        a {
            color: #314555;

            .indicator {
                margin-left: 10px;
            }
        }

    }

    &.nav-menu-right > a, > li:hover > a, > li.active > a {
        color: @primary-color;
    }

    &:before, &:after {
        content: "";
        display: table;
    }

    &:after {
        clear: both;
    }

    &.nav-menu-right {
        position: absolute;
        top: 0;
        right: 0;

        a {
            display: inline-block;

            &:hover {
                background: #f7f7f7;
            }
        }
    }
}

.nav-header {
    position: relative;
    display: none;
}

.nav-toggle {
    display: inline-block;
    vertical-align: middle;
    cursor: pointer;
    width: 32px;
    padding: 10px 4px;
    left: 0;

    i {
        display: block;
        width: 100%;
        height: 2px;
        background-color: #fff;
    }

    i + i {
        margin-top: 7px;
    }
}

.nav-bar {
    position: relative;

    ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }
}

.nav-menu {

    > li > ul {
        top: 100%;
        left: 0;

        &, > li ul {
            background: #fff;
            margin: 0;
            display: none;
            min-width: 200px;
            position: absolute;
            z-index: 99;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
            border-radius: 0;
            border: none;
        }

        > li ul {
            top: 0;
            left: 100%;
        }
    }

    > li:last-child > ul {
        right: 0;

        > li ul {
            right: 100%;
        }
    }

    li {
        display: block;
        position: relative;
    }

    > li {
        float: left;

        &.category {
            width: 200px;
            background: @primary-color;
            text-align: center;
            font-size: 15px;
            margin-right: 20px;

            a {
                color: #fff;
            }
        }
    }

    a {
        text-decoration: none;
        display: block;
        padding: 0 15px;

        margin: 0;
        position: relative;
    }

    > li > a, > a {
        height: 40px;
        line-height: 40px;
    }

    > li ul li a {
        height: 40px;
        line-height: 40px;
    }
}

@media only screen and (max-width: 767px) {
    .nav-header > span.nav-item-topmenu {
        background: @primary-color;
        display: inline-block;
        padding: 0 15px;
    }
}

@media only screen and (max-width: 767px) {
    .nav-header {
        display: block;
        z-index: 99;
    }

    .nav-collapse {
        display: none;
        padding-bottom: 10px;
    }

    .nav-header,
    .nav-menu.nav-menu-right a {
        height: 44px;
        line-height: 44px;
    }

    .nav-menu {
        ul {
            padding-left: 20px;
        }

        li {
            width: 100%;
            border-bottom: 1px solid #eee;

            > a, &.active a {
                color: #314555;
                background-color: #fff;
            }

            &:hover > a, &.active-mobile > a {
                color: @primary-color;
                background-color: #f1f1f1;
            }

            &:last-child {
                border-bottom: 0;
            }
        }

        > li {
            a .indicator {
                position: absolute;
                top: 0;
                right: 20px;
            }

            > ul {
                &, > li ul {
                    width: 100%;
                    position: static;
                }
            }

            > a, ul li a {
                height: 40px;
                line-height: 40px;
            }
        }
    }

}

.navbar {
    border: none;
}

.navbar-nav {
    .form-search {
        &.focused {
            position: relative;

            input {
                position: absolute;
                top: 0;
                right: 0;
                width: 250px;
            }
        }
    }

    li > a {
        font-size: 13px;

        h5 {
            overflow: hidden;
            text-overflow: ellipsis;
        }
    }

    > li > a {
        font-size: 14px;
    }

    ul.dropdown-menu {
        border: none;
        border-radius: 0;

    }

    ul.dropdown-menu > li > a {
        padding: 5px 20px;
    }
}

.navbar-brand {
    padding: 5px 15px;

}

.toast-top-center {
    top: 50px;

    > div {
        .box-shadow(none);
    }
}

//浮动按钮
#floatbtn {
    width: 50px;
    height: auto;
    position: fixed;
    top: auto;
    right: 50%;
    bottom: 10px;
    left: auto;
    z-index: 80;
    margin-right: -640px;

    &.fixed {
        position: absolute;
        bottom: 279px;
        right: 50%;
    }

    a {
        position: relative;
        z-index: 90;
        display: block;
        margin-top: 4px;
        width: 50px;
        height: 50px;
        line-height: 50px;
        text-align: center;
        font-size: 20px;
        color: #d5d5d5;
        background-color: #fff;
        border: 1px solid #eee;
        .user-select(none);

        &.hover:hover {
            .transition(background-color 200ms ease-out);
            background: @primary-color;
            border-color: @primary-color;
            text-decoration: none;
            text-align: center;
            line-height: 20px;
            padding: 5px;

            i {
                display: none;
            }

            em {
                display: block;
                color: #fff;
                font-size: 14px;
                font-style: normal;
                text-decoration: none;
            }
        }

        em {
            display: none;
        }

        &:hover {
            background: @primary-color;

            i {
                color: #fff;
            }

            .floatbtn-wrapper {
                display: block;
            }

        }
    }

    .iconfont {
        display: inline-block;
        font: normal normal normal 14px/1 iconfont;
        font-size: inherit;
    }
}

.floatbtn-wrapper {
    position: absolute;
    right: 59px;
    top: -55px;
    z-index: 120;
    display: none;
    width: 190px;
    height: 212px;
    background-color: #fff;
    border: 1px solid #eee;

    &:after {
        content: "";
        position: absolute;
        right: -6px;
        top: 73px;
        display: block;
        width: 0;
        height: 0;
        border-left: 6px solid #d5d5d5;
        border-top: 6px solid transparent;
        border-bottom: 6px solid transparent;
    }

    .qrcode {
        margin-top: 20px;
        line-height: 1;

        img {
            width: 128px;
            height: 128px;
        }
    }

    p {

        font-size: 14px;
        line-height: 20px;
        color: #999;

        em {
            color: #dd3067;
        }
    }
}

.text-primary,
.text-primary:hover {
    color: @brand-primary;
}

.text-success,
.text-success:hover {
    color: @brand-success;
}

.text-danger,
.text-danger:hover {
    color: @brand-danger;
}

.text-warning,
.text-warning:hover {
    color: @brand-warning;
}

.text-info,
.text-info:hover {
    color: @brand-info;
}

.well {
    .box-shadow(none);
}

.clearfix() {
    &:before,
    &:after {
        content: " "; // 1
        display: table; // 2
    }
    &:after {
        clear: both;
    }
}

.responsive-container {
    position: relative;
    width: 100%;
    border: 1px solid #f8f8f8;
}

footer {
    width: 100%;
    color: #aaa;
    background: #555;
    margin-top: 25px;
    overflow: hidden;
    min-height: 60px;
}

.nav-sidebar {
    li.active a {
        text-decoration: none;
        background-color: #ecf0f1;
    }
}

.navbar-toggle .icon-bar {
    width: 18px;
}

.panel-default {
    border: none;
    padding: 0 15px;
    .box-shadow(none);
    .border-radius(2px);
    //.box-shadow(0 1px 2px 0 rgba(0, 0, 0, 0.1));
}

.panel-default {
    > .panel-heading {
        position: relative;
        padding: 15px 0;
        background: #fff;
        border-bottom: 1px solid #f5f5f5;

        .panel-title {
            font-size: 16px;

            /*color: @gray-dark;*/

            > i {
                display: none;
            }
        }

        small {
            font-weight: normal;
            color: #999;
            font-size: 13px;
        }

        .more {
            position: absolute;
            top: 13px;
            right: 0;
            display: block;
            color: #919191;
            .transition(all 0.3s ease);

            &:hover {
                color: #616161;
                .transition(all 0.3s ease);
            }

            font-weight: 400;
            font-size: 13px;

        }

        div.more {
            top: 17px;
        }

        .panel-bar {
            position: absolute;
            top: 7px;
            right: 0;
            display: block;
        }
    }

    > .panel-footer {
        padding: 15px 0;
        background: none;
    }

    > .panel-body {
        position: relative;
        padding: 15px 0;
    }
}

.panel-primary {
    > .panel-heading {
        background-color: #46c37b;
        color: #fff;
    }

    > .panel-body {
        background: #fafafa;
        border-bottom-left-radius: 2px;
        border-bottom-right-radius: 2px;
    }
}

.panel-gray {
    .box-shadow(0 2px 4px rgba(0, 0, 0, 0.08));

    > .panel-heading {
        background-color: #f5f5f5;
        color: #919191;
    }

    > .panel-body {
        color: #919191;
        background: #fff;
        border-bottom-left-radius: 4px;
        border-bottom-right-radius: 4px;
    }
}

.panel-page {
    padding: 45px 50px 50px;
    min-height: 500px;

    .panel-heading {
        background: transparent;
        border-bottom: none;
        margin: 0 0 30px 0;
        padding: 0;

        h2 {
            font-size: 25px;
            margin-top: 0;
        }
    }
}

h1 .breadcrumb {
    padding: 0 5px;
    margin-bottom: 5px;
    background: none;

    li {
        font-size: 12px;
        font-weight: 400;
    }
}

.carousel-focus {
    .item {
        .carousel-img {
            background-size: cover;
            width: 100%;
            height: 180px;
            background-position: center center;
            .transition(all 0.3s);
        }
    }

    &:hover {
        .carousel-img {
            .transform(scale(1.02));
        }
    }

    .carousel-control {
        &.left, &.right {
            background-image: none;

            span {
                display: none;
            }

            &:hover {
                .transition(all 1s ease);

                span {
                    display: block;
                }
            }
        }
    }
}

.panel-blockimg {

    border: none;
    .box-shadow(none);

    img {
        width: 100%;
    }

}

.hot-tags {
    .panel-body a {
        span {
            margin-bottom: 10px;
        }
    }
}

.tags {
    margin: 0;
    display: inline-block;

    .tag {
        margin-bottom: 5px;
    }
}

.tag {
    display: inline-block;
    padding: 0 8px;
    height: 24px;
    line-height: 24px;
    font-weight: 400;
    font-size: 13px;
    text-align: center;
    color: @primary-color;
    background: rgba(0, 132, 255, .1);
    margin-right: 3px;
    border-radius: 2px;

    img {
        width: 16px;
        height: 16px;
        margin-top: -1px;
        margin-right: 3px;
    }
}

.tag[href]:focus, .tag[href]:hover {
    background-color: @primary-color;
    color: #fff;
    text-decoration: none;
}

.tag-xs {
    padding: 0 6px;
    height: 20px;
    line-height: 20px;
    font-size: 12px
}

.tag-sm {
    padding: 0 6px;
    height: 22px;
    line-height: 22px;
    font-size: 13px
}

.tag-lg {
    font-size: 16px;
    font-weight: 700;
    height: 30px;
    line-height: 28px
}

.tag-link {
    background-color: transparent
}

.tag-logo {
    padding-left: 25px;
    background-repeat: no-repeat;
    background-position: 4px 2px;
    background-size: 16px 16px;
}

.tag-success {
    background-color: #dff0d8;
    color: #18bc9c;
}

.tag-info {
    background-color: #d9edf7;
    color: #3498db;
}

.tag-warning {
    background-color: #fcf8e3;
    color: #f39c12;
}

.tag-danger {
    background-color: #f2dede;
    color: #e74c3c;
}

.product-item {
    .card {
        border-radius: 3px;
        position: relative;
        padding: 12px;
        margin: 0 auto 20px;
        .transition(all 200ms cubic-bezier(0.55, 0.055, 0.675, 0.19));
        border: 1px solid #eee;
        min-height: 250px;
        overflow: hidden;
        background-color: #fff;

        .thumb {
            position: relative;
            .transition(all 0.5s ease-out 0s);
            margin: -12px;

            > .preview-link::before {
                background: rgba(0, 0, 0, 0.2);
                opacity: 0;
                z-index: 1;
                position: absolute;
                top: 0;
                left: 0;
                bottom: 0;
                right: 0;
                content: "";
                .transition(all 0.5s ease-out 0s);
            }

            > .quickview-link {
                display: block;
                width: 40px;
                height: 40px;
                position: absolute;
                top: 0;
                right: 0;
                left: 0;
                bottom: 0;
                margin: auto;
                line-height: 40px;
                text-align: center;
                z-index: 10;
                background: #000;
                border-radius: 50%;
                opacity: 0;
                visibility: hidden;
                color: #fff;
                transform: scale(0);
                -webkit-transform: scale(0);
                .transition(all 0.3s ease-out 0s);
            }

            &:hover {
                .preview-link::before {
                    opacity: 1;
                }

                .quickview-link {
                    opacity: 1;
                    visibility: visible;
                    transform: scale(1);
                    -webkit-transform: scale(1);
                }
            }
        }

        &:hover {
            .transform(translateY(-6px));
            .box-shadow(0 26px 40px -24px rgba(0, 36, 100, 0.3));
            .transition(all 0.3s ease);

            .operate {
                .pull-right {
                    display: block;
                }
            }
        }

        .image {
            position: relative;
            width: 100%;
            height: 1px;
            overflow: hidden;
            padding-bottom: 75%;
            background-repeat: no-repeat;
            background-size: cover;
            background-position: center center;
        }

        .title {
            padding-top: 10px;
        }

        h2 {
            color: #000;
            padding: 0;
            margin-bottom: 5px;
            height: 24px;
            margin-top: 15px;
            font-size: 14px;
            font-weight: 400;
            line-height: 24px;

            text-align: left;
            overflow: hidden;
            text-overflow: ellipsis;
            -webkit-box-orient: vertical;
            display: -webkit-box;
            -webkit-line-clamp: 1;
        }

        .operate {
            height: 31px;

            .pull-right {
                display: none;
            }
        }
    }
}

#content-container {
    margin-top: 15px;

    > h1 {
        margin-top: 0;
    }

    min-height: calc(~"100vh - 320px");
}

#comment-container {
    #commentlist {
        dl {
            position: relative;
            border-bottom: 1px solid #eee;
            clear: both;
            padding: 10px 0;
            margin-bottom: 5px;

            dt {
                float: left;
                margin-right: 10px;
                width: 44px;
                height: 44px;
                display: block;
                position: absolute;

                img {
                    width: 40px;
                    height: 40px;
                    border-radius: 50%;
                }
            }

            dd {
                padding-left: 55px;
                float: left;
                width: 100%;

                cite {
                    a {
                        color: @primary-color;
                    }
                }

                small {
                    color: #999;
                    margin: 0 0 0 3px;

                    height: 20px;
                    line-height: 20px;
                    font-size: 10px;

                    a {
                        display: none;
                    }
                }

                dl {
                    margin: 0px;
                    border-top: 1px solid #eee;
                    border-bottom: none;
                    padding-top: 15px;
                    padding-bottom: 0;

                    dd {
                        width: 550px;
                    }
                }

                p {
                    margin-top: 5px;
                    margin-bottom: 10px;
                    line-height: 24px;

                    em {
                        font-style: normal;
                        display: inline-block;
                        padding: 0 5px;
                        height: 22px;
                        line-height: 22px;
                        font-weight: 400;
                        font-size: 13px;
                        text-align: center;
                        color: @primary-color;
                        background: rgba(0, 132, 255, 0.1);
                        border-radius: 2px;

                    }
                }
            }
        }

        cite {
            font-style: normal;
        }
    }

    h3 {
        position: relative;
        font-size: 16px;
        padding: 15px 0;
        background: #fff;

        a {
            display: none;
        }
    }

    #postcomment {
        .form-group {
            margin-bottom: 10px;
        }

        label {
            font-weight: normal;
        }

        a {
            small {
                display: inline !important;
            }
        }
    }

}

.text-gray {
    color: #d2d6de !important;
}

.no-padding {
    padding: 0 !important;
}

.no-border {
    border: none !important;
}

.pager {
    .pagination {
        margin: 0;
    }

    .pager {
        margin: 0;
    }

    li {
        margin: 0 .4em;
        display: inline-block;

        &:first-child, &:last-child {
            > a, > span {
                padding: .5em 1.2em;
            }
        }
    }
}

.pager li > a, .pager li > span {
    background: none;
    border: 1px solid #e6e6e6;
    border-radius: 0.25em;
    padding: .5em .93em;
    font-size: 14px;
}

.list-partner li {
    display: inline-block;
    margin: 0 12px 12px 0;
    padding: 10px 15px;
    width: 140px;
    text-align: center;

    &:hover {
        border: 1px solid #363f48;
    }

    border: 1px solid #efefef;

    img {
        height: 30px;
    }
}

.index-focus {
    margin-bottom: 19px;
}

.category-title {
    margin-bottom: 20px;
    font-size: 24px;
    color: #444;

    .breadcrumb li {
        font-size: 14px;

    }
}

.category-order {
    li > a.active {
        color: @primary-color;
    }
}

.img-zoom {
    overflow: hidden;
    display: inline-block;

    img {
        .transition(all 0.3s);
    }

    &:hover img {
        .transform(scale(1.1));
    }
}

.embed-responsive {
    position: relative;
    display: block;
    height: 0;
    padding: 0;
    overflow: hidden;

    img, .embed-responsive-item {
        position: absolute;
        object-fit: cover;
        width: 100%;
        height: 100%;
        border: 0;
        left: 0;
    }

}

.embed-responsive-16by9 {
    padding-bottom: 56.25%;
}

.embed-responsive-4by3 {
    padding-bottom: 75%;
}

.embed-responsive-square {
    padding-bottom: 100%;
}

.list-links {
    a {
        margin-right: 5px;
    }
}

@media (max-width: 767px) {
    .header-header {
        padding: 25px 0;
    }

    .header-menu {
        margin: 0;

        //background: #007bff;
        color: #fff;

        .nav-toggle i {
            background-color: @primary-color;
        }
    }

    .nav-menu > li:last-child > ul {
        text-align: center;
    }

    .brand {
        text-align: center;
        margin-bottom: 10px;
    }

    .nav-menu > li.category {
        width: 100%;
        display: none;
    }

    .hasbanner .top-menu {
        display: none;
    }

    ul.dropdown-menu {
        position: relative;
        width: 100%;
        background: #222;

        .open > a, .open > a:hover, .open > a:focus {
            background: none;
            color: #9d9d9d;
        }

        > .dropdown-menu {
            position: relative;
            width: 100%;
            margin: 0;
        }
    }

    .navbar-nav {
        .form-search {
            padding: 0 10px;
        }

        .open .dropdown-menu {
            position: relative;
            width: 100%;
            margin: 0;
            left: 0;
            background: #404950;

        }
    }

    .dropdown-submenu > a:after {
        display: none;
    }

    .panel-page {
        padding: 15px;
        min-height: 300px;
    }

    .navbar-nav {
        margin: 8.25px 0;
    }

    .navbar-nav .form-search.focused {
        position: inherit;
    }

    .navbar-nav .form-search.focused input {
        position: inherit;
        width: 100%;
    }

    .navbar-form {
        margin: 10px 0;
    }

    .navbar-nav .form-search {
        padding: 0;
    }

}

@media (min-width: 768px) {
    #index-focus .item {
        .carousel-img {
            height: 490px;
            width: 100%;
        }
    }

}

@media (min-width: 979px) {
    nav.nav-bar li.dropdown:hover > .dropdown-menu {
        display: block;
    }
}

@media screen and (max-width: 767px) {
    .carousel-caption {
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, .3);
        padding: 0;
        bottom: 0;
        text-shadow: none;

        h3 {
            margin: 0;
            font-size: 14px;
            padding: 15px;
            text-align: left;

        }

        p {
            display: none;
        }
    }

    .carousel-indicators {
        //bottom: 3px;
        //right: 15px;
        //width: auto;
        //left: inherit;
        opacity: .6;

    }
}

.carousel-control {
    text-shadow: none;

    .fa {
        font: normal normal normal 30px/1 FontAwesome;
    }

    .icon-prev {
        left: 20px;
    }

    .icon-next {
        right: 20px;
    }

    .fa-chevron-left:before {
        content: "\f053";
    }

    .fa-chevron-right:before {
        content: "\f054";
    }
}

.product-grid {
    display: flex;
    background-color: #fff;

    flex-wrap: wrap;
    align-items: center;
    justify-self: center;
    height: auto;
    margin: 0 auto;
    flex-flow: row wrap;
    align-content: flex-start;

    .product-item {
        position: relative;
        flex: 0 0 25%;

        a.card-item {
            text-align: center;

            display: block;
            box-shadow: 0 0 1px 0 rgba(0, 0, 0, .1);

            padding: 15px;
            background: #fff;
            height: 100%;

            .item-title {
                overflow: hidden;
                text-overflow: ellipsis;
                -webkit-box-orient: vertical;
                display: -webkit-box;
                -webkit-line-clamp: 2;
            }

            .item-detail {
                padding: 5px 0;
                font-size: 16px;
            }

            &:hover {
                text-decoration: none;
                color: #e74c3c;
                //outline: 1px solid @primary-color;
            }
        }
    }
}

@media (max-width: 768px) {
    .product-grid .product-item{
        flex: 0 0 50%;
    }
}

li.category {
    &:hover .top-menu {
        display: block;
    }
}

.top-menu {
    width: 200px;
    position: absolute;
    top: 0px;
    left: 0;
    display: none;
    z-index: 999;
    margin-top: 40px;
    //border-top: 2px solid @primary-color;

    &.open {
        display: block;
    }

    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);

    > ul > li {

        > a {
            display: block;
            position: relative;
            font-size: 14px;
            letter-spacing: 0.03em;
            color: #191919;
            font-weight: 400;
            .transition(all 200ms linear);
            height: 50px;
            line-height: 50px;
            padding: 0 20px;

            overflow: hidden;
            text-overflow: ellipsis;
            -webkit-box-orient: vertical;
            display: -webkit-box;
            -webkit-line-clamp: 1;

            &:hover {
                text-decoration: none;
                color: @primary-color;
                padding-left: 28px;
            }

            &:before {
                content: '';
                display: block;
                bottom: 0;
                left: 0;
                margin-left: 20px;
                margin-right: 20px;
                position: absolute;
                width: 160px;

                height: 1px;
                background-color: #e9e7e7;

            }

            .indicator {
                float: right;
                color: #888;
                margin-right: 5px;
            }
        }

        &:hover > a {
            text-decoration: none;
            color: @primary-color;
        }

        &:last-child > a:before {
            background: transparent;
        }

        .dropdown-menu {
            position: absolute;
            left: 199px;
            top: 0;
            min-width: 200px;
            margin-top: 0;
            border: none;
            border-radius: 0;
        }
    }

}

.dropdown-menu-wrapper {
    h3 {
        font-size: 14px;
        font-weight: bold;
    }

    ul > li {
        display: block;
        text-align: center;

        > a {
            color: #666;
            font-size: 14px;
            line-height: 30px;
            display: block;
            position: relative;
            .transition(all 0.2s linear);

            overflow: hidden;
            text-overflow: ellipsis;
            -webkit-box-orient: vertical;
            display: -webkit-box;
            -webkit-line-clamp: 1;

            &:hover {
                color: @primary-color;
                background: #eee;
                text-decoration: none;
            }
        }
    }

}

#nav-bar {
    width: 100%;
    //border: 1px solid #eee;
    margin: 0 0 10px 0;
}

.nav-bar-row {
    background-color: #fff;
    padding-left: 0;
    margin: 0;
    //border-bottom: 1px solid #eee;
}

ul.nav-bar-tabs {
    margin: 0;

    > li {
        > a {

            padding: 15px 20px;
            display: inline-block;

            &:hover {
                color: @primary-color;
            }

            i.fa-sort-down {
                vertical-align: top;
            }

            i.fa-sort-up {
                vertical-align: bottom;
            }
        }

        &.active a {
            color: @primary-color;
        }
    }
}


.variations {
    margin-bottom: 20px;

    .tr-item {
        width: 100%;
        display: table;
        table-layout: fixed
    }

    .hidden-tag {
        display: none;
    }

    .label, .value {
        padding: 0;
        display: table-cell;
        vertical-align: top;
        line-height: 2em;
        text-align: left
    }

    .label {
        width: 66px;
        padding-left: 10px;
        color: #999;
        font-weight: 400;
        font-size: .9em;
        line-height: 30px;
        margin: 0;
    }

    .value {
        padding-left: 10px;
    }
}


.quantity {
    font-size: 0;
    margin: 0 10px 10px 0;
    display: inline-block;
    vertical-align: top;

    .quantity-text {
        display: inline-block;
        width: 3em;
        text-align: center;
        font-size: 14px;
        border: 0;
        border-top: 1px solid #ddd;
        border-bottom: 1px solid #ddd;
        outline: 0;
        vertical-align: top;
        height: 30px;
    }

    .quantity-down, .quantity-up {
        display: inline-block;
        padding: 0 5px;
        font-size: 14px;
        color: #666;
        text-align: center;
        border: 1px solid #ddd;
        vertical-align: top;
        .user-select(none);
        height: 30px;
        line-height: 28px;

        &:hover {
            background: #fafafa;
            cursor: pointer
        }
    }
}

.panel-border {
    border: 1px solid #f1f1f1;
}

.nav-product {
    background: #f7f7f7;
    border-bottom: 1px solid @primary-color;

    > li.active {
        > a {
            &, &:hover, &:focus {
                background: @primary-color;
                color: #fff;
                border-color: @primary-color;
                border-radius: 0;
            }
        }
    }

    > li > a {
        padding: 10px 25px;

        &:hover {
            border-color: #eeeeee #eeeeee @primary-color;
        }
    }
}

.container .nav-filter {
    border: none;


    li > a {
        border-radius: 3px;
        margin-right: 10px;

        &:hover {
            background: #ffffff;
            color: @primary-color;
            text-decoration: none;
            border-color: #ffffff;
        }
    }

    li.active > a {
        color: #ffffff;
        background-color: @primary-color;
        border: none;
        cursor: pointer;

        &:hover {
            background-color: #2c3e50;
            color: #ffffff;
        }
    }
}

.rating {
    overflow: hidden;
    display: inline-block;
    position: relative;
    font-size: 14px;
    color: #FFCA00;
}

.rating-star {
    padding: 0 2px;
    margin: 0;
    cursor: pointer;
    display: block;
    float: right;

    &:after {
        position: relative;
        font-family: FontAwesome;
        content: '\f006';
    }
}

@media (max-width: 1200px) {
    .rating-star {
        padding: 0 1px;
    }
}

.rating-star.checked ~ .rating-star:after, .rating-star.checked:after {
    content: '\f005';
}

.rating.vote .rating:hover .rating-star:after {
    content: '\f006';
}

.rating.vote .rating-star:hover ~ .rating-star:after, .rating.vote .rating-star:hover:after {
    content: '\f005' !important;
}


.filter-container {
    margin-bottom: 10px;
    background-color: #fff;
    //border: 1px solid #eee;
}

.filter-row {
    padding: 3px 20px;
    border-bottom: 1px solid #f4f6f8;

    &:last-child {
        border-bottom: none;
    }
}

.filter-title {
    width: 100px;
    color: #777;
    display: inline-block;
    vertical-align: top;
    padding-top: 10px;
    text-align: left;
}

.filter-values {
    display: inline-block;
    color: #606269;
    width: 900px;
    //max-height: 36px;
    overflow: hidden;
    margin: 0;
    padding: 0;

    > li {
        display: inline-block;
        margin: 5px 5px 3px;
        position: relative;

        > a {
            padding: 5px 8px;
            display: inline-block;

            i {
                display: none;
            }
        }

        &.active a {
            background-color: lighten(@primary-color, 30%);
            color: @primary-color;
        }
    }
}

.layui-layer {
    .layui-layer-confirm {
        width: 100%;
        height: 100%;

        &:focus {
            border: 1px solid #444c69;
            .border-radius(2px);
        }

        &:focus-visible {
            outline: 0;
        }
    }
}

.main-footer {
    a {
        color: #aaa;
    }
}