/* Home page — SBC mockup hero design */
.sbc-home-hero {
    position: relative;
    min-height: calc(100vh - var(--sbc-nav-height));
    min-height: calc(100dvh - var(--sbc-nav-height));
    display: flex;
    align-items: center;
    padding: 3rem 0 4rem;
    overflow: hidden;
    background: #f8fbff;
}

.sbc-home-hero-visual {
    position: absolute;
    inset: 0;
    background: url('../images/hero-sbc-home.png') right center / cover no-repeat;
    opacity: 1;
    z-index: 0;
}

.sbc-home-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        #ffffff 0%,
        #ffffff 24%,
        rgba(255, 255, 255, 0.88) 38%,
        rgba(255, 255, 255, 0.45) 52%,
        rgba(255, 255, 255, 0.12) 68%,
        transparent 82%
    );
    z-index: 1;
}

.sbc-home-hero-content {
    position: relative;
    z-index: 2;
    padding-top: 1rem;
}

.sbc-home-hero-tagline {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--sbc-accent);
    margin-bottom: 1rem;
}

.sbc-home-hero h1 {
    font-weight: 800;
    font-size: clamp(2rem, 4.8vw, 3.15rem);
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: var(--sbc-primary);
    margin-bottom: 1.25rem;
    max-width: 640px;
}

.sbc-text-accent {
    color: var(--sbc-accent);
}

.sbc-home-hero-lead {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #5b6b7c;
    max-width: 560px;
    margin-bottom: 2rem;
}

/* Search bar */
.sbc-home-search {
    display: flex;
    align-items: stretch;
    max-width: 620px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 29, 61, 0.08);
    overflow: hidden;
    margin-bottom: 1.75rem;
}

.sbc-home-search-category {
    flex-shrink: 0;
    border-right: 1px solid #e2e8f0;
    min-width: 150px;
}

.sbc-home-search-category .form-select {
    border: none;
    border-radius: 0;
    height: 100%;
    padding: 0.9rem 2rem 0.9rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--sbc-primary);
    background-color: #fff;
    box-shadow: none;
}

.sbc-home-search-category .form-select:focus {
    box-shadow: none;
    border-color: transparent;
}

.sbc-home-search .form-control {
    border: none;
    border-radius: 0;
    padding: 0.9rem 1rem;
    font-size: 0.95rem;
    flex: 1;
    min-width: 0;
    box-shadow: none;
}

.sbc-home-search .form-control:focus {
    box-shadow: none;
}

.sbc-home-search-btn {
    flex-shrink: 0;
    width: 58px;
    border: none;
    background: var(--sbc-accent);
    color: #fff;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.sbc-home-search-btn:hover {
    background: var(--sbc-accent-hover);
}

/* Trust icons row */
.sbc-home-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 1.75rem;
    margin-bottom: 2rem;
}

.sbc-home-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--sbc-primary);
}

.sbc-home-trust-item i {
    font-size: 1.15rem;
    color: var(--sbc-primary-mid);
}

/* Hero CTA buttons */
.sbc-home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.sbc-btn-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 10px;
    font-weight: 700;
    padding: 0.85rem 1.5rem;
}

.sbc-btn-arrow i {
    transition: transform 0.2s;
}

.sbc-btn-arrow:hover i {
    transform: translateX(4px);
}

.btn-sbc-hero-outline {
    border: 2px solid var(--sbc-primary);
    color: var(--sbc-primary);
    background: #fff;
    font-weight: 700;
    border-radius: 10px;
    transition: all 0.25s;
}

.btn-sbc-hero-outline:hover {
    background: var(--sbc-primary);
    color: #fff;
    border-color: var(--sbc-primary);
}

.btn-sbc-primary {
    background: var(--sbc-primary);
    border: none;
    color: #fff;
}

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

@media (max-width: 991.98px) {
    .sbc-home-hero-visual {
        background-position: 80% center;
        opacity: 0.92;
    }

    .sbc-home-hero-overlay {
        background: linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.97) 0%,
            rgba(255, 255, 255, 0.9) 55%,
            rgba(255, 255, 255, 0.55) 100%
        );
    }

    .sbc-home-search {
        flex-direction: column;
        border-radius: 12px;
    }

    .sbc-home-search-category {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }

    .sbc-home-search-btn {
        width: 100%;
        padding: 0.85rem;
    }

    .sbc-home-trust-row {
        gap: 1rem;
    }

    .sbc-home-trust-item {
        flex: 1 1 calc(50% - 0.5rem);
    }
}

