        @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

        :root {
            --primary: #4f46e5;
            --primary-dark: #4338ca;
            --primary-light: #818cf8;
            --danger: #ef4444;
            --success: #10b981;
            --warning: #f59e0b;
            --info: #3b82f6;
            --dark: #1e293b;
            --light: #f8fafc;
            --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
            --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
            --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
            --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);
            --shadow-xl: 0 30px 70px rgba(0, 0, 0, 0.15);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        /* Page Loading Progress Bar */
        .page-loading-bar {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 3px;
            background: rgba(0, 0, 0, 0.1);
            z-index: 9999;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
        }

        .page-loading-bar.active {
            opacity: 1;
            visibility: visible;
        }

        .page-loading-progress {
            height: 100%;
            background: linear-gradient(90deg, #ff6b6b 0%, #feca57 50%, #ff6b6b 100%);
            background-size: 200% 100%;
            width: 0%;
            transition: width 0.3s ease;
            animation: shimmer 1.5s infinite;
            box-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
        }

        @keyframes shimmer {
            0% {
                background-position: -200% 0;
            }

            100% {
                background-position: 200% 0;
            }
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            background: linear-gradient(to bottom, #f8fafc 0%, #ffffff 100%);
            color: var(--dark);
            overflow-x: hidden;
        }

        /* ---------- Top Bar ---------- */
        .top-bar {
            background: var(--gradient-1);
            padding: 0.75rem 0;
            font-size: 0.875rem;
            font-weight: 500;
            position: relative;
            overflow: hidden;
        }

        .top-bar::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
            animation: shimmer 3s infinite;
        }

        @keyframes shimmer {
            100% {
                left: 100%
            }
        }

        .top-bar-content {
            position: relative;
            z-index: 1;
        }

        /* ---------- Navbar ---------- */
        .navbar {
            background: rgba(255, 255, 255, 0.95) !important;
            backdrop-filter: blur(20px);
            box-shadow: var(--shadow-md);
            padding: 1.2rem 0;
            transition: all .3s ease;
        }

        .navbar.scrolled {
            padding: .8rem 0;
            box-shadow: var(--shadow-lg);
        }

        .navbar-brand {
            font-size: 2rem;
            font-weight: 800;
            background: var(--gradient-1);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            display: flex;
            align-items: center;
            gap: .5rem;
            transition: all .3s ease;
        }

        .navbar-brand i {
            background: var(--gradient-1);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: pulse 2s ease-in-out infinite;
        }

        /* Make sure navbar/container doesn't clip the dropdown */
        .navbar,
        .container,
        .row {
            overflow: visible !important;
        }

        /* Ensure the dropdown appears above everything */
        #searchDropdown {
            z-index: 9999 !important;
        }

        /* Optional: smooth show/hide */
        #searchDropdown.show {
            display: block !important;
            animation: fadeInDown 0.3s ease-out;
        }

        @keyframes fadeInDown {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes pulse {

            0%,
            100% {
                transform: scale(1);
            }

            50% {
                transform: scale(1.1);
            }
        }

        /* ---------- Search Bar ---------- */
        .search-wrapper {
            position: relative;
            display: flex;
            align-items: center;
            background: white;
            border: 2px solid transparent;
            border-radius: 50px;
            overflow: hidden;
            box-shadow: var(--shadow-md);
            transition: all .3s ease;
        }

        .search-wrapper:focus-within {
            border-color: var(--primary);
            box-shadow: 0 0 0 4px rgba(79, 70, 229, .1), var(--shadow-lg);
            transform: translateY(-2px);
        }

        .search-wrapper input {
            border: none;
            padding: 1rem 1.5rem;
            flex: 1;
            outline: none;
            font-size: 1rem;
            background: transparent;
        }

        .search-wrapper button {
            background: var(--gradient-1);
            color: white;
            border: none;
            padding: 1rem 2rem;
            font-size: 1.1rem;
            cursor: pointer;
            transition: all .3s ease;
            position: relative;
            overflow: hidden;
        }

        .search-wrapper button::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: 50%;
            background: rgba(255, 255, 255, .3);
            transform: translate(-50%, -50%);
            transition: width .6s, height .6s;
        }

        .search-wrapper button:hover::before {
            width: 300px;
            height: 300px;
        }

        /* ---------- Icon Buttons ---------- */
        .icon-btn {
            position: relative;
            background: white;
            border: 2px solid #e2e8f0;
            font-size: 1.3rem;
            color: var(--dark);
            padding: .75rem;
            cursor: pointer;
            transition: all .3s cubic-bezier(.4, 0, .2, 1);
            border-radius: 12px;
            display: flex;
            align-items: center;
            gap: .5rem;
            min-width: 48px;
            height: 48px;
            justify-content: center;
        }

        .icon-btn:hover {
            background: var(--gradient-1);
            color: white;
            border-color: transparent;
            transform: translateY(-3px);
            box-shadow: var(--shadow-lg);
        }

        .badge-count {
            position: absolute;
            top: -8px;
            right: -8px;
            background: var(--gradient-2);
            color: white;
            font-size: .7rem;
            font-weight: 700;
            min-width: 22px;
            height: 22px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 3px solid white;
            box-shadow: var(--shadow-md);
            animation: bounce 2s ease-in-out infinite;
        }

        @keyframes bounce {

            0%,
            100% {
                transform: translateY(0);
            }

            50% {
                transform: translateY(-5px);
            }
        }

        /* ========== SMALL DEVICE ADJUSTMENTS ========== */
        @media (max-width: 768px) {

            /* Top Bar Adjustments */
            .top-bar {
                padding: 0.5rem 0;
                font-size: 0.75rem;
            }

            .top-bar-content .d-flex span {
                display: flex;
                align-items: center;
                justify-content: center;
                padding: 0.1rem 0;
            }

            /* Navbar Adjustments */
            .navbar {
                padding: 0.5rem 0 !important;
            }

            /* Logo Adjustments */
            .navbar-brand img {
                max-height: 50px !important;
                width: auto;
            }

            /* Search Bar Adjustments */
            .search-wrapper {
                border-radius: 30px;
                height: 40px;
                margin-top: 0.25rem;
            }

            .search-wrapper input {
                padding: 0.5rem 1rem;
                font-size: 0.85rem;
                height: 100%;
            }

            .search-wrapper button {
                padding: 0.5rem 1rem;
                font-size: 0.9rem;
                height: 100%;
            }

            /* Search Dropdown - Full Width */
            #searchDropdown {
                width: 100vw !important;
                max-height: 50vh !important;
                left: 50% !important;
                transform: translateX(-50%) !important;
                border-radius: 0 0 10px 10px !important;
                border-left: none !important;
                border-right: none !important;
            }

            /* Icon Buttons Adjustments */
            .icon-btn {
                min-width: 36px !important;
                height: 36px !important;
                font-size: 1rem !important;
                padding: 0.5rem !important;
                border-radius: 8px !important;
            }

            .badge-count {
                top: -6px !important;
                right: -6px !important;
                min-width: 18px !important;
                height: 18px !important;
                font-size: 0.6rem !important;
                border: 2px solid white !important;
            }

            /* User name text adjustment */
            .user-name {
                font-size: 0.75rem !important;
                max-width: 70px !important;
                overflow: hidden !important;
                text-overflow: ellipsis !important;
                white-space: nowrap !important;
            }

            /* Icon container adjustment */
            .d-flex.gap-2 {
                gap: 0.5rem !important;
                padding: 0.25rem 0;
            }
        }

        /* Extra Small Devices (Phones) */
        @media (max-width: 576px) {
            .top-bar {
                font-size: 0.7rem;
                padding: 0.4rem 0;
            }

            /* Logo Adjustments */
            .navbar-brand img {
                max-height: 40px !important;
                width: auto;
            }

            .search-wrapper {
                height: 38px;
                margin-top: 0.2rem;
            }

            .search-wrapper input {
                font-size: 0.8rem;
                padding: 0.5rem 0.75rem;
            }

            .search-wrapper button {
                padding: 0.5rem 0.75rem;
                font-size: 0.85rem;
            }

            .icon-btn {
                min-width: 34px !important;
                height: 34px !important;
                font-size: 0.9rem !important;
            }

            .badge-count {
                top: -5px !important;
                right: -5px !important;
                min-width: 16px !important;
                height: 16px !important;
                font-size: 0.55rem !important;
            }

            .user-name {
                font-size: 0.7rem !important;
                max-width: 60px !important;
            }

            /* Make sure icons are properly centered on smallest screens */
            .text-center .d-flex {
                justify-content: center !important;
                flex-wrap: nowrap !important;
                gap: 0.4rem !important;
            }
        }

        /* Fix for dropdown positioning on mobile */
        @media (max-width: 768px) {
            .col-lg-7.col-md-8.col-sm-8.col-8.position-relative {
                position: static !important;
            }

            #searchDropdown {
                position: fixed !important;
                top: auto !important;
                left: 0 !important;
                transform: none !important;
                width: 100% !important;
                margin-top: 0 !important;
            }
        }

        /* ---------- Sliding Panels — FULLY RESPONSIVE FIX ---------- */
        .sliding-panel {
            position: fixed;
            top: 0;
            right: -100%;
            width: 420px;
            max-width: 95vw;
            height: 100vh;
            background: white;
            z-index: 1050;
            transition: right .4s cubic-bezier(.68, -.55, .265, 1.55);
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        .sliding-panel.open {
            right: 0 !important;
        }

        /* Mobile pe full width aur zero gap */
        @media (max-width: 768px) {
            .sliding-panel {
                width: 100vw !important;
                max-width: 100vw !important;
                /* Top-left rounded */
                right: -100vw;
                /* Full hide */
            }

            .sliding-panel.open {
                right: 0 !important;
            }
        }

        /* Extra safe — remove any transform or margin */
        .sliding-panel,
        .sliding-panel * {
            transform: none !important;
        }

        .sliding-panel-header {
            padding: 1.5rem 2rem;
            background: var(--gradient-1);
            color: white;
            font-weight: 700;
            font-size: 1.3rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 4px 20px rgba(0, 0, 0, .1);
        }

        .sliding-panel-header i {
            margin-right: .5rem;
            animation: pulse 2s ease-in-out infinite
        }

        .close-panel {
            background: rgba(255, 255, 255, .2);
            border: none;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: all .3s ease;
        }

        .close-panel:hover {
            background: rgba(255, 255, 255, .3);
            transform: rotate(90deg)
        }

        .sliding-panel-body {
            flex: 1;
            overflow-y: auto;
            padding: 2rem;
            background: linear-gradient(to bottom, #f8fafc 0%, #fff 100%);
        }

        .sliding-panel-body::-webkit-scrollbar {
            width: 8px
        }

        .sliding-panel-body::-webkit-scrollbar-track {
            background: #f1f5f9
        }

        .sliding-panel-body::-webkit-scrollbar-thumb {
            background: var(--primary-light);
            border-radius: 10px;
        }

        /* ---------- Wishlist / Cart Items ---------- */
        .wishlist-item,
        .cart-item {
            background: white;
            border-radius: 16px;
            padding: 1.25rem;
            margin-bottom: 1.25rem;
            box-shadow: var(--shadow-sm);
            transition: all .3s ease;
            border: 2px solid transparent;
        }

        .wishlist-item:hover,
        .cart-item:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-lg);
            border-color: var(--primary-light);
        }

        .wishlist-item img,
        .cart-item img {
            border-radius: 12px;
            box-shadow: var(--shadow-sm);
        }

        /* ---------- Overlay ---------- */
        .overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, .6);
            backdrop-filter: blur(10px);
            z-index: 1040;
            animation: fadeIn .3s ease;
        }

        .overlay.active {
            display: block
        }

        @keyframes fadeIn {
            from {
                opacity: 0
            }

            to {
                opacity: 1
            }
        }

        /* ---------- Buttons ---------- */
        .btn-primary {
            background: var(--gradient-1);
            border: none;
            padding: .75rem 2rem;
            border-radius: 12px;
            font-weight: 600;
            transition: all .3s ease;
            box-shadow: var(--shadow-md);
        }

        .btn-primary:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-lg)
        }

        .btn-outline-primary {
            border: 2px solid var(--primary);
            color: var(--primary);
            padding: .75rem 2rem;
            border-radius: 12px;
            font-weight: 600;
            transition: all .3s ease;
        }

        .btn-outline-primary:hover {
            background: var(--gradient-1);
            color: white;
            border-color: transparent;
            transform: translateY(-3px);
            box-shadow: var(--shadow-lg);
        }

        .btn-outline-danger {
            border: 2px solid var(--danger);
            color: var(--danger);
            border-radius: 8px;
            font-weight: 600;
            transition: all .3s ease;
        }

        .btn-outline-danger:hover {
            background: var(--danger);
            color: white;
            transform: scale(1.05);
        }

        /* ---------- Empty State ---------- */
        .empty-state {
            text-align: center;
            padding: 4rem 2rem;
        }

        .empty-state i {
            font-size: 5rem;
            opacity: .3;
            margin-bottom: 1.5rem;
            background: var(--gradient-1);
            background-clip: text;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        /* ---------- User Panel Links ---------- */
        .list-group-item {
            border: none;
            padding: 1rem 1.5rem;
            margin-bottom: .5rem;
            border-radius: 12px;
            transition: all .3s ease;
            font-weight: 500;
        }

        .list-group-item:hover {
            background: var(--gradient-1);
            color: white;
            transform: translateX(5px);
        }

        .list-group-item.active {
            background: var(--gradient-1);
            color: white
        }

        .dropdown-menu .dropdown-item {
            border-radius: 12px;
            margin: 0.15rem;
            transition: all .3s ease;
            font-weight: 500;
        }

        .dropdown-menu .dropdown-item:hover,
        .dropdown-menu .dropdown-item:focus {
            background: var(--gradient-1);
            color: white;
        }

        .dropdown-menu .dropdown-item.active,
        .dropdown-menu .dropdown-item:active {
            background: var(--gradient-1);
            color: white;
        }

        .list-group-item i {
            width: 24px
        }

        /* ---------- Footer ---------- */
        footer {
            background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
            padding: 3rem 0;
            margin-top: 5rem;
            position: relative;
            overflow: hidden;
        }

        footer::before {
            content: '';
            position: absolute;
            top: 0;
            left: -50%;
            width: 200%;
            height: 100%;
            background: radial-gradient(circle, rgba(255, 255, 255, .05)0%, transparent 70%);
            animation: rotate 20s linear infinite;
        }

        @keyframes rotate {
            100% {
                transform: rotate(360deg)
            }
        }

        /* ---------- Toast Notification — Stick to Edge ---------- */
        @keyframes slideIn {
            from {
                transform: translateX(100%);
                opacity: 0;
            }

            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

        @keyframes slideOut {
            from {
                transform: translateX(0);
                opacity: 1;
            }

            to {
                transform: translateX(100%);
                opacity: 0;
            }
        }

        /* Toast ko right edge se perfectly laga do */
        #cartPanel .sliding-panel-body+div,
        /* Yeh purana toast tha */
        div[style*="position:fixed"][style*="right"] {
            right: 10px !important;
            /* Mobile pe 10px gap */
            left: auto !important;
            transform: none !important;
        }

        @media (min-width: 769px) {
            div[style*="position:fixed"][style*="right"] {
                right: 20px !important;
                /* Desktop pe thoda zyada */
            }
        }

        /* ---------- Responsive ---------- */
        @media (max-width:768px) {
            .navbar-brand {
                font-size: 1.5rem
            }

            .search-wrapper {
                margin: 1rem 0
            }

            .icon-btn {
                padding: .6rem;
                font-size: 1.1rem
            }
        }

        .user-name {
            font-size: .9rem;
            font-weight: 500;
            color: var(--dark);
            max-width: 100px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .icon-btn:hover .user-name {
            color: white
        }

        /* Default (Desktop ≥ 1200px) */
        .navbar-brand img {
            height: 90px;
            width: auto;
        }

        /* Large Screens (992px – 1199px) */
        @media (max-width: 1199px) {
            .navbar-brand img {
                height: 80px !important;
            }
        }

        /* Tablets (768px – 991px) */
        @media (max-width: 991px) {
            .navbar-brand img {
                height: 60px !important;
            }

            .search-wrapper input {
                height: 45px;
                font-size: 15px;
            }
        }

        /* Large Mobile (576px – 767px) */
        @media (max-width: 767px) {
            .navbar-brand img {
                height: 50px !important;
            }

            .search-wrapper {
                margin-top: 5px;
            }
        }

        /* Small Mobile (< 576px) */
        @media (max-width: 576px) {
            .navbar-brand img {
                height: 42px !important;
            }

            .search-wrapper input {
                height: 40px;
                font-size: 14px;
            }

            .icon-btn i {
                font-size: 18px;
            }
        }

        /* ==================== MOBILE PRIORITY FIXES ==================== */

        /* Sliding Panel - Make it 100% reliable on mobile */
        .sliding-panel {
            position: fixed;
            top: 0;
            right: -100%;
            width: 100%;
            max-width: 420px;
            height: 100vh;
            background: white;
            z-index: 1050;
            transition: right 0.45s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        }

        .sliding-panel.open {
            right: 0 !important;
        }

        @media screen and (max-width: 1199px) and (min-width: 992px) {
            #searchForm {
                width: 500px;
            }

            #accountname {
                min-width: 100px !important;
            }
        }

        /* Force full-screen on phones */
        @media (max-width: 768px) {
            .sliding-panel {
                max-width: 100vw !important;
                width: 100vw !important;
                right: -100vw !important;
                /* better hide */
            }

            .sliding-panel-body {
                padding: 1.25rem 1rem;
                /* less padding on mobile */
            }

            .list-group-item {
                padding: 1rem 1.25rem;
            }
        }

        /* Search Dropdown - Mobile Fix */
        @media (max-width: 991px) {
            #searchDropdown {
                position: fixed !important;
                top: 100% !important;
                left: 0 !important;
                right: 0 !important;
                width: 100vw !important;
                margin-top: 0 !important;
                border-radius: 0 0 12px 12px !important;
                max-height: 65vh !important;
                z-index: 9999 !important;
                box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18) !important;
            }
        }

        /* Navbar & Logo - Much simpler size control */
        .navbar-brand img {
            height: 82px;
            width: auto;
            object-fit: contain;
        }

        @media (max-width: 1199px) {
            .navbar-brand img {
                height: 72px;
            }
        }

        @media (max-width: 991px) {
            .navbar-brand img {
                height: 62px;
            }
        }

        @media (max-width: 767px) {
            .navbar-brand img {
                height: 54px;
            }
        }

        @media (max-width: 576px) {
            .navbar-brand img {
                height: 46px;
            }
        }

        /* Icon buttons - better touch target */
        .icon-btn {
            min-width: 44px;
            height: 44px;
            font-size: 1.25rem;
            border-radius: 12px;
        }

        @media (max-width: 576px) {
            .icon-btn {
                min-width: 42px;
                height: 42px;
                font-size: 1.15rem;
            }

            .badge-count {
                min-width: 18px;
                height: 18px;
                font-size: 0.62rem;
                top: -7px;
                right: -7px;
            }
        }

        /* Featured mobile items (Diabetes, Insulin, Sexual Wellness) */
        .featured-mobile {
            color: #000;
            font-weight: 500;
            transition: all 0.28s ease;
        }

        .featured-mobile svg {
            fill: #000;
            stroke: #000;
            flex-shrink: 0;
        }

        .featured-mobile:hover,
        .featured-mobile:active {
            color: white !important;
            background: var(--gradient-1) !important;
            transform: translateX(8px);
            box-shadow: 0 4px 16px rgba(102, 126, 234, 0.25);
        }

        .featured-mobile:hover svg {
            fill: white;
            stroke: white;
        }