header.main-header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 80%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 40px;
}

/* Logo Section */
.logo-section {
    display: flex;
    align-items: center;
    gap: 25px;
}

.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo {
    width: 55px;
    height: 55px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(2, 87, 126, 0.35);
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 36px;
    height: 36px;
    background-color: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444444;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.social-icon:hover {
    background: linear-gradient(135deg, #5CB3C4 0%, #4da3b3 100%);
    color: white;
    border-color: #5CB3C4;
    transform: translateY(-2px);
}

/* Navigation */
.nav-center {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 45px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links li {
    margin: 0;
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: #444444;
    font-size: 15px;
    font-weight: 500;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s ease;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links a i.fa-chevron-down {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.nav-links li.has-mega-menu:hover a i.fa-chevron-down {
    transform: rotate(180deg);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #5CB3C4, #02577E);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #02577E;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Mega Menu Styles */
.has-mega-menu {
    position: static;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 50px 0;
    margin-top: 10px;
    z-index: 999;
    border-top: 3px solid #5CB3C4;
}

.has-mega-menu:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-container {
    max-width: 80%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 0 40px;
}

.mega-menu-item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

.mega-menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(92, 179, 196, 0.25);
    border-color: #5CB3C4;
}

.mega-item-link {
    display: block;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}

.mega-item-image {
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
    position: relative;
}

.mega-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.mega-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(92, 179, 196, 0.9) 0%, rgba(2, 87, 126, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mega-menu-item:hover .mega-item-overlay {
    opacity: 1;
}

.view-all {
    color: white;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mega-menu-item:hover .mega-item-image img {
    transform: scale(1.1);
}

.mega-item-content {
    padding: 18px;
    border-bottom: 1px solid #f0f0f0;
}

.mega-item-content h4 {
    margin: 0 0 6px 0;
    font-size: 16px;
    font-weight: 600;
    color: #02577E;
    transition: color 0.3s ease;
}

.mega-menu-item:hover .mega-item-content h4 {
    color: #5CB3C4;
}

.mega-item-content .item-count {
    font-size: 13px;
    color: #6c757d;
    font-weight: 500;
}

/* Subcategories in Mega Menu */
.mega-subcategories {
    padding: 12px 18px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mega-subcat-link {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    font-size: 13px;
    color: #6c757d;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.mega-subcat-link i {
    font-size: 10px;
    margin-right: 8px;
    color: #5CB3C4;
}

.mega-subcat-link:hover {
    background: #f8f9fa;
    color: #02577E;
    padding-left: 14px;
}

.subcat-count {
    margin-left: auto;
    font-size: 11px;
    color: #5CB3C4;
    font-weight: 600;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-btn {
    background: none;
    border: none;
    color: #444444;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    text-decoration: none;
}

.icon-btn:hover {
    color: #02577E;
    background-color: #f8f9fa;
}

.icon-btn .badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: linear-gradient(135deg, #5CB3C4, #02577E);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
}

.sign-in-btn {
    background: linear-gradient(135deg, #5CB3C4 0%, #4da3b3 100%);
    color: white !important;
    border: none;
    padding: 12px 32px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(92, 179, 196, 0.3);
    letter-spacing: 0.3px;
    text-decoration: none;
    display: inline-block;
}

.sign-in-btn:hover {
    background: linear-gradient(135deg, #02577E 0%, #025f8a 100%);
    box-shadow: 0 6px 16px rgba(2, 87, 126, 0.4);
    transform: translateY(-2px);
    color: white !important;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #444444;
    padding: 8px;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.mobile-menu-btn:hover {
    color: #02577E;
    background-color: #f8f9fa;
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    overflow-y: auto;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e9ecef;
}

.mobile-nav-header h3 {
    color: #02577E;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.close-menu {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #444444;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.close-menu:hover {
    background-color: #f8f9fa;
    color: #02577E;
}

.mobile-nav-content {
    padding: 30px 25px;
}

.mobile-nav-links {
    list-style: none;
    margin: 0 0 30px 0;
    padding: 0;
}

.mobile-nav-links > li {
    margin-bottom: 5px;
}

.mobile-nav-links a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #444444;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-nav-links a i {
    margin-right: 15px;
    color: #5CB3C4;
    font-size: 18px;
    width: 24px;
}

.mobile-nav-links a:hover {
    background-color: #f8f9fa;
    color: #02577E;
    padding-left: 25px;
}

/* Mobile Dropdown */
.has-dropdown > .dropdown-toggle {
    position: relative;
    justify-content: space-between;
}

.dropdown-arrow {
    margin-left: auto;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.has-dropdown.active > .dropdown-toggle .dropdown-arrow {
    transform: rotate(180deg);
}

.mobile-dropdown {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.has-dropdown.active .mobile-dropdown {
    max-height: 2000px;
}

.mobile-dropdown > li {
    margin: 0;
    position: relative;
}

.mobile-dropdown > li.has-submenu {
    display: flex;
    flex-direction: column;
}

.mobile-dropdown > li.has-submenu > a {
    flex: 1;
}

.mobile-dropdown a {
    padding: 12px 20px 12px 60px;
    font-size: 14px;
    color: #6c757d;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-dropdown > li.has-submenu > a {
    padding-right: 50px;
}

.mobile-dropdown a:hover {
    color: #02577E;
    background-color: #f8f9fa;
}

.cat-count {
    font-size: 12px;
    color: #5CB3C4;
    font-weight: 600;
}

/* Submenu Toggle Button */
.submenu-toggle {
    position: absolute;
    right: 20px;
    top: 8px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #6c757d;
    font-size: 12px;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.submenu-toggle:hover {
    background: #f8f9fa;
    color: #5CB3C4;
}

.submenu-toggle i {
    transition: transform 0.3s ease;
}

.has-submenu.submenu-open .submenu-toggle i {
    transform: rotate(180deg);
}

/* Mobile Submenu */
.mobile-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f8f9fa;
}

.has-submenu.submenu-open .mobile-submenu {
    max-height: 1000px;
}

.mobile-submenu li {
    margin: 0;
}

.mobile-submenu a {
    padding: 10px 20px 10px 80px;
    font-size: 13px;
    color: #6c757d;
    border-left: 2px solid #5CB3C4;
    margin-left: 60px;
}

.mobile-submenu a:hover {
    color: #02577E;
    background-color: white;
    padding-left: 85px;
}

.mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.mobile-actions .sign-in-btn {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    text-align: center;
}

.mobile-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.mobile-social .social-icon {
    flex: 1;
    height: 45px;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0,0,0,0.6);
    z-index: 1000;
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Desktop-only class */
.desktop-only {
    display: flex;
}

/* Tablet Responsive */
@media (max-width: 992px) {
    .header-container {
        padding: 15px 25px;
    }

    .nav-links {
        gap: 30px;
    }

    .nav-links a {
        font-size: 14px;
    }

    .mega-menu-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        padding: 0 25px;
    }
    
    .mega-item-image {
        height: 140px;
    }
}

@media (max-width: 850px) {
    .mega-menu-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    
    .nav-center {
        display: none;
    }

    .mobile-menu-btn {
        display: flex !important;
    }

    .header-actions {
        gap: 10px;
    }

    .header-actions .sign-in-btn {
        display: none;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .header-container {
        padding: 12px 20px;
        max-width: 100%;
    }

    .logo {
        width: 48px;
        height: 48px;
    }

    .mobile-nav {
        width: 85%;
        max-width: 300px;
    }
    
    .icon-btn {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    
    .mobile-menu-btn {
        width: 36px;
        height: 36px;
        font-size: 22px;
    }
}

/* Simple Dropdown Menu */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    padding: 15px 0;
    margin-top: 10px;
    min-width: 220px;
    border-radius: 8px;
    list-style: none;
    z-index: 999;
    border-top: 3px solid #5CB3C4;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu > li {
    margin: 0;
    position: relative;
}

.dropdown-menu > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    color: #444444;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    text-align: left; /* Added */
}

.dropdown-menu > li > a:hover {
    background: #f8f9fa;
    color: #02577E;
    padding-left: 25px;
}

.dropdown-menu > li > a::after {
    display: none;
}

/* Submenu Styles */
.has-submenu > a::before {
    content: '\f054';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 10px;
    margin-left: auto;
    color: #5CB3C4;
    padding-left: 10px;
}

.submenu {
    position: absolute;
    top: 0;
    left: 100%;
    background: white;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    padding: 15px 0;
    min-width: 200px;
    border-radius: 8px;
    list-style: none;
    border-top: 3px solid #5CB3C4;
}

.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.submenu li {
    margin: 0;
}

.submenu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    color: #6c757d;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
    text-align: left; /* Added */
}

.submenu a i {
    font-size: 10px;
    color: #5CB3C4;
    flex-shrink: 0; /* Added - prevents icon from shrinking */
}

.submenu a:hover {
    background: #f8f9fa;
    color: #02577E;
    padding-left: 25px;
}

.submenu a::after {
    display: none;
}

.cat-count,
.subcat-count {
    font-size: 11px;
    color: #5CB3C4;
    font-weight: 600;
    margin-left: auto;
    flex-shrink: 0; /* Added - prevents count from shrinking */
}