
.vendor-section-header {
    margin: 0 0 22px;
}

.vendor-section-header > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    max-width: calc(100% - 48px);
    margin: 30px auto 0;

}

.vendor-section-header h2 {
    margin: 0;
    font-weight: 700;
    color: var(--market-text);
}


.vendor-layout {
display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    max-width: calc(100% - 48px);
    margin: 20px auto 0;
    align-items: start;

}


/* Vendor-only overrides on top of the shared .filter-sidebar /
   .filter-checkbox from category.css: wider column (long vendor
   names), smaller checkbox label text, and wrapping instead of
   overflow so long names don't get cut off. */

.vendor-layout .filter-checkbox {
    font-size: 12px;
    align-items: flex-start;
    line-height: 1.4;
}

.vendor-layout .filter-checkbox input {
    margin-top: 2px;
    flex: 0 0 auto;
}


/* VENDOR RESULTS */

.vendor-results {
    min-width: 0;
    width: 100%;
}


/* VENDOR GRID */

.vendor-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
}


/* VENDOR CARD */

.vendor-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-width: 0;

    padding: 20px 20px 20px;

    background: #ffffff;

    border: 1px solid #e5eaec;
    border-radius: 16px;

    text-align: center;
    text-decoration: none;

    box-sizing: border-box;

    overflow: hidden;

    transition:
        transform .22s ease,
        border-color .22s ease,
        box-shadow .22s ease;
}


/* subtle top accent */
.vendor-card::before {
    content: "";

    position: absolute;
    top: 0;
    left: 50%;

    width: 0;
    height: 3px;

    background: var(--market-teal);

    border-radius: 0 0 5px 5px;

    transform: translateX(-50%);

    transition: width .25s ease;
}


.vendor-card:hover {
    transform: translateY(-4px);

    border-color: #d5e5e7;

    box-shadow:
        0 10px 25px rgba(30, 70, 80, .09);
}


.vendor-card:hover::before {
    width: 55px;
}


/* VENDOR LOGO */

.vendor-logo-wrapper {
    position: relative;
    flex: 0 0 auto;
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 15px;
    background: #f3fbfb;
    border: 1px solid #dceff0;
    box-shadow:
        0 3px 10px rgba(30, 70, 80, .05);

    box-sizing: border-box;
    transition:
        transform .22s ease,
        box-shadow .22s ease,
        border-color .22s ease;
}


.vendor-card:hover .vendor-logo-wrapper {
    transform: scale(1.04);
    border-color: #c5e4e6;
    box-shadow:
        0 5px 14px rgba(30, 70, 80, .08);
}


.vendor-logo {
    width: 100%;
    height: 100%;
    padding: 5px;
    object-fit: contain;
}


/* LOGO PLACEHOLDER */

.vendor-logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eaf8f8;
    color: var(--market-teal);
    font-size: 23px;
}

.vendor-info {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}


/* VENDOR NAME */

.vendor-name {
    font-size: 14px;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
}


.vendor-card:hover .vendor-name {
    color: var(--market-teal-dark);
}


/* DIVIDER */

.vendor-divider {
    width: 100%;
    max-width: 200px;
    height: 1px;
    margin: 0 0 10px;
    border: 0;
    background:
        linear-gradient(
            to right,
            transparent,
            #e3e9eb 20%,
            #e3e9eb 80%,
            transparent
        );
}

.vendor-product-count {
    display: block;

    font-size: 14px;
    font-weight: 400;

    color: #666;

    text-align: center;

    background: transparent !important;
}


/* VIEW STORE BUTTON */

.view-store {
    display: inline-flex;
    margin-top: 10px;
    align-items: center;
    justify-content: center;

    gap: 6px;

    min-width: 94px;

    padding: 7px 14px;

    border-radius: 999px;

    background: var(--market-teal-soft);

    color: var(--market-teal-dark);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: .025em;

    transition:
        background .2s ease,
        color .2s ease,
        padding .2s ease,
        gap .2s ease;
}


.view-store::after {
    content: "→";

    font-size: 12px;

    line-height: 1;

    transition: transform .2s ease;
}


.vendor-card:hover .view-store {
    background: var(--market-teal);

    color: #ffffff;

    gap: 8px;
}


.vendor-card:hover .view-store::after {
    transform: translateX(2px);
}


/* EMPTY STATE */

.vendor-empty {
    padding: 70px 20px;

    text-align: center;

    background: #ffffff;

    border: 1px solid #e1e8eb;

    border-radius: 16px;
}


.empty-icon {
    width: 62px;
    height: 62px;

    margin: 0 auto 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #eefafa;

    color: var(--market-teal);

    font-size: 24px;
}


.vendor-empty h3 {
    margin: 0 0 7px;

    font-size: 15px;
    font-weight: 650;

    color: #173b56;
}


.vendor-empty p {
    margin: 0;

    font-size: 12px;

    color: #8a9aa5;
}


/* TABLET */

@media (max-width: 1150px) {

    .vendor-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 16px;
    }

}


/* MOBILE / TABLET */

@media (max-width: 900px) {

    .vendor-layout {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .vendor-results {
        width: 100%;
    }


    .vendor-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 12px;
    }


    .vendor-card {
        padding: 24px 16px 21px;
    }


    .vendor-logo-wrapper {
        width: 62px;
        height: 62px;

        margin-bottom: 14px;
    }


    .vendor-name {
        font-size: 12px;
    }


    .vendor-divider {
        margin-bottom: 13px;
    }


    .view-store {
        min-width: 88px;

        padding: 6px 12px;

        font-size: 9px;
    }

}


@media (max-width: 500px) {

    .vendor-grid {
        gap: 10px;
    }


    .vendor-card {
        padding: 21px 11px 18px;

        border-radius: 13px;
    }


    .vendor-card::before {
        height: 2px;
    }


    .vendor-logo-wrapper {
        width: 54px;
        height: 54px;

        margin-bottom: 12px;
    }


    .vendor-logo {
        padding: 4px;
    }


    .vendor-logo-placeholder {
        font-size: 19px;
    }


    .vendor-name {
        min-height: 34px;

        margin-bottom: 11px;

        font-size: 11px;

        line-height: 1.4;
    }


    .vendor-divider {
        max-width: 110px;

        margin-bottom: 12px;
    }


    .view-store {
        min-width: 78px;

        padding: 5px 10px;

        font-size: 8px;
    }


    .view-store::after {
        font-size: 10px;
    }

}


@media (max-width: 360px) {

    .vendor-grid {
        gap: 8px;
    }


    .vendor-card {
        padding: 18px 8px 16px;

        border-radius: 12px;
    }


    .vendor-logo-wrapper {
        width: 48px;
        height: 48px;

        margin-bottom: 10px;
    }


    .vendor-name {
        font-size: 10px;

        min-height: 31px;
    }


    .vendor-divider {
        max-width: 90px;

        margin-bottom: 10px;
    }


    .view-store {
        min-width: 70px;

        padding: 5px 8px;

        font-size: 7px;
    }

}