:root {
    --market-primary: #2563eb;
    --market-primary-hover: #1d4ed8;
    --market-text: #111827;
    --market-text-secondary: #6b7280;
    --market-text-light: #9ca3af;
    --market-border: #e5e7eb;
    --market-bg: #f5f7fa;
    --market-surface: #ffffff;
    /* MINIMAL ENTERPRISE UPDATE */
    --market-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    --market-shadow-hover: 0 2px 10px rgba(0, 0, 0, 0.04);
    --market-radius-card: 8px;
    --market-radius-input: 10px;
    --market-radius-surface: 12px;
    --market-motion: 160ms;
    --market-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
    
    /* B2B Aliases */
    --b2b-primary: var(--market-primary);
    --b2b-text: var(--market-text);
    --b2b-text-light: var(--market-text-secondary);
    --b2b-border: var(--market-border);
    --b2b-bg: var(--market-bg);
    --b2b-surface: var(--market-surface);
    --b2b-shadow: var(--market-shadow);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background: var(--market-bg);
    color: var(--market-text);
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
}

body.market-sidebar-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ============================================
   B2B HEADER COMPONENT
   Single-layer minimal design
   ============================================ */

.b2b-main-nav {
    background: var(--b2b-surface);
    border-bottom: 1px solid var(--b2b-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.b2b-nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 2rem;
}

/* Logo */
.b2b-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--b2b-text);
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.b2b-logo:hover {
    opacity: 0.8;
}

.b2b-logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--b2b-primary) 0%, #1d4ed8 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.b2b-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
}

/* Center Navigation Menu */
.b2b-nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
    justify-content: center;
}

/* Navigation Links */
.b2b-nav-link {
    color: var(--b2b-text);
    font-size: 0.938rem;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.b2b-nav-link:hover {
    color: var(--b2b-primary);
}

/* Right Actions */
.b2b-nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}

.b2b-user-name {
    font-size: 0.875rem;
}

/* Category Dropdown */
.b2b-category-dropdown {
    position: relative;
}

.b2b-category-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0;
    color: var(--b2b-text);
    font-size: 0.938rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
    background: none;
    border: none;
}

.b2b-category-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0;
    color: var(--b2b-text);
    font-size: 0.938rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
    background: none;
    border: none;
}

.b2b-category-trigger:hover {
    color: var(--b2b-primary);
}

/* Mega Menu Panel */
.b2b-mega-panel {
    position: absolute;
    top: calc(100% + 1rem);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    width: 960px;
    max-width: calc(100vw - 2rem);
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 1000;
}

.b2b-category-dropdown:hover .b2b-mega-panel {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.b2b-mega-grid {
    display: grid;
    grid-template-columns: 240px 1fr 240px;
    gap: 2rem;
}

.b2b-mega-main-title,
.b2b-mega-trending-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--b2b-text-light);
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.b2b-mega-main-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: all 0.2s;
}

.b2b-mega-main-item:hover {
    background: rgba(37, 99, 235, 0.06);
}

.b2b-mega-main-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0.05) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--b2b-primary);
    flex-shrink: 0;
}

.b2b-mega-subs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    align-content: start;
}

.b2b-mega-sub-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.b2b-mega-sub-item:hover {
    background: rgba(37, 99, 235, 0.04);
    color: var(--b2b-primary);
}

.b2b-mega-sub-count {
    font-size: 0.75rem;
    color: var(--b2b-text-light);
    background: #f1f5f9;
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
}

.b2b-trending-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: all 0.2s;
}

.b2b-trending-item:hover {
    background: rgba(37, 99, 235, 0.04);
}

.b2b-trending-item-static {
    cursor: default;
}

.b2b-trending-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--b2b-text);
}

.b2b-trending-count {
    font-size: 0.75rem;
    color: var(--b2b-text-light);
    white-space: nowrap;
    margin-left: 0.5rem;
}

.b2b-trending-empty {
    font-size: 0.875rem;
    color: var(--b2b-text-light);
    text-align: center;
    padding: 2rem 1rem;
}

