/* Dien May Truong Khang: primary red, promotional yellow, functional blue. */
:root {
    --dmtk-red: #d71920;
    --dmtk-red-menu: #c8102e;
    --dmtk-red-bright: #ed1c24;
    --dmtk-red-dark: #aa1117;
    --dmtk-yellow: #f6c700;
    --dmtk-blue: #0b63a8;
    --dmtk-blue-dark: #084a7a;
    --dmtk-text: #1f2937;
    --dmtk-surface: #f7f8fa;
}

body,
#main,
#main.dark,
#wrapper {
    background-color: var(--dmtk-surface);
    color: var(--dmtk-text);
}

.header-bg-color,
.header-main {
    background-color: var(--dmtk-red);
}

/* Header logo: restrained feedback without changing its layout dimensions. */
#header #logo > a {
    border-radius: 6px;
}

#header #logo > a > img {
    transform-origin: center;
    transition: transform .18s ease, filter .18s ease;
}

@media (hover: hover) and (pointer: fine) {
    #header #logo > a:hover > img {
        transform: translateY(-1px);
        filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .16));
    }
}

#header #logo > a:active > img {
    transform: translateY(0) scale(.985);
}

#header #logo > a:focus-visible {
    outline: 2px solid var(--dmtk-yellow);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    #header #logo > a > img {
        transition: none;
    }

    #header #logo > a:hover > img,
    #header #logo > a:active > img {
        transform: none;
    }
}

.header-bottom,
#wide-nav,
#wide-nav.header-bottom {
    background-color: var(--dmtk-red-menu) !important;
}

.header:not(.transparent) .top-bar-nav > li > a,
.header:not(.transparent) .header-bottom-nav.nav > li > a {
    color: #fff;
}

#wide-nav .header-bottom-nav.nav {
    align-items: center;
}

#wide-nav .header-bottom-nav.nav > li {
    align-items: center;
    display: block;
}

#wide-nav .header-bottom-nav.nav > li > a {
    align-items: center;
    display: flex;
    height: auto;
    margin: 5px 3px;
    min-height: 30px;
    padding: 0 13px;
    border-radius: 3px;
    transition: background-color .18s ease;
}

.header-bottom-nav.nav > li > a:hover,
.header-bottom-nav.nav > li.active > a,
.header-bottom-nav.nav > li.current > a,
.header-bottom-nav.nav > li > a.active,
.header-bottom-nav.nav > li > a.current {
    background-color: rgba(255, 255, 255, .10) !important;
    color: #fff !important;
    box-shadow: none;
}

#mega-menu-wrap,
#mega-menu-wrap.ot-vm-click,
.header-vertical-menu__opener,
.menu-sanpham span,
#nz-div-4 h3.tde span,
a.wc-backward,
.price_slider_amount .button {
    background-color: var(--dmtk-red-bright) !important;
}

.ux-search-box .ux-search-submit,
form.searchform button.ux-search-submit {
    background-color: var(--dmtk-yellow) !important;
    color: var(--dmtk-text) !important;
}

.ux-search-box .ux-search-submit svg,
.ux-search-box .ux-search-submit i,
form.searchform button.ux-search-submit svg,
form.searchform button.ux-search-submit i {
    color: var(--dmtk-text) !important;
    fill: currentColor;
}

.btn-social-icon {
    background-color: var(--dmtk-blue) !important;
}

.btn-social-icon:hover,
a.wc-backward:hover,
.price_slider_amount .button:hover {
    background-color: var(--dmtk-red-dark) !important;
}

.ux-search-box .ux-search-submit:hover,
form.searchform button.ux-search-submit:hover {
    background-color: #dfb300 !important;
    color: var(--dmtk-text) !important;
}

.btn-social-icon:hover {
    background-color: var(--dmtk-blue-dark) !important;
}

.hotline-call i,
a,
.secondary.is-link,
.secondary.is-underline {
    color: var(--dmtk-blue);
}

a:hover {
    color: var(--dmtk-blue-dark);
}

/* Back-to-top: visible branded surface with full pointer and keyboard states. */
.back-to-top.button {
    align-items: center;
    background: linear-gradient(135deg, var(--dmtk-red-bright), var(--dmtk-red-dark)) !important;
    border: 1px solid rgba(255, 255, 255, .62) !important;
    border-radius: 50% !important;
    bottom: 22px;
    box-shadow: 0 7px 18px rgba(180, 19, 25, .30), 0 2px 5px rgba(31, 41, 55, .16);
    color: #fff !important;
    display: flex !important;
    height: 46px;
    justify-content: center;
    min-height: 46px;
    min-width: 46px;
    opacity: 0;
    padding: 0 !important;
    pointer-events: none;
    right: 22px;
    transform: translateY(10px) scale(.92);
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, opacity .18s ease, transform .18s ease, visibility .18s ease;
    visibility: hidden;
    width: 46px;
    z-index: 50;
}

.back-to-top.button.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    visibility: visible;
}

.back-to-top.button i {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 15.5 12 8l7 7.5' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 26px 26px no-repeat;
    color: transparent !important;
    display: block;
    flex: 0 0 26px;
    font-size: 0 !important;
    height: 26px;
    left: 50% !important;
    line-height: 0;
    margin: 0 !important;
    position: absolute !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    transition: transform .18s ease;
    width: 26px;
}

.back-to-top.button i::before {
    content: none !important;
    display: none !important;
}

.back-to-top.button.active:hover {
    background: linear-gradient(135deg, #ed1c24, #9f0e13) !important;
    border-color: #fff !important;
    box-shadow: 0 11px 24px rgba(180, 19, 25, .38), 0 3px 7px rgba(31, 41, 55, .18);
    color: #fff !important;
    transform: translateY(-3px) scale(1.04);
}

.back-to-top.button.active:hover i {
    transform: translate(-50%, calc(-50% - 2px)) !important;
}

.back-to-top.button.active:active {
    box-shadow: 0 4px 10px rgba(180, 19, 25, .24);
    transform: translateY(0) scale(.96);
}

.back-to-top.button:focus-visible {
    border-color: #fff !important;
    outline: 3px solid rgba(246, 199, 0, .78);
    outline-offset: 3px;
}

@media screen and (max-width: 849px) {
    .back-to-top.button.hide-for-medium {
        bottom: calc(14px + env(safe-area-inset-bottom, 0px));
        display: flex !important;
        height: 44px;
        min-height: 44px;
        min-width: 44px;
        right: calc(14px + env(safe-area-inset-right, 0px));
        width: 44px;
    }

    .back-to-top.button i {
        background-size: 25px 25px;
        flex-basis: 25px;
        height: 25px;
        width: 25px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .back-to-top.button,
    .back-to-top.button i {
        transition: none;
    }
}

.button.secondary:not(.is-outline),
.button.alert:not(.is-outline),
.alert,
.row-sp-giua,
.product-footer .woocommerce-tabs .product-tabs {
    background-color: var(--dmtk-yellow);
    border-color: var(--dmtk-yellow);
    color: var(--dmtk-text);
}

.button.secondary:not(.is-outline),
.button.alert:not(.is-outline),
.alert {
    color: var(--dmtk-text) !important;
}

.badge-inner.secondary.on-sale,
.saleoff,
.onsale-div,
.hotline-call a,
.price ins .amount,
.price > .amount {
    background-color: var(--dmtk-red);
    color: #fff;
}

.price ins .amount,
.price > .amount {
    background-color: transparent;
    color: var(--dmtk-red);
}

.single_add_to_cart_button,
.button.alt:not(.is-outline),
.button.primary:not(.is-outline) {
    background-color: var(--dmtk-red);
    color: #fff;
}

.single_add_to_cart_button:hover,
.button.alt:not(.is-outline):hover,
.button.primary:not(.is-outline):hover {
    background-color: var(--dmtk-red-dark);
}

.mona_html span,
.product-footer .woocommerce-tabs .product-tabs,
.row-sp-giua {
    color: var(--dmtk-text);
}

/* Product category navigation: shared SVG language for header and sidebar menus. */
.ot-vertical-menu #mega_menu,
#nav_menu-6 .menu-menu-danhmuc-container {
    background: #fff;
    border: 1px solid #e7ebf0;
    box-shadow: 0 10px 28px rgba(31, 41, 55, .12);
}

.ot-vertical-menu #mega_menu {
    border-radius: 0 0 12px 12px;
    border-top: 0;
    overflow: visible;
}

.ot-vertical-menu #mega_menu > li {
    background: transparent;
    border-bottom: 1px solid #edf0f3;
}

.ot-vertical-menu #mega_menu > li:last-child {
    border-bottom: 0;
    padding-bottom: 0 !important;
}

.ot-vertical-menu #mega_menu > li > a,
#nav_menu-6 #menu-menu-danhmuc > li > a {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--dmtk-blue) !important;
    display: flex;
    font-size: 15px !important;
    font-weight: 600;
    gap: 10px;
    line-height: 1.35;
    position: relative;
    text-align: left;
    transition: background-color .18s ease, color .18s ease, padding-left .18s ease;
}

.ot-vertical-menu #mega_menu > li > a {
    min-height: 52px;
    padding: 7px 42px 7px 12px !important;
}

.ot-vertical-menu #mega_menu > li > a > img,
#nav_menu-6 #menu-menu-danhmuc > li > a > img {
    display: none !important;
}

.ot-vertical-menu #mega_menu > li > a::before,
#nav_menu-6 #menu-menu-danhmuc > li > a::before {
    background-color: #eef7ff;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 22px 22px;
    border: 1px solid rgba(11, 99, 168, .10);
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(11, 99, 168, .08);
    content: '';
    flex: 0 0 36px;
    height: 36px;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.menu-item-5554 > a::before {
    background-image: url('../icons/category-electronics.svg');
}

.menu-item-5558 > a::before {
    background-image: url('../icons/category-cooling.svg');
}

.menu-item-5566 > a::before {
    background-image: url('../icons/category-appliances.svg');
}

.menu-item-5571 > a::before {
    background-image: url('../icons/category-health.svg');
}

.ot-vertical-menu #mega_menu > li:hover > a,
.ot-vertical-menu #mega_menu > li.sfHover > a,
.ot-vertical-menu #mega_menu > li.current-menu-item > a,
.ot-vertical-menu #mega_menu > li.current-product_cat-ancestor > a,
#nav_menu-6 #menu-menu-danhmuc > li > a:hover,
#nav_menu-6 #menu-menu-danhmuc > li.current-menu-item > a,
#nav_menu-6 #menu-menu-danhmuc > li.current-product_cat-ancestor > a {
    background: linear-gradient(90deg, #fff1f2, #fff 88%);
    color: var(--dmtk-red-dark) !important;
}

