   body.page-homepage, body.page-products {
            padding-top: 185px; /* Increased top padding for more space below navbars (was 155px) */
        }

        .navbar, .secondary-header {
            position: fixed; /* Ensures headers stay at the top */
            left: 0;
            right: 0; /* Make it span the full viewport width robustly */
            box-sizing: border-box;
            background: rgba(255, 182, 193, 0.7); /* Keeps original glassy style */
            backdrop-filter: blur(10px);
        }

        .navbar {
            top: 0;
            height: 65px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 2rem;
            z-index: 1000;
        }

        .secondary-header {
            top: 65px; /* Position directly below primary navbar */
            height: 90px; /* Increased height to push content down */
            z-index: 1001; /* Raised to ensure it and its children (like the filter popup) appear above other page content */
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 2rem;
            overflow: visible !important; /* Ensure broadcast dropdown can extend outside */
        }

        /* Default desktop state: Nav links are visible */
        .navbar > ul, .sub-navbar {
            display: flex;
        }

        /* --- Navbar Fix for Mid-sized Screens --- */
        @media (max-width: 1150px) {
            .navbar > ul {
                display: flex;
                flex-wrap: nowrap;
            }
        }

        .navbar-brand-container {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        /* --- Mobile Menu (Side Panel) --- */
        #mobile-menu {
            position: fixed;
            top: 0;
            left: 0;
            width: 280px;
            max-width: 80%;
            height: 100%;
            /* Glassy, professional pink-to-dark gradient */
            background: linear-gradient(170deg, rgba(44, 62, 80, 0.85), rgba(194, 24, 91, 0.85));
            backdrop-filter: blur(10px); /* The key to the glassy effect */
            z-index: 1002;
            transform: translateX(-100%);
            transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            padding: 1.5rem;
            box-shadow: 4px 0 25px rgba(0,0,0,0.3); /* Stronger shadow for depth */
            display: flex;
            flex-direction: column;
            overflow-y: auto;
        }
        #mobile-menu.open {
            transform: translateX(0);
        }
        #mobile-menu ul {
            list-style: none;
            padding: 0;
            margin: 2rem 0 0 0; /* Add some space from the close button */
        }
        #mobile-menu ul li {
            position: relative; /* Required for the ::after pseudo-element */
            /* Animation properties: Start hidden and off to the left */
            opacity: 0;
            transform: translateX(-30px);
            transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
        }

        /* When the menu is open, animate the items into view */
        #mobile-menu.open ul li {
            opacity: 1;
            transform: translateX(0);
        }

        /* Stagger the animation for each item to create a slide-in effect */
        #mobile-menu.open ul li:nth-child(2) { transition-delay: 0.05s; }
        #mobile-menu.open ul li:nth-child(3) { transition-delay: 0.1s; }
        #mobile-menu.open ul li:nth-child(4) { transition-delay: 0.15s; }
        #mobile-menu.open ul li:nth-child(5) { transition-delay: 0.2s; }
        #mobile-menu.open ul li:nth-child(6) { transition-delay: 0.25s; }
        #mobile-menu.open ul li:nth-child(7) { transition-delay: 0.3s; }
        #mobile-menu.open ul li:nth-child(8) { transition-delay: 0.35s; }
        #mobile-menu.open ul li:nth-child(9) { transition-delay: 0.4s; }
        #mobile-menu.open ul li:nth-child(10) { transition-delay: 0.45s; }
        #mobile-menu.open ul li:nth-child(11) { transition-delay: 0.5s; }
        #mobile-menu.open ul li:nth-child(12) { transition-delay: 0.55s; }
        #mobile-menu.open ul li:nth-child(13) { transition-delay: 0.6s; }


        /* Add a stylish, fading underline to each menu item except the last one */
        #mobile-menu ul li:not(:last-child)::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0.5rem;  /* Align with the link's horizontal padding */
            right: 0.5rem; /* Align with the link's horizontal padding */
            height: 1px;
            background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0));
        }
        #mobile-menu ul li a {
            padding: 1rem 0.5rem;
            color: #f0f0f0; /* Light grey for readability */
            text-decoration: none;
            font-size: 1.1rem;
            border-radius: 8px;
            transition: background-color 0.2s ease, color 0.2s ease;
            display: flex;
            align-items: center;
            gap: 1rem; /* Space between icon and text */
        }
        #mobile-menu ul li a:hover,
        #mobile-menu ul li a:focus {
            background-color: rgba(255, 255, 255, 0.1);
            color: #fff; /* Brighter on hover */
        }
        #close-menu-btn {
            align-self: flex-end;
            background: none;
            border: none;
            font-size: 2.2rem;
            cursor: pointer;
            color: rgba(255, 255, 255, 0.7); /* White with some transparency */
            padding: 0;
            line-height: 1;
            transition: color 0.2s ease;
        }
        #close-menu-btn:hover {
            color: #fff;
        }

        /* --- Modern Search & Filter --- */
        .search-container {
            position: relative;
            display: flex;
            align-items: center;
            width: 100%;
            max-width: 73vw; /* Increased for a longer bar on desktop */
            height: 50px;
            background-color: #fdf2f4; /* Background is now on the container */
            border: 1px solid transparent;
            border-radius: 25px; /* Pill shape for the whole container */
            transition: all 0.3s ease;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        }

        /* Style the container when the input inside is focused */
        .search-container:focus-within {
            border-color: #d6336c;
            box-shadow: 0 4px 12px rgba(214, 51, 108, 0.2);
        }

        #search-bar {
            width: 100%;
            height: 100%; /* Fill the container's height */
            padding: 0 60px 0 20px; /* Padding to make space for filter icon */
            font-size: 1rem;
            color: #333;
            background-color: transparent; /* The input field itself is transparent */
            border: none; /* No border on the input */
            outline: none; /* No outline on focus */
        }

        #search-bar::placeholder {
            color: #a0a0a0;
        }

        .filter-wrapper {
            position: absolute; /* Position inside the search container */
            right: 0;
            top: 0;
            height: 100%;
            display: flex;
            align-items: center;
        }

        .filter-icon {
            /* Reset button styles to make it act like an icon */
            background: none;
            border: none;
            margin: 0;
            font-size: 1.4rem;
            color: #d6336c;
            cursor: pointer;
            padding: 10px 15px;
            transition: color 0.2s ease;
            z-index: 2;
            line-height: 1; /* Helps with vertical alignment */
        }

        .filter-icon:hover {
            color: #c2185b;
        }

        .filter-popup {
            position: absolute;
            top: calc(100% + 30px); /* Position below the search bar, increased for more clearance */
            left: 50%;
            transform: translateX(-50%) translateY(-10px);
            width: 320px;
            background: #fff;
            border-radius: 12px;
            box-shadow: 0 8px 30px rgba(0,0,0,0.15);
            padding: 1.5rem;
            z-index: 1003; /* Above mobile menu overlay */
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
        }

        .filter-popup.visible {
            opacity: 1;
            visibility: visible;
            transform: translateX(-50%) translateY(0);
        }

        .filter-popup h4 {
            margin-top: 0;
            margin-bottom: 1.5rem;
            font-size: 1.2rem;
            color: #c2185b;
            text-align: center;
            border-bottom: 1px solid #f0f0f0;
            padding-bottom: 1rem;
        }

        .filter-section {
            margin-bottom: 1.5rem;
        }

        .filter-section h5 {
            font-size: 0.9rem;
            font-weight: 600;
            color: #333;
            margin-bottom: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .category-filters, .star-filters {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
        }

        .category-btn, .star-filter-btn {
            background-color: #f1f3f5;
            color: #495057;
            border: 1px solid #dee2e6;
            border-radius: 16px; /* Pill shape */
            padding: 6px 14px;
            font-size: 0.85rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .category-btn:hover, .star-filter-btn:hover {
            background-color: #e9ecef;
            border-color: #ced4da;
        }

        .category-btn.active, .star-filter-btn.active {
            background-color: #d6336c;
            color: #fff;
            border-color: #d6336c;
            box-shadow: 0 2px 8px rgba(214, 51, 108, 0.3);
        }

        .price-filter {
            margin-top: 1rem;
        }

        #price-slider {
            -webkit-appearance: none;
            width: 100%;
            height: 6px;
            background: #e9ecef;
            border-radius: 3px;
            outline: none;
        }

        #price-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 20px;
            height: 20px;
            background: #d6336c;
            border-radius: 50%;
            cursor: pointer;
            border: 3px solid #fff;
            box-shadow: 0 0 5px rgba(0,0,0,0.2);
            transition: transform 0.2s ease;
        }
        #price-slider::-webkit-slider-thumb:hover {
            transform: scale(1.1);
        }

        #price-slider::-moz-range-thumb {
            width: 20px;
            height: 20px;
            background: #d6336c;
            border-radius: 50%;
            cursor: pointer;
            border: 3px solid #fff;
            box-shadow: 0 0 5px rgba(0,0,0,0.2);
        }

        .price-label {
            text-align: right;
            margin-top: 0.5rem;
            font-size: 0.9rem;
            color: #555;
            font-weight: 500;
        }

        /* --- Mobile Menu Overlay --- */
        .mobile-menu-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(3px);
            z-index: 1001;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.35s ease, visibility 0.35s ease;
        }

        .mobile-menu-overlay.open {
            opacity: 1;
            visibility: visible;
        }

        /* Prevents the main page from scrolling when the mobile menu is open */
        body.mobile-menu-open {
            overflow: hidden;
        }

        /* --- Broadcast Q&A Item Styles --- */
        
        /* --- Media Query Breakpoints --- */
        @media (max-width: 1024px) {
            .mobile-broadcast-toggle {
                display: flex; /* Use flex to ensure it's a proper flex item */
                align-items: center; /* Vertically center the icon */
            }

            /* Show and style the new fixed mobile panel */
            #mobile-broadcast-panel {
                display: flex; /* Keep as flex, visibility is now controlled by opacity/transform */
                flex-direction: column;
                position: fixed;
                top: 120px; /* Position below smaller navbars (50px + 60px + 10px margin) */
                left: 5%; /* Reduced margins */
                right: 5%; /* Reduced margins */
                width: 90vw; /* Explicit width */
                max-width: 90vw; /* Prevent overflow */
                max-height: 65vh; /* Limit its height */
                z-index: 998; /* Below header, above content */
                border-radius: 12px; /* Rounded all corners */
                background: #fff;
                box-shadow: 0 4px 20px rgba(0,0,0,0.15); /* A more standard shadow */

                /* Animation Properties */
                transform: translateY(-20px); /* Animate vertically only */
                opacity: 0;
                visibility: hidden;
                pointer-events: none; /* Prevent clicks on the invisible panel */
                transition: opacity 0.3s ease, transform 0.3s ease;
            }

            #mobile-broadcast-panel.visible {
                opacity: 1;
                visibility: visible;
                transform: translateY(0); /* Slide down to its final position */
                pointer-events: auto; /* Allow clicks again when it's visible */
            }

            /* The chat-dropdown inside the mobile panel needs its styles reset */
            #mobile-broadcast-panel .chat-dropdown {
                position: static;
                opacity: 1;
                visibility: visible;
                transform: none;
                box-shadow: none;
                width: 100%;
                height: 100%; /* Fill the panel */
                padding: 0;
                border-radius: 0;
                display: flex; /* Use flexbox for layout */
                flex-direction: column; /* Stack children vertically */
                min-height: 0; /* Critical for flexbox scrolling */
            }

            #mobile-broadcast-panel .chat-main-content {
                flex-grow: 1; /* Allow content to take available space */
                display: flex;
                flex-direction: column;
                min-height: 0; /* Crucial for nested flex scrolling */
            }

            /* Reorder panels for mobile view */
            #mobile-broadcast-panel .chat-trending-panel {
                order: 1; /* Show trending topics first */
                padding: 1rem 1rem 0.5rem 1rem;
                border-bottom: 1px solid #f0f0f0;
                flex-shrink: 0; /* Prevent this panel from shrinking */
                max-height: 35%; /* Limit height to give more space to Q&A */
                overflow-y: auto; /* Allow topics to scroll if they overflow */
            }

            #mobile-broadcast-panel .chat-feed-panel {
                order: 2; /* Show Q&A feed second */
                flex-grow: 1; /* Make the feed take remaining space */
                display: flex;
                flex-direction: column;
                min-height: 0; /* Allow this panel to shrink and enable scrolling in its child */
                position: relative; /* Make this the positioning context for the form */
            }

            /* Force the list to scroll and leave space for the form */
            #mobile-broadcast-panel .qa-list {
                flex-grow: 1;
                overflow-y: auto;
                padding: 1rem;
                padding-bottom: 80px; /* Make space for the form at the bottom */
            }

            /* Pin the form to the bottom of its container */
            #mobile-broadcast-panel .qa-form {
                position: absolute;
                bottom: 0;
                left: 0;
                width: 100%;
                background-color: #fff; /* Solid background to hide content behind it */
            }

            #trending-topics-list a {
                text-decoration: none;
                color: #c2185b;
                font-weight: 500;
            }
            #trending-topics-list a:hover {
                text-decoration: underline;
            }

            /* The qa-form styling is now correctly handled in broadcast.css */

            .navbar .navbar-brand-container {
                width: 100%;
                justify-content: space-between;
            }

            /* Hide the desktop navigation links on mobile */
            .navbar > ul {
                display: none;
            }

            /* Re-assert fixed position for pages with the special header to override generic mobile styles */
            body.page-homepage .navbar,
            body.page-homepage .secondary-header {
                position: fixed;
            }

            .navbar, .secondary-header {
                padding: 0 1.5rem;
            }
            .search-container {
                width: 100%; /* Make the search container fill its assigned grid area */
                min-width: 0; /* Prevents the input inside from stopping it from shrinking */
                max-width: none; /* Override desktop max-width for mobile flexibility */
            }

            .secondary-header {
                display: grid;
                grid-template-columns: 1fr auto; /* Column 1 (search) grows, Column 2 (icon) fits content */
                gap: 1rem; /* Add space between search bar and icon */
                align-items: center; /* Vertically center items in the row */
            }

            /* --- Mobile Filter Popup Centered --- */
            .filter-popup {
                position: fixed !important;
                top: 50% !important;
                left: 50% !important;
                right: auto;
                width: 280px;
                max-width: 90vw;
                transform: translate(-50%, -50%) translateY(-10px);
            }

            .filter-popup.visible {
                transform: translate(-50%, -50%);
            }

            /* --- Mobile Header Size Adjustments --- */
            body.page-homepage {
                padding-top: 125px; /* Adjust for smaller mobile headers (50px + 60px + 15px) */
            }
            .navbar {
                height: 50px;
            }
            .secondary-header {
                top: 50px; /* Follow new navbar height */
                height: 60px;
            }
            .navbar-brand {
                font-size: 1.2rem;
            }
            .search-container {
                height: 40px;
            }
            #search-bar {
                font-size: 0.9rem;
                padding: 0 50px 0 15px;
            }
        }

        /* --- Mobile Font Size Adjustments --- */
        @media (max-width: 768px) {
            .hero-text h1 {
                font-size: 1.8rem !important;
                line-height: 1.2 !important;
                letter-spacing: -0.02em !important;
            }
            .hero-text p {
                font-size: 1rem !important;
                line-height: 1.6 !important;
            }
        }
        
        @media (max-width: 480px) {
            .hero-text h1 {
                font-size: 1.5rem !important;
                line-height: 1.1 !important;
            }
            .hero-text p {
                font-size: 0.9rem !important;
            }

            /* --- Mobile Hero Section Size Reduction --- */
            .hero-container {
                padding: 1.5rem 5% 1rem; /* Significantly reduced vertical padding */
            }
            .hero-video video {
                max-width: 300px; /* Make video smaller to reduce height */
            }
            .hub-card h2, .product-showcase-section h2, .newsletter-content h3, .info-card h3 {
                font-size: 1.5rem; /* Consistent heading size for sections */
            }
            .hub-card p, .newsletter-content p, .info-card p {
                font-size: 0.85rem;
            }

            /* --- Info Card Section Mobile --- */
            .info-card-section {
                padding: 3rem 1.5rem; /* More padding for better spacing */
                background: linear-gradient(160deg, #fff1f5 0%, #ffffff 100%); /* Clean gradient background */
            }

            .info-card-background {
                display: none; /* Hide the desktop pattern background on mobile */
            }

            .info-card-container {
                flex-direction: column; /* Stack cards vertically */
                gap: 1.5rem;
                align-items: center; /* Center cards horizontally */
            }

            .info-card {
                background: #ffffff; /* Ensure solid white background */
                box-shadow: 0 4px 20px rgba(0,0,0,0.07); /* Add subtle shadow to lift cards */
                width: 85%; /* Make cards wider on mobile */
                max-width: 450px; /* Prevent them from being too wide on tablets */
            }

            .info-card.middle-card {
                transform: none; /* Remove the desktop "pop-out" effect */
            }

            .hub-section {
                flex-direction: column; /* Stack hub cards vertically */
                gap: 1.5rem; /* Adjust gap for vertical stacking */
                padding: 0 1.5rem; /* Add consistent horizontal padding */
                align-items: stretch; /* Make children (cards) stretch to fill the width */
            }

            .hub-logo {
                font-size: 8vh; /* Reduced logo size to better fit the slimmer card */
            }

            .hub-card {
                width: 100%; /* Let the card take the full width of its padded container */
                max-width: 100%; /* Remove the desktop max-width constraint */
                flex-basis: auto;
                padding: 1.5rem; /* Reduced padding for a more balanced look on the smaller card */
                box-sizing: border-box; /* Ensure padding is included in the width calculation */
            }

        }

        /* --- Hero Section Layout --- */
        /* This creates a full-width, side-by-side layout for the hero section with text on the left and video on the right. */
        .hero-section {
            width: 100%;
            max-width: 1600px;
            margin: 0 auto;
            padding: 2rem;
            box-sizing: border-box;
            display: grid;
            grid-template-columns: 1fr 400px;
            align-items: flex-start;
            gap: 3rem;
            min-height: 70vh;
        }

        .hero-container {
            display: flex;
            align-items: center;
            min-width: 0;
            transition: all 0.3s ease;
            transform-style: preserve-3d;
            background: linear-gradient(135deg, #fdf2f4 0%, #f8f9fa 50%, #e3f2fd 100%);
            padding: 4rem 5%;
            box-sizing: border-box;
            gap: 3rem;
            border-radius: 20px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.1);
            position: relative;
            overflow: hidden;
        }
        .hero-container::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(194,24,91,0.05) 0%, transparent 70%);
            animation: heroGlow 8s ease-in-out infinite;
        }
        .hero-container::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            border: 2px solid transparent;
            border-radius: 20px;
            background: linear-gradient(45deg, rgba(194,24,91,0.3), rgba(102,126,234,0.3), rgba(240,147,251,0.3), rgba(194,24,91,0.3)) border-box;
            -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
            -webkit-mask-composite: xor;
            mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
            mask-composite: exclude;
            animation: borderRotate 8s linear infinite;
        }
        
        .hero-container .light-beam-1,
        .hero-container .light-beam-2,
        .hero-container .light-beam-3 {
            position: absolute;
            width: 1px;
            height: 200px;
            background: linear-gradient(0deg, transparent, rgba(194,24,91,0.8), transparent);
            pointer-events: none;
        }
        
        .hero-container .light-beam-1 {
            top: -100px;
            left: 20%;
            animation: beam1 6s ease-in-out infinite;
        }
        
        .hero-container .light-beam-2 {
            top: -100px;
            right: 30%;
            background: linear-gradient(0deg, transparent, rgba(102,126,234,0.8), transparent);
            animation: beam2 8s ease-in-out infinite 2s;
        }
        
        .hero-container .light-beam-3 {
            bottom: -100px;
            left: 60%;
            background: linear-gradient(0deg, transparent, rgba(240,147,251,0.8), transparent);
            animation: beam3 7s ease-in-out infinite 4s;
        }
        
        @keyframes borderRotate {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }
        
        @keyframes beam1 {
            0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0; }
            25% { opacity: 1; }
            50% { transform: translateY(300px) rotate(15deg); opacity: 0.8; }
            75% { opacity: 1; }
        }
        
        @keyframes beam2 {
            0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0; }
            25% { opacity: 0.8; }
            50% { transform: translateY(350px) rotate(-10deg); opacity: 1; }
            75% { opacity: 0.6; }
        }
        
        @keyframes beam3 {
            0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0; }
            25% { opacity: 0.6; }
            50% { transform: translateY(-300px) rotate(8deg); opacity: 1; }
            75% { opacity: 0.8; }
        }
        @keyframes heroGlow {
            0%, 100% { transform: rotate(0deg) scale(1); }
            50% { transform: rotate(180deg) scale(1.1); }
        }

        .hero-text {
            flex: 1;
            text-align: left;
            padding-right: 2rem;
            position: relative;
            z-index: 2;
        }
        .hero-text h1 {
            font-size: 2.8rem !important;
            font-weight: 900 !important;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%) !important;
            -webkit-background-clip: text !important;
            -webkit-text-fill-color: transparent !important;
            background-clip: text !important;
            background-size: 300% 300% !important;
            margin-bottom: 1.5rem !important;
            line-height: 1.1 !important;
            letter-spacing: -0.03em !important;
            text-shadow: 0 8px 32px rgba(102, 126, 234, 0.4) !important;
            animation: gradientShift 4s ease-in-out infinite, titleFloat 6s ease-in-out infinite !important;
            position: relative !important;
            z-index: 2 !important;
        }
        
        .hero-text h1::before {
            content: attr(data-text) !important;
            position: absolute !important;
            top: 0 !important;
            left: 0 !important;
            right: 0 !important;
            bottom: 0 !important;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%) !important;
            -webkit-background-clip: text !important;
            -webkit-text-fill-color: transparent !important;
            background-clip: text !important;
            background-size: 300% 300% !important;
            filter: blur(12px) !important;
            opacity: 0.6 !important;
            z-index: -1 !important;
            animation: gradientShift 4s ease-in-out infinite reverse !important;
        }
        
        @keyframes gradientShift {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }
        
        @keyframes titleFloat {
            0%, 100% {
                transform: translateY(0px) scale(1);
                filter: brightness(1) saturate(1);
            }
            50% {
                transform: translateY(-8px) scale(1.02);
                filter: brightness(1.1) saturate(1.2);
            }
        }
        .hero-text p {
            font-size: 1.2rem !important;
            line-height: 1.7 !important;
            color: #4a5568 !important;
            margin-bottom: 2rem !important;
            font-weight: 500 !important;
            opacity: 0.9 !important;
            text-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
        }

        .hero-text h1 {
            /* Add a smooth transition for the text change */
            transition: opacity 0.4s ease-in-out;
        }

        .hero-video {
            flex: 1;
            display: flex;
            justify-content: flex-end;
            align-items: center;
            position: relative;
            z-index: 2;
        }
        .hero-video video {
            width: 100%;
            max-width: 600px;
            height: auto;
            border-radius: 20px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.15);
            border: 3px solid rgba(255,255,255,0.8);
            transition: all 0.3s ease;
        }
        .hero-video video:hover {
            transform: scale(1.02);
            box-shadow: 0 25px 80px rgba(0,0,0,0.2);
        }

        .card-stack-container {
            display: flex !important;
            flex-direction: column !important;
            gap: 0 !important;
            width: 280px !important;
            padding-top: 2rem !important;
        }

        /* --- Promo Cards Layout (Desktop) --- */
        .card-stack-container .card {
            position: static !important;
            transform: none !important;
            width: 200px !important;
            height: 200px !important;
            background: #fff !important;
            border-radius: 12px !important;
            box-shadow: 0 4px 15px rgba(0,0,0,0.08) !important;
            padding: 1.5rem !important;
            text-align: center !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            z-index: auto !important;
            overflow: hidden !important;
            margin-bottom: -50px !important;
            background-size: cover !important;
            background-position: center !important;
            transition: all 0.3s ease !important;
            perspective: 1000px !important;
        }
        .card-stack-container .card-2,
        .card-stack-container .card-4 {
            margin-left: 40px !important;
        }
        .card-stack-container .card:hover {
            transform: translateY(-10px) rotateX(5deg) !important;
            box-shadow: 0 15px 30px rgba(0,0,0,0.2) !important;
            z-index: 10 !important;
        }
        .card-stack-container .card::before {
            content: '' !important;
            position: absolute !important;
            top: 0 !important;
            left: 0 !important;
            right: 0 !important;
            bottom: 0 !important;
            background: rgba(0,0,0,0.4) !important;
            border-radius: 12px !important;
            z-index: 1 !important;
        }
        .card-stack-container .card-content-promo {
            position: relative !important;
            z-index: 2 !important;
            color: white !important;
        }
        .card-stack-container .card-1 {
            background-image: url('https://images.unsplash.com/photo-1607083206869-4c7672e72a8a?w=400') !important;
        }
        .card-stack-container .card-2 {
            background-image: url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?w=400') !important;
        }
        .card-stack-container .card-3 {
            background-image: url('https://images.unsplash.com/photo-1578662996442-48f60103fc96?w=400') !important;
            animation: animeSlideshow 6s infinite !important;
        }
        .card-stack-container .card-4 {
            background-image: url('https://images.unsplash.com/photo-1540039155733-5bb30b53aa14?w=400') !important;
        }
        .card-stack-container .card-5 {
            background-image: url('https://images.unsplash.com/photo-1434030216411-0b793f4b4173?w=400') !important;
        }
        @keyframes animeSlideshow {
            0%, 33% { background-image: url('https://images.unsplash.com/photo-1578662996442-48f60103fc96?w=400') !important; }
            34%, 66% { background-image: url('https://images.unsplash.com/photo-1613376023733-0a73315d9b06?w=400') !important; }
            67%, 100% { background-image: url('https://images.unsplash.com/photo-1606107557195-0e29a4b5b4aa?w=400') !important; }
        }
        .card-stack-container .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.12);
        }

        .card-content-promo {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.5rem;
            position: relative;
        }
        .card-content-promo h3 {
            font-size: 0.9rem;
            margin: 0;
        }
        .card-content-promo p {
            font-size: 0.7rem;
            margin: 0;
            line-height: 1.3;
        }
        .card-content-promo .fas {
            font-size: 1.8rem !important;
            color: #c2185b !important;
            position: static !important;
            transform: none !important;
            z-index: auto !important;
        }

        /* --- Consistent Content Width Wrapper --- */
        /* This rule ensures that the content inside full-bleed sections
           aligns perfectly with the other constrained sections on the page. */
        .carousel-container,
        .info-card-container,
        .newsletter-content {
            max-width: 1400px;
            margin-left: auto;
            margin-right: auto;
            padding-left: 2rem;
            padding-right: 2rem;
            box-sizing: border-box;
        }

        .card-content-promo .fas { font-size: 2.5rem; color: #d6336c; }
        .card-content-promo h3 { margin: 0; font-size: 1.2rem; font-weight: 600; }
        .card-content-promo p { margin: 0; font-size: 0.9rem; color: #666; line-height: 1.5; }

        .card-row-mobile {
            display: none; /* Initially hidden */
        }

        /* --- Mobile & Tablet Responsive Styles --- */
        @media (max-width: 1024px) {
            /* --- Hero Section Full Width with Overlapping Cards --- */
            .hero-section {
                position: relative !important;
                display: block !important;
                padding: 0 1rem !important;
            }
            .hero-container {
                width: 100% !important;
                flex-direction: column !important;
                text-align: center !important;
                padding: 2rem 1rem !important;
                margin-right: 0 !important;
            }
            .hero-text {
                padding-right: 0;
                text-align: center;
            }
            .hero-video {
                justify-content: center !important;
                margin-bottom: 1rem !important;
            }
            .hero-video video {
                max-width: 250px !important;
            }
        }

        /* --- Hub Section Spacing --- */
        .hub-section {
            /* Center the section container like other content blocks */
            width: 100%; /* Use percentage to avoid vw-related overflow */
            max-width: 1400px;
            margin: -2rem auto 0; /* Negative top margin to pull up */
            padding: 0 2rem; /* Add horizontal padding for smaller viewports */
            box-sizing: border-box; /* Include padding in the width calculation */

            /* Arrange hub cards inside */
            display: flex;
            justify-content: flex-start; /* Position cards to the left on desktop to avoid clashing with info cards */
            align-items: center; /* Align vertically */
            gap: 2rem; /* Space between cards */
            flex-wrap: wrap; /* Allow cards to wrap on smaller screens if needed */
        }

        .hub-card {
            flex-basis: 420px;      /* Reduced width to make cards smaller */
            padding: 2rem;          /* Adjusted padding for a more balanced look */
            text-align: center;     /* Ensure content inside is centered */
        }
        

        .product-showcase-section {
            padding: 4rem 0; /* Vertical padding only, horizontal is on inner container */
            background: linear-gradient(180deg, #fdf2f4 0%, #ffffff 100%);
        }

        .info-card-section {
            padding: 4rem 0;
        }

        .newsletter-section {
            padding: 4rem 0;
        }

        .profile-info-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 1rem;
            text-align: left;
            margin-bottom: 1.5rem;
            font-size: 0.95rem;
        }
        .profile-info-item strong {
            color: #555;
            display: block;
            margin-bottom: 4px;
        }
        .admin-dashboard-link {
            display: block;
            margin-bottom: 1rem;
            padding: 10px;
            background-color: #f0f0f0;
            color: #c2185b;
            border-radius: 8px;
            text-decoration: none;
            font-weight: bold;
        }
        .product-actions {
            padding: 0 1rem 1rem;
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }
        .add-to-cart, .buy-now {
            padding: 10px;
            font-size: 0.9rem;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            width: 100%;
            text-align: center;
            transition: background-color 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
        }
        .add-to-cart {
            background-color: #ff7f50;
        }
        .add-to-cart:hover {
            background-color: #ff4500;
        }
        .buy-now {
            background-color: #28a745;
        }
        .buy-now:hover {
            background-color: #218838;
        }
        /* Mini Notification for Add to Cart */
        .mini-notification {
            position: fixed;
            bottom: 20px;
            right: -350px; /* Start off-screen */
            width: 320px;
            background-color: #fff;
            color: #333;
            padding: 15px;
            border-radius: 8px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
            display: flex;
            align-items: center;
            gap: 15px;
            transition: right 0.5s ease-in-out;
            z-index: 2000; /* High z-index */
            border-left: 5px solid #28a745;
        }
        .mini-notification.show {
            right: 20px; /* Slide in */
        }
        .mini-notification img {
            width: 50px;
            height: 50px;
            object-fit: cover;
            border-radius: 4px;
        }
        .mini-notification-content p {
            margin: 0;
            font-size: 0.9rem;
            font-weight: bold;
        }
        .mini-notification-content small {
            font-size: 0.8rem;
            color: #28a745; /* Green for success */
        }
        /* Cart Popup Item Styles */
        .cart-item {
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 10px 0;
            border-bottom: 1px solid #eee;
        }
        .cart-item:last-child {
            border-bottom: none;
        }
        .cart-item-image {
            width: 60px;
            height: 60px;
            object-fit: cover;
            border-radius: 4px;
        }
        .cart-item-details { flex-grow: 1; }
        .cart-item-name { font-weight: bold; margin: 0 0 5px 0; }
        .cart-item-price { color: #555; margin: 0; }
        .cart-item-quantity-input { width: 50px; text-align: center; border: 1px solid #ccc; border-radius: 4px; padding: 5px; }
        .cart-item-remove { background: none; border: none; font-size: 1.5rem; color: #999; cursor: pointer; padding: 0 10px; }
        .cart-item-remove:hover { color: #d33; }

        /* Preloader Styles */
        #preloader {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #fff; /* A clean white background */
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 9999; /* Ensure it's on top of everything */
            transition: opacity 0.75s ease, visibility 0.75s ease;
        }

        #preloader.hidden {
            opacity: 0;
            visibility: hidden;
        }

        .throbbing-logo {
            width: 120px; /* Adjust size as needed */
            animation: throbbing 1.5s infinite ease-in-out;
        }

        @keyframes throbbing {
            0%, 100% {
                transform: scale(1);
            }
            50% {
                transform: scale(1.15);
            }
        }


        /* --- Product Showcase & Carousel --- */
        .carousel-container {
            position: relative;
        }

        /* --- UNIFIED PRODUCT GRID LAYOUT --- */
        /* This will apply to all product grids on all pages for consistency. */
        .product-showcase-section .product-grid {
            display: grid !important;
            /* Default to a responsive grid for tablets and small desktops */
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
            gap: 1.5rem;
        }

        /* On larger screens, enforce a strict 3-column layout */
        @media (min-width: 1200px) {
            .product-showcase-section .product-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        /* On mobile, switch to a flex-based carousel */
        @media (max-width: 768px) {
            .product-showcase-section .product-grid {
                display: flex !important;
                flex-wrap: nowrap;
            }
        }

        .product-showcase-section .product-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(0,0,0,0.12);
        }

        /* Image container on the left */
        .product-showcase-section .product-card .product-image-container {
            position: relative;
            width: 40%;
            height: 100%;
        }

        .product-showcase-section .product-card .product-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        /* --- Quick View Button (Matched from product-page.css) --- */
        .product-showcase-section .product-card .quick-view-btn {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            color: white;
            border: none;
            padding: 10px;
            cursor: pointer;
            transform: translateY(100%);
            transition: transform 0.3s ease, opacity 0.3s ease;
            font-weight: 600;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            opacity: 0;
        }

        .product-showcase-section .product-card .product-image-container:hover .quick-view-btn {
            transform: translateY(0);
            opacity: 1;
        }

        /* Wishlist button styling */
        .product-showcase-section .product-card .wishlist-btn {
            position: absolute;
            top: 50px;
            right: 10px;
            background: rgba(255, 255, 255, 0.9);
            border: 1px solid #ddd;
            border-radius: 50%;
            width: 35px;
            height: 35px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s ease;
            font-size: 14px;
            color: #666;
        }

        .product-showcase-section .product-card .wishlist-btn:hover,
        .product-showcase-section .product-card .wishlist-btn.active {
            background: #ff4757;
            color: white;
            transform: scale(1.1);
        }

        /* Content area on the right */
        .product-showcase-section .product-card .product-card-content {
            width: 60%;
            padding: 1rem;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .product-showcase-section .product-card .product-card-link h3 {
            font-size: 0.9rem;
            font-weight: 600;
            color: #333;
            margin: 0 0 0.5rem 0;
            line-height: 1.2;
            transition: color 0.2s ease;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .product-showcase-section .product-card .product-card-link:hover h3 {
            color: #c2185b;
        }

        .product-showcase-section .product-card .price {
            font-size: 1.2rem;
            font-weight: bold;
            color: #c2185b;
            margin-bottom: 0.5rem;
        }

        .product-showcase-section .product-card .product-rating {
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        /* Product actions styling - positioned to the right and centered */
        .product-showcase-section .product-card .product-actions {
            position: absolute;
            right: 1rem;
            top: 50%;
            transform: translateY(-50%);
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
            width: 90px;
        }

        /* Combined button styles for a consistent look */
        .product-showcase-section .product-card .add-to-cart,
        .product-showcase-section .product-card .buy-now {
            padding: 8px 12px;
            color: white;
            border: none;
            border-radius: 4px;
            font-size: 0.8rem;
            font-weight: 500;
            cursor: pointer;
            transition: background-color 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
            width: 100%;
        }

        .product-showcase-section .product-card .add-to-cart {
            background-color: #c2185b; /* Theme color for primary action */
        }
        .product-showcase-section .product-card .add-to-cart:hover {
            background-color: #a91650;
        }

        .product-showcase-section .product-card .buy-now {
            background-color: #28a745; /* Green for secondary action */
        }

        .product-showcase-section .product-card .buy-now:hover {
            background-color: #218838;
        }

        /* Mobile responsive */
        @media (max-width: 768px) {
            .product-showcase-section .product-card {
                flex-direction: column;
                height: auto;
            }

            .product-showcase-section .product-card .product-image-container {
                flex: none;
                width: 100%;
                height: 150px;
            }

            .product-showcase-section .product-card .product-card-content {
                padding-bottom: 3rem;
            }

            .product-showcase-section .product-card .product-actions {
                position: static;
                transform: none;
                flex-direction: row;
                justify-content: center;
                margin-top: auto;
                width: 100%;
            }

            .product-showcase-section .product-card .product-rating {
                justify-content: flex-start;
            }
        }



        .product-grid-wrapper {
            /* On desktop, this wrapper doesn't need special styles */
            padding: 1rem 0;
            cursor: grab;
            cursor: -webkit-grab;
            user-select: none; /* Prevent text selection while dragging */
        }

        .product-grid-wrapper.active {
            cursor: grabbing;
            cursor: -webkit-grabbing;
        }

        /* Hide scrollbars by default */
        .product-grid-wrapper::-webkit-scrollbar { display: none; }
        .product-grid-wrapper { -ms-overflow-style: none; scrollbar-width: none; }

        .carousel-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            z-index: 10;
            background-color: rgba(255, 255, 255, 0.9);
            border: 1px solid #e0e0e0;
            border-radius: 50%;
            width: 45px;
            height: 45px;
            font-size: 1.2rem;
            color: #333;
            cursor: pointer;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            transition: all 0.2s ease;
            display: none; /* Hidden by default, JS shows them on mobile if needed */
            justify-content: center;
            align-items: center;
        }

        .carousel-btn:hover {
            background-color: #fff;
            transform: translateY(-50%) scale(1.08);
            color: #c2185b;
        }

        /* Mobile & Tablet: Carousel Layout */
        @media (max-width: 1023px) {
            .product-grid-wrapper {
                overflow-x: auto;
                scroll-behavior: smooth;
            }

            .product-showcase-section .product-grid {
                display: flex;
                flex-wrap: nowrap;
                gap: 1.5rem;
                padding-bottom: 1rem;
            }

            /* Set card width for mobile carousel to show ~1.5 to 2 cards */
            .product-showcase-section .upc-card {
                flex: 0 0 60%; /* Each card takes up 60% of the container width */
                width: 60%;
                max-width: 280px; /* Add a max-width to prevent them being too big on tablets */
            }
        }

        /* --- Quick View Button Styles --- */
        .product-showcase-section .quick-view-btn {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            color: white;
            border: none;
            padding: 10px;
            cursor: pointer;
            transform: translateY(100%);
            transition: transform 0.3s ease, opacity 0.3s ease;
            font-weight: 600;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            opacity: 0;
        }

        .product-showcase-section .product-image-container:hover .quick-view-btn {
            transform: translateY(0);
            opacity: 1;
        }
        


        /* --- Quick View Modal Styles --- */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(25, 25, 30, 0.7);
            backdrop-filter: blur(5px);
            display: flex;
            justify-content: center;
            align-items: center;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
            z-index: 1000;
        }

        .modal-overlay.visible {
            opacity: 1;
            visibility: visible;
        }

        .modal-content.quick-view-modal {
            background: #ffffff;
            border-radius: 12px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
            width: 90%;
            max-width: 900px;
            max-height: 90vh;
            overflow: hidden;
            position: relative;
            transform: scale(0.95) translateY(10px);
            transition: transform 0.3s ease, opacity 0.3s ease;
            opacity: 0;
            padding: 0;
        }

        .modal-overlay.visible .modal-content.quick-view-modal {
            transform: scale(1) translateY(0);
            opacity: 1;
        }

        .modal-close-btn {
            position: absolute;
            top: 15px;
            right: 20px;
            background: none;
            border: none;
            font-size: 2rem;
            color: #666;
            cursor: pointer;
            z-index: 1001;
            transition: color 0.2s ease;
        }

        .modal-close-btn:hover {
            color: #c2185b;
        }

        #quick-view-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2rem;
            padding: 2.5rem;
            max-height: 90vh;
            overflow-y: auto;
        }

        .quick-view-image-container img {
            width: 100%;
            height: auto;
            max-height: 450px;
            object-fit: contain;
            border-radius: 8px;
        }

        .quick-view-details h2 { margin-top: 0; font-size: 2rem; color: #333; }
        .quick-view-details .price { font-size: 1.8rem; font-weight: bold; color: #c2185b; margin: 0.5rem 0 1rem; }
        .quick-view-details .description { font-size: 0.95rem; line-height: 1.6; color: #555; margin-bottom: 1.5rem; }
        .quick-view-details .view-full-details-btn { display: inline-block; margin-top: 1.5rem; color: #c2185b; text-decoration: none; font-weight: 600; }

        @media (max-width: 768px) {
            #quick-view-content {
                grid-template-columns: 1fr;
                padding: 1.5rem;
            }
        }

        /* --- Accessibility Improvements --- */

        /* 1. Visually-hidden class for screen-reader-only text */
        .sr-only {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }

        /* 2. Styles for accessible star ratings */
        .product-rating .stars {
            color: #d1d1d1; /* Color for empty stars */
        }
        .product-rating .stars .fa-star.filled {
            color: #ffc107; /* Gold color for filled stars */
        }

        /* 3. Clear, consistent focus indicators for keyboard navigation */
        a:focus-visible,
        button:focus-visible,
        input:focus-visible {
            outline: 3px solid #005fcc;
            outline-offset: 2px;
            box-shadow: 0 0 0 4px rgba(0, 95, 204, 0.4);
        }
        /* Ensure focus outline on wishlist button is not cut off */
        .product-image-container .wishlist-btn:focus-visible {
            outline-offset: -2px;
        }

        /* --- Seller Badge Styles --- */
        .seller-badges {
            display: flex;
            gap: 0.5rem;
            padding: 0 1rem; /* Align with product details padding */
            margin-bottom: 0.75rem; /* Space below badges before actions */
            min-height: 24px; /* Reserve space to prevent layout shift */
        }

        .badge {
            position: relative; /* For tooltip positioning */
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            color: #fff;
            font-size: 0.8rem;
        }

       

/* --- Conversation List in Profile Popup --- */
#my-conversations-list {
    padding: 0;
    margin: 0;
    list-style: none;
    max-height: 400px; /* Limit height and allow scrolling */
    overflow-y: auto;
}

.conversation-list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s ease;
}

.conversation-list-item:last-child {
    border-bottom: none;
}

.conversation-list-item:hover {
    background-color: #f9f9f9;
}

.conversation-item-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.conversation-item-details {
    flex-grow: 1;
    min-width: 0; /* Prevents text from overflowing */
}

.conversation-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.conversation-item-user { font-weight: 600; color: #333; }
.conversation-item-product { font-size: 0.8rem; color: #888; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100px; }
.conversation-item-last-message { font-size: 0.9rem; color: #666; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; }
.conversation-item-last-message.unread { font-weight: bold; color: #111; }
.notification-badge { background-color: #e91e63; color: white; border-radius: 50%; padding: 2px 6px; font-size: 0.7rem; font-weight: bold; margin-left: 8px; display: none; }
.notification-badge.visible { display: inline-block; }

/* --- Unread Message Preview Tooltip --- */
.profile-link-wrapper {
    position: relative;
    display: flex; /* Use flex to align the link properly */
    align-items: center;
    justify-content: center;
    height: 100%; /* Ensures the wrapper fills the LI, fixing vertical alignment with other nav items. */
}

.message-preview-tooltip {
    position: absolute;
    bottom: calc(100% + 12px); /* Position above the profile link with a gap */
    left: 50%;
    transform: translateX(-50%) translateY(10px); /* Start slightly lower for animation */
    width: 280px;
    background: #2c3e50; /* A modern dark blue */
    color: #ecf0f1;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
    z-index: 1010;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* The little arrow pointing down */
.message-preview-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -8px;
    border-width: 8px;
    border-style: solid;
    border-color: #2c3e50 transparent transparent transparent;
}

/* Show the tooltip on hover of the parent wrapper when it has the 'has-unread' class */
.profile-link-wrapper.has-unread:hover .message-preview-tooltip {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0); /* Move it up into place */
}



.tooltip-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(236, 240, 241, 0.2);
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
}

.tooltip-header .fas {
    color: #3498db; /* A nice blue for the icon */
}

.tooltip-body {
    line-height: 1.5;
}

.tooltip-body strong {
    color: #fff;
    font-weight: 600;
}

.tooltip-body p {
    margin: 4px 0 0;
    font-size: 0.9rem;
    color: #bdc3c7; /* A lighter grey for the snippet */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Modernized Cart & Wishlist Counters (No Dots) --- */
.cart-counter, .wishlist-counter {
    /* The user requested to remove the number counters entirely. */
    display: none !important;
}

/* --- Floating Profile Tab --- */
.profile-tabs {
    position: relative;
    padding-top: 10px; /* Make space for the tab to float up into */
    margin-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.profile-tab-btn {
    position: relative;
    bottom: 0;
    transition: all 0.25s ease-out;
}

.profile-tab-btn.active {
    bottom: -1px; /* Align with the bottom border */
    transform: translateY(-10px); /* Float up */
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-bottom: 1px solid #fff; /* Hide bottom border to blend with content area */
    border-radius: 8px 8px 0 0;
    box-shadow: 0 -5px 10px -5px rgba(0, 0, 0, 0.1);
}

/* --- Profile Popup: Activity Feed Styles --- */
.activity-header {
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 1.5rem 0 0.75rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.activity-header:first-child {
    margin-top: 0;
}
.activity-header .fas {
    color: #c2185b;
}

.activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 250px;
    overflow-y: auto;
}

.activity-list .activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid #f5f5f5;
}
.activity-list .activity-item:last-child {
    border-bottom: none;
}

.activity-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}
.activity-item-details { flex-grow: 1; min-width: 0; }
.activity-item-name { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.activity-item-price { font-size: 0.85rem; color: #666; }


/* --- Profile Popup: My Questions List --- */
#my-questions-list {
    text-align: left;
}

.my-question-item {
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}
.my-question-item:last-child {
    border-bottom: none;
}
.my-question-item:hover {
    background-color: #f9f9f9;
}

.my-question-text {
    font-size: 0.95rem;
    color: #333;
    margin: 0 0 0.5rem 0;
    line-height: 1.5;
}

.my-question-meta {
    font-size: 0.8rem;
    color: #888;
}

/* Generic list item styles for loading/empty/error states */
#my-questions-list .loading-item,
#my-questions-list .empty-item,
#my-questions-list .error-item {
    padding: 2rem 1rem;
    text-align: center;
    font-style: italic;
    color: #888;
    border-bottom: none;
}
#my-questions-list .error-item {
    color: #d33;
    font-style: normal;
    font-weight: 500;
}

/* --- Conversation Image Upload --- */
.message-form {
    position: relative; /* For preview container positioning */
    align-items: stretch; /* Make children fill height */
}

.image-upload-btn {
    padding: 0 12px;
    cursor: pointer;
    color: #888;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}
.image-upload-btn:hover {
    color: #c2185b;
}

.image-preview-container {
    background: #f1f3f5;
    padding: 10px 15px;
    border-top: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 10px;
}
#image-preview {
    max-height: 80px;
    max-width: 120px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #ddd;
}
#remove-preview-btn {
    background: #333;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 16px;
    line-height: 24px;
    cursor: pointer;
}

/* Style for image messages in the chat */
.message-bubble .message-image {
    max-width: 100%;
    max-height: 250px;
    border-radius: 12px;
    cursor: pointer;
    object-fit: cover;
    margin-bottom: 5px; /* Space between image and caption */
}
.message-bubble .caption-text {
    font-size: 0.9rem;
    color: #555;
    margin-top: 0;
}

/* --- Conversation Audio Recording --- */
.audio-record-btn {
    background: none;
    border: none;
    padding: 0 12px;
    cursor: pointer;
    color: #888;
    font-size: 1.2rem;
    transition: color 0.2s ease;
}
.audio-record-btn:hover {
    color: #c2185b;
}

.audio-recording-ui {
    background: #f1f3f5;
    padding: 10px 15px;
    border-top: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #c2185b;
}
.recording-indicator {
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
#recording-timer {
    font-weight: 600;
}

/* --- Audio Player in Message Bubble --- */
.message-bubble .message-audio {
    width: 250px;
    height: 40px;
}

/* --- Delete Message Button --- */
.message-bubble.sent {
    position: relative;
}
.delete-message-btn {
    position: absolute;
    left: -35px;
    top: 50%;
    transform: translateY(-50%);
    background: #f1f3f5;
    border: 1px solid #dee2e6;
    color: #868e96;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 14px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.message-bubble.sent:hover .delete-message-btn {
    opacity: 1;
}
.delete-message-btn:hover {
    background: #e9ecef;
    color: #dc3545;
}

/* --- Slide Up to Record Indicator --- */
.slide-up-indicator {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(51, 51, 51, 0.9);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.slide-up-indicator.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-10px);
}

.slide-up-indicator .fa-chevron-up {
    animation: bounce-up 1.5s infinite;
}

@keyframes bounce-up {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-6px); }
    60% { transform: translateY(-3px); }
}

/* --- Recently Viewed Section & Card Styles --- */

/* Ensure the recently viewed grid is always a single scrollable row */
#recently-viewed-section .product-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.5rem;
    padding-bottom: 1rem;
    /* The wrapper handles the scrolling */
}

.recently-viewed-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex: 0 0 180px; /* Give it a fixed width for the carousel */
    width: 180px;
}

.recently-viewed-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.recently-viewed-image-container {
    width: 100%;
    height: 150px; /* A bit shorter than the width */
    background-color: #f9f9f9;
}

.recently-viewed-image-container .product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recently-viewed-details { padding: 0.75rem; text-align: left; }
.recently-viewed-details .product-name { font-size: 0.9rem; font-weight: 600; color: #333; margin: 0 0 0.25rem 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recently-viewed-details .product-price { font-size: 1rem; font-weight: bold; color: #c2185b; }


/* --- Typing & Read Receipt Styles --- */
.status-indicator {
    text-align: center;
    padding: 5px 0;
    font-size: 0.85rem;
    color: #888;
    height: 20px; /* Reserve space to prevent layout shifts */
    transition: opacity 0.3s ease;
}

.typing-dots span {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #aaa;
    border-radius: 50%;
    animation: typing-bounce 1.2s infinite ease-in-out;
    margin: 0 1px;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1.0); }
}