.b2b-btn-primary {
    padding: 0.625rem 1.5rem;
    background: var(--b2b-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.938rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.b2b-btn-primary:hover {
    background: var(--market-primary-hover);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.b2b-btn-outline {
    padding: 0.625rem 1.25rem;
    background: transparent;
    color: var(--b2b-text);
    border: 1px solid var(--b2b-border);
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.938rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.b2b-btn-outline:hover {
    border-color: var(--b2b-primary);
    color: var(--b2b-primary);
    background: rgba(37, 99, 235, 0.06);
}

/* Responsive */
@media (max-width: 991px) {
    .b2b-nav-container {
        gap: 1rem;
    }
    
    .b2b-nav-menu {
        display: none;
    }
    
    .b2b-logo-text {
        display: none;
    }
    
    .b2b-mega-panel {
        width: calc(100vw - 2rem);
        left: 50%;
    }
    
    .b2b-mega-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .b2b-nav-container {
        padding: 0.75rem 0;
    }
    
    .b2b-nav-actions {
        gap: 0.75rem;
    }
    
    .b2b-user-name {
        display: none;
    }
    
    .b2b-btn-primary,
    .b2b-btn-outline {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 768px) {
    .b2b-utility-bar {
        display: none;
    }
    
    .b2b-logo span {
        display: none;
    }
    
    .b2b-nav-actions {
        gap: 0.5rem;
    }
    
    .b2b-btn-outline span,
    .b2b-nav-link span {
        display: none;
    }
}

/* ============================================
   MARKET STYLES (Legacy - keeping for compatibility)
   ============================================ */


.market-topbar {
    background: var(--market-surface);
    border-bottom: 1px solid var(--market-border);
    min-height: 36px;
}

.market-products-page .market-topbar {
    display: none;
}

.market-topbar-inner {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.market-topbar-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.market-topbar-links a {
    color: var(--market-text-secondary);
    text-decoration: none;
    font-size: 12px;
    font-weight: 400;
    transition: color var(--market-motion) var(--market-ease);
}

.market-topbar-links a:hover {
    color: var(--market-text);
}

.market-mainbar {
    background: var(--market-surface);
    border-bottom: 1px solid var(--market-border);
    min-height: 80px;
}

.market-mainbar-inner {
    min-height: 80px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
}

.market-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 24px;
    font-weight: 600;
    color: var(--market-text);
}

.market-logo-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid var(--market-border);
    background: #f8fafc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.market-search {
    width: 100%;
}

.market-search-input-wrap {
    position: relative;
    width: 100%;
    max-width: 680px;
    min-width: 480px;
}

.market-search-input {
    width: 100%;
    height: 44px;
    border: 1px solid var(--market-border);
    border-radius: var(--market-radius-input);
    background: var(--market-surface);
    color: var(--market-text);
    padding: 0 44px 0 14px;
    font-size: 14px;
    transition: border-color var(--market-motion) var(--market-ease), box-shadow var(--market-motion) var(--market-ease);
}

.market-search-input:focus {
    outline: none;
    border-color: #cbd5e1;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.06);
}

.market-search-btn {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--market-text-secondary);
}

.market-main-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.market-cat-dropdown {
    position: relative;
}

.market-cat-trigger {
    border: 1px solid var(--market-border);
    background: var(--market-surface);
    color: var(--market-text);
    border-radius: var(--market-radius-input);
    height: 40px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.market-action-btn {
    height: 40px;
    border-radius: var(--market-radius-input);
    border: 0;
    background: var(--market-primary);
    color: #fff;
    text-decoration: none;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
    transition: background var(--market-motion) var(--market-ease);
}

.market-action-btn:hover {
    color: #fff;
    background: var(--market-primary-hover);
}

.market-action-link {
    height: 40px;
    border-radius: var(--market-radius-input);
    border: 1px solid var(--market-border);
    color: var(--market-text);
    text-decoration: none;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.market-mega-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(1320px, calc(100vw - 48px));
    background: var(--market-surface);
    border-radius: var(--market-radius-surface);
    box-shadow: var(--market-shadow);
    border: 1px solid var(--market-border);
    padding: 32px;
    display: none;
    z-index: 60;
}

.market-cat-dropdown:hover .market-mega-menu,
.market-mega-menu:hover {
    display: block;
}

.market-mega-grid {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 240px;
    gap: 32px;
}

.market-mega-title {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--market-text-secondary);
    margin-bottom: 12px;
}

.market-mega-col-left,
.market-mega-col-right {
    border-right: 1px solid var(--market-border);
    padding-right: 16px;
}

.market-mega-col-right {
    border-right: 0;
    border-left: 1px solid var(--market-border);
    padding-left: 16px;
}

.market-mega-main-item,
.market-mega-right-item,
.market-mega-sub-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: var(--market-text);
    font-size: 14px;
    padding: 8px 10px;
    border-radius: 8px;
    transition: background var(--market-motion) var(--market-ease);
}

.market-mega-main-item:hover,
.market-mega-right-item:hover,
.market-mega-sub-item:hover {
    background: #f9fafb;
}

.market-mega-main-item small,
.market-mega-right-item small {
    color: var(--market-text-secondary);
    font-size: 12px;
}

.market-mega-sub-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.market-mega-empty {
    font-size: 12px;
    color: var(--market-text-secondary);
    padding: 8px 10px;
}

.live-commerce-bar {
    background: #f3f4f6;
    border-bottom: 1px solid var(--market-border);
    min-height: 32px;
}

.live-commerce-bar-inner {
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    padding: 4px 0;
}

.live-commerce-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--market-text-secondary);
    font-size: 12px;
    font-weight: 400;
}

.live-commerce-item i {
    font-size: 12px;
    color: #9ca3af;
}

.live-commerce-item strong {
    color: #374151;
    font-weight: 500;
}

.market-page {
    padding-top: 32px;
    padding-bottom: 36px;
}

.market-layout {
    display: block;
}

.market-row {
    align-items: flex-start;
}

.market-sidebar-col {
    margin-bottom: 24px;
}

.market-main-col {
    min-width: 0;
    display: grid;
    gap: 24px;
}

.market-sidebar {
    position: sticky;
    top: 136px;
    align-self: start;
}

.market-sidebar-panel {
    background: var(--market-surface);
    border: 1px solid #ececec;
    border-radius: 14px;
    padding: 24px;
    box-shadow: none;
    max-height: none;
    overflow: visible;
}

.market-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.market-sidebar-head h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.market-sidebar-close {
    display: none;
    width: 30px;
    height: 30px;
    border: 0;
    background: transparent;
    color: var(--market-text-secondary);
}

.market-filter-form {
    display: grid;
    gap: 16px;
}

.market-filter-block {
    display: grid;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: none;
}

.market-filter-form .market-filter-block:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.market-filter-title {
    font-size: 15px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
    color: var(--market-text);
    margin-bottom: 8px;
    padding-bottom: 8px;
    position: relative;
}

.market-filter-title::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: #f1f1f1;
}

.market-input {
    width: 100%;
    height: 40px;
    border: 1px solid var(--market-border);
    border-radius: var(--market-radius-input);
    background: var(--market-surface);
    color: var(--market-text);
    padding: 0 10px;
    font-size: 14px;
}

.market-input:focus {
    outline: none;
    border-color: #cbd5e1;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.06);
}

.market-price-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 6px;
}

.market-price-row span {
    color: var(--market-text-secondary);
    font-size: 13px;
}

.market-price-row .market-input {
    height: 36px;
    padding: 0 9px;
    font-size: 13px;
}

.market-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 600;
}

.market-switch {
    margin: 0;
    padding-left: 2.5rem;
    min-height: 28px;
}

.market-switch .form-check-input {
    width: 2rem;
    height: 1.1rem;
    margin-top: 0.2rem;
}

.market-switch .form-check-input:focus {
    box-shadow: 0 0 0 0.15rem rgba(37, 99, 235, 0.18);
}

.market-switch .form-check-label {
    font-size: 14px;
    color: var(--market-text);
}

.market-switch + .market-switch {
    margin-top: 4px;
}

.market-sidebar-mobile-toggle {
    width: 100%;
    margin-bottom: 14px;
    border-color: #e5e7eb;
    color: var(--market-text);
}

.market-sidebar-mobile-toggle:hover {
    border-color: #d1d5db;
    color: var(--market-text);
    background: #f8fafc;
}

.market-sidebar-mobile-toggle:focus {
    box-shadow: 0 0 0 0.15rem rgba(37, 99, 235, 0.18);
}

.market-filter-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.market-filter-actions .market-btn-primary {
    width: 100%;
}

.market-btn-link {
    padding: 0;
    color: var(--market-text-secondary);
    text-decoration: none;
    font-size: 13px;
}

