/* =========================================================
   HAUNT COMMAND HEADER
========================================================= */
/* =========================================================
   HAUNT COMMAND HEADER
   Single clean flexbox version
   Replace all old hc- / hcx- header CSS with this
========================================================= */

.hcx-site-header,
.hcx-site-header * {
    box-sizing: border-box;
}

.hcx-site-header {
    --hc-row-left: clamp(58px, 2.95vw, 76px);
    --hc-row-right: clamp(42px, 2.35vw, 60px);
    --hc-row-top: clamp(30px, 1.35vw, 34px);
    --hc-row-height: clamp(44px, 2vw, 52px);

    --hc-home-size: clamp(44px, 2.15vw, 55px);
    --hc-home-logo-gap: clamp(58px, 3.2vw, 82px);

    --hc-logo-width: clamp(500px, 23.8vw, 610px);
    --hc-logo-nav-gap: clamp(50px, 2.4vw, 62px);

    --hc-nav-font: clamp(22px, 1.08vw, 28px);
    --hc-nav-gap: clamp(42px, 2.35vw, 60px);

    --hc-cta-width: clamp(210px, 8.6vw, 230px);
    --hc-cta-text: clamp(15px, 0.72vw, 18px);
    --hc-nav-cta-gap: clamp(52px, 2.45vw, 64px);

    --hc-icon-size: clamp(42px, 2.1vw, 54px);
    --hc-action-gap: clamp(34px, 1.55vw, 42px);
    --hc-cta-action-gap: clamp(52px, 2.45vw, 64px);

    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);

    position: relative;
    z-index: 100;
}

.hcx-shell {
    width: 100%;
    height: 190px;

    padding-top: var(--hc-row-top);
    overflow: visible;
}

/* Keep this only while testing the row placement */
.hcx-debug .hcx-row {
    background: rgba(82, 82, 0, 0.85);
}

.hcx-row {
    width: 100%;
    height: var(--hc-row-height);
    display: flex;
    align-items: center;
    padding-left: var(--hc-row-left);
    padding-right: var(--hc-row-right);
    overflow: visible;
}

/* Home icon */

.hcx-home {
    flex: 0 0 var(--hc-home-size);
    width: var(--hc-home-size);
    height: var(--hc-row-height);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: var(--hc-home-logo-gap);
    text-decoration: none;
}

.hcx-home img {
    width: var(--hc-home-size);
    max-width: none;
    height: auto;
    display: block;
}

/* Logo */

.hcx-logo {
    flex: 0 0 var(--hc-logo-width);
    width: var(--hc-logo-width);
    height: var(--hc-row-height);
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    margin-right: var(--hc-logo-nav-gap);
    overflow: visible;
    text-decoration: none;
}

.hcx-logo img {
    width: var(--hc-logo-width);
    max-width: none;
    height: auto;
    display: block;
    transform: translateY(calc(var(--hc-logo-width) * -0.058));
}

/* Main nav */

.hcx-nav {
    flex: 0 0 auto;
    min-width: 0;
}

.hcx-nav ul {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: var(--hc-nav-gap);
    list-style: none;
    margin: 0;
    padding: 0;
}

.hcx-nav li {
    margin: 0;
    padding: 0;
}

.hcx-nav a {
    display: block;
    color: #d7d2c2;
    text-decoration: none;
    text-transform: uppercase;
    font-family: "Oswald", "Bebas Neue", Impact, sans-serif;
    font-size: var(--hc-nav-font);
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.hcx-nav a:hover {
    color: #fff;
}

/* CTA */

.hcx-cta {
    flex: 0 0 var(--hc-cta-width);
    width: var(--hc-cta-width);
    height: var(--hc-row-height);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: var(--hc-nav-cta-gap);
    text-decoration: none;
}

.hcx-cta img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
}

.hcx-cta span {
    position: relative;
    z-index: 1;
    padding-right: 18px;
    color: #f3ead1;
    text-transform: uppercase;
    font-family: "Oswald", "Bebas Neue", Impact, sans-serif;
    font-size: var(--hc-cta-text);
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1;
    text-shadow: 0 1px 2px #000, 0 0 8px rgba(255, 75, 35, 0.75);
    white-space: nowrap;
}

/* Right-side icons */

.hcx-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: var(--hc-action-gap);
    margin-left: var(--hc-cta-action-gap);
}

.hcx-icon {
    position: relative;
    flex: 0 0 var(--hc-icon-size);
    width: var(--hc-icon-size);
    height: var(--hc-row-height);
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
}

.hcx-icon img {
    width: var(--hc-icon-size);
    max-width: none;
    height: auto;
    display: block;
}

.hcx-cart img {
    width: calc(var(--hc-icon-size) * 1.12);
}

.hcx-menu img {
    width: calc(var(--hc-icon-size) * 1.08);
}

.hcx-badge {
    position: absolute;
    top: -6px;
    right: -7px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ff1d2d;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 800;
    line-height: 20px;
    text-align: center;
    box-shadow: 0 0 5px rgba(255, 0, 0, 0.75);
}

/* Normal desktop compression only when actually needed */

@media (max-width: 1900px) {
    .hcx-site-header {
        --hc-row-left: 58px;
        --hc-row-right: 42px;
        --hc-row-top: 34px;
        --hc-row-height: 44px;

        --hc-home-size: 44px;
        --hc-home-logo-gap: 54px;

        --hc-logo-width: 500px;
        --hc-logo-nav-gap: 56px;

        --hc-nav-font: 22px;
        --hc-nav-gap: 42px;

        --hc-cta-width: 210px;
        --hc-cta-text: 15px;
        --hc-nav-cta-gap: 54px;

        --hc-icon-size: 42px;
        --hc-action-gap: 34px;
        --hc-cta-action-gap: 54px;
    }
}

/* Hide nav before it collides */

@media (max-width: 1500px) {
    .hcx-nav {
        display: none;
    }

    .hcx-cta {
        margin-left: auto;
    }
}

/* Mobile */

@media (max-width: 760px) {
    .hcx-shell {
        height: 130px;
        padding-top: 28px;
    }

    .hcx-row {
        height: 44px;
        padding-left: 24px;
        padding-right: 24px;
    }

    .hcx-home {
        flex-basis: 40px;
        width: 40px;
        height: 44px;
        margin-right: 20px;
    }

    .hcx-home img {
        width: 40px;
    }

    .hcx-logo {
        flex: 1 1 auto;
        width: auto;
        height: 44px;
        margin-right: 0;
    }

    .hcx-logo img {
        width: 320px;
        transform: translateY(-18px);
    }

    .hcx-cta,
    .hcx-actions .hcx-icon:not(.hcx-menu) {
        display: none;
    }

    .hcx-actions {
        margin-left: auto;
        gap: 0;
    }
}