/* Helfinch Global 2027 — hardware-first merchandising, manufacturing feature,
 * solid-wood ceiling-fan collection and Germany's market-scoped palette.
 *
 * Scope rules
 * - Components use --hf27-* tokens that default to Shopfront's own variables,
 *   so the United States, Canada and China keep their existing palette.
 * - Germany (country, not language) re-points Shopfront's dark-scheme source
 *   variables on body.hf-market-de. No inversion filters, no global overrides.
 * - India never receives body.hf-market-de and never renders the hardware home.
 */

body {
    --hf27-bg: var(--cs-site-background);
    --hf27-surface: var(--cs-layout-background);
    --hf27-elevated: var(--cs-layout-background);
    --hf27-text: var(--cs-color-primary);
    --hf27-muted: var(--cs-color-secondary);
    --hf27-border: var(--cs-color-border);
    --hf27-accent: var(--cs-color-primary);
    --hf27-accent-soft: color-mix(in srgb, var(--cs-color-primary) 14%, transparent);
    --hf27-radius: var(--cs-layout-elements-border-radius, 5px);
    --hf27-gap: clamp(3.5rem, 7vw, 6rem);
}

/* Germany: premium dark architectural palette (both German and English). */
:is(body.hf-market-de, body.hf-market-in.hf-global-portal, body.hf-native-portal) {
    --cs-dark-site-background: #101216;
    --cs-dark-layout-background: #181b20;
    --cs-dark-primary-color: #f2f3f5;
    --cs-dark-secondary-color: #b5bbc3;
    --cs-dark-border-color: #30353d;
    --cs-dark-divider-color: #30353d;
    --cs-dark-button-background: #20242a;
    --cs-dark-button-hover-background: #2b3038;
    --cs-dark-overlay-background: rgba(6, 7, 9, .34);
    --hf27-elevated: #20242a;
    --hf27-accent: #c7a46a;
    --hf27-accent-soft: rgba(199, 164, 106, .14);
    background-color: #101216;
}

:is(body.hf-market-de, body.hf-market-in.hf-global-portal, body.hf-native-portal) .cs-header,
:is(body.hf-market-de, body.hf-market-in.hf-global-portal, body.hf-native-portal) .cs-footer,
:is(body.hf-market-de, body.hf-market-in.hf-global-portal, body.hf-native-portal) .cs-site {
    background-color: var(--cs-site-background);
}

:is(body.hf-market-de, body.hf-market-in.hf-global-portal, body.hf-native-portal) :is(.cs-header, .cs-header__inner) {
    border-color: var(--hf27-border);
}

:is(body.hf-market-de, body.hf-market-in.hf-global-portal) .hf-global .cs-button.hf27-button-primary,
:is(body.hf-market-de, body.hf-market-in.hf-global-portal) .hf-global .hf27-button-primary {
    color: #101216;
    background: #f2f3f5;
}

:is(body.hf-market-de, body.hf-market-in.hf-global-portal) .hf-global .hf27-button-primary:is(:hover, :focus-visible) {
    color: #101216;
    background: #ffffff;
}

:is(body.hf-market-de, body.hf-market-in.hf-global-portal) .hf-global :is(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline-color: var(--hf27-accent);
}

:is(body.hf-market-de, body.hf-market-in.hf-global-portal) .hf-global .woocommerce .hf-global-product-card .hf-global-product-media,
:is(body.hf-market-de, body.hf-market-in.hf-global-portal) .hf-global .hf-global-product-media {
    background: #181b20;
}

