/*
Theme Name: Flatsome Child
Description: Child theme for Flatsome
Author: UX Themes
Template: flatsome
Version: 1.0
*/

:root {
    --text-bac-1-size: 18px;
    --text-bac-1-weight: 700;
    --text-bac-1-line-height: 1.3;
    --text-bac-2-size: 17px;
    --text-bac-2-weight: 600;
    --text-bac-2-line-height: 1.4;
    --text-bac-3-size: 16px;
    --text-bac-3-weight: 520;
    --text-bac-3-line-height: 1.3;
    --text-bac-4-size: 14px;
    --text-bac-4-weight: 500;
    --text-bac-4-line-height: 1.4;
    --text-bac-5-size: 13px;
    --text-bac-5-weight: 500;
    --text-bac-5-line-height: 1.45;
    --background-xam-nhat: #f7f8fc;
    --button-phu-chu: #050505;
    --button-phu-nen: #ffffff;
    --button-phu-vien: #d8d8d8;
    --button-phu-nen-hover: #f6f6f6;
    --button-phu-vien-hover: #cfcfcf;
    --button-phu-nen-active: #eeeeee;
    --button-phu-vien-active: #c8c8c8;
}

@media (max-width: 767px) {
    :root {
        --text-bac-1-size: 17px;
        --text-bac-2-size: 16px;
        --text-bac-3-size: 15.5px;
        --text-bac-4-size: 13.5px;
        --text-bac-5-size: 12px;
    }
}

body.home,
body.front-page,
body.single-product,
body.archive.tax-product_cat,
body.post-type-archive-product,
.home #wrapper,
.front-page #wrapper,
.single-product #wrapper,
.archive.tax-product_cat #wrapper,
.post-type-archive-product #wrapper,
.home #main,
.front-page #main,
.single-product #main,
.archive.tax-product_cat #main,
.post-type-archive-product #main,
.single-product .shop-container,
.archive.tax-product_cat .shop-container,
.post-type-archive-product .shop-container {
    background: var(--background-xam-nhat);
}

@media (min-width: 850px) {
    #wide-nav {
        border: 0;
        background: var(--background-xam-nhat);
    }

    #wide-nav .flex-row {
        align-items: flex-start;
        justify-content: center;
        min-height: 92px;
        padding-top: 26px;
    }

    #wide-nav .header-bottom-nav {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        align-content: center;
        flex: 0 0 auto;
        flex-wrap: nowrap;
        gap: 14px;
        height: 48px;
        max-height: 48px;
        margin: 0 auto;
        padding: 0 36px;
        border-radius: 999px;
        background:
            linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.84)),
            rgba(255, 255, 255, 0.9);
        box-shadow:
            0 12px 32px rgba(15, 23, 42, 0.08),
            inset 0 1px 0 rgba(255, 255, 255, 0.82);
    }

    #wide-nav .header-bottom-nav > li {
        position: relative;
        flex: 0 0 auto;
        margin: 0;
    }
}

#wide-nav .header-bottom-nav.nav-uppercase > li > a,
#wide-nav .header-bottom-nav.nav-uppercase .nav-top-link {
    font-size: 15px;
    font-weight: 700;
    padding-left: 10px;
    padding-right: 10px;
    text-transform: none;
}

#wide-nav .header-bottom-nav > .menu-item > .nav-dropdown {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    z-index: 30;
    margin-top: 14px;
    overflow: visible;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 0;
    border-radius: 14px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.68)),
        rgba(255, 255, 255, 0.72);
    box-shadow:
        0 18px 46px rgba(15, 23, 42, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.74),
        inset 0 -1px 0 rgba(15, 23, 42, 0.05);
    backdrop-filter: blur(18px) saturate(1.28);
    -webkit-backdrop-filter: blur(18px) saturate(1.28);
}

#wide-nav .header-bottom-nav > .menu-item > .nav-dropdown::before,
#wide-nav .header-bottom-nav > .menu-item > .nav-dropdown::after {
    display: none !important;
}

