/**
 * Theme Name:     K-Tech 1
 * Author:         K-Tech
 * Template:       flatsome
 * Text Domain:	   k-tech
 * Description:    Theme Build by Dai
 * Theme URI:      https://k-tech.net.vn/
 * Author URI:     https://k-tech.net.vn/
 * Version:        20250916
 * License:        2NRJM-B46WR-K6VQR-Y4T3D-QRWPX
 * License URI:    https://k-tech.net.vn/
 */



/*************** ADD CUSTOM CSS HERE.   ***************/
.header .header-bottom .header-nav {
    justify-content: center !important;
    width: 100%;
}

.header .header-bottom .header-nav .menu-item a {
    font-weight: 300;
}


.heading-section-with-icon {
    width: max-content;
}

.heading-section-with-icon .icon-box-img img {
    padding: 0;
}


.menu-section {
    flex-direction: row;
    gap: 20px;
}

.menu-section .menu-item .ux-menu-link__text {
    color: #fff;
}

.single_add_to_cart_button {
    border-radius: 8px;

    @media only screen and (max-width: 768px) {
        width: 100%;
        padding: 10px;
    }
}


.fc-product-slider .swiper-wrapper .swiper-slide {
    height: auto;
}

.header-bottom .header-nav .menu-item a {
    font-weight: 400;
}

.header-bottom .header-nav-main {
    width: 220px;
    position: relative;
    margin-right: 25px;
}

.header-bottom .header-nav-main .bar-nav {
    height: 40px;
    padding: 0 16px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    background-color: transparent;
    color: #fff;

    font-size: 15px;
    font-weight: 600;
    line-height: 50px;
    text-transform: uppercase;
    letter-spacing: 0.2px;

    border-radius: 18px 18px 0 0;
    position: relative;

    transition: all 0.25s ease;
}

.header-bottom .header-nav-main:hover .bar-nav {
    background-color: #fff;
    color: #1f2933;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
}

.header-bottom .header-nav-main .bar-nav img {
    display: inline-block;
    margin-right: 10px;
    vertical-align: middle;
    height: 20px;
}

/* ===============================
   MEGA MENU HEADER - STYLE MỚI
================================ */

/* Khung menu tổng */
.header-bottom .header-nav-main {
    position: relative;
}

/* Hiện menu khi hover */
.header-bottom .header-nav-main:hover .header-nav-main-content,
.header-bottom .header-nav-main .header-nav-main-content.active {
    display: block;
}

/* Khung menu xổ xuống */
.header-bottom .header-nav-main .header-nav-main-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 280px;
    min-height: 520px;
    background: #eef1f5;
    z-index: 999;
    margin: 0;
    border-radius: 0 0 0 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

/* Menu cấp 1 bên trái */
.header-bottom .header-nav-main .header-nav-main-content>ul.main-menu-list {
    width: 100%;
    min-height: 520px;
    margin: 0;
    padding: 0;
    list-style: none;
    background: #eef1f5;
    border-radius: 0 0 0 10px;
    box-shadow: none;
}

/* Item cấp 1 */
.header-bottom .header-nav-main .header-nav-main-content>ul.main-menu-list>li {
    display: block;
    width: 100%;
    margin: 0;
    position: static;
}

/* Dòng danh mục cha */
.header-bottom .header-nav-main .header-nav-main-content>ul.main-menu-list>li>div.main-menu-list-customer {
    height: 50px;
    display: flex;
    align-items: center;
    position: relative;

    padding: 0 34px 0 18px;
    border-left: 3px solid transparent;
    border-bottom: 1px solid #d9dde3;

    background: transparent;
    color: #111;
    transition: all 0.2s ease;
}

/* Hover danh mục cha */
.header-bottom .header-nav-main .header-nav-main-content>ul.main-menu-list>li:hover>div.main-menu-list-customer {
    background: #fff;
    color: var(--fs-color-secondary);
    border-left-color: var(--fs-color-secondary);
}