:is(body.hf-market-de, body.hf-market-in.hf-global-portal) .hf-global-image-placeholder {
    background: linear-gradient(160deg, #20242a, #15181c);
}

:is(body.hf-market-de, body.hf-market-in.hf-global-portal) .hf-global .cs-single-product .hf-global-tiers table.tiered-pricing-table :is(th, td) {
    background: #181b20;
}

:is(body.hf-market-de, body.hf-market-in.hf-global-portal) .hf-global :is(input, select, textarea) {
    color: #f2f3f5;
    background-color: #181b20;
    border-color: #3a4049;
}

/* ---------- Shared building blocks ---------- */

.hf27-eyebrow {
    margin: 0 0 .75rem;
    color: var(--hf27-accent);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hf27-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem 1.5rem;
}

.hf27-link {
    color: var(--hf27-text);
    font-weight: 700;
    font-size: .875rem;
    text-decoration: underline;
    text-decoration-color: var(--hf27-accent);
    text-decoration-thickness: 1px;
    text-underline-offset: .3em;
}

.hf27-link:is(:hover, :focus-visible) {
    color: var(--hf27-accent);
}

.hf27-fineprint,
.hf27-concept-note,
.hf27-option-note {
    margin: .75rem 0 0;
    color: var(--hf27-muted);
    font-size: .75rem;
    line-height: 1.5;
}

.hf27-concept-note::before {
    content: "";
    display: inline-block;
    width: .5rem;
    height: .5rem;
    margin-right: .45rem;
    border: 1px solid var(--hf27-accent);
    border-radius: 50%;
    vertical-align: .05em;
}

.hf-global .hf27-visualisation-badge {
    inset: auto auto .5rem .5rem;
    padding: .2rem .45rem;
    border-radius: 3px;
    color: #f2f3f5;
    background: rgba(16, 18, 22, .72);
    font-size: .625rem;
    letter-spacing: .02em;
}

/* ---------- Hardware hero (RAM · SSD · USB hubs) ---------- */

.hf27-hw-hero {
    margin-bottom: var(--hf27-gap);
    padding: clamp(1.75rem, 4vw, 3.5rem);
    border: 1px solid var(--hf27-border);
    border-radius: var(--hf27-radius);
    background:
        radial-gradient(120% 90% at 100% 0%, var(--hf27-accent-soft), transparent 55%),
        var(--hf27-surface);
}

.hf27-hw-hero__intro {
    max-width: 48rem;
}

.hf-global .hf27-hw-hero__title {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 4.2vw, 3.5rem);
    line-height: 1.05;
    letter-spacing: -.02em;
    text-wrap: balance;
    hyphens: manual;
    overflow-wrap: break-word;
}

.hf27-hw-hero__lead {
    max-width: 40rem;
    margin: 0 0 1.75rem;
    color: var(--hf27-muted);
    font-size: clamp(1rem, 1.4vw, 1.125rem);
    line-height: 1.55;
}

.hf27-hw-cats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: clamp(2rem, 4vw, 3rem) 0 0;
    padding: 0;
    list-style: none;
}

.hf27-hw-cat a {
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr;
    height: 100%;
    padding: 1.25rem 1.25rem 1.5rem;
    border: 1px solid var(--hf27-border);
    border-radius: var(--hf27-radius);
    color: var(--hf27-text);
    background: var(--hf27-bg);
    text-decoration: none;
    transition: border-color .2s ease, transform .2s ease;
}

.hf27-hw-cat a:is(:hover, :focus-visible) {
    border-color: var(--hf27-accent);
    transform: translateY(-2px);
}

.hf27-hw-cat__index {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    color: var(--hf27-muted);
    font-size: .75rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: .08em;
}

.hf27-hw-cat__art {
    display: block;
    padding: 1.5rem .25rem 1rem;
    color: var(--hf27-muted);
}

.hf27-hw-cat__art img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hf27-hw-cat__body {
    display: grid;
    align-content: start;
    gap: .25rem;
}

.hf27-hw-cat__title {
    font-family: var(--cs-font-headings-family);
    font-weight: var(--cs-font-headings-weight);
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    line-height: 1.1;
    letter-spacing: -.01em;
}

.hf27-hw-cat__sub {
    color: var(--hf27-accent);
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .04em;
}

.hf27-hw-cat__desc {
    color: var(--hf27-muted);
    font-size: .875rem;
    line-height: 1.45;
}

.hf27-hw-cat__cta {
    margin-top: .75rem;
    font-size: .8125rem;
    font-weight: 700;
}

/* ---------- Featured hardware + wholesale strip ---------- */



