/* ==========================================================================
   TradeMaart — Enterprise B2B Marketplace & Directory Design System
   India & USA Cross-Border Industrial Trade Portal
   ========================================================================== */

:root {
    --tm-navy: #0B1F33;
    --tm-navy-dark: #071524;
    --tm-navy-light: #133352;
    --tm-blue: #1E40AF;
    --tm-blue-hover: #1D4ED8;
    --tm-teal: #0D9488;
    --tm-teal-dark: #0F766E;
    --tm-teal-light: #CCFBF1;
    --tm-accent: #2A6F7A;
    --tm-ink: #0F172A;
    --tm-ink-muted: #475569;
    --tm-ink-light: #64748B;
    --tm-slate-50: #F8FAFC;
    --tm-slate-100: #F1F5F9;
    --tm-slate-200: #E2E8F0;
    --tm-slate-300: #CBD5E1;
    --tm-slate-400: #94A3B8;
    --tm-card: #FFFFFF;
    --tm-card-border: #E2E8F0;
    --tm-verified: #16A34A;
    --tm-verified-bg: #ECFDF5;
    --tm-verified-border: #A7F3D0;
    --tm-warning: #D97706;
    --tm-warning-bg: #FFFBEB;
    --tm-radius-sm: 6px;
    --tm-radius: 10px;
    --tm-radius-lg: 14px;
    --tm-radius-xl: 18px;
    --tm-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --tm-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
    --tm-shadow-md: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
    --tm-shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
    --tm-transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.tm-body {
    margin: 0;
    color: var(--tm-ink);
    background-color: var(--tm-slate-50);
    font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --------------------------------------------------------------------------
   Layout Containers & Utilities
   -------------------------------------------------------------------------- */
.tm-wrap {
    width: min(1240px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

.tm-wrap-narrow {
    width: min(860px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

/* --------------------------------------------------------------------------
   Top Utility Bar (Enterprise B2B Trust Bar)
   -------------------------------------------------------------------------- */
.tm-topbar {
    background-color: var(--tm-navy-dark);
    color: #94A3B8;
    font-size: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tm-topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    gap: 12px;
}

.tm-topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.tm-topbar-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #E2E8F0;
    font-weight: 500;
}

.tm-topbar-badge svg {
    color: #22C55E;
}

.tm-topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.tm-topbar-link {
    color: #CBD5E1;
    text-decoration: none;
    transition: var(--tm-transition);
}

.tm-topbar-link:hover {
    color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
.tm-header {
    background: #0B1F33;
    color: #FFFFFF;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.tm-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
}

.tm-brand {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    text-decoration: none;
    flex: 0 0 auto;
}

.tm-brand img {
    display: block;
    height: 44px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

/* Navigation Links */
.tm-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tm-nav a {
    color: #E2E8F0;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: var(--tm-radius-sm);
    transition: var(--tm-transition);
    white-space: nowrap;
}

.tm-nav a:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.08);
}

.tm-nav-cta {
    background: #2A6F7A !important;
    color: #FFFFFF !important;
    padding: 8px 16px !important;
    border-radius: var(--tm-radius-sm);
    font-weight: 700 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tm-nav-cta:hover {
    background: #235c65 !important;
    transform: translateY(-1px);
}

/* Market Toggle */
.tm-market {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 2px;
    flex-shrink: 0;
}

.tm-market a {
    color: #CBD5E1;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
    transition: var(--tm-transition);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.tm-market a:hover {
    color: #FFFFFF;
}

.tm-market a.is-active {
    background: #FFFFFF;
    color: var(--tm-navy);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Mobile Hamburger Toggle */
.tm-mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #FFFFFF;
    padding: 8px;
    cursor: pointer;
    border-radius: var(--tm-radius-sm);
}

.tm-mobile-toggle svg {
    width: 24px;
    height: 24px;
    display: block;
}

/* Mobile Drawer */
.tm-drawer {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
}

.tm-drawer.is-open {
    display: block;
}

.tm-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 31, 51, 0.65);
    backdrop-filter: blur(4px);
}

.tm-drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 85vw);
    background: #0B1F33;
    color: #FFFFFF;
    padding: 24px 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: -4px 0 25px rgba(0, 0, 0, 0.3);
}

.tm-drawer-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tm-drawer-close {
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.tm-drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tm-drawer-nav a {
    color: #E2E8F0;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    padding: 10px 12px;
    border-radius: var(--tm-radius-sm);
    transition: var(--tm-transition);
}

.tm-drawer-nav a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.tm-hero {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #FFFFFF;
    background: linear-gradient(135deg, #0B1F33 0%, #102C48 50%, #163B57 100%);
    padding: 40px 0;
}

.tm-hero-plane {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(13, 148, 136, 0.22) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(30, 64, 175, 0.25) 0%, transparent 50%),
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
    transform: scale(1.02);
    animation: tm-drift 24s ease-in-out infinite alternate;
}

@keyframes tm-drift {
    from { transform: scale(1.02) translate3d(0, 0, 0); }
    to { transform: scale(1.05) translate3d(-1%, 0.8%, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .tm-hero-plane { animation: none; }
}

.tm-hero-copy {
    position: relative;
    z-index: 2;
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.tm-brand-mark {
    font-family: "Source Serif 4", Georgia, serif;
    font-size: clamp(2.2rem, 5.5vw, 3.6rem);
    font-weight: 800;
    margin: 0 0 10px;
    letter-spacing: -0.025em;
    background: linear-gradient(180deg, #FFFFFF 20%, #E2E8F0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tm-hero h1 {
    font-size: clamp(1.4rem, 3vw, 2.1rem);
    font-weight: 700;
    margin: 0 0 12px;
    line-height: 1.25;
    letter-spacing: -0.015em;
    color: #FFFFFF;
}

.tm-hero-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    color: #CBD5E1;
    margin: 0 auto 24px;
    max-width: 640px;
}

/* Hero Search Box */
.tm-search {
    display: flex;
    gap: 8px;
    background: #FFFFFF;
    padding: 6px;
    border-radius: var(--tm-radius);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28), 0 4px 10px rgba(0, 0, 0, 0.12);
    max-width: 720px;
    margin: 0 auto 20px;
}

.tm-search-input-wrap {
    flex: 1 1 280px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
}

.tm-search-input-wrap svg {
    color: var(--tm-ink-light);
    flex-shrink: 0;
}

.tm-search input {
    width: 100%;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 15px;
    color: var(--tm-ink);
    background: transparent;
    padding: 10px 0;
}

.tm-search input::placeholder {
    color: #94A3B8;
}

.tm-search button,
.tm-btn {
    border: none;
    border-radius: var(--tm-radius-sm);
    padding: 12px 24px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--tm-transition);
    white-space: nowrap;
}

.tm-search button {
    background: #0D9488;
    color: #FFFFFF;
}

.tm-search button:hover {
    background: #0F766E;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.35);
}

/* Button Variants */
.tm-btn-primary {
    background: #2A6F7A;
    color: #FFFFFF !important;
}

.tm-btn-primary:hover {
    background: #215962;
    box-shadow: 0 4px 12px rgba(42, 111, 122, 0.35);
}

.tm-btn-teal {
    background: #0D9488;
    color: #FFFFFF !important;
}

.tm-btn-teal:hover {
    background: #0F766E;
}

.tm-btn-ghost {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(4px);
}

.tm-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #FFFFFF;
}

.tm-btn-outline {
    background: #FFFFFF;
    color: var(--tm-navy) !important;
    border: 1px solid var(--tm-slate-300);
}

.tm-btn-outline:hover {
    background: var(--tm-slate-100);
    border-color: var(--tm-slate-400);
}

.tm-btn-sm {
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 600;
}

.tm-btn-call {
    background: #F8FAFC;
    color: var(--tm-ink) !important;
    border: 1px solid var(--tm-slate-300);
}

.tm-btn-call:hover {
    background: #F1F5F9;
    border-color: var(--tm-navy);
}

.tm-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
}

/* Popular Search Pills */
.tm-hero-tags {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
    font-size: 13px;
    color: #CBD5E1;
}

.tm-hero-tags strong {
    color: #FFFFFF;
    font-weight: 600;
}

.tm-hero-tags a {
    color: #E2E8F0;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    transition: var(--tm-transition);
}

.tm-hero-tags a:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   Trust & Metrics Strip
   -------------------------------------------------------------------------- */
.tm-trust-strip {
    background: #FFFFFF;
    border-bottom: 1px solid var(--tm-slate-200);
    padding: 20px 0;
    box-shadow: var(--tm-shadow-sm);
}

.tm-trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    align-items: center;
}

.tm-trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.tm-trust-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--tm-radius);
    background: var(--tm-slate-100);
    color: var(--tm-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tm-trust-icon svg {
    width: 22px;
    height: 22px;
}

.tm-trust-content h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--tm-navy);
}

