/**
 * Theme Name:     K-Tech
 * 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:        2025
 * License:        2NRJM-B46WR-K6VQR-Y4T3D-QRWPX
 * License URI:    https://k-tech.net.vn/
 */



 /*************** ADD CUSTOM CSS HERE.   ***************/
/* ==========================================================================
   1. THIẾT LẬP TỔNG THỂ & TOÀN TRANG
   ========================================================================== */
#main {
    background-color: #f4f3ef;
}

.woocommerce.woocommerce-page {
    padding: 0px;
}

.page .entry-header,
.page h1.entry-title {
    display: none;
}

.top-divider {
    border-top: 1px solid #999999;
}

.widget .widget-title {
    background-color: #f4f3ef;
}

#top-link {
    bottom: 60px;
}

/* ============================================================
   CÁCH TOP CHUẨN TỪNG TRANG
   ============================================================ */

/* 1. Trang Cửa hàng & Danh mục sản phẩm (Đẩy thanh lọc/breadcrumb) */
html body.woocommerce-shop .shop-page-title.page-title,
html body.tax-product_cat .shop-page-title.page-title {
    padding-top: 100px;
}

/* 2. Trang Chi tiết sản phẩm */
html body.single-product #main .shop-container {
    padding-top: 100px;
}

/* 3. Trang Tin tức (Danh sách bài viết - đẩy 120px cho thoáng) */
html body #content.blog-wrapper.blog-archive {
    padding-top: 120px;
}

/* 4. Trang Đọc 1 bài viết chi tiết */
html body.single-post #main {
    padding-top: 100px;
}

/* 5. Trang Dịch vụ / Giới thiệu / Trang con thường */
html body.page:not(.home) #main .page-wrapper:not(.blog-wrapper) {
    padding-top: 100px;
}

/* ==========================================================================
   2. HEADER & MENU (DESKTOP & MOBILE)
   ========================================================================== */
@media (max-width: 849px) {
    #header #masthead,
    #header #masthead .header-inner,
    #header.stuck #masthead,
    #masthead.stuck {
        height: 70px;
        min-height: 70px;
    }

    #masthead .header-inner #logo {
        justify-content: center; /* Giữ logo nằm giữa ngang sau khi thu nhỏ */
    }

    #header #logo img,
    #header.stuck #logo img {
        max-height: 46px; /* Chỉnh to/nhỏ logo mobile tại đây (42px - 52px là vừa đẹp) */
        width: auto;
    }
}

body .mobile-nav li.nav-icon > a:is(:link, :visited, :hover, :focus, :active) {
    text-decoration: none;
    box-shadow: none;
    outline: none;
    border-bottom: none;
}

body #main-menu li a:is(:link, :visited, :hover, :focus, :active) {
    text-decoration: none;
    box-shadow: none;
}

body .mobile-nav li.nav-icon > a::after,
body .mobile-nav li.nav-icon > a::before,
body #main-menu li a::after,
body #main-menu li a::before {
    content: none;
    display: none;
}

body .header-nav-main a:is(:hover, :focus, :active),
body .header-nav-main .nav-dropdown li a:is(:hover, :focus, :active) {
    text-decoration: none;
    box-shadow: none;
    border-bottom: none;
}

body .header-nav-main a::before,
body .header-nav-main a::after {
    content: none;
    display: none;
}

.mobile-nav .header-search > a,
.mobile-nav .header-search > a:is(:hover, :focus, :active) {
    text-decoration: none;
    border-bottom: none;
    box-shadow: none;
    outline: none;
}

.mobile-nav .header-search > a::after {
    display: none;
    content: none;
}

.header-nav-main.nav > li > a {
    position: relative;
    padding-right: 12px;
}

.header-nav-main.nav > li > a > i.icon-angle-down {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
}

.header-wrapper.stuck {
	box-shadow: none;
}

header#header {
    position: absolute;
}

#masthead .header-inner {
    min-height: 75px;
    width: calc(100% - 40px);
    max-width: 1240px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    backdrop-filter: blur(0px) !important;
    box-shadow: rgba(0, 0, 0, 0.4) 0px 10px 30px !important;
    z-index: 9999 !important;
    pointer-events: auto !important;
    border-radius: 16px;
    padding: 10px 16px;
    margin: 0px auto;
    transition: 0.3s;
    background: rgba(255, 255, 255, 0.28) !important;
    border-width: 1px !important;
    border-style: solid !important;
    border-color: rgba(255, 255, 255, 0.45) !important;
    border-image: none !important;
}

