:root {
    --bb-black: #000000;
    --bb-black-soft: #11110f;
    --bb-panel: rgba(13, 13, 12, .91);

    --bb-gold: #dfbc6a;
    --bb-gold-light: #f0d77f;
    --bb-gold-dark: #a97c28;

    --bb-cream: #f7f3e9;
    --bb-muted: rgba(247, 243, 233, .68);

    --bb-header-height: 72px;
}

html,
body {
    overflow-x: clip;
}


/* =========================================
   MAIN HEADER
========================================= */

.bb-shop-header {
    position: sticky;
    top: 14px;
    z-index: 1000;

    width: min(1460px, calc(100% - 32px));
    margin: 14px auto 0;

    pointer-events: none;

    transition:
        top .25s ease;
}

.bb-shop-header__shell {
    width: 100%;
    margin: 0 auto;

    pointer-events: auto;
}

.bb-shop-header__inner {
    position: relative;
    z-index: 2;

    width: 100%;
    min-height: var(--bb-header-height);

    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 34px;

    padding: 0 18px 0 24px;

    border: 1px solid rgba(214, 173, 80, .25);
    border-radius: 24px;

    background: var(--bb-panel);

    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);

    box-shadow:
        0 22px 60px rgba(0, 0, 0, .38),
        inset 0 1px 0 rgba(255, 255, 255, .04);

    transition:
        background .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}

.bb-shop-header.is-scrolled .bb-shop-header__inner {
    border-color: rgba(214, 173, 80, .36);

    background: rgba(8, 8, 7, .97);

    box-shadow:
        0 18px 50px rgba(0, 0, 0, .46),
        inset 0 1px 0 rgba(255, 255, 255, .045);
}


/* Premium gold line */

.bb-shop-header__inner::before {
    content: "";

    position: absolute;
    left: 28px;
    right: 28px;
    bottom: -1px;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(214, 173, 80, .75),
            transparent
        );

    opacity: .55;
}


/* =========================================
   LOGO
========================================= */

.bb-shop-header__logo {
    display: inline-flex;
    align-items: center;

    min-width: 170px;
    flex: 0 0 auto;

    color: var(--bb-cream);
    text-decoration: none;
}

.bb-shop-header__logo picture {
    display: block;
}

.bb-shop-header__logo-image {
    display: block;

    width: auto;
    height: 38px;
    max-width: 175px;

    object-fit: contain;

    transition:
        transform .25s ease,
        filter .25s ease;
}

.bb-shop-header__logo:hover .bb-shop-header__logo-image {
    transform: translateY(-1px);

    filter:
        drop-shadow(
            0 0 10px rgba(214, 173, 80, .2)
        );
}


/* =========================================
   DESKTOP NAVIGATION
========================================= */

.bb-shop-header__nav {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: clamp(16px, 1.6vw, 28px);

    margin-left: 0;
}

.bb-shop-header__link {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;

    color: rgba(247, 243, 233, .72);

    font-size: .82rem;
    font-weight: 750;
    letter-spacing: .025em;

    line-height: 1;
    text-decoration: none;
    white-space: nowrap;

    transition:
        color .2s ease,
        transform .2s ease;
}

.bb-shop-header__link::after {
    content: "";

    position: absolute;

    left: 50%;
    right: 50%;
    bottom: 6px;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--bb-gold),
            transparent
        );

    transition:
        left .25s ease,
        right .25s ease;
}

.bb-shop-header__link:hover,
.bb-shop-header__link:focus-visible,
.bb-shop-header__link.is-active {
    color: var(--bb-cream);

    transform: translateY(-1px);
}

.bb-shop-header__link:hover::after,
.bb-shop-header__link:focus-visible::after,
.bb-shop-header__link.is-active::after {
    left: 0;
    right: 0;
}


/* =========================================
   RIGHT SIDE
========================================= */

.bb-shop-header__right {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 10px;

    flex: 0 0 auto;
    margin-left: auto;
}


