/*
Theme Name: Industrial Manufacturing Child
Theme URI: https://chacha.asia/
Description: Child theme for Industrial Manufacturing - Chacha B2B
Author: Chacha
Author URI: https://chacha.asia/
Template: industrial-manufacturing
Version: 1.2.2
License: GNU General Public License v3.0
Text Domain: industrial-manufacturing-child
*/

/* Child theme custom styles below */

/* =====================================================
   Wishlist button: "Add to Wishlist" next to "Request Price", horizontal layout
   ===================================================== */

.single-product .summary::after {
    content: '';
    display: table;
    clear: both;
}

.single-product .summary .wrp-request-button,
.single-product .summary .yith-wcwl-add-to-wishlist--single {
    float: left;
    box-sizing: border-box;
    margin: 0 !important;
    height: 52px;
    min-height: 52px;
}

.single-product .summary .wrp-request-button {
    width: 49%;
    margin-right: 2% !important;
    border-radius: 0 !important;
    padding: 0 1em;
    line-height: 52px;
}

.single-product .summary .yith-wcwl-add-to-wishlist--single {
    width: 49%;
}

.single-product .summary .yith-wcwl-add-to-wishlist--single .yith-wcwl-add-button {
    margin: 0;
    height: 100%;
}

.single-product .summary .yith-wcwl-add-to-wishlist--single .add_to_wishlist {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 52px;
    min-height: 52px;
    box-sizing: border-box;
    padding: 0 1.2em;
    background-color: #000000 !important;
    color: #ffffff !important;
    border-radius: 0 !important;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.single-product .summary .yith-wcwl-add-to-wishlist--single .add_to_wishlist:hover {
    opacity: 0.9;
    color: #ffffff !important;
}

@media screen and (max-width: 1000px) {
    .single-product .summary .wrp-request-button,
    .single-product .summary .yith-wcwl-add-to-wishlist--single {
        float: none;
        width: 100%;
        margin: 0 0 8px 0 !important;
    }
}

/* =====================================================
   Wishlist share bar: 18 platforms with brand colors
   ===================================================== */

.yith-wcwl-share li a.tiktok { background: #000000; }
.yith-wcwl-share li a.tiktok:hover { background: #333333; }

.yith-wcwl-share li a.facebook { background: #1877F2; }
.yith-wcwl-share li a.facebook:hover { background: #145DBF; }

.yith-wcwl-share li a.instagram { background: #e1306c; }
.yith-wcwl-share li a.instagram:hover { background: #c13584; }

.yith-wcwl-share li a.twitter { background: #000000; }
.yith-wcwl-share li a.twitter:hover { background: #333333; }

.yith-wcwl-share li a.pinterest { background: #BD081C; }
.yith-wcwl-share li a.pinterest:hover { background: #93060F; }

.yith-wcwl-share li a.youtube { background: #ff0000; }
.yith-wcwl-share li a.youtube:hover { background: #cc0000; }

.yith-wcwl-share li a.whatsapp { background: #25D366; }
.yith-wcwl-share li a.whatsapp:hover { background: #1DA851; }

.yith-wcwl-share li a.line { background: #06c755; }
.yith-wcwl-share li a.line:hover { background: #05a648; }

.yith-wcwl-share li a.telegram { background: #26a5e4; }
.yith-wcwl-share li a.telegram:hover { background: #1e8ec7; }

.yith-wcwl-share li a.kakao { background: #fee500; }
.yith-wcwl-share li a.kakao:hover { background: #e5cf00; }
.yith-wcwl-share li a.kakao { color: #3c1e1e !important; }
.yith-wcwl-share li a.kakao:hover { color: #3c1e1e !important; }

.yith-wcwl-share li a.vk { background: #4a76a8; }
.yith-wcwl-share li a.vk:hover { background: #3e648f; }

.yith-wcwl-share li a.ok { background: #ee8208; }
.yith-wcwl-share li a.ok:hover { background: #cc6f07; }

.yith-wcwl-share li a.naver { background: #03c75a; }
.yith-wcwl-share li a.naver:hover { background: #02a84e; }

.yith-wcwl-share li a.zalo { background: #0068ff; }
.yith-wcwl-share li a.zalo:hover { background: #0058d8; }

.yith-wcwl-share li a.mixi { background: #00a8e1; }
.yith-wcwl-share li a.mixi:hover { background: #008fbf; }

.yith-wcwl-share li a.linkedin { background: #0077b5; }
.yith-wcwl-share li a.linkedin:hover { background: #00669c; }

.yith-wcwl-share li a.reddit { background: #ff4500; }
.yith-wcwl-share li a.reddit:hover { background: #d93b00; }

.yith-wcwl-share li a.tumblr { background: #35465c; }
.yith-wcwl-share li a.tumblr:hover { background: #2a3a4c; }

.yith-wcwl-share li a .ss-letter {
    font-style: normal;
    font-weight: 700;
    font-size: 15px;
    line-height: 1;
    font-family: Arial, Helvetica, sans-serif;
}

/* =====================================================
   Mobile: wishlist share bar auto-wrap onto multiple lines
   (YITH sets .yith-wcwl-share ul { display:flex } which
   defaults to nowrap => 18 buttons overflow on phones)
   ===================================================== */

@media screen and (max-width: 1000px) {
    .yith-wcwl-share ul {
        flex-wrap: wrap;
    }

    .yith-wcwl-share li a {
        min-width: 32px;
        min-height: 32px;
    }
}

/* =====================================================
   Homepage: hide breadcrumb row, <h1>Home</h1>,
   WooCommerce result count + ordering (only front page)
   ===================================================== */

body.home .bradcrumbs {
    display: none;
}

body.home .feature-box h1 {
    display: none;
}

body.home .woocommerce-result-count,
body.home .woocommerce-ordering {
    display: none;
}

/* =====================================================
   Footer: remove "Manufacturing WordPress Theme" credit link
   ===================================================== */

.copyright p.m-0 a {
    display: none;
}

/* =====================================================
   Footer widget columns (My Account / About Us / Policies / Group Links):
   - Desktop: visible on ALL pages (unchanged)
   - Mobile: only on Home / Shop / My Account / My Wishlist
   ===================================================== */

@media screen and (max-width: 1000px) {
    body:not(.home):not(.woocommerce-shop):not(.woocommerce-account):not(.woocommerce-wishlist) #footer .footerinner {
        display: none;
    }
}

/* Mobile footer: 4 widget columns (My Account / About Us / Policies / Ad Links)
   collapse into a 2x2 grid, each block collapsed by default and expands on
   tapping its title (Chevron arrow reflects state) */

@media screen and (max-width: 1000px) {
    #footer .footerinner .row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px 20px;
        margin: 0;
    }

    #footer .footerinner .footer-block {
        width: 100%;
        max-width: 100%;
        flex: 0 0 auto;
        text-align: left;
        padding: 0;
    }

    #footer .footerinner .footer-block .widget-title {
        text-align: left;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 0;
        user-select: none;
    }

    #footer .footerinner .footer-block .widget-title::after {
        content: '\f078';
        font-family: 'Font Awesome 7 Free';
        font-weight: 900;
        font-size: 14px;
        line-height: 1;
        margin-left: 8px;
        flex: 0 0 auto;
        transition: transform .2s ease;
    }

    #footer .footerinner .footer-block .widget-title:hover {
        opacity: .85;
    }

    #footer .footerinner .footer-block .widget ul,
    #footer .footerinner .footer-block .menu {
        list-style: none;
        padding-left: 0;
        margin-left: 0;
        display: none;
    }

    #footer .footerinner .footer-block.open .widget ul,
    #footer .footerinner .footer-block.open .menu {
        display: block;
        margin-top: 8px;
    }

    #footer .footerinner .footer-block.open .widget-title::after {
        transform: rotate(180deg);
    }
}

/* =====================================================
   Site LOGO: color unified with footer column titles
   (#FF5E14, --secondary-color); desktop background black
   ===================================================== */

.middle-header .logo {
    background: #000;
}

.middle-header .logo .site-title a {
    color: var(--secondary-color);
}

/* =====================================================
   Two-row header: row1 LOGO + SEARCH + action buttons,
   row2 MAIN MENU (desktop)
   ===================================================== */

.middle-header .chacha-header-top {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 14px 0;
}

.middle-header .chacha-header-top-logo {
    justify-self: start;
}

.middle-header .chacha-header-top-actions {
    justify-self: end;
}

.middle-header .chacha-header-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.middle-header .chacha-header-top-search {
    justify-self: center;
    width: 100%;
    max-width: 460px;
}

.middle-header .chacha-header-top-search form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    position: static;
    top: auto;
    transform: none;
    width: 100%;
}

.middle-header .chacha-header-top-search form label {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
}

.middle-header .chacha-header-top-search form input[type="search"],
.middle-header .chacha-header-top-search form input[type="text"] {
    width: 100%;
    max-width: none;
    height: 34px;
    padding: 4px 10px;
    font-size: 13px;
}

.middle-header .chacha-header-top-search form input.search-submit {
    flex: 0 0 auto;
    height: 34px;
    padding: 0 14px;
    font-size: 13px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.middle-header .chacha-header-action {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #fff;
    background: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    line-height: 1.3;
}

.middle-header .chacha-header-action:hover {
    color: var(--secondary-color);
    background: #fff;
}

.middle-header .chacha-header-action i {
    font-size: 11px;
}

.middle-header .chacha-header-nav {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.middle-header .chacha-header-nav .nav-menu {
    padding: 10px 0;
}

.middle-header .chacha-header-nav .nav-menu ul {
    white-space: nowrap;
}

.middle-header .chacha-header-nav .nav-menu li {
    white-space: normal;
}

.middle-header .chacha-header-nav .nav-menu ul li a {
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.middle-header .chacha-header-nav .ld-menu-more {
    display: none;
    position: relative;
}

.middle-header .chacha-header-nav .ld-menu-more.active {
    display: inline-block;
}

.middle-header .chacha-header-nav .ld-menu-more-toggle {
    cursor: pointer;
}

.middle-header .chacha-header-nav .ld-menu-more-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 999;
    min-width: 200px;
    border: 1px solid var(--primary-color);
    background: var(--primary-color);
    display: none;
    white-space: normal;
}

.middle-header .chacha-header-nav .ld-menu-more:hover .ld-menu-more-dropdown,
.middle-header .chacha-header-nav .ld-menu-more:focus-within .ld-menu-more-dropdown {
    display: block;
}

.middle-header .chacha-header-nav .ld-menu-more-dropdown li {
    float: none;
    display: block;
    text-align: left;
    padding: 0;
}

.middle-header .chacha-header-nav .ld-menu-more-dropdown li a {
    display: block;
    padding: 10px;
    background: var(--primary-color);
    color: #fff;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 600;
    white-space: normal;
}

.middle-header .chacha-header-nav .ld-menu-more-dropdown li a:hover {
    background: var(--secondary-color);
    color: #fff;
}

.middle-header .chacha-header-nav .ld-menu-more-dropdown .sub-menu {
    display: none;
}

.middle-header .chacha-header-nav .ld-menu-more-dropdown li:hover > .sub-menu {
    display: block;
}

.middle-header .chacha-header-nav .ld-menu-more-dropdown li {
    position: relative;
}

.middle-header .chacha-header-nav .ld-menu-more-dropdown li > .sub-menu {
    left: auto;
    right: 100%;
    top: 0;
    max-height: 80vh;
    overflow-y: auto;
}

.middle-header .header-search {
    margin: 0;
}

@media screen and (max-width: 1199px) and (min-width: 1001px) {
    .middle-header .chacha-header-action {
        padding: 6px 8px;
        font-size: 10px;
        letter-spacing: 0.2px;
    }
}

@media screen and (max-width: 767px) {
    .middle-header .chacha-header-top {
        padding: 10px 0;
    }

    .middle-header .chacha-header-actions {
        justify-content: center;
    }
}

/* =====================================================
   Mobile top header: "Chacha B2B" left + ACCOUNT / MENU
   ===================================================== */

@media screen and (max-width: 1000px) {
    .toggle-menu {
        padding: 8px 12px;
    }

    .middle-header .chacha-header-actions {
        display: none;
    }

    .toggle-menu .ld-toggle-row {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        font-size: 14px;
    }

    .toggle-menu .ld-toggle-brand {
        color: var(--secondary-color);
        font-size: 17px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        text-decoration: none;
        white-space: nowrap;
        line-height: 1.2;
        margin-right: auto;
        flex: 0 1 auto;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        border: 1px solid rgba(255, 94, 20, 0.6);
        padding: 3px 9px;
        border-radius: 3px;
    }

    .toggle-menu .ld-toggle-account {
        color: #fff;
        font-size: 16px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        text-decoration: none;
        white-space: nowrap;
        line-height: 1;
        display: inline-flex;
        align-items: center;
        gap: 5px;
    }

    .toggle-menu .ld-toggle-account i {
        font-size: 16px;
        color: #fff;
    }

    .toggle-menu .mobiletoggle {
        color: #fff;
        font-size: 16px;
        font-weight: 600;
        text-transform: uppercase;
        padding: 0;
        white-space: nowrap;
        display: inline-flex;
        align-items: center;
    }

    .toggle-menu .mobiletoggle i {
        font-size: 16px;
    }

    .middle-header .logo {
        display: none;
    }

    .header-search {
        display: none !important;
    }

    body {
        padding-bottom: 64px;
    }

    .back-to-top {
        bottom: 92px !important;
    }
}

@media screen and (max-width: 380px) {
    .toggle-menu {
        padding: 6px 8px;
    }

    .toggle-menu .ld-toggle-row {
        gap: 6px;
    }

    .toggle-menu .ld-toggle-brand {
        font-size: 14px;
    }

    .toggle-menu .ld-toggle-account {
        font-size: 15px;
        flex-shrink: 0;
    }

    .toggle-menu .mobiletoggle {
        font-size: 15px;
        flex-shrink: 0;
    }

    .toggle-menu .ld-toggle-account i {
        font-size: 15px;
    }

    .toggle-menu .mobiletoggle i {
        font-size: 15px;
    }
}

@media screen and (max-width: 340px) {
    .toggle-menu {
        padding: 5px 6px;
    }

    .toggle-menu .ld-toggle-row {
        gap: 4px;
    }

    .toggle-menu .ld-toggle-brand {
        font-size: 12px;
    }

    .toggle-menu .ld-toggle-account {
        font-size: 14px;
    }

    .toggle-menu .mobiletoggle {
        font-size: 14px;
    }

    .toggle-menu .ld-toggle-account i {
        font-size: 14px;
    }

    .toggle-menu .mobiletoggle i {
        font-size: 14px;
    }
}

/* =====================================================
   Mobile bottom navigation: Product / Category / Search / Wishlist
   ===================================================== */

.ld-mobile-nav {
    display: none;
}

@media screen and (max-width: 1000px) {
    .ld-mobile-nav {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 99999;
        font-family: 'Open Sans', Arial, Helvetica, sans-serif;
        max-width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    /* Opening the search panel must never stretch the page horizontally:
       keep the fixed bar and its panels inside the viewport width */
    body.ld-panel-open {
        overflow-x: hidden;
    }

    .ld-mobile-nav-bar {
        display: flex;
        background: #fff;
        border-top: 1px solid #e0e0e0;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
        overflow: hidden;
    }

    .ld-nav-btn {
        flex: 1 1 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        padding: 10px 2px;
        color: #444;
        font-size: 12px;
        font-weight: 600;
        text-transform: uppercase;
        text-decoration: none;
        line-height: 1.15;
        text-align: center;
        white-space: normal;
        border-left: 1px solid #eee;
        min-width: 0;
        overflow: visible;
        box-sizing: border-box;
    }

    .ld-nav-btn span {
        display: block;
        max-width: 100%;
        padding: 0 2px;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .ld-nav-btn:first-child {
        border-left: none;
    }

    .ld-nav-btn i {
        font-size: 20px;
        color: #0e2b5c;
    }

    .ld-nav-btn.active,
    .ld-nav-btn:hover {
        color: #0e2b5c;
        background: #f0f4fa;
    }

    .ld-panel {
        display: none;
        background: #fff;
        border-bottom: 1px solid #eee;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
        overflow: hidden;
    }

    .ld-search-form {
        display: flex;
        padding: 8px 10px;
        gap: 8px;
        margin: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .ld-search-form input[type="search"] {
        flex: 1;
        padding: 9px 12px;
        border: 1px solid #ccc;
        border-radius: 3px;
        font-size: 14px;
        min-width: 0;
        width: auto;
        max-width: 100%;
        box-sizing: border-box;
    }

    .ld-search-form button {
        background: #0e2b5c;
        color: #fff;
        border: none;
        border-radius: 3px;
        padding: 0 16px;
        font-size: 15px;
        cursor: pointer;
    }

    .ld-cat-list {
        list-style: none;
        margin: 0;
        padding: 6px 10px;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2px 8px;
        max-height: 60vh;
        overflow-y: auto;
    }

    .ld-cat-list li a {
        display: block;
        padding: 8px 10px;
        color: #333;
        font-size: 13px;
        text-decoration: none;
        border-bottom: 1px solid #f0f0f0;
    }

    .ld-cat-list li a:hover {
        color: #0e2b5c;
    }
}

/* =====================================================
   Product listing pages: horizontal scrolling category bar
   (Chacha custom: replaces the breadcrumb / title / sorting row on mobile)
   ===================================================== */

.ld-cat-scroll {
    display: none;
}

@media screen and (max-width: 1000px) {
    .ld-cat-scroll {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        padding: 8px 12px;
        margin-bottom: 4px;
    }

    .ld-cat-scroll ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: inline-flex;
        gap: 8px;
        white-space: nowrap;
    }

    .ld-cat-scroll li {
        display: inline-block;
    }

    .ld-cat-scroll a {
        display: block;
        padding: 7px 15px;
        border: 1px solid #d9d9d9;
        border-radius: 20px;
        background: #f7f7f7;
        color: #333;
        font-size: 13px;
        font-weight: 600;
        text-decoration: none;
        white-space: nowrap;
    }

    .ld-cat-scroll a:hover,
    .ld-cat-scroll a:focus {
        background: #0e2b5c;
        border-color: #0e2b5c;
        color: #fff;
    }
}

/* =====================================================
   Long product title ( >20 chars ): shrink font-size by 2px
   ===================================================== */
body.chacha-long-title .woocommerce div.product .product_title {
    font-size: calc(2em - 2px);
}

/* =====================================================
   Chacha 评论 CTA + 回复模板 + 评论调优 + 分享按钮
   ===================================================== */

/* ---- 评论引导 CTA ---- */
.chacha-comment-cta {
    background: linear-gradient(135deg, #0e2b5c 0%, #1a4a8a 100%);
    color: #fff;
    border-radius: 10px;
    padding: 28px 30px;
    margin: 24px 0 16px;
    position: relative;
    overflow: hidden;
}
.chacha-comment-cta::before {
    content: '';
    position: absolute;
    right: -40px;
    top: -40px;
    width: 160px;
    height: 160px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
}
.chacha-comment-cta-title {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px;
}
.chacha-comment-cta-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 16px;
    max-width: 640px;
}
.chacha-comment-cta-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.chacha-comment-cta-btn {
    display: inline-block;
    background: #ffb400;
    color: #0e2b5c !important;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 6px;
    text-decoration: none !important;
    transition: background .2s;
}
.chacha-comment-cta-btn:hover {
    background: #ffc933;
}
.chacha-comment-cta-benefit {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
}
.chacha-comment-cta .chacha-lang-switch {
    margin-top: 14px;
}

/* ---- 语言切换器 ---- */
.chacha-lang-switch {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 3px;
}
.chacha-lang-switch a {
    display: inline-block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 4px;
    padding: 3px 5px;
    text-decoration: none !important;
    transition: all .2s;
    white-space: nowrap;
}
.chacha-lang-switch a:hover,
.chacha-lang-switch a.active {
    background: #ffb400;
    border-color: #ffb400;
    color: #0e2b5c !important;
}

/* ---- 回复模板 ---- */
.chacha-reply-templates {
    background: #f5f7fa;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px 18px;
    margin: 14px 0;
}
.chacha-reply-templates-head {
    margin-bottom: 10px;
}
.chacha-reply-templates-title {
    font-weight: 700;
    color: #0e2b5c;
    font-size: 15px;
}
.chacha-reply-templates-hint {
    display: block;
    color: #667;
    font-size: 12px;
    margin-top: 2px;
}
.chacha-reply-templates-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.chacha-reply-template {
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 13px;
    color: #0e2b5c;
    cursor: pointer;
    transition: all .2s;
}
.chacha-reply-template:hover {
    background: #0e2b5c;
    color: #fff;
    border-color: #0e2b5c;
}
.chacha-reply-template.used {
    background: #e8f0fe;
    border-color: #0e2b5c;
    color: #0e2b5c;
}

/* ---- 评论信息条 + 排序 ---- */
.chacha-comment-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 20px 0 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}
.chacha-comment-count {
    font-weight: 700;
    color: #0e2b5c;
    font-size: 16px;
}
.chacha-comment-order {
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 13px;
    color: #333;
    background: #fff;
}

/* ---- 评论展示优化 ---- */
.chacha-editor-badge {
    display: inline-block;
    background: linear-gradient(90deg, #f59e0b, #f97316);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    margin-right: 10px;
    vertical-align: middle;
    box-shadow: 0 1px 4px rgba(245, 158, 11, .35);
}
.chacha-rating-note {
    font-size: 13px;
    color: #6b7280;
    margin: 6px 0 12px;
    font-style: italic;
}
.chacha-comment-order {
    cursor: pointer;
}
.chacha-comment-order:focus {
    border-color: #0e2b5c;
    outline: none;
    box-shadow: 0 0 0 2px rgba(14, 43, 92, .15);
}

/* ---- 分享按钮 ---- */
.chacha-share {
    margin: 28px 0 10px;
    padding-top: 18px;
    border-top: 1px solid #eee;
}
.chacha-share-title {
    display: block;
    font-weight: 700;
    color: #0e2b5c;
    font-size: 15px;
    margin-bottom: 12px;
}
.chacha-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.chacha-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    color: #fff !important;
    text-decoration: none !important;
    transition: transform .2s, opacity .2s;
    font-size: 18px;
}
.chacha-share-btn:hover {
    transform: translateY(-2px);
    opacity: .9;
}
.chacha-share-facebook { background: #1877f2; }
.chacha-share-whatsapp  { background: #25d366; }
.chacha-share-x         { background: #000; }
.chacha-share-linkedin  { background: #0a66c2; }
.chacha-share-telegram  { background: #229ed9; }
.chacha-share-pinterest { background: #e60023; }
.chacha-share-line      { background: #06c755; }
.chacha-share-vk        { background: #4a76a8; }
.chacha-share-tiktok    { background: #000; }
.chacha-share-instagram { background: linear-gradient(45deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888); }
.chacha-share-youtube   { background: #ff0000; }
.chacha-share-kakao     { background: #fee500; }
.chacha-share-ok        { background: #ee8208; }
.chacha-share-naver     { background: #03c75a; }
.chacha-share-zalo      { background: #0068ff; }
.chacha-share-mixi      { background: #d1b78b; }
.chacha-share-reddit    { background: #ff4500; }
.chacha-share-tumblr    { background: #35465c; }
.chacha-share-snapchat  { background: #fffc00; }
.chacha-share-email     { background: #6d4cff; }
.chacha-share-copylink  { background: #607d8b; }
.chacha-share-copylink.copied { background: #2e7d32; }
.chacha-share-kakao .fa-kakao,
.chacha-share-snapchat .fa-snapchat,
.chacha-share-snapchat .ss-letter,
.chacha-share-kakao .ss-letter { color: #000; }
.chacha-share-btn .ss-letter {
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

@media (max-width: 575px) {
    .chacha-comment-cta {
        padding: 22px 20px;
    }
    .chacha-comment-cta-title {
        font-size: 19px;
    }
    .chacha-comment-cta-text {
        font-size: 14px;
    }
    .chacha-comment-cta-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* 首页首行横幅图：全宽，高度为版面的 1/3 */
.home .feature-box img.chacha-default-thumb {
    width: 100%;
    height: 33.333vh;
    object-fit: cover;
    object-position: center;
    display: block;
    margin: 0 auto 25px;
    border-radius: 0;
    box-shadow: none;
}
@media (max-width: 991px) {
    .home .feature-box img.chacha-default-thumb {
        height: 28vh;
    }
}

/* ===== 博客归档页讨论模块 ===== */
.chacha-blog-discussion {
    background: linear-gradient(135deg, #123a72 0%, #20509c 100%);
    color: #fff;
    border-radius: 10px;
    padding: 30px 32px;
    margin: 28px 0 20px;
    position: relative;
    overflow: hidden;
}
.chacha-blog-discussion::before {
    content: '';
    position: absolute;
    right: -40px;
    top: -40px;
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
}
.chacha-blog-discussion::after {
    content: '';
    position: absolute;
    left: -30px;
    bottom: -50px;
    width: 140px;
    height: 140px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
}
.chacha-blog-discussion-inner {
    position: relative;
    z-index: 1;
}
.chacha-blog-discussion-title {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 10px;
}
.chacha-blog-discussion-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 18px;
    max-width: 700px;
}
.chacha-blog-discussion-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}
.chacha-blog-discussion-btn {
    display: inline-block;
    background: #ffb400;
    color: #0e2b5c !important;
    font-weight: 700;
    padding: 11px 26px;
    border-radius: 6px;
    text-decoration: none !important;
    transition: background .2s;
}
.chacha-blog-discussion-btn:hover {
    background: #ffc933;
}
.chacha-blog-discussion-btn-alt {
    background: transparent;
    color: #fff !important;
    border: 2px solid rgba(255, 255, 255, 0.6);
}
.chacha-blog-discussion-btn-alt:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
}
.chacha-blog-discussion-benefit {
    display: block;
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    font-style: italic;
    margin: 16px 0 6px;
}
.chacha-blog-discussion-lang-hint {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    margin: 0 0 10px;
    font-weight: 600;
}
.chacha-blog-discussion .chacha-lang-switcher {
    margin-top: 6px;
}
@media (max-width: 767px) {
    .chacha-blog-discussion {
        padding: 22px 20px;
    }
    .chacha-blog-discussion-title {
        font-size: 19px;
    }
    .chacha-blog-discussion-text {
        font-size: 14px;
    }
    .chacha-blog-discussion-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =====================================================
   /voice/ page: full-width title row, then two columns
   FORUM (left) | BLOG (right)
   ===================================================== */

.chacha-voice-header {
    margin-bottom: 26px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.chacha-voice-header-center {
    text-align: center;
}

.chacha-voice-header-center .chacha-voice-intro {
    max-width: 720px;
    margin: 0 auto;
}

.chacha-voice-title {
    font-size: 30px;
    font-weight: 800;
    color: var(--secondary-color);
    margin: 0 0 8px;
}

.chacha-voice-intro {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
}

.chacha-voice-row {
    margin-top: 6px;
}

.chacha-voice-col {
    margin-bottom: 24px;
}

.chacha-voice-module {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 20px 22px;
    height: 100%;
}

.chacha-voice-module-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
    display: inline-block;
}

.chacha-voice-module-subtitle {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 20px 0 8px;
}

.chacha-voice-forum-list,
.chacha-voice-topic-list,
.chacha-voice-blog-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.chacha-voice-forum-list li,
.chacha-voice-topic-list li,
.chacha-voice-blog-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px dashed #eee;
}

.chacha-voice-forum-list li:last-child,
.chacha-voice-topic-list li:last-child,
.chacha-voice-blog-list li:last-child {
    border-bottom: none;
}

.chacha-voice-forum-link,
.chacha-voice-topic-list a,
.chacha-voice-blog-list a {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.chacha-voice-forum-link:hover,
.chacha-voice-topic-list a:hover,
.chacha-voice-blog-list a:hover {
    color: var(--secondary-color);
}

.chacha-voice-forum-count,
.chacha-voice-topic-date,
.chacha-voice-blog-date {
    color: #888;
    font-size: 12px;
    white-space: nowrap;
}

.chacha-voice-more {
    margin: 14px 0 0;
    text-align: right;
}

.chacha-voice-more a {
    color: var(--secondary-color);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.chacha-voice-more a:hover {
    text-decoration: underline;
}

/* =====================================================
   Sidebar "Product Categories" widget accordion
   ===================================================== */

.widget_product_categories .product-categories ul.children {
    display: none;
    list-style: none;
}

.widget_product_categories .product-categories li.cat-open > ul.children {
    display: block;
}

.widget_product_categories .product-categories .cw-cat-toggle {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 6px;
    border: 1px solid rgba(0, 0, 0, 0.25);
    border-radius: 3px;
    font-size: 13px;
    font-weight: 700;
    line-height: 14px;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

.widget_product_categories .product-categories .cw-cat-toggle:hover {
    background: rgba(0, 0, 0, 0.06);
}

/* ---- Full-width, left-aligned breadcrumb above the product/shop columns ---- */
.chacha-breadcrumb-full {
    width: 100%;
    text-align: left;
}
.chacha-breadcrumb-full .woocommerce-breadcrumb {
    text-align: left;
    justify-content: flex-start;
}

/* ---- Share block inside the single product summary ---- */
.single-product .summary .chacha-share {
    clear: both;
    margin: 22px 0 0;
}

/* ---- Align WooCommerce sidebar top with the content column ---- */
.woocommerce #sidebar {
    margin-top: 0;
}

/* ---- Mobile: move sidebar (Search / Product Categories) below the products ---- */
@media screen and (max-width: 767px) {
    #sidebar {
        order: 2;
        width: 100%;
    }
    #sidebar + div {
        order: 1;
        width: 100%;
    }
}

/* ---- Mobile footer widget titles: smaller and forced to a single line ---- */
@media screen and (max-width: 1000px) {
    #footer .footerinner .footer-block .widget-title {
        font-size: 15px;
        line-height: 1.3;
        white-space: nowrap;
    }
}


