/*@font-face {
    font-family: "icomoon";
    src: url('fonts/icomoon.eot');
    src: url('fonts/icomoon.eot?#iefix') format('embedded-opentype'), url('fonts/icomoon.woff') format('woff'), url('fonts/icomoon.ttf') format('truetype'), url('fonts/icomoon.svg#icomoon') format('svg');
    font-weight: normal;
    font-style: normal;
}
.single-post.woocommerce  input[type=number] {
    -moz-appearance: textfield !important;
}
.single-post.woocommerce input::-webkit-outer-spin-button, input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0;
}

.single-post.woocommerce input[type="number"] {
    -moz-appearance: textfield;
}*/
.woocommerce-message {
    border-color: #FF6651;
}
.woocommerce-message:before {
    color: #FF6651;
}
.woocommerce #respond input#submit, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit.alt, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt,.woocommerce button.button.alt.disabled {
    background-color: #FF6651!important;
    color: #fff!important
}

.woocommerce #respond input#submit:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover, .woocommerce #respond input#submit.alt:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover {
    background-color: #FF6651;
    color: #fff;
    opacity: 0.8
}


.woocommerce div.product .product_title {
    font-weight: 400;
    line-height: 33px;
    letter-spacing: 0px;
    font-style: normal;
    font-size: 19px;
    margin-top: 6px; /* 标题下移一点，和主图顶部的间距更松（2.9.59） */
}
.woocommerce ul.products li.product .woocommerce-loop-category__title, .woocommerce ul.products li.product .woocommerce-loop-product__title, .woocommerce ul.products li.product h3 {
    padding: 0;
    margin: .5em 0;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 3em; /* 2行截断，按钮对齐（2.9.55） */
}
.woocommerce div.product p.price, .woocommerce div.product span.price, .woocommerce ul.products li.product .price {
    color: #ff6651;
}
.woocommerce div.product p.price .woocommerce-Price-amount, .woocommerce div.product span.price .woocommerce-Price-amount, .woocommerce ul.products li.product .price .woocommerce-Price-amount {
    font-weight: bold;
    font-size: 1.2em; /* 价格数字加粗加大一号（2.9.56） */
    line-height: 1; /* 价格行距收紧，上下不空（2.9.73；1.2→1） */
}
/* 可变商品价格行盒钉为 30.6px：与 JS 初始化首帧行盒一致，消除加载抖动（2.9.75） */
body.qzxx-product-variable.woocommerce div.product p.price {
    line-height: 30.6px;
}
.woocommerce-Price-currencySymbol {
    margin-right: .5em
}
.single-post.woocommerce div.product form.cart div.quantity {
    float: left;
    margin: 10px 20px 10px 0;    /*border: 1px solid #dbdbdb;*/
}
.woocommerce button.wc-variation-selection-needed{
    color: #515151!important;
    background-color: #ebe9eb!important;
}
.woocommerce div.product form.cart table.variations td.label {
    width: 70px; /* 变体属性名（规格）列宽（2.9.73） */
    vertical-align: middle; /* 字体上下居中（2.9.73） */
}
/*.single-post.woocommerce div.product form.cart div.quantity {
float: left;
margin: 20px 20px 20px 0;
width: 117px;
border: 1px solid #dbdbdb;
}
.minus, .plus, .single-post.woocommerce  .quantity .qty {
float: left;
border: 0;
margin: 0;
padding: 0;
height: 31px;
text-align: center;
vertical-align: middle;
font-size: 12px;
color: #666666;
-webkit-appearance: none;
border-radius: 0;
line-height: 17px;
font-size: 14px;
height: 37px;
width: 37px;
background-color: #fbfaf9;
}
.minus:hover, .plus:hover {
background: #fff
}
.single-post.woocommerce  .quantity .qty {
line-height: 17px;
font-size: 14px;
height: 37px;
width: 37px;
border-left: 1px solid #e0dede;
border-right: 1px solid #e0dede;
text-align: center;
}*/
.single-post.woocommerce  div.product form.cart .button {
    float: left;
    margin: 10px 10px 10px 0;
    height: 34px; /* 加购/立即购买/收藏三钮统一高度 */
    box-sizing: border-box;
    line-height: 20px;
    font-size: 15px;/*    background:#FF6651;
            color: #ffffff;*/
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#d94133, endColorstr=#d94133);
    border-color: #ffffff;
    padding: 6px 12px;
}
.woocommerce a.added_to_cart {
    margin-left: 1em
}
@media (min-width:1024px) {
    .post-type-archive-product .content, .single-product .content {
        margin-right: 250px;
    }
    .post-type-archive-product .sidebar, .single-product .sidebar {
        width: 220px;
        margin-left: -220px;
    }
    /* 电脑端可变商品标题上移 12px：margin-top 6px→-6px（2.9.74，.woocommerce 类在 body 上须用复合选择器） */
    body.qzxx-product-variable.woocommerce div.product .product_title {
        margin-top: -6px;
    }
}
.woocommerce-page .widget, .widget_shopping_cart {
    border: 1px solid #eee;
    border-radius: 2px;
    padding: 15px;
}
.woocommerce-page .widget h3, .widget_shopping_cart h3 {
    font-size: 15px;
    font-weight: bold;
    line-height: 1;
    background-color: #fbfbfb;
    border-bottom: 1px solid #eee;
    margin: -15px -15px 15px;
    padding: 15px;
}
.woocommerce-page .widget ul, .widget_shopping_cart ul {
    color: #bbb;
}
.woocommerce-page .widget li, .widget_shopping_cart li {
    margin-bottom: 7px;
    list-style: disc;
    margin-left: 20px;
}
.article-content .added_to_cart {
    font-size: 16px;
    margin: 0;
    line-height: 38PX;
    cursor: pointer;
    position: relative;
    text-decoration: none;
    overflow: visible;
    padding: 0 1em;
    font-weight: normal;
    border-radius: 3px;
    border: 0;
    white-space: nowrap;
    display: inline-block;
    background-image: none;
    box-shadow: none;
    -webkit-box-shadow: none;
    text-shadow: none;
    background-color: #f0f0f0;
    text-decoration: none;
    background-image: none;
    color: red;
    top: 2px;
    top: -13px;
}
#tab-description p {
    font-size: 18px;
    font-family: "微软雅黑"
}
.woocommerce nav.woocommerce-pagination {
    margin-bottom: 15px;
    text-align: center;
    font-size: 14px
}
.woocommerce nav.woocommerce-pagination ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
    border: 0;
}
.woocommerce nav.woocommerce-pagination ul li {
    display: inline-block;
    margin: 0 3px;
    float: none;
    border: 0
}
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span {
    display: inline-block;
    padding: 7px 15px;
    border-radius: 2px;
    line-height: 1.4;
}
.woocommerce nav.woocommerce-pagination ul li a {
    text-decoration: none;
    background-color: #ddd;
    color: #666;
    opacity: 1
}
.woocommerce nav.woocommerce-pagination ul li span {
    cursor: default;
    color: #aaa
}
.woocommerce nav.woocommerce-pagination ul li a:hover, .woocommerce nav.woocommerce-pagination ul li a:focus {
    opacity: 0.8
}
.woocommerce nav.woocommerce-pagination ul li .current {
    color: #fff;
    background-color: #aaa
}
.woocommerce nav.woocommerce-pagination ul li .next, .woocommerce nav.woocommerce-pagination ul li .prev {
    background-color: #FF6651;
    color: #fff
}
.wc_btn_tb,
.wc_btn_xiong {
    display: inline-block;
    min-width: 110px;
    height: 35px;
    line-height: 35px;
    padding: 0 18px;
    margin: 0 9px 16px;
    border-radius: 8px;
    vertical-align: middle;
    font-size: 16px;
    font-weight: 500;
    color: #fff !important;
    text-decoration: none !important;
    letter-spacing: 3px;
    background: #FF6651;
    box-shadow: 0 2px 8px rgba(255, 102, 81, .3);
    transition: background .2s ease, box-shadow .2s ease;
}
.wc_btn_tb:hover,
.wc_btn_xiong:hover {
    background: #FC0000;
    box-shadow: 0 6px 16px rgba(252, 0, 0, .4);
    color: #fff;
    text-decoration: none;
}
.wc_btn_tb:active,
.wc_btn_xiong:active {
    background: #FC0000;
    box-shadow: 0 2px 8px rgba(252, 0, 0, .3);
}
.wc_btn_shop {
    background: url(../img/shop.gif) no-repeat;
    display: inline-block;
    width: 135px;
    height: 40px;
    margin: 0 9px;
    border-radius: 3px;
}
.wc_btn_spbf {
    background: url(../img/spbf.gif) no-repeat;
    display: inline-block;
    width: 135px;
    height: 40px;
    margin: 0 9px;
    border-radius: 3px;
}
.woocommerce-product-search {
    overflow: hidden;
}
.woocommerce-product-search label {
    display: none
}
.woocommerce-product-search .search-field {
    float: left;
    color: #999;
    border: solid 1px #eee;
    width: 140px;
    height: 32px;
    padding: 4px 8px;
    border-right: none;
    font-size: 14px;
    border-radius: 2px 0 0 2px;
    outline: none
}
.woocommerce-product-search .search-field:focus {
    border-color: #FF6651
}
.woocommerce-product-search input[type="submit"] {
    float: right;
    color: #fff;
    background-color: #FF6651;
    height: 32px;
    border: none;
    padding: 4px 10px;
    font-size: 14px;
    border-radius: 0 2px 2px 0;
    outline: none;
    opacity: 0.9
}
.woocommerce-product-search input[type="submit"]:hover {
    opacity: 1
}
.woocommerce img, .woocommerce-page img {
    display: block;
    margin: 0 auto;
}
.woocommerce .products {
    margin-right: -2%
}
.woocommerce .products .product-category {
    width: 14.6666666% !important;
    margin: 0 2% 0 0 !important;
    clear: none !important;
    text-align: center;
}
/*.woocommerce .products .product-category.last{width:14.6666666%!important;margin:0 0 0 0!important;clear:none!important;text-align:center;}*/
/*@media (min-width:768px){*/
.woocommerce .products {
    margin-right: -2%
}
.woocommerce .products .product-category .woocommerce-loop-category__title {
    font-size: 12px !important
}
.woocommerce .products .product {
    width: 23% !important;
    margin-right: 2% !important;
}
.woocommerce .products .product-category {
    width: 14.6666666% !important;
    margin: 0 2% 0 0 !important;
    clear: none !important;
    text-align: center;
}
/*.woocommerce .products .product-category.last{width:14.6666666%!important;margin:0 0 0 0!important;clear:none!important;text-align:center;}*/
/*}*/
.woocommerce ul.products li.first, .woocommerce-page ul.products li.first {
    clear: none
}
mark {
    background: none;
    display: none
}
.woocommerce-MyAccount-content mark {
    background: #ffffff;
    color: #ff6651;
    display: inline-block;
}
@media (min-width:1025px) {
    .woocommerce .products .product:nth-child(4n+1) {
        clear: left
    }
}
@media (max-width:1024px) {
    .woocommerce .products .product {
        width: 48% !important;
        margin-right: 2% !important;
    }
    .woocommerce .products .product:nth-child(2n+1) {
        clear: left
    }
    .woocommerce .products .product-category {
        width: 14.6666666% !important;
        margin: 0 2% 0 0 !important;
        clear: none !important;
        text-align: center;
    }
    .woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span {
        padding: 3px 5px;
        font-size: 12px
    }
}
@media (max-width:768px) {
    .woocommerce .products .product {
        width: 48% !important;
        margin-right: 2% !important;
    }
    .woocommerce .products .product:nth-child(2n+1) {
        clear: left
    }
    .woocommerce .products .product-category {
        width: 14.6666666% !important;
        margin: 0 2% 0 0 !important;
        clear: none !important;
        text-align: center;
    }
    /* 手机端吸顶分类条取消「返回主页」小房子（2.9.75） */
    .qzxx-cat-bar-inner a.qzxx-home {
        display: none;
    }
    /* 手机端按钮行：flex 强制一行不换行，按钮整体调小（2.9.67） */
    .single-post.woocommerce div.product form.cart:not(.variations_form),
    .single-post.woocommerce div.product form.cart .woocommerce-variation-add-to-cart {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 10px; /* 四个按钮统一间距（2.9.75） */
        overflow-x: auto;
    }
    .single-post.woocommerce div.product form.cart div.quantity {
        margin: 10px 0;
        flex: 0 0 auto;
    }
    .single-post.woocommerce  div.product form.cart .button {
        margin: 10px 0;
        font-size: 13px;
        font-weight: 400 !important; /* 压过 style.css 暗夜 .darking a.button:not()x5 的 bold（特异性 0,8,1） */
        height: 30px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 6px;
        white-space: nowrap;
        flex: 0 0 auto;/*    background:#FF6651;
                    color: #ffffff;*/
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#d94133, endColorstr=#d94133);
        border-color: #ffffff;
    }
    /* 手机端变身态查看购物车按钮同款缩小，文字垂直居中（2.9.68） */
    .single-post.woocommerce div.product form.cart .single_add_to_cart_button.qzxx-view-cart {
        margin: 10px 0;
        height: 30px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 6px;
        font-size: 13px;
        font-weight: 400 !important;
    }
    /* 手机端两个主按钮固定 100px 宽，剩余空间给收藏/淘宝小按钮拉伸（2.9.75） */
    .single-post.woocommerce div.product form.cart .single_add_to_cart_button,
    .single-post.woocommerce div.product form.cart .checkout_this {
        flex: 0 0 100px;
        width: 100px;
    }
    .single-post.woocommerce div.product form.cart .single-product-fav {
        margin: 10px 0;
        height: 30px;
        padding: 0 6px;
        font-size: 13px;
        font-weight: 400 !important;
        flex: 0 0 auto;
    }
    /* 手机端收藏按钮只留五角星，状态由星色区分（active 橙色），收窄腾出空间（2.9.75） */
    .woocommerce div.product .single-product-fav .wc-fav-text {
        display: none;
    }
    /* 手机端淘宝按钮改用悬浮栏同款购物袋图标（2.9.75） */
    .woocommerce div.product .taobao-button .taobao-btn-text {
        display: none;
    }
    .woocommerce div.product .taobao-button .taobao-btn-svg {
        display: inline-block;
        width: 18px;
        height: 18px;
        vertical-align: middle;
        color: #808080; /* 默认灰标 */
    }
    .woocommerce div.product .taobao-button:hover .taobao-btn-svg {
        color: #ffffff; /* 悬停变白 */
    }
    /* 手机端收藏/淘宝小按钮紧凑，间距统一交给行 gap（2.9.75） */
    .single-post.woocommerce div.product form.cart .single-product-fav {
        flex: 0 0 auto;
    }
    .single-post.woocommerce div.product form.cart .taobao-button {
        flex: 0 0 auto;
    }
    .single-post.woocommerce div.product form.cart .checkout_this {
        margin-left: 0 !important; /* 压掉内联 margin-left:10px，间距统一由 gap 控制 */
    }
    .single-post.woocommerce div.product form.cart .taobao-button {
        margin-right: 0 !important; /* 覆盖内联 style margin-right:10px，行距交给 gap */
    }
    .woocommerce a.added_to_cart {
        /*margin-left:0;*/
        margin-top: .5em
    }
}
.woocommerce a.taobao-button {
    font-weight: normal !important; /* 淘宝按钮字体不加粗（!important 压过暗夜 .darking a.button:not()×5 加粗规则，2.9.73） */
}
.woocommerce a.taobao-button .taobao-btn-svg {
    display: none; /* 购物袋图标仅手机端显示，桌面端保持文字原样（2.9.75） */
}
#native-pay {
    margin: 0 auto;
}
#native-pay table {
    margin-bottom: 0
}
#native-pay table th, #native-pay table td {
    border: 0 !important;
    padding: 0 !important
}
.woocommerce a.request_warranty, .woocommerce a.order-again {
    margin-left: 1em
}
button[name='update_cart'] {
  display: none !important;
}
.woocommerce .woocommerce-tabs h2 {
    display: none;
}
.woocommerce-tabs a:not(.comment-reply-link):not(#cancel-comment-reply-link) {
    font-size: 16px !important;
}
.wc-fav-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 8px 16px;
        border: 1px solid #e0e0e0;
        border-radius: 4px;
        background: #fff;
        color: #333;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 14px;
        margin-top: 10px;
        border-color: #e0e0e0;
    }
    .wc-fav-btn:not(.active):hover {
        border-color: #ff6651;
        color: #fff !important;
        background-color: #ff6651;
    }
    .wc-fav-btn.active {
        background: #ff6651;
        border-color: #ff6651;
        color: #fff;
    }
    .wc-fav-btn.active:hover {
        background: #ff6651;
        border-color: #ff6651;
        color: #fff;
    }
    .wc-fav-icon .fav-icon {
        display: block; /* SVG 星标改为块级避免基线空隙（2.9.81） */
        transition: color 0.3s ease, fill 0.3s ease;
    }
    .wc-fav-btn:not(.active) .fav-icon {
        color: #ccc;
    }
    .wc-fav-btn:not(.active):hover .fav-icon {
        color: #fff !important;
    }
    .wc-fav-btn.active .fav-icon {
        color: #fff !important;
        fill: currentColor; /* 收藏态描边星变实心（2.9.81） */
    }
    .fav-icon.fa-spin {
        animation: fa-spin 1s linear infinite; /* loading 态星形旋转（2.9.81） */
    }
    /* 列表页按钮样式（无修改） */
    .woocommerce ul.products li.product .wc-fav-btn {
    margin-top: 0px;
    padding: 4px 12px;
    font-size: 13px;
    justify-content: center;
    vertical-align: middle !important;
}
    /* 核心修改：商品详情页按钮与价格同行 */
   
