/*
Theme Name: Astra Child
Template: astra
Version: 2.0
Description: 巴西电商站定制样式 - 大气版
*/

/* =========================================================
   0. 全局：禁止水平滚动
   ========================================================= */

html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
}

/* 隐藏商品详情页的分类 */
.single-product .product_meta .posted_in,
.single-product .single-product-category {
    display: none !important;
}

/* 隐藏结账页订单摘要里的商品元数据 */
.wc-block-components-order-summary-item .wc-block-components-product-metadata,
.wc-block-components-order-summary-item .wc-block-components-product-metadata__description,
.wc-block-components-order-summary-item .wc-block-components-product-name + .wc-block-components-product-metadata,
.wc-block-checkout .wc-block-components-product-metadata,
.woocommerce-checkout .shop_table .cart_item .product-name .variation,
.woocommerce-checkout .shop_table .cart_item .product-name p,
.woocommerce-checkout .shop_table .cart_item .product-name .wc-item-meta {
    display: none !important;
}


/* =========================================================
   1. 商品详情页 - 按钮巴西配色
   ========================================================= */

.single-product div.product form.cart button.single_add_to_cart_button,
.single-product div.product form.cart button.rgtbnb-btn {
    white-space: nowrap !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    letter-spacing: 0.5px !important;
    padding: 14px 28px !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
    text-shadow: none !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    min-width: 180px;
    margin: 5px 6px;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.single-product div.product form.cart button.single_add_to_cart_button {
    background: linear-gradient(135deg, #009C3B 0%, #00b34a 100%) !important;
    color: #ffffff !important;
    border: 2px solid #FFDF00 !important;
    box-shadow: 0 6px 18px rgba(0, 156, 59, 0.35) !important;
}

.single-product div.product form.cart button.single_add_to_cart_button:hover {
    background: linear-gradient(135deg, #00b34a 0%, #009C3B 100%) !important;
    border-color: #ffffff !important;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 156, 59, 0.5) !important;
}

.single-product div.product form.cart button.rgtbnb-btn {
    background: linear-gradient(135deg, #FFDF00 0%, #FFC400 100%) !important;
    color: #002776 !important;
    border: 2px solid #002776 !important;
    box-shadow: 0 6px 18px rgba(255, 200, 0, 0.45) !important;
}

.single-product div.product form.cart button.rgtbnb-btn:hover {
    background: linear-gradient(135deg, #FFC400 0%, #FFDF00 100%) !important;
    color: #009C3B !important;
    border-color: #009C3B !important;
    transform: translateY(-2px) scale(1.02);
}

.single-product div.product form.cart button.rgtbnb-btn *,
.single-product div.product form.cart button.rgtbnb-btn span {
    color: #002776 !important;
}

.single-product div.product form.cart .quantity input.qty {
    height: 52px !important;
    line-height: 52px !important;
    box-sizing: border-box !important;
}

@media (max-width: 544px) {
    .single-product div.product form.cart button.single_add_to_cart_button,
    .single-product div.product form.cart button.rgtbnb-btn {
        width: 100% !important;
        min-width: unset !important;
        margin: 6px 0 !important;
    }
}


/* =========================================================
   2. 商品列表 / 店铺页 - 按钮巴西配色
   ========================================================= */

.woocommerce ul.products li.product .add_to_cart_button,
.woocommerce ul.products li.product a.wp-block-button__link.add_to_cart_button,
.woocommerce ul.products li.product a.wp-block-button__link.ajax_add_to_cart,
.wp-block-button__link.add_to_cart_button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #009C3B, #00C853) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    letter-spacing: 0.3px !important;
    padding: 12px 22px !important;
    box-shadow: 0 6px 18px rgba(0, 156, 59, 0.35) !important;
    text-decoration: none !important;
    text-transform: none !important;
    text-shadow: none !important;
    transition: all 0.25s ease !important;
    cursor: pointer !important;
}

.woocommerce ul.products li.product .add_to_cart_button:hover,
a.wp-block-button__link.add_to_cart_button:hover {
    background: linear-gradient(135deg, #00822F, #00B34A) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 156, 59, 0.5) !important;
}

.woocommerce ul.products li.product .wpcbn-btn,
.woocommerce ul.products li.product .rgtbnb-btn {
    background: linear-gradient(135deg, #FFDF00, #FFC400) !important;
    color: #002776 !important;
    box-shadow: 0 4px 14px rgba(255, 200, 0, 0.4) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    padding: 12px 22px !important;
    text-decoration: none !important;
}

.woocommerce ul.products li.product .wpcbn-btn *,
.woocommerce ul.products li.product .rgtbnb-btn * {
    color: #002776 !important;
}

.woocommerce ul.products li.product .price {
    color: #009C3B !important;
    font-weight: 800 !important;
}

.woocommerce ul.products li.product .price ins,
.woocommerce ul.products li.product .price bdi {
    color: #009C3B !important;
    text-decoration: none !important;
}


/* =========================================================
   3. 移动端 - 商品详情页 (≤ 768px)
   ========================================================= */

@media (max-width: 768px) {

    .single-product .site-content .ast-container {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .single-product div.product {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }

    .single-product div.product .woocommerce-product-gallery,
    .single-product div.product .summary.entry-summary {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .single-product div.product .woocommerce-product-gallery img {
        border-radius: 14px !important;
    }

    .single-product div.product .product_title {
        font-size: 22px !important;
        line-height: 1.3 !important;
        font-weight: 800 !important;
        margin-bottom: 12px !important;
        color: #111 !important;
    }

    .single-product div.product .summary .price {
        font-size: 26px !important;
        font-weight: 800 !important;
        color: #009C3B !important;
        margin-bottom: 14px !important;
    }

    .single-product div.product .summary .price ins,
    .single-product div.product .summary .price bdi {
        color: #009C3B !important;
        text-decoration: none !important;
    }

    .single-product div.product .woocommerce-product-details__short-description {
        font-size: 15px !important;
        line-height: 1.75 !important;
        color: #444 !important;
        margin-bottom: 18px !important;
    }

    .single-product div.product form.cart {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 14px !important;
        padding: 0 !important;
        margin: 16px 0 0 0 !important;
        width: 100% !important;
    }

    .single-product div.product form.cart .quantity {
        margin: 0 !important;
        float: none !important;
        display: inline-flex !important;
        align-items: center !important;
    }

    .single-product div.product form.cart .quantity input.qty {
        height: 50px !important;
        line-height: 50px !important;
        width: 70px !important;
        padding: 0 8px !important;
        font-size: 16px !important;
        text-align: center !important;
        border: 2px solid #e5e7eb !important;
        border-radius: 10px !important;
        background: #fafbfc !important;
        box-sizing: border-box !important;
    }

    .single-product div.product form.cart button.single_add_to_cart_button,
    .single-product div.product form.cart button.rgtbnb-btn {
        flex: 1 1 auto !important;
        height: 50px !important;
        min-height: 50px !important;
        padding: 0 16px !important;
        margin: 0 !important;
        float: none !important;
        font-size: 15px !important;
        border-radius: 12px !important;
        min-width: unset !important;
    }

    .single-product div.product .product_meta {
        font-size: 13px !important;
        color: #666 !important;
        margin-top: 16px !important;
    }

    .single-product .woocommerce-tabs ul.tabs {
        padding: 0 !important;
        margin: 0 0 16px 0 !important;
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        border-bottom: none !important;
    }

    .single-product .woocommerce-tabs ul.tabs li {
        margin: 0 !important;
        float: none !important;
    }

    .single-product .woocommerce-tabs ul.tabs li a {
        display: block !important;
        padding: 10px 14px !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        color: #333 !important;
        background: #f2f4f7 !important;
        border-radius: 10px !important;
        border: none !important;
    }

    .single-product .woocommerce-tabs ul.tabs li.active a {
        background: #009C3B !important;
        color: #fff !important;
    }

    .single-product .woocommerce-tabs .panel {
        padding: 0 !important;
        font-size: 15px !important;
        line-height: 1.75 !important;
        color: #333 !important;
    }

    .single-product .related.products,
    .single-product .upsells.products {
        margin-top: 36px !important;
    }

    .single-product .related.products > h2,
    .single-product .upsells.products > h2 {
        font-size: 20px !important;
        font-weight: 800 !important;
        text-align: center !important;
        margin-bottom: 20px !important;
    }

    .single-product .related.products ul.products,
    .single-product .upsells.products ul.products {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 14px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .single-product .related.products ul.products li.product,
    .single-product .upsells.products ul.products li.product {
        width: 100% !important;
        margin: 0 !important;
        float: none !important;
    }

    .single-product #reviews {
        margin-top: 36px !important;
    }

    .single-product #reviews h2,
    .single-product #reviews .woocommerce-Reviews-title {
        font-size: 20px !important;
        font-weight: 800 !important;
        text-align: center !important;
        margin-bottom: 20px !important;
    }

    .single-product #reviews .comment-form input[type="text"],
    .single-product #reviews .comment-form input[type="email"],
    .single-product #reviews .comment-form textarea {
        width: 100% !important;
        font-size: 15px !important;
        padding: 12px 14px !important;
        border: 2px solid #e5e7eb !important;
        border-radius: 10px !important;
        background: #fafbfc !important;
        box-sizing: border-box !important;
    }

    .single-product #reviews .comment-form .submit,
    .single-product #reviews .form-submit input[type="submit"] {
        width: 100% !important;
        height: 50px !important;
        background: linear-gradient(135deg, #009C3B, #00C853) !important;
        color: #fff !important;
        border: none !important;
        border-radius: 12px !important;
        font-size: 16px !important;
        font-weight: 800 !important;
        box-shadow: 0 6px 18px rgba(0, 156, 59, 0.35) !important;
    }
}


/* =========================================================
   4. 移动端 - 商品列表卡片精致化 (≤ 768px)
   ========================================================= */

@media (max-width: 768px) {

    .woocommerce ul.products {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .woocommerce ul.products li.product {
        display: flex !important;
        flex-direction: column !important;
        background: #ffffff !important;
        border-radius: 12px !important;
        padding: 10px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
        border: 1px solid #eceff1 !important;
        margin: 0 !important;
        height: 100% !important;
        box-sizing: border-box !important;
    }

    .woocommerce ul.products li.product a img {
        width: 100% !important;
        aspect-ratio: 1 / 1 !important;
        object-fit: cover !important;
        border-radius: 8px !important;
        margin-bottom: 8px !important;
    }

    .woocommerce ul.products li.product .ast-woo-product-category,
    .woocommerce ul.products li.product .woocommerce-loop-category__title {
        font-size: 10px !important;
        color: #999 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        margin: 0 0 4px 0 !important;
        line-height: 1.2 !important;
    }

    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 13px !important;
        font-weight: 700 !important;
        color: #222 !important;
        line-height: 1.35 !important;
        margin: 0 0 6px 0 !important;
        padding: 0 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        min-height: 36px !important;
    }

    .woocommerce ul.products li.product .atv-rating {
        margin: 0 0 6px 0 !important;
        transform: scale(0.85) !important;
        transform-origin: left center !important;
    }

    .woocommerce ul.products li.product .price {
        font-size: 14px !important;
        font-weight: 800 !important;
        color: #009C3B !important;
        margin: 0 0 10px 0 !important;
        line-height: 1.4 !important;
        display: block !important;
    }

    .woocommerce ul.products li.product .price del,
    .woocommerce ul.products li.product .price del .woocommerce-Price-amount {
        font-size: 11px !important;
        color: #999 !important;
        font-weight: 500 !important;
        text-decoration: line-through !important;
        margin-right: 4px !important;
    }

    .woocommerce ul.products li.product .price ins,
    .woocommerce ul.products li.product .price ins .woocommerce-Price-amount {
        color: #009C3B !important;
        text-decoration: none !important;
        font-weight: 800 !important;
    }

    .woocommerce ul.products li.product .add_to_cart_button,
    .woocommerce ul.products li.product a.wp-block-button__link.add_to_cart_button {
        margin-top: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        min-height: 38px !important;
        height: auto !important;
        padding: 8px 4px !important;
        font-size: 12px !important;
        font-weight: 800 !important;
        border: none !important;
        border-radius: 8px !important;
        background: linear-gradient(135deg, #009C3B, #00C853) !important;
        color: #ffffff !important;
        box-shadow: 0 4px 10px rgba(0, 156, 59, 0.2) !important;
        text-decoration: none !important;
        text-transform: none !important;
        line-height: 1.3 !important;
        white-space: normal !important;
        word-break: break-word !important;
        transition: all 0.25s ease !important;
    }

    .woocommerce ul.products li.product .add_to_cart_button:active {
        transform: scale(0.97) !important;
    }

    #ast-scroll-top {
        background-color: #009C3B !important;
        color: #ffffff !important;
        border-radius: 50% !important;
        width: 42px !important;
        height: 42px !important;
        line-height: 42px !important;
        box-shadow: 0 4px 12px rgba(0, 156, 59, 0.4) !important;
    }

    .vb-footer-bottom {
        padding: 16px 12px !important;
    }
    .vb-footer-links a {
        font-size: 12px !important;
        padding: 6px 10px !important;
    }
}


/* =========================================================
   5. 购物车 (Cart Block) —— 大气卡片 + 巴西配色
   支持 WooCommerce Cart Block（区块版）
   ========================================================= */

/* ===== 5.1 全宽容器：打穿所有宽度限制 ===== */
body.woocommerce-cart .site-content,
body.woocommerce-cart .site-content .ast-container,
body.woocommerce-cart .ast-container,
body.woocommerce-cart #content,
body.woocommerce-cart #primary,
body.woocommerce-cart .entry-content,
body.woocommerce-cart .ast-article-single,
.wp-block-woocommerce-cart,
.wc-block-cart,
.wc-block-components-sidebar-layout.wc-block-cart,
.wc-block-components-sidebar-layout {
    max-width: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
}

/* 桌面端容器左右留白 24px，移动端在媒体查询里会缩小 */
.wp-block-woocommerce-cart,
.wc-block-cart,
.wc-block-cart__main,
.wc-block-cart__sidebar {
    padding-left: 24px !important;
    padding-right: 24px !important;
}

body.woocommerce-cart .site-content .ast-container {
    background: #f4f6f8 !important;
    padding-top: 28px !important;
    padding-bottom: 48px !important;
}

/* ===== 5.2 页面标题 Carrinho ===== */
body.woocommerce-cart .entry-title,
body.woocommerce-cart h1 {
    font-size: 30px !important;
    font-weight: 900 !important;
    color: #111 !important;
    padding-bottom: 14px !important;
    margin: 0 0 24px 0 !important;
    border-bottom: 4px solid #009C3B !important;
    line-height: 1.3 !important;
}

/* ===== 5.3 布局：左右两栏（PC） ===== */
@media (min-width: 1000px) {
    .wc-block-components-sidebar-layout.wc-block-cart {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 380px !important;
        gap: 24px !important;
        align-items: start !important;
    }

    .wc-block-cart__main {
        grid-column: 1 !important;
    }

    .wc-block-cart__sidebar {
        grid-column: 2 !important;
        position: sticky !important;
        top: 24px !important;
    }
}

/* ===== 5.4 商品列表卡片 ===== */
.wc-block-cart-items,
table.wc-block-cart-items {
    width: 100% !important;
    max-width: 100% !important;
    table-layout: auto !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: #ffffff !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid #eceff1 !important;
}

.wc-block-cart-items__row,
tr.wc-block-cart-items__row {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

.wc-block-cart-items__row:last-child,
tr.wc-block-cart-items__row:last-child {
    border-bottom: none !important;
}

/* 图片单元格 */
td.wc-block-cart-item__image {
    width: 110px !important;
    min-width: 110px !important;
    max-width: 110px !important;
    padding: 20px 18px 20px 20px !important;
    box-sizing: border-box !important;
    vertical-align: middle !important;
}

td.wc-block-cart-item__image img {
    width: 110px !important;
    height: 110px !important;
    object-fit: cover !important;
    border-radius: 14px !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06) !important;
    display: block !important;
}

/* 商品信息单元格 */
td.wc-block-cart-item__product {
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    padding: 20px 16px !important;
    box-sizing: border-box !important;
    vertical-align: middle !important;
}

td.wc-block-cart-item__product .wc-block-components-product-name {
    display: block !important;
    width: 100% !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    color: #111 !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    white-space: normal !important;
    margin-bottom: 8px !important;
}

td.wc-block-cart-item__product .wc-block-components-product-name:hover {
    color: #009C3B !important;
}

/* 商品价格（原价 + 折后价）*/
td.wc-block-cart-item__product .wc-block-cart-item__prices {
    font-size: 15px !important;
    margin-bottom: 8px !important;
}

td.wc-block-cart-item__product .wc-block-components-product-price del {
    color: #999 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-decoration: line-through !important;
    margin-right: 8px !important;
}

td.wc-block-cart-item__product .wc-block-components-product-price ins {
    color: #009C3B !important;
    font-weight: 800 !important;
    text-decoration: none !important;
}

/* 数量框 */
.wc-block-cart-item__quantity {
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-top: 8px !important;
}

.wc-block-components-quantity-selector {
    display: inline-flex !important;
    align-items: center !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: #fafbfc !important;
    height: 44px !important;
    padding: 0 !important;
    transition: all 0.25s ease !important;
}

.wc-block-components-quantity-selector:hover {
    border-color: #009C3B !important;
}

.wc-block-components-quantity-selector__button {
    width: 40px !important;
    height: 40px !important;
    background: #f0f4f2 !important;
    color: #009C3B !important;
    border: none !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
}

.wc-block-components-quantity-selector__button:hover {
    background: #009C3B !important;
    color: #ffffff !important;
}

.wc-block-components-quantity-selector__button:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

.wc-block-components-quantity-selector input,
.wc-block-components-quantity-selector__input {
    width: 52px !important;
    text-align: center !important;
    border: none !important;
    background: transparent !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #111 !important;
    height: 40px !important;
    -moz-appearance: textfield !important;
    padding: 0 !important;
}

.wc-block-components-quantity-selector input::-webkit-outer-spin-button,
.wc-block-components-quantity-selector input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

/* 删除按钮 */
.wc-block-cart-item__remove-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    background: #fff0f0 !important;
    color: #d32f2f !important;
    border-radius: 50% !important;
    text-decoration: none !important;
    line-height: 1 !important;
    transition: all 0.25s ease !important;
    padding: 0 !important;
}

.wc-block-cart-item__remove-link svg {
    width: 20px !important;
    height: 20px !important;
    fill: currentColor !important;
}

.wc-block-cart-item__remove-link:hover {
    background: #d32f2f !important;
    color: #ffffff !important;
    transform: rotate(90deg) !important;
}

/* 小计价格单元格 */
td.wc-block-cart-item__total {
    width: auto !important;
    max-width: 200px !important;
    min-width: 110px !important;
    white-space: nowrap !important;
    text-align: right !important;
    vertical-align: middle !important;
    padding: 20px 20px 20px 8px !important;
    box-sizing: border-box !important;
}

td.wc-block-cart-item__total .wc-block-cart-item__total-price-and-sale-badge-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 8px !important;
    width: 100% !important;
}

td.wc-block-cart-item__total .wc-block-cart-item__total-price,
td.wc-block-cart-item__total .wc-block-components-product-price,
td.wc-block-cart-item__total .wc-block-formatted-money-amount {
    font-size: 20px !important;
    font-weight: 900 !important;
    color: #009C3B !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

td.wc-block-cart-item__total .wc-block-components-product-badge.wc-block-components-sale-badge {
    display: inline-block !important;
    padding: 3px 10px !important;
    border-radius: 20px !important;
    background: #f0faf4 !important;
    color: #009C3B !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
}

/* ===== 5.5 侧栏（订单摘要卡片） ===== */
.wc-block-cart__sidebar,
.wc-block-components-sidebar-layout .wc-block-cart__sidebar {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.wc-block-cart__sidebar > * {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.wc-block-components-totals-wrapper,
.wc-block-cart__sidebar .wc-block-components-totals-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    background: #ffffff !important;
    border-radius: 18px !important;
    border: 1px solid #eceff1 !important;
    padding: 22px 20px !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06) !important;
    margin-bottom: 18px !important;
    box-sizing: border-box !important;
}

.wc-block-components-totals-item,
.wc-block-components-totals-wrapper .wc-block-components-totals-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 12px 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
    font-size: 15px !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.wc-block-components-totals-item__label {
    font-weight: 600 !important;
    color: #444 !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    font-size: 15px !important;
}

.wc-block-components-totals-item__value {
    font-weight: 800 !important;
    color: #009C3B !important;
    text-align: right !important;
    white-space: nowrap !important;
    flex: 0 0 auto !important;
    font-size: 15px !important;
}

/* 总计行 */
.wc-block-components-totals-footer-item,
.wc-block-components-totals-wrapper .wc-block-components-totals-footer-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-top: 2px solid #009C3B !important;
    border-bottom: none !important;
    padding: 18px 0 6px 0 !important;
    margin-top: 8px !important;
    gap: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #111 !important;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value * {
    font-size: 26px !important;
    font-weight: 900 !important;
    color: #009C3B !important;
    white-space: nowrap !important;
}

/* ===== 5.6 “Finalizar Compra”按钮 —— 巴西绿 ===== */
.wc-block-cart__submit-container,
.wp-block-woocommerce-cart .wc-block-cart__submit-container {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.wc-block-cart__submit-button,
.wc-block-cart__submit .wc-block-components-button,
.wp-block-woocommerce-cart .wc-block-cart__submit-button,
.wp-block-woocommerce-cart .wc-block-components-button,
.wp-block-woocommerce-cart a.wc-block-components-button,
.wp-block-woocommerce-cart button.wc-block-components-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 60px !important;
    background: linear-gradient(135deg, #009C3B, #00C853) !important;
    background-color: #009C3B !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 16px !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 10px 28px rgba(0, 156, 59, 0.4) !important;
    text-decoration: none !important;
    text-transform: none !important;
    padding: 0 28px !important;
    box-sizing: border-box !important;
    transition: all 0.3s ease !important;
    text-shadow: none !important;
    cursor: pointer !important;
    margin-top: 8px !important;
}

.wc-block-cart__submit-button:hover,
.wc-block-cart__submit .wc-block-components-button:hover,
.wp-block-woocommerce-cart .wc-block-cart__submit-button:hover,
.wp-block-woocommerce-cart .wc-block-components-button:hover,
.wp-block-woocommerce-cart .wp-block-button__link:hover {
    background: linear-gradient(135deg, #00822F, #00B34A) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 14px 36px rgba(0, 156, 59, 0.55) !important;
}

.wc-block-cart__submit-button *,
.wc-block-cart__submit .wc-block-components-button *,
.wp-block-woocommerce-cart .wc-block-cart__submit-button *,
.wp-block-woocommerce-cart .wc-block-components-button * {
    color: #ffffff !important;
    font-weight: 800 !important;
}

/* ===== 5.7 隐藏优惠券 ===== */
.wc-block-cart__coupon-form,
.wc-block-components-totals-coupon,
.wc-block-components-totals-coupon__content,
.wc-block-components-totals-coupon-link,
.wc-block-cart__sidebar .wc-block-components-panel,
.wc-block-cart .wc-block-components-totals-coupon-link {
    display: none !important;
}

/* ===== 5.8 空购物车 ===== */
.wc-block-cart__empty-cart__title,
.wp-block-woocommerce-cart .wc-block-cart__empty-cart__title {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #333 !important;
    text-align: center !important;
    padding: 40px 20px !important;
    line-height: 1.6 !important;
}

.wp-block-woocommerce-cart .wp-block-heading {
    color: #111 !important;
    border-bottom: 2px solid #009C3B !important;
    padding-bottom: 12px !important;
}

/* ===== 5.9 推荐商品按钮 ===== */
.wc-block-grid__product-add-to-cart .wp-block-button__link,
.wc-block-grid__product-add-to-cart a.wp-block-button__link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #009C3B, #00C853) !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    padding: 12px 18px !important;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(0, 156, 59, 0.25) !important;
    transition: all 0.25s ease !important;
}

.wc-block-grid__product-add-to-cart .wp-block-button__link:hover {
    background: linear-gradient(135deg, #00822F, #00B34A) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
}

/* ===== 5.10 移动端购物车 ===== */
@media (max-width: 999px) {

    .wp-block-woocommerce-cart,
    .wc-block-cart,
    .wc-block-cart__main,
    .wc-block-cart__sidebar {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    body.woocommerce-cart .entry-title,
    body.woocommerce-cart h1 {
        font-size: 24px !important;
    }

    /* 商品卡片：移动端改成堆叠式 */
    .wc-block-cart-items,
    table.wc-block-cart-items {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }

    .wc-block-cart-items__row,
    tr.wc-block-cart-items__row {
        display: grid !important;
        grid-template-columns: 100px minmax(0, 1fr) !important;
        grid-template-rows: auto auto auto auto !important;
        column-gap: 14px !important;
        row-gap: 8px !important;
        align-items: start !important;
        background: #ffffff !important;
        border-radius: 16px !important;
        padding: 16px !important;
        margin-bottom: 14px !important;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05) !important;
        border: 1px solid #eceff1 !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        border-bottom: none !important;
    }

    .wc-block-cart-items__row td {
        display: block !important;
        width: auto !important;
        max-width: 100% !important;
        padding: 0 !important;
        border: none !important;
    }

    td.wc-block-cart-item__image {
        grid-column: 1 !important;
        grid-row: 1 / 5 !important;
        width: 100px !important;
        min-width: 100px !important;
        max-width: 100px !important;
    }

    td.wc-block-cart-item__image img {
        width: 100px !important;
        height: 100px !important;
        border-radius: 12px !important;
    }

    td.wc-block-cart-item__product {
        grid-column: 2 !important;
        grid-row: 1 / 5 !important;
        padding: 0 !important;
    }

    td.wc-block-cart-item__product .wc-block-components-product-name {
        font-size: 15px !important;
        line-height: 1.4 !important;
        margin-bottom: 6px !important;
    }

    td.wc-block-cart-item__product .wc-block-cart-item__prices {
        font-size: 14px !important;
        margin-bottom: 8px !important;
    }

    .wc-block-cart-item__quantity {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px !important;
        width: 100% !important;
        margin-top: 8px !important;
    }

    .wc-block-components-quantity-selector {
        height: 40px !important;
    }

    .wc-block-components-quantity-selector__button {
        width: 36px !important;
        height: 36px !important;
        font-size: 18px !important;
    }

    .wc-block-components-quantity-selector input,
    .wc-block-components-quantity-selector__input {
        width: 44px !important;
        height: 36px !important;
        font-size: 15px !important;
    }

    td.wc-block-cart-item__total {
        grid-column: 2 !important;
        grid-row: 4 !important;
        width: auto !important;
        max-width: 100% !important;
        min-width: 0 !important;
        text-align: left !important;
        margin-top: 6px !important;
        padding: 0 !important;
    }

    td.wc-block-cart-item__total .wc-block-cart-item__total-price-and-sale-badge-wrapper {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 10px !important;
    }

    td.wc-block-cart-item__total .wc-block-cart-item__total-price,
    td.wc-block-cart-item__total .wc-block-components-product-price,
    td.wc-block-cart-item__total .wc-block-formatted-money-amount {
        font-size: 18px !important;
    }

    /* 侧栏卡片 */
    .wc-block-components-totals-wrapper,
    .wc-block-cart__sidebar .wc-block-components-totals-wrapper {
        padding: 18px 16px !important;
        border-radius: 16px !important;
    }

    .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
        font-size: 17px !important;
    }

    .wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
    .wc-block-components-totals-footer-item .wc-block-components-totals-item__value * {
        font-size: 22px !important;
    }

    .wc-block-cart__submit-button,
    .wc-block-cart__submit .wc-block-components-button,
    .wp-block-woocommerce-cart .wc-block-cart__submit-button,
    .wp-block-woocommerce-cart .wc-block-components-button {
        min-height: 56px !important;
        font-size: 16px !important;
        border-radius: 14px !important;
    }
}

/* ===== 5.11 极窄屏 (≤ 480px) ===== */
@media (max-width: 480px) {

    .wp-block-woocommerce-cart,
    .wc-block-cart,
    .wc-block-cart__main,
    .wc-block-cart__sidebar {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .wc-block-cart-items__row,
    tr.wc-block-cart-items__row {
        grid-template-columns: 84px minmax(0, 1fr) !important;
        padding: 12px !important;
    }

    td.wc-block-cart-item__image,
    td.wc-block-cart-item__image img {
        width: 84px !important;
        height: 84px !important;
        min-width: 84px !important;
        max-width: 84px !important;
    }

    td.wc-block-cart-item__product .wc-block-components-product-name {
        font-size: 14px !important;
    }
}


/* =========================================================
   6. 结账页 - 通用（PC + 移动端）
   ========================================================= */

.woocommerce-checkout .site-content .ast-container {
    padding: 32px 24px !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
    background: #f4f6f8 !important;
}

.woocommerce-checkout #customer_details,
.woocommerce-checkout #order_review {
    box-sizing: border-box !important;
}

@media (min-width: 769px) {
    .woocommerce-checkout #customer_details {
        display: flex !important;
        gap: 28px !important;
        align-items: flex-start !important;
    }

    .woocommerce-checkout #customer_details .col-1,
    .woocommerce-checkout #customer_details .col-2 {
        flex: 1 1 50% !important;
        width: 50% !important;
        float: none !important;
    }

    .woocommerce-checkout #order_review_heading {
        margin-top: 28px !important;
    }
}

.woocommerce-checkout button.button,
.woocommerce-checkout input.button,
.woocommerce-checkout a.button,
.wc-block-checkout .wc-block-components-button,
.wc-block-checkout button.wc-block-components-button,
.wc-block-checkout a.wc-block-components-button {
    background: linear-gradient(135deg, #009C3B, #00C853) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    font-weight: 800 !important;
    box-shadow: 0 6px 18px rgba(0, 156, 59, 0.3) !important;
    transition: all 0.25s ease !important;
    text-shadow: none !important;
    padding: 12px 24px !important;
}

.woocommerce-checkout button.button:hover,
.woocommerce-checkout input.button:hover,
.woocommerce-checkout a.button:hover,
.wc-block-checkout .wc-block-components-button:hover {
    background: linear-gradient(135deg, #00822F, #00B34A) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 156, 59, 0.45) !important;
}

.wc-block-components-checkout-place-order-button,
button.wc-block-components-checkout-place-order-button,
.wc-block-components-button.wc-block-components-checkout-place-order-button,
.woocommerce-checkout #place_order {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 56px !important;
    min-height: 56px !important;
    background: linear-gradient(135deg, #009C3B, #00C853) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 14px !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    box-shadow: 0 8px 24px rgba(0, 156, 59, 0.35) !important;
    padding: 0 24px !important;
    text-shadow: none !important;
    text-transform: none !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
}

.wc-block-components-checkout-place-order-button *,
.woocommerce-checkout #place_order * {
    color: #ffffff !important;
    font-weight: 800 !important;
}

.wc-block-checkout .wc-block-components-checkout-return-to-cart-button,
.wc-block-checkout .wc-block-components-checkout-return-to-cart-button:hover {
    background: transparent !important;
    color: #009C3B !important;
    box-shadow: none !important;
    border: 2px solid #009C3B !important;
    transform: none !important;
}

.wc-block-checkout .wc-block-components-checkout-return-to-cart-button * {
    color: #009C3B !important;
}


/* =========================================================
   7. 结账页 - 移动端（≤ 768px）
   ========================================================= */

@media (max-width: 768px) {

    .wc-block-checkout,
    .wc-block-checkout__main,
    .wc-block-checkout__sidebar,
    .wc-block-checkout .wp-block-woocommerce-checkout,
    .wc-block-checkout .wc-block-components-checkout-step,
    .wc-block-checkout .wp-block-woocommerce-checkout-order-summary-block,
    .woocommerce-checkout .site-content,
    .woocommerce-checkout .site-content .ast-container,
    .woocommerce-checkout .ast-container,
    .woocommerce-checkout .woocommerce,
    .woocommerce-checkout form.checkout {
        max-width: 100% !important;
        width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        box-sizing: border-box !important;
    }

    .woocommerce-checkout .site-content .ast-container,
    .wc-block-checkout {
        background: #f4f6f8 !important;
    }

    .wc-block-checkout .wc-block-components-sidebar,
    .wc-block-checkout .wc-block-checkout__sidebar,
    .wc-block-checkout .wc-block-components-checkout-step,
    .wc-block-checkout .wp-block-woocommerce-checkout-order-summary-block,
    .woocommerce-checkout #customer_details,
    .woocommerce-checkout #order_review,
    .woocommerce-checkout .woocommerce-checkout-payment,
    .woocommerce-checkout .woocommerce-billing-fields,
    .woocommerce-checkout .woocommerce-shipping-fields,
    .woocommerce-checkout .woocommerce-additional-fields {
        background: #ffffff !important;
        border-radius: 14px !important;
        padding: 16px 14px !important;
        margin-bottom: 16px !important;
        box-shadow: 0 4px 16px rgba(0,0,0,0.04) !important;
        border: 1px solid #eceff1 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .wc-block-checkout h2,
    .wc-block-checkout h3,
    .wc-block-checkout .wc-block-components-checkout-step__title,
    .wc-block-checkout .wc-block-components-title,
    .woocommerce-checkout h1,
    .woocommerce-checkout h2,
    .woocommerce-checkout h3,
    .woocommerce-checkout #order_review_heading {
        font-size: 19px !important;
        font-weight: 800 !important;
        color: #111 !important;
        margin: 20px 0 12px 0 !important;
        padding-bottom: 10px !important;
        border-bottom: 2px solid #009C3B !important;
        line-height: 1.35 !important;
    }

    .woocommerce-checkout .form-row {
        margin-bottom: 16px !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .woocommerce-checkout .form-row label {
        font-size: 14px !important;
        font-weight: 700 !important;
        color: #333 !important;
        margin-bottom: 6px !important;
        display: block !important;
    }

    .woocommerce-checkout .form-row input[type="text"],
    .woocommerce-checkout .form-row input[type="email"],
    .woocommerce-checkout .form-row input[type="tel"],
    .woocommerce-checkout .form-row input[type="password"],
    .woocommerce-checkout .form-row textarea,
    .woocommerce-checkout .form-row select,
    .wc-block-checkout .wc-block-components-text-input input,
    .wc-block-checkout .wc-block-components-select select,
    .wc-block-checkout .wc-block-components-textarea textarea,
    .wc-block-checkout input[type="text"],
    .wc-block-checkout input[type="email"],
    .wc-block-checkout input[type="tel"],
    .wc-block-checkout input[type="password"] {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        border: 2px solid #e5e7eb !important;
        border-radius: 10px !important;
        background: #fafbfc !important;
        height: 48px !important;
        padding: 0 14px !important;
        font-size: 15px !important;
        color: #222 !important;
        -webkit-appearance: none !important;
        appearance: none !important;
    }

    .woocommerce-checkout .form-row textarea,
    .wc-block-checkout .wc-block-components-textarea textarea {
        height: auto !important;
        min-height: 90px !important;
        padding: 12px 14px !important;
        line-height: 1.6 !important;
    }

    .woocommerce-checkout .form-row input:focus,
    .woocommerce-checkout .form-row textarea:focus,
    .woocommerce-checkout .form-row select:focus,
    .wc-block-checkout .wc-block-components-text-input input:focus,
    .wc-block-checkout .wc-block-components-select select:focus,
    .wc-block-checkout .wc-block-components-textarea textarea:focus {
        border-color: #009C3B !important;
        background: #fff !important;
        box-shadow: 0 0 0 3px rgba(0, 156, 59, 0.12) !important;
        outline: none !important;
    }

    .woocommerce-checkout .wc_payment_method,
    .wc-block-components-radio-control__option {
        background: #fafbfc !important;
        border: 2px solid #e5e7eb !important;
        border-radius: 12px !important;
        padding: 14px 16px !important;
        margin-bottom: 10px !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }

    .woocommerce-checkout .wc_payment_method:has(input:checked),
    .wc-block-components-radio-control__option:has(input:checked),
    .wc-block-checkout .wc-block-components-radio-control__option--checked {
        border-color: #009C3B !important;
        background: #f0faf4 !important;
        box-shadow: 0 0 0 3px rgba(0, 156, 59, 0.08) !important;
    }

    .wc-block-components-order-summary-item {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: flex-start !important;
        gap: 12px !important;
        padding: 14px 0 !important;
        border-bottom: 1px solid #f0f0f0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .wc-block-components-order-summary-item__image {
        flex: 0 0 72px !important;
        width: 72px !important;
        max-width: 72px !important;
        min-width: 72px !important;
        height: 72px !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .wc-block-components-order-summary-item__image img {
        width: 72px !important;
        height: 72px !important;
        max-width: 72px !important;
        object-fit: cover !important;
        border-radius: 10px !important;
        display: block !important;
        border: 1px solid #e5e7eb !important;
    }

    .wc-block-components-order-summary-item__description {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        max-width: none !important;
        padding: 0 !important;
        margin: 0 !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
        text-align: left !important;
    }

    .wc-block-components-order-summary-item .wc-block-components-product-name,
    .wc-block-components-product-name {
        display: block !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        color: #222 !important;
        line-height: 1.45 !important;
        margin: 0 0 4px 0 !important;
        padding: 0 !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
        min-width: 0 !important;
        max-width: 100% !important;
        text-align: left !important;
    }

    .wc-block-components-order-summary-item__total-price {
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: 45% !important;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 14px !important;
        font-weight: 800 !important;
        color: #009C3B !important;
        white-space: nowrap !important;
        text-align: right !important;
        align-self: flex-start !important;
    }

    .wc-block-components-order-summary-item__total-price * {
        color: #009C3B !important;
        font-size: 14px !important;
        font-weight: 800 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .wc-block-components-order-summary-item__total-price del,
    .wc-block-components-order-summary-item__total-price del * {
        display: none !important;
    }

    .wc-block-components-totals-item {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 12px 0 !important;
        gap: 12px !important;
        border-bottom: 1px solid #f0f0f0 !important;
        font-size: 15px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .wc-block-components-totals-item__label {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        color: #333 !important;
    }

    .wc-block-components-totals-item__value {
        flex: 0 0 auto !important;
        font-size: 15px !important;
        font-weight: 800 !important;
        color: #009C3B !important;
        white-space: nowrap !important;
        margin-left: 8px !important;
    }

    .wc-block-components-totals-footer-item {
        border-top: 2px solid #009C3B !important;
        border-bottom: none !important;
        padding-top: 14px !important;
        margin-top: 8px !important;
    }

    .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
        font-size: 17px !important;
        font-weight: 800 !important;
        color: #111 !important;
    }

    .wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
    .wc-block-components-totals-footer-item .wc-block-components-totals-item__value * {
        font-size: 22px !important;
        font-weight: 900 !important;
        color: #009C3B !important;
    }

    /* 隐藏结账页的 Economize 徽章 */
    .wc-block-components-product-badge.wc-block-components-sale-badge,
    .wc-block-components-sale-badge,
    .wc-block-components-product-badge {
        display: none !important;
    }
}


/* =========================================================
   8. 我的账户 (My Account)
   ========================================================= */

.woocommerce-account .site-content .ast-container {
    background: #f4f6f8 !important;
    padding: 24px 16px !important;
    max-width: 1200px !important;
    box-sizing: border-box !important;
}

.woocommerce-account .entry-title,
.woocommerce-account h1 {
    font-size: 26px !important;
    font-weight: 800 !important;
    color: #111 !important;
    padding-bottom: 10px !important;
    margin: 0 0 20px 0 !important;
    border-bottom: 3px solid #009C3B !important;
}

.woocommerce-account .woocommerce {
    display: grid !important;
    grid-template-columns: 240px 1fr !important;
    gap: 24px !important;
    align-items: start !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
    background: #ffffff !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05) !important;
    border: 1px solid #eceff1 !important;
    padding: 12px !important;
    width: auto !important;
    float: none !important;
    box-sizing: border-box !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li {
    margin: 0 0 4px 0 !important;
    border: none !important;
    padding: 0 !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: block !important;
    padding: 12px 14px !important;
    color: #333 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border-radius: 10px !important;
    transition: all 0.2s ease !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
    background: #f0faf4 !important;
    color: #009C3B !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
    background: linear-gradient(135deg, #009C3B, #00C853) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 156, 59, 0.3) !important;
}

.woocommerce-account .woocommerce-MyAccount-content {
    background: #ffffff !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05) !important;
    border: 1px solid #eceff1 !important;
    padding: 24px !important;
    box-sizing: border-box !important;
    font-size: 15px !important;
    color: #333 !important;
    line-height: 1.7 !important;
}

.woocommerce-account .woocommerce-MyAccount-content a {
    color: #009C3B !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

.woocommerce-account .woocommerce-MyAccount-content form input[type="text"],
.woocommerce-account .woocommerce-MyAccount-content form input[type="email"],
.woocommerce-account .woocommerce-MyAccount-content form input[type="tel"],
.woocommerce-account .woocommerce-MyAccount-content form input[type="password"],
.woocommerce-account .woocommerce-MyAccount-content form select,
.woocommerce-account .woocommerce-MyAccount-content form textarea {
    width: 100% !important;
    height: 48px !important;
    padding: 0 14px !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 10px !important;
    background: #fafbfc !important;
    font-size: 15px !important;
    color: #222 !important;
    box-sizing: border-box !important;
}

.woocommerce-account .woocommerce-MyAccount-content form button,
.woocommerce-account .woocommerce-MyAccount-content form input[type="submit"],
.woocommerce-account .woocommerce-MyAccount-content .button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 48px !important;
    padding: 0 28px !important;
    background: linear-gradient(135deg, #009C3B, #00C853) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    box-shadow: 0 6px 18px rgba(0, 156, 59, 0.3) !important;
    cursor: pointer !important;
    text-decoration: none !important;
    text-transform: none !important;
    transition: all 0.25s ease !important;
}

.woocommerce-account .woocommerce-MyAccount-content form button:hover,
.woocommerce-account .woocommerce-MyAccount-content .button:hover {
    background: linear-gradient(135deg, #00822F, #00B34A) !important;
    transform: translateY(-2px) !important;
}

.woocommerce-account .woocommerce-orders-table {
    width: 100% !important;
    border-collapse: collapse !important;
    border: none !important;
    font-size: 14px !important;
    background: transparent !important;
}

.woocommerce-account .woocommerce-orders-table th {
    padding: 12px 14px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    color: #444 !important;
    text-align: left !important;
    border: none !important;
    background: #f4f6f8 !important;
    text-transform: uppercase !important;
}

.woocommerce-account .woocommerce-orders-table td {
    padding: 14px !important;
    border-top: 1px solid #f0f0f0 !important;
    color: #333 !important;
}

.woocommerce-account .woocommerce-Addresses {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 18px !important;
    margin-top: 16px !important;
}

.woocommerce-account .woocommerce-Address {
    background: #fafbfc !important;
    border: 1px solid #eceff1 !important;
    border-radius: 12px !important;
    padding: 18px !important;
    box-sizing: border-box !important;
}

.woocommerce-account .woocommerce-Address-title {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 10px !important;
    padding-bottom: 8px !important;
    border-bottom: 2px solid #009C3B !important;
}

.woocommerce-account .woocommerce-Address-title h3 {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #111 !important;
    margin: 0 !important;
}

/* 未登录状态 */
.woocommerce-account:not(.logged-in) .woocommerce {
    display: block !important;
}

.woocommerce-account:not(.logged-in) .woocommerce-MyAccount-navigation {
    display: none !important;
}

.woocommerce-account:not(.logged-in) .u-columns.col2-set {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 28px !important;
    width: 100% !important;
}

.woocommerce-account:not(.logged-in) .u-columns.col2-set::before,
.woocommerce-account:not(.logged-in) .u-columns.col2-set::after {
    display: none !important;
}

.woocommerce-account:not(.logged-in) .u-column1,
.woocommerce-account:not(.logged-in) .u-column2 {
    width: 100% !important;
    float: none !important;
}

.woocommerce-account:not(.logged-in) .woocommerce-form-login,
.woocommerce-account:not(.logged-in) .woocommerce-form-register {
    background: #ffffff !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05) !important;
    border: 1px solid #eceff1 !important;
    padding: 28px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* 我的账户 - 移动端 */
@media (max-width: 768px) {

    .woocommerce-account .site-content .ast-container {
        padding: 16px 14px 40px !important;
    }

    .woocommerce-account .entry-title,
    .woocommerce-account h1 {
        font-size: 22px !important;
    }

    .woocommerce-account .woocommerce {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation ul {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        justify-content: center !important;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation ul li a {
        padding: 9px 14px !important;
        font-size: 13px !important;
        border-radius: 20px !important;
        background: #f4f6f8 !important;
        border: 1px solid #eceff1 !important;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
        background: linear-gradient(135deg, #009C3B, #00C853) !important;
        color: #fff !important;
    }

    .woocommerce-account .woocommerce-MyAccount-content {
        padding: 18px 16px !important;
    }

    .woocommerce-account .woocommerce-Addresses {
        grid-template-columns: 1fr !important;
    }

    .woocommerce-account:not(.logged-in) .u-columns.col2-set {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }
}

/* ===== 隐藏购物车商品行里的 "Economize" 徽章 ===== */
td.wc-block-cart-item__total .wc-block-components-product-badge,
td.wc-block-cart-item__total .wc-block-components-sale-badge,
.wc-block-cart-item__total-price-and-sale-badge-wrapper .wc-block-components-product-badge,
.wc-block-cart-item__total-price-and-sale-badge-wrapper .wc-block-components-sale-badge,
.wc-block-components-product-badge.wc-block-components-sale-badge,
.wc-block-components-sale-badge {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    pointer-events: none !important;
}




/* =========================================================
   结账页 - 订单摘要卡片 紧凑修复
   ========================================================= */

/* 1. 订单摘要卡片整体 */
.wc-block-components-order-summary,
.wp-block-woocommerce-checkout-order-summary-block {
    background: #ffffff !important;
    border-radius: 16px !important;
    border: 1px solid #eceff1 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
    padding: 16px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

/* 2. 商品行：flex 布局，价格不挤压名字 */
.wc-block-components-order-summary-item {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    gap: 10px !important;
    padding: 12px 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.wc-block-components-order-summary-item:last-child {
    border-bottom: none !important;
}

/* 3. 图片固定小尺寸 */
.wc-block-components-order-summary-item__image {
    flex: 0 0 56px !important;
    width: 56px !important;
    max-width: 56px !important;
    min-width: 56px !important;
    height: 56px !important;
    padding: 0 !important;
    margin: 0 !important;
}

.wc-block-components-order-summary-item__image img {
    width: 56px !important;
    height: 56px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    border: 1px solid #e5e7eb !important;
    display: block !important;
}

/* 4. 商品名区：弹性伸展，占满剩余空间 */
.wc-block-components-order-summary-item__description {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    text-align: left !important;
    box-sizing: border-box !important;
}

.wc-block-components-order-summary-item .wc-block-components-product-name,
.wc-block-components-product-name {
    display: block !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #111 !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    padding: 0 !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    max-width: 100% !important;
    min-width: 0 !important;
    text-align: left !important;
}

/* 5. 价格列：不伸缩，紧凑显示 */
.wc-block-components-order-summary-item__total-price {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    color: #009C3B !important;
    white-space: nowrap !important;
    text-align: right !important;
    align-self: flex-start !important;
    line-height: 1.4 !important;
}

.wc-block-components-order-summary-item__total-price * {
    color: #009C3B !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 6. 隐藏价格里的原价（del）*/
.wc-block-components-order-summary-item__total-price del,
.wc-block-components-order-summary-item__total-price del * {
    display: none !important;
}

/* 7. 干掉那些空的白色卡片（隐藏内容留下的空壳）*/
.wc-block-components-order-summary .wc-block-components-panel,
.wc-block-components-order-summary .wc-block-components-totals-item:empty,
.wc-block-components-order-summary .wc-block-components-totals-wrapper:empty,
.wc-block-components-order-summary .wc-block-components-totals-item:has(.wc-block-components-totals-item__label:empty),
.wp-block-woocommerce-checkout-order-summary-block .wc-block-components-totals-item:empty,
.wp-block-woocommerce-checkout-order-summary-block .wc-block-components-totals-wrapper:empty {
    display: none !important;
    padding: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
    height: 0 !important;
    border: none !important;
    background: transparent !important;
}

/* 8. 隐藏空的 subtotal 行（只保留 Total） */
.wc-block-components-order-summary .wc-block-components-totals-item,
.wp-block-woocommerce-checkout-order-summary-block .wc-block-components-totals-item {
    padding: 10px 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* 9. Total 行突出显示 */
.wc-block-components-order-summary .wc-block-components-totals-footer-item,
.wp-block-woocommerce-checkout-order-summary-block .wc-block-components-totals-footer-item,
.wc-block-components-totals-footer-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 14px 0 4px 0 !important;
    border-top: 2px solid #009C3B !important;
    border-bottom: none !important;
    margin-top: 8px !important;
    gap: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #111 !important;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value * {
    font-size: 20px !important;
    font-weight: 900 !important;
    color: #009C3B !important;
    white-space: nowrap !important;
}

/* 10. 隐藏 Economize 徽章 */
.wc-block-components-product-badge,
.wc-block-components-sale-badge,
.wc-block-components-order-summary-item__total-price .wc-block-components-product-badge {
    display: none !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
}

/* ===== 移动端微调 ===== */
@media (max-width: 768px) {
    .wc-block-components-order-summary,
    .wp-block-woocommerce-checkout-order-summary-block {
        padding: 14px !important;
        border-radius: 14px !important;
    }

    .wc-block-components-order-summary-item {
        gap: 8px !important;
        padding: 10px 0 !important;
    }

    .wc-block-components-order-summary-item__image,
    .wc-block-components-order-summary-item__image img {
        flex: 0 0 50px !important;
        width: 50px !important;
        height: 50px !important;
        min-width: 50px !important;
        max-width: 50px !important;
    }

    .wc-block-components-order-summary-item .wc-block-components-product-name,
    .wc-block-components-product-name {
        font-size: 12px !important;
        line-height: 1.35 !important;
    }

    .wc-block-components-order-summary-item__total-price,
    .wc-block-components-order-summary-item__total-price * {
        font-size: 13px !important;
    }
}





/* =========================================================
   结账页 - 订单摘要卡片加宽
   ========================================================= */

/* ===== 1. 打穿所有外层容器宽度限制 ===== */
.wc-block-checkout,
.wc-block-checkout__main,
.wc-block-checkout__sidebar,
.wc-block-checkout .wp-block-woocommerce-checkout,
.wc-block-checkout .wp-block-woocommerce-checkout-order-summary-block,
.woocommerce-checkout .site-content,
.woocommerce-checkout .site-content .ast-container,
.woocommerce-checkout .ast-container,
.woocommerce-checkout #content,
.woocommerce-checkout #primary,
.woocommerce-checkout .entry-content {
    max-width: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
}

/* ===== 2. 桌面端：订单摘要侧栏加宽（从 380px 提到 480px） ===== */
@media (min-width: 1000px) {
    .wc-block-components-sidebar-layout.wc-block-checkout {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 480px !important;
        gap: 28px !important;
        align-items: start !important;
        width: 100% !important;
        max-width: 1400px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 24px !important;
        padding-right: 24px !important;
        box-sizing: border-box !important;
    }

    .wc-block-checkout__sidebar {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* 订单摘要卡片本身撑满侧栏 */
    .wp-block-woocommerce-checkout-order-summary-block,
    .wc-block-components-order-summary {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* ===== 3. 订单摘要卡片加宽 + 减少内边距挤压 ===== */
.wp-block-woocommerce-checkout-order-summary-block,
.wc-block-components-order-summary {
    background: #ffffff !important;
    border-radius: 16px !important;
    border: 1px solid #eceff1 !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05) !important;
    padding: 18px 18px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

/* ===== 4. 侧栏容器留白压到最小 ===== */
.wc-block-checkout__sidebar,
.wc-block-components-sidebar-layout .wc-block-checkout__sidebar,
.woocommerce-checkout #order_review {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
}

.wc-block-checkout__sidebar > * {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* ===== 5. 商品行内布局：图片不变、名字区撑满 ===== */
.wc-block-components-order-summary-item {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 12px 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.wc-block-components-order-summary-item__image {
    flex: 0 0 60px !important;
    width: 60px !important;
    max-width: 60px !important;
    min-width: 60px !important;
    height: 60px !important;
    padding: 0 !important;
    margin: 0 !important;
}

.wc-block-components-order-summary-item__image img {
    width: 60px !important;
    height: 60px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    border: 1px solid #e5e7eb !important;
    display: block !important;
}

.wc-block-components-order-summary-item__description {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    text-align: left !important;
    box-sizing: border-box !important;
}

.wc-block-components-order-summary-item .wc-block-components-product-name,
.wc-block-components-product-name {
    display: block !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #111 !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    padding: 0 !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    max-width: 100% !important;
    min-width: 0 !important;
    text-align: left !important;
}

.wc-block-components-order-summary-item__total-price,
.wc-block-components-order-summary-item__total-price * {
    flex: 0 0 auto !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    color: #009C3B !important;
    white-space: nowrap !important;
    text-align: right !important;
    align-self: flex-start !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ===== 6. 移动端：卡片左右留白压缩 ===== */
@media (max-width: 999px) {

    .wc-block-checkout,
    .wc-block-checkout__main,
    .wc-block-checkout__sidebar,
    .wc-block-checkout .wp-block-woocommerce-checkout,
    .woocommerce-checkout .site-content .ast-container {
        padding-left: 8px !important;
        padding-right: 8px !important;
        max-width: 100% !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    .wp-block-woocommerce-checkout-order-summary-block,
    .wc-block-components-order-summary {
        padding: 14px 12px !important;
        border-radius: 14px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .wc-block-checkout__sidebar {
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .wc-block-components-order-summary-item {
        gap: 10px !important;
        padding: 10px 0 !important;
    }

    .wc-block-components-order-summary-item__image,
    .wc-block-components-order-summary-item__image img {
        flex: 0 0 56px !important;
        width: 56px !important;
        height: 56px !important;
        min-width: 56px !important;
        max-width: 56px !important;
    }

    .wc-block-components-order-summary-item .wc-block-components-product-name,
    .wc-block-components-product-name {
        font-size: 13px !important;
        line-height: 1.35 !important;
    }

    .wc-block-components-order-summary-item__total-price,
    .wc-block-components-order-summary-item__total-price * {
        font-size: 13px !important;
    }
}

/* ===== 7. 极窄屏再压缩 ===== */
@media (max-width: 480px) {

    .woocommerce-checkout .site-content .ast-container,
    .wc-block-checkout {
        padding-left: 6px !important;
        padding-right: 6px !important;
    }

    .wp-block-woocommerce-checkout-order-summary-block,
    .wc-block-components-order-summary {
        padding: 12px 10px !important;
    }
}
