/*!
 * Hotack global CSS — 阶段 1 集中管理
 * 区块 1：Header 公共样式（原 hotack-seo-mu.php / wp_head priority 1）
 * 区块 2：B2B 背景与电商元素隐藏（原 hotack_b2b_css() / wp_head priority 999）
 * 本文件由 hotack-seo-mu.php 以 ?ver=filemtime() 输出；修改本文件无需改 PHP。
 * 规则与内部顺序与原内联块逐字节一致，禁止在其它位置复制同一份规则。
 */


.product-thumbnail { position: relative; }
.product-badges { position: absolute; top: 10px; left: 10px; z-index: 10; }

/* Header 导航一行显示：强制撑满宽度 + 缩小间距 */
.page-header-inner .container-fluid,
.page-header-inner .container-fluid .row,
.page-header-inner .container-fluid .col-xs-12 {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
}
.page-header-inner .header-wrap {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
}
.page-header-inner .branding {
    flex: 0 0 auto !important;
    margin-right: 20px !important;
}
.page-header-inner .navigation.page-navigation {
    flex: 1 1 auto !important;
    justify-content: center !important;
    max-width: none !important;
    width: auto !important;
    float: none !important;
}
@media (min-width: 1200px) {
    .page-header-inner .navigation.page-navigation {
        display: flex !important;
    }
}
/* 真实的菜单容器是 ul.menu__container */
.page-header-inner .menu--primary .menu__container {
    display: flex !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    width: auto !important;
    float: none !important;
}
.page-header-inner .menu--primary .menu__container > li.menu-item {
    white-space: nowrap !important;
    float: none !important;
    display: inline-block !important;
}
.page-header-inner .menu--primary .menu__container > li.menu-item > .menu-item-wrap > a {
    padding-left: 10px !important;
    padding-right: 10px !important;
    font-size: 14px !important;
}
.page-header-inner .header-right {
    flex: 0 0 auto !important;
    margin-left: 15px !important;
}
/* 搜索框缩小 */
.page-header-inner .header-right .th-search {
    max-width: 150px !important;
}
/* 子菜单：只控制换行，不强制显示（主题会用 hover 控制 display） */
.page-header-inner .menu--primary .menu__container .sub-menu {
    white-space: normal !important;
}
.page-header-inner .menu--primary .menu__container .sub-menu li {
    display: block !important;
    white-space: normal !important;
    float: none !important;
}

/* TikTok icon fix */
.tm-social-networks .fab.fa-tiktok.link-icon:before {
    content: "";
    display: inline-block;
    width: 1em;
    height: 1em;
    background: url("data:image/svg+xml;utf8,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 448 512%22><path fill=%22currentColor%22 d=%22M448 209.91a210.06 210.06 0 0 1-122.77-39.25v178.72a162.55 162.55 0 1 1-140.23-161.07v89.89a74.62 74.62 0 1 0 52.23 71.18V0h88a121.87 121.87 0 0 0 1.86 22.17 122.18 122.18 0 0 0 53.91 77.22 121.43 121.43 0 0 0 67 20.14z%22/></svg>") center/contain no-repeat;
    vertical-align: middle;
}

/* Mega Menu group labels are DIV now (was H2): restore the two declarations
   the bare heading rules used to provide. Class-based typography is untouched. */
