/* ── Suppliers Public page — sp- prefix ──────────────────────────────── */

/* ── Brand detail page ─────────────────────────────────────────────── */
.sp-back-link {
    color: #64748b;
    transition: color .15s;
}
.sp-back-link:hover { color: #0f172a; }

.sp-detail-logo-wrap {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: .75rem;
    padding: .75rem 1.5rem;
    display: flex;
    align-items: center;
}

.sp-detail-logo {
    max-width: 180px;
    max-height: 80px;
    object-fit: contain;
}

.sp-detail-title {
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    color: #0f172a;
}

.sp-detail-body {
    line-height: 1.75;
}

.sp-detail-info-img {
    max-width: 45%;
    border-radius: .5rem;
    height: auto;
}

.sp-assortment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sp-assortment-list li {
    padding: .4rem 0;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
}
.sp-assortment-list li:last-child { border-bottom: none; }

.sp-detail-link {
    color: #0f6dc5;
}
.sp-detail-link:hover { color: #0d4fa0; }

/* ── Brand Resources card (sp-res- prefix) ──────────────────────── */
.sp-res-card {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 24px;
    position: sticky;
    top: 80px;
}

.sp-res-header {
    margin-bottom: 20px;
}

.sp-res-card-title {
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: #0f172a;
    margin-bottom: 2px;
}

.sp-res-card-sub {
    font-size: .78rem;
    color: var(--text-mid, #4a5568);
}

/* ── Primary CTA button ────────────────────────────────────────── */
.sp-res-cta {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #0F1E4A, #1B326D);
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    height: 64px;
    padding: 0 20px;
    font-weight: 700;
    font-size: .82rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 20px;
    transition: filter .2s;
}
.sp-res-cta:hover {
    color: #fff;
    filter: brightness(1.15);
}

.sp-res-cta-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

/* ── Resource list ─────────────────────────────────────────────── */
.sp-res-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sp-res-item + .sp-res-item {
    border-top: 1px solid #F1F5F9;
}

.sp-res-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 8px;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: background .15s;
    min-height: 48px;
}
.sp-res-row:hover {
    background: #F8FAFC;
    color: inherit;
}

/* ── Icon container ─────────────────────────────────────────────── */
.sp-res-icon-wrap {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: #F8FAFC;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #0F1E4A;
}

/* ── Text ───────────────────────────────────────────────────────── */
.sp-res-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sp-res-name {
    font-size: .84rem;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sp-res-hint {
    font-size: .72rem;
    color: #3B82F6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Right icon ─────────────────────────────────────────────────── */
.sp-res-ext {
    flex-shrink: 0;
    font-size: .9rem;
    color: #3B82F6;
    transition: color .15s;
}
.sp-res-row:hover .sp-res-ext {
    color: #1d4ed8;
}

/* ── Stats strip ─────────────────────────────────────────────────────── */
.sp-stats {
    background: #fff;
    border-bottom: 1px solid #e8edf4;
    padding: 2rem 0;
}

.sp-stats-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    gap: 1.25rem;
    align-items: stretch;
}

.sp-stat-card {
    flex: 1;
    background: #f4f7fa;
    border: 1px solid #e0e8f0;
    border-radius: 10px;
    padding: 1.25rem 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.sp-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #e8f0fa;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sp-stat-icon .mdi {
    font-size: 1.35rem;
    color: #1b6abf;
}

.sp-stat-number {
    font-family: 'Exo 2', sans-serif;
    font-weight: 800;
    font-size: 1.45rem;
    color: #0f1d3a;
    line-height: 1.1;
}

.sp-stat-label {
    font-size: 0.78rem;
    color: #5a6a80;
    line-height: 1.3;
    margin-top: 0.2rem;
}

/* ── Brands section ──────────────────────────────────────────────────── */
.sp-brands {
    padding: 3.5rem 0;
    background: #fff;
}

.sp-section-title {
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: #0f1d3a;
    margin-bottom: 1.5rem;
}

.sp-brands-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.75rem;
}

.sp-filter-btn {
    background: transparent;
    border: 1.5px solid #cad5e2;
    border-radius: 20px;
    padding: 0.35rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #3a4a65;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.sp-filter-btn[aria-pressed="true"],
.sp-filter-btn:hover {
    background: #1b2a52;
    border-color: #1b2a52;
    color: #fff;
}

.sp-search {
    margin-left: auto;
    position: relative;
}

.sp-search-input {
    border: 1.5px solid #cad5e2;
    border-radius: 20px;
    padding: 0.35rem 1rem 0.35rem 2.25rem;
    font-size: 0.85rem;
    color: #3a4a65;
    outline: none;
    transition: border-color 0.15s;
    width: 200px;
    background: transparent;
}

.sp-search-input:focus {
    border-color: #1b6abf;
}

.sp-search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #8a9bb0;
    font-size: 0.95rem;
    pointer-events: none;
}

.sp-brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.sp-brand-card {
    background: #fff;
    border: 1.5px solid #e0e8f0;
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    min-height: 90px;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
    text-decoration: none;
}

.sp-brand-card:hover {
    box-shadow: 0 4px 16px rgba(15, 29, 58, 0.12);
    border-color: #b0c4de;
}

.sp-brand-card--hidden {
    display: none;
}

.sp-brand-logo {
    max-width: 100px;
    max-height: 52px;
    object-fit: contain;
}

.sp-brands-empty {
    text-align: center;
    color: #666;
    padding: 3rem 0;
}

/* ── Advantages section ──────────────────────────────────────────────── */
.sp-advantages {
    background: #f4f7fa;
    padding: 3.5rem 0;
}

.sp-adv-card {
    background: #fff;
    border: 1px solid #e0e8f0;
    border-radius: 10px;
    padding: 1.5rem;
    height: 100%;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.sp-adv-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #e8f0fa;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sp-adv-icon .mdi {
    font-size: 1.4rem;
    color: #1b6abf;
}

.sp-adv-title {
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: #0f1d3a;
    margin-bottom: 0.35rem;
}

.sp-adv-text {
    font-size: 0.85rem;
    color: #5a6a80;
    line-height: 1.5;
    margin: 0;
}

/* ── CTA section ─────────────────────────────────────────────────────── */
.sp-cta {
    background: linear-gradient(135deg, #0f1d3a 0%, #1b3a6b 100%);
    padding: 4rem 0 1rem;
    text-align: center;
}

.sp-cta-title {
    font-family: 'Exo 2', sans-serif;
    font-weight: 800;
    font-size: 1.75rem;
    color: #fff;
    margin-bottom: 0.75rem;
}

.sp-cta-text {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 991px) {
    .sp-stats-inner {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .sp-stat-card {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: 0;
    }
}

@media (max-width: 575px) {
    .sp-brands-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 0.75rem;
    }

    .sp-search {
        margin-left: 0;
        width: 100%;
    }

    .sp-search-input {
        width: 100%;
    }

    .sp-brands-controls {
        gap: 0.5rem;
    }
}

@media (max-width: 575px) {
    .sp-stat-card {
        flex: 1 1 100%;
    }

    .sp-cta-title {
        font-size: 1.4rem;
    }
}