.seen-receipt {
    font-size: 0.75rem;
    color: #888;
    text-align: right;
    margin-top: 4px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

/* --- Emoji Reactions --- */
.message-bubble {
    position: relative; /* Needed for positioning the reaction button */
}

.reaction-btn {
    position: absolute;
    top: -15px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.message-bubble:hover .reaction-btn {
    opacity: 1;
}

.message-bubble.sent .reaction-btn { right: -10px; }
.message-bubble.received .reaction-btn { left: -10px; }

.reactions-container {
    display: flex;
    gap: 5px;
    margin-top: 8px;
    justify-content: flex-end; /* Align to the right for sent messages */
}

.message-bubble.received .reactions-container {
    justify-content: flex-start; /* Align to the left for received messages */
}

.reaction-chip {
    background-color: #f1f3f5;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 3px 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.reaction-chip.user-reacted {
    background-color: #e0f3ff;
    border-color: #a5d8ff;
}

emoji-picker {
    position: absolute;
    z-index: 10;
}

/* --- Emoji Reactions --- */
.message-bubble {
    position: relative; /* Needed for positioning the reaction button */
}

.reaction-btn {
    position: absolute;
    top: -15px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.message-bubble:hover .reaction-btn {
    opacity: 1;
}

.message-bubble.sent .reaction-btn { right: -10px; }
.message-bubble.received .reaction-btn { left: -10px; }

.reactions-container {
    display: flex;
    gap: 5px;
    margin-top: 8px;
    justify-content: flex-end; /* Align to the right for sent messages */
}

.message-bubble.received .reactions-container {
    justify-content: flex-start; /* Align to the left for received messages */
}

.reaction-chip {
    background-color: #f1f3f5;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 3px 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.reaction-chip.user-reacted {
    background-color: #e0f3ff;
    border-color: #a5d8ff;
}

emoji-picker {
    position: absolute;
    z-index: 10;
}

/* HOMEPAGE PRODUCT CARD FIXES */
.product-showcase-section .product-page-card .add-to-cart,
.product-showcase-section .product-page-card .buy-now {
    width: 140px !important;
    padding: 8px 16px !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    transition: all 0.3s ease !important;
    border: none !important;
    cursor: pointer !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    margin: 0.25rem 0 !important;
}

.product-showcase-section .product-page-card .add-to-cart {
    background: linear-gradient(135deg, #c2185b, #e91e63) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(194, 24, 91, 0.3) !important;
}

.product-showcase-section .product-page-card .add-to-cart:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(194, 24, 91, 0.4) !important;
    background: linear-gradient(135deg, #a91650, #c2185b) !important;
}

.product-showcase-section .product-page-card .buy-now {
    background: transparent !important;
    color: #c2185b !important;
    border: 2px solid #c2185b !important;
    box-shadow: 0 2px 10px rgba(194, 24, 91, 0.1) !important;
}

.product-showcase-section .product-page-card .buy-now:hover {
    background: #c2185b !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(194, 24, 91, 0.3) !important;
}

.product-showcase-section .product-page-card .product-name {
    text-align: center !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    color: #333 !important;
    margin: 0.5rem 0 !important;
}

.product-showcase-section .product-page-card .product-price {
    text-align: center !important;
    font-weight: bold !important;
    font-size: 1.2rem !important;
    color: #c2185b !important;
    margin: 0.5rem 0 !important;
}

.product-showcase-section .product-page-card .product-seller {
    text-align: center !important;
    font-size: 0.9rem !important;
    color: #666 !important;
    margin: 0.25rem 0 !important;
}
/* MOBILE NAVBAR AND BROADCAST FIXES */
@media (max-width: 768px) {
    .navbar, .secondary-header {
        max-width: 100vw !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .search-container {
        max-width: calc(100vw - 120px) !important;
        width: 100% !important;
    }
    
    .filter-popup {
        max-width: calc(100vw - 40px) !important;
        width: calc(100vw - 40px) !important;
        left: 20px !important;
        right: 20px !important;
        transform: none !important;
    }
    
    .filter-popup.visible {
        transform: none !important;
    }
    
    #mobile-broadcast-panel {
        max-width: calc(100vw - 40px) !important;
        width: calc(100vw - 40px) !important;
        left: 20px !important;
        right: 20px !important;
    }
}

/* BUTTON SIZE AND COLOR FIXES */
.product-showcase-section .product-page-card .add-to-cart,
.product-showcase-section .product-page-card .buy-now {
    width: 100px !important;
    padding: 12px 8px !important;
    height: 40px !important;
    font-size: 0.8rem !important;
}

.product-showcase-section .product-page-card .add-to-cart {
    background: linear-gradient(135deg, #ff6b35, #f7931e) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3) !important;
}

.product-showcase-section .product-page-card .add-to-cart:hover {
    background: linear-gradient(135deg, #e55a2b, #ff6b35) !important;
}

.product-showcase-section .product-page-card .buy-now {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3) !important;
}

.product-showcase-section .product-page-card .buy-now:hover {
    background: linear-gradient(135deg, #218838, #28a745) !important;
}
/* HOMEPAGE PRODUCT CARD CENTERING AND BUTTON FIXES */
@media (min-width: 1200px) {
    .product-showcase-section .product-page-card .card-top-content {
        display: flex !important;
        align-items: flex-start !important;
        justify-content: space-between !important;
        gap: 1rem !important;
        height: 100% !important;
    }
    
    .product-showcase-section .product-page-card .product-main-info {
        flex-grow: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: flex-start !important;
        text-align: left !important;
        height: 100% !important;
    }
    
    .product-showcase-section .product-page-card .product-actions {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 0.75rem !important;
        flex-shrink: 0 !important;
        width: 120px !important;
        height: 100% !important;
    }
}

/* MOBILE CENTERING */
@media (max-width: 1199px) {
    .product-showcase-section .product-page-card .product-details-wrapper {
        text-align: center !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .product-showcase-section .product-page-card .product-main-info {
        text-align: center !important;
        align-items: center !important;
    }
    
    .product-showcase-section .product-page-card .product-actions {
        align-items: center !important;
        justify-content: center !important;
        margin-top: 1rem !important;
    }
}

/* --- Specific Fixes for Small Mobile Screens (e.g., Tecno Camon 20) --- */
@media (max-width: 420px) {
    .contact-popup {
        width: calc(100vw - 10px) !important;
        max-width: calc(100vw - 10px) !important;
        left: 5px !important;
        right: 5px !important;
        padding: 0.5rem !important;
    }
    
    .contact-popup .social-links {
        flex-wrap: wrap !important;
        gap: 0.25rem !important;
    }
    
    .contact-popup .social-links a {
        min-width: 35px !important;
        font-size: 0.7rem !important;
        padding: 0.25rem !important;
    }
}

/* PREMIUM BUTTON STYLING */
.product-showcase-section .product-page-card .btn {
    padding: 12px 20px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    border: none !important;
    border-radius: 25px !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    min-height: 44px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    position: relative !important;
    overflow: hidden !important;
}

.product-showcase-section .product-page-card .btn::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent) !important;
    transition: left 0.5s !important;
}

.product-showcase-section .product-page-card .btn:hover::before {
    left: 100% !important;
}

.product-showcase-section .product-page-card .btn-primary {
    background: linear-gradient(135deg, #c2185b, #e91e63) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(194, 24, 91, 0.3) !important;
}

.product-showcase-section .product-page-card .btn-primary:hover {
    background: linear-gradient(135deg, #a91650, #c2185b) !important;
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 8px 25px rgba(194, 24, 91, 0.4) !important;
}

.product-showcase-section .product-page-card .btn-outline {
    background: transparent !important;
    color: #c2185b !important;
    border: 2px solid #c2185b !important;
    box-shadow: 0 2px 10px rgba(194, 24, 91, 0.1) !important;
}

.product-showcase-section .product-page-card .btn-outline:hover {
    background: #c2185b !important;
    color: white !important;
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 6px 20px rgba(194, 24, 91, 0.3) !important;
}

.product-showcase-section .product-page-card .btn:active {
    transform: translateY(-1px) scale(0.98) !important;
}

/* CONNECTED STAR RATING SYSTEM */
.product-showcase-section .product-rating {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin: 0.5rem 0 1rem 0 !important;
    justify-content: center !important;
}

.product-showcase-section .product-rating .stars {
    display: inline-block !important;
    font-size: 1rem !important;
    color: #ddd !important;
    position: relative !important;
}

.product-showcase-section .product-rating .stars::before {
    content: '★★★★★' !important;
    color: #ffc107 !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: var(--rating-width, 0%) !important;
    overflow: hidden !important;
    transition: width 0.3s ease !important;
}

.product-showcase-section .product-rating .stars .star {
    color: inherit !important;
}

.product-showcase-section .product-rating .rating-count {
    font-size: 0.8rem !important;
    color: #666 !important;
    font-weight: 500 !important;
}
/* MOBILE BROADCAST ASK BUTTON FIX */
@media (max-width: 768px) {
    #mobile-broadcast-panel .qa-form {
        padding: 0.75rem !important;
        margin: 0 !important;
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    #mobile-broadcast-panel .qa-list {
        padding-bottom: 70px !important;
    }
}
/* MOBILE BROADCAST ASK BUTTON COMPLETE FIX */
@media (max-width: 1024px) {
    #mobile-broadcast-panel {
        max-height: 60vh !important;
        overflow: hidden !important;
    }
    
    #mobile-broadcast-panel .chat-feed-panel {
        position: relative !important;
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    #mobile-broadcast-panel .qa-list {
        flex: 1 !important;
        overflow-y: auto !important;
        padding: 1rem !important;
        margin-bottom: 0 !important;
    }
    
    #mobile-broadcast-panel .qa-form {
        position: static !important;
        flex-shrink: 0 !important;
        padding: 1rem !important;
        margin: 0 !important;
        background: white !important;
        border-top: 1px solid #eee !important;
    }
}
/* BROADCAST PREVIEW TOOLTIP */
.broadcast-preview-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #2c3e50;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1020;
    pointer-events: none;
}

.broadcast-preview-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -4px;
    border-width: 4px;
    border-style: solid;
    border-color: #2c3e50 transparent transparent transparent;
}

.broadcast-preview-tooltip.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

.mobile-broadcast-toggle {
    position: relative;
}

.mobile-broadcast-toggle .broadcast-preview-tooltip {
    bottom: calc(100% + 12px);
}
/* MOBILE BROADCAST TOOLTIP REPLACES ICON */
@media (max-width: 1024px) {
    .mobile-broadcast-toggle .broadcast-preview-tooltip {
        position: static !important;
        transform: none !important;
        bottom: auto !important;
        left: auto !important;
        background: #c2185b !important;
        color: white !important;
        padding: 6px 10px !important;
        border-radius: 12px !important;
        font-size: 0.75rem !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
        box-shadow: 0 2px 8px rgba(194, 24, 91, 0.3) !important;
    }
    
    .mobile-broadcast-toggle .broadcast-preview-tooltip::after {
        display: none !important;
    }
}
/* PERMANENT BROADCAST TOOLTIP - NO ICON */
@media (max-width: 1024px) {
    .mobile-broadcast-toggle i {
        display: none !important;
    }
    
    .mobile-broadcast-toggle::after {
        content: 'Q&A';
        background: #c2185b;
        color: white;
        padding: 6px 12px;
        border-radius: 12px;
        font-size: 0.75rem;
        font-weight: 600;
        box-shadow: 0 2px 8px rgba(194, 24, 91, 0.3);
        display: flex;
        align-items: center;
        justify-content: center;
    }
}
/* COMPACT CENTERED FILTER POPUP */
.filter-popup {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 280px !important;
    max-width: 90vw !important;
    background: #fff !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15) !important;
    padding: 1rem !important;
    z-index: 1003 !important;
}

.filter-popup.visible {
    transform: translate(-50%, -50%) !important;
}

.filter-popup h4 {
    margin: 0 0 0.75rem 0 !important;
    font-size: 0.9rem !important;
    color: #c2185b !important;
    text-align: center !important;
    border-bottom: 1px solid #f0f0f0 !important;
    padding-bottom: 0.5rem !important;
}

.filter-section {
    margin-bottom: 0.75rem !important;
}

.filter-section h5 {
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin-bottom: 0.4rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
}

.category-filters, .star-filters {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.25rem !important;
}

.category-btn, .star-filter-btn {
    background-color: #f8f9fa !important;
    color: #495057 !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 12px !important;
    padding: 3px 8px !important;
    font-size: 0.65rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.category-btn:hover, .star-filter-btn:hover {
    background-color: #e9ecef !important;
    border-color: #ced4da !important;
}

.category-btn.active, .star-filter-btn.active {
    background-color: #c2185b !important;
    color: #fff !important;
    border-color: #c2185b !important;
    box-shadow: 0 1px 4px rgba(194, 24, 91, 0.3) !important;
}

.price-filter {
    margin-top: 0.5rem !important;
}

#price-slider {
    width: 100% !important;
    height: 4px !important;
    background: #e9ecef !important;
    border-radius: 2px !important;
    outline: none !important;
}

.price-label {
    text-align: right !important;
    margin-top: 0.25rem !important;
    font-size: 0.65rem !important;
    color: #555 !important;
    font-weight: 500 !important;
}

/* ADD MORE CATEGORIES */
.category-filters {
    max-height: 120px !important;
    overflow-y: auto !important;
}

.category-filters::-webkit-scrollbar {
    width: 3px !important;
}

.category-filters::-webkit-scrollbar-track {
    background: #f1f1f1 !important;
}

.category-filters::-webkit-scrollbar-thumb {
    background: #c2185b !important;
    border-radius: 2px !important;
}
/* MOBILE FILTER POPUP CENTERING AND COMPACTNESS */
@media (max-width: 768px) {
    .filter-popup {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        right: auto !important;
        transform: translate(-50%, -50%) !important;
        width: 250px !important;
        max-width: 85vw !important;
        background: #fff !important;
        border-radius: 6px !important;
        box-shadow: 0 8px 30px rgba(0,0,0,0.15) !important;
        padding: 0.75rem !important;
        z-index: 1003 !important;
    }

    .filter-popup.visible {
        transform: translate(-50%, -50%) !important;
    }

    .filter-popup h4 {
        margin: 0 0 0.5rem 0 !important;
        font-size: 0.75rem !important;
        color: #c2185b !important;
        text-align: center !important;
        border-bottom: 1px solid #f0f0f0 !important;
        padding-bottom: 0.25rem !important;
    }

    .filter-section {
        margin-bottom: 0.5rem !important;
    }

    .filter-section h5 {
        font-size: 0.6rem !important;
        font-weight: 600 !important;
        color: #333 !important;
        margin-bottom: 0.25rem !important;
        text-transform: uppercase !important;
        letter-spacing: 0.2px !important;
    }

    .category-filters, .star-filters {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 0.15rem !important;
        max-height: 80px !important;
        overflow-y: auto !important;
    }

    .category-btn, .star-filter-btn {
        background-color: #f8f9fa !important;
        color: #495057 !important;
        border: 1px solid #dee2e6 !important;
        border-radius: 8px !important;
        padding: 2px 6px !important;
        font-size: 0.55rem !important;
        font-weight: 500 !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
        line-height: 1.2 !important;
    }

    .category-btn:hover, .star-filter-btn:hover {
        background-color: #e9ecef !important;
        border-color: #ced4da !important;
    }

    .category-btn.active, .star-filter-btn.active {
        background-color: #c2185b !important;
        color: #fff !important;
        border-color: #c2185b !important;
        box-shadow: 0 1px 3px rgba(194, 24, 91, 0.3) !important;
    }

    .price-filter {
        margin-top: 0.25rem !important;
    }

    #price-slider {
        width: 100% !important;
        height: 3px !important;
        background: #e9ecef !important;
        border-radius: 2px !important;
        outline: none !important;
    }

    .price-label {
        text-align: right !important;
        margin-top: 0.15rem !important;
        font-size: 0.55rem !important;
        color: #555 !important;
        font-weight: 500 !important;
    }

    .category-filters::-webkit-scrollbar {
        width: 2px !important;
    }

    .category-filters::-webkit-scrollbar-track {
        background: #f1f1f1 !important;
    }

    .category-filters::-webkit-scrollbar-thumb {
        background: #c2185b !important;
        border-radius: 1px !important;
    }
}

