@charset "UTF-8";
/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 1.0.1
*/

/**
 * ==================== 性能优化说明 ====================
 * 所有CSS文件已通过 functions/script-style.php 使用 wp_enqueue_style 并行加载
 * 原18个 @import 串行加载已优化为并行加载，性能提升5-10倍
 *
 * 加载的CSS文件列表：
 * - diy.css (基础样式)
 * - css/product.css (产品单页)
 * - css/page.css (单页面)
 * - css/single-archive.css (文章存档)
 * - css/single.css (文章单页)
 * - css/block-faq-list.css (折叠卡)
 * - css/plugin.css (插件)
 * - css/font-type.css (字体)
 * - css/header.css (头部)
 * - css/footer.css (底部)
 * - css/block-btn.css (按钮)
 * - css/clean-layout.css (布局/间距/填充/阴影)
 * - css/icon.css (图标)
 * - css/block-breadcrumb.css (面包屑)
 * - css/block-slider.css (轮播)
 * - css/block-lightbox.css (弹窗)
 * - css/block-tabs.css (切换卡)
 * - css/block-UX.css (UX编辑器，条件加载)
 * ===================================================
 */
 
 

 .header-shadow .header-wrapper, .header-wrapper.stuck, .layout-shadow #wrapper {
    box-shadow: 1px 0px 1px rgb(0 0 0 / 40%);
}

 
 /* ==========================================================================
购物车文字大小
   ========================================================================== */
 .widget_shopping_cart ul.product_list_widget li {
    padding-right: 30px;
    font-size: 12px;
}

 

 .shortcode-wcpr-grid-item {
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    break-inside: avoid-column;
    background-color: #fff;
    padding-bottom: 25px !important;
    padding-top: 25px;
    overflow: hidden;
    border-radius: 3px;
    color: #000;
    font-size: 12px;
}

 
 .wcpr-review-rating {

    justify-content: center !important;

}


 
 
 .villatheme-slider-direction-nav a:before {
    
    display: inline-block;
    content: "\f101";
   
    font-size: 24px;
    line-height: 55px;
}






 .widget-title{
     border-left: 4px solid #eee;
     padding-left: 10px;
     margin-bottom: 10px;
     display:inline-block;
 }
 
 .sidebar-inner .is-divider{
     display: none;
 }
/* ==========================================================================
产品边栏
   ========================================================================== */
 /*边栏最近购买字体缩小*/
 .product_list_widget li .woocs_price_code{
     font-size: 12px;
 }
 .product_list_widget li .product-title{
     font-size: 13px;
    display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; /* 最多显示2行 */
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5em;      /* 每行高度 */
  min-height: 3em;         /* 至少2行的高度 */
  
 }
 
 
 /*订单查询红框添加css*/
 .vi-woocommerce-orders-tracking-form-search .vi-woocommerce-orders-tracking-form-error {
    border: 1px solid #000;
}

/*购物车图标缩小*/
 
 @media (min-width: 851px) {
    .cart-icon strong {
        font-size: .6em;
    }
}


/*变体图标色板定位*/
 .product-small {
     position: relative;
 }
 
.wvs-pro-loaded {
    position: absolute;
    bottom: 220px;
    text-align: right;
    margin: 0 0 0 20px;
}




/* ==========================================================================
产品详情
   ========================================================================== */
   
   
 /*隐藏详情页产品概述*/
 .wcpr-single-product-summary {
    display: none;
    margin: 0 30px;
    width: 100%;
    padding: 20px 0;
}
 
 
 
/*手机加购卖放一行*/

@media (max-width: 549px) {
.woocommerce-variation-add-to-cart, form.cart {
    display: block;

}
}


.goods-right .woocommerce-variation-add-to-cart>*, form.cart>* {
    flex: auto;
    margin: 0;
}

.goods-right-qty-label{
	line-height:40px !important;
}

@media (max-width: 549px) {
    .cart .amazon-buy-button {
        vertical-align: middle;
        margin-top: 10px;
        display: block;
    }
}



