/* MOBILE MENU TOGGLE */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    z-index: 1001;
    width: 44px;
    height: 44px;
    border: none;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    color: black;
    font-size: 22px;
    box-shadow: none;
    background: transparent;
    padding-top: 13px;
    padding-left: 30px;
}

.mobile-menu-toggle:hover {
    background: transparent;
    box-shadow: none;
    color: black;
}

.mobile-menu-toggle:focus {
    outline: none;
    box-shadow: none;
}

.mobile-menu-toggle::after {
    box-shadow: none;
    background: transparent;
    color: black;
}

.menu-icon, .close-icon {
    position: absolute;
    transition: opacity 0.3s ease, transform 0.3s ease;
    background: transparent;
    color: black;
}

.menu-icon {
    opacity: 1;
    transform: scale(1);
}

.close-icon {
    opacity: 0;
    transform: scale(0.5);
    background: transparent;
    color: black;
}

body.menu-open .menu-icon {
    opacity: 0;
    transform: scale(0.5);
}

body.menu-open .close-icon {
    opacity: 1;
    transform: scale(1);
}

/* MOBILE OVERLAY */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    z-index: 998;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

body.menu-open .mobile-menu-overlay {
    opacity: 1;
    visibility: visible;
}

/* MAIN NAVBAR - DESKTOP */
.navbar {
    position: relative;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    height: 70px;
    display: flex;
    align-items: center;
    padding: 0 40px;
    margin: auto;
    justify-content: center;
}

/* NAV MENU */
.nav-menu {
    list-style: none;
    display: flex;
    height: 100%;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: static;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-item > .menu-text {
    display: block;
    padding: 0 20px;
    text-decoration: none;
    font-weight: 600;
    color: #111;
    font-size: 16px;
    height: 100%;
    display: flex;
    align-items: center;
    white-space: nowrap;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
    text-transform: uppercase;
}

.nav-item > .menu-text:hover {
    color: #1aada3;
}

.nav-item.has-panel:hover > .menu-text {
    border-bottom-color: #1aada3;
    background: #fafafa;
}

/* Arrow indicator for items with submenu */
.nav-item.has-panel > .menu-text {
    position: relative;
    padding-right: 32px;
}

.nav-item.has-panel > .menu-text::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-right: 2px solid #111;
    border-bottom: 2px solid #111;
    transform: translateY(-50%) rotate(45deg);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.nav-item.has-panel:hover > .menu-text::after,
.nav-item.active > a::after {
    transform: translateY(-50%) rotate(-135deg);
    border-color: #1aada3;
}

/* MEGA PANEL */
.wc-panel {
    position: absolute;
    left: 50%;
    top: 100%;
    width: 1100px;
    max-width: calc(100vw - 48px);
    background: #fff;
    display: flex;
    padding: 0;
    border-top: 1px solid #e5e5e5;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 9999;
    min-height: 480px;
    max-height: calc(100vh - 70px);
    overflow: hidden;
}

.nav-item.active > .wc-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* LEFT TABS (LEVEL 2) */
.wc-tabs {
    width: 260px;
    background: #fafafa;
    padding: 24px 0;
    border-right: 1px solid #e5e5e5;
    overflow-y: auto;
    flex-shrink: 0;
}

.wc-tabs li {
    padding: 14px 28px;
    cursor: pointer;
    font-weight: 600;
    color: #555;
    font-size: 15px;
    position: relative;
    transition: all 0.15s ease;
    border-left: 3px solid transparent;
    line-height: 1.3;
    list-style: none;
    text-align: left;
}

.wc-tabs li:hover {
    background: #fff;
    color: #111;
}

.wc-tabs li.active {
    background: #fff;
    color: #111;
    border-left-color: #1aada3;
}

/* RIGHT CONTENT AREA */
.wc-content {
    flex: 1;
    padding: 40px 56px;
    background: #fff;
    overflow-y: auto;
}

/* SECTION HEADER */
.wc-section-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    text-align: left;
}

.wc-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #111;
    letter-spacing: -0.3px;
    text-align: left;
}

.see-all-link {
    font-size: 15px;
    color: blue;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.see-all-link:hover {
    color: #004999;
    text-decoration: underline;
}

/* MASONRY GRID - 3 COLUMNS */
.wc-masonry {
    column-count: 3;
    column-gap: 56px;
    column-fill: balance;
    text-align: left;
}

.wc-masonry > div {
    break-inside: avoid;
    page-break-inside: avoid;
    margin-bottom: 36px;
}

.wc-masonry h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 14px;
    color: #111;
    letter-spacing: 0.3px;
    line-height: 1.3;
}