.hf-global--home .hf27-featured {
    margin-top: 0;
    margin-bottom: var(--hf27-gap);
}

.hf27-trade-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    margin-top: 2rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--hf27-border);
    border-left: 3px solid var(--hf27-accent);
    border-radius: var(--hf27-radius);
    background: var(--hf27-surface);
}

.hf27-trade-strip h3 {
    margin: 0 0 .25rem;
    font-size: 1rem;
}

.hf27-trade-strip p {
    margin: 0;
    color: var(--hf27-muted);
    font-size: .875rem;
}

/* ---------- Manufacturing feature ---------- */

.hf27-mfg {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 2rem clamp(2rem, 6vw, 5rem);
    align-items: end;
    margin-bottom: var(--hf27-gap);
    padding-block: clamp(2.5rem, 5vw, 4rem);
    border-block: 1px solid var(--hf27-border);
}

.hf27-mfg__copy h2 {
    margin: 0 0 1rem;
    font-size: clamp(1.625rem, 3vw, 2.5rem);
    line-height: 1.1;
    letter-spacing: -.015em;
    text-wrap: balance;
}

.hf27-mfg__copy p {
    max-width: 40rem;
    color: var(--hf27-muted);
    line-height: 1.6;
}

.hf27-mfg__stat {
    margin: 0;
    justify-self: end;
    text-align: right;
}

.hf27-mfg__figure {
    margin: 0;
    line-height: .85;
}

.hf27-mfg__number {
    color: var(--hf27-accent);
    font-family: var(--cs-font-headings-family);
    font-size: clamp(6rem, 15vw, 11rem);
    font-weight: 300;
    letter-spacing: -.05em;
    font-variant-numeric: lining-nums;
}

.hf27-mfg__unit {
    color: var(--hf27-text);
    font-size: clamp(1.25rem, 2.4vw, 2rem);
    letter-spacing: -.01em;
}

.hf27-mfg__stat figcaption {
    max-width: 22rem;
    margin: 1rem 0 0 auto;
    color: var(--hf27-muted);
    font-size: .875rem;
    line-height: 1.5;
}

.hf27-chain {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: none;
}

.hf27-chain__node {
    position: relative;
    display: grid;
    gap: .25rem;
    padding: 1.25rem 1.5rem 0 0;
    border-top: 1px solid var(--hf27-border);
}

.hf27-chain__node::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 0;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--hf27-accent);
}

.hf27-chain__node--in::before {
    width: 13px;
    height: 13px;
    top: -7px;
    box-shadow: 0 0 0 4px var(--hf27-accent-soft);
}

.hf27-chain__step {
    color: var(--hf27-muted);
    font-size: .6875rem;
    letter-spacing: .1em;
}

.hf27-chain__node strong {
    font-size: 1.125rem;
}

.hf27-chain__node > span:last-child {
    color: var(--hf27-muted);
    font-size: .875rem;
    line-height: 1.45;
}

/* ---------- Wooden-fan feature ---------- */

/* The owner's actual fan photograph (cut out, native 803 x 467 px) sits beside
 * the copy on graphite. It is never scaled above its native width. */
.hf27-wood {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
    align-items: center;
    gap: 1.5rem clamp(1.5rem, 4vw, 3.5rem);
    margin-bottom: var(--hf27-gap);
    padding: clamp(1.75rem, 4vw, 3.5rem);
    border-radius: var(--hf27-radius);
    background:
        radial-gradient(70% 90% at 72% 45%, rgba(199, 164, 106, .10), transparent 70%),
        linear-gradient(180deg, #181b20, #101216);
    color: #f2f3f5;
}

.hf27-wood__media {
    order: 2;
    justify-self: end;
    width: 100%;
    max-width: 803px;
    margin: 0;
}

.hf27-wood__media img,
.hf27-collection__media--photo img {
    display: block;
    width: 100%;
    max-width: 803px;
    height: auto;
    aspect-ratio: 803 / 467;
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .35));
}

