#header {   
    @media (min-width: $screen-md) {
        background: $color-white;
        position: relative;
        z-index: 5;
    }

    .first-row {
         @media (min-width: $screen-md) {
            background: $color-white;
            position: fixed;
            width: 100%;
            border-bottom: 1px solid $color-black;
        }
    }

    // Logo
    .logo-header {
        display: block;
        position: relative;
        top: 0 !important;

        a {
            display: block;
            position: relative;
            z-index: 1;
        }

        img {
            @include transition(width 0.02s ease-in);
            max-height: 100px;
            image-rendering:   -o-crisp-edges;         /* Opera */
            image-rendering: -webkit-optimize-contrast;/* Webkit (non-standard naming) */
            -ms-interpolation-mode: nearest-neighbor;
            -webkit-transition:max-height 0.4s ease-out; 
            -o-transition:max-height 0.4s ease-out; 
            transition:max-height 0.4s ease-out; 
            width: auto !important;
        }
    }    

    .top-header {
        @include transition(visibility 0s, opacity 0.02s ease-in);

        a {
            text-decoration: underline !important;

            &:hover {
                text-decoration: none;
            }
        }
    }

    .top-header {
        min-height: 40px;
        padding-top: 5px;
        text-transform: $top-header-text-transform;
    }

    .top-row-wrap {
        display: flex;
        min-height: 72px;
        justify-content: space-between;
        -webkit-transition:height 0.6s ease-out; 
        -o-transition:height 0.6s ease-out; 
        transition:height 0.6s ease-out; 

        .top-menu-search {
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            //min-width: 420px;
            width: 50%;
            
            .fp-search-box {
                padding: 0 15px;
                margin-top: 0;
                width: 100%;
            }
        }

        .reorder-wrap {
            margin-top: 0;
            width: 140px;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;

            .reorder-indicator {
                a {
                    color: $reorder-color-base;
                    font-weight: $font-semibold;
                    font-size: 16px;

                    &:hover {
                        color: $reorder-color-hover;
                        text-decoration: none;
                    }
                }
            }

            .fp-icon-reorder {
                font-size: 30px;
            }
        }

        .mini-list {
            height: 72px;
            width: 140px;
            padding: 20px 10px;

            .fp-btn-indicator {
                padding: 0;
                height: 50px;
                position: relative;
                text-align: left;
                color: $color-white;
                overflow: initial;
            }

            .fp-icon-list-indicator {
                top: -10px; 
            }

            .fp-list-quantity {
                margin-left: 0;
                color: white;
                font-size: 12px;
                position: absolute;
                left: 22px;
                top: -3px;

                padding: 2px 1px 1px 2px;
                border-radius: 7.5px;
                min-width: 24px;
                min-height: 17px;
            }

            .fp-list-qty-enabled {
                position: absolute;
                right: 4px;
                top: 8px; 
            }
        }

        .right-col {
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
        }

        .logo-wrap {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 25%;
            text-align: center;
            padding-left: 15px;
        }
    }

    &.shrink {
        .top-header {
            visibility: hidden;
            opacity: 0;
            height: 0;
            min-height: 0;       
            padding-top: 0;     
        }

        .logo-header {
            img {
                max-height: 70px;
                top: 15px;
            }
        }
    }

    .user-my-account-link
    ,.user-store-indicator
    ,.user-session-indicator {
        font-size: 14px;
        line-height: 24px;
        margin-right: $margin-horz;
        color: $top-header-link-color;
    }

    .user-store-indicator {
        display: inline-block;

        a {
            color: $top-header-link-color;

            .fp-store-label {
                font-weight: bold;
            }
        }

        .fp-my-store-wrap {
            font-weight: $font-bold;

            .fp-dropdown-store {
                font-weight: $font-normal;
            }
        }

        .fp-dropdown-selected-store {
            color: $font-color-base;
        }
    }

    .user-session-indicator {
        .fp-welcome,
        .fp-logout-link{
            color: $top-header-link-color;

            a {
                font-weight: $font-semibold;
            }
        }

        .fp-user-name {
            font-weight: $font-normal;
        }

        .fp-welcome-label
        ,.fp-welcome-separator {
            font-weight: $font-semibold;
        }

        .fp-icon-user-indicator {
            top: 4px;
        }

        .fp-welcome-account {
            font-weight: $font-normal;
        }

        .fp-user-session-menu {
            a {
                color: $font-color-base;
                text-decoration: none;
                width: 100%;
            }
        }
    }

    .user-session-indicator
    ,.user-store-indicator {
        .fp-store-dropdown-icon
        ,.fp-welcome-angle-down {
            font-size: 10px;
        }
    }

    .user-my-account-link {
        display: none;

        span {
            display: inline-block;
            padding-right: 10px;
        }
    }

    .user-session-indicator .fp-welcome
    , .user-store-indicator
    , .user-my-account-link {
        a {
            -webkit-transition-duration: 0s;
            transition-duration: 0s;

            &:hover {
                color: $top-header-link-color;
            }
        }
    }

    .user-my-account-link
    ,.user-store-indicator
    ,.user-session-indicator {
        a:hover {
            text-decoration: underline;
        }
    }

    .session-indicator {
        float: right;

        .fp-popover-item-added {
            right: 0px;
        }
    }

    .menu-header-menu-container {
        display: inline-block;
    }

    .nav-my-favorites {
        span[class^="fp-icon"] {
            color: $color-favorite;
        }
    }

    ul.header-menu {
        @include ul-menu(false);
        margin-top: 0;
        position: relative;
        top: 5px;

        li {
            line-height: inherit !important;
            position: relative;
            font-size: 13px;

            a {
                color: $top-header-link-color;
            }

            &:first-child {
                margin-left: $margin-horz-sm;
            }

            &:not(:last-child):after {
                margin: 0 $margin-horz-sm;
            }

            &.nav-my-favorites {
                position: relative;
                margin-left: 0px;
                padding-top: 2px;

                &:before {
                    position: absolute;
                    top:1px;
                    right: 26px;
                }
            }
        }

        li:first-child {
            &:after {
                content: "|";
                margin: 0 $margin-horz-sm;
                display: inline-block;
                color: $top-header-link-color;
                font-size: 16px;
                position: relative;
                top: 1px;
            }
        }

        li:last-child {
            padding-top: 2px;
            &:after {
                display: none;
            }
        }
    }

    .main-menu-container {
        @include transition(all 0.2s ease-in-out);
        min-height: 40px;
        text-align: center;
    }

    // Toggle Bars
    .navbar-toggle {
        display: block;
        background-color:transparent;

        padding: 2px $padding-horz 5px;
        height: 63px;
        margin-top: 0;
        margin-left: -#{$margin-vert};
        margin-right: 3px;

        float:left;
        position:relative;
        z-index: 21;

        // Bars
        .icon-bar {
            display: block;
            height: 3px;
            width: 30px;
            background-color: $bg-white;
        }

        &:hover
        ,&:active {
            .icon-bar {
                background-color: $bg-white;
            }
        }

        .icon-minus + .icon-minus {
            margin-top: 6px;
        }
    }

    // Search
    a.mobile-search-icon {
        font-size: 25px;
        position: absolute;
        top: 0px;
        display: inline-block;
        right: 0px;
        height: 60px;
        width: 50px;
        text-align: right;

        span {
            margin-top: 20px;
        }
    }

    // Mini-list
    .mobile-header-right {
        // text-align: right;

        // .fp-btn-indicator {
        //     text-align: right;
        //     text-overflow: initial;
        // }
    }

    .mobile-header-wrapper {
        position: fixed; /* Set the navbar to fixed position */
        /* top: 0; Position the navbar at the top of the page */
        width: 100%; /* Full width */
        background: #FFF;
        z-index: 5;
        border-bottom: 1px solid #CCCCCC;
         -moz-box-shadow: 0px 4px 8px rgba(0,0,0,.16);  
        -webkit-box-shadow: 0px 4px 8px rgba(0,0,0,.16); 
        box-shadow: 0px 4px 8px rgba(0,0,0,.16);

        .navbar-toggle {
            .icon-bar {
                background-color: $mobile-header-icon-color;
            }
        }

        a.mobile-search-icon {
            color: $mobile-header-icon-color;
        }

        .mobile-header-right {
            background-color: $mobile-header-background-color;
        }

        .fp-mini-list-indicator {
            .fp-btn-indicator {
                padding: 0;
                height: 70px;

                .fp-icon-list-indicator {
                    font-size: 26px;

                    @media (max-width: 319px) {
                        font-size: 20px;
                    }

                }
            }
        }
    }
}