.ot-vertical-menu #mega_menu > li:hover > a::before,
.ot-vertical-menu #mega_menu > li.sfHover > a::before,
#nav_menu-6 #menu-menu-danhmuc > li > a:hover::before,
#nav_menu-6 #menu-menu-danhmuc > li.current-menu-item > a::before,
#nav_menu-6 #menu-menu-danhmuc > li.current-product_cat-ancestor > a::before {
    background-color: #fff;
    border-color: rgba(215, 25, 32, .20);
    box-shadow: 0 5px 12px rgba(215, 25, 32, .12);
    transform: translateY(-1px);
}

.ot-vertical-menu #mega_menu > li > a:focus-visible,
#nav_menu-6 #menu-menu-danhmuc > li > a:focus-visible {
    border-radius: 8px;
    box-shadow: inset 0 0 0 2px var(--dmtk-yellow);
    outline: 2px solid rgba(246, 199, 0, .52);
    outline-offset: -2px;
}

/* Replace legacy triangle arrows with compact chevrons. */
.ot-vertical-menu #mega_menu.sf-arrows > li > .sf-with-ul::after {
    border: 0;
    border-right: 2px solid #8a94a3;
    border-top: 2px solid #8a94a3;
    height: 7px;
    margin: -4px 0 0;
    right: 16px;
    top: 50%;
    transform: rotate(45deg);
    transition: border-color .18s ease, transform .18s ease;
    width: 7px;
}

.ot-vertical-menu #mega_menu.sf-arrows > li:hover > .sf-with-ul::after,
.ot-vertical-menu #mega_menu.sf-arrows > li.sfHover > .sf-with-ul::after {
    border-color: var(--dmtk-red);
    transform: translateX(2px) rotate(45deg);
}

.ot-vertical-menu #mega_menu .sub-menu {
    background: #fff;
    border: 1px solid #e5e9ef;
    border-radius: 12px;
    box-shadow: 0 14px 34px rgba(31, 41, 55, .16);
    min-width: 224px;
    overflow: hidden;
    padding: 6px;
}

.ot-vertical-menu #mega_menu .sub-menu > li {
    background: transparent;
    border-bottom: 1px solid #f0f2f5;
}

.ot-vertical-menu #mega_menu .sub-menu > li:last-child {
    border-bottom: 0;
}

.ot-vertical-menu #mega_menu .sub-menu > li > a {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 8px;
    color: #344054 !important;
    display: flex;
    font-size: 14px !important;
    font-weight: 500;
    min-height: 42px;
    padding: 8px 12px;
    transition: background-color .18s ease, color .18s ease, padding-left .18s ease;
}

.ot-vertical-menu #mega_menu .sub-menu > li > a::before {
    background: var(--dmtk-yellow);
    border-radius: 50%;
    content: '';
    flex: 0 0 6px;
    height: 6px;
    margin-right: 10px;
}

.ot-vertical-menu #mega_menu .sub-menu > li > a:hover,
.ot-vertical-menu #mega_menu .sub-menu > li > a:focus-visible {
    background: #fff1f2;
    color: var(--dmtk-red-dark) !important;
    padding-left: 16px;
}

.ot-vertical-menu #mega_menu .sub-menu > li > a:focus-visible {
    box-shadow: inset 0 0 0 2px var(--dmtk-yellow);
    outline: 0;
}

/* Sidebar variant keeps the same visual language with accordion-friendly controls. */
#nav_menu-6 .menu-menu-danhmuc-container {
    border-radius: 0 0 12px 12px;
    border-top: 0;
    box-shadow: 0 8px 22px rgba(31, 41, 55, .09);
    overflow: hidden;
}

.category-page-row #nav_menu-6 #menu-menu-danhmuc,
.custom-product-page #nav_menu-6 #menu-menu-danhmuc,
.sidebar-wrapper #nav_menu-6 #menu-menu-danhmuc {
    padding: 5px 9px 8px !important;
}

#nav_menu-6 #menu-menu-danhmuc > li {
    border-bottom: 1px solid #edf0f3;
    position: relative;
}

#nav_menu-6 #menu-menu-danhmuc > li:last-child {
    border-bottom: 0;
}

#nav_menu-6 #menu-menu-danhmuc > li > a {
    min-height: 50px;
    padding: 6px 40px 6px 4px;
}

#nav_menu-6 #menu-menu-danhmuc > li > .toggle {
    align-items: center;
    color: #7b8492;
    display: flex;
    height: 50px;
    justify-content: center;
    opacity: 1;
    right: 0;
    top: 0;
    transition: background-color .18s ease, color .18s ease;
    width: 38px;
}

#nav_menu-6 #menu-menu-danhmuc > li > .toggle:hover,
#nav_menu-6 #menu-menu-danhmuc > li > .toggle:focus-visible {
    background: #fff1f2;
    color: var(--dmtk-red);
}

#nav_menu-6 #menu-menu-danhmuc .sub-menu {
    background: #f8fafc;
    border-left: 2px solid rgba(215, 25, 32, .20);
    margin: 0 0 7px 18px;
    padding: 4px 6px;
}

#nav_menu-6 #menu-menu-danhmuc .sub-menu a {
    align-items: center;
    border-radius: 7px;
    box-sizing: border-box;
    color: #475467 !important;
    display: flex;
    font-size: 13px !important;
    min-height: 38px;
    min-width: 0;
    padding: 7px 10px;
    width: 100%;
}

#nav_menu-6 #menu-menu-danhmuc .sub-menu a:hover,
#nav_menu-6 #menu-menu-danhmuc .sub-menu a:focus-visible {
    background: #fff;
    color: var(--dmtk-red-dark) !important;
    outline: 0;
}

/* Keep the active taxonomy branch open and make the selected child explicit. */
#nav_menu-6 #menu-menu-danhmuc > li.current-menu-item > .sub-menu,
#nav_menu-6 #menu-menu-danhmuc > li.current-menu-ancestor > .sub-menu,
#nav_menu-6 #menu-menu-danhmuc > li.current-product_cat-ancestor > .sub-menu,
#nav_menu-6 #menu-menu-danhmuc > li.current-product_cat-parent > .sub-menu {
    display: block;
}

#nav_menu-6 #menu-menu-danhmuc > li.active > .toggle i {
    transform: rotate(180deg);
    transition: transform .18s ease;
}

#nav_menu-6 #menu-menu-danhmuc .sub-menu > li.current-menu-item > a,
#nav_menu-6 #menu-menu-danhmuc .sub-menu > li.current-product_cat > a {
    background: #fff;
    box-shadow: 0 3px 10px rgba(215, 25, 32, .10), inset 3px 0 0 var(--dmtk-red);
    color: var(--dmtk-red-dark) !important;
    font-weight: 600;
    padding-left: 13px;
}

#nav_menu-6 #menu-menu-danhmuc .sub-menu > li.current-menu-item > a:hover,
#nav_menu-6 #menu-menu-danhmuc .sub-menu > li.current-menu-item > a:focus-visible,
#nav_menu-6 #menu-menu-danhmuc .sub-menu > li.current-product_cat > a:hover,
#nav_menu-6 #menu-menu-danhmuc .sub-menu > li.current-product_cat > a:focus-visible {
    background: #fff7f7;
    box-shadow: 0 4px 12px rgba(215, 25, 32, .14), inset 3px 0 0 var(--dmtk-red);
}

/* Homepage hero: keep every slide at the same 16:9 ratio and cover its column edge to edge. */
.row-dau .slide-top-home,
.row-dau .slide-top-home > .col-inner,
.row-dau .slide-top-home .slider-wrapper,
.row-dau .slide-top-home .slider,
.row-dau .slide-top-home .flickity-viewport,
.row-dau .slide-top-home .flickity-slider,
.row-dau .slide-top-home .img {
    margin: 0;
    padding: 0;
    width: 100%;
}

@media screen and (min-width: 850px) {
    .row-dau .slide-top-home {
        flex-basis: 100%;
        max-width: 100%;
        width: 100%;
    }
}

.row-dau .slide-top-home .img-inner.image-cover {
    aspect-ratio: 1250 / 422;
    height: auto !important;
    overflow: hidden;
    padding-top: 0 !important;
}

@media screen and (max-width: 849px) {
    .row-dau .slide-top-home .img-inner.image-cover {
        aspect-ratio: 16 / 9;
    }
}

.row-dau .slide-top-home .img-inner.image-cover > img {
    display: block;
    height: 100%;
    object-fit: cover;
    object-position: center;
    width: 100%;
}

#mega-menu-title:focus-visible {
    outline: 2px solid var(--dmtk-yellow);
    outline-offset: -3px;
}
/* Keep the single desktop hotline legible while the search uses the released header space. */
@media screen and (min-width: 850px) {
    .header-main .html_topbar_left {
        min-width: 180px;
    }

    .header-main .dmtk-header-hotline {
        align-items: center;
        display: flex;
        gap: 10px;
        justify-content: center;
        margin: 0;
    }

    .header-main .dmtk-header-hotline > .icon-phone {
        color: #fff;
        flex: 0 0 auto;
        font-size: 25px;
        line-height: 1;
    }

    .header-main .dmtk-hotline-copy {
        align-items: flex-start;
        display: flex;
        flex-direction: column;
        line-height: 1.15;
    }

    .header-main .dmtk-hotline-copy strong,
    .header-main .dmtk-hotline-copy strong a {
        color: #fff !important;
        font-size: 16px;
        font-weight: 800;
        letter-spacing: .2px;
        line-height: 1.05;
        opacity: 1;
        text-shadow: 0 1px 2px rgba(91, 0, 5, .28);
    }

    .header-main .dmtk-hotline-copy > span {
        color: rgba(255, 255, 255, .78) !important;
        font-size: 9px;
        font-weight: 500;
        letter-spacing: .25px;
        line-height: 1.2;
        margin-top: 3px;
        opacity: 1;
    }
}