.wc-masonry h4 a {
    color: #111;
    text-decoration: none;
    transition: color 0.15s ease;
}

.wc-masonry h4 a:hover {
    color: #1aada3;
}

.wc-masonry ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wc-masonry li {
    padding: 7px 0;
    font-size: 15px;
    color: #444;
    cursor: pointer;
    line-height: 1.5;
    transition: color 0.15s ease;
}

.wc-masonry li a {
    color: #444;
    text-decoration: none;
    transition: color 0.15s ease;
}

.wc-masonry li:hover,
.wc-masonry li:hover a {
    color: #1aada3;
}

/* TAB VISIBILITY */
.wc-tab-content {
    display: none;
    animation: fadeIn 0.25s ease;
}

.wc-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { 
        opacity: 0;
        transform: translateY(5px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVE STYLES */
@media (max-width: 1400px) {
    .wc-masonry {
        column-gap: 40px;
    }
    
    .wc-content {
        padding: 32px 40px;
    }
}

@media (max-width: 1200px) {
    .wc-masonry {
        column-count: 2;
        column-gap: 48px;
    }
    
    .navbar {
        padding: 0 24px;
    }
}

@media (max-width: 900px) {
    .nav-menu {
        overflow-x: auto;
        overflow-y: hidden;
        gap: 4px;
    }
    
    .nav-item > a {
        padding: 0 12px;
        font-size: 14px;
    }
    
    .wc-tabs {
        width: 220px;
    }
    
    .wc-masonry {
        column-count: 1;
    }
}

@media (max-width: 1130px) {
    /* Push navigation below fixed top header */
    header.main-header .navigation-wrap {
        margin-top: 95px; /* match wrapp-header height */
    }
}

/* ===========================================
   MOBILE STYLES (1024px and below)
=========================================== */

@media (max-width: 1130px) {
    /* Show mobile toggle button */
    .mobile-menu-toggle {
        display: flex !important;
        position: fixed;
        top: 29px;
        right: 5px;
        z-index: 1200;
        font-size: 20px;
        color: black;
        border: none;
        cursor: pointer;
        align-items: center;
        justify-content: center;
        height: 40px;
        width: 40px;
        transition: all 0.3s ease;
    }

    .mobile-menu-toggle:hover {
        transform: scale(1.05);
    }

    /* Hide desktop navbar on mobile */
    .navbar {
        display: none !important;
    }

    /* Blur background when menu is open */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 1149;
        pointer-events: none;
        transition: all 0.35s ease;
    }

    /* Mobile navigation container - shown when toggled */
    .mobile-nav.custom-mobile-nav {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 260px;
        height: 100vh;
        background: #111;
        transform: translateX(-100%);
        transition: transform .35s ease;
        z-index: 1150;
        padding: 0;
        overflow-y: auto;
        overflow-x: hidden;
        flex-direction: column;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
    }

    /* Show navbar when menu is open */
    body.menu-open .mobile-nav.custom-mobile-nav {
        transform: translateX(0);
    }

    /* Mobile menu close button */
    .mobile-menu-close {
        display: block;
        position: sticky;
        top: 0;
        color: black;
        border: none;
        padding: 10px 14px;
        font-size: 15px;
        text-align: left;
        width: 100%;
        cursor: pointer;
        border-bottom: 1px solid rgba(255,255,255,.2);
        z-index: 100;
        font-weight: 600;
        transition: all 0.2s ease;
    }

    .mobile-menu-close:hover {
        background: #14978e;
    }

    /* Mobile category menu list */
    .mobile-category-menu {
        list-style: none;
        padding: 0;
        margin: 0;
        flex: 1;
        overflow-y: auto;
    }

    /* ===========================
       LEVEL 1 - PARENT CATEGORIES
    =========================== */
    .mobile-parent {
        border-bottom: 1px solid rgba(26, 173, 163, 0.15);
    }

    .mobile-parent-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 12px;
        background: transparent;
        transition: all 0.2s ease;
        cursor: pointer;
    }

    .mobile-parent-row:hover {
        background: rgba(26, 173, 163, 0.08);
    }

    .mobile-parent-row a {
        color: white;
        text-decoration: none;
        font-weight: 600;
        font-size: 13px;
        flex: 1;
        transition: color 0.2s ease;
    }

    .mobile-parent-row:hover a {
        color: #1aada3;
    }

    /* Toggle button for Level 1 - CHANGED TO CARET (^) */
    .mobile-toggle {
    color: white;
    font-size: 12px;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 4px;
    font-weight: normal;
    border-radius: 2px;
    padding: 1px;
    /* position: relative; REMOVE THIS if using flexbox approach */
    background: none;
}

.mobile-toggle::before {
    content: '';
    width: 8px;
    height: 8px;
    border-left: 2px solid currentColor;
    border-top: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    display: inline-block; /* Changed from absolute positioning */
}

.mobile-parent.open .mobile-toggle::before {
    transform: rotate(225deg);
}

.mobile-parent.open .mobile-toggle::after {
    color: #1aada3;
}

.mobile-parent.open .mobile-toggle {
    background: none;
}

    /* ===========================
       LEVEL 2 - CHILD CATEGORIES
    =========================== */
    .mobile-submenu {
        display: none;
        list-style: none;
        padding: 0;
        margin: 0;
        background: rgba(0,0,0,.2);
    }

    .mobile-parent.open .mobile-submenu {
        display: block;
    }

    .mobile-child {
        border-bottom: 1px solid rgba(26, 173, 163, 0.08);
    }

    .mobile-child:last-child {
        border-bottom: none;
    }

    .mobile-child-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 6px 12px 6px 20px;
        background: transparent;
        transition: all 0.2s ease;
        cursor: pointer;
    }

    .mobile-child-row:hover {
        background: rgba(26, 173, 163, 0.06);
    }

    .mobile-child-row a {
        color: #e0e0e0;
        text-decoration: none;
        font-size: 12px;
        font-weight: 400;
        flex: 1;
        transition: all 0.2s ease;
    }

    .mobile-child-row:hover a {
        color: #1aada3;
        transform: translateX(3px);
    }

    /* Toggle button for Level 2 - CHANGED TO CARET (^) */
    /* Toggle button for Level 2 - CHANGED TO CARET (^) */
