/* Marketplace — core layout & design tokens */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,500&display=swap');

:root {
    --sbc-primary: #001d3d;
    --sbc-primary-mid: #0a2d52;
    --sbc-primary-dark: #001428;
    --sbc-accent: #f3842d;
    --sbc-accent-light: #f59a4f;
    --sbc-accent-hover: #e07020;
    --sbc-teal: #0d9488;
    --sbc-light: #f4f7fb;
    --sbc-light-2: #e8eef6;
    --sbc-text: #1e293b;
    --sbc-muted: #64748b;
    --sbc-border: #e2e8f0;
    --sbc-shadow: 0 12px 40px rgba(15, 43, 74, 0.1);
    --sbc-shadow-lg: 0 24px 60px rgba(15, 43, 74, 0.16);
    --sbc-radius: 16px;
    --sbc-radius-sm: 10px;
    --sbc-font: 'Plus Jakarta Sans', system-ui, sans-serif;
    --sbc-nav-height: 80px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--sbc-font);
    color: var(--sbc-text);
    background: #fff;
    overflow-x: hidden;
}

/* Buttons */
.btn-sbc-primary {
    background: linear-gradient(135deg, var(--sbc-primary-mid), var(--sbc-primary));
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: var(--sbc-radius-sm);
    padding: 0.65rem 1.35rem;
    transition: transform 0.25s, box-shadow 0.25s;
}
.btn-sbc-primary:hover, .btn-sbc-primary:focus {
    background: linear-gradient(135deg, var(--sbc-primary), var(--sbc-primary-dark));
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 43, 74, 0.25);
}

.btn-sbc-accent {
    background: var(--sbc-accent);
    border: none;
    color: #fff;
    font-weight: 700;
    border-radius: 8px;
    transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}
.btn-sbc-accent:hover, .btn-sbc-accent:focus {
    background: var(--sbc-accent-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(243, 132, 45, 0.35);
}

.btn-sbc-ghost {
    border: 1.5px solid #c5d0dc;
    color: var(--sbc-primary);
    font-weight: 600;
    border-radius: 8px;
    background: #f8fafc;
    transition: all 0.25s;
}
.btn-sbc-ghost:hover {
    border-color: var(--sbc-primary);
    background: #fff;
    color: var(--sbc-primary);
}

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

.text-sbc-primary { color: var(--sbc-primary) !important; }
.bg-sbc-light { background: var(--sbc-light) !important; }

.section-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sbc-accent-hover);
    margin-bottom: 0.75rem;
}

.section-title {
    font-weight: 800;
    font-size: clamp(1.75rem, 3.5vw, 2.35rem);
    color: var(--sbc-primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-subtitle {
    color: var(--sbc-muted);
    font-size: 1.05rem;
    max-width: 560px;
    line-height: 1.65;
}

.section-header { margin-bottom: 3rem; }
.section-header.centered { text-align: center; }
.section-header.centered .section-subtitle { margin-left: auto; margin-right: auto; }

/* Navbar */
.sbc-navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1030;
    height: var(--sbc-nav-height);
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 29, 61, 0.06);
    transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.sbc-navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    border-bottom-color: var(--sbc-border);
    box-shadow: 0 4px 24px rgba(0, 29, 61, 0.06);
}

.sbc-brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
}

.sbc-brand-icon {
    flex-shrink: 0;
}

.sbc-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.sbc-brand-text strong {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--sbc-primary);
    letter-spacing: -0.02em;
}

.sbc-brand-text small {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--sbc-muted);
}

.sbc-brand {
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--sbc-primary);
    text-decoration: none;
    letter-spacing: -0.03em;
}
.sbc-brand span { color: var(--sbc-accent); }

.sbc-nav-link {
    color: #334155;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.45rem 0.85rem !important;
    border-radius: 6px;
    transition: all 0.2s;
}
.sbc-nav-link:hover, .sbc-nav-link.active {
    color: var(--sbc-primary);
    background: transparent;
}

main { padding-top: var(--sbc-nav-height); }

