/*
 Theme Name: Flatsome Child
 Description: This is a child theme for Flatsome Theme
 Author: UX Themes
 Template: flatsome
 Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/
/* ==============================================
   全局强制圆角样式 (覆盖 Flatsome 默认直角)
   ============================================== */

/* 1. 所有输入框、文本域 (Login, 评论, CF7表单等) */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="search"],
input[type="url"],
textarea,               
select {
    border-radius: 10px !important;  
}

/* 2. 所有按钮 (包括登录按钮、提交按钮、商城按钮) */
button,
.button,
input[type="submit"],
input[type="button"],
button[type="submit"],
.primary,
.secondary {
    border-radius: 50px !important; 
}

/* 3. 特殊处理：修复 Flatsome 搜索框的圆角 */
.search-form .search-submit {
    border-top-right-radius: 50px !important;
    border-bottom-right-radius: 50px !important;
}

/* 4. 特殊处理：WooCommerce 数量选择框 (可选) */
.quantity .minus {
    border-radius: 10px 0 0 10px !important;
}
.quantity .plus {
    border-radius: 0 10px 10px 0 !important;
}

/* 针对 ID 为 newsletter-signup-link 的弹窗 */
#newsletter-signup-link {
    background-color: transparent !important; 
    box-shadow: none !important;              
}
button.mfp-close {
    color: #fff !important;   
    top: -10px !important;    
    right: -10px !important;  
}

/* ==============================================
   修复 Blog Post 搜索栏错位 & 美化
   ============================================== */

.wp-block-search__inside-wrapper {
    display: flex !important;        
    align-items: center !important;  
    flex-wrap: nowrap !important;    
    gap: 8px;                        
    width: 100%;                     
}

.wp-block-search__button {
    margin: 0 !important;            
    padding: 10px 24px !important;   
    height: auto !important;         
    min-height: 44px;                
    line-height: 1 !important;       
    border-radius: 50px !important;  
    border: none !important;         
    display: flex;
    justify-content: center;
    align-items: center;
}

.wp-block-search__input {
    margin-bottom: 0 !important;     
    border-radius: 10px !important;  
    min-height: 44px;                
    flex-grow: 1;                    
}


/* ==============================================
   自定义尺码表样式
   ============================================== */
#custom-size-chart-wrapper {
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    max-width: 680px; 
    margin: 0 auto; 
    color: #333;
    padding: 10px;
    background-color: #fff;
}

#custom-size-chart-wrapper .sc-main-title {
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
    padding-bottom: 10px;
    border-bottom: 2px solid #000;
    letter-spacing: 1px;
}

#custom-size-chart-wrapper .sc-subtitle {
    background-color: #f2f2f2;
    color: #333;
    font-weight: bold;
    text-align: center;
    padding: 10px;
    margin-top: 20px;
    border: 1px solid #ddd;
    border-bottom: none;
}

#custom-size-chart-wrapper .sc-scroll-view {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #ddd;
    margin-bottom: 10px;
}

#custom-size-chart-wrapper .sc-table {
    width: 100%;
    min-width: 550px; 
    border-collapse: collapse;
    margin: 0;
}

#custom-size-chart-wrapper .sc-table th {
    background-color: #222 !important;
    color: #ffffff !important;
    padding: 12px 5px; 
    font-weight: normal;
    text-transform: uppercase;
    border: 1px solid #444;
    white-space: nowrap;
    text-align: center !important; 
    vertical-align: middle !important;
}

#custom-size-chart-wrapper .sc-table td {
    padding: 10px 5px;
    border: 1px solid #ddd;
    color: #333;
    background-color: #fff;
    text-align: center !important;
    vertical-align: middle !important;
}

#custom-size-chart-wrapper .sc-table tr:nth-child(even) td {
    background-color: #f9f9f9;
}

/* ==============================================
   修复产品页图片高度跳动 (Layout Shift Fix)
   ============================================== */
.product-gallery-slider .slide {
    aspect-ratio: 3 / 4 !important; 
    width: 100%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background-color: #ffffff; 
    overflow: hidden;
}

.product-gallery-slider .slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important; 
    box-shadow: none !important;
}

/* 布局偏移 v2 */
.product-gallery-slider {
    display: flex !important;       
    flex-wrap: nowrap !important;   
    overflow: hidden !important;    
    aspect-ratio: 3 / 4 !important; 
    width: 100%;
    position: relative;
    align-items: flex-start;        
}

.product-gallery-slider::before {
    content: "";
    display: block;
    padding-top: 133.33%; 
    width: 0; 
    float: left; 
}

