/* =====================================
   CLEAN COMPACT NAVBAR (FINAL – gap-3)
===================================== */

.clean-navbar {
    background: #ffffff;
    padding: 10px 0;
    transition: box-shadow 0.3s ease;
    z-index: 1050;
}

/* Logo */
.clean-navbar .navbar-logo {
    height: 72px;
    width: auto;
    transition: height 0.3s ease;
}

/* Links */
.clean-navbar .nav-link {
    font-weight: 600;
    color: #333;
    padding: 6px 10px;
}

.clean-navbar .nav-link:hover {
    color: #0d6efd;
}

/* Shrink on scroll */
.clean-navbar.scrolled {
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.clean-navbar.scrolled .navbar-logo {
    height: 50px;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 992px) {
    .clean-navbar {
        padding: 8px 0;
    }

    .clean-navbar .navbar-logo {
        height: 56px;
    }

    .clean-navbar.scrolled .navbar-logo {
        height: 46px;
    }

    .clean-navbar .nav-link {
        padding: 6px 0;
    }
}

/* ==========================================
   3 COLUMN MEGA MENU
========================================== */

.mega-wrapper {
    position: relative;
}

/* FULL WIDTH PANEL */
.mega-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100vw;

    background: #fff;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);

    transition: all 0.25s ease;
    z-index: 999;
}

.mega-wrapper:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* CONTAINER */
.mega-container {
    max-width: 1400px;
    margin: auto;
    padding: 25px 40px;
}

/* 3 COLUMN LAYOUT */
.mega-3col {
    display: flex;
    height: 450px;
}

/* COMMON COLUMN */
.mega-col {
    overflow-y: auto;
}

/* CATEGORY */
.mega-category {
    width: 240px;
    background: #fafafa;
    border-right: 1px solid #eee;
}

.mega-cat {
    padding: 14px 18px;
    cursor: pointer;
    font-size: 14px;
}

.mega-cat.active,
.mega-cat:hover {
    background: #e9f4ff;
    color: #189af0;
    font-weight: 600;
}

/* SUBCATEGORY */
.mega-subcategory {
    width: 260px;
    border-right: 1px solid #eee;
}

.mega-sub-list {
    display: none;
}

.mega-sub-list.active {
    display: block;
}

.mega-subcat {
    padding: 14px 18px;
    cursor: pointer;
}

.mega-subcat.active,
.mega-subcat:hover {
    background: #f4f8fc;
    color: #189af0;
}

/* PRODUCTS */
.mega-products {
    flex: 1;
    padding: 20px;
}

.mega-product-pane {
    display: none;
}

.mega-product-pane.active {
    display: block;
}

/* GRID */
.mega-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

/* CARD */
.mega-card {
    text-align: center;
    padding: 10px;
    border-radius: 10px;
    text-decoration: none;
    color: #0b2a4a;
    transition: all 0.3s ease;
}

.mega-card img {
    width: 200px;
    height: 240px;
    object-fit: contain;
    margin: auto;
}

.mega-card span {
    font-size: 13px;
    display: block;
    margin-top: 6px;
}

.mega-card:hover {
    background: #f4f8fc;
    transform: translateY(-4px);
}








/* ==========================================
PRODUCT DROPDOWN new navbar after 
========================================== */

.product-dropdown {
    position: relative;
}

/* PANEL */
.product-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 300px;

    background: #ffffff;
    border-radius: 18px;
    padding: 12px;

    box-shadow: 0 20px 50px rgba(0,0,0,0.12);

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);

    transition: all 0.25s ease;
    z-index: 999;
}

/* SHOW */
.product-dropdown:hover .product-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Also support tap/click activation on touch browsers. */
.product-dropdown.open .product-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ITEM */
.product-dropdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 14px 18px;
    border-radius: 14px;

    text-decoration: none;
    color: #0b2a4a;
    font-size: 15px;
    font-weight: 500;

    transition: all 0.3s ease;
}

/* HOVER */
.product-dropdown-item:hover {
    background: #f4f8fc;
    color: #1091ae;
    transform: translateX(5px);
}

/* ICON */
.product-dropdown-item i {
    font-size: 12px;
    opacity: 0.6;
}

/* MOBILE */
@media(max-width:991px){

    .clean-navbar .container {
        position: relative;
    }

    .clean-navbar .navbar-toggler {
        border: 0;
        padding: 6px 8px;
        box-shadow: none;
    }

    .clean-navbar .navbar-collapse {
        margin-top: 8px;
        padding: 8px 0 12px;
        background: #fff;
        border-top: 1px solid #edf1f5;
        max-height: calc(100vh - 88px);
        overflow-y: auto;
    }

    .clean-navbar .navbar-nav {
        width: 100%;
        align-items: stretch !important;
        gap: 0 !important;
    }

    .clean-navbar .nav-item {
        width: 100%;
        border-bottom: 1px solid #f0f2f5;
    }

    .clean-navbar .nav-link {
        display: block;
        width: 100%;
        padding: 12px 4px;
    }

    .clean-navbar .nav-item:last-child {
        border-bottom: 0;
        padding-top: 10px;
    }

    .clean-navbar .nav-item:last-child .btn {
        margin-left: 0 !important;
        width: 100%;
    }

    .product-dropdown-menu {
        width: 100%;
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
    }

    .product-dropdown.open .product-dropdown-menu {
        display: block;
    }

    .product-trigger {
        touch-action: manipulation;
    }

    .product-dropdown-item {
        padding: 11px 12px;
        border-radius: 8px;
        font-size: 14px;
    }
}