/* --- Specific Fixes for Small Mobile Screens (e.g., Tecno Camon 20) --- */
@media (max-width: 425px) {
    /* Reduce horizontal padding to create more space for content */
    .navbar, .secondary-header {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    /* Make the search bar and filter icon closer together */
    .secondary-header {
        gap: 0.5rem;
    }

    /* Adjust search bar padding to be more compact */
    #search-bar {
        padding-right: 45px; /* Slightly less padding on the right for the icon */
    }
}
/* MOBILE FILTER POPUP BELOW SEARCH BAR */
@media (max-width: 768px) {
    .filter-popup {
        position: absolute !important;
        top: calc(100% + 8px) !important;
        right: 0 !important;
        left: auto !important;
        transform: none !important;
    }
    
    .filter-popup.visible {
        transform: none !important;
    }
}
/* MOBILE CIRCULAR CARDS SECTION */
.mobile-cards-section {
    display: none;
}

/* HIDE NAVBAR CARD CONTAINER ON DESKTOP */
.card-stack-container {
    display: none;
}

@media (min-width: 769px) {
    .hero-section .card-stack-container {
        display: flex !important;
    }
}

@media (max-width: 768px) {
    /* --- Mobile Promo Card Carousel --- */
    .card-stack-container {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto;
        gap: 1rem !important; /* Space between cards */
        padding: 1.5rem 1rem; /* Add vertical padding and keep horizontal padding for card spacing from the edge */
        margin: 0; /* Remove the negative margin that was causing it to float */
        width: 100%; /* Ensure the container spans the full width */
        box-sizing: border-box; /* Include padding in the width calculation */
        z-index: 5;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
        scrollbar-width: none; /* Hide scrollbar for Firefox */
    }
    .card-stack-container::-webkit-scrollbar {
        display: none; /* Hide scrollbar for Chrome, Safari, and Opera */
    }

    .card-stack-container .card {
        flex: 0 0 160px; /* Give cards a fixed width so they scroll horizontally */
        width: 160px !important;
        height: 160px !important;
        margin: 0 !important;
        padding: 1rem !important;
        transform: none !important;
    }

    .card-stack-container .card:hover {
        transform: translateY(-5px) !important;
        box-shadow: 0 10px 20px rgba(0,0,0,0.15) !important;
    }

    .card-content-promo h3 {
        font-size: 0.8rem !important;
        line-height: 1.2 !important;
    }
    .card-content-promo h3 span {
        display: block;
        font-size: 1.5rem;
        font-weight: 700;
        color: #fff;
        margin-bottom: 0.25rem;
    }
    
    .mobile-cards-section {
        display: none; /* Hide the old circular mobile cards */
    }
    
    .mobile-card {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background-size: cover;
        background-position: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        transition: transform 0.3s ease;
        text-decoration: none;
        color: white;
        position: relative;
        overflow: hidden;
    }
    
    .mobile-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.4);
        border-radius: 50%;
    }
    
    .mobile-card-link:nth-child(1) .mobile-card {
        background-image: url('https://images.unsplash.com/photo-1607083206869-4c7672e72a8a?w=400');
    }
    
    .mobile-card-link:nth-child(2) .mobile-card {
        background-image: url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?w=400');
    }
    
    .mobile-card-link:nth-child(3) .mobile-card {
        background-image: url('https://images.unsplash.com/photo-1578662996442-48f60103fc96?w=400');
    }
    
    .mobile-card-link:nth-child(4) .mobile-card {
        background-image: url('https://images.unsplash.com/photo-1540039155733-5bb30b53aa14?w=400');
    }
    
    .mobile-card-link:nth-child(5) .mobile-card {
        background-image: url('https://images.unsplash.com/photo-1434030216411-0b793f4b4173?w=400');
    }
    
    .mobile-card:hover {
        transform: translateY(-3px);
    }
    
    .mobile-card i,
    .mobile-card span {
        position: relative;
        z-index: 2;
    }
    
    .mobile-card i {
        font-size: 1.2rem;
        margin-bottom: 2px;
    }
    
    .mobile-card span {
        font-size: 0.6rem;
        font-weight: 600;
        text-align: center;
    }
    
    .mobile-card-link {
        text-decoration: none;
        cursor: pointer;
    }
    
    /* Mobile Card Popup */
    .mobile-card-popup-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.75);
        backdrop-filter: blur(4px);
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 2500;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    .mobile-card-popup-overlay.show {
        opacity: 1;
        visibility: visible;
    }
    
    @media (max-width: 768px) {
        .mobile-card-popup-overlay {
            display: none !important;
        }
        
        .mobile-card-popup-overlay.show {
            display: flex !important;
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            right: 0 !important;
            bottom: 0 !important;
            z-index: 2500 !important;
        }
    }
    
    @media (min-width: 769px) {
        .mobile-card-popup-overlay {
            display: none !important;
        }
    }
    