.stuck #masthead .header-inner, 
.stuck .header-inner {
    background: #f4f3ef !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important; 
}
.home #content {
	padding-top: 0px;
}

/* Căn giữa logo */
#masthead .header-inner #logo {
    display: flex;
    align-items: center;
}

#masthead .header-inner #logo a {
    height: 100%;
    line-height: 1;
    display: flex;
    align-items: center;
}

/* Canh giữa cụm menu và ô tìm kiếm bên phải */
#masthead .header-inner .header-nav {
    display: flex;
    align-items: center;
}

#masthead .header-inner .header-nav > li,
#masthead .header-inner .header-search-form form {
    margin-bottom: 0;
}

#masthead .header-inner .header-nav-main .header-search-form input.search-field::placeholder {
    color: #444444;
    opacity: 1;
}

#masthead .mobile-nav > li > a {
    color: black;
}

/* Banner home */
@media (max-width: 549px) {
    /* Header mobile gọn 70px, nền kem chữ tối để nổi rõ trên nền trắng */
    #header #masthead,
    #header #masthead .header-inner,
    #header.stuck #masthead,
    #masthead.stuck {
        height: 70px;
        min-height: 70px;
    }

    body #masthead .header-inner {
        background: #f4f3ef !important;
        border-color: rgba(0, 0, 0, 0.08) !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
    }

    body #masthead .mobile-nav > li > a {
        color: #333333;
    }

    #masthead .header-inner #logo {
        justify-content: center;
    }

    #header #logo img,
    #header.stuck #logo img {
        max-height: 46px;
        width: auto;
    }

    /* Đẩy banner xuống dưới header (95px) để không bị đè chữ */
    body.home #content {
        padding-top: 95px;
        overflow-x: hidden;
    }

    /* Bung banner 100% chiều ngang và giữ nguyên tỉ lệ gốc 1024:434 */
    body.home #content .slider-wrapper {
        width: 100vw;
        margin-left: calc(50% - 50vw);
    }

    body.home #content .banner {
        height: auto;
        padding-top: 0;
        aspect-ratio: 1024 / 434;
    }
}
/* ==========================================================================
   3. DANH SÁCH SẢN PHẨM (CARD SẢN PHẨM & HOVER)
   ========================================================================== */
html body .shop-page-title.page-title {
    background-color: #f4f3ef;
    background-image: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05); 
}

.product-small .product-small.box .box-image {
    background: transparent;
    padding: 0px;
}

.row.has-shadow .product-small.col .col-inner,
.product-small.col .col-inner {
    box-shadow: none;
    background-color: transparent;
    transition: transform 0.3s ease;
}

.product-small.col .product-small.box {
    background-color: transparent;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.product-small.col:hover .col-inner {
    transform: translateY(-5px);
}

.product-small.col:hover .product-small.box {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.16);
}

.product-small.col .product-small.box .box-text {
    padding: 12px 10px;
}

.product-small :is(.product-title a, .add-to-cart-button a),
.product-small :is(.product-title a, .add-to-cart-button a):is(:hover, :active, :focus) {
    text-decoration: none;
}


/* ==========================================================================
   4. TRANG CHI TIẾT SẢN PHẨM & BIẾN THỂ KIỂU SHOPEE
   ========================================================================== */
.variations .ux-swatches .ux-swatch {
    display: inline-flex;
    align-items: center;
    background-color: #f8f9fa;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    box-shadow: none;
    cursor: pointer;
    margin: 0 8px 8px 0;
    transition: all 0.2s ease;
}

