body {
    /* background-color: #f2ece0 */
}
.menu-item:nth-child(n + 2)::before {
    display: none;
}

.menu-item:nth-child(n + 2)::after {
    opacity: 0.5
}

.top-nav {
    display: none;
}

.flashsale-list-product {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-gap: 24px;
}

.container {
    width: 98%;
    max-width: var(--site);
}

.header-banner {
    background-color: #f1f1f1;
}

.main-bar {
    background-color: #ff7337
}

.main-bar .menu-item,
.main-bar .menu-item span,
.main-bar .menu-item small {
    color: #fff;
}

.main-bar .menu-item img {
    filter: brightness(0) invert(1);
}

.home-link {
    background-color: rgba(11, 11, 11, 0.2);
}

.fb-chatting {
    background: #ff8d1a
}

.fb-chatting:hover {
    background: #940000;
}

#news-button {
    display: none !important;
}

.navbar-default .navbar-nav>li>a.home-link {
    background: #ff7227;
}

.subcriber {
    background: #d4471a;
    display: none;
}

.footer-top .col-md-3 img {
    -webkit-filter: grayscale(100%);
    filter: grayscale(100%);
}

.view-flashsale {
    padding: 0 0 24px;
}

.flashsale-item-img {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
    display: inline-block;
    height: 145px;
    width: 90%;
    display: block;
}

