        :root {
            --primary: #2563EB;
            --primary-dark: #1D4ED8;
            --primary-light: rgba(37, 99, 235, 0.08);
            --primary-gradient: linear-gradient(135deg, #2563EB, #1D4ED8);
            --accent: #f59e0b;
            --accent-light: rgba(245, 158, 11, 0.12);
            --success: #10b981;
            --danger: #ef4444;
            --warning: #f59e0b;
            --info: #06b6d4;
            --dark: #0f172a;
            --darker: #020617;
            --gray-50: #f8fafc;
            --gray-100: #f1f5f9;
            --gray-200: #e2e8f0;
            --gray-300: #cbd5e1;
            --gray-400: #94a3b8;
            --gray-600: #64748b;
            --gray-800: #334155;
            --shadow-xs: 0 1px 2px rgba(0,0,0,0.03);
            --shadow-sm: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
            --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
            --shadow-lg: 0 8px 30px rgba(0,0,0,0.08);
            --shadow-xl: 0 20px 60px rgba(0,0,0,0.1);
            --shadow-glow: 0 4px 20px rgba(37, 99, 235, 0.25);
            --radius-sm: 6px;
            --radius-md: 10px;
            --radius-lg: 16px;
            --radius-xl: 24px;
            --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
            --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
            --transition: all 0.3s var(--ease-smooth);
        }

        body {
            font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
            background: #f8fafc;
            color: #0f172a;
            scroll-behavior: smooth;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        @media (min-width: 992px) {
            .col-lg-15 { flex: 0 0 auto; width: 20%; }
        }
        a {
            color: var(--primary);
            transition: color 0.2s var(--ease-smooth);
        }
        a:hover { color: var(--primary-dark); }

        .navbar-brand {
            text-decoration: none;
        }
        .brand-logo-wrap {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 44px;
            height: 44px;
            border-radius: 14px;
            background: linear-gradient(135deg, #2563EB, #1D4ED8);
            box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
            transition: all 0.3s var(--ease-smooth);
            flex-shrink: 0;
        }
        .brand-logo-wrap img {
            height: 50px;
            width: auto;
        }
        .navbar-brand:hover .brand-logo-wrap {
            transform: scale(1.05) rotate(-2deg);
            box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
        }
        .brand-name {
            font-weight: 800;
            font-size: 1.1rem;
            letter-spacing: -0.3px;
            background: linear-gradient(135deg, #2c3e50, #34495e);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            line-height: 1.3;
        }
        .navbar-brand:hover .brand-name {
            background: linear-gradient(135deg, #2563EB, #1D4ED8);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        .brand-tagline {
            font-size: 0.6rem;
            font-weight: 600;
            letter-spacing: 1px;
            text-transform: uppercase;
            color: var(--gray-400);
            line-height: 1;
            transition: color 0.3s;
        }
        .navbar-brand:hover .brand-tagline {
            color: var(--primary);
        }

        /* ─── TOP BAR ─── */
        .premium-topbar {
            background: linear-gradient(135deg, #2563EB, #1D4ED8);
            padding: 0.35rem 0;
        }
        .premium-topbar .topbar-links a {
            color: rgba(255,255,255,0.6);
            font-size: 0.75rem;
            text-decoration: none;
            transition: color 0.2s;
            padding: 0 0.6rem;
        }
        .premium-topbar .topbar-links a:hover { color: #fff; }
        .premium-topbar .topbar-links .separator {
            color: rgba(255,255,255,0.15);
            font-size: 0.65rem;
        }

        /* ─── HEADER ─── */
        .premium-header {
            background: #edf4ff;
            border-bottom: 1px solid #d4e2f2;
            position: sticky;
            top: 0;
            z-index: 1030;
            transition: var(--transition);
        }
        .premium-header .header-search {
            flex: 1;
            max-width: 560px;
        }
        .premium-header .header-search .input-group {
            border: 2px solid var(--gray-200);
            border-radius: 50px;
            overflow: hidden;
            transition: var(--transition);
            background: var(--gray-50);
        }
        .premium-header .header-search .input-group:focus-within {
            border-color: var(--primary);
            box-shadow: 0 0 0 4px var(--primary-light);
            background: #fff;
        }
        .premium-header .header-search .form-control {
            border: none;
            font-size: 0.88rem;
            padding: 0.65rem 1.2rem;
            background: transparent;
        }
        .premium-header .header-search .form-control:focus { box-shadow: none; }
        .premium-header .header-search .btn-search {
            background: transparent;
            color: var(--gray-400);
            border: none;
            padding: 0.6rem 1.2rem;
            font-size: 1.1rem;
            transition: var(--transition);
        }
        .premium-header .header-search .btn-search:hover {
            color: var(--primary);
            transform: scale(1.05);
        }
        .premium-header .header-icons a {
            color: #334155;
            font-size: 0.85rem;
            text-decoration: none;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.1rem;
            padding: 0.4rem 0.7rem;
            position: relative;
            border-radius: var(--radius-sm);
            transition: var(--transition);
        }
        .premium-header .header-icons a:hover {
            background: var(--primary-light);
        }
        .premium-header .header-icons a i {
            font-size: 1.3rem;
            transition: var(--transition);
        }
        .premium-header .header-icons a:hover i {
            color: var(--primary);
            transform: translateY(-1px);
        }
        .premium-header .header-icons a span { font-size: 0.68rem; color: var(--gray-600); }
        .premium-header .header-icons a:hover span { color: var(--primary); }
        .cart-count {
            position: absolute;
            top: -8px;
            right: -10px;
            background: linear-gradient(135deg, #2563EB, #1D4ED8);
            color: #fff;
            font-size: 0.5rem;
            font-weight: 800;
            min-width: 20px;
            height: 20px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 2px solid #fff;
            box-shadow: 0 2px 6px rgba(37, 99, 235, 0.4);
            animation: cartBounce 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
            z-index: 5;
            line-height: 1;
        }

        /* ─── CATEGORY NAV ─── */
        .premium-category-nav {
            background: #fff;
            border-bottom: 1px solid var(--gray-100);
        }
        .premium-category-nav .cat-scroll {
            display: flex;
            overflow-x: auto;
            gap: 0;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }
        .premium-category-nav .cat-scroll::-webkit-scrollbar { display: none; }
        .premium-category-nav .cat-item {
            flex-shrink: 0;
            padding: 0.7rem 1.2rem;
            font-size: 0.82rem;
            color: var(--gray-600);
            text-decoration: none;
            white-space: nowrap;
            border-bottom: 2px solid transparent;
            transition: var(--transition);
            font-weight: 500;
        }
        .premium-category-nav .cat-item:hover,
        .premium-category-nav .cat-item.active {
            color: var(--primary);
            border-bottom-color: var(--primary);
            background: var(--primary-light);
        }
        .premium-category-nav .more-dropdown a:hover {
            background: var(--primary-light) !important;
            color: var(--primary) !important;
        }
        .premium-category-nav .more-dropdown a.active {
            background: var(--primary-light) !important;
            color: var(--primary) !important;
            font-weight: 600;
        }
        .premium-category-nav .cat-item-more:hover {
            color: var(--primary);
            border-bottom-color: var(--primary);
            background: var(--primary-light);
        }

        /* ─── SHOPEE HERO BANNER ─── */
        .shopee-hero {
            background: #fff;
            padding: 12px 0 16px;
        }

        .hero-grid {
            display: grid;
            grid-template-columns: 70% calc(30% - 12px);
            gap: 12px;
            align-items: stretch;
        }

        /* ── MAIN CAROUSEL ── */
        .hero-main {
            border-radius: 12px;
            overflow: hidden;
            min-height: 320px;
        }

        .heroSwiper {
            width: 100%;
            height: 320px;
            border-radius: 12px;
            overflow: hidden;
        }

        .heroSwiper .swiper-slide {
            position: relative;
            overflow: hidden;
        }

        .hero-slide-link {
            display: block;
            position: relative;
            width: 100%;
            height: 100%;
            text-decoration: none;
        }

        .hero-slide-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: transform 6s ease;
        }

        .heroSwiper .swiper-slide-active .hero-slide-img {
            transform: scale(1.05);
        }

        .hero-slide-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(90deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.15) 50%, transparent 100%);
            pointer-events: none;
        }

        .hero-slide-content-abs {
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            display: flex;
            flex-direction: column;
            justify-content: center;
            padding: 40px;
            max-width: 55%;
            pointer-events: none;
        }

        .hero-slide-fallback {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, #2563EB, #1D4ED8);
        }

        .hero-slide-content {
            text-align: left;
        }

        .hero-slide-fallback .hero-slide-content {
            text-align: center;
            padding: 20px;
        }

        .hero-slide-title {
            font-size: 1.5rem;
            font-weight: 700;
            color: #fff;
            margin: 0 0 6px;
            line-height: 1.25;
            text-shadow: 0 1px 4px rgba(0,0,0,0.2);
        }

        .hero-slide-subtitle {
            font-size: 0.85rem;
            color: rgba(255,255,255,0.9);
            margin: 0 0 12px;
            line-height: 1.4;
            text-shadow: 0 1px 3px rgba(0,0,0,0.15);
        }

        .hero-slide-cta {
            display: inline-block;
            padding: 7px 20px;
            background: #2563EB;
            color: #fff;
            font-size: 0.8rem;
            font-weight: 600;
            border-radius: 4px;
            pointer-events: auto;
            transition: background 0.2s ease;
        }

        .hero-slide-cta:hover {
            background: #1D4ED8;
        }

        /* Swiper pagination */
        .heroSwiper .swiper-pagination {
            bottom: 12px !important;
            display: flex;
            justify-content: center;
            gap: 5px;
        }

        .heroSwiper .swiper-pagination-bullet {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: rgba(255,255,255,0.5);
            opacity: 1;
            transition: all 0.3s ease;
            margin: 0 !important;
        }

        .heroSwiper .swiper-pagination-bullet-active {
            width: 22px;
            border-radius: 4px;
            background: #2563EB;
        }

        /* Swiper nav buttons */
        .heroSwiper .swiper-button-prev,
        .heroSwiper .swiper-button-next {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(255,255,255,0.85);
            color: #333;
            opacity: 0;
            transition: opacity 0.25s ease, background 0.2s ease;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }

        .heroSwiper:hover .swiper-button-prev,
        .heroSwiper:hover .swiper-button-next {
            opacity: 1;
        }

        .heroSwiper .swiper-button-prev:hover,
        .heroSwiper .swiper-button-next:hover {
            background: #fff;
        }

        .heroSwiper .swiper-button-prev::after,
        .heroSwiper .swiper-button-next::after {
            font-size: 14px;
            font-weight: 700;
        }

        .heroSwiper .swiper-button-prev { left: 8px; }
        .heroSwiper .swiper-button-next { right: 8px; }

        /* ── SIDE PROMO BANNERS ── */
        .hero-side {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .hero-promo-card {
            flex: 1;
            display: block;
            position: relative;
            border-radius: 12px;
            overflow: hidden;
            text-decoration: none;
            min-height: 0;
            transition: transform 0.3s ease;
        }

        .hero-promo-card:hover {
            transform: scale(1.03);
        }

        .hero-promo-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            border-radius: 12px;
        }

        .hero-promo-gradient {
            position: absolute;
            inset: 0;
            background: linear-gradient(0deg, rgba(0,0,0,0.4) 0%, transparent 60%);
            border-radius: 12px;
            pointer-events: none;
        }

        .hero-promo-content-abs {
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            padding: 16px 16px 14px;
            pointer-events: none;
        }

        .hero-promo-fallback {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: flex-end;
            padding: 16px;
            background: linear-gradient(135deg, #2563EB, #1D4ED8);
            border-radius: 12px;
            min-height: 154px;
        }

        .hero-promo-title {
            font-size: 0.9rem;
            font-weight: 700;
            color: #fff;
            margin: 0 0 2px;
            line-height: 1.2;
            text-shadow: 0 1px 3px rgba(0,0,0,0.2);
        }

        .hero-promo-desc {
            font-size: 0.7rem;
            color: rgba(255,255,255,0.85);
            margin: 0;
            line-height: 1.3;
            text-shadow: 0 1px 2px rgba(0,0,0,0.15);
        }

        /* ── RESPONSIVE ── */
        @media (max-width: 991.98px) {
            .hero-grid {
                grid-template-columns: 1fr;
                gap: 8px;
            }

            .hero-side {
                display: none;
            }

            .hero-main,
            .heroSwiper {
                min-height: 260px;
                height: 260px;
            }
        }

        @media (max-width: 575.98px) {
            .shopee-hero { padding: 0 0 8px; }

            .hero-grid { gap: 6px; }

            .hero-side {
                display: none;
            }

            .hero-main,
            .heroSwiper {
                min-height: 200px;
                height: 200px;
                border-radius: 0;
            }

            .hero-slide-content-abs {
                padding: 20px;
                max-width: 70%;
            }

            .hero-slide-title { font-size: 1.1rem; }
            .hero-slide-subtitle { font-size: 0.75rem; }
            .hero-slide-cta { padding: 5px 14px; font-size: 0.7rem; }

            .heroSwiper .swiper-button-prev,
            .heroSwiper .swiper-button-next { display: none; }

            .hero-promo-title { font-size: 0.8rem; }
            .hero-promo-desc { font-size: 0.65rem; }
        }

        /* ─── ENTRANCE ANIMATIONS ─── */
        .animate-in {
            animation: floatIn 0.6s var(--ease-bounce) both;
        }
        .animate-in-d1 { animation-delay: 0.05s; }
        .animate-in-d2 { animation-delay: 0.1s; }
        .animate-in-d3 { animation-delay: 0.15s; }
        .animate-in-d4 { animation-delay: 0.2s; }
        .animate-in-d5 { animation-delay: 0.25s; }
        .animate-in-d6 { animation-delay: 0.3s; }
        .animate-in-d7 { animation-delay: 0.35s; }
        .animate-in-d8 { animation-delay: 0.4s; }
        @keyframes fadeUp {
            0%   { opacity: 0; transform: translateY(28px) scale(0.97); }
            60%  { opacity: 1; transform: translateY(-3px) scale(1.005); }
            100% { opacity: 1; transform: translateY(0) scale(1); }
        }
        @keyframes fadeUpSmooth {
            0%   { opacity: 0; transform: translateY(20px); }
            100% { opacity: 1; transform: translateY(0); }
        }
        @keyframes fadeIn {
            from { opacity: 0; }
            to   { opacity: 1; }
        }
        @keyframes scaleIn {
            0%   { opacity: 0; transform: scale(0.92); }
            100% { opacity: 1; transform: scale(1); }
        }
        @keyframes cartBounce {
            0%   { transform: scale(0); opacity: 0; }
            50%  { transform: scale(1.25); }
            70%  { transform: scale(0.9); }
            100% { transform: scale(1); opacity: 1; }
        }
        @keyframes slideInRight {
            from { opacity: 0; transform: translateX(24px); }
            to   { opacity: 1; transform: translateX(0); }
        }
        @keyframes floatIn {
            0%   { opacity: 0; transform: translateY(20px) scale(0.96); }
            100% { opacity: 1; transform: translateY(0) scale(1); }
        }

        /* ─── PREMIUM PRODUCT CARD ─── */
        .product-card {
            border: 1px solid #f0f0f0;
            border-radius: 8px;
            background: #fff;
            height: 100%;
            transition: border-color 0.2s ease;
            overflow: hidden;
        }
        .product-card:hover {
            border-color: #2563EB;
        }
        .product-card .product-img-wrap {
            position: relative;
            overflow: hidden;
            background: #f5f5f5;
            aspect-ratio: 1 / 1;
        }
        .product-card .card-img-top {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .product-card .product-body {
            padding: 0.4rem 0.4rem 0.3rem;
        }
        .product-card .product-name {
            font-size: 0.65rem;
            font-weight: 400;
            color: #222;
            line-height: 1.3;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            margin-bottom: 0.15rem;
            min-height: 1.7em;
        }
        .product-card .product-name a {
            color: inherit;
            text-decoration: none;
        }
        .product-card .product-name a:hover { color: #2563EB; }
        .product-card .product-price {
            font-size: 0.75rem;
            font-weight: 700;
            color: #2563EB;
            margin-bottom: 0.1rem;
        }
        .product-card .product-price-original {
            font-size: 0.55rem;
            color: #999;
            text-decoration: line-through;
            margin-left: 0.2rem;
            font-weight: 400;
        }
        .product-card .product-rating {
            display: flex;
            align-items: center;
            gap: 0.2rem;
            font-size: 0.52rem;
            color: #999;
            margin-bottom: 0.1rem;
        }
        .product-card .product-rating .stars {
            color: #2563EB;
        }
        .product-card .product-rating .sold {
            color: #999;
        }
        .product-card .product-badge {
            font-size: 0.55rem;
            padding: 0.1rem 0.35rem;
            border-radius: 2px;
            font-weight: 600;
            display: inline-block;
            line-height: 1.3;
        }
        .product-card .product-badge.free-ship {
            background: #fef8f5;
            color: #2563EB;
            border: 1px solid #2563EB;
        }
        .product-card .product-badge.flash-sale {
            background: #fff0f0;
            color: #2563EB;
        }
        .product-card .product-badge.mall {
            background: #2563EB;
            color: #fff;
        }
        .product-card .product-location {
            font-size: 0.5rem;
            color: #bbb;
            margin-top: 0.1rem;
        }


        /* ─── SECTION DIVIDER ─── */
        .section-divider {
            width: 48px;
            height: 4px;
            background: var(--primary-gradient);
            border-radius: 4px;
            margin: 0.75rem auto 1.5rem;
        }

        /* ─── FOOTER ─── */
        .premium-footer {
            background: var(--darker);
            color: rgba(255,255,255,0.55);
            position: relative;
        }
        .premium-footer::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, var(--primary), var(--accent), var(--success), var(--info));
        }
        .premium-footer a {
            color: rgba(255,255,255,0.55);
            text-decoration: none;
            transition: var(--transition);
        }
        .premium-footer a:hover { color: #fff; }
        .premium-footer h5, .premium-footer h6 {
            color: #fff;
        }
        .premium-footer .social-btn {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border: 1px solid rgba(255,255,255,0.1);
            color: rgba(255,255,255,0.45);
            transition: all 0.3s var(--ease-smooth);
            text-decoration: none;
        }
        .premium-footer .social-btn:hover {
            background: var(--primary);
            border-color: var(--primary);
            color: #fff;
            transform: translateY(-3px);
            box-shadow: var(--shadow-glow);
        }

        /* ─── NAV ICONS ─── */
        .cart-badge {
            position: absolute;
            top: -6px;
            right: -8px;
            font-size: 0.55rem;
            padding: 0.2em 0.5em;
            background: linear-gradient(135deg, #2563EB, #1D4ED8);
            border: 2px solid #fff;
            animation: cartBounce 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
            min-width: 20px;
            height: 20px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 6px rgba(37, 99, 235, 0.4);
            font-weight: 800;
            line-height: 1;
        }
        .nav-icon {
            position: relative;
            font-size: 1.25rem;
            color: rgba(255,255,255,0.7);
            transition: all 0.25s var(--ease-smooth);
        }
        .nav-icon:hover {
            color: #fff;
            transform: translateY(-2px);
        }

        /* ─── BADGES ─── */
        .badge-discount {
            position: absolute;
            top: 6px;
            left: 0;
            background: #2563EB;
            color: #fff;
            font-weight: 700;
            font-size: 0.62rem;
            padding: 0.1rem 0.45rem;
            z-index: 2;
            border-radius: 0 2px 2px 0;
        }
        .badge-free-ship {
            position: absolute;
            top: 0.5rem;
            left: 0.5rem;
            background: rgba(255,255,255,0.9);
            color: var(--primary);
            font-weight: 600;
            font-size: 0.6rem;
            padding: 0.15em 0.4em;
            border-radius: var(--radius-sm);
            z-index: 2;
            backdrop-filter: blur(8px);
        }

        /* ─── WISHLIST BTN ─── */
        .wishlist-btn {
            position: absolute;
            top: 0.5rem;
            right: 0.5rem;
            background: rgba(255,255,255,0.9);
            backdrop-filter: blur(8px);
            border: none;
            border-radius: 50%;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.25s var(--ease-smooth);
            z-index: 3;
            font-size: 0.85rem;
            color: var(--gray-400);
        }
        .wishlist-btn:hover {
            background: #fff;
            color: var(--danger);
            transform: scale(1.1);
        }
        .wishlist-btn.active {
            color: var(--danger);
        }

        /* ─── PRICES ─── */
        .price-original {
            text-decoration: line-through;
            color: var(--gray-400);
            font-size: 0.78rem;
            font-weight: 400;
        }
        .price-sale {
            color: var(--primary);
            font-weight: 700;
            font-size: 1rem;
        }
        .price-regular {
            font-weight: 700;
            font-size: 1rem;
            color: var(--primary);
        }

        /* ─── FILTER SIDEBAR ─── */
        .filter-sidebar {
            position: sticky;
            top: 5.5rem;
            scroll-margin-top: 5.5rem;
        }
        .filter-sidebar .card {
            border: none;
            border-radius: var(--radius-md);
            box-shadow: var(--shadow-xs);
            background: #fff;
        }
        .filter-sidebar h6 {
            font-size: 0.82rem;
            text-transform: uppercase;
            color: var(--gray-600);
            letter-spacing: 0.5px;
            margin-bottom: 0.75rem;
        }
        .filter-sidebar .form-check {
            padding: 0.2rem 0;
            display: flex;
            align-items: center;
        }
        .filter-sidebar .form-check-input:checked {
            background-color: var(--primary);
            border-color: var(--primary);
        }
        .filter-sidebar .form-check-input {
            cursor: pointer;
            border-radius: 4px;
            transition: all 0.2s;
            flex-shrink: 0;
            margin-top: 0;
        }
        .filter-sidebar .form-check-input:focus {
            box-shadow: 0 0 0 3px var(--primary-light);
        }
        .filter-sidebar .form-check-label {
            cursor: pointer;
            font-size: 0.85rem;
            display: flex;
            width: 100%;
            align-items: center;
            gap: 0.25rem;
            min-width: 0;
        }
        .filter-sidebar .form-check-label .flex-grow-1 {
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .filter-sidebar .form-check-label .text-muted {
            flex-shrink: 0;
            min-width: 1.6rem;
            text-align: right;
        }
        .filter-cat-scroll {
            max-height: 280px;
            overflow-y: auto;
            padding-right: 0.25rem;
        }
        .filter-cat-scroll::-webkit-scrollbar { width: 3px; }
        .filter-cat-scroll::-webkit-scrollbar-track { background: transparent; }
        .filter-cat-scroll::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 10px; }

        .sort-select {
            border-radius: var(--radius-sm);
            font-size: 0.82rem;
            padding: 0.4rem 1rem;
            border: 1px solid var(--gray-200);
            cursor: pointer;
            background: #fff;
            transition: var(--transition);
        }
        .sort-select:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px var(--primary-light);
        }

        /* ─── ACTIVE FILTER BADGES ─── */
        .active-filter-badge {
            background: var(--primary);
            color: #fff;
            padding: 0.3rem 0.8rem;
            font-size: 0.75rem;
            font-weight: 500;
            text-decoration: none;
            transition: all 0.2s var(--ease-smooth);
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            line-height: 1.5;
            white-space: nowrap;
            border-radius: 50px;
        }
        .active-filter-badge:hover {
            background: var(--primary-dark);
            color: #fff;
        }
        .active-filter-badge .bi-x {
            font-size: 0.65rem;
            transition: transform 0.2s var(--ease-smooth);
        }
        .active-filter-badge:hover .bi-x {
            transform: rotate(90deg) scale(1.2);
        }

        /* ─── PRODUCT DETAIL ─── */
        /* ─── PRODUCT DETAIL (Shopee style) ─── */
        .pd-wrap {
            background: #fff;
            border: 1px solid #f0f0f0;
            border-radius: 3px;
        }
        .pd-gallery {
            background: #fafafa;
            border: 1px solid #f0f0f0;
            border-radius: 3px;
            overflow: hidden;
        }
        .pd-badge {
            position: absolute;
            top: 8px;
            left: 0;
            background: #2563EB;
            color: #fff;
            font-weight: 700;
            font-size: 0.65rem;
            padding: 0.1rem 0.5rem;
            z-index: 2;
            border-radius: 0 3px 3px 0;
        }
        .pd-thumb {
            width: 64px;
            height: 64px;
            border: 2px solid transparent;
            border-radius: 2px;
            overflow: hidden;
            cursor: pointer;
            flex-shrink: 0;
            opacity: 0.5;
            transition: all 0.15s ease;
        }
        .pd-thumb:hover { opacity: 0.8; }
        .pd-thumb.active { opacity: 1; border-color: #2563EB; }
        .pd-brand {
            font-size: 0.72rem;
            color: #999;
            margin-bottom: 0.2rem;
        }
        .pd-title {
            font-size: 1.1rem;
            font-weight: 600;
            color: #222;
            line-height: 1.35;
            margin-bottom: 0.4rem;
        }
        .pd-rating {
            padding-bottom: 0.5rem;
            border-bottom: 1px solid #f0f0f0;
            margin-bottom: 0.5rem;
        }
        .pd-rating-num {
            font-size: 0.85rem;
            font-weight: 700;
            color: #2563EB;
        }
        .pd-star {
            color: #2563EB;
            font-size: 0.6rem;
            margin-right: 1px;
        }
        .pd-rating-text, .pd-sold {
            font-size: 0.72rem;
            color: #888;
        }
        .pd-dot {
            font-size: 0.72rem;
            color: #ddd;
        }
        .pd-price-wrap {
            background: #fef8f5;
            padding: 0.6rem 0.8rem;
            border-radius: 3px;
            margin-bottom: 0.5rem;
        }
        .pd-price-current {
            font-size: 1.5rem;
            font-weight: 700;
            color: #2563EB;
        }
        .pd-price-old {
            font-size: 0.85rem;
            color: #bbb;
            text-decoration: line-through;
            margin-left: 0.4rem;
        }
        .pd-price-discount {
            font-size: 0.7rem;
            font-weight: 700;
            color: #fff;
            background: #2563EB;
            padding: 0.05rem 0.35rem;
            border-radius: 2px;
            margin-left: 0.4rem;
            vertical-align: middle;
        }
        .pd-desc {
            font-size: 0.8rem;
            color: #555;
            margin-bottom: 0.5rem;
            line-height: 1.5;
        }
        .pd-desc-wrap {
            background: #fafafa;
            border: 1px solid #f0f0f0;
            border-radius: 6px;
            padding: 0.6rem 0.8rem;
            margin-bottom: 0.6rem;
        }
        .pd-desc-label {
            font-size: 0.68rem;
            font-weight: 600;
            color: #999;
            text-transform: uppercase;
            letter-spacing: 0.4px;
            margin-bottom: 0.3rem;
        }
        .pd-desc-wrap .pd-desc {
            margin-bottom: 0;
        }
        .pd-ship-wrap {
            background: #fafafa;
            padding: 0.4rem 0.6rem;
            border-radius: 3px;
            margin-bottom: 0.6rem;
        }
        .pd-qty-wrap {
            margin-bottom: 0.5rem;
        }
        .pd-qty-btn {
            width: 28px;
            height: 26px;
            border: none;
            background: #fff;
            color: #222;
            font-size: 0.85rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.15s ease;
        }
        .pd-qty-btn:hover { background: #f5f5f5; }
        .pd-qty-input {
            width: 40px;
            height: 26px;
            border: none;
            border-left: 1px solid #e0e0e0;
            border-right: 1px solid #e0e0e0;
            text-align: center;
            font-size: 0.8rem;
            color: #222;
            background: #fff;
            outline: none;
            -moz-appearance: textfield;
        }
        .pd-qty-input::-webkit-inner-spin-button,
        .pd-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
        .pd-btn-cart {
            flex: 1;
            height: 38px;
            border: 1px solid #2563EB;
            background: #fff;
            color: #2563EB;
            font-size: 0.8rem;
            font-weight: 600;
            border-radius: 3px;
            cursor: pointer;
            transition: all 0.15s ease;
        }
        .pd-btn-cart:hover {
            background: #fff5f2;
        }
        .pd-btn-cart:disabled {
            opacity: 0.4;
            cursor: not-allowed;
        }
        .pd-btn-buy {
            flex: 1;
            height: 38px;
            border: none;
            background: #2563EB;
            color: #fff;
            font-size: 0.8rem;
            font-weight: 600;
            border-radius: 3px;
            cursor: pointer;
            transition: all 0.15s ease;
        }
        .pd-btn-buy:hover {
            background: #d43b1e;
        }
        .pd-btn-buy:disabled {
            opacity: 0.4;
            cursor: not-allowed;
        }
        .pd-btn-wish {
            width: 38px;
            height: 38px;
            border: 1px solid #e0e0e0;
            background: #fff;
            color: #999;
            font-size: 1rem;
            border-radius: 3px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.15s ease;
        }
        .pd-btn-wish:hover {
            border-color: #2563EB;
            color: #2563EB;
        }
        .pd-variant-btn {
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 0.1rem;
            min-width: 110px;
            padding: 0.45rem 0.7rem;
            border: 1px solid #e0e0e0;
            border-radius: 3px;
            background: #fff;
            cursor: pointer;
            text-align: left;
            transition: all 0.15s ease;
        }
        .pd-variant-btn:hover {
            border-color: #2563EB;
        }
        .pd-variant-btn.active {
            border-color: #2563EB;
            background: #f0f6ff;
        }
        .pd-variant-btn.active::after {
            content: '';
            position: absolute;
            right: 0;
            bottom: 0;
            border-style: solid;
            border-width: 0 0 18px 18px;
            border-color: transparent transparent #2563EB transparent;
        }
        .pd-variant-name {
            font-size: 0.78rem;
            font-weight: 600;
            color: #222;
            padding-right: 12px;
        }
        .pd-variant-price {
            font-size: 0.72rem;
            font-weight: 700;
            color: #2563EB;
        }
        .pd-variant-check {
            position: absolute;
            right: 3px;
            bottom: 3px;
            font-size: 0.6rem;
            color: #fff;
            z-index: 1;
        }
        .pd-share-btn {
            width: 24px;
            height: 24px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border: 1px solid #e0e0e0;
            border-radius: 50%;
            color: #999;
            font-size: 0.6rem;
            text-decoration: none;
            transition: all 0.15s ease;
        }
        .pd-share-btn:hover {
            border-color: #2563EB;
            color: #2563EB;
        }
        .pd-section-wrap {}
        .pd-section {
            background: #fff;
            border: 1px solid #f0f0f0;
            border-radius: 3px;
        }
        .pd-rating-big {}

        /* ─── BREADCRUMB ─── */
        .breadcrumb {
            background: transparent;
            padding: 0;
            font-size: 0.85rem;
        }
        .breadcrumb-item a {
            color: var(--gray-600);
            text-decoration: none;
            transition: var(--transition);
        }
        .breadcrumb-item a:hover { color: var(--primary); }

        /* ─── SHOP PAGE ─── */
        .shop-header {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
            gap: 0.75rem;
        }
        .shop-header .results-count {
            font-size: 0.9rem;
            color: var(--gray-600);
            margin-bottom: 0;
        }
        .shop-header .results-count strong {
            font-weight: 600;
            color: var(--dark);
        }
        .shop-header .shop-toolbar {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }
        .shop-header .shop-toolbar .sort-label {
            color: var(--gray-600);
            font-size: 0.82rem;
            margin-bottom: 0;
            white-space: nowrap;
        }
        .view-toggle {
            overflow: hidden;
            border: 1px solid var(--gray-200);
            display: flex;
            border-radius: var(--radius-sm);
        }
        .view-toggle .btn {
            border: none;
            padding: 0.35rem 0.9rem;
            color: var(--gray-600);
            background: transparent;
            transition: all 0.25s var(--ease-smooth);
        }
        .view-toggle .btn.active {
            background: var(--primary);
            color: #fff;
        }
        .view-toggle .btn:not(.active):hover {
            background: var(--gray-50);
            color: var(--dark);
        }
        .filter-section-title {
            font-size: 0.82rem;
            color: var(--gray-600);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-weight: 600;
            margin-bottom: 0.75rem;
        }
        .price-input {
            border-radius: var(--radius-sm);
            font-size: 0.85rem;
        }
        .apply-price-btn {
            font-weight: 600;
            font-size: 0.82rem;
            padding: 0.35rem 1rem;
            width: 100%;
            margin-top: 0.5rem;
        }
        .shop-empty-icon {
            font-size: 4rem;
            color: var(--gray-300);
        }
        .shop-empty-title {
            font-weight: 700;
            margin-bottom: 0.5rem;
        }
        .shop-empty-text {
            color: var(--gray-600);
            margin-bottom: 1rem;
        }

        /* ─── PAGINATION ─── */
        .pagination .page-link {
            border: none;
            margin: 0 3px;
            color: var(--gray-600);
            font-weight: 500;
            transition: all 0.3s var(--ease-smooth);
            min-width: 40px;
            text-align: center;
            border-radius: var(--radius-sm);
        }
        .pagination .page-item.active .page-link {
            background: var(--primary);
            color: #fff;
            box-shadow: var(--shadow-glow);
        }
        .pagination .page-link:hover {
            background: var(--gray-50);
            color: var(--primary);
            transform: translateY(-2px);
        }

        /* ─── SECTION TITLES ─── */
        .section-title {
            font-weight: 800;
            letter-spacing: -0.5px;
            color: var(--dark);
        }
        .section-subtitle {
            color: var(--gray-600);
            font-size: 0.95rem;
        }

        /* ─── BUTTONS ─── */
        .btn-primary {
            --bs-btn-bg: var(--primary);
            --bs-btn-border-color: var(--primary);
            --bs-btn-hover-bg: var(--primary-dark);
            --bs-btn-hover-border-color: var(--primary-dark);
            --bs-btn-active-bg: var(--primary-dark);
            border-radius: var(--radius-sm);
            font-weight: 600;
        }
        .btn-outline-primary {
            --bs-btn-color: var(--primary);
            --bs-btn-border-color: var(--primary);
            --bs-btn-hover-bg: var(--primary);
            --bs-btn-hover-border-color: var(--primary);
            border-radius: var(--radius-sm);
            font-weight: 600;
        }
        .bg-primary {
            --bs-bg-opacity: 1;
            background-color: rgba(var(--bs-primary-rgb), var(--bs-bg-opacity)) !important;
        }
        :root {
            --bs-primary: #2563EB;
            --bs-primary-rgb: 74, 144, 217;
        }
        .btn-premium {
            border-radius: 50px;
            font-weight: 600;
            padding: 0.55rem 1.4rem;
            transition: all 0.3s var(--ease-smooth);
            background: var(--primary-gradient);
            border: none;
            color: #fff;
            box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
        }
        .btn-premium:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
            color: #fff;
        }

        /* ─── RATING ─── */
        .rating-star {
            color: var(--accent);
            font-size: 0.78rem;
        }
        .rating-star.empty {
            color: var(--gray-300);
        }

        /* ─── TABS ─── */
        .tab-modern .nav-link {
            border: none;
            color: var(--gray-600);
            font-weight: 600;
            padding: 0.7rem 1.3rem;
            transition: all 0.3s var(--ease-smooth);
            border-radius: var(--radius-sm);
        }
        .tab-modern .nav-link.active {
            background: var(--primary);
            color: #fff;
            box-shadow: var(--shadow-glow);
        }
        .tab-modern .nav-link:hover:not(.active) {
            background: var(--gray-50);
            color: var(--dark);
        }

        /* ─── REVIEW CARD ─── */
        .review-card {
            border: none;
            transition: all 0.3s var(--ease-smooth);
        }

        /* ─── QTY INPUT ─── */
        .qty-input {
            border: 2px solid var(--gray-200);
            overflow: hidden;
            transition: all 0.25s var(--ease-smooth);
            border-radius: var(--radius-sm);
        }
        .qty-input:focus-within {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px var(--primary-light);
        }
        .qty-input .btn {
            border: none;
            background: transparent;
            padding: 0.4rem 0.7rem;
            font-weight: 700;
            color: var(--gray-600);
            transition: all 0.25s var(--ease-smooth);
        }
        .qty-input .btn:hover {
            background: var(--gray-50);
            color: var(--primary);
            transform: scale(1.1);
        }
        .qty-input .btn:active { transform: scale(0.9); }
        .qty-input .form-control {
            border: none;
            text-align: center;
            font-weight: 600;
            background: transparent;
        }
        .qty-input .form-control:focus { box-shadow: none; }

        /* ─── MOBILE TOPBAR HIDE ─── */
        @media (max-width: 991.98px) {
            .premium-header .header-search { max-width: 100%; }
        }
        @media (max-width: 767.98px) {
            .premium-topbar { display: none; }
            .premium-footer { display: none; }
            .premium-category-nav .cat-item { font-size: 0.75rem; padding: 0.5rem 0.7rem; }
            .filter-sidebar {
                position: static;
                margin-bottom: 1rem;
            }
            .product-detail-img { height: 280px !important; }
            .product-card .product-name { font-size: 0.68rem; }
            .product-card .product-price { font-size: 0.78rem; }
        }

        /* ─── BOTTOM MOBILE NAV ─── */
        .bottom-nav {
            display: none;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(255,255,255,0.95);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-top: 1px solid var(--gray-100);
            z-index: 1050;
            padding: 0.3rem 0;
            box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
        }
        .bottom-nav .nav-item {
            flex: 1;
            text-align: center;
            text-decoration: none;
            color: var(--gray-400);
            font-size: 0.6rem;
            padding: 0.25rem 0;
            transition: var(--transition);
        }
        .bottom-nav .nav-item i {
            font-size: 1.2rem;
            display: block;
            margin-bottom: 0.05rem;
        }
        .bottom-nav .nav-item.active { color: var(--primary); }
        .bottom-nav .nav-item:hover { color: var(--primary); transform: translateY(-2px); }
        .bottom-nav .nav-item .cart-badge-bottom {
            position: absolute;
            top: -4px;
            right: -6px;
            background: linear-gradient(135deg, #2563EB, #1D4ED8);
            color: #fff;
            font-size: 0.5rem;
            font-weight: 800;
            min-width: 18px;
            height: 18px;
            border-radius: 9px;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 2px solid #fff;
            box-shadow: 0 2px 6px rgba(37, 99, 235, 0.4);
            animation: cartBounce 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
            line-height: 1;
        }
        @media (max-width: 991.98px) {
            .bottom-nav { display: flex; }
            body { padding-bottom: 55px; }
        }

        .card-body-content {
            padding: 0.85rem 1.1rem 0.5rem;
            transition: padding 0.3s var(--ease-smooth);
        }
        .product-card:hover .card-body-content {
            padding: 0.85rem 1.1rem 0.5rem;
        }

        /* ─── RATING SUMMARY ─── */
        .rating-summary {
            background: var(--primary-gradient);
            color: #fff;
            border-radius: var(--radius-md);
            padding: 1.75rem;
            text-align: center;
        }
        .rating-summary .big-score {
            font-size: 2.75rem;
            font-weight: 800;
            line-height: 1;
        }
        .rating-summary .progress { height: 6px !important; border-radius: 10px; }

        .stock-badge {
            font-size: 0.72rem;
            padding: 0.3em 0.85em;
            font-weight: 600;
        }

        .product-title-link {
            transition: color 0.3s var(--ease-smooth);
        }
        .product-card:hover .product-title-link {
            color: var(--primary) !important;
        }

        /* ─── PRICE DISPLAY ─── */
        .price-display .current {
            font-size: 1.8rem;
            font-weight: 800;
            color: var(--dark);
        }
        .price-display .original {
            font-size: 1rem;
            color: var(--gray-600);
            text-decoration: line-through;
        }
        .price-display .save {
            font-size: 0.8rem;
            background: #d1fae5;
            color: #065f46;
            padding: 0.15em 0.7em;
            border-radius: 50px;
            font-weight: 600;
        }

        .mb-4-5 { margin-bottom: 2.5rem; }

        /* ─── TOAST ─── */
        .toast-container { z-index: 1080; }

        /* ─── TAB FADE ─── */
        .tab-pane {
            transition: opacity 0.25s var(--ease-smooth), transform 0.25s var(--ease-smooth);
        }
        .tab-pane:not(.show) { opacity: 0; transform: translateY(8px); }
        .tab-pane.show { opacity: 1; transform: translateY(0); }

        /* ─── VIEW TOGGLE ─── */
        .btn-group .btn { transition: all 0.3s var(--ease-smooth); }
        .btn-group .btn.active {
            background: var(--primary) !important;
            color: #fff !important;
            border-color: var(--primary) !important;
        }

        /* ─── SKELETON ─── */
        .skeleton {
            background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
            background-size: 200% 100%;
            animation: shimmer 1.5s infinite;
            border-radius: var(--radius-sm);
        }
        @keyframes shimmer {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }

        /* ─── VIEW TRANSITIONS ─── */
        #productGrid {
            transition: opacity 0.2s var(--ease-smooth);
            min-height: 60vh;
            position: relative;
        }
        #productGrid.loading {
            opacity: 0.4;
            pointer-events: none;
            user-select: none;
        }
        #productGrid.list-view > .col-lg-3,
        #productGrid.list-view > [class*="col-"] {
            flex: 0 0 100%;
            max-width: 100%;
        }
        #productGrid.list-view .product-card {
            flex-direction: row;
        }
        #productGrid.list-view .product-img-wrap {
            width: 240px;
            flex-shrink: 0;
            aspect-ratio: 4 / 3;
        }
        #productGrid.list-view .card-body {
            flex: 1;
        }
        @media (max-width: 575.98px) {
            #productGrid.list-view .product-img-wrap {
                width: 140px;
            }
        }

        /* ─── CATEGORY CARD (Shopee style) ─── */
        .cat-card {
            border: 1px solid #f0f0f0;
            border-radius: 8px;
            background: #fff;
            padding: 0.4rem 0.2rem;
            transition: border-color 0.2s ease;
        }
        .cat-card:hover {
            border-color: #2563EB;
        }
        .cat-img-wrap {
            width: 40px;
            height: 40px;
            border-radius: 8px;
            background: #f5f5f5;
            transition: background 0.2s ease;
        }
        .cat-card:hover .cat-img-wrap {
            background: #2563EB;
        }
        .cat-card:hover .cat-img-wrap i {
            color: #fff !important;
        }
        .cat-img-wrap img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 8px;
        }
        .cat-col:nth-child(1) .cat-card { animation-delay: 0.02s; }
        .cat-col:nth-child(2) .cat-card { animation-delay: 0.07s; }
        .cat-col:nth-child(3) .cat-card { animation-delay: 0.12s; }
        .cat-col:nth-child(4) .cat-card { animation-delay: 0.17s; }

        /* ─── NOTIFICATIONS (Shopee style) ─── */
        .notif-row {
            padding: 0.75rem 0;
            border-bottom: 1px solid #f0f0f0;
            transition: background 0.15s ease;
            cursor: default;
        }
        .notif-row:first-child {
            padding-top: 0;
        }
        .notif-row:hover {
            background: #fafafa;
            margin: 0 -0.75rem;
            padding: 0.75rem;
            border-bottom-color: transparent;
            border-radius: 2px;
        }
        .notif-row.unread {
            background: #f5f9ff;
            margin: 0 -0.75rem;
            padding: 0.75rem;
            border-bottom-color: transparent;
        }
        .notif-row.unread:hover {
            background: #eef4fc;
        }
        .notif-icon-wrap-sm {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.85rem;
            flex-shrink: 0;
            margin-top: 2px;
        }
        .notif-row-title {
            font-size: 0.82rem;
            color: #222;
            font-weight: 600;
            line-height: 1.3;
        }
        .notif-row-title.read {
            font-weight: 400;
            color: #666;
        }
        .notif-row-msg {
            font-size: 0.75rem;
            color: #888;
            line-height: 1.4;
            margin: 0;
        }
        .notif-time {
            font-size: 0.68rem;
            color: #bbb;
            white-space: nowrap;
            flex-shrink: 0;
        }
        .notif-link {
            font-size: 0.75rem;
            color: #2563EB;
            text-decoration: none;
        }
        .notif-link:hover {
            text-decoration: underline;
        }

        /* Dropdown */
        .notif-drop-item {
            transition: background 0.15s ease;
            cursor: pointer;
        }
        .notif-drop-item:hover {
            background: #f5f9ff;
        }
        .notif-drop-item.unread {
            background: #f0f7ff;
        }
        #notificationDropdown .dropdown-toggle::after {
            display: none !important;
        }
        #notificationDropdown .dropdown-toggle.show {
            background: var(--primary-light);
        }
        #notificationDropdown .dropdown-toggle.show i {
            color: var(--primary);
        }

        /* ─── CHAT ─── */
