/* ═══════════════════════════════════════════════════════════
   Vendor / Supplier cards (.vc-*)
   Loaded via @push('css') inside the vendor-card partial.
   ═══════════════════════════════════════════════════════════ */

/* ── 4-column grids — equal width, equal height per row ─── */
.vc-grid,
.vd-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    align-items: stretch;
}
@media (max-width: 1199px) {
    .vc-grid, .vd-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
    .vc-grid, .vd-grid { grid-template-columns: 1fr; }
}

/* ── Horizontal scroll for similar vendors ──────────────── */
.vc-scroll-outer {
    position: relative;
}
.vc-scroll-track {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
}
.vc-scroll-track::-webkit-scrollbar { display: none; }
.vc-scroll-track .vc-card {
    flex: 0 0 calc(25% - 14px);
    min-width: 240px;
    height: auto;
}
.vc-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px; height: 36px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    color: #475569;
    font-size: .85rem;
    transition: border-color .15s, color .15s, box-shadow .15s;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.vc-scroll-btn:hover { border-color: #038a52; color: #038a52; }
.vc-scroll-btn.prev { left: -18px; }
.vc-scroll-btn.next { right: -18px; }
.vc-scroll-btn.hidden { opacity: 0; pointer-events: none; }

/* ── Card shell ─────────────────────────────────────────── */
.vc-card {
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    padding: 20px;
    height: 100%;
    box-sizing: border-box;
    text-decoration: none;
    color: inherit;
    transition: transform .18s, box-shadow .18s, border-color .18s;
}
.vc-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,.08);
    border-color: #038a52;
    text-decoration: none;
    color: inherit;
}

/* ── Row 1: avatar + name ────────────────────────────────── */
.vc-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}
.vc-avatar-wrap { flex-shrink: 0; }
.vc-avatar-img {
    width: 50px; height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e8f5ee;
    display: block;
}
.vc-avatar-init {
    width: 50px; height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
}
.vc-nameblock { flex: 1; min-width: 0; }
.vc-name {
    display: block;
    font-size: .9rem;
    font-weight: 700;
    color: #1a2332;
    line-height: 1.3;
    word-break: break-word;
}

/* ── Row 2: verified badge + category ───────────────────── */
.vc-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.vc-verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .68rem;
    color: #038a52;
    font-weight: 600;
}
.vc-verified i { font-size: .72rem; }
.vc-badge {
    font-size: .6rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 6px;
    white-space: nowrap;
}

/* ── Divider ────────────────────────────────────────────── */
.vc-divider {
    height: 1px;
    background: #f0f4f8;
    margin-bottom: 12px;
}

/* ── Rating ─────────────────────────────────────────────── */
.vc-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.vc-stars { color: #f59e0b; font-size: .75rem; letter-spacing: 1px; }
.vc-star-empty { color: #d1d5db; }
.vc-rating-num { font-size: .85rem; font-weight: 700; color: #1a2332; }
.vc-review-count { font-size: .72rem; color: #94a3b8; }
.vc-no-reviews { font-style: italic; }
.vc-new-badge {
    background: #f47c04;
    color: #fff;
    font-size: .6rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    letter-spacing: .04em;
}

/* ── Specialty tags ─────────────────────────────────────── */
.vc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 12px;
}
.vc-tag {
    background: #f1f5f9;
    color: #475569;
    font-size: .7rem;
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    white-space: nowrap;
}

/* ── Info rows ──────────────────────────────────────────── */
.vc-info { flex: 1; margin-bottom: 12px; }
.vc-info-row {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: .76rem;
    color: #64748b;
    margin-bottom: 6px;
    line-height: 1.4;
}
.vc-info-row i {
    font-size: .88rem;
    color: #94a3b8;
    flex-shrink: 0;
    width: 14px;
    text-align: center;
}

/* ── Footer ─────────────────────────────────────────────── */
.vc-foot {
    border-top: 1px solid #f0f4f8;
    padding-top: 10px;
    display: flex;
    justify-content: flex-end;
}
.vc-listings {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: .72rem;
    color: #94a3b8;
}
.vc-listings i { font-size: .8rem; }
