/*
Theme Name: Astra Child
Template: astra
Version: 1.0
*/



/* ===== 隐藏结账页订单摘要里的商品元数据 / 简短描述 ===== */
.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 {
    display: none !important;
}

/* 如果结账页是经典短代码版本，也顺便隐藏 */
.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;
}

/* =========================================================
   WooCommerce 商品详情页 - 移动端样式
   只对 768px 以下生效，桌面端不受影响
   ========================================================= */
@media (max-width: 768px) {

    /* ===== 1. 商品页整体容器 ===== */
    .single-product .site-content .ast-container {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    /* ===== 2. 图片与摘要区域：上下排列 ===== */
    .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;
    }

    /* ===== 3. 标题 ===== */
    .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;
    }

    /* ===== 4. 价格 ===== */
    .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;
    }

    /* ===== 5. 短描述 ===== */
    .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;
    }

    /* ===== 6. 商品表单：数量框 + 两个按钮 ===== */
    .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;
        box-sizing: border-box !important;
        background: #fafbfc !important;
    }

    /* ===== 7. 两个按钮的公共样式 ===== */
    .single-product div.product form.cart button[name="add-to-cart"],
    .single-product div.product form.cart button[name="buy-now"] {
        flex: 1 1 auto !important;           /* 自适应宽度 */
        height: 50px !important;
        min-height: 50px !important;
        line-height: 1.2 !important;
        padding: 0 16px !important;
        margin: 0 !important;
        float: none !important;
        border: none !important;
        border-radius: 12px !important;
        font-size: 15px !important;
        font-weight: 800 !important;
        letter-spacing: 0.2px !important;
        white-space: nowrap !important;      /* 文字不换行 */
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
        transition: all 0.25s ease !important;
        text-shadow: none !important;
    }

    /* ===== 8. 加入购物车按钮 - 巴西绿 ===== */
    .single-product div.product form.cart button[name="add-to-cart"] {
        background: linear-gradient(135deg, #009C3B, #00C853) !important;
        background-color: #009C3B !important;
        color: #ffffff !important;
        box-shadow: 0 6px 18px rgba(0, 156, 59, 0.35) !important;
    }

    .single-product div.product form.cart button[name="add-to-cart"]:active {
        background: linear-gradient(135deg, #00822F, #00B34A) !important;
        transform: scale(0.98) !important;
        box-shadow: 0 3px 10px rgba(0, 156, 59, 0.45) !important;
    }

    /* ===== 9. 立即购买按钮 - 巴西黄 + 深蓝字 ===== */
    .single-product div.product form.cart button[name="buy-now"] {
        background: linear-gradient(135deg, #FFDF00, #FFC400) !important;
        background-color: #FFDF00 !important;
        color: #002776 !important;
        box-shadow: 0 6px 18px rgba(255, 200, 0, 0.45) !important;
    }

    .single-product div.product form.cart button[name="buy-now"]:active {
        background: linear-gradient(135deg, #FFD000, #FFB800) !important;
        color: #001a4d !important;
        transform: scale(0.98) !important;
        box-shadow: 0 3px 10px rgba(255, 200, 0, 0.6) !important;
    }

    /* 防止插件给按钮内部加 span 改颜色 */
    .single-product div.product form.cart button[name="buy-now"] * {
        color: #002776 !important;
    }

    /* ===== 10. 商品 meta（SKU、分类、标签） ===== */
    .single-product div.product .product_meta {
        font-size: 13px !important;
        color: #666 !important;
        margin-top: 16px !important;
    }

    /* ===== 11. 标签页（描述 / 附加信息 / 评价） ===== */
    .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;
    }

    /* ===== 12. 相关商品 ===== */
    .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;
    }

    /* ===== 13. 评论区 ===== */
    .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;
        box-sizing: border-box !important;
        background: #fafbfc !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;
    }
}


/* =========================================================
   商品列表 / 店铺页 移动端按钮美化（巴西配色）
   只对 768px 以下生效
   ========================================================= */
