/* ============================================================
   base.css — CSS 变量 + 全局样式 + Astra/WooCommerce 覆盖
   浅色主题 (DEVELOPMENT_STANDARDS §3.1)
   2026-05-12 v2.0 浅色主题迁移
   ============================================================ */

/* --- CSS 变量（规范源）--- */
:root {
  --sg-primary: #046bd2;
  --sg-primary-dark: #034a91;
  --sg-accent: #f5c518;
  --sg-accent2: #e2401c;
  --sg-bg-page: #ffffff;
  --sg-bg-card: #f8fafc;
  --sg-bg-card2: #f1f5f9;
  --sg-text: #1a1a2e;
  --sg-text-muted: #64748b;
  --sg-text-dim: #6b7280;
  --sg-whatsapp: #25D366;
  --sg-border-subtle: #e2e8f0;
  --sg-border-light: #cbd5e1;
  --sg-radius-sm: 8px;
  --sg-radius-md: 12px;
  --sg-radius-lg: 16px;
  --sg-max-width: 1200px;
  --sg-error: #ef4444;
  /* 绿色主题品牌色（全站统一） */
  --sg-pitch-dark: #1e6b3a;
  --sg-pitch-green: #2d8a4e;
  --sg-pitch-light: #3da55d;
  /* 兼容旧引用（迁移过渡期） */
  --sg-bg-dark: var(--sg-bg-page);
}

/* --- Global Body Styles --- */
body.sg-custom-page {
  background: var(--sg-bg-page) !important;
  color: var(--sg-text) !important;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif !important;
}
body.sg-custom-page .site,
body.sg-custom-page .ast-container,
body.sg-custom-page .ast-row {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}

/* --- Astra Theme Overrides --- */
body.sg-custom-page .ast-primary-header-bar,
body.sg-custom-page .ast-below-header-wrap,
body.sg-custom-page .ast-above-header-wrap,
body.sg-custom-page .site-header {
  display: none !important;
}
body.sg-custom-page .site-footer {
  display: none !important;
}
body.sg-custom-page .ast-main-header-wrap {
  display: none !important;
}

/* --- WooCommerce Price Hiding (from sg-core.php) --- */
.price, .amount, .woocommerce-Price-amount, .woocommerce-Price-currencySymbol,
.woocommerce-price-suffix, .price_slider, .price_label,
.add_to_cart_button, .single_add_to_cart_button, .button.product_type_simple,
.astra-cart-container, .ast-header-woo-cart,
.cart, .wc-block-cart, .wc-block-mini-cart,
.woocommerce-variation-price, .woocommerce-grouped-list-item__price,
.product-price, span.price, p.price,
.entry-summary .price, .product_meta .price { display: none !important; }

/* --- Shared Keyframes --- */
@keyframes sg-spin {
  to { transform: rotate(360deg); }
}