.product-gallery-slider .slide {
    aspect-ratio: 3 / 4 !important; 
    width: 100% !important;
    min-width: 100% !important;     
    flex-shrink: 0 !important;      
    display: flex !important;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    overflow: hidden;
    margin: 0 !important;           
}

.product-gallery-slider .slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    box-shadow: none !important;
}

/* ==============================================
   产品属性变体方块 (Swatches)
   ============================================== */
table.variations select {
    display: none !important;
}

.flatsome-custom-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.flatsome-custom-swatches .swatch-item {
    border: 2px solid #ddd; 
    background-color: #fff;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    position: relative;
    border-radius: 0px;
    overflow: hidden; 
}

.flatsome-custom-swatches .swatch-item.no-image {
    padding: 6px 14px;
    min-width: 40px;
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flatsome-custom-swatches .swatch-item.has-image {
    width: 50px; 
    height: 50px;
    padding: 0;
}

.flatsome-custom-swatches .swatch-item.has-image img.swatch-image {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
}

.flatsome-custom-swatches .swatch-item:hover {
    border-color: #777;
}

.flatsome-custom-swatches .swatch-item.selected {
    border-color: #000; 
}

.flatsome-custom-swatches .swatch-item.no-image.selected {
    background-color: #000;
    color: #fff;
    font-weight: bold;
}

.flatsome-custom-swatches .swatch-item.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: #eee;
}
.flatsome-custom-swatches .swatch-item.disabled::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -10%;
    width: 120%;
    height: 1.5px;
    background: red;
    transform: rotate(-45deg);
}


/* =============================================================
 * 产品页独立 FAQ 手风琴样式 (匹配 GOAT 网格系统)
 * ============================================================= */
.matchbeast-faqs-wrapper {
    position: relative;
    background: #fff;
    padding: 25px 20px;
    z-index: 5;
    margin-top: -1px !important; 
    margin-bottom: 30px;
    border: 1px solid rgba(0,0,0,0.7);
    box-sizing: border-box !important;
}

@media (max-width: 849px) {
    .matchbeast-faqs-wrapper {
        border-left: 1px solid rgba(0,0,0,0.7) !important;
        border-right: 1px solid rgba(0,0,0,0.7) !important;
        border-top: 1px solid rgba(0,0,0,0.7) !important;
        border-bottom: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 0 !important;
        width: 100% !important;
        padding: 20px 15px !important;
    }
}

.mb-faq-heading {
    font-size: 1em;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: #000;
}

.mb-faq-item {
    border-top: 1px solid rgba(0,0,0,0.15);
}
.mb-faq-item:last-child {
    border-bottom: 1px solid rgba(0,0,0,0.15);
}

.mb-faq-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 600;
    color: #222;
    transition: color 0.2s ease;
}
.mb-faq-title:hover { color: #666; }

.mb-faq-icon {
    font-size: 1.4em;
    font-weight: 400;
    line-height: 1;
    color: #000;
}

.mb-faq-content-wrapper {
    display: grid;
    grid-template-rows: 0fr; 
    transition: grid-template-rows 0.3s ease-out;
}

.mb-faq-item.active .mb-faq-content-wrapper {
    grid-template-rows: 1fr;
}

.mb-faq-content-inner {
    overflow: hidden;
    font-size: 0.9em;
    line-height: 1.6;
    color: #444;
}

.mb-faq-content-inner p {
    margin-bottom: 15px;
}
.mb-faq-item.active .mb-faq-content-inner {
    padding-bottom: 5px; 
}


/* =============================================================
 * 自定义产品列表样式 - Matchbeast 终极整合版 (V29 解决重叠加粗终极版)
 * ============================================================= */

/* --- 1. 基础容器设置 --- */
.shop-container {
    padding: 0 16px;
}

.shop-container .products,
#main .row[class*="-columns-"] {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
}

/* --- 2. [核心修复] 网格线条系统 --- */

/* A. 容器设置 - 停止让父容器画线，改为内边距保护 */
.shop-container .products:not(.flickity-enabled),
#main .row[class*="-columns-"]:not(.slider):not(.row-slider) {
    position: relative;
    border: none !important;
    box-shadow: none !important;
    display: flex;
    flex-wrap: wrap;
    /* 核心：留出 1px padding，防止最上面和最左边的负边距边框被裁切消失 */
    padding-top: 1px !important;
    padding-left: 1px !important;
    padding-bottom: 0 !important;
    padding-right: 0 !important;
}

