/* Header */
.header {
    height: --header-height;
    background: linear-gradient(0, #fe6433, #f53e2d);
}

.side-bar-mobile {
    display: none;
}

.header__nav {
    font-size: 1.2rem;
    display: flex;
    justify-content: space-between;
    line-height: 2.6rem;
}

.header__nav-list {
    margin-top: 0.4rem;
    margin-bottom: 00.8rem;
    display: flex;
    font-size: 1.6rem;
}

.header__nav-list-item {
    margin: 0 0.8rem;
    color: var(--color-white);
    font-weight: 300;
    position: relative;
}

.header__nav-list-item i {
    color: var(--color-white);
    padding: 0 0.4rem;
}

.header__item_has_qr:hover .header__link-download {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

.header__nav-item-link:hover,     
li.header__nav-list-item:hover,
li.header__nav-list-item i:hover {
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
}

.header__nav-item-link {
    color: var(--color-white);
    text-decoration: none;
}

.header__nav-list-item-border-right::after{
    content: "|";
    position: absolute;
    top: 0;
    right: -0.9rem;
}

.header__link-download{
    display: none;
    position: absolute;
    top: 100%;
    left: 0rem;
    width: 19rem;
    padding: 0.8rem;
    background-color: var(--color-white);
    z-index: 1;
}

.header__qr-code {
    width: 17rem;
}

.header__apps-download-icon {
    max-height: 1.7rem;
    padding-left: 0.8rem;
}

/* Header Notification */
.header__notify {
    position: absolute;
    top: calc(100% + 1rem);
    right: 0;
    background-color: var(--color-white);
    width: 40rem;
    border: 1px solid #ccc;
    border-radius: 2px;
    cursor: default;
    transform-origin: calc(100% - 2rem) top;
    animation: notifyGrowth ease-in-out 0.2s;
    will-change: opacity, transform;
    z-index: 2;
    display: none;
}

@keyframes notifyGrowth {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

li.header__nav-item-notify:hover .header__notify {
    display: block;
}

.header__notify::before {
    position: absolute;
    top: -2.8rem;
    right: 0.2rem;
    content: "";
    border-width: 2rem 2.6rem;
    border-style: solid;
    border-color: transparent transparent var(--color-white) transparent ;
}

.header__notify::after {
    content: "";
    position: absolute;
    top: -2rem;
    right: 0;
    width: 10rem;
    height: 3rem;
    background-color: transparent;
}

.header__notify-header {
    color: #888;
    padding: 1rem;
    cursor: text;
    user-select: none;
}

.header__notify-item {
    display: flex;
    text-decoration: none;
    padding: 0 1rem 1rem;
}

.header__notify-item:hover {
    background-color: #dbd0d0;
}
.header__notify-item-unread {
    background-color: rgba(245, 62, 45, 0.14);
}

.header__notify-img {
    max-width: 5.4rem;
    object-fit: contain;
}

.header__notify-content {
    margin-left: 1rem;
}

.header__notify-item-header {
    color: var(--color-black);
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.8rem;
    padding: 0;
}

.header__notify-description {
    font-size: 1.2rem;
    color: #756F6E;
    line-height: 1.6rem;
}

.header__notify-footer{
    display: flex;
    justify-content: center;
}

.header__notify-footer a{
    padding: 1rem 2rem;
    color: var(--color-black);
    font-weight: 300;
    text-decoration: none;
}

.header__user {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-left: 10px;
    color: var(--color-white);
}

.header__user:hover {
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
}

.header__user:hover .header__user-menu {
    display: block;
}

.header__user-img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}

.header__user-name {
    padding-left: 0.8rem;
}

.header__user-menu {
    position: absolute;
    z-index: 2;
    top: calc(100% + 10px);
    right: 0;
    background-color: var(--color-white);
    border-radius: 2px;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
    display: none;
}

.header__user-menu::before {
    content: "";
    position: absolute;
    top: -10px;
    right: 0;
    width: 100%;
    height: 20px;
}

.header__user-menu::after {
    content: "";
    position: absolute;
    top: -28px;
    right: 25%;
    border: 20px solid #ccc;
    border-color: transparent transparent var(--color-white) transparent;
    cursor: pointer;
}

.header__user-menu-item {
    padding: 0.8rem 1.6rem;
    font-size: 1.4rem;
    color: var(--color-black);
    text-decoration: none;
    display: block;
}

/* Auth modal */
.auth {
    position: relative;
    width: 50rem;
}

.auth__form {
    margin: 0.8rem;
}

.auth__form-header {
    display: flex;
    margin: 1.6rem;
    justify-content: space-between;
    line-height: 2.6rem;
}

.auth__form-header-title {
    font-size: 1.8rem;
    font-weight: 500;
}

.auth__form-header-description {
    font-size: 1.2rem;
    color: #756F6E;
}

.auth__form-switch-btn {
    font-size: 1.4rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--color-primary);
}

.auth__form-content {
    display: flex;
}

.auth__form-content-form {
    width: 100%;
    padding: 0.8rem;
    background-color: var(--color-white);   
}

.auth__form-content-form-item {
    display: flex;
    width: 100%;
    justify-content: space-between;
    margin: 1.6rem 0;
    line-height: 3.2rem;
}


.auth__form-content-form-item-input {
    flex: 1;
    border: 1px solid #ccc;
    padding: 1.2rem 0.8rem;
    border-radius: 2px;
}

.auth__form-aside {
    display: flex;
    justify-content: flex-end;
}

.auth__form-aside-policy-link {
    padding: 0.8rem;
    justify-self: center;
    text-align: center;
}

.auth_form-aside-link {
    font-size: 1.2rem;
    font-weight: 300;
    text-decoration: none;
    color: var(--color-primary);
    line-height: 2.4rem;   
}

.auth__form-help-link {
    text-decoration: none;
    padding: 0.8rem;
}

.auth__form-content-form-item-btn {
    margin-top: 80px;
    display: flex;
    justify-content: flex-end;
}

.auth_form-social-connect {
    display: flex;
    justify-content: space-between;
    padding: 1rem 1.6rem;
    background-color: #ebe3e3;
    font-size: 1.2rem;
}

.auth_form-connect-btn {
    display: flex;
    justify-content: space-evenly;
    align-content: center;
    max-height: 3rem;
    max-width: 45%;
    text-decoration: none;
    line-height: 3rem;
    margin: 0 0.8rem;
    border-radius: 2px;
}

.auth_form-connect-btn-fb {
    background-color: #1976D2;
    color: var(--color-white);
}

.auth_form-connect-btn-gg {
    background-color: white;
    color: var(--color-white);
}

.img-btn{
    height: 80%;    
    align-self: center;
}

.img-btn-fb {
    color: var(--color-white);
}

.img-btn-gg {
    color: var(--color-black);
}

/* Header with search */
.header-with-search {
    display: flex;
    height: var(--header-with-search-height);
}

/* Header mobile menu */
.header__mobile-menu {
    position: fixed;
    top: var(--header-with-search-height);
    left: 0;
    width: 320px;
    background-color: var(--color-white);
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
    border-radius: 0 0 2px 2px;
    color: var(--text-color);
    overflow: hidden;
    z-index: 2;
    display: none;
}

.header__mobile-menu-link {
    text-decoration: none;
    color: var(--color-black);
    display: block;
    padding: 1.6rem 2.4rem;
    font-size: 1.6rem;
    border-bottom: 1px solid #ddd;
}

/* Logo */

.header-with-search__logo-section {
    display: flex;
    width: 22rem; 
}

.header-with-search__logo-wrapper {
    padding-right: 4rem;
}

.header-with-search__search-section {
    align-self: center;
    flex: 1;
    display: flex;
    align-items: center;
}

.header-with-search__search-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    height: 4rem;
    background-color: var(--color-white);
    border-radius: 2px;
    padding: 0.3rem;
}

