/* =========================================================
   VENDORS PAGE — store listing grid (.store-v2.vendors-v2)
========================================================= */
.store-v2.vendors-v2 .vendors-hero {
    padding: 24px 28px;
    margin: 16px 0 28px;
}

.store-v2.vendors-v2 .vendors-hero__top {
    margin-bottom: 16px;
}

.store-v2.vendors-v2 .vendors-hero__text {
    flex: 1;
    min-width: 0;
}

.store-v2.vendors-v2 .vendors-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 10px;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.4;
}

.store-v2.vendors-v2 .vendors-breadcrumb a {
    color: var(--muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    transition: color 0.2s var(--ease);
}

.store-v2.vendors-v2 .vendors-breadcrumb a:hover {
    color: var(--brand-dark);
}

.store-v2.vendors-v2 .vendors-breadcrumb__sep {
    flex-shrink: 0;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--line-2);
}

.store-v2.vendors-v2 .vendors-breadcrumb__current {
    color: var(--ink);
    font-weight: 600;
    white-space: nowrap;
}

.store-v2.vendors-v2 .vendors-hero__title {
    margin: 0 0 8px;
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink);
    line-height: 1.15;
}

.store-v2.vendors-v2 .vendors-hero__subtitle {
    margin: 0;
    max-width: 560px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--muted);
    overflow-wrap: anywhere;
}

/* Search — no divider; sits tighter under title */
.store-v2.vendors-v2 .vendors-hero .store-hero__search {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.store-v2.vendors-v2 .vendors-sidebar__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.store-v2.vendors-v2 .vendors-sidebar__field label {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
}

.store-v2.vendors-v2 .vendors-sidebar__field .sort-select {
    width: 100%;
    min-width: 0;
}

.store-v2.vendors-v2 .vendors-sidebar__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

/* Results grid */
.store-v2.vendors-v2 .vendors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 28px;
}

.store-v2.vendors-v2 .vendors-grid .store-slider-card {
    height: 100%;
}

.store-v2.vendors-v2 .vendors-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 24px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
}

.store-v2.vendors-v2 .vendors-empty i {
    font-size: 44px;
    color: var(--muted-2);
    display: block;
    margin-bottom: 12px;
}

.store-v2.vendors-v2 .vendors-empty h4 {
    margin: 0 0 8px;
    font-size: 18px;
    color: var(--ink);
}

.store-v2.vendors-v2 .vendors-empty p {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
}

.store-v2.vendors-v2 .vendors-pagination {
    margin-bottom: 48px;
}

/* Vendor type category page — matches homepage vendor-stores swiper card width */
.store-v2.vendor-type-v2 {
    padding-bottom: 48px;
}

.store-v2.vendor-type-v2 .vendor-type-section {
    padding-top: 8px;
}

.store-v2.vendor-type-v2 .vendor-type-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 20px;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.4;
}

.store-v2.vendor-type-v2 .vendor-type-breadcrumb a {
    color: var(--muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    transition: color 0.2s var(--ease);
}

.store-v2.vendor-type-v2 .vendor-type-breadcrumb a:hover {
    color: var(--brand-dark);
}

.store-v2.vendor-type-v2 .vendor-type-breadcrumb .vendors-breadcrumb__sep {
    flex-shrink: 0;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--line-2);
}

.store-v2.vendor-type-v2 .vendor-type-breadcrumb .vendors-breadcrumb__current {
    color: var(--ink);
    font-weight: 600;
}

.store-v2.vendor-type-v2 .vendor-type-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.store-v2.vendor-type-v2 .vendor-type-header__title {
    margin: 0 0 8px;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    color: var(--ink);
    line-height: 1.2;
}

.store-v2.vendor-type-v2 .vendor-stores-header__subtitle {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: var(--muted);
}

.store-v2.vendor-type-v2 .vendor-stores-header__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.store-v2.vendor-type-v2 .vendor-type-count {
    font-size: 14px;
    color: var(--muted);
    white-space: nowrap;
}

.store-v2.vendor-type-v2 .vendor-type-count strong {
    color: var(--ink);
    font-weight: 700;
}

.store-v2.vendor-type-v2 .vendor-stores-view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-dark);
    text-decoration: none;
    transition: color 0.2s var(--ease);
}

.store-v2.vendor-type-v2 .vendor-stores-view-all:hover {
    color: var(--brand);
}

/* Same column count as homepage swiper: 3 / 2 / 1 */
.store-v2.vendor-type-v2 .vendor-type-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.store-v2.vendor-type-v2 .vendor-type-grid .store-slider-card {
    width: 100%;
    min-width: 0;
    height: 100%;
}

/* Branches page — 4 cards per row, product-card look */
.store-v2.vendor-type-v2 .vendor-type-branches-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.store-v2.vendor-type-v2 .vendor-type-branches-grid .vt-branch-product-card {
    height: 100%;
    min-width: 0;
}

