/* NEWERA FIX-UI-010 MOBILE NAV */

.ne-mobile-nav {
    display:none;
}

@media(max-width:767px){

    body.ne-has-mobile-nav {
        padding-bottom:calc(64px + env(safe-area-inset-bottom,0px));
    }

    .ne-mobile-nav {
        position:fixed;
        left:0;
        right:0;
        bottom:0;
        z-index:1000;
        display:grid;
        grid-template-columns:repeat(5,minmax(0,1fr));
        background:#fff;
        border-top:1px solid var(--ne-border);
        box-shadow:0 -5px 24px rgba(3,39,14,.06);
        padding:0 4px env(safe-area-inset-bottom,0px);
    }

    .ne-mobile-nav-item {
        position:relative;
        display:flex;
        flex-direction:column;
        justify-content:center;
        align-items:center;
        gap:5px;
        height:64px;
        min-width:0;
        color:var(--ne-muted);
        text-decoration:none!important;
    }

    .ne-mobile-nav-icon {
        display:flex;
        align-items:center;
        justify-content:center;
        width:24px;
        height:24px;
    }

    .ne-mobile-nav-icon svg {
        display:block;
        width:24px;
        height:24px;
    }

    .ne-mobile-nav-label {
        font-size:11px;
        line-height:1.2;
        font-weight:500;
    }

    .ne-mobile-nav-item.is-active {
        color:var(--ne-green);
    }

    .ne-mobile-nav-item.is-active::before {
        content:"";
        position:absolute;
        top:0;
        left:50%;
        transform:translateX(-50%);
        width:22px;
        height:3px;
        background:var(--ne-gold-dark);
        border-radius:0 0 3px 3px;
    }

    .ne-mobile-nav-item.is-active .ne-mobile-nav-label {
        font-weight:700;
    }

    .ne-has-mobile-nav .back-to-top {
        bottom:calc(78px + env(safe-area-inset-bottom,0px))!important;
    }
}

/* NEWERA FIX-UI-012 PRODUCT NAV */

@media(max-width:767px){

    .ne-mobile-nav.ne-product-mobile-nav {
        display:flex;
        align-items:center;
        justify-content:space-around;
        gap:6px;
        padding-left:10px;
        padding-right:10px;
        min-height:64px;
        background:#fff;
    }

    .ne-product-mobile-nav .ne-mobile-nav-item {
        flex:1;
        min-width:32px;
        height:60px;
        gap:4px;
    }

    .ne-product-mobile-nav .ne-mobile-nav-icon,
    .ne-product-mobile-nav .ne-mobile-nav-icon svg {
        width:22px;
        height:22px;
    }

    .ne-product-mobile-nav .ne-mobile-nav-label {
        font-size:10px;
        line-height:1.2;
    }

    body.ne-sheet-open .ne-product-mobile-nav {
        visibility:hidden!important;
        pointer-events:none;
    }
}


/* NEWERA FIX-UI-012-B PRODUCT NAV REFINEMENT */

@media(max-width:767px){

    .ne-mobile-nav.ne-product-mobile-nav {
        justify-content:flex-start;
        gap:4px;
        padding-left:6px;
        padding-right:8px;
    }

    .ne-product-mobile-nav .ne-mobile-nav-item {
        flex:0 0 40px;
        min-width:40px;
        height:60px;
        gap:4px;
    }

    .ne-product-mobile-nav .ne-mobile-nav-icon,
    .ne-product-mobile-nav .ne-mobile-nav-icon svg {
        width:21px;
        height:21px;
    }

    .ne-product-mobile-nav .ne-mobile-nav-label {
        font-size:10px;
    }

    .ne-product-mobile-nav .ne-sheet-trigger {
        flex:1;
        width:auto;
        min-width:0;
        min-height:42px;
        margin:0 0 0 6px!important;
        border-radius:999px!important;
        font-size:13px;
    }
}


/* NEWERA FIX-UI-012-D TOOLBAR POLISH */

@media(max-width:767px){

    .ne-mobile-nav.ne-product-mobile-nav {
        min-height:64px;
        gap:4px;
        padding-left:6px;
        padding-right:10px;
        border-top:1px solid var(--ne-border);
    }

    .ne-product-mobile-nav .ne-mobile-nav-item {
        flex:0 0 40px;
        height:64px;
        gap:5px;
    }

    .ne-product-mobile-nav .ne-mobile-nav-icon,
    .ne-product-mobile-nav .ne-mobile-nav-icon svg {
        width:23px;
        height:23px;
    }

    .ne-product-mobile-nav .ne-mobile-nav-label {
        font-size:10px;
        font-weight:500;
    }

    .ne-product-mobile-nav .ne-sheet-trigger {
        height:44px!important;
        min-height:44px!important;
        padding:0 12px!important;
        line-height:1.4!important;
        margin:0 0 0 4px!important;
        font-size:13px;
    }
}


/* NEWERA FIX-UI-014-C MOBILE ADD TO CART */

@media(max-width:767px){

    .single-product form.cart .quantity,
    .single-product form.cart .single_add_to_cart_button {
        display:none!important;
    }

    .ne-product-mobile-nav .ne-product-cart-action {
        flex:1;
        min-width:0;
        height:44px;
        min-height:44px;
        margin:0 0 0 6px!important;
        padding:0 18px!important;

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

        border:0!important;
        border-radius:999px!important;
        background:var(--ne-green)!important;
        color:#fff!important;

        font-size:14px;
        font-weight:700;
        line-height:1!important;
        white-space:nowrap;

        box-shadow:none!important;
    }

    .ne-product-mobile-nav .ne-product-cart-action:active {
        transform:scale(.98);
    }

    .single-product .variations.ne-needs-selection {
        border-radius:10px;
        outline:2px solid var(--ne-gold);
        outline-offset:5px;
    }
}