#wide-nav .header-bottom-nav > .menu-item > .nav-dropdown > li:first-child::before {
    position: absolute;
    top: -9px;
    left: 44px;
    width: 18px;
    height: 18px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.68)),
        rgba(255, 255, 255, 0.72);
    box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.74);
    content: "";
    pointer-events: none;
    transform: rotate(45deg);
}

#wide-nav .header-bottom-nav > .menu-item > .nav-dropdown a {
    display: flex;
    align-items: center;
    min-height: 40px;
    margin: 0;
    padding: 0 14px;
    border-radius: 8px;
    color: rgba(17, 24, 39, 0.76);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.25;
}

#wide-nav .header-bottom-nav > .menu-item > .nav-dropdown li {
    margin: 0;
    padding: 0;
    border: 0;
    line-height: 1;
}

#wide-nav .header-bottom-nav > .menu-item > .nav-dropdown a:hover,
#wide-nav .header-bottom-nav > .menu-item > .nav-dropdown a:focus {
    background: rgba(17, 24, 39, 0.08);
    color: #111827;
}

#masthead .account-item > .nav-dropdown,
#masthead .account-item .nav-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    margin-top: 14px;
    overflow: visible;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 0;
    border-radius: 14px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.68)),
        rgba(255, 255, 255, 0.72);
    box-shadow:
        0 18px 46px rgba(15, 23, 42, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.74),
        inset 0 -1px 0 rgba(15, 23, 42, 0.05);
    backdrop-filter: blur(18px) saturate(1.28);
    -webkit-backdrop-filter: blur(18px) saturate(1.28);
}

#masthead .account-item.has-dropdown::before,
#masthead .account-item.has-dropdown::after {
    display: none !important;
}

#masthead .account-item > .nav-dropdown::before,
#masthead .account-item .nav-dropdown::before {
    content: "";
    position: absolute;
    top: -8px;
    right: 22px;
    width: 16px;
    height: 16px;
    border-radius: 3px 0 0;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.68)),
        rgba(255, 255, 255, 0.72);
    transform: rotate(45deg);
    pointer-events: none;
}

#masthead .account-item > .nav-dropdown a,
#masthead .account-item .nav-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    margin: 0;
    padding: 0 14px;
    border-radius: 8px;
    color: rgba(17, 24, 39, 0.76);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.25;
}

#masthead .account-item > .nav-dropdown a::before,
#masthead .account-item .nav-dropdown a::before {
    content: "";
    display: block;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    background: currentColor;
    opacity: 0.86;
}

#masthead .account-item .woocommerce-MyAccount-navigation-link--khu-khach-hang a::before {
    mask: url("icon/menu/receipt.svg") center / contain no-repeat;
    -webkit-mask: url("icon/menu/receipt.svg") center / contain no-repeat;
}

#masthead .account-item .woocommerce-MyAccount-navigation-link--ho-so-khach-hang a::before {
    mask: url("icon/menu/user.svg") center / contain no-repeat;
    -webkit-mask: url("icon/menu/user.svg") center / contain no-repeat;
}

#masthead .account-item .woocommerce-MyAccount-navigation-link--uu-dai-tich-diem a::before {
    mask: url("icon/menu/credit-card.svg") center / contain no-repeat;
    -webkit-mask: url("icon/menu/credit-card.svg") center / contain no-repeat;
}

#masthead .account-item .woocommerce-MyAccount-navigation-link--ho-tro a::before {
    mask: url("icon/menu/headset.svg") center / contain no-repeat;
    -webkit-mask: url("icon/menu/headset.svg") center / contain no-repeat;
}

#masthead .account-item .woocommerce-MyAccount-navigation-link--customer-logout a::before {
    mask: url("icon/menu/log-out.svg") center / contain no-repeat;
    -webkit-mask: url("icon/menu/log-out.svg") center / contain no-repeat;
}

#masthead .account-item > .nav-dropdown li,
#masthead .account-item .nav-dropdown li {
    margin: 0;
    padding: 0;
    border: 0;
    line-height: 1;
}