.single-product-fav {
    margin: 10px 10px 10px 0; /* 与加购/立即购买按钮同边距，行内对齐（2.9.59） */
    height: 34px; /* 与加购/购买按钮同高；收藏前(.active 无)/收藏后(.active)两态同尺寸 */
    box-sizing: border-box;
    padding: 6px 10px;
    font-size: 13px !important;
}
    
    
    /* 账户收藏页样式（无修改） */
    .woocommerce-MyAccount-content .wc-fav-empty,
    .woocommerce-MyAccount-content .wc-fav-login-tip {
        text-align: center;
        padding: 30px 0;
    }
    .woocommerce-MyAccount-content .button {
        margin-top: 15px;
        padding: 10px 20px;
        background-color: #ff6651;
        border-color: #ff6651;
        color: #fff;
    }
    .woocommerce-MyAccount-content .button:hover {
        background-color: #ff4d3d;
        border-color: #ff4d3d;
    }
    .fa-spin {
        animation: fa-spin 1s linear infinite;
    }
    @keyframes fa-spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }
/* ===== 单商品页「相关产品」品牌卡片风 ===== */
.woocommerce .related.products > h2 {
    position: relative;
    padding-left: 12px;
    margin-bottom: 18px;
    font-size: 20px;
}
.woocommerce .related.products > h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    border-radius: 2px;
    background: #ff6651;
}
.woocommerce .related.products ul.products li.product {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 12px 12px 14px;
    transition: transform .2s ease, box-shadow .2s ease;
}
.woocommerce .related.products ul.products li.product:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}
.woocommerce .related.products ul.products li.product a img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 6px;
}
.woocommerce .related.products ul.products li.product:hover .woocommerce-loop-product__title {
    color: #ff6651;
}
.woocommerce .related.products ul.products li.product a.button {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 8px 0;
    text-align: center;
    border-radius: 6px;
    background-color: #f7f7f7;
    border: 1px solid #e0e0e0;
    color: #333;
    font-size: 14px;
    transition: all .3s ease;
}
.woocommerce .related.products ul.products li.product a.button:hover {
    background-color: #ff6651;
    border-color: #ff6651;
    color: #fff;
    opacity: 1;
}
.woocommerce .related.products ul.products li.product .wc-fav-btn:hover {
    background-color: #ff6651;
    border-color: #ff6651;
    color: #fff;
}
.woocommerce .related.products ul.products li.product .wc-fav-btn:hover .fav-icon {
    color: #fff !important;
}
/* 暗夜模式：相关产品卡片 */
.darking .woocommerce .related.products ul.products li.product {
    background: #2e3a47;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.darking .woocommerce .related.products ul.products li.product .woocommerce-loop-product__title {
    color: #dddddd;
}
.darking .woocommerce .related.products ul.products li.product .wc-fav-btn {
    background: #3a4556;
    border-color: #3a4556;
    color: #dddddd;
}
/* 暗夜模式加购按钮沿用全局规则（橙底白字加粗，style.css 定稿），此处不再覆盖 */
/* ===== 商店页/分类页商品卡片化——与相关产品同款品牌卡片风（2.9.59） ===== */
.woocommerce ul.products li.product.type-product {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 12px 12px 14px;
    transition: transform .2s ease, box-shadow .2s ease;
}
.woocommerce ul.products li.product.type-product:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}
.woocommerce ul.products li.product.type-product a img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    object-position: center;
    border-radius: 6px;
}
.woocommerce ul.products li.product.type-product:hover .woocommerce-loop-product__title {
    color: #ff6651;
}
.woocommerce ul.products li.product.type-product a.button {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 8px 0;
    text-align: center;
    border-radius: 6px;
    background-color: #f7f7f7;
    border: 1px solid #e0e0e0;
    color: #333;
    font-size: 14px;
    transition: all .3s ease;
}
.woocommerce ul.products li.product.type-product a.button:hover {
    background-color: #ff6651;
    border-color: #ff6651;
    color: #fff;
    opacity: 1;
}
/* 暗夜模式：商店商品卡片 */
.darking .woocommerce ul.products li.product.type-product {
    background: #2e3a47;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.darking .woocommerce ul.products li.product.type-product .woocommerce-loop-product__title {
    color: #dddddd;
}
.darking .woocommerce ul.products li.product.type-product .wc-fav-btn {
    background: #3a4556;
    border-color: #3a4556;
    color: #dddddd;
}

