.tb-homepage {
    --home-ink: #0f172a;
    --home-muted: #475569;
    --home-line: #e2e8f0;
    --home-brand: #1e40af;
    --home-orange: #2563eb;
    color: var(--home-ink);
}

.tb-homepage .tb-main-header { background: #fff; }
.tb-homepage .tb-header-row { min-height: 74px; }
.tb-homepage .tb-logo { margin-inline-end: auto; }
.tb-homepage-has-banner .tb-header-row > .tb-header-search-wrapper,
.tb-homepage-has-banner .tb-mobile-search-row { display: none !important; }
.tb-homepage .tb-nav-bar { border-top: 1px solid var(--home-line); }
.tb-homepage .tb-categories-trigger { background: var(--home-brand); color: #fff; box-shadow: none; }
.tb-homepage .tb-mega-menu { border: 1px solid var(--home-line); box-shadow: 0 14px 36px #142a4026; }
.tb-homepage .market-footer { border-top: 1px solid var(--home-line); }
.tb-homepage .market-footer-note { color: inherit; }

.tb-home { background: #f4f7fa; padding-bottom: clamp(32px, 5vw, 72px); }
.tb-home-width { width: min(1296px, calc(100% - 48px)); margin-inline: auto; }
.tb-home-hero { background: #0f2539; color: #fff; }
.tb-home-hero-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: clamp(24px, 4vw, 64px);
    align-items: center;
    padding-block: clamp(32px, 4.4vw, 68px);
}
.tb-home-hero-inner:not(:has(.tb-home-hero-media)) { grid-template-columns: 1fr; }
.tb-home-hero-copy { min-width: 0; max-width: 730px; }
.tb-home-kicker {
    margin: 0 0 15px;
    color: #9de0e1;
    font-size: .83rem;
    font-weight: 750;
    letter-spacing: .1em;
}
.tb-home-hero h1 {
    margin: 0;
    color: inherit;
    font-size: clamp(2.65rem, 4.1vw, 4.25rem);
    font-weight: 780;
    letter-spacing: -.045em;
    line-height: 1.05;
    overflow-wrap: anywhere;
}
.tb-home-intro {
    margin: 18px 0 24px;
    max-width: 54ch;
    color: #d5e4f1;
    font-size: 1.05rem;
    line-height: 1.55;
}
.tb-home-hero-media { min-width: 0; background: #20394d; border-radius: 14px; overflow: hidden; }
.tb-home-hero-media img {
    display: block;
    width: 100%;
    aspect-ratio: 1.5;
    height: auto;
    object-fit: cover;
    object-position: 62% 50%;
}
.tb-home-search {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: var(--home-muted);
    padding: 6px 6px 6px 16px;
    border-radius: 8px;
    margin: 22px 0 17px;
}
.tb-home-search input {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--home-ink);
    padding: 8px 1px;
    min-width: 0;
    font-size: 1rem;
}
.tb-home-search button, .tb-home-button {
    min-height: 44px;
    padding: 9px 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 7px;
    font-weight: 750;
    font-size: .94rem;
    line-height: 1.2;
    text-decoration: none;
    text-align: center;
}
.tb-home-search button { background: var(--home-brand); color: #fff; }
.tb-home-search-results { position: absolute; z-index: 20; inset: calc(100% + 4px) 0 auto; max-height: 340px; overflow: auto; color: var(--home-ink); }
.tb-home-actions { display: flex; gap: 8px 12px; flex-wrap: wrap; align-items: center; }
.tb-home-button-primary { background: var(--home-orange); color: #fff; }
.tb-home-button-primary:hover { background: var(--home-brand); color: #fff; }
.tb-home-button-quiet { border-color: #8199ae; color: #fff; }
.tb-home-button-quiet:hover { background: #314c63; color: #fff; }
.tb-home-seller-link { color: #a7eaf0; padding: 9px 4px; font-weight: 700; }
.tb-home-seller-link:hover { color: #fff; }
.tb-home-section { padding-top: clamp(24px, 4.5vw, 48px); }
.tb-home-section-head { display: flex; align-items: end; justify-content: space-between; gap: 8px 18px; margin-bottom: 16px; }
.tb-home h2 { color: inherit; font-size: clamp(1.35rem, 2.35vw, 2rem); font-weight: 760; margin: 0; line-height: 1.2; letter-spacing: -.025em; overflow-wrap: anywhere; }
.tb-home-section-head p, .tb-home-content p { margin: 6px 0 0; line-height: 1.5; }
.tb-home-section-link { color: var(--home-brand); font-weight: 700; text-align: end; }
.tb-home-section-actions { display: grid; justify-items: end; gap: 5px; }
.tb-home-carousel-controls { display: flex; gap: 4px; }
.tb-home-carousel-controls[hidden] { display: none; }
.tb-home-carousel-controls button { min-height: 36px; padding: 4px 9px; color: var(--home-brand); background: #fff; border: 1px solid var(--home-line); border-radius: 7px; font-size: .875rem; }
.tb-home-carousel-controls button:disabled { color: var(--home-muted); opacity: .6; }
.tb-home-grid {
    --home-gap: 14px;
    display: grid;
    gap: var(--home-gap);
    grid-template-columns: repeat(var(--home-columns), minmax(0, 1fr));
}
.tb-home-carousel {
    position: relative;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - (var(--home-columns) - 1) * var(--home-gap)) / var(--home-columns));
    overflow-x: auto;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
}
.tb-home-carousel::-webkit-scrollbar { display: none; }
.tb-home-grid-products { --home-product-columns: min(5, var(--home-columns)); }
.tb-home-grid-products:not(.tb-home-carousel) { grid-template-columns: repeat(auto-fill, minmax(min(100%, max(190px, calc((100% - 4 * var(--home-gap)) / var(--home-product-columns)))), 1fr)); }
.tb-home-grid-products.tb-home-carousel { grid-auto-columns: min(100%, max(190px, calc((100% - (var(--home-product-columns) - 1) * var(--home-gap)) / var(--home-product-columns)))); }
.tb-home-carousel > * { scroll-snap-align: start; }
.tb-home-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid var(--home-line);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    color: var(--home-ink);
    text-decoration: none;
}
.tb-home-card h3 { font-size: 1rem; font-weight: 750; margin: 0; line-height: 1.35; overflow-wrap: anywhere; }
.tb-home-card h3 a { color: inherit; text-decoration: none; }
.tb-home-card h3 a:hover { color: var(--home-brand); text-decoration: underline; }
.tb-home-card-body h3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.tb-home-card p { color: var(--home-muted); font-size: .875rem; margin: 0; overflow-wrap: anywhere; }
.tb-home-card-body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 12px; }
.tb-home-product-image { display: grid; place-items: center; position: relative; background: #fff; border-bottom: 1px solid var(--home-line); }
.tb-home-product-image img { display: block; height: auto; width: 100%; aspect-ratio: 1.35; object-fit: contain; padding: 12px; }
.tb-home-product-status { position: absolute; top: 8px; left: 8px; background: #f8e7d9; color: #653815; padding: 3px 8px; border-radius: 5px; font-size: .78rem; }
.tb-home-card-price { margin-top: auto; padding-top: 3px; font-size: .9rem; font-weight: 650; overflow-wrap: anywhere; }
.tb-home-card-actions { display: flex; align-items: center; gap: 4px 10px; flex-wrap: wrap; font-size: .875rem; }
.tb-home-card-actions a { color: var(--home-brand); font-weight: 700; padding-block: 8px; }
.tb-home-quote {
    min-height: 40px;
    border: 1px solid #8bb9c0;
    border-radius: 7px;
    background: #e9f6f7;
    color: #085865;
    padding: 4px 10px;
    font-weight: 750;
}
.tb-home-quote:hover { background: #d0ecee; }
.tb-home-company, .tb-home-category { gap: 6px; padding: 14px; }
.tb-home-company-logo, .tb-home-category i {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #e7f2f4;
    color: var(--home-brand);
    font-size: 1.2rem;
}
.tb-home-company-logo img { width: 100%; height: 100%; object-fit: contain; }
.tb-home-company .tb-home-verified { color: var(--home-brand); }
.tb-home-category { display: flex; flex-direction: row; align-items: center; gap: 10px; font-size: .95rem; font-weight: 720; overflow-wrap: anywhere; }
.tb-home-category i { flex: 0 0 40px; }
.tb-home-category small { display: block; margin-top: 4px; color: var(--home-muted); font-weight: 500; }
.tb-home-category:hover { color: var(--home-brand); border-color: #8bb9c0; }
.tb-home-content { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid var(--home-line); border-radius: 12px; background: #fff; padding: clamp(18px, 3vw, 36px); }
.tb-home-content-seller { background: #0f2539; color: #fff; }
.tb-home-content img { max-width: 100%; height: auto; border-radius: 8px; }
.tb-home-empty { grid-column: 1 / -1; color: var(--home-muted); margin: 0; }
.tb-home-preview { display: flex; justify-content: space-between; padding: 10px 0; font-weight: 750; }
.tb-home :focus-visible { outline: 3px solid #397eda; outline-offset: 3px; }

@media (max-width: 991.98px) {
    .tb-home-width { width: calc(100% - 32px); }
    .tb-home-hero-inner { grid-template-columns: 1fr; }
    .tb-home-hero-media img { max-height: 300px; }
    .tb-homepage .tb-header-row { min-height: 60px; }
    .tb-homepage .tb-logo { flex: 0 1 auto; }
    .tb-home-grid { --home-columns: var(--home-mobile-columns) !important; --home-gap: 9px; }
    .tb-home-grid-products { --home-product-columns: min(3, var(--home-mobile-columns)); }
    .tb-home-grid-products:not(.tb-home-carousel) { grid-template-columns: repeat(auto-fill, minmax(min(100%, max(132px, calc((100% - (var(--home-product-columns) - 1) * var(--home-gap)) / var(--home-product-columns)))), 1fr)); }
    .tb-home-grid-products.tb-home-carousel { grid-auto-columns: min(100%, max(160px, calc((100% - (var(--home-product-columns) - 1) * var(--home-gap)) / var(--home-product-columns)))); }
}
@media (max-width: 575.98px) {
    .tb-home-hero h1 { font-size: clamp(2.1rem, 9vw, 2.75rem); }
    .tb-home-hero-inner { padding-block: 26px; gap: 19px; }
    .tb-home-hero-media img { aspect-ratio: 2.1; }
    .tb-home-intro { font-size: 1rem; margin: 12px 0 0; }
    .tb-home-actions { gap: 8px; }
    .tb-home-button { padding-inline: 10px; font-size: .875rem; }
    .tb-home-seller-link { font-size: .875rem; }
    .tb-home-section-head { align-items: start; }
    .tb-home-section-link { font-size: .875rem; }
    .tb-home-category { padding: 8px; gap: 6px; font-size: .875rem; }
    .tb-home-category i { flex-basis: 30px; height: 32px; font-size: 1rem; }
}
