/* WheelFront Single Listing Styles - Chrono24 Inspired */

/* Global Theme Overrides */
html,
body {
    background-color: #0B0F19 !important;
}

.wf-single-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 40px 20px 100px;
    font-family: "Wix Madefor Text", Arial, Helvetica, sans-serif;
    color: #FFFFFF;
    background: #0B0F19;
}

/* Breadcrumbs */
.wf-breadcrumbs {
    font-size: 13px;
    color: #94A3B8;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wf-breadcrumbs a {
    color: #94A3B8 !important;
    text-decoration: none;
    transition: color 0.2s;
}

.wf-breadcrumbs a:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

.wf-breadcrumbs span:last-child {
    color: #FFFFFF;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

/* Main Layout */
.wf-listing-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

/* Gallery Section */
.wf-gallery {
    position: relative;
}

.wf-main-image {
    width: 100%;
    aspect-ratio: 4/3;
    background: #161B22 !important;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wf-main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #161B22 !important;
}

.wf-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.wf-thumb {
    width: calc(20% - 10px);
    aspect-ratio: 1;
    background: #161B22 !important;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: all 0.2s ease;
}

.wf-thumb:hover,
.wf-thumb.active {
    opacity: 1;
    border-color: #FFFFFF;
}

.wf-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gallery Carousel & Share */
.wf-share-toggle,
.wishlist-toggle {
    width: 44px;
    height: 44px;
    background: #0B0F19;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.wf-share-toggle:hover,
.wishlist-toggle:hover {
    background: #1E293B;
    transform: scale(1.05);
}

.wishlist-toggle:hover svg {
    color: #99C0FF !important;
    stroke: #99C0FF !important;
    fill: #99C0FF !important;
}

.wf-gallery-slider-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    border-radius: 12px;
}

.wf-gallery-slider {
    display: flex;
    transition: transform 0.4s ease-out;
    width: 100%;
    height: 100%;
}

.wf-gallery-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #161B22;
}

.wf-gallery-slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

.wf-gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(11, 15, 25, 0.7);
    color: #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    opacity: 0;
    transition: opacity 0.3s;
}

.wf-gallery-arrow:hover {
    background: #1E293B;
}

.wf-gallery-arrow.left {
    left: 16px;
}

.wf-gallery-arrow.right {
    right: 16px;
}

.wf-main-image:hover .wf-gallery-arrow {
    opacity: 1;
}

/* Modal specific for Share - Deep Overrides to prevent theme interference */
.wf-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.85) !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 99999 !important;
}

.wf-modal-overlay.active {
    display: flex !important;
}

.wf-share-modal-body {
    padding: 0 !important;
}

.wf-share-modal-content {
    background-color: #1B212C !important;
    background: #1B212C !important;
    border: 1px solid #2C3540 !important;
    border-radius: 16px !important;
    width: 100% !important;
    max-width: 440px !important;
    padding: 32px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
    color: #F8FAFC !important;
}

.wf-modal-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    margin-bottom: 28px !important;
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
}

.wf-modal-header h3 {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 28px !important;
    font-weight: 600 !important;
    color: #F8FAFC !important;
    background: transparent !important;
    border: none !important;
    letter-spacing: -0.5px !important;
}

.wf-modal-close {
    background: transparent !important;
    border: none !important;
    color: #94A3B8 !important;
    cursor: pointer !important;
    padding: 4px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
}

.wf-modal-close:hover {
    color: #fff;
}

.wf-share-buttons {
    display: flex !important;
    gap: 16px !important;
    margin-bottom: 32px !important;
}

.wf-share-btn {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 14px !important;
    border-radius: 8px !important;
    color: #fff !important;
    text-decoration: none !important;
    transition: filter 0.2s !important;
}

.wf-share-btn:hover {
    filter: brightness(1.2) !important;
}

.wf-share-btn.fb {
    background: #4267B2 !important;
}

.wf-share-btn.x {
    background: #000000 !important;
}