/* 彻底删除父容器自带的伪元素线条 */
.shop-container .products:not(.flickity-enabled)::before,
#main .row[class*="-columns-"]:not(.slider):not(.row-slider)::before {
    display: none !important;
    content: none !important;
}

/* 强制等高布局，把画线和负边距交给最外层的 .col */
.products .product-small,
#main .row .product-small.col {
    padding: 0 !important; 
    
    /* 1. 把位移加在外层的 col 元素上，让它们真正互相重叠 */
    margin-top: -1px !important;
    margin-left: -1px !important;
    margin-bottom: 0 !important;
    margin-right: 0 !important;
    
    /* 2. 外层负责画边框。原 rgba(0,0,0,0.7) 具有透明度，在边缘重叠时会叠加变黑(0.7+0.7)导致视觉加粗。
          现替换为其在白底上的等价实色 #4c4c4c，完美解决重叠变粗的错觉！ */
    border: 1px solid #4c4c4c !important;
    background-color: #fff !important; 

    display: flex !important; flex-direction: column !important;
}

/* 保证内部 col-inner 充满空间 */
.products .product-small .col-inner,
#main .row .product-small.col .col-inner {
    display: flex; flex: 1; flex-direction: column;
    margin: 0 !important; padding: 0 !important;
}

/* B. 产品单元格设置 - 取消内部的一切画线和偏移 */
.products .product-small .box,
#main .row .product-small .box {
    position: relative; box-shadow: none !important;
    border-radius: 0;
    flex: 1 !important; width: 100% !important;
    display: flex; flex-direction: column;
    transition: background-color 0.2s ease;
    
    border: none !important; /* 清除边框 */
    margin: 0 !important;    /* 清除偏移 */
    background-color: transparent !important; 
}

/* 彻底删除子元素的伪元素线条干扰 */
.products:not(.flickity-enabled) .product-small .box::after,
#main .row:not(.slider):not(.row-slider) .product-small .box::after {
    display: none !important;
    content: none !important;
}

/* --- 3. 特殊页面修正 --- */
.single-product .product-gallery .row[class*="-columns-"]::before { display: none !important; }
.single-product .product-gallery .col { border: none !important; }
.single-product .product-image-slider { margin-bottom: 0 !important; }

/* --- 4. 响应式列宽 --- */
.small-columns-2 .product-small { flex-basis: 50%; }
@media (min-width: 550px) { .medium-columns-3 .product-small { flex-basis: 33.33333333%; } }
@media (min-width: 850px) { .large-columns-4 .product-small { flex-basis: 25%; } }


/* =============================================================
 * 产品内容样式优化 (图片、标题、价格)
 * ============================================================= */
.products .product-small .box-image,
#main .row .product-small .box-image {
    width: 100%; 
    padding-top: 133.3333% !important; 
    padding-bottom: 0 !important;
    position: relative; background-color: #f5f5f5; margin: 0 !important;
}

.products .product-small .box-image img,
#main .row .product-small .box-image img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
}

/* 【悬浮副图效果】 */
.products .product-small .box-image .show-on-hover,
.products .product-small .box-image .back-image,
#main .row .product-small .box-image .show-on-hover,
#main .row .product-small .box-image .back-image {
    display: block !important; 
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0; 
    z-index: 2; 
    transition: opacity 0.4s ease-in-out; 
}

.products .product-small .box:hover .box-image .show-on-hover,
.products .product-small .box:hover .box-image .back-image,
#main .row .product-small .box:hover .box-image .show-on-hover,
#main .row .product-small .box:hover .box-image .back-image {
    opacity: 1;
}

/* 文本区域 */
.products .product-small .box-text,
#main .row .product-small .box-text { 
    padding: 15px 10px !important; 
    text-align: left !important;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.products .product-small .box:hover,
#main .row .product-small .box:hover {
    background-color: #FAFAFA; transform: none; box-shadow: none;
}

/* 兼容可能存在的 box-text-inner */
.products .product-small .box-text-inner,
#main .row .product-small .box-text-inner {
    padding: 0 !important;
    flex-grow: 1; 
    display: flex; 
    flex-direction: column;
}

.products .product-small .title-wrapper .name,
#main .row .product-small .title-wrapper .name {
    font-size: 0.9em; 
    font-weight: 500 !important; 
    color: #222; text-transform: none;
    height: 2.8em; line-height: 1.4em; overflow: hidden;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}

.products .product-small .title-wrapper .name a,
#main .row .product-small .title-wrapper .name a {
    font-weight: 500 !important;
    color: inherit;
}