.market-btn-link:hover {
    color: var(--market-text);
    text-decoration: none;
}

.market-btn-primary,
.market-btn-outline {
    min-height: 38px;
    border-radius: 8px;
    font-weight: 600;
}

.market-btn-primary.btn-primary {
    background: var(--market-primary);
    border-color: var(--market-primary);
}

.market-btn-primary.btn-primary:hover {
    background: var(--market-primary-hover);
    border-color: var(--market-primary-hover);
}

.market-accordion {
    display: grid;
    gap: 4px;
}

.market-acc-btn {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    color: var(--market-text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    font-size: 14px;
    border-radius: 10px;
    font-weight: 500;
    transition: background var(--market-motion) var(--market-ease), color var(--market-motion) var(--market-ease);
}

.market-acc-btn small {
    font-size: 12px;
    color: #9ca3af;
}

.market-acc-btn:hover {
    background: #f7f7f7;
}

.market-acc-btn.is-active {
    background: #f3f4f6;
}

.market-acc-panel {
    display: none;
    padding-bottom: 6px;
}

.market-acc-panel.is-open {
    display: grid;
}

.market-sub-link {
    border: 0;
    background: transparent;
    color: var(--market-text-secondary);
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 10px 6px 22px;
    font-size: 14px;
    border-radius: 10px;
    transition: background var(--market-motion) var(--market-ease), color var(--market-motion) var(--market-ease);
}

.market-sub-link:hover {
    background: #f7f7f7;
    color: var(--market-text);
}

.market-sub-link.is-active {
    background: #f3f4f6;
    color: var(--market-text);
}

.market-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.25);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--market-motion) var(--market-ease), visibility var(--market-motion) var(--market-ease);
    z-index: 70;
}

.market-sidebar-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.market-main {
    min-width: 0;
    display: grid;
    gap: 24px;
}

.market-performance-info {
    min-height: auto;
    border: none;
    border-radius: 0;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    color: var(--market-text-secondary);
    font-size: 12px;
}

.market-performance-info i {
    color: #9ca3af;
    font-size: 13px;
}

.market-performance-info p {
    margin: 0;
}

.market-toolbar-wrap {
    display: grid;
    gap: 10px;
}

.market-toolbar {
    background: var(--market-surface);
    border-radius: var(--market-radius-surface);
    display: grid;
    grid-template-columns: 1fr minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 16px;
}

.market-toolbar-left {
    min-width: 0;
}

.market-toolbar-center {
    min-width: 0;
    justify-self: center;
    width: 100%;
}

.market-toolbar-title {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
}

.market-toolbar-count {
    margin: 4px 0 0;
    color: var(--market-text-secondary);
    font-size: 12px;
    font-weight: 400;
}

.market-toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-self: end;
}

.market-toolbar-rfq-hint {
    font-size: 11px;
    color: #9ca3af;
    white-space: nowrap;
}

