/* 强制禁用移动端及桌面端产品缩略图无限循环克隆 */
.woocommerce-product-gallery .flexy-pills [data-clone],
.woocommerce-product-gallery .flexy-pills .flexy-clone,
.woocommerce-product-gallery .flexy-item[data-clone] {
    display: none !important;
    width: 0 !important;
    visibility: hidden !important;
}

/* 锁定缩略图轨道位置，禁止手势拖动产生的循环偏移 */
.woocommerce-product-gallery .flexy-pills ol,
.woocommerce-product-gallery .flexy-pills > div {
    display: flex !important;
    flex-wrap: nowrap !important;
    transform: translate3d(0px, 0px, 0px) !important;
    transition: none !important;
    gap: 6px !important;
    width: 100% !important;
    justify-content: flex-start !important;
}

/* 让每张真实缩略图均分整行宽度 */
.woocommerce-product-gallery .flexy-pills ol > li,
.woocommerce-product-gallery .flexy-pills > div > * {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    max-width: 25% !important;
    margin: 0 !important;
}
/* 禁止主图轮播器克隆首尾节点 */
.woocommerce-product-gallery .flexy-items [data-clone] {
    display: none !important;
}
/* 移动端产品详情页参数卡片与悬浮图标优化 */
@media (max-width: 767px) {
    /* 缩小手机端参数表内边距与字号，防止尺寸/功率文字被截断 */
    .single-product .summary table td {
        padding: 7px 2px !important;
        font-size: 11px !important;
    }
    .single-product .summary table td div:first-child {
        font-size: 12px !important;
        word-break: break-word;
    }

    /* 调小右下角悬浮 WhatsApp 图标尺寸并下移，避免遮挡参数表格文字 */
    .chaty-widget,
    .ct-floating-bar {
        transform: scale(0.85);
        bottom: 12px !important;
        right: 10px !important;
    }
}
rder: 1px solid #e2e8f0 !important;
        border-radius: 8px !important;
    }
}
/* ================= 1. 手机端：精简外框 + 现代全宽筛选按钮 ================= */
@media (max-width: 999px) {
    .post-type-archive-product .ct-container,
    .tax-product_cat .ct-container {
        display: flex !important;
        flex-direction: column !important;
    }

    /* 去掉多余的外层大灰框高度，紧凑贴合 */
    .post-type-archive-product aside#sidebar,
    .tax-product_cat aside#sidebar {
        display: block !important;
        order: -1 !important;
        width: 100% !important;
        margin-bottom: 18px !important;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
    }

    /* 美化 Filters 触发按钮：全宽、深炭黑边框、圆角、居中对齐 */
    .wpc-filters-open-button-container {
        width: 100% !important;
        margin: 0 !important;
    }
    .wpc-filters-open-button-container a.wpc-open-close-filters-button {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        padding: 12px 16px !important;
        background-color: #ffffff !important;
        color: #1e293b !important;
        border: 1.5px solid #cbd5e1 !important;
        border-radius: 8px !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
        transition: all 0.2s ease !important;
    }
    .wpc-filters-open-button-container a.wpc-open-close-filters-button:active {
        background-color: #1e293b !important;
        color: #ffffff !important;
        border-color: #1e293b !important;
    }
}

/* 全站手机端强制显示侧边栏筛选器并置顶到列表上方 */
@media (max-width: 999px) {
    .ct-container:has(aside#sidebar) {
        display: flex !important;
        flex-direction: column !important;
    }
    aside#sidebar {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        order: -1 !important;
        width: 100% !important;
        margin-bottom: 18px !important;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
    }
    .wpc-filters-open-button-container {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
    }
    .wpc-filters-open-button-container a.wpc-open-close-filters-button {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        padding: 12px 16px !important;
        background-color: #ffffff !important;
        color: #1e293b !important;
        border: 1.5px solid #cbd5e1 !important;
        border-radius: 8px !important;
        font-size: 15px !important;
        font-weight: 600 !important;
    }
}
/* ================= 手机端筛选面板内部超紧凑间距 ================= */
@media (max-width: 999px) {
    /* 1. 极小化弹窗/折叠面板四周内边距 */
    .wpc-filters-widget-containers-wrapper,
    .wpc-filters-widget-content {
        padding: 8px 10px !important;
    }

    /* 2. 紧缩每个筛选项（Brand, Year, Type, Energy）之间的垂直间距 */
    .wpc-filters-section {
        margin-top: 0 !important;
        margin-bottom: 8px !important;
        padding-bottom: 0 !important;
        border-bottom: none !important;
    }
    .wpc-filters-section:last-child {
        margin-bottom: 0 !important;
    }

    /* 3. 紧缩标题文字与下拉框之间的距离 */
    .wpc-filter-title,
    .wpc-filter-header {
        font-size: 13px !important;
        margin-top: 0 !important;
        margin-bottom: 3px !important;
        padding: 0 !important;
        line-height: 1.2 !important;
    }

    /* 4. 紧凑下拉框高度（36px）与内部边距 */
    .wpc-filter-content {
        margin: 0 !important;
        padding: 0 !important;
    }
    .wpc-filter-content select {
        height: 36px !important;
        min-height: 36px !important;
        font-size: 13px !important;
        padding: 0 8px !important;
        margin: 0 !important;
    }
}
/* 将筛选器小标题（Vehicle Brand, Model Year 等）统一设为粗体 */
.wpc-filter-title,
.wpc-filter-title span,
.wpc-filter-header .wpc-filter-title {
    font-weight: 700 !important;
    color: #0f172a !important;
}