@charset "utf-8";

/* ==========================================================================
   Option 1: Responsive Overrides on Existing Design
   Desktop (> 1200px) remains unchanged; adapts cleanly <= 1200px down to 320px
   ========================================================================== */

/* Base non-intrusive helpers */
#kmt_menu_toggle {
    display: none;
}

.kmt_table_wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.content_article iframe,
.wrap_details_right iframe,
#wrap_add iframe {
    max-width: 100% !important;
}

ul.list_logo,
ul.list_logo li,
#wrap_product_cl ul,
#wrap_product_cl ul li,
.list_pd,
.list_pd li,
.list_news,
.list_news li,
#wrap_menutop ul,
#wrap_menutop ul li {
    list-style: none !important;
    list-style-type: none !important;
}

#wrap_content_right {}

.wrap_block_pcl {
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
}

.wrap_img_pclr {
    width: 100%;
    height: auto;
    display: block;
    box-sizing: border-box;
}

.wrap_img_pclr img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ==========================================================================
   <= 1200px: Fluid Shell, Tablet Landscape & Small Laptops
   ========================================================================== */
@media (max-width: 1200px) {
    body {
        min-width: 0 !important;
        overflow-x: hidden;
    }

    #wrap_all,
    #wrap_block_1,
    #wrap_block_2,
    #wrap_block_3,
    #wrap_block_4,
    #wrap_content {
        width: 100% !important;
        max-width: 1200px;
        box-sizing: border-box;
    }

    #wrap_all {
        display: block;
    }

    #wrap_block_2 {
        display: block;
    }

    /* Header */
    #wrap_block_1 {
        height: auto;
        overflow: hidden;
    }

    #wrap_name {
        width: 37.5%;
        padding-left: 12px;
        box-sizing: border-box;
    }

    #wrap_logo {
        width: 25%;
        box-sizing: border-box;
    }

    #wrap_logo img {
        max-width: 100%;
        height: auto;
    }

    #wrap_support {
        width: 37.5%;
        padding-right: 12px;
        box-sizing: border-box;
    }

    /* Menu Bar */
    #wrap_menutop {
        width: 100% !important;
        height: auto !important;
        min-height: 33px;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        box-sizing: border-box;
    }

    #wrap_menutop>ul {
        width: auto !important;
        height: auto !important;
        float: none !important;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }

    #wrap_menutop>ul>li {
        float: none !important;
    }

    #wrap_menutop>ul>li>a {
        padding: 0 14px;
        display: block;
    }

    #wrap_search_lang {
        width: auto !important;
        float: none !important;
        display: flex;
        align-items: center;
        padding-right: 4px;
    }

    #wrap_search {
        width: auto !important;
        float: none !important;
    }

    #wrap_search form {
        display: flex;
        align-items: center;
    }

    #wrap_search input:nth-child(1) {
        width: 180px;
        float: none;
        margin-top: 0;
        box-sizing: border-box;
    }

    #wrap_search input:nth-child(2) {
        float: none;
        margin-top: 0;
    }

    #wrap_lang {
        width: 65px;
        float: none;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
    }

    #wrap_lang img {
        margin-top: 0;
    }

    /* Homepage Nivo Slider */
    #wrap_slide,
    #wrap_slide .slider-wrapper,
    #wrap_slide .nivoSlider {
        width: 100% !important;
        height: auto !important;
    }

    #wrap_slide .nivoSlider img {
        height: auto !important;
    }

    #wrap_slide .nivoSlider>img,
    #wrap_slide .nivoSlider>a img,
    #wrap_slide .nivoSlider .nivo-main-image {
        width: 100% !important;
        height: auto !important;
    }

    #wrap_slide .theme-default a.nivo-prevNav,
    #wrap_slide .theme-default a.nivo-nextNav {
        top: 50% !important;
        margin-top: -15px;
    }

    /* Homepage 3 Category Columns */
    #wrap_product_cl,
    #wrap_product_cl ul {
        width: 100% !important;
        box-sizing: border-box;
    }

    #wrap_product_cl ul li {
        width: 33.333% !important;
        box-sizing: border-box;
        padding: 0 12px 20px;
    }

    .wrap_all_cl {
        width: 100%;
        margin: 0px;
        height: auto;
    }

    .wrap_img_pcl img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Inner 2-Column Layout */
    #wrap_content_left {
        width: calc(100% - 250px) !important;
        height: auto !important;
        min-height: 0 !important;
        box-sizing: border-box;
        padding: 10px 15px !important;
    }

    #wrap_content_right {
        width: 245px !important;
        height: auto !important;
        box-sizing: border-box;
        padding: 10px 8px;
    }

    /* Inner Wrappers */
    .wrap_block_scroll,
    .kmt_pd,
    .kmt_bt_hover_pd,
    .list_pd,
    .list_news,
    #wrap_contact,
    .wrap_details_produce,
    #content_1,
    .content {
        width: 100% !important;
        box-sizing: border-box;
    }

    .content_article [style*="width"] {
        max-width: 100% !important;
    }

    /* News 2-Column Fluid */
    .list_news li {
        width: 50%;
        box-sizing: border-box;
        padding-right: 15px;
    }

    .wrap_content_news {
        width: calc(100% - 125px);
    }

    /* Contact 2-Column Fluid */
    #wrap_contact_left {
        width: 52%;
        margin-right: 3%;
        box-sizing: border-box;
    }

    #wrap_contact_right {
        width: 45%;
        box-sizing: border-box;
    }

    #wrap_contact_right iframe {
        width: 100% !important;
    }

    #input_form_ta {
        width: calc(100% - 115px);
        box-sizing: border-box;
    }

    #input_form_ta li input,
    #input_form_ta li textarea {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    #input_form_ta li input[type="submit"],
    #input_form_ta li input[type="reset"] {
        width: auto !important;
        min-width: 78px;
        height: 28px !important;
        padding: 0 12px;
        cursor: pointer;
    }

    /* Product Details Fluid */
    .wrap_details_left {
        width: 38%;
        margin-right: 2%;
        box-sizing: border-box;
    }

    .wrap_img_detail {
        width: 100%;
        height: auto;
        display: block;
        box-sizing: border-box;
    }

    .wrap_img_detail img {
        max-width: 100%;
        height: auto;
    }

    .wrap_details_right {
        width: 60% !important;
        box-sizing: border-box;
    }

    /* Partner Logo Bar */
    #wrap_block_3 {
        height: auto !important;
        padding: 8px 0;
        background-size: 100% auto;
    }

    .kmt_adv {
        width: 100% !important;
        padding: 0 36px !important;
        box-sizing: border-box;
    }

    #adv {
        width: 100% !important;
    }

    .kmt_bt_hover {
        width: 100% !important;
        left: 0;
        right: 0;
        pointer-events: none;
    }

    .so_pre_hor_picactive,
    .so_next_hor_picactive {
        pointer-events: auto;
    }

    /* Footer */
    #wrap_block_4 {
        height: auto !important;
        line-height: 1.8;
        padding: 8px 15px;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
    }

    #wrap_block_4 div {
        width: auto !important;
        float: none !important;
    }
}