.products .product-small .title-wrapper,
#main .row .product-small .title-wrapper { flex-grow: 1; }
.products .product-small .price-wrapper,
#main .row .product-small .price-wrapper {
    font-size: 0.9em; font-weight: 600; margin-top: auto;
}

/* 隐藏多余元素 */
.products .product-small .add-to-cart-button,
.products .product-small .quick-view,
#main .row .product-small .add-to-cart-button,
#main .row .product-small .quick-view,
.products .product-small .image-fade,
.products .product-small .image-glow,
.box.has-hover:after { display: none !important; }


/* =============================================================
 * [终极修复] 极简翻页组件 (Pagination) 与其他全局组件
 * ============================================================= */
.woocommerce-pagination ul.page-numbers li,
.woocommerce-pagination ul.page-numbers li *,
.woocommerce-pagination .page-numbers {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important; 
    margin: 0 !important; 
}

.woocommerce-pagination ul.page-numbers li .current::before,
.woocommerce-pagination ul.page-numbers li .current::after {
    display: none !important;
}

.woocommerce-pagination ul.page-numbers {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 5px; 
}

.woocommerce-pagination ul.page-numbers li a,
.woocommerce-pagination ul.page-numbers li span {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    color: #000 !important;
    padding: 8px 12px !important;
    font-weight: 500;
    font-size: 16px; 
    min-width: 36px;
    height: 36px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.woocommerce-pagination ul.page-numbers li a:hover {
    background-color: #f5f5f5 !important;
    border-radius: 4px !important; 
}

.woocommerce-pagination ul.page-numbers li span.current {
    border-bottom: 2px solid #000 !important; 
    font-weight: 700 !important; 
    padding-bottom: 6px !important; 
    height: auto !important;
}

.woocommerce-pagination ul.page-numbers li span.dots {
    padding: 8px !important;
    min-width: auto !important;
    cursor: default;
    background: transparent !important;
    border: none !important;
}

.product-tags-with-images .product-tag-link {
    display: inline-flex; align-items: center;
    border: 1px solid rgba(0,0,0,0.7); padding: 8px 15px; margin: 0 8px 8px 0;
    text-decoration: none !important; color: #000; border-radius: 4px;
}
.woocommerce-breadcrumb { font-weight: normal !important; }


/* =============================================================
 * 单品页 (Single Product) 桌面端布局
 * ============================================================= */
@media (min-width: 850px) {
    .product-main {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }

    .matchbeast-upsells-wrapper {
        position: relative;
        margin-left: 1px !important;
        margin-right: 1px !important;
        padding: 30px;
        background: #fff;
        z-index: 5;
        border: none !important;
        box-shadow: -1px 0 0 0 rgba(0,0,0,0.7), 
                    1px 0 0 0 rgba(0,0,0,0.7),  
                    0 1px 0 0 rgba(0,0,0,0.7),  
                    0 -1px 0 0 rgba(0,0,0,0.7); 
        margin-top: -1px !important;
        margin-bottom: -1px !important;
    }

    .single-product .woocommerce-tabs.wc-tabs-wrapper {
        border-top: 1px solid rgba(0,0,0,0.7) !important; 
        margin-top: -1px !important; 
        border-right: 1px solid rgba(0,0,0,0.7);
        border-bottom: 1px solid rgba(0,0,0,0.7);
        border-left: 1px solid rgba(0,0,0,0.7);
        padding: 15px 10px 35px 10px;
        margin-bottom: -1px;
    }

    .single-product .product-gallery {
        border: 1px solid rgba(0,0,0,0.7); 
        margin-left: 15px;
        padding: 0 !important; 
    }
    
    .single-product .product-info {
        border-top: 1px solid rgba(0,0,0,0.7);
        border-right: 1px solid rgba(0,0,0,0.7);
        border-bottom: 1px solid rgba(0,0,0,0.7);
        padding: 35px; margin-left: -1px; margin-right: 15px;
    }

    .single-product .product-thumbnails {
        margin-top: 15px !important; 
        padding-left: 15px;          
        padding-right: 15px;
        padding-bottom: 8px !important; 
        margin-bottom: 0 !important; 
    }
    
    .single-product .product-thumbnails .col {
        aspect-ratio: 3 / 4; 
        border: 1px solid transparent; 
        opacity: 0.6;
    }
    
    .single-product .product-thumbnails .col.is-nav-selected { 
        opacity: 1 !important; border: 1px solid rgba(0,0,0,0.7);
    }
    
    .single-product .product-footer { margin-bottom: 60px !important; }
}

/* --- 移动端布局修正 --- */
@media (max-width: 849px) {
    .product-main { padding-bottom: 0 !important; }
    .single-product .product-gallery {
        border-top: 1px solid rgba(0,0,0,0.7);
        border-left: 1px solid rgba(0,0,0,0.7);
        border-right: 1px solid rgba(0,0,0,0.7);
        border-bottom: none !important;
        padding: 0 !important; 
        margin: 0 !important; 
        width: 100% !important;
    }
    
    .single-product .product-thumbnails {
        padding: 10px 15px 8px 15px !important; 
        margin-bottom: 0 !important; 
    }

    .single-product .product-info {
        border-left: 1px solid rgba(0,0,0,0.7);
        border-right: 1px solid rgba(0,0,0,0.7);
        border-top: 1px solid rgba(0,0,0,0.7);
        border-bottom: none !important; 
        margin: 0 !important; margin-top: -1px !important; width: 100% !important;
    }
    .single-product .product-footer {
        border: none !important; padding: 0 !important;
        margin-top: 0 !important; margin-bottom: 40px !important; 
    }
    .single-product .product-footer .container {
        width: 100% !important; max-width: 100% !important;
        padding-left: 0 !important; padding-right: 0 !important;
    }

    .single-product .woocommerce-tabs.wc-tabs-wrapper {
        border-left: 1px solid rgba(0,0,0,0.7) !important;
        border-right: 1px solid rgba(0,0,0,0.7) !important;
        border-top: 1px solid rgba(0,0,0,0.7) !important;
        border-bottom: none !important;
        margin: 0 !important; margin-top: -1px !important;
        padding: 15px !important; 
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .related-products-wrapper { 
        padding: 0 !important; 
        margin: 0 !important; 
        margin-top: -1px !important; 
    }
    .related-products-wrapper .row { 
        margin: 0 !important; 
        border-right: 1px solid rgba(0,0,0,0.7); 
        border-bottom: 1px solid rgba(0,0,0,0.7); 
        width: 100% !important;
    }
    .related-products-wrapper .product-small .title-wrapper .name { height: auto; min-height: 3.2em; }
    
    .matchbeast-upsells-wrapper { margin-bottom: 20px; }
}

/* =============================================================
 * 单品页核心组件 (数量、按钮)
 * ============================================================= */
.woocommerce-variation-price {
    border-top: 1px solid rgba(0,0,0,0.7) !important; font-size: .8em; padding: 1.5em 0;
}
.single-product .variations_form .woocommerce-variation-add-to-cart {
    display: flex; align-items: stretch; 
}
.single-product .product-info .quantity {
    flex: 0 0 120px; height: 52px;
    border: 1px solid rgba(0,0,0,0.7) !important; border-radius: 0 !important;
    margin-right: 15px !important; background: #fff;
    display: flex; justify-content: space-between; align-items: center; 
}
.single-product .product-info .quantity .input-text.qty {
    border: none !important; background: transparent !important;
    height: 100% !important; width: 40px !important; text-align: center;
    padding: 0 !important; font-weight: 600; font-size: 1.1em; color: #000;
}
.single-product .product-info .quantity .button.minus, 
.single-product .product-info .quantity .button.plus {
    background: transparent !important; color: #000 !important; border: none !important;
    padding: 0 10px !important; height: 100% !important; font-size: 1.2em;
    display: flex; align-items: center; justify-content: center; box-shadow: none !important;
}
.single-product .product-info .quantity .button:hover { background-color: #f5f5f5 !important; }

.single-product .single_add_to_cart_button {
    background-color: #fff !important; color: #000 !important;
    border: 1px solid rgba(0,0,0,0.7) !important; border-radius: 0 !important; 
    height: 52px; flex-grow: 1; margin: 0 !important;
    text-transform: uppercase; font-weight: 700; letter-spacing: 1.5px;
    padding: 0 20px !important; display: inline-flex; align-items: center; justify-content: center;
    transition: all 0.3s ease;
}
.single-product .single_add_to_cart_button:hover {
    background-color: #000 !important; color: #fff !important; border-color: #000 !important;
}

/* =============================================================
 * Related Products 
 * ============================================================= */
.related-products-wrapper {
    margin-bottom: 30px !important; 
    padding: 0 !important;
    box-sizing: border-box;
}
.related-products-wrapper .row {
    border-top: 1px solid rgba(0,0,0,0.7); 
    border-left: 1px solid rgba(0,0,0,0.7);
}

@media (min-width: 850px) {
    .related-products-wrapper .row {
        border-right: 1px solid rgba(0,0,0,0.7);
        border-bottom: 1px solid rgba(0,0,0,0.7);
    }
}


/* 杂项 */
.product-footer .woocommerce-tabs { border-top: none !important; }
.autocomplete-suggestions .search-name { color: #FFF !important; }
.button-continue-shopping, button[name="update_cart"], .checkout-button.button.alt.wc-forward,
.woocommerce-mini-cart__buttons .button.wc-forward, .woocommerce-mini-cart__buttons .button.checkout {
    background-color: #fff !important; color: #000 !important;
    border: 1px solid rgba(0,0,0,0.7) !important; border-radius: 0 !important;
    text-transform: uppercase; font-weight: 700; letter-spacing: 1.5px;
    display: inline-flex !important; align-items: center !important; justify-content: center !important;
    padding: 12px !important; transition: all 0.3s ease;
}
.button-continue-shopping:hover, button[name="update_cart"]:hover, .checkout-button.button.alt.wc-forward:hover,
.woocommerce-mini-cart__buttons .button.wc-forward:hover, .woocommerce-mini-cart__buttons .button.checkout:hover {
    background-color: #000 !important; color: #fff !important; border-color: #000 !important;
}
.woocommerce-mini-cart__buttons .button.wc-forward, .woocommerce-mini-cart__buttons .button.checkout {
    background-color: #000 !important; color: #fff !important; border-color: #fff !important;
}
.woocommerce-mini-cart__buttons .button.wc-forward:hover, .woocommerce-mini-cart__buttons .button.checkout:hover {
    background-color: #fff !important; color: #000 !important; border-color: #000 !important;
}
.scroll-hint, .grecaptcha-logo, .grecaptcha-badge, .pswp__caption__center, .image-tools, .related-products-wrapper > h3 {
    display: none !important; visibility: hidden !important;
}
.section-title-normal { border-bottom: 1px solid rgba(0,0,0,0.7) !important; }
.has-border { border: none !important; }
.header-top { background-color: #3e3e3e; }
#comments .comment-respond { background-color: #fff !important; }


/* =============================================================
 * [关键修复]：Slider & Upsell 区域 - 强制移除网格线
 * ============================================================= */
.row.slider[class*="-columns-"], 
.row.row-slider[class*="-columns-"],
.matchbeast-upsell-slider {
    border: none !important; box-shadow: none !important;
}
.row.slider[class*="-columns-"]::before, 
.row.row-slider[class*="-columns-"]::before,
.matchbeast-upsell-slider::before {
    display: none !important; content: none !important;
}

.row.slider .product-small .box::after,
.row.row-slider .product-small .box::after,
.matchbeast-upsell-slider .product-small .box::after {
    display: none !important; content: none !important; border: none !important;
}

.matchbeast-upsell-slider .box {
    padding: 10px !important; background: transparent !important;
}
.matchbeast-upsell-slider .box:hover { background: transparent !important; }
.matchbeast-upsell-slider .box-image {
    margin-bottom: 5px !important; padding-top: 0 !important;
}
.matchbeast-upsell-slider .box-image img {
    border: 1px solid #eee; border-radius: 4px;
    background-color: transparent !important; width: 100%;
}
.matchbeast-upsell-slider .product-title {
    font-size: 10px !important; line-height: 1.2;
    margin-bottom: 5px; padding: 0 2px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.matchbeast-upsell-slider .flickity-page-dots { bottom: -15px; }
.matchbeast-upsell-slider .flickity-page-dots .dot {
    width: 6px; height: 6px; opacity: 0.3; background: #000;
}
.matchbeast-mini-upsells-wrapper { margin-bottom: 20px; }


/* -------------------------------------------------------------
 * 修复 Upsell Slider 加载时的"垂直堆叠"跳动问题
 * ------------------------------------------------------------- */
.matchbeast-upsell-slider:not(.flickity-enabled) {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow: hidden !important; 
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    opacity: 1 !important;
}

.matchbeast-upsell-slider:not(.flickity-enabled) .col {
    flex: 0 0 33.333% !important;
    max-width: 33.333% !important;
    width: 33.333% !important;
    display: block !important;
    padding: 0 5px !important; 
    margin: 0 !important;
}



@media (max-width: 849px) {
    .matchbeast-upsell-slider:not(.flickity-enabled) .col {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
    }
}


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


}