/* --- 1. CORE VARIABLES & RESET --- */
        :root {
            --primary-dark: #0f172a;
            --primary-blue: #0B6E99;
            --primary-teal: #0CA789;
            --accent-coral: #E76F51;
            --bg-white: #FFFFFF;
            --bg-off-white: #F8FAFC;
            --bg-blue-light: #EFF6FF;
            --text-main: #1e293b;
            --text-muted: #64748b;
            --border-light: #e2e8f0;
            --glass: rgba(255, 255, 255, 0.85);
            --glass-border: rgba(255, 255, 255, 0.5);
            --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
            --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
            --radius-lg: 16px;
            --radius-full: 999px;
        }

        * { box-sizing: border-box; margin: 0; padding: 0; outline: none; }
        html { scroll-behavior: smooth; }
        body {
            font-family: 'Inter', sans-serif;
            background-color: var(--bg-off-white);
            color: var(--text-main);
            line-height: 1.7;
            overflow-x: hidden;
        }

        h1, h2, h3, h4, h5, h6 { font-family: 'Manrope', sans-serif; color: var(--primary-dark); font-weight: 700; letter-spacing: -0.02em; }
        h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.1; }
        h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 1rem; }
        p { margin-bottom: 1.5rem; color: var(--text-muted); font-size: 1.05rem; }
        
        /* --- 2. UTILITIES --- */
        .container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
        .section-spacer { padding: 100px 0; }
        .text-center { text-align: center; }
        .grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 60px; align-items: center; }
        .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
        .grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
        
        .badge-pill {
            display: inline-block;
            padding: 6px 16px;
            background: var(--bg-blue-light);
            color: var(--primary-blue);
            border-radius: var(--radius-full);
            font-size: 0.85rem;
            font-weight: 600;
            margin-bottom: 1rem;
            letter-spacing: 0.05em;
            text-transform: uppercase;
        }

        /* Buttons */
        .btn {
            display: inline-flex; align-items: center; justify-content: center; gap: 8px;
            padding: 14px 32px; border-radius: var(--radius-full);
            font-weight: 600; font-family: 'Manrope', sans-serif;
            cursor: pointer; transition: all 0.3s ease; text-decoration: none; border: none;
        }
        .btn-primary { background: var(--primary-blue); color: white; box-shadow: 0 4px 14px rgba(11, 110, 153, 0.3); }
        .btn-primary:hover { background: #095c80; transform: translateY(-2px); }
        .btn-secondary { background: white; color: var(--primary-blue); border: 1px solid var(--border-light); }
        .btn-secondary:hover { border-color: var(--primary-blue); background: var(--bg-blue-light); }
        .btn-danger { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
        .btn-danger:hover { background: #fecaca; }
        
        /* Icon Button */
        .btn-icon {
            width: 40px; height: 40px; border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            border: 1px solid var(--border-light); background: white;
            color: var(--primary-blue); cursor: pointer; transition: 0.3s;
        }
        .btn-icon:hover { background: var(--primary-blue); color: white; border-color: var(--primary-blue); }

        /* Cards */
        .glass-card {
            background: var(--glass);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid var(--glass-border);
            border-radius: var(--radius-lg);
            padding: 40px;
            box-shadow: var(--shadow-sm);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        .glass-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
        
        /* Clickable Cards */
        .clickable-card { cursor: pointer; position: relative; }
        .clickable-card::after {
            content: '\f055'; /* FontAwesome Plus */
            font-family: "Font Awesome 6 Free";
            font-weight: 900;
            position: absolute; top: 20px; right: 20px;
            color: var(--primary-blue); opacity: 0.3; transition: 0.3s;
        }
        .clickable-card:hover::after { opacity: 1; transform: scale(1.2); }

        /* --- 3. NAVIGATION --- */
        header {
            position: fixed; top: 0; width: 100%; z-index: 1000;
            background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px);
            border-bottom: 1px solid var(--border-light);
            padding: 16px 0;
        }
        .nav-inner { display: flex; justify-content: space-between; align-items: center; }
        .logo { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 1.5rem; color: var(--primary-blue); letter-spacing: -0.03em; display: flex; align-items: center; gap: 10px; cursor: pointer;}
        
        .nav-menu { display: flex; gap: 32px; }
        .nav-menu a { text-decoration: none; color: var(--text-main); font-weight: 500; font-size: 0.95rem; position: relative; cursor: pointer; }
        .nav-menu a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--primary-blue); transition: width 0.3s; }
        .nav-menu a:hover::after { width: 100%; }
        .nav-menu a.active { color: var(--primary-blue); }
        
        .cart-wrapper { position: relative; cursor: pointer; margin-right: 15px; }
        .cart-badge { 
            position: absolute; top: -5px; right: -8px; 
            background: var(--accent-coral); color: white; 
            font-size: 0.7rem; font-weight: 700; 
            width: 18px; height: 18px; border-radius: 50%; 
            display: flex; align-items: center; justify-content: center;
        }

        .mobile-toggle { display: none; font-size: 1.5rem; cursor: pointer; color: var(--primary-dark); }

        /* --- 4. SPA ARCHITECTURE --- */
        .view-section { display: none; padding-top: 80px; min-height: 100vh; animation: fadeIn 0.6s ease; }
        .view-section.active { display: block; }
        @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

        /* --- 5. HOME VIEW CHAPTERS --- */
        .hero { 
            padding: 120px 0 80px; 
            background: linear-gradient(180deg, #F0F9FF 0%, #F8FAFC 100%);
            position: relative; overflow: hidden;
        }
        .hero-visual { position: relative; z-index: 1; }
        .hero-bg-shape {
            position: absolute; top: -20%; right: -10%; width: 60%; height: 80%;
            background: radial-gradient(circle, rgba(11,110,153,0.1) 0%, transparent 70%);
            z-index: 0; pointer-events: none;
        }
        /* HERO IMAGE FLOAT ANIMATION */
.hero-visual img {
    animation: floatUpDown 6s ease-in-out infinite;
}

@keyframes floatUpDown {
    0%   { transform: translateY(0px); }
    50%  { transform: translateY(-18px); }
    100% { transform: translateY(0px); }
}


        /* Feature Icon List */
        .feature-list li { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-weight: 500; color: var(--text-main); }
        .feature-list i { color: var(--primary-teal); background: #d1fae5; padding: 6px; border-radius: 50%; font-size: 0.8rem; }

        /* Timeline / Process */
        .process-step { text-align: left; padding-left: 30px; border-left: 2px solid var(--border-light); position: relative; padding-bottom: 40px; }
        .process-step::before { content: ''; position: absolute; left: -9px; top: 0; width: 16px; height: 16px; background: var(--primary-blue); border-radius: 50%; border: 4px solid white; }
        .process-step:last-child { border-left: transparent; }

        /* --- 6. PRODUCT STYLES --- */
        .filter-bar { display: flex; justify-content: center; gap: 15px; margin-bottom: 50px; flex-wrap: wrap; }
        .filter-btn { padding: 8px 20px; border-radius: 30px; background: white; border: 1px solid var(--border-light); cursor: pointer; transition: 0.3s; font-weight: 500; }
        .filter-btn.active, .filter-btn:hover { background: var(--primary-blue); color: white; border-color: var(--primary-blue); }
        
        .product-img-wrap { height: 220px; background: #f1f5f9; border-radius: 12px; margin-bottom: 20px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
        .product-img-wrap img { max-height: 80%; transition: transform 0.3s; }
        .glass-card:hover .product-img-wrap img { transform: scale(1.1) rotate(2deg); }
        .product-item { display: block; } /* For filtering */
        .product-actions { display: flex; gap: 10px; margin-top: 15px; }

        /* --- 7. SCIENCE / TABLES --- */
        .clinical-table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 0.95rem; }
        .clinical-table th { text-align: left; padding: 16px; background: var(--bg-blue-light); color: var(--primary-blue); font-weight: 600; }
        .clinical-table td { padding: 16px; border-bottom: 1px solid var(--border-light); color: var(--text-muted); }
        .clinical-table tr:last-child td { border-bottom: none; }

        /* --- 8. MODALS & CART --- */
        .modal-overlay {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.5); backdrop-filter: blur(5px);
            z-index: 2000; display: none; align-items: center; justify-content: center;
            opacity: 0; transition: opacity 0.3s;
        }
        .modal-overlay.open { display: flex; opacity: 1; }
        .modal-content {
            background: white; width: 90%; max-width: 600px;
            padding: 40px; border-radius: var(--radius-lg);
            position: relative; transform: translateY(20px); transition: transform 0.3s;
            box-shadow: var(--shadow-lg);
            max-height: 85vh; overflow-y: auto; /* For long content */
        }
        .modal-overlay.open .modal-content { transform: translateY(0); }
        .close-modal { position: absolute; top: 20px; right: 20px; font-size: 1.5rem; cursor: pointer; color: var(--text-muted); }

        /* Cart Specific Styles */
        .cart-item-row { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-bottom: 1px solid #eee; }
        .cart-total-row { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; font-size: 1.2rem; font-weight: 700; border-top: 2px solid #eee; margin-top: 20px; }

        /* Toast Notification */
        .toast {
            position: fixed; bottom: 20px; right: 20px;
            background: var(--primary-dark); color: white;
            padding: 15px 25px; border-radius: 8px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
            display: flex; align-items: center; gap: 10px;
            transform: translateY(100px); transition: transform 0.3s ease-out;
            z-index: 3000;
        }
        .toast.show { transform: translateY(0); }

        /* --- 9. CONTENT PAGE STYLES (About, Legal, etc) --- */
        .content-header { background: var(--primary-blue); color: white; padding: 80px 0; text-align: center; }
        .content-header h1 { color: white; }
        .legal-nav { display: flex; gap: 10px; border-bottom: 1px solid var(--border-light); margin-bottom: 30px; }
        .legal-tab { padding: 10px 20px; cursor: pointer; font-weight: 600; color: var(--text-muted); border-bottom: 2px solid transparent; }
        .legal-tab.active { color: var(--primary-blue); border-bottom-color: var(--primary-blue); }
        .legal-section { display: none; }
        .legal-section.active { display: block; animation: fadeIn 0.3s; }

        /* --- 10. PORTAL STYLES --- */
        .dashboard-wrapper { display: grid; grid-template-columns: 260px 1fr; gap: 40px; margin-top: 40px; min-height: 80vh; }
        .sidebar { background: white; border-right: 1px solid var(--border-light); height: 100%; padding: 20px 0; }
        .sidebar-item { display: flex; align-items: center; gap: 12px; padding: 12px 20px; color: var(--text-muted); cursor: pointer; transition: 0.2s; border-left: 3px solid transparent; margin-bottom: 4px; }
        .sidebar-item:hover, .sidebar-item.active { background: var(--bg-blue-light); color: var(--primary-blue); border-left-color: var(--primary-blue); }
        .dash-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid var(--border-light); }

        /* --- RESPONSIVE --- */
        @media (max-width: 1024px) {
            .grid-2, .grid-3, .grid-4, .dashboard-wrapper { grid-template-columns: 1fr; gap: 40px; }
            .hero { padding: 100px 0 60px; }
            h1 { font-size: 2.5rem; }
            .nav-menu { display: none; } /* Hidden for simple mobile logic */
            .mobile-toggle { display: block; }
        }
        
        /* Footer Links styling */
        footer a { cursor: pointer; color: #94a3b8; text-decoration: none; transition: 0.3s; }
        footer a:hover { color: var(--primary-teal); padding-left: 5px; }