.hf27-wood__media figcaption,
.hf27-collection__media--photo figcaption {
    margin-top: .5rem;
    color: #b5bbc3;
    font-size: .6875rem;
    letter-spacing: .02em;
    text-align: right;
}

.hf27-wood__copy {
    order: 1;
    display: flex;
    flex-direction: column;
    max-width: 31rem;
}

.hf27-wood .hf27-eyebrow { color: #c7a46a; }

.hf27-wood h2 {
    margin: 0 0 1rem;
    color: #f2f3f5;
    font-size: clamp(2rem, 3.6vw, 3.25rem);
    line-height: 1.02;
    letter-spacing: -.02em;
}

.hf27-wood p {
    margin: 0 0 1rem;
    color: #c9ced5;
    line-height: 1.55;
}

.hf27-wood .hf27-wood__sizes {
    color: #f2f3f5;
    font-size: .8125rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.hf27-wood .hf27-concept-note { color: #b5bbc3; margin: 1rem 0 0; }

.hf27-wood .hf27-button-primary {
    align-self: flex-start;
    color: #101216;
    background: #f2f3f5;
}

.hf27-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    margin: 0 0 1.5rem;
    padding: 0;
    list-style: none;
    font-size: .75rem;
    color: #c9ced5;
}

.hf27-swatches li {
    display: flex;
    align-items: center;
    gap: .45rem;
}

.hf27-swatches img {
    width: 1.375rem;
    height: 1.375rem;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(242, 243, 245, .35);
}

/* ---------- Secondary ranges + enquiry ---------- */

.hf-global--home .hf27-secondary {
    margin-bottom: var(--hf27-gap);
}

.hf27-enquiry {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem 3rem;
    margin-bottom: var(--hf27-gap);
    padding: clamp(1.75rem, 4vw, 3rem);
    border: 1px solid var(--hf27-border);
    border-radius: var(--hf27-radius);
    background: var(--hf27-surface);
}

.hf27-enquiry h2 {
    margin: 0 0 .5rem;
    font-size: clamp(1.375rem, 2.4vw, 1.875rem);
}

.hf27-enquiry p {
    max-width: 36rem;
    margin: 0;
    color: var(--hf27-muted);
}

/* ---------- Catalogue: collection banner and scale drawing ---------- */

.hf27-collection {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1px solid var(--hf27-border);
    border-radius: var(--hf27-radius);
    background: var(--hf27-surface);
}

.hf27-collection__media--photo {
    align-self: center;
    margin: 0;
    padding: clamp(1.25rem, 3vw, 2.5rem);
    background:
        radial-gradient(70% 80% at 50% 45%, rgba(199, 164, 106, .09), transparent 70%),
        linear-gradient(180deg, #181b20, #101216);
}

.hf27-collection__copy {
    align-self: center;
    padding: clamp(1.5rem, 4vw, 3rem);
}

.hf27-collection__copy h2 {
    margin: 0 0 .75rem;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    line-height: 1.05;
    letter-spacing: -.02em;
}

.hf27-collection__copy p {
    color: var(--hf27-muted);
    line-height: 1.55;
}

.hf27-scale {
    margin: 1.5rem 0 0;
    color: var(--hf27-text);
}

.hf27-scale svg {
    display: block;
    width: 100%;
    max-width: 26rem;
    height: auto;
    overflow: visible;
}

.hf27-scale__ring { fill: var(--hf27-accent-soft); stroke: var(--hf27-accent); stroke-width: 1; vector-effect: non-scaling-stroke; }
.hf27-scale__hub { fill: currentColor; opacity: .7; }
.hf27-scale__label { fill: currentColor; font-size: 11px; font-variant-numeric: tabular-nums; }

.hf27-scale figcaption {
    margin-top: .5rem;
    color: var(--hf27-muted);
    font-size: .75rem;
}

.hf-global-filters.hf27-wood-filters {
    grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)) auto;
    max-width: 72rem;
}

/* ---------- Product page: gallery and options ---------- */

.hf27-gallery {
    min-width: 0;
}

.hf27-gallery__main {
    display: grid;
    place-items: center;
    background: #e9e7e3;
}

/* Views are shown no larger than the photograph's native pixels. */
.hf-global-product-detail-media.hf27-gallery__main img.hf27-view {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.hf-global-product-detail-media.hf27-gallery__main img.hf27-view--fan { width: 96%; max-width: 803px; }
.hf-global-product-detail-media.hf27-gallery__main img.hf27-view--blade { height: 94%; max-height: 893px; }
.hf-global-product-detail-media.hf27-gallery__main img.hf27-view--root { max-width: 212px; max-height: 188px; }

.hf27-tile-photo {
    object-fit: contain !important;
}

/* Product cards: centre the photographed fan with margin so no blade tip or the canopy touches the card edge. */
.hf-global-product-media:has(> img.hf27-fan-photo) {
    display: grid;
    place-items: center;
}

.woocommerce .hf-global-product-card .hf-global-product-media img.hf27-fan-photo {
    width: 86%;
    height: auto;
    object-fit: contain;
}

.cs-product-categories__cat-image-inner img.hf27-tile-photo {
    padding: 8%;
    background: #fff;
}

.hf27-photo-pending small { font-size: .75rem; }

.hf27-gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .625rem;
    margin: .625rem 0 0;
    padding: 0;
    list-style: none;
}

.hf27-gallery__thumb {
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--hf27-border);
    border-radius: var(--hf27-radius);
    background: #e9e7e3;
    cursor: pointer;
}

