﻿.b-icon {
    outline: none;
}
.header-nav {
    border-bottom: 1px solid #f2f2f2;
}
.header-nav .b-icon.bi {
    font-size: 24px;
}
.dropdown-toggle::after {
    display: none;
}
.navbar-nav .nav-link {
    position: relative;
}
.qty-indicator {
    position: absolute;
    top: 0;
    right: -5px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 18px;
    height: 18px;
    color: #fff;
    font-size: 12px;
    background: #17a2b8;
    border-radius: 100%;
}
.b-sidebar-header {
    text-align: right;
}
.b-sidebar.slide {
    -webkit-transition: transform 1s cubic-bezier(.19,1,.22,1);
    transition: transform 1s cubic-bezier(.19,1,.22,1);
}
.b-sidebar-body {
    padding: 15px;
}

/* flyout-cart */

.flyout-cart {
    padding-left: 0;
}

.flyout-cart .item {
    position: relative;
    width: 100%;
    margin: 0 0 7.5px 0;
    padding: 0 0 7.5px 0;
    border-bottom: 1px solid #efefef;
}
.flyout-cart .item:last-child,
.flyout-cart .item:last-child:first-child {
    margin: 0;
    padding: 0;
    border-bottom: 0;
}
.flyout-cart .item .attributes {
    font-size: 14px;
    color: #888;
}
.flyout-cart .item .deletecartitem {
    position: absolute;
    top: 0;
    right: 0;
    cursor: pointer;
}
.flyout-cart .item .col a {
    color: #343a40;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
}
.header-nav .bi-cart-check {
    width: 40px;
    margin: 6px 0 0 0;
}

/* menu toogler */

#sidebar-menu .b-sidebar-body {
    padding: 0;
}
.menu-toggler {
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 60px;
    height: 31px;
    background-color: transparent !important;
    border: 0 !important;
    padding-right: 0px;
    display: none;
}
.menu-toggler span {
    width: 30px;
    height: 3px;
    background: #000;
}

@media (min-width: 576px) {
    .b-sidebar {
        width: 530px;
    }
}
@media (max-width: 991px) {
    .header-nav {
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        margin: 0 0 15px 0;
        background: #fff;
        box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
        z-index: 1034;
    }
    .header-nav > .navbar {
        height: 58px;
    }
    .header-nav .navbar-brand img {
        max-height: 45px;
    }
    /*    .header-nav .top-header-items.navbar-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        padding: 10px;
        display: inline-flex;
        justify-content: space-around;
        box-shadow: 0 -3px 6px rgba(0,0,0,0.16), 0 -3px 6px rgba(0,0,0,0.23);
        padding-left: 0px;
        padding-left: 0px;
    }
    .nav-link {
        padding-left: 3px !important;
        padding-right: 3px !important;
    }
    */

    /* display vertical menu for mobile device */
    .menu-toggler {
        display: flex;
    }
}
@media (max-width: 575px) {
    .flyout-cart .item img {
        max-width: 75px;
    }
    .flyout-cart .item .col a {
        display: table;
        max-width: calc(100% - 15px);
        font-size: 14px;
        line-height: 1;
    }
    .flyout-cart .item .price,
    .flyout-cart .item .quantity {
        font-size: 14px;
    }
    .flyout-cart .item .attributes {
        font-size: 12px;
    }
    .flyout-cart .b-sidebar-footer .h4 {
        font-size: 20px;
    }
    .flyout-cart .b-sidebar-footer .h5 {
        font-size: 16px;
    }
}


@media (max-width: 420px) {
    .header-nav .navbar-brand img {
        max-width: 120px;
    }

    .header-nav .navbar-nav button {
        width: calc(100vw - 290px);
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        padding-left: 5px;
        padding-right: 5px;
        margin-left: 5px;
    }

    .menu-toggler {
        width: 40px !important;
    }
}

@media (max-width: 380px) {
    .header-nav .navbar-brand img {
        max-width: 100px;
    }

    .header-nav .navbar-nav button {
        width: calc(100vw - 280px);
    }
}


/* =========================
           HEADER WRAPPER - DESKTOP ONLY
           ========================= */
