
.vendor-detail-page {
    width: calc(100% - 60px);
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 0 60px;
    box-sizing: border-box;
}

/* Breadcrumb */
.vendor-detail-page .breadcrumb {
    margin: 18px 0 14px;
    font-size: 12px;
    color: #8a9aa5;
}

.vendor-detail-page .breadcrumb a {
    color: #78909c;
    text-decoration: none;
}

.vendor-detail-page .breadcrumb a:hover {
    color: #00a6ad;
}

.vendor-detail-page .breadcrumb .active {
    color: #173b56;
    font-weight: 500;
}

.vendor-banner {
    display: flex;
    align-items: center;
    gap: 18px;

    width: 100%;
    min-height: 105px;

    padding: 18px 22px;

    background: #ffffff;
    border: 1px solid #e1e8eb;
    border-radius: 12px;

    box-sizing: border-box;
}

.vendor-banner .logo {
    width: 64px;
    height: 64px;

    flex: 0 0 64px;

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

    background: #f5f7f8;
    border: 1px solid #e7ecef;
    border-radius: 10px;

    overflow: hidden;
}

.vendor-banner .logo img {
    width: 100%;
    height: 100%;
    padding: 7px;
    object-fit: contain;
    box-sizing: border-box;
}

.vendor-banner .logo i {
    font-size: 25px;
    color: #16a3aa;
}

.vendor-banner h1 {
    margin: 0 0 7px;

    font-size: 20px;
    line-height: 1.3;
    font-weight: 600;

    color: #173b56;
}

.vendor-banner .meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;

    font-size: 11px;
    color: #8a9aa5;
}

.vendor-banner .meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.vendor-banner .meta i {
    font-size: 11px;
}

.vendor-products-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin: 26px 0 14px;
}

.vendor-products-header h2 {
    margin: 0;

    font-size: 19px;
    line-height: 1.3;
    font-weight: 600;

    color: #173b56;
}

.vendor-products-count {
    font-size: 12px;
    color: #607d8b;
}

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


.vendor-product-card {
    display: flex;
    flex-direction: column;

    min-width: 0;
    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e1e8eb;
    border-radius: 11px;

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

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

    border-color: #c8dfe1;

    box-shadow: 0 5px 16px rgba(30, 70, 80, 0.08);
}


/* Product image */
.vendor-product-card .thumb {
    display: block;

    width: 100%;
    aspect-ratio: 1 / 1;

    overflow: hidden;

    background: #f5f6f7;
}

.vendor-product-card .thumb img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;

    transition: transform 0.25s ease;
}

.vendor-product-card:hover .thumb img {
    transform: scale(1.02);
}

.vendor-product-info {
    display: flex;
    flex-direction: column;

    flex: 1;

    padding: 11px 12px 12px;
}

.vendor-product-card .name {
    margin: 0;

    min-height: 36px;

    font-size: 12px;
    line-height: 1.5;
    font-weight: 500;

    color: #173b56;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
}


/* Price + cart */
.vendor-product-card .price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 10px;
}

.vendor-product-card .price {
    font-size: 14px;
    font-weight: 700;

    color: #079da5;
}

.vendor-product-card .cart-btn {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: var(--market-teal-soft);
    color: var(--market-teal);
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.vendor-product-card .cart-btn:hover {
    background: #eafafa;
    border-color: #b9dfe1;
}

.vendor-product-card .cart-btn i {
    font-size: 14px;
}


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

    text-align: center;

    background: #ffffff;
    border: 1px solid #e1e8eb;
    border-radius: 12px;
}

.vendor-empty .empty-icon {
    width: 60px;
    height: 60px;

    margin: 0 auto 14px;

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

    border-radius: 50%;

    background: #eefafa;
    color: #16a3aa;

    font-size: 24px;
}

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

    font-size: 15px;
    color: #173b56;
}

.vendor-empty p {
    margin: 0;

    font-size: 12px;
    color: #8a9aa5;
}


@media (max-width: 1100px) {

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

}


@media (max-width: 768px) {

    .vendor-detail-page {
        width: calc(100% - 24px);
        padding-bottom: 30px;
    }

    .vendor-banner {
        min-height: auto;
        padding: 15px;

        gap: 13px;
    }

    .vendor-banner .logo {
        width: 55px;
        height: 55px;
        flex-basis: 55px;
    }

    .vendor-banner h1 {
        font-size: 16px;
    }

    .vendor-banner .meta {
        gap: 8px 12px;
        font-size: 10px;
    }

    .vendor-products-header {
        margin-top: 20px;
        margin-bottom: 12px;
    }

    .vendor-products-header h2 {
        font-size: 16px;
    }

    .vendor-products-count {
        font-size: 11px;
    }

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

    .vendor-product-info {
        padding: 9px 10px 10px;
    }

    .vendor-product-card .name {
        font-size: 11px;
        min-height: 33px;
    }

    .vendor-product-card .price {
        font-size: 12px;
    }

    .vendor-product-card .cart-btn {
        width: 28px;
        height: 28px;
    }
}


@media (max-width: 430px) {

    .vendor-detail-page {
        padding-left: 10px;
        padding-right: 10px;
    }

    .vendor-banner {
        padding: 12px;
    }

    .vendor-banner .logo {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }

    .vendor-banner h1 {
        font-size: 14px;
    }

    .vendor-banner .meta {
        font-size: 9px;
    }

    .vendor-products-header h2 {
        font-size: 14px;
    }

    .vendor-products-count {
        font-size: 10px;
    }

    .vendor-product-grid {
        gap: 8px;
    }
}