/* ==========================================================================
   <= 1024px: Disable mCustomScrollbar & SoSlider; Use Native Touch Carousels
   ========================================================================== */
@media (max-width: 1024px) {

    #content_1,
    .content,
    .mCustomScrollBox,
    .mCSB_container {
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        margin-right: 0 !important;
        top: 0 !important;
    }

    .mCSB_scrollTools {
        display: none !important;
    }

    /* Native touch horizontal strips */
    #adv,
    [id^="kmt_pd_"] {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
    }

    ul.list_logo,
    [id^="kmt_pd_"] ul.list_pd {
        display: flex !important;
        flex-wrap: nowrap !important;
        width: max-content !important;
        left: 0 !important;
        position: static !important;
    }

    ul.list_logo li {
        float: none !important;
        flex: 0 0 140px;
    }

    [id^="kmt_pd_"] ul.list_pd li {
        flex: 0 0 210px;
        margin: 5px 15px 10px 0 !important;
        float: none !important;
    }

    .kmt_bt_hover_pd {
        pointer-events: none;
        min-height: 0;
    }

    .so_pre_hor_picactive_kmt,
    .so_next_hor_picactive_kmt {
        pointer-events: auto;
    }

    /* Product Grid Pages */
    .list_pd.kmt_pdo {
        display: flex !important;
        flex-wrap: wrap;
    }

    .list_pd.kmt_pdo li {
        width: calc(33.333% - 16px) !important;
        margin: 8px !important;
        float: none !important;
        min-height: 0;
    }

    .list_pd.kmt_pdo .wrap_img_pd {
        width: 100% !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }

    .list_pd.kmt_pdo .wrap_img_pd img {
        max-width: 100%;
        max-height: 100%;
        width: auto !important;
        height: auto !important;
    }
}