.tm-trust-content p {
    margin: 2px 0 0;
    font-size: 12px;
    color: var(--tm-ink-muted);
}

/* --------------------------------------------------------------------------
   Section Layouts
   -------------------------------------------------------------------------- */
.tm-section {
    padding: 56px 0;
}

.tm-section-alt {
    background: #FFFFFF;
    border-top: 1px solid var(--tm-slate-200);
    border-bottom: 1px solid var(--tm-slate-200);
}

.tm-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 28px;
    gap: 16px;
    flex-wrap: wrap;
}

.tm-section-title-wrap h2,
.tm-section h1,
.tm-section h2 {
    font-family: "Source Serif 4", Georgia, serif;
    font-size: clamp(1.4rem, 2.5vw, 1.85rem);
    font-weight: 700;
    color: var(--tm-navy);
    margin: 0 0 6px;
    letter-spacing: -0.015em;
}

.tm-section-subtitle {
    margin: 0;
    color: var(--tm-ink-muted);
    font-size: 14px;
}

.tm-section-link {
    color: var(--tm-teal);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    transition: var(--tm-transition);
}

.tm-section-link:hover {
    color: var(--tm-teal-dark);
    gap: 6px;
}

/* --------------------------------------------------------------------------
   Supplier Cards Grid & Component
   -------------------------------------------------------------------------- */