.mobile-child-toggle {
    color: white;
    font-size: 12px;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 4px;
    font-weight: normal;
    background: none;
    border-radius: 2px;
    padding: 1px;
    position: relative;
}

.mobile-child-toggle::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-left: 2px solid currentColor;
    border-top: 2px solid currentColor;
    transform: translateY(-50%) rotate(45deg);
    transition: transform 0.3s ease;
    font-weight: bold;
}

/* FIXED SELECTOR: Use .mobile-child.open instead of .mobile-parent.open */
.mobile-child.open .mobile-child-toggle::before {
    transform: translateY(-50%) rotate(225deg);
}

/* Also update the background change */
.mobile-child.open .mobile-child-toggle {
    background: none;
}

    /* ===========================
       LEVEL 3 - GRANDCHILD CATEGORIES
    =========================== */
    .mobile-grandmenu {
        display: none;
        list-style: none;
        padding: 0;
        margin: 0;
        background: rgba(0,0,0,.3);
        border-left: 2px solid #1aada3;
    }

    .mobile-child.open .mobile-grandmenu {
        display: block;
    }

    .mobile-grandchild {
        border-bottom: 1px solid rgba(26, 173, 163, 0.06);
    }

    .mobile-grandchild:last-child {
        border-bottom: none;
    }

    .mobile-grandchild-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 5px 12px 5px 28px;
        background: transparent;
        transition: all 0.2s ease;
        cursor: pointer;
    }

    .mobile-grandchild-row:hover a {
        color: #1aada3;
        transform: translateX(3px);
    }

    .mobile-grandchild-row a {
        color: #e0e0e0;
        text-decoration: none;
        font-size: 12px;
        font-weight: 400;
        flex: 1;
        transition: all 0.2s ease;
    }

    /* Toggle button for Level 3 - CHANGED TO CARET (^) */
    /* Toggle button for Level 3 - CHANGED TO CARET (^) */
.mobile-grandchild-toggle {
    color: white;
    font-size: 10px;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 3px;
    font-weight: normal;
    background: none;
    border-radius: 2px;
    padding: 1px;
    position: relative;
}

/* Style for the grandchild chevron */
.mobile-grandchild-toggle::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px; 
    height: 8px; 
    border-left: 2px solid currentColor; 
    border-top: 2px solid currentColor; 
    transform: translate(-50%, -50%) rotate(45deg);
    transition: transform 0.3s ease;
}

/* Rotate when grandchild is open */
.mobile-grandchild.open .mobile-grandchild-toggle::before {
    transform: translate(-50%, -50%) rotate(225deg);
}