.market-rfq-global {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid #d7e7ff;
    border-radius: 14px;
    background: linear-gradient(90deg, #eff6ff 0%, #f7fbff 100%);
    padding: 16px 18px;
}

.market-rfq-global-content h2 {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.3;
}

.market-rfq-global-content p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

.market-rfq-global-btn {
    min-width: 210px;
    white-space: nowrap;
}

.market-rfq-global-btn.market-card-cta,
.market-rfq-tail-btn.market-card-cta {
    width: auto;
}

.market-mobile-filter {
    display: none;
    height: 40px;
    border-radius: 8px;
    border: 1px solid var(--market-border);
    color: var(--market-text);
    gap: 6px;
    align-items: center;
}

.market-sort {
    height: 40px;
    border: 1px solid var(--market-border);
    border-radius: var(--market-radius-input);
    min-width: 220px;
    padding: 0 10px;
    background: var(--market-surface);
    color: var(--market-text);
}

.market-sort:focus {
    outline: none;
    border-color: #cbd5e1;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.06);
}

.market-view-toggle {
    height: 40px;
    border: 1px solid var(--market-border);
    border-radius: 8px;
    display: inline-flex;
    overflow: hidden;
    background: var(--market-surface);
}

.market-view-btn {
    width: 38px;
    height: 38px;
    border: 0;
    background: transparent;
    color: var(--market-text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.market-view-btn.is-active {
    background: rgba(15, 23, 42, 0.04);
    color: var(--market-text);
}

.market-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.market-chip {
    height: 28px;
    border: 0;
    border-radius: 999px;
    background: #f3f4f6;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #374151;
    font-size: 12px;
}

.market-chip button {
    border: 0;
    background: transparent;
    color: #6b7280;
    padding: 0;
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.market-grid-wrap {
    position: relative;
}

.market-rfq-tail {
    width: 100%;
    border: 1px dashed #dbe8ff;
    border-radius: 14px;
    background: #f8fbff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.market-rfq-tail h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
}

.market-rfq-tail-btn {
    min-width: 200px;
    white-space: nowrap;
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    transition: opacity var(--market-motion) var(--market-ease);
}

.market-grid.is-fading {
    opacity: 0;
}

.market-grid.is-loading {
    pointer-events: none;
}

.market-grid-loading {
    position: absolute;
    inset: 0;
    background: rgba(245, 247, 250, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    color: var(--market-text-secondary);
    font-size: 12px;
}

.market-grid-loading .spinner-border {
    width: 24px;
    height: 24px;
    border-width: 2px;
    color: #9ca3af;
}

.market-card {
    background: var(--market-surface);
    border: 1px solid #f0f0f0;
    border-radius: var(--market-radius-card);
    box-shadow: none;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 100%;
    transition: box-shadow var(--market-motion) var(--market-ease), border-color var(--market-motion) var(--market-ease);
}

.market-card:hover {
    box-shadow: var(--market-shadow);
    border-color: #e6e8eb;
}

.market-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--market-radius-card);
    overflow: hidden;
    background: #f9fafb;
    display: block;
}

.market-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.market-card-badges {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.market-badge {
    height: 20px;
    border: none;
    border-radius: 999px;
    background: rgba(243, 244, 246, 0.92);
    color: #374151;
    padding: 0 8px;
    font-size: 11px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.market-card-body {
    display: grid;
    gap: 8px;
    min-height: 0;
}

.market-card-title {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
    min-height: 44px;
}

.market-card-actions {
    margin-top: auto;
    display: grid;
    gap: 6px;
}

.market-card-title a {
    color: var(--market-text);
    text-decoration: none;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.market-card-title a:hover {
    color: #0f172a;
}

.market-card-cta {
    width: 100%;
    min-height: 40px;
    border: 0;
    border-radius: 8px;
    background: var(--market-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    box-shadow: none;
    transition: background var(--market-motion) var(--market-ease);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.market-card-cta:hover {
    background: var(--market-primary-hover);
}

.market-card-cta-note {
    margin: 0;
    font-size: 12px;
    color: var(--market-text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.market-product-cta-wrap .market-card-cta-note {
    display: block;
    text-align: center;
    font-size: 11px;
    color: #94a3b8;
}

.market-card-seller {
    font-size: 12px;
    color: var(--market-text-secondary);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.market-card-seller i {
    color: #64748b;
}

.market-card-trust {
    font-size: 11px;
    color: var(--market-text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.market-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
    color: var(--market-text-secondary);
    padding: 8px 10px;
    border: 1px solid var(--market-border);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.02);
}

.market-card-meta strong {
    font-weight: 500;
    color: #374151;
}

.market-card-social {
    font-size: 11px;
    color: var(--market-text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.market-card-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 11px;
    color: var(--market-text-secondary);
}

.market-card-fact {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.market-card-fact i {
    font-size: 12px;
    color: #9ca3af;
}

.market-card-price {
    display: grid;
    gap: 2px;
    padding-top: 4px;
}

.market-card-price span {
    font-size: 11px;
    color: var(--market-text-secondary);
}

.market-card-price strong {
    font-size: 16px;
    color: var(--market-text);
    font-weight: 600;
}

.market-card-price-note {
    font-size: 11px;
    color: var(--market-text-secondary);
}

.market-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.market-page-btn {
    min-width: 34px;
    height: 34px;
    border: 1px solid var(--market-border);
    border-radius: 8px;
    background: var(--market-surface);
    color: var(--market-text-secondary);
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background var(--market-motion) var(--market-ease), color var(--market-motion) var(--market-ease);
}

.market-page-btn:hover:not(:disabled) {
    background: #f3f4f6;
    color: var(--market-text);
}

.market-page-btn.is-active {
    border-color: #cbd5e1;
    color: var(--market-text);
}

.market-page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.market-empty {
    grid-column: 1 / -1;
    border: none;
    border-radius: var(--market-radius-surface);
    background: var(--market-surface);
    box-shadow: none;
    padding: 34px;
    display: grid;
    gap: 14px;
    justify-items: start;
    text-align: left;
    width: 100%;
}

.market-empty-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--market-text-secondary);
    background: transparent;
}

.market-empty-icon i {
    font-size: 16px;
}

.market-empty h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.market-empty p {
    margin: 0;
    font-size: 14px;
    color: var(--market-text-secondary);
}

.market-empty-suggestions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    text-align: left;
}

.market-empty-col h4 {
    margin: 0 0 8px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--market-text-secondary);
}

.market-empty-links {
    display: grid;
    gap: 8px;
}

.market-empty-links a {
    border: 1px solid var(--market-border);
    border-radius: 8px;
    background: #f9fafb;
    text-decoration: none;
    color: var(--market-text);
    padding: 8px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.market-empty-links a small {
    font-size: 12px;
    color: var(--market-text-secondary);
}

.market-empty-cta {
    min-height: 40px;
    border-radius: 10px;
    font-weight: 500;
    justify-self: start;
}

.market-footer {
    background: var(--market-surface);
    border-top: 1px solid var(--market-border);
    margin-top: 40px;
}

.market-footer-grid {
    padding-top: 28px;
    padding-bottom: 20px;
    display: grid;
    grid-template-columns: minmax(0, 2.6fr) repeat(3, minmax(0, 1fr));
    column-gap: 56px;
}

.market-footer-grid > div:first-child {
    padding-right: 46px;
    border-right: 2px solid #e2e8f0;
}

.market-footer-grid > div:not(:first-child) {
    padding-left: 22px;
    border-left: none;
}

.market-footer-grid h6 {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 600;
}

.market-footer-grid p {
    margin: 0;
    color: var(--market-text-secondary);
    font-size: 13px;
    line-height: 1.5;
}

.market-footer-grid a {
    display: block;
    margin-bottom: 8px;
    text-decoration: none;
    color: var(--market-text-secondary);
    font-size: 13px;
}

.market-footer-grid a:hover {
    color: var(--market-text);
}

.market-footer-bottom {
    border-top: 1px solid var(--market-border);
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    color: var(--market-text-secondary);
    padding: 10px 0;
}

.market-footer-note {
    color: #94a3b8;
}

.market-topbar-links a,
.market-search-input,
.market-cat-trigger,
.market-action-btn,
.market-action-link,
.market-mega-main-item,
.market-mega-right-item,
.market-mega-sub-item,
.market-input,
.market-acc-btn,
.market-sub-link,
.market-sort,
.market-page-btn,
.market-card,
.market-card-cta,
.market-empty-links a {
    transition-duration: var(--market-motion);
    transition-timing-function: var(--market-ease);
}

/* Keep desktop grid readable; avoid shrinking cards too much on wide screens. */

@media (max-width: 1199px) {
    .market-search-input-wrap {
        min-width: 0;
    }

    .market-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .market-mega-grid {
        grid-template-columns: 200px minmax(0, 1fr) 220px;
    }
}

@media (max-width: 991px) {
    .market-mainbar-inner {
        grid-template-columns: 1fr;
        padding: 12px 0;
        min-height: auto;
    }

    .market-search-input-wrap {
        max-width: none;
        min-width: 0;
    }

    .market-main-actions {
        width: 100%;
        justify-content: space-between;
    }

    .market-mega-menu {
        right: auto;
        left: 0;
        width: 100%;
        padding: 18px;
    }

    .market-mega-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .market-mega-col-left,
    .market-mega-col-right {
        border: 0;
        padding: 0;
    }

    .market-sidebar {
        position: static;
        top: auto;
        left: auto;
        width: 100%;
        height: auto;
        background: transparent;
        border-right: 0;
        z-index: auto;
        padding: 0;
        overflow: visible;
        transform: none;
        transition: none;
    }

    .market-sidebar.is-open {
        transform: none;
    }

    .market-sidebar-panel {
        background: var(--market-surface);
        border: 1px solid #ececec;
        border-radius: 14px;
        padding: 16px;
        box-shadow: none;
        max-height: none;
        overflow: visible;
    }

    .market-sidebar-close {
        display: none;
    }

    .market-mobile-filter {
        display: none;
    }

    .market-sidebar-overlay {
        display: none;
    }

    .market-toolbar {
        grid-template-columns: 1fr;
        align-items: start;
        padding: 14px;
    }

    .market-toolbar-center {
        justify-self: start;
    }

    .market-filter-chips {
        justify-content: flex-start;
    }

    .market-toolbar-right {
        width: 100%;
        justify-content: space-between;
    }

    .market-toolbar-rfq-hint {
        display: none;
    }

    .market-rfq-global {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px;
    }

    .market-rfq-global-btn,
    .market-rfq-global-btn.market-card-cta {
        width: 100%;
        min-width: 0;
    }

    .market-rfq-tail {
        flex-direction: column;
        align-items: flex-start;
    }

    .market-rfq-tail-btn,
    .market-rfq-tail-btn.market-card-cta {
        width: 100%;
        min-width: 0;
    }

    .market-sort {
        min-width: 0;
        width: 100%;
    }

    .market-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .market-empty-suggestions {
        grid-template-columns: 1fr;
    }

    .market-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 24px;
    }

    .market-footer-grid > div:first-child {
        padding-right: 0;
        border-right: none;
    }

    .market-footer-grid > div:not(:first-child) {
        padding-left: 0;
        border-left: none;
    }
}

@media (max-width: 640px) {
    .market-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .market-card {
        padding: 16px;
        gap: 10px;
    }

    .market-card-title {
        font-size: 16px;
        min-height: 40px;
    }

    .market-footer-grid {
        grid-template-columns: 1fr;
    }

    .market-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .live-commerce-bar-inner {
        justify-content: flex-start;
        gap: 10px;
    }
}

/* ============================================
   B2B HOMEPAGE STYLES
   Modern, clean, corporate aesthetic
   ============================================ */

.b2b-home-hero {
    background: #ffffff;
    padding: 2.1rem 0 2.4rem;
    position: relative;
    overflow: hidden;
}

.b2b-home-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.b2b-hero-content {
    position: relative;
    z-index: 1;
}

.b2b-hero-title {
    font-size: 3.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.b2b-hero-title span {
    color: #0284c7;
}

.b2b-hero-subtitle {
    font-size: 1.063rem;
    color: #64748b;
    margin-bottom: 1.35rem;
    line-height: 1.6;
    font-weight: 400;
}

.b2b-hero-search {
    max-width: 100%;
    margin-bottom: 0.95rem;
}

.b2b-hero-search-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
    padding: 0.95rem;
    position: relative;
}

.b2b-hero-search-inner {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.95rem 1.25rem;
    transition: all 0.2s;
}

.b2b-hero-search-inner:focus-within {
    border-color: #cbd5e1;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

.b2b-hero-search-inner i {
    color: #94a3b8;
    font-size: 1.25rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.b2b-hero-search-inner input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    background: transparent;
    color: #0f172a;
}

.b2b-hero-search-inner input::placeholder {
    color: #94a3b8;
}

.b2b-hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.15rem;
    flex-wrap: wrap;
}

.b2b-btn-primary {
    background: #0f172a;
    color: white;
    border: none;
    border-radius: 14px;
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}

.b2b-btn-primary:hover {
    background: #0b1220;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.20);
}

.home-hero-cta:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.24);
}

.home-search-suggestions {
    position: absolute;
    left: 12px;
    right: 12px;
    top: calc(100% - 2px);
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.16);
    padding: 0.25rem;
    z-index: 20;
    display: none;
}

.home-search-suggestions.is-visible {
    display: block;
}

.home-search-suggestion-item {
    width: 100%;
    border: 0;
    background: #fff;
    border-radius: 8px;
    padding: 0.55rem 0.65rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    gap: 0.75rem;
}

.home-search-suggestion-item:hover {
    background: #f8fafc;
}

.home-search-suggestion-name {
    font-size: 0.9rem;
    color: #0f172a;
    font-weight: 500;
}

.home-search-suggestion-count {
    font-size: 0.75rem;
    color: #64748b;
    background: #f1f5f9;
    border-radius: 999px;
    padding: 0.1rem 0.5rem;
}

.b2b-btn-outline {
    background: white;
    color: #0f172a;
    border: 2px solid #cbd5e1;
    border-radius: 14px;
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.b2b-btn-outline:hover {
    border-color: #94a3b8;
    background: #ffffff;
    color: #0f172a;
}

.b2b-hero-features-bar {
    display: inline-flex;
    align-items: center;
    gap: 1.25rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 0.72rem 1.1rem;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
}

.b2b-hero-feature {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    color: #334155;
    font-size: 0.938rem;
    font-weight: 500;
    white-space: nowrap;
}

.b2b-hero-feature-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

.b2b-hero-feature-divider {
    width: 1px;
    height: 18px;
    background: #e5e7eb;
}

/* ============================================
   HOME HERO RIGHT PANEL (Featured / Sponsor)
   ============================================ */

.home-hero-panel-wrap {
    position: relative;
    max-width: 540px;
    margin-left: auto;
    padding-top: 0.75rem;
}

.home-hero-panel {
    background: #fff;
    border: 1px solid #e1e6ed;
    border-radius: 22px;
    box-shadow: 0 28px 56px rgba(15, 23, 42, 0.15);
    padding: 1.05rem;
}

.home-hero-panel-badge {
    position: absolute;
    top: 0;
    right: 0;
    color: #fff;
    background: linear-gradient(90deg, #43ca9e, #37c2b2);
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    padding: 0.72rem 1.16rem;
}

.home-hero-item {
    display: flex;
    justify-content: space-between;
    gap: 0.88rem;
    align-items: center;
    border: 1px solid #e9eef4;
    border-radius: 14px;
    padding: 0.74rem 0.85rem;
    margin-bottom: 0.7rem;
    background: #f5f7fb;
}

.home-hero-item:last-child {
    margin-bottom: 0;
}

.home-hero-item-main {
    display: flex;
    align-items: center;
    gap: 0.74rem;
    min-width: 0;
}

.home-hero-item-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-size: 1.25rem;
}

.home-hero-item-icon.is-fresh {
    background: #dff3df;
    color: #449b4d;
}

.home-hero-item-icon.is-textile {
    background: #dce8fc;
    color: #5383cb;
}

.home-hero-item-icon.is-home {
    background: #e8ddf8;
    color: #8d67bd;
}

.home-hero-item-copy {
    min-width: 0;
}

.home-hero-item-title {
    font-weight: 700;
    font-size: 1.07rem;
    line-height: 1.2;
    color: #16233b;
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-hero-item-meta {
    color: #5c6b80;
    font-size: 0.95rem;
    margin-top: 0.08rem;
}

.home-hero-panel-stat {
    position: absolute;
    left: -14px;
    bottom: -14px;
    background: #fff;
    border: 1px solid #dee5ed;
    border-radius: 999px;
    color: #12253d;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    padding: 0.625rem 1rem;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.13);
}

.home-hero-panel-stat i {
    color: #27b36c;
}

.btn-home-mini {
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.62rem 1.16rem;
    transition: 0.2s ease;
    background: #0b84d8;
    border: 1px solid transparent;
    color: #fff;
    line-height: 1;
    border-radius: 10px;
}

.btn-home-mini:hover,
.btn-home-mini:focus {
    color: #fff;
    background: #056aa9;
}

@media (max-width: 991px) {
    .home-hero-panel-wrap {
        max-width: 100%;
        margin: 1.1rem auto 0;
    }
}

.b2b-home-section {
    padding: 5rem 0;
}

.b2b-home-section.soft {
    background: white;
}

.b2b-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.b2b-section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--market-text);
    margin-bottom: 0.75rem;
}

.b2b-section-subtitle {
    font-size: 1.125rem;
    color: var(--market-text-secondary);
}

.b2b-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.b2b-home-product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid var(--market-border);
}

.b2b-home-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.b2b-product-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: #f9fafb;
}

.b2b-product-placeholder {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.b2b-product-placeholder i {
    font-size: 3rem;
    color: var(--market-border);
}

.b2b-product-body {
    padding: 1.25rem;
}

.b2b-product-badge {
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    margin-bottom: 0.75rem;
}

.b2b-product-badge i {
    margin-right: 0.25rem;
}

.b2b-product-badge.sponsored {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    color: #eff6ff;
    border: 1px solid #1e40af;
    box-shadow: 0 10px 18px rgba(37, 99, 235, 0.25);
}

.b2b-product-badge.premium {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #e2e8f0;
    border: 1px solid #1f2937;
}

.b2b-product-badge.demand {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.b2b-product-category {
    font-size: 0.875rem;
    color: var(--market-text-secondary);
    margin-bottom: 0.5rem;
}

.b2b-product-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--market-text);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.b2b-product-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--market-text-secondary);
    margin-bottom: 1rem;
}

.b2b-product-meta i {
    margin-right: 0.25rem;
}

.b2b-product-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--market-text);
    margin-bottom: 1rem;
}

.b2b-product-cta {
    width: 100%;
    background: var(--market-primary);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    text-decoration: none;
    display: block;
}

.b2b-product-cta:hover {
    background: var(--market-primary-hover);
    color: white;
    transform: translateY(-1px);
}

.b2b-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

.b2b-category-card {
    background: white;
    border: 2px solid var(--market-border);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s;
    text-decoration: none;
    display: block;
}

.b2b-category-card:hover {
    border-color: var(--market-primary);
    background: rgba(37, 99, 235, 0.02);
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
}

.b2b-category-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0.05) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.b2b-category-icon i {
    font-size: 2rem;
    color: var(--market-primary);
}