.wf-share-btn.email {
    background: #334155 !important;
}

.wf-share-url-box label {
    display: block !important;
    margin-bottom: 12px !important;
    font-size: 15px !important;
    color: #F8FAFC !important;
    font-weight: 600 !important;
}

.wf-share-url-box input {
    width: 100% !important;
    padding: 14px 16px !important;
    background: #1E293B !important;
    border: 1px solid #334155 !important;
    border-radius: 8px !important;
    color: #CBD5E1 !important;
    font-size: 15px !important;
    margin-bottom: 24px !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s !important;
}

.wf-share-url-box input:focus {
    outline: none !important;
    border-color: #3B82F6 !important;
}

.wf-btn-copy-link {
    width: 100% !important;
    padding: 14px !important;
    background: #3B82F6 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
}

.wf-btn-copy-link:hover {
    background: #2563EB !important;
}

/* Details Section */
.wf-details {
    display: flex;
    flex-direction: column;
}

.wf-listing-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 10px;
    color: #FFFFFF;
}

.wf-listing-meta {
    font-size: 14px;
    color: #94A3B8 !important;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wf-price-box {
    margin-bottom: 30px;
    padding: 0;
    background: transparent;
    border: none;
}

.wf-price {
    font-size: 30px;
    font-weight: 800;
    color: #FFFFFF;
    display: block;
    margin-bottom: 4px;
}

.wf-price-note {
    font-size: 13px;
    color: #94A3B8;
}

/* Buttons and Actions */
.wf-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wf-btn-buy {
    display: block;
    background: #2563EB;
    color: #fff !important;
    text-align: center;
    padding: 18px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s;
}

.wf-btn-buy:hover {
    background: #1D4ED8;
}

.wf-btn-message-full {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #1E293B !important;
    border: 1px solid #334155 !important;
    color: #fff !important;
    padding: 16px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
}

.wf-btn-message-full:hover {
    background: #334155 !important;
    border-color: #475569 !important;
}

.wf-action-secondary {
    background: transparent !important;
    border: 1px solid #e1e4eb !important;
    padding: 16px;
    border-radius: 6px;
    align-items: center;
    display: grid;
}

.wf-action-secondary a {
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
}

/* Sidebar Info Block */
.wf-view-count {
    font-size: 13px;
    color: #94A3B8;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wf-sidebar-heading {
    font-size: 18px;
    font-weight: 700;
    margin: 40px 0 20px;
    padding-top: 20px;
    border-top: 1px solid #2C3540;
    color: #FFFFFF;
}

/* More Info Heading */
.wf-more-info-heading {
    margin: 130px 0 30px;
    padding: 0;
    text-align: left;
}

.wf-more-info-heading h2 {
    font-size: 30px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
}

/* Seller Info */
.wf-seller-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #161B22;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #2C3540;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.wf-seller-avatar-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    background: #f1f5f9;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
}

.wf-seller-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wf-avatar-placeholder {
    color: #94a3b8;
}

.wf-avatar-placeholder span {
    font-size: 32px;
    width: 32px;
    height: 32px;
}

.wf-seller-info h4 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF !important;
}

.wf-seller-badges {
    display: flex;
    gap: 8px;
}

.wf-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 20px;
    color: #475569;
    font-weight: 600;
}

.wf-badge.verified {
    background: #f0fdf4;
    color: #166534;
}

.wf-badge.verified svg {
    color: #22c55e;
}

/* Info Section */
.wf-info-section {
    margin-top: 20px;
}

.wf-section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #FFFFFF;
}

/* Specs Table */
#wf-compat-table {
    width: 100%;
    margin-top: 20px;
    border-spacing: 0;
    border: 1px solid #2C3540;
    border-radius: 12px;
    overflow: hidden;
}

#wf-compat-table th {
    background: #1c232d;
    padding: 18px 20px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94A3B8;
    border-bottom: 1px solid #2C3540 !important;
    text-align: left;
    font-weight: 700;
}