/* ==========================================================================
   <= 992px: Mobile Hamburger Menu & Single-Column Main + Sidebar Below
   ========================================================================== */
@media (max-width: 992px) {

    #wrap_block_1 {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
    }

    #wrap_logo {
        order: 1;
        width: auto !important;
        flex: 0 0 auto;
        float: none !important;
        text-align: left !important;
        padding: 10px 10px 6px 12px !important;
        margin-bottom: 0 !important;
    }

    #wrap_logo img {
        max-height: 64px;
        width: auto;
        display: block;
    }

    #wrap_name {
        order: 2;
        width: auto !important;
        flex: 0 1 auto;
        max-width: calc(100% - 90px);
        min-width: 0;
        float: none !important;
        text-align: left !important;
        padding: 10px 12px 6px 4px !important;
        margin-bottom: 0 !important;
    }

    #wrap_support {
        order: 3;
        width: 100% !important;
        float: none !important;
        text-align: center !important;
        padding: 4px 12px 10px !important;
        margin-bottom: 0 !important;
    }

    #wrap_menutop {
        order: 4;
    }

    /* Hamburger Menu Button */
    #kmt_menu_toggle {
        display: inline-flex !important;
        align-items: center;
        gap: 8px;
        background: transparent;
        border: 0;
        color: #ffffff;
        font-size: 13px;
        font-weight: bold;
        padding: 7px 12px;
        cursor: pointer;
        line-height: 1.2;
    }

    .kmt_burger {
        display: inline-flex;
        flex-direction: column;
        gap: 4px;
        width: 18px;
    }

    .kmt_burger span {
        display: block;
        width: 100%;
        height: 2px;
        background: #ffffff;
        border-radius: 1px;
    }

    #wrap_menutop>ul {
        display: none !important;
        order: 3;
        width: 100% !important;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }

    #wrap_menutop>ul.kmt_menu_open {
        display: block !important;
    }

    #wrap_menutop>ul>li {
        width: 100%;
        height: auto !important;
        line-height: 36px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    #wrap_menutop>ul>li:last-child {
        border-bottom: 0;
    }

    #wrap_menutop>ul>li>a {
        padding: 0 15px;
    }

    .line_doc {
        display: none !important;
    }

    /* Stack Main Content & Right Sidebar */
    #wrap_content_left {
        width: 100% !important;
        float: none !important;
        border-right: 0 !important;
        margin: 0 !important;
    }

    #wrap_content_right {
        width: 100% !important;
        float: none !important;
        min-height: 0;
        border-top: 1px solid #e0d6bc;
        padding: 15px !important;
        margin: 0 !important;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .wrap_block_pcl {
        width: calc(33.333% - 16px);
        margin: 0 !important;
    }

    .wrap_img_pclr {
        width: 100%;
        height: auto;
        display: block;
    }

    .wrap_img_pclr img {
        max-width: 100%;
        height: auto;
    }

    /* Stack Contact Columns */
    #wrap_contact_left,
    #wrap_contact_right {
        width: 100% !important;
        float: none !important;
        margin-right: 0 !important;
    }

    #wrap_contact_right {
        margin-top: 20px;
    }
}

/* ==========================================================================
   <= 768px: Tablet Portrait & Mobile Landscape
   ========================================================================== */
@media (max-width: 768px) {
    #wrap_name h1 p:nth-child(1) {
        font-size: 18px;
    }

    #wrap_name h1 p:nth-child(2) {
        font-size: 30px;
    }

    #wrap_product_cl ul li {
        width: 100% !important;
        float: none !important;
    }

    .list_news li {
        width: 100% !important;
        float: none !important;
        padding-right: 0 !important;
        min-height: 0 !important;
        padding-bottom: 14px;
        margin-bottom: 14px;
        border-bottom: 1px solid #e7dcb9;
    }

    .wrap_details_left,
    .wrap_details_right {
        width: 100% !important;
        float: none !important;
        margin-right: 0 !important;
    }

    .wrap_details_right {
        margin-top: 24px;
    }

    .list_pd.kmt_pdo li {
        width: calc(50% - 14px) !important;
        margin: 7px !important;
    }

    .wrap_block_pcl {
        width: 100%;
        max-width: 300px;
    }

    #wrap_block_4 {
        flex-direction: column;
        text-align: center;
        gap: 6px;
        padding: 12px 10px;
    }

    #wrap_block_4 div:nth-child(2),
    #wrap_block_4 div:nth-child(3) {
        text-align: center !important;
    }
}