/* Modern, brand-aligned category headings on the homepage. */
.home .ct-heading {
    align-items: center;
    background: linear-gradient(90deg, #fff3f3 0%, #fff 46%);
    border: 1px solid #eef0f3;
    border-bottom-color: #e1e5e9;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 4px 14px rgba(31, 41, 55, .06);
    display: flex;
    min-height: 56px;
    overflow: hidden;
    padding: 0 12px 0 0 !important;
}

.home .ct-heading::before {
    align-self: stretch;
    background: linear-gradient(180deg, var(--dmtk-red-bright), var(--dmtk-red-dark));
    content: '';
    flex: 0 0 5px;
}

.home .ct-heading .cth2 {
    align-items: center;
    color: var(--dmtk-red-dark);
    display: flex;
    flex: 0 0 auto;
    font-size: 18px;
    font-weight: 700 !important;
    gap: 10px;
    letter-spacing: .25px;
    line-height: 1.2;
    margin: 0;
    max-width: none;
    padding: 0 18px;
    width: auto;
}

.home .ct-heading .cth2::before {
    background: var(--dmtk-yellow);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(215, 25, 32, .10);
    content: '';
    flex: 0 0 8px;
    height: 8px;
}

.home .ct-heading > div {
    flex: 1 1 auto;
    max-width: none;
    padding: 0;
    width: auto;
}

.home .ct-heading .ulh3 {
    align-items: center;
    display: flex;
    float: none;
    gap: 6px;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
}

.home .ct-heading .ulh3 li {
    background: transparent;
    border: 0;
    border-radius: 7px;
    margin: 0;
    padding: 0;
    transition: background-color .18s ease, color .18s ease;
}

.home .ct-heading .ulh3 li:hover {
    background: #fff0f0;
}

.home .ct-heading .ulh3 h3 {
    line-height: 1;
}

.home .ct-heading .ulh3 a {
    color: #4b5563;
    display: block;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 10px;
}

.home .ct-heading .ulh3 li:hover a {
    color: var(--dmtk-red-dark) !important;
}

.home .ct-heading .ulh3 .xem-tat-ca-cat {
    background: var(--dmtk-red);
    border-radius: 99px;
    margin-left: 4px;
}

.home .ct-heading .ulh3 .xem-tat-ca-cat:hover {
    background: var(--dmtk-red-dark);
}

.home .ct-heading .ulh3 .xem-tat-ca-cat a,
.home .ct-heading .ulh3 .xem-tat-ca-cat:hover a {
    color: #fff !important;
    font-weight: 600;
    padding-left: 14px;
    padding-right: 14px;
}

@media screen and (max-width: 849px) {
    .home .ct-heading {
        border-radius: 8px 8px 0 0;
        min-height: 50px;
        padding-right: 8px !important;
    }

    .home .ct-heading::before {
        flex-basis: 4px;
    }

    .home .ct-heading .cth2 {
        flex: 0 0 auto !important;
        font-size: 15px;
        gap: 8px;
        max-width: none !important;
        min-width: 0;
        padding: 0 10px;
        white-space: nowrap;
        width: auto !important;
    }

    .home .ct-heading .cth2::before {
        flex-basis: 7px;
        height: 7px;
    }

    .home .ct-heading .list-item-cat {
        display: none !important;
    }

    .home .ct-heading .ulh3 a {
        font-size: 12px;
        padding: 7px 10px;
    }
}

/* Keep heading titles and category links in separate flex areas and align the bar to the product container edge. */
.home .ct-heading {
    flex-wrap: nowrap !important;
    margin-left: -15px !important;
    margin-right: -15px !important;
    max-width: none !important;
    width: calc(100% + 30px);
}

.home .ct-heading .cth2 {
    flex: 0 0 auto !important;
    position: relative;
    z-index: 1;
}

.home .ct-heading > div {
    flex: 1 1 0 !important;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.home .ct-heading .ulh3 {
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
}

@media screen and (min-width: 850px) and (max-width: 1100px) {
    .home .ct-heading .list-item-cat {
        display: none !important;
    }
}

/* Override the child theme's nested-row reset so homepage headings reach the outer product container edge. */
.home .row .ct-heading.row:not(.row-collapse) {
    margin-left: -15px !important;
    margin-right: -15px !important;
    max-width: none !important;
    width: calc(100% + 30px);
}

/* Round both product-section layers so the backing row cannot reveal square corners. */
.home .section-content > .row.row-sp-5,
.home .div-san-pham {
    background-color: #fff;
    border-radius: 10px;
}

/* Keep a consistent square catalogue frame while showing the complete original image. */
.product-small .box-image {
    aspect-ratio: 1 / 1;
    background-color: #fff;
}

.product-small .box-image .image-fade_in_back,
.product-small .box-image .image-fade_in_back > a {
    height: 100%;
}

.product-small .box-image img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    object-position: center;
    background-color: #fff;
}

/* Out-of-stock products remain available for contact and alternative-product advice. */
.product-small .out-of-stock-label {
    display: none !important;
}

/* Replace legacy animated widget bars with the homepage product-heading language. */
.category-page-row .widget-title,
.custom-product-page .widget-title,
.sidebar-wrapper .widget-title,
#secondary .widget-title,
.thongso-sp h3,
.product-section-title-related {
    align-items: center;
    animation: none !important;
    background: linear-gradient(90deg, #fff3f3 0%, #fff 72%) !important;
    background-size: auto !important;
    border: 1px solid #eef0f3;
    border-bottom-color: #e1e5e9;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 4px 14px rgba(31, 41, 55, .06);
    color: var(--dmtk-red-dark) !important;
    display: flex !important;
    font-size: 16px;
    font-weight: 700;
    justify-content: flex-start;
    letter-spacing: .2px;
    line-height: 1.2;
    margin-bottom: 10px;
    min-height: 48px;
    overflow: hidden;
    padding: 0 14px 0 36px !important;
    position: relative;
    text-align: left !important;
}

.category-page-row .widget-title::before,
.custom-product-page .widget-title::before,
.sidebar-wrapper .widget-title::before,
#secondary .widget-title::before,
.thongso-sp h3::before,
.product-section-title-related::before {
    background: linear-gradient(180deg, var(--dmtk-red-bright), var(--dmtk-red-dark));
    bottom: 0;
    content: '';
    left: 0;
    position: absolute;
    top: 0;
    width: 5px;
}

.category-page-row .widget-title::after,
.custom-product-page .widget-title::after,
.sidebar-wrapper .widget-title::after,
#secondary .widget-title::after,
.thongso-sp h3::after,
.product-section-title-related::after {
    background: var(--dmtk-yellow);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(215, 25, 32, .10);
    content: '';
    height: 8px;
    left: 18px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
}

.product-section-title-related {
    font-size: 18px;
}

/* Product-detail contact actions: clear hierarchy, tactile hover and keyboard focus. */
.single-product .row-so-dien-thoai {
    gap: 8px;
    margin-left: 0;
    margin-right: 0;
}

.single-product .row-so-dien-thoai .div-dien-thoai,
.single-product .row-so-dien-thoai .div-facebook {
    flex: 1 1 190px;
    padding: 0 0 8px;
}

.single-product .row-so-dien-thoai a,
.single-product .dmtk-contact-actions .button.secondary {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 8px;
    box-shadow: 0 3px 9px rgba(31, 41, 55, .14);
    display: flex;
    font-size: 14px;
    font-weight: 700;
    height: 44px;
    justify-content: center;
    letter-spacing: .1px;
    line-height: 1.2;
    min-height: 44px;
    padding: 0 16px;
    text-transform: uppercase;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}

.single-product .row-so-dien-thoai a:hover,
.single-product .dmtk-contact-actions .button.secondary:hover {
    box-shadow: 0 7px 16px rgba(31, 41, 55, .20);
    transform: translateY(-2px);
}

.single-product .row-so-dien-thoai a:focus-visible,
.single-product .dmtk-contact-actions .button.secondary:focus-visible {
    outline: 3px solid rgba(246, 199, 0, .55);
    outline-offset: 2px;
}

.single-product .div-dien-thoai a {
    background: var(--dmtk-red-bright);
    border-color: var(--dmtk-red-bright);
    color: #fff;
}

.single-product .div-dien-thoai a:hover {
    background: var(--dmtk-red-dark);
    border-color: var(--dmtk-red-dark);
    color: #fff;
}

.single-product .div-facebook a {
    background: #1877f2;
    border-color: #1877f2;
    color: #fff;
}

.single-product .div-facebook a:hover {
    background: #0f5fc4;
    border-color: #0f5fc4;
    color: #fff;
}

.single-product .row-so-dien-thoai a i {
    font-size: 15px;
    margin-right: 7px;
}

/* The UX block above already provides the primary hotline action. */
.single-product .dmtk-contact-actions .button.primary {
    display: none !important;
}

.single-product .dmtk-contact-actions {
    margin: 4px 0 16px;
}

.single-product .dmtk-contact-actions .button.secondary {
    background: var(--dmtk-yellow) !important;
    border-color: var(--dmtk-yellow) !important;
    color: #2f2a00 !important;
    margin: 0;
    min-width: 160px;
}

.single-product .dmtk-contact-actions .button.secondary:hover {
    background: #ddb300 !important;
    border-color: #ddb300 !important;
    color: #201d00 !important;
}

/* Nhanh catalogue mode replaces the legacy contact block with equivalent markup. */
.single-product .dmtk-nhanh-contact {
    display: flex;
    margin: 4px 0 16px;
    width: 100%;
}

/* The product content already provides the primary Hotline CTA. */
.single-product .dmtk-nhanh-contact .button.primary {
    display: none !important;
}

.single-product .dmtk-nhanh-contact .button:not(.primary) {
    align-items: center;
    background: var(--dmtk-yellow) !important;
    border: 1px solid var(--dmtk-yellow) !important;
    border-radius: 8px;
    box-shadow: 0 3px 9px rgba(31, 41, 55, .14);
    color: #2f2a00 !important;
    display: flex;
    font-size: 14px;
    font-weight: 700;
    height: 44px;
    justify-content: center;
    line-height: 1.2;
    margin: 0;
    min-height: 44px;
    padding: 0 16px;
    text-transform: uppercase;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
    width: 100%;
}

.single-product .dmtk-nhanh-contact .button:not(.primary):hover {
    background: #ddb300 !important;
    border-color: #ddb300 !important;
    box-shadow: 0 7px 16px rgba(31, 41, 55, .20);
    color: #201d00 !important;
    transform: translateY(-2px);
}

.single-product .dmtk-nhanh-contact .button:not(.primary):focus-visible {
    outline: 3px solid rgba(246, 199, 0, .55);
    outline-offset: 2px;
}

/* Product purchase actions: distinct secondary and primary conversion paths. */
.single-product form.cart:not(.variations_form),
.single-product .woocommerce-variation-add-to-cart {
    align-items: stretch;
    background: linear-gradient(135deg, #fff 0%, #fff8f8 100%);
    border: 1px solid #f1dfe0;
    border-radius: 12px;
    box-shadow: 0 5px 16px rgba(31, 41, 55, .07);
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    margin: 10px 0 14px;
    padding: 10px;
}

.single-product form.cart .quantity:not(.hidden) {
    grid-column: 1 / -1;
}

.single-product form.cart .single_add_to_cart_button {
    align-items: center;
    border: 1px solid var(--dmtk-red) !important;
    border-radius: 9px;
    box-shadow: none;
    display: inline-flex;
    gap: 8px;
    height: 48px;
    justify-content: center;
    letter-spacing: .1px;
    margin: 0 !important;
    min-height: 48px;
    padding: 0 14px !important;
    text-transform: uppercase;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease, transform .18s ease;
    width: 100%;
}

.single-product form.cart .single_add_to_cart_button:not(#buy_now_button) {
    background: #fff !important;
    color: var(--dmtk-red-dark) !important;
}

.single-product form.cart .single_add_to_cart_button:not(#buy_now_button)::before {
    align-items: center;
    background: #fff0f1;
    border-radius: 50%;
    content: '+';
    display: inline-flex;
    flex: 0 0 22px;
    font-size: 18px;
    height: 22px;
    justify-content: center;
    line-height: 1;
}

.single-product form.cart .single_add_to_cart_button:not(#buy_now_button):hover {
    background: #fff3f4 !important;
    border-color: var(--dmtk-red-dark) !important;
    box-shadow: 0 7px 16px rgba(215, 25, 32, .14);
    color: var(--dmtk-red-dark) !important;
    transform: translateY(-2px);
}

.single-product form.cart #buy_now_button {
    background: linear-gradient(135deg, var(--dmtk-red-bright), var(--dmtk-red-dark)) !important;
    border-color: var(--dmtk-red-dark) !important;
    box-shadow: 0 6px 14px rgba(215, 25, 32, .22);
    color: #fff !important;
}

.single-product form.cart #buy_now_button::after {
    content: '\2192';
    font-size: 18px;
    line-height: 1;
    transition: transform .18s ease;
}

.single-product form.cart #buy_now_button:hover {
    background: linear-gradient(135deg, #ed1c24, #a90f14) !important;
    box-shadow: 0 9px 20px rgba(180, 19, 25, .30);
    transform: translateY(-2px);
}

.single-product form.cart #buy_now_button:hover::after {
    transform: translateX(3px);
}