.b2b-category-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--market-text);
    margin-bottom: 0.5rem;
}

.b2b-category-card p {
    font-size: 0.875rem;
    color: var(--market-text-secondary);
    margin: 0;
}

.b2b-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.b2b-step-card {
    text-align: center;
    position: relative;
    border: 1px solid #e6ebf2;
    background: #ffffff;
    border-radius: 14px;
    padding: 1.8rem 1.3rem 1.45rem;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.b2b-step-card:hover {
    transform: translateY(-4px);
    border-color: #d3deed;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.b2b-step-number {
    position: absolute;
    top: -10px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--market-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.b2b-step-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0.05) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.b2b-step-icon i {
    font-size: 2rem;
    color: var(--market-primary);
}

.b2b-step-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--market-text);
    margin-bottom: 0.75rem;
}

.b2b-step-card p {
    font-size: 1rem;
    color: var(--market-text-secondary);
    line-height: 1.6;
}

.b2b-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.b2b-stat-card {
    text-align: center;
    padding: 2rem 1rem;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--market-border);
}

.b2b-stat-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.b2b-stat-icon i {
    font-size: 1.5rem;
    color: #10b981;
}

.b2b-stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--market-text);
    display: block;
    margin-bottom: 0.5rem;
}

.b2b-stat-label {
    font-size: 1rem;
    color: var(--market-text-secondary);
}

