/*
Theme Name: HAOXUAN Industrial
Description: Custom industrial catalog and inquiry theme for HAOXUAN.
Version: 1.0.4
Requires at least: 6.8
Requires PHP: 8.2
Text Domain: haoxuan-industrial
*/
:root {
    --hx-ink: #17251f;
    --hx-muted: #4f6257;
    --hx-paper: #f6f7f3;
    --hx-white: #fff;
    --hx-dark: #11261e;
    --hx-dark-text: #deebe2;
    --hx-accent: #cfe56e;
    --hx-border: #dce3da;
    --hx-focus: #236dba;
    --hx-radius: .5rem;
    --hx-width: 76rem;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--hx-ink); background: var(--hx-paper); font: 1rem/1.6 system-ui, sans-serif; }
a { color: inherit; text-underline-offset: .23em; }
:focus-visible { outline: 3px solid var(--hx-focus); outline-offset: 4px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.035em; margin: 0 0 .65em; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.25rem, 6vw, 5rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
.hx-shell { width: min(var(--hx-width), calc(100% - 2.5rem)); margin-inline: auto; }
.hx-skip { position: absolute; top: .5rem; left: .5rem; z-index: 3; background: var(--hx-accent); padding: .5rem 1rem; transform: translateY(-170%); }
.hx-skip:focus { transform: none; }
.hx-header { background: var(--hx-white); border-bottom: 1px solid var(--hx-border); }
.hx-header-inner { min-height: 5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-block: .65rem; }
.hx-brand { display: inline-block; font-size: 1.5rem; font-weight: 900; letter-spacing: -.07em; text-decoration: none; line-height: 1.15; }
.hx-brand span { color: #427435; margin-left: .07em; }
.custom-logo { max-height: 3rem; width: auto; }
.hx-menu { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1.3rem; }
.hx-menu a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; font-weight: 600; }
.hx-menu a:hover, .hx-menu a[aria-current="page"] { text-decoration: underline; }
.hx-button, .hx-menu-toggle { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: .55rem 1rem; color: var(--hx-dark); background: var(--hx-accent); border: 1px solid transparent; border-radius: .3rem; text-decoration: none; font: inherit; font-weight: 700; cursor: pointer; }
.hx-button:hover, .hx-menu-toggle:hover { background: #dced98; }
.hx-header-cta { background: var(--hx-dark); color: var(--hx-white); }
.hx-header-cta:hover { background: #254638; }
.hx-outline { background: transparent; border-color: #8ea79a; color: var(--hx-white); }
.hx-outline:hover { background: #284737; }
.hx-mobile-menu { display: none; }
.hx-menu-toggle { list-style: none; }
.hx-menu-toggle::-webkit-details-marker { display: none; }
.hx-hero { color: var(--hx-white); background: radial-gradient(ellipse at 90% 30%, #305341 0, transparent 65%), var(--hx-dark); }
.hx-hero-inner { display: flex; align-items: center; gap: 3rem; min-height: 31rem; padding-block: clamp(3rem, 8vw, 7rem); }
.hx-hero-inner > div { flex: 1; max-width: 48rem; }
.hx-hero h1 { max-width: 14ch; }
.hx-eyebrow { font-size: .85rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; color: var(--hx-muted); margin-bottom: 1rem; }
.hx-hero .hx-eyebrow { color: var(--hx-accent); }
.hx-intro { max-width: 54ch; font-size: clamp(1.08rem, 2vw, 1.3rem); color: var(--hx-muted); }
.hx-hero .hx-intro { color: var(--hx-dark-text); }
.hx-hero-image { width: 43%; max-height: 31rem; object-fit: cover; border-radius: var(--hx-radius); }
.hx-has-banners { position: relative; isolation: isolate; }
.hx-has-banners .hx-hero-inner { min-height: 33rem; padding-block: clamp(2.5rem, 5vw, 5rem) 4.2rem; }
.hx-has-banners h1 { font-size: clamp(2.25rem, 5vw, 4.25rem); }
.hx-banner-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hx-banner-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #11261ef0 0%, #11261eab 43%, transparent 73%); }
.hx-banner-slide, .hx-banner-slide img { width: 100%; height: 100%; }
.hx-banner-slide img { object-fit: cover; object-position: right center; }
.hx-banner-controls { position: absolute; inset-inline: 0; bottom: 1.2rem; display: flex; }
.hx-banner-controls button { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 0; color: #fff; background: transparent; cursor: pointer; }
.hx-banner-controls button::after { content: ''; width: .62rem; height: .62rem; border: 1px solid currentColor; border-radius: 50%; }
.hx-banner-controls button[aria-pressed='true'] { color: var(--hx-accent); }
.hx-banner-controls button[aria-pressed='true']::after { background: currentColor; }
.hx-banner-controls button:focus-visible { outline-color: var(--hx-white); outline-offset: -2px; }
.hx-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1rem; margin-block: 1.5rem; }
.hx-section { padding-block: clamp(1.8rem, 5vw, 4.5rem); }
.hx-section .hx-section { padding-bottom: 0; }
.hx-section-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .85rem 1.5rem; margin-bottom: 1.35rem; }
.hx-section-heading h2 { margin-bottom: 0; }
.hx-breadcrumb { color: var(--hx-muted); margin-bottom: 1.75rem; font-size: .92rem; overflow-wrap: anywhere; }
.hx-breadcrumb span[aria-hidden] { margin-inline: .25rem; }
.hx-page-heading { max-width: 56rem; margin-bottom: 2rem; }
.hx-page-image { border-radius: var(--hx-radius); margin-bottom: 2rem; }
.hx-prose { max-width: 72ch; overflow-wrap: anywhere; }
.hx-prose img { border-radius: var(--hx-radius); }
.hx-prose li { margin-bottom: .35em; }
.hx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.hx-grid > img { width: 100%; border-radius: var(--hx-radius); }
.hx-card { min-width: 0; background: var(--hx-white); border: 1px solid var(--hx-border); border-radius: var(--hx-radius); }
.hx-card > a img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--hx-radius) var(--hx-radius) 0 0; }
.hx-card-body { padding: 1.35rem; }
.hx-card-body h2 { font-size: 1.36rem; }
.hx-card-body h2 a { text-decoration: none; }
.hx-card-body h2 a:hover { text-decoration: underline; }
.hx-card-body p { margin-bottom: 0; color: var(--hx-muted); }
.hx-card-body .hx-eyebrow { margin-bottom: .5rem; }
.hx-category-links { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.4rem; }
.hx-category-links a { display: inline-flex; align-items: center; min-height: 2.75rem; padding-inline: .85rem; border: 1px solid var(--hx-border); border-radius: .3rem; background: var(--hx-white); }
.hx-category-links [aria-current] { background: var(--hx-dark); color: var(--hx-white); }
.navigation.pagination { margin-top: 1.5rem; }
.page-numbers { padding: .4rem .65rem; }
.hx-product.hx-has-image { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "image summary"; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.hx-product-summary { grid-area: summary; }
.hx-product-main { grid-area: image; width: 100%; border-radius: var(--hx-radius); }
.hx-product h1 { font-size: clamp(2.1rem, 5vw, 4.1rem); }
.hx-specs { max-width: 54rem; margin: 0; border-top: 1px solid var(--hx-border); }
.hx-specs div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: .75rem; padding: .85rem; border-bottom: 1px solid var(--hx-border); overflow-wrap: anywhere; }
.hx-specs div:nth-child(odd) { background: var(--hx-white); }
.hx-specs dt { font-weight: 700; }
.hx-specs dd { margin: 0; }
.hx-rfq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; max-width: 54rem; padding: clamp(1rem, 4vw, 2rem); margin-top: 1.5rem; background: var(--hx-white); border: 1px solid var(--hx-border); border-radius: var(--hx-radius); }
.hx-rfq label { display: grid; gap: .35rem; font-weight: 650; }
.hx-rfq small { color: var(--hx-muted); font-weight: 400; }
.hx-rfq input:not([type="checkbox"]), .hx-rfq textarea, input[type="search"] { width: 100%; min-width: 0; min-height: 2.75rem; padding: .55rem; color: var(--hx-ink); border: 1px solid #738277; border-radius: .25rem; background: var(--hx-white); font: inherit; }
.hx-rfq .hx-wide, .hx-rfq > p { grid-column: 1 / -1; }
.hx-rfq .hx-consent { display: flex; align-items: flex-start; gap: .6rem; font-weight: 400; }
.hx-consent input { margin: .4em 0 0; }
.hx-rfq [role="alert"] { padding: .8rem; background: #fff1ed; color: #821f0d; }
.hx-callout { background: #e5eadf; }
.hx-callout .hx-section-heading { margin-bottom: 0; }
.hx-footer { background: var(--hx-dark); color: var(--hx-dark-text); }
.hx-footer-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto; gap: 1rem 2rem; padding-block: 2.5rem; }
.hx-footer .hx-brand { color: var(--hx-white); margin-bottom: .7rem; }
.hx-footer .hx-brand span { color: var(--hx-accent); }
.hx-footer-bottom { padding-block: .9rem; border-top: 1px solid #526a5b; font-size: .9rem; }
@media (max-width: 58rem) {
    .hx-header-inner { position: relative; }
    .hx-nav-desktop { display: none; }
    .hx-mobile-menu { display: block; margin-left: auto; }
    .hx-nav-mobile { position: absolute; z-index: 2; top: 100%; inset-inline: 0; padding: .5rem 1rem; background: var(--hx-white); border: 1px solid var(--hx-border); border-radius: var(--hx-radius); }
    .hx-hero-inner { gap: 1.4rem; }
    .hx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hx-footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 38rem) {
    .hx-shell { width: calc(100% - 2rem); }
    .hx-header-cta { display: none; }
    .hx-nav .hx-menu { display: grid; gap: 0; }
    .hx-hero-inner { flex-direction: column; align-items: stretch; min-height: 0; }
    .hx-hero-image { width: 100%; }
    .hx-has-banners .hx-hero-inner { min-height: 0; padding-bottom: 1rem; }
    .hx-banner-media { position: relative; z-index: auto; aspect-ratio: 16 / 9; }
    .hx-banner-media::after { background: linear-gradient(180deg, #11261e85, transparent 32%); }
    .hx-banner-controls { position: static; justify-content: center; }
    .hx-grid, .hx-product.hx-has-image, .hx-rfq, .hx-footer-inner { grid-template-columns: minmax(0, 1fr); }
    .hx-product.hx-has-image { grid-template-areas: "summary" "image"; }
}
