/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/
@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


}
/*************** ADD CUSTOM CSS HERE.   ***************/
/* Khi màn hình lớn hơn 1025px NHƯNG nhỏ hơn 1650px */
@media (min-width: 1025px) and (max-width: 1650px) {
    .container-width, .full-width .ubermenu-nav, .container, .row {
        max-width: 1428px !important;
    }
}
/* Laptop màn nhỏ hoặc Tablet ngang */
@media (min-width: 1025px) and (max-width: 1280px) {
   .container-width, .full-width .ubermenu-nav, .container, .row {
       max-width: 1170px !important; 
   }
}
.row-full-width {
    max-width: 100% !important;
}
/* --- Custom Quick Icon Menu --- */
.fc-quick-icon-menu {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.fc-quick-icon-menu::-webkit-scrollbar {
    display: none;
}
.fc-menu-list {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 30px;
    list-style: none !important;
    margin: 0;
    padding: 10px 0;
}
.fc-menu-item {
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap;
}
.fc-menu-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #334155;
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.fc-menu-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--icon-color);
    transition: transform 0.3s ease;
}
.fc-menu-link:hover {
    color: var(--icon-color);
}
.fc-menu-link:hover .fc-menu-icon svg {
    transform: translateY(-2px);
}
@media screen and (max-width: 768px) {
    .fc-menu-list {
        gap: 15px;
    }
    .fc-menu-link {
        font-size: 14px;
    }
}
/* --- BỐ CỤC FORM BÁO GIÁ --- */
.fc-quote-form {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* Đổ bóng giống ảnh */
    margin: 0 auto;
    font-family: inherit;
}
.fc-form-header { margin-bottom: 25px; }
.fc-quote-form .fc-form-title { font-size: 24px; font-weight: 700; color: #1e293b; margin-bottom: 8px; }
.fc-quote-form .fc-form-desc { font-size: 15px; color: #64748b; margin: 0; }
.fc-form-group { margin-bottom: 20px; }
.fc-quote-form .fc-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 15px;
    color: #334155;
    transition: border-color 0.3s ease;
    background: #fff;
}
.fc-quote-form textarea{
	border-radius: 6px;
	margin-bottom: 0;
}
.fc-input:focus { border-color: #3b82f6; outline: none; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); }
.fc-btn-add-product {
    width: 100%;
    background: transparent;
    border: 1px dashed #cbd5e1;
    color: #475569;
    padding: 12px;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.fc-btn-add-product:hover { border-color: #3b82f6; color: #3b82f6; background: #f8fafc; }
.fc-upload-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}
.fc-custom-upload {
    margin: 0;
    cursor: pointer;
}
.fc-btn-choose {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    border-radius: 4px;
    font-size: 14px;
    color: #334155;
    transition: all 0.2s;
}
.fc-custom-upload:hover .fc-btn-choose { background: #e2e8f0; }
.fc-hidden-file { display: none !important; }
.fc-upload-text { font-size: 14px; color: #64748b; font-style: italic; }
.fc-tooltip-container { position: relative; display: flex; align-items: center; cursor: pointer; }
.fc-tooltip-icon svg { width: 16px; height: 16px; color: #94a3b8; transition: color 0.2s; }
.fc-tooltip-container:hover .fc-tooltip-icon svg { color: #3b82f6; }
.fc-tooltip-content {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 280px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
}
.fc-tooltip-content::after {
    content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    border-width: 6px; border-style: solid; border-color: #fff transparent transparent transparent;
}
.fc-tooltip-content::before {
    content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    border-width: 7px; border-style: solid; border-color: #e2e8f0 transparent transparent transparent;
}
.fc-tooltip-container:hover .fc-tooltip-content { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.fc-quote-form .fc-tooltip-title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: bold; color: #1e293b; margin-bottom: 8px; }
.fc-quote-form .fc-tooltip-desc { font-size: 13px; color: #475569; line-height: 1.5; margin-bottom: 10px; }
.fc-tooltip-link { font-size: 13px; color: #3b82f6; font-weight: 500; text-decoration: none; }
.fc-tooltip-link:hover { text-decoration: underline; }
.fc-submit-group.fc-form-group,.fc-quote-form .fc-form-group input{
	margin-bottom: 0;
}
.fc-quote-form .fc-file-name { font-size: 13px; color: #10b981; margin-top: 5px; font-weight: 500; }
.fc-quote-form .fc-btn-submit {
    width: 100%;
    background: #fe7238;
    border: none;
    padding: 5px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}
.fc-btn-submit:hover { background: #236fa8; }
.wpcf7-spinner { display: none !important; }

/* Container Box Tài liệu kỹ thuật */
.hkg-tech-doc-container {
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 20px 24px;
    background: #fff;
    margin-bottom: 20px;
}
.hkg-tech-doc-title {
    font-size: 1.1em;
    font-weight: 600;
    color: #2b77c0;
    margin-bottom: 20px;
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px dashed #e5e5e5;
}
.hkg-tech-doc-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.hkg-tech-doc-item {
    display: block;
}
.hkg-tech-doc-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #444;
    transition: all 0.3s ease;
    padding: 8px 12px;
    background-color: #f9f9f9;
    border-radius: 4px;
    border: 1px solid transparent;
}
.hkg-tech-doc-link:hover {
    color: #2b77c0;
    background-color: #f0f6fc;
    border-color: #cce0f5;
}
.hkg-tech-doc-icon {
    margin-right: 12px;
    object-fit: contain;
}
.hkg-tech-doc-filename {
    font-size: 0.95em;
    margin-right: auto;
    word-break: break-all;
    padding-right: 15px;
}
.hkg-tech-doc-download-icon {
    color: #3b82f6;
    flex-shrink: 0;
}

/* Danh sách danh mục sản phẩm con */
.hkg-subcats-grid-wrapper {
    margin-bottom: 15px;
    padding: 15px;
    background-color: #f4f7f9;
    border-radius: 8px;
}
.hkg-subcats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}
.hkg-subcats-grid .hkg-subcat-item {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 6px 9px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.hkg-subcats-grid .hkg-subcat-item:hover {
    border-color: #bbd3e9;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}
.hkg-subcats-grid .hkg-subcat-img {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hkg-subcats-grid .hkg-subcat-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.hkg-subcats-grid .hkg-subcat-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hkg-subcats-grid .hkg-subcat-title {
    font-size: 14px;
    font-weight: 500;
    color: #1a436e;
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hkg-subcats-grid .hkg-subcat-count {
    font-size: 13px;
    color: #e67e22;
    font-weight: 500;
}
/* ===== ĐIỀU CHỈNH RESPONSIVE (MOBILE & TABLET) ===== */
@media screen and (max-width: 1024px) {
    .hkg-subcats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media screen and (max-width: 768px) {
	.hkg-subcats-grid-wrapper{
		padding: 10px;
	}
    .hkg-subcats-grid {
        grid-template-columns: none;
        grid-template-rows: repeat(2, 1fr);
        grid-auto-flow: column;
        grid-auto-columns: 38%; 
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 12px;
    }
    .hkg-subcats-grid .hkg-subcat-item {
        scroll-snap-align: start;
    }
    .hkg-subcats-grid::-webkit-scrollbar {
        height: 4px;
    }
    .hkg-subcats-grid::-webkit-scrollbar-track {
        background: #f1f5f9; 
        border-radius: 4px;
    }
    .hkg-subcats-grid::-webkit-scrollbar-thumb {
        background: #cbd5e1; 
        border-radius: 4px;
    }
}
@media screen and (max-width: 550px) {
	.hkg-subcats-grid-wrapper{
		padding: 8px;
	}
    .hkg-subcats-grid {
        grid-auto-columns: 42%;
        gap: 8px;
    }
    .hkg-subcats-grid .hkg-subcat-item {
        flex-direction: row;
        justify-content: flex-start;
        text-align: center;
        padding: 10px 8px;
    }
    .hkg-subcats-grid .hkg-subcat-img {
        margin-right: 0;
        margin-bottom: 8px;
        width: 42px;
        height: 42px;
    }
    .hkg-subcats-grid .hkg-subcat-title {
        font-size: 12px;
        line-height: 1.4;
    }
    .hkg-subcats-grid .hkg-subcat-count {
        font-size: 11px;
        margin-top: 0;
    }
}


/* ==========================================================================
   FLATSOME POLICY PAGE TEMPLATE STYLES
   ========================================================================== */
.policy-sidebar {
    padding: 15px;
    border-radius: 12px;
	background: #fff;
}
.policy-content {
    padding: 32px;
    border-radius: 12px;
    background: #fff;
}
.policy-sidebar-title {
    font-size: 20px;
    font-weight: 700;
    color: #111;
    margin-top: 0;
    margin-bottom: 20px;
    border: none;
}
.policy-menu-item:last-child {
    margin-bottom: 0;
}
.policy-menu-item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    color: #003366;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    line-height: 1.4;
}
.policy-menu-item a:hover {
    background-color: #f8faff; 
    color: #2b7ce9;
}
.policy-menu-item.active a {
    background-color: #FFD7C6;
    color: #fe7238;
}
.policy-menu-item a:hover::after {
    content: "";
    display: block;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23f26522' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M5 12h14m-7-7 7 7-7 7'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-left: 10px;
    opacity: 1;
}
.policy-menu-item.active a::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23f26522' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M5 12h14m-7-7 7 7-7 7'/%3E%3C/svg%3E") !important;
}
.policy-content-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 24px;
    border-bottom: 1px solid #eee;
    padding-bottom: 16px;
}
.page-policy-wrapper .woocommerce-breadcrumb {
    color: #2b7ce9;
    font-size: 14px;
    font-weight: 500;
    text-transform: none;
}
.page-policy-wrapper .woocommerce-breadcrumb a {
    color: #555;
}
/* ==========================================================================
   TỐI ƯU GIAO DIỆN MOBILE & TABLET CHO TRANG CHÍNH SÁCH (MAX-WIDTH: 849PX)
   ========================================================================== */
@media (max-width: 849px) {
    .page-policy-wrapper {
        padding: 15px 0 30px !important;
    }
    .policy-sidebar {
        padding: 15px;
        margin-top: 20px;
        border-radius: 12px;
    }
    .policy-content {
        padding: 20px 15px;
    }
    .policy-sidebar-title {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .policy-menu-item a {
        padding: 12px 15px;
        font-size: 14px;
    }
    .policy-content-title {
        font-size: 20px;
        margin-bottom: 16px;
        padding-bottom: 12px;
    }
}
/* =======================================================
   VIỆT TRUNG CONTACT: BOTTOM MOBILE NAVIGATION
======================================================= */

/* 1. Ẩn mặc định trên Desktop/Tablet để an toàn cho Caching */
.vt-bottom-nav-wrapper {
    display: none;
}

/* 2. Chỉ hiển thị và css trên Mobile (Màn hình dưới 768px) */
@media screen and (max-width: 768px) {
    /* Tạo khoảng trống dưới cùng để web không bị che mất nội dung bởi thanh nav */
    body {
        padding-bottom: 65px !important;
    }

    .vt-bottom-nav-wrapper {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
        z-index: 99999; /* Đảm bảo luôn nằm trên cùng */
        border-top: 1px solid #f1f1f1;
        padding-bottom: env(safe-area-inset-bottom); /* Tương thích tai thỏ/bottom bar của iPhone */
    }

    .vt-bottom-nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 60px;
        padding: 0 10px;
    }

    .vt-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-decoration: none;
        color: #2b77c0; /* Màu xanh chủ đạo của nút theo ảnh mẫu */
        transition: color 0.2s;
        -webkit-tap-highlight-color: transparent; /* Bỏ viền xanh khi chạm trên Android */
    }

    .vt-nav-item:hover, 
    .vt-nav-item:active {
        color: #1a436e;
    }

    /* Icon SVGs */
    .vt-nav-icon {
        position: relative;
        width: 24px;
        height: 24px;
        margin-bottom: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .vt-nav-icon svg {
        width: 100%;
        height: 100%;
    }

    /* Text */
    .vt-nav-text {
        font-size: 11px;
        font-weight: 500;
        color: #444; /* Text xám đen */
        line-height: 1;
        white-space: nowrap;
    }

    /* Riêng cấu hình Badge cho Giỏ hàng (Màu cam) */
    .vt-cart-badge {
        position: absolute;
        top: -6px;
        right: -8px;
        background-color: #f39c12; /* Màu cam giống hình */
        color: #ffffff;
        font-size: 10px;
        font-weight: 700;
        height: 16px;
        min-width: 16px;
        line-height: 16px;
        text-align: center;
        border-radius: 10px;
        padding: 0 4px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
}