.variations .ux-swatches .ux-swatch.tooltip {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.variations .ux-swatches .ux-swatch.ux-swatch--image {
    width: auto;
    height: auto;
    padding: 4px 12px 4px 4px;
}

.variations .ux-swatches .ux-swatch.ux-swatch--image img {
    width: 38px;
    height: 38px;
    object-fit: cover;
    border-radius: 3px;
    display: block;
}

.variations .ux-swatches .ux-swatch.ux-swatch--image .ux-swatch__text {
    display: inline-block;
    margin-left: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #111111;
    white-space: nowrap;
}

.variations .ux-swatches .ux-swatch:not(.ux-swatch--image) {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #111111;
}

.variations .ux-swatches .ux-swatch:hover {
    border-color: #0056b3;
    background-color: #ffffff;
}

.variations .ux-swatches .ux-swatch.selected {
    border: 2px solid #0056b3;
    background-color: #f0f7ff;
}

.variations .ux-swatches .ux-swatch.selected .ux-swatch__text,
.variations .ux-swatches .ux-swatch.selected:not(.ux-swatch--image) {
    color: #0056b3;
    font-weight: 700;
}

.tooltipster-base,
.tooltipster-box,
.ux-swatches .tooltip,
.tippy-box,
.woocommerce-variation-price {
    display: none;
} 

table.variations .label {
    vertical-align: top;
}

.variations_form.cart {
    margin-bottom: 0px;
}

.image-tools a.button.product-video-popup {
    display: none;
}

.woocommerce-product-gallery--with-images .image-tools {
    top: 15px;
    right: 15px;
    bottom: auto;
    left: auto;
    position: absolute;
}

@media (max-width: 768px) {
    .info-product > .col-inner {
        padding: 0 !important;
        margin: 0 !important;
    }

    .info-product .btn-lien-he {
        display: block;
        width: 100%;
        margin-top: 15px;
        margin-bottom: 15px;
        text-align: center;
        box-sizing: border-box;
    }
}

@media (max-width: 991px) {
    .sec-single-product .tabs.wc-tabs.product-tabs {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        gap: 10px; 
        padding-inline: 15px;
        padding-block: 6px;
        scrollbar-width: none;
    }

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

    .sec-single-product .tabs.wc-tabs.product-tabs > li {
        width: auto;
        flex: 0 0 auto;
        margin: 0;
    }

    .sec-single-product .tabs.wc-tabs.product-tabs > li > a {
        display: block;
        width: auto;
        white-space: nowrap;
        padding: 8px 18px;
    }

    .sec-single-product .variations {
        display: block;
        width: 100%;
    }

    .sec-single-product .variations tbody {
        display: block;
    }

    .sec-single-product .variations tr {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 16px;
    }

    .sec-single-product .variations th.label,
    .sec-single-product .variations td.value {
        display: block;
        width: 100%;
        padding: 0;
        text-align: left;
    }

    .sec-single-product .variations .ux-swatches {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
}


/* MINI CART */

/* .cart-item.has-dropdown .nav-dropdown {
    width: 315px !important;
    min-width: 315px !important;
    margin-left: -153px !important;
    overflow-x: hidden;
}

.cart-item.has-dropdown:hover > .nav-dropdown,
.cart-item.has-dropdown.current-dropdown > .nav-dropdown {
    left: 50% !important;
    right: auto !important;
}

.cart-item .woocommerce-mini-cart-item {
    position: relative;
    padding-right: 28px;
}

.cart-item .woocommerce-mini-cart-item a.remove {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
}

.cart-item .woocommerce-mini-cart__total {
    white-space: nowrap;
} */

/* ==========================================================
   TAB TIN TỨC: CARD
   ========================================================== */

/* 1. XÓA TẤT CẢ GẠCH CHÂN Ở MỌI THẺ A TRONG TAB */
body .tab-tin-tuc a,
body .tab-tin-tuc a:hover,
body .tab-tin-tuc a:focus {
    text-decoration: none;
    box-shadow: none;
    border-bottom: none;
}
body .tab-tin-tuc a::before,
body .tab-tin-tuc a::after {
    content: none;
    display: none;
}

/* 2. KHUNG CARD BÀI VIẾT (BÓNG NHẸ 2-3PX & BO GÓC) */
body .tab-tin-tuc .post-item .col-inner {
    box-shadow: none;
    background-color: transparent;
    transition: transform 0.3s ease;
}

body .tab-tin-tuc .post-item .box-blog-post {
    background-color: transparent;
    border-radius: 8px;
    border: 1px solid #edf0f3;
    overflow: hidden;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.05); /* Bóng siêu nhẹ 2-3px */
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Khi hover: Nhấc thẻ lên 4px & bóng nhỉnh nhẹ 3-6px */
body .tab-tin-tuc .post-item:hover .col-inner {
    transform: translateY(-4px);
}

body .tab-tin-tuc .post-item:hover .box-blog-post {
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.09);
    border-color: #dbe2e8;
}

/* Đệm chữ và khóa tiêu đề đều 2 dòng */
body .tab-tin-tuc .box-blog-post .box-text {
    padding: 14px 12px;
}

body .tab-tin-tuc .box-blog-post .post-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
}