.b2b-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.b2b-feature-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--market-border);
}

.b2b-feature-card i {
    font-size: 3rem;
    color: var(--market-primary);
    margin-bottom: 1rem;
}

.b2b-feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--market-text);
    margin-bottom: 0.75rem;
}

.b2b-feature-card p {
    font-size: 1rem;
    color: var(--market-text-secondary);
    line-height: 1.6;
}

.b2b-seller-growth-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #e2e8f0;
}

.b2b-seller-growth-section .b2b-section-title {
    color: #ffffff;
    text-align: left;
    font-size: 2rem;
}

.b2b-seller-growth-section .b2b-section-subtitle {
    color: #cbd5e1;
    text-align: left;
    font-size: 1.02rem;
}

.b2b-seller-growth-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.55rem;
}

.b2b-seller-growth-list li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.96rem;
    color: #e2e8f0;
}

.b2b-seller-growth-list i {
    color: #22c55e;
}

.b2b-seller-growth-btn {
    min-width: 220px;
}

.b2b-cta-dual {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 4rem 0 5rem;
}

.b2b-cta-dual-col {
    border-radius: 18px;
    padding: 2rem 1.7rem;
    border: 1px solid #dbe3ee;
}

.b2b-cta-dual-col h2 {
    font-size: 1.55rem;
    font-weight: 700;
    margin-bottom: 0.65rem;
}

.b2b-cta-dual-col p {
    font-size: 0.97rem;
    margin-bottom: 1.2rem;
}

