/* =========================================================
   NOAG'S DYNAMIC MEGA MENU
========================================================= */

.noags-mega-menu {
    --noags-black: #111111;
    --noags-dark: #222222;
    --noags-grey: #f5f5f5;
    --noags-light-grey: #fafafa;
    --noags-border: #e5e5e5;
    --noags-muted: #969696;

    width: 100%;
    max-width: 1400px;

    margin: 40px auto;

    background: #ffffff;

    border: 1px solid var(--noags-border);

    font-family: Arial, sans-serif;

    box-sizing: border-box;

    overflow: hidden;
}


.noags-mega-menu *,
.noags-mega-menu *::before,
.noags-mega-menu *::after {
    box-sizing: border-box;
}


/* =========================================================
   DESKTOP HEADER
========================================================= */

.noags-mega-menu__header {
    padding: 20px 28px;

    background: var(--noags-black);

    color: #ffffff;
}


.noags-mega-menu__title {
    font-size: 22px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: .3px;
}


/* =========================================================
   DESKTOP BODY
========================================================= */

.noags-mega-menu__desktop {
    display: block;
}


.noags-mega-menu__body {
    display: grid;

    grid-template-columns:
        minmax(230px, 285px)
        minmax(0, 1fr);

    min-height: 580px;
}


/* =========================================================
   DEPARTMENTS
========================================================= */

.noags-mega-menu__departments {
    background: var(--noags-grey);

    border-right: 1px solid var(--noags-border);
}


.noags-mega-menu__department {
    appearance: none;

    width: 100%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    padding: 14px 20px;

    border: 0;

    border-bottom: 1px solid var(--noags-border);

    background: transparent;

    color: var(--noags-dark);

    font: inherit;

    font-size: 14px;

    font-weight: 600;

    text-align: left;

    cursor: pointer;

    transition:
        background .18s ease,
        color .18s ease,
        padding .18s ease;
}


.noags-mega-menu__department:hover,
.noags-mega-menu__department.is-active {
    padding-left: 25px;

    background: var(--noags-black);

    color: #ffffff;
}


.noags-mega-menu__arrow {
    font-size: 24px;

    line-height: 1;
}


/* =========================================================
   CONTENT
========================================================= */

.noags-mega-menu__content {
    padding: 34px 42px;

    background: #ffffff;
}


.noags-mega-menu__panel {
    display: none;
}


.noags-mega-menu__panel.is-active {
    display: block;
}


/* =========================================================
   PANEL TOP
========================================================= */

.noags-mega-menu__panel-top {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;

    margin-bottom: 28px;

    padding-bottom: 20px;

    border-bottom: 1px solid var(--noags-border);
}


.noags-mega-menu__eyebrow {
    margin-bottom: 5px;

    color: #888888;

    font-size: 11px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 1.1px;
}


.noags-mega-menu__panel-top h2 {
    margin: 0;

    color: var(--noags-black);

    font-size: 27px;

    font-weight: 700;

    line-height: 1.2;
}


/* =========================================================
   SHOP ALL
========================================================= */

.noags-mega-menu__shop-all {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 40px;

    padding: 8px 17px;

    border: 1px solid var(--noags-black);

    color: var(--noags-black);

    font-size: 12px;

    font-weight: 700;

    text-decoration: none;

    text-transform: uppercase;

    transition:
        background .18s ease,
        color .18s ease;
}


.noags-mega-menu__shop-all:hover {
    background: var(--noags-black);

    color: #ffffff;
}


/* =========================================================
   SUBCATEGORIES
========================================================= */

.noags-mega-menu__subcategories {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    column-gap: 34px;

    row-gap: 3px;
}


.noags-mega-menu__subcategory {
    display: flex;

    flex-direction: column;

    gap: 3px;

    min-height: 60px;

    padding: 11px 0;

    border-bottom: 1px solid #efefef;

    color: var(--noags-dark);

    text-decoration: none;

    transition:
        color .18s ease,
        padding .18s ease;
}