.single-product form.cart .single_add_to_cart_button:active {
    box-shadow: none;
    transform: translateY(0) scale(.985);
}

.single-product form.cart .single_add_to_cart_button:focus-visible {
    outline: 3px solid rgba(246, 199, 0, .62);
    outline-offset: 2px;
}

.single-product form.cart .single_add_to_cart_button.disabled,
.single-product form.cart .single_add_to_cart_button:disabled {
    box-shadow: none;
    cursor: not-allowed;
    opacity: .58;
    transform: none;
}

/* Product information tabs: clean segmented navigation and editorial content. */
.single-product .woocommerce-tabs {
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 18px;
    box-shadow: 0 10px 32px rgba(16, 24, 40, .07);
    margin-bottom: 32px;
    overflow: hidden;
    padding: 0 !important;
}

.single-product .woocommerce-tabs .product-tabs {
    align-items: center;
    background: #f8fafc !important;
    border: 0 !important;
    border-bottom: 1px solid #eaecf0 !important;
    display: flex;
    gap: 6px;
    height: auto !important;
    margin: 0;
    min-height: 64px;
    padding: 10px 12px;
    text-align: left;
}

.single-product .woocommerce-tabs .product-tabs > li {
    flex: 0 0 auto;
    margin: 0 !important;
}

.single-product .woocommerce-tabs .product-tabs > li > a {
    align-items: center;
    background: transparent !important;
    border: 1px solid transparent !important;
    border-radius: 10px;
    color: #667085 !important;
    display: inline-flex;
    font-size: 14px;
    font-weight: 600 !important;
    justify-content: center;
    min-height: 42px;
    padding: 9px 16px !important;
    text-transform: none !important;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease;
    width: auto !important;
}

.single-product .woocommerce-tabs .product-tabs > li:not(.active) > a:hover {
    background: #fff !important;
    border-color: #eaecf0 !important;
    color: var(--dmtk-red-dark) !important;
}

.single-product .woocommerce-tabs .product-tabs > li.active > a {
    background: #fff !important;
    border-color: #e4e7ec !important;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 4px 10px rgba(16, 24, 40, .07);
    color: var(--dmtk-red-dark) !important;
}

.single-product .woocommerce-tabs .product-tabs.nav-line > li > a::before {
    display: none !important;
}

.single-product .woocommerce-tabs .product-tabs > li > a:focus-visible {
    outline: 3px solid rgba(246, 199, 0, .62);
    outline-offset: 2px;
}

.single-product .woocommerce-tabs .tab-panels {
    background: #fff;
    padding: 28px 28px 34px;
}

.single-product .woocommerce-tabs .panel {
    color: #344054;
    font-size: 16px;
    line-height: 1.75;
    margin: 0;
    padding: 0;
}

.single-product .woocommerce-tabs .panel h2,
.single-product .woocommerce-tabs .panel h3,
.single-product .woocommerce-tabs .panel h4 {
    color: #101828;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.35;
    margin-bottom: .65em;
    margin-top: 1.2em;
}

.single-product .woocommerce-tabs .panel h2:first-child,
.single-product .woocommerce-tabs .panel h3:first-child,
.single-product .woocommerce-tabs .panel h4:first-child {
    margin-top: 0;
}

.single-product .woocommerce-tabs .panel > :last-child {
    margin-bottom: 0;
}

.single-product .woocommerce-tabs .dmtk-technical-spec,
.single-product .woocommerce-tabs .dmtk-technical-spec > div {
    display: block;
    max-width: 100%;
    min-width: 0;
    width: 100%;
}

.single-product .woocommerce-tabs .dmtk-technical-spec > div > div {
    background: #fff;
    border: 1px solid #eaecf0;
    border-radius: 12px;
    display: grid;
    grid-template-columns: minmax(180px, 38%) minmax(0, 62%);
    margin: 0 0 18px;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    width: 100%;
}

.single-product .woocommerce-tabs .dmtk-technical-spec > div > div:last-child {
    margin-bottom: 0;
}