.tm-biz,
.tm-biz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.tm-biz-card {
    background: var(--tm-card);
    border: 1px solid var(--tm-card-border);
    border-radius: var(--tm-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--tm-shadow-sm);
    transition: var(--tm-transition);
    position: relative;
}

.tm-biz-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--tm-shadow-md);
    border-color: var(--tm-slate-300);
}

.tm-card-media {
    display: block;
    aspect-ratio: 16 / 10;
    position: relative;
    overflow: hidden;
    background: var(--tm-slate-50);
}

.tm-card-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    padding: 12px;
    box-sizing: border-box;
    background: #fff;
}

.tm-biz-card:hover .tm-card-media img {
    transform: none;
}

.tm-card-media.is-logo {
    background: var(--tm-slate-50);
}

.tm-card-media.is-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 16px;
    box-sizing: border-box;
    background: var(--tm-slate-50);
}

.tm-biz-card:hover .tm-card-media.is-logo img {
    transform: none;
}

.tm-card-media-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #133352 0%, #1A4554 100%);
    color: rgba(255, 255, 255, 0.4);
}

/* Badges on Card Media */
.tm-card-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    z-index: 2;
}

.tm-badge-verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(16, 185, 129, 0.95);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.tm-badge-country {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(11, 31, 51, 0.85);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    backdrop-filter: blur(4px);
}

/* Card Body */
.tm-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: 8px;
}

.tm-card-category {
    font-size: 12px;
    font-weight: 600;
    color: var(--tm-teal);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tm-biz-card h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--tm-navy);
}

.tm-biz-card h3 a {
    color: inherit;
    text-decoration: none;
    transition: var(--tm-transition);
}

.tm-biz-card h3 a:hover {
    color: var(--tm-teal);
}

.tm-meta {
    color: var(--tm-ink-muted);
    font-size: 13px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.tm-meta svg {
    color: var(--tm-ink-light);
    flex-shrink: 0;
}

/* Card Actions */
.tm-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--tm-slate-100);
}

.tm-actions .tm-btn {
    flex: 1 1 auto;
    padding: 9px 12px;
    font-size: 13px;
}

/* --------------------------------------------------------------------------
   Product Cards & Showcase
   -------------------------------------------------------------------------- */
.tm-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.tm-product-card {
    background: #FFFFFF;
    border: 1px solid var(--tm-slate-200);
    border-radius: var(--tm-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--tm-shadow-sm);
    transition: var(--tm-transition);
}

.tm-product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--tm-shadow-md);
    border-color: var(--tm-slate-300);
}

.tm-product-thumb {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--tm-slate-100);
    position: relative;
}

.tm-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.tm-product-card:hover .tm-product-thumb img {
    transform: scale(1.05);
}

.tm-product-body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: 6px;
}

.tm-product-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--tm-navy);
    line-height: 1.3;
}

.tm-product-title a {
    color: inherit;
    text-decoration: none;
}

.tm-product-title a:hover {
    color: var(--tm-teal);
}

.tm-product-supplier {
    font-size: 13px;
    color: var(--tm-ink-muted);
    margin: 0;
}