.header-with-search__form-search {
    display: flex;
    width: 100%;
}

.header-with-search__input-wrapper {
    position: relative;
    width: 100%;
}

.header-with-search__search-section .header-with-search__input{
    flex: 1;
    width: 100%;
    height: 34px;
    padding: 0rem 1rem;
    border: none;
    outline: none;
}

.header-with-search__history {
    position: absolute;
    top: calc(100% + 6px);
    left: -3px;
    background-color: var(--color-white);
    width: calc(100% - 20px);
    border-radius: 2px;
    box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.1);
    font-size: 1.3rem;
    z-index: 1;
    display: none;
}

.header-with-search__input:focus ~ .header-with-search__history {
    display: block;
}

.header-with-search__history-title {
    padding: 1.3rem;
    color: #6e6e6e;
}

.header-with-search__history-item {
    text-decoration: none;
}

.header-with-search__history-item:hover .header-with-search__history-item-text{
    background-color: #f5f5f5;
}

.header-with-search__history-item-text {
    padding: 1.3rem;
    color: var(--text-color);
}


.header-with-search__select {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 34px;
    position: relative;
}

.header-with-search__select::before {
    content: "";
    position: absolute;
    top: 10%;
    left: 0;
    height: 80%;
    border-left: 1px solid #ccc;
}