#masthead .account-item > .nav-dropdown a:hover,
#masthead .account-item > .nav-dropdown a:focus,
#masthead .account-item .nav-dropdown a:hover,
#masthead .account-item .nav-dropdown a:focus {
    background: rgba(17, 24, 39, 0.08);
    color: #111827;
}

.off-canvas-left .mfp-content:has(#main-menu),
.off-canvas-right .mfp-content:has(#main-menu) {
    overflow: hidden;
    background: #ffffff !important;
    border-radius: 0 22px 22px 0;
    box-shadow: 0 0 18px rgba(15, 23, 42, 0.12);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.off-canvas-left .mfp-content:has(#main-menu) .mfp-close,
.off-canvas-right .mfp-content:has(#main-menu) .mfp-close {
    display: none !important;
}

#main-menu.mobile-sidebar,
.mfp-content #main-menu,
#main-menu .sidebar-menu {
    background: transparent !important;
    backdrop-filter: blur(22px) saturate(1.18);
    -webkit-backdrop-filter: blur(22px) saturate(1.18);
}

#main-menu.mobile-sidebar,
#main-menu .sidebar-menu {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

#main-menu .sidebar-menu {
    width: 100%;
    min-height: 100%;
    margin: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #ffffff !important;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

#main-menu .nav-sidebar.nav-uppercase,
#main-menu .nav-sidebar.nav-uppercase a {
    text-transform: none;
}

#main-menu .nav-sidebar {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 4px 14px 22px;
    background: transparent;
}

#main-menu .nav-sidebar > li {
    margin: 0;
    border: 0;
    background: transparent !important;
}

#main-menu .nav-sidebar > li + li {
    border-top: 1px solid rgba(15, 23, 42, 0.045);
}

#main-menu .nav-sidebar > li > a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 22px;
    align-items: center;
    min-height: 48px;
    padding: 0 4px;
    background: transparent !important;
    color: rgba(17, 24, 39, 0.72);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.2;
}

#main-menu .nav-sidebar > li > a:hover,
#main-menu .nav-sidebar > li > a:focus,
#main-menu .nav-sidebar > li.active > a {
    color: #050505;
    background: transparent !important;
}

#main-menu .nav-sidebar > li > a .toggle,
#main-menu .nav-sidebar > li > a .icon-angle-down,
#main-menu .nav-sidebar > li > a i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin: 0;
    color: rgba(17, 24, 39, 0.48);
    line-height: 1;
}

#main-menu .nav-sidebar .children,
#main-menu .nav-sidebar .sub-menu {
    display: none;
    margin: 0 0 12px;
    padding: 2px 0 8px 12px;
    border-left: 1px solid rgba(15, 23, 42, 0.045);
    background: transparent;
}

#main-menu .nav-sidebar .active > .children,
#main-menu .nav-sidebar .active > .sub-menu {
    display: block;
}

#main-menu .nav-sidebar .children a,
#main-menu .nav-sidebar .sub-menu a {
    display: flex;
    align-items: center;
    min-height: 30px;
    padding: 0;
    color: #050505;
    font-size: 13.5px;
    font-weight: 400;
    line-height: 1.25;
    text-transform: none;
}

#main-menu .nav-sidebar .children li,
#main-menu .nav-sidebar .sub-menu li {
    margin: 0;
    border: 0;
}

#main-menu .header-search-form {
    padding: 16px 16px 14px;
}

#main-menu .header-search-form .searchform {
    margin: 0;
}

#main-menu .header-search-form .flex-row {
    display: flex;
    align-items: center;
    width: 100%;
    height: 46px;
    padding: 4px;
    border: 1px solid rgba(15, 23, 42, 0.2);
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

#main-menu .header-search-form .flex-grow {
    flex: 1 1 auto;
    min-width: 0;
}

#main-menu .header-search-form .flex-col {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

#main-menu .header-search-form .search-field {
    width: 100%;
    height: 38px;
    min-height: 38px;
    padding: 0 12px;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: #111827;
    font-size: 14px;
}

#main-menu .header-search-form .search-field:focus {
    box-shadow: none;
}

#main-menu .header-search-form .search-field::placeholder {
    color: rgba(17, 24, 39, 0.46);
}