/* 商品详情页：主图与介绍图同款卡片阴影 + 圆角（2.9.59）
   后两个选择器与 Woo 核心 div.images img 的 box-shadow:none 同特异性，本文件加载在后即覆盖 */
div.product .woocommerce-product-gallery img,
div.product .images img,
.woocommerce-Tabs-panel img,
.woocommerce div.product div.images img,
.woocommerce-page div.product div.images img {
    border-radius: 6px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* 商品主图统一 3:2：非 600x400 规格的图显示时用 object-fit 裁切成 3:2，不改动原图（2.9.59） */
div.product .woocommerce-product-gallery img,
div.product .images img,
.woocommerce div.product div.images img,
.woocommerce-page div.product div.images img {
    aspect-ratio: 3 / 2;
    object-fit: cover;
    object-position: center;
}

/* 主图与上方分隔线留出间距，避免阴影顶到边框（2.9.59；2.9.75 覆盖首帧变体主图无 wp-post-image 类的情况） */
.woocommerce div.product div.images img.wp-post-image,
.woocommerce-page div.product div.images img.wp-post-image,
.woocommerce div.product div.images .woocommerce-product-gallery__image > img,
.woocommerce-page div.product div.images .woocommerce-product-gallery__image > img {
    margin-top: 10px;
}

/* 货位/分类 meta 行上移：Woo 核心默认表单下边距 2em 太空，收紧（2.9.59） */
.woocommerce div.product form.cart,
.woocommerce-page div.product form.cart {
    margin-bottom: 10px;
}
/* 分类/标签行与上一行之间留同样的呼吸感：span 行内元素 margin-top 无效，先转块级（2.9.59） */
.product_meta .posted_in,
.product_meta .tagged_as {
    display: block;
    margin-top: 4px;
}

/* 商店列表：加购后按钮原地变为「查看购物车」——白底橙描边橙字，悬停实橙（2.9.59）
   首个选择器与上面灰按钮规则同源加高一级，确保覆盖 */
.woocommerce ul.products li.product.type-product a.button.qzxx-view-cart,
.add_to_cart_button.qzxx-view-cart {
    background-color: #fff;
    border-color: #ff6651;
    color: #ff6651;
}
.woocommerce ul.products li.product.type-product a.button.qzxx-view-cart:hover,
.add_to_cart_button.qzxx-view-cart:hover {
    background-color: #ff6651;
    border-color: #ff6651;
    color: #fff;
    opacity: 1;
}
/* 加购成功后去掉 Woo 核心自带的 ::after 对号图标（2.9.59），选择器压过 Woo 核心的 .woocommerce a.button.added::after */
.woocommerce .add_to_cart_button.qzxx-view-cart.added::after {
    content: none;
}
/* 暗夜模式按钮两态：同底色柔和过渡，仅描边/字色从灰蓝→柔橙，避免状态切换生硬（2.9.59） */
.darking .woocommerce ul.products li.product.type-product a.button {
    background-color: #3a4556;
    border-color: #4d5970;
    color: #b8c0d0;
}
/* 暗夜模式：查看我的购物车与加入购物车同色系，描边稍白一档以轻区分，悬停填充橙 */
.darking .woocommerce ul.products li.product.type-product a.button.qzxx-view-cart {
    border-color: #6e7b93;
}
.darking .woocommerce ul.products li.product.type-product a.button.qzxx-view-cart:hover {
    background-color: #ff6651;
    border-color: #ff6651;
    color: #fff;
}
/* 隐藏列表网格里加购后 Woo 追加的「查看购物车」链接 */
.woocommerce ul.products li.product a.added_to_cart {
    display: none;
}
/* 单品页加购按钮改商店同款：灰底描边悬停橙；已加购时由模板直接渲染「查看购物车」链接（同类名，2.9.59）
   全局规则 style.css 的橙底 !important 优先级低一档，此处稳定覆盖 */
.woocommerce div.product .single_add_to_cart_button {
    background-color: #ff6651 !important;
    border: 1px solid #ff6651 !important;
    color: #fff !important;
    transition: all .3s ease-in-out;
}
.woocommerce div.product .single_add_to_cart_button:hover {
    background-color: #ff6651 !important;
    border-color: #ff6651 !important;
    color: #fff !important;
    opacity: 1;
}
/* 已加购态（服务端渲染的链接或 AJAX 变身的按钮）：橙底白字，与「立即购买」样式统一（描边同橙色=无边框观感） */
.woocommerce div.product .single_add_to_cart_button.qzxx-view-cart {
    background-color: #ff6651 !important;
    border-color: #ff6651 !important;
    color: #fff !important;
    display: inline-block;
    margin: 10px 10px 10px 0;
    height: 34px;
    box-sizing: border-box;
    padding: 6px 12px;
    line-height: 20px;
    font-size: 15px;
    text-decoration: none;
}
.woocommerce div.product .single_add_to_cart_button.qzxx-view-cart:hover {
    opacity: .8;
}
/* 单品页按钮暗夜两态：与日间统一橙底白字（2.9.73）；查看购物车态=橙底白字与立即购买统一 */
.darking .woocommerce div.product .single_add_to_cart_button {
    background-color: #ff6651 !important;
    border-color: #ff6651 !important;
    color: #fff !important;
}
.darking .woocommerce div.product .single_add_to_cart_button.qzxx-view-cart {
    background-color: #ff6651 !important;
    border-color: #ff6651 !important;
    color: #fff !important;
}
.darking .woocommerce div.product .single_add_to_cart_button:hover {
    background-color: #ff6651 !important;
    border-color: #ff6651 !important;
    color: #fff !important;
}
/* 可变商品未选规格态（Woo JS 加 disabled / wc-variation-selection-needed 类）：
   与简单商品加购按钮同款灰底，压过 style.css 全局 .button.alt.disabled 的橙底；
   悬停保持灰底（按钮未激活），选中规格后 Woo 移除这些类、自动落入上面的基础规则（2.9.60） */
.woocommerce div.product form.cart .single_add_to_cart_button.wc-variation-selection-needed,
.woocommerce div.product form.cart .single_add_to_cart_button.disabled {
    background-color: #f7f7f7 !important;
    border: 1px solid #e0e0e0 !important;
    color: #333 !important;
    opacity: 1 !important;
}
.woocommerce div.product form.cart .single_add_to_cart_button.wc-variation-selection-needed:hover,
.woocommerce div.product form.cart .single_add_to_cart_button.disabled:hover {
    background-color: #f7f7f7 !important;
    border-color: #e0e0e0 !important;
    color: #333 !important;
    opacity: 1 !important;
}
.darking .woocommerce div.product form.cart .single_add_to_cart_button.wc-variation-selection-needed,
.darking .woocommerce div.product form.cart .single_add_to_cart_button.disabled {
    background-color: #3a4556 !important;
    border-color: #4d5970 !important;
    color: #b8c0d0 !important;
    opacity: 1 !important;
}
/* 商店页分类导航：12 个分类图标包进一个大框面板（2.9.59） */
.woocommerce ul.qzxx-cat-panel {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    padding: 8px 6px;
    margin: 10px 0 15px;
}
.woocommerce ul.qzxx-cat-panel li.product-category {
    width: 16.6666% !important;
    margin: 0 !important;
    float: none !important;
    box-sizing: border-box;
    padding: 8px 6px;
    border-radius: 8px;
    transition: background-color .2s ease;
    text-align: center;
}
.woocommerce ul.qzxx-cat-panel .woocommerce-loop-category__title {
    font-size: 12px !important;
}
/* 分类图标统一 1.25 比例（265/212），修齐高度不一致（智能家居/故障研究原图为 252×190） */
.woocommerce ul.qzxx-cat-panel li.product-category img {
    width: 100%;
    aspect-ratio: 265 / 212;
    object-fit: cover;
    object-position: center;
    border-radius: 6px;
}
.woocommerce ul.qzxx-cat-panel li.product-category:hover .woocommerce-loop-category__title {
    color: #ff6651;
}
.woocommerce ul.qzxx-cat-panel li.product-category:hover {
    background-color: #f7f7f7;
}
/* 暗夜模式：分类面板与商品卡片同底色，悬停浅一档 */
.darking .woocommerce ul.qzxx-cat-panel {
    background-color: #2e3a47;
}
.darking .woocommerce ul.qzxx-cat-panel li.product-category:hover {
    background-color: #3a4556;
}
/* 吸顶分类条：滚过分类面板后从顶部滑出（2.9.59） */
.qzxx-cat-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 98; /* 低于页头(.header 99)：顶部时藏在页头后面，不压头（2.9.75） */
    background-color: rgba(33,37,44,.62);
    -webkit-backdrop-filter: blur(14px) saturate(1.3);
    backdrop-filter: blur(14px) saturate(1.3);
    border-bottom: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 2px 12px rgba(0,0,0,.18);
    transform: translateY(-110%);
    transition: transform .25s ease;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.qzxx-cat-bar::-webkit-scrollbar {
    display: none;
}
.qzxx-cat-bar.qzxx-show {
    transform: translateY(0);
}
.qzxx-cat-bar-inner {
    display: flex;
    align-items: center;
    max-width: 1140px;
    margin: 0 auto;
    padding: 6px 10px;
}
.qzxx-cat-bar-inner a {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-right: 2px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1;
    color: #d9dee6;
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s ease, background-color .2s ease;
}
/* 桌面端 chips 居中；溢出滑动时首尾 auto margin 不裁内容 */
.qzxx-cat-bar-inner a:first-child {
    margin-left: auto;
}
.qzxx-cat-bar-inner a:last-child {
    margin-right: auto;
}
/* 返回主页的小房子：与分类 chip 之间留一点空隙 */
.qzxx-cat-bar-inner a.qzxx-home {
    margin-right: 10px;
    padding: 4px 6px;
}
.qzxx-cat-bar-inner a.qzxx-home svg {
    display: block;
}
.qzxx-cat-bar-inner a img {
    width: 20px;
    height: 20px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}
.qzxx-cat-bar-inner a:hover, .qzxx-cat-bar-inner a.qzxx-current {
    color: #ff8a70;
    background-color: rgba(255,255,255,.12);
}
body.admin-bar .qzxx-cat-bar {
    top: 32px;
}
@media (max-width: 782px) {
    body.admin-bar .qzxx-cat-bar {
        top: 46px;
    }
}
/* 暗夜模式：吸附条（同款毛玻璃） */
.darking .qzxx-cat-bar {
    background-color: rgba(46,58,71,.72);
    border-bottom-color: rgba(255,255,255,.06);
    box-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.darking .qzxx-cat-bar-inner a {
    color: #b8c0d0;
}
.darking .qzxx-cat-bar-inner a:hover, .darking .qzxx-cat-bar-inner a.qzxx-current {
    color: #ff8a70;
    background-color: #3a4556;
}

/* 购物车勾选结算：勾选框并入删除列（不额外占列）+ 已选合计 */
.woocommerce-cart .qzxx-cart-selectbar {
    display: flex;
    align-items: center;
    margin: 0 0 8px;
    font-size: 14px;
    color: var(--tb--base);
}
.woocommerce-cart .qzxx-select-all-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
}
/* 勾选框：红色圆角方块 + 白色对勾（自定义外观，与设计图一致） */
.woocommerce-cart input.qzxx-cs-box {
    -webkit-appearance: none;
    appearance: none;
    width: 26px;
    height: 26px;
    margin: 0;
    cursor: pointer;
    vertical-align: middle;
    border: 1px solid #d8d8d8;
    border-radius: 6px;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 72% 72%;
    transition: background-color .15s ease, border-color .15s ease;
}
.woocommerce-cart input.qzxx-cs-box:checked {
    border-color: #ff6651;
    background-color: #ff6651;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.6 12.4l4.6 4.6 10.2-10.2' fill='none' stroke='%23fff' stroke-width='4.2' stroke-linecap='butt' stroke-linejoin='miter'/%3E%3C/svg%3E");
}
.woocommerce-cart input.qzxx-cs-box:indeterminate {
    border-color: #ff6651;
    background-color: #ff6651;
    background-image: linear-gradient(#fff, #fff);
    background-size: 56% 4px;
}
.woocommerce-cart input.qzxx-cs-box:focus-visible {
    outline: 2px solid rgba(255, 102, 81, .45);
    outline-offset: 2px;
}
.woocommerce-cart table.cart td.product-remove a.remove {
    margin: 0;
    vertical-align: middle;
}
@media (min-width: 769px) {
    /* 电脑端：全选条隐藏，全选放入表头首格，勾选框与删除按钮同处一格 */
    .woocommerce-cart .qzxx-cart-selectbar {
        display: none;
    }
    .woocommerce-cart input.qzxx-cs-box {
        width: 25px;
        height: 25px;
    }
    .woocommerce-cart table.cart th.product-remove {
        padding-left: 8px;
        padding-right: 8px;
    }
    .woocommerce-cart table.cart th.product-remove .qzxx-select-all-label {
        gap: 4px;
        font-size: 13px;
        font-weight: normal;
        white-space: nowrap;
    }
    .woocommerce-cart table.cart th.product-remove input.qzxx-select-all {
        width: 25px;
        height: 25px;
    }
    .woocommerce-cart table.cart th.product-remove,
    .woocommerce-cart table.cart td.product-remove {
        width: 100px;
        text-align: center;
        vertical-align: middle;
        white-space: nowrap;
    }
}
.woocommerce-cart .qzxx-selection-tip {
    margin: 0 0 10px;
    text-align: right;
    font-size: 13px;
    color: #ff6651;
}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    font-weight: 700;
}
.woocommerce-cart .wc-proceed-to-checkout.qzxx-no-selection a.checkout-button {
    pointer-events: none;
    opacity: .45;
}
.darking .woocommerce-cart .qzxx-cart-selectbar,
.darking .woocommerce-cart #qzxx-selected-count,
.darking .woocommerce-cart #qzxx-selected-total {
    color: var(--tb--base);
}
.darking .woocommerce-cart table.cart th.product-remove .qzxx-select-all-label {
    color: var(--tb--base);
}
.darking .woocommerce-cart input.qzxx-cs-box {
    border-color: rgba(255, 255, 255, .28);
    background-color: #2e3a47;
}
.darking .woocommerce-cart input.qzxx-cs-box:checked,
.darking .woocommerce-cart input.qzxx-cs-box:indeterminate {
    border-color: #ff6651;
    background-color: #ff6651;
}
@media (max-width: 768px) {
    .woocommerce-cart table.cart td.product-remove {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }
    /* 手机端删除按钮：与电脑端一致，只显示圈叉图标，不再显示「删除商品」文字 */
    .woocommerce-cart table.cart td.product-remove .remove {
        font-size: 0 !important;
        color: transparent !important;
        width: auto !important;
        height: auto !important;
        line-height: 1;
    }
    .woocommerce-cart table.cart td.product-remove .remove::before {
        content: "";
        display: inline-block;
        width: 32px;
        height: 32px;
        margin-right: 0;
        font-size: 0;
        background-color: #ff6651;
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z'/%3E%3C/svg%3E") no-repeat center / contain;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z'/%3E%3C/svg%3E") no-repeat center / contain;
        vertical-align: middle;
    }
    .woocommerce-cart .qzxx-cart-selectbar {
        margin: 0 10px 8px;
    }
    .woocommerce-cart .qzxx-selection-tip {
        padding-right: 10px;
    }
}
.darking .woocommerce-cart table.cart td.product-remove .remove::before {
    background-color: #ffffff;
}
