/* Huayang product discovery and quotation layouts */
.hy-layout-header .hy-mobile-products,
.hy-layout-header .hy-mobile-menu { display: none; }

.hy-layout-hero.hy31-hero { padding-block: clamp(34px, 4.2vw, 64px); }
.hy-layout-hero .hy31-herogrid { gap: clamp(28px, 5vw, 72px); align-items: center; }
.hy-layout-hero .hy31-hero-copy { min-width: 0; }
.hy-layout-hero .hy31-kicker { margin-bottom: 14px; }
.hy-layout-hero h1 { font-size: clamp(2.65rem, 4.3vw, 4.5rem); }
.hy-layout-hero .hy31-lead { margin: 18px 0 22px; }
.hy-home-families { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hy-home-family {
    display: grid; grid-template-rows: minmax(0,1fr) auto; min-width: 0;
    padding: 10px 14px 12px; border-radius: 10px;
    color: #143446; background: white; text-decoration: none;
}
.hy-home-family:hover, .hy-home-family:focus-visible { color: #075c93; text-decoration: underline; }
.hy-family-photo {
    height: clamp(96px, 8.8vw, 135px); display: grid; place-items: center; overflow: hidden;
    background: white;
}
.hy-family-photo img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.hy-family-label { display: block; padding-top: 5px; color: #143446; font-size: 1.08rem; font-weight: 700; line-height: 1.2; }
.hy-layout-brand-banner img { display: block; width: 100%; max-height: 180px; object-fit: contain; margin-bottom: 12px; }
.hy-featured.hy-section { padding-block: clamp(30px, 3.5vw, 50px); }

.hy-catalog-mast { background: #11334b; color: white; padding: 24px 0 19px; }
.hy-catalog-search { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 24px; }
.hy-catalog-search h1 { color: white; font-size: clamp(1.85rem, 3vw, 2.8rem); line-height: 1.12; margin: 0; }
.hy-catalog-search form { display: flex; width: min(100%, 25rem); max-width: 100%; }
.hy-catalog-search input[type="search"] {
    color: #132c3a; background: white; flex: 1 1 12rem; min-width: 0;
    padding: 11px 13px; border: 1px solid #c6d5dd; border-radius: 6px 0 0 6px; font: inherit;
}
.hy-catalog-search button {
    color: #123047; background: #c2e5ff; border: 0; border-radius: 0 6px 6px 0;
    padding: 10px 17px; font: inherit; font-weight: 700; cursor: pointer;
}
.hy-catalog-families { margin-top: 15px; display: flex; flex-wrap: wrap; gap: 7px; }
.hy-catalog-families a {
    display: inline-flex; align-items: center; color: #f3f9ff; font-weight: 600; font-size: .875rem;
    border: 1px solid #698599; border-radius: 6px; padding: 6px 12px; min-height: 34px;
}
.hy-catalog-families a[aria-current], .hy-catalog-families a:hover { color: #102d42; background: #f3f9ff; }
.hy-layout-results { padding-block: 14px 48px; }
.hy-layout-results .hy5-catalog-tools { margin: 0 0 10px; gap: 8px 20px; align-items: center; }
.hy-layout-results .hy5-catalog-tools .hy-count { margin: 0 auto 0 0; }
.hy-layout-results .hy5-catalog-tools a { font-size: .85rem; }
.hy-layout-results .hy-product-photo { aspect-ratio: 1.4; background: #fff; }
.hy-layout-results .hy-product-photo img { object-fit: contain; }
.hy-layout-results .hy-cardbody { padding: 15px; }
.hy-layout-results .hy-cardbody h3 { margin: 5px 0 8px; line-height: 1.23; }
.hy-layout-results .hy-products + nav { margin-block: 22px; }
.hy-catalog-notes { max-width: 80ch; margin: 26px 0 0; color: #485d69; }
.hy-catalog-notes:empty { display: none; }
.hy-catalog-notes p { margin: 0 0 .7em; }

.hy-product-main.hy-section { padding-top: clamp(18px, 2vw, 32px); }
.hy-product-main .hy6-breadcrumb { margin: 0 0 16px; font-size: .875rem; }
.hy-detail.hy-buy-detail {
    display: grid; grid-template-columns: minmax(0, .98fr) minmax(0, 1.02fr);
    grid-template-areas: "media heading" "media options"; grid-template-rows: auto 1fr;
    gap: 10px clamp(24px, 3.2vw, 48px); align-items: start;
}
.hy-buy-heading { grid-area: heading; min-width: 0; }
.hy-buy-heading .hy-eyebrow { margin: 0 0 5px; }
.hy-buy-heading h1 { font-size: clamp(1.65rem, 2.6vw, 2.55rem); margin: 0; line-height: 1.12; }
.hy-buy-media { grid-area: media; min-width: 0; }
.hy-buy-media .hy-detail-image { display: grid; place-items: center; aspect-ratio: 1.18; background: #fff; border: 1px solid #dce5ea; }
.hy-buy-media .hy-detail-image img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.hy-buy-media > .hy-textlink { display: inline-block; margin-top: 6px; font-size: .85rem; }
.hy-quick-specs {
    display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 10px 0; margin: 12px 0 0;
    border-block: 1px solid #d8e2e8;
}
.hy-quick-specs > div { min-width: 0; max-width: 100%; }
.hy-quick-specs dt, .hy-selected-summary > span { color: #526777; font-size: .75rem; font-weight: 600; }
.hy-quick-specs dd { color: #152f40; margin: 2px 0 0; font-size: .9rem; font-weight: 650; overflow-wrap: anywhere; }
.hy-buy-options { grid-area: options; min-width: 0; }
.hy-buy-options .hy-large { margin: 0 0 10px !important; font-size: .94rem; line-height: 1.5; }
.hy-buy-options .hy56-variants { margin: 0 0 8px; padding: 0; border: 0; background: transparent; }
.hy-buy-options .hy56-variants > h2, .hy-buy-options .hy56-guide { display: none; }
.hy-buy-options .hy56-attribute { margin: 3px 0 8px; }
.hy-buy-options .hy56-attribute h3 { font-size: .9rem; margin: 0 0 5px; }
.hy-buy-options .hy56-choice-list { gap: 5px; }
.hy-buy-options .hy56-choice { min-height: 40px; padding: 4px 8px; gap: 5px; font-size: .85rem; border-radius: 6px; }
.hy-buy-options .hy56-choice img { width: 24px; height: 24px; }
.hy-buy-options .hy56-status { margin: 4px 0 !important; font-size: .8rem; min-height: 1em; }
.hy-buy-options .hy56-gallery { margin-top: 4px; }
.hy-buy-options .hy56-gallery:not(:has(button:nth-child(2))) { display: none; }
.hy-buy-options .hy56-gallery-thumb { width: 44px; height: 44px; }
.hy-buy-order .hy6-configuration { margin: 0; padding: 0; background: transparent; border: 0; }
.hy-buy-order .hy6-configuration h2, .hy-buy-order [data-hy6-reference] { display: none; }
.hy-buy-order .hy6-configuration label { display: flex; align-items: center; gap: 12px; margin: 7px 0; font-size: .88rem; }
.hy-buy-order input[data-hy6-quantity] { width: 7.5rem; max-width: 100%; margin: 0; padding: 7px 10px; }
.hy-buy-order select[data-hy6-version] { width: auto; max-width: 100%; min-width: 0; margin: 0; }
.hy-buy-order .hy6-configuration .hy-muted { font-size: .8rem; margin: 4px 0 8px; }
.hy-buy-actions, .hy-buy-links { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; }
.hy-buy-actions { margin: 9px 0 7px; }
.hy-buy-actions .hy-button { min-height: 44px; padding: 10px 20px; }
.hy-buy-actions .hy5-add { margin: 0; padding: 8px 12px; }
.hy-buy-links a { display: inline-flex; gap: 4px; align-items: center; font-size: .85rem; text-decoration: underline; text-underline-offset: .18em; }
.hy-buy-links svg { width: 15px; height: 15px; }
.hy-layout-contact .hy-subhero { padding-block: 20px; }
.hy-layout-contact .hy-subhero .hy-eyebrow { display: none; }
.hy-layout-contact .hy-subhero h1 { margin: 0; font-size: clamp(1.85rem, 3vw, 2.8rem); }
.hy-layout-contact .hy-subhero p:last-child { margin: 6px 0 0; }
.hy-layout-contact .hy-section.hy-copy { padding-top: 25px; }
.hy-layout-contact .hy-split { grid-template-columns: minmax(0,.75fr) minmax(0,1.25fr); }
body.hy2.hy-layout-contact .hy41-wa-float, body.hy2:has(.hy-form:focus-within) .hy41-wa-float { display: none; }
.hy-form-selection {
    display: grid; grid-template-columns: minmax(0,1fr) minmax(90px,.65fr); gap: 12px;
    margin: 0 0 16px; padding: 12px; background: #ecf4f9; border: 1px solid #c5d9e6; border-radius: 7px;
}
.hy-layout-form [hidden] { display: none !important; }
.hy-form-selection label { margin: 0; align-self: center; }
.hy-selected-summary { display: grid; align-content: center; min-width: 0; gap: 2px; }
.hy-selected-summary strong { font-size: 1.08rem; color: #14364b; }
.hy-selected-summary small { color: #47616e; font-size: .78rem; }
.hy-layout-form [data-hy5-selected]:not([hidden]) { margin-bottom: 14px; }
.hy-layout-form [data-hy5-selected] .hy5-rfq-row:first-child { padding-top: 0; }
.hy-layout-form label:has([name="hy6_document"]) { margin-block: -5px 12px; }

@media (max-width: 1060px) {
    .hy-layout-header { position: sticky; top: 0; z-index: 990; }
    body.admin-bar .hy-layout-header { top: var(--wp-admin--admin-bar--height, 32px); }
    .hy-layout-header .hy-nav { position: relative; min-height: 62px; padding-block: 8px; flex-wrap: nowrap; gap: 8px; }
    .hy-layout-header .hy-nav > .hy-desktop-nav, .hy-layout-header .hy-desktop-rfq { display: none !important; }
    .hy-layout-header .hy5-nav-actions { margin-left: auto; display: flex; flex-wrap: nowrap; gap: 8px; }
    .hy-layout-header .hy-mobile-products, .hy-layout-header .hy-mobile-menu { display: inline-block; }
    .hy-layout-header .hy-mobile-products, .hy-layout-header .hy-mobile-menu summary {
        color: #163749; font-weight: 700; font-size: .86rem; padding: 8px 5px; line-height: 1.25;
    }
    .hy-layout-header .hy-mobile-menu summary {
        display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; list-style: none; cursor: pointer;
    }
    .hy-mobile-menu summary::-webkit-details-marker { display: none; }
    .hy-mobile-menu summary::before { content: ""; width: 9px; height: 6px; border-block: 1.5px solid currentColor; }
    .hy-layout-header .hy-mobile-menu:not([open]) nav { display: none !important; }
    .hy-layout-header .hy-mobile-menu[open] > nav {
        position: absolute; right: 0; top: calc(100% - 2px); z-index: 2; display: grid !important;
        grid-template-columns: repeat(2,minmax(0,1fr)); width: min(100%,23rem); padding: 10px; gap: 2px;
        max-height: 65vh; overflow: auto; white-space: normal; background: white;
        border: 1px solid #cad8e0; border-radius: 8px; box-shadow: 0 8px 25px #10253624;
    }
    .hy-mobile-menu nav a { padding: 10px; min-height: 40px; font-size: .92rem; }
    .hy-mobile-menu nav .hy5-open { grid-column: 1 / -1; margin-top: 4px; }
    #hy-buy-options { scroll-margin-top: 76px; }
}
@media (max-width: 700px) {
    body.hy2.single-product .hy41-wa-float { display: none; }
    .hy-layout-hero .hy31-herogrid { grid-template-columns: minmax(0,1fr); gap: 18px; }
    .hy-layout-hero.hy31-hero { padding-block: 24px; }
    .hy-layout-hero h1 { font-size: clamp(2.05rem,8.8vw,3.1rem); }
    .hy-layout-hero .hy31-lead { margin: 10px 0 14px; }
    .hy-layout-hero .hy31-kicker { margin-bottom: 9px; }
    .hy-layout-hero .hy-actions { margin: 0; }
    .hy-layout-hero .hy-actions a { padding: 10px 13px; }
    .hy-home-families { gap: 8px; }
    .hy-home-family { padding: 6px 10px 8px; border-radius: 7px; }
    .hy-family-photo { height: clamp(64px,18vw,108px); }
    .hy-family-label { font-size: .92rem; }
    .hy-catalog-mast { padding-block: 15px; }
    .hy-catalog-search form { width: 100%; }
    .hy-catalog-families { margin-top: 10px; gap: 5px; }
    .hy-catalog-families a { min-height: 34px; padding: 5px 9px; font-size: .82rem; }
    .hy-layout-results .hy5-catalog-tools { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 10px; }
    .hy-layout-results .hy5-catalog-tools p { width: 100%; }
    .hy-layout-results .hy-cardbody { padding: 10px; }
    .hy-layout-results .hy-products { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
    .hy-layout-results .hy-product { min-width: 0; }
    .hy-layout-results .hy-cardbody h3 { font-size: 1rem; overflow-wrap: anywhere; }
    .hy-product-main.hy-section { padding-top: 12px; }
    .hy-product-main .hy6-breadcrumb { margin: 0 0 10px; font-size: .78rem; }
    .hy-detail.hy-buy-detail { grid-template-columns: minmax(0,1fr); grid-template-areas: "heading" "media" "options"; gap: 10px; }
    .hy-buy-heading h1 { font-size: clamp(1.4rem,5.4vw,1.8rem); }
    .hy-buy-heading .hy-eyebrow { margin: 0 0 3px; }
    .hy-quick-specs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0,auto); justify-content: start; margin-top: 8px; padding: 6px 0; gap: 4px 12px; }
    .hy-quick-specs dd { font-size: .8rem; line-height: 1.32; }
    .hy-buy-media .hy-detail-image { height: clamp(137px,40vw,200px); aspect-ratio: auto; }
    .hy-buy-media > .hy-textlink { margin-top: 3px; }
    .hy-buy-options { display: flex; flex-direction: column; }
    .hy-buy-options .hy-large { order: 1; line-height: 1.4; font-size: .88rem; margin: 8px 0 0 !important; }
    .hy-buy-options .hy56-choice-list[aria-label="Color"] { gap: 4px; }
    .hy-buy-options .hy56-choice-list[aria-label="Color"] .hy56-choice { padding: 4px; gap: 3px; font-size: .8rem; }
    .hy-buy-options .hy56-choice-list[aria-label="Color"] img { width: 20px; height: 20px; }
    .hy-buy-order .hy6-configuration label { flex-wrap: wrap; }
    .hy-buy-order select[data-hy6-version] { flex: 1 1 9rem; }
    .hy-layout-contact .hy-split { display: flex; flex-direction: column; align-items: stretch; gap: 20px; }
    .hy-layout-contact .hy-split > .hy-form { order: -1; }
    .hy-layout-form { min-width: 0; padding: 14px; }
    .hy-form-selection { grid-template-columns: minmax(0,1.15fr) minmax(78px,.85fr); padding: 10px; gap: 7px; }
    .hy-layout-form .hy5-rfq-row { grid-template-columns: minmax(0,1fr) 60px auto; gap: 6px; }
    .hy-layout-form .hy5-rfq-row span { overflow-wrap: anywhere; }
}
@media (max-width: 500px) {
    .hy-layout-header .hy-nav { min-height: 54px; }
    .hy-layout-header .hy-brand { gap: 6px; font-size: .77rem; }
    .hy-layout-header .hy-brand small { font-size: .48rem; }
    .hy-layout-header .hy-mark { width: 33px; height: 33px; font-size: 20px; border-radius: 6px; }
    .hy-layout-header .hy5-nav-actions { gap: 6px; }
    .hy-layout-header .hy-small { min-height: 38px; padding: 8px 10px; font-size: .8rem; white-space: nowrap; }
}
@media (max-width: 370px) {
    body.hy2.single-product .hy-top { display: none; }
    .hy-buy-order .hy6-configuration label:has(input[data-hy6-quantity]) {
        display: grid; grid-template-columns: minmax(0,1fr) minmax(74px,5.3rem); gap: 8px;
    }
    .hy-buy-order input[data-hy6-quantity] { width: 100%; }
    .hy-layout-header .hy-brand > span:last-child { display: none; }
    .hy-layout-header .hy5-nav-actions { gap: 5px; }
}
