/* Public vendor directory */

.vendor-list-page {
    background: #f8fafc;
    padding-top: 1.25rem;
}

.vendor-list-page .container {
    max-width: 1240px;
}

/* Breadcrumb */
.vendor-list-breadcrumb {
    margin-bottom: 1rem;
}

.vendor-list-breadcrumb .breadcrumb {
    background: transparent;
    margin: 0;
    padding: 0;
}

.vendor-list-breadcrumb .breadcrumb-item,
.vendor-list-breadcrumb .breadcrumb-item a {
    color: #667085;
    font-size: 0.84rem;
    font-weight: 600;
}

.vendor-list-breadcrumb .breadcrumb-item a:hover {
    color: #443297;
}

.vendor-list-breadcrumb .breadcrumb-item.active {
    color: #101828;
}

/* Page header */
.vendor-list-header {
    margin-bottom: 1.5rem;
}

.vendor-list-header__title {
    color: #101828;
    font-size: clamp(1.5rem, 2.5vw, 1.875rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0 0 0.45rem;
}

.vendor-list-header__subtitle {
    color: #667085;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    max-width: 42rem;
}

/* Controls: search + toolbar */
.vendor-list-controls {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.35rem;
}

.vendor-list-search {
    margin: 0;
    width: 100%;
}

.vendor-list-search__inner {
    align-items: stretch;
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
    display: flex;
    gap: 0.45rem;
    overflow: hidden;
    padding: 0.45rem;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.vendor-list-search__inner:focus-within {
    border-color: rgba(68, 50, 151, 0.35);
    box-shadow: 0 10px 28px rgba(16, 24, 40, 0.08), 0 0 0 3px rgba(68, 50, 151, 0.1);
}

.vendor-list-search__icon {
    align-items: center;
    color: #98a2b3;
    display: none;
    flex-shrink: 0;
    font-size: 0.9rem;
    justify-content: center;
    padding-left: 0.55rem;
    width: 1.25rem;
}

.vendor-list-search__input {
    appearance: none;
    background: #f9fafb;
    border: 1px solid #eef2f6;
    border-radius: 10px;
    color: #101828;
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.35;
    min-height: 48px;
    min-width: 0;
    outline: none;
    padding: 0 0.95rem;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.vendor-list-search__inner:focus-within .vendor-list-search__input {
    background: #fff;
    border-color: rgba(68, 50, 151, 0.18);
}

.vendor-list-search__input::placeholder {
    color: #98a2b3;
}

.vendor-list-search__input::-webkit-search-cancel-button {
    display: none;
}

.vendor-list-search__clear {
    align-items: center;
    align-self: center;
    background: #f2f4f7;
    border-radius: 999px;
    color: #667085;
    display: inline-flex;
    flex-shrink: 0;
    font-size: 0.78rem;
    height: 2rem;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
    width: 2rem;
}

.vendor-list-search__clear:hover {
    background: #eaecf0;
    color: #443297;
    text-decoration: none;
}

.vendor-list-search__submit {
    align-items: center;
    background: #443297;
    border: 0;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    flex-shrink: 0;
    font-size: 0.875rem;
    font-weight: 600;
    gap: 0.4rem;
    justify-content: center;
    min-height: 48px;
    padding: 0 1.15rem;
    transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
    white-space: nowrap;
}

.vendor-list-search__submit:hover,
.vendor-list-search__submit:focus-visible {
    background: #352678;
    box-shadow: 0 8px 18px rgba(68, 50, 151, 0.24);
    outline: none;
    transform: translateY(-1px);
}

.vendor-list-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.vendor-list-filter-tag {
    align-items: center;
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 999px;
    color: #667085;
    display: inline-flex;
    font-size: 0.84rem;
    gap: 0.45rem;
    padding: 0.35rem 0.55rem 0.35rem 0.75rem;
}

.vendor-list-filter-tag i:first-child {
    color: #443297;
    font-size: 0.78rem;
}

.vendor-list-filter-tag strong {
    color: #344054;
}

.vendor-list-filter-tag__clear {
    align-items: center;
    border-radius: 999px;
    color: #667085;
    display: inline-flex;
    font-size: 0.78rem;
    height: 1.35rem;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
    width: 1.35rem;
}

.vendor-list-filter-tag__clear:hover {
    background: #f2f4f7;
    color: #443297;
    text-decoration: none;
}

/* Toolbar */
.vendor-list-toolbar {
    align-items: center;
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1.25rem;
    justify-content: space-between;
    padding: 0.85rem 1.15rem;
}

.vendor-list-toolbar__summary {
    color: #475467;
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0;
}

.vendor-list-toolbar__summary strong {
    color: #101828;
    font-weight: 700;
}

.vendor-list-toolbar__summary--empty {
    color: #667085;
}

.vendor-list-toolbar__sort {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.vendor-list-toolbar__sort-label {
    color: #667085;
    font-size: 0.8125rem;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
}

.vendor-list-toolbar__sort-select {
    appearance: none;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23667085' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 0.85rem center;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    color: #344054;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    min-height: 40px;
    min-width: 190px;
    padding: 0 2.25rem 0 0.85rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.vendor-list-toolbar__sort-select:hover {
    border-color: #98a2b3;
}

.vendor-list-toolbar__sort-select:focus {
    border-color: #443297;
    box-shadow: 0 0 0 3px rgba(68, 50, 151, 0.12);
    outline: none;
}

/* Card grid */
.vendor-list-grid {
    display: grid;
    gap: 1.15rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.vendor-card {
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.vendor-card:hover {
    border-color: #c9c4e8;
    box-shadow: 0 10px 28px rgba(16, 24, 40, 0.08);
    transform: translateY(-2px);
}

.vendor-card__link {
    color: inherit;
    display: flex;
    flex: 1;
    flex-direction: column;
    text-decoration: none;
}

.vendor-card__link:hover,
.vendor-card__link:focus-visible {
    color: inherit;
    outline: none;
    text-decoration: none;
}

.vendor-card__media {
    align-items: center;
    background: linear-gradient(145deg, #fafafa 0%, #f2f4f7 100%);
    border-bottom: 1px solid #eef2f6;
    display: flex;
    height: 148px;
    justify-content: center;
    overflow: hidden;
    padding: 1.15rem;
    position: relative;
}

.vendor-card__logo {
    align-items: center;
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(16, 24, 40, 0.06);
    display: inline-flex;
    height: 88px;
    justify-content: center;
    overflow: hidden;
    width: 88px;
}

.vendor-card__logo img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.vendor-card__verified {
    align-items: center;
    background: #f6fef9;
    border: 1px solid #abefc6;
    border-radius: 999px;
    color: #067647;
    display: inline-flex;
    font-size: 0.68rem;
    font-weight: 700;
    gap: 0.25rem;
    line-height: 1;
    padding: 0.22rem 0.5rem;
    position: absolute;
    right: 0.75rem;
    top: 0.75rem;
}

.vendor-card__verified i {
    font-size: 0.65rem;
}

.vendor-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.65rem;
    padding: 1rem 1.05rem 0.35rem;
}

.vendor-card__title {
    color: #101828;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.35;
    margin: 0;
}

.vendor-card__excerpt {
    -webkit-box-orient: vertical;
    color: #667085;
    display: -webkit-box;
    font-size: 0.8125rem;
    -webkit-line-clamp: 2;
    line-height: 1.45;
    margin: 0;
    overflow: hidden;
}

.vendor-card__rating {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
}

.vendor-card__stars {
    align-items: center;
    display: inline-flex;
    gap: 0.06rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.vendor-card__stars li {
    color: #f59e0b;
    font-size: 0.72rem;
    line-height: 1;
}

.vendor-card__stars li.is-empty {
    color: #d0d5dd;
}

.vendor-card__rating-score {
    color: #344054;
    font-size: 0.8125rem;
    font-weight: 700;
}

.vendor-card__rating-count {
    color: #667085;
    font-size: 0.78rem;
    font-weight: 500;
}

.vendor-card__meta {
    display: grid;
    gap: 0.4rem;
    margin-top: auto;
}

.vendor-card__meta-item {
    align-items: flex-start;
    color: #667085;
    display: flex;
    font-size: 0.8125rem;
    gap: 0.45rem;
    line-height: 1.4;
}

.vendor-card__meta-item i {
    color: #98a2b3;
    flex-shrink: 0;
    font-size: 0.78rem;
    margin-top: 0.15rem;
    width: 0.9rem;
}

.vendor-card__footer {
    padding: 0.65rem 1.05rem 1.05rem;
}

.vendor-card__cta {
    align-items: center;
    background: #443297;
    border: 1px solid #443297;
    border-radius: 8px;
    color: #fff;
    display: inline-flex;
    font-size: 0.875rem;
    font-weight: 600;
    gap: 0.4rem;
    justify-content: center;
    min-height: 40px;
    padding: 0 1rem;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    width: 100%;
}

.vendor-card__cta:hover,
.vendor-card__cta:focus-visible,
.vendor-card:hover .vendor-card__cta {
    background: #352678;
    border-color: #352678;
    color: #fff;
    outline: none;
    text-decoration: none;
}

.vendor-card__cta i {
    color: #fff;
    font-size: 0.72rem;
    transition: transform 0.15s ease;
}

.vendor-card__cta:hover i,
.vendor-card__cta:focus-visible i,
.vendor-card:hover .vendor-card__cta i {
    color: #fff;
    transform: translateX(2px);
}

/* Empty state */
.vendor-list-empty {
    background: #fff;
    border: 1px dashed #d0d5dd;
    border-radius: 14px;
    padding: 3rem 1.5rem;
    text-align: center;
}

.vendor-list-empty__icon {
    align-items: center;
    background: #f4f3ff;
    border-radius: 999px;
    color: #443297;
    display: inline-flex;
    font-size: 1.35rem;
    height: 3.5rem;
    justify-content: center;
    margin-bottom: 1rem;
    width: 3.5rem;
}

.vendor-list-empty__title {
    color: #101828;
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 0.4rem;
}

.vendor-list-empty__text {
    color: #667085;
    font-size: 0.9rem;
    margin: 0 auto;
    max-width: 26rem;
}

.vendor-list-empty__btn {
    margin-top: 1rem;
    min-width: 140px;
}

/* Pagination */
.vendor-list-page .mbp_pagination {
    margin-top: 2rem;
}

.vendor-list-page .page_navigation .page-link {
    border-radius: 10px;
}

.vendor-list-page .pagination_page_count {
    color: #667085;
    font-size: 0.84rem;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 1199.98px) {
    .vendor-list-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .vendor-list-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vendor-list-search__icon {
        display: inline-flex;
    }

    .vendor-list-search__input {
        padding-left: 0.35rem;
    }
}

@media (max-width: 575.98px) {
    .vendor-list-controls {
        gap: 0.65rem;
        margin-bottom: 1.1rem;
    }

    .vendor-list-search__inner {
        flex-wrap: wrap;
        gap: 0.4rem;
        padding: 0.4rem;
    }

    .vendor-list-search__input {
        flex: 1 1 100%;
        font-size: 16px;
        min-height: 46px;
        order: 1;
        width: 100%;
    }

    .vendor-list-search__icon {
        display: none;
    }

    .vendor-list-search__clear {
        order: 2;
    }

    .vendor-list-search__submit {
        flex: 1;
        min-height: 46px;
        order: 3;
        width: auto;
    }

    .vendor-list-search__submit span {
        display: inline;
    }

    .vendor-list-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .vendor-list-toolbar__sort {
        width: 100%;
    }

    .vendor-list-toolbar__sort-select {
        flex: 1;
        min-width: 0;
        width: 100%;
    }

    .vendor-list-grid {
        grid-template-columns: 1fr;
    }

    .vendor-card__media {
        height: 132px;
    }
}