.tm-product-supplier a {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
}

.tm-product-supplier a:hover {
    color: var(--tm-navy);
}

.tm-product-footer {
    padding: 12px 16px;
    background: var(--tm-slate-50);
    border-top: 1px solid var(--tm-slate-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.tm-product-unit {
    font-size: 12px;
    font-weight: 600;
    color: var(--tm-ink-light);
    background: var(--tm-slate-200);
    padding: 2px 8px;
    border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Category Showcase Grid
   -------------------------------------------------------------------------- */
.tm-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.tm-cat-card {
    background: #FFFFFF;
    border: 1px solid var(--tm-slate-200);
    border-radius: var(--tm-radius);
    padding: 18px 16px;
    text-decoration: none;
    color: var(--tm-ink);
    display: flex;
    align-items: center;
    gap: 14px;
    transition: var(--tm-transition);
    box-shadow: var(--tm-shadow-sm);
}

.tm-cat-card:hover {
    transform: translateY(-2px);
    border-color: var(--tm-teal);
    box-shadow: var(--tm-shadow);
    color: var(--tm-teal-dark);
}

.tm-cat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--tm-radius-sm);
    background: var(--tm-teal-light);
    color: var(--tm-teal-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.tm-cat-icon svg {
    width: 22px;
    height: 22px;
}

.tm-cat-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #fff;
    border-radius: inherit;
    display: block;
}

.tm-cat-name {
    font-weight: 700;
    font-size: 14px;
    line-height: 1.3;
}

/* Chips / Region Pills */
.tm-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tm-chips a,
.tm-chips span {
    background: #FFFFFF;
    border: 1px solid var(--tm-slate-300);
    border-radius: 999px;
    padding: 8px 16px;
    text-decoration: none;
    color: var(--tm-navy);
    font-weight: 600;
    font-size: 13px;
    transition: var(--tm-transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tm-chips a:hover {
    background: var(--tm-navy);
    color: #FFFFFF;
    border-color: var(--tm-navy);
    transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Instant RFQ / Requirement Banner
   -------------------------------------------------------------------------- */
.tm-rfq-banner {
    background: linear-gradient(135deg, #0B1F33 0%, #173854 60%, #1E4D63 100%);
    border-radius: var(--tm-radius-lg);
    color: #FFFFFF;
    padding: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--tm-shadow-lg);
}

.tm-rfq-banner::after {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

.tm-rfq-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 36px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.tm-rfq-text h2 {
    color: #FFFFFF !important;
    font-size: clamp(1.5rem, 2.5vw, 2.2rem) !important;
    margin: 0 0 10px !important;
}

.tm-rfq-text p {
    color: #CBD5E1;
    font-size: 15px;
    margin: 0 0 20px;
    max-width: 480px;
}

.tm-rfq-perks {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tm-rfq-perk {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #E2E8F0;
}

.tm-rfq-perk svg {
    color: #22C55E;
    flex-shrink: 0;
}

.tm-rfq-card {
    background: #FFFFFF;
    border-radius: var(--tm-radius);
    padding: 24px;
    color: var(--tm-ink);
    box-shadow: var(--tm-shadow-lg);
}

.tm-rfq-card h3 {
    margin: 0 0 6px;
    font-size: 18px;
    color: var(--tm-navy);
}

.tm-rfq-card p {
    margin: 0 0 16px;
    font-size: 13px;
    color: var(--tm-ink-muted);
}

/* --------------------------------------------------------------------------
   How TradeMaart Works (3 Steps)
   -------------------------------------------------------------------------- */
.tm-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 12px;
}

.tm-step-card {
    background: #FFFFFF;
    border: 1px solid var(--tm-slate-200);
    border-radius: var(--tm-radius);
    padding: 28px 24px;
    position: relative;
    box-shadow: var(--tm-shadow-sm);
    transition: var(--tm-transition);
}

.tm-step-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--tm-shadow-md);
}

.tm-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: var(--tm-teal);
    color: #FFFFFF;
    font-weight: 800;
    font-size: 15px;
    margin-bottom: 16px;
}

.tm-step-card h3 {
    margin: 0 0 8px;
    font-size: 17px;
    color: var(--tm-navy);
}

.tm-step-card p {
    margin: 0;
    font-size: 14px;
    color: var(--tm-ink-muted);
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Forms & Lead Generation
   -------------------------------------------------------------------------- */
.tm-form-wrap {
    max-width: 620px;
    margin: 0 auto;
    background: #FFFFFF;
    border: 1px solid var(--tm-slate-200);
    border-radius: var(--tm-radius-lg);
    padding: 36px;
    box-shadow: var(--tm-shadow-md);
}

.tm-form-wrap h1 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 26px;
    color: var(--tm-navy);
}

.tm-form-wrap > p {
    color: var(--tm-ink-muted);
    margin: 0 0 24px;
}

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

.tm-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.tm-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-weight: 600;
    font-size: 13px;
    color: var(--tm-navy);
}

.tm-form input,
.tm-form textarea,
.tm-form select {
    font-family: inherit;
    font-size: 14px;
    padding: 11px 14px;
    border: 1px solid var(--tm-slate-300);
    border-radius: var(--tm-radius-sm);
    color: var(--tm-ink);
    background: #FFFFFF;
    outline: none;
    transition: var(--tm-transition);
}

.tm-form input:focus,
.tm-form textarea:focus,
.tm-form select:focus {
    border-color: var(--tm-teal);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.tm-captcha {
    max-width: 180px;
    border-radius: var(--tm-radius-sm);
    border: 1px solid var(--tm-slate-300);
}

.tm-flash {
    background: var(--tm-verified-bg);
    border: 1px solid var(--tm-verified-border);
    color: #065F46;
    padding: 12px 16px;
    border-radius: var(--tm-radius-sm);
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tm-flash-error {
    background: #FEF2F2;
    border-color: #FECACA;
    color: #991B1B;
}

/* --------------------------------------------------------------------------
   Supplier / Company Profile Page
   -------------------------------------------------------------------------- */
.tm-supplier-header {
    background: #FFFFFF;
    border: 1px solid var(--tm-slate-200);
    border-radius: var(--tm-radius-lg);
    padding: 32px;
    box-shadow: var(--tm-shadow-sm);
    margin-bottom: 28px;
}

.tm-supplier-head-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.tm-supplier-media {
    flex: 0 0 112px;
    width: 112px;
    height: 112px;
    border-radius: var(--tm-radius);
    overflow: hidden;
    background: var(--tm-slate-100);
    border: 1px solid var(--tm-slate-200);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tm-supplier-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tm-supplier-media.is-logo img {
    object-fit: contain;
    padding: 10px;
    background: #fff;
}

.tm-supplier-media .tm-card-media-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--tm-ink-light);
}

.tm-supplier-head-left {
    flex: 1 1 220px;
    min-width: 0;
}

.tm-supplier-head-left h1 {
    margin: 0 0 8px;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--tm-navy);
}

.tm-supplier-badges {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.tm-supplier-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tm-supplier-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 28px;
}

.tm-supplier-card {
    background: #FFFFFF;
    border: 1px solid var(--tm-slate-200);
    border-radius: var(--tm-radius);
    padding: 24px;
    box-shadow: var(--tm-shadow-sm);
    margin-bottom: 24px;
}

.tm-supplier-card h2,
.tm-supplier-card h3 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 18px;
    color: var(--tm-navy);
}

.tm-info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.tm-info-table tr {
    border-bottom: 1px solid var(--tm-slate-100);
}

.tm-info-table tr:last-child {
    border-bottom: none;
}

.tm-info-table th {
    text-align: left;
    padding: 10px 0;
    color: var(--tm-ink-muted);
    font-weight: 500;
    width: 38%;
}

.tm-info-table td {
    padding: 10px 0;
    color: var(--tm-navy);
    font-weight: 600;
}

/* Product list inside supplier page */
.tm-product-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

.tm-product-list li {
    background: #FFFFFF;
    border: 1px solid var(--tm-slate-200);
    border-radius: var(--tm-radius-sm);
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
    transition: var(--tm-transition);
}

.tm-product-list .tm-product-thumb {
    margin: -14px -14px 4px;
    border-radius: var(--tm-radius-sm) var(--tm-radius-sm) 0 0;
}

.tm-product-list .tm-product-thumb .tm-card-media-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 120px;
    color: var(--tm-ink-light);
    background: var(--tm-slate-100);
}