#wf-compat-table td {
    padding: 18px 20px;
    border-bottom: 1px solid #2C3540 !important;
    vertical-align: middle;
    font-size: 14px;
    color: #FFFFFF !important;
}

#wf-compat-table tr:last-child td {
    border-bottom: none;
}

.wf-specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.wf-specs-table th {
    text-align: left;
    padding: 14px 0;
    color: #64748b !important;
    font-weight: 500;
    width: 40%;
    border-bottom: 1px solid #2C3540;
}

.wf-specs-table td {
    text-align: right;
    padding: 14px 0;
    color: #081526 !important;
    font-weight: 600;
    border-bottom: 1px solid #2C3540;
}

/* Full Width Content */
.specs-section {
    padding-top: 20px;
    margin-top: 20px;
}

.fitment-section {
    padding-top: 40px;
    margin-top: 40px;
}


.wf-content-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
}

.wf-content-title {
    font-size: 20px;
    margin-bottom: 25px;
    color: #FFFFFF;
}

.wf-description-text {
    color: #fff !important;
    line-height: 1.8;
    font-size: 14px !important;
}


/* Grouped Specs */
.wf-specs-group {
    margin-bottom: 40px;
}

.wf-specs-group:last-child {
    margin-bottom: 0;
}

.wf-specs-group .wf-content-title,
.wf-description-area .wf-content-title {
    margin-bottom: 15px;
    font-size: 18px;
    border-bottom: 1px solid #2C3540;
    padding-bottom: 8px;
}

.wf-data-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.wf-data-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #2C3540;
}

.wf-data-item:last-child {
    border-bottom: none;
}

.wf-data-item .label {
    font-size: 14px;
    color: #94A3B8;
}

.wf-data-item .value {
    font-size: 14px;
    font-weight: 600;
    color: #FFFFFF;
}

/* Related Wheels */
.wf-related-wheels {
    margin-top: 10px;
    padding-top: 60px;
}

.wf-related-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 40px;
    text-align: left;
}

.wf-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.wf-related-card {
    text-decoration: none;
    color: inherit;
    background: #161B22;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.wf-related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.wf-related-img-wrap {
    aspect-ratio: 1;
    overflow: hidden;
    background: #c1c1c1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wf-related-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wf-related-img-wrap span {
    /* fallback icon */
    font-size: 40px;
    color: #cbd5e1;
}

.wf-related-info {
    padding: 16px;
}

.wf-rel-brand {
    font-size: 12px;
    font-weight: 700;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 6px;
}