.fp-is-logged-in #header {
    .user-my-account-link {
        display: block;
    }

    .delivery-indicator
    ,.user-session-indicator {
        a:hover {
            text-decoration: none;
        }

        .fp-welcome a:hover .fp-welcome-account {
            text-decoration: none;
        }
    }

    .fp-user-session-indicator {
        .fp-welcome-account,
        .fp-welcome-separator {
            display: none;
        }
    }
} 

.fp-user-session-menu {
    ul li {
        margin-left: 0 !important;
        display: block !important;
        float: none !important;

        a {
            text-decoration: none;
        }

        &:after {
            display: none !important;
        }
    }
}

.mobile-nav-logo {
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 70px;
    a {
        img {
            width: 80%;
            max-height: 70px;
            height: auto !important;
        }
    }
}

.fp-mini-list {
    @media (min-width: $screen-md-min) {
        margin-left: $margin-vert;
    }
}

#header.shrink {
    .top-header {
        visibility: visible !important;
        opacity: 100 !important;
        height: 0;
        min-height: 0;
        padding-top: 0;
        -webkit-transition:max-height 0.4s ease-out; 
        -o-transition:max-height 0.4s ease-out; 
        transition:max-height 0.4s ease-out; 
        width: auto !important;
    }
    
    .first-row {
        -moz-box-shadow: 0px 10px 15px rgba(0, 0, 0, .2);
        -webkit-box-shadow: 0px 10px 15px rgba(0, 0, 0, .2);
        box-shadow: 0px 10px 15px rgba(0, 0, 0, .2);
    }
}