/* ==========================================================================
   <= 560px: Small Smartphones
   ========================================================================== */
@media (max-width: 560px) {
    #wrap_logo img {
        max-height: 54px;
    }

    #wrap_name h1 p:nth-child(1) {
        font-size: 16px;
    }

    #wrap_name h1 p:nth-child(2) {
        font-size: 26px;
    }

    #wrap_search_lang {
        width: 100% !important;
        justify-content: space-between;
        padding: 6px 8px;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        box-sizing: border-box;
    }

    #wrap_search {
        flex: 1;
        margin-right: 8px;
    }

    #wrap_search form {
        display: flex;
        width: 100%;
    }

    #wrap_search input:nth-child(1) {
        flex: 1;
        width: auto !important;
        min-width: 0;
        float: none;
        margin-top: 0;
    }

    #wrap_search input:nth-child(2) {
        float: none;
        margin-top: 0;
        flex-shrink: 0;
    }

    #wrap_lang {
        width: auto;
        float: none;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    #wrap_lang img {
        margin-top: 0;
    }

    #title_form_ta {
        display: none !important;
    }

    #input_form_ta {
        width: 100% !important;
        float: none !important;
    }

    #input_form_ta li {
        padding-left: 0 !important;
    }

    .wrap_img_news {
        width: 90px;
        height: 74px;
    }

    .wrap_img_news img {
        width: 90px;
        height: 74px;
    }

    .wrap_content_news {
        width: calc(100% - 106px);
    }

    .list_pd.kmt_pdo li {
        width: 100% !important;
        margin: 0 0 14px 0 !important;
    }

    #wrap_logo {
        padding: 3px !important;
    }

    #wrap_name h1 {
        line-height: 1;
    }

    #wrap_support p {
        font-size: 10px;
    }
}

/* ==========================================================================
   Floating Zalo & Hotline Circular Buttons (Bottom-Right)
   ========================================================================== */
.kmt_float_contact {
    position: fixed;
    right: 18px;
    bottom: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kmt_float_btn {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

.kmt_float_btn::before {
    content: "";
    position: absolute;
    top: -4px;
    right: -4px;
    bottom: -4px;
    left: -4px;
    border-radius: 50%;
    opacity: 0.45;
    z-index: -1;
    animation: kmt_pulse_ring 1.8s infinite ease-out;
}

.kmt_float_zalo {
    background-color: #0068ff;
}

.kmt_float_zalo::before {
    background-color: #0068ff;
}

.kmt_float_zalo_text {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.3px;
    color: #ffffff;
}

.kmt_float_hotline {
    background-color: #f04e23;
}

.kmt_float_hotline::before {
    background-color: #f04e23;
}

.kmt_float_btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.34);
}

.kmt_float_tooltip {
    position: absolute;
    right: 62px;
    top: 50%;
    transform: translateY(-50%) translateX(6px);
    background-color: #320000;
    color: #ffffff;
    font-size: 13px;
    font-weight: bold;
    white-space: nowrap;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid #f04e23;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.kmt_float_btn:hover .kmt_float_tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

@keyframes kmt_pulse_ring {
    0% {
        transform: scale(0.95);
        opacity: 0.55;
    }

    70% {
        transform: scale(1.28);
        opacity: 0;
    }

    100% {
        transform: scale(1.28);
        opacity: 0;
    }
}

@media (max-width: 560px) {
    .kmt_float_contact {
        right: 12px;
        bottom: 14px;
        gap: 10px;
    }

    .kmt_float_btn {
        width: 46px;
        height: 46px;
    }

    .kmt_float_btn svg {
        width: 21px;
        height: 21px;
    }

    .kmt_float_zalo_text {
        font-size: 12px;
    }

    .kmt_float_tooltip {
        display: none;
    }
}