.wf-rel-title {
    font-size: 15px;
    color: white !important;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.4;
    height: 42px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.wf-rel-price {
    font-size: 18px;
    font-weight: 800;
    color: #FFFFFF;
    display: block;
}

/* Responsive */
@media (max-width: 1024px) {
    .wf-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .wf-listing-grid,
    .wf-content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .wf-content-tabs {
        gap: 20px;
    }

    .wf-tab {
        font-size: 16px;
    }

    .wf-listing-title {
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .wf-related-grid {
        grid-template-columns: 1fr;
    }

    .wf-thumb {
        width: calc(25% - 10px);
    }

    .wf-compat-header{
        display: block!important;
    }

    .wf-section-title{
        padding-bottom: 10px!important;
    }

    .wf-listing-title {
        font-size: 20px;
    }

    .wf-more-info-heading h2{
        font-size: 20px;
    }

    .wf-more-info-heading h2{
        font-size: 20px;
    }
}


/* Seller's Car Section */
.wf-sellers-car {
    background: #161B22;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #2C3540;
    margin-bottom: 40px;
}

.wf-car-card {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
    background: #0B0F19;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #2C3540;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.wf-car-icon-wrap {
    width: 48px;
    height: 48px;
    background: #1E293B;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wf-car-details strong {
    font-size: 18px;
    font-weight: 700;
    display: block;
    color: #FFFFFF;
}

.wf-trim-tag {
    font-size: 12px;
    color: #94A3B8;
    background: #1E293B;
    padding: 3px 10px;
    border-radius: 4px;
    margin-top: 6px;
    display: inline-block;
    font-weight: 600;
}

/* Vehicle Fitment Section */
.wf-vehicle-fitment {
    margin-bottom: 60px;
}

.wf-compat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 12px;
}

.wf-compat-header .wf-section-title {
    margin: 0;
    font-size: 30px;
}

.wf-compat-badges {
    display: flex;
    gap: 10px;
}

.wf-compat-spec-badge {
    background: #1E293B;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 4px;
    border: 1px solid #334155;
    white-space: nowrap;
}

.wf-section-subtitle {
    font-size: 14px;
    color: #94A3B8;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Tabbed Condition Module */
.wf-condition-tabs-block {
    margin-top: 30px;
    overflow: hidden;
}

.wf-tabs-header {
    display: flex;
    border-bottom: 1px solid #2C3540;
}

.wf-tab-btn {
    padding: 16px 24px !important;
    background: transparent !important;
    border: none !important;
    color: #94A3B8 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    position: relative !important;
    outline: none !important;
}

.wf-tab-btn:hover {
    color: #FFFFFF !important;
    border: 0px !important;
}

.wf-tab-btn.active {
    font-weight: 700 !important;
    color: #FFFFFF !important;
}

.wf-tab-btn.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #2563EB;
}

.wf-tab-content {
    display: none;
    padding: 40px 0px;
}

.wf-tab-content.active {
    display: block;
}

/* Condition Tab Content */
.wf-condition-summary {
    margin-bottom: 30px;
}

.wf-cond-overall-status {
    font-size: 13px;
    font-weight: 700;
    color: #FFFFFF;
    background: #1E293B;
    padding: 4px 12px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 12px;
}

.wf-cond-description {
    font-size: 14px;
    color: #94A3B8;
    line-height: 1.6;
    margin: 0;
}

.wf-condition-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: #2C3540;
    /* Becomes border between items */
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #2C3540;
}

.wf-cond-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #161B22;
    padding: 16px 20px;
}

.wf-cond-list-label {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #FFFFFF;
    font-weight: 500;
}

.wf-cond-list-label .dashicons {
    color: #94A3B8;
    font-size: 20px;
    height: 20px;
    width: 20px;
}

.wf-cond-list-value {
    font-size: 14px;
    font-weight: 700;
    background: #1E293B;
    padding: 4px 12px;
    border-radius: 100px;
    color: #FFFFFF;
}

/* Categories Tab Content */
.wf-categories-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.wf-cat-item strong {
    display: block;
    font-size: 16px;
    color: #FFFFFF;
    margin-bottom: 8px;
}

.wf-cat-item p {
    font-size: 13px;
    color: #94A3B8;
    line-height: 1.5;
    margin: 0;
}

/* Status Colors for Values (Chrono24 inspired) */
.value.wf-cond-none,
.value.wf-cond-perfect {
    color: #166534 !important;
}

.value.wf-cond-barely-visible {
    color: #3f6212 !important;
}

.value.wf-cond-noticeable {
    color: #92400e !important;
}

.value.wf-cond-obvious {
    color: #991b1b !important;
}

/* Status Colors shorthand */
.wf-cond-none {
    color: #166534;
}

.wf-cond-barely-visible {
    color: #fdfdfd;
}

.wf-cond-noticeable {
    color: #92400e;
}

.wf-cond-obvious {
    color: #991b1b;
}

/* Loader and Table Polish */
.wf-loader-container {
    padding: 50px 20px;
    border: 1px dashed #cbd5e1;
    background: #161B22;
    color: #475569;
}

.wf-spinner {
    width: 44px;
    height: 44px;
    border-width: 4px;
    border-top-color: #FFFFFF;
}

/* Rich Seller Section */
.wf-seller-section {
    margin: 80px 0;
}

