/* 
 Theme Name:   astra child
 Theme URI:    https://lmks.155.a020.net
 Description:  astra child
 Author:       admin
 Author URI:   https://lmks.155.a020.net
 Template:     astra
 Version:      1.49
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html

 /* == Add your own styles below this line ==
--------------------------------------------*/
html {
    margin-top: 0px !important;
}
:root {
    --ast-global-color-0: #cd3333;
}
.product_title.entry-title+p.price,
.product_meta{
    display: none;
}
.woocommerce-js div.product form.cart .single_variation_wrap .single_variation{
    margin-bottom: .2em;
}

.site-main .woovr-variations[class*="woovr-variations-grid"] .woovr-variation.woovr-variation-active{
    border-color: #cd3333 !important;
}
.site-main .woovr-variations[class*="woovr-variations-grid"] .woovr-variation:before{
    line-height: 22px;
    font-size: 12px;
    top: 12px;right: 12px;
}
.site-main .woovr-variations[class*="woovr-variations-grid"] .woovr-variation.woovr-variation-active:before{
    background: #cd3333;
}
.site-main .woovr-variations[class*="woovr-variations-grid"] .woovr-variation .woovr-variation-info{
    width: 100%;
    text-align: left;
}
.site-main .woovr-variations[class*="woovr-variations-grid"] .woovr-variation-radio .woovr-variation-name{
    font-size: 16px !important;
    white-space: nowrap;
    overflow: hidden;
    padding-right: 30px;
    text-overflow: ellipsis;
}
.iconf0{font-size: 0;}
.ulnm ul{
    margin: 0;
}
.tItem .elementor-widget-text-editor p{
    margin-bottom: 4px;
}
a:focus{outline: 0 !important;}
.ast-builder-menu-1 .main-header-menu > .menu-item > .sub-menu, .ast-builder-menu-1 .main-header-menu > .menu-item > .astra-full-megamenu-wrapper {
    background-color: #242423;
}
.case-item{
    aspect-ratio: 460/345;
    position: relative;
}
.case-item::after{
    content: '';
    position: absolute;
    width: 100%;height: 100%;
    top: 0;left: 0;
    background: rgba(0,0,0,0.5);
    transition: opacity .3s;
}
.case-item:last-child::after{
    background: rgba(255,255,255,0.3);
}
.case-item:hover::after{
    opacity: 0.5;
}
#number2 .elementor-counter .elementor-counter-number-suffix{
    font-size: 34px;
}
.tabBox.elementor-widget-n-tabs .e-n-tabs-heading{
    background-image: url('bg.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
}
.tabBox.elementor-widget-n-tabs .e-n-tabs-heading button{
    background: #0000;
    
}
.tabBox.elementor-widget-n-tabs .e-n-tabs-heading button span{
    display: block;
}
.footerForm form{
    --srfm-row-gap-between-blocks: 2px;
    --srfm-column-gap-between-blocks: 16px;
}
nav ul.hfe-breadcrumbs li a{
    text-decoration: none !important;
}
nav .hfe-breadcrumbs-show-home .hfe-breadcrumbs-item .hfe-breadcrumbs-home-icon svg{
    fill: #cd3333 !important;
}
.site-header{
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999999;
}
.site-content{
    margin-top: 80px;
}
/*头部搜索*/
.ast-search-menu-icon.slide-search .search-form{
    transform: none;
    position: fixed;
    top: 80px;
    width: 100vw;
    right: 0;
    justify-content: center;
    background: #242423;
    padding: 0 0 20px;
    border: none;
}
.ast-desktop .ast-header-search .slide-search .search-form{
    border: none;
}
.ast-search-menu-icon.slide-search .search-form label{
    background: #fff;
    display: flex;
    border-radius: 5px;
}
.ast-search-menu-icon.slide-search .search-form input{
    border: none !important;
    height: 43px;
    font-size: 17px;
}
.ast-search-menu-icon.slide-search .search-form .search-submit{
    display: block;
    border-radius: 0;
    background: #cc3333;
    color: #fff;
    font-weight: 500;
    padding: 0;
    font-size: 17px;
    width: 96px;
    border-radius: 0 5px 5px 0;
}
.ast-search-menu-icon.slide-search .search-form .search-submit:focus{
    color: #fff;
}
.ast-search-menu-icon.slide-search .search-form .search-submit i{
    display: none;
}
.ast-search-menu-icon.slide-search .search-form .search-submit span{
    display: block;
}
.ast-search-menu-icon.slide-search .search-form input:-moz-placeholder{color: #414141;} 
.ast-search-menu-icon.slide-search .search-form input:-ms-input-placeholder{color: #414141;}
.ast-search-menu-icon.slide-search .search-form input::-webkit-input-placeholder{color: #414141;}

/*头部搜索---结束*/

/*头部语言*/
.gtranslate_wrapper{
    padding: 10px 0;
    position: relative;
    /*cursor: pointer;*/
}
/*.gtranslate_wrapper:hover .gt_white_content{*/
/*    display: block;*/
/*}*/
.gtranslate_wrapper .gt_switcher-popup{
    color: #0000 !important;
    opacity: 0.85;
    width: 26px;
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    /*pointer-events: none;*/
}
.gtranslate_wrapper .gt_switcher-popup span,
.gtranslate_wrapper .gt_switcher-popup img{display: none;}
.gtranslate_wrapper .gt_black_overlay{display: none !important;}
.gtranslate_wrapper .gt_white_content{
    position: absolute;
    height: auto;
    width: auto;
    border-radius: 4px;
    padding: 2px 15px;
    top: 100%;
    background: #242423;
    margin: 0;
    transform: translateX(-50%);
    box-shadow: 0 0px 6px -2px #fbfbfb59;
}
.gtranslate_wrapper .gt_switcher-popup{
    background-image: url(./global.svg);
}
.gtranslate_wrapper .gt_languages img{
    /*width: 50px;*/
    box-shadow: 1px -1px 4px rgba(0, 0, 0, 0.1);
}
.gtranslate_wrapper .gt_white_content .gt_languages {
    max-height: unset;
}
.gtranslate_wrapper .gt_white_content .gt_languages a{
    flex-basis: unset;
    transition: all .2s;
    color: rgba(242,245,247,0.76);
    width: max-content;
}
.gtranslate_wrapper .gt_white_content .gt_languages a:last-child{
    border: none;
}
.gtranslate_wrapper .gt_white_content .gt_languages a:hover{
    
}
.gtranslate_wrapper .gt_white_content .gt_languages a.gt-current-lang{
    color: #fff;
}
.gtranslate_wrapper .gt_white_content .gt_languages span{
    line-height: normal;
}
.eael-simple-menu-container .eael-simple-menu.eael-simple-menu-horizontal li{
    width: 33.333%;
}
/*头部语言--结束*/

.site-header-focus-item .ast-site-identity{
    padding: 0;
}
.custom-product-category+.single-product-category{
    display: none !important;
}
.custom-product-category a,
.single-product-category a,.product_meta .posted_in a,
.woocommerce div.product span.price, 
.woocommerce ul.products li.product .price, .woocommerce div.product p.price{
    color: #cd3333;
}
.woocommerce-js div.product p.price del, .woocommerce-js div.product span.price del,
.woocommerce ul.products li.product .price del,
.woocommerce div.product p.price del{
    color: #999;
    opacity: 1;
    font-size: 0.8em;
}
.single-product-category a:hover,.product_meta .posted_in a:hover{
    color: #cd3333;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active:before, .woocommerce div.ast-product-tabs-layout-vertical .woocommerce-tabs ul.tabs li:hover::before{
    background: #cd3333;
}
.ast-on-card-button{
    display: none;
}
.ast-article-single .astra-shop-summary-wrap a.ast-loop-product__link,
.ast-article-single .astra-shop-summary-wrap a.button{
    display: none !important;
}
.woocommerce-js .related.products li a:hover{
    color: #cd3333;
}
.woocommerce-js .related.products li.product{
    box-shadow: 0 0px 4px #00000024;
    border-radius: 8px;
    cursor: pointer;
    transition: box-shadow .3s;
}
.woocommerce-js .related.products li:hover{
    box-shadow: 0 2px 10px -2px #00000026;
}
.woocommerce-js .related.products li.product .astra-shop-summary-wrap,
.woocommerce-js .related.products li.product .woocommerce-loop-product__title{
    padding: 0 12px;
}
.related.products .custom-thumbnail{
    background: #f5f5f5;
    padding: 10px;
    border-radius: 8px;
    overflow: hidden;
    border-bottom: 1px solid #f5f5f5;
}
.related.products .custom-thumbnail img{
    margin: 0 !important;
    object-fit: cover;
    transition: opacity .4s ease, transform .5s ease;
}
.related.products .custom-thumbnail .product-hover-image{
    position: absolute;
    top: 0;left: 0;
    opacity: 0;
}
.related.products .custom-thumbnail:hover .custom-img{
    opacity: 0;
}
.related.products .custom-thumbnail:hover .product-hover-image{
    opacity: 1;
}
.related.products .custom-thumbnail:hover img{
    transform: scale(1.05);
}
.cus-btn{
    padding: 10px 30px;
    display: inline-block;
    border-radius: 6px;
    background: #cd3333;
    color: #fff;
}
.cus-btn:hover{
    color: #fff;
    background: #b12828;
}
.related.products .custom-thumbnail .discount{
    position: absolute;
    background: #cd3333;
    color: #fff;
    font-size: 13px;
    text-align: center;
    padding: 4px 0;
    width: 60px;
    top: 10px;right: 10px;
    border-radius: 6px;
}

/*产品详情图片按钮*/
.woocommerce-product-gallery .gallery-nav-btn{
    position: absolute;
    left: 9px;
    color: var(--ast-global-color-3);
    background: #f9f6fe;
    font-size: 0;
    width: 40px;
    aspect-ratio: 1;
    z-index: 9;
    /*top: 190px;*/
    top: calc(50% - 18px);
    cursor: pointer;
    border-radius: 6px;
    padding: 6px;
    user-select: none;
}
.woocommerce-product-gallery .gallery-nav-next{
    left: auto;
    right: 9px;
}
.woocommerce-product-gallery .gallery-nav-btn:hover{
    background: var(--ast-global-color-0);
    color: #fff;
}
.woocommerce-product-gallery .gallery-nav-btn:hover .icon path{
    fill: #fff;
}
.adSwiper{margin-top: 16px;}
.adSwiper .swiper {
    --swiper-navigation-size: 18px;
    --swiper-theme-color: #cd3333;
}
.adSwiper .swiper .swiper-button-next, .adSwiper .swiper .swiper-button-prev{
    font-weight: 700;
}
.adSwiper .swiper .ad-item{
    position: relative;
}
.adSwiper .swiper .ad-item .ad-img{
    aspect-ratio: 1;
}
.adSwiper .swiper .ad-item .ad-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.adSwiper .swiper .ad-item .ad-name{
    position: absolute;
    width: 100%;left: 0;bottom: 0;
    padding: 0 18px;
    background: rgba(0, 0, 0, 0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 35px;
    font-size: 14px;
    margin: 0;
    color: #fff !important;
    text-align: center;
}
.woocommerce-variation-add-to-cart{
    display: none;
}
.flex-control-nav.flex-control-thumbs{
    display: none;
}
.h_proswiper{
    position: relative;
    padding: 0 60px;
}
.h_proswiper .swiper-button{
    color: var(--ast-global-color-3);
    background: #f9f6fe;
    font-size: 0;
    width: 40px;
    aspect-ratio: 1;
    cursor: pointer;
    border-radius: 6px;
    padding: 6px;
    height: auto;
    user-select: none;
    --swiper-navigation-size: 16px;
    margin: 0;
    transform: translateY(-50%);
    font-weight: bold;
}
.h_proswiper .swiper-button:hover{
    background: #cd3333;
    color: #fff;
}
.h_proswiper .swiper-button-prev{
    left: 9px;
}
.h_proswiper .swiper-button-next{
    right: 9px;
}
.h_proswiper .swiper-button.swiper-button-disabled{
    opacity: 1;
    cursor: pointer;
    pointer-events: unset;
}
.h_proswiper .swiper-slide{
    border: 1px solid #eee;
    padding: 4px;
    cursor: pointer;
    box-sizing: border-box;
}
.h_proswiper .swiper-slide img{
    opacity: .5;
}
.h_proswiper .swiper-slide.active{
    border-color: #cd3333;
}
.h_proswiper .swiper-slide.active img{
    opacity: 1;
}
@media (max-width: 1024px) {
    .downList .item .elementor-widget-image{
        aspect-ratio: 176/75;
    }
    .downList .item .elementor-widget-image img{
        object-fit: contain;
    }
    #number2 .elementor-counter .elementor-counter-number-suffix {
        font-size: 24px;
    }
    .tabBox.elementor-widget-n-tabs .e-n-tabs-heading{
        background-image: none;
        background-color: #fff;
        padding: 10px;
    }
    .tabBox.elementor-widget-n-tabs .e-n-tabs-heading button{
        background: #eee;
    }
}
@media (max-width: 921px) {
    .site-content{
        margin-top: 70px;
    }
    .ast-search-menu-icon.slide-search .search-form{
        top: 70px;
    }
    .ast-search-menu-icon.slide-search .search-form .search-submit,
    .ast-search-menu-icon.slide-search .search-form input{
        font-size: 16px;
    }
    .site-header-section>div:last-child{
        padding: 0;
    }
    .gtranslate_wrapper .gt_switcher-popup{
        opacity: 1;
    }
}
@media (max-width: 768px) {
    .h_mHide{display: none !important;}
}
@media (max-width: 544px) {
    
    .site-content{
        margin-top: 60px;
    }
    .ast-search-menu-icon.slide-search .search-form{
        top: 60px;
        padding-bottom: 17px;
    }
    .ast-search-menu-icon.slide-search .search-form .search-submit{
        width: 90px;
    }
    /*.gtranslate_wrapper .gt_white_content{width: 315px;}*/
    
    .tabBox.elementor-widget-n-tabs .e-n-tabs-heading button{
        border-top: 2px solid #ddd !important;
    }
    .tabBox.elementor-widget-n-tabs .e-n-tabs-heading button[aria-selected="true"]{
        border: none !important;
    }
    .downList{
        box-shadow: none !important;
    }
    .downList .item{
        box-shadow: -4px -4px 10px rgba(0, 0, 0, 0.1) inset !important;
    }
    .services2 .item{
        aspect-ratio: 340/242;
    }
    .site-content .ast-container #primary{
        padding: 15px 0;
    }
    .h_proswiper {
        display: none;
        padding: 0 50px;
    }
    .h_proswiper .swiper-button-prev,
    .woocommerce-product-gallery .gallery-nav-btn{
        left: 0;
    }
    .h_proswiper .swiper-button-next,
    .woocommerce-product-gallery .gallery-nav-next{right: 0;left: auto;}
}

/* 调整二级菜单字体大小 */
.ast-desktop .main-header-menu .sub-menu a {
    font-size: 13px !important; /* 可根据需要调整，如12px、14px */
}
/* 调整下拉菜单宽度 */
.ast-desktop .main-header-menu .sub-menu {
    width: 270px !important; /* 可根据需要调整，如240px、260px */
}