
    /* ============================================
   CATEGORY PAGE - PREMIUM DARK THEME
   ============================================ */

    :root {
        --neon-primary: #ff4757;
        --neon-secondary: #000000;
        --neon-purple: #ff4757;
        --bg-primary: #050508;
        --bg-secondary: #0a0a0f;
        --bg-tertiary: #12121a;
        --bg-card: rgba(18, 18, 26, 0.6);
        --border-subtle: rgba(255, 255, 255, 0.06);
        --border-hover: rgba(255, 71, 87, 0.3);
        --text-primary: #ffffff;
        --text-secondary: #a0a0b0;
        --text-muted: #606070;
        --glow-primary: 0 0 40px rgba(255, 71, 87, 0.15);
        --glow-strong: 0 0 60px rgba(255, 71, 87, 0.25);
        --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* 🚀 PREVENT FOUC (FLASH OF UNSTYLED CONTENT) */
    .category-page-wrapper {
        min-height: 100vh;
        background: transparent;
        position: relative;
        overflow-x: hidden;
        /* Animation removed for instant feel */
    }

    @keyframes pageReveal {
        to {
            opacity: 1;
        }
    }

    .category-hero {
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 60px 20px 40px; /* Reduced gap to bring it closer to navbar */
        overflow: hidden;
    }

    .hero-ambient-glow {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: none;
        pointer-events: none;
        z-index: -1;
        animation: pulse-glow 8s ease-in-out infinite alternate;
        filter: blur(20px);
    }

    @keyframes pulse-glow {
        0% {
            opacity: 0.3;
            transform: scale(1);
        }

        50% {
            opacity: 0.6;
            transform: scale(1.1);
        }

        100% {
            opacity: 0.4;
            transform: scale(1.05);
        }
    }

    .hero-grid-pattern {
        position: fixed;
        inset: 0;
        z-index: -1;
        background-image: none;
        background-size: 80px 80px;
        mask-image: radial-gradient(ellipse at center, black 0%, transparent 80%);
        animation: grid-move 30s linear infinite;
        pointer-events: none;
    }

    @keyframes grid-move {
        0% {
            transform: perspective(500px) rotateX(60deg) translateY(0);
        }

        100% {
            transform: perspective(500px) rotateX(60deg) translateY(60px);
        }
    }


    .hero-content {
        position: relative;
        z-index: 10;
        max-width: 900px;
    }

    /* Glitch Title */
    .category-title-glitch {
        font-size: clamp(3rem, 10vw, 7rem);
        font-weight: 900;
        letter-spacing: -0.04em;
        margin: 0 0 20px;
        position: relative;
        background: linear-gradient(135deg, #ff4757 0%, #ff7f50 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        text-transform: uppercase;
        line-height: 1;
    }

    .category-title-glitch::before,
    .category-title-glitch::after {
        content: attr(data-text);
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .category-title-glitch::before {
        color: #ff4757;
        animation: glitch-1 2s infinite linear alternate-reverse;
        clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
        -webkit-text-fill-color: initial;
    }

    .category-title-glitch::after {
        color: #ff7f50;
        animation: glitch-2 3s infinite linear alternate-reverse;
        clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
        -webkit-text-fill-color: initial;
    }

    @keyframes glitch-1 {

        0%,
        100% {
            transform: translate(0);
        }

        20% {
            transform: translate(-2px, 2px);
        }

        40% {
            transform: translate(-2px, -2px);
        }

        60% {
            transform: translate(2px, 2px);
        }

        80% {
            transform: translate(2px, -2px);
        }
    }

    @keyframes glitch-2 {

        0%,
        100% {
            transform: translate(0);
        }

        20% {
            transform: translate(2px, -2px);
        }

        40% {
            transform: translate(2px, 2px);
        }

        60% {
            transform: translate(-2px, -2px);
        }

        80% {
            transform: translate(-2px, 2px);
        }
    }

    .category-description {
        font-size: 1.15rem;
        color: var(--text-secondary);
        max-width: 600px;
        margin: 0 auto 20px;
        line-height: 1.6;
        opacity: 0.8;
    }

    /* ============================================
   FLOATING CONTROLS BAR - MINIMAL PREMIUM
   ============================================ */

    .marketplace-container {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 24px;
        position: relative;
        z-index: 100;
    }

    /* ============================================
       FLOATING CONTROLS BAR - PREMIUM DESIGN
       ============================================ */
    .floating-controls {
        position: sticky;
        top: 25px;
        z-index: 1000;
        margin: 0 auto 60px;
        max-width: 1000px;
        transition: var(--transition-smooth);
    }

    .controls-inner {
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 8px 12px;
        background: rgba(10, 10, 15, 0.6) !important;
        backdrop-filter: blur(30px) saturate(200%);
        border: 1px solid rgba(255, 255, 255, 0.06);
        border-radius: 100px;
        box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
        transition: all 0.3s ease;
    }
    .controls-inner:focus-within {
        border-color: rgba(255, 71, 87, 0.3);
        background: rgba(255, 255, 255, 0.03) !important;
        box-shadow: 0 40px 100px rgba(255, 71, 87, 0.1);
    }

    /* Modern Search Refinement */
    .search-box {
        flex: 1.5;
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 24px;
        background: rgba(0, 0, 0, 0.3) !important;
        border: 1px solid rgba(255, 255, 255, 0.04);
        border-radius: 100px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
    }
    .search-box:focus-within {
        background: rgba(255, 255, 255, 0.05) !important;
        border-color: rgba(255, 255, 255, 0.1);
    }

    .search-box:focus-within {
        background: rgba(255, 255, 255, 0.08) !important;
        border-color: rgba(255, 71, 87, 0.4);
    }

    .search-icon {
        color: var(--text-muted);
        transition: 0.3s;
    }

    .search-box:focus-within .search-icon {
        color: #ff4757;
        transform: scale(1.1);
    }

    .search-box input {
        flex: 1;
        background: none;
        border: none;
        color: #fff;
        font-size: 0.9rem;
        font-weight: 600;
        outline: none;
    }
    .search-box input::placeholder {
        color: rgba(255, 255, 255, 0.2);
    }

    .search-shortcut {
        padding: 5px 10px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        font-size: 0.7rem;
        color: rgba(255, 255, 255, 0.25);
        font-weight: 950;
        letter-spacing: 1px;
    }

    /* Sort Dropdown Premium Styling */
    .sort-dropdown {
        position: relative;
    }

    .sort-trigger {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 22px;
        background: rgba(0, 0, 0, 0.3) !important;
        border: 1px solid rgba(255, 255, 255, 0.04);
        border-radius: 100px;
        color: rgba(255, 255, 255, 0.6);
        font-size: 0.85rem;
        font-weight: 700;
        cursor: pointer;
        transition: 0.3s;
        min-width: 170px;
    }
    .sort-trigger:hover {
        background: rgba(255, 255, 255, 0.05) !important;
        border-color: rgba(255, 255, 255, 0.1);
        color: #fff;
    }

    .sort-trigger:hover {
        background: rgba(255, 255, 255, 0.06);
        color: #fff;
        border-color: rgba(255, 255, 255, 0.1);
    }

    .sort-label {
        font-size: 0.75rem;
        opacity: 0.5;
        font-weight: 600;
    }

    .sort-value {
        font-weight: 800;
        font-size: 0.85rem;
        color: #fff;
    }

    .sort-arrow {
        margin-left: auto;
        color: var(--text-muted);
        transition: 0.3s;
    }

    .sort-dropdown.open .sort-arrow {
        transform: rotate(180deg);
        color: var(--neon-primary);
    }

    .sort-menu {
        position: absolute;
        top: calc(100% + 12px);
        right: 0;
        min-width: 220px;
        padding: 8px;
        background: rgba(13, 13, 18, 0.95);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 16px;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1100;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .sort-dropdown.open .sort-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .sort-option {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 16px;
        border-radius: 10px;
        cursor: pointer;
        color: var(--text-secondary);
        font-size: 0.85rem;
        transition: 0.2s;
        font-weight: 600;
    }

    .sort-option i {
        width: 16px;
        text-align: center;
        opacity: 0.7;
    }

    .sort-option:hover {
        background: rgba(255, 255, 255, 0.05);
        color: #fff;
    }

    .sort-option.active {
        color: var(--exit-primary, #ff4757);
        background: rgba(255, 71, 87, 0.08);
    }

    .check-icon {
        margin-left: auto;
        color: var(--exit-primary, #ff4757);
        opacity: 0;
        transition: 0.2s;
    }

    .sort-option.active .check-icon {
        opacity: 1;
    }

    .controls-divider {
        width: 1px;
        height: 28px;
        background: rgba(255, 255, 255, 0.1);
        margin: 0 4px;
    }

    .results-count {
        margin-left: auto;
        padding-right: 20px;
        color: var(--text-muted);
        font-size: 0.8rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .results-count span {
        color: var(--exit-primary, #ff4757);
    }

    .search-clear {
        cursor: pointer;
        opacity: 0;
        visibility: hidden;
        transition: 0.3s;
        padding: 5px;
        color: #ff4757;
    }

    .search-box.has-value .search-clear {
        opacity: 1;
        visibility: visible;
    }

    .search-box.has-value .search-shortcut {
        display: none;
    }

    /* ============================================
   PRODUCTS GRID
   ============================================ */

    .products-section {
        padding-bottom: 100px;
    }

    .products-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
        gap: 30px;
        margin-bottom: 60px;
    }

    .products-grid.list-view {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Load More */
    .load-more-section {
        display: flex;
        justify-content: center;
        padding: 40px 0;
    }

    .load-more-btn {
        position: relative;
        padding: 16px 48px;
        background: transparent;
        border: 1px solid var(--border-subtle);
        border-radius: 50px;
        color: var(--text-primary);
        font-size: 0.95rem;
        font-weight: 600;
        cursor: pointer;
        overflow: hidden;
        transition: all 0.3s;
    }

    .load-more-btn:hover {
        border-color: var(--neon-primary);
        box-shadow: var(--glow-primary);
        transform: translateY(-2px);
    }

    .btn-glow {
        position: absolute;
        inset: -2px;
        background: linear-gradient(90deg, transparent, var(--neon-primary), transparent);
        opacity: 0;
        filter: blur(10px);
        transition: opacity 0.3s;
    }

    .load-more-btn:hover .btn-glow {
        opacity: 0.5;
        animation: shimmer-btn 2s infinite;
    }

    @keyframes shimmer-btn {
        0% {
            transform: translateX(-100%);
        }

        100% {
            transform: translateX(100%);
        }
    }

    /* ============================================
   EMPTY STATE
   ============================================ */

    .empty-state {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 100px 20px;
        text-align: center;
    }

    .empty-icon {
        width: 120px;
        height: 120px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.03);
        border: 1px dashed var(--border-subtle);
        border-radius: 30px;
        margin-bottom: 30px;
        color: var(--text-muted);
    }

    .empty-state h3 {
        font-size: 1.75rem;
        color: var(--text-primary);
        margin-bottom: 12px;
        font-weight: 700;
    }

    .empty-state p {
        color: var(--text-secondary);
        margin-bottom: 30px;
        max-width: 400px;
    }

    .btn-back {
        padding: 14px 32px;
        background: var(--neon-primary);
        color: var(--bg-primary);
        border-radius: 50px;
        font-weight: 700;
        font-size: 0.95rem;
        transition: all 0.3s;
    }

    .btn-back:hover {
        transform: translateY(-2px);
        box-shadow: var(--glow-strong);
    }

    /* ============================================
   RESPONSIVE
   ============================================ */

    @media (max-width: 1200px) {
        .controls-inner {
            flex-wrap: wrap;
        }

        .search-box {
            width: 100%;
            order: -1;
        }

        .results-count {
            width: 100%;
            text-align: center;
            margin: 8px 0 0;
            padding: 0;
        }
    }

    @media (max-width: 768px) {
        .category-hero {
            min-height: 40vh;
            padding: 120px 20px 40px;
        }

        .products-grid {
            grid-template-columns: 1fr;
            gap: 20px;
        }

        .floating-controls {
            position: relative;
            top: 0;
            margin: 20px 0 40px;
        }

        .controls-inner {
            flex-direction: column;
            align-items: stretch;
            border-radius: 20px;
        }

        .filter-tags {
            justify-content: center;
            flex-wrap: wrap;
        }

        .sort-dropdown {
            width: 100%;
        }

        .sort-trigger {
            width: 100%;
            justify-content: space-between;
        }

        .sort-menu {
            left: 0;
            right: 0;
        }
    }

    /* Animation for products */
    @keyframes fade-in-up {
        from {
            opacity: 0;
            transform: translateY(30px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .products-grid>* {
        animation: fade-in-up 0.6s ease backwards;
    }

    .products-grid>*:nth-child(1) {
        animation-delay: 0.05s;
    }

    .products-grid>*:nth-child(2) {
        animation-delay: 0.1s;
    }

    .products-grid>*:nth-child(3) {
        animation-delay: 0.15s;
    }