.wf-seller-rich-header {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.wf-seller-identity {
    background: #161B22;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #2C3540;
}

.wf-seller-main-info {
    display: flex;
    gap: 24px;
    align-items: center;
}

.wf-seller-logo-lg {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    background: #1E293B;
    border: 3px solid #2C3540;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wf-seller-logo-lg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wf-seller-logo-lg .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: #94A3B8;
}

.wf-seller-text h3 {
    font-size: 24px;
    margin: 0 0 10px;
    color: #FFFFFF;
}

.wf-seller-text h3 a {
    color: inherit;
    text-decoration: none;
}

.wf-seller-text h3 a:hover {
    color: #2563EB;
}

.wf-seller-sub {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 14px;
    color: #94A3B8;
    margin-bottom: 15px;
}

.wf-seller-sub span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.wf-seller-mini-stats {
    display: flex;
    gap: 20px;
    font-size: 14px;
}

.wf-seller-mini-stats strong {
    color: #FFFFFF;
}

.wf-seller-badges-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.badge-item {
    background: #161B22;
    border: 1px solid #2C3540;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.5;
    transition: all 0.3s;
}

.badge-item.active {
    opacity: 1;
    border-color: #2563EB;
    background: rgba(37, 99, 235, 0.05);
}

.badge-icon {
    color: #2563EB;
}

.badge-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94A3B8;
}

.badge-item.active .badge-label {
    color: #FFFFFF;
}

/* Reviews Summary Row */
.wf-reviews-summary-row {
    display: grid;
    grid-template-columns: 240px 1.2fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
    background: #111827;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #2C3540;
    align-items: center;
}

.wf-overall-score-box {
    text-align: center;
    border-right: 1px solid #2C3540;
    padding-right: 40px;
}

.score-main {
    margin-bottom: 15px;
}

.score-value {
    font-size: 56px;
    font-weight: 800;
    line-height: 1;
    display: block;
    margin-bottom: 8px;
}

.score-stars {
    display: flex;
    justify-content: center;
    gap: 4px;
    color: #2563EB;
}

.star.filled {
    color: #2563EB;
}

.star:not(.filled) {
    color: #374151;
}

.recommend-rate {
    font-size: 14px;
    color: #FFFFFF;
    margin-bottom: 4px;
}

.review-total-count {
    font-size: 13px;
    color: #94A3B8;
}