/* Footer */
.sbc-footer {
    background: linear-gradient(160deg, var(--sbc-primary-dark) 0%, var(--sbc-primary) 100%);
    color: rgba(255, 255, 255, 0.85);
    padding: 4rem 0 1.5rem;
    margin-top: 0;
}
.sbc-footer a { color: rgba(255, 255, 255, 0.7); text-decoration: none; transition: color 0.2s; }
.sbc-footer a:hover { color: var(--sbc-accent-light); }
.sbc-footer-brand { font-weight: 800; font-size: 1.3rem; color: #fff; }

/* Cards */
.sbc-card {
    border: 1px solid var(--sbc-border);
    border-radius: var(--sbc-radius);
    overflow: hidden;
    background: #fff;
    height: 100%;
    transition: transform 0.35s cubic-bezier(.22,1,.36,1), box-shadow 0.35s;
}
.sbc-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--sbc-shadow-lg);
}

.sbc-card-img-wrap { overflow: hidden; position: relative; }
.sbc-card-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(.22,1,.36,1);
}
.sbc-card:hover .sbc-card-img { transform: scale(1.06); }

.sbc-card-img-placeholder {
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--sbc-light), var(--sbc-light-2));
    color: var(--sbc-muted);
    font-size: 2rem;
    font-weight: 800;
}

.sbc-card-body { padding: 1.35rem; }
.sbc-card-title {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
    color: var(--sbc-primary);
}
.sbc-card-title a { color: inherit; text-decoration: none; }
.sbc-card-title a:hover { color: var(--sbc-accent-hover); }
.sbc-card-meta { font-size: 0.85rem; color: var(--sbc-muted); }
.sbc-price { font-weight: 800; color: var(--sbc-primary); font-size: 1.1rem; }

.sbc-badge {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    background: var(--sbc-light);
    color: var(--sbc-primary);
    letter-spacing: 0.02em;
}
.sbc-badge-verified {
    background: rgba(13, 148, 136, 0.12);
    color: var(--sbc-teal);
}

/* Manufacturer card v2 */
.mfg-card {
    display: flex;
    flex-direction: column;
    position: relative;
    isolation: isolate;
}
.mfg-card-banner {
    height: 140px;
    background: linear-gradient(135deg, var(--sbc-primary-mid), var(--sbc-primary-dark));
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}
.mfg-card-banner img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.mfg-card-logo-wrap {
    position: relative;
    z-index: 3;
    margin: -36px 0 0 1.25rem;
    width: 72px;
    height: 72px;
    border-radius: 14px;
    border: 3px solid #fff;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    flex-shrink: 0;
}
.mfg-card-logo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.mfg-card-logo-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.25rem;
    color: var(--sbc-primary);
    background: var(--sbc-light);
}
.mfg-card-body {
    position: relative;
    z-index: 1;
    padding: 1.35rem 1.35rem 1.35rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
}

/* Filters */
.sbc-filter-card {
    border: 1px solid var(--sbc-border);
    border-radius: var(--sbc-radius);
    padding: 1.5rem;
    background: #fff;
    position: sticky;
    top: calc(var(--sbc-nav-height) + 1rem);
    box-shadow: var(--sbc-shadow);
}
.sbc-filter-card .form-label { font-weight: 700; font-size: 0.82rem; color: var(--sbc-primary); }

.sbc-page-hero {
    background: linear-gradient(135deg, var(--sbc-primary-dark) 0%, var(--sbc-primary-mid) 100%);
    color: #fff;
    padding: 3.5rem 0;
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
}
.sbc-page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/hero-facility.jpg') center/cover;
    opacity: 0.12;
}
.sbc-page-hero .container { position: relative; z-index: 1; }
.sbc-page-hero h1 { font-weight: 800; font-size: clamp(1.75rem, 4vw, 2.5rem); margin: 0; }
.sbc-page-hero p { color: rgba(255,255,255,0.8); margin: 0.5rem 0 0; }

.pagination .page-link { color: var(--sbc-primary); border-color: var(--sbc-border); border-radius: 8px; margin: 0 2px; }
.pagination .page-item.active .page-link { background: var(--sbc-primary); border-color: var(--sbc-primary); }

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 767.98px) {
    .sbc-filter-card { position: static; margin-bottom: 1.5rem; }
}
