/* ==========================================================================
    (General & Desktop)
   ========================================================================== */

.navbar-gradient {
    background: linear-gradient(45deg, #111, #333);
}



@media (min-width: 992px) {
   
    .navbar .nav-item.dropdown:hover > .dropdown-menu {
        display: block !important;
        margin-top: 0; 
    }

    .navbar-nav .dropdown-menu-end {
        right: 0 !important;
        left: auto !important;
        position: absolute !important;
    }


    body {
        overflow-x: hidden;
    }
}




/* ==========================================================================
   2. moblile top nav (Category Scroll)
   ========================================================================== */

.mobile-top-navbar {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* categori scroll in one line */
.category-scroll {
    display: flex;
    flex-wrap: nowrap;       
    overflow-x: auto;        
    white-space: nowrap;
    padding: 10px 15px;
    gap: 20px;
    border-bottom: 1px solid #f8f8f8;
    -webkit-overflow-scrolling: touch; 
}

/*  */
.category-scroll::-webkit-scrollbar {
    display: none;
}

.category-item {
    flex: 0 0 auto;         
    font-weight: 500;
    color: #666;
    cursor: pointer;
    padding-bottom: 8px;
    font-size: 14px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}


.category-item.active {
    color: #000;
    font-weight: 700;
    border-bottom: 2px solid #000;
}

/* ==========================================================================
   (Submenu Circle)
   ========================================================================== */

.submenu-container {
    padding: 15px 10px;
    background: #fff;
}

.submenu-content {
    display: none; 
}


.submenu-content.active {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 5px;
}

.submenu-content::-webkit-scrollbar {
    display: none;
}

.circle-item {
    text-align: center;
    text-decoration: none;
    color: #333;
    flex: 0 0 auto;
    width: 70px;
}

.circle-item img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f0f0f0;
    margin-bottom: 5px;
    background: #f9f9f9;
}

.circle-item span {
    display: block;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
}

/* ==========================================================================
   mobile  (Bottom Navigation)
   ========================================================================== */

.mobile-bottom-navbar {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #fff;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    border-top: 1px solid #eee;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.mobile-bottom-navbar a {
    text-align: center;
    text-decoration: none;
    color: #666;
    font-size: 11px;
    flex: 1;
    position: relative;
}

.mobile-bottom-navbar a div {
    font-size: 20px;
    margin-bottom: 2px;
}

/* cart badge */
.cart-badge {
    position: absolute;
    top: -5px;
    right: 20%;
    background: #ff3b30;
    color: #fff;
    font-size: 10px;
    min-width: 16px;
    height: 16px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid #fff;
    padding: 0 4px;
}