@media (max-width: 575.98px) {
    .sbc-home-trust-item {
        flex: 1 1 100%;
    }

    .sbc-home-hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Legacy hero aliases — kept for other pages referencing home.css */
.sbc-hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2.5rem; }

/* Platform stats — Alibaba-inspired trust bar */
.sbc-stats-alibaba {
    position: relative;
    z-index: 5;
    margin-top: -2.75rem;
}

.sbc-stats-alibaba__band {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.sbc-stats-alibaba__inner {
    display: flex;
    align-items: stretch;
    min-height: 118px;
}

.sbc-stats-alibaba__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.35rem 1rem;
    transition: background 0.25s;
}

.sbc-stats-alibaba__item:hover {
    background: #fafafa;
}

.sbc-stats-alibaba__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0.55rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #666;
    line-height: 1;
}

.sbc-stats-alibaba__badge i {
    font-size: 0.95rem;
    color: #999;
}

.sbc-stats-alibaba__badge--verified {
    padding: 0.2rem 0.55rem;
    border-radius: 3px;
    background: #e8f4fd;
    color: #0066cc;
    border: 1px solid #b3d9f2;
}

.sbc-stats-alibaba__badge--verified i {
    color: #0066cc;
    font-size: 0.85rem;
}

.sbc-stats-alibaba__metric {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.1rem;
    margin-bottom: 0.35rem;
    line-height: 1;
}

.sbc-stats-alibaba__value {
    font-size: clamp(2rem, 3.2vw, 2.5rem);
    font-weight: 700;
    color: #222;
    letter-spacing: -0.02em;
}

.sbc-stats-alibaba__plus,
.sbc-stats-alibaba__percent {
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    font-weight: 700;
    color: var(--sbc-accent);
    line-height: 1;
}

.sbc-stats-alibaba__label {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 400;
    color: #666;
    line-height: 1.4;
    max-width: 140px;
}

.sbc-stats-alibaba__divider {
    width: 1px;
    align-self: stretch;
    background: #e8e8e8;
    flex-shrink: 0;
    margin: 1.25rem 0;
}

@media (max-width: 991.98px) {
    .sbc-stats-alibaba {
        margin-top: -1.5rem;
    }

    .sbc-stats-alibaba__inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        min-height: 0;
    }

    .sbc-stats-alibaba__divider {
        display: none;
    }

    .sbc-stats-alibaba__item {
        padding: 1.25rem 0.75rem;
    }

    .sbc-stats-alibaba__item:nth-child(1),
    .sbc-stats-alibaba__item:nth-child(5) {
        border-right: 1px solid #e8e8e8;
    }

    .sbc-stats-alibaba__item:nth-child(1),
    .sbc-stats-alibaba__item:nth-child(3) {
        border-bottom: 1px solid #e8e8e8;
    }
}

@media (max-width: 575.98px) {
    .sbc-stats-alibaba {
        margin-top: 0;
    }

    .sbc-stats-alibaba__band {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .sbc-stats-alibaba__inner {
        grid-template-columns: 1fr;
    }

    .sbc-stats-alibaba__item {
        border-right: none !important;
        border-bottom: 1px solid #e8e8e8;
        padding: 1.15rem 1rem;
    }

    .sbc-stats-alibaba__item:last-child {
        border-bottom: none;
    }

    .sbc-stats-alibaba__label {
        max-width: none;
    }
}

/* Legacy stats aliases */
.sbc-stats-bar,
.sbc-stats-showcase { padding: 0; background: transparent; border: none; margin: 0; }
.sbc-stat-item strong { font-size: inherit; }

/* Featured manufacturers — 2-column card grid */
.sbc-mfg-featured-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.sbc-mfg-featured-grid__item {
    min-width: 0;
}

.sbc-mfg-featured {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid var(--sbc-border);
    border-radius: var(--sbc-radius-sm);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 29, 61, 0.05);
}

