@charset "UTF-8";
@import "main.css";
@import url('font/stylesheet.css');

/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/
/* ==================== 优惠券弹窗 ==================== */
/* 弹窗遮罩 */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center; /* 居中显示 */
    align-items: center;     /* 居中显示 */
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* 弹窗主体 */
.popup-container {
    background: white;
    border-radius: 15px;
    padding: 30px 30px 0 30px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    transform: translateY(100%);
    position: relative;
   
}

.popup-overlay.show .popup-container {
    transform: translateY(0);
}

/* 收缩状态：左侧小条 */
.popup-overlay.collapsed {
    background: transparent;
    pointer-events: none;
    opacity: 1;
    visibility: visible;
}

.popup-overlay.collapsed .popup-container {
    position: fixed;
    top: 50%;
    left: -40px;
    transform: translateY(-50%) rotate(90deg);
    max-width: 120px;
    padding: 15px;
    border-radius: 15px 15px 0 0;
    cursor: pointer;
    pointer-events: auto;
    background: white;
    box-shadow: -5px -5px 20px rgba(0, 0, 0, 0.2);
}
/* 收缩时隐藏内容 */
.popup-overlay.collapsed .popup-content,
.popup-overlay.collapsed .close-btn {
    display: none;
}

/* 收缩图标显示 */
.collapse-icon {
    display: none;
    text-align: center;
    font-size: 14px;
    color: #333;
}

.popup-overlay.collapsed .collapse-icon {
    display: block;
}

/* 弹窗内容样式 */
.popup-content {
    display: block;
}

.popup-header {
    text-align: center;
    margin-bottom: 20px;
}

.popup-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.popup-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 25px;
}

/* 按钮 */
.popup-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.popup-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #f3cf46, #286E3E) !important;
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #e9ecef;
}

.btn-secondary:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

/* 关闭按钮 */
.close-btn {
    position: absolute;
    top: 0;
    right: -21px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    width: 24px;
    height: 23px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-btn:hover {
    background: #f0f0f0;
    color: #333;
}

/* 响应式 */
@media (max-width: 480px) {
    .popup-container {
        max-width: 100%;
        border-radius: 15px;
        margin: 0;
    }
    
    .popup-overlay.collapsed .popup-container {
        max-width: 120px;
        border-radius: 15px 15px 0 0;
    }
    
    .popup-buttons {
        flex-direction: column;
    }
    
    .popup-title {
        font-size: 1.5rem;
    }
}




/* ======================产品详情================ */

.stars a.star-5:after {
    content: "★★★★★";
}
.stars a.star-4:after {
    content: "★★★★";
}
.stars a.star-3:after {
    content: "★★★";
}
.stars a.star-2:after {
    content: "★★";
}
.stars a.star-1:after {
    content: "★";
}
.stars a:after {
    color: #ddd;
    content: "★";
    font-size: 16px;
    margin-left: 5px;
}
.stars a:hover:after,
.stars a.active:after {
    color: #ffb300; /* 悬停或激活时变色 */
}

/* Add to Cart 独占一行，线条按钮 */
.goods-info .ux-buy-now-button,
.goods-info .single_add_to_cart_button.button {
    display: block;              
    width: 100%;                 
    background: transparent;     
    color: #333;                
    border: 1px solid #333;            
    padding: 3px 15px;            
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}
.goods-info .ux-buy-now-button{
    background: #333;
    color: #fff;
}

/* 鼠标悬停效果 */
.goods-info .single_add_to_cart_button.button:hover {
    border-color: #000;
    background: #fff8f2 !important;
}
.goods-info .ux-buy-now-button:hover{
    background: #000;
    color: #fff;
}

/*======================首页=======================*/
.home-products-list .title-wrapper h3{
	font-size:15px !important;
}
.dark a:hover {
	color:#000!important;
}

.row-slider .flickity-page-dots {
    bottom: 14px;
}

#top-bar strong {
    text-transform: capitalize;
}



/*======================底部=======================*/
.footer-menu .ux-menu-link .ux-menu-link__text{
    font-size: 16px;
}
.menu-products-menu-container .menu-item-has-children{
    font-size: 16px;
}
.footer-menu .col{
	padding:0px !important;
}

/*======================字体版式=======================*/

/* 字体修改 */
.single_add_to_cart_button,
p,ul,li,a,span{
font-family: 'Montserrat';
}

/* 标题字体修改 */
h1, h2, h3, h4, h5, h6{
   font-family: 'Montserrat' !important;
   font-weight: 500;
}
/*======================产品分类=======================*/
/* 产品分类页全宽 */
.post-type-archive-product .row.row-small {
	max-width: 98%!important;
}

.custom-product-tabs {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 20px;
    display: block;
}

.tax-product_cat .row.row-small,
.tax-product_cat .category-page-row,
.post-type-archive-product .category-page-row{
    max-width: 98%;
    margin: 0 auto;
}