#main-menu .header-search-form .ux-search-submit {
    appearance: none;
    display: grid;
    flex: 0 0 38px;
    place-items: center;
    width: 38px;
    min-width: 38px;
    max-width: 38px;
    height: 38px;
    min-height: 38px;
    max-height: 38px;
    margin: 0;
    padding: 0 !important;
    border: 0;
    border-radius: 999px !important;
    background: #050505;
    color: #ffffff;
    box-shadow: none;
    line-height: 1;
}

#main-menu .header-search-form .ux-search-submit i {
    display: block;
    position: relative;
    top: 0;
    margin: 0;
    color: inherit;
    font-size: 0;
    line-height: 1;
    width: 17px;
    height: 17px;
}

#main-menu .header-search-form .ux-search-submit i::before {
    content: "" !important;
    position: absolute;
    top: 1px;
    left: 1px;
    width: 10px;
    height: 10px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

#main-menu .header-search-form .ux-search-submit i::after {
    content: "";
    position: absolute;
    right: 1px;
    bottom: 2px;
    width: 7px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform: rotate(45deg);
    transform-origin: center;
}

#main-menu .header-search-form .ux-search-submit:hover,
#main-menu .header-search-form .ux-search-submit:focus {
    background: #1f2937;
    color: #ffffff;
}

body.home #content > .banner-grid-wrapper,
body.front-page #content > .banner-grid-wrapper,
body.home #content > .banner-grid-wrapper *,
body.front-page #content > .banner-grid-wrapper * {
    box-sizing: border-box;
}

body.home #content > .banner-grid-wrapper .col-inner,
body.front-page #content > .banner-grid-wrapper .col-inner,
body.home #content > .banner-grid-wrapper .banner,
body.front-page #content > .banner-grid-wrapper .banner,
body.home #content > .banner-grid-wrapper .banner-inner,
body.front-page #content > .banner-grid-wrapper .banner-inner,
body.home #content > .banner-grid-wrapper .banner-bg,
body.front-page #content > .banner-grid-wrapper .banner-bg,
body.home #content > .banner-grid-wrapper .bg,
body.front-page #content > .banner-grid-wrapper .bg,
body.home #content > .banner-grid-wrapper .bg-fill,
body.front-page #content > .banner-grid-wrapper .bg-fill {
    border-radius: 14px !important;
}

body.home #content > .banner-grid-wrapper .col-inner,
body.front-page #content > .banner-grid-wrapper .col-inner,
body.home #content > .banner-grid-wrapper .banner,
body.front-page #content > .banner-grid-wrapper .banner,
body.home #content > .banner-grid-wrapper .banner-inner,
body.front-page #content > .banner-grid-wrapper .banner-inner,
body.home #content > .banner-grid-wrapper .banner-bg,
body.front-page #content > .banner-grid-wrapper .banner-bg,
body.home #content > .banner-grid-wrapper .bg,
body.front-page #content > .banner-grid-wrapper .bg,
body.home #content > .banner-grid-wrapper .bg-fill,
body.front-page #content > .banner-grid-wrapper .bg-fill {
    overflow: hidden !important;
}

