/* =========================================================
   NAV ICON BUTTON
========================================================= */
.nav-icon-btn{
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display:flex;
    align-items:center;
    justify-content:center;
    background: rgba(2,6,23,.03);
    transition: all .18s ease;
}
.nav-icon-btn:hover{
    background: rgba(37,99,235,.10);
    transform: translateY(-1px);
}

/* cart badge */
.nav-cart-badge{
    position:absolute;
    top: -4px;
    right: -6px;
    font-size: 11px;
    padding: 4px 7px;
    border-radius: 999px;
}

/* =========================================================
   CUSTOMER DROPDOWN PRO 2026
========================================================= */
.customer-dd-menu{
    min-width: 310px;
    padding: 14px;
    border-radius: 26px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(20px);
    box-shadow: 0 25px 80px rgba(2,6,23,.22);
    overflow:hidden;

    margin-top: 14px !important;
    right: 14px !important;
    left:auto !important;

    transform: translateY(14px) scale(.98);
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition: all .22s cubic-bezier(.2,.7,.25,1);
}
.customer-dropdown.show .customer-dd-menu,
.customer-dd-menu.show{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    transform: translateY(0) scale(1);
}

/* ✅ caret triangle */
.customer-dd-menu::before{
    content:"";
    position:absolute;
    top:-8px;
    right: 28px;
    width: 16px;
    height: 16px;
    background: rgba(255,255,255,.92);
    transform: rotate(45deg);
    border-left: 1px solid rgba(2,6,23,.06);
    border-top: 1px solid rgba(2,6,23,.06);
}