.chat-container { max-width: 900px; margin: 0 auto; }
.chat-wrap {
    background: #fff; border-radius: 8px; max-height: 70vh;
    display: flex; flex-direction: column;
    box-shadow: 0 1px 8px rgba(0,0,0,0.05); overflow: hidden;
}
.chat-header {
    padding: 0.75rem 1rem; border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0; background: #fff; display: flex;
    align-items: center; gap: 0.75rem;
}
.chat-back-btn {
    width: 36px; height: 36px; display: inline-flex;
    align-items: center; justify-content: center;
    border-radius: 50%; color: #555; background: #f5f5f5;
    text-decoration: none; transition: background 0.15s;
}
.chat-back-btn:hover { background: #eee; color: #333; }
.chat-avatar {
    width: 42px; height: 42px; border-radius: 50%;
    background: #e0e0e0; display: flex; align-items: center;
    justify-content: center; overflow: hidden; flex-shrink: 0;
    position: relative;
}
.chat-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-avatar-initials { font-size: 0.9rem; font-weight: 600; color: #888; }
.chat-avatar-online {
    position: absolute; bottom: 1px; right: 1px;
    width: 10px; height: 10px; border-radius: 50%;
    background: #25d366; border: 2px solid #fff;
}
.chat-header-info { flex: 1; min-width: 0; }
.chat-header-name { font-size: 0.95rem; font-weight: 600; color: #111; }
.chat-header-sub { font-size: 0.73rem; color: #999; }
.chat-header-actions { display: flex; gap: 0.5rem; }

/* Conversation list */
.chat-convo {
    display: flex; align-items: center; gap: 0.85rem;
    padding: 0.85rem 1rem; text-decoration: none; color: inherit;
    border-bottom: 1px solid #f5f5f5; transition: background 0.12s ease;
    position: relative;
}
.chat-convo:last-child { border-bottom: none; }
.chat-convo:hover { background: #f5f6f8; }
.chat-convo:active { background: #eceef0; }
.chat-convo-name { font-size: 0.9rem; font-weight: 600; color: #111; }
.chat-convo-product { font-size: 0.73rem; color: #aaa; }
.chat-convo-preview {
    font-size: 0.8rem; color: #888;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chat-convo-time {
    font-size: 0.68rem; color: #bbb; white-space: nowrap;
    flex-shrink: 0; align-self: flex-start; padding-top: 2px;
}
.chat-convo-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 20px; height: 20px; border-radius: 10px;
    background: #25d366; color: #fff; font-size: 0.65rem;
    font-weight: 600; padding: 0 5px; flex-shrink: 0;
}

/* Message list */
.chat-msg-list {
    flex: 1; overflow-y: auto; min-height: 0;
    background: #e5ddd5; background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4cfc6' fill-opacity='0.15'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    padding: 0.5rem 1rem;
}
.chat-msg-list::-webkit-scrollbar { width: 4px; }
.chat-msg-list::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 4px; }

/* Date separator */
.chat-date-sep { text-align: center; margin: 0.75rem 0; position: relative; }
.chat-date-sep span {
    font-size: 0.68rem; color: #6b7b8d; background: #d9f2e4;
    padding: 0.25rem 0.65rem; border-radius: 8px;
    font-weight: 500; display: inline-block;
    box-shadow: 0 1px 1px rgba(0,0,0,0.08);
}

/* Message bubbles */
.chat-msg-row { display: flex; margin-bottom: 2px; }
.chat-msg-row + .chat-msg-row { margin-top: 0; }
.chat-msg-row.chat-msg-group { margin-top: 0; }
.chat-msg-row:not(.chat-msg-group) { margin-top: 6px; }
.chat-msg-row.justify-content-end { justify-content: flex-end; }
.chat-bubble {
    max-width: 65%; padding: 0.4rem 0.6rem 0.25rem 0.65rem;
    border-radius: 8px; word-break: break-word;
    line-height: 1.35; font-size: 0.87rem;
    position: relative; box-shadow: 0 1px 1px rgba(0,0,0,0.08);
}
.chat-bubble-me {
    background: #dcf8c6; color: #111;
    border-top-right-radius: 0;
}
.chat-bubble-other {
    background: #fff; color: #111;
    border-top-left-radius: 0;
}
/* Tails */
.chat-msg-row.justify-content-end .chat-bubble::before {
    content: ''; position: absolute; top: 0; right: -8px;
    border-width: 0 8px 8px 0;
    border-style: solid; border-color: #dcf8c6 transparent transparent transparent;
}
.chat-msg-row:not(.justify-content-end) .chat-bubble::before {
    content: ''; position: absolute; top: 0; left: -8px;
    border-width: 0 0 8px 8px;
    border-style: solid; border-color: #fff transparent transparent transparent;
}
/* Remove tail on first message of a group */
.chat-msg-group.chat-msg-row.justify-content-end .chat-bubble { border-top-right-radius: 8px; }
.chat-msg-group.chat-msg-row:not(.justify-content-end) .chat-bubble { border-top-left-radius: 8px; }
.chat-msg-group.chat-msg-row.justify-content-end .chat-bubble::before,
.chat-msg-group.chat-msg-row:not(.justify-content-end) .chat-bubble::before {
    display: none;
}

.chat-bubble-text { margin-bottom: 2px; }
.chat-bubble-meta {
    display: flex; align-items: center; justify-content: flex-end;
    gap: 3px; float: right; margin-left: 10px; margin-top: 4px;
    position: relative; top: 4px;
}
.chat-bubble-time { font-size: 0.6rem; color: #8899a6; }
.chat-bubble-check { font-size: 0.7rem; color: #53bdeb; }

/* Input area */
.chat-input-wrap {
    flex-shrink: 0; background: #f0f0f0;
    padding: 0.5rem 0.5rem; display: flex;
    align-items: center; gap: 0.4rem;
}
.chat-input-wrap .form-control {
    flex: 1; border-radius: 20px; border: none;
    padding: 0.55rem 0.9rem; font-size: 0.88rem;
    background: #fff; outline: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.chat-input-wrap .form-control:focus { box-shadow: 0 1px 4px rgba(0,0,0,0.1); }
.chat-send-btn {
    width: 42px; height: 42px; border-radius: 50%;
    background: #25d366; color: #fff; border: none;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; font-size: 1rem; transition: background 0.15s;
    cursor: pointer;
}
.chat-send-btn:hover { background: #20bd5a; }
.chat-send-btn:disabled { background: #a5d6a7; cursor: not-allowed; }

/* Empty states */
.chat-empty { text-align: center; padding: 4rem 1rem; }
.chat-empty-icon { font-size: 4rem; color: rgba(0,0,0,0.08); margin-bottom: 1rem; }
.chat-empty-text { font-size: 1rem; color: #666; margin-bottom: 0.35rem; font-weight: 500; }
.chat-empty-hint { font-size: 0.82rem; color: #999; }
.chat-wrap-centered { max-width: 720px; margin: 0 auto; }

/* Desktop */
@media (min-width: 768px) {
    .chat-wrap { max-height: calc(100vh - 160px); min-height: 420px; }
    .chat-container { max-width: 780px; }
}

/* Mobile */
@media (max-width: 767.98px) {
    .chat-layout { overflow: hidden; }
    .chat-layout main { overflow: hidden; }
    .chat-container { padding: 0 !important; width: 100%; max-width: 100%; height: 100vh; height: 100dvh; }
    .chat-wrap {
        height: 100%; max-height: 100%;
        border: none; border-radius: 0; box-shadow: none;
        display: flex; flex-direction: column;
    }
    .chat-header {
        padding: 0.55rem 0.5rem; flex-shrink: 0;
        background: #ededed; border-radius: 0;
    }
    .chat-avatar { width: 38px; height: 38px; }
    .chat-back-btn { width: 34px; height: 34px; }
    .chat-msg-list {
        flex: 1; min-height: 0; overflow-y: auto;
        -webkit-overflow-scrolling: touch; padding: 0.5rem 0.65rem;
        max-height: none;
    }
    .chat-bubble { max-width: 82%; font-size: 0.86rem; padding: 0.35rem 0.55rem 0.2rem 0.55rem; }
    .chat-input-wrap {
        flex-shrink: 0; position: static;
        padding: 0.45rem; background: #f0f0f0;
        border-top: 1px solid #e0e0e0; border-radius: 0;
    }
    .chat-input-wrap .form-control { font-size: 0.95rem; padding: 0.5rem 0.8rem; }
    .chat-send-btn { width: 38px; height: 38px; font-size: 0.9rem; }
    .chat-convo { padding: 0.75rem; gap: 0.7rem; }
    .chat-date-sep span { font-size: 0.65rem; }
}
/* ─── SHOPEE AUTH PAGES ─── */.store-search-card { transition: box-shadow 0.15s, transform 0.15s; border-radius: 8px !important; }
.store-search-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important; transform: translateY(-1px); }
        .shopee-auth {
            min-height: calc(100vh - 80px);
            display: flex;
            align-items: center;
            background: #f5f5f5;
        }
        .shopee-auth .auth-illustration {
            text-align: center;
            padding: 2rem;
        }
        .shopee-auth .auth-brand {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.75rem;
            margin-bottom: 2.5rem;
        }
        .shopee-auth .brand-logo-auth {
            width: 48px;
            height: 48px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            background: linear-gradient(135deg, #2563EB, #1D4ED8);
            border: none;
            border-radius: 2px;
        }
        .shopee-auth .brand-logo-auth img {
            height: 50px;
            width: auto;
        }
        .shopee-auth .auth-brand-text h2 {
            font-size: 1.5rem;
            font-weight: 700;
            color: #222;
            margin: 0;
            text-align: left;
            line-height: 1.2;
        }
        .shopee-auth .auth-brand-text p {
            font-size: 0.78rem;
            color: #999;
            margin: 0;
            text-align: left;
        }
        .shopee-auth .phone-mockup {
            width: 140px;
            height: 280px;
            border: 3px solid #e0e0e0;
            border-radius: 20px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            background: #fafafa;
            margin: 0 auto;
            position: relative;
        }
        .shopee-auth .phone-mockup .phone-screen {
            width: calc(100% - 12px);
            height: calc(100% - 12px);
            border-radius: 14px;
            background: #fff;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            border: 1px solid #f0f0f0;
        }
        .shopee-auth .phone-mockup .phone-screen i {
            font-size: 2.5rem;
            color: #2563EB;
            margin-bottom: 0.5rem;
        }
        .shopee-auth .phone-mockup .phone-screen span {
            font-size: 0.6rem;
            color: #bbb;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        .shopee-auth .phone-mockup .phone-notch {
            position: absolute;
            top: -1px;
            left: 50%;
            transform: translateX(-50%);
            width: 40px;
            height: 4px;
            background: #e0e0e0;
            border-radius: 0 0 3px 3px;
        }
        .shopee-auth .qr-code-area {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.5rem;
            margin-top: 1rem;
        }
        .shopee-auth .qr-code-area .qr-box {
            width: 100px;
            height: 100px;
            border: 2px dashed #e0e0e0;
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2.5rem;
            color: #ddd;
        }
        .shopee-auth .qr-code-area span {
            font-size: 0.7rem;
            color: #bbb;
        }

        .shopee-auth .auth-form-card {
            background: #fff;
            border: 1px solid #f0f0f0;
            border-radius: 2px;
            padding: 2rem 2.5rem;
            box-shadow: 0 1px 2px rgba(0,0,0,0.03);
        }
        .shopee-auth .auth-form-header {
            margin-bottom: 1.5rem;
        }
        .shopee-auth .auth-form-header h4 {
            font-size: 1.1rem;
            font-weight: 600;
            color: #222;
            margin: 0;
        }
        .shopee-auth .form-control {
            border: 1px solid #e0e0e0;
            border-radius: 2px;
            font-size: 0.85rem;
            padding: 0.65rem 0.8rem;
            color: #222;
            transition: border-color 0.15s ease;
            box-shadow: none;
        }
        .shopee-auth .form-control:focus {
            border-color: #2563EB;
            box-shadow: none;
        }
        .shopee-auth .form-control::placeholder {
            color: #bbb;
        }
        .shopee-auth .form-control.is-invalid {
            border-color: #2563EB;
            box-shadow: none;
        }
        .shopee-auth .password-input-group {
            display: flex;
            border: 1px solid #e0e0e0;
            border-radius: 2px;
            transition: border-color 0.15s ease;
        }
        .shopee-auth .password-input-group:focus-within {
            border-color: #2563EB;
        }
        .shopee-auth .password-input-group .form-control {
            border: none;
            flex: 1;
        }
        .shopee-auth .password-input-group .form-control:focus {
            box-shadow: none;
        }
        .shopee-auth .password-input-group .password-toggle {
            border: none;
            background: transparent;
            color: #bbb;
            padding: 0 0.8rem;
            font-size: 0.9rem;
            text-decoration: none;
            display: flex;
            align-items: center;
        }
        .shopee-auth .password-input-group .password-toggle:hover {
            color: #999;
        }
        .shopee-auth .auth-link {
            color: #05a;
            text-decoration: none;
            font-size: 0.82rem;
            transition: color 0.15s ease;
        }
        .shopee-auth .auth-link:hover {
            color: #2563EB;
            text-decoration: underline;
        }
        .shopee-auth .form-check-input {
            border-radius: 2px;
            border: 1px solid #e0e0e0;
            cursor: pointer;
        }
        .shopee-auth .form-check-input:checked {
            background-color: #2563EB;
            border-color: #2563EB;
        }
        .shopee-auth .form-check-input:focus {
            box-shadow: none;
            border-color: #2563EB;
        }
        .shopee-auth .auth-divider {
            display: flex;
            align-items: center;
            gap: 1rem;
            color: #bbb;
            font-size: 0.78rem;
            font-weight: 400;
        }
        .shopee-auth .auth-divider::before,
        .shopee-auth .auth-divider::after {
            content: '';
            flex: 1;
            height: 1px;
            background: #f0f0f0;
        }
        .shopee-auth .invalid-feedback {
            font-size: 0.75rem;
        }

        .btn-shopee {
            background: #2563EB;
            color: #fff;
            border: none;
            border-radius: 2px;
            padding: 0.65rem 1.2rem;
            font-size: 0.9rem;
            font-weight: 600;
            cursor: pointer;
            transition: opacity 0.15s ease;
            width: 100%;
            text-decoration: none;
            display: inline-block;
            text-align: center;
        }
        .btn-shopee:hover {
            opacity: 0.9;
            color: #fff;
        }
        .btn-shopee:active {
            opacity: 0.8;
        }
        .btn-outline-shopee {
            background: #fff;
            color: #222;
            border: 1px solid #e0e0e0;
            border-radius: 2px;
            padding: 0.65rem 1.2rem;
            font-size: 0.9rem;
            font-weight: 600;
            cursor: pointer;
            transition: border-color 0.15s ease, color 0.15s ease;
            width: 100%;
            text-decoration: none;
            display: inline-block;
            text-align: center;
        }
        .btn-outline-shopee:hover {
            border-color: #2563EB;
            color: #2563EB;
        }

        /* ─── EMPTY STATE ─── */
        .empty-state {
            text-align: center;
            padding: 4rem 2rem;
            animation: fadeUp 0.5s var(--ease-smooth);
        }
        .empty-state .empty-icon {
            font-size: 4rem;
            color: var(--gray-300);
            margin-bottom: 1.5rem;
            display: block;
        }
        .empty-state h4 {
            font-weight: 700;
            margin-bottom: 0.5rem;
        }
        .empty-state p {
            color: var(--gray-600);
            margin-bottom: 1.5rem;
        }

        /* ─── FEATURES BAR ─── */
        .features-bar {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 0;
            background: #fff;
            overflow: hidden;
            box-shadow: var(--shadow-xs);
            border-radius: var(--radius-md);
        }
        .features-bar .feature-item {
            padding: 2rem 1.5rem;
            text-align: center;
            border-right: 1px solid var(--gray-100);
            transition: all 0.3s var(--ease-smooth);
        }
        .features-bar .feature-item:last-child { border-right: none; }
        .features-bar .feature-item:hover {
            background: var(--gray-50);
            transform: translateY(-2px);
        }
        .features-bar .feature-icon {
            font-size: 2rem;
            color: var(--primary);
            margin-bottom: 1rem;
            display: block;
        }
        .features-bar .feature-title {
            font-weight: 700;
            font-size: 0.95rem;
            margin-bottom: 0.3rem;
        }
        .features-bar .feature-desc {
            font-size: 0.8rem;
            color: var(--gray-600);
            margin-bottom: 0;
        }
        @media (max-width: 767.98px) {
            .features-bar { grid-template-columns: repeat(2, 1fr); }
            .features-bar .feature-item:nth-child(2) { border-right: none; }
        }
        @media (max-width: 575.98px) {
            .features-bar { grid-template-columns: 1fr; }
            .features-bar .feature-item { border-right: none; border-bottom: 1px solid var(--gray-100); }
            .features-bar .feature-item:last-child { border-bottom: none; }
        }

        /* ─── CART TABLE (Shopee style) ─── */
        .cart-card {
            background: #fff;
            border: 1px solid #f0f0f0;
            border-radius: 3px;
        }
        .cart-item + .cart-item {
            border-top: 1px solid #f0f0f0;
        }
        .cart-item-name {
            font-size: 0.8rem;
            color: #222;
            line-height: 1.3;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        .cart-item-name:hover {
            color: #2563EB;
        }
        .cart-item-sku {
            font-size: 0.65rem;
            color: #bbb;
            margin-top: 0.15rem;
        }
        .cart-item-price-old {
            font-size: 0.65rem;
            color: #bbb;
            text-decoration: line-through;
        }
        .qty-control {
            display: flex;
            align-items: center;
            border: 1px solid #e0e0e0;
            border-radius: 2px;
        }
        .qty-btn {
            width: 28px;
            height: 26px;
            border: none;
            background: #fff;
            color: #222;
            font-size: 0.8rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.15s ease;
        }
        .qty-btn:hover {
            background: #f5f5f5;
        }
        .qty-input {
            width: 36px;
            height: 26px;
            border: none;
            border-left: 1px solid #e0e0e0;
            border-right: 1px solid #e0e0e0;
            text-align: center;
            font-size: 0.8rem;
            color: #222;
            background: #fff;
            outline: none;
            -moz-appearance: textfield;
        }
        .qty-input::-webkit-inner-spin-button,
        .qty-input::-webkit-outer-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }
        .cart-item-del {
            width: 24px;
            height: 24px;
            border: none;
            background: none;
            color: #ccc;
            font-size: 0.7rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: all 0.15s ease;
            flex-shrink: 0;
        }
        .cart-item-del:hover {
            color: #2563EB;
            background: #fff0ed;
        }

        /* ─── CHECKOUT ─── */
        .checkout-summary {
            padding: 1.5rem;
            border: 1px solid var(--gray-100);
            border-radius: var(--radius-md);
        }
        .checkout-total {
            font-size: 1.5rem;
            font-weight: 800;
            color: var(--primary);
        }

        /* ─── STAT CARD ─── */
        .stat-card {
            border: none;
            padding: 1.5rem;
            transition: all 0.3s var(--ease-smooth);
            position: relative;
            overflow: hidden;
            border-radius: var(--radius-md);
        }
        .stat-card .stat-icon {
            width: 48px;
            height: 48px;
            border-radius: var(--radius-sm);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.3rem;
        }
        .stat-card .stat-value {
            font-size: 1.75rem;
            font-weight: 800;
            line-height: 1.2;
        }
        .stat-card .stat-label {
            font-size: 0.85rem;
            color: var(--gray-600);
            font-weight: 500;
        }

        /* ─── TIMELINE ─── */
        .timeline-item {
            display: flex;
            gap: 1rem;
            position: relative;
        }
        .timeline-item:not(:last-child)::after {
            content: '';
            position: absolute;
            left: 19px;
            top: 40px;
            bottom: -16px;
            width: 2px;
            background: var(--gray-200);
        }

        /* ─── GLASS CARD ─── */
        .glass-card {
            background: rgba(255,255,255,0.7);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(255,255,255,0.3);
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-md);
        }
/* ═══════════════════════════════════════════════════════
   CHAT 2.0 — Shopee-style realtime chat
   ═══════════════════════════════════════════════════════ */

.chat-show-wrap { height: calc(100vh - 140px); min-height: 420px; }
.chat-wrap { position: relative; }

/* Online / offline */
.chat-online-dot {
    position: absolute; bottom: 0; right: 0;
    width: 11px; height: 11px; border-radius: 50%;
    background: #2fbf71; border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.06);
}
.chat-online-dot.chat-offline { background: #c4c4c4; }
.chat-status-online { color: #2fbf71; font-weight: 600; }
.chat-status-offline { color: #9aa0a6; }
.chat-header-product { font-size: 0.68rem; color: #8a8f98; display: flex; align-items: center; gap: 0.25rem; margin-top: 1px; }

/* Header extras */
.chat-header-link {
    width: 34px; height: 34px; display: inline-flex; align-items: center;
    justify-content: center; border-radius: 50%; color: #666; font-size: 1.25rem;
    text-decoration: none; transition: background 0.15s;
}
.chat-header-link:hover { background: #f0f0f0; color: #333; }
.chat-icon-btn {
    width: 34px; height: 34px; display: inline-flex; align-items: center;
    justify-content: center; border: none; border-radius: 50%;
    background: #f1f3f5; color: #555; font-size: 1rem; cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.chat-icon-btn:hover { background: #e2e5e9; color: #222; }
.chat-icon-btn.recording, .chat-voice-recording { color: #e74c3c; animation: chatPulse 1s infinite; }
@keyframes chatPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.45; } }

/* Conversation list search */
.chat-list-search {
    position: relative; padding: 0.6rem 1rem; background: #f7f8fa;
    border-bottom: 1px solid #eee; flex-shrink: 0;
}
.chat-list-search i { position: absolute; left: 1.6rem; top: 50%; transform: translateY(-50%); color: #aaa; font-size: 0.85rem; }
.chat-list-search input {
    border-radius: 18px; border: none; background: #fff; font-size: 0.85rem;
    padding: 0.45rem 0.9rem 0.45rem 2rem; box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.chat-list-search input:focus { box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.chat-preview-you { color: #25a56a; font-weight: 600; margin-right: 2px; }

/* ── Reply quote ── */
.chat-quote {
    border-left: 3px solid #b9bdc4; background: rgba(0,0,0,0.05);
    border-radius: 6px; padding: 0.3rem 0.5rem; margin-bottom: 0.4rem;
    display: flex; flex-direction: column; gap: 1px; max-width: 100%;
}
.chat-bubble-me .chat-quote { background: rgba(0,0,0,0.05); border-left-color: #6fae52; }
.chat-quote-name { font-size: 0.68rem; font-weight: 700; color: #2f80ed; }
.chat-quote-text { font-size: 0.75rem; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Rich bubbles ── */
.chat-bubble-rich { padding: 0.45rem; }
.chat-bubble-rich .chat-bubble-meta { top: 0; }
.chat-bubble-loading { display: flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; color: #666; padding: 0.2rem 0.1rem; }

/* Image */
.chat-image-link { display: block; border-radius: 6px; overflow: hidden; }
.chat-image { display: block; max-width: 260px; max-height: 260px; width: 100%; border-radius: 6px; object-fit: cover; }

/* File */
.chat-file-card {
    display: flex; align-items: center; gap: 0.6rem; padding: 0.4rem 0.2rem;
    color: inherit; text-decoration: none; min-width: 190px;
}
.chat-file-card:hover { color: inherit; }
.chat-file-icon { font-size: 1.7rem; color: #5b8def; flex-shrink: 0; }
.chat-file-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.chat-file-name { font-size: 0.82rem; font-weight: 600; color: #222; word-break: break-all; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chat-file-size { font-size: 0.68rem; color: #8a8f98; }
.chat-file-dl { color: #2f80ed; font-size: 1.05rem; flex-shrink: 0; }

/* Voice */
.chat-voice { display: flex; align-items: center; gap: 0.5rem; min-width: 200px; padding: 0.15rem 0; }
.chat-voice-play {
    width: 34px; height: 34px; border-radius: 50%; border: none; flex-shrink: 0;
    background: #2f80ed; color: #fff; font-size: 0.85rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: background 0.15s;
}
.chat-voice-play:hover { background: #2768c5; }
.chat-bubble-me .chat-voice-play { background: #25a56a; }
.chat-voice-track { flex: 1; height: 4px; border-radius: 4px; background: rgba(0,0,0,0.12); overflow: hidden; position: relative; }
.chat-voice-progress { height: 100%; width: 0%; background: #2f80ed; border-radius: 4px; transition: width 0.1s linear; }
.chat-bubble-me .chat-voice-progress { background: #25a56a; }
.chat-voice-time { font-size: 0.7rem; color: #889; flex-shrink: 0; }

/* Product card */
.chat-product-card {
    display: flex; gap: 0.6rem; background: #fff; border-radius: 8px;
    border: 1px solid #e8eaed; padding: 0.5rem; color: inherit; text-decoration: none;
    min-width: 220px; max-width: 260px; transition: box-shadow 0.15s;
}
.chat-product-card:hover { color: inherit; box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
.chat-bubble-me .chat-product-card { background: #f7fff4; border-color: #d3ecc3; }
.chat-product-img {
    width: 54px; height: 54px; border-radius: 6px; background: #f2f3f5; overflow: hidden;
    display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: #b8bcc4; flex-shrink: 0;
}
.chat-product-img img { width: 100%; height: 100%; object-fit: cover; }
.chat-product-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.chat-product-name { font-size: 0.8rem; font-weight: 600; color: #222; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chat-product-price { font-size: 0.85rem; font-weight: 700; color: #ee4d2d; }
.chat-product-cta { font-size: 0.68rem; color: #2f80ed; }

/* Order card */
.chat-order-card {
    display: flex; flex-direction: column; gap: 4px; background: #fff; border-radius: 8px;
    border: 1px solid #e8eaed; padding: 0.55rem; color: inherit; text-decoration: none;
    min-width: 220px; max-width: 260px; transition: box-shadow 0.15s;
}
.chat-order-card:hover { color: inherit; box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
.chat-bubble-me .chat-order-card { background: #f7fff4; border-color: #d3ecc3; }
.chat-order-top { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.chat-order-num { font-size: 0.8rem; font-weight: 700; color: #222; }
.chat-order-status { font-size: 0.65rem; font-weight: 600; color: #ee4d2d; background: #fff1ec; padding: 0.15rem 0.4rem; border-radius: 8px; text-transform: capitalize; }
.chat-order-items { font-size: 0.72rem; color: #8a8f98; }
.chat-order-total { font-size: 0.8rem; font-weight: 700; color: #222; }

/* Actions dropdown */
.chat-bubble-meta { position: relative; z-index: 2; }
.chat-msg-actions {
    border: none; background: transparent; color: #97a0aa; font-size: 0.72rem;
    cursor: pointer; padding: 0 2px; line-height: 1; opacity: 0; transition: opacity 0.15s;
}
.chat-bubble:hover .chat-msg-actions { opacity: 1; }
.chat-actions-menu {
    position: absolute; top: 100%; right: 6px; z-index: 30;
    background: #fff; border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    min-width: 160px; padding: 0.3rem; display: none; flex-direction: column;
}
.chat-actions-open .chat-actions-menu { display: flex; }
.chat-actions-menu button {
    border: none; background: none; text-align: left; padding: 0.45rem 0.6rem;
    font-size: 0.8rem; color: #333; border-radius: 6px; cursor: pointer;
    display: flex; align-items: center; gap: 0.5rem; width: 100%;
}
.chat-actions-menu button:hover { background: #f2f3f5; }
.chat-actions-menu button.danger, .chat-actions-menu .chat-del-all, .chat-actions-menu .chat-del-me { color: #e74c3c; }

/* ── Typing indicator ── */
.chat-typing {
    display: none; align-items: center; gap: 0.45rem; padding: 0.35rem 1rem;
    background: #f7f8fa; font-size: 0.75rem; color: #6b7280; border-top: 1px solid #f0f0f0;
}
.chat-typing.chat-typing-show { display: flex; }
.chat-typing-dots { display: inline-flex; gap: 3px; }
.chat-typing-dots i { width: 6px; height: 6px; border-radius: 50%; background: #9aa0a6; animation: chatBounce 1.2s infinite; }
.chat-typing-dots i:nth-child(2) { animation-delay: 0.15s; }
.chat-typing-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes chatBounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-3px); opacity: 1; } }

/* ── Reply bar ── */
.chat-reply-bar {
    display: none; align-items: center; gap: 0.5rem; padding: 0.4rem 0.9rem;
    background: #fdfdfd; border-top: 1px solid #eee; flex-shrink: 0;
}
.chat-reply-info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.chat-reply-name { font-size: 0.72rem; font-weight: 700; color: #2f80ed; }
.chat-reply-text { font-size: 0.76rem; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-reply-close { border: none; background: transparent; color: #999; cursor: pointer; font-size: 0.8rem; }

/* ── Emoji panel ── */
.chat-emoji-panel {
    display: none; flex-wrap: wrap; gap: 2px; background: #fff; border-top: 1px solid #eee;
    padding: 0.5rem; max-height: 180px; overflow-y: auto; flex-shrink: 0;
    align-content: flex-start;
}
.chat-emoji-panel.chat-emoji-open { display: flex; }
.chat-emoji-item {
    width: 36px; height: 36px; font-size: 1.35rem; border: none; background: none;
    border-radius: 6px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.chat-emoji-item:hover { background: #f2f3f5; }

/* ── Input area (new) ── */
.chat-input-btn {
    width: 36px; height: 36px; border: none; background: transparent; color: #68707a;
    font-size: 1.1rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; flex-shrink: 0; transition: background 0.15s, color 0.15s;
}
.chat-input-btn:hover { background: rgba(0,0,0,0.06); color: #222; }
.chat-input-wrap { position: relative; }
.chat-input-wrap .chat-input { flex: 1; }

/* Attach menu */
.chat-attach-menu {
    position: absolute; bottom: calc(100% + 8px); left: 8px; z-index: 40;
    background: #fff; border-radius: 10px; box-shadow: 0 6px 20px rgba(0,0,0,0.18);
    padding: 0.4rem; display: none; flex-direction: column; min-width: 150px;
    animation: chatMenuIn 0.18s ease;
}
.chat-attach-menu.chat-attach-open { display: flex; }
@keyframes chatMenuIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.chat-attach-item {
    display: flex; align-items: center; gap: 0.6rem; border: none; background: none;
    padding: 0.5rem 0.6rem; font-size: 0.82rem; color: #333; border-radius: 8px; cursor: pointer;
}
.chat-attach-item i { font-size: 1.05rem; color: #5b8def; }
.chat-attach-item:hover { background: #f2f3f5; }

/* ── Search overlay ── */
.chat-search-overlay {
    position: absolute; inset: 0; z-index: 60; background: #fff;
    display: none; flex-direction: column;
}
.chat-search-overlay.chat-search-open { display: flex; }
.chat-search-input-wrap { display: flex; align-items: center; gap: 0.4rem; padding: 0.6rem 0.8rem; border-bottom: 1px solid #eee; }
.chat-search-results { flex: 1; overflow-y: auto; padding: 0.5rem; }
.chat-search-item {
    display: flex; flex-direction: column; gap: 3px; width: 100%; text-align: left;
    border: none; background: none; padding: 0.55rem 0.6rem; border-radius: 8px; cursor: pointer;
}
.chat-search-item:hover { background: #f5f6f8; }
.chat-search-meta { font-size: 0.66rem; color: #9aa0a6; }
.chat-search-text { font-size: 0.82rem; color: #333; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ── Quick replies ── */
.chat-qr-panel {
    position: absolute; bottom: calc(100% + 8px); right: 8px; z-index: 45;
    background: #fff; border-radius: 12px; box-shadow: 0 8px 28px rgba(0,0,0,0.2);
    width: min(320px, calc(100vw - 24px)); display: none; flex-direction: column;
    overflow: hidden; animation: chatMenuIn 0.18s ease;
}
.chat-qr-panel.chat-qr-open { display: flex; }
.chat-qr-head { padding: 0.6rem 0.8rem; font-size: 0.82rem; font-weight: 700; color: #333; border-bottom: 1px solid #f0f0f0; }
.chat-qr-list { max-height: 260px; overflow-y: auto; }
.chat-qr-item { display: flex; align-items: center; gap: 0.4rem; padding: 0.5rem 0.8rem; border-bottom: 1px solid #f7f7f7; }
.chat-qr-item-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.chat-qr-title { font-size: 0.8rem; font-weight: 600; color: #222; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-qr-preview { font-size: 0.72rem; color: #8a8f98; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-qr-item-actions { display: flex; gap: 2px; flex-shrink: 0; }
.chat-qr-send, .chat-qr-del {
    width: 28px; height: 28px; border: none; background: none; border-radius: 50%;
    cursor: pointer; font-size: 0.82rem; color: #8a8f98; display: flex; align-items: center; justify-content: center;
}
.chat-qr-send { color: #2f80ed; }
.chat-qr-send:hover { background: #e8f1ff; }
.chat-qr-del:hover { background: #ffecec; color: #e74c3c; }
.chat-qr-empty { padding: 1.2rem; text-align: center; font-size: 0.78rem; color: #9aa0a6; }
.chat-qr-form { display: flex; flex-direction: column; gap: 0.4rem; padding: 0.6rem 0.8rem; border-top: 1px solid #f0f0f0; }
.chat-qr-add { width: 100%; }

/* ── Pickers (product/order modal) ── */
.chat-modal { position: absolute; inset: 0; z-index: 70; display: none; }
.chat-modal.chat-modal-open { display: block; }
.chat-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.45); }
.chat-modal-box {
    position: absolute; bottom: 0; left: 0; right: 0; background: #fff;
    border-radius: 14px 14px 0 0; max-height: 70%; display: flex; flex-direction: column;
    animation: chatSheetUp 0.22s ease;
}
@keyframes chatSheetUp { from { transform: translateY(40%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.chat-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 0.8rem 1rem; border-bottom: 1px solid #f0f0f0; font-size: 0.9rem; font-weight: 700; color: #333; }
.chat-modal-close { border: none; background: none; font-size: 1rem; color: #999; cursor: pointer; }
.chat-picker-list { overflow-y: auto; padding: 0.5rem; max-height: 50vh; }
.chat-pick-item {
    display: flex; align-items: center; gap: 0.7rem; width: 100%; text-align: left;
    border: none; background: none; padding: 0.55rem; border-radius: 10px; cursor: pointer;
}
.chat-pick-item:hover { background: #f5f6f8; }
.chat-pick-img, .chat-pick-icon {
    width: 48px; height: 48px; border-radius: 8px; background: #f2f3f5; overflow: hidden;
    display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: #b8bcc4; flex-shrink: 0;
}
.chat-pick-img img { width: 100%; height: 100%; object-fit: cover; }
.chat-pick-info { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.chat-pick-name { font-size: 0.82rem; font-weight: 600; color: #222; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-pick-sub { font-size: 0.72rem; color: #8a8f98; }

/* ── Flash highlight on search focus ── */
.chat-msg-flash .chat-bubble { animation: chatFlash 1.6s ease; }
@keyframes chatFlash {
    0%, 100% { box-shadow: none; }
    30% { box-shadow: 0 0 0 3px #2f80ed; }
}
.chat-empty-cta { border-radius: 20px !important; }

/* Navbar unread badge */
.chat-nav-link { position: relative; }
#chatUnreadBadge, .chat-unread-badge {
    position: absolute; top: -4px; right: -6px;
    min-width: 16px; height: 16px; border-radius: 8px;
    background: #ff4d4f; color: #fff; font-size: 0.6rem; font-weight: 700;
    align-items: center; justify-content: center; padding: 0 4px;
    display: none; z-index: 5;
}

/* Mobile refinements */
@media (max-width: 767.98px) {
    .chat-msg-actions { opacity: 1; }
    .chat-bubble-rich { padding: 0.35rem; }
    .chat-product-card, .chat-order-card { min-width: 0; width: 100%; max-width: none; }
    .chat-image { max-width: 100%; max-height: 200px; }
    .chat-input-btn { width: 34px; height: 34px; font-size: 1rem; }
    .chat-modal-box { border-radius: 12px 12px 0 0; }
}
@media (min-width: 768px) {
    .chat-show-wrap { height: calc(100vh - 150px); }
}

/* ═══════════════════════════════════════════════════════
   CHAT 2.1 — Layout fixes (WhatsApp-style full-height)
   ── Mengoreksi konflik tinggi, anchor popup, dan z-index.
   ═══════════════════════════════════════════════════════ */

/* Chat pages: isi viewport, tanpa scroll halaman, tanpa gap bawah */
.chat-layout { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; }
.chat-layout main { flex: 1 1 auto; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }

/* Container chat-show: isi tinggi main, sisakan margin desktop */
.chat-show-container { flex: 1 1 auto; min-height: 0; height: 100%; display: flex; flex-direction: column; }
@media (min-width: 768px) {
    .chat-show-container { padding: 1.25rem; max-height: 100%; }
}
@media (max-width: 767.98px) {
    .chat-show-container { padding: 0; }
}

/* Wrap: isi container penuh (batalkan height calc lama) */
.chat-show-wrap { height: auto !important; max-height: none !important; flex: 1 1 auto; min-height: 0; }

/* Header sticky di atas, footer di bawah, list scroll di tengah */
.chat-show-wrap > .chat-header { flex-shrink: 0; position: relative; z-index: 20; }
.chat-show-wrap > .chat-msg-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }

/* Footer: satu unit relatif agar popup dianchor ke area input */
.chat-footer { flex-shrink: 0; position: relative; z-index: 20; display: flex; flex-direction: column; }
.chat-footer > .chat-typing,
.chat-footer > .chat-reply-bar,
.chat-footer > .chat-emoji-panel { flex-shrink: 0; }

/* Popup dianchor ke footer (di atas area input) */
.chat-footer .chat-qr-panel { position: absolute; bottom: calc(100% + 8px); right: 8px; z-index: 45; }

/* Konversasi list: isi tinggi penuh, list scroll sendiri */
.chat-index-layout { flex: 1 1 auto; min-height: 0; height: 100%; display: flex; flex-direction: column; }
.chat-index-layout .chat-wrap { flex: 1 1 auto; min-height: 0; height: 100%; max-height: none !important; }
#conversationList { flex: 1 1 auto; min-height: 0; overflow-y: auto; }

/* Z-index scale yang konsisten (bawah → atas) */
.chat-show-wrap > .chat-header { z-index: 20; }
.chat-footer { z-index: 20; }
.chat-msg-actions, .chat-actions-menu { z-index: 25; }
.chat-attach-menu { z-index: 40; }
.chat-footer .chat-qr-panel { z-index: 45; }
.chat-search-overlay { z-index: 60; }
.chat-modal { z-index: 70; }

/* Pastikan chat-input-wrap tetap relatif (anchor attach menu) */
.chat-input-wrap { position: relative !important; }

/* Bubble: kolom agar meta (waktu/centang/aksi) rapi di pojok bawah */
.chat-bubble { display: flex; flex-direction: column; }
.chat-bubble-meta {
    float: none; position: relative; top: auto; margin-left: auto;
    display: flex; align-items: center; gap: 4px; margin-top: 3px;
    justify-content: flex-end;
}
.chat-bubble-rich .chat-bubble-meta { top: auto; }
.chat-actions-menu { top: calc(100% - 6px); }

/* Input area: vertikal senter konsisten */
.chat-input-wrap { align-items: center; }
.chat-input-wrap .form-control { height: 40px; line-height: 40px; padding-top: 0; padding-bottom: 0; }

/* Scrollbar tipis untuk daftar pesan */
.chat-msg-list::-webkit-scrollbar { width: 5px; }
.chat-msg-list::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.18); border-radius: 4px; }