body .tab-tin-tuc .box-blog-post .post-title {
    text-align: center;
}

/* ==========================================================
   3. NÚT "XEM TẤT CẢ" (GIỮ NGUYÊN VỊ TRÍ, ĐỔI MÀU HOVER)
   ========================================================== */
/* Trạng thái bình thường: Nền đen - Chữ trắng */
body .tab-tin-tuc .tab-panels > div > a.button.primary {
    background-color: #111111;
    color: #ffffff;
    border: 1px solid #111111;
    border-radius: 6px;
    transition: all 0.25s ease;
}

/* Khi Hover: Đảo ngược thành Nền trắng - Chữ đen - Viền đen */
body .tab-tin-tuc .tab-panels > div > a.button.primary:hover {
    background-color: #ffffff;
    color: #111111;
    border-color: #111111;
}

/* Đảm bảo chữ bên trong thẻ span không bị lỗi màu */
body .tab-tin-tuc .tab-panels > div > a.button.primary:hover span {
    color: #111111;
}

/* Mobile: bỏ border, không có khung */
.contact-section {
  border: none;
  border-radius: 0;
  background-color: transparent;
  padding: 0;
  margin: 0;
  box-shadow: none;
  overflow: visible;
  padding-top: 10px;
}

/* Từ 550px trở lên: mới có khung viền */
@media (min-width: 550px) {
  .contact-section {
    border: 2px solid #ddd;
    border-radius: 12px;
    background-color: #ffffff;
    padding: 30px;
    margin: 20px auto;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    overflow: hidden;
    padding-top: 30px;
  }
}

/* Nút submit: áp dụng chung cả 2 (hoặc chỉ trong media nếu muốn) */
.contact-section .wpcf7-submit {
  background-color: #d32f2f;
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.contact-section .wpcf7-submit:hover {
  background-color: #b71c1c;
}


/* card tin tức */
.blog-wrapper .box-blog-post {
  background-color: #f4f3ef !important;
}

.header .nav .sub-menu.nav-dropdown,
.header .nav-dropdown-has-border .nav-dropdown {
    border: 2px solid #000;
}

/* trang dịch vụ */
body .page-wrapper #content {
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    padding: 30px 40px;
    margin-top: 20px;
    margin-bottom: 40px;
    border-radius: 4px;
}

body .page-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

body .page-wrapper .entry-header h1.entry-title {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #111;
}