.header-with-search__select-header {
    padding: 0.8rem;
    font-size: 1.4rem;
    cursor: pointer;
}

.header-with-search__select:hover .header-with-search__item{
    cursor: pointer;
    display: block;
}

.header-with-search__item {
    position: absolute;
    top : 40px;
    right: 0;
    background-color: var(--color-white);
    width: 120%;
    padding: 0.8rem;
    border-radius: 2px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1;
}

.header-with-search__item::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 20px;
}

.header-with-search__item-option {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem;
}

.header-with-search__item-option i{
    color: var(--color-primary);
    font-size: 1.4rem;
    display: none;
}

.header-with-search__item-option.header-with-search__item-option-active i{
    display: inline-block;
}

.header-with-search__item-option-text {
    font-size: 1.4rem;
}

.header-with-search__cart-section {
    width: 16rem;
    align-self: center;
    padding: 0.8rem;
    position: relative;
}

.header-cart-icon {
    position: relative;
    text-align: center;
}

.header-cart-icon::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    height: 1.5rem;
}

.header__cart-count {
    position: absolute;
    top: -1rem;
    right: calc(50% - 25px);
    background-color: var(--color-white);
    color: var(--color-primary);
    font-size: 1.6rem;
    padding: 0.0rem 0.4rem;
    border-radius: 50%;
    border: 2px solid var(--color-primary);
}

.header__cart:hover ~ .header__cart-list, .header__cart-list:hover {
    display: block;
}

.header__cart-list {
    position: absolute;
    width: 400px;
    top: calc(100% - 2px);
    right: calc(100% - 104px);
    background-color: var(--color-white);
    border-radius: 2px;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
    display: none;
    animation: fadeIn ease-in 0.2s;
    /* max-height: 20vh;
    overflow-y: auto; */
    z-index: 1;
} 

.header__cart-list::after {
    content: "";
    position: absolute;
    top: -28px;
    right: 2px;
    border: 20px solid #ccc;
    border-color: transparent transparent var(--color-white) transparent;
    cursor: pointer;
}

.header__cart-no-cart {
    height: 220px;
    background-image: url(../img/more/no_cart.png);
    background-position: top center;
    background-repeat: no-repeat;
    z-index: 1;
}

.header__cart-no-cart-msg {
    display: none;
}

.header__cart-no-cart >.header__cart-no-cart-msg {
    display: block;
    position: absolute;
    top: 90%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.4rem;
    color: var(--color-black);
}

.header-with-search__cart-section .header-cart-icon {
    color: var(--color-white);
    font-size: 2.5rem;
    margin-top: 0.8rem;
}

.header__cart-no-cart .header__cart-list-wrapper {
    display: none;
}

.header__cart-list-header {
    padding: 1.2rem;
    font-size: 1.4rem;
    color: #999;
}

.header__cart-list-body {
    max-height: 50vh;
    overflow-y: auto;
}

.header__cart-list-item {
    display: flex;
    width: 100%;
}

.header__cart-list-item:hover {
    background-color: #f5f5f5;
    cursor: pointer;
}

.header__cart-list-item-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    padding: 1.2rem;
}

.header__cart-list-item-content {
    display: flex;
    width: 100%;
    flex-direction: column;
    justify-content: center;
    padding-right: 12px;
}

.header__cart-list-item-heading{
    display: flex;
    justify-content: space-between;
    height: 3.2rem;
    overflow: hidden;
}

.header__cart-list-item-description {
    display: flex;
    justify-content: space-between;
}

.header__cart-list-item-name {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--color-black);
    padding-bottom: 0.8rem;
    padding-right: 0.6rem;
    flex:1;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.header__cart-list-item-info {
    font-size: 1.4rem;
}

