/* Ẩn các tab mặc định của theme */
.electro-tabs-wrapper ul.ec-tabs,
.electro-tabs-wrapper ul.nav-tabs,
.woocommerce-tabs ul.tabs,
.woocommerce-tabs ul.wc-tabs,
.wc-tabs-wrapper ul.tabs { display: none !important; }

.woocommerce-Tabs-panel, .electro-tab, .tab-pane, .wc-tab, .panel.entry-content {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    height: auto !important;
    padding-top: .2rem !important; 
    margin-bottom: 1.5rem; 
}

/* --- STICKY WRAPPER --- */
#tokoo-sticky-nav-wrapper {
    display: flex !important;
    justify-content: center !important; 
    background: transparent;
    width: 100%;
    z-index: 99999;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

#tokoo-sticky-nav-wrapper.is-floating {
    position: fixed;
    left: 0;
    right: 0;
    margin: 0;
    background: transparent !important;
    box-shadow: none;
    border: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    animation: dropDown 0.4s ease forwards;
    pointer-events: none;
}

#tokoo-sticky-nav-wrapper.is-floating .tokoo-nav-container {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid #f3f4f6;
    pointer-events: auto;
    border-radius: 0 0 16px 16px;
    padding-bottom: 5px;
}

.tokoo-nav-container {
    width: 100% !important;
    padding-left: 0 !important;   
    padding-right: 0 !important;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

/* --- NAV LIST --- */
#tokoo-sticky-nav {
    list-style: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 10px 0 !important; 
    gap: 8px; 
    flex-wrap: nowrap; 
    overflow-x: auto;  
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

#tokoo-sticky-nav::-webkit-scrollbar { display: none; }
#tokoo-sticky-nav { -ms-overflow-style: none; scrollbar-width: none; }
#tokoo-sticky-nav li { margin: 0; padding: 0; flex-shrink: 0; }

/* --- NÚT TOP --- */
#tokoo-top-btn {
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: center;
    background: #007bff; 
    color: #ffffff; 
    width: 38px;  
    height: 38px;
    padding: 0;
    margin-left: 12px;
    margin-right: 10px;
    border-radius: 50%;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3); 
    line-height: 1;
    box-sizing: border-box;
}

/* Đã sửa svg thành i cho FontAwesome */
#tokoo-top-btn i { 
    font-size: 15px; 
    margin-bottom: 2px; 
    color: #ffffff; 
    transition: color 0.25s ease; 
}

#tokoo-top-btn:hover { background: #0056b3; color: #ffffff; }
#tokoo-top-btn:hover i { color: #ffffff; }

#tokoo-top-btn span {
    display: block;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
}

/* --- CÁC TAB ITEM --- */
#tokoo-sticky-nav li a:not(#tokoo-top-btn) {
    display: flex;
    align-items: center;
    height: 38px;
    padding: 0 16px;
    background: #f3f4f6; 
    color: #4b5563;
	font-family: 'cobe-bold', sans-serif;
    font-size: 14px;
    text-decoration: none;
    border-radius: 99px; 
    transition: all 0.25s ease;
    white-space: nowrap;
    box-sizing: border-box;
}

#tokoo-sticky-nav li a:hover:not(#tokoo-top-btn) { background: #e5e7eb; color: #111827; }
#tokoo-sticky-nav li a.active:not(#tokoo-top-btn) {
    background: #ff6600; 
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.25); 
}

/* --- MOBILE TWEAKS --- */
@media (max-width: 768px) {
    #tokoo-sticky-nav-wrapper.is-floating .tokoo-nav-container { border-radius: 0; }
    #tokoo-sticky-nav { padding: 8px 0 !important; gap: 6px; }
    
    #tokoo-top-btn { 
        width: 34px;  
        height: 34px; 
        margin-left: 10px;
        margin-right: 6px; 
    }
    
    /* Đã sửa svg thành i cho Mobile */
    #tokoo-top-btn i { font-size: 14px; margin-bottom: 1px; }
    #tokoo-top-btn span { font-size: 7px; } 
    
    #tokoo-sticky-nav li a:not(#tokoo-top-btn) { 
        height: 34px;
        padding: 0 14px; 
        font-size: 13px; 
    }
    .tokoo-nav-container { padding: 0 10px !important; } 
}
