/**
 * VFK Vendor Directory — consumer-facing vendor listing.
 * Rendered by VFK_Vendor_Directory::render() ([vfk_vendor_directory]).
 * @since 6.43.0
 */

.vfk-vd {
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr;
    margin: 16px 0;
}
@media ( min-width: 640px ) {
    .vfk-vd--cols-2, .vfk-vd--cols-3, .vfk-vd--cols-4 { grid-template-columns: repeat( 2, 1fr ); }
}
@media ( min-width: 960px ) {
    .vfk-vd--cols-3 { grid-template-columns: repeat( 3, 1fr ); }
    .vfk-vd--cols-4 { grid-template-columns: repeat( 4, 1fr ); }
}

.vfk-vd__card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.06 );
    transition: box-shadow 0.15s ease, transform 0.05s ease;
}
.vfk-vd__card:hover {
    box-shadow: 0 4px 14px rgba( 0, 0, 0, 0.10 );
}

.vfk-vd__media {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
    background: #f3f4f6;
    overflow: hidden;
}
.vfk-vd__logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.vfk-vd__icon {
    width: 72px;
    height: 72px;
    object-fit: contain;
    opacity: 0.85;
}

.vfk-vd__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px 16px;
}

.vfk-vd__head {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.vfk-vd__name {
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.25;
    color: #111827;
    text-decoration: none;
}
.vfk-vd__name:hover { text-decoration: underline; }

/* Rating */
.vfk-vd__rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #4b5563;
}
.vfk-vd__rating-avg { font-weight: 700; color: #111827; }
.vfk-vd__rating-count { color: #6b7280; }
.vfk-vd__rating--none .vfk-vd__rating-label { color: #9ca3af; font-style: italic; }

/* Overlaid stars: grey base, gold clipped overlay sized by width %. */
.vfk-vd__stars {
    position: relative;
    display: inline-block;
    white-space: nowrap;
    line-height: 1;
    font-size: 1rem;
}
.vfk-vd__stars-bg { color: #d1d5db; }
.vfk-vd__stars-fg {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    color: #f59e0b;
}

/* Tags */
.vfk-vd__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.vfk-vd__tag {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    background: #eef2f7;
    color: #374151;
    font-size: 0.74rem;
    font-weight: 600;
    line-height: 1.5;
}

.vfk-vd__desc {
    margin: 0;
    color: #4b5563;
    font-size: 0.9rem;
    line-height: 1.45;
}

/* Latest review snippet */
.vfk-vd__review {
    margin: 4px 0 0;
    padding: 10px 12px;
    background: #fafafa;
    border-left: 3px solid #f59e0b;
    border-radius: 6px;
    font-size: 0.86rem;
    color: #374151;
}
.vfk-vd__review-quote { font-style: italic; }
.vfk-vd__review-author {
    display: block;
    margin-top: 4px;
    font-size: 0.78rem;
    color: #6b7280;
    font-style: normal;
}

.vfk-vd__empty {
    color: #6b7280;
    font-style: italic;
    padding: 12px 0;
}