@media (max-width: 767px) {
    body.home #content > .banner-grid-wrapper > .banner-grid,
    body.front-page #content > .banner-grid-wrapper > .banner-grid {
        display: grid !important;
        width: 95%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        height: auto !important;
        margin-left: auto;
        margin-right: auto;
    }

    body.home #content > .banner-grid-wrapper > .banner-grid > .grid-col,
    body.front-page #content > .banner-grid-wrapper > .banner-grid > .grid-col {
        position: relative !important;
        inset: auto !important;
        width: auto !important;
        max-width: none !important;
        height: auto !important;
        padding: 0;
        transform: none !important;
    }

    body.home #content > .banner-grid-wrapper > .banner-grid > .grid-col:nth-child(1),
    body.front-page #content > .banner-grid-wrapper > .banner-grid > .grid-col:nth-child(1),
    body.home #content > .banner-grid-wrapper > .banner-grid > .grid-col:nth-child(2),
    body.front-page #content > .banner-grid-wrapper > .banner-grid > .grid-col:nth-child(2) {
        grid-column: 1 / -1;
        height: 250px !important;
    }

    body.home #content > .banner-grid-wrapper > .banner-grid > .grid-col:nth-child(n+3),
    body.front-page #content > .banner-grid-wrapper > .banner-grid > .grid-col:nth-child(n+3) {
        grid-column: span 1;
        height: 180px !important;
    }

    body.home #content > .banner-grid-wrapper > .banner-grid > .grid-col .col-inner,
    body.front-page #content > .banner-grid-wrapper > .banner-grid > .grid-col .col-inner,
    body.home #content > .banner-grid-wrapper > .banner-grid > .grid-col .banner,
    body.front-page #content > .banner-grid-wrapper > .banner-grid > .grid-col .banner {
        height: 100%;
    }

    body.home #content > .banner-grid-wrapper > .banner-grid > .grid-col:nth-child(1) .banner,
    body.front-page #content > .banner-grid-wrapper > .banner-grid > .grid-col:nth-child(1) .banner,
    body.home #content > .banner-grid-wrapper > .banner-grid > .grid-col:nth-child(2) .banner,
    body.front-page #content > .banner-grid-wrapper > .banner-grid > .grid-col:nth-child(2) .banner {
        min-height: 250px;
        padding-top: 0 !important;
    }

    body.home #content > .banner-grid-wrapper > .banner-grid > .grid-col:nth-child(n+3) .banner,
    body.front-page #content > .banner-grid-wrapper > .banner-grid > .grid-col:nth-child(n+3) .banner {
        min-height: 180px;
        padding-top: 0 !important;
    }
}

.single-product .zoom-button {
    display: none !important;
}

.single-product .product-gallery [class*="product-gallery__image"] > a,
.single-product .product-gallery [class*="product-gallery__image"].slide > a {
    pointer-events: none;
    cursor: default;
}

.single-product .product-gallery [class*="product-gallery__image"] > a img,
.single-product .product-gallery [class*="product-gallery__image"].slide > a img {
    cursor: default;
}

:where(
    button,
    [role="button"],
    summary,
    input[type="button"],
    input[type="submit"],
    input[type="reset"]
) {
    caret-color: transparent;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
}

/* Flatsome centers these circular controls with line-height and top offsets.
   That drifts in newer browser/icon-font rendering, so we center them explicitly. */
.nav-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.nav-pagination > li {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.nav-pagination > li > a,
.nav-pagination > li > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    vertical-align: middle;
}

.nav-pagination > li i {
    top: 0;
    line-height: 1;
    vertical-align: middle;
}

.social-icons .button.icon.circle,
.social-icons .button.icon.round {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    line-height: 1;
}

.social-icons .button.icon.circle > i,
.social-icons .button.icon.round > i {
    top: 0;
    line-height: 1;
    vertical-align: middle;
}

#masthead .account-muc,
#masthead .cart-item,
#masthead .header-divider,
#main-menu .account-muc,
#main-menu .cart-item,
#main-menu .header-divider {
    display: none !important;
}

#masthead .account-item {
    position: relative;
}

#masthead .account-item,
#masthead .gio-hang-noi-muc {
    display: flex;
    align-items: center;
    margin: 0;
}

#masthead .account-item > a,
#masthead .gio-hang-noi-nut {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    color: currentColor;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    line-height: 1;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

#masthead.nav-dark .account-item > a,
#masthead.nav-dark .gio-hang-noi-nut {
    color: rgba(255, 255, 255, 0.8);
}

#masthead.nav-light .account-item > a,
#masthead.nav-light .gio-hang-noi-nut {
    color: rgba(17, 17, 17, 0.7);
}

#masthead .account-item > a:hover,
#masthead .account-item > a:focus-visible,
#masthead .gio-hang-noi-nut:hover,
#masthead .gio-hang-noi-nut:focus-visible,
#masthead .account-item.current-dropdown > a,
#masthead .gio-hang-noi-nut.is-active {
    color: #ffffff;
    background: transparent;
    box-shadow: none;
}