body .page-wrapper .entry-content {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

body .page-wrapper .entry-header .is-divider {
    display: block;
    width: 30px;
    margin: 15px 0 25px 0;
    border-top: 2px solid #111;
}

@media (min-width: 1024px) {
    body.home .page-wrapper {
        max-width: calc(100% - 60px);
        margin: 0 auto;
    }
}

/* ========================================================
   FLATSOME CATEGORIES - ANIME PILL STYLE
   ======================================================== */

/* 1. Xóa gạch chân trên toàn bộ link danh mục */
.widget_product_categories a,
.widget_product_categories a:hover,
.widget_product_categories a:focus {
    text-decoration: none;
}

/* 2. Tiêu đề danh mục */
.widget_product_categories .widget-title {
    background: linear-gradient(135deg, #ff4b2b, #ff416c); /* Màu chủ đạo của bạn */
    color: #ffffff;
    text-align: center;
    padding: 12px 10px;
    border-radius: 8px 8px 0 0;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

/* 3. Khung bọc danh mục */
.widget_product_categories {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    padding-bottom: 8px;
}

.widget_product_categories ul.product-categories {
    padding: 0 10px;
    margin: 0;
    list-style: none;
}

/* 4. Thẻ danh mục cấp 1 */
.widget_product_categories ul.product-categories > li.cat-item {
    position: relative; /* Điểm tựa để cố định mũi tên vào trong thẻ */
    margin-bottom: 8px;
    border: none;
}

.widget_product_categories ul.product-categories > li.cat-item > a {
    display: block;
    background: #f1f5f9;
    color: #334155;
    padding: 10px 42px 10px 16px; /* Chừa 42px bên phải để chừa chỗ cho mũi tên */
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid #e2e8f0;
    transition: all 0.25s ease;
}

/* Hover thẻ cấp 1 */
.widget_product_categories ul.product-categories > li.cat-item:hover > a,
.widget_product_categories ul.product-categories > li.current-cat > a {
    background: #ff4757;
    color: #ffffff;
    border-color: #ff4757;
    transform: translateX(3px);
    box-shadow: 0 4px 10px rgba(255, 71, 87, 0.25);
}

/* 5. MŨI TÊN: Bình thường màu xám, khi rê vào thẻ cha thì biến thành trắng đồng bộ */
.widget_product_categories ul.product-categories > li.cat-parent > button.toggle,
.widget_product_categories ul.product-categories > li.cat-parent > .toggle {
    position: absolute;
    top: 5px; /* Canh giữa so với chiều cao thẻ */
    right: 8px;
    height: 32px;
    width: 32px;
    background: transparent;
    border: none;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    padding: 0;
    margin: 0;
    color: #64748b;
    border-radius: 50%;
    transition: all 0.2s ease;
}

/* Rê vào thẻ cha -> Mũi tên thành màu trắng (hết bị tàng hình) */
.widget_product_categories ul.product-categories > li.cat-item:hover > button.toggle,
.widget_product_categories ul.product-categories > li.current-cat > button.toggle {
    color: #ffffff;
}

/* PHẢN HỒI RIÊNG: Khi chuột chạm đích danh vào mũi tên -> Tạo vòng tròn mờ + phóng to nhẹ */
.widget_product_categories ul.product-categories > li.cat-parent > button.toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.15);
}


/* 6. MENU CON: Làm dạng NÚT BẤM thụt lề vào trong theo đúng ý bạn */
.widget_product_categories ul.children {
    margin: 6px 0 10px 18px; /* Thụt đầu dòng vào 18px */
    padding: 0;
    list-style: none;
}

.widget_product_categories ul.children li.cat-item {
    margin-bottom: 5px;
    border: none;
}

/* Nút bấm con: bo tròn, nhỏ nhắn hơn nút cha */
.widget_product_categories ul.children li.cat-item a {
    display: block;
    background: #ffffff;
    color: #475569;
    font-size: 13px;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: 20px; /* Bo tròn dạng pill */
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

/* Hover nút con: Đổi màu riêng (ở đây để màu tối anime cá tính hoặc bạn đổi theo màu web) */
.widget_product_categories ul.children li.cat-item a:hover {
    background: #2f3542;
    color: #ffffff;
    border-color: #2f3542;
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 1. Xử lý triệt để vạch đứng (|) do ::before của Flatsome tạo ra */
.widget_product_categories ul.children::before,
.widget_product_categories ul.children li::before,
.widget_product_categories ul.children a::before {
    display: none !important; /* Bắt buộc !important ở đây vì Flatsome dùng !important cho pseudo-element */
    content: none !important;
}

/* 2. Thẻ ul.children: Bỏ border-left và triệt tiêu margin-bottom gây hở */
.widget_product_categories ul.children {
    border-left: none; /* Xóa vạch đứng nếu nó là border */
    margin-top: 6px;
    margin-left: 18px; /* Giữ độ thụt đầu dòng */
    margin-right: 0;
    margin-bottom: 0; /* XÓA KHOẢNG HỞ: Triệt tiêu khoảng hở phía dưới */
    padding: 0;
    list-style: none;
}

/* 3. Từng mục con li */
.widget_product_categories ul.children li.cat-item {
    margin-bottom: 5px;
    border: none;
    list-style: none;
}

/* Bỏ margin-bottom của mục con cuối cùng để không bị hở với nút cha tiếp theo */
.widget_product_categories ul.children li.cat-item:last-child {
    margin-bottom: 0;
}

#shop-sidebar .woocommerce {
	padding: 0px;	
}

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