.header__cart-list-item-price {
    font-weight: 400;
    color: var(--color-primary);
}

.header__cart-list-item-quantity {
    font-size: 1.2rem;
    color: #999;
}

.header__cart-list-item-desc {
    font-size: 1.2rem;
    color: #999;
}

.header__cart-list-item-remove {
    font-size: 1.4rem;
}

.header__cart-list-item-remove:hover {
    color: var(--color-primary);
    cursor: pointer;
}

.header__cart-list-btn {
    display: flex;
    padding: 1.2rem;
    justify-content: flex-end;
}

/* Mobile category */
.mobile-category {
    overflow-x: auto;
    padding: 8px 0;
}

.mobile-category-list {
    display: flex;
    scrollbar-width: none;
    overflow-y: scroll;
}

.mobile-category-list::-webkit-scrollbar {
    display: none;
}

.mobile-category-item:nth-of-type(3n + 1) {
    background-color: #87AFD8;
}
.mobile-category-item:nth-of-type(3n + 2) {
    background-color: #76C9BD;
}
.mobile-category-item:nth-of-type(3n) {
    background-color: #88CF81;
}

.mobile-category-item {
    border-radius: 5px;
    margin: 0 8px;
    background-color: var(--color-primary);
}

.mobile-category-link {
    --height: 2rem;
    text-decoration: none;
    text-align: center ;
    color: var(--color-white);
    font-size: 1.4rem;
    font-weight: 300;
    width: 108px;
    height: calc(var(--height) * 2);
    line-height: var(--height);
    display: block;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    padding: 0 6px;
}


/* Container */
.container {
    padding-top: 36px;
    background-color: #F5F5F5;
}

.category {
    background-color: var(--color-white);
}

.category-heading {
    font-size: 1.8rem;
    font-weight: 400;
    padding: 1.2rem;
    text-transform: uppercase;
}

.category-list {
    padding: 1.2rem;
}

.category-item {
    padding: 0 12px;
}

.category-item__link {
    font-size: 1.4rem;
    text-decoration: none;
    color: var(--color-black);
    position: relative;
    right: 0;
    display: block;
    padding: 12px 0;
}

.category-item__link:hover {
    color: var(--color-primary);
    right: -6px;
}

.category-item__link-active {
    color: var(--color-primary);
}

.category-item__link-active::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -1.2rem;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border: 4px solid transparent;
    border-left-color: var(--color-primary);
}

/* Sort bar */
.sort-bar-list {
    display: flex;
    justify-content: space-between;
    padding: 1.2rem;
    background-color: var(--color-white);
    padding:0;
    height: var(--sort-bar-height);
}

.sort-bar-item {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2 4 2 rgba(0,0,0,0.2);
}

.sort-bar-item + .sort-bar-item {
    border-left: 1px solid #ddd;
}

.sort-bar-item.sort-bar-item-active .sort-bar-link {
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
}

.sort-bar-link {
    width: 100%;
    height: var(--sort-bar-height);
    color: var(--color-black);
    text-decoration: none;
    text-align: center;
    line-height: var(--sort-bar-height);
    font-size: 1.4rem;
}


/* Home Filter and Sort */
.home-filter {
    display: flex;
    padding: 12px;
    background-color: #EBEBEB;
}

.home-filter__sort-label {
    font-size: 1.4rem;
    color: #444;
    padding-right: 20px;
}

.home-filter__sort-btn-active {
    color: var(--color-white) !important;
    background-color: var(--color-primary) !important;
}