.sbc-mfg-featured__profile {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.85rem;
    background: #f8fbff;
    border-bottom: 1px solid var(--sbc-border);
}

.sbc-mfg-featured__head {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    min-width: 0;
}

.sbc-mfg-featured__logo {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    border: 1px solid var(--sbc-border);
    background: #fff;
    overflow: hidden;
    flex-shrink: 0;
}

.sbc-mfg-featured__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sbc-mfg-featured__logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--sbc-primary);
    background: var(--sbc-light);
}

.sbc-mfg-featured__identity {
    flex: 1;
    min-width: 0;
}

.sbc-mfg-featured__name {
    margin: 0 0 0.3rem;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--sbc-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sbc-mfg-featured__name a {
    color: inherit;
    text-decoration: none;
}

.sbc-mfg-featured__name a:hover {
    color: var(--sbc-accent-hover);
}

.sbc-mfg-featured__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    align-items: center;
    margin-bottom: 0.2rem;
}

.sbc-mfg-featured__tag {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--sbc-muted);
    background: #fff;
    border: 1px solid var(--sbc-border);
    border-radius: 3px;
    padding: 0.12rem 0.4rem;
    line-height: 1.2;
}

.sbc-mfg-featured__facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem 0.55rem;
    margin: 0;
}

.sbc-mfg-featured__facts > div {
    min-width: 0;
}

.sbc-mfg-featured__facts dt {
    margin: 0 0 0.08rem;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--sbc-muted);
}

.sbc-mfg-featured__facts dd {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--sbc-text);
    line-height: 1.25;
}

.sbc-mfg-featured__facts dd i {
    font-size: 0.75rem;
    color: var(--sbc-primary-mid);
    flex-shrink: 0;
}

.sbc-mfg-featured__desc {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.45;
    color: var(--sbc-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sbc-mfg-featured__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    width: 100%;
    padding: 0.45rem 0.75rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    background: var(--sbc-primary);
    border: none;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s;
}

.sbc-mfg-featured__cta:hover {
    background: var(--sbc-primary-mid);
    color: #fff;
}

.sbc-mfg-featured__products {
    padding: 0.55rem 0.75rem 0.65rem;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.sbc-mfg-featured__products-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.sbc-mfg-featured__products-header h4 {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--sbc-muted);
}

.sbc-mfg-featured__view-all {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--sbc-accent);
    text-decoration: none;
}

.sbc-mfg-featured__view-all:hover {
    color: var(--sbc-accent-hover);
}

.sbc-mfg-featured__empty {
    margin: 0;
    font-size: 0.75rem;
    color: var(--sbc-muted);
}

.sbc-mfg-product-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sbc-mfg-product-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f0f3f7;
}

.sbc-mfg-product-list li:last-child .sbc-mfg-product-row {
    border-bottom: none;
    padding-bottom: 0;
}

.sbc-mfg-product-row:hover .sbc-mfg-product-row__name {
    color: var(--sbc-accent-hover);
}

.sbc-mfg-product-row__thumb {
    width: 36px;
    height: 36px;
    border-radius: 5px;
    border: 1px solid var(--sbc-border);
    background: var(--sbc-light);
    overflow: hidden;
    flex-shrink: 0;
}

.sbc-mfg-product-row__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sbc-mfg-product-row__thumb span {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--sbc-primary);
}

.sbc-mfg-product-row__main {
    flex: 1;
    min-width: 0;
}

.sbc-mfg-product-row__top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.4rem;
}

.sbc-mfg-product-row__name {
    margin: 0;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--sbc-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.sbc-mfg-product-row__price {
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--sbc-accent);
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.2;
}

.sbc-mfg-product-row__meta {
    margin: 0.1rem 0 0;
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--sbc-muted);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 991.98px) {
    .sbc-mfg-featured-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .sbc-mfg-featured__facts {
        grid-template-columns: 1fr;
    }
}

/* Category marquee */
.sbc-marquee-wrap {
    overflow: hidden;
    padding: 1.25rem 0;
    background: var(--sbc-light);
    border-top: 1px solid var(--sbc-border);
    border-bottom: 1px solid var(--sbc-border);
}
.sbc-marquee-track {
    display: flex;
    gap: 1rem;
    width: max-content;
    animation: sbc-marquee 40s linear infinite;
}
.sbc-marquee-track:hover { animation-play-state: paused; }

