<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title><?php echo isset($pageTitle) ? $pageTitle : 'Sigma Healthcare'; ?></title>
    
    <!-- Favicon -->
    <link rel="icon" type="image/png" href="images/logo/logo2.png">
    <link rel="icon" type="image/png" sizes="32x32" href="images/logo/logo2.png">
    <link rel="icon" type="image/png" sizes="16x16" href="images/logo/logo2.png">
    <link rel="apple-touch-icon" sizes="180x180" href="images/logo/logo2.png">
    <link rel="shortcut icon" href="images/logo/logo2.png">
    
    <!-- Bootstrap CSS --><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title><?php echo isset($pageTitle) ? $pageTitle : 'Sigma Healthcare'; ?></title>
    
    <!-- Favicon -->
    <link rel="icon" type="image/png" href="images/logo/logo2.png">
    <link rel="icon" type="image/png" sizes="32x32" href="images/logo/logo2.png">
    <link rel="icon" type="image/png" sizes="16x16" href="images/logo/logo2.png">
    <link rel="apple-touch-icon" sizes="180x180" href="images/logo/logo2.png">
    <link rel="shortcut icon" href="images/logo/logo2.png">
    
    <!-- Bootstrap CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
    <!-- Google Fonts -->
    <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap" rel="stylesheet">
    
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Roboto', sans-serif;
            line-height: 1.6;
            color: #333;
        }
        
        /* Updated Header Styles - Transparent overlay on background */
        .header {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border-radius: 50px;
            margin: 20px auto;
            max-width: 1200px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }
        
        /* Special header style for home page */
        .home-header {
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(15px);
        }
        
        .navbar {
            padding: 15px 30px;
        }
        
        .navbar-brand {
            font-weight: bold;
            font-size: 24px;
            display: flex;
            align-items: center;
        }
        
        /* Logo Image Styles */
        .logo-image {
            height: 45px;
            width: auto;
            max-width: 150px;
            object-fit: contain;
            transition: transform 0.3s ease;
        }
        
        .logo-image:hover {
            transform: scale(1.05);
        }
        
        /* Fallback text styles if image doesn't load */
        .sigma-logo {
            color: #FE4600;
            font-weight: 700;
            font-size: 24px;
        }
        
        .healthcare-text {
            color: #07427D;
            font-weight: 400;
            font-size: 12px;
            display: block;
            margin-top: -5px;
            letter-spacing: 1px;
        }
        
        .logo-text-fallback {
            display: none;
        }
        
        .navbar-nav .nav-link {
            color: #333 !important;
            font-weight: 500;
            margin: 0 15px;
            text-transform: uppercase;
            font-size: 14px;
            transition: color 0.3s ease;
            position: relative;
        }
        
        .navbar-nav .nav-link:hover,
        .navbar-nav .nav-link.active {
            color: #FE4600 !important;
        }
        
        .navbar-nav .nav-link.active::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 50%;
            transform: translateX(-50%);
            width: 20px;
            height: 2px;
            background: #FE4600;
            border-radius: 1px;
        }
        
        .phone-contact {
            display: flex;
            align-items: center;
            color: #333;
            text-decoration: none;
            font-weight: 500;
            font-size: 14px;
            transition: color 0.3s ease;
        }
        
        .phone-contact:hover {
            color: #FE4600;
            text-decoration: none;
        }
        
        .phone-contact i {
            margin-right: 8px;
            color: #FE4600;
            font-size: 16px;
        }
        
        .phone-contact span {
            font-weight: 600;
        }
        
        .search-box {
            position: relative;
        }
        
        .search-input {
            border: 1px solid #ddd;
            border-radius: 20px;
            padding: 8px 40px 8px 15px;
            width: 200px;
            font-size: 14px;
            background: rgba(255, 255, 255, 0.9);
        }
        
        .search-btn {
            position: absolute;
            right: 10px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            color: #999;
            cursor: pointer;
        }
        
        .search-btn:hover {
            color: #FE4600;
        }
        
        /* Hero Section Styles - Remove old styles, will be in index.php */
        .hero-section {
            background: linear-gradient(135deg, rgba(173, 216, 230, 0.8), rgba(255, 255, 255, 0.9));
            min-height: 70vh;
            display: flex;
            align-items: center;
            position: relative;
            overflow: hidden;
        }
        
        .hero-content h1 {
            font-size: 3.5rem;
            font-weight: 700;
            color: #2c3e50;
            line-height: 1.2;
            margin-bottom: 20px;
        }
        
        .hero-content p {
            font-size: 1.1rem;
            color: #666;
            margin-bottom: 30px;
            line-height: 1.6;
        }
        
        .btn-primary-custom {
            background: #FE4600;
            border: none;
            padding: 12px 30px;
            border-radius: 25px;
            font-weight: 600;
            text-transform: uppercase;
            transition: all 0.3s ease;
            color: white;
        }
        
        .btn-primary-custom:hover {
            background: #e03d00;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(254, 70, 0, 0.3);
            color: white;
        }
        
        /* Product Section Styles */
        .section-title {
            text-align: center;
            margin-bottom: 60px;
        }
        
        .section-title h2 {
            font-size: 2.5rem;
            color: #2c3e50;
            margin-bottom: 10px;
            font-weight: 600;
        }
        
        .section-title p {
            color: #666;
            font-size: 1.1rem;
        }
        
        .product-card {
            background: white;
            border-radius: 15px;
            padding: 30px;
            text-align: center;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            transition: transform 0.3s ease;
            height: 100%;
            margin-bottom: 30px;
        }
        
        .product-card:hover {
            transform: translateY(-5px);
        }
        
        .product-card img {
            width: 80px;
            height: 80px;
            object-fit: contain;
            margin-bottom: 20px;
        }
        
        .product-card h5 {
            color: #2c3e50;
            margin-bottom: 10px;
            font-weight: 600;
        }
        
        .product-card p {
            color: #666;
            font-size: 0.9rem;
            margin-bottom: 20px;
        }
        
        .btn-secondary-custom {
            background: #FE4600;
            color: white;
            border: none;
            padding: 8px 20px;
            border-radius: 20px;
            font-size: 0.9rem;
            font-weight: 500;
            transition: all 0.3s ease;
        }
        
        .btn-secondary-custom:hover {
            background: #e03d00;
            color: white;
        }
        
        /* Blood Collection Section */
        .blood-collection-section {
            background: linear-gradient(135deg, rgba(173, 216, 230, 0.3), rgba(255, 255, 255, 0.8));
            padding: 80px 0;
            position: relative;
        }
        
        .feature-item {
            text-align: center;
            margin-bottom: 30px;
        }
        
        .feature-icon {
            width: 60px;
            height: 60px;
            background: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 15px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }
        
        .feature-icon i {
            font-size: 24px;
            color: #FE4600;
        }
        
        /* Products Grid */
        .products-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 30px;
            margin-top: 40px;
        }
        
        .product-item {
            background: white;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            transition: transform 0.3s ease;
        }
        
        .product-item:hover {
            transform: translateY(-5px);
        }
        
        .product-image {
            height: 200px;
            background-size: cover;
            background-position: center;
            position: relative;
        }
        
        .product-info {
            padding: 20px;
        }
        
        .product-price {
            color: #FE4600;
            font-size: 1.2rem;
            font-weight: 600;
            margin-bottom: 10px;
        }
        
        /* Contact Section Styles */
        .contact-info {
            background: white;
            border-radius: 15px;
            padding: 40px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            margin-bottom: 30px;
        }
        
        .contact-item {
            display: flex;
            align-items: center;
            margin-bottom: 30px;
        }
        
        .contact-icon {
            width: 60px;
            height: 60px;
            background: #FE4600;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 20px;
        }
        
        .contact-icon i {
            color: white;
            font-size: 20px;
        }
        
        .contact-form {
            background: rgba(44, 62, 80, 0.95);
            border-radius: 25px;
            padding: 50px;
            color: white;
        }
        
        .form-control-custom {
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 10px;
            padding: 12px 15px;
            color: white;
            margin-bottom: 20px;
        }
        
        .form-control-custom::placeholder {
            color: rgba(255, 255, 255, 0.7);
        }
        
        .form-control-custom:focus {
            background: rgba(255, 255, 255, 0.15);
            border-color: #FE4600;
            color: white;
            box-shadow: none;
        }
        
        /* Footer Styles */
        .footer {
            background: #2c3e50;
            color: white;
            padding: 50px 0 20px;
        }
        
        .footer h5 {
            color: #FE4600;
            margin-bottom: 20px;
            font-weight: 600;
        }
        
        .footer ul {
            list-style: none;
        }
        
        .footer ul li {
            margin-bottom: 8px;
        }
        
        .footer ul li a {
            color: #bbb;
            text-decoration: none;
            transition: color 0.3s ease;
        }
        
        .footer ul li a:hover {
            color: #FE4600;
        }
        
        .newsletter-form {
            display: flex;
            margin-top: 15px;
        }
        
        .newsletter-input {
            flex: 1;
            padding: 10px 15px;
            border: none;
            border-radius: 5px 0 0 5px;
            background: rgba(255, 255, 255, 0.1);
            color: white;
        }
        
        .newsletter-btn {
            background: #FE4600;
            border: none;
            padding: 10px 20px;
            border-radius: 0 5px 5px 0;
            color: white;
            cursor: pointer;
        }
        
        .social-icons {
            margin-top: 20px;
        }
        
        .social-icons a {
            display: inline-block;
            width: 35px;
            height: 35px;
            background: #FE4600;
            color: white;
            text-align: center;
            line-height: 35px;
            margin-right: 10px;
            border-radius: 5px;
            transition: background 0.3s ease;
        }
        
        .social-icons a:hover {
            background: #e03d00;
        }
        
        .payment-methods {
            text-align: center;
            margin-top: 20px;
        }
        
        .payment-methods img {
            height: 30px;
            margin: 0 5px;
        }
        
        /* About Page Styles */
        .about-hero {
            background: linear-gradient(135deg, rgba(173, 216, 230, 0.8), rgba(255, 255, 255, 0.9));
            padding: 100px 0;
            text-align: center;
        }
        
        .about-content {
            padding: 80px 0;
        }
        
        .about-image {
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }
        
        .vision-section {
            background: #f8f9fa;
            padding: 80px 0;
        }
        
        .mission-section {
            background: linear-gradient(45deg, #2c3e50, #FE4600);
            color: white;
            padding: 80px 0;
        }
        
        .directors-section {
            padding: 80px 0;
            text-align: center;
        }
        
        .director-card {
            background: white;
            border-radius: 15px;
            padding: 30px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            margin-bottom: 30px;
        }
        
        .director-image {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            margin: 0 auto 20px;
            background-size: cover;
            background-position: center;
        }
        
        /* Products Page Styles */
        .products-hero {
            background: linear-gradient(135deg, rgba(173, 216, 230, 0.8), rgba(255, 255, 255, 0.9));
            padding: 100px 0;
            text-align: center;
        }
        
        .filter-tabs {
            margin: 50px 0;
            text-align: center;
        }
        
        .filter-tabs .nav-link {
            background: #f8f9fa;
            color: #333;
            border: none;
            border-radius: 25px;
            padding: 10px 25px;
            margin: 0 5px;
            font-weight: 500;
        }
        
        .filter-tabs .nav-link.active {
            background: #FE4600;
            color: white;
        }
        
        .pagination-custom {
            justify-content: center;
            margin-top: 50px;
        }
        
        .pagination-custom .page-link {
            color: #333;
            border: none;
            padding: 8px 12px;
            margin: 0 2px;
            border-radius: 50%;
        }
        
        .pagination-custom .page-link:hover,
        .pagination-custom .page-item.active .page-link {
            background: #FE4600;
            color: white;
        }
        
        /* Custom Dropdown Styles - Fixed for better navigation */
        .nav-item.dropdown {
            position: relative;
        }

        .dropdown-menu {
            background: rgba(255, 255, 255, 0.98);
            border: none;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.15);
            padding: 10px 0;
            margin-top: 0px;
            backdrop-filter: blur(10px);
            min-width: 220px;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.3s ease;
        }

        .dropdown-item {
            color: #333 !important;
            font-weight: 500;
            text-transform: uppercase;
            font-size: 13px;
            padding: 10px 20px;
            transition: all 0.3s ease;
            border: none;
        }

        .dropdown-item:hover {
            background: rgba(254, 70, 0, 0.1);
            color: #FE4600 !important;
            transform: translateX(5px);
        }

        .dropdown-item.active {
            background: rgba(254, 70, 0, 0.15);
            color: #FE4600 !important;
        }

        /* Enhanced dropdown behavior - stays visible when hovering over dropdown area */
        .nav-item.dropdown:hover .dropdown-menu,
        .nav-item.dropdown .dropdown-menu:hover {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
            display: block;
        }

        /* Ensure dropdown container extends to include menu */
        .nav-item.dropdown {
            position: relative;
        }

        .nav-item.dropdown::before {
            content: '';
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            height: 10px;
            background: transparent;
            z-index: 1001;
        }

        .dropdown-menu {
            position: absolute;
            z-index: 1002;
        }

        .dropdown-toggle::after {
            margin-left: 0.5em;
            transition: transform 0.3s ease;
        }

        .nav-item.dropdown:hover .dropdown-toggle::after {
            transform: rotate(180deg);
        }

        /* Prevent dropdown from closing when moving cursor */
        .dropdown-toggle {
            position: relative;
        }

        .dropdown-toggle:focus {
            box-shadow: none;
        }

        /* Bootstrap override for better control */
        .dropdown-menu.show {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .header {
                margin: 10px;
                border-radius: 25px;
            }
            
            .navbar-nav {
                text-align: center;
                margin-top: 20px;
            }
            
            .phone-contact {
                margin-top: 15px;
                justify-content: center;
            }
            
            .logo-image {
                height: 35px;
            }

            /* Mobile dropdown fixes */
            .dropdown-menu {
                position: static !important;
                transform: none !important;
                box-shadow: 0 2px 10px rgba(0,0,0,0.1);
                border: 1px solid #ddd;
                margin-top: 10px;
                border-radius: 10px;
                opacity: 1;
                visibility: visible;
                display: none;
                min-width: 100%;
                width: 100%;
            }

            .dropdown-menu.show {
                display: block !important;
                opacity: 1;
                visibility: visible;
                transform: none;
            }

            .dropdown-item {
                padding: 12px 20px;
                font-size: 14px;
                text-align: center;
                border-bottom: 1px solid #f0f0f0;
            }

            .dropdown-item:last-child {
                border-bottom: none;
            }

            .dropdown-item:hover {
                transform: none;
                background: rgba(254, 70, 0, 0.1);
            }

            /* Disable hover behavior on mobile */
            .nav-item.dropdown:hover .dropdown-menu,
            .nav-item.dropdown .dropdown-menu:hover {
                opacity: 1;
                visibility: visible;
                transform: none;
                display: none; /* Override hover behavior on mobile */
            }

            /* Override the ::before pseudo element on mobile */
            .nav-item.dropdown::before {
                display: none;
            }

            .navbar-toggler {
                border: none;
                padding: 4px 8px;
            }

            .navbar-toggler:focus {
                box-shadow: none;
            }
        }
        
        /* Animation Classes */
        .fade-in {
            animation: fadeIn 1s ease-in;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .slide-in-left {
            animation: slideInLeft 0.8s ease-out;
        }
        
        @keyframes slideInLeft {
            from { opacity: 0; transform: translateX(-50px); }
            to { opacity: 1; transform: translateX(0); }
        }
        
        .slide-in-right {
            animation: slideInRight 0.8s ease-out;
        }
        
        @keyframes slideInRight {
            from { opacity: 0; transform: translateX(50px); }
            to { opacity: 1; transform: translateX(0); }
        }
    </style>
</head>
<body>
    <header class="header <?php echo basename($_SERVER['PHP_SELF']) == 'index.php' ? 'home-header' : ''; ?>">
        <nav class="navbar navbar-expand-lg">
            <div class="container-fluid">
                <a class="navbar-brand" href="index.php">
                    <!-- Logo Image -->
                    <img src="images/logo/logo1.jpg" alt="Sigma Healthcare" class="logo-image" 
                         onerror="this.style.display='none'; this.nextElementSibling.style.display='block';">
                    
                    <!-- Fallback text if image doesn't load -->
                    <div class="logo-text-fallback">
                        <span class="sigma-logo">SIGMA</span>
                        <span class="healthcare-text">HEALTHCARE</span>
                    </div>
                </a>
                
                <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
                    <span class="navbar-toggler-icon"></span>
                </button>
                
                <div class="collapse navbar-collapse" id="navbarNav">
                    <ul class="navbar-nav mx-auto">
                        <li class="nav-item">
                            <a class="nav-link <?php echo basename($_SERVER['PHP_SELF']) == 'index.php' ? 'active' : ''; ?>" href="index.php">HOME</a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link <?php echo basename($_SERVER['PHP_SELF']) == 'about.php' ? 'active' : ''; ?>" href="about.php">ABOUT US</a>
                        </li>
                        <li class="nav-item dropdown">
                            <a class="nav-link dropdown-toggle <?php echo (basename($_SERVER['PHP_SELF']) == 'products.php' || basename($_SERVER['PHP_SELF']) == 'forensic.php' || basename($_SERVER['PHP_SELF']) == 'virology.php' || basename($_SERVER['PHP_SELF']) == 'histology.php' || basename($_SERVER['PHP_SELF']) == 'cardiac.php' || basename($_SERVER['PHP_SELF']) == 'transport-media.php' || basename($_SERVER['PHP_SELF']) == 'laboratory-glassware.php') ? 'active' : ''; ?>" 
                               href="products.php" 
                               id="navbarDropdown" 
                               role="button" 
                               data-bs-toggle="dropdown" 
                               aria-expanded="false"
                               onclick="window.location.href='products.php'; return false;">
                                PRODUCTS
                            </a>
                            <ul class="dropdown-menu" aria-labelledby="navbarDropdown">
                                <li><a class="dropdown-item <?php echo (basename($_SERVER['PHP_SELF']) == 'laboratory-glassware.php' && isset($_GET['category']) && $_GET['category'] == 'forensic') ? 'active' : ''; ?>" href="laboratory-glassware.php?category=forensic">Forensic</a></li>
                                <li><a class="dropdown-item <?php echo (basename($_SERVER['PHP_SELF']) == 'laboratory-glassware.php' && isset($_GET['category']) && $_GET['category'] == 'virology') ? 'active' : ''; ?>" href="laboratory-glassware.php?category=virology">Virology</a></li>
                                <li><a class="dropdown-item <?php echo (basename($_SERVER['PHP_SELF']) == 'laboratory-glassware.php' && isset($_GET['category']) && $_GET['category'] == 'histology') ? 'active' : ''; ?>" href="laboratory-glassware.php?category=histology">Histology</a></li>
                                <li><a class="dropdown-item <?php echo (basename($_SERVER['PHP_SELF']) == 'laboratory-glassware.php' && isset($_GET['category']) && $_GET['category'] == 'cardiac') ? 'active' : ''; ?>" href="laboratory-glassware.php?category=cardiac">Cardiac</a></li>
                                <li><a class="dropdown-item <?php echo (basename($_SERVER['PHP_SELF']) == 'laboratory-glassware.php' && isset($_GET['category']) && $_GET['category'] == 'transport-media') ? 'active' : ''; ?>" href="laboratory-glassware.php?category=transport-media">Transport Media</a></li>
                                <li><a class="dropdown-item <?php echo (basename($_SERVER['PHP_SELF']) == 'laboratory-glassware.php' && (!isset($_GET['category']) || $_GET['category'] == 'laboratory-glassware')) ? 'active' : ''; ?>" href="laboratory-glassware.php?category=laboratory-glassware">Laboratory Glassware</a></li>
                            </ul>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link <?php echo basename($_SERVER['PHP_SELF']) == 'partners.php' ? 'active' : ''; ?>" href="partners.php">PARTNERS</a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link <?php echo basename($_SERVER['PHP_SELF']) == 'contact.php' ? 'active' : ''; ?>" href="contact.php">CONTACT US</a>
                        </li>
                    </ul>
                    
                    <div class="phone-contact">
                        <i class="fas fa-phone"></i>
                        <span>0112 828068</span>
                    </div>
                </div>
            </div>
        </nav>
    </header>

    <!-- Bootstrap JS -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    
    <!-- Custom dropdown behavior script -->
    <script>
    document.addEventListener('DOMContentLoaded', function() {
        const dropdown = document.querySelector('.nav-item.dropdown');
        const dropdownToggle = document.querySelector('.dropdown-toggle');
        const dropdownMenu = document.querySelector('.dropdown-menu');
        
        let isHovering = false;
        let isMobile = window.innerWidth <= 768;
        
        // Check if device is mobile
        function checkIfMobile() {
            isMobile = window.innerWidth <= 768;
        }
        
        // Update on window resize
        window.addEventListener('resize', checkIfMobile);
        
        if (dropdown && dropdownToggle && dropdownMenu) {
            // Desktop behavior
            if (!isMobile) {
                // Handle hover on dropdown container
                dropdown.addEventListener('mouseenter', function() {
                    isHovering = true;
                    dropdownMenu.classList.add('show');
                });
                
                dropdown.addEventListener('mouseleave', function() {
                    isHovering = false;
                    setTimeout(function() {
                        if (!isHovering) {
                            dropdownMenu.classList.remove('show');
                        }
                    }, 100);
                });
            }
            
            // Handle click on main products link
            dropdownToggle.addEventListener('click', function(e) {
                e.preventDefault(); // Always prevent default on mobile
                
                if (isMobile) {
                    // Mobile behavior - toggle dropdown
                    if (dropdownMenu.classList.contains('show')) {
                        dropdownMenu.classList.remove('show');
                    } else {
                        dropdownMenu.classList.add('show');
                    }
                } else {
                    // Desktop behavior
                    if (!dropdownMenu.classList.contains('show')) {
                        dropdownMenu.classList.add('show');
                    } else {
                        // Allow navigation to products.php
                        window.location.href = 'products.php';
                    }
                }
            });
            
            // Prevent dropdown from closing when clicking on dropdown items
            dropdownMenu.addEventListener('click', function(e) {
                e.stopPropagation();
            });

            // Close dropdown when clicking outside
            document.addEventListener('click', function(e) {
                if (isMobile && !dropdown.contains(e.target)) {
                    dropdownMenu.classList.remove('show');
                }
            });

            // Handle window resize
            window.addEventListener('resize', function() {
                const wasMobile = isMobile;
                checkIfMobile();
                
                // If switching from mobile to desktop or vice versa
                if (wasMobile !== isMobile) {
                    dropdownMenu.classList.remove('show');
                }
            });
        }
    });
    </script>
</body>
</html>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
    <!-- Google Fonts -->
    <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap" rel="stylesheet">
    
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Roboto', sans-serif;
            line-height: 1.6;
            color: #333;
        }
        
        /* Updated Header Styles - Transparent overlay on background */
        .header {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border-radius: 50px;
            margin: 20px auto;
            max-width: 1200px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }
        
        /* Special header style for home page */
        .home-header {
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(15px);
        }
        
        .navbar {
            padding: 15px 30px;
        }
        
        .navbar-brand {
            font-weight: bold;
            font-size: 24px;
            display: flex;
            align-items: center;
        }
        
        /* Logo Image Styles */
        .logo-image {
            height: 45px;
            width: auto;
            max-width: 150px;
            object-fit: contain;
            transition: transform 0.3s ease;
        }
        
        .logo-image:hover {
            transform: scale(1.05);
        }
        
        /* Fallback text styles if image doesn't load */
        .sigma-logo {
            color: #FE4600;
            font-weight: 700;
            font-size: 24px;
        }
        
        .healthcare-text {
            color: #07427D;
            font-weight: 400;
            font-size: 12px;
            display: block;
            margin-top: -5px;
            letter-spacing: 1px;
        }
        
        .logo-text-fallback {
            display: none;
        }
        
        .navbar-nav .nav-link {
            color: #333 !important;
            font-weight: 500;
            margin: 0 15px;
            text-transform: uppercase;
            font-size: 14px;
            transition: color 0.3s ease;
            position: relative;
        }
        
        .navbar-nav .nav-link:hover,
        .navbar-nav .nav-link.active {
            color: #FE4600 !important;
        }
        
        .navbar-nav .nav-link.active::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 50%;
            transform: translateX(-50%);
            width: 20px;
            height: 2px;
            background: #FE4600;
            border-radius: 1px;
        }
        
        .phone-contact {
            display: flex;
            align-items: center;
            color: #333;
            text-decoration: none;
            font-weight: 500;
            font-size: 14px;
            transition: color 0.3s ease;
        }
        
        .phone-contact:hover {
            color: #FE4600;
            text-decoration: none;
        }
        
        .phone-contact i {
            margin-right: 8px;
            color: #FE4600;
            font-size: 16px;
        }
        
        .phone-contact span {
            font-weight: 600;
        }
        
        .search-box {
            position: relative;
        }
        
        .search-input {
            border: 1px solid #ddd;
            border-radius: 20px;
            padding: 8px 40px 8px 15px;
            width: 200px;
            font-size: 14px;
            background: rgba(255, 255, 255, 0.9);
        }
        
        .search-btn {
            position: absolute;
            right: 10px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            color: #999;
            cursor: pointer;
        }
        
        .search-btn:hover {
            color: #FE4600;
        }
        
        /* Hero Section Styles - Remove old styles, will be in index.php */
        .hero-section {
            background: linear-gradient(135deg, rgba(173, 216, 230, 0.8), rgba(255, 255, 255, 0.9));
            min-height: 70vh;
            display: flex;
            align-items: center;
            position: relative;
            overflow: hidden;
        }
        
        .hero-content h1 {
            font-size: 3.5rem;
            font-weight: 700;
            color: #2c3e50;
            line-height: 1.2;
            margin-bottom: 20px;
        }
        
        .hero-content p {
            font-size: 1.1rem;
            color: #666;
            margin-bottom: 30px;
            line-height: 1.6;
        }
        
        .btn-primary-custom {
            background: #FE4600;
            border: none;
            padding: 12px 30px;
            border-radius: 25px;
            font-weight: 600;
            text-transform: uppercase;
            transition: all 0.3s ease;
            color: white;
        }
        
        .btn-primary-custom:hover {
            background: #e03d00;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(254, 70, 0, 0.3);
            color: white;
        }
        
        /* Product Section Styles */
        .section-title {
            text-align: center;
            margin-bottom: 60px;
        }
        
        .section-title h2 {
            font-size: 2.5rem;
            color: #2c3e50;
            margin-bottom: 10px;
            font-weight: 600;
        }
        
        .section-title p {
            color: #666;
            font-size: 1.1rem;
        }
        
        .product-card {
            background: white;
            border-radius: 15px;
            padding: 30px;
            text-align: center;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            transition: transform 0.3s ease;
            height: 100%;
            margin-bottom: 30px;
        }
        
        .product-card:hover {
            transform: translateY(-5px);
        }
        
        .product-card img {
            width: 80px;
            height: 80px;
            object-fit: contain;
            margin-bottom: 20px;
        }
        
        .product-card h5 {
            color: #2c3e50;
            margin-bottom: 10px;
            font-weight: 600;
        }
        
        .product-card p {
            color: #666;
            font-size: 0.9rem;
            margin-bottom: 20px;
        }
        
        .btn-secondary-custom {
            background: #FE4600;
            color: white;
            border: none;
            padding: 8px 20px;
            border-radius: 20px;
            font-size: 0.9rem;
            font-weight: 500;
            transition: all 0.3s ease;
        }
        
        .btn-secondary-custom:hover {
            background: #e03d00;
            color: white;
        }
        
        /* Blood Collection Section */
        .blood-collection-section {
            background: linear-gradient(135deg, rgba(173, 216, 230, 0.3), rgba(255, 255, 255, 0.8));
            padding: 80px 0;
            position: relative;
        }
        
        .feature-item {
            text-align: center;
            margin-bottom: 30px;
        }
        
        .feature-icon {
            width: 60px;
            height: 60px;
            background: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 15px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }
        
        .feature-icon i {
            font-size: 24px;
            color: #FE4600;
        }
        
        /* Products Grid */
        .products-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 30px;
            margin-top: 40px;
        }
        
        .product-item {
            background: white;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            transition: transform 0.3s ease;
        }
        
        .product-item:hover {
            transform: translateY(-5px);
        }
        
        .product-image {
            height: 200px;
            background-size: cover;
            background-position: center;
            position: relative;
        }
        
        .product-info {
            padding: 20px;
        }
        
        .product-price {
            color: #FE4600;
            font-size: 1.2rem;
            font-weight: 600;
            margin-bottom: 10px;
        }
        
        /* Contact Section Styles */
        .contact-info {
            background: white;
            border-radius: 15px;
            padding: 40px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            margin-bottom: 30px;
        }
        
        .contact-item {
            display: flex;
            align-items: center;
            margin-bottom: 30px;
        }
        
        .contact-icon {
            width: 60px;
            height: 60px;
            background: #FE4600;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 20px;
        }
        
        .contact-icon i {
            color: white;
            font-size: 20px;
        }
        
        .contact-form {
            background: rgba(44, 62, 80, 0.95);
            border-radius: 25px;
            padding: 50px;
            color: white;
        }
        
        .form-control-custom {
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 10px;
            padding: 12px 15px;
            color: white;
            margin-bottom: 20px;
        }
        
        .form-control-custom::placeholder {
            color: rgba(255, 255, 255, 0.7);
        }
        
        .form-control-custom:focus {
            background: rgba(255, 255, 255, 0.15);
            border-color: #FE4600;
            color: white;
            box-shadow: none;
        }
        
        /* Footer Styles */
        .footer {
            background: #2c3e50;
            color: white;
            padding: 50px 0 20px;
        }
        
        .footer h5 {
            color: #FE4600;
            margin-bottom: 20px;
            font-weight: 600;
        }
        
        .footer ul {
            list-style: none;
        }
        
        .footer ul li {
            margin-bottom: 8px;
        }
        
        .footer ul li a {
            color: #bbb;
            text-decoration: none;
            transition: color 0.3s ease;
        }
        
        .footer ul li a:hover {
            color: #FE4600;
        }
        
        .newsletter-form {
            display: flex;
            margin-top: 15px;
        }
        
        .newsletter-input {
            flex: 1;
            padding: 10px 15px;
            border: none;
            border-radius: 5px 0 0 5px;
            background: rgba(255, 255, 255, 0.1);
            color: white;
        }
        
        .newsletter-btn {
            background: #FE4600;
            border: none;
            padding: 10px 20px;
            border-radius: 0 5px 5px 0;
            color: white;
            cursor: pointer;
        }
        
        .social-icons {
            margin-top: 20px;
        }
        
        .social-icons a {
            display: inline-block;
            width: 35px;
            height: 35px;
            background: #FE4600;
            color: white;
            text-align: center;
            line-height: 35px;
            margin-right: 10px;
            border-radius: 5px;
            transition: background 0.3s ease;
        }
        
        .social-icons a:hover {
            background: #e03d00;
        }
        
        .payment-methods {
            text-align: center;
            margin-top: 20px;
        }
        
        .payment-methods img {
            height: 30px;
            margin: 0 5px;
        }
        
        /* About Page Styles */
        .about-hero {
            background: linear-gradient(135deg, rgba(173, 216, 230, 0.8), rgba(255, 255, 255, 0.9));
            padding: 100px 0;
            text-align: center;
        }
        
        .about-content {
            padding: 80px 0;
        }
        
        .about-image {
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }
        
        .vision-section {
            background: #f8f9fa;
            padding: 80px 0;
        }
        
        .mission-section {
            background: linear-gradient(45deg, #2c3e50, #FE4600);
            color: white;
            padding: 80px 0;
        }
        
        .directors-section {
            padding: 80px 0;
            text-align: center;
        }
        
        .director-card {
            background: white;
            border-radius: 15px;
            padding: 30px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            margin-bottom: 30px;
        }
        
        .director-image {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            margin: 0 auto 20px;
            background-size: cover;
            background-position: center;
        }
        
        /* Products Page Styles */
        .products-hero {
            background: linear-gradient(135deg, rgba(173, 216, 230, 0.8), rgba(255, 255, 255, 0.9));
            padding: 100px 0;
            text-align: center;
        }
        
        .filter-tabs {
            margin: 50px 0;
            text-align: center;
        }
        
        .filter-tabs .nav-link {
            background: #f8f9fa;
            color: #333;
            border: none;
            border-radius: 25px;
            padding: 10px 25px;
            margin: 0 5px;
            font-weight: 500;
        }
        
        .filter-tabs .nav-link.active {
            background: #FE4600;
            color: white;
        }
        
        .pagination-custom {
            justify-content: center;
            margin-top: 50px;
        }
        
        .pagination-custom .page-link {
            color: #333;
            border: none;
            padding: 8px 12px;
            margin: 0 2px;
            border-radius: 50%;
        }
        
        .pagination-custom .page-link:hover,
        .pagination-custom .page-item.active .page-link {
            background: #FE4600;
            color: white;
        }
        
        /* Custom Dropdown Styles - Fixed for better navigation */
        .nav-item.dropdown {
            position: relative;
        }

        .dropdown-menu {
            background: rgba(255, 255, 255, 0.98);
            border: none;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.15);
            padding: 10px 0;
            margin-top: 0px;
            backdrop-filter: blur(10px);
            min-width: 220px;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.3s ease;
        }

        .dropdown-item {
            color: #333 !important;
            font-weight: 500;
            text-transform: uppercase;
            font-size: 13px;
            padding: 10px 20px;
            transition: all 0.3s ease;
            border: none;
        }

        .dropdown-item:hover {
            background: rgba(254, 70, 0, 0.1);
            color: #FE4600 !important;
            transform: translateX(5px);
        }

        .dropdown-item.active {
            background: rgba(254, 70, 0, 0.15);
            color: #FE4600 !important;
        }

        /* Enhanced dropdown behavior - stays visible when hovering over dropdown area */
        .nav-item.dropdown:hover .dropdown-menu,
        .nav-item.dropdown .dropdown-menu:hover {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
            display: block;
        }

        /* Ensure dropdown container extends to include menu */
        .nav-item.dropdown {
            position: relative;
        }

        .nav-item.dropdown::before {
            content: '';
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            height: 10px;
            background: transparent;
            z-index: 1001;
        }

        .dropdown-menu {
            position: absolute;
            z-index: 1002;
        }

        .dropdown-toggle::after {
            margin-left: 0.5em;
            transition: transform 0.3s ease;
        }

        .nav-item.dropdown:hover .dropdown-toggle::after {
            transform: rotate(180deg);
        }

        /* Prevent dropdown from closing when moving cursor */
        .dropdown-toggle {
            position: relative;
        }

        .dropdown-toggle:focus {
            box-shadow: none;
        }

        /* Bootstrap override for better control */
        .dropdown-menu.show {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .header {
                margin: 10px;
                border-radius: 25px;
            }
            
            .navbar-nav {
                text-align: center;
                margin-top: 20px;
            }
            
            .phone-contact {
                margin-top: 15px;
                justify-content: center;
            }
            
            .logo-image {
                height: 35px;
            }

            /* Mobile dropdown fixes */
            .dropdown-menu {
                position: static !important;
                transform: none !important;
                box-shadow: 0 2px 10px rgba(0,0,0,0.1);
                border: 1px solid #ddd;
                margin-top: 10px;
                border-radius: 10px;
                opacity: 1;
                visibility: visible;
                display: none;
                min-width: 100%;
                width: 100%;
            }

            .dropdown-menu.show {
                display: block !important;
                opacity: 1;
                visibility: visible;
                transform: none;
            }

            .dropdown-item {
                padding: 12px 20px;
                font-size: 14px;
                text-align: center;
                border-bottom: 1px solid #f0f0f0;
            }

            .dropdown-item:last-child {
                border-bottom: none;
            }

            .dropdown-item:hover {
                transform: none;
                background: rgba(254, 70, 0, 0.1);
            }

            /* Disable hover behavior on mobile */
            .nav-item.dropdown:hover .dropdown-menu,
            .nav-item.dropdown .dropdown-menu:hover {
                opacity: 1;
                visibility: visible;
                transform: none;
                display: none; /* Override hover behavior on mobile */
            }

            /* Override the ::before pseudo element on mobile */
            .nav-item.dropdown::before {
                display: none;
            }

            .navbar-toggler {
                border: none;
                padding: 4px 8px;
            }

            .navbar-toggler:focus {
                box-shadow: none;
            }
        }
        
        /* Animation Classes */
        .fade-in {
            animation: fadeIn 1s ease-in;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .slide-in-left {
            animation: slideInLeft 0.8s ease-out;
        }
        
        @keyframes slideInLeft {
            from { opacity: 0; transform: translateX(-50px); }
            to { opacity: 1; transform: translateX(0); }
        }
        
        .slide-in-right {
            animation: slideInRight 0.8s ease-out;
        }
        
        @keyframes slideInRight {
            from { opacity: 0; transform: translateX(50px); }
            to { opacity: 1; transform: translateX(0); }
        }
    </style>
</head>
<body>
    <header class="header <?php echo basename($_SERVER['PHP_SELF']) == 'index.php' ? 'home-header' : ''; ?>">
        <nav class="navbar navbar-expand-lg">
            <div class="container-fluid">
                <a class="navbar-brand" href="index.php">
                    <!-- Logo Image -->
                    <img src="images/logo/logo1.jpg" alt="Sigma Healthcare" class="logo-image" 
                         onerror="this.style.display='none'; this.nextElementSibling.style.display='block';">
                    
                    <!-- Fallback text if image doesn't load -->
                    <div class="logo-text-fallback">
                        <span class="sigma-logo">SIGMA</span>
                        <span class="healthcare-text">HEALTHCARE</span>
                    </div>
                </a>
                
                <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
                    <span class="navbar-toggler-icon"></span>
                </button>
                
                <div class="collapse navbar-collapse" id="navbarNav">
                    <ul class="navbar-nav mx-auto">
                        <li class="nav-item">
                            <a class="nav-link <?php echo basename($_SERVER['PHP_SELF']) == 'index.php' ? 'active' : ''; ?>" href="index.php">HOME</a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link <?php echo basename($_SERVER['PHP_SELF']) == 'about.php' ? 'active' : ''; ?>" href="about.php">ABOUT US</a>
                        </li>
                        <li class="nav-item dropdown">
                            <a class="nav-link dropdown-toggle <?php echo (basename($_SERVER['PHP_SELF']) == 'products.php' || basename($_SERVER['PHP_SELF']) == 'forensic.php' || basename($_SERVER['PHP_SELF']) == 'virology.php' || basename($_SERVER['PHP_SELF']) == 'histology.php' || basename($_SERVER['PHP_SELF']) == 'cardiac.php' || basename($_SERVER['PHP_SELF']) == 'transport-media.php' || basename($_SERVER['PHP_SELF']) == 'laboratory-glassware.php') ? 'active' : ''; ?>" 
                               href="products.php" 
                               id="navbarDropdown" 
                               role="button" 
                               data-bs-toggle="dropdown" 
                               aria-expanded="false"
                               onclick="window.location.href='products.php'; return false;">
                                PRODUCTS
                            </a>
                            <ul class="dropdown-menu" aria-labelledby="navbarDropdown">
                                <li><a class="dropdown-item <?php echo (basename($_SERVER['PHP_SELF']) == 'laboratory-glassware.php' && isset($_GET['category']) && $_GET['category'] == 'forensic') ? 'active' : ''; ?>" href="laboratory-glassware.php?category=forensic">Forensic</a></li>
                                <li><a class="dropdown-item <?php echo (basename($_SERVER['PHP_SELF']) == 'laboratory-glassware.php' && isset($_GET['category']) && $_GET['category'] == 'virology') ? 'active' : ''; ?>" href="laboratory-glassware.php?category=virology">Virology</a></li>
                                <li><a class="dropdown-item <?php echo (basename($_SERVER['PHP_SELF']) == 'laboratory-glassware.php' && isset($_GET['category']) && $_GET['category'] == 'histology') ? 'active' : ''; ?>" href="laboratory-glassware.php?category=histology">Histology</a></li>
                                <li><a class="dropdown-item <?php echo (basename($_SERVER['PHP_SELF']) == 'laboratory-glassware.php' && isset($_GET['category']) && $_GET['category'] == 'cardiac') ? 'active' : ''; ?>" href="laboratory-glassware.php?category=cardiac">Cardiac</a></li>
                                <li><a class="dropdown-item <?php echo (basename($_SERVER['PHP_SELF']) == 'laboratory-glassware.php' && isset($_GET['category']) && $_GET['category'] == 'transport-media') ? 'active' : ''; ?>" href="laboratory-glassware.php?category=transport-media">Transport Media</a></li>
                                <li><a class="dropdown-item <?php echo (basename($_SERVER['PHP_SELF']) == 'laboratory-glassware.php' && (!isset($_GET['category']) || $_GET['category'] == 'laboratory-glassware')) ? 'active' : ''; ?>" href="laboratory-glassware.php?category=laboratory-glassware">Laboratory Glassware</a></li>
                            </ul>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link <?php echo basename($_SERVER['PHP_SELF']) == 'partners.php' ? 'active' : ''; ?>" href="partners.php">PARTNERS</a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link <?php echo basename($_SERVER['PHP_SELF']) == 'contact.php' ? 'active' : ''; ?>" href="contact.php">CONTACT US</a>
                        </li>
                    </ul>
                    
                    <div class="phone-contact">
                        <i class="fas fa-phone"></i>
                        <span>0112 828068</span>
                    </div>
                </div>
            </div>
        </nav>
    </header>

    <!-- Bootstrap JS -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    
    <!-- Custom dropdown behavior script -->
    <script>
    document.addEventListener('DOMContentLoaded', function() {
        const dropdown = document.querySelector('.nav-item.dropdown');
        const dropdownToggle = document.querySelector('.dropdown-toggle');
        const dropdownMenu = document.querySelector('.dropdown-menu');
        
        let isHovering = false;
        let isMobile = window.innerWidth <= 768;
        
        // Check if device is mobile
        function checkIfMobile() {
            isMobile = window.innerWidth <= 768;
        }
        
        // Update on window resize
        window.addEventListener('resize', checkIfMobile);
        
        if (dropdown && dropdownToggle && dropdownMenu) {
            // Desktop behavior
            if (!isMobile) {
                // Handle hover on dropdown container
                dropdown.addEventListener('mouseenter', function() {
                    isHovering = true;
                    dropdownMenu.classList.add('show');
                });
                
                dropdown.addEventListener('mouseleave', function() {
                    isHovering = false;
                    setTimeout(function() {
                        if (!isHovering) {
                            dropdownMenu.classList.remove('show');
                        }
                    }, 100);
                });
            }
            
            // Handle click on main products link
            dropdownToggle.addEventListener('click', function(e) {
                e.preventDefault(); // Always prevent default on mobile
                
                if (isMobile) {
                    // Mobile behavior - toggle dropdown
                    if (dropdownMenu.classList.contains('show')) {
                        dropdownMenu.classList.remove('show');
                    } else {
                        dropdownMenu.classList.add('show');
                    }
                } else {
                    // Desktop behavior
                    if (!dropdownMenu.classList.contains('show')) {
                        dropdownMenu.classList.add('show');
                    } else {
                        // Allow navigation to products.php
                        window.location.href = 'products.php';
                    }
                }
            });
            
            // Prevent dropdown from closing when clicking on dropdown items
            dropdownMenu.addEventListener('click', function(e) {
                e.stopPropagation();
            });

            // Close dropdown when clicking outside
            document.addEventListener('click', function(e) {
                if (isMobile && !dropdown.contains(e.target)) {
                    dropdownMenu.classList.remove('show');
                }
            });

            // Handle window resize
            window.addEventListener('resize', function() {
                const wasMobile = isMobile;
                checkIfMobile();
                
                // If switching from mobile to desktop or vice versa
                if (wasMobile !== isMobile) {
                    dropdownMenu.classList.remove('show');
                }
            });
        }
    });
    </script>
</body>
</html>