.single-product .woocommerce-tabs .dmtk-technical-spec > div > div > p:first-child {
    background: linear-gradient(90deg, #fff4f4, #f8fafc);
    border-bottom: 1px solid #eaecf0;
    color: var(--dmtk-red-dark);
    font-size: 16px;
    font-weight: 700;
    grid-column: 1 / -1;
    line-height: 1.4;
    margin: 0;
    padding: 12px 16px;
}

.single-product .woocommerce-tabs .dmtk-technical-spec > div > div > div {
    align-items: flex-start;
    border-bottom: 1px solid #eaecf0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 48px;
    min-width: 0;
    overflow-wrap: anywhere;
    padding: 11px 16px;
    white-space: normal;
    word-break: normal;
}

.single-product .woocommerce-tabs .dmtk-technical-spec > div > div > div:nth-of-type(odd) {
    background: #f8fafc;
    color: #1d2939;
    font-weight: 600;
}

.single-product .woocommerce-tabs .dmtk-technical-spec > div > div > div:nth-of-type(even) {
    border-left: 1px solid #eaecf0;
    color: #475467;
}

.single-product .woocommerce-tabs .dmtk-technical-spec > div > div > div:nth-of-type(4n + 3),
.single-product .woocommerce-tabs .dmtk-technical-spec > div > div > div:nth-of-type(4n + 4) {
    background-color: #fcfcfd;
}

.single-product .woocommerce-tabs .dmtk-technical-spec > div > div > div:nth-last-of-type(-n + 2) {
    border-bottom: 0;
}

.single-product .woocommerce-tabs .dmtk-technical-spec p {
    margin: 0;
}

.single-product .woocommerce-tabs .dmtk-technical-spec > div > div > div p + p {
    margin-top: 4px;
}

/* Some legacy products still store specifications as a semantic table. */
.single-product .woocommerce-tabs .dmtk-technical-spec table {
    background: #fff;
    border: 1px solid #eaecf0;
    border-collapse: separate;
    border-radius: 12px;
    border-spacing: 0;
    display: table;
    margin: 0;
    overflow: hidden;
    table-layout: fixed;
    width: 100%;
}

.single-product .woocommerce-tabs .dmtk-technical-spec th,
.single-product .woocommerce-tabs .dmtk-technical-spec td {
    border: 0;
    border-bottom: 1px solid #eaecf0;
    min-width: 0;
    overflow-wrap: anywhere;
    padding: 11px 16px;
    text-align: left;
    vertical-align: top;
}

.single-product .woocommerce-tabs .dmtk-technical-spec th,
.single-product .woocommerce-tabs .dmtk-technical-spec td:first-child {
    background: #f8fafc;
    color: #1d2939;
    font-weight: 600;
    width: 38%;
}

.single-product .woocommerce-tabs .dmtk-technical-spec tr:last-child > * {
    border-bottom: 0;
}

@media screen and (max-width: 849px) {
    .single-product form.cart .single_add_to_cart_button {
        font-size: 13px !important;
        gap: 6px;
        padding-left: 9px !important;
        padding-right: 9px !important;
    }

    .single-product .woocommerce-tabs {
        border-radius: 14px;
        margin-left: 0;
        margin-right: 0;
    }

    .single-product .woocommerce-tabs .product-tabs {
        flex-wrap: nowrap;
        min-height: 56px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        padding: 8px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .single-product .woocommerce-tabs .product-tabs::-webkit-scrollbar {
        display: none;
    }

    .single-product .woocommerce-tabs .product-tabs > li {
        width: auto !important;
    }

    .single-product .woocommerce-tabs .product-tabs > li > a {
        min-height: 40px;
        padding: 8px 13px !important;
        white-space: nowrap;
    }

    .single-product .woocommerce-tabs .tab-panels {
        padding: 20px 16px 24px;
    }

    .single-product .woocommerce-tabs .panel {
        font-size: 15px;
        line-height: 1.7;
    }

    .single-product .woocommerce-tabs .dmtk-technical-spec > div > div {
        grid-template-columns: minmax(118px, 42%) minmax(0, 58%);
    }

    .single-product .woocommerce-tabs .dmtk-technical-spec > div > div > p:first-child {
        font-size: 15px;
        padding: 11px 12px;
    }

    .single-product .woocommerce-tabs .dmtk-technical-spec > div > div > div,
    .single-product .woocommerce-tabs .dmtk-technical-spec th,
    .single-product .woocommerce-tabs .dmtk-technical-spec td {
        min-height: 44px;
        padding: 10px 12px;
    }

    .single-product .woocommerce-tabs .dmtk-technical-spec th,
    .single-product .woocommerce-tabs .dmtk-technical-spec td:first-child {
        width: 42%;
    }
}

/* Product benefit cards: compact, modern and easy to scan in the narrow sidebar. */
.single-product .uu-dai-tip {
    margin-top: 4px;
}

.single-product .uu-dai-tip .icon-box {
    background: linear-gradient(145deg, #fff 0%, #fff 64%, #fff6f6 100%);
    border: 1px solid #edf0f3;
    border-radius: 14px;
    box-shadow: 0 5px 16px rgba(31, 41, 55, .08);
    margin: 0 0 12px !important;
    min-height: 138px;
    overflow: hidden;
    padding: 14px 10px 12px !important;
    position: relative;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.single-product .uu-dai-tip .icon-box::before {
    background: linear-gradient(90deg, var(--dmtk-red-bright), var(--dmtk-yellow));
    content: '';
    height: 3px;
    left: 18px;
    position: absolute;
    right: 18px;
    top: 0;
}

.single-product .uu-dai-tip .icon-box:hover,
.single-product .uu-dai-tip a:hover .icon-box {
    border-color: rgba(215, 25, 32, .24);
    box-shadow: 0 10px 24px rgba(31, 41, 55, .14);
    transform: translateY(-3px);
}

.single-product .uu-dai-tip a:focus-visible {
    border-radius: 14px;
    outline: 3px solid rgba(246, 199, 0, .58);
    outline-offset: 3px;
}

.single-product .uu-dai-tip .icon-box-img {
    align-items: center;
    background: #fff0f1;
    border: 1px solid rgba(215, 25, 32, .12);
    border-radius: 50%;
    display: flex;
    height: 54px;
    justify-content: center;
    margin: 0 auto 10px !important;
    padding: 12px;
    width: 54px !important;
}

.single-product .uu-dai-tip .icon-box-img svg {
    height: 100%;
    width: 100%;
}

.single-product .uu-dai-tip .icon-box-text {
    font-size: 12px !important;
    line-height: 1.45;
    text-align: center;
}

.single-product .uu-dai-tip .icon-box-text h3 {
    color: var(--dmtk-blue) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: -.1px;
    line-height: 1.35 !important;
    margin: 0 0 6px;
}

.single-product .uu-dai-tip .icon-box-text p {
    color: #5f6875;
    font-size: 11px !important;
    line-height: 1.45 !important;
    margin: 0;
}

@media screen and (max-width: 849px) {
    .single-product .uu-dai-tip .icon-box {
        min-height: 132px;
    }
}

/* Catalogue pagination: branded, tactile controls with compact mobile sizing. */
.woocommerce-pagination,
.pagination-nav {
    display: flex;
    justify-content: center;
    margin: 26px 0 10px;
}

.woocommerce-pagination .nav-pagination,
.pagination-nav .nav-pagination {
    align-items: center;
    background: #fff;
    border: 1px solid #edf0f3;
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(31, 41, 55, .08);
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 6px;
    margin: 0;
    padding: 7px 9px;
}

.woocommerce-pagination .nav-pagination > li,
.pagination-nav .nav-pagination > li {
    margin: 0 !important;
}

.woocommerce-pagination .page-number,
.pagination-nav .page-number {
    align-items: center;
    background: #fff;
    border: 1px solid #d8dee6;
    border-radius: 50%;
    color: #344054;
    display: inline-flex;
    font-size: 14px !important;
    font-weight: 700;
    height: 38px;
    justify-content: center;
    line-height: 1 !important;
    min-width: 38px;
    padding: 0;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease, transform .18s ease;
}

.woocommerce-pagination a.page-number:hover,
.pagination-nav a.page-number:hover {
    background: #fff1f2;
    border-color: rgba(215, 25, 32, .42);
    box-shadow: 0 5px 12px rgba(215, 25, 32, .13);
    color: var(--dmtk-red-bright);
    transform: translateY(-2px);
}

.woocommerce-pagination .page-number.current,
.pagination-nav .page-number.current {
    background: linear-gradient(135deg, var(--dmtk-red-bright), #ef3340);
    border-color: transparent;
    box-shadow: 0 6px 14px rgba(215, 25, 32, .28);
    color: #fff;
}

.woocommerce-pagination .page-number.dots,
.pagination-nav .page-number.dots {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    color: #7b8491;
    min-width: 26px;
}

.woocommerce-pagination .page-number.next,
.woocommerce-pagination .page-number.prev,
.pagination-nav .page-number.next,
.pagination-nav .page-number.prev {
    background: #fff7f7;
    border-color: rgba(215, 25, 32, .2);
    color: var(--dmtk-red-bright);
}

.woocommerce-pagination a.page-number:focus-visible,
.pagination-nav a.page-number:focus-visible {
    outline: 3px solid rgba(246, 199, 0, .62);
    outline-offset: 2px;
}

@media screen and (max-width: 549px) {
    .woocommerce-pagination .nav-pagination,
    .pagination-nav .nav-pagination {
        gap: 3px;
        max-width: 100%;
        padding: 6px;
    }

    .woocommerce-pagination .page-number,
    .pagination-nav .page-number {
        font-size: 13px !important;
        height: 34px;
        min-width: 34px;
    }

    .woocommerce-pagination .page-number.dots,
    .pagination-nav .page-number.dots {
        min-width: 20px;
    }
}

/* Sidebar product lists: compact mini-cards shared by archives and product detail. */
.sidebar-wrapper .product_list_widget,
.category-page-row .product_list_widget,
.custom-product-page .product_list_widget,
#product-sidebar .product_list_widget {
    background: #fff;
    border: 1px solid #edf0f3;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 5px 16px rgba(31, 41, 55, .06);
    margin-top: -10px;
    padding: 7px !important;
}

.sidebar-wrapper .product_list_widget li,
.category-page-row .product_list_widget li,
.custom-product-page .product_list_widget li,
#product-sidebar .product_list_widget li {
    background: #fff;
    border: 1px solid transparent !important;
    border-radius: 10px;
    margin: 0 0 5px;
    min-height: 68px;
    overflow: hidden;
    padding: 8px 8px 8px 68px !important;
    position: relative;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.sidebar-wrapper .product_list_widget li:last-child,
.category-page-row .product_list_widget li:last-child,
.custom-product-page .product_list_widget li:last-child,
#product-sidebar .product_list_widget li:last-child {
    margin-bottom: 0;
}

.sidebar-wrapper .product_list_widget li:hover,
.category-page-row .product_list_widget li:hover,
.custom-product-page .product_list_widget li:hover,
#product-sidebar .product_list_widget li:hover {
    background: #fff8f8;
    border-color: rgba(215, 25, 32, .14) !important;
    box-shadow: 0 6px 14px rgba(31, 41, 55, .09);
    transform: translateX(3px);
}

.sidebar-wrapper .product_list_widget li:focus-within,
.category-page-row .product_list_widget li:focus-within,
.custom-product-page .product_list_widget li:focus-within,
#product-sidebar .product_list_widget li:focus-within {
    border-color: rgba(215, 25, 32, .22) !important;
    box-shadow: 0 0 0 3px rgba(246, 199, 0, .30);
}

.sidebar-wrapper .product_list_widget li > a,
.category-page-row .product_list_widget li > a,
.custom-product-page .product_list_widget li > a,
#product-sidebar .product_list_widget li > a {
    color: var(--dmtk-blue);
    display: block;
    font-size: 13px !important;
    font-weight: 500;
    line-height: 1.35;
    min-height: 36px;
}

.sidebar-wrapper .product_list_widget .product-title,
.category-page-row .product_list_widget .product-title,
.custom-product-page .product_list_widget .product-title,
#product-sidebar .product_list_widget .product-title {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.sidebar-wrapper .product_list_widget li > a:hover,
.category-page-row .product_list_widget li > a:hover,
.custom-product-page .product_list_widget li > a:hover,
#product-sidebar .product_list_widget li > a:hover {
    color: var(--dmtk-red-bright);
}

.sidebar-wrapper .product_list_widget li img,
.category-page-row .product_list_widget li img,
.custom-product-page .product_list_widget li img,
#product-sidebar .product_list_widget li img {
    background: #fff;
    border: 1px solid #edf0f3;
    border-radius: 8px;
    float: none;
    height: 52px;
    left: 7px;
    margin: 0;
    object-fit: contain;
    padding: 3px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%) scale(1);
    transition: border-color .18s ease, transform .22s ease;
    width: 52px;
}

.sidebar-wrapper .product_list_widget li:hover img,
.category-page-row .product_list_widget li:hover img,
.custom-product-page .product_list_widget li:hover img,
#product-sidebar .product_list_widget li:hover img {
    border-color: rgba(215, 25, 32, .16);
    transform: translateY(-50%) scale(1.04);
}

.sidebar-wrapper .product_list_widget .price,
.category-page-row .product_list_widget .price,
.custom-product-page .product_list_widget .price,
#product-sidebar .product_list_widget .price {
    font-size: 12px !important;
    gap: 3px 5px;
    justify-content: flex-start;
    line-height: 1.3;
    margin-top: 4px;
    min-height: 18px;
}

.sidebar-wrapper .product_list_widget .price .amount,
.category-page-row .product_list_widget .price .amount,
.custom-product-page .product_list_widget .price .amount,
#product-sidebar .product_list_widget .price .amount,
.sidebar-wrapper .product_list_widget .price ins,
.category-page-row .product_list_widget .price ins,
.custom-product-page .product_list_widget .price ins,
#product-sidebar .product_list_widget .price ins {
    font-size: 12px !important;
    line-height: 1.25 !important;
}

.sidebar-wrapper .product_list_widget .price del,
.category-page-row .product_list_widget .price del,
.custom-product-page .product_list_widget .price del,
#product-sidebar .product_list_widget .price del {
    font-size: 11px !important;
}

.sidebar-wrapper .product_list_widget .price del,
.category-page-row .product_list_widget .price del,
.custom-product-page .product_list_widget .price del,
#product-sidebar .product_list_widget .price del,
.sidebar-wrapper .product_list_widget .price del .amount,
.category-page-row .product_list_widget .price del .amount,
.custom-product-page .product_list_widget .price del .amount,
#product-sidebar .product_list_widget .price del .amount {
    color: #98a2b3 !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    opacity: 1 !important;
    text-decoration-color: #c9cfd7 !important;
}

.sidebar-wrapper .product_list_widget .price ins,
.category-page-row .product_list_widget .price ins,
.custom-product-page .product_list_widget .price ins,
#product-sidebar .product_list_widget .price ins {
    padding: 2px 6px;
}

.sidebar-wrapper .product_list_widget .dmtk-contact-price,
.category-page-row .product_list_widget .dmtk-contact-price,
.custom-product-page .product_list_widget .dmtk-contact-price,
#product-sidebar .product_list_widget .dmtk-contact-price {
    background: #fff0f1;
    border: 1px solid rgba(215, 25, 32, .10);
    border-radius: 999px;
    color: var(--dmtk-red) !important;
    display: inline-flex;
    font-weight: 700;
    padding: 2px 8px;
    width: auto;
}

/* WooCommerce widgets render normal sale prices directly under the list item,
 * without a `.price` wrapper. Mirror the shared price language at mini-card scale. */