/* =========================================
   SHOP CLOTHING GOLD PILL
========================================= */

.bb-shop-header__shop-button {
    position: relative;
    isolation: isolate;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 11px;

    width: 160px;
    height: 46px;
    min-width: 160px;
    min-height: 46px;
    padding: 0 16px;
    box-sizing: border-box;

    overflow: hidden;

    border: 1px solid var(--bb-gold);
    border-radius: 999px;

    background:
        linear-gradient(
            135deg,
            var(--bb-gold-light),
            var(--bb-gold)
        );

    color: #111;

    font-size: 13px;
    font-weight: 800;

    line-height: 1;
    text-decoration: none;
    white-space: nowrap;

    box-shadow:
        0 7px 22px rgba(223, 188, 106, .20),
        inset 0 1px 0 rgba(255, 255, 255, .50);

    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
}

.bb-shop-header__shop-button::before {
    content: "";

    position: absolute;
    inset: 0;
    z-index: -1;

    background:
        linear-gradient(
            110deg,
            transparent 20%,
            rgba(255, 255, 255, .45) 45%,
            transparent 70%
        );

    transform: translateX(-130%);

    transition: transform .65s ease;
}

.bb-shop-header__shop-button:hover,
.bb-shop-header__shop-button:focus-visible {
    color: #111;

    transform: translateY(-2px);

    box-shadow:
        0 10px 28px rgba(223, 188, 106, .30),
        inset 0 1px 0 rgba(255, 255, 255, .55);
}

.bb-shop-header__shop-button:hover::before {
    transform: translateX(130%);
}

.bb-shop-header__shop-button svg {
    width: 17px;
    height: 17px;

    transition: transform .25s ease;
}

.bb-shop-header__shop-button:hover svg {
    transform: translateX(3px);
}


/* =========================================
   MOBILE MENU BUTTON
========================================= */

.bb-shop-menu-button {
    display: none;

    position: relative;

    width: 46px;
    height: 46px;
    flex: 0 0 46px;

    padding: 0;

    border: 1px solid rgba(223, 188, 106, .42);
    border-radius: 50%;

    background: rgba(255, 255, 255, .03);

    cursor: pointer;
}

.bb-shop-menu-button__line {
    position: absolute;
    left: 50%;

    width: 19px;
    height: 1.5px;

    border-radius: 10px;

    background: var(--bb-gold-light);

    transform: translateX(-50%);

    transition:
        top 220ms ease,
        transform 220ms ease,
        opacity 160ms ease;
}

.bb-shop-menu-button__line:nth-child(1) {
    top: 15px;
}

.bb-shop-menu-button__line:nth-child(2) {
    top: 22px;
}

.bb-shop-menu-button__line:nth-child(3) {
    top: 29px;
}

.bb-shop-menu-button.is-open .bb-shop-menu-button__line:nth-child(1) {
    top: 22px;

    transform:
        translateX(-50%)
        rotate(45deg);
}

.bb-shop-menu-button.is-open .bb-shop-menu-button__line:nth-child(2) {
    opacity: 0;
}

.bb-shop-menu-button.is-open .bb-shop-menu-button__line:nth-child(3) {
    top: 22px;

    transform:
        translateX(-50%)
        rotate(-45deg);
}


/* =========================================
   MOBILE MENU
========================================= */

.bb-shop-mobile-menu {
    max-height: 0;

    overflow: hidden;

    opacity: 0;
    visibility: hidden;

    transform: translateY(-8px);

    transition:
        max-height 350ms ease,
        opacity 220ms ease,
        transform 220ms ease,
        visibility 220ms ease;
}

.bb-shop-mobile-menu.is-open {
    max-height: 620px;

    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}