.b2b-cta-dual-col-light {
    background: #f8fafc;
}

.b2b-cta-dual-col-dark {
    background: #0f172a;
    border-color: #0f172a;
    color: #e2e8f0;
}

.b2b-cta-dual-col-dark p {
    color: #cbd5e1;
}

.b2b-cta-banner {
    background: linear-gradient(135deg, var(--market-primary) 0%, #1d4ed8 100%);
    border-radius: 24px;
    padding: 4rem 3rem;
    text-align: center;
    color: white;
    margin: 5rem 0;
}

.b2b-cta-banner h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.b2b-cta-banner p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.b2b-cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.b2b-btn-light {
    background: white;
    color: var(--market-primary);
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.b2b-btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    color: var(--market-primary);
}

.b2b-btn-light-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.b2b-btn-light-outline:hover {
    background: white;
    color: var(--market-primary);
}

.b2b-empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--market-text-secondary);
    background: white;
    border-radius: 12px;
    border: 2px dashed var(--market-border);
}

@media (max-width: 991px) {
    .b2b-home-hero {
        padding: 1.9rem 0 2.15rem;
    }

    .b2b-hero-title {
        font-size: 2.25rem;
    }
    
    .b2b-section-title {
        font-size: 2rem;
    }
    
    .b2b-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .b2b-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .b2b-cta-dual {
        grid-template-columns: 1fr;
        margin: 3rem 0 4rem;
    }

    .b2b-seller-growth-section .b2b-section-title,
    .b2b-seller-growth-section .b2b-section-subtitle {
        text-align: center;
    }

    .b2b-seller-growth-list {
        max-width: 460px;
        margin: 0 auto;
    }

    .b2b-seller-growth-btn {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .b2b-home-hero {
        padding: 1.65rem 0 1.9rem;
    }
    
    .b2b-hero-title {
        font-size: 2rem;
    }
    
    .b2b-hero-subtitle {
        font-size: 0.938rem;
    }
    
    .b2b-product-grid {
        grid-template-columns: 1fr;
    }
    
    .b2b-category-grid {
        grid-template-columns: 1fr;
    }
    
    .b2b-steps-grid {
        grid-template-columns: 1fr;
    }
    
    .b2b-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .b2b-cta-banner {
        padding: 2rem 1.5rem;
    }
    
    .b2b-cta-banner h2 {
        font-size: 1.75rem;
    }
    
    .b2b-cta-banner p {
        font-size: 1rem;
    }
}

/* ============================================
   SELLERS PAGE
   ============================================ */

.b2b-page-hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
    padding: 4rem 0 3rem;
    margin-bottom: 3rem;
}

.b2b-hero-content {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.b2b-page-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--b2b-text);
    margin-bottom: 1rem;
}

.b2b-hero-desc {
    font-size: 1.125rem;
    color: var(--b2b-text-light);
    margin-bottom: 2rem;
}

.b2b-hero-stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
}

.b2b-hero-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.b2b-hero-stat strong {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--b2b-primary);
}

.b2b-hero-stat span {
    font-size: 0.875rem;
    color: var(--b2b-text-light);
}

.b2b-sellers-section {
    padding: 3rem 0 4rem;
}

.b2b-sidebar {
    position: sticky;
    top: 100px;
}

.b2b-sidebar-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--b2b-shadow);
}

.b2b-sidebar-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--b2b-text);
    margin-bottom: 1rem;
}

.b2b-category-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.b2b-category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border-radius: 8px;
    color: var(--b2b-text);
    transition: all 0.2s;
}

.b2b-category-item:hover {
    background: rgba(37, 99, 235, 0.06);
    color: var(--b2b-primary);
}

.b2b-category-count {
    font-size: 0.75rem;
    color: var(--b2b-text-light);
    background: var(--b2b-bg);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.b2b-info-card {
    text-align: center;
    padding: 1rem 0;
}

.b2b-info-card i {
    font-size: 2.5rem;
    color: var(--b2b-primary);
    margin-bottom: 1rem;
}

.b2b-info-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--b2b-text);
    margin-bottom: 0.5rem;
}

.b2b-info-card p {
    font-size: 0.875rem;
    color: var(--b2b-text-light);
    margin: 0;
}

.b2b-sellers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.b2b-seller-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--b2b-shadow);
    transition: all 0.2s;
}

.b2b-seller-card:hover {
    box-shadow: var(--market-shadow-hover);
    transform: translateY(-4px);
}

.b2b-seller-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 140px;
}

.b2b-seller-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: white;
    border-radius: 12px;
    padding: 0.5rem;
}

.b2b-seller-logo-placeholder {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--b2b-primary);
    font-size: 2rem;
}

.b2b-seller-body {
    padding: 1.5rem;
}

.b2b-seller-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--b2b-text);
    margin-bottom: 0.5rem;
}

.b2b-seller-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--b2b-text-light);
    margin-bottom: 1rem;
}

.b2b-seller-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--b2b-border);
}

.b2b-seller-stat {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: var(--b2b-text-light);
}

.b2b-seller-stat i {
    font-size: 1rem;
}

.b2b-seller-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--b2b-primary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.b2b-seller-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem;
    background: var(--b2b-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.938rem;
    transition: all 0.2s;
}

.b2b-seller-btn:hover {
    background: var(--market-primary-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.b2b-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
}

.b2b-empty-state i {
    font-size: 4rem;
    color: var(--b2b-text-light);
    margin-bottom: 1rem;
}

.b2b-empty-state h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--b2b-text);
    margin-bottom: 0.5rem;
}

.b2b-empty-state p {
    font-size: 1rem;
    color: var(--b2b-text-light);
    margin: 0;
}

.b2b-cta-section {
    padding: 3rem 0;
    background: var(--b2b-bg);
}