/*亚马逊按钮*/
.amazon-buy-button {
    display: inline-flex;
    align-items: center;
    background-color: #008eff;
    color: #fff !important;
    padding: 4px 12px;
    border-radius: 0px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
    margin-bottom: 50px;

}

.amazon-buy-button:hover {
    background-color: #e68a00;
}

.amazon-buy-button i {
    margin-right: 8px;
    font-size: 1.2em;
    vertical-align: middle;
}



.amazon-buy-button {
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
    height: 40px;
}

.cart .amazon-buy-button {
    vertical-align: middle;
}


/*购物车底部固定栏去掉添加的模块*/
.sticky-add-to-cart .goods-right-qty-label{
    display: none;
}

.sticky-add-to-cart .goods-right{
    display: none;
}
/*隐藏标题*/
.sticky-add-to-cart__product .product-title-small {
    display: none;
}

.sticky-add-to-cart .amazon-buy-button{
    display: none;
}

 
 /* ==========================================================================
  头部搜索优化【弹窗】
   ========================================================================== */
/**************  Search lightbox -> 图1风格  **************/

/* 1) 整个遮罩改成白底（不变暗） */
.mfp-bg{
  background:#fffffff5 !important;
  opacity:1 !important;
}

/* 2) 弹窗容器垂直/水平居中 */
.mfp-wrap{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}

/* 3) 弹窗内容区：清空 dark 风格影响 */
.mfp-wrap #search-lightbox{
  background:transparent !important;
  color:#111 !important;
  text-align:center;
  width:min(920px, 86vw);
  padding:0 !important;
}

/* 4) 顶部标题 “Search”（图1那行字） */
.mfp-wrap #search-lightbox::before{
  content:"Search";
  display:block;
  font-size:13px;
  font-weight:300;
  letter-spacing:.02em;
  margin-bottom:22px;
}

/* 5) 输入框整体宽度 & 居中 */
.mfp-wrap #search-lightbox .searchform-wrapper{
  width:100% !important;
  max-width:980px;
  margin:0 auto !important;
}

/* 6) 输入框：细边框、扁平、白底 */
.mfp-wrap #search-lightbox input.search-field{
  height:44px;
  border:1px solid #e6e6e6 !important;
  background:#fff !important;
  box-shadow:none !important;
  font-size:13px;
  font-weight:300;
  padding:0 14px !important;
}

/* 7) 右侧提交按钮：去掉橙色块，改成箭头 */
.mfp-wrap #search-lightbox .ux-search-submit {
    height: 44px;
    width: 42px;
    background: transparent !important;
    border: 1px solid #e6e6e6 !important;
    border-left: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    min-height: 44px;
    min-width: 40px;
}

/* 隐藏原来的放大镜图标 */
.mfp-wrap #search-lightbox .ux-search-submit .icon-search{
  display:none !important;
}

/* 用箭头替代（图1右侧箭头） */
.mfp-wrap #search-lightbox .ux-search-submit::before{
  content:"→";
  display:block;
  font-size:22px;
  line-height:42px;
  color:#111;
}

/* 8) 关闭按钮：不需要的话隐藏（图1没有明显 X） */
.mfp-wrap #search-lightbox .mfp-close{
  display:none !important;
}

/* 9) 结果列表别挡住 */
.mfp-wrap #search-lightbox .live-search-results{
  max-width:980px;
  margin:10px auto 0;
}

/* 10) 手机端适配 */
@media (max-width:768px){
  .mfp-wrap #search-lightbox{
    width:80vw;
  }
  .mfp-wrap #search-lightbox::before{
    margin-bottom:16px;
  }
  .mfp-wrap #search-lightbox input.search-field{
    height:42px;
  }
    .mfp-wrap #search-lightbox .ux-search-submit {
        min-height: 32px;
        min-width: 35px;
        height: 42px;
    }
  .mfp-wrap #search-lightbox .ux-search-submit::before{
    line-height:40px;
    font-size:20px;
  }
}
