/**
Theme Name: Astra Child
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/

/* ===================================================
   自定义样式：未登录时隐藏购物车
   =================================================== */
body:not(.logged-in) .ast-header-woo-cart {
    display: none !important;
}

.page .entry-title,
.page .page-title {
    display: none !important;
}

/* ==========================================================================
   全站优质无衬线中文系统字体栈（苹方 / 微软雅黑 / 系统默认）
   ========================================================================== */
body, 
h1, h2, h3, h4, h5, h6, 
p, a, span, button, input, select, textarea {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif !important;
}
/* 登录后菜单项变多：收紧桌面端主菜单间距，并让页眉右侧按钮不换行，避免“购买”被挤到下一行 */
@media (min-width: 922px) {
    .ast-desktop .ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link {
        padding-left: 12px;
        padding-right: 12px;
    }
    [data-section="sidebar-widgets-header-widget-1"] .wp-block-buttons {
        flex-wrap: nowrap;
        white-space: nowrap;
    }
}

/* 页眉右上角购物车（Astra Cart 组件）：与“下载及试用 / 购买”按钮统一为同色胶囊、同高、垂直对齐 */
@media (min-width: 922px) {
    .ast-header-woo-cart .ast-site-header-cart-li > a.cart-container {
        display: flex;
        align-items: center;
        height: 41px;
        padding: 0 17px;
        border-radius: 22px;
        background: #8e43f0;
        color: #fff;
        font-size: 15px;
        line-height: 1;
    }
    .ast-header-woo-cart .ast-addon-cart-wrap {
        display: inline-flex;
        align-items: center;
        height: auto;
        padding: 0;
        border-radius: 0;
        background: transparent;
        color: inherit;
    }
    .ast-header-woo-cart .ast-addon-cart-wrap .ast-woo-header-cart-info-wrap {
        padding-right: 6px;
    }
    /* 数量角标：购物车为空时不显示，避免悬在胶囊角上的“0” */
    .ast-header-woo-cart .ast-addon-cart-wrap i[data-cart-total="0"]::after {
        display: none;
    }
}

/* ==========================================================================
   合规页面（Terms / Privacy / Refund / Delivery / About / Contact / Pricing）与结账主体声明
   ========================================================================== */
.vvv-legal { max-width: 860px; margin: 0 auto; line-height: 1.7; }
.vvv-legal h1 { margin-bottom: .3em; }
.vvv-legal h2 { margin-top: 1.6em; font-size: 1.25em; }
.vvv-legal-meta { color: #666; font-size: .9em; }
.vvv-legal-address { font-style: normal; background: #f7f5fb; border-left: 4px solid #8e43f0; padding: 12px 16px; margin: 1em 0; }
.vvv-seller-notice { background: #f7f5fb; border-left: 4px solid #8e43f0; padding: 10px 14px; margin: 0 0 16px; font-size: 14px; line-height: 1.55; }
.vvv-operator-line { opacity: .85; }
.vvv-price-card { border: 1px solid #e3dff0; border-radius: 12px; padding: 24px 28px; max-width: 520px; margin: 1.5em 0; }
.vvv-price-card h2 { margin-top: 0; }
.vvv-price { font-size: 2em; font-weight: 700; margin: .2em 0; }
.vvv-price span { font-size: .45em; font-weight: 400; color: #666; }
.vvv-price-note { font-size: .85em; color: #666; }
.vvv-price-card .vvv-buy { background: #8e43f0; color: #fff; border-radius: 22px; padding: 10px 28px; display: inline-block; }
.vvv-pcode-field textarea { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important; font-size: 12px; word-break: break-all; }
