   body.page-homepage {
            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;
        }

        /* Default desktop state: Nav links are visible */
        .navbar > ul, .sub-navbar {
            display: flex;
        }

        /* --- Navbar Overflow Fix for Mid-sized Screens --- */
        /* On screens that are too small for all nav items but too big for the mobile menu,
           this prevents the navbar from causing a horizontal overflow on the whole page. */
        @media (max-width: 1150px) {
            .navbar > ul {
                overflow-x: auto;
                /* Hide scrollbar for a cleaner look */
                -ms-overflow-style: none;  /* IE and Edge */
                scrollbar-width: none;  /* Firefox */
            }
            .navbar > ul::-webkit-scrollbar { display: none; } /* Chrome, Safari, Opera */
        }

        .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 {
            font-size: 1.4rem;
            color: #d6336c;
            cursor: pointer;
            padding: 10px 15px;
            transition: color 0.2s ease;
            z-index: 2;
        }

        .filter-icon:hover {
            color: #c2185b;
        }

        .filter-popup {
            position: absolute;
            top: calc(100% + 30px); /* Position below the search bar, increased for more clearance */
            right: 0;
            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;
            transform: translateY(-10px);
            transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
        }

        .filter-popup.visible {
            opacity: 1;
            visibility: visible;
            transform: 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: 12%; /* Increased from 5% to make it thinner */
                right: 12%; /* Increased from 5% to make it thinner */
                width: auto; /* Let the browser calculate width (90% of parent) */
                max-height: 65vh; /* Limit its height */
                z-index: 998; /* Below header, above content */
                max-width: 600px; /* Limit max width on larger screens/tablets */
                margin: 0 auto; /* Center the panel when max-width is active */
                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;
                transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s 0.3s;
            }

            #mobile-broadcast-panel.visible {
                opacity: 1;
                visibility: visible;
                transform: translateY(0); /* Slide down to its final position */
                transition: opacity 0.3s ease, transform 0.3s ease;
            }

            /* 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 */
                overflow-y: auto; /* Allow scrolling within the content area */
                display: flex;
                flex-direction: column;
            }

            /* 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 */
            }

            #trending-topics-list a {
                text-decoration: none;
                color: #c2185b;
                font-weight: 500;
            }
            #trending-topics-list a:hover {
                text-decoration: underline;
            }

            #mobile-broadcast-panel .qa-form {
            margin-top: auto; /* Push form to the bottom */
            }

            .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 as Centered "Mini-Modal" --- */
            /* This ensures the filter popup is centered on mobile instead of aligned to the right. */
            .filter-popup {
                position: fixed; /* Position relative to the viewport */
                top: 125px;      /* Place it just below the fixed headers */
                left: 50%;
                right: auto;     /* Unset desktop positioning */
                width: 90vw;
                max-width: 340px; /* A good max-width for a mobile popup */
                transform: translateX(-50%) translateY(-10px); /* Center horizontally and provide initial animation state */
            }

            .filter-popup.visible {
                /* Adjust transform for the centered position when visible */
                transform: translateX(-50%) translateY(0);
            }

            /* --- 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.5rem; /* Further reduced font for H1 on mobile */
                line-height: 1.3;
            }
            .hero-text p {
                font-size: 0.8rem; /* Further reduced paragraph font */
            }

            /* --- 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; /* Remove horizontal padding to allow full-width centering */
                align-items: center; /* Explicitly center items for vertical layout */
            }

            .hub-logo {
                font-size: 8vh; /* Reduced logo size to better fit the slimmer card */
            }

            .hub-card {
                width: 60vw; /* Significantly reduced width to be closer to 50% */
                max-width: 300px; /* A more appropriate max-width for the new size */
                flex-basis: auto;
                padding: 1.5rem; /* Reduced padding for a more balanced look on the smaller card */
            }

        }

        /* --- 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 {
            /* Use a wide, centered grid layout for maximum stability and control. */
            width: 100%; /* Use percentage to avoid vw-related overflow issues */
            max-width: 1400px; /* A generous max-width for very large screens */
            margin: 0 auto 3rem; /* Center horizontally and add bottom margin */
            padding: 0 2rem; /* Add horizontal padding for smaller viewports */
            box-sizing: border-box; /* Include padding in the width calculation */
            display: grid;
            grid-template-columns: 1fr 380px; /* Flexible main column, fixed-width card column */
            align-items: flex-start;
            gap: 2rem;
        }

        .hero-container {
            display: flex;
            align-items: center;
            min-width: 0; /* Prevents overflow issues in flex containers */
            background-color: #fdf2f4; /* A very light pink to complement the navbar */
            padding: 3rem 5%; /* Vertical and horizontal padding */
            box-sizing: border-box;
            gap: 2rem;
        }

        .hero-text {
            flex: 1;
            text-align: left;
            padding-right: 2rem; /* Space between text and video */
        }

        .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 video to the right */
            align-items: center;
        }
        .hero-video video {
            width: 100%;
            max-width: 550px; /* Control max video size */
            height: auto;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }

        .card-stack-container {
            display: flex;
            flex-direction: column; /* Stack promo cards vertically */
            gap: 1.5rem;
            padding-top: 3rem; /* Align with hero content's top padding */
            /* The width is now controlled by the parent grid's `grid-template-columns` */
        }

        /* --- Promo Cards Layout (Desktop) --- */
        .card-stack-container .card {
            min-width: 280px;
            max-width: 350px;
            background: #fff;
            border-radius: 12px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.08);
            padding: 1.5rem;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
            text-align: center; /* Center content for vertical layout */
        }
        .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; /* Default to vertical layout */
            align-items: center;
            gap: 0.75rem;
        }

        /* --- 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 Stacking --- */
            .hero-section {
                width: 100%;
                max-width: 100%;
                display: flex;
                flex-direction: column;
                align-items: center;
                padding: 0;
                gap: 2rem; /* A reasonable gap */
            }
            .hero-container {
                flex-direction: column-reverse; /* Puts video on top on mobile */
                text-align: center;
                padding: 2rem 5%;
                border-radius: 0;
                width: 100%;
                box-sizing: border-box; /* Ensure padding is included */
            }
            .hero-text {
                padding-right: 0;
                text-align: center;
            }
            .hero-video {
                justify-content: center;
                margin-bottom: 1rem;
            }
            /* --- Card Swapping --- */
            .card-stack-container {
                display: none; /* Hide the original vertical cards */
            }
            /* --- New Mobile Card Layout --- */
            .card-row-mobile {
                display: flex; /* Show the mobile-specific cards */
                justify-content: center; /* Center the group of cards */
                align-items: flex-start; /* Align to the top before offsetting */
                width: 100%;
                margin-top: 1rem; /* Space above the cards */
            }
            .card-row-mobile .card {
                background: #ffffff; /* Clean white background */
                border-radius: 12px;
                box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Softer shadow */
                padding: 1rem;
                text-align: center;
                width: 120px; /* Give them a consistent width */
                position: relative; /* Needed for z-index to work */
                z-index: 1;
            }
            /* --- Interlocking Effect --- */
            .card-row-mobile .card + .card {
                margin-left: -25px; /* Negative margin to overlap */
            }
            .card-row-mobile .card-2 {
                transform: translateY(20px); /* Push down */
                z-index: 2; /* Middle card is on top */
            }
            /* Adjust content size inside mobile cards */
            .card-row-mobile .card-content-promo h3 {
                font-size: 0.8rem;
                line-height: 1.2;
            }
            .card-row-mobile .card-content-promo .fas {
                font-size: 1.8rem;
            }
        }

        /* --- 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: 3rem auto 4rem; /* 'auto' for horizontal centering */
            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;
        }

        /* Desktop: Multi-line Grid Layout */
        .product-showcase-section .product-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
            gap: 1.5rem;
        }

        @media (min-width: 992px) {
            .product-showcase-section .product-grid {
                /* On larger screens, enforce a 3-column layout */
                grid-template-columns: repeat(3, 1fr);
            }
        }

        .product-showcase-section .product-card {
            width: 100%; /* Card fills the grid column */
            margin-top: 0;
        }

        .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; /* Enable horizontal scrolling */
                gap: 1.5rem; /* Add spacing between cards in the carousel */
                padding-bottom: 1rem; /* For shadow visibility */
            }

            .product-showcase-section .product-card {
                flex: 0 0 260px; /* Fixed width for carousel items */
                width: 260px;
            }

            .carousel-btn.prev { left: 5px; }
            .carousel-btn.next { right: 5px; }
        }

        @media (max-width: 767px) {
            .product-showcase-section .product-card {
                flex: 0 0 240px; /* Slightly smaller cards on small mobile */
                width: 240px;
            }
        }

        /* --- 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;
        }

        .badge .fas { /* Font Awesome icon inside */
            line-height: 1; /* Center icon better */
        }

        /* Specific badge colors */
        .badge.rising-star { background-color: #f0c419; } /* Gold */
        .badge.top-rated { background-color: #007bff; } /* Blue */
        .badge.monthly-top-seller { background-color: #e83e8c; } /* Pink */

        /* Tooltip styles */
        .badge .tooltip {
            visibility: hidden;
            width: 180px;
            background-color: #333;
            color: #fff;
            text-align: center;
            border-radius: 6px;
            padding: 8px;
            position: absolute;
            z-index: 1;
            bottom: 125%; /* Position above the badge */
            left: 50%;
            margin-left: -90px; /* Use half of the width to center */
            opacity: 0;
            transition: opacity 0.3s;
            font-size: 0.85rem;
            line-height: 1.4;
        }

        .badge:hover .tooltip {
            visibility: visible;
            opacity: 1;
        }
