/* ============================================
   PUBLIC STORE — Chrono24 Style
   ============================================ */

/* Base container */
.wf-public-store-container {
    max-width: 1250px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: 'Wix Madefor Text', sans-serif;
    color: #E1E4EB;
}

.wf-store-header {
    background: transparent;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    overflow: hidden;
    margin-bottom: 28px;
    border: 1px solid #525f7a;
}

/* Wide blue banner */
.wf-store-banner {
    height: 200px;
    background: linear-gradient(120deg, #0a1628 0%, #1a2f52 50%, #0d2141 100%);
    position: relative;
}

/* Identity row: avatar + name block + trust badge */
.wf-store-identity {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 0 40px 28px;
    margin-top: -48px;
    position: relative;
    z-index: 2;
}

/* Circular avatar */
.wf-store-avatar-wrap {
    position: relative;
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    background: #fff;
    overflow: visible;
}

.wf-store-avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.wf-store-avatar-initials {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a2f52, #2563EB);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -1px;
}

/* Green verified dot on avatar */
.wf-avatar-verified-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 26px;
    height: 26px;
    background: #0ea472;
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.wf-avatar-verified-dot svg {
    width: 13px;
    height: 13px;
}

/* Name block */
.wf-store-name-block {
    flex-grow: 1;
    padding-top: 56px; /* push down below the banner overlap */
}

.wf-store-name-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.wf-store-title {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    color: #0d1b2e;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

/* Inline verified badge */
.wf-verified-badge-inline {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #0ea472;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 4px;
}

/* Meta chips row */
.wf-store-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wf-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 500;
    color: #5a6a80;
    background: #f0f4f8;
    padding: 4px 10px;
    border-radius: 20px;
}

.wf-meta-chip svg {
    flex-shrink: 0;
    color: #8a9ab0;
}

/* WheelFront Trust Badge (right side) */
.wf-store-wf-badge {
    margin-top: 56px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f5f9ff;
    border: 1px solid #d0e2ff;
    border-radius: 10px;
    padding: 12px 18px;
    color: #1a2f52;
}

.wf-wf-badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #2563EB;
    border-radius: 8px;
    color: #fff;
    flex-shrink: 0;
}

.wf-wf-badge-icon svg {
    width: 18px;
    height: 18px;
}

.wf-wf-badge-title {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #0d1b2e;
}

.wf-wf-badge-sub {
    display: block;
    font-size: 11px;
    color: #8a9ab0;
    margin-top: 1px;
}

/* ============================================
   STATS BAR
   ============================================ */
.wf-store-stats-bar {
    display: flex;
    align-items: stretch;
    border-top: 1px solid #525f7a;
    background: transparent;
    padding: 20px 40px;
    gap: 0;
}

.wf-stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 24px;
}

.wf-stat-item:first-child {
    padding-left: 0;
}

.wf-stat-item:last-child {
    padding-right: 0;
}

.wf-stat-divider {
    width: 1px;
    background: #e2e8f0;
    margin: 0;
    align-self: stretch;
}

.wf-stat-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #E1E4EB;
    margin-bottom: 4px;
    display: block;
}

.wf-stat-value {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 22px;
    font-weight: 800;
    color: #0d1b2e;
}

.wf-stat-stars {
    display: flex;
    align-items: center;
    color: #f59e0b;
}

.star-empty-s {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: #e2e8f0;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    border-radius: 1px;
}

.wf-stat-sub {
    font-size: 13px;
    font-weight: 500;
    color: #E1E4EB;
}

.wf-stat-green {
    color: #0ea472;
    font-size: 22px;
    font-weight: 800;
}


/* Tabs Navigation */
.wf-store-tabs {
    display: flex;
    gap: 40px;
    border-bottom: 2px solid #f1f3f5;
    margin-bottom: 30px;
    padding: 0px;
}

.wf-tab-link {
    padding: 15px 0;
    font-size: 16px;
    font-weight: 700;
    color: #E1E4EB;
    text-decoration: none;
    position: relative;
    cursor: pointer;
    transition: all 0.2s;
}

.wf-tab-link:hover {
    color: #2c63db;
}

.wf-tab-link.active {
    color: #cbcbcb;
}

.wf-tab-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #1362c8;
}

/* Listings Grid Overrides */
.wf-public-store-container .wheelfront-marketplace-wrapper {
    background: transparent;
    padding: 0;
}

/* Review Section Layout */
.wf-reviews-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 40px;
}

.wf-reviews-sidebar {
    position: sticky;
    top: 20px;
}

.wf-rating-breakdown {
    background: transparent;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #525f7a;
    margin-bottom: 24px;
}

.wf-rating-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.wf-rating-row:last-child {
    margin-bottom: 0;
}

.wf-rating-label {
    font-size: 13px;
    font-weight: 600;
    width: 60px;
}

.wf-rating-bar-wrap {
    flex-grow: 1;
    height: 8px;
    background: #f1f3f5;
    border-radius: 10px;
    overflow: hidden;
}

.wf-rating-bar-fill {
    height: 100%;
    background: #fbbf24;
    border-radius: 10px;
}

.wf-rating-count {
    font-size: 13px;
    color: #94a3b8;
    width: 30px;
    text-align: right;
}

.wf-detailed-scores {
    background: transparent;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #525f7a;
}

.wf-score-item {
    margin-bottom: 15px;
}

.wf-score-header {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

/* Individual Review Card */
.wf-review-card {
    background: transparent;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    border: 1px solid #525f7a;
}

.wf-review-user-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.wf-review-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wf-user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f1f3f5;
}

.wf-user-name {
    font-weight: 700;
    font-size: 15px;
}

.wf-review-date {
    font-size: 13px;
    color: #94a3b8;
}

.wf-review-stars {
    margin-bottom: 15px;
    color: #fbbf24;
}

.wf-review-comment {
    font-size: 15px;
    line-height: 1.6;
    color: #E1E4EB;
    margin-bottom: 15px;
}

.wf-review-item-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #f8fafc;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}

.wf-review-recommend {
    color: #059669;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 15px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .wf-store-identity {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 20px 20px;
    }
    .wf-store-name-block {
        padding-top: 16px;
    }
    .wf-store-name-row {
        justify-content: center;
    }
    .wf-store-meta-row {
        justify-content: center;
    }
    .wf-store-wf-badge {
        margin-top: 16px;
        justify-content: center;
    }
    .wf-store-stats-bar {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }
    .wf-stat-item {
        padding: 0;
    }
    .wf-stat-divider {
        width: 100%;
        height: 1px;
    }
    .wf-reviews-layout {
        grid-template-columns: 1fr;
    }
    .wf-reviews-sidebar {
        position: static;
    }
}

@media (max-width: 460px) {
  #tab-listings .wheelfront-grid{
        grid-template-columns: repeat(2, 1fr)!important;
  }

  .wf-store-tabs{
    gap: 15px;
  }

  .wf-tab-link{
    font-size: 14px;
  }
}
