/* ==========================================================================
   wikopn Professional Dual-Experience Categories Page Stylesheet
   - Mobile & Tablet: Native Flipkart-Style Split-Rail App Experience (<= 1024px)
   - Desktop: Expansive, World-Class Category Hub & Explorer (> 1024px)
   ========================================================================== */

/* ── Base Reset & Container ── */
.cat-page-root {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* ==========================================================================
   1. MOBILE & TABLET APP EXPERIENCE (<= 1024px)
   Identical to Flipkart Android / iOS Native App Categories View
   ========================================================================== */
@media (max-width: 1024px) {

    /* Hide standard site desktop header & footer on mobile categories page */
    html body.is-categories-page .navbar {
        display: none !important;
    }

    html body.is-categories-page .copyright-footer {
        display: none !important;
    }

    html body.is-categories-page {
        padding-top: 0 !important;
        padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)) !important;
        overflow: hidden !important;
        height: 100vh !important;
        height: 100dvh !important;
        background: #ffffff !important;
    }

    /* Hide desktop version on mobile & tab */
    .cat-desktop-container {
        display: none !important;
    }

    /* Mobile App Container fills exactly the viewport height between top bar and bottom bar */
    .cat-app-container {
        display: flex !important;
        flex-direction: column;
        width: 100%;
        height: calc(100vh - 60px - env(safe-area-inset-bottom, 0px));
        height: calc(100dvh - 60px - env(safe-area-inset-bottom, 0px));
        background: #ffffff;
        overflow: hidden;
    }

    /* ── Top App Bar ── */
    .cat-mobile-topbar {
        height: 52px;
        min-height: 52px;
        background: #ffffff;
        border-bottom: 1px solid #edf2f7;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 14px;
        box-sizing: border-box;
        z-index: 10;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
    }

    .cat-mobile-topbar-left {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .cat-mobile-back {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        border-radius: 50%;
        color: #1e293b;
        font-size: 1rem;
        text-decoration: none;
        transition: background 0.15s ease;
    }

    .cat-mobile-back:active {
        background: #f1f5f9;
    }

    .cat-mobile-topbar-title {
        font-family: var(--font-display, 'Outfit', sans-serif);
        font-size: 1.18rem;
        font-weight: 700;
        color: #0f172a;
        margin: 0;
        letter-spacing: -0.015em;
    }

    .cat-mobile-topbar-actions {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .cat-mobile-icon-btn {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        border: none;
        background: transparent;
        color: #1e293b;
        font-size: 1.1rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: relative;
        text-decoration: none;
        cursor: pointer;
        transition: background 0.15s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .cat-mobile-icon-btn:active {
        background: #f1f5f9;
    }

    .cat-mobile-cart-badge {
        position: absolute;
        top: 4px;
        right: 4px;
        background: var(--primary-color, #F02121);
        color: #ffffff;
        font-size: 0.65rem;
        font-weight: 700;
        min-width: 17px;
        height: 17px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 3px;
        border: 2px solid #ffffff;
    }

    /* ── Collapsible Search Strip ── */
    .cat-mobile-search-strip {
        max-height: 0;
        overflow: hidden;
        background: #ffffff;
        border-bottom: 1px solid transparent;
        transition: max-height 0.25s cubic-bezier(0.4, 0, 0.2, 1), padding 0.25s ease;
        padding: 0 14px;
    }

    .cat-mobile-search-strip.open {
        max-height: 58px;
        padding: 8px 14px;
        border-bottom-color: #e2e8f0;
    }

    .cat-mobile-search-box {
        position: relative;
        display: flex;
        align-items: center;
        background: #f1f5f9;
        border-radius: 10px;
        padding: 0 12px;
        height: 38px;
    }

    .cat-mobile-search-box i.fa-search {
        color: #94a3b8;
        font-size: 0.85rem;
        margin-right: 8px;
    }

    .cat-mobile-search-box input {
        border: none;
        background: transparent;
        outline: none;
        width: 100%;
        font-size: 0.85rem;
        color: #0f172a;
        font-family: inherit;
    }

    .cat-mobile-search-clear {
        border: none;
        background: transparent;
        color: #94a3b8;
        font-size: 0.9rem;
        cursor: pointer;
        padding: 4px;
    }

    /* ── Split Layout: Left Rail + Right Content ── */
    .cat-mobile-split {
        display: flex;
        flex: 1;
        width: 100%;
        height: calc(100% - 52px);
        overflow: hidden;
    }

    /* ── Left Rail Navigation ── */
    .cat-mobile-rail {
        width: 88px;
        min-width: 88px;
        max-width: 88px;
        height: 100%;
        background: #f6f8fb;
        border-right: 1px solid #edf2f7;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        display: flex;
        flex-direction: column;
        padding-bottom: 24px;
        scrollbar-width: none;
    }

    .cat-mobile-rail::-webkit-scrollbar {
        display: none;
    }

    .cat-rail-tab {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 84px;
        padding: 10px 5px 8px;
        border: none;
        background: transparent;
        cursor: pointer;
        outline: none;
        text-decoration: none;
        -webkit-tap-highlight-color: transparent;
        transition: background 0.16s ease;
        box-sizing: border-box;
    }

    .cat-rail-tab:active {
        background: #edf2f7;
    }

    /* Indicator on left of active tab */
    .cat-rail-indicator {
        position: absolute;
        left: 0;
        top: 14px;
        bottom: 14px;
        width: 4px;
        background: transparent;
        border-top-right-radius: 4px;
        border-bottom-right-radius: 4px;
        transition: background 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s ease;
    }

    .cat-rail-tab.active {
        background: #ffffff;
    }

    .cat-rail-tab.active .cat-rail-indicator {
        background: #2563eb;
    }

    .cat-rail-icon-bubble {
        width: 46px;
        height: 46px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.15rem;
        overflow: hidden;
        flex-shrink: 0;
        transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s ease;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    }

    .cat-rail-tab.active .cat-rail-icon-bubble {
        transform: scale(1.06);
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    }

    .cat-rail-icon-bubble img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .cat-rail-label {
        font-size: 0.68rem;
        font-weight: 500;
        color: #475569;
        text-align: center;
        margin-top: 6px;
        line-height: 1.18;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        word-break: break-word;
        transition: color 0.15s ease, font-weight 0.15s ease;
    }

    .cat-rail-tab.active .cat-rail-label {
        color: #1d4ed8;
        font-weight: 700;
    }

    /* ── Right Content Pane ── */
    .cat-mobile-content {
        flex: 1;
        height: 100%;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        background: #ffffff;
        padding: 12px 12px 32px;
        box-sizing: border-box;
    }

    .cat-tab-pane {
        display: none;
    }

    .cat-tab-pane.active {
        display: block;
        animation: catPaneFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    }

    @keyframes catPaneFadeIn {
        from {
            opacity: 0;
            transform: translateY(6px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Section Headings */
    .cat-pane-section {
        margin-bottom: 22px;
    }

    .cat-pane-heading-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 10px;
        padding: 0 2px;
    }

    .cat-pane-section-title {
        font-family: var(--font-display, 'Outfit', sans-serif);
        font-size: 0.98rem;
        font-weight: 700;
        color: #0f172a;
        margin: 0;
        line-height: 1.25;
        letter-spacing: -0.01em;
    }

    .cat-pane-see-all {
        font-size: 0.76rem;
        font-weight: 600;
        color: #2563eb;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 3px;
    }

    /* ── Squircle Grid (Flipkart 3-Column on Mobile) ── */
    .cat-squircle-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 9px;
    }

    .cat-squircle-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        transition: transform 0.15s ease;
    }

    .cat-squircle-item:active {
        transform: scale(0.96);
    }

    /* Squircle Image Container */
    .cat-squircle-thumb {
        width: 100%;
        aspect-ratio: 1 / 1;
        border-radius: 20px;
        background: #f1f5fa;
        position: relative;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid #edf2f7;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    }

    .cat-squircle-thumb img {
        width: 82%;
        height: 82%;
        object-fit: contain;
        transition: transform 0.2s ease;
    }

    .cat-squircle-emoji {
        font-size: 2.25rem;
        line-height: 1;
        user-select: none;
    }

    .cat-squircle-fallback-icon {
        font-size: 1.6rem;
        color: #94a3b8;
    }

    /* Badges anchored at bottom of squircle */
    .cat-squircle-badge {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 2.5px 3px;
        font-size: 0.52rem;
        font-weight: 800;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        text-align: center;
        color: #ffffff;
        line-height: 1.1;
    }

    .cat-squircle-badge.badge-sale {
        background: #00796B; /* Flipkart Teal-Green */
    }

    .cat-squircle-badge.badge-buynow {
        background: #00796B;
    }

    .cat-squircle-badge.badge-hot {
        background: #d97706; /* Amber */
    }

    .cat-squircle-badge.badge-limited {
        background: #dc2626; /* Crimson */
    }

    /* Title below squircle */
    .cat-squircle-name {
        font-size: 0.72rem;
        font-weight: 600;
        color: #1e293b;
        text-align: center;
        margin-top: 6px;
        line-height: 1.22;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        word-break: break-word;
        width: 100%;
    }

    /* Dedicated "View All" Squircle Tile */
    .cat-view-all-item .cat-view-all-thumb {
        background: #f0f5ff;
        border-color: #dbeafe;
    }

    .cat-view-all-circle {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        background: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #2563eb;
        font-size: 1.15rem;
        box-shadow: 0 2px 8px rgba(37, 99, 235, 0.16);
    }

    .cat-view-all-item .cat-squircle-name {
        color: #2563eb;
        font-weight: 700;
    }

    /* Empty category state on mobile */
    .cat-empty-pane {
        padding: 3rem 1.5rem;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .cat-empty-icon-wrap {
        width: 64px;
        height: 64px;
        border-radius: 50%;
        background: #f1f5f9;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #94a3b8;
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .cat-empty-pane-title {
        font-size: 1.05rem;
        font-weight: 700;
        color: #0f172a;
        margin: 0 0 0.4rem;
    }

    .cat-empty-pane-desc {
        font-size: 0.82rem;
        color: #64748b;
        max-width: 240px;
        margin: 0 auto 1.25rem;
        line-height: 1.4;
    }

    .cat-empty-action-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.55rem 1.15rem;
        background: #2563eb;
        color: #ffffff;
        font-size: 0.82rem;
        font-weight: 600;
        border-radius: 50px;
        text-decoration: none;
    }

    /* ── Tablet Optimization (600px - 1024px) ── */
    @media (min-width: 600px) {
        .cat-mobile-rail {
            width: 110px;
            min-width: 110px;
            max-width: 110px;
        }

        .cat-rail-tab {
            min-height: 92px;
            padding: 12px 6px 10px;
        }

        .cat-rail-icon-bubble {
            width: 52px;
            height: 52px;
            font-size: 1.3rem;
        }

        .cat-rail-label {
            font-size: 0.76rem;
        }

        .cat-mobile-content {
            padding: 16px 18px 40px;
        }

        /* 4 Columns of Squircles on Tablet */
        .cat-squircle-grid {
            grid-template-columns: repeat(4, 1fr);
            gap: 14px;
        }

        .cat-squircle-thumb {
            border-radius: 22px;
        }

        .cat-squircle-badge {
            font-size: 0.6rem;
            padding: 3px 4px;
        }

        .cat-squircle-name {
            font-size: 0.78rem;
            margin-top: 8px;
        }

        .cat-pane-section-title {
            font-size: 1.1rem;
        }
    }
}


/* ==========================================================================
   2. DESKTOP PROFESSIONAL CATEGORIES SHOWCASE (> 1024px)
   Expansive, Luxury E-Commerce Layout with Master-Detail Hub & Full Grid
   ========================================================================== */
@media (min-width: 1025px) {

    /* Hide mobile app structure on desktop */
    .cat-app-container {
        display: none !important;
    }

    .cat-desktop-container {
        display: block;
        background: #f8fafc;
        min-height: calc(100vh - 180px);
        padding: 1.5rem 0 4rem;
    }

    /* Breadcrumbs */
    .cat-desk-breadcrumbs {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.85rem;
        color: #64748b;
        margin-bottom: 1.25rem;
    }

    .cat-desk-breadcrumbs a {
        color: #64748b;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        transition: color 0.15s ease;
    }

    .cat-desk-breadcrumbs a:hover {
        color: var(--primary-color, #F02121);
    }

    .cat-desk-breadcrumbs .separator {
        color: #cbd5e1;
        font-size: 0.75rem;
    }

    .cat-desk-breadcrumbs .current {
        color: #0f172a;
        font-weight: 600;
    }


    /* ── Desktop Split Layout ── */
    .cat-desk-split-layout {
        display: grid;
        grid-template-columns: 320px 1fr;
        gap: 1.75rem;
        align-items: flex-start;
    }

    /* Desktop Sidebar Nav */
    .cat-desk-nav-sidebar {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 20px;
        padding: 1.25rem;
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02);
        position: sticky;
        top: 85px;
    }

    .cat-desk-nav-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 0.9rem;
        margin-bottom: 0.75rem;
        border-bottom: 1px solid #f1f5f9;
    }

    .cat-desk-nav-header h3 {
        font-family: var(--font-display, 'Outfit', sans-serif);
        font-size: 1.05rem;
        font-weight: 700;
        color: #0f172a;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .cat-desk-nav-count {
        font-size: 0.75rem;
        font-weight: 700;
        color: #64748b;
        background: #f1f5f9;
        padding: 0.2rem 0.6rem;
        border-radius: 20px;
    }

    .cat-desk-nav-list {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .cat-desk-nav-item {
        display: flex;
        align-items: center;
        gap: 0.85rem;
        width: 100%;
        padding: 0.65rem 0.85rem;
        border: 1px solid transparent;
        background: transparent;
        border-radius: 14px;
        cursor: pointer;
        text-align: left;
        transition: all 0.16s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .cat-desk-nav-item:hover {
        background: #f8fafc;
        border-color: #e2e8f0;
    }

    .cat-desk-nav-item.active {
        background: #ffffff;
        border-color: #2563eb;
        box-shadow: 0 4px 14px rgba(37, 99, 235, 0.1);
    }

    .cat-desk-nav-bubble {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.15rem;
        flex-shrink: 0;
        overflow: hidden;
    }

    .cat-desk-nav-bubble img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .cat-desk-nav-info {
        flex: 1;
        min-width: 0;
    }

    .cat-desk-nav-title {
        display: block;
        font-size: 0.92rem;
        font-weight: 700;
        color: #0f172a;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .cat-desk-nav-sub {
        display: block;
        font-size: 0.76rem;
        color: #64748b;
        margin-top: 2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .cat-desk-nav-badge {
        font-size: 0.72rem;
        font-weight: 700;
        color: #64748b;
        background: #f1f5f9;
        padding: 0.18rem 0.55rem;
        border-radius: 20px;
    }

    .cat-desk-nav-item.active .cat-desk-nav-badge {
        background: #eff6ff;
        color: #2563eb;
    }

    .cat-desk-nav-arrow {
        color: #cbd5e1;
        font-size: 0.75rem;
        transition: transform 0.16s ease, color 0.16s ease;
    }

    .cat-desk-nav-item.active .cat-desk-nav-arrow {
        color: #2563eb;
        transform: translateX(3px);
    }

    /* ── Desktop Showcase Panel ── */
    .cat-desk-showcase-panel {
        min-width: 0;
    }

    .cat-desk-showcase-pane {
        display: none;
    }

    .cat-desk-showcase-pane.active {
        display: block;
        animation: catPaneFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }

    /* Showcase Category Compact Hero Banner (Low Height Strip) */
    .cat-showcase-banner {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 14px;
        padding: 0.85rem 1.35rem;
        margin-bottom: 1.15rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1.25rem;
        position: relative;
        overflow: hidden;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    }

    .cat-showcase-banner-foryou {
        background: linear-gradient(135deg, #ffffff 0%, #f5f3ff 100%);
        border-left: 4px solid #8b5cf6;
    }

    .cat-showcase-banner-content {
        flex: 1;
        min-width: 0;
    }

    .cat-showcase-header-row {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        flex-wrap: wrap;
    }

    .cat-showcase-title {
        font-family: var(--font-display, 'Outfit', sans-serif);
        font-size: 1.25rem;
        font-weight: 800;
        color: #0f172a;
        margin: 0;
        line-height: 1.2;
    }

    .cat-showcase-pill {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        padding: 0.2rem 0.65rem;
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 50px;
        font-size: 0.72rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        white-space: nowrap;
    }

    .cat-showcase-price-tag {
        font-size: 0.78rem;
        color: #64748b;
        background: rgba(255, 255, 255, 0.8);
        padding: 0.18rem 0.55rem;
        border-radius: 6px;
        white-space: nowrap;
    }

    .cat-showcase-price-tag strong {
        color: #0f172a;
        font-weight: 700;
    }

    .cat-showcase-desc {
        color: #64748b;
        font-size: 0.82rem;
        line-height: 1.35;
        margin: 4px 0 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .cat-showcase-banner-right {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        flex-shrink: 0;
    }

    .cat-showcase-cta {
        display: inline-flex;
        align-items: center;
        gap: 0.45rem;
        padding: 0.5rem 1.05rem;
        background: #2563eb;
        color: #ffffff;
        border-radius: 10px;
        font-size: 0.82rem;
        font-weight: 700;
        text-decoration: none;
        box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
        transition: transform 0.16s ease, box-shadow 0.16s ease;
        white-space: nowrap;
    }

    .cat-showcase-cta:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
        color: #ffffff;
    }

    .cat-graphic-bubble {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.25rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
        overflow: hidden;
        flex-shrink: 0;
    }

    .cat-graphic-bubble img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* ── Desktop Products Block ── */
    .cat-desk-products-block {
        margin-top: 1.5rem;
    }

    .cat-desk-block-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 1.25rem;
    }

    .cat-desk-block-header h3 {
        font-family: var(--font-display, 'Outfit', sans-serif);
        font-size: 1.3rem;
        font-weight: 800;
        color: #0f172a;
        margin: 0;
    }

    .cat-desk-view-all-link {
        font-size: 0.86rem;
        font-weight: 700;
        color: #2563eb;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        transition: gap 0.15s ease;
    }

    .cat-desk-view-all-link:hover {
        gap: 0.55rem;
    }

    /* 4-Column Desktop Product Grid */
    .cat-desk-prod-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 1.25rem;
    }

    .cat-desk-prod-card {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 18px;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
    }

    .cat-desk-prod-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
        border-color: #cbd5e1;
    }

    .cat-desk-prod-thumb-link {
        text-decoration: none;
        display: block;
    }

    .cat-desk-prod-thumb {
        width: 100%;
        aspect-ratio: 1 / 1;
        background: #f8fafc;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        border-bottom: 1px solid #f1f5f9;
    }

    .cat-desk-prod-thumb img {
        width: 80%;
        height: 80%;
        object-fit: contain;
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .cat-desk-prod-card:hover .cat-desk-prod-thumb img {
        transform: scale(1.08);
    }

    .cat-desk-prod-emoji {
        font-size: 3.5rem;
    }

    .cat-desk-prod-icon {
        font-size: 2.5rem;
        color: #94a3b8;
    }

    .cat-desk-card-badge {
        position: absolute;
        top: 10px;
        left: 10px;
        padding: 0.22rem 0.6rem;
        font-size: 0.62rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        border-radius: 6px;
        color: #ffffff;
    }

    .cat-desk-card-badge.badge-sale {
        background: #00796B;
    }

    .cat-desk-card-badge.badge-buynow {
        background: #00796B;
    }

    .cat-desk-card-badge.badge-hot {
        background: #d97706;
    }

    .cat-desk-card-badge.badge-limited {
        background: #dc2626;
    }

    .cat-desk-prod-body {
        padding: 1rem;
        display: flex;
        flex-direction: column;
        flex: 1;
    }

    .cat-desk-prod-cat {
        font-size: 0.72rem;
        font-weight: 600;
        color: #94a3b8;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        margin-bottom: 0.25rem;
    }

    .cat-desk-prod-name {
        font-size: 0.92rem;
        font-weight: 700;
        margin: 0 0 0.5rem;
        line-height: 1.35;
        flex: 1;
    }

    .cat-desk-prod-name a {
        color: #0f172a;
        text-decoration: none;
        transition: color 0.15s ease;
    }

    .cat-desk-prod-name a:hover {
        color: #2563eb;
    }

    .cat-desk-prod-stars {
        display: flex;
        align-items: center;
        gap: 2px;
        color: #f59e0b;
        font-size: 0.72rem;
        margin-bottom: 0.75rem;
    }

    .cat-desk-rating-val {
        color: #64748b;
        font-weight: 700;
        font-size: 0.75rem;
        margin-left: 4px;
    }

    .cat-desk-prod-price-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-top: auto;
        padding-top: 0.65rem;
        border-top: 1px solid #f1f5f9;
    }

    .cat-desk-prod-price {
        font-family: var(--font-display, 'Outfit', sans-serif);
        font-size: 1.12rem;
        font-weight: 800;
        color: #0f172a;
    }

    .cat-desk-buy-btn {
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
        padding: 0.4rem 0.75rem;
        border-radius: 8px;
        background: #f1f5f9;
        color: #0f172a;
        font-size: 0.78rem;
        font-weight: 700;
        text-decoration: none;
        transition: all 0.16s ease;
    }

    .cat-desk-buy-btn:hover {
        background: #2563eb;
        color: #ffffff;
    }

    /* ── Desktop Mode 2: All Grid View ── */
    .cat-desk-grid-cards {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .cat-card-desktop-box {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 20px;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02);
        transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
    }

    .cat-card-desktop-box:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.07);
    }

    .cat-card-desk-top {
        height: 120px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 1.5rem;
        position: relative;
    }

    .cat-card-desk-icon-wrap {
        width: 60px;
        height: 60px;
        border-radius: 16px;
        background: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.75rem;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
        overflow: hidden;
    }

    .cat-card-desk-icon-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .cat-card-desk-badge {
        font-size: 0.74rem;
        font-weight: 700;
        background: rgba(255, 255, 255, 0.85);
        color: #0f172a;
        padding: 0.3rem 0.75rem;
        border-radius: 50px;
        backdrop-filter: blur(4px);
    }

    .cat-card-desk-body {
        padding: 1.25rem 1.5rem 1.5rem;
        display: flex;
        flex-direction: column;
        flex: 1;
    }

    .cat-card-desk-title {
        font-family: var(--font-display, 'Outfit', sans-serif);
        font-size: 1.25rem;
        font-weight: 800;
        color: #0f172a;
        margin: 0 0 0.35rem;
    }

    .cat-card-desk-desc {
        font-size: 0.84rem;
        color: #64748b;
        line-height: 1.45;
        margin: 0 0 1rem;
        flex: 1;
    }

    .cat-card-desk-previews {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-bottom: 1.25rem;
    }

    .cat-card-desk-prev-thumb {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        background: #f1f5f9;
        border: 1px solid #e2e8f0;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .cat-card-desk-prev-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .cat-card-desk-prev-txt {
        font-size: 0.74rem;
        color: #94a3b8;
        margin-left: 4px;
        font-weight: 500;
    }

    .cat-card-desk-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-top: 1rem;
        border-top: 1px solid #f1f5f9;
        margin-top: auto;
    }

    .cat-card-desk-from {
        font-size: 0.8rem;
        color: #64748b;
    }

    .cat-card-desk-from strong {
        color: #0f172a;
        font-size: 0.95rem;
    }

    .cat-card-desk-link {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        padding: 0.45rem 0.95rem;
        border-radius: 10px;
        background: #2563eb;
        color: #ffffff;
        font-size: 0.82rem;
        font-weight: 700;
        text-decoration: none;
        transition: background 0.15s ease;
    }

    .cat-card-desk-link:hover {
        background: #1d4ed8;
        color: #ffffff;
    }

    /* ── Desktop Bottom Promo Banner ── */
    .cat-desk-bottom-banner {
        background: #0f172a;
        border-radius: 20px;
        padding: 2.25rem 2.5rem;
        margin-top: 3rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 2rem;
        color: #ffffff;
    }

    .cat-desk-bottom-info h2 {
        font-family: var(--font-display, 'Outfit', sans-serif);
        font-size: 1.6rem;
        font-weight: 800;
        color: #ffffff;
        margin: 0 0 0.4rem;
    }

    .cat-desk-bottom-info p {
        color: #94a3b8;
        font-size: 0.94rem;
        margin: 0;
    }

    .cat-desk-bottom-actions {
        display: flex;
        align-items: center;
        gap: 0.85rem;
    }

    .cat-desk-cta-btn-primary {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.75rem 1.4rem;
        background: var(--primary-color, #F02121);
        color: #ffffff;
        border-radius: 12px;
        font-size: 0.88rem;
        font-weight: 700;
        text-decoration: none;
        transition: transform 0.16s ease;
    }

    .cat-desk-cta-btn-primary:hover {
        transform: translateY(-2px);
        color: #ffffff;
    }

    .cat-desk-cta-btn-ghost {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.75rem 1.3rem;
        background: rgba(255, 255, 255, 0.1);
        color: #ffffff;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 12px;
        font-size: 0.88rem;
        font-weight: 600;
        text-decoration: none;
        transition: background 0.16s ease;
    }

    .cat-desk-cta-btn-ghost:hover {
        background: rgba(255, 255, 255, 0.18);
        color: #ffffff;
    }
}