.flashsale-item-box {
    background: #fff;
    margin: 0;
    position: relative;
    border-radius: 3px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.flashsale-item-title {
    color: var(--dark);
}
.flashsale-item-title:hover {
    color: var(--primary-dk);
}

.flashsale-out-off-stock {
    filter: grayscale(0.3) invert(0.03);
}

.flashsale-item-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 18px;
    margin-bottom: 10px;
    min-height: 57px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.flashsale-price .oPrice {
    font-size: #A3A3A3;
}

.flashsale-item-dPrice,
.progressText {
    background: var(--price);
    color: #fff;
    border-radius: 3px;
    padding: 5px 7px;
    font-size: 12px;
    position: absolute;
    top: 7px;
    right: 7px;
}

.progressText {
    background: #444;
    width: 42px;
    height: 42px;
    top: 14px;
    left: 14px;
    z-index: 9;
    text-align: center;
    text-transform: uppercase;
    line-height: 1.2;
    font-size: 11px;
    font-weight: bold;
}

.flashsale-item-nPrice {
    color: #d4471a;
    font-size: 19px;
}

.flashsale-item-oPrice {
    text-decoration: line-through;
    color: gray;
}

.flashsale-title {
    padding: 17px;
    height: 60px;
    position: sticky;
    top: 0;
    left: 0;
    justify-content: center;
    background-color: transparent;
    z-index: 1;
    box-shadow: 0 4px 16px rgba(11 11 11 / 8%);
}

.flashsale-banner-link .flashsale-title {
    position: absolute;
    height: max-content;
    bottom: 12px;
    top: auto;
    left: 50%;
    transform: translateX(-50%);
    padding: 0;
    box-shadow: none;
}

.pagination>.active>a,
.pagination>.active>a:focus,
.pagination>.active>a:hover, .pagination>.active>span, .pagination>.active>span:focus,
.pagination>.active>span:hover {
    background-color: #777;
    border-color: #777;
}

.flashsale-item-notes {
    border: 1px solid #999;
    background: url(https://chiaki.vn/frontend/images/notes.png) no-repeat 20px 10px;
    padding: 10px 10px 10px 70px;
}

.flashsale-info {
    margin-top: 10px;
}

.flashsale-item-box .flashsale-image {
    padding: 0;
    border-radius: 9px 9px 0 0;
    margin-bottom: 0;
}

.viewed-box .link-to-product {
    background-color: #fff;
    border-radius: 3px;
}

.slider-on-page:not(.slick-slider) .hot-product-item:nth-child(n + 6) {
    display: none
}

.flashsale-time > span.time-comming {
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
}

.time-comming small {
    font-size: 12px;
    margin-right: 4px;
}

.flashsale-banner-gr {
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 12px;
    position: relative;
}

.flashsale-banner-link {
    display: flex;
    position: relative;
    overflow: hidden;
    max-width: 1290px;
    margin: 32px auto 0;
    border-radius: 9px;
    height: 240px;
    overflow: hidden;
    background-image: url(/assets/images/fs-background.png);
    background-repeat: no-repeat;
    background-size: cover;
}

.flashsale-banner-link img {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    object-fit: cover;
    object-position: center;
    border: none;
    border-radius: 9px;
}

.flashsale-list-gr {
    margin-bottom: 24px;
}

.flashSale-event-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0;
}

.flashSale-event {
    width: 100%;
    max-width: var(--site);
    margin: 0 auto;
    color: #fff;
    display: flex;
    align-items: stretch;
    text-align: center;
    align-items: center;
    justify-content: center;
    grid-gap: 8px;
    padding: 14px;
    background: #FFEDE4;
}

.flashSale-event .flashSale-event-item {
    padding: 10px 6px 8px;
    text-align: center;
    margin: 0;
    cursor: pointer;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 16px;
    background-color: #737373;
    color: #fff;
    border-radius: 9px;
    min-width: 100px;
}

.flashSale-event-item.active {
    background-color: #FF6B00;
    color: #fff;
    cursor: default;
}

.flashsale-sub-head {
    text-align: center;
    font-size: 23px;
    line-height: 1.6;
    margin: 16px auto 8px;
    font-weight: 600;
    color: rgb(26, 148, 255);
    position: relative;
    width: fit-content;
    width: -moz-fit-content;
    background: #8A2387;  /* fallback for old browsers */
    background: -webkit-linear-gradient(to right, #F27121, #E94057, #8A2387);  /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to right, #F27121, #E94057, #8A2387); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    user-select: none;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.viewed-box .link-to-product {
    min-height: 205px;
}
.viewed-box .viewed-product {
    height: 200px;
}


.link-to-product p.viewed-sale-price {
    font-size: calc(16px + (19 - 16) * ((100vw - 300px) / (1920 - 300)));
    margin: 0 4px 0 0 !important
}
.link-to-product p.viewed-price {
    margin: 0!important;
}

.feature-price {
    width: 100%;
    padding: 0;
}

.flashSale-more-category {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0 20px;
}

.js-flashsale-category {
    display: block;
    min-width: 300px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    padding: 14px 30px;
    background-image: radial-gradient(circle at 100% 100%, transparent 0px, #ff8d1a 0px, #ff8d1a 1px, transparent 1px), linear-gradient(to right, #ff8d1a, #ff8d1a), radial-gradient(circle at 0% 100%, transparent 0px, #ff8d1a 0px, #ff8d1a 1px, transparent 1px), linear-gradient(to bottom, #f00, #f00), radial-gradient(circle at 0% 0%, transparent 0px, #f00 0px, #f00 1px, transparent 1px), linear-gradient(to left, #f00, #f00), radial-gradient(circle at 100% 0%, transparent 0px, #ff8d1a 0px, #ff8d1a 1px, transparent 1px), linear-gradient(to top, #ff8d1a, #ff8d1a);
    background-size: 1px 1px, calc(100% - 2px) 2px, 1px 1px, 2px calc(100% - 2px);
    background-position: top left,top center,top right,center right, bottom right,bottom center,bottom left,center left;
    background-repeat: no-repeat;
    color: var(--price);
    user-select: none;
    cursor: pointer;
    line-height: 1;
    transition: background-image 300ms ease-in-out;
}

.flashsale-title .flashsale-time {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-size: 15px;
}

.flashsale-title .flashsale-time > * {
    margin: 0 2px;
}

.flashsale-time>span {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #0A0A0A;
    color: #fff;
    padding: 6px 8px;
    border-radius: 3px;
    margin: 0 3px;
    line-height: 1;
    font-size: 15px;
    font-weight: bold;
}

.flashsale-time small {
    color: #fff;
    font-weight: 600;
}

.js-flashsale-category:hover {
    background-image: radial-gradient(circle at 100% 100%, transparent 0px, #d50000 0px, #d50000 1px, transparent 1px), linear-gradient(to right, #d50000, #304ffe), radial-gradient(circle at 0% 100%, transparent 0px, #304ffe 0px, #304ffe 1px, transparent 1px), linear-gradient(to bottom, #304ffe, #00bfa5), radial-gradient(circle at 0% 0%, transparent 0px, #00bfa5 0px, #00bfa5 1px, transparent 1px), linear-gradient(to left, #00bfa5, #ffd600), radial-gradient(circle at 100% 0%, transparent 0px, #ffd600 0px, #ffd600 1px, transparent 1px), linear-gradient(to top, #ffd600, #d50000);
    border-color: transparent
}

.flashSale-menu-wrapper {
    position: sticky;
    top: 90px;
    z-index: 9;
    width: 100%;
    padding: 10px;
}

.flashSale-menu-content {
    width: 100%;
    max-width: var(--site);
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: stretch;
    background-color: #fff;
    position: sticky;
    padding-left: 16px;
    border-bottom: 1px solid #d4d4d4;
}

.flashSale-menu-content > * {
    padding: 10px 16px;
    cursor: pointer;
    text-transform: uppercase;
    color: #ff7337;
}

.link-to-product .viewed-title {
    -webkit-line-clamp: 2;
    line-height: 17px;
    margin-bottom: 5px;
    justify-content: flex-start;
}

.flashSale-menu-item {
    text-align: center;
    line-height: 1.2;
    /* padding: 10px 16px; */
    cursor: pointer;
    text-transform: uppercase;
    color: var(--price);
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.flashSale-menu-item.active::after {
    content: "";
    width: 100%;
    height: 2px;
    display: block;
    background-color: #23527c;
    position: absolute;
    bottom: 0;
    left: 0;
}

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

.flashSale-menu-item.active {
    color: #FF6B00;
}

.flashSale-menu-content-scroll {
    display: flex;
    justify-content: center;
    align-items: stretch;
    padding: 0;
    grid-gap: 16px;
}
.flashSale-menu-content-scroll.fs-less-content {
    justify-content: flex-start;
}

.more-menu-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.more-menu-wrapper::after {
    content: "";
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #e1e1e1;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 10px);
    transition: all 200ms ease-in-out;
    opacity: 0;
    pointer-events: none;
}

.more-menu-menu {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    white-space: nowrap;
    color: var(--dark);;
}

.more-menu-menu svg {
    display: none;
    color: #404040;
}

.more-menu-content {
    display: block;
    position: absolute;
    top: 100%;
    right: 0;
    width: 220px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(11 11 11 / 8%);
    text-transform: none;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: all 200ms ease-in-out;
}

.more-menu-wrapper:hover .more-menu-content {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all
}

.more-menu-wrapper:hover::after {
    transform: translateY(0);
    opacity: 1;
}

.more-menu-content a {
    padding: 10px 16px;
    display: block;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
}

.loading-no-click {
    pointer-events: none;
}

.flashsale-info .flashsale-progress {
    cursor: default;
    border-radius: var(--borderRadius);
    height: 8px;
    position: relative;
    margin-top: 22px;
    margin-bottom: 10px;
    background: #d4d4d4;
    overflow: visible;
}

.fs-addtocart {
    background: var(--price);
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    outline: 0;
    color: #fff;
    width: 100%;
    border-radius: 3px;
    padding: 8px 0;
    font-size: 13px;
    text-transform: uppercase;
    position: relative;
}

.fs-addtocart:focus,
.fs-addtocart:hover {
    background-color: var(--price);
    color: #fff;
}

.fs-loading {
    width: 20px;
    height: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 24px;
    border: 2px solid rgba(255 255 255 / 10%);
    opacity: 0;
}

.fs-loading::before {
    content: "";
    width: 20px;
    height: 20px;
    display: block;
    border-radius: 20px;
    border-top: 2px solid rgba(255 255 255 / 60%);
    border-left: 2px solid rgba(255 255 255 / 60%);
    position: absolute;
    top: -2px;
    left: -2px;
    animation: lds-ring 700ms cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.load-popup span {
    opacity: 0;
}
.load-popup .fs-loading {
    opacity: 1;
}

@keyframes lds-ring {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (min-width: 1024px) {

    .flashsale-item-title {
        grid-area: fsTitle;
    }
    .flashsale-price {
        grid-area: fsPrice;
        margin: 0;
        flex-direction: column;
        align-items: flex-start;
        grid-gap: 4px;
        max-width: 130px;
    }
    .flashsale-progress {
        grid-area: fsProgress;
    }
    .fs-addtocart {
        grid-area: fsButton;
    }
}

@media (min-width: 760px) and (max-width: 1020px) {
    .flashsale-info .flashsale-progress {
        margin-bottom: 10px;
    }

    .more-menu-menu span {
        display: none;
    }

    .more-menu-menu svg {
        display: block;
    }

    .flashSale-menu-item  {
        height: auto;
    }
}

@media (max-width: 760px) {
    .flashsale-list-product {
        grid-template-columns: repeat(2, 1fr);
    }

    .flashSale-event {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        white-space: nowrap;
    }

    .flashSale-menu-content-scroll {
        flex-wrap: wrap;
    }

    .flashSale-menu-wrapper {
        padding: 0;
    }

    .flashsale-list-gr {
        padding-left: 14px;
        padding-right: 14px;
    }
}