/* =========================================================================
   Homepage 2 (Creative) — [home2-*] shortcode blocks
   Scoped entirely under `.toptan-home2`; safe to load globally. Colours come
   from the theme's admin-editable palette (--fbl-* / theme options) so brand
   changes propagate; hex fallbacks match the original design mockups.
   ========================================================================= */

.toptan-home2 {
    --th2-bg: var(--fbl-bg, #F6F8F7);
    --th2-surface: var(--fbl-surface, #ffffff);
    --th2-ink: var(--fbl-ink, #1A2321);
    --th2-ink-2: var(--fbl-ink-2, #4C5A56);
    --th2-muted: var(--fbl-ink-3, #7D8A86);
    --th2-border: var(--fbl-border, #E2E8E6);
    --th2-border-strong: var(--fbl-border-strong, #C9D3D0);
    --th2-brand: var(--fbl-brand, #115E59);
    --th2-brand-deep: var(--fbl-brand-deep, #0D4A46);
    --th2-teal-light: #7FD1C4;
    --th2-green: var(--fbl-success, #2E6B34);
    --th2-green-bg: color-mix(in srgb, var(--th2-green) 12%, #fff);
    --th2-gold: var(--fbl-amber, #8A6A1F);
    --th2-gold-hover: color-mix(in srgb, var(--th2-gold) 84%, #000);
    --th2-gold-light: color-mix(in srgb, var(--th2-gold) 55%, #fff);
    --th2-dark-1: color-mix(in srgb, var(--th2-brand) 12%, #0a1412);
    --th2-dark-2: color-mix(in srgb, var(--th2-brand) 46%, #0a1412);
    --th2-footer: var(--fbl-footer-bg, #12201E);
    --th2-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', monospace;
    --th2-container: 1280px;

    background: var(--th2-bg);
    color: var(--th2-ink);
    font-family: var(--fbl-font, 'IBM Plex Sans', sans-serif);
}

.toptan-home2 a { text-decoration: none; }
.toptan-home2 *, .toptan-home2 *::before, .toptan-home2 *::after { box-sizing: border-box; }

/* ---- Layout primitives -------------------------------------------------- */
.toptan-home2 .th2-container {
    max-width: var(--th2-container);
    margin: 0 auto;
    padding-left: 40px;
    padding-right: 40px;
}
.toptan-home2 .th2-flag { display: inline-block; width: 20px; height: 13px; border-radius: 2px; flex: none; }
.toptan-home2 .th2-section { padding-top: 32px; padding-bottom: 32px; }

.toptan-home2 .th2-section-head {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    margin-bottom: 22px;
}
.toptan-home2 .th2-section-head--center { justify-content: center; text-align: center; margin-bottom: 30px; }
.toptan-home2 .th2-h2 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
    color: var(--th2-ink);
    line-height: 1.15;
}
.toptan-home2 .th2-section-sub { font-size: 14px; color: var(--th2-muted); margin: 6px 0 0; }
.toptan-home2 .th2-link {
    margin-left: auto;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--th2-brand);
    white-space: nowrap;
}
.toptan-home2 .th2-link:hover { color: var(--th2-brand-deep); }
.toptan-home2 .th2-accent { color: var(--th2-teal-light); }

/* ---- Badges ------------------------------------------------------------- */
.toptan-home2 .th2-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1;
}
.toptan-home2 .th2-badge--light {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.20);
    color: #CDE6E2;
}
.toptan-home2 .th2-badge--soft { background: color-mix(in srgb, var(--th2-brand) 8%, #fff); color: var(--th2-brand); }
.toptan-home2 .th2-badge--live { background: var(--th2-green-bg); color: var(--th2-green); }
.toptan-home2 .th2-badge--gold {
    background: color-mix(in srgb, var(--th2-gold) 20%, transparent);
    color: var(--th2-gold-light);
    border: 1px solid color-mix(in srgb, var(--th2-gold) 35%, transparent);
}
.toptan-home2 .th2-live-dot {
    width: 8px; height: 8px; border-radius: 999px; background: var(--th2-green);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--th2-green) 20%, transparent);
}

/* ---- Buttons ------------------------------------------------------------ */
.toptan-home2 .th2-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    padding: 13px 24px;
    font-size: 14.5px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
    line-height: 1.2;
}
.toptan-home2 .th2-btn--primary { background: var(--th2-brand); color: #fff; }
.toptan-home2 .th2-btn--primary:hover { background: var(--th2-brand-deep); color: #fff; }
.toptan-home2 .th2-btn--outline { background: var(--th2-surface); color: var(--th2-ink); border-color: var(--th2-border-strong); }
.toptan-home2 .th2-btn--outline:hover { border-color: var(--th2-brand); color: var(--th2-brand); }
.toptan-home2 .th2-btn--ghost { background: var(--th2-surface); color: var(--th2-brand); border: 1.5px solid var(--th2-brand); }
.toptan-home2 .th2-btn--ghost:hover { background: color-mix(in srgb, var(--th2-brand) 8%, #fff); }
.toptan-home2 .th2-btn--gold { background: var(--th2-gold); color: #fff; }
.toptan-home2 .th2-btn--gold:hover { background: var(--th2-gold-hover); color: #fff; }

/* ---- Decorative gradients (avatar / cover placeholders) ----------------- */
.toptan-home2 .th2-grad--0 { background-image: linear-gradient(135deg, #123A35, #1c5a52); }
.toptan-home2 .th2-grad--1 { background-image: linear-gradient(135deg, #4a3b2f, #6b5642); }
.toptan-home2 .th2-grad--2 { background-image: linear-gradient(135deg, #2b3a52, #42597e); }
.toptan-home2 .th2-grad--3 { background-image: linear-gradient(135deg, #3a2f2a, #5c4a42); }

/* =========================================================================
   HERO
   ========================================================================= */
.toptan-home2 .th2-hero { position: relative; overflow: hidden; }
.toptan-home2 .th2-hero-bg {
    position: absolute; inset: 0; z-index: 0;
    background:
        repeating-linear-gradient(45deg, rgba(255,255,255,0.03), rgba(255,255,255,0.03) 18px, transparent 18px, transparent 36px),
        linear-gradient(150deg, var(--th2-dark-1) 0%, var(--th2-dark-2) 55%, var(--th2-brand) 100%);
}
.toptan-home2 .th2-hero-inner {
    position: relative; z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
    padding-top: 64px;
    padding-bottom: 72px;
}
.toptan-home2 .th2-hero-title {
    font-size: 52px;
    line-height: 1.08;
    font-weight: 700;
    color: #fff;
    margin: 20px 0 0;
    letter-spacing: -0.025em;
    text-wrap: balance;
}
.toptan-home2 .th2-hero-sub {
    font-size: 16.5px;
    line-height: 1.6;
    color: #B7C9C5;
    margin: 20px 0 0;
    max-width: 520px;
}
.toptan-home2 .th2-hero-search {
    display: flex;
    background: #fff;
    border-radius: 12px;
    padding: 7px;
    margin-top: 28px;
    max-width: 540px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}
.toptan-home2 .th2-hero-search input {
    flex: 1; min-width: 0; border: none; outline: none;
    font-size: 15px; font-family: inherit; padding: 12px 16px; background: transparent; color: var(--th2-ink);
}
.toptan-home2 .th2-hero-search button {
    background: var(--th2-brand); color: #fff; border: none; border-radius: 8px;
    padding: 0 26px; font-size: 15px; font-weight: 600; font-family: inherit; cursor: pointer;
}
.toptan-home2 .th2-hero-search button:hover { background: var(--th2-brand-deep); }
.toptan-home2 .th2-hero-trending {
    display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; align-items: center;
}
.toptan-home2 .th2-hero-trending-label { font-size: 12.5px; color: #8FB0AB; }
.toptan-home2 .th2-chip {
    background: rgba(255,255,255,0.09);
    border: 1px solid rgba(255,255,255,0.16);
    color: #DCEAE8;
    border-radius: 999px;
    padding: 5px 13px;
    font-size: 12px;
    font-weight: 500;
}
.toptan-home2 .th2-chip:hover { background: rgba(255,255,255,0.16); color: #fff; }
.toptan-home2 .th2-hero-stats { display: flex; gap: 26px; margin-top: 32px; }
.toptan-home2 .th2-hero-stat + .th2-hero-stat { border-left: 1px solid rgba(255,255,255,0.14); padding-left: 26px; }
.toptan-home2 .th2-hero-stat-num { font-size: 24px; font-weight: 700; color: #fff; font-family: var(--th2-mono); }
.toptan-home2 .th2-hero-stat-label { font-size: 12px; color: #8FB0AB; margin-top: 2px; }

/* floating product cluster */
.toptan-home2 .th2-hero-cluster { position: relative; height: 420px; }
.toptan-home2 .th2-float {
    position: absolute;
    width: 220px;
    background: #fff;
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.30);
    color: var(--th2-ink);
    animation: th2FloatY 6s ease-in-out infinite;
}
.toptan-home2 .th2-float--0 { top: 0; right: 20px; z-index: 3; }
.toptan-home2 .th2-float--1 { top: 150px; left: 0; width: 210px; animation-delay: -3s; z-index: 2; }
.toptan-home2 .th2-float--2 { bottom: 0; right: 55px; width: 210px; animation: th2FloatY 7s ease-in-out infinite; animation-delay: -1.5s; z-index: 1; }
.toptan-home2 .th2-float-media { display: block; height: 128px; border-radius: 10px; overflow: hidden; background: #eef2f1; }
.toptan-home2 .th2-float-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.toptan-home2 .th2-float-name {
    font-size: 13px; font-weight: 600; margin-top: 10px;
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.toptan-home2 .th2-float-meta { display: flex; align-items: center; gap: 6px; margin-top: 5px; flex-wrap: wrap; }
.toptan-home2 .th2-float-price { font-size: 15px; font-weight: 700; color: var(--th2-brand); font-family: var(--th2-mono); }
.toptan-home2 .th2-float-price .sale-price, .toptan-home2 .th2-float-price del { font-family: var(--th2-mono); }
.toptan-home2 .th2-float-moq { font-size: 11px; color: var(--th2-muted); }
.toptan-home2 .th2-float-verified {
    display: inline-flex; align-items: center; gap: 4px; margin-top: 8px;
    background: var(--th2-green-bg); color: var(--th2-green);
    border-radius: 5px; padding: 3px 8px; font-size: 10px; font-weight: 600;
}

/* =========================================================================
   CATEGORY MOSAIC
   ========================================================================= */
.toptan-home2 .th2-cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 150px;
    gap: 14px;
}
.toptan-home2 .th2-cat {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    color: #fff;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    transition: transform .15s ease;
}
.toptan-home2 .th2-cat--wide { grid-column: span 2; }
.toptan-home2 .th2-cat:hover { transform: translateY(-3px); }
.toptan-home2 .th2-cat-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.toptan-home2 .th2-cat-overlay { position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(14, 31, 28, 0.82)); }
.toptan-home2 .th2-cat-body { position: relative; padding: 16px 18px; }
.toptan-home2 .th2-cat-icon { font-size: 22px; display: block; }
.toptan-home2 .th2-cat-name { font-size: 16px; font-weight: 700; margin-top: 6px; display: block; }
.toptan-home2 .th2-cat-count { font-size: 11.5px; color: #CDE6E2; }
/* category tile fallback backgrounds when no image is set */
.toptan-home2 .th2-cat--g0 { background-image: linear-gradient(135deg, #4a3b2f, #6b5642); }
.toptan-home2 .th2-cat--g1 { background-image: linear-gradient(135deg, #c9b79c, #e6ddd0); }
.toptan-home2 .th2-cat--g2 { background-image: linear-gradient(135deg, #2b3a52, #42597e); }
.toptan-home2 .th2-cat--g3 { background-image: linear-gradient(135deg, #20242a, #3b424b); }
.toptan-home2 .th2-cat--g4 { background-image: linear-gradient(135deg, #3a2f2a, #5c4a42); }
.toptan-home2 .th2-cat--g5 { background-image: linear-gradient(135deg, var(--th2-dark-2), var(--th2-brand)); }

/* =========================================================================
   HOW IT WORKS
   ========================================================================= */
.toptan-home2 .th2-steps-card {
    background: var(--th2-surface);
    border: 1px solid var(--th2-border);
    border-radius: 20px;
    padding: 40px 44px;
}
.toptan-home2 .th2-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.toptan-home2 .th2-step { text-align: center; padding: 0 12px; }
.toptan-home2 .th2-step-icon { position: relative; display: inline-flex; }
.toptan-home2 .th2-step-glyph {
    width: 60px; height: 60px; border-radius: 16px;
    background: color-mix(in srgb, var(--th2-brand) 8%, #fff);
    display: flex; align-items: center; justify-content: center; font-size: 26px;
}
.toptan-home2 .th2-step-n {
    position: absolute; top: -6px; right: -6px;
    width: 22px; height: 22px; border-radius: 999px;
    background: var(--th2-brand); color: #fff; font-size: 11px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--th2-mono);
}
.toptan-home2 .th2-step-title { font-size: 15px; font-weight: 600; margin-top: 14px; }
.toptan-home2 .th2-step-desc { font-size: 12.5px; color: var(--th2-muted); line-height: 1.5; margin-top: 5px; }

/* =========================================================================
   VERIFIED SUPPLIERS
   ========================================================================= */
.toptan-home2 .th2-supp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.toptan-home2 .th2-supp {
    background: var(--th2-surface);
    border: 1px solid var(--th2-border);
    border-radius: 14px;
    overflow: hidden;
    transition: box-shadow .15s ease, border-color .15s ease;
}
.toptan-home2 .th2-supp:hover { box-shadow: 0 8px 24px rgba(26, 35, 33, 0.09); border-color: color-mix(in srgb, var(--th2-brand) 25%, #fff); }
.toptan-home2 .th2-supp-cover { height: 96px; position: relative; background-size: cover; background-position: center; }
.toptan-home2 .th2-supp-cover img { width: 100%; height: 100%; object-fit: cover; }
.toptan-home2 .th2-supp-logo {
    position: absolute; left: 16px; bottom: -22px;
    width: 52px; height: 52px; border-radius: 12px;
    background: #fff; border: 1px solid var(--th2-border);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: var(--th2-brand); font-size: 15px; overflow: hidden;
}
.toptan-home2 .th2-supp-logo img { width: 100%; height: 100%; object-fit: cover; }
.toptan-home2 .th2-supp-body { padding: 30px 18px 18px; }
.toptan-home2 .th2-supp-head { display: flex; align-items: center; gap: 8px; }
.toptan-home2 .th2-supp-name {
    font-size: 15.5px; font-weight: 700; color: var(--th2-ink); min-width: 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.toptan-home2 .th2-supp-name:hover { color: var(--th2-brand); }
.toptan-home2 .th2-supp-badge {
    background: var(--th2-brand); color: #fff; border-radius: 4px;
    padding: 2px 7px; font-size: 9.5px; font-weight: 600; flex: none;
}
.toptan-home2 .th2-supp-meta { font-size: 12px; color: var(--th2-muted); margin-top: 3px; }
.toptan-home2 .th2-supp-stats { display: flex; gap: 16px; margin-top: 14px; }
.toptan-home2 .th2-supp-stat-v { font-size: 15px; font-weight: 700; font-family: var(--th2-mono); }
.toptan-home2 .th2-supp-stat-l { font-size: 10.5px; color: var(--th2-muted); }
.toptan-home2 .th2-supp-cta { width: 100%; margin-top: 15px; padding: 9px 0; font-size: 13px; }

/* =========================================================================
   STATS BAND
   ========================================================================= */
.toptan-home2 .th2-statband { position: relative; border-radius: 18px; overflow: hidden; padding: 40px 20px; }
.toptan-home2 .th2-statband-bg {
    position: absolute; inset: 0;
    background:
        repeating-linear-gradient(45deg, rgba(255,255,255,0.03), rgba(255,255,255,0.03) 16px, transparent 16px, transparent 32px),
        linear-gradient(120deg, var(--th2-dark-1), var(--th2-dark-2));
}
.toptan-home2 .th2-statband-inner {
    position: relative; max-width: 1080px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(4, 1fr);
}
.toptan-home2 .th2-statband-item { text-align: center; padding: 6px 20px; border-left: 1px solid rgba(255,255,255,0.12); }
.toptan-home2 .th2-statband-item.is-first { border-left: 0; }
.toptan-home2 .th2-statband-icon {
    width: 46px; height: 46px; border-radius: 12px;
    background: color-mix(in srgb, var(--th2-teal-light) 16%, transparent);
    color: var(--th2-teal-light);
    display: inline-flex; align-items: center; justify-content: center; font-size: 20px;
    border: 1px solid color-mix(in srgb, var(--th2-teal-light) 25%, transparent);
}
.toptan-home2 .th2-statband-value {
    font-size: 38px; font-weight: 700; color: #fff; margin-top: 14px;
    letter-spacing: -0.02em; font-family: var(--th2-mono); line-height: 1;
}
.toptan-home2 .th2-statband-label { font-size: 13.5px; color: #9FC2BE; margin-top: 8px; font-weight: 500; }

/* =========================================================================
   RFQ CONVERSION
   ========================================================================= */
.toptan-home2 .th2-rfq {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--th2-border);
}
.toptan-home2 .th2-rfq-copy { background: var(--th2-surface); padding: 44px 46px; }
.toptan-home2 .th2-rfq-title { font-size: 30px; font-weight: 700; margin: 16px 0 0; letter-spacing: -0.02em; line-height: 1.15; }
.toptan-home2 .th2-rfq-sub { font-size: 14.5px; color: var(--th2-ink-2); line-height: 1.6; margin: 14px 0 0; max-width: 460px; }
.toptan-home2 .th2-rfq-actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.toptan-home2 .th2-rfq-perks {
    background: linear-gradient(150deg, var(--th2-dark-2), var(--th2-brand));
    padding: 44px;
    display: flex; flex-direction: column; justify-content: center; gap: 12px;
}
.toptan-home2 .th2-rfq-perk {
    display: flex; gap: 12px; align-items: center;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 11px; padding: 14px 16px;
    font-size: 13.5px; color: #EAF2F0; font-weight: 500;
}
.toptan-home2 .th2-rfq-perk-icon {
    width: 36px; height: 36px; border-radius: 9px; flex: none;
    background: color-mix(in srgb, var(--th2-teal-light) 18%, transparent);
    display: flex; align-items: center; justify-content: center; font-size: 16px;
}

/* =========================================================================
   VENDOR CTA STRIP
   ========================================================================= */
.toptan-home2 .th2-vendorcta { background: var(--th2-footer); }
.toptan-home2 .th2-vendorcta-inner {
    display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
    padding-top: 36px; padding-bottom: 36px;
}
.toptan-home2 .th2-vendorcta-title { font-size: 20px; font-weight: 700; color: #fff; }
.toptan-home2 .th2-vendorcta-sub { font-size: 13.5px; color: #8FA5A1; margin-top: 4px; max-width: 620px; }
.toptan-home2 .th2-vendorcta-inner > a { margin-left: auto; }

/* =========================================================================
   JOINED VENDORS
   ========================================================================= */
.toptan-home2 .th2-joined-head { align-items: center; flex-wrap: wrap; }
.toptan-home2 .th2-joined-head .th2-h2 { font-size: 26px; }
.toptan-home2 .th2-joined-counts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.toptan-home2 .th2-joined-count {
    background: var(--th2-surface); border: 1px solid var(--th2-border); border-radius: 14px;
    padding: 18px 22px; display: flex; align-items: center; gap: 14px;
}
.toptan-home2 .th2-joined-count-ic {
    width: 44px; height: 44px; border-radius: 11px; flex: none;
    display: flex; align-items: center; justify-content: center; font-size: 19px;
}
.toptan-home2 .th2-ic--brand { background: color-mix(in srgb, var(--th2-brand) 8%, #fff); }
.toptan-home2 .th2-ic--green { background: var(--th2-green-bg); }
.toptan-home2 .th2-ic--gold { background: color-mix(in srgb, var(--th2-gold) 16%, #fff); }
.toptan-home2 .th2-joined-count-v { font-size: 26px; font-weight: 700; font-family: var(--th2-mono); letter-spacing: -0.01em; }
.toptan-home2 .th2-green { color: var(--th2-green); }
.toptan-home2 .th2-joined-count-l { font-size: 12px; color: var(--th2-muted); }

/* ticker */
.toptan-home2 .th2-ticker {
    position: relative; overflow: hidden;
    border: 1px solid var(--th2-border); border-radius: 16px;
    background: var(--th2-surface); padding: 16px 0;
}
.toptan-home2 .th2-ticker-fade { position: absolute; top: 0; bottom: 0; width: 60px; z-index: 2; pointer-events: none; }
.toptan-home2 .th2-ticker-fade--l { left: 0; background: linear-gradient(90deg, var(--th2-surface), transparent); }
.toptan-home2 .th2-ticker-fade--r { right: 0; background: linear-gradient(270deg, var(--th2-surface), transparent); }
.toptan-home2 .th2-ticker-track {
    display: flex; gap: 14px; width: max-content; padding: 0 7px;
    animation: th2Ticker 40s linear infinite;
}
.toptan-home2 .th2-ticker:hover .th2-ticker-track { animation-play-state: paused; }
.toptan-home2 .th2-tcard {
    flex: none; width: 250px; display: flex; gap: 12px; align-items: center;
    border: 1px solid color-mix(in srgb, var(--th2-border) 80%, #fff);
    border-radius: 12px; padding: 13px 15px; color: var(--th2-ink);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.toptan-home2 .th2-tcard:hover { border-color: color-mix(in srgb, var(--th2-brand) 25%, #fff); box-shadow: 0 4px 14px rgba(26,35,33,0.07); }
.toptan-home2 .th2-tcard-logo {
    width: 46px; height: 46px; border-radius: 11px; flex: none; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 13px;
}
.toptan-home2 .th2-tcard-logo img { width: 100%; height: 100%; object-fit: cover; }
.toptan-home2 .th2-tcard-body { min-width: 0; flex: 1; }
.toptan-home2 .th2-tcard-top { display: flex; align-items: center; gap: 6px; }
.toptan-home2 .th2-tcard-name {
    font-size: 13.5px; font-weight: 600; min-width: 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.toptan-home2 .th2-tcard-badge { background: var(--th2-brand); color: #fff; border-radius: 4px; padding: 1px 5px; font-size: 8.5px; font-weight: 700; flex: none; }
.toptan-home2 .th2-tcard-meta { display: block; font-size: 11px; color: var(--th2-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toptan-home2 .th2-tcard-when { display: block; font-size: 10px; color: var(--th2-green); font-weight: 600; margin-top: 3px; }

/* joined CTA */
.toptan-home2 .th2-joined-cta {
    position: relative; overflow: hidden; border-radius: 16px;
    margin-top: 16px; padding: 26px 30px;
    display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.toptan-home2 .th2-joined-cta-bg {
    position: absolute; inset: 0;
    background:
        repeating-linear-gradient(45deg, rgba(255,255,255,0.03), rgba(255,255,255,0.03) 16px, transparent 16px, transparent 32px),
        linear-gradient(120deg, var(--th2-dark-1), var(--th2-dark-2));
}
.toptan-home2 .th2-joined-cta-copy { position: relative; min-width: 0; flex: 1; }
.toptan-home2 .th2-joined-cta-title { font-size: 24px; font-weight: 700; color: #fff; margin: 12px 0 0; letter-spacing: -0.02em; line-height: 1.2; }
.toptan-home2 .th2-joined-cta-sub { font-size: 14px; color: #B7C9C5; margin: 8px 0 0; max-width: 560px; line-height: 1.55; }
.toptan-home2 .th2-joined-cta-btn { position: relative; flex: none; padding: 15px 28px; font-size: 15px; border-radius: 10px; }

/* =========================================================================
   ANIMATIONS
   ========================================================================= */
@keyframes th2FloatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes th2Ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
    .toptan-home2 .th2-float { animation: none; }
    .toptan-home2 .th2-ticker-track { animation: none; }
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1100px) {
    .toptan-home2 .th2-supp-grid { grid-template-columns: repeat(2, 1fr); }
    .toptan-home2 .th2-supp:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

@media (max-width: 991px) {
    .toptan-home2 .th2-hero-inner { grid-template-columns: 1fr; gap: 0; padding-top: 44px; padding-bottom: 48px; }
    .toptan-home2 .th2-hero-cluster { display: none; }
    .toptan-home2 .th2-hero-title { font-size: 40px; }
    .toptan-home2 .th2-rfq { grid-template-columns: 1fr; }
    .toptan-home2 .th2-rfq-perks { order: -1; }
    .toptan-home2 .th2-joined-counts { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
    .toptan-home2 .th2-container { padding-left: 24px; padding-right: 24px; }
    .toptan-home2 .th2-section { padding-top: 26px; padding-bottom: 8px; }
    .toptan-home2 .th2-h2 { font-size: 20px; }
    .toptan-home2 .th2-joined-head .th2-h2 { font-size: 19px; }

    /* Hero */
    .toptan-home2 .th2-hero { padding: 0; }
    .toptan-home2 .th2-hero-inner { padding: 26px 0 22px; }
    .toptan-home2 .th2-hero-title { font-size: 32px; line-height: 1.1; margin-top: 14px; }
    .toptan-home2 .th2-hero-sub { font-size: 14px; margin-top: 12px; }
    .toptan-home2 .th2-hero-search { margin-top: 18px; padding: 6px; border-radius: 11px; }
    .toptan-home2 .th2-hero-search input { padding: 11px 13px; font-size: 14px; }
    .toptan-home2 .th2-hero-search button { padding: 0 18px; }
    .toptan-home2 .th2-hero-trending { flex-wrap: nowrap; overflow-x: auto; margin-top: 12px; scrollbar-width: none; }
    .toptan-home2 .th2-hero-trending::-webkit-scrollbar { display: none; }
    .toptan-home2 .th2-chip { flex: none; white-space: nowrap; }
    .toptan-home2 .th2-hero-stats { gap: 14px; margin-top: 22px; }
    .toptan-home2 .th2-hero-stat { flex: 1; }
    .toptan-home2 .th2-hero-stat + .th2-hero-stat { padding-left: 14px; }
    .toptan-home2 .th2-hero-stat-num { font-size: 19px; }

    /* Categories: 2-up, no wide span */
    .toptan-home2 .th2-cat-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 118px; gap: 11px; }
    .toptan-home2 .th2-cat--wide { grid-column: span 1; }

    /* How it works: vertical list */
    .toptan-home2 .th2-steps-card { padding: 22px 18px; border-radius: 16px; }
    .toptan-home2 .th2-steps { grid-template-columns: 1fr; gap: 12px; }
    .toptan-home2 .th2-step { display: flex; gap: 13px; align-items: center; text-align: left; padding: 0; }
    .toptan-home2 .th2-step-glyph { width: 46px; height: 46px; border-radius: 12px; font-size: 20px; }
    .toptan-home2 .th2-step-title { margin-top: 0; }
    .toptan-home2 .th2-step-desc { margin-top: 2px; }

    /* Suppliers: single column */
    .toptan-home2 .th2-supp-grid { grid-template-columns: 1fr; }
    .toptan-home2 .th2-supp:last-child:nth-child(odd) { grid-column: auto; }

    /* Stat band: 2x2 */
    .toptan-home2 .th2-statband { padding: 24px 16px; border-radius: 16px; }
    .toptan-home2 .th2-statband-inner { grid-template-columns: 1fr 1fr; gap: 20px 10px; }
    .toptan-home2 .th2-statband-item { border-left: 0; padding: 0 8px; }
    .toptan-home2 .th2-statband-value { font-size: 26px; }

    /* RFQ */
    .toptan-home2 .th2-rfq-copy { padding: 22px 18px; }
    .toptan-home2 .th2-rfq-title { font-size: 21px; }
    .toptan-home2 .th2-rfq-perks { padding: 18px; }
    .toptan-home2 .th2-rfq-actions .th2-btn { flex: 1; }

    /* Vendor CTA: stacked, full-width button */
    .toptan-home2 .th2-vendorcta-inner { flex-direction: column; align-items: stretch; text-align: center; padding: 26px 0; }
    .toptan-home2 .th2-vendorcta-inner > a { margin-left: 0; }
    .toptan-home2 .th2-btn--gold { min-height: 50px; }

    /* Joined vendors */
    .toptan-home2 .th2-joined-head .th2-link { display: none; }
    .toptan-home2 .th2-tcard { width: 210px; }
    .toptan-home2 .th2-joined-cta { padding: 20px; }
    .toptan-home2 .th2-joined-cta-title { font-size: 19px; }
    .toptan-home2 .th2-joined-cta-btn { width: 100%; min-height: 50px; }
}

@media (max-width: 430px) {
    .toptan-home2 .th2-container { padding-left: 18px; padding-right: 18px; }
    .toptan-home2 .th2-hero-title { font-size: 29px; }
    .toptan-home2 .th2-cat-grid { grid-auto-rows: 108px; }
}
