/* =========================================================
   CZORS MARKETPLACE HEADER
========================================================= */

.czors-marketplace-header {
    position: sticky;
    top: 0;
    z-index: 900;
    width: 100%;
    padding: 12px 18px;
    background: rgba(8, 8, 8, 0.82);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.czors-marketplace-header__inner {
    display: grid;
    grid-template-columns:
        minmax(160px, 1fr)
        auto
        minmax(220px, 1fr);
    width: 100%;
    max-width: 1600px;
    min-height: 66px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: center;
}


/* =========================================================
   LOGO
========================================================= */

.czors-marketplace-header__logo {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    text-decoration: none;
}

.czors-marketplace-header__logo img {
    display: block;
    width: auto;
    max-width: 130px;
    height: 42px;
    object-fit: contain;
}


/* =========================================================
   NAVIGATION
========================================================= */

.czors-marketplace-header__nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 5px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 999px;
}

.czors-marketplace-header__nav a {
    position: relative;
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    color: rgba(255, 255, 255, 0.62);
    text-decoration: none;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    transition:
        color 180ms ease,
        background-color 180ms ease,
        transform 180ms ease;
}

.czors-marketplace-header__nav a svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
}

.czors-marketplace-header__nav a:hover,
.czors-marketplace-header__nav a:focus-visible {
    color: #ffffff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-1px);
}

.czors-marketplace-header__nav a.is-active {
    color: #17100a;
    background: #f28c28;
}


/* =========================================================
   PROFILE
========================================================= */

.czors-marketplace-header__actions {
    display: flex;
    justify-content: flex-end;
}

.czors-marketplace-header__profile {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
    padding: 6px 8px 6px 14px;
    color: #ffffff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    transition:
        background-color 180ms ease,
        border-color 180ms ease,
        transform 180ms ease;
}

.czors-marketplace-header__profile:hover,
.czors-marketplace-header__profile:focus-visible {
    color: #ffffff;
    text-decoration: none;
    background: rgba(242, 140, 40, 0.08);
    border-color: rgba(242, 140, 40, 0.28);
    transform: translateY(-1px);
}

.czors-marketplace-header__profile-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    text-align: right;
}

.czors-marketplace-header__profile-copy small {
    color: rgba(255, 255, 255, 0.42);
    font-size: 9px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.czors-marketplace-header__profile-copy strong {
    max-width: 120px;
    overflow: hidden;
    color: #ffffff;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.czors-marketplace-header__profile img {
    display: block;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    object-fit: cover;
    border: 2px solid rgba(242, 140, 40, 0.55);
    border-radius: 50%;
}

.czors-marketplace-header__profile-arrow {
    width: 15px;
    height: 15px;
    margin-right: 3px;
    color: rgba(255, 255, 255, 0.38);
}


/* =========================================================
   SMALL DESKTOP / TABLET
========================================================= */

@media (max-width: 1000px) {

    .czors-marketplace-header__inner {
        grid-template-columns: auto 1fr auto;
        padding-inline: 8px;
    }

    .czors-marketplace-header__nav {
        justify-self: center;
    }

    .czors-marketplace-header__profile-copy {
        display: none;
    }

    .czors-marketplace-header__profile {
        padding: 5px;
    }

    .czors-marketplace-header__profile-arrow {
        display: none;
    }
}


/* =========================================================
   MOBILE
   Existing bottom navigation remains visible.
========================================================= */

@media (max-width: 767px) {

    .czors-marketplace-header {
        display: none;
    }
}

/* =========================================================
   GLOBAL CZORS HEADER — MOBILE
========================================================= */

@media (max-width: 767px) {

    .czors-marketplace-header {
        display: block !important;

        width: 100%;

        background: #0b0b0b;

        border-bottom: 1px solid rgba(255,255,255,.06);
    }


    .czors-marketplace-header__inner {
        display: flex;

        width: 100%;
        min-height: 58px;

        padding: 9px 14px;

        align-items: center;
        justify-content: space-between;

        gap: 12px;
    }


    /* LOGO */

    .czors-marketplace-header__logo {
        display: flex;
        align-items: center;

        flex: 0 0 auto;
    }

    .czors-marketplace-header__logo img {
        display: block;

        width: auto;
        height: 30px;

        max-width: 105px;
    }


    /* HIDE DESKTOP NAV */

    .czors-marketplace-header__nav {
        display: none !important;
    }


    /* RIGHT SIDE */

    .czors-marketplace-header__actions {
        display: flex;

        margin-left: auto;

        align-items: center;
    }


    .czors-marketplace-header__profile {
        display: flex;

        padding: 0;

        align-items: center;
        justify-content: center;

        background: transparent;

        border: 0;
    }


    /*
     * Hide username/account text on mobile.
     */
    .czors-marketplace-header__profile-copy {
        display: none !important;
    }


    /*
     * Hide desktop chevron.
     */
    .czors-marketplace-header__profile-arrow {
        display: none !important;
    }


    /* PROFILE IMAGE */

    .czors-marketplace-header__profile img {
        display: block;

        width: 38px;
        height: 38px;

        object-fit: cover;

        border: 2px solid rgba(242,140,40,.7);
        border-radius: 50%;
    }
}