.sbc-category-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.15rem;
    border-radius: 50px;
    background: #fff;
    border: 1px solid var(--sbc-border);
    color: var(--sbc-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    white-space: nowrap;
    transition: all 0.25s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.sbc-category-pill:hover {
    background: var(--sbc-primary);
    color: #fff;
    border-color: var(--sbc-primary);
    transform: translateY(-2px);
}
.sbc-category-pill .count {
    background: var(--sbc-light);
    color: var(--sbc-primary);
    padding: 0.1rem 0.5rem;
    border-radius: 50px;
    font-size: 0.75rem;
}
.sbc-category-pill:hover .count { background: rgba(255,255,255,0.2); color: #fff; }

/* How it works */
.sbc-step-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: var(--sbc-radius);
    background: #fff;
    border: 1px solid var(--sbc-border);
    height: 100%;
    position: relative;
    transition: box-shadow 0.3s, transform 0.3s;
}
.sbc-step-card:hover { box-shadow: var(--sbc-shadow); transform: translateY(-4px); }
.sbc-step-num {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--sbc-accent);
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.sbc-step-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: var(--sbc-radius-sm);
    margin-bottom: 1.25rem;
    background: var(--sbc-light);
}
.sbc-step-card h3 { font-weight: 700; font-size: 1.1rem; color: var(--sbc-primary); margin-bottom: 0.5rem; }
.sbc-step-card p { color: var(--sbc-muted); font-size: 0.9rem; margin: 0; line-height: 1.6; }

/* Why choose us — feature grid with images */
.sbc-why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 991.98px) { .sbc-why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .sbc-why-grid { grid-template-columns: 1fr; } }

.sbc-why-card {
    border-radius: var(--sbc-radius);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--sbc-border);
    transition: transform 0.35s, box-shadow 0.35s;
}
.sbc-why-card:hover { transform: translateY(-6px); box-shadow: var(--sbc-shadow-lg); }
.sbc-why-card-img { height: 180px; overflow: hidden; }
.sbc-why-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.sbc-why-card:hover .sbc-why-card-img img { transform: scale(1.08); }
.sbc-why-card-body { padding: 1.35rem; }
.sbc-why-card-body h3 {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--sbc-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.sbc-why-card-body h3 i { color: var(--sbc-accent); }
.sbc-why-card-body p { color: var(--sbc-muted); font-size: 0.9rem; margin: 0; line-height: 1.65; }

/* Split showcase */
.sbc-showcase {
    background: linear-gradient(135deg, var(--sbc-primary-dark), var(--sbc-primary-mid));
    border-radius: var(--sbc-radius);
    overflow: hidden;
    color: #fff;
}
.sbc-showcase-img { height: 100%; min-height: 320px; }
.sbc-showcase-img img { width: 100%; height: 100%; object-fit: cover; }
.sbc-showcase-body { padding: 3rem; }
.sbc-showcase-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.sbc-showcase-list li {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.85);
}
.sbc-showcase-list i { color: var(--sbc-accent-light); font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }

/* CTA */
.sbc-cta {
    position: relative;
    border-radius: var(--sbc-radius);
    padding: 4rem 2rem;
    text-align: center;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(0, 29, 61, 0.92), rgba(0, 20, 40, 0.95)),
        url('../images/cta-bg.jpg') center/cover;
    color: #fff;
}
.sbc-cta h2 { font-weight: 800; font-size: clamp(1.75rem, 3vw, 2.25rem); margin-bottom: 0.75rem; }
.sbc-cta p { color: rgba(255,255,255,0.8); max-width: 520px; margin: 0 auto 2rem; font-size: 1.05rem; }

.sbc-section { padding: 5rem 0; }
.sbc-section-alt { background: var(--sbc-light); }

.sbc-manufacturer-logo {
    width: 64px; height: 64px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--sbc-border);
}
.sbc-manufacturer-logo-placeholder {
    width: 64px; height: 64px;
    border-radius: 12px;
    background: var(--sbc-light);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; color: var(--sbc-primary);
    border: 1px solid var(--sbc-border);
}
