/* header */
.app__header {
    height: var(--header-height);
    background-image: linear-gradient(0, #fe6433, #f52e2d);
}

.header__navbar {
    display: flex;
    justify-content: space-between;
}

.header__navbar-list {
    display: flex;
    list-style: none;
    padding-left: 0;
    margin: 7px 0 0 0;
}

.header__navbar-item {
    margin: 0 8px;
    min-height: 2.6rem;
    position: relative;
}

.header__navbar-user {
    display: flex;
    justify-content: center;
    position: relative;
}

.header__navbar-user:hover .header__navbar-user-menu {
    display: block;
}

.header__navbar-user-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.header__navbar-user-username {
    margin-left: 4px;
    font-size: 1.4rem;
    font-weight: 500;
}

.header__navbar-user-menu {
    z-index: 2;
    position: absolute;
    list-style: none;
    padding-left: 0;
    top: calc(100% + 6px);
    right: 0;
    background-color: var(--white-color);
    border-radius: 2px;
    width: 160px;
    box-shadow: 0 1px 5px #999;
    display: none;
}

.header__navbar-user-menu-item a {
    display: block;
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.4rem;
    font-weight: 400;
    padding: 8px 12px;
}

.header__navbar-user-menu-item a:hover {
    background-color: #fafafa;
}

.header__navbar-user-menu-item a:first-child {
    border-top-left-radius: 2px;
    border-top-right-radius: 2px;
}

.header__navbar-user-menu-item a:last-child {
    border-bottom-left-radius: 2px;
    border-bottom-right-radius: 2px;
}

.header__navbar-user-menu::before {
    content: "";
    border-width: 20px 27px;
    border-style: solid;
    border-color: transparent transparent var(--white-color) transparent;
    position: absolute;
    right: 0;
    top: -30px;
}

.header__navbar-user-menu::after {
    content: "";
    display: block;
    position: absolute;
    right: 0;
    top: -12px;
    height: 16px;
    width: 54%;
}

.header__navbar-user-menu-item--separate {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.header__navbar-item,
.header__navbar-item-link {
    display: inline-block;
    font-size: 1.4rem;
    font-weight: 300;
    text-decoration: none;
    color: var(--white-color);
}

.header__navbar-list,
.header__navbar-item,
.header__navbar-item-link {
    display: flex;
    align-items: center;
}

.header__navbar-item:hover,
.header__navbar-icon-link:hover,
.header__navbar-item-link:hover {
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
}

.header__navbar-item--qr:hover .header__qr {
    display: block;
}

.header__navbar-notify-hover:hover .header__notify {
    display: block;
}

.header__navbar-item--strong {
    font-weight: 450;
}

.header__navbar-item--separate {
    display: flex;
    content: "";
    padding: 0 1.9rem;
    border-right: 2px solid rgba(0, 0, 0, 0.2);
}

.header__navbar-icon-link {
    color: #fff;
    text-decoration: none;
}

.header__navbar-icon-link:nth-child(2) {
    margin-left: 3px;
}

.header__navbar-icon {
    font-size: 1.8rem;
    margin: 0 4px;
}

.header__navbar-title--no-pointer {
    cursor: text;
    color: var(--white-color);
}

/* Header QR code */
.header__qr {
    z-index: 1;
    width: 186px;
    margin: 0 1.9rem;
    background-color: var(--white-color);
    position: absolute;
    display: none;
    left: 0;
    top: 100%;
    padding: 9px;
    border-radius: 2px;
    animation: fadeIn ease-in 0.2s;
    border: 1px solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.1);
}

.header__qr::before {
    position: absolute;
    left: 0;
    top: -16px;
    width: 100%;
    height: 20px;
    content: "";
    display: block;
}


.header__qr-img {
    width: 100%;
}

.header__qr-apps {
    padding-top: 14px;
    display: flex;
    justify-content: space-between;
}

.header__qr-link:first-child {
    margin-left: 10px;
}

.header__qr-link:last-child {
    margin-right: 10px;
}


.header__qr-download-img {
    height: 15px;
}

/* header notify  */


.header__notify {
    position: absolute;
    z-index: 1;
    top: 142%;
    right: 0;
    width: 404px;
    background-color: var(--white-color);
    border: 1p solid rgba(0, 0, 0, 0.2);
    border: 3px;
    box-shadow: 0px 0px 10px rgb(0 0 0 / 50%);
    transform-origin: calc(100% - 24px) top;
    animation: header-notify-Grow ease-in 0.2s;
    -webkit-animation: header-notify-Grow ease-in 0.25s;
    -ms-animation: header-notify-Grow ease-in 0.25s;
    -o-animation: header-notify-Grow ease-in 0.25s;
    -moz-animation: header-notify-Grow ease-in 0.25s;
    will-change: opacity, transform;
    display: none;
}

.header__notify::before {
    content: "";
    border-width: 20px 27px;
    border-style: solid;
    border-color: transparent transparent var(--white-color) transparent;
    position: absolute;
    right: -1px;
    top: -30px;
}

.header__notify::after {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 20px;
    right: 0px;
    top: -15px;
}

.header__notify-header {
    height: 40px;
    cursor: text;
    background-color: var(--white-color);
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
}

.header__notify-header h3 {
    color: #999;
    margin: 0 0 0 12px;
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 40px;
}

.header__notify-list {
    padding-left: 0;
}

.header__notify-item {
    display: flex;
}

.header__notify-item:hover {
    background-color: rgb(241, 241, 241, 0.9);
}

.header__notify-item--viewed {
    background-color: rgb(238, 77, 45, 0.08);
}

.header__notify-link {
    display: flex;
    width: 100%;
    padding: 12px;
    text-decoration: none;
}

.header__notify-img {
    width: 48px;
    object-fit: contain;
}

.header__notify-info {
    margin-left: 12px;
}

.header__notify-name {
    display: block;
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.8rem;
    color: var(--text-color);
}

.header__notify-discription {
    display: block;
    font-size: 1.2rem;
    color: #756F6E;
    line-height: 1.4rem;
    margin-top: 0.5rem;
}

.header_notify-footer {
    display: flex;
}

.header_notify-footer-btn {
    text-decoration: none;
    color: var(--text-color);
    padding: 0.8rem 0;
    width: 100%;
    font-size: 1.6rem;
    font-weight: 400;
    text-align: center;
}

/* authen modal */
.auth-form {
    width: 500px;
    border-radius: 4px;
    overflow: hidden;
    background-color: var(--white-color);
}

.auth-form__container {
    padding: 0 32px;

}

.auth-form__header {
    display: flex;
    padding: 0 16px;
    margin-top: 16px;
    align-items: center;
    justify-content: space-between;
}

.auth-form__heading {
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--text-color);
}