#masthead .account-item > a:focus-visible,
#masthead .gio-hang-noi-nut:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

#masthead .account-item > a:active,
#masthead .gio-hang-noi-nut:active {
    transform: scale(0.94);
}


#masthead .account-item .icon-user {
    display: block;
    width: 24px;
    height: 24px;
    background: currentColor;
    mask: url("icon/menu/user-fill.svg") center / contain no-repeat;
    -webkit-mask: url("icon/menu/user-fill.svg") center / contain no-repeat;
    font-size: 0;
    line-height: 1;
}
#masthead .gio-hang-noi-bieu-tuong-dau-trang {
    display: block;
    width: 27px;
    height: 27px;
    margin: 0;
    object-fit: contain;
}

#masthead.nav-dark .gio-hang-noi-bieu-tuong-dau-trang {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

#masthead.nav-light .gio-hang-noi-bieu-tuong-dau-trang {
    filter: brightness(0);
    opacity: 0.7;
}

#masthead .gio-hang-noi-nut:hover .gio-hang-noi-bieu-tuong-dau-trang,
#masthead .gio-hang-noi-nut:focus-visible .gio-hang-noi-bieu-tuong-dau-trang,
#masthead .gio-hang-noi-nut.is-active .gio-hang-noi-bieu-tuong-dau-trang {
    filter: brightness(0) invert(1);
    opacity: 1;
}

.gio-hang-noi-noi .gio-hang-noi-bieu-tuong {
    mask: url("icon/icon_giohang.svg") center / contain no-repeat;
    -webkit-mask: url("icon/icon_giohang.svg") center / contain no-repeat;
}

#masthead .gio-hang-noi-nut {
    position: relative;
}

.gio-hang-noi-so {
    position: absolute;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: #fb5b20;
    border: 2px solid #171717;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    pointer-events: none;
}

.gio-hang-noi-so[hidden] {
    display: none;
}

#masthead .gio-hang-noi-so {
    top: 0;
    right: -2px;
}

.gio-hang-noi-noi {
    position: fixed;
    right: max(20px, env(safe-area-inset-right));
    bottom: calc(20px + env(safe-area-inset-bottom));
    z-index: 998;
    width: 68px;
    height: 68px;
    min-width: 68px;
    min-height: 68px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    color: #050505;
    background: rgba(255, 255, 255, 0.94);
    border: 0;
    border-radius: 50%;
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.1);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    line-height: 1;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: right 0.18s ease, transform 0.18s ease, opacity 0.18s ease, color 0.18s ease;
}

.gio-hang-noi-noi[hidden] {
    display: none;
}

.gio-hang-noi-noi:hover,
.gio-hang-noi-noi:focus-visible {
    color: #050505;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.1);
    transform: translateY(-2px) scale(1.04);
}

.gio-hang-noi-noi:focus-visible {
    outline: 2px solid rgba(0, 122, 255, 0.62);
    outline-offset: 3px;
}

.gio-hang-noi-noi:active {
    transform: scale(0.96);
}

.gio-hang-noi-noi-dung {
    position: relative;
    flex: 0 0 46px;
    width: 46px;
    height: 48px;
    display: block;
    isolation: isolate;
}

.gio-hang-noi-noi-dung::before {
    content: "";
    position: absolute;
    top: -4px;
    right: -4px;
    z-index: 1;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ffffff;
    pointer-events: none;
}

.gio-hang-noi-noi .gio-hang-noi-bieu-tuong {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 0;
    width: 40px;
    height: 40px;
    display: block;
    background: currentColor;
}

.gio-hang-noi-noi .gio-hang-noi-so {
    top: 0;
    right: 0;
    z-index: 2;
    min-width: 22px;
    height: 22px;
    border: 0;
    font-size: 11px;
}

@media (min-width: 960px) {
    .gio-hang-noi-noi.co-nut-len-dau {
        right: max(72px, calc(52px + env(safe-area-inset-right)));
    }
}