.sidebar-wrapper .product_list_widget li > del,
.category-page-row .product_list_widget li > del,
.custom-product-page .product_list_widget li > del,
#product-sidebar .product_list_widget li > del {
    color: #98a2b3 !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    line-height: 1.25 !important;
    margin-right: 4px;
    opacity: 1 !important;
    text-decoration-color: #c9cfd7 !important;
    text-decoration-thickness: 1px;
}

.sidebar-wrapper .product_list_widget li > del .amount,
.category-page-row .product_list_widget li > del .amount,
.custom-product-page .product_list_widget li > del .amount,
#product-sidebar .product_list_widget li > del .amount {
    color: inherit !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    line-height: inherit !important;
}

.sidebar-wrapper .product_list_widget li > ins,
.category-page-row .product_list_widget li > ins,
.custom-product-page .product_list_widget li > ins,
#product-sidebar .product_list_widget li > ins {
    background: #fff0f1;
    border-radius: 6px;
    color: var(--dmtk-red) !important;
    display: inline-block;
    line-height: 1.25 !important;
    padding: 2px 5px;
    text-decoration: none !important;
}

.sidebar-wrapper .product_list_widget li > ins .amount,
.category-page-row .product_list_widget li > ins .amount,
.custom-product-page .product_list_widget li > ins .amount,
#product-sidebar .product_list_widget li > ins .amount,
.sidebar-wrapper .product_list_widget li > .amount,
.category-page-row .product_list_widget li > .amount,
.custom-product-page .product_list_widget li > .amount,
#product-sidebar .product_list_widget li > .amount {
    color: var(--dmtk-red) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
}

@media screen and (max-width: 549px) {
    .sidebar-wrapper .product_list_widget li,
    .category-page-row .product_list_widget li,
    .custom-product-page .product_list_widget li,
    #product-sidebar .product_list_widget li {
        min-height: 64px;
        padding-left: 64px !important;
    }

    .sidebar-wrapper .product_list_widget li img,
    .category-page-row .product_list_widget li img,
    .custom-product-page .product_list_widget li img,
    #product-sidebar .product_list_widget li img {
        height: 48px;
        width: 48px;
    }
}

/* Product cards: one polished interaction model across home, archives and related products. */
.home .div-san-pham .row-small > .product-small.col,
.home .div-san-pham .row-small > .flickity-viewport > .flickity-slider > .product-small.col {
    padding-top: 12px !important;
}

.product-small.col > .col-inner {
    background: #fff;
    border: 1px solid #edf0f3;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(31, 41, 55, .07);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.product-small.col:hover > .col-inner {
    border-color: rgba(215, 25, 32, .24);
    box-shadow: 0 14px 30px rgba(31, 41, 55, .14);
    transform: translateY(-6px);
}

.product-small.col:focus-within > .col-inner {
    border-color: rgba(215, 25, 32, .30);
    box-shadow: 0 0 0 3px rgba(246, 199, 0, .34), 0 14px 30px rgba(31, 41, 55, .13);
}

.product-small.col .product-small.box {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    height: auto;
    min-height: 0;
}

/* Catalogue mode appends this action beside the card rather than inside its box. */
.product-small.col .dmtk-nhanh-loop-contact {
    align-items: center;
    align-self: stretch;
    background: linear-gradient(135deg, var(--dmtk-red-bright), var(--dmtk-red-dark)) !important;
    border: 0 !important;
    border-radius: 8px;
    box-shadow: 0 3px 9px rgba(215, 25, 32, .20);
    color: #fff !important;
    display: flex;
    font-size: 14px;
    font-weight: 700;
    height: 40px;
    justify-content: center;
    line-height: 1;
    margin: 0 10px 12px;
    min-height: 40px;
    padding: 0 12px;
    text-align: center;
    text-transform: uppercase;
    transition: box-shadow .18s ease, transform .18s ease;
    width: auto;
}

.product-small.col .dmtk-nhanh-loop-contact:hover {
    box-shadow: 0 7px 16px rgba(215, 25, 32, .28);
    color: #fff !important;
    transform: translateY(-2px);
}

.product-small.col .dmtk-nhanh-loop-contact:focus-visible {
    box-shadow: 0 0 0 3px rgba(246, 199, 0, .48), 0 5px 12px rgba(215, 25, 32, .24);
    outline: 2px solid var(--dmtk-yellow);
    outline-offset: 2px;
}

.product-small.col .box-image {
    border-bottom: 1px solid #f0f2f5;
    overflow: hidden;
}

.product-small.col .box-image .image-fade_in_back > a {
    box-sizing: border-box;
    padding: 10px;
}

.product-small.col .box-image img {
    transform: scale(1);
    transition: transform .34s cubic-bezier(.2, .7, .2, 1);
}

.product-small.col:hover .box-image img,
.product-small.col:focus-within .box-image img {
    transform: scale(1.045);
}

.product-small.col .box-text-products {
    background: linear-gradient(180deg, #fff 0%, #fff 72%, #fffafa 100%);
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 13px 11px 15px;
}

.product-small.col .title-wrapper {
    margin-bottom: 9px;
}

.product-small.col .product-title a {
    color: var(--dmtk-blue);
    transition: color .18s ease;
}

.product-small.col:hover .product-title a,
.product-small.col .product-title a:hover,
.product-small.col .product-title a:focus-visible {
    color: var(--dmtk-red-bright);
}

.product-small.col .price-wrapper {
    margin-top: auto;
    min-height: 27px;
}

/* Shared price language: muted old price, emphasized current price, same treatment at every scale. */
.price del {
    color: #98a2b3 !important;
    opacity: 1 !important;
    text-decoration-color: #c9cfd7;
    text-decoration-thickness: 1px;
}

.price del .amount {
    color: inherit !important;
}

.price ins {
    background: #fff0f1;
    border-radius: 7px;
    color: var(--dmtk-red) !important;
    display: inline-block;
    padding: 3px 7px;
    text-decoration: none !important;
}

.price ins .amount,
.price > .amount {
    color: var(--dmtk-red) !important;
    letter-spacing: -.15px;
}

.product-small .price-wrapper > .price {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 5px 7px;
    justify-content: center;
}

.product-small .dmtk-contact-price {
    background: #fff0f1;
    border: 1px solid rgba(215, 25, 32, .10);
    border-radius: 999px;
    color: var(--dmtk-red) !important;
    display: inline-flex;
    justify-content: center;
    line-height: 1.25 !important;
    padding: 4px 10px;
}

.single-product .price-wrapper > .price {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 7px 10px;
}

/* Product-detail share actions: equal hit areas, centered glyphs and clear feedback. */
.single-product .social-icons.share-icons {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0 0;
}

.single-product .social-icons.share-icons .button.btn-social-icon {
    align-items: center;
    border: 0 !important;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(31, 41, 55, .16);
    display: inline-flex;
    height: 38px;
    justify-content: center;
    margin: 0 !important;
    min-height: 38px;
    min-width: 38px;
    padding: 0 !important;
    transition: box-shadow .18s ease, filter .18s ease, transform .18s ease;
    width: 38px;
}

.single-product .social-icons.share-icons .button.btn-social-icon > :first-child {
    align-items: center;
    bottom: auto;
    display: flex;
    font-size: 17px;
    height: 100%;
    justify-content: center;
    left: auto;
    line-height: 1 !important;
    position: static;
    top: auto;
    width: 100% !important;
}

.single-product .social-icons.share-icons .facebook {
    background-color: #3b5998 !important;
}

.single-product .social-icons.share-icons .twitter {
    background-color: #1da1f2 !important;
}

.single-product .social-icons.share-icons .email {
    background-color: #1f2937 !important;
}

.single-product .social-icons.share-icons .pinterest {
    background-color: #e60023 !important;
}

.single-product .social-icons.share-icons .linkedin {
    background-color: #0077b5 !important;
}

.single-product .social-icons.share-icons .button.btn-social-icon:hover {
    box-shadow: 0 7px 16px rgba(31, 41, 55, .24);
    filter: brightness(.9);
    transform: translateY(-2px);
}

.single-product .social-icons.share-icons .button.btn-social-icon:active {
    box-shadow: 0 3px 8px rgba(31, 41, 55, .18);
    transform: translateY(0) scale(.96);
}

.single-product .social-icons.share-icons .button.btn-social-icon:focus-visible {
    box-shadow: 0 0 0 3px rgba(246, 199, 0, .48), 0 5px 12px rgba(31, 41, 55, .2);
    outline: 2px solid var(--dmtk-yellow);
    outline-offset: 2px;
}

.product_list_widget .price {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
}

/* Sale badge follows the same rounded, elevated visual language. */
.product-small.col > .col-inner > .badge-container {
    left: 8px;
    top: 10px;
    width: auto;
}

.product-small.col .badge-circle,
.product-small.col .badge-inner.secondary.on-sale {
    height: auto;
    width: auto;
}

.product-small.col .badge-inner.secondary.on-sale {
    background: linear-gradient(135deg, var(--dmtk-red-bright), #ef3340) !important;
    border-radius: 999px;
    box-shadow: 0 5px 12px rgba(215, 25, 32, .25);
    min-width: 44px;
    padding: 0 7px;
}

.product-small.col .badge-inner span.onsale {
    font-size: 12px !important;
    font-weight: 700;
    line-height: 27px;
    padding: 0;
}

@media screen and (max-width: 549px) {
    .product-small.col:hover > .col-inner {
        transform: translateY(-3px);
    }

    .product-small.col .box-image .image-fade_in_back > a {
        padding: 7px;
    }

    .product-small.col .box-text-products {
        padding: 11px 8px 13px;
    }

    .product-small.col .dmtk-nhanh-loop-contact {
        font-size: 13px;
        height: 38px;
        margin: 0 8px 10px;
        min-height: 38px;
    }

    .product-small.col .badge-inner.secondary.on-sale {
        min-width: 40px;
    }
}

/* Header product search: unified field/button surface with clear interaction states. */
.header-main form.searchform .flex-row {
    background: #fff;
    border: 1px solid rgba(31, 41, 55, .14);
    border-radius: 999px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .12);
    height: 42px;
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.header-main form.searchform .flex-row:hover {
    border-color: rgba(246, 199, 0, .82);
    box-shadow: 0 6px 16px rgba(31, 41, 55, .16);
}

.header-main form.searchform .flex-row:focus-within {
    border-color: var(--dmtk-yellow);
    box-shadow: 0 0 0 3px rgba(246, 199, 0, .28), 0 8px 20px rgba(31, 41, 55, .16);
    transform: translateY(-1px);
}

.header-main form.searchform input.search-field {
    background: #fff !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: var(--dmtk-text);
    height: 40px;
    line-height: 40px !important;
    padding: 0 16px;
}

.header-main form.searchform input.search-field::placeholder {
    color: #7c8491;
    opacity: 1;
}

.header-main form.searchform button.ux-search-submit {
    align-items: center;
    border: 0 !important;
    border-left: 1px solid rgba(31, 41, 55, .10) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: flex;
    height: 40px;
    justify-content: center;
    margin: 0;
    min-height: 40px;
    min-width: 48px;
    padding: 0;
    transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.header-main form.searchform button.ux-search-submit i {
    font-size: 18px;
    transition: transform .18s ease;
}

.header-main form.searchform button.ux-search-submit:hover {
    background-color: #dfb300 !important;
    box-shadow: inset 0 0 0 1px rgba(31, 41, 55, .08) !important;
}

.header-main form.searchform button.ux-search-submit:hover i {
    transform: scale(1.1);
}

.header-main form.searchform button.ux-search-submit:active {
    background-color: #cda500 !important;
    box-shadow: inset 0 3px 7px rgba(31, 41, 55, .18) !important;
    transform: translateY(1px);
}

.header-main form.searchform button.ux-search-submit:focus-visible {
    outline: 3px solid rgba(246, 199, 0, .62);
    outline-offset: -3px;
}

@media screen and (max-width: 549px) {
    .header-main form.searchform .flex-row {
        border-radius: 9px;
        height: 40px;
    }

    .header-main form.searchform input.search-field,
    .header-main form.searchform button.ux-search-submit {
        height: 38px;
        min-height: 38px;
    }

    .header-main form.searchform input.search-field {
        line-height: 38px !important;
        padding: 0 13px;
    }

    .header-main form.searchform button.ux-search-submit {
        min-width: 44px;
    }
}

/* Footer commitments: compact glass cards on the brand-blue service band. */
.section .uu-dai-tips {
    background: linear-gradient(135deg, #0b63a8 0%, #167bc3 58%, #0a5590 100%);
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(11, 99, 168, .20);
    margin-bottom: 0;
    padding: 14px 8px 6px;
}

.section .uu-dai-tips > .col {
    padding-bottom: 0;
}

.section .uu-dai-tips > .col > .col-inner > .row > .col {
    padding: 0 6px 8px;
}

.section .uu-dai-tips .icon-box {
    align-items: center;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 13px;
    display: flex;
    height: 100%;
    min-height: 78px;
    padding: 12px 14px;
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.section .uu-dai-tips .icon-box:hover {
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .28);
    box-shadow: 0 8px 18px rgba(4, 46, 82, .20);
    transform: translateY(-2px);
}

.section .uu-dai-tips .icon-box-img {
    align-items: center;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 13px;
    display: flex;
    flex: 0 0 48px;
    height: 48px;
    justify-content: center;
    margin: 0 13px 0 0 !important;
    max-width: 48px;
    padding: 10px;
    width: 48px !important;
}

.section .uu-dai-tips .icon-box-img .icon-inner {
    align-items: center;
    display: flex;
    height: 100%;
    justify-content: center;
    width: 100%;
}

.section .uu-dai-tips .icon-box-img svg {
    fill: #fff !important;
    height: 27px;
    max-height: 27px;
    opacity: .96;
    width: 27px;
}

.section .uu-dai-tips .icon-box-text {
    min-width: 0;
    padding: 0;
}

.section .uu-dai-tips .icon-box-text h3 {
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: .15px;
    line-height: 1.3 !important;
    margin: 0 0 4px;
}

.section .uu-dai-tips .icon-box-text p {
    color: rgba(255, 255, 255, .80) !important;
    font-size: 11px !important;
    font-weight: 500;
    line-height: 1.45 !important;
    margin: 0;
}

/* Main footer information: one elevated surface with clear contact actions. */
#footer .footer-1 {
    background: #f7f8fa;
    border-top: 1px solid #e6e9ee;
    padding: 28px 0 22px !important;
}

#footer .footer-1 > .row > .widget {
    padding-left: 15px;
    padding-right: 15px;
}

#footer .footer-info {
    padding: 0 !important;
}

#footer .footer-info .section-content > .row {
    background: #fff;
    border: 1px solid #e5e9ef;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(31, 41, 55, .08);
    overflow: hidden;
    padding: 25px 28px 21px !important;
    position: relative;
}