.auth-form__switch-button {
    font-size: 1.6rem;
    color: var(--primary-color);
    font-weight: 400;
    cursor: pointer;
}

.auth-form__switch-button:hover {
    color: rgba(238, 77, 45, 0.65);
}

.auth-form__body {
    margin-top: 16px;
}

.auth-form__group {
    margin: -10px 0px;
}

.auth-form__input {
    width: calc(100% - 32px);
    height: 4rem;
    margin: 16px;
    padding: 0 12px;
    font-size: 1.4rem;
    border-radius: 2px;
    border: 1px solid var(--border-color);
    outline: none;
}

.auth-form__input:focus {
    border-color: #777;
}

.auth-form__aside {
    margin-top: 18px;
}

.auth-form_policy-text {
    padding: 0 12px;
    font-size: 1.2rem;
    line-height: 1.8rem;
    text-align: center;
}

.auth-form_policy-text-link {
    text-decoration: none;
    color: var(--primary-color);
}

.auth-form__controls {
    margin-top: 80px;
    display: flex;
    justify-content: flex-end;
}

.btn-back {
    margin-right: 8px;
}

.auth-form__socials {
    background-color: #f5f5f5;
    margin-top: 16px
}

.auth-form__socials--fb .auth-form__socials-icon {
    color: var(--white-color);
}

.auth-form__socials--fb {
    color: var(--white-color);
    background-color: #3A5A98;
}

.auth-form__socials--gg {
    background-color: var(--white-color);
    color: #777;
}

.auth-form__socials-title {
    margin: 0 62px;
}

.auth-form__socials-header {
    color: var(--text-color);
    font-weight: 400;
    font-size: 1.1rem;
    display: flex;
    justify-content: center;
}

.auth-form__socials-body {
    display: flex;
    padding: 0px 32px 14px 32px;
    justify-content: space-around;
}

.auth-form__help {
    display: flex;
    justify-content: flex-end;
}