.tm-product-list li:hover {
    border-color: var(--tm-teal);
    box-shadow: var(--tm-shadow-sm);
}

.tm-product-list a {
    color: var(--tm-navy);
    font-weight: 700;
    text-decoration: none;
    font-size: 15px;
}

.tm-product-list a:hover {
    color: var(--tm-teal);
}

.tm-product-list span {
    font-size: 12px;
    color: var(--tm-ink-light);
}

/* --------------------------------------------------------------------------
   Product Detail Page
   -------------------------------------------------------------------------- */
.tm-prod-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    background: #FFFFFF;
    border: 1px solid var(--tm-slate-200);
    border-radius: var(--tm-radius-lg);
    padding: 32px;
    box-shadow: var(--tm-shadow-sm);
    margin-bottom: 40px;
}

.tm-prod-media-box {
    border-radius: var(--tm-radius);
    overflow: hidden;
    background: var(--tm-slate-100);
    border: 1px solid var(--tm-slate-200);
    aspect-ratio: 4 / 3;
}

.tm-prod-media-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tm-prod-info h1 {
    margin: 0 0 10px;
    font-size: clamp(1.5rem, 2.8vw, 2.1rem);
    color: var(--tm-navy);
}

.tm-prod-supplier-box {
    background: var(--tm-slate-50);
    border: 1px solid var(--tm-slate-200);
    border-radius: var(--tm-radius);
    padding: 16px;
    margin: 20px 0;
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */
.tm-pager {
    margin-top: 40px;
}

.tm-pager-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.tm-pager-meta {
    font-size: 14px;
    color: var(--tm-ink-muted);
    margin: 0;
}

.tm-pager-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    justify-content: center;
}