/* Category Scores */
.wf-category-scores {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cat-score-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cat-label {
    width: 120px;
    font-size: 13px;
    color: #94A3B8;
}

.cat-bar-wrap {
    flex-grow: 1;
    height: 8px;
    background: #1F2937;
    border-radius: 4px;
    overflow: hidden;
}

.cat-bar-fill {
    height: 100%;
    background: #2563EB;
    border-radius: 4px;
}

.cat-value {
    width: 30px;
    font-size: 14px;
    font-weight: 700;
    color: #FFFFFF;
    text-align: right;
}

/* Star Distribution */
.wf-star-distribution {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dist-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dist-label {
    width: 60px;
    font-size: 12px;
    color: #94A3B8;
}

.dist-bar-wrap {
    flex-grow: 1;
    height: 6px;
    background: #1F2937;
    border-radius: 3px;
    overflow: hidden;
}

.dist-bar-fill {
    height: 100%;
    background: #4B5563;
    border-radius: 3px;
}

.dist-count {
    width: 30px;
    font-size: 12px;
    color: #94A3B8;
    text-align: right;
}

/* Recent Reviews */
.wf-recent-reviews-list h4 {
    font-size: 20px;
    margin-bottom: 30px;
    color: #FFFFFF;
}

.wf-reviews-scroll {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.wf-review-item-rich {
    background: #161B22;
    border: 1px solid #2C3540;
    padding: 24px;
    border-radius: 12px;
    transition: transform 0.2s;
}

.wf-review-item-rich:hover {
    transform: translateY(-4px);
    border-color: #374151;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: #374151;
}

.reviewer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-meta {
    flex-grow: 1;
}

.reviewer-name {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #FFFFFF;
}

.review-date {
    font-size: 12px;
    color: #94A3B8;
}

.review-stars-mini {
    display: flex;
    gap: 2px;
}

.star-mini {
    color: #374151;
}

.star-mini.filled {
    color: #2563EB;
}

.review-content p {
    font-size: 14px;
    line-height: 1.6;
    color: #D1D5DB;
    margin: 0;
}

.wf-no-reviews {
    text-align: center;
    padding: 60px;
    background: #161B22;
    border-radius: 12px;
    border: 1px solid #2C3540;
    color: #94A3B8;
}

/* Responsive Seller Styles */
@media (max-width: 1024px) {
    .wf-reviews-summary-row {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 30px;
    }

    .wf-overall-score-box {
        border-right: none;
        border-bottom: 1px solid #2C3540;
        padding-right: 0;
        padding-bottom: 30px;
    }

    .wf-reviews-scroll {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .wf-seller-chrono-layout {
        grid-template-columns: 1fr!important;
    }

    .wf-badges-2x2-grid {
        grid-template-columns: 1fr!important;
    }

    .wf-seller-id-card {
        align-items: center;
        text-align: center;
    }

    .wf-category-scores .cat-label {
        width: 100px;
        font-size: 12px;
    }
}

/* ============================================
   Seller Section — Chrono24 Style
   ============================================ */

.wf-seller-chrono-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
    align-items: start;
    margin-bottom: 10px;
}

/* LEFT: Identity Card */
.wf-seller-id-card {
    background: #ffffff24;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.wf-seller-avatar-block {
    margin-bottom: 4px;
}

.wf-s-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e8edf2;
    display: block;
}

.wf-s-avatar-initials {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a2f52, #2563EB);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -1px;
}

.wf-s-name {
    margin: 6px 0 0;
    font-size: 18px;
    font-weight: 700;
    color: #f0f4f8 !important;
    text-transform: capitalize;
}

.wf-s-name a {
    color: #f0f4f8 !important;
    text-decoration: none;
}

.wf-s-name a:hover {
    text-decoration: underline;
}

.wf-s-seller-since {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
    font-style: italic;
}

.wf-s-meta-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.wf-s-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.wf-s-meta-item svg {
    flex-shrink: 0;
    color: #94a3b8;
}

/* Stats grid */
.wf-s-stats-grid {
    display: flex;
    align-items: stretch;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    margin-top: 6px;
}

.wf-s-stat {
    flex: 1;
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
}

.wf-s-stat strong {
    font-size: 22px;
    font-weight: 800;
    color: #f0f4f8;
    display: block;
    line-height: 1;
    margin-bottom: 4px;
}

.wf-s-stat strong a {
    color: #2563EB;
    text-decoration: none;
}

.wf-s-stat strong a:hover {
    text-decoration: underline;
}

.wf-s-stat span {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.wf-s-stat-sep {
    width: 1px;
    background: rgba(255, 255, 255, 0.12);
    align-self: stretch;
}

/* RIGHT: Badges Card */
.wf-seller-badges-card {
    background: #ffffff24;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 24px 28px;
}

.wf-badges-card-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.wf-badges-card-header h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 700;
    color: #f0f4f8;
}

.wf-badges-card-header p {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
}

.wf-badges-2x2-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 32px;
}

.wf-badge-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.wf-badge-circle-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.wf-badge-circle-icon svg {
    width: 20px;
    height: 20px;
}

.wf-badge-detail-item.earned .wf-badge-circle-icon {
    border-color: #2563EB;
    color: #2563EB;
    background: #eff6ff;
}

.wf-badge-detail-item.pending .wf-badge-circle-icon {
    border-color: #e2e8f0;
    color: #cbd5e1;
}

.wf-badge-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.wf-badge-info strong {
    font-size: 14px;
    font-weight: 700;
    color: #f0f4f8;
}

.wf-badge-detail-item.pending .wf-badge-info strong {
    color: rgba(255, 255, 255, 0.3);
}

.wf-badge-info span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.4;
}