.ncs-header-wrapper { width: 100%; background-color: #303030; height: 76px; position: relative; z-index: 1000; }

/* =========================
           DESKTOP LOGO - LEFT SIDE
           ========================= */
.ncs-logo-container { display: flex; align-items: center; }

.ncs-logo-container img { max-height: 66px; /* 76px - 10px for spacing */ width: auto; display: block; }

/* =========================
           HEADER CONTENT - FLEX LAYOUT
           ========================= */
.ncs-header-content { display: flex; align-items: center; justify-content: space-between; height: 76px; }

/* =========================
           LOGIN BUTTON - RIGHT SIDE
           ========================= */
.ncs-login-section { display: flex; align-items: center; gap: 15px; }
.ncs-login-section .cart-item  { position:relative; }
.ncs-login-section .cart-item .qty-indicator { right:0; }
.ncs-login-section .cart-item a { color:#f8f9fa !important }
.ncs-login-section .cart-item svg { color:#f8f9fa !important }


/* =========================
           MOBILE MENU TOGGLE
           ========================= */
.ncs-menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 10px; }

.ncs-menu-toggle span { display: block; width: 28px; height: 3px; background-color: #ffffff; margin: 5px 0; transition: all 0.3s ease; }


.ncs-header-wrapper .ncs-nav-left { background: #303030; }
.ncs-header-wrapper .navbar a { color: #fff; }

.ncs-nav-left .dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background-color: #fff; min-width: 220px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); padding: 10px 0; margin: 0; list-style: none; z-index: 1100; border-top: 2px solid #ad1e0c; }

.ncs-nav-left .dropdown:hover > .dropdown-menu { display: block; }

.ncs-nav-left .dropdown-menu li { margin: 0; border-bottom: 1px solid #dddddd; }

.ncs-nav-left .dropdown-menu li:last-child { border-bottom: none; }

.ncs-nav-left .dropdown-menu a { padding: 12px 20px; display: block; white-space: normal; }

.ncs-nav-left .dropdown-menu a:hover { background-color: #fff; color: #ad1e0c; }


.ncs-nav-left .dropdown-menu .dropdown { position: relative; }

.ncs-nav-left .dropdown-menu .dropdown-menu { top: 0; left: 100%; margin-left: 0; }

.ncs-nav-left .dropdown-toggle::after { content: '\f078'; font-family: 'Font Awesome 5 Free'; font-weight: 900; font-size: 10px; margin-left: 6px; transition: transform 0.3s ease; }

.ncs-nav-left .dropdown-menu .dropdown-toggle::after { content: '\f054'; float: right; margin-left: 10px; }

.ncs-nav-left .dropdown:hover > .dropdown-menu { visibility: visible; opacity: 1; }
.ncs-nav-left .dropdown ul { margin:0;padding:0; text-align:left; }
.ncs-nav-left .dropdown ul a       {
    color:#000;
}

.ncs-nav-right { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; flex-shrink: 0; }

.ncs-menu-toggle-lines { display: none; background: none; border: none; cursor: pointer; padding: 10px; margin-left: auto; }

.ncs-menu-toggle-lines span { display: block; width: 28px; height: 3px; background-color: #ffffff; margin: 5px 0; transition: all 0.3s ease; }

.ncs-nav-left #btn-custom-trim { padding: 9px 9px; font-size: 18px; background: #bb9b52; border: 1px solid #bb9b52; color: #fff; margin-right: 5px; width: 255px; }

.nc-footer-logo img { max-width: 350px; }

.nc-header-nav {margin-bottom:50px;}
/* =========================
           MOBILE/TABLET RESPONSIVE
           ========================= */
@media (max-width: 991px) { /* Adjust logo size for mobile */ .ncs-logo-container img { max-height: 56px; }

    /* Adjust header content for mobile */
    .ncs-header-content { padding: 10px 15px; }

    /* Hide login section on mobile */
    /*.ncs-login-section { display: none; }*/

    .ncs-menu-toggle-lines { display: block; }
    .nav-item-person {display:none;}
    .nc-footer-logo img { max-width: 100% }
    .nc-header-nav { margin-bottom: 10px; }
}