@media (min-width: 769px) {
    .mobile-card-popup-overlay,
    .mobile-card-popup-content,
    .mobile-card-popup-content * {
        display: none !important;
    }
}
    
    body.page-products .mobile-card-popup-overlay,
    body.page-products .mobile-cards-section,
    body.page-products .card-stack-container,
    body.page-products .card-stack-container *,
    body.page-products .promo-card-link,
    body.page-products .card-content-promo {
        display: none !important;
    }
    
    /* Allow broadcast elements on product pages */
    body.page-products #broadcast-menu,
    body.page-products .mobile-broadcast-toggle,
    body.page-homepage #broadcast-menu,
    body.page-homepage .mobile-broadcast-toggle {
        display: flex !important;
    }
    
    /* Mobile broadcast panel - only show when visible class is present */
    body.page-products #mobile-broadcast-panel,
    body.page-homepage #mobile-broadcast-panel {
        display: flex !important;
    }
    
    body.page-products #mobile-broadcast-panel.visible,
    body.page-homepage #mobile-broadcast-panel.visible {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
    }
    
    /* Ensure broadcast menu wrapper is visible */
    body.page-products .chat-menu-wrapper,
    body.page-homepage .chat-menu-wrapper {
        display: list-item !important;
    }
    
    /* Force filter popup to display when visible - override all conflicting styles */
    .filter-popup.visible {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: fixed !important;
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        min-width: 100vw !important;
        box-sizing: border-box !important;
        transform: translateY(0) !important;
        z-index: 9999 !important;
        background: white !important;
        border-radius: 12px 12px 0 0 !important;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.15) !important;
        padding: 1rem !important;
        margin: 0 !important;
    }
    
    .mobile-card-popup-content {
        background: white;
        background-size: cover;
        background-position: center;
        border-radius: 16px;
        padding: 2rem;
        margin: 1rem;
        max-width: 320px;
        width: 90%;
        text-align: center;
        position: relative;
        box-shadow: 0 20px 60px rgba(0,0,0,0.4);
        overflow: hidden;
        transform: scale(0.9);
        animation: popupSlideIn 0.3s ease-out forwards;
    }
    
    @keyframes popupSlideIn {
        to {
            transform: scale(1);
        }
    }
    
    .mobile-card-popup-content::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255,255,255,0.9);
        z-index: 1;
    }
    
    .mobile-card-popup-content > * {
        position: relative;
        z-index: 2;
    }
    
    .mobile-card-popup-close {
        position: absolute;
        top: 10px;
        right: 15px;
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: #999;
    }
    
    .mobile-card-popup-icon {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background: #c2185b;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 1rem;
        color: white;
        font-size: 1.5rem;
    }
    
    .mobile-card-popup-content h3 {
        margin: 0 0 1rem 0;
        color: #333;
        font-size: 1.2rem;
    }
    
    .mobile-card-popup-content p {
        margin: 0 0 1.5rem 0;
        color: #666;
        line-height: 1.5;
        font-size: 0.9rem;
    }
    
    .mobile-card-popup-btn {
        background: #c2185b;
        color: white;
        padding: 10px 20px;
        border-radius: 25px;
        text-decoration: none;
        font-weight: 600;
        display: inline-block;
        transition: background 0.3s ease;
    }
    
    .mobile-card-popup-btn:hover {
        background: #a91650;
    }
}

