/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Template: astra
Author: Philex95
Description: Phil's Home Supply - Astra 子主题
Version: 1.0.0
Text Domain: astra-child
*/

/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Template: astra
Author: Philex95
Description: Phil's Home Supply - Astra 子主题
Version: 1.0.0
Text Domain: astra-child
*/

/* ===== 品牌颜色 ===== */
:root {
  --ph-primary: #1a73e8;
  --ph-primary-dark: #1557b0;
  --ph-primary-light: #e8f0fe;
  --ph-accent: #ff6b35;
  --ph-accent-hover: #e55a2b;
  --ph-bg-light: #f8f9fa;
  --ph-text: #333333;
  --ph-text-light: #666666;
  --ph-border: #e0e0e0;
  --ph-success: #28a745;
  --ph-radius: 6px;
}

/* ===== 通用调整 ===== */
body {
  color: var(--ph-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

a {
  color: var(--ph-primary);
  transition: color 0.2s;
}
a:hover {
  color: var(--ph-primary-dark);
}

/* ===== 按钮样式 ===== */
.elementor-button,
.woocommerce a.button,
.woocommerce button.button {
  border-radius: var(--ph-radius) !important;
  transition: all 0.3s ease !important;
}

.elementor-button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ===== WooCommerce 产品列表 ===== */
.woocommerce ul.products li.product {
  border: 1px solid var(--ph-border);
  border-radius: var(--ph-radius);
  padding: 15px;
  transition: box-shadow 0.3s;
  background: #fff;
}
.woocommerce ul.products li.product:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.woocommerce ul.products li.product .button {
  background-color: var(--ph-primary);
  color: #fff;
  border-radius: var(--ph-radius);
  font-size: 13px;
  padding: 8px 16px;
}
.woocommerce ul.products li.product .button:hover {
  background-color: var(--ph-primary-dark);
}

.woocommerce .star-rating span {
  color: var(--ph-accent);
}

.woocommerce ul.products li.product .price {
  color: var(--ph-accent);
  font-weight: 600;
}

/* ===== 产品详情页 ===== */
.woocommerce div.product .product_title {
  font-size: 24px;
  font-weight: 600;
}

.woocommerce div.product .summary .price {
  font-size: 22px;
  color: var(--ph-accent);
  font-weight: 700;
}

.woocommerce div.product form.cart .button {
  background-color: var(--ph-accent);
  border-radius: var(--ph-radius);
  padding: 12px 30px;
  font-size: 16px;
}
.woocommerce div.product form.cart .button:hover {
  background-color: var(--ph-accent-hover);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: var(--ph-primary);
}

/* ===== 购物车 ===== */
.woocommerce-cart .cart_totals h2 {
  font-size: 20px;
  font-weight: 600;
}

/* ===== 结账页 ===== */
.woocommerce-checkout .checkout h3 {
  font-size: 18px;
  font-weight: 600;
}

/* ===== 促销横幅/标签 ===== */
.ph-badge {
  display: inline-block;
  background: var(--ph-accent);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

/* ===== 页脚 ===== */
.site-footer {
  background-color: #222 !important;
  color: #ccc;
}
.site-footer a {
  color: #aaa;
}
.site-footer a:hover {
  color: #fff;
}

/* ===== 页眉 ===== */
.site-header .ast-site-title-wrap a {
  color: var(--ph-primary);
}

/* ===== 响应式微调 ===== */
@media (max-width: 768px) {
  .woocommerce ul.products.columns-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .woocommerce ul.products.columns-4 {
    grid-template-columns: repeat(1, 1fr);
  }
}