.tm-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: var(--tm-radius-sm);
    border: 1px solid var(--tm-slate-300);
    background: #FFFFFF;
    color: var(--tm-navy);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    box-sizing: border-box;
    cursor: pointer;
    transition: var(--tm-transition);
}

.tm-page-btn:hover {
    border-color: var(--tm-teal);
    color: var(--tm-teal);
    background: var(--tm-slate-50);
}

.tm-page-btn.is-current {
    background: var(--tm-navy);
    border-color: var(--tm-navy);
    color: #FFFFFF;
}

.tm-page-btn.is-disabled {
    color: var(--tm-slate-400);
    cursor: default;
    border-color: var(--tm-slate-200);
    background: var(--tm-slate-100);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.tm-footer {
    background: #0B1F33;
    color: #CBD5E1;
    padding: 56px 0 24px;
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tm-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 40px;
}

.tm-footer-brand img {
    height: 44px;
    width: auto;
    object-fit: contain;
    margin-bottom: 16px;
}

.tm-footer-about {
    font-size: 14px;
    line-height: 1.6;
    color: #94A3B8;
    max-width: 320px;
}

.tm-footer h4 {
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 16px;
    letter-spacing: 0.02em;
}

.tm-footer a {
    color: #CBD5E1;
    text-decoration: none;
    display: block;
    margin: 8px 0;
    font-size: 14px;
    transition: var(--tm-transition);
}

.tm-footer a:hover {
    color: #FFFFFF;
    transform: translateX(2px);
}

.tm-footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.tm-copy {
    margin: 0;
    font-size: 13px;
    color: #64748B;
}

/* --------------------------------------------------------------------------
   Embed Mode & Fancybox
   -------------------------------------------------------------------------- */
body.tm-embed {
    background: #FFFFFF;
    min-height: 100%;
}

body.tm-embed main {
    min-height: auto;
}

.tm-section-embed {
    padding: 20px 0 30px;
}

.tm-section-embed .tm-wrap {
    width: min(600px, calc(100% - 24px));
}

.tm-section-embed .tm-form-wrap {
    border: none;
    padding: 0;
    box-shadow: none;
}

.fancybox__container {
    --fancybox-bg: rgba(11, 31, 51, 0.82);
    backdrop-filter: blur(4px);
}

.fancybox__content {
    padding: 0;
    border-radius: var(--tm-radius);
    overflow: hidden;
}

.tm-empty {
    color: var(--tm-ink-muted);
    font-style: italic;
    padding: 20px 0;
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .tm-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .tm-supplier-grid {
        grid-template-columns: 1fr;
    }
    .tm-prod-detail-grid {
        grid-template-columns: 1fr;
    }
    .tm-rfq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .tm-nav {
        display: none;
    }
    .tm-mobile-toggle {
        display: block;
    }
    .tm-form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .tm-topbar {
        display: none;
    }
    .tm-header-inner {
        padding: 8px 0;
    }
    .tm-footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .tm-hero {
        min-height: auto;
        padding: 36px 0;
    }
    .tm-search {
        flex-direction: column;
        padding: 8px;
    }
    .tm-search button {
        width: 100%;
    }
    .tm-form-wrap {
        padding: 24px 18px;
    }
}