/* Bỏ margin/padding ul bên trong item */
.header-bottom .header-nav-main .header-nav-main-content>ul.main-menu-list>li>div.main-menu-list-customer ul {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.header-bottom .header-nav-main .header-nav-main-content>ul.main-menu-list>li>div.main-menu-list-customer ul li {
    display: block;
    margin: 0;
}

/* Bỏ dấu phẩy sau item */
.header-bottom .header-nav-main .header-nav-main-content>ul.main-menu-list>li>div.main-menu-list-customer ul li::after {
    display: none;
}

/* Link danh mục cha */
.header-bottom .header-nav-main .header-nav-main-content>ul.main-menu-list>li>div.main-menu-list-customer ul li a {
    display: block;
    width: 100%;
    color: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
}

.header-bottom .header-nav-main .header-nav-main-content>ul.main-menu-list>li:hover>div.main-menu-list-customer ul li a {
    color: var(--fs-color-secondary);
}

/* Icon mũi tên phải */
.header-bottom .header-nav-main .header-nav-main-content>ul.main-menu-list>li>div.main-menu-list-customer .icon-menu {
    position: absolute;
    right: 12px;
    top: 50%;
    width: 13px;
    height: 13px;
    transform: translateY(-50%);
    opacity: 0.65;
    transition: all 0.2s ease;
}

.header-bottom .header-nav-main .header-nav-main-content>ul.main-menu-list>li:hover>div.main-menu-list-customer .icon-menu {
    opacity: 1;
    transform: translateY(-50%) translateX(3px);
}

/* Panel submenu bên phải */
.header-bottom .header-nav-main .header-nav-main-content>ul.main-menu-list>li>div.main-menu-content {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;

    width: 980px;
    min-height: 520px;
    max-height: 520px;

    padding: 22px 24px;
    background: #fff;
    border-radius: 0 10px 10px 0;
    box-shadow: 8px 8px 24px rgba(0, 0, 0, 0.12);

    overflow-y: auto;
    z-index: 1000;
}

/* Hiện panel phải khi hover */
.header-bottom .header-nav-main .header-nav-main-content>ul.main-menu-list>li:hover>div.main-menu-content {
    display: block;
}

/* Scrollbar panel phải */
.header-bottom .header-nav-main .header-nav-main-content>ul.main-menu-list>li>div.main-menu-content::-webkit-scrollbar {
    width: 6px;
}

.header-bottom .header-nav-main .header-nav-main-content>ul.main-menu-list>li>div.main-menu-content::-webkit-scrollbar-thumb {
    background: #c9ced6;
    border-radius: 10px;
}

.header-bottom .header-nav-main .header-nav-main-content>ul.main-menu-list>li>div.main-menu-content::-webkit-scrollbar-track {
    background: #f4f6f8;
}

/* Grid submenu cấp 2 */
.header-bottom .header-nav-main .header-nav-main-content>ul.main-menu-list>li>div.main-menu-content>ul {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px 24px;

    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Item cấp 2 */
.header-bottom .header-nav-main .header-nav-main-content>ul.main-menu-list>li>div.main-menu-content>ul>li {
    display: block;
    float: none;
    width: auto;
    margin: 0;
}

/* Bỏ clear cũ */
.header-bottom .header-nav-main .header-nav-main-content>ul.main-menu-list>li>div.main-menu-content>ul>li:nth-of-type(5n+1) {
    clear: none;
}

/* Tiêu đề cấp 2 */
.header-bottom .header-nav-main .header-nav-main-content>ul.main-menu-list>li>div.main-menu-content>ul>li>p.header_title {
    margin: 0 0 8px;
    padding: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

.header-bottom .header-nav-main .header-nav-main-content>ul.main-menu-list>li>div.main-menu-content>ul>li>p.header_title>a {
    display: inline-block;
    color: #111;
    padding: 0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.header-bottom .header-nav-main .header-nav-main-content>ul.main-menu-list>li>div.main-menu-content>ul>li>p.header_title>a:hover {
    color: var(--fs-color-secondary);
}

/* Danh sách cấp 3 */
.header-bottom .header-nav-main .header-nav-main-content>ul.main-menu-list>li>div.main-menu-content>ul>li>ul {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Item cấp 3 */
.header-bottom .header-nav-main .header-nav-main-content>ul.main-menu-list>li>div.main-menu-content>ul>li>ul>li {
    display: block;
    width: 100%;
    margin: 0 0 6px;
}

/* Cho hiện hết cấp 3, không ẩn từ item thứ 5 */
.header-bottom .header-nav-main .header-nav-main-content>ul.main-menu-list>li>div.main-menu-content>ul>li>ul>li:nth-child(n+5) {
    display: block;
}

/* Link cấp 3 */
.header-bottom .header-nav-main .header-nav-main-content>ul.main-menu-list>li>div.main-menu-content>ul>li>ul>li a {
    display: flex !important;
    align-items: center;
    gap: 6px;

    width: 100%;
    padding: 0;
    margin: 0;

    color: #333;
    font-size: 14px;
    line-height: 1.4;
    text-decoration: none;
    transition: color 0.2s ease;
}

.header-bottom .header-nav-main .header-nav-main-content>ul.main-menu-list>li>div.main-menu-content>ul>li>ul>li a:hover {
    color: var(--primary-color);
}

/* Icon cấp 3 */
.header-bottom .header-nav-main .header-nav-main-content .li-lv-3 a {
    margin-left: 0;
    position: relative;
}

.header-bottom .header-nav-main .header-nav-main-content .li-lv-3 img {
    position: static;
    width: 11px;
    height: 11px;
    opacity: 0.7;
}

.header-bottom .header-nav-main .header-nav-main-content .li-lv-3 span {
    padding-left: 0;
}

/* Responsive */
@media (max-width: 1200px) {
    .header-bottom .header-nav-main .header-nav-main-content>ul.main-menu-list>li>div.main-menu-content {
        width: 760px;
    }

    .header-bottom .header-nav-main .header-nav-main-content>ul.main-menu-list>li>div.main-menu-content>ul {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .header-bottom .header-nav-main .header-nav-main-content {
        position: static;
        width: 100%;
        min-height: auto;
    }

    .header-bottom .header-nav-main .header-nav-main-content>ul.main-menu-list {
        min-height: auto;
    }

    .header-bottom .header-nav-main .header-nav-main-content>ul.main-menu-list>li>div.main-menu-content {
        position: static;
        width: 100%;
        min-height: auto;
        max-height: none;
        border-radius: 0;
        box-shadow: none;
        padding: 15px;
    }

    .header-bottom .header-nav-main .header-nav-main-content>ul.main-menu-list>li>div.main-menu-content>ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.title-none {
    padding: 0;
}

.title-none.noun .section-title .section-title-main {
    text-transform: none
}

.title-none .section-title {
    border: none
}

.title-none .section-title.section-title-center {
    justify-content: center
}

.title-none .section-title b {
    display: none
}

.title-none .section-title .section-title-main {
    border: none;
    margin: 0
}


.sec-footer .ux-menu-link__link {
    color: #fff;
}

.copyright-footer {
    color: var(--primary-color);
}

.header .header-bottom .menu-item a {
    color: #ffffff !important;
}





@media only screen and (max-width: 48em) {
    /*************** ADD MOBILE ONLY CSS HERE  ***************/

    .off-canvas-right .mfp-content,
    .off-canvas-left .mfp-content {
        --drawer-width: 100% !important;
    }

    .nav-slide {
        padding: 0;
    }

    .tab-menu {
        flex-flow: initial;
    }

    .tab-menu .nav {
        gap: 0;
        float: left;
        width: 23%;
        background-color: #fee2e1;
        overflow: auto;
    }

    .tab-menu .nav li:first-child {
        background: #fcb4b5;
    }

    .tab-menu .nav li:nth-child(2) {
        background: #fee2e1;
    }

    .tab-menu .nav li:nth-child(3) {
        background: #ffeed6;
    }

    .tab-menu .nav li:nth-child(4) {
        background: #fff8c4;
    }

    .tab-menu .nav li:nth-child(5) {
        background: #ecfccb;
    }


    .tab-menu .nav .tab {
        padding: 0;
    }

    .tab-menu .nav .tab a {
        padding: 15px 6px !important;
    }


    .tab-menu .nav .tab a span {
        font-size: 13px;
        color: #0a0a0a;
        font-weight: 400;
        line-height: 1.5;
        text-align: center;
    }


    .tab-menu .tab-panels {
        width: 100%;
        padding: 15px 20px;

    }


    .tab-menu .tab-panels .panel .list-menu-mb {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .tab-menu .tab-panels .panel .list-menu-mb * {
        --stack-gap: 0 !important;
    }

    .tab-menu .tab-panels .panel .box {
        border: 1px solid #ddd;
        border-radius: 5px;
        padding: 5px;
    }

    .tab-menu .tab-panels .panel .box .box-text {
        padding: 5px 0 0 0;
    }

    .tab-menu .tab-panels .panel .box .box-text .box-text-inner * {
        font-size: 12px;
    }
}


.home-sale-post .is-divider {
    display: none !important;
}

.home-sale-post .post-title {
    text-align: left;
}

.home-sale-post .flickity-button {
    display: none;
}

.flashsale-products {
    width: 100%;
    border-top: 3px solid var(--primary-color);
    padding: 10px;
    border-radius: 4px;
}

.flashsale_title {
    padding: 0;
    position: relative;
}

.flashsale_title::before {
    position: absolute;
    content: '';
    top: 0;
    bottom: 0;
    left: 23px;
    right: -23px;
    background-color: var(--primary-color);
    -webkit-transform-origin: bottom;
    -moz-transform-origin: bottom;
    -ms-transform-origin: bottom;
    -o-transform-origin: bottom;
    transform-origin: bottom;
    -webkit-transform: skew(23deg);
    -moz-transform: skew(23deg);
    -ms-transform: skew(23deg);
    -o-transform: skew(23deg);
    transform: skew(23deg);
    z-index: 0;
    border-top-right-radius: 5px;
}

.flashsale_title::after {
    position: absolute;
    content: '';
    top: 0;
    bottom: 0;
    left: -23px;
    right: 23px;
    background-color: var(--primary-color);
    -webkit-transform-origin: bottom;
    -moz-transform-origin: bottom;
    -ms-transform-origin: bottom;
    -o-transform-origin: bottom;
    transform-origin: bottom;
    -webkit-transform: skew(-23deg);
    -moz-transform: skew(-23deg);
    -ms-transform: skew(-23deg);
    -o-transform: skew(-23deg);
    transform: skew(-23deg);
    z-index: 0;
    border-top-left-radius: 5px;
}

.flashsale_title>* {
    z-index: 1;
}

.flashsale_title h2 {
    text-transform: uppercase;
    font-weight: 500;
    font-size: 20px;
    color: #fff;
    padding: 10px;
    margin: 0;
}

.home-cat-section {
    border-radius: 4px;
}

.home-cat-section-title {
    padding: 0;
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: 12px;
}

.home-cat-section-title a {
    margin: 0;
    position: relative;
    border: none;
}

.home-cat-section-title a::before {
    position: absolute;
    content: '';
    top: 0;
    bottom: 0;
    left: 23px;
    right: -23px;
    background-color: inherit;
    -webkit-transform-origin: bottom;
    -moz-transform-origin: bottom;
    -ms-transform-origin: bottom;
    -o-transform-origin: bottom;
    transform-origin: bottom;
    -webkit-transform: skew(23deg);
    -moz-transform: skew(23deg);
    -ms-transform: skew(23deg);
    -o-transform: skew(23deg);
    transform: skew(23deg);
    z-index: -0;
}

.home-cat-section-title a>* {
    z-index: 1;
    position: relative;
}

.cat-col-sec {
    padding: 0;
}

.home-cat-menu {
    flex-direction: row;
    gap: 12px;
    padding: 0 10px;
}

.home-cat-menu .home-see-all {
    color: var(--primary-color);
    font-weight: 500;
}

.news-home .post-item:first-child {
    width: 40%;
}

.news-home .post-item:first-child .box-image {
    height: 320px;
}

.news-home .post-item:not(:first-child) {
    width: 60%;
}

.home-hero .gallery-col {
    padding: 0 10px 15px;
}

.product-banner-right .col {
    padding: 10px 0 0;
}

.product-banner-right .col:first-child {
    padding-top: 0;
}

.shop-page-title {
    display: none !important;
}

.meta-col-product .product_meta {
    width: 100%;
    border: 1px solid #d9d9d9;
    margin-top: 20px;
}

.meta-col-product .product_meta>span {
    display: flex;
    border-bottom: 1px solid #d9d9d9;
}

.meta-col-product .product_meta>span:last-child {
    border-bottom: none;
}

.meta-col-product .product_meta>span:nth-child(odd) {
    background: #f3f4f6;
}

.meta-col-product .product_meta>span:nth-child(even) {
    background: #fff;
}

.meta-col-product .product_meta>span {
    font-size: 16px;
    color: #222;
}

.meta-col-product .product_meta>span::before {
    content: attr(data-label);
}

.meta-col-product .product_meta .posted_in {
    padding: 0;
}

.meta-col-product .product_meta .posted_in {
    display: flex;
    padding: 12px;
}

.TextCaptions {
    background-color: #fff !important;
}

@media (max-width: 768px) {
    .wbcslider-main .img-inner.image-cover {
        padding: 100px !important;
    }
}

.home-sec-2 .row-1 .col {
    align-items: center;
    padding: 0 10px;
}

.left-home-cat {
    z-index: 10;
}

.product-small .box-image {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.products {
    background-color: transparent;
    padding: 15px !important;
}


.product-items .col:hover .col-inner,
.products .col:hover .col-inner,
.product-small.col:hover .col-inner {
    transform: scale(1.04);
    border-color: var(--primary-color);
    /* đổi theo màu xanh logo */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 5;
}

.product-items .col,
.products .col,
.product-small .col {
    position: relative;
    z-index: 1;
}

.product-items .col:hover,
.products .col:hover,
.product-small.col:hover {
    z-index: 10;
}

/* Ảnh sản phẩm mượt hơn */
.product-items .box-image img,
.products .box-image img,
.product-small .box-image img {
    transition: transform 0.25s ease;
}

/* Hover zoom nhẹ ảnh bên trong */
.product-items .col:hover .box-image img,
.products .col:hover .box-image img,
.product-small.col:hover .box-image img {
    transform: scale(1.06);
}

/* Đổi màu tên sản phẩm theo màu xanh logo */
.product-items .product-title a,
.products .product-title a,
.product-small .product-title a {
    color: var(--primary-color);
    font-weight: 600;
    transition: color 0.2s ease;
}

/* Hover tên sản phẩm */
.product-items .product-title a:hover,
.products .product-title a:hover,
.product-small .product-title a:hover {
    color: var(--primary-color);
}

/* Ẩn tìm kiếm trang */
.post-type-archive-product .row.large-columns-3.medium-columns-3.small-columns-2.slider.row-slider.slider-nav-reveal.slider-nav-push.flickity-enabled {
    display: none;
}

.woocommerce .products .col .col-inner,
.product-items .col .col-inner,
.product-small.col .col-inner {
    height: 100%;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: all 0.25s ease;
}

.products .box-text,
.product-small .box-text {
    padding-left: 10px;
    padding-right: 10px;
    text-align: center;
}

.TextCaptions .item.is-nav-selected::after {
    background-color: var(--primary-color) !important;
}

.TextCaptions .item {
    height: 50px !important;
    font-size: 16px !important;
}

.post-type-archive-product h4.uppercase {
    display: none;
}

.bg-white {
    background-color: #fff;
    padding: 10px;
    border-radius: 4px;
}

.wpcf7-spinner {
    display: none !important;
}

.wpcf7-response-output {
    display: none !important;
}

.wpcf7-submit {
    padding: 8px 28px !important;
    line-height: normal !important;
    border: 1px solid var(--primary-color) !important;
    text-transform: uppercase !important;
    font-size: 14px !important;
    text-align: center !important;
    font-weight: 400 !important;
    font-style: normal;
    background-color: var(--primary-color) !important;
    color: #fff !important;
    border-radius: 4px !important;
}

.wpcf7-submit:hover {
    color: #fff !important;
    background-color: #0d6b42 !important;
    border-color: #0d6b42 !important;
    box-shadow: none !important;
    outline: none !important;
}

.ux-relay__result-count {
    display: none !important;
}

button.ux-relay__button.ux-relay__load-more-button.button.primary.mb-0 {
    border-radius: 50px;
}

.home-cat-col {
    background-color: #fff;
    margin-bottom: 16px;
    padding: 12px;
    border-radius: 6px;
}

.home-service-title h1 {
    position: relative;
    margin-bottom: 30px;
}

.home-service-title h1::before {
    position: absolute;
    top: 120%;
    content: "";
    width: 200px;
    height: 2px;
    background-color: var(--primary-color);
    left: 50%;
    transform: translateX(-50%);
}

h1.product-title.product_title.entry-title {
    color: var(--primary-color);
}