/* MOBILE FILTER POPUP COMPACT STYLING ONLY */
@media (max-width: 768px) {
    .filter-popup {
        width: 280px !important;
        max-width: 85vw !important;
        padding: 0.75rem !important;
    }

    .filter-popup h4 {
        margin: 0 0 0.5rem 0 !important;
        font-size: 0.85rem !important;
        padding-bottom: 0.25rem !important;
    }

    .filter-section {
        margin-bottom: 0.5rem !important;
    }

    .filter-section h5 {
        font-size: 0.7rem !important;
        margin-bottom: 0.25rem !important;
        letter-spacing: 0.2px !important;
    }

    .category-filters, .star-filters {
        gap: 0.2rem !important;
        max-height: 100px !important;
        overflow-y: auto !important;
    }

    .category-btn, .star-filter-btn {
        padding: 3px 6px !important;
        font-size: 0.6rem !important;
        border-radius: 8px !important;
        line-height: 1.2 !important;
    }

    .price-filter {
        margin-top: 0.25rem !important;
    }

    #price-slider {
        height: 3px !important;
    }

    .price-label {
        margin-top: 0.15rem !important;
        font-size: 0.6rem !important;
    }

    .category-filters::-webkit-scrollbar {
        width: 2px !important;
    }

    .category-filters::-webkit-scrollbar-track {
        background: #f1f1f1 !important;
    }

    .category-filters::-webkit-scrollbar-thumb {
        background: #c2185b !important;
        border-radius: 1px !important;
    }
}