#footer .footer-info .section-content > .row::before {
    background: linear-gradient(90deg, var(--dmtk-red), var(--dmtk-yellow) 48%, var(--dmtk-blue));
    content: '';
    height: 4px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

#footer .footer-info .col {
    padding: 0 18px 4px;
}

#footer .footer-info .col:first-child {
    border-right: 1px solid #edf0f3;
}

#footer .footer-info .col-inner,
#footer .footer-info p,
#footer .footer-info h3 {
    text-align: left;
}

#footer .footer-info h3 {
    align-items: center;
    color: var(--dmtk-red-dark) !important;
    display: flex;
    font-size: 20px !important;
    font-weight: 800 !important;
    gap: 10px;
    letter-spacing: .2px;
    line-height: 1.3 !important;
    margin: 0 0 9px;
}

#footer .footer-info h3::before {
    background: var(--dmtk-yellow);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(215, 25, 32, .09);
    content: '';
    flex: 0 0 8px;
    height: 8px;
}

#footer .footer-info p {
    color: #667085;
    font-size: 14px !important;
    line-height: 1.75 !important;
    margin: 0;
}

#footer .footer-info .col:nth-child(2) .col-inner {
    align-items: center;
    display: flex;
    height: 100%;
}

#footer .footer-info .col:nth-child(2) p {
    color: #344054;
    line-height: 2.25 !important;
}

#footer .footer-info strong {
    color: #1f2937;
    display: inline-block;
    font-weight: 700;
    min-width: 78px;
}

#footer .footer-info a {
    background: #eef7ff;
    border: 1px solid rgba(11, 99, 168, .10);
    border-radius: 999px;
    color: var(--dmtk-blue) !important;
    display: inline-flex;
    font-size: 14px !important;
    font-weight: 600;
    line-height: 1.35 !important;
    margin: 3px 0;
    padding: 5px 11px;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease, transform .18s ease;
}

#footer .footer-info a:hover {
    background: #fff1f2;
    border-color: rgba(215, 25, 32, .18);
    box-shadow: 0 5px 12px rgba(31, 41, 55, .10);
    color: var(--dmtk-red-dark) !important;
    transform: translateY(-1px);
}

#footer .footer-info a:focus-visible {
    box-shadow: 0 0 0 3px rgba(246, 199, 0, .38);
    outline: 2px solid var(--dmtk-yellow);
    outline-offset: 2px;
}

#footer .absolute-footer {
    background: #111827 !important;
    border-top: 0;
    color: #cbd5e1 !important;
    padding: 15px 0 17px;
}

#footer .absolute-footer .footer-primary {
    float: none;
    width: 100%;
}

#footer .absolute-footer .copyright-footer {
    color: #cbd5e1;
    font-size: 12px !important;
    line-height: 1.7 !important;
}

#footer .absolute-footer a {
    color: #fff !important;
    font-weight: 700;
}

#footer .absolute-footer a:hover,
#footer .absolute-footer a:focus-visible {
    color: var(--dmtk-yellow) !important;
}

@media screen and (max-width: 849px) {
    .section .uu-dai-tips .icon-box {
        display: flex !important;
        min-height: 72px;
        text-align: left !important;
    }

    .section .uu-dai-tips .icon-box-img {
        margin: 0 12px 0 0 !important;
    }

    #footer .footer-info .section-content > .row {
        padding: 22px 18px 18px !important;
    }

    #footer .footer-info .col:first-child {
        border-right: 0;
    }
}

@media screen and (max-width: 549px) {
    .section .uu-dai-tips {
        border-radius: 0;
        padding: 10px 9px 2px;
    }

    .section .uu-dai-tips .icon-box {
        min-height: 68px;
        padding: 9px 11px;
    }

    .section .uu-dai-tips .icon-box-img {
        border-radius: 11px;
        flex-basis: 44px;
        height: 44px;
        max-width: 44px;
        padding: 9px;
        width: 44px !important;
    }

    #footer .footer-1 {
        padding: 18px 0 14px !important;
    }

    #footer .footer-info .section-content > .row {
        border-radius: 13px;
        padding: 20px 12px 15px !important;
    }

    #footer .footer-info .col,
    #footer .footer-info .col-inner,
    #footer .footer-info p,
    #footer .footer-info h3 {
        text-align: center;
    }

    #footer .footer-info .col:first-child {
        border-bottom: 1px solid #edf0f3;
        margin-bottom: 14px;
        padding-bottom: 16px;
    }

    #footer .footer-info h3,
    #footer .footer-info .col:nth-child(2) .col-inner {
        justify-content: center;
    }

    #footer .footer-info strong {
        min-width: 72px;
        text-align: right;
    }

    #footer .absolute-footer {
        padding: 12px 10px 14px;
    }
}

/* Mobile product detail: restore natural left-to-right reading alignment. */
@media screen and (max-width: 849px) {
    .single-product .custom-product-page .thongtin-sp,
    .single-product .custom-product-page .thongtin-sp .col-inner,
    .single-product .custom-product-page .product-summary,
    .single-product .product-main .product-info,
    .single-product .product-footer .tab-panels,
    .single-product .product-footer .panel,
    .single-product .product-footer .panel p,
    .single-product .product-footer .panel li,
    .single-product .product_meta,
    .single-product .product-short-description {
        text-align: left !important;
    }

    .single-product .product-main .price-wrapper > .price,
    .single-product .social-icons.share-icons {
        justify-content: flex-start;
    }
}