@media (max-width: 959px) {
    .gio-hang-noi-noi {
        right: max(12px, env(safe-area-inset-right));
        bottom: calc(88px + env(safe-area-inset-bottom));
        width: 58px;
        height: 58px;
        min-width: 58px;
        min-height: 58px;
    }

    .gio-hang-noi-noi-dung {
        flex-basis: 38px;
        width: 38px;
        height: 40px;
    }

    .gio-hang-noi-noi .gio-hang-noi-bieu-tuong {
        width: 32px;
        height: 32px;
    }

    .gio-hang-noi-noi-dung::before {
        width: 26px;
        height: 26px;
    }

    .gio-hang-noi-noi .gio-hang-noi-so {
        min-width: 18px;
        height: 18px;
        padding-right: 3px;
        padding-left: 3px;
        font-size: 10px;
    }

    .gio-hang-noi-noi.is-an-khi-cuon {
        opacity: 0;
        pointer-events: none;
        transform: translateY(18px);
    }
}

@media (max-width: 959px) and (prefers-reduced-motion: reduce) {
    .gio-hang-noi-noi {
        transition-duration: 1ms;
    }
}
.giao-dien-san-pham-loop,
.giao-dien-san-pham-loop * {
    box-sizing: border-box;
}

.the-san-pham {
    width: 100%;
    height: 100%;
    container-type: inline-size;
}

.the-san-pham__lien-ket {
    display: grid;
    grid-template-rows: auto 1fr;
    height: 100%;
    min-height: 390px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.04);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.05);
    color: #080808;
    text-decoration: none;
    transition: box-shadow 180ms ease, transform 180ms ease;
}

.the-san-pham__lien-ket:hover,
.the-san-pham__lien-ket:focus {
    color: #080808;
    text-decoration: none;
}

.the-san-pham__lien-ket:hover {
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.1);
    transform: translateY(-3px);
}

.the-san-pham__lien-ket:hover .the-san-pham__nut,
.the-san-pham__lien-ket:focus-visible .the-san-pham__nut,
.the-san-pham__lien-ket:active .the-san-pham__nut {
    border-color: #050505;
    background: #050505;
    color: #ffffff;
}

.the-san-pham__khung-anh {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: #ffffff;
}

.the-san-pham__anh,
.the-san-pham__khung-anh img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    transition: transform 220ms ease;
}

.the-san-pham__lien-ket:hover .the-san-pham__khung-anh img {
    transform: scale(1.03);
}

.the-san-pham__noi-dung {
    display: grid;
    grid-template-rows: 20px 22px 17px 40px;
    align-content: start;
    gap: 8px;
    min-width: 0;
    min-height: 158px;
    overflow: hidden;
    padding: 22px 24px 24px;
    background: #ffffff;
}

.the-san-pham__hang-chu {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 20px;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 20px;
}