/* Force desktop broadcast dropdown to show when visible */
.chat-dropdown.visible {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
}
/* Fix vertical scrollbar in secondary navbar on homepage */
body.page-homepage .secondary-header {
    overflow-y: visible !important;
    height: auto !important;
    min-height: 90px !important;
}

body.page-homepage .sub-navbar {
    overflow-y: visible !important;
}

body.page-homepage .sub-navbar ul {
    overflow-y: visible !important;
}
/* AGGRESSIVE FIX for homepage vertical scrollbar and broadcast issues */
body.page-homepage .secondary-header,
body.page-homepage .sub-navbar,
body.page-homepage .sub-navbar ul,
body.page-homepage .chat-menu-wrapper {
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    height: auto !important;
    max-height: none !important;
}

/* Force broadcast dropdown to show */
body.page-homepage .chat-dropdown.visible {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: absolute !important;
    z-index: 9999 !important;
    pointer-events: auto !important;
}

/* Ensure broadcast link is clickable */
body.page-homepage #broadcast-menu a {
    pointer-events: auto !important;
    cursor: pointer !important;
}
/* Fix filter popup positioning for desktop */
@media (min-width: 769px) {
    .filter-popup {
        position: absolute !important;
        top: calc(100% + 8px) !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 320px !important;
        max-width: none !important;
        bottom: auto !important;
        right: auto !important;
    }
    
    .filter-popup.visible {
        transform: translateX(-50%) !important;
    }
}
/* Force filter popup display on desktop */
@media (min-width: 769px) {
    .filter-popup.visible {
        display: block !important;
        position: absolute !important;
        top: calc(100% + 8px) !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 320px !important;
        max-width: none !important;
        bottom: auto !important;
        right: auto !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 1003 !important;
    }
}
/* ULTIMATE filter popup fix - highest specificity */
body .filter-popup.visible {
    display: block !important;
}