.auth-form__help-link {
    text-decoration: none;
    font-size: 1.4rem;
    color: #939393;
}

.auth-form__help-seqarate {
    display: block;
    height: 22px;
    margin: -4px 16px 0;
    border-left: 2px solid var(--border-color);
}

.auth-form__help-forgot {
    color: var(--primary-color);
}

.header-with-search {
    height: var(--header-with-search-height);
    display: flex;
    align-items: center;
}

.header__mobile-search {
    padding: 0 16px;
    display: none;
}

.header__mobile-search i {
    font-size: 2.6rem;
    color: var(--white-color);
}

.header__logo {
    width: 200px;
    margin-left: 24px;
}

.header__logo-link {
    color: transparent;
    text-decoration: none;
    display: block;
    line-height: 0;
}

.header__logo-img {
    width: 150px;
}

/* search  */

.header__search {
    background-color: var(--white-color);
    height: 40px;
    display: flex;
    flex: 1;
    border-radius: 2px;
    align-items: center;
}

.header__search-input-wrap {
    flex: 1;
    height: 100%;
    position: relative;
}

/* search from */

.header__search-input {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    font-size: 1.6rem;
    color: var(--text-color);
    padding: 0 16px;
    border-radius: 2px;
}

.header__search-selection {
    border-left: 1px solid rgb(223, 221, 221);
    padding-left: 16px;
    position: relative;
    cursor: pointer;
}

.header__search-selection-label {
    font-size: 1.5rem;
    color: var(--text-color);
}

.header__search-btn {
    background-color: var(--primary-color);
    cursor: pointer;
    border: none;
    outline: none;
    height: 34px;
    width: 60px;
    border-radius: 2px;
    margin: 0 3px 0 0;
}

.header__search-btn:hover {
    background-color: #ef5e42;
}

.header__search-btn-icon {
    font-size: 1.6rem;
    color: var(--white-color);
}

.header__search-selection:hover .header__search-option {
    display: block;
}

.header__search-option {
    box-shadow: 0 1px 2px rgba(204, 204, 204, 0.911);
    position: absolute;
    list-style: none;
    padding-left: 0;
    right: 0;
    z-index: 1;
    top: calc(100% - 3px);
    width: 130px;
    border-radius: 2px;
    margin-top: 16px;
    display: none;
    animation: fadeIn ease-in 0.2s;
}

.header__search-option::after {
    content: "";
    display: block;
    width: 100%;
    height: 30px;
    top: -15px;
    left: 0;
    position: absolute;
}

.header__search-option-item {
    background-color: var(--white-color);
    padding: 8px 8px;
}

.header__search-option-item:first-child {
    border-top-left-radius: 2px;
    border-top-right-radius: 2px;
}

.header__search-option-item:last-child {
    border-bottom-left-radius: 2px;
    border-bottom-right-radius: 2px;
}

.header__search-option-item:hover {
    background-color: #fafafa;
    cursor: pointer;
}

.header__search-option-item span {
    font-size: 1.4rem;
    margin-left: 8px;
    color: var(--text-color);
}

.header__search-option-item i {
    font-size: 1.2rem;
    margin-left: 12px;
    color: var(--primary-color);
    display: none;
}

.header__search-option-item-active i {
    display: inline-block;
}

/* search history */

.header__search-history {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    z-index: 1;
    width: calc(100% - 16px);
    background-color: var(--white-color);
    border-radius: 2px;
    border: none;
    box-shadow: 0 1px 5px #999;
    overflow: hidden;
    display: none;
}

.header__search-input:focus~.header__search-history {
    display: block;
}

/* .header__search-history::after {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 20px;
    right: 0px;
    top: -15px;
} */

.header__search-history-heading {
    margin: 8px 8px 12px;
    font-size: 1.4rem;
    color: #999;
    font-weight: 400;
}

.header__search-history-list {
    padding-left: 0;
    list-style: none;
    margin-bottom: 0;
}

.header__search-history-item {
    height: 38px;
    padding: 0 12px;
}

.header__search-history-item:hover {
    background-color: #fafafa;
}

.header__search-history-item a {
    display: block;
    text-decoration: none;
    font-size: 1.4rem;
    line-height: 38px;
    color: var(--text-color);
}

/* cart  */

.header__cart {
    text-align: center;
    width: 150px;
    padding: 0 16px;
}

.header__cart-wrap {
    position: relative;
    display: inline-block;
    padding: 4px 8px;
}