/* Background change when open */
.mobile-grandchild.open .mobile-grandchild-toggle {
    background: none;
}

    /* ===========================
       LEVEL 4 - GREAT GRANDCHILD CATEGORIES
    =========================== */
    .mobile-great-grandmenu {
        display: none;
        list-style: none;
        padding: 0;
        margin: 0;
        background: rgba(0,0,0,.4);
        border-left: 2px solid rgba(26, 173, 163, 0.5);
    }

    .mobile-grandchild.open .mobile-great-grandmenu {
        display: block;
    }

    .mobile-great-grandchild {
        border-bottom: 1px solid rgba(26, 173, 163, 0.04);
    }

    .mobile-great-grandchild:last-child {
        border-bottom: none;
    }

    .mobile-great-grandchild a {
        display: block;
        padding: 4px 12px 4px 36px;
        color: #ffffff;
        text-decoration: none;
        font-size: 10px;
        font-weight: 400;
        transition: all 0.2s ease;
        background-color: #000000;
        border-radius: 0;
    }

    .mobile-great-grandchild a:hover {
        background: rgba(26, 173, 163, 0.2);
        color: #ffffff;
        padding-left: 38px;
    }

    /* Custom scrollbar styling with #1aada3 theme */
    .mobile-nav.custom-mobile-nav::-webkit-scrollbar {
        width: 4px;
    }
    
    .mobile-nav.custom-mobile-nav::-webkit-scrollbar-track {
        background: rgba(26, 173, 163, 0.1);
    }
    
    .mobile-nav.custom-mobile-nav::-webkit-scrollbar-thumb {
        background: #1aada3;
        border-radius: 2px;
    }
    
    .mobile-nav.custom-mobile-nav::-webkit-scrollbar-thumb:hover {
        background: #14978e;
    }
    
    .mobile-nav.custom-mobile-nav {
        scrollbar-width: thin;
        scrollbar-color: #1aada3 rgba(26, 173, 163, 0.1);
    }

    /* Hide all desktop mega menu components on mobile */
    .wc-panel,
    .wc-tabs,
    .wc-content,
    .wc-tab-content,
    .wc-masonry,
    .wc-section-header,
    .wc-section-title,
    .see-all-link {
        display: none !important;
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
}

/* ===========================================
   SMALLER MOBILE SCREENS (480px and below)
=========================================== */
@media (max-width: 480px) {
    .mobile-nav.custom-mobile-nav {
        width: 240px;
    }
    
    .mobile-menu-toggle {
        top: 10px;
        right: 10px;
        height: 36px;
        width: 36px;
    }
    
    .mobile-parent-row {
        padding: 6px 10px;
    }
    
    .mobile-parent-row a {
        font-size: 12px;
    }
    
    .mobile-child-row {
        padding: 5px 10px 5px 16px;
    }
    
    .mobile-child-row a {
        font-size: 11px;
    }
    
    .mobile-grandchild-row {
        padding: 4px 10px 4px 24px;
    }
    
    .mobile-grandchild-row a {
        font-size: 11px;
    }
    
    .mobile-great-grandchild a {
        padding: 3px 10px 3px 30px;
        font-size: 9px;
    }
}

/* ===========================================
   DESKTOP HOVER FUNCTIONALITY
=========================================== */
@media (min-width: 1130px) {
    .navbar,
    .nav-menu {
        overflow: visible !important;
    }

    .nav-item.has-panel:hover > .wc-panel,
    .nav-item.has-panel.active > .wc-panel {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(-50%) translateY(0);
    }

    header.main-header .navigation-wrap {
        margin-top: 95px; /* match wrapp-header height */
    }

    .header-base .main-nav {
        padding-top: 20px;
    }
}

/* ===========================================
   GENERAL SCROLLBAR STYLES
=========================================== */
.navbar::-webkit-scrollbar,
.nav-menu::-webkit-scrollbar {
    width: 4px;
}

.navbar::-webkit-scrollbar-track,
.nav-menu::-webkit-scrollbar-track {
    background: rgba(26, 173, 163, 0.1);
}

.navbar::-webkit-scrollbar-thumb,
.nav-menu::-webkit-scrollbar-thumb {
    background: #1aada3;
    border-radius: 2px;
}

.navbar::-webkit-scrollbar-thumb:hover,
.nav-menu::-webkit-scrollbar-thumb:hover {
    background: #14978e;
}

.navbar,
.nav-menu {
    scrollbar-width: thin;
    scrollbar-color: #1aada3 rgba(26, 173, 163, 0.1);
}

/* ===============================
   FIX ONLY TOP HEADER ROW
================================ */

header.main-header .wrapp-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: #ffffff;
}

.site-logo {
    padding-left: 5%;
}