html body .filter-popup.visible {
    display: block !important;
}

.filter-popup.visible[class] {
    display: block !important;
}
/* Force filter popup to always be visible for debugging */
.filter-popup {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: fixed !important;
    top: 200px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 9999 !important;
    background: red !important;
    border: 5px solid blue !important;
    width: 300px !important;
    height: 200px !important;
}
/* Remove the debug styles and fix the real issue */
.filter-popup {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 1003 !important;
    background: white !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    width: 320px !important;
    padding: 1rem !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}
/* Desktop filter popup positioning - right under navbar */
@media (min-width: 769px) {
    .filter-popup {
        position: fixed !important;
        top: 155px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
}
/* Fix desktop filter popup - position under filter button and restore toggle */
@media (min-width: 769px) {
    .filter-popup {
        display: none !important;
        position: absolute !important;
        top: calc(100% + 8px) !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
    
    .filter-popup.visible {
        display: block !important;
    }
}
/* Position desktop filter popup under filter button on the right */
@media (min-width: 769px) {
    .filter-popup {
        display: none !important;
        position: absolute !important;
        top: calc(100% + 8px) !important;
        right: 0 !important;
        left: auto !important;
        transform: none !important;
    }
    
    .filter-popup.visible {
        display: block !important;
    }
}
/* Position desktop filter popup directly under navbar, above everything */
@media (min-width: 769px) {
    .filter-popup {
        display: none !important;
        position: fixed !important;
        top: 155px !important;
        right: 2rem !important;
        left: auto !important;
        transform: none !important;
        z-index: 9999 !important;
    }
    
    .filter-popup.visible {
        display: block !important;
    }
}
/* OVERRIDE ALL mobile filter styles for desktop */
@media (min-width: 769px) {
    .filter-popup {
        display: none !important;
        position: fixed !important;
        top: 155px !important;
        bottom: auto !important;
        right: 2rem !important;
        left: auto !important;
        width: 320px !important;
        max-width: 320px !important;
        min-width: auto !important;
        height: auto !important;
        transform: none !important;
        z-index: 9999 !important;
        background: white !important;
        border: 1px solid #ddd !important;
        border-radius: 8px !important;
        padding: 1rem !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    }
    
    .filter-popup.visible {
        display: block !important;
    }
}
/* MOBILE CIRCULAR CARDS SECTION */
.mobile-cards-section {
    display: none;
}

/* HIDE NAVBAR CARD CONTAINER ON DESKTOP */
.card-stack-container {
    display: none;
}

@media (min-width: 769px) {
    .hero-section .card-stack-container {
        display: flex !important;
    }
}

@media (max-width: 768px) {
    .mobile-cards-section {
        display: none; /* Hide the circular mobile cards as requested */
        justify-content: space-between;
        align-items: center;
        padding: 1rem;
        background: linear-gradient(135deg, #fdf2f4 0%, #f8f9fa 100%);
        margin-bottom: 1rem;
    }
    
    .mobile-card {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background-size: cover;
        background-position: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        transition: transform 0.3s ease;
        text-decoration: none;
        color: white;
        position: relative;
        overflow: hidden;
    }
    
    .mobile-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.4);
        border-radius: 50%;
    }
    
    .mobile-card-link:nth-child(1) .mobile-card {
        background-image: url('https://images.unsplash.com/photo-1607083206869-4c7672e72a8a?w=400');
    }
    
    .mobile-card-link:nth-child(2) .mobile-card {
        background-image: url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?w=400');
    }
    
    .mobile-card-link:nth-child(3) .mobile-card {
        background-image: url('https://images.unsplash.com/photo-1578662996442-48f60103fc96?w=400');
    }
    
    .mobile-card-link:nth-child(4) .mobile-card {
        background-image: url('https://images.unsplash.com/photo-1540039155733-5bb30b53aa14?w=400');
    }
    
    .mobile-card-link:nth-child(5) .mobile-card {
        background-image: url('https://images.unsplash.com/photo-1434030216411-0b793f4b4173?w=400');
    }
    
    .mobile-card:hover {
        transform: translateY(-3px);
    }
    
    .mobile-card i,
    .mobile-card span {
        position: relative;
        z-index: 2;
    }
    
    .mobile-card i {
        font-size: 1.2rem;
        margin-bottom: 2px;
    }
    
    .mobile-card span {
        font-size: 0.6rem;
        font-weight: 600;
        text-align: center;
    }
    
    .mobile-card-link {
        text-decoration: none;
        cursor: pointer;
    }
    
    /* Mobile Card Popup */
    .mobile-card-popup-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.75);
        backdrop-filter: blur(4px);
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 2500;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    .mobile-card-popup-overlay.show {
        opacity: 1;
        visibility: visible;
        display: flex !important;
    }
    
    .mobile-card-popup-content {
        background: white;
        border-radius: 16px;
        padding: 2rem;
        margin: 1rem;
        max-width: 320px;
        width: 90%;
        text-align: center;
        position: relative;
        box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    }
    
    .mobile-card-popup-close {
        position: absolute;
        top: 10px;
        right: 15px;
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: #999;
    }
}
/* FINAL DESKTOP FILTER POPUP FIX - HIGHEST PRIORITY */
@media (min-width: 769px) {
    html body .filter-popup {
        display: none !important;
        position: fixed !important;
        top: 155px !important;
        right: 2rem !important;
        left: auto !important;
        bottom: auto !important;
        width: 320px !important;
        max-width: 320px !important;
        transform: none !important;
        z-index: 9999 !important;
        background: white !important;
        border: 1px solid #ddd !important;
        border-radius: 8px !important;
        padding: 1rem !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    }
    
    html body .filter-popup.visible {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}