/*----------------------------------------*/
/*  HEADER                                 */
/*  Figma: header (node 470-3625)          */
/*----------------------------------------*/

header {
    position: fixed;
    z-index: 101;
    top: 0;
    left: 0;
    width: 100%;
    font-family: var(--rd-ff);
    color: var(--rd-txt-on-dark);
}

/* Content sits below the header everywhere except the home hero,
   where the header floats over the banner. */
header + * {
    margin-top: var(--rd-hdr-h);
}

body.home header + *,
body.page-template-page-home header + * {
    margin-top: 0;
}


/*--------------------*/
/* - TOP BAR          */
/*--------------------*/
.hdr__top {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: var(--rd-hdr-top-h);
    padding: 0 var(--rd-gutter);
    background-color: var(--rd-dark);
}

.hdr__top-side {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-shrink: 0;
}

.hdr__brands {
    display: block;
    flex: 0 1 auto;
    min-width: 0;
    height: var(--rd-hdr-top-h);
}

.hdr__brands img {
    display: block;
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.hdr__by {
    display: block;
    flex-shrink: 0;
}

.hdr__by img {
    display: block;
    width: 141px;
    height: 18px;
}


/*--------------------*/
/* - TOP DROPDOWNS    */
/*--------------------*/
.hdr-drop {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    line-height: 1;
}

.hdr-drop__label {
    font-weight: 300;
    color: var(--rd-txt-on-dark);
}

.hdr-drop__current {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    font-weight: 400;
    color: var(--rd-accent);
    text-transform: uppercase;
}

.hdr-drop__current::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 4px 3.67px 0 3.67px;
    border-color: var(--rd-accent) transparent transparent transparent;
    transition: transform var(--rd-transition);
}

.hdr-drop__list {
    position: absolute;
    z-index: 5;
    top: 100%;
    right: 0;
    min-width: 100%;
    display: none;
    flex-direction: column;
    background-color: var(--rd-dark);
    border: 1px solid var(--rd-glass-border);
    border-radius: 0 0 var(--rd-radius) var(--rd-radius);
    padding: 6px 0;
}

.hdr-drop__list a,
.hdr-drop__list span > a {
    display: block;
    white-space: nowrap;
    font-size: 16px;
    line-height: 1;
    color: var(--rd-txt-on-dark);
    text-transform: uppercase;
    text-align: right;
    padding: 7px 14px;
    transition: color var(--rd-transition);
}

.hdr-drop__list .active > a,
.hdr-drop__list a.is-current {
    color: var(--rd-accent);
}

.hdr-drop.is-open .hdr-drop__list {
    display: flex;
}

.hdr-drop.is-open .hdr-drop__current::after {
    transform: rotate(180deg);
}

@media (min-width: 1200px) {
    .hdr-drop:hover .hdr-drop__list {
        display: flex;
    }

    .hdr-drop__list a:hover {
        color: var(--rd-accent);
    }
}


/*--------------------*/
/* - MAIN BAR         */
/*--------------------*/
.hdr__main {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: var(--rd-hdr-main-h);
    padding: 16px var(--rd-gutter);
    background-color: var(--rd-dark);
    transition: background-color var(--rd-transition);
}

/* Glass bar over the home hero */
body.home .hdr__main,
body.page-template-page-home .hdr__main {
    background-color: rgba(0, 0, 0, .01);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

body.home header.scrolled .hdr__main,
body.page-template-page-home header.scrolled .hdr__main {
    background-color: rgba(32, 32, 32, .85);
}

.hdr__logo {
    display: block;
    flex-shrink: 0;
    line-height: 0;
}

.hdr__logo img {
    display: block;
    width: 105px;
    height: auto;
}


/*--------------------*/
/* - NAVIGATION       */
/*--------------------*/
.nav-menu {
    flex: 1 1 auto;
    min-width: 0;
}

.nav-align,
.nav-menu nav {
    height: 100%;
}

.nav-menu nav > ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu nav > ul > li {
    position: relative;
    display: block;
}

.nav-link {
    display: flex;
    align-items: center;
    height: var(--rd-control-h);
    font-size: 18px;
    line-height: 1;
    font-weight: 500;
    color: var(--rd-txt-on-dark);
    text-transform: uppercase;
    white-space: nowrap;
    border: 1px solid transparent;
    border-radius: var(--rd-radius);
    transition: background-color var(--rd-transition), border-color var(--rd-transition), color var(--rd-transition);
}

.nav-link.active,
.nav-menu nav > ul > li.current-menu-item > .nav-link,
.nav-menu nav > ul > li.current-menu-ancestor > .nav-link,
.nav-menu nav > ul > li.submenu.active > .nav-link {
    background-color: var(--rd-glass);
    border-color: var(--rd-glass-border);
    padding: 0 20px;
}

li.submenu > .nav-link {
    gap: 8px;
    cursor: pointer;
}

li.submenu > .nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 5px 4px 0 4px;
    border-color: currentColor transparent transparent transparent;
    transition: transform var(--rd-transition);
}