.noags-mega-menu__subcategory:hover {
    padding-left: 5px;

    color: #000000;
}


.noags-mega-menu__subcategory-name {
    font-size: 15px;

    font-weight: 700;

    line-height: 1.3;
}


.noags-mega-menu__subcategory-count {
    color: var(--noags-muted);

    font-size: 12px;
}


/* =========================================================
   MOBILE
========================================================= */

.noags-mega-menu__mobile {
    display: none;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) and (min-width: 701px) {

    .noags-mega-menu__body {
        grid-template-columns:
            230px
            minmax(0, 1fr);
    }


    .noags-mega-menu__subcategories {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .noags-mega-menu {
        margin: 20px auto;

        border-left: 0;

        border-right: 0;
    }


    .noags-mega-menu__desktop {
        display: none;
    }


    .noags-mega-menu__mobile {
        display: block;

        position: relative;

        width: 100%;

        min-height: 540px;

        background: #ffffff;

        overflow: hidden;
    }


    .noags-mobile-menu__level {
        display: none;

        width: 100%;

        background: #ffffff;
    }


    .noags-mobile-menu__level.is-active {
        display: block;
    }


    /* TOP BAR */

    .noags-mobile-menu__topbar {
        min-height: 70px;

        display: flex;

        align-items: center;

        gap: 18px;

        padding: 15px 18px;

        border-bottom: 1px solid var(--noags-border);

        background: #ffffff;
    }


    .noags-mobile-menu__topbar strong {
        color: var(--noags-black);

        font-size: 19px;

        font-weight: 700;
    }


    /* BACK */

    .noags-mobile-menu__back {
        appearance: none;

        padding: 0;

        border: 0;

        background: transparent;

        color: #666666;

        font: inherit;

        font-size: 15px;

        cursor: pointer;
    }


    /* ITEMS */

    .noags-mobile-menu__list {
        width: 100%;
    }


    .noags-mobile-menu__item {
        width: 100%;

        min-height: 56px;

        display: flex;

        align-items: center;

        justify-content: space-between;

        gap: 15px;

        padding: 14px 18px;

        border: 0;

        border-bottom: 1px solid var(--noags-border);

        background: #ffffff;

        color: var(--noags-dark);

        font: inherit;

        font-size: 15px;

        font-weight: 500;

        text-align: left;

        text-decoration: none;

        cursor: pointer;
    }


    .noags-mobile-menu__item:hover {
        background: #f7f7f7;
    }


    .noags-mobile-menu__chevron {
        color: #777777;

        font-size: 24px;

        line-height: 1;
    }


    .noags-mobile-menu__count {
        color: #999999;

        font-size: 12px;
    }


    .noags-mobile-menu__shop-all {
        background: #f7f7f7;

        color: var(--noags-black);

        font-weight: 700;
    }

}


/* =========================================================
   GLOBAL HEADER MEGA MENU
========================================================= */

.noags-mega-global {
    --noags-menu-top: 100px;

    position: fixed;
    inset: 0;

    z-index: 999999;

    visibility: hidden;
    opacity: 0;

    pointer-events: none;

    transition:
        opacity .18s ease,
        visibility .18s ease;
}


.noags-mega-global.is-open {
    visibility: visible;
    opacity: 1;
}


/* BACKDROP */

.noags-mega-global__backdrop {
    position: fixed;

    top: var(--noags-menu-top);
    right: 0;
    bottom: 0;
    left: 0;

    background: rgba(0, 0, 0, .35);

    opacity: 0;

    transition: opacity .18s ease;
}


.noags-mega-global.is-open
.noags-mega-global__backdrop {
    opacity: 1;
}


/* DRAWER */

.noags-mega-global__drawer {
    position: fixed;

    top: var(--noags-menu-top);
    left: 0;
    right: 0;

    max-height:
        calc(100vh - var(--noags-menu-top));

    overflow-y: auto;

    background: #ffffff;

    box-shadow:
        0 20px 45px rgba(0, 0, 0, .18);

    transform: translateY(-8px);

    transition: transform .18s ease;

    pointer-events: auto;
}


.noags-mega-global.is-open
.noags-mega-global__drawer {
    transform: translateY(0);
}


/* INNER WIDTH */

.noags-mega-global__inner {
    width: 100%;

    max-width: 1450px;

    margin: 0 auto;

    padding: 20px;
}


/*
 * Remove the test-page spacing when the menu
 * is being used inside the real header drawer.
 */

.noags-mega-global
.noags-mega-menu {
    max-width: none;

    margin: 0;

    border: 0;
}


/* CLOSE BUTTON */

.noags-mega-global__close {
    display: none;

    position: absolute;

    top: 15px;
    right: 20px;

    z-index: 10;

    width: 42px;
    height: 42px;

    padding: 0;

    border: 0;

    background: transparent;

    color: #111111;

    font-size: 34px;
    font-weight: 300;

    line-height: 1;

    cursor: pointer;
}


/* Prevent page scrolling when mobile menu is open */

body.noags-mega-menu-open {
    overflow: hidden;
}


/* =========================================================
   MOBILE GLOBAL MENU
========================================================= */

@media (max-width: 767px) {

    .noags-mega-global__backdrop {
        background: rgba(0, 0, 0, .4);
    }


    .noags-mega-global__drawer {
        right: 0;
        bottom: 0;

        max-height: none;

        height:
            calc(100vh - var(--noags-menu-top));

        background: #ffffff;
    }


    .noags-mega-global__inner {
        height: 100%;

        padding: 0;
    }


    .noags-mega-global__close {
        display: block;
    }


    .noags-mega-global
    .noags-mega-menu {
        height: 100%;

        margin: 0;
    }


    .noags-mega-global
    .noags-mega-menu__mobile {
        min-height: 100%;

        padding-top: 10px;
    }

}

/* =========================================================
   GROUPED MEGA MENU
========================================================= */

.noags-mega-menu__groups {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    column-gap: 45px;
    row-gap: 35px;
    width: 100%;
}


/* INDIVIDUAL GROUP */

.noags-mega-menu__group {
    display: block;
    min-width: 0;
}


/* GROUP HEADING */

.noags-mega-menu__group-title {
    margin: 0 0 15px !important;
    padding: 0 0 10px !important;

    border-bottom: 1px solid #e5e5e5;

    font-size: 16px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;

    text-transform: uppercase;
    letter-spacing: 0.3px;
}


/* LINKS WRAPPER */

.noags-mega-menu__group-links {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start;
    gap: 0;
}


/* INDIVIDUAL LINK */

.noags-mega-menu__group-link {
    display: block !important;
    width: 100%;

    padding: 6px 0;

    color: #222 !important;

    font-size: 14px !important;
    line-height: 1.35 !important;
    font-weight: 500 !important;

    text-decoration: none !important;

    border-bottom: 1px solid #f0f0f0;
}


/* HOVER */

.noags-mega-menu__group-link:hover {
    color: #000 !important;
    padding-left: 4px;
}


/* TABLET */

@media (max-width: 1100px) and (min-width: 769px) {

    .noags-mega-menu__groups {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

}







    /* -----------------------------------------
       LEVELS
    ------------------------------------------ */

    .noags-mobile-menu__level {
        display: none;

        position: absolute;
        inset: 0;

        width: 100%;
        height: 100%;

        background: #fff;

        overflow-y: auto;
        overflow-x: hidden;

        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .noags-mobile-menu__level.is-active {
        display: block;
    }


    /* -----------------------------------------
       STICKY TOP BAR
    ------------------------------------------ */

    .noags-mobile-menu__topbar {
        position: sticky;
        top: 0;
        z-index: 10;

        min-height: 64px;

        display: flex;
        align-items: center;

        padding: 12px 60px 12px 18px;

        background: #fff;
        border-bottom: 1px solid #e5e5e5;
    }

    .noags-mobile-menu__topbar strong {
        font-size: 16px;
        line-height: 1.3;
    }


    /* -----------------------------------------
       BACK BUTTON
    ------------------------------------------ */

    .noags-mobile-menu__back {
        border: 0;
        background: transparent;

        padding: 8px 12px 8px 0;
        margin-right: 8px;

        font: inherit;
        cursor: pointer;
    }


    /* -----------------------------------------
       MENU LIST
    ------------------------------------------ */

    .noags-mobile-menu__list {
        padding-bottom: 100px;
    }

    .noags-mobile-menu__item {
        width: 100%;
        min-height: 54px;

        display: flex;
        align-items: center;
        justify-content: space-between;

        padding: 14px 20px;

        border: 0;
        border-bottom: 1px solid #eeeeee;

        background: #fff;

        text-align: left;
        text-decoration: none;

        box-sizing: border-box;
    }

    .noags-mobile-menu__chevron {
        margin-left: 15px;
        font-size: 22px;
        line-height: 1;
    }


    /* -----------------------------------------
       CLOSE BUTTON
    ------------------------------------------ */

    .noags-mega-global__close {
        position: fixed;

        top: 12px;
        right: 14px;

        z-index: 1000001;

        width: 40px;
        height: 40px;

        display: flex;
        align-items: center;
        justify-content: center;
    }

}


/* =========================================================
   NOAG'S MOBILE FULL-SCREEN SHOP MENU
========================================================= */

@media (max-width: 767px) {

    /* -----------------------------------------
       FULL SCREEN OVERLAY
    ------------------------------------------ */

    .noags-mega-global {
        position: fixed !important;
        inset: 0 !important;

        width: 100% !important;
        height: 100dvh !important;

        z-index: 999999 !important;
    }


    .noags-mega-global.is-open {
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }


    /* We don't need the desktop-style backdrop
       because the menu itself fills the screen. */

    .noags-mega-global__backdrop {
        display: none !important;
    }


    /* -----------------------------------------
       FULL SCREEN DRAWER
    ------------------------------------------ */

    .noags-mega-global__drawer {
        position: fixed !important;

        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;

        width: 100% !important;
        height: 100dvh !important;

        max-width: none !important;
        max-height: none !important;

        margin: 0 !important;

        background: #ffffff !important;

        overflow: hidden !important;

        transform: none !important;

        box-shadow: none !important;
    }


    /* -----------------------------------------
       INNER
    ------------------------------------------ */

    .noags-mega-global__inner {
        width: 100% !important;
        height: 100% !important;

        max-width: none !important;

        margin: 0 !important;
        padding: 0 !important;

        overflow: hidden !important;
    }


    .noags-mega-global .noags-mega-menu {
        width: 100% !important;
        height: 100% !important;

        max-width: none !important;

        margin: 0 !important;

        border: 0 !important;

        overflow: hidden !important;
    }


    /* -----------------------------------------
       DESKTOP OFF / MOBILE ON
    ------------------------------------------ */

    .noags-mega-menu__desktop {
        display: none !important;
    }


    .noags-mega-global
    .noags-mega-menu__mobile {
        display: block !important;

        position: relative !important;

        width: 100% !important;
        height: 100% !important;

        min-height: 0 !important;

        padding: 0 !important;

        background: #ffffff;

        overflow: hidden !important;
    }


    /* -----------------------------------------
       EACH MOBILE SCREEN
    ------------------------------------------ */

    .noags-mobile-menu__level {
        display: none;

        position: absolute !important;

        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;

        width: 100% !important;
        height: 100% !important;

        min-height: 0 !important;

        background: #ffffff;

        overflow-x: hidden !important;
        overflow-y: auto !important;

        -webkit-overflow-scrolling: touch;

        overscroll-behavior: contain;
    }


    .noags-mobile-menu__level.is-active {
        display: block !important;
    }


    /* -----------------------------------------
       TOP BAR
    ------------------------------------------ */

    .noags-mobile-menu__topbar {
        position: sticky !important;

        top: 0 !important;

        z-index: 20;

        width: 100%;

        min-height: 68px;

        display: flex;
        align-items: center;

        gap: 12px;

        padding:
            max(14px, env(safe-area-inset-top))
            64px
            14px
            18px;

        background: #ffffff;

        border-bottom: 1px solid #e5e5e5;
    }


    .noags-mobile-menu__topbar strong {
        color: #111111;

        font-size: 17px;
        line-height: 1.25;
        font-weight: 700;
    }


    /* -----------------------------------------
       BACK
    ------------------------------------------ */

    .noags-mobile-menu__back {
        appearance: none;

        flex: 0 0 auto;

        padding: 8px 10px 8px 0;

        margin: 0;

        border: 0;

        background: transparent;

        color: #555555;

        font: inherit;
        font-size: 14px;

        cursor: pointer;
    }


    /* -----------------------------------------
       LIST
    ------------------------------------------ */

    .noags-mobile-menu__list {
        width: 100% !important;
        height: auto !important;

        padding: 0 0 100px !important;

        overflow: visible !important;
    }


    .noags-mobile-menu__item {
        appearance: none;

        width: 100%;

        min-height: 58px;

        display: flex;

        align-items: center;
        justify-content: space-between;

        gap: 15px;

        padding: 15px 20px;

        margin: 0;

        border: 0;
        border-bottom: 1px solid #eeeeee;

        background: #ffffff;

        color: #222222;

        font: inherit;

        font-size: 15px;
        font-weight: 500;

        line-height: 1.3;

        text-align: left;
        text-decoration: none;

        cursor: pointer;
    }


    .noags-mobile-menu__item:active {
        background: #f5f5f5;
    }


    .noags-mobile-menu__shop-all {
        background: #f5f5f5;

        color: #111111;

        font-weight: 700;
    }


    .noags-mobile-menu__chevron {
        flex: 0 0 auto;

        margin-left: 15px;

        color: #777777;

        font-size: 24px;
        line-height: 1;
    }


    /* -----------------------------------------
       CLOSE X
    ------------------------------------------ */

    .noags-mega-global__close {
        display: flex !important;

        position: fixed !important;

        top: max(12px, env(safe-area-inset-top)) !important;
        right: 14px !important;

        z-index: 1000001 !important;

        width: 42px;
        height: 42px;

        padding: 0;

        align-items: center;
        justify-content: center;

        border: 0;

        background: transparent;

        color: #111111;

        font-size: 32px;
        font-weight: 300;

        line-height: 1;

        cursor: pointer;
    }


    /* -----------------------------------------
       LOCK WEBSITE BEHIND POPUP
    ------------------------------------------ */

    body.noags-mega-menu-open {
        overflow: hidden !important;
        touch-action: none;
    }

}

/* =========================================================
   NOAG'S HOMEPAGE - REMOVE THEGEM EXTRA SPACING
========================================================= */

.home #main {
    margin-top: 0 !important;
}

.home .block-content {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.home .block-content:last-of-type {
    padding-bottom: 0 !important;
}

/* =========================================================
   NOAG'S HOMEPAGE LAYOUT FIX
   Remove TheGem spacing above first homepage row
========================================================= */

body.home #main {
    margin-top: 0 !important;
}

body.home #main-content > .block-content {
    padding-top: 0 !important;
}

/* =========================================================
   NOAG'S HOMEPAGE - REMOVE THEGEM HEADER SPACING
========================================================= */

body.home #main.site-main {
    margin-top: 0 !important;
}

body.home #main-content.main-content > .block-content {
    padding-top: 0 !important;
}

/* =========================================================
   NOAG'S HOMEPAGE - REMOVE THEGEM CONTENT GAP
========================================================= */

body.home #main {
    margin-top: 0 !important;
}

body.home #main-content {
    margin-top: 0 !important;
}

body.home #main-content > .block-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}