/*
Theme Name:   Hello Elementor Child
Theme URI:    https://elementor.com/hello-theme/
Description:  Codex 子主题。所有自定义代码只放在这里，父主题 Hello Elementor 保持不动。
Author:       Lu Yinsheng
Author URI:   https://example.com/
Template:     hello-elementor
Version:      1.0.0
Text Domain:  hello-elementor-child
*/

/*
 * 阶段一：此文件保持空白。
 * 视觉样式在阶段五通过 Elementor 全局颜色设置完成，
 * 强调色（Accent）只允许用于 Request a Quote 相关元素。
 */

/* Quote entry buttons: the only UI elements allowed to use the accent color. */
.single_add_to_cart_button,
#place_order,
.checkout-button,
.wc-block-components-checkout-place-order-button {
  background-color: #E8792E !important;
  border-color: #E8792E !important;
  color: #ffffff !important;
}
.single_add_to_cart_button:hover,
#place_order:hover,
.checkout-button:hover,
.wc-block-components-checkout-place-order-button:hover {
  background-color: #D66A24 !important;
  border-color: #D66A24 !important;
  color: #ffffff !important;
}

/* Theme chrome: header, footer and text links use the primary deep blue. */
.site-header .site-title,
.site-header .site-title a,
.site-header .site-title a:visited,
.site-footer a,
.site-footer a:visited,
.woocommerce-breadcrumb a,
.product_meta a,
.woocommerce a:not(.button):not(.checkout-button) {
  color: #0B2A4A !important;
}

/* Quote entry buttons: stronger specificity for theme/WooCommerce defaults. */
body.woocommerce button.single_add_to_cart_button,
body.woocommerce-checkout #place_order,
body.woocommerce-cart a.checkout-button,
body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
  background-color: #E8792E !important;
  border-color: #E8792E !important;
  color: #ffffff !important;
  box-shadow: none !important;
}
body.woocommerce button.single_add_to_cart_button:hover,
body.woocommerce-checkout #place_order:hover,
body.woocommerce-cart a.checkout-button:hover,
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover {
  background-color: #D66A24 !important;
  border-color: #D66A24 !important;
  color: #ffffff !important;
}

/* Product spec block: keep semantic dl/table, improve mobile rhythm. */
.woocommerce-product-gallery--without-images { display: none !important; }
.hec-spec-list { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 18px; margin: 0; }
.hec-spec-list dt { font-weight: 600; }
.hec-spec-list dd { margin: 0; text-align: right; }
.hec-meta-table { width: 100%; border-collapse: collapse; margin-top: 18px; }
.hec-meta-table th,
.hec-meta-table td { border: 1px solid #DDE3E9; padding: 10px 12px; text-align: left; }
.hec-meta-table th { background: #F3F5F7; color: #0B2A4A; }
.hec-quote-note { color: #5C6672; font-size: 14px; margin-top: 16px; }

/* Quote cart/checkout: remove empty price columns, keep the flow usable. */
.woocommerce-checkout-review-order-table th.product-total,
.woocommerce-checkout-review-order-table td.product-total,
.woocommerce-checkout-review-order-table .cart-subtotal,
.woocommerce-checkout-review-order-table .order-total,
.woocommerce-cart-form .product-price,
.woocommerce-cart-form .product-subtotal,
.woocommerce-cart-form th.product-price,
.woocommerce-cart-form th.product-subtotal,
.woocommerce-cart .cart_totals h2,
.woocommerce-cart .cart_totals table.shop_table { display: none !important; }

@media (max-width: 600px) {
  .hec-spec-list { grid-template-columns: 1fr; gap: 2px; }
  .hec-spec-list dd { text-align: left; margin-bottom: 10px; }
}