li.submenu.active > .nav-link::after {
    transform: rotate(180deg);
}

@media (min-width: 1200px) {
    .nav-link:hover {
        color: var(--rd-accent);
    }
}


/*--------------------*/
/* - HEADER ACTIONS   */
/*--------------------*/
.hdr__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.hdr__btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: var(--rd-control-h);
    height: var(--rd-control-h);
    background-color: var(--rd-dark);
    border-radius: var(--rd-radius);
    transition: background-color var(--rd-transition);
}

.hdr__btn img,
.hdr__btn svg {
    display: block;
    width: 24px;
    height: 24px;
}

.hdr__badge {
    position: absolute;
    top: 4px;
    left: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background-color: var(--rd-accent);
    border-radius: var(--rd-radius-pill);
    font-family: var(--rd-ff-alt);
    font-size: 13px;
    line-height: 1;
    letter-spacing: .065px;
    color: var(--rd-dark);
}

@media (min-width: 1200px) {
    .hdr__btn:hover {
        background-color: #3a3a3a;
    }
}


/*--------------------*/
/* - HEADER SEARCH    */
/*--------------------*/
.hdr-search {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 518px;
    height: var(--rd-control-h);
    background-color: var(--rd-glass);
    border-radius: var(--rd-radius);
    overflow: hidden;
}

.hdr-search__input {
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    background: none;
    border: 0;
    outline: none;
    font-family: var(--rd-ff);
    font-size: 16px;
    line-height: 1;
    color: var(--rd-txt-on-dark);
    padding: 0 var(--rd-control-h) 0 16px;
}

.hdr-search__input::placeholder {
    color: var(--rd-txt-faded);
    opacity: 1;
}

.hdr-search__type {
    position: absolute;
    left: -9999px;
}

.hdr-search__submit {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--rd-control-h);
    height: var(--rd-control-h);
    background-color: var(--rd-dark);
    border: 0;
    border-radius: var(--rd-radius);
    cursor: pointer;
    padding: 0;
    transition: background-color var(--rd-transition);
}

.hdr-search__submit img {
    display: block;
    width: 24px;
    height: 24px;
}

@media (min-width: 1200px) {
    .hdr-search__submit:hover {
        background-color: #3a3a3a;
    }
}


/* Panel-only blocks (mobile) */
.nav-align .hdr-search,
.nav-extra {
    display: none;
}


/*--------------------*/
/* - HAMBURGER        */
/*--------------------*/
#hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: var(--rd-control-h);
    height: var(--rd-control-h);
    background-color: var(--rd-dark);
    border-radius: var(--rd-radius);
    cursor: pointer;
}

.hamburger-inner {
    position: relative;
    width: 20px;
    height: 14px;
}

#hamburger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--rd-white);
    transition: all var(--rd-transition);
}

#hamburger span:nth-child(1) { top: 0; }
#hamburger span:nth-child(2) { top: 6px; }
#hamburger span:nth-child(3) { bottom: 0; }

#hamburger.active span:nth-child(1) {
    top: 6px;
    transform: rotate(45deg);
}

#hamburger.active span:nth-child(2) {
    transform: scaleX(0);
}

#hamburger.active span:nth-child(3) {
    bottom: 6px;
    transform: rotate(-45deg);
}


/*--------------------*/
/* - MEGAMENU         */
/*--------------------*/
.megamenu {
    position: fixed;
    z-index: 100;
    top: var(--rd-hdr-h);
    left: 0;
    width: 100%;
    max-height: calc(100vh - var(--rd-hdr-h));
    overflow-y: auto;
    background-color: var(--rd-dark);
    border-top: 1px solid var(--rd-glass-border);
    text-align: left;
    padding: 40px var(--rd-gutter);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--rd-transition);
}

.megamenu.active {
    z-index: 102;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.megamenu-align {
    display: flex;
    gap: 40px;
    max-width: 1860px;
    margin: 0 auto;
}

.megamenu-content {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
}

.megamenu-content-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 40px;
}

.megamenu-column {
    position: relative;
    flex: 0 0 auto;
    min-width: 245px;
}

.megamenu-title,
.megamenu-toggle-links > a,
.resources-title {
    position: relative;
    display: block;
    cursor: pointer;
    font-size: 18px;
    line-height: 1.1;
    font-weight: 500;
    color: var(--rd-white);
    text-transform: capitalize;
    padding: 8px 0;
    transition: color var(--rd-transition);
}

.megamenu-toggle-links > a,
.resources-drop-down a {
    font-size: 16px;
    line-height: 1.2;
    font-weight: 400;
    color: var(--rd-txt-muted);
}

.megamenu-toggle-links > a.active,
.megamenu-title.active {
    color: var(--rd-accent);
}

.megamenu-toggle {
    display: none;
}

.megamenu-column.active .megamenu-toggle {
    display: block;
}

.btn-caption span,
.megamenu-content-caption {
    display: block;
    font-size: 16px;
    line-height: 1;
    font-weight: 500;
    color: var(--rd-txt-faded);
    text-transform: uppercase;
    padding: 12px 0;
}