.hf27-gallery__thumb[aria-pressed="true"] {
    border-color: var(--hf27-accent);
    box-shadow: 0 0 0 1px var(--hf27-accent);
}

.hf27-gallery__thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    padding: 6%;
}

.hf27-wood-statement {
    margin: 0 0 .25rem;
    color: var(--hf27-accent);
}

.hf27-options {
    margin: 1.25rem 0 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.hf27-options legend {
    margin-bottom: .5rem;
    padding: 0;
    font-size: .8125rem;
    font-weight: 700;
}

.hf27-options legend span {
    color: var(--hf27-muted);
    font-weight: 400;
}

.hf27-options ul {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hf27-option {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-height: 44px;
    padding: .35rem .85rem;
    border: 1px solid var(--hf27-border);
    border-radius: 999px;
    color: var(--hf27-text);
    font-size: .8125rem;
    font-variant-numeric: tabular-nums;
    text-decoration: none;
}

.hf27-option--swatch {
    padding-left: .35rem;
}

.hf27-option img {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    object-fit: cover;
}

.hf27-option:is(:hover, :focus-visible) {
    border-color: var(--hf27-muted);
}

.hf27-option[aria-current="true"] {
    border-color: var(--hf27-accent);
    box-shadow: inset 0 0 0 1px var(--hf27-accent);
}

.hf27-price-revision {
    padding-left: .6rem;
    border-left: 2px solid var(--hf27-accent);
}

/* ---------- Manufacturing page ---------- */

.hf27-mfg-page__header h1 {
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.05;
    letter-spacing: -.02em;
    text-wrap: balance;
}

.hf27-mfg--page {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
    align-items: start;
}

.hf27-mfg--page .hf27-mfg__stat {
    justify-self: start;
    text-align: left;
}

.hf27-mfg--page .hf27-mfg__stat figcaption { margin-left: 0; }
.hf27-mfg--page .hf27-chain { margin-top: 1.5rem; }

.hf27-mfg-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.hf27-mfg-card {
    padding: 1.5rem;
    border: 1px solid var(--hf27-border);
    border-top: 3px solid var(--hf27-accent);
    border-radius: var(--hf27-radius);
    background: var(--hf27-surface);
}

.hf27-mfg-card--design,
.hf27-mfg-card--approach { border-top-color: var(--hf27-muted); }
.hf27-mfg-card--planned,
.hf27-mfg-card--pending { border-top-style: dashed; border-top-color: var(--hf27-muted); }

.hf27-mfg-card h2 {
    margin: 0 0 .5rem;
    font-size: 1.125rem;
}

.hf27-mfg-card p {
    margin: 0;
    color: var(--hf27-muted);
    font-size: .9375rem;
    line-height: 1.55;
}

.hf27-mfg-page__cta { margin-bottom: 3rem; }

/* ---------- Responsive ---------- */

@media (max-width: 1199px) {
    .hf-global-filters.hf27-wood-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hf-global-filters.hf27-wood-filters .cs-button { grid-column: 1 / -1; }
}

@media (max-width: 991px) {
    .hf27-wood { grid-template-columns: minmax(0, 1fr); }
    .hf27-wood__media { order: 0; justify-self: center; }
    .hf27-wood__copy { max-width: none; }
    .hf27-hw-cats { grid-template-columns: minmax(0, 1fr); }
    .hf27-hw-cat a { grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); grid-template-rows: auto; align-items: center; gap: 1rem; }
    .hf27-hw-cat__art { padding: .5rem 0; }
    .hf27-mfg, .hf27-mfg--page { grid-template-columns: minmax(0, 1fr); }
    .hf27-mfg__stat { justify-self: start; text-align: left; }
    .hf27-mfg__stat figcaption { margin-left: 0; }
    .hf27-collection { grid-template-columns: minmax(0, 1fr); }
    .hf27-mfg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .hf27-wood { padding: 1.5rem 1.25rem 1.75rem; }
    .hf27-hw-hero { padding: 1.5rem 1.25rem; }
    .hf27-hw-cat a { grid-template-columns: minmax(0, 7.5rem) minmax(0, 1fr); padding: 1rem; }
    .hf27-hw-cat__index { top: .75rem; right: .875rem; }
    .hf27-mfg-grid { grid-template-columns: minmax(0, 1fr); }
    .hf27-chain { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
    .hf27-enquiry { padding: 1.5rem 1.25rem; }
}

@media (max-width: 479px) {
    .hf27-hw-cat a { grid-template-columns: minmax(0, 1fr); }
    .hf27-hw-cat__art { max-width: 13rem; }
    .hf-global-filters.hf27-wood-filters { grid-template-columns: minmax(0, 1fr); }
    .hf27-option { padding-inline: .7rem; }
}

@media (prefers-reduced-motion: reduce) {
    .hf27-hw-cat a { transition: none; }
    .hf27-hw-cat a:is(:hover, :focus-visible) { transform: none; }
}

/* ---------- HELFINCH NASHORN PRO MAX imagery (supplied visuals) ---------- */

.hf27-hw-hero--campaign {
    padding: 0;
    overflow: hidden;
    background: #0b0c0f;
    color: #f2f3f5;
}

.hf27-hw-hero__stage { position: relative; }

.hf27-hw-hero__media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2048 / 768;
}

/* Copy stays inside the banner's clear left area (products start at ~33%). */
.hf27-hw-hero--campaign .hf27-hw-hero__intro {
    position: absolute;
    inset: 0 auto 0 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 31%;
    max-width: none;
    padding: clamp(1.5rem, 3vw, 3rem);
}

.hf27-hw-hero--campaign .hf27-eyebrow { color: #c7a46a; }

.hf-global .hf27-hw-hero--campaign .hf27-hw-hero__title {
    color: #f2f3f5;
    font-size: clamp(1.75rem, 2.8vw, 2.75rem);
}

.hf27-hw-hero--campaign .hf27-hw-hero__lead {
    margin-bottom: 1.25rem;
    color: #c9ced5;
    font-size: 1rem;
}

.hf27-hw-hero--campaign .hf27-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: .75rem;
}

.hf27-hw-hero--campaign .hf27-link { color: #f2f3f5; }

.hf27-hw-hero--campaign .hf27-hw-cats {
    margin: 0;
    padding: 1rem clamp(1rem, 2.5vw, 2rem) 0;
}

.hf27-hw-hero--campaign .hf27-hw-cat a {
    background: #14161a;
    border-color: #2a2e35;
    color: #f2f3f5;
}

.hf27-hw-hero--campaign .hf27-hw-cat__desc,
.hf27-hw-hero--campaign .hf27-hw-cat__index { color: #b5bbc3; }
.hf27-hw-hero--campaign .hf27-hw-cat__sub { color: #c7a46a; }

.hf27-hw-hero--campaign .hf27-hw-cat__art {
    aspect-ratio: 4 / 3;
    padding: 0;
    margin: 0 0 .75rem;
}

.hf27-hw-hero--campaign .hf27-fineprint {
    margin: 0;
    padding: .75rem clamp(1rem, 2.5vw, 2rem) 1.25rem;
    color: #b5bbc3;
}

/* Product visuals are designed for dark surfaces in every market. */
.hf-global-product-media:has(> img.hf27-nashorn-photo),
.hf27-nashorn-media {
    background: #14161a;
}

.woocommerce .hf-global-product-card .hf-global-product-media img.hf27-nashorn-photo,
.hf27-nashorn-media img.hf27-nashorn-photo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hf27-media-stack { min-width: 0; }

.hf27-representative-note { margin: .5rem 0 1.5rem; }

.hf27-nashorn-banner {
    position: relative;
    overflow: hidden;
    margin-bottom: .25rem;
    border-radius: var(--hf27-radius);
    background: #0b0c0f;
    color: #f2f3f5;
}

.hf27-nashorn-banner__media img {
    display: block;
    width: 100%;
    height: auto;
}

.hf27-nashorn-banner__copy {
    position: absolute;
    inset: 0 auto 0 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 30%;
    padding: clamp(1.25rem, 3vw, 2.75rem);
}

.hf27-nashorn-banner .hf27-eyebrow { color: #c7a46a; }

.hf27-nashorn-banner__copy h2 {
    margin: 0 0 .75rem;
    color: #f2f3f5;
    font-size: clamp(1.5rem, 2.4vw, 2.25rem);
    line-height: 1.1;
    letter-spacing: -.015em;
}

.hf27-nashorn-banner__copy p {
    color: #c9ced5;
    font-size: .9375rem;
    line-height: 1.5;
}

.hf27-nashorn-banner .hf27-link { color: #f2f3f5; }

@media (max-width: 1099px) {
    .hf27-hw-hero--campaign .hf27-hw-hero__stage,
    .hf27-nashorn-banner {
        display: flex;
        flex-direction: column;
    }
    .hf27-hw-hero--campaign .hf27-hw-hero__intro,
    .hf27-nashorn-banner__copy {
        position: static;
        order: -1;
        width: auto;
        padding: 1.5rem 1.25rem .75rem;
    }
    .hf27-hw-hero__media img { aspect-ratio: 1407 / 768; }
    .hf27-hw-hero--campaign .hf27-actions { flex-direction: row; flex-wrap: wrap; align-items: center; }
}

@media (max-width: 991px) {
    .hf27-hw-hero--campaign .hf27-hw-cat__art { aspect-ratio: 1; margin: 0; }
}

/* Phones: compact category rows so RAM, SSD and hubs all sit close to the first screen. */
@media (max-width: 767px) {
    .hf27-hw-hero--campaign .hf27-hw-cats { gap: .625rem; padding-top: .75rem; }
    .hf27-hw-hero--campaign .hf27-hw-cat a {
        grid-template-columns: 6.25rem minmax(0, 1fr);
        grid-template-rows: auto;
        align-items: center;
        gap: .875rem;
        padding: .75rem .875rem;
    }
    .hf27-hw-hero--campaign .hf27-hw-cat__art { width: 6.25rem; aspect-ratio: 1; margin: 0; }
    .hf-global .hf27-hw-hero--campaign .hf27-hw-cat__title { font-size: 1.375rem; }
    .hf27-hw-hero--campaign .hf27-hw-cat__desc { font-size: .8125rem; }
    .hf27-hw-hero--campaign .hf27-hw-cat__cta { margin-top: .25rem; }
    .hf27-hw-hero--campaign .hf27-hw-hero__intro { padding-bottom: .5rem; }
    .hf-global .hf27-hw-hero--campaign .hf27-hw-hero__title { font-size: clamp(1.6rem, 7vw, 2rem); }
}