/* header */
.dd-header{
    display:flex;
    gap:12px;
    align-items:center;
    padding:14px;
    border-radius:20px;
    background: linear-gradient(135deg, rgba(37,99,235,.12), rgba(255,210,0,.14));
}
.dd-avatar{
    width:48px;
    height:48px;
    border-radius:18px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:900;
    font-size:18px;
    color:#fff;
    background: linear-gradient(135deg,#2563eb,#1d4ed8);
    box-shadow:0 12px 30px rgba(37,99,235,.25);
}
.dd-name{
    font-weight:900;
    font-size:15px;
    color:#0f172a;
}
.dd-email{
    font-size:12px;
    font-weight:700;
    color:rgba(15,23,42,.55);
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.dd-divider{
    height:1px;
    background: rgba(2,6,23,.08);
    margin:12px 0;
}

/* item menu */
.dd-item{
    display:flex;
    align-items:center;
    gap:12px;
    padding:12px 14px;
    border-radius:18px;
    font-weight:850;
    font-size:14px;
    color:rgba(15,23,42,.82);
    transition: all .16s ease;
}
.dd-item i{
    width:22px;
    text-align:center;
    opacity:.85;
}
.dd-item:hover{
    background: rgba(37,99,235,.10);
    color:#1d4ed8;
    transform: translateX(2px);
}

/* logout */
.dd-logout{
    width:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    border:0;
    padding:12px 14px;
    border-radius:18px;
    font-weight:900;
    font-size:14px;
    cursor:pointer;
    background: rgba(239,68,68,.10);
    color:#dc2626;
    transition:.16s ease;
}
.dd-logout:hover{
    background: rgba(239,68,68,.15);
    transform: translateY(-1px);
}

/* mobile */
@media(max-width:480px){
    .customer-dd-menu{
        min-width:92vw;
        right: 8px !important;
        left: 8px !important;
    }
}

/* =========================================================
   MEGA MENU PREMIUM POLISH
========================================================= */
.mega-menu{
    border-radius: 24px;
    padding: 20px;
    border: 1px solid rgba(2,6,23,.08);
    box-shadow: 0 25px 80px rgba(2,6,23,.18);
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(12px);
}
.mega-title{
    font-weight:900;
    font-size:13px;
    margin-bottom:10px;
}
.mega-list{
    list-style:none;
    padding:0;
    margin:0;
    display:grid;
    gap:8px;
}
.mega-list a{
    font-weight:750;
    font-size:13px;
    color:rgba(15,23,42,.75);
    transition:.15s ease;
}
.mega-list a:hover{
    color:#1d4ed8;
}
.mega-cta{
    padding:18px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(37,99,235,.10), rgba(255,210,0,.16));
}

/* =========================================================
   MEGA MENU FIX: prevent scroll lock & allow overlay
========================================================= */
.navbar,
.navbar .container,
.navbar .navbar-collapse{
    overflow: visible !important;
}

/* Hover show mega menu on desktop */
@media (min-width: 992px){
    .mega-dropdown:hover > .dropdown-menu{
        display:block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .mega-dropdown > .dropdown-menu{
        display:block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: .2s ease;
        pointer-events: none;
    }

    .mega-dropdown:hover > .dropdown-menu{
        pointer-events: auto;
    }
}

/* =========================================================
   TRUSTONECARE CHAT
========================================================= */

.tc-float-wrap{
    position: fixed;
    right: 22px;
    bottom: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999999;
}

/* Scroll Top */
.tc-scroll-top{
    width: 56px;
    height: 56px;
    border-radius: 999px;
    border: none;
    background: #111;
    color: #fff;
    box-shadow: 0 18px 50px rgba(0,0,0,.18);
    cursor: pointer;
    display: none;
    align-items:center;
    justify-content:center;
    transition: .25s ease;
}
.tc-scroll-top.show{ display: inline-flex; }
.tc-scroll-top:hover{ opacity:.92; transform: translateY(-2px); }

/* Chat Bubble */
.tc-chat-bubble{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 999px;
    border: none;
    background: #111;
    color: #fff;
    box-shadow: 0 18px 50px rgba(0,0,0,.18);
    cursor: pointer;
    font-weight: 900;
    transition: .25s ease;
}
.tc-chat-bubble:hover{ opacity:.92; transform: translateY(-2px); }

.tc-chat-icon{
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display:flex;
    align-items:center;
    justify-content:center;
    background: rgba(255,255,255,.15);
}

/* Overlay */
.tc-overlay{
    position: fixed;
    inset: 0;
    background: rgba(2,6,23,.35);
    opacity: 0;
    visibility: hidden;
    transition: .25s ease;
    z-index: 999998;
}
.tc-overlay.active{
    opacity: 1;
    visibility: visible;
}

/* Drawer */
.tc-drawer{
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 380px;
    height: 560px;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 20px 80px rgba(2,6,23,.25);
    border: 1px solid rgba(2,6,23,.08);
    overflow: hidden;

    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: .25s ease;
    z-index: 999999;
    display: flex;
    flex-direction: column;
}
.tc-drawer.active{
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

/* Header */
.tc-header{
    padding: 14px 16px;
    border-bottom: 1px solid rgba(2,6,23,.08);
    display:flex;
    align-items:center;
    justify-content: space-between;
    gap: 10px;
}

.tc-back{
    border: 1px solid rgba(2,6,23,.10);
    background: #fff;
    padding: 8px 12px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
}
.tc-back:hover{ background: #f1f5f9; }

.tc-title{ text-align: center; flex: 1; }
.tc-title-main{ font-weight: 900; font-size: 14px; }
.tc-title-sub{ font-size: 12px; color: #64748b; }

.tc-close{
    border: none;
    background: transparent;
    font-size: 18px;
    cursor: pointer;
}

/* Body */
.tc-body{
    padding: 16px;
    overflow-y: auto;
    display:flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

/* message card */
.tc-msg-card{
    background: #f8fafc;
    border-radius: 18px;
    padding: 16px;
    border: 1px solid rgba(2,6,23,.06);
}
.tc-msg-card h4{
    margin: 0 0 10px;
    font-weight: 900;
}
.tc-msg-card p{
    margin: 0 0 10px;
    font-size: 13px;
    color: #334155;
    line-height: 1.5;
}
.tc-msg-card ul{
    margin: 0 0 12px;
    padding-left: 18px;
    font-size: 13px;
    color: #334155;
}
.tc-note{
    font-size: 12px !important;
    color: #64748b !important;
}

/* form */
.tc-form label{
    font-size: 12px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
    display:block;
}
.tc-form input{
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(2,6,23,.12);
    padding: 12px 14px;
    outline: none;
    font-size: 13px;
    margin-bottom: 12px;
}
.tc-form input:focus{
    border-color: rgba(37,99,235,.5);
    box-shadow: 0 0 0 4px rgba(37,99,235,.15);
}

/* button */
.tc-wa-btn{
    width: 100%;
    display:inline-flex;
    justify-content:center;
    align-items:center;
    gap: 10px;
    padding: 14px;
    border-radius: 999px;
    border: none;
    background: #111;
    color:#fff;
    font-weight: 900;
    cursor:pointer;
    transition: .25s ease;
}
.tc-wa-btn:hover{
    opacity:.92;
    transform: translateY(-2px);
}
.tc-mini{
    font-size: 11px;
    color: #64748b;
    margin-top: 10px;
    text-align:center;
}

/* Mobile */
@media(max-width: 575px){
    .tc-drawer{
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
}

/* =========================================================
   B2B PRODUCT BADGE
========================================================= */

.product-image-wrapper {
    position: relative;
}

.badge-b2b {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #2563eb;
    color: white;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 800;
    border-radius: 999px;
    z-index: 5;
    box-shadow: 0 8px 20px rgba(37,99,235,.25);
}