.desktop-menu .sm-simple .widgettitle{color:#333333;clear:both}
.page-mobile-main-menu .widgettitle{margin:0 0 18px;clear:both}
/* ===== 区块 2：B2B ===== */


        /* Replace Mitech demo title bar background with local image */
        .page-title-bar-01 .page-title-bar-inner {
            background-image: url('/wp-content/uploads/2026/09/title-bar-01-bg.jpg') !important;
        }
        .page-title-bar {
            background-image: url('/wp-content/uploads/2026/09/title-bar-01-bg.jpg') !important;
        }
        /* 404 page background */
        .error404 {
            background-image: url('/wp-content/uploads/2026/09/page-404-bg.jpg') !important;
        }
        .error404 .page-content {
            background-image: url('/wp-content/uploads/2026/09/page-404-bg.jpg') !important;
        }
        /* Maintenance page background */
        .page-template-maintenance .left-bg {
            background-image: url('/wp-content/uploads/2026/09/page-maintenance-bg.jpg') !important;
        }
        .maintenance-page {
            background-image: url('/wp-content/uploads/2026/09/page-maintenance-bg.jpg') !important;
        }

        /* === Hide all e-commerce UI elements === */
        /* Wishlist buttons */
        .yith-wcwl-add-to-wishlist,
        .wishlist-btn,
        .product-wishlist,
        .tinv-wraper,
        .woosw-btn {
            display: none !important;
        }
        /* Hide auto-related products section (upsells are manually curated) */
        .related.products { display: none !important; }
        
        
        /* Cart icon in header */
        .header-cart, .mini-cart, .cart-contents, .site-header-cart,
        .widget_shopping_cart, .woocommerce-mini-cart,
        .cart-parent, .menu-item-cart, .cart-icon, .header-right .cart {
            display: none !important;
        }
        
        /* Price - everywhere */
        .price, .product-price, .woocommerce-Price-amount,
        .amount, .woocommerce-price-amount,
        .woocommerce-loop-product__price,
        .product-info .price, .summary .price,
        .single_variation_wrap .price,
        .tm-product-price, .product_meta { display: none !important; }
        
        /* Quantity selector */
        .quantity, .cart .quantity, .quantity input,
        .single_add_to_cart_button, button.single_add_to_cart_button,
        .single_add_to_cart_button { display: none !important; }
        
        /* Add to cart buttons */
        .add_to_cart_button, .single_add_to_cart_button,
        .product_type_simple, .product_type_variable,
        .add_to_cart_button.ajax_add_to_cart,
        .product-action.woocommerce_loop_add_to_cart_wrap,
        .product-actions .product-action,
        .loop-add-to-cart-btn { display: none !important; }
        
        /* Sale badges */
        .onsale, .product-badges, .product-badge,
        .badge.sale, .sale-badge, .woocommerce .onsale {
            display: none !important;
        }
        
        /* Stock status */
        .stock, .out-of-stock, .in-stock,
        .stock-status { display: none !important; }
        
        /* Price filter widget */
        .widget_price_filter, .widget_woocommerce_price_filter,
        .woocommerce-widget-layered-nav--price,
        .wc-block-price-filter, .wc-widget-price-filter {
            display: none !important;
        }
        
        /* Reviews and ratings */
        .woocommerce-product-rating, .star-rating, 
        .woocommerce-tabs .reviews_tab, #tab-reviews,
        .woocommerce-Reviews, .comment-form-rating,
        .woocommerce-review-link, .review_count,
        .woocommerce-tabs li.reviews_tab,
        .wc-tabs li.reviews_tab {
            display: none !important;
        }
        
        /* Top rated products widget */
        .widget_top_rated_products,
        .widget_woocommerce_top_rated_products {
            display: none !important;
        }
        

/* ===== 区块 3：Footer（原 ic_footer post 103 内联样式，全站 Footer）=====
   迁入时间 2026-12-03；选择器、声明、断点、!important 与顺序与原内联块逐字节一致。 */
/* ===== Footer 5栏 scoped（全站 Footer，由 ic_footer post 103 渲染） ===== */
.hotack-footer-col{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    color: #696969;
    line-height: 1.8;
}
.hotack-footer-logo{
    display: block;
    margin-bottom: 20px;
}
.hotack-footer-logo img{
    display: block;
}
.hotack-footer-intro{
    margin: 0 0 22px;
    font-size: 15px;
    line-height: 1.8;
    color: #696969;
}



.hotack-footer-contact{
    margin: 0 0 10px;
    font-size: 15px;
}
.hotack-footer-contact a{
    color: #086ad8;
    text-decoration: none;
}
.hotack-footer-contact a:hover{
    text-decoration: underline;
}
.hotack-footer-phone a{
    color: #333333;
    font-weight: 700;
}
.hotack-footer-col .hotack-footer-title{
    font-size: 18px;
    font-weight: 700;
    color: #333333;
    margin: 0 0 20px;
    line-height: 1.4;
}
.hotack-footer-list{
    list-style: none;
    margin: 0;
    padding: 0;
}
.hotack-footer-list li{
    margin: 0 0 12px;
    line-height: 1.6;
}
.hotack-footer-list a{
    font-size: 15px;
    color: #696969;
    text-decoration: none;
    transition: color .25s;
}
.hotack-footer-list a:hover{
    color: #086ad8;
}


/* ===== Footer spacing + Logo scoped 修正（ic_footer post 103，本轮唯一视觉改动） ===== */
/* Logo 透明上边距裁切：图形上移 15px 与栏目标题视觉齐平；wrapper 占位 48px 不变，不破坏桌面 colBottom 布局 */
.hotack-footer-logo{
    overflow: hidden;
    height: 48px;
}
.hotack-footer-logo img{
    transform: translateY(-15px);
}

@media (max-width: 767px){
    /* Footer section 移动端 padding-bottom 52px -> 24px */
    .vc_section:has(.hotack-footer-col){
        padding-bottom: 24px !important;
    }
    /* 压缩 footer 内 tm-spacer（spacer row 15px + social 后 xs:30） */
    .vc_section:has(.hotack-footer-col) .tm-spacer{
        height: 0 !important;
    }
    /* 收紧 footer 内 column 底部 padding（消除 colBottom 下方 ~12px 空隙） */
    .vc_section:has(.hotack-footer-col) .vc_column-inner{
        padding-bottom: 0 !important;
    }
    /* social 图标紧凑单行：6 x 30px + 5 x 6px gap = 210px < 360px */
    .vc_section:has(.hotack-footer-col) .tm-social-networks{
        text-align: left;
    }
    .vc_section:has(.hotack-footer-col) .tm-social-networks a{
        width: 30px !important;
        height: 30px !important;
        line-height: 30px !important;
        font-size: 13px !important;
        margin: 0 6px 0 0 !important;
    }
}