/*---------Header Top Nav Text--------*/
#header ul.header-menu li {
    font-size: 14px;
}
/*---------Header Incrmentor Remove Stroke--------*/
#header .top-row-wrap .mini-list .fp-btn-indicator {
        margin: 5px;
        border: none;
        }
#header .top-row-wrap .mini-list {
        padding: 15px;
        border-radius: 4px 0 0 4px;
        }

@media (min-width: 1200px){
.fp-state-product-detail .container-fluid {
        width: 100%;
        }
}
@media (min-width: 992px) {
.fp-state-product-detail .container-fluid {
         width: 100%;
        }
.fp-state-product-detail .fp-page-title-container {  
        max-width: 1160px;
        margin: 15px auto;
        }
}
.fp-department-breadcrumb .fp-department li {
        padding: 5px;
        }
.sf-menu.main-menu.root-menu-only > li > ul li, li.sf-mega > ul li, ul.sf-mega li {
        padding: 5px;
        }
.fp-department-breadcrumb .fp-department li:hover, .sf-menu.main-menu.root-menu-only > li > ul li:hover, li.sf-mega > ul li:hover, ul.sf-mega li:hover {
        background: #fafafa;
        }
/*-----------------------------------------*/
/*HEADER TOP ROW*/
#header .top-header {
        min-height: 40px;
        padding-top: 5px;
        text-transform: capitalize;
        }
#header.shrink .top-header {
        visibility: visible !important;
        opacity: 100!important;
        height: 0;
        min-height: 0;
        padding-top: 0;
        }
/*-----------------------------------------*/
/*HEADER FIRST ROW CLASS*/
#header.shrink .first-row {
        -moz-box-shadow: 0px 4px 8px rgba(0,0,0,.16);  
        -webkit-box-shadow: 0px 4px 8px rgba(0,0,0,.16); 
        box-shadow: 0px 4px 8px rgba(0,0,0,.16);
        }
/*-----------------------------------------*/
/*RESPONSIVE SEARCH BOX INSIDE FLEXBOX*/
#header .top-row-wrap .top-menu-search .fp-search-box {padding: 0 0 0 15px;
        width: 100%;
        }
/*-----------------------------------------*/
/*RESET Clear Top Margin on Nested Div Elements*/
#header .top-row-wrap .top-menu-search .fp-search-box, #header .top-row-wrap .reorder-wrap  {
        margin-top: 0;
        }
#header .logo-header {
        top: 0 !important; 
        }
/*-----------------------------------------*/
/*HORIZONTALY CENTER HEADER ELEMENTS*/
#header .logo-wrap,
#header .top-menu-search,
#header .reorder-wrap,
#header .right-col  {
        display: flex; /*make us of Flexbox*/
        align-items: center; /*does vertically center the desired content*/
        justify-content: center; /*horizontally centers single line items*/
        text-align: center; /*optional, but helps horizontally center text that breaks into multiple lines*/
        }