.header__cart-wrap:hover .header__cart-list {
    display: block;
}

.header__cart-icon {
    color: var(--white-color);
    cursor: pointer;
    font-size: 2.6rem;
    margin-top: 2px;
}

.header__cart-icon-count {
    position: absolute;
    padding: 2px 6px;
    background-color: var(--white-color);
    color: var(--primary-color);
    font-size: 1.4rem;
    line-height: 1.4rem;
    border-radius: 10px;
    top: -3px;
    right: -8px;
    border: 2px solid #EE4D2D;
}

.header__cart-list {
    position: absolute;
    top: calc(100% + 8px);
    right: -16px;
    background-color: var(--white-color);
    width: 400px;
    border-radius: 2px;
    z-index: 1;
    box-shadow: 0 2px 5px #ccc;
    display: none;
    cursor: default;
    transform-origin: calc(100% - 30px) top;
    animation: header-notify-Grow ease-in 0.2s;
}

.header__cart-list::after {
    content: "";
    position: absolute;
    cursor: pointer;
    right: 10px;
    top: -30px;
    border-width: 20px 26px;
    border-style: solid;
    border-color: transparent transparent var(--white-color) transparent;
}

.header__cart-list--noCart {
    padding: 32px 0;
}

.header__cart-list--noCart .header__cart-list--noCart-img,
.header__cart-list--noCart .header__cart-list--noCart-msg {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.header__cart-list--noCart-img {
    display: none;
    width: 54%;
}

.header__cart-list--noCart-msg {
    display: none;
    margin-top: 16px;
    font-size: 1.4rem;
    color: var(--text-color);
    font-weight: 400;
}

/* when has Cart Item  */

.header__cart-heading {
    text-align: left;
    margin: 12px 0 8px 12px;
    font-size: 1.5rem;
    color: #999;
    font-weight: 400;
}

.header__cart-listItem {
    padding-left: 0;
    max-height: 50vh;
    overflow-y: auto;
    list-style: none;
}

.header__cart-Item {
    display: flex;
    align-items: center;
}

.header__cart-Item:hover {
    background-color: #f8f8f8;
}

.header__cart-img {
    width: 42px;
    height: 42px;
    margin: 12px;
    border: 1px solid #E8E8E8;
}

.header__cart-Item-Info {
    width: 100%;
    margin-right: 12px;

}

/* Item Cart of Head  */

.header__cart-Item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 8px 0;
}

.header__cart-Item-name {
    margin: 0;
    flex: 1;
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 2rem;
    max-height: 4rem;
    padding-right: 16px;
    overflow: hidden;
    color: var(--text-color);
    text-align: left;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-lime-clamp: 2;
}

.header__cart-Item-price {
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--primary-color);
}

.header__cart-Item-mutiply {
    font-size: 0.9rem;
    margin: 0 4px;
    color: #757575;
}

.header__cart-Item-qnt {
    color: #757575;
    font-size: 1.2rem;
}

/* Item Cart of Body  */

.header__cart-Item-body {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
}

.header__cart-Item-desciption {
    color: #757575;
    font-size: 1.2rem;
    font-weight: 300;
}

.header__cart-Item-remove {
    color: var(--text-color);
    font-size: 1.4rem;
    font-weight: 500;
    cursor: pointer;
}


.header__cart-Item-remove:hover {
    color: var(--primary-color);
}

.header__cart-viewCart {
    float: right;
    text-decoration: none;
    margin: 0 12px 12px 0;
}

.header__cart-viewCart:hover {
    background-color: #f05D41;
}

.header__sort-bar {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    height: var(--header-sort-bar-height);
    background-color: var(--white-color);
    margin: 0;
    padding-left: 0;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    display: none;
}

.header__sort-item {
    flex: 1;
    list-style: none;
}

.header__sort-link {
    text-decoration: none;
    color: var(--text-color);
    line-height: var(--header-sort-bar-height);
    font-size: 1.4rem;
    display: block;
    height: 100%;
    text-align: center;
    position: relative;
}

.header__sort-link::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    height: 60%;
    border-left: 1px solid #e5e5e5;
    transform: translateY(-50%);
}

.header__sort-item:first-child .header__sort-link::before {
    display: none;
}

.header__sort-link--active .header__sort-link {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.header__search-checkbox:checked~.header__search {
    display: flex;
}