.the-san-pham__nhom {
    color: #626875;
    overflow: hidden;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.the-san-pham__ten {
    color: #000000;
    display: block;
    overflow: hidden;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.18;
    min-height: 22px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.the-san-pham__bieu-tuong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: #050505;
}

.the-san-pham__bieu-tuong img {
    display: block;
    width: 20px;
    height: 20px;
    margin: 0;
}

.the-san-pham__chu-thich {
    color: #717782;
    display: -webkit-box;
    overflow: hidden;
    font-size: 12.5px;
    font-weight: 400;
    line-height: 1.35;
    min-height: 17px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.the-san-pham__nut {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    min-height: 40px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.36);
    border-radius: 999px;
    color: #050505;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    isolation: isolate;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.the-san-pham__nut::after {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(18, 18, 18, 0.24);
    border-top-color: #121212;
    border-radius: 999px;
    opacity: 0;
    pointer-events: none;
    content: "";
    transform: translate(-50%, -50%) rotate(0deg);
    animation: the-san-pham-nut-dang-mo-xoay 0.72s linear infinite;
    animation-play-state: paused;
    transition: opacity 160ms ease;
}

.the-san-pham__lien-ket.is-dang-mo-san-pham {
    cursor: progress;
    pointer-events: none;
    transform: none;
}

.the-san-pham__lien-ket.is-dang-mo-san-pham .the-san-pham__nut {
    border-color: #d8d8dc;
    background: #f0f0f2;
    color: transparent;
}

.the-san-pham__lien-ket.is-dang-mo-san-pham .the-san-pham__nut::after {
    opacity: 1;
    animation-play-state: running;
}

@keyframes the-san-pham-nut-dang-mo-xoay {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .the-san-pham__lien-ket.is-dang-mo-san-pham .the-san-pham__nut::after {
        animation: none;
    }
}

.khu-san-pham-pho-bien,
.khu-san-pham-pho-bien * {
    box-sizing: border-box;
}

.khu-san-pham-pho-bien {
    width: 100%;
    padding: 38px 24px 48px;
    background: #f4f4f4;
}

.khu-san-pham-pho-bien__khung {
    width: min(100%, 980px);
    margin: 0 auto;
}

.khu-san-pham-pho-bien__tieu-de {
    margin: 0 0 32px;
    color: #0a0a0a;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
}

.khu-san-pham-pho-bien__luoi {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 38px 58px;
}

.khu-san-pham-pho-bien__muc {
    min-width: 0;
    min-height: 0;
}

@media (max-width: 767px) {
    .the-san-pham__lien-ket {
        grid-template-rows: auto auto;
        height: auto;
        border-radius: 16px;
        min-height: 0;
    }

    .the-san-pham__noi-dung {
        grid-template-rows: 18px 20px 17px 38px;
        gap: 7px;
        min-height: 142px;
        padding: 18px 18px 20px;
    }

    .the-san-pham__hang-chu {
        grid-template-columns: minmax(0, 1fr) 18px;
        gap: 8px;
        min-height: 18px;
    }

    .the-san-pham__nhom {
        font-size: 12px;
    }

    .the-san-pham__ten {
        font-size: 16px;
        min-height: 20px;
    }

    .the-san-pham__bieu-tuong,
    .the-san-pham__bieu-tuong img {
        width: 18px;
        height: 18px;
    }

    .the-san-pham__chu-thich {
        font-size: 12px;
        min-height: 18px;
    }

    .the-san-pham__nut {
        height: 38px;
        min-height: 38px;
        font-size: 14px;
    }

    .khu-san-pham-pho-bien {
        padding: 28px 18px 38px;
    }

    .khu-san-pham-pho-bien__tieu-de {
        margin-bottom: 22px;
        font-size: 17px;
    }

    .khu-san-pham-pho-bien__luoi {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 16px;
    }
}

@media (max-width: 430px) {
    .khu-san-pham-pho-bien__luoi {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Toast thành công dùng chung */
.toco-toast__vi-tri {
    position: fixed;
    z-index: 100100;
    left: 50%;
    bottom: 24px;
    width: min(calc(100vw - 32px), 460px);
    transform: translateX(-50%);
    pointer-events: none;
}

.toco-toast {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 14px 16px;
    color: #fff;
    background: rgba(17, 17, 17, 0.92);
    border: 0;
    border-radius: 14px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    pointer-events: auto;
}

.toco-toast__noi-dung {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.toco-toast__tieu-de,
.toco-toast__mo-ta {
    display: block;
    color: inherit;
}

.toco-toast__tieu-de {
    color: #4ade80;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

.toco-toast__mo-ta {
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    line-height: 1.45;
}

.toco-toast__dong {
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    width: 28px;
    min-width: 28px;
    height: 28px;
    min-height: 28px;
    margin: -4px -5px -4px 0;
    padding: 0;
    color: rgba(255, 255, 255, 0.72);
    background: transparent;
    border: 0;
    border-radius: 50%;
    box-shadow: none;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
}

.toco-toast__dong:hover,
.toco-toast__dong:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 767px) {
    .toco-toast__vi-tri {
        bottom: max(calc(env(safe-area-inset-bottom) + 12px), 20px);
        width: min(calc(100vw - 24px), 460px);
    }
}
/* =======================================================
PRINT SIZE FORM
======================================================= */