.bb-shop-mobile-menu__nav {
    margin-top: 9px;
    padding: 13px;

    border: 1px solid rgba(223, 188, 106, .42);
    border-radius: 22px;

    background:
        linear-gradient(
            145deg,
            rgba(20, 20, 20, .985),
            rgba(6, 6, 6, .985)
        );

    box-shadow:
        0 22px 45px rgba(0, 0, 0, .35);

    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.bb-shop-mobile-menu__link {
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: center;

    min-height: 54px;
    padding: 0 15px;

    border-radius: 13px;

    color: var(--bb-cream);

    font-size: 15px;
    font-weight: 650;

    text-decoration: none;

    transition:
        color 180ms ease,
        background 180ms ease,
        padding-left 180ms ease;
}

.bb-shop-mobile-menu__link:hover,
.bb-shop-mobile-menu__link:focus-visible,
.bb-shop-mobile-menu__link.is-active {
    padding-left: 19px;

    color: var(--bb-gold-light);

    background: rgba(223, 188, 106, .08);
}

.bb-shop-mobile-menu__number {
    color: var(--bb-gold);

    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
}


/* Mobile shop button */

.bb-shop-mobile-menu__shop {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 52px;

    margin-top: 10px;
    padding: 0 20px;

    border-radius: 999px;

    background:
        linear-gradient(
            135deg,
            var(--bb-gold-light),
            var(--bb-gold)
        );

    color: #111;

    font-size: 14px;
    font-weight: 850;

    text-decoration: none;
}

.bb-shop-mobile-menu__shop:hover,
.bb-shop-mobile-menu__shop:focus-visible {
    color: #111;
}


/* =========================================
   TABLET
========================================= */

@media screen and (max-width: 1180px) {

    .bb-shop-header__inner {
        gap: 14px;
    }

    .bb-shop-header__nav {
        gap: 15px;
    }

    .bb-shop-header__link {
        font-size: 13px;
    }
}


/* =========================================
   SWITCH TO MOBILE
========================================= */

@media screen and (max-width: 900px) {

    .bb-shop-header {
        top: 10px;

        width: calc(100% - 24px);
    }

    .bb-shop-header__inner {
        display: flex;
        align-items: center;
        justify-content: space-between;

        min-height: 70px;

        gap: 16px;

        padding: 7px 10px 7px 17px;

        border-radius: 21px;
    }

    .bb-shop-header__logo {
        min-width: 0;
        flex: 0 1 auto;
    }

    .bb-shop-header__logo-image {
        height: 42px;
        max-width: 170px;
    }

    .bb-shop-header__nav,
    .bb-shop-header__shop-button {
        display: none;
    }

    .bb-shop-header__right {
        margin-left: auto;
    }

    .bb-shop-menu-button {
        display: block;
    }
}


/* =========================================
   SMALL PHONES
========================================= */

@media screen and (max-width: 600px) {

    .bb-shop-header {
        top: 8px;

        width: calc(100% - 16px);

        margin-top: 8px;
    }

    .bb-shop-header__inner {
        min-height: 64px;

        padding: 6px 8px 6px 14px;

        border-radius: 18px;
    }

    .bb-shop-header__logo-image {
        height: 42px;
        max-width: 145px;
    }

    .bb-shop-menu-button {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }
}


/* =========================================
   VERY SMALL PHONES
========================================= */

@media screen and (max-width: 375px) {

    .bb-shop-header__logo-image {
        width: auto;
        height: 42px;
        max-width: 72px;
    }

    .bb-shop-header__inner {
        padding-left: 13px;
    }
}


/* =========================================
   ACCESSIBILITY
========================================= */

@media (prefers-reduced-motion: reduce) {

    .bb-shop-header,
    .bb-shop-header__inner,
    .bb-shop-header__logo-image,
    .bb-shop-header__link,
    .bb-shop-header__link::after,
    .bb-shop-header__shop-button,
    .bb-shop-header__shop-button::before,
    .bb-shop-header__shop-button svg,
    .bb-shop-menu-button,
    .bb-shop-menu-button__line,
    .bb-shop-mobile-menu,
    .bb-shop-mobile-menu__link {
        transition: none;
    }
}