.home-filter__sort-price {
    position: relative;
    align-self: center;
    margin-left: 12px ;
    padding: 6px 12px;
    background-color: var(--color-white);
    border-radius: 2px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.home-filter__sort-price:hover .home-filter__sort-price-list{
    display: block;
}

.home-filter__price {
    font-size: 1.4rem;
    line-height: 2.2rem;
    width: 100px;
}

.home-filter__sort-price-list {
    position: absolute;
    top: calc(100% + 2px);
    right: 0;
    background-color: var(--color-white);
    width: 100%;
    border-radius: 2px;
    z-index: 1;
    display: none;
}

.home-filter__sort-price-list::after {
    content: "";
    position: absolute;
    top: -4px;
    right: 0;
    width: 100%;
    height: 10px;
}

.home-filter__sort-price-list-item {
    display: block;
    text-decoration: none;
    color: var(--text-color);
    padding: 12px;
    font-size: 1.2rem;
}

.home-filter__sort-price-list-item:hover {
    color: var(--color-primary);
}

.home-filter__page {
    margin-left: auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    font-size: 1.4rem;
}

.home-filter__page-current {
    color: var(--color-primary);
}

.home-filter__page-transfer {
    padding: 0 16px;
}

.home-filter__page-btn {
    padding: 11px 14px;
    background-color: var(--color-white);
    border: none;
    border-radius: 2px;
    font-size: 1.2rem;
    text-decoration: none;
    color: var(--text-color);
}

.product-item {
    display: block;
    width: 100%;
    border: none;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin: 12px 0;
    text-decoration: none;
    position: relative;
}


.product-item:hover {
    top: -2px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.product-item__img {
    width: 100%;
    padding-top: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center top;
}

.product-item__content {
    width: 100%;
    background-color: var(--color-white);
    padding: 0 12px;
}

.product-item__name {
    color: var(--text-color);
    background-color: var(--color-white);
    font-size: 1.4rem;
    padding-top: 12px;
    line-height: 1.8rem;
    height: 4.8rem;
    overflow: hidden;
    display: block;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

    /* white-space: nowrap;
    text-overflow: ellipsis; */

}

.product-item__price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.product-item__price-current {
    color: #999;
    font-size: 1.6rem;
    text-decoration: line-through;
}

.product-item__price-old {
    color: var(--color-primary);
    font-size: 1.8rem;
}

.product-item__action {
    display: flex;
    justify-content: space-between;
    padding: 0;
}

.product-item__action-like {
    font-size: 1.4rem;
    color: #999;
}

.product-item__action-like .fas.fa-heart {
    display: none;
}

.product-item__action-like.product-item__action-like--active .far.fa-heart{
    display: none;
}

.product-item__action-like.product-item__action-like--active .fas.fa-heart{
    display: block;
    color: var(--color-primary);
}

.product-item__action-rating {
    color: rgba(255, 218, 75, 0.8);
}

.product-item__sold {
    color: var(--text-color);
    font-size: 1.2rem;
}

.product-item__origin {
    display: flex;
    justify-content: space-between;
    color: #999;
    font-size: 1.3rem;
    padding: 8px 0;
}

.product-item__favourite {
    position: absolute;
    top: 12px;
    left: -4px;
    color: var(--color-white);
    background-color: #EE4D2D;
    border-bottom-right-radius: 4px;
    border-top-right-radius: 4px;
    font-size: 1.2rem;
    padding: 0 8px;
}
.product-item__favourite::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 0;
    height: 0;
    border: 2px solid transparent;
    color: var(--color-primary);
    border-right-color: currentColor;
    border-top-color: currentColor;
    filter: brightness(60%);
}

.product-item__sale-off {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(255, 218, 75, 0.8);
    width: 40px;
    height: 36px;
}

.product-item__sale-off::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 0;
    width: 0;
    height: 0;
    border-width: 0px 20px 6px 20px;
    border-style: solid;
    border-color: rgba(255, 218, 75, 0.8);
    border-bottom-color: transparent;
}

.product-item__sale-off-percent {
    font-size: 1.3rem;
    color: red;
}

.product-item__sale-off-label {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-white);
}

.pagination-home-product {
    padding: 48px 0 32px 0;
}

/* Footer */
.footer {
    border-top: 4px solid var(--color-primary);
}

.footer-heading {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-color);
    text-transform: uppercase;
    padding: 24px 0;
}

.footer-list-item-link {
    color: #888;
    font-size: 1.3rem;
    text-decoration: none;
    display: block;
    padding: 4px 0;
}

.footer-list-item-link:hover {
    color: var(--color-primary);
}

.footer-download {
    display: flex;
    width: 160px;
    margin: 0 auto;
}

.footer-download__qr-code {
    flex: 1;
    width: 50%;
    border: 1px solid #EBEBEB;
}

.footer-download__apps {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.footer-download__app {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    margin-left: 16px;
}

.footer-download__app-img {
    width: 100%;
}

.footer-bottom {
    background-color: #F5F5F5;
    margin-top: 46px;
}

.footer-copyright {
    padding: 16px 0;
    text-align: center;
}

.footer-copyright__text {
    color: #888;
    font-size: 1.3rem;
}