/* Mobile navigation drawer: spacious touch targets and an integrated search surface. */
@media screen and (max-width: 849px) {
    .off-canvas-left .mfp-content:has(> #main-menu) {
        width: min(88vw, 360px) !important;
    }

    #main-menu.mobile-sidebar {
        background: linear-gradient(180deg, #fff 0%, #f7f9fc 100%);
        box-shadow: 14px 0 34px rgba(17, 24, 39, .20);
        min-height: 100%;
        width: min(88vw, 360px);
    }

    #main-menu .sidebar-menu {
        padding: 14px 12px 24px;
    }

    #main-menu .nav-sidebar {
        background: transparent;
        margin: 0;
        width: 100%;
    }

    #main-menu .header-search-form {
        border: 0 !important;
        margin: 0 0 14px !important;
        padding: 0 !important;
    }

    /* Keep FiboSearch usable inside the drawer instead of opening another overlay. */
    #main-menu .dgwt-wcas-enable-mobile-form {
        display: none !important;
    }

    #main-menu .header-search-form .dgwt-wcas-sf-wrapp {
        height: 46px !important;
        padding-right: 46px !important;
    }

    #main-menu .header-search-form .dgwt-wcas-search-input {
        height: 44px !important;
        line-height: 44px !important;
        font-size: 16px !important;
    }

    #main-menu .header-search-form .dgwt-wcas-search-submit {
        width: 44px !important;
        min-width: 44px !important;
        max-width: 44px !important;
    }

    #main-menu #menu-item-2452 > .toggle {
        display: none;
    }

    #main-menu #menu-item-2452 > a {
        width: 100%;
    }

    #main-menu .header-search-form .flex-row {
        background: #fff;
        border: 1px solid #dfe4ea;
        border-radius: 12px;
        box-shadow: 0 6px 18px rgba(31, 41, 55, .10);
        height: 46px;
        overflow: hidden;
        transition: border-color .18s ease, box-shadow .18s ease;
    }

    #main-menu .header-search-form .flex-row:focus-within {
        border-color: var(--dmtk-yellow);
        box-shadow: 0 0 0 3px rgba(246, 199, 0, .28), 0 7px 20px rgba(31, 41, 55, .12);
    }

    #main-menu .header-search-form .search-field {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        color: #1f2937;
        font-size: 16px !important;
        height: 44px;
        padding: 0 13px;
    }

    #main-menu .header-search-form .ux-search-submit {
        align-items: center;
        background: var(--dmtk-yellow) !important;
        border: 0;
        border-radius: 0;
        color: #1f2937 !important;
        display: flex;
        height: 46px;
        justify-content: center;
        margin: 0;
        min-height: 46px;
        padding: 0;
        width: 48px;
    }

    #main-menu .nav-sidebar > li:not(.header-search-form) {
        border: 0;
        margin: 0 0 4px;
    }

    #main-menu .nav-sidebar > li:not(.header-search-form) > a {
        align-items: center;
        border: 1px solid transparent;
        border-radius: 10px;
        color: #344054;
        display: flex;
        font-size: 14px !important;
        font-weight: 650 !important;
        min-height: 48px;
        padding: 0 12px !important;
        transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
    }

    #main-menu .nav-sidebar > li:not(.header-search-form) > a:hover,
    #main-menu .nav-sidebar > li.current-menu-item > a,
    #main-menu .nav-sidebar > li.current_page_parent > a,
    #main-menu .nav-sidebar > li.current-product-ancestor > a {
        background: #fff1f2;
        border-color: rgba(215, 25, 32, .12);
        color: var(--dmtk-red-dark) !important;
    }

    #main-menu .nav-sidebar .toggle {
        align-items: center;
        border-radius: 8px;
        display: flex;
        height: 38px;
        justify-content: center;
        margin: 5px 5px 0 0;
        width: 38px;
    }

    #main-menu .nav-sidebar .sub-menu {
        background: #f4f7fa;
        border: 1px solid #e7ebf0;
        border-radius: 10px;
        margin: 3px 0 8px;
        overflow: hidden;
        padding: 5px 7px 7px 12px;
    }

    #main-menu .nav-sidebar .sub-menu a {
        border: 0;
        color: #475467;
        font-size: 13px !important;
        font-weight: 550 !important;
        min-height: 42px;
        padding: 8px 10px !important;
    }

    #main-menu .nav-sidebar .sub-menu a img {
        background: #eef7ff;
        border-radius: 8px;
        height: 30px;
        margin-right: 9px;
        object-fit: contain;
        padding: 5px;
        width: 30px;
    }

    #main-menu .header-social-icons {
        border-top: 1px solid #e7ebf0 !important;
        margin-top: 14px !important;
        padding: 14px 8px 0 !important;
    }

    #main-menu .header-social-icons .social-icons {
        display: flex;
        gap: 10px;
    }

    #main-menu .header-social-icons .icon {
        align-items: center;
        background: #eef7ff;
        border-radius: 50%;
        color: var(--dmtk-blue) !important;
        display: inline-flex;
        height: 38px;
        justify-content: center;
        margin: 0 !important;
        width: 38px;
    }
}

/* Catalogue sorting: accessible native select inside a branded modern control. */
.woocommerce .woocommerce-ordering,
.woocommerce-page .woocommerce-ordering {
    margin: 0 0 18px;
    min-width: 280px;
    position: relative;
    z-index: 2;
}

.woocommerce .woocommerce-ordering::before,
.woocommerce-page .woocommerce-ordering::before {
    background: url('../icons/sort-products.svg') center / 20px 20px no-repeat;
    content: '';
    height: 20px;
    left: 14px;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    z-index: 2;
}

.woocommerce .woocommerce-ordering::after,
.woocommerce-page .woocommerce-ordering::after {
    border-bottom: 2px solid #667085;
    border-right: 2px solid #667085;
    content: '';
    height: 8px;
    pointer-events: none;
    position: absolute;
    right: 16px;
    top: calc(50% - 6px);
    transform: rotate(45deg);
    transition: border-color .18s ease, transform .18s ease;
    width: 8px;
    z-index: 2;
}

.woocommerce .woocommerce-ordering:hover::after,
.woocommerce-page .woocommerce-ordering:hover::after,
.woocommerce .woocommerce-ordering:focus-within::after,
.woocommerce-page .woocommerce-ordering:focus-within::after {
    border-color: var(--dmtk-red);
}

.woocommerce .woocommerce-ordering:focus-within::after,
.woocommerce-page .woocommerce-ordering:focus-within::after {
    transform: translateY(2px) rotate(225deg);
}

.woocommerce .woocommerce-ordering select.orderby,
.woocommerce-page .woocommerce-ordering select.orderby {
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(180deg, #fff 0%, #fbfcfd 100%);
    border: 1px solid #dfe4ea;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(31, 41, 55, .07);
    color: #344054;
    cursor: pointer;
    font-size: 14px !important;
    font-weight: 500;
    height: 46px;
    line-height: 44px !important;
    margin: 0;
    max-width: none;
    outline: 0;
    padding: 0 44px 0 44px;
    text-overflow: ellipsis;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
    width: 100%;
}

.woocommerce .woocommerce-ordering select.orderby:hover,
.woocommerce-page .woocommerce-ordering select.orderby:hover {
    border-color: rgba(11, 99, 168, .42);
    box-shadow: 0 7px 17px rgba(31, 41, 55, .11);
    transform: translateY(-1px);
}

.woocommerce .woocommerce-ordering select.orderby:focus,
.woocommerce-page .woocommerce-ordering select.orderby:focus,
.woocommerce .woocommerce-ordering select.orderby:focus-visible,
.woocommerce-page .woocommerce-ordering select.orderby:focus-visible {
    border-color: var(--dmtk-yellow);
    box-shadow: 0 0 0 3px rgba(246, 199, 0, .26), 0 7px 17px rgba(31, 41, 55, .10);
    transform: translateY(-1px);
}

.woocommerce .woocommerce-ordering select.orderby option,
.woocommerce-page .woocommerce-ordering select.orderby option {
    background: #fff;
    color: #344054;
    font-size: 14px;
    padding: 8px 10px;
}

@media screen and (max-width: 549px) {
    .woocommerce .woocommerce-ordering,
    .woocommerce-page .woocommerce-ordering {
        float: none;
        margin-bottom: 14px;
        min-width: 0;
        width: 100%;
    }

    .woocommerce .woocommerce-ordering select.orderby,
    .woocommerce-page .woocommerce-ordering select.orderby {
        font-size: 16px !important;
        height: 44px;
        line-height: 42px !important;
    }
}

/* Mobile search action and direction-aware sticky header. */
@media screen and (max-width: 849px) {
    .header-main .mobile-nav .header-search > a.is-small {
        align-items: center;
        background: rgba(255, 255, 255, .12);
        border: 1px solid rgba(255, 255, 255, .30);
        border-radius: 50%;
        box-shadow: 0 4px 10px rgba(113, 0, 7, .16);
        color: #fff !important;
        display: inline-flex;
        height: 42px;
        justify-content: center;
        margin: 0;
        min-height: 42px;
        min-width: 42px;
        padding: 0 !important;
        transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease, transform .18s ease;
        width: 42px;
    }

    .header-main .mobile-nav .header-search > a.is-small .icon-search {
        color: currentColor !important;
        font-size: 19px !important;
        line-height: 1 !important;
        margin: 0;
        transition: transform .18s ease;
    }

    .header-main .mobile-nav .header-search > a.is-small:hover {
        background: var(--dmtk-yellow);
        border-color: var(--dmtk-yellow);
        box-shadow: 0 7px 15px rgba(113, 0, 7, .22);
        color: #1f2937 !important;
        transform: translateY(-1px);
    }

    .header-main .mobile-nav .header-search > a.is-small:hover .icon-search {
        transform: scale(1.08);
    }

    .header-main .mobile-nav .header-search > a.is-small:active {
        box-shadow: 0 3px 8px rgba(113, 0, 7, .18);
        transform: translateY(0) scale(.95);
    }

    .header-main .mobile-nav .header-search > a.is-small:focus-visible {
        background: #fff;
        border-color: #fff;
        box-shadow: 0 0 0 3px rgba(246, 199, 0, .52), 0 5px 12px rgba(113, 0, 7, .20);
        color: var(--dmtk-red-dark) !important;
        outline: 2px solid var(--dmtk-yellow);
        outline-offset: 2px;
    }

    #header .header-wrapper.dmtk-mobile-header-fixed {
        -webkit-animation: none !important;
        animation: none !important;
        box-shadow: 0 8px 22px rgba(31, 41, 55, .18);
        left: 0;
        opacity: 1 !important;
        position: fixed !important;
        right: 0;
        top: 0;
        -webkit-transform: translate3d(0, calc(-100% - 8px), 0) !important;
        transform: translate3d(0, calc(-100% - 8px), 0) !important;
        -webkit-transition: -webkit-transform .24s cubic-bezier(.22, .61, .36, 1), box-shadow .2s ease !important;
        transition: transform .24s cubic-bezier(.22, .61, .36, 1), box-shadow .2s ease !important;
        visibility: visible !important;
        width: 100%;
        will-change: transform;
        z-index: 1001;
    }

    #header .header-wrapper.dmtk-mobile-header-fixed.dmtk-mobile-header-visible {
        -webkit-transform: translate3d(0, 0, 0) !important;
        transform: translate3d(0, 0, 0) !important;
    }

    body.admin-bar #header .header-wrapper.dmtk-mobile-header-fixed {
        top: 46px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #header .header-wrapper.dmtk-mobile-header-fixed,
    .header-main .mobile-nav .header-search > a.is-small,
    .header-main .mobile-nav .header-search > a.is-small .icon-search {
        transition: none !important;
    }
}
