/* ============================================
   Vendor Profile Page Styles
   ============================================ */

/* --- Stats Bar --- */
.vfe-vendor-stats-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 20px 0 30px;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.vfe-vendor-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 180px;
    min-width: 0;
    padding: 10px 16px;
    background: #f8fafc;
    border-radius: 8px;
}

.vfe-vendor-stat-icon {
    font-size: 1.6em;
    line-height: 1;
    flex-shrink: 0;
}

.vfe-vendor-stat-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.vfe-vendor-stat-value {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vfe-vendor-stat-label {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}

.vfe-vendor-stat-stars {
    display: inline;
    margin-left: 4px;
    font-size: 0.85em;
}

/* --- Star Rating --- */
.vfe-star-rating {
    display: inline-flex;
    gap: 1px;
    vertical-align: middle;
}

.vfe-star {
    font-style: normal;
    line-height: 1;
}

.vfe-star-full {
    color: #f59e0b;
}

.vfe-star-half {
    color: #f59e0b;
    opacity: 0.6;
}

.vfe-star-empty {
    color: #cbd5e1;
}

/* --- About Section --- */
.vfe-vendor-about {
    margin: 0 0 30px;
    padding: 24px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.vfe-vendor-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.vfe-vendor-description {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 15px;
}

.vfe-vendor-description p:last-child {
    margin-bottom: 0;
}

/* --- Contact Grid --- */
.vfe-vendor-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.vfe-vendor-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #f8fafc;
    border-radius: 6px;
    font-size: 14px;
    color: #334155;
}

.vfe-vendor-contact-icon {
    font-size: 1.1em;
    flex-shrink: 0;
    line-height: 1;
}

.vfe-vendor-contact-item a {
    color: #2563eb;
    text-decoration: none;
    word-break: break-all;
}

.vfe-vendor-contact-item a:hover {
    text-decoration: underline;
}

/* --- Social Links --- */
.vfe-vendor-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.vfe-vendor-social-link {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    color: #475569;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.vfe-vendor-social-link:hover {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

/* --- Reviews Section --- */
.vfe-vendor-reviews {
    margin: 30px 0;
    padding: 24px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.vfe-vendor-avg-badge {
    font-size: 14px;
    font-weight: 600;
    color: #f59e0b;
    margin-left: 10px;
    vertical-align: middle;
}

.vfe-vendor-avg-badge small {
    color: #94a3b8;
    font-weight: 400;
    margin-left: 2px;
}

/* --- Review List --- */
.vfe-review-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.vfe-review-card {
    padding: 18px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.vfe-review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 12px;
}

.vfe-review-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.vfe-review-author {
    font-size: 15px;
    color: #1e293b;
}

.vfe-review-date {
    font-size: 12px;
    color: #94a3b8;
}

.vfe-review-stars {
    flex-shrink: 0;
    font-size: 16px;
}

.vfe-review-text {
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.vfe-review-text p:last-child {
    margin-bottom: 0;
}

.vfe-review-product {
    font-size: 12px;
    color: #94a3b8;
    border-top: 1px solid #e2e8f0;
    padding-top: 8px;
}

.vfe-review-product a {
    color: #64748b;
    text-decoration: none;
}

.vfe-review-product a:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .vfe-vendor-stats-bar {
        flex-direction: column;
        gap: 10px;
        padding: 14px;
    }

    .vfe-vendor-stat {
        flex: 1 1 100%;
        padding: 10px 12px;
    }

    .vfe-vendor-about {
        padding: 16px;
    }

    .vfe-vendor-contact-grid {
        grid-template-columns: 1fr;
    }

    .vfe-vendor-reviews {
        padding: 16px;
    }

    .vfe-review-header {
        flex-direction: column;
    }

    .vfe-vendor-section-title {
        font-size: 18px;
    }
}

/* --- Product Grid Section --- */
.vfe-vendor-products-grid-section {
    margin: 40px 0;
    padding: 0 5px;
}

.vfe-products-compact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 25px;
}

.vfe-product-compact-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none !important;
    color: #1e293b !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f5f9;
    height: 100%;
}

.vfe-product-compact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #0ea5e9;
}

.vfe-product-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform 0.5s ease;
}

.vfe-product-compact-card:hover .vfe-product-image {
    transform: scale(1.05);
}

.vfe-product-details {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
    z-index: 1;
}

.vfe-product-details h4 {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 800;
    color: #0f172a !important;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vfe-product-meta-small {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 14px;
    color: #64748b;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
}

.vfe-product-meta-small span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.vfe-product-price-row {
    margin-top: auto;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.vfe-price-label {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.vfe-product-price-row .price {
    font-size: 20px;
    font-weight: 800;
    color: #0ea5e9 !important;
}

.vfe-product-price-row .price del {
    font-size: 14px;
    color: #94a3b8;
    margin-right: 5px;
}

.vfe-product-price-row .price ins {
    text-decoration: none;
}