.wf-badge-detail-item.pending .wf-badge-info span {
    color: rgba(255, 255, 255, 0.2);
}

/* ========================================
   Fitment Compatibility Notice Bar
   ======================================== */
.wf-fitment-notice {
    margin-bottom: 16px;
}

/* --- Shared Bar Base --- */
.wf-fitment-bar {
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* --- Neutral State (No Vehicle) --- */
.wf-fitment-neutral {
    background: #1E293B;
    border: 1px solid #334155;
    padding: 20px;
}

.wf-fitment-bar-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.wf-fitment-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94A3B8;
}

.wf-fitment-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wf-fitment-text strong {
    font-size: 15px;
    font-weight: 700;
    color: #E2E8F0;
}

.wf-fitment-text span {
    font-size: 14px;
    color: #94A3B8;
}

.wf-fitment-select-vehicle {
    color: #E2E8F0 !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s;
}

.wf-fitment-select-vehicle:hover {
    color: #FFFFFF !important;
}

/* --- Fits State (Green) --- */
.wf-fitment-fits {
    border-left: 4px solid #22C55E;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-left: 4px solid #22C55E;
}

.wf-fitment-fits .wf-fitment-bar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: rgba(34, 197, 94, 0.12);
}

.wf-fitment-fits .wf-fitment-bar-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #22C55E;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.wf-fitment-fits .wf-fitment-vehicle-info {
    padding: 14px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wf-fitment-fits .wf-fitment-vehicle-info strong {
    font-size: 16px;
    font-weight: 800;
    color: #E2E8F0;
    letter-spacing: 0.3px;
}

.wf-fitment-fits .wf-fitment-change-vehicle {
    color: #22C55E !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: underline !important;
    text-underline-offset: 3px;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

.wf-fitment-fits .wf-fitment-change-vehicle:hover {
    color: #4ADE80 !important;
}

/* --- Does Not Fit State (Red) --- */
.wf-fitment-no-fit {
    border-left: 4px solid #DC2626;
    background: rgba(220, 38, 38, 0.06);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-left: 4px solid #DC2626;
}

.wf-fitment-no-fit .wf-fitment-bar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: rgba(220, 38, 38, 0.1);
}

.wf-fitment-no-fit .wf-fitment-bar-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #DC2626;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.wf-fitment-no-fit .wf-fitment-vehicle-info {
    padding: 14px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wf-fitment-no-fit .wf-fitment-vehicle-info strong {
    font-size: 16px;
    font-weight: 800;
    color: #E2E8F0;
    letter-spacing: 0.3px;
}

.wf-fitment-no-fit .wf-fitment-change-vehicle {
    color: #DC2626 !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: underline !important;
    text-underline-offset: 3px;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

.wf-fitment-no-fit .wf-fitment-change-vehicle:hover {
    color: #EF4444 !important;
}

/* --- Mobile Responsive --- */
@media (max-width: 480px) {
    .wf-fitment-neutral {
        padding: 16px;
    }
    
    .wf-fitment-icon {
        width: 36px;
        height: 36px;
    }
    
    .wf-fitment-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .wf-fitment-text strong {
        font-size: 14px;
    }
    
    .wf-fitment-text span {
        font-size: 13px;
    }
    
    .wf-fitment-fits .wf-fitment-bar-header,
    .wf-fitment-no-fit .wf-fitment-bar-header {
        padding: 12px 16px;
    }
    
    .wf-fitment-fits .wf-fitment-vehicle-info,
    .wf-fitment-no-fit .wf-fitment-vehicle-info {
        padding: 12px 16px;
    }
    
    .wf-fitment-fits .wf-fitment-vehicle-info strong,
    .wf-fitment-no-fit .wf-fitment-vehicle-info strong {
        font-size: 14px;
    }
}