.box-text-products .price{
  margin-top: 12px !important;
  font-size: 16px;

}
.category-page-row{
  padding-top: 0px;
}
.tax-product_cat .category-page-title{
  display: none;
}
#nav_menu-7 .is-divider{
display: none;
}
#nav_menu-7 .menu-products-menu-container{
  margin-top: 20px;
}
#menu-products-menu .sub-menu {
  display: block !important;
}

/* faq样式1 */

/* .active>.toggle {
	transform: rotate(0deg)!important;
} */

.faq-list-01 [aria-expanded="true"] .icon-angle-down::after {
  opacity: 0;
}
.faq-list-01 .accordion .toggle {
	height:100%;
}
.faq-list-01 .icon-angle-down:before {
    content: "";
    width: 21px;
    height: 3px;
    position: absolute;
    background: #fff;
    right: -11px;
    top: -2px;
    z-index: 30;
}
.faq-list-01 .icon-angle-down:after {
    content: "";
    width: 3px;
    height: 21px;
    position: absolute;
    background: #fff;
    right: -2px;
    top: -12px;
    z-index: 30;
	opacity: 1;
  transition: opacity 0.3s ease;
}
.faq-list-01 .accordion-inner{
	border:1px solid #f5f5f5;
}
.faq-list-01 .accordion .toggle {
	transform-origin: 50% 50%;
    right: 0 ;
    left: auto;
	 border-radius: 0;
    margin-right: 0px;
    width: 3em;
    background:var(--fs-color-primary);;
	 top:0!important;
	 opacity: 1;
}
.faq-list-01 .is-large{
	font-size:18px;
}
.faq-list-01 .accordion-title {
    border-top: none;
	  background: #f6f6f8
}
.faq-list-01 .accordion .accordion-item:not(:first-of-type){
  margin-top: 20px;
}

/* .faq-list-01 .accordion-title:before {
    content: ""; 
	  width:20px;
	  height:3px;
    position: absolute;
	background:#333;
	right: 10px;
	z-index:30;
} */

/* 轮播图片底部点点 */
.flickity-page-dots {
	bottom: -40px;
}

/*底部叠加图片*/
.footer-img {
  position: relative;
  overflow: hidden;
}

.footer-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: url(img/map.svg) no-repeat center center;
    background-size: contain;
    pointer-events: none;
    z-index: 1;
    opacity: .1;
}


/*切换卡图片*/

.icon-tabs-1 .nav li.tab:nth-child(1) a::before {
  content: "\f4d8";
  display: contents;
}

.icon-tabs-1 .nav li.tab:nth-child(2) a::before {
  content: "\f0a3"; 
  display: contents;
}

.icon-tabs-1 .nav li.tab:nth-child(3) a::before {
  content: "\e596"; 
  display: contents;
}

.icon-tabs-1 .nav li.tab:nth-child(4) a::before {
  content: "\f5d2"; 
  display: contents;
}

.icon-tabs-1 .nav li.tab:nth-child(5) a::before {
  content: "\e4f3"; 
  display: contents;
}



/*字体渐变*/

.h1-color-1 * {
  background-image: linear-gradient(to right, #fbb5d3 0%, #ffeaea 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.h1-color-2 * {
    background-image: linear-gradient(to right, #9ab1ed 0%, #d1c3ed 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}


.h1-color-3 * {
  background-image: linear-gradient(to right, #ecad48 0%, #f0e8dc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}


/*块背景圆角*/
.bg-r50 .section-bg{
    border-radius: 0 100px 0 0;
}
/*======================文章分类=======================*/
/*文章分类-文章项*/


.archive .post-item .box{
    box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
}

.archive .post-item .box .box-text{
    padding: 10px
}

/*======================头部=======================*/
@media (max-width: 549px) {
	.breadcrumb-item a,
	.breadcrumb-item span{
	font-size:14px!important;
}
	.category-page-row .col{
		padding: 0px 4px 0px 4px !important;
	}
}



.off-canvas:not(.off-canvas-center) .nav-vertical li>a {
    font-size: 14px;
}

#top-bar .html_topbar_left{
	text-align: center;
}
@media (max-width: 549px) {
    #logo img {
        max-height: 46px !important;
    }
}


/*======================表单=======================*/

/*按钮-表单-圆角*/
.ff-default .ff_btn_style {
    border-radius: 0px !important;
    padding: 0;
    margin-bottom: 0;
}




/*平板电脑及以下*/
@media (max-width: 849px) {

	  .button-c {
    font-size: 12px;
	 text-align: center;
  }
	
	 .button-l {
    font-size: 12px!important;
	 text-align: left;
  }
	
}

/*仅限移动设备*/

/*按钮*/
@media (max-width: 549px) {

}


/*无缝滚动logo*/
.logo-list img {
   max-width: 140px
}
.logo-list .swiper-wrapper{
    height: 140px;
 }

.swiper-wrapper {
         -webkit-transition-timing-function: linear;
         -moz-transition-timing-function: linear;
         -ms-transition-timing-function: linear;
         -o-transition-timing-function: linear;
         transition-timing-function: linear;
}