.btn-caption b {
    display: none;
}

.megamenu-content-img {
    display: none;
}

.btn-all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    font-weight: 500;
    color: var(--rd-accent);
    margin-top: 30px;
}

.viewed-prod {
    flex: 0 0 240px;
    border-left: 1px solid var(--rd-glass-border);
    padding-left: 30px;
}

.viewed-prod-img {
    position: relative;
    display: block;
    padding-top: 100%;
    background-color: rgba(255, 255, 255, .04);
    border-radius: var(--rd-radius);
}

.viewed-prod-img img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 74%;
    max-height: 74%;
}

.megamenu .btn-close,
.megamenu .button-close {
    position: absolute;
    top: 20px;
    right: var(--rd-gutter);
    cursor: pointer;
    width: 32px;
    height: 32px;
}

.megamenu .btn-close::before,
.megamenu .btn-close::after,
.megamenu .button-close::before,
.megamenu .button-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 4px;
    width: 24px;
    height: 2px;
    background-color: var(--rd-white);
}

.megamenu .btn-close::before,
.megamenu .button-close::before {
    transform: rotate(45deg);
}

.megamenu .btn-close::after,
.megamenu .button-close::after {
    transform: rotate(-45deg);
}

@media (min-width: 1200px) {
    .megamenu-title:hover,
    .megamenu-toggle-links > a:hover,
    .resources-drop-down a:hover {
        color: var(--rd-accent);
    }
}


/*--------------------*/
/* - TABLET (<1200px) */
/*--------------------*/
@media (max-width: 1199px) {
    .hdr__top {
        display: none;
    }

    #hamburger {
        display: flex;
        order: 3;
    }

    .hdr__actions {
        order: 2;
        gap: 8px;
    }

    .hdr__main {
        gap: 12px;
        background-color: var(--rd-dark);
    }

    body.home .hdr__main,
    body.page-template-page-home .hdr__main {
        background-color: rgba(32, 32, 32, .9);
        backdrop-filter: blur(22px);
        -webkit-backdrop-filter: blur(22px);
    }

    /* Slide-in panel */
    .nav-menu {
        position: fixed;
        z-index: 1;
        top: var(--rd-hdr-main-h);
        left: -100%;
        bottom: 0;
        width: min(420px, 85%);
        height: calc(100vh - var(--rd-hdr-main-h));
        background-color: var(--rd-dark);
        opacity: 0;
        transition: left 0s .4s, opacity .4s;
    }

    header.active .nav-menu {
        left: 0;
        opacity: 1;
        transition: left 0s 0s, opacity .4s;
    }

    .nav-menu .layer {
        position: absolute;
        z-index: -1;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, .5);
    }

    .nav-align {
        width: 100%;
        height: 100%;
        overflow-y: auto;
        background-color: var(--rd-dark);
    }

    .nav-menu nav > ul {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        padding: 10px var(--rd-gutter);
    }

    .nav-menu nav > ul > li {
        border-bottom: 1px solid var(--rd-glass-border);
    }

    .nav-link {
        height: auto;
        justify-content: space-between;
        font-size: 20px;
        padding: 16px 0;
    }

    .nav-link.active,
    .nav-menu nav > ul > li.current-menu-item > .nav-link {
        background: none;
        border-color: transparent;
        color: var(--rd-accent);
        padding: 16px 0;
    }

    /* Search moves into the panel */
    .hdr__actions .hdr-search {
        display: none;
    }

    .nav-align .hdr-search {
        display: flex;
        max-width: none;
        margin: 20px var(--rd-gutter);
        width: calc(100% - var(--rd-gutter) * 2);
        background-color: rgba(255, 255, 255, .08);
    }

    .nav-extra {
        display: flex;
        flex-direction: column;
        gap: 18px;
        padding: 24px var(--rd-gutter) 40px;
        border-top: 1px solid var(--rd-glass-border);
        margin: 0 var(--rd-gutter);
    }

    .nav-extra .hdr-drop__list {
        right: auto;
        left: 0;
        border-radius: var(--rd-radius);
    }

    .nav-extra .hdr-drop__list a {
        text-align: left;
    }

    .megamenu {
        position: static;
        max-height: none;
        border: 0;
        padding: 0 var(--rd-gutter) 20px;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }

    .megamenu.active {
        display: block;
    }

    .megamenu-align {
        flex-direction: column;
        gap: 0;
    }

    .megamenu-content-inner {
        flex-direction: column;
        gap: 0;
    }

    .megamenu-column {
        min-width: 0;
        width: 100%;
    }

    .viewed-prod,
    .megamenu .btn-close,
    .megamenu .button-close {
        display: none;
    }
}


/*--------------------*/
/* - PHONE (<768px)   */
/*--------------------*/
@media (max-width: 767px) {
    .nav-menu {
        width: 100%;
    }

    .hdr__logo img {
        width: 88px;
    }

    .hdr__btn,
    #hamburger {
        width: 40px;
        height: 40px;
    }

    .hdr__badge {
        left: 18px;
    }
}