.store-v2.vendor-type-v2 .vt-branch-product-card .product-img-canvas {
    height: 180px !important;
}

.store-v2.vendor-type-v2 .vt-branch-product-card .product-content-wrap {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.store-v2.vendor-type-v2 .vt-branch-product-card .product-card-bottom {
    margin-top: auto;
}

.store-v2.vendor-type-v2 .vt-branch-product-card .product-card-bottom .product-price > span:first-child {
    font-size: 13px;
    font-weight: 700;
    color: #7e7e7e;
}

.store-v2.vendor-type-v2 .vendors-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 24px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
}

.store-v2.vendor-type-v2 .vendors-empty i {
    font-size: 44px;
    color: var(--muted-2);
    display: block;
    margin-bottom: 12px;
}

.store-v2.vendor-type-v2 .vendors-empty h4 {
    margin: 0 0 8px;
    font-size: 18px;
    color: var(--ink);
}

.store-v2.vendor-type-v2 .vendors-empty__cta {
    display: inline-flex;
    margin-top: 16px;
}

@media (max-width: 1199px) {
    .store-v2.vendor-type-v2 .vendor-type-branches-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 16px;
    }

    .store-v2.vendor-type-v2 .vt-branch-product-card .product-img-canvas {
        height: 160px !important;
    }
}

@media (max-width: 991px) {
    .store-v2.vendor-type-v2 .vendor-type-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .store-v2.vendor-type-v2 .vendor-type-branches-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }

    .store-v2.vendor-type-v2 .vt-branch-product-card .product-img-canvas {
        height: 150px !important;
    }
}

@media (max-width: 767px) {
    .store-v2.vendor-type-v2 .vendor-type-branches-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .store-v2.vendor-type-v2 .vt-branch-product-card .product-img-canvas {
        height: 140px !important;
    }

    .store-v2.vendor-type-v2 .vt-branch-product-card .product-content-wrap h2 {
        font-size: 13px;
    }

    .store-v2.vendor-type-v2 .vt-branch-product-card .product-card-bottom .add-cart .add span {
        display: none;
    }
}

@media (max-width: 575px) {
    .store-v2.vendor-type-v2 .vendor-type-header {
        margin-bottom: 20px;
    }

    .store-v2.vendor-type-v2 .vendor-type-header__title {
        font-size: 22px;
    }

    .store-v2.vendor-type-v2 .vendor-stores-header__subtitle {
        font-size: 14px;
    }

    .store-v2.vendor-type-v2 .vendor-stores-header__actions {
        width: 100%;
        justify-content: space-between;
    }

    .store-v2.vendor-type-v2 .vendor-type-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .store-v2.vendor-type-v2 .vendor-type-branches-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .store-v2.vendor-type-v2 .vt-branch-product-card .product-img-canvas {
        height: 120px !important;
    }
}

/* Legacy vendor-type rules (vendors-v2 combo) — keep for backwards compat */
.store-v2.vendor-type-v2 .vendor-type-hero {
    margin-bottom: 8px;
}

.store-v2.vendor-type-v2 .vendor-stores-list {
    padding-bottom: 48px;
}

.store-v2.vendor-type-v2 .vendors-toolbar {
    margin-bottom: 20px;
}

/* Toolbar per-page on desktop only in sidebar */

@media (max-width: 768px) {
    .store-v2.vendors-v2 .vendors-hero {
        padding: 18px 16px;
        margin: 8px 0 20px;
    }

    .store-v2.vendors-v2 .vendors-hero__top {
        margin-bottom: 12px;
    }

    .store-v2.vendors-v2 .vendors-hero__title {
        font-size: 24px;
        margin-bottom: 6px;
    }

    .store-v2.vendors-v2 .vendors-hero__subtitle {
        font-size: 13px;
        max-width: none;
    }

    .store-v2.vendors-v2 .vendors-hero .store-search {
        position: relative;
    }

    .store-v2.vendors-v2 .vendors-hero .store-search input {
        height: 46px;
        padding-inline-start: 44px;
        font-size: 14px;
    }

    .store-v2.vendors-v2 .vendors-hero .store-search button {
        width: 100%;
        margin: 0;
        height: 44px;
        padding: 0 16px;
    }

    .store-v2.vendors-v2 .vendors-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .store-v2.vendors-v2 .vendors-toolbar {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "count count"
            "filters filters";
        gap: 8px;
        padding: 12px;
    }

    .store-v2.vendors-v2 .vendors-toolbar .store-toolbar__count {
        grid-area: count;
        width: 100%;
        order: unset;
        font-size: 13px;
        text-align: start;
    }

    .store-v2.vendors-v2 .vendors-toolbar .store-filters-btn {
        grid-area: filters;
        order: unset;
        width: 100%;
        justify-content: center;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .store-v2.vendors-v2 .vendors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

@media (max-width: 360px) {
    .store-v2.vendors-v2 .vendors-grid {
        grid-template-columns: 1fr;
    }
}
