/*
Theme Name: Astra Uneomac
Theme URI: https://uneomac.com/
Description: UNEOMAC B2B child theme for Astra. Brand palette, language switcher and styling for Shandong Uneomac Machinery Co., Ltd.
Author: Uneomac Web Team
Template: astra
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-uneomac
*/

/* ---------- Brand palette (Astra global colours) ---------- */
:root {
	--ast-global-color-0: #2B3A9E;
	--ast-global-color-1: #16205E;
	--ast-global-color-2: #1F2937;
	--ast-global-color-3: #4B5563;
	--ast-global-color-4: #FFFFFF;
	--ast-global-color-5: #F5F7FB;
	--ast-global-color-6: #E2E5EE;
	--ast-global-color-7: #E8232A;
	--ast-global-color-8: #0B1020;
	--uneomac-blue: #2B3A9E;
	--uneomac-blue-dark: #16205E;
	--uneomac-red: #E8232A;
	--uneomac-ink: #0B1020;
	--uneomac-slate: #4B5563;
	--uneomac-line: #E2E5EE;
	--uneomac-bg-soft: #F5F7FB;
}

/* ---------- Header ---------- */
.ast-site-identity .site-logo-img img { max-height: 52px; width: auto; }
.site-header .ast-builder-menu .menu-item > .menu-link { font-weight: 600; letter-spacing: .01em; }
.site-header .main-header-menu > .menu-item > .menu-link { padding-left: 14px; padding-right: 14px; }

/* language switcher injected into the primary menu */
.uneomac-lang > a { font-weight: 700; letter-spacing: .06em; font-size: 12px; }
.uneomac-lang.is-current > a { color: var(--uneomac-red); }

/* ---------- Typography ---------- */
body, .ast-separate-container { font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
h1, h2, h3, h4, .entry-title { letter-spacing: -0.01em; }

/* ---------- Buttons ---------- */
.wp-block-button__link, .ast-button, .button {
	border-radius: 6px;
	font-weight: 600;
	transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.wp-block-button__link:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(11,16,32,.16); }
.wp-block-button.is-style-uneomac-outline .wp-block-button__link {
	background: transparent; color: var(--uneomac-blue);
	border: 2px solid var(--uneomac-blue);
}
.wp-block-button.is-style-uneomac-outline .wp-block-button__link:hover { background: var(--uneomac-blue); color: #fff; }
.wp-block-button.is-style-uneomac-ghost .wp-block-button__link {
	background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.7);
}
.wp-block-button.is-style-uneomac-ghost .wp-block-button__link:hover { background: #fff; color: var(--uneomac-ink); }

/* ---------- Blocks ---------- */
.wp-block-columns.uneomac-cards .wp-block-column {
	background: #fff; border: 1px solid var(--uneomac-line); border-radius: 12px;
	padding: 26px 24px; box-shadow: 0 1px 2px rgba(11,16,32,.04);
}
.wp-block-columns.uneomac-cards h3 { margin-top: 0; }
.wp-block-group.uneomac-hero {
	background: linear-gradient(135deg, var(--uneomac-blue-dark) 0%, var(--uneomac-blue) 55%, #3D4FC4 100%);
	color: #fff;
}
.wp-block-group.uneomac-hero h1, .wp-block-group.uneomac-hero h2,
.wp-block-group.uneomac-hero h3, .wp-block-group.uneomac-hero p { color: #fff; }
.uneomac-stat { text-align: center; }
.uneomac-stat .uneomac-stat__num { display:block; font-size: 40px; font-weight: 800; color: var(--uneomac-blue); line-height: 1.1; }
.uneomac-stat .uneomac-stat__label { display:block; font-size: 14px; color: var(--uneomac-slate); margin-top: 6px; }
.wp-block-details {
	border: 1px solid var(--uneomac-line); border-radius: 10px; padding: 14px 18px; margin-bottom: 12px; background:#fff;
}
.wp-block-details summary { font-weight: 600; cursor: pointer; }
.uneomac-contact-card { background:#fff; border:1px solid var(--uneomac-line); border-radius:12px; padding:22px; }
.uneomac-qr { display:flex; gap:28px; flex-wrap:wrap; }
.uneomac-qr figure { margin:0; text-align:center; }
.uneomac-qr img { width:150px; height:150px; border:1px solid var(--uneomac-line); border-radius:10px; background:#fff; padding:6px; }
.uneomac-qr figcaption { font-size:13px; color:var(--uneomac-slate); margin-top:8px; }

/* ---------- WooCommerce ---------- */
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 16px; font-weight: 600; }
.woocommerce ul.products li.product .price, .woocommerce div.product p.price { color: var(--uneomac-blue); font-weight: 700; }
.uneomac-price-note { display:inline-block; font-size:13px; font-weight:600; color:var(--uneomac-red); letter-spacing:.02em; }

/* ---------- Footer ---------- */
.site-footer, .ast-footer-copyright { font-size: 14px; }