@media (max-width: 768px) {

    /* 1. 两个按钮公共样式：上下排列、全宽、等高、文字不换行 */
    .woocommerce ul.products li.product .add_to_cart_button {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 46px !important;
        min-height: 46px !important;
        padding: 0 12px !important;
        margin: 6px 0 0 0 !important;
        border: none !important;
        border-radius: 10px !important;
        font-size: 14px !important;
        font-weight: 800 !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        text-align: center !important;
        box-sizing: border-box !important;
        transition: all 0.25s ease !important;
        text-shadow: none !important;
    }

    /* 2. “加入购物车”按钮 —— 巴西绿
          关键：用 :not(.wpcbn-btn) 把立即购买排除掉 */
    .woocommerce ul.products li.product .add_to_cart_button:not(.wpcbn-btn) {
        background: linear-gradient(135deg, #009C3B, #00C853) !important;
        background-color: #009C3B !important;
        color: #ffffff !important;
        box-shadow: 0 4px 14px rgba(0, 156, 59, 0.3) !important;
    }

    .woocommerce ul.products li.product .add_to_cart_button:not(.wpcbn-btn):active {
        background: linear-gradient(135deg, #00822F, #00B34A) !important;
        transform: scale(0.98) !important;
    }

    /* 3. “立即购买”按钮 —— 巴西黄 + 深蓝字 */
    .woocommerce ul.products li.product .wpcbn-btn {
        background: linear-gradient(135deg, #FFDF00, #FFC400) !important;
        background-color: #FFDF00 !important;
        color: #002776 !important;
        box-shadow: 0 4px 14px rgba(255, 200, 0, 0.4) !important;
    }

    .woocommerce ul.products li.product .wpcbn-btn:active {
        background: linear-gradient(135deg, #FFD000, #FFB800) !important;
        color: #001a4d !important;
        transform: scale(0.98) !important;
    }

    /* 防止 WPC Buy Now 插件内部 span 破坏文字颜色 */
    .woocommerce ul.products li.product .wpcbn-btn * {
        color: #002776 !important;
    }

    /* 4. 价格也换成巴西绿（可选，想保留原色可删掉这段） */
    .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;
    }
}


/* =========================================================
   WooCommerce 结账页 (Checkout) - 移动端完整样式
   只对 768px 以下生效，桌面端不受影响
   ========================================================= */
@media (max-width: 768px) {

    /* ===== 1. 全局容器：左右留白，防止贴边 ===== */
    .woocommerce-checkout .site-content,
    .woocommerce-checkout .ast-container,
    .woocommerce-checkout .woocommerce {
        padding-left: 16px !important;
        padding-right: 16px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
    }

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

    /* ===== 2. 页面标题 ===== */
    .woocommerce-checkout h1,
    .woocommerce-checkout h2,
    .woocommerce-checkout h3 {
        font-size: 20px !important;
        font-weight: 800 !important;
        color: #111 !important;
        margin: 20px 0 12px 0 !important;
        padding-bottom: 8px !important;
        border-bottom: 2px solid #009C3B !important;
        line-height: 1.3 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .woocommerce-checkout .woocommerce-checkout-review-order h3,
    .woocommerce-checkout #order_review_heading {
        border-bottom: none !important;
        margin-bottom: 8px !important;
    }

    /* ===== 3. 卡片化区块 ===== */
    .woocommerce-checkout #customer_details,
    .woocommerce-checkout .woocommerce-billing-fields,
    .woocommerce-checkout .woocommerce-shipping-fields,
    .woocommerce-checkout .woocommerce-additional-fields,
    .woocommerce-checkout #order_review,
    .woocommerce-checkout .woocommerce-checkout-payment {
        background: #ffffff !important;
        border-radius: 14px !important;
        padding: 16px !important;
        margin-bottom: 16px !important;
        box-shadow: 0 4px 16px rgba(0,0,0,0.04) !important;
        border: 1px solid #eceff1 !important;
        box-sizing: border-box !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* ===== 4. 表单字段 ===== */
    .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 {
        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;
        transition: all 0.25s ease !important;
        -webkit-appearance: none !important;
        appearance: none !important;
    }

    .woocommerce-checkout .form-row select {
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
        background-repeat: no-repeat !important;
        background-position: right 14px center !important;
        background-size: 16px !important;
        padding-right: 40px !important;
    }

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

    /* ===== 5. 支付方式 ===== */
    .woocommerce-checkout .wc_payment_methods {
        padding: 0 !important;
        margin: 0 !important;
        list-style: none !important;
    }

    .woocommerce-checkout .wc_payment_method {
        background: #fafbfc !important;
        border: 2px solid #e5e7eb !important;
        border-radius: 12px !important;
        padding: 14px 16px !important;
        margin-bottom: 12px !important;
        transition: all 0.2s ease !important;
    }

    .woocommerce-checkout .wc_payment_method label {
        font-size: 15px !important;
        font-weight: 700 !important;
        color: #222 !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 8px !important;
        cursor: pointer !important;
        margin: 0 !important;
    }

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

    .woocommerce-checkout .wc_payment_method .payment_box {
        background: transparent !important;
        padding: 10px 0 0 0 !important;
        margin: 0 !important;
        font-size: 13px !important;
        color: #666 !important;
        border: none !important;
    }

    /* ===== 6. 订单摘要 ===== */
    .woocommerce-checkout .shop_table {
        font-size: 14px !important;
        border: none !important;
        background: transparent !important;
    }

    .woocommerce-checkout .shop_table th,
    .woocommerce-checkout .shop_table td {
        padding: 10px 0 !important;
        border-bottom: 1px solid #f0f0f0 !important;
        background: transparent !important;
        color: #333 !important;
    }

    .woocommerce-checkout .shop_table .order-total th,
    .woocommerce-checkout .shop_table .order-total td {
        font-size: 17px !important;
        font-weight: 800 !important;
        color: #009C3B !important;
        border-bottom: none !important;
    }

    /* ===== 7. 附加备注 ===== */
    .woocommerce-checkout .woocommerce-additional-fields h3 {
        font-size: 16px !important;
        border-bottom: none !important;
        margin-top: 0 !important;
    }

    /* ===== 8. 底部结账按钮 ===== */
    .woocommerce-checkout #place_order {
        width: 100% !important;
        height: 54px !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;
        letter-spacing: 0.3px !important;
        box-shadow: 0 8px 24px rgba(0, 156, 59, 0.35) !important;
        transition: all 0.3s ease !important;
        margin-top: 10px !important;
        text-shadow: none !important;
    }

    .woocommerce-checkout #place_order:active {
        transform: scale(0.98) !important;
        box-shadow: 0 4px 12px rgba(0, 156, 59, 0.5) !important;
    }

    /* ===== 9. 隐私政策 ===== */
    .woocommerce-checkout .woocommerce-privacy-policy-text {
        font-size: 12px !important;
        color: #888 !important;
        line-height: 1.6 !important;
        margin-top: 16px !important;
        text-align: center !important;
    }

    .woocommerce-checkout .woocommerce-privacy-policy-text a {
        color: #009C3B !important;
        text-decoration: underline !important;
    }

    /* ===== 10. 清除浮动 ===== */
    .woocommerce-checkout .col2-set::before,
    .woocommerce-checkout .col2-set::after {
        display: none !important;
    }

    .woocommerce-checkout .col-1,
    .woocommerce-checkout .col-2 {
        width: 100% !important;
        float: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
}



/* =========================================================
   结账页 - 订单摘要 & 备注区 精细美化
   只对 768px 以下生效
   ========================================================= */
@media (max-width: 768px) {

    /* ===== 1. 备注复选框区域 ===== */
    .woocommerce-checkout .woocommerce-additional-fields {
        background: #ffffff !important;
        border-radius: 12px !important;
        padding: 14px 16px !important;
        margin-bottom: 16px !important;
        border: 1px solid #eceff1 !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.03) !important;
    }

    .woocommerce-checkout .woocommerce-additional-fields label {
        font-size: 14px !important;
        font-weight: 600 !important;
        color: #444 !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }

    .woocommerce-checkout .woocommerce-additional-fields input[type="checkbox"] {
        width: 18px !important;
        height: 18px !important;
        accent-color: #009C3B !important;
        flex-shrink: 0 !important;
    }

    /* ===== 2. 订单摘要整体 ===== */
    .woocommerce-checkout #order_review {
        padding: 18px 16px !important;
    }

    .woocommerce-checkout #order_review_heading {
        font-size: 18px !important;
        font-weight: 800 !important;
        color: #111 !important;
        border-bottom: 2px solid #009C3B !important;
        padding-bottom: 8px !important;
        margin-bottom: 16px !important;
    }

    /* ===== 3. 订单摘要商品表 ===== */
    .woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table {
        background: transparent !important;
        border: none !important;
        font-size: 14px !important;
        table-layout: auto !important;
    }

    .woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table thead {
        display: none !important; /* 隐藏 “Produto / Subtotal” 表头 */
    }

    /* ===== 4. 商品行改为卡片式布局 ===== */
    .woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table tbody tr.cart_item {
        display: grid !important;
        grid-template-columns: 64px 1fr auto !important;
        grid-template-rows: auto auto !important;
        column-gap: 12px !important;
        row-gap: 4px !important;
        align-items: start !important;
        padding: 12px 0 !important;
        border-bottom: 1px solid #f0f0f0 !important;
        background: transparent !important;
    }

    /* 缩略图 */
    .woocommerce-checkout .shop_table .cart_item .product-thumbnail {
        grid-row: 1 / 3 !important;
        grid-column: 1 !important;
        padding: 0 !important;
        border: none !important;
        width: 64px !important;
        height: 64px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .woocommerce-checkout .shop_table .cart_item .product-thumbnail img {
        width: 64px !important;
        height: 64px !important;
        object-fit: cover !important;
        border-radius: 10px !important;
        border: 1px solid #e5e7eb !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
    }

    /* 商品名称 */
    .woocommerce-checkout .shop_table .cart_item .product-name {
        grid-row: 1 !important;
        grid-column: 2 !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        color: #222 !important;
        line-height: 1.4 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
    }

    /* 商品数量 (x1) */
    .woocommerce-checkout .shop_table .cart_item .product-quantity {
        grid-row: 2 !important;
        grid-column: 2 !important;
        font-size: 12px !important;
        color: #888 !important;
        font-weight: 600 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
    }

    /* 小计价格 */
    .woocommerce-checkout .shop_table .cart_item .product-total {
        grid-row: 1 / 3 !important;
        grid-column: 3 !important;
        text-align: right !important;
        font-size: 14px !important;
        font-weight: 800 !important;
        color: #009C3B !important;
        align-self: center !important;
        padding: 0 !important;
        border: none !important;
        white-space: nowrap !important;
    }

    /* ===== 5. 隐藏 WooCommerce 自带的 “Economize R$” 徽章 ===== */
    .woocommerce-checkout .shop_table .cart_item .product-name .save-tag,
    .woocommerce-checkout .shop_table .cart_item .product-name .savings {
        display: none !important;
    }

    /* ===== 6. 小计 / 运费 / 总计 行 ===== */
    .woocommerce-checkout .shop_table tbody tr.cart-subtotal,
    .woocommerce-checkout .shop_table tbody tr.woocommerce-shipping-totals,
    .woocommerce-checkout .shop_table tbody tr.fee,
    .woocommerce-checkout .shop_table tbody tr.tax-total {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 10px 0 !important;
        border-bottom: 1px solid #f0f0f0 !important;
    }

    .woocommerce-checkout .shop_table tbody tr.cart-subtotal th,
    .woocommerce-checkout .shop_table tbody tr.cart-subtotal td,
    .woocommerce-checkout .shop_table tbody tr.woocommerce-shipping-totals th,
    .woocommerce-checkout .shop_table tbody tr.woocommerce-shipping-totals td,
    .woocommerce-checkout .shop_table tbody tr.fee th,
    .woocommerce-checkout .shop_table tbody tr.fee td {
        border: none !important;
        padding: 0 !important;
        font-size: 14px !important;
        color: #555 !important;
        font-weight: 600 !important;
        background: transparent !important;
    }

    /* ===== 7. 总计行高亮 ===== */
    .woocommerce-checkout .shop_table tbody tr.order-total {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 14px 0 6px 0 !important;
        border-top: 2px solid #009C3B !important;
        border-bottom: none !important;
        margin-top: 8px !important;
    }

    .woocommerce-checkout .shop_table tbody tr.order-total th {
        font-size: 16px !important;
        font-weight: 800 !important;
        color: #111 !important;
        border: none !important;
        padding: 0 !important;
        background: transparent !important;
    }

    .woocommerce-checkout .shop_table tbody tr.order-total td {
        font-size: 20px !important;
        font-weight: 900 !important;
        color: #009C3B !important;
        border: none !important;
        padding: 0 !important;
        text-align: right !important;
        background: transparent !important;
    }

    .woocommerce-checkout .shop_table tbody tr.order-total td .woocommerce-Price-amount {
        color: #009C3B !important;
    }

    /* ===== 8. 隐私政策文字 ===== */
    .woocommerce-checkout .woocommerce-privacy-policy-text {
        font-size: 12px !important;
        color: #888 !important;
        line-height: 1.6 !important;
        margin-top: 14px !important;
        text-align: left !important;
        padding: 0 !important;
    }

    .woocommerce-checkout .woocommerce-privacy-policy-text a {
        color: #009C3B !important;
        text-decoration: underline !important;
        font-weight: 600 !important;
    }
}








/* =========================================================
   WooCommerce 购物车 (Cart) 页面 - 移动端完整美化
   巴西配色：绿 #009C3B / 黄 #FFDF00 / 蓝 #002776
   只对 768px 以下生效
   ========================================================= */
@media (max-width: 768px) {

    /* ===== 1. 页面容器：左右留白 ===== */
    .woocommerce-cart .site-content,
    .woocommerce-cart .ast-container,
    .woocommerce-cart .woocommerce {
        padding-left: 16px !important;
        padding-right: 16px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        background: #f4f6f8 !important;
    }

    /* ===== 2. 页面标题 ===== */
    .woocommerce-cart .entry-title,
    .woocommerce-cart h1 {
        font-size: 22px !important;
        font-weight: 800 !important;
        color: #111 !important;
        padding-bottom: 10px !important;
        margin: 16px 0 18px 0 !important;
        border-bottom: 3px solid #009C3B !important;
        line-height: 1.3 !important;
    }

    /* ===== 3. 购物车表单 ===== */
    .woocommerce-cart form.woocommerce-cart-form {
        background: transparent !important;
        border: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .woocommerce-cart .shop_table.shop_table_cart {
        background: transparent !important;
        border: none !important;
        font-size: 14px !important;
        margin: 0 !important;
    }

    .woocommerce-cart .shop_table.shop_table_cart thead {
        display: none !important;
    }

    /* ===== 4. 商品卡片 ===== */
    .woocommerce-cart .shop_table .cart_item {
        display: grid !important;
        grid-template-columns: 90px 1fr 30px !important;
        grid-template-rows: auto auto auto auto !important;
        column-gap: 12px !important;
        row-gap: 6px !important;
        align-items: start !important;
        background: #ffffff !important;
        border-radius: 14px !important;
        padding: 14px !important;
        margin: 0 0 14px 0 !important;
        box-shadow: 0 4px 16px rgba(0,0,0,0.05) !important;
        border: 1px solid #eceff1 !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }

    /* 缩略图 */
    .woocommerce-cart .shop_table .cart_item .product-thumbnail {
        grid-row: 1 / 5 !important;
        grid-column: 1 !important;
        padding: 0 !important;
        border: none !important;
        display: flex !important;
        align-items: flex-start !important;
        justify-content: center !important;
    }

    .woocommerce-cart .shop_table .cart_item .product-thumbnail img {
        width: 90px !important;
        height: 90px !important;
        object-fit: cover !important;
        border-radius: 12px !important;
        border: 1px solid #e5e7eb !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
    }

    /* 商品名称 */
    .woocommerce-cart .shop_table .cart_item .product-name {
        grid-row: 1 !important;
        grid-column: 2 !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        color: #222 !important;
        line-height: 1.4 !important;
        margin: 0 !important;
        padding: 0 0 4px 0 !important;
        border: none !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
    }

    .woocommerce-cart .shop_table .cart_item .product-name a {
        color: #222 !important;
        text-decoration: none !important;
        font-weight: 700 !important;
    }

    .woocommerce-cart .shop_table .cart_item .product-name del,
    .woocommerce-cart .shop_table .cart_item .product-name del .woocommerce-Price-amount {
        color: #999 !important;
        font-size: 12px !important;
        text-decoration: line-through !important;
        font-weight: 500 !important;
    }

    .woocommerce-cart .shop_table .cart_item .product-name ins,
    .woocommerce-cart .shop_table .cart_item .product-name ins .woocommerce-Price-amount {
        color: #009C3B !important;
        font-size: 13px !important;
        font-weight: 800 !important;
        text-decoration: none !important;
    }

    /* 单价 */
    .woocommerce-cart .shop_table .cart_item .product-price {
        grid-row: 2 !important;
        grid-column: 2 !important;
        font-size: 13px !important;
        font-weight: 800 !important;
        color: #009C3B !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        text-align: left !important;
    }

    .woocommerce-cart .shop_table .cart_item .product-price .woocommerce-Price-amount {
        color: #009C3B !important;
    }

    /* 数量框 */
    .woocommerce-cart .shop_table .cart_item .product-quantity {
        grid-row: 3 !important;
        grid-column: 2 !important;
        margin: 0 !important;
        padding: 4px 0 0 0 !important;
        border: none !important;
        text-align: left !important;
    }

    .woocommerce-cart .shop_table .cart_item .quantity {
        display: inline-flex !important;
        align-items: center !important;
        border: 2px solid #e5e7eb !important;
        border-radius: 10px !important;
        overflow: hidden !important;
        background: #fafbfc !important;
        height: 40px !important;
        width: auto !important;
    }

    .woocommerce-cart .shop_table .cart_item .quantity input.qty {
        width: 46px !important;
        height: 36px !important;
        border: none !important;
        background: transparent !important;
        text-align: center !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        color: #222 !important;
        -moz-appearance: textfield !important;
        padding: 0 !important;
    }

    .woocommerce-cart .shop_table .cart_item .quantity input.qty::-webkit-outer-spin-button,
    .woocommerce-cart .shop_table .cart_item .quantity input.qty::-webkit-inner-spin-button {
        -webkit-appearance: none !important;
        margin: 0 !important;
    }

    .woocommerce-cart .shop_table .cart_item .quantity .minus,
    .woocommerce-cart .shop_table .cart_item .quantity .plus {
        width: 36px !important;
        height: 36px !important;
        background: #f0f4f2 !important;
        color: #009C3B !important;
        border: none !important;
        font-size: 18px !important;
        font-weight: 800 !important;
        cursor: pointer !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        line-height: 1 !important;
    }

    /* 小计 */
    .woocommerce-cart .shop_table .cart_item .product-subtotal {
        grid-row: 4 !important;
        grid-column: 2 !important;
        font-size: 16px !important;
        font-weight: 900 !important;
        color: #009C3B !important;
        margin: 4px 0 0 0 !important;
        padding: 0 !important;
        border: none !important;
        text-align: left !important;
    }

    .woocommerce-cart .shop_table .cart_item .product-subtotal .woocommerce-Price-amount {
        color: #009C3B !important;
    }

    /* 删除按钮 */
    .woocommerce-cart .shop_table .cart_item .product-remove {
        grid-row: 1 !important;
        grid-column: 3 !important;
        padding: 0 !important;
        border: none !important;
        display: flex !important;
        justify-content: flex-end !important;
        align-items: flex-start !important;
    }

    .woocommerce-cart .shop_table .cart_item .product-remove a.remove {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 30px !important;
        height: 30px !important;
        background: #fff0f0 !important;
        color: #d32f2f !important;
        border-radius: 50% !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        text-decoration: none !important;
        line-height: 1 !important;
        transition: all 0.2s ease !important;
    }

    .woocommerce-cart .shop_table .cart_item .product-remove a.remove:hover {
        background: #d32f2f !important;
        color: #fff !important;
    }

    /* ===== 5. 优惠券区域 ===== */
    .woocommerce-cart .coupon {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        margin: 16px 0 !important;
        width: 100% !important;
        float: none !important;
    }

    .woocommerce-cart .coupon input[type="text"] {
        width: 100% !important;
        height: 46px !important;
        padding: 0 14px !important;
        border: 2px solid #e5e7eb !important;
        border-radius: 10px !important;
        font-size: 15px !important;
        background: #fff !important;
        box-sizing: border-box !important;
    }

    .woocommerce-cart .coupon button,
    .woocommerce-cart .coupon input[type="submit"] {
        width: 100% !important;
        height: 46px !important;
        background: #f0f4f2 !important;
        color: #009C3B !important;
        border: 2px solid #009C3B !important;
        border-radius: 10px !important;
        font-size: 15px !important;
        font-weight: 800 !important;
        cursor: pointer !important;
    }

    /* 更新购物车按钮 */
    .woocommerce-cart .shop_table button[name="update_cart"] {
        width: 100% !important;
        height: 46px !important;
        background: #f0f4f2 !important;
        color: #009C3B !important;
        border: 2px solid #009C3B !important;
        border-radius: 10px !important;
        font-size: 15px !important;
        font-weight: 800 !important;
        margin: 8px 0 16px 0 !important;
        cursor: pointer !important;
    }

    /* ===== 6. 购物车总价区域 ===== */
    .woocommerce-cart .cart-collaterals {
        margin-top: 20px !important;
    }

    .woocommerce-cart .cart_totals {
        background: #ffffff !important;
        border-radius: 14px !important;
        padding: 18px 16px !important;
        box-shadow: 0 4px 16px rgba(0,0,0,0.05) !important;
        border: 1px solid #eceff1 !important;
        width: 100% !important;
        float: none !important;
        box-sizing: border-box !important;
        margin: 0 0 20px 0 !important;
    }

    .woocommerce-cart .cart_totals h2 {
        font-size: 18px !important;
        font-weight: 800 !important;
        color: #111 !important;
        padding-bottom: 8px !important;
        margin: 0 0 14px 0 !important;
        border-bottom: 2px solid #009C3B !important;
    }

    .woocommerce-cart .cart_totals table {
        width: 100% !important;
        font-size: 14px !important;
        border: none !important;
    }

    .woocommerce-cart .cart_totals table th,
    .woocommerce-cart .cart_totals table td {
        padding: 10px 0 !important;
        border-bottom: 1px solid #f0f0f0 !important;
        color: #444 !important;
        background: transparent !important;
        font-weight: 600 !important;
    }

    .woocommerce-cart .cart_totals table td {
        text-align: right !important;
    }

    .woocommerce-cart .cart_totals .order-total th,
    .woocommerce-cart .cart_totals .order-total td {
        font-size: 18px !important;
        font-weight: 900 !important;
        color: #009C3B !important;
        border-top: 2px solid #009C3B !important;
        border-bottom: none !important;
        padding-top: 14px !important;
    }

    .woocommerce-cart .cart_totals .order-total td .woocommerce-Price-amount {
        color: #009C3B !important;
        font-size: 20px !important;
    }

    /* ===== 7. 底部 “Finalizar Compra” 按钮（巴西绿渐变） ===== */
    .woocommerce-cart .wc-proceed-to-checkout {
        margin: 0 !important;
        padding: 0 !important;
    }

    .woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
    .woocommerce-cart .wc-proceed-to-checkout a.button,
    .woocommerce-cart .wc-proceed-to-checkout button.button {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 56px !important;
        background: linear-gradient(135deg, #009C3B, #00C853) !important;
        background-color: #009C3B !important;
        color: #ffffff !important;
        border: none !important;
        border-radius: 14px !important;
        font-size: 18px !important;
        font-weight: 800 !important;
        letter-spacing: 0.3px !important;
        box-shadow: 0 8px 24px rgba(0, 156, 59, 0.35) !important;
        text-decoration: none !important;
        text-transform: none !important;
        transition: all 0.3s ease !important;
        text-shadow: none !important;
        padding: 0 16px !important;
        box-sizing: border-box !important;
    }

    .woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
    .woocommerce-cart .wc-proceed-to-checkout a.button:hover {
        background: linear-gradient(135deg, #00822F, #00B34A) !important;
        box-shadow: 0 12px 32px rgba(0, 156, 59, 0.5) !important;
        color: #fff !important;
    }

    .woocommerce-cart .wc-proceed-to-checkout a.checkout-button:active {
        transform: scale(0.98) !important;
    }

    /* ===== 8. 隐藏 Economize 徽章（如果显示很乱） ===== */
    .woocommerce-cart .shop_table .cart_item .product-name .save-tag,
    .woocommerce-cart .shop_table .cart_item .product-name .savings,
    .woocommerce-cart .shop_table .cart_item .product-name span.onsale {
        display: none !important;
    }

    /* ===== 9. 清除默认浮动和空格 ===== */
    .woocommerce-cart .shop_table .cart_item td::before {
        display: none !important;
    }

    .woocommerce-cart .shop_table .cart_item td {
        display: block !important;
        width: auto !important;
        border: none !important;
    }
}








/* =========================================================
   WooCommerce 我的账户 (My Account) - 完整美化
   巴西配色：绿 #009C3B / 黄 #FFDF00 / 蓝 #002776
   ========================================================= */

/* ===== 1. 页面背景和容器 ===== */
.woocommerce-account .site-content .ast-container {
    background: #f4f6f8 !important;
    padding: 24px 16px !important;
    max-width: 1200px !important;
    box-sizing: border-box !important;
}

/* ===== 2. 页面标题 ===== */
.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;
    line-height: 1.3 !important;
}

/* ===== 3. 布局：导航 + 内容 ===== */
.woocommerce-account .woocommerce {
    display: grid !important;
    grid-template-columns: 240px 1fr !important;
    gap: 24px !important;
    align-items: start !important;
}

/* ===== 4. 左侧导航菜单 ===== */
.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;
    line-height: 1.3 !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,
.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--dashboard.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-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout a {
    color: #d32f2f !important;
    margin-top: 8px !important;
    border-top: 1px solid #f0f0f0 !important;
    padding-top: 14px !important;
    border-radius: 0 0 10px 10px !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout a:hover {
    background: #fff0f0 !important;
    color: #d32f2f !important;
}

/* ===== 5. 右侧内容区 ===== */
.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;
    width: auto !important;
    float: none !important;
    box-sizing: border-box !important;
    font-size: 15px !important;
    color: #333 !important;
    line-height: 1.7 !important;
}

.woocommerce-account .woocommerce-MyAccount-content p {
    margin-bottom: 14px !important;
}

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

.woocommerce-account .woocommerce-MyAccount-content a:hover {
    text-decoration: underline !important;
}

/* ===== 6. 表单字段 ===== */
.woocommerce-account .woocommerce-MyAccount-content form .form-row {
    margin-bottom: 16px !important;
    padding: 0 !important;
}

.woocommerce-account .woocommerce-MyAccount-content form label {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #333 !important;
    margin-bottom: 6px !important;
    display: block !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;
    transition: all 0.25s ease !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.woocommerce-account .woocommerce-MyAccount-content form textarea {
    height: auto !important;
    min-height: 100px !important;
    padding: 12px 14px !important;
    line-height: 1.6 !important;
}

.woocommerce-account .woocommerce-MyAccount-content form input:focus,
.woocommerce-account .woocommerce-MyAccount-content form select:focus,
.woocommerce-account .woocommerce-MyAccount-content form 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;
}

/* ===== 7. 按钮样式 ===== */
.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;
    background-color: #009C3B !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    letter-spacing: 0.3px !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;
    text-shadow: none !important;
}

.woocommerce-account .woocommerce-MyAccount-content form button:hover,
.woocommerce-account .woocommerce-MyAccount-content form input[type="submit"]:hover,
.woocommerce-account .woocommerce-MyAccount-content .button:hover {
    background: linear-gradient(135deg, #00822F, #00B34A) !important;
    box-shadow: 0 10px 24px rgba(0, 156, 59, 0.45) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
}

.woocommerce-account .woocommerce-MyAccount-content form button:active,
.woocommerce-account .woocommerce-MyAccount-content .button:active {
    transform: scale(0.98) !important;
}

/* ===== 8. 订单列表表格 ===== */
.woocommerce-account .woocommerce-orders-table,
.woocommerce-account table.shop_table {
    width: 100% !important;
    border-collapse: collapse !important;
    border: none !important;
    font-size: 14px !important;
    background: transparent !important;
    border-radius: 10px !important;
    overflow: hidden !important;
}

.woocommerce-account .woocommerce-orders-table thead {
    background: #f4f6f8 !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: transparent !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
}

.woocommerce-account .woocommerce-orders-table td {
    padding: 14px !important;
    border-top: 1px solid #f0f0f0 !important;
    border-bottom: none !important;
    color: #333 !important;
    background: transparent !important;
    vertical-align: middle !important;
}

.woocommerce-account .woocommerce-orders-table td .button {
    min-height: 36px !important;
    padding: 0 16px !important;
    font-size: 13px !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}

.woocommerce-account .woocommerce-orders-table td .button:hover {
    transform: none !important;
    box-shadow: 0 4px 12px rgba(0, 156, 59, 0.3) !important;
}

/* 订单状态徽章 */
.woocommerce-account .woocommerce-orders-table .woocommerce-order-status,
.woocommerce-account mark.order-status {
    display: inline-block !important;
    padding: 4px 10px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    background: #f0faf4 !important;
    color: #009C3B !important;
    border: none !important;
}

/* ===== 9. 地址卡片 ===== */
.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 header,
.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 .woocommerce-Address-title a,
.woocommerce-account .woocommerce-Address-edit {
    font-size: 13px !important;
    color: #009C3B !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

.woocommerce-account .woocommerce-Address address {
    font-style: normal !important;
    color: #555 !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
    margin: 0 !important;
}

/* ===== 10. 登录 / 注册表单（未登录状态） ===== */
.woocommerce-account .woocommerce-form-login,
.woocommerce-account .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: 24px !important;
    max-width: 480px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

.woocommerce-account .woocommerce-form-login h2,
.woocommerce-account .woocommerce-form-register h2 {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #111 !important;
    margin: 0 0 16px 0 !important;
    padding-bottom: 10px !important;
    border-bottom: 2px solid #009C3B !important;
    text-align: center !important;
}

/* ===== 11. 消息提示 ===== */
.woocommerce-account .woocommerce-Message,
.woocommerce-account .woocommerce-info,
.woocommerce-account .woocommerce-error {
    border-radius: 10px !important;
    padding: 14px 18px !important;
    font-size: 14px !important;
    border-left: 4px solid #009C3B !important;
    background: #f0faf4 !important;
    color: #333 !important;
    box-shadow: none !important;
    margin-bottom: 16px !important;
}

.woocommerce-account .woocommerce-error {
    border-left-color: #d32f2f !important;
    background: #fff0f0 !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;
        margin-bottom: 16px !important;
    }

    /* 布局改为单列 */
    .woocommerce-account .woocommerce {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
    }

    /* 导航菜单：横向滚动的胶囊按钮 */
    .woocommerce-account .woocommerce-MyAccount-navigation {
        padding: 10px !important;
        border-radius: 12px !important;
        width: 100% !important;
        box-sizing: border-box !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 {
        margin: 0 !important;
        flex: 0 1 auto !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;
        border-color: transparent !important;
        box-shadow: 0 4px 12px rgba(0, 156, 59, 0.3) !important;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout a {
        border-top: none !important;
        margin-top: 0 !important;
        padding-top: 9px !important;
        border-radius: 20px !important;
        background: #fff0f0 !important;
        border: 1px solid #ffd6d6 !important;
        color: #d32f2f !important;
    }

    /* 内容区 */
    .woocommerce-account .woocommerce-MyAccount-content {
        padding: 18px 16px !important;
        border-radius: 12px !important;
        font-size: 14px !important;
    }

    /* 地址：单列 */
    .woocommerce-account .woocommerce-Addresses {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    /* 订单表格：移动端横向滚动 */
    .woocommerce-account .woocommerce-orders-table-wrapper,
    .woocommerce-account .woocommerce-orders-table {
        display: block !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .woocommerce-account .woocommerce-orders-table th,
    .woocommerce-account .woocommerce-orders-table td {
        white-space: nowrap !important;
        padding: 10px 12px !important;
    }

    /* 表单按钮全宽 */
    .woocommerce-account .woocommerce-MyAccount-content form button,
    .woocommerce-account .woocommerce-MyAccount-content form input[type="submit"] {
        width: 100% !important;
    }

    /* 登录/注册表单 */
    .woocommerce-account .woocommerce-form-login,
    .woocommerce-account .woocommerce-form-register {
        padding: 20px 16px !important;
    }
}



















/* =========================================================
   商品详情页 - 按钮巴西配色（PC + 移动端通用）
   ========================================================= */

/* 两个按钮的公共样式 */
.single-product div.product form.cart button[name="add-to-cart"],
.single-product div.product form.cart button[name="buy-now"] {
    white-space: nowrap !important;
    border: none !important;
    border-radius: 12px !important;
    font-weight: 800 !important;
    letter-spacing: 0.3px !important;
    transition: all 0.25s ease !important;
    text-shadow: none !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08) !important;
    padding: 14px 26px !important;
    font-size: 16px !important;
    cursor: pointer !important;
}

/* ===== 加入购物车 - 巴西绿 ===== */
.single-product div.product form.cart button[name="add-to-cart"] {
    background: linear-gradient(135deg, #009C3B, #00C853) !important;
    background-color: #009C3B !important;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(0, 156, 59, 0.35) !important;
}

.single-product div.product form.cart button[name="add-to-cart"]:hover {
    background: linear-gradient(135deg, #00822F, #00B34A) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(0, 156, 59, 0.5) !important;
}

.single-product div.product form.cart button[name="add-to-cart"]:active {
    transform: scale(0.98);
    box-shadow: 0 3px 10px rgba(0, 156, 59, 0.5) !important;
}

/* ===== 立即购买 - 巴西黄 + 深蓝字 ===== */
.single-product div.product form.cart button[name="buy-now"] {
    background: linear-gradient(135deg, #FFDF00, #FFC400) !important;
    background-color: #FFDF00 !important;
    color: #002776 !important;
    box-shadow: 0 6px 18px rgba(255, 200, 0, 0.45) !important;
}

.single-product div.product form.cart button[name="buy-now"]:hover {
    background: linear-gradient(135deg, #FFD000, #FFB800) !important;
    color: #001a4d !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(255, 200, 0, 0.6) !important;
}

.single-product div.product form.cart button[name="buy-now"]:active {
    transform: scale(0.98);
    box-shadow: 0 3px 10px rgba(255, 200, 0, 0.6) !important;
}

/* 防止 WPC Buy Now 插件内部 span 破坏文字颜色 */
.single-product div.product form.cart button[name="buy-now"] *,
.single-product div.product form.cart button[name="buy-now"] span {
    color: #002776 !important;
}

/* 数量框高度和按钮对齐（PC 端） */
.single-product div.product form.cart .quantity input.qty {
    height: 52px !important;
    line-height: 52px !important;
    box-sizing: border-box !important;
}









/* =========================================================
   WooCommerce 结账页 - 巴西配色按钮 + 边距调整（PC + 移动端通用）
   ========================================================= */

/* ===== 1. 结账页整体容器边距 ===== */
.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;
}

/* ===== 2. 表单区块左右边距 ===== */
.woocommerce-checkout #customer_details,
.woocommerce-checkout #order_review {
    box-sizing: border-box !important;
}

.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-shipping-fields,
.woocommerce-checkout .woocommerce-additional-fields {
    padding-left: 4px !important;
    padding-right: 4px !important;
}

/* ===== 3. 下单按钮 “Finalizar compra” - 巴西绿渐变 ===== */
.woocommerce-checkout #place_order {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 56px !important;
    min-height: 56px !important;
    background: linear-gradient(135deg, #009C3B, #00C853) !important;
    background-color: #009C3B !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 14px !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    letter-spacing: 0.3px !important;
    box-shadow: 0 8px 24px rgba(0, 156, 59, 0.35) !important;
    transition: all 0.3s ease !important;
    margin-top: 14px !important;
    padding: 0 24px !important;
    text-shadow: none !important;
    text-transform: none !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
}

.woocommerce-checkout #place_order:hover {
    background: linear-gradient(135deg, #00822F, #00B34A) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 156, 59, 0.5) !important;
}

.woocommerce-checkout #place_order:active {
    transform: scale(0.98) !important;
    box-shadow: 0 4px 12px rgba(0, 156, 59, 0.5) !important;
}

/* ===== 4. 结账页其他按钮（优惠券、更新等）也顺便改巴西绿 ===== */
.woocommerce-checkout button.button,
.woocommerce-checkout input.button,
.woocommerce-checkout a.button {
    background: linear-gradient(135deg, #009C3B, #00C853) !important;
    background-color: #009C3B !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 {
    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;
}

/* ===== 5. 移动端边距精修（覆盖原有设置） ===== */
@media (max-width: 768px) {

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

    .woocommerce-checkout .woocommerce-billing-fields,
    .woocommerce-checkout .woocommerce-shipping-fields,
    .woocommerce-checkout .woocommerce-additional-fields {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .woocommerce-checkout #place_order {
        height: 54px !important;
        min-height: 54px !important;
        font-size: 17px !important;
        border-radius: 13px !important;
        margin-top: 12px !important;
    }
}

/* ===== 6. PC 端双列布局下的边距平衡 ===== */
@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 Block) - 巴西配色 + 边距
   PC + 移动端通用
   ========================================================= */

/* ===== 1. 结账页整体容器边距 ===== */
.wc-block-checkout .wp-block-woocommerce-checkout,
.wc-block-checkout .wc-block-components-checkout-step,
.wc-block-checkout .wc-block-checkout__main,
.wc-block-checkout .wc-block-checkout__sidebar {
    box-sizing: border-box !important;
}

.wc-block-checkout {
    padding-left: 16px !important;
    padding-right: 16px !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ===== 2. 主按钮：Finalizar pedido / Place order - 巴西绿渐变 ===== */
.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 {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 56px !important;
    min-height: 56px !important;
    background: linear-gradient(135deg, #009C3B, #00C853) !important;
    background-color: #009C3B !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 14px !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    letter-spacing: 0.3px !important;
    box-shadow: 0 8px 24px rgba(0, 156, 59, 0.35) !important;
    transition: all 0.3s ease !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:hover,
button.wc-block-components-checkout-place-order-button:hover {
    background: linear-gradient(135deg, #00822F, #00B34A) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 156, 59, 0.5) !important;
}

.wc-block-components-checkout-place-order-button:active {
    transform: scale(0.98) !important;
    box-shadow: 0 4px 12px rgba(0, 156, 59, 0.5) !important;
}

/* 按钮内部的文字容器也要保证白色 */
.wc-block-components-checkout-place-order-button .wc-block-components-button__text,
.wc-block-components-checkout-place-order-button .wc-block-components-checkout-place-order-button__text,
.wc-block-components-checkout-place-order-button * {
    color: #ffffff !important;
    background: transparent !important;
    font-weight: 800 !important;
}

/* ===== 3. 区块结账其他按钮（返回购物车、优惠券、编辑等）也改成巴西绿 ===== */
.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;
    background-color: #009C3B !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;
}

.wc-block-checkout .wc-block-components-button:hover,
.wc-block-checkout button.wc-block-components-button:hover,
.wc-block-checkout a.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;
}

/* 但 “Voltar para o carrinho” 这类次要按钮保持低调样式 */
.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;
}

/* ===== 4. 订单摘要区域卡片化 ===== */
.wc-block-checkout .wc-block-components-sidebar,
.wc-block-checkout .wc-block-checkout__sidebar {
    background: #ffffff !important;
    border-radius: 14px !important;
    padding: 18px !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04) !important;
    border: 1px solid #eceff1 !important;
}

/* ===== 5. 输入框统一风格 ===== */
.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"] {
    border: 2px solid #e5e7eb !important;
    border-radius: 10px !important;
    background: #fafbfc !important;
    height: 48px !important;
    padding: 0 14px !important;
    font-size: 15px !important;
    box-sizing: border-box !important;
    transition: all 0.25s ease !important;
}

.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;
}

/* ===== 6. 支付方式选中高亮 ===== */
.wc-block-checkout .wc-block-components-radio-control__option {
    border: 2px solid #e5e7eb !important;
    border-radius: 12px !important;
    padding: 14px 16px !important;
    background: #fafbfc !important;
    transition: all 0.2s ease !important;
    margin-bottom: 10px !important;
}

.wc-block-checkout .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;
}

/* ===== 7. 移动端边距精修 ===== */
@media (max-width: 768px) {

    .wc-block-checkout {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .wc-block-components-checkout-place-order-button {
        height: 54px !important;
        min-height: 54px !important;
        font-size: 17px !important;
        border-radius: 13px !important;
    }

    .wc-block-checkout .wc-block-components-sidebar,
    .wc-block-checkout .wc-block-checkout__sidebar {
        padding: 14px !important;
        border-radius: 12px !important;
    }
}





/* =========================================================
   区块结账 (Checkout Block) - 订单摘要商品卡片修复
   PC + 移动端通用
   ========================================================= */

/* ===== 1. 商品行改为弹性布局，让名称有足够宽度 ===== */
.wc-block-components-order-summary-item {
    display: grid !important;
    grid-template-columns: 64px 1fr auto !important;
    column-gap: 14px !important;
    row-gap: 6px !important;
    align-items: flex-start !important;
    padding: 14px 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
    box-sizing: border-box !important;
}

/* 缩略图 */
.wc-block-components-order-summary-item__image {
    grid-column: 1 !important;
    grid-row: 1 / 3 !important;
    width: 64px !important;
    height: 64px !important;
    min-width: 64px !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
}

.wc-block-components-order-summary-item__image img {
    width: 64px !important;
    height: 64px !important;
    object-fit: cover !important;
    border-radius: 10px !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
}

/* 描述区（名称 + 元数据） */
.wc-block-components-order-summary-item__description {
    grid-column: 2 !important;
    grid-row: 1 / 3 !important;
    min-width: 0 !important;   /* 关键：允许子元素收缩并换行 */
    padding: 0 !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    white-space: normal !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.4 !important;
    margin: 0 0 4px 0 !important;
    padding: 0 !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    white-space: normal !important;
    text-align: left !important;
    max-width: 100% !important;
}

/* 商品元数据（数量、属性等） */
.wc-block-components-product-metadata {
    font-size: 12px !important;
    color: #888 !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.wc-block-components-product-metadata * {
    font-size: 12px !important;
    color: #888 !important;
    margin: 0 !important;
}

/* 右侧价格 */
.wc-block-components-order-summary-item__total-price,
.wc-block-components-order-summary-item__total-price * {
    grid-column: 3 !important;
    grid-row: 1 / 3 !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;
    padding: 0 !important;
    margin: 0 !important;
}

.wc-block-components-order-summary-item__total-price .woocommerce-Price-amount {
    color: #009C3B !important;
}

/* ===== 2. "Economize R$" 徽章压缩为小标签 ===== */
.wc-block-components-product-metadata .wc-block-components-product-price__value,
.wc-block-components-product-metadata .save-tag,
.wc-block-components-product-metadata .savings,
.wc-block-components-order-summary-item__description .savings,
.wc-block-components-order-summary-item__description .save-badge {
    display: inline-block !important;
    padding: 2px 8px !important;
    border-radius: 20px !important;
    background: #f0faf4 !important;
    color: #009C3B !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    margin-top: 4px !important;
    white-space: nowrap !important;
}

/* 如果真的想直接隐藏，取消下面的注释 */
/*
.wc-block-components-product-metadata .savings,
.wc-block-components-order-summary-item__description .savings {
    display: none !important;
}
*/

/* ===== 3. 下方 “Envio e Frete” 块也修复换行 ===== */
.wc-block-components-order-summary .wc-block-components-panel__content,
.wc-block-components-shipping-options,
.wc-block-checkout__shipping-option,
.wc-block-components-shipping-rates-control,
.wc-block-components-totals-shipping {
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    white-space: normal !important;
    font-size: 13px !important;
    color: #555 !important;
    line-height: 1.6 !important;
}

.wc-block-components-shipping-rates-control__package__description,
.wc-block-components-shipping-rates-control__package__description * {
    font-size: 13px !important;
    color: #555 !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    white-space: normal !important;
}

/* ===== 4. 小计 / 运费 / 总计 行优化 ===== */
.wc-block-components-totals-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 10px 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
    font-size: 14px !important;
    color: #444 !important;
    box-sizing: border-box !important;
}

.wc-block-components-totals-item__label {
    font-weight: 600 !important;
    color: #333 !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !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;
    margin-left: 12px !important;
}

.wc-block-components-totals-item__value .woocommerce-Price-amount {
    color: #009C3B !important;
}

/* 总计行高亮 */
.wc-block-components-totals-footer-item {
    border-top: 2px solid #009C3B !important;
    border-bottom: none !important;
    padding-top: 14px !important;
    margin-top: 6px !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;
}

/* ===== 5. 移动端微调 ===== */
@media (max-width: 768px) {

    .wc-block-components-order-summary-item {
        grid-template-columns: 56px 1fr auto !important;
        column-gap: 10px !important;
        padding: 12px 0 !important;
    }

    .wc-block-components-order-summary-item__image,
    .wc-block-components-order-summary-item__image img {
        width: 56px !important;
        height: 56px !important;
        min-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;
    }
}



/* =========================================================
   My Account - 未登录状态（登录 / 注册表单）PC 端修复
   ========================================================= */

/* 1. 未登录时不要用两栏网格布局，改成正常块级 */
.woocommerce-account:not(.logged-in) .woocommerce {
    display: block !important;
    grid-template-columns: none !important;
    gap: 0 !important;
}

/* 2. 隐藏未登录时多余的导航菜单 */
.woocommerce-account:not(.logged-in) .woocommerce-MyAccount-navigation {
    display: none !important;
}

/* 3. 内容区改成两列网格，放登录 + 注册 */
.woocommerce-account:not(.logged-in) .woocommerce-MyAccount-content {
    display: block !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* 4. 登录/注册两个表单的容器 */
.woocommerce-account:not(.logged-in) .u-columns.col2-set {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 28px !important;
    width: 100% !important;
    margin: 0 !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;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* 5. 登录 / 注册表单卡片 */
.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;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

/* 6. 表单标题 */
.woocommerce-account:not(.logged-in) .woocommerce-form-login h2,
.woocommerce-account:not(.logged-in) .woocommerce-form-register h2 {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #111 !important;
    margin: 0 0 18px 0 !important;
    padding-bottom: 10px !important;
    border-bottom: 2px solid #009C3B !important;
    text-align: left !important;
}

/* 7. 字段宽度 */
.woocommerce-account:not(.logged-in) form .form-row {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 16px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.woocommerce-account:not(.logged-in) form .form-row label {
    display: block !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #333 !important;
    margin-bottom: 6px !important;
    white-space: normal !important;
    word-break: normal !important;
}

.woocommerce-account:not(.logged-in) form .form-row input[type="text"],
.woocommerce-account:not(.logged-in) form .form-row input[type="email"],
.woocommerce-account:not(.logged-in) form .form-row input[type="password"] {
    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;
    transition: all 0.25s ease !important;
}

.woocommerce-account:not(.logged-in) form .form-row input:focus {
    border-color: #009C3B !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(0, 156, 59, 0.12) !important;
    outline: none !important;
}

/* 8. 按钮 */
.woocommerce-account:not(.logged-in) form button,
.woocommerce-account:not(.logged-in) form input[type="submit"] {
    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-transform: none !important;
    transition: all 0.25s ease !important;
}

.woocommerce-account:not(.logged-in) form button:hover,
.woocommerce-account:not(.logged-in) form input[type="submit"]:hover {
    background: linear-gradient(135deg, #00822F, #00B34A) !important;
    box-shadow: 0 10px 24px rgba(0, 156, 59, 0.45) !important;
    transform: translateY(-2px) !important;
}

/* 9. 隐私政策文字 */
.woocommerce-account:not(.logged-in) .woocommerce-privacy-policy-text {
    font-size: 12px !important;
    color: #888 !important;
    line-height: 1.6 !important;
    margin-top: 14px !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
}

.woocommerce-account:not(.logged-in) .woocommerce-privacy-policy-text a {
    color: #009C3B !important;
    text-decoration: underline !important;
}

/* 10. 忘记密码链接 */
.woocommerce-account:not(.logged-in) .woocommerce-LostPassword {
    margin-top: 10px !important;
    font-size: 13px !important;
}

.woocommerce-account:not(.logged-in) .woocommerce-LostPassword a {
    color: #009C3B !important;
    text-decoration: none !important;
}

/* =========================================================
   移动端：单列显示
   ========================================================= */
@media (max-width: 768px) {

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

    .woocommerce-account:not(.logged-in) .woocommerce-form-login,
    .woocommerce-account:not(.logged-in) .woocommerce-form-register {
        padding: 22px 18px !important;
        border-radius: 12px !important;
    }

    .woocommerce-account:not(.logged-in) form button,
    .woocommerce-account:not(.logged-in) form input[type="submit"] {
        width: 100% !important;
    }
}




/* =========================================================
   My Account 登录/注册 - 密码框移动端修复
   ========================================================= */

/* 1. 密码框容器恢复正常高度，不要被按钮样式影响 */
.woocommerce-account:not(.logged-in) .password-input {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* 2. 密码输入框本体：白底、圆角、深色文字 */
.woocommerce-account:not(.logged-in) .password-input input[type="password"],
.woocommerce-account:not(.logged-in) .password-input input[type="text"],
.woocommerce-account:not(.logged-in) form .form-row input[type="password"] {
    width: 100% !important;
    height: 48px !important;
    padding: 0 44px 0 14px !important;   /* 右侧留位置给眼睛图标 */
    border: 2px solid #e5e7eb !important;
    border-radius: 10px !important;
    background: #fafbfc !important;
    color: #222 !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
    line-height: 1.2 !important;
    text-align: left !important;
    display: block !important;
}

/* 3. 眼睛图标：贴在输入框右侧，透明背景，灰色 */
.woocommerce-account:not(.logged-in) .password-input .show-password-input,
.woocommerce-account:not(.logged-in) .password-input .show-password-input::before,
.woocommerce-account:not(.logged-in) .password-input .show-password-input::after {
    position: absolute !important;
    top: 50% !important;
    right: 12px !important;
    transform: translateY(-50%) !important;
    width: 24px !important;
    height: 24px !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #888 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 16px !important;
    line-height: 1 !important;
}

/* 4. 防止 Astra 给密码框套上 .button 样式 */
.woocommerce-account:not(.logged-in) .password-input input.button,
.woocommerce-account:not(.logged-in) .password-input input[type="password"].button,
.woocommerce-account:not(.logged-in) .password-input input[type="text"].button {
    background: #fafbfc !important;
    color: #222 !important;
    border: 2px solid #e5e7eb !important;
    box-shadow: none !important;
    font-weight: 400 !important;
    text-transform: none !important;
}

/* 5. 密码框获得焦点时的样式 */
.woocommerce-account:not(.logged-in) .password-input input[type="password"]:focus,
.woocommerce-account:not(.logged-in) .password-input input[type="text"]:focus {
    border-color: #009C3B !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(0, 156, 59, 0.12) !important;
    outline: none !important;
}

/* 6. 移动端微调 */
@media (max-width: 768px) {
    .woocommerce-account:not(.logged-in) .password-input input[type="password"],
    .woocommerce-account:not(.logged-in) .password-input input[type="text"] {
        height: 46px !important;
        padding: 0 42px 0 12px !important;
        font-size: 14px !important;
    }

    .woocommerce-account:not(.logged-in) .password-input .show-password-input {
        right: 10px !important;
        width: 22px !important;
        height: 22px !important;
        font-size: 15px !important;
    }
}




/* =========================================================
   购物车 (Cart) - 移动端完整美化（含空购物车状态）
   巴西配色：绿 #009C3B / 黄 #FFDF00 / 蓝 #002776
   只对 768px 以下生效
   ========================================================= */
@media (max-width: 768px) {

    /* ===== 1. 页面整体容器边距 ===== */
    .woocommerce-cart .site-content .ast-container {
        padding: 16px 14px 40px !important;
        background: #f4f6f8 !important;
        box-sizing: border-box !important;
    }

    /* ===== 2. 页面标题 Carrinho ===== */
    .woocommerce-cart .entry-title,
    .woocommerce-cart h1 {
        font-size: 22px !important;
        font-weight: 800 !important;
        color: #111 !important;
        padding-bottom: 10px !important;
        margin: 0 0 18px 0 !important;
        border-bottom: 3px solid #009C3B !important;
        line-height: 1.3 !important;
    }

    /* ===== 3. 空购物车状态 ===== */
    .woocommerce-cart .cart-empty,
    .woocommerce-cart .wc-empty-cart-message p {
        font-size: 16px !important;
        font-weight: 700 !important;
        color: #333 !important;
        text-align: center !important;
        padding: 30px 16px 20px !important;
        margin: 0 !important;
        line-height: 1.6 !important;
    }

    /* 空购物车图标 */
    .woocommerce-cart .wc-empty-cart-message::before {
        content: '🛒' !important;
        display: block !important;
        font-size: 48px !important;
        text-align: center !important;
        margin-bottom: 10px !important;
    }

    /* 返回店铺按钮 */
    .woocommerce-cart .return-to-shop {
        text-align: center !important;
        margin-top: 8px !important;
    }

    .woocommerce-cart .return-to-shop a.button,
    .woocommerce-cart .return-to-shop a.wc-backward {
        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: #fff !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;
        text-decoration: none !important;
    }

    /* ===== 4. “商店新品”标题（相关/推荐商品区） ===== */
    .woocommerce-cart .cross-sells > h2,
    .woocommerce-cart .related > h2,
    .woocommerce-cart .upsells > h2,
    .woocommerce-cart h2.products-title,
    .woocommerce-cart .woocommerce h2 {
        font-size: 20px !important;
        font-weight: 800 !important;
        color: #111 !important;
        text-align: center !important;
        margin: 32px 0 20px 0 !important;
        padding-bottom: 10px !important;
        border-bottom: 2px solid #009C3B !important;
        line-height: 1.3 !important;
    }

    /* ===== 5. 推荐商品卡片 ===== */
    .woocommerce-cart .cross-sells ul.products,
    .woocommerce-cart .related ul.products,
    .woocommerce-cart .upsells ul.products {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

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

    /* 商品图片 */
    .woocommerce-cart .cross-sells ul.products li.product a img,
    .woocommerce-cart .related ul.products li.product a img,
    .woocommerce-cart .upsells ul.products li.product a img {
        width: 100% !important;
        height: auto !important;
        border-radius: 10px !important;
        margin-bottom: 8px !important;
    }

    /* 商品标题 */
    .woocommerce-cart .cross-sells ul.products li.product .woocommerce-loop-product__title,
    .woocommerce-cart .related ul.products li.product .woocommerce-loop-product__title,
    .woocommerce-cart .upsells ul.products li.product .woocommerce-loop-product__title {
        font-size: 13px !important;
        font-weight: 700 !important;
        color: #222 !important;
        line-height: 1.4 !important;
        margin: 6px 0 !important;
        padding: 0 !important;
        min-height: 36px !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
    }

    /* 价格 */
    .woocommerce-cart .cross-sells ul.products li.product .price,
    .woocommerce-cart .related ul.products li.product .price,
    .woocommerce-cart .upsells ul.products li.product .price {
        font-size: 14px !important;
        font-weight: 800 !important;
        color: #009C3B !important;
        margin: 6px 0 10px 0 !important;
    }

    .woocommerce-cart .cross-sells ul.products li.product .price del,
    .woocommerce-cart .related ul.products li.product .price del {
        color: #999 !important;
        font-size: 12px !important;
        font-weight: 500 !important;
    }

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

    /* “加入购物车”按钮 */
    .woocommerce-cart .cross-sells ul.products li.product .add_to_cart_button,
    .woocommerce-cart .related ul.products li.product .add_to_cart_button,
    .woocommerce-cart .upsells ul.products li.product .add_to_cart_button {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 40px !important;
        min-height: 40px !important;
        padding: 0 10px !important;
        margin: 0 !important;
        background: linear-gradient(135deg, #009C3B, #00C853) !important;
        color: #fff !important;
        border: none !important;
        border-radius: 10px !important;
        font-size: 13px !important;
        font-weight: 800 !important;
        white-space: nowrap !important;
        text-decoration: none !important;
        box-shadow: 0 4px 12px rgba(0, 156, 59, 0.3) !important;
    }

    /* “立即购买”按钮（如果显示的话） */
    .woocommerce-cart .cross-sells ul.products li.product .wpcbn-btn,
    .woocommerce-cart .related ul.products li.product .wpcbn-btn,
    .woocommerce-cart .upsells ul.products li.product .wpcbn-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 40px !important;
        min-height: 40px !important;
        padding: 0 10px !important;
        margin: 8px 0 0 0 !important;
        background: linear-gradient(135deg, #FFDF00, #FFC400) !important;
        color: #002776 !important;
        border: none !important;
        border-radius: 10px !important;
        font-size: 13px !important;
        font-weight: 800 !important;
        white-space: nowrap !important;
        text-decoration: none !important;
    }

    /* 防止插件内部 span 破坏文字颜色 */
    .woocommerce-cart .cross-sells ul.products li.product .wpcbn-btn *,
    .woocommerce-cart .related ul.products li.product .wpcbn-btn * {
        color: #002776 !important;
    }
}





/* =========================================================
   购物车推荐区 - 加购按钮改巴西绿（适配 wp-block-button__link）
   ========================================================= */

/* 桌面 + 移动端通用 */
a.wp-block-button__link.add_to_cart_button,
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;
    background-color: #009C3B !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;
}

a.wp-block-button__link.add_to_cart_button:hover,
a.wp-block-button__link.ajax_add_to_cart:hover,
.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;
}

a.wp-block-button__link.add_to_cart_button:active,
.wp-block-button__link.add_to_cart_button:active {
    transform: scale(0.98) !important;
    box-shadow: 0 4px 12px rgba(0, 156, 59, 0.5) !important;
}

/* 移动端：全宽、更适合两列卡片 */
@media (max-width: 768px) {
    a.wp-block-button__link.add_to_cart_button,
    a.wp-block-button__link.ajax_add_to_cart,
    .wp-block-button__link.add_to_cart_button {
        width: 100% !important;
        height: 40px !important;
        min-height: 40px !important;
        padding: 0 10px !important;
        font-size: 13px !important;
        border-radius: 10px !important;
        white-space: nowrap !important;
    }
}

/* 顺便把“立即购买”按钮也补上（如果推荐区有的话） */
a.wp-block-button__link.wpcbn-btn,
.wp-block-button__link.wpcbn-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #FFDF00, #FFC400) !important;
    background-color: #FFDF00 !important;
    color: #002776 !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    padding: 12px 22px !important;
    box-shadow: 0 6px 18px rgba(255, 200, 0, 0.45) !important;
    text-decoration: none !important;
    text-transform: none !important;
    transition: all 0.25s ease !important;
}

a.wp-block-button__link.wpcbn-btn *,
.wp-block-button__link.wpcbn-btn * {
    color: #002776 !important;
}

@media (max-width: 768px) {
    a.wp-block-button__link.wpcbn-btn,
    .wp-block-button__link.wpcbn-btn {
        width: 100% !important;
        height: 40px !important;
        min-height: 40px !important;
        padding: 0 10px !important;
        font-size: 13px !important;
        margin-top: 8px !important;
    }
}