.b2b-cta-banner {
    background: linear-gradient(135deg, var(--b2b-primary) 0%, #1d4ed8 100%);
    border-radius: 16px;
    padding: 3rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.b2b-cta-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.b2b-cta-content p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.b2b-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: white;
    color: var(--b2b-primary);
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.2s;
    white-space: nowrap;
}

.b2b-cta-btn:hover {
    transform: translateX(4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

@media (max-width: 991px) {
    .b2b-sellers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .b2b-cta-banner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .b2b-page-hero h1 {
        font-size: 2rem;
    }
    
    .b2b-hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .b2b-sellers-grid {
        grid-template-columns: 1fr;
    }
    
    .b2b-sidebar {
        position: static;
        margin-bottom: 2rem;
    }
}

.market-main-col #marketGridWrapper {
    position: relative;
}

.market-product-card {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
    transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}

.market-product-card:hover {
    border-color: #cfd8e3;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.14);
    transform: translateY(-4px);
}

.market-product-media .ratio {
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%) !important;
}

.market-product-image {
    transition: transform .25s ease;
}

.market-product-card:hover .market-product-image {
    transform: scale(1.02);
}

.market-product-badge {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .01em;
    border-radius: 999px;
    padding: 6px 10px;
}

.market-product-title {
    font-weight: 600;
    font-size: 15px;
    line-height: 1.32;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
}

.market-product-title-link {
    color: #0f172a;
}

.market-product-title-link:hover {
    color: #1d4ed8;
}

.market-product-seller {
    font-size: 12px;
    color: #64748b !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.market-verified-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #2563eb;
}

.market-product-price {
    font-size: 23px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

.market-product-unit {
    font-size: 12px !important;
    color: #94a3b8 !important;
}

.market-product-price-note {
    font-size: 12px;
    margin-top: -8px;
    margin-bottom: 8px;
}

.market-product-trust-note {
    font-size: 11px;
    line-height: 1.35;
    margin-top: 2px;
}

.market-product-activity {
    font-size: 11px;
    line-height: 1.35;
}

.market-product-divider {
    border-top: 1px solid #edf1f7;
    margin: 4px 0 8px;
}

.market-product-meta {
    background: #f8fafc;
    border: 1px solid #e9eef5;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 12px;
    color: #64748b;
}

.market-product-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.market-product-meta-row:last-child {
    margin-bottom: 0;
}

.market-product-meta-row span:last-child {
    font-weight: 600;
    color: #0f172a !important;
    text-align: right;
}

.market-product-cta-wrap {
    padding-top: 8px;
    box-shadow: inset 0 10px 14px -14px rgba(15, 23, 42, 0.28);
}

.market-product-cta.btn-primary,
.market-product-card .btn-primary {
    border-radius: 10px;
    font-weight: 600;
    min-height: 40px;
    background: #2563eb;
    border-color: #2563eb;
    transition: background-color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.market-product-cta.btn-primary:hover,
.market-product-card .btn-primary:hover {
    background: #1e40af;
    border-color: #1e40af;
    transform: scale(1.02);
    box-shadow: 0 8px 18px rgba(30, 64, 175, 0.28);
}

.rfq-highlight-box {
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    border: 1px solid #e3f0ff;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 28px;
    text-align: center;
}

.rfq-highlight-box h3 {
    font-weight: 600;
    margin-bottom: 8px;
}

.rfq-highlight-box p {
    color: #6c757d;
    margin-bottom: 18px;
}

.rfq-highlight-box .btn-primary {
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
}

.market-grid > .rfq-highlight-box {
    width: 100%;
}

/* Product card density via bootstrap-like breakpoints */
.market-grid {
    display: flex !important;
    flex-wrap: wrap;
    gap: 0 !important;
    margin-left: -12px;
    margin-right: -12px;
}

.market-grid > .market-grid-col {
    width: 100%;
    padding-left: 12px;
    padding-right: 12px;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .market-grid > .market-grid-col {
        width: 50%;
    }
}

@media (min-width: 992px) {
    .market-grid > .market-grid-col {
        width: 33.333333%;
    }
}

@media (min-width: 1200px) {
    .market-grid > .market-grid-col {
        width: 25%;
    }
}

/* Products page: reduce excessive side whitespace on wide screens */
.market-products-page .tb-main-header .container-xxl,
.market-products-page .tb-nav-bar .container-xxl,
.market-products-page .market-mainbar > .container-xxl,
.market-products-page .market-topbar > .container-xxl,
.market-products-page .live-commerce-bar > .container-xxl,
.market-products-page .market-page > .container-xxl,
.market-products-page .market-footer .container-xxl {
    max-width: none !important;
    width: 100% !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

/* Products page: tighten excessive vertical gaps */
.market-products-page .tb-main-header {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}

.market-products-page .tb-nav-bar {
    top: 68px !important;
}

.market-products-page .market-page {
    padding-top: 0 !important;
}

/* Products listing visual hierarchy tuning */
.market-products-page .market-performance-info {
    font-size: 13px;
    color: var(--market-text-secondary);
    opacity: 0.78;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.market-products-page .market-performance-info i {
    color: #9ca3af;
    opacity: 0.75;
}

.market-products-page .market-toolbar {
    border: 1px solid #e8edf3;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.market-products-page .market-toolbar-title {
    font-weight: 600;
}

.market-products-page .market-toolbar-count {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 400;
}

.market-products-page .market-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border: 1px solid #e7efe9;
    border-radius: 999px;
    font-size: 11px;
    color: #6b7280;
    background: #ffffff;
    white-space: nowrap;
}

.market-products-page .market-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
    display: inline-block;
}

.market-products-page .market-view-toggle {
    border-color: #e5e7eb;
    background: #ffffff;
}

.market-products-page .market-view-btn {
    opacity: 0.7;
    color: #6b7280;
}

.market-products-page .market-view-btn i {
    font-size: 14px;
}

.market-products-page .market-view-btn:hover,
.market-products-page .market-view-btn:focus-visible,
.market-products-page .market-view-btn.is-active {
    opacity: 1;
}

.market-products-page .live-commerce-bar {
    background: #f9fafb;
    border-bottom: 1px solid #eceff3;
}

.market-products-page .live-commerce-bar-inner {
    min-height: 28px;
    gap: 14px;
    padding: 3px 0;
}

.market-products-page .live-commerce-item {
    font-size: 11px;
    color: #9ca3af;
}

.market-products-page .live-commerce-item i {
    font-size: 11px;
    color: #c0c7d1;
}

.market-products-page .live-commerce-item strong {
    color: #6b7280;
    font-weight: 500;
}

.market-products-page .market-product-card:hover {
    border-color: rgba(37, 99, 235, 0.36);
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.2);
}

.market-products-page .market-product-card:hover .market-product-cta-wrap {
    box-shadow: inset 0 14px 20px -14px rgba(37, 99, 235, 0.45);
}

.market-filter-trust {
    font-size: 12px;
    line-height: 1.4;
    margin-top: 4px;
}
