/*
Theme Name: Nifty Child
Theme URI: http://pressinspection.com
Description: Child theme for Nifty
Author: PressInspection
Author URI: http://pressinspection.com
Template: nifty
Version: 1.0.2
*/

/* ============================================
   GLOBAL VARIABLES & TYPOGRAPHY
   ============================================ */
:root {
    --pi-primary: #009878;
    --pi-secondary: #1a1a1a;
    --pi-text: #333333;
    --pi-bg: #ffffff;
    --pi-card-bg: #ffffff;
    --pi-border: #e0e0e0;
    --pi-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ============================================
   GLOBAL VISIBILITY FIXES FOR EXPERT PAGE
   ============================================ */

/* CRITICAL: DO NOT TOUCH HEADER/FOOTER! */

/* Ensure expert listing container is visible */
#dokan-seller-listing-wrap.pi-expert-listing {
    visibility: visible !important;
}

/* Expert profile page container */
.pi-expert-page-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Override any theme or plugin styles that might hide the expert listing */
body #dokan-seller-listing-wrap.pi-expert-listing,
body .pi-expert-listing,
body .pi-expert-grid,
body .pi-expert-card,
body .pi-expert-wrapper {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

body .pi-expert-grid {
    display: grid !important;
}

body .pi-expert-wrapper {
    display: flex !important;
}

/* Additional safety rules - prevent any hiding */
#dokan-seller-listing-wrap.pi-expert-listing .seller-listing-content,
#dokan-seller-listing-wrap.pi-expert-listing .dokan-seller-wrap,
#dokan-seller-listing-wrap.pi-expert-listing ul,
#dokan-seller-listing-wrap.pi-expert-listing li {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#dokan-seller-listing-wrap.pi-expert-listing ul.pi-expert-grid {
    display: grid !important;
}

#dokan-seller-listing-wrap.pi-expert-listing li.pi-expert-card {
    display: list-item !important;
}

/* Ensure no parent theme styles override */
.bt-content #dokan-seller-listing-wrap.pi-expert-listing,
.bt_bb_wrapper #dokan-seller-listing-wrap.pi-expert-listing,
body.woocommerce #dokan-seller-listing-wrap.pi-expert-listing {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Expert Profile Page - Scoped Protection */
.dokan-store-wrap.layout-full {
    max-width: 100%;
    width: 100%;
}

/* Ensure expert profile elements are visible */
.pi-expert-page-header {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Password Toggle Button */
body.woocommerce-account .pi-input-wrapper .show-password-input {
    position: absolute !important;
    top: 50% !important;
    right: 12px !important;
    transform: translateY(-50%) !important;
    width: 24px !important;
    height: 24px !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    /* Reset margin */
    opacity: 0.6;
    transition: opacity 0.2s;
    z-index: 10;
    /* Ensure it's above the input */
    display: block !important;
    /* Ensure it's visible */
    box-shadow: none !important;
}

body.woocommerce-account .pi-input-wrapper .show-password-input:hover {
    opacity: 1;
}

body.woocommerce-account .pi-input-wrapper .show-password-input::before {
    content: '\f06e';
    /* FontAwesome eye icon */
    font-family: 'FontAwesome';
    font-size: 16px;
    color: #333;
}

body.woocommerce-account .pi-input-wrapper .show-password-input.display-password::before {
    content: '\f070';
    /* FontAwesome eye-slash icon */
}

/* Ensure input has padding for the eye icon */
body.woocommerce-account .pi-input-wrapper input[type="password"],
body.woocommerce-account .pi-input-wrapper input[type="text"].password-input {
    padding-right: 40px !important;
}

/* Improve Input Border Visibility */
.pi-form-input {
    border: 1px solid #ccc !important;
    /* Stronger default border */
    background-color: #fff !important;
}

.pi-form-input:focus {
    border-color: #009878 !important;
    box-shadow: 0 0 0 1px #009878 !important;
}

/* ============================================
   Login / Register Page Styles
   ============================================ */

/* High Specificity Selectors to Override Theme/Plugin Defaults */
body.woocommerce-account .btSidebar {
    display: none !important;
    /* Hide sidebar as requested */
}

body.woocommerce-account .bt-content {
    width: 100% !important;
    /* Make content full width */
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding-top: 20px !important;
    /* Reduce top spacing */
}

body.woocommerce-account .bt-content-holder {
    padding-top: 0 !important;
    /* Remove extra padding from holder */
    margin-top: 0 !important;
}

body.woocommerce-account .woocommerce-account-login-wrapper {
    max-width: 480px;
    margin: 0 auto 40px;
    /* Center the form, remove top margin */
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    padding: 0;
    font-family: inherit;
    width: 100%;
}

/* Toggle Buttons */
body.woocommerce-account .pi-auth-toggle {
    display: flex;
    border-bottom: 1px solid #f0f0f0;
    background: #f9f9f9;
}

body.woocommerce-account .pi-auth-toggle-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 18px;
    font-size: 16px;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    position: relative;
    margin: 0;
    border-radius: 0;
}

body.woocommerce-account .pi-auth-toggle-btn:hover {
    color: #333;
    background: rgba(0, 0, 0, 0.02);
}

body.woocommerce-account .pi-auth-toggle-btn.active {
    color: #009878;
    /* Theme color */
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.02);
}

body.woocommerce-account .pi-auth-toggle-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #009878;
}

/* Form Container */
body.woocommerce-account .pi-login-columns {
    padding: 30px;
    background: #fff;
    min-height: 300px;
}

body.woocommerce-account .pi-login-title,
body.woocommerce-account .pi-register-title {
    display: none;
}

/* Ensure Register Column is Hidden Initially */
body.woocommerce-account #pi-register-column {
    display: none;
}

/* Form Elements */
body.woocommerce-account .pi-form-row {
    margin-bottom: 15px;
    /* Reduced from 24px */
    position: relative;
    display: block;
    clear: both;
}

/* Hide unwanted br tags added by wpautop */
body.woocommerce-account .pi-form-row br {
    display: none !important;
}

body.woocommerce-account .pi-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
    line-height: 1.4;
}

body.woocommerce-account .pi-input-wrapper {
    position: relative;
    display: block;
    width: 100%;
}

body.woocommerce-account input.pi-form-input,
body.woocommerce-account input[type="text"].pi-form-input,
body.woocommerce-account input[type="password"].pi-form-input,
body.woocommerce-account input[type="email"].pi-form-input {
    display: block;
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #d1d1d1;
    /* Stronger border */
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #fff;
    /* White background */
    color: #333;
    height: 48px;
    margin: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    /* Subtle shadow */
}

body.woocommerce-account input.pi-form-input:focus,
body.woocommerce-account input[type="text"].pi-form-input:focus,
body.woocommerce-account input[type="password"].pi-form-input:focus,
body.woocommerce-account input[type="email"].pi-form-input:focus {
    border-color: #009878;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 152, 120, 0.15);
    outline: none;
}

/* Actions Row */
body.woocommerce-account .pi-form-row-actions,
body.woocommerce-account .pi-form-row-submit {
    margin-top: 25px;
    margin-bottom: 20px;
}

body.woocommerce-account .pi-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

body.woocommerce-account .pi-remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    margin: 0;
}

body.woocommerce-account .pi-remember-me input {
    margin: 0;
    accent-color: #009878;
    width: 16px;
    height: 16px;
}

body.woocommerce-account .pi-forgot-link {
    font-size: 14px;
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

body.woocommerce-account .pi-forgot-link:hover {
    color: #009878;
}

/* Buttons */
body.woocommerce-account button.pi-login-button,
body.woocommerce-account button.pi-register-button {
    width: 100%;
    padding: 14px;
    background: #009878;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

body.woocommerce-account button.pi-login-button:hover,
body.woocommerce-account button.pi-register-button:hover {
    background: #007a63;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 152, 120, 0.25);
    color: #fff;
}

/* Switch Auth Link */
body.woocommerce-account .pi-switch-auth {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    font-size: 14px;
    color: #666;
}

body.woocommerce-account .pi-switch-auth a {
    color: #009878;
    font-weight: 600;
    text-decoration: none;
    margin-left: 5px;
}

body.woocommerce-account .pi-switch-auth a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 500px) {
    body.woocommerce-account .woocommerce-account-login-wrapper {
        margin: 20px 15px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    }

    body.woocommerce-account .pi-login-columns {
        padding: 20px;
    }

    body.woocommerce-account .pi-auth-toggle-btn {
        padding: 15px;
        font-size: 15px;
    }
}

/* ============================================
   Expert Listing Page Styles (KWORK.ru Style)
   ============================================ */

/* Fix Z-Index and Overlapping */
.pi-expert-page-header {
    position: relative;
    z-index: 1;
}

/* Hero Section */
.pi-expert-hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://via.placeholder.com/1200x400') center/cover;
    color: #fff;
    padding: 60px 20px;
    text-align: center;
    border-radius: 12px;
    margin-bottom: 40px;
    position: relative;
}

.pi-expert-hero-section h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.pi-expert-hero-section p {
    font-size: 18px;
    color: #f0f0f0;
    max-width: 600px;
    margin: 0 auto;
}

/* Filters & Sorting */
.dokan-seller-view.buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.dokan-seller-view.buttons button {
    background: #fff;
    border: 1px solid var(--pi-border);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.dokan-seller-view.buttons button:hover,
.dokan-seller-view.buttons button.active {
    background: var(--pi-primary);
    color: #fff;
    border-color: var(--pi-primary);
}

/* Expert Grid Layout */
.pi-expert-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Expert Card Styling */
.pi-expert-card {
    background: var(--pi-card-bg);
    border-radius: 12px;
    box-shadow: var(--pi-shadow);
    overflow: hidden;
    transition: transform 0.3s ease;
    position: relative;
    border: 1px solid var(--pi-border);
    display: flex;
    flex-direction: column;
}

.pi-expert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Card Header / Banner */
.pi-expert-header {
    height: 120px;
    background: #f5f5f5;
    position: relative;
}

.pi-expert-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Featured Badge */
.pi-expert-featured {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ffd700;
    color: #000;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Avatar */
.pi-expert-avatar-wrapper {
    width: 80px;
    height: 80px;
    margin: -40px auto 10px 20px;
    position: relative;
    z-index: 2;
}

.pi-expert-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid #fff;
    object-fit: cover;
    background: #fff;
}

/* Card Content */
.pi-expert-content {
    padding: 0 20px 20px;
    flex-grow: 1;
}

.pi-expert-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--pi-text);
}

.pi-expert-name a {
    color: inherit;
    text-decoration: none;
}

.pi-expert-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #ffc107;
    margin-bottom: 10px;
}

.pi-expert-description p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card Footer */
.pi-expert-footer {
    padding: 15px 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafafa;
}

.pi-expert-cta-button {
    color: var(--pi-primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.pi-expert-cta-button:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .pi-expert-grid {
        grid-template-columns: 1fr;
    }

    .pi-expert-hero-section h1 {
        font-size: 28px;
    }
}

/* ============================================
   Dokan Dashboard Fixes
   ============================================ */
.dokan-dashboard-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.dokan-dashboard-sidebar {
    flex: 0 0 250px;
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--pi-shadow);
    padding: 20px;
}

.dokan-dashboard-content {
    flex: 1;
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--pi-shadow);
    padding: 30px;
    min-width: 300px;
}

/* ============================================
   Expert Profile Page Styles (New Layout)
   ============================================ */

.expert-profile-page {
    max-width: 100%;
    margin: 0 auto;
    background: var(--bg-light);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 15px 20px;
    background: white;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #666;
    max-width: 1200px;
    margin: 0 auto;
}

.breadcrumbs a {
    color: var(--pi-primary);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* Hero Section */
.expert-hero {
    position: relative;
    background: linear-gradient(135deg, var(--pi-primary) 0%, var(--pi-secondary) 100%);
    padding: 60px 20px 30px;
    color: white;
    margin-bottom: 0;
}

.expert-cover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: 0;
}

.expert-header {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 30px;
    z-index: 1;
}

.expert-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid white;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    flex-shrink: 0;
}

.expert-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.expert-title h1 {
    font-size: 36px;
    margin: 0 0 10px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.expert-meta {
    display: flex;
    gap: 20px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.expert-actions {
    margin-left: auto;
    display: flex;
    gap: 15px;
}

.expert-actions .btn-primary {
    padding: 12px 30px;
    border: 2px solid white;
    background: white;
    color: var(--pi-primary);
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.expert-actions .btn-primary:hover {
    background: transparent;
    color: white;
}

/* Tabs Navigation */
.expert-tabs {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
}

.expert-tabs a {
    padding: 20px 30px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.expert-tabs a:hover,
.expert-tabs a.active {
    color: var(--pi-primary);
    border-bottom-color: var(--pi-primary);
}

/* Content Layout */
.expert-content-wrap {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
}

/* Sidebar */
.expert-sidebar {
    position: sticky;
    top: 80px;
    height: fit-content;
}

.expert-info-card,
.expert-social-card {
    background: white;
    border-radius: 8px;
    /* Updated border-radius */
    padding: 25px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.expert-info-card h3,
.expert-social-card h3 {
    font-size: 18px;
    margin: 0 0 20px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.expert-info-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.expert-info-card li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    color: #666;
    display: flex;
    align-items: center;
    gap: 10px;
}

.expert-info-card li:last-child {
    border-bottom: none;
}

.social-icons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-icons a {
    font-size: 24px;
    color: #666;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--pi-primary);
}

/* Main Content Area */
.expert-main-content {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.expert-main-content section {
    margin-bottom: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid #eee;
}

.expert-main-content section:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.expert-main-content h2 {
    font-size: 28px;
    margin: 0 0 25px;
    color: #333;
    position: relative;
    padding-left: 15px;
}

.expert-main-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 4px;
    background: var(--pi-primary);
    border-radius: 2px;
}

/* Services Grid */
.expert-services-grid ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
}

.expert-services-grid ul.products li.product {
    width: 100%;
    margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .expert-content-wrap {
        grid-template-columns: 1fr;
    }

    .expert-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .expert-header {
        flex-direction: column;
        text-align: center;
    }

    .expert-actions {
        margin-left: 0;
    }

    .expert-tabs {
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
    }

    .expert-sidebar {
        grid-template-columns: 1fr;
    }

    .expert-hero {
        padding: 40px 20px;
    }

    .expert-title h1 {
        font-size: 28px;
    }
}

/* ============================================
   Expert Listing Page Styles (KWORK.ru Style)
   ============================================ */

/* Main Container - FORCE VISIBILITY */
#dokan-seller-listing-wrap.pi-expert-listing {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 200px;
}

/* Expert Grid - FORCE VISIBILITY */
.pi-expert-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
    visibility: visible !important;
    opacity: 1 !important;
}

@media (min-width: 1200px) {
    .pi-expert-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .pi-expert-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    #dokan-seller-listing-wrap.pi-expert-listing {
        padding: 20px 15px;
    }
}

/* Expert Card - FORCE VISIBILITY */
.pi-expert-card {
    margin: 0 !important;
    padding: 0;
    width: 100% !important;
    box-sizing: border-box;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.pi-expert-wrapper {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex !important;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
    visibility: visible !important;
    opacity: 1 !important;
}

.pi-expert-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #009878;
}

/* Banner Section - FIXED OVERFLOW */
.pi-expert-header {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8e8e8 100%);
    flex-shrink: 0;
}

.pi-expert-banner {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.pi-expert-banner-link {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.pi-expert-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    max-width: 100%;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pi-expert-wrapper:hover .pi-expert-banner-img {
    transform: scale(1.05);
}

.pi-expert-banner-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    color: #999;
    font-size: 48px;
}

.pi-expert-featured {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
    z-index: 2;
}

.pi-expert-featured i {
    font-size: 11px;
}

/* Content Section */
.pi-expert-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    min-height: 0;
}

.pi-expert-header-section {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

/* Avatar Section - FIXED OVERFLOW */
.pi-expert-avatar-wrapper {
    flex-shrink: 0;
    position: relative;
    margin-top: -40px;
    z-index: 1;
    width: 80px;
    height: 80px;
}

.pi-expert-avatar-link {
    display: block;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    box-sizing: border-box;
}

.pi-expert-wrapper:hover .pi-expert-avatar-link {
    transform: scale(1.05);
}

.pi-expert-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    max-width: 100%;
}

.pi-expert-info {
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
}

.pi-expert-name {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.pi-expert-name a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.pi-expert-name a:hover {
    color: #009878;
}

/* Rating Styles */
.pi-expert-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
    flex-wrap: wrap;
}

.pi-rating-stars {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.pi-rating-stars .star-rating {
    margin: 0;
    float: none;
}

.pi-rating-value {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    flex-shrink: 0;
}

.pi-rating-count {
    color: #999;
    font-size: 13px;
    flex-shrink: 0;
}

.pi-no-rating .pi-rating-text {
    color: #999;
    font-size: 13px;
    font-style: italic;
}

/* ============================================
   Dokan User Role Selection - Custom Radio Buttons
   ============================================ */

/* Hide all br tags in the role selector */
body.woocommerce-account .user-role.vendor-customer-registration br {
    display: none !important;
}

/* Container styling */
body.woocommerce-account p.user-role.vendor-customer-registration {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin-bottom: 24px !important;
    margin-top: 16px !important;
    padding: 0 !important;
}

/* Label styling - text to the right of radio */
body.woocommerce-account p.user-role.vendor-customer-registration label.radio {
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    cursor: pointer !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    padding: 12px 16px !important;
    border-radius: 8px !important;
    transition: background-color 0.2s ease !important;
    font-weight: 500 !important;
    color: #333 !important;
    background: transparent !important;
    border: none !important;
    position: relative !important;
}

/* Hover state for label */
body.woocommerce-account p.user-role.vendor-customer-registration label.radio:hover {
    background-color: #f5f5f5 !important;
}

/* Hide default radio button */
body.woocommerce-account p.user-role.vendor-customer-registration label.radio input[type="radio"] {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
}

/* Custom radio circle using ::before */
body.woocommerce-account p.user-role.vendor-customer-registration label.radio::before {
    content: "" !important;
    display: inline-block !important;
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    border: 2px solid #009878 !important;
    box-sizing: border-box !important;
    transition: background-color 0.2s, box-shadow 0.2s, border-color 0.2s !important;
    flex-shrink: 0 !important;
    background-color: #fff !important;
}

/* Checked state - filled circle */
body.woocommerce-account p.user-role.vendor-customer-registration label.radio:has(input[type="radio"]:checked)::before {
    background-color: #009878 !important;
    box-shadow: 0 0 0 3px rgba(0, 152, 120, 0.2) !important;
    border-color: #009878 !important;
}

/* Hover on label - subtle glow */
body.woocommerce-account p.user-role.vendor-customer-registration label.radio:hover::before {
    box-shadow: 0 0 0 3px rgba(0, 152, 120, 0.1) !important;
}

/* Mobile responsiveness for radio buttons */
@media (max-width: 480px) {
    body.woocommerce-account p.user-role.vendor-customer-registration label.radio {
        padding: 10px 12px !important;
        font-size: 14px !important;
    }
}

/* ============================================
   Compact Vendor Registration Form
   ============================================ */

/* Main form container - compact and centered */
body.woocommerce-account .pi-vendor-registration-container {
    max-width: 640px !important;
    margin: 20px auto !important;
    padding: 0 !important;
    background: transparent !important;
}

/* Inner wrapper for additional control */
body.woocommerce-account .pi-vendor-form-inner {
    background: #fff !important;
    padding: 24px !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

/* Hide all br tags in vendor form */
body.woocommerce-account .show_if_seller br,
body.woocommerce-account .pi-vendor-registration-container br,
body.woocommerce-account .pi-vendor-form-inner br {
    display: none !important;
}

/* Reduce spacing between form rows */
body.woocommerce-account .show_if_seller .form-row,
body.woocommerce-account .show_if_seller .dokan-form-group,
body.woocommerce-account .show_if_seller p.form-row {
    margin-bottom: 14px !important;
}

/* Labels styling */
body.woocommerce-account .show_if_seller label,
body.woocommerce-account .show_if_seller .dokan-form-group label,
body.woocommerce-account .show_if_seller .control-label {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #333 !important;
    margin-bottom: 6px !important;
    display: block !important;
    line-height: 1.4 !important;
}

/* All input fields - consistent styling */
body.woocommerce-account .show_if_seller input.form-control,
body.woocommerce-account .show_if_seller input[type="text"],
body.woocommerce-account .show_if_seller input[type="email"],
body.woocommerce-account .show_if_seller input[type="password"],
body.woocommerce-account .show_if_seller input[type="url"],
body.woocommerce-account .show_if_seller input[type="tel"],
body.woocommerce-account .show_if_seller textarea,
body.woocommerce-account .show_if_seller select,
body.woocommerce-account .dokan-form-control {
    width: 100% !important;
    border: 1px solid #d7d7d7 !important;
    border-radius: 6px !important;
    padding: 10px 12px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    box-sizing: border-box !important;
    background-color: #fff !important;
    color: #333 !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    height: auto !important;
    min-height: 42px !important;
}

/* Focus state for all inputs */
body.woocommerce-account .show_if_seller input:focus,
body.woocommerce-account .show_if_seller textarea:focus,
body.woocommerce-account .show_if_seller select:focus,
body.woocommerce-account .dokan-form-control:focus {
    border-color: #009878 !important;
    box-shadow: 0 0 0 2px rgba(0, 152, 120, 0.15) !important;
    outline: none !important;
    background-color: #fff !important;
}

/* Address fields layout - side by side */
body.woocommerce-account .dokan-address-fields {
    padding-top: 0 !important;
}

body.woocommerce-account .dokan-form-group.dokan-w6,
body.woocommerce-account .dokan-form-group.dokan-w5 {
    width: 48% !important;
    float: left !important;
    margin-bottom: 14px !important;
}

body.woocommerce-account .dokan-form-group.dokan-right-margin-30 {
    margin-right: 4% !important;
}

body.woocommerce-account .dokan-clearfix {
    clear: both !important;
    display: block !important;
}

/* Split row fields (First Name / Last Name, Bank fields) */
body.woocommerce-account .show_if_seller .split-row {
    display: flex !important;
    gap: 14px !important;
    flex-wrap: wrap !important;
}

body.woocommerce-account .show_if_seller .split-row .form-row {
    flex: 1 !important;
    min-width: 200px !important;
}

/* Small helper text */
body.woocommerce-account .show_if_seller small,
body.woocommerce-account .show_if_seller .pi-input-help {
    font-size: 12px !important;
    color: #666 !important;
    display: block !important;
    margin-top: 4px !important;
    line-height: 1.4 !important;
}

/* Required asterisk */
body.woocommerce-account .show_if_seller .required {
    color: #e74c3c !important;
}

/* Mobile responsiveness for vendor form */
@media (max-width: 640px) {
    body.woocommerce-account .show_if_seller {
        max-width: 100% !important;
        padding: 0 !important;
    }

    body.woocommerce-account .dokan-form-group.dokan-w6,
    body.woocommerce-account .dokan-form-group.dokan-w5 {
        width: 100% !important;
        float: none !important;
        margin-right: 0 !important;
    }

    body.woocommerce-account .show_if_seller .split-row .form-row {
        min-width: 100% !important;
    }
}

/* ============================================
   Hide Empty Separator Block
   ============================================ */
body.woocommerce-account #bt_bb_section691f851aece17 {
    display: none !important;
}

/* Generic separator hiding on account page */
body.woocommerce-account .bt_bb_separator.bt_bb_border_style_none {
    display: none !important;
}

/* Description */
.pi-expert-description {
    margin: 15px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.pi-expert-description p {
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Meta Information */
.pi-expert-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.pi-expert-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.pi-expert-meta-item i {
    color: #009878;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.pi-expert-meta-item span {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pi-store-status .dokan-store-is-open-status {
    color: #28a745;
    font-weight: 500;
}

.pi-store-status .dokan-store-is-open-status i {
    color: #28a745;
    font-size: 8px;
}

.pi-store-status .dokan-store-is-closed-status {
    color: #dc3545;
    font-weight: 500;
}

.pi-store-status .dokan-store-is-closed-status i {
    color: #dc3545;
    font-size: 8px;
}

/* Footer CTA Button */
.pi-expert-footer {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-sizing: border-box;
}

.pi-expert-cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 24px;
    background: linear-gradient(135deg, #009878 0%, #00b894 100%);
    color: #fff !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 152, 120, 0.2);
    box-sizing: border-box;
}

.pi-expert-cta-button:hover {
    background: linear-gradient(135deg, #007a63 0%, #009878 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 152, 120, 0.3);
    color: #fff !important;
}

.pi-expert-cta-button i {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.pi-expert-cta-button:hover i {
    transform: translateX(3px);
}

/* No Experts Message */
.pi-no-experts {
    text-align: center;
    padding: 60px 20px;
}

.pi-no-experts .dokan-error {
    font-size: 18px;
    color: #666;
    margin: 0;
}

/* Pagination */
.pi-pagination {
    margin-top: 40px;
    text-align: center;
}

.pi-pagination .pagination-wrap {
    display: inline-block;
}

.pi-pagination .pagination {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pi-pagination .pagination li {
    margin: 0;
    padding: 0;
}

.pi-pagination .pagination a,
.pi-pagination .pagination span {
    display: block;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    background: #fff;
    border: 1px solid #e8e8e8;
    transition: all 0.2s ease;
    font-weight: 500;
}

.pi-pagination .pagination a:hover {
    background: #009878;
    color: #fff;
    border-color: #009878;
}

.pi-pagination .pagination .current {
    background: #009878;
    color: #fff;
    border-color: #009878;
}

/* Ensure seller-listing-content is visible */
#dokan-seller-listing-wrap.pi-expert-listing .seller-listing-content {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Override Dokan Default Styles */
#dokan-seller-listing-wrap.pi-expert-listing .dokan-seller-wrap {
    margin: 0;
    padding: 0;
    list-style: none;
    display: block !important;
    visibility: visible !important;
}

#dokan-seller-listing-wrap.pi-expert-listing .dokan-seller-wrap::before,
#dokan-seller-listing-wrap.pi-expert-listing .dokan-seller-wrap::after {
    display: none;
}

/* Force image constraints - prevent overflow */
#dokan-seller-listing-wrap.pi-expert-listing img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Adjustments */
@media (max-width: 480px) {
    .pi-expert-grid {
        gap: 15px;
    }

    .pi-expert-header {
        height: 150px;
    }

    .pi-expert-avatar-wrapper {
        margin-top: -35px;
        width: 70px;
        height: 70px;
    }

    .pi-expert-avatar-link {
        width: 70px;
        height: 70px;
    }

    .pi-expert-content {
        padding: 15px;
    }

    .pi-expert-name {
        font-size: 16px;
    }

    .pi-expert-footer {
        padding: 12px 15px;
    }

    .pi-expert-cta-button {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* ============================================
   Dokan Store List Page Improvements
   ============================================ */

/* Hide br tags in store addresses */
#dokan-seller-listing-wrap .store-address br {
    display: none !important;
}

/* Open/Closed Status Styling */
#dokan-seller-listing-wrap .dokan-store-is-open-close-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

#dokan-seller-listing-wrap .dokan-store-is-open-status {
    background: #10b981;
    color: white;
}

#dokan-seller-listing-wrap .dokan-store-is-closed-status {
    background: #ef4444;
    color: white;
}

/* Store Phone Styling */
#dokan-seller-listing-wrap .store-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
    margin: 8px 0;
}

#dokan-seller-listing-wrap .store-phone i {
    color: #009878;
    font-size: 13px;
}

/* Store Address Styling */
#dokan-seller-listing-wrap .store-address {
    color: #666;
    font-size: 13px;
    line-height: 1.5;
    margin: 8px 0;
}

/* Pagination Styling */
#dokan-seller-listing-wrap .pagination-container {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #e8e8e8;
}

#dokan-seller-listing-wrap .pagination-wrap {
    display: flex;
    justify-content: center;
}

#dokan-seller-listing-wrap .pagination {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}

#dokan-seller-listing-wrap .pagination li {
    margin: 0;
}

#dokan-seller-listing-wrap .pagination a,
#dokan-seller-listing-wrap .pagination span {
    display: inline-block;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 44px;
    text-align: center;
}

#dokan-seller-listing-wrap .pagination a:hover {
    background: #009878;
    border-color: #009878;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 152, 120, 0.2);
}

#dokan-seller-listing-wrap .pagination .current {
    background: #009878;
    border-color: #009878;
    color: white;
    font-weight: 600;
}

#dokan-seller-listing-wrap .pagination .dots {
    border: none;
    background: transparent;
    padding: 10px 8px;
}

/* Error Message Styling */
#dokan-seller-listing-wrap .dokan-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 4px solid #ef4444;
    color: #991b1b;
    padding: 20px 24px;
    border-radius: 8px;
    font-size: 15px;
    text-align: center;
    margin: 40px 0;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.1);
}

/* Focus States for Accessibility */
#dokan-seller-listing-wrap a:focus {
    outline: 2px solid #009878;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Store Data Container Improvements */
#dokan-seller-listing-wrap .store-data {
    padding: 0;
}

#dokan-seller-listing-wrap .store-data h2 {
    margin: 0 0 10px 0;
    font-size: 18px;
    line-height: 1.3;
}

#dokan-seller-listing-wrap .store-data h2 a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

#dokan-seller-listing-wrap .store-data h2 a:hover {
    color: #009878;
}

/* Rating Improvements */
#dokan-seller-listing-wrap .dokan-seller-rating {
    margin: 10px 0;
}

#dokan-seller-listing-wrap .dokan-seller-rating .rating {
    font-size: 13px;
    color: #666;
    margin: 5px 0 0 0;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {

    #dokan-seller-listing-wrap .pagination a,
    #dokan-seller-listing-wrap .pagination span {
        padding: 8px 12px;
        font-size: 13px;
        min-width: 38px;
    }

    #dokan-seller-listing-wrap .pagination {
        gap: 6px;
    }

    #dokan-seller-listing-wrap .pagination-container {
        margin-top: 30px;
        padding-top: 20px;
    }
}

/* ============================================
   Store List Page Header & Info
   ============================================ */

/* Store Count Styling */
#dokan-seller-listing-wrap .store-count,
#dokan-seller-listing-wrap .item.store-count {
    background: linear-gradient(135deg, #009878 0%, #00b894 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    display: inline-block;
    margin: 0 0 30px 0;
    box-shadow: 0 4px 12px rgba(0, 152, 120, 0.2);
    letter-spacing: 0.3px;
}

/* Page Title/Heading Improvements */
#dokan-seller-listing-wrap h1,
#dokan-seller-listing-wrap .page-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

#dokan-seller-listing-wrap .page-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0 0 30px 0;
    line-height: 1.5;
}

/* Hide "No ratings yet" text */
#dokan-seller-listing-wrap .pi-no-rating .pi-rating-text,
#dokan-seller-listing-wrap .pi-expert-rating .pi-rating-text {
    display: none !important;
}

/* When no rating, show placeholder */
#dokan-seller-listing-wrap .pi-no-rating::after {
    content: "New Expert";
    display: inline-block;
    background: #f0f0f0;
    color: #666;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Card Improvements - Add warmth */
#dokan-seller-listing-wrap .store-wrapper,
#dokan-seller-listing-wrap .pi-expert-wrapper {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#dokan-seller-listing-wrap .store-wrapper:hover,
#dokan-seller-listing-wrap .pi-expert-wrapper:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 152, 120, 0.15);
}

/* Add subtle gradient overlay to cards */
#dokan-seller-listing-wrap .store-content::before,
#dokan-seller-listing-wrap .pi-expert-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #009878 0%, #00b894 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

#dokan-seller-listing-wrap .store-wrapper:hover .store-content::before,
#dokan-seller-listing-wrap .pi-expert-wrapper:hover .pi-expert-content::before {
    opacity: 1;
}

/* Improve store name styling */
#dokan-seller-listing-wrap .store-data h2,
#dokan-seller-listing-wrap .pi-expert-name {
    position: relative;
}

#dokan-seller-listing-wrap .store-data h2 a,
#dokan-seller-listing-wrap .pi-expert-name a {
    background: linear-gradient(to right, #009878 0%, #009878 100%);
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: background-size 0.3s ease, color 0.2s ease;
    padding-bottom: 2px;
}

#dokan-seller-listing-wrap .store-data h2 a:hover,
#dokan-seller-listing-wrap .pi-expert-name a:hover {
    background-size: 100% 2px;
}

/* Add info when no description/meta */
#dokan-seller-listing-wrap .pi-expert-meta:empty::after {
    content: "Contact for more information";
    display: block;
    color: #999;
    font-size: 13px;
    font-style: italic;
    padding: 8px 0;
}

/* Improve empty state */
#dokan-seller-listing-wrap .dokan-error {
    background: linear-gradient(135deg, #fef2f2 0%, #fff5f5 100%);
    border: 2px dashed #fecaca;
    padding: 40px 24px;
}

#dokan-seller-listing-wrap .dokan-error::before {
    content: "🔍";
    display: block;
    font-size: 48px;
    margin-bottom: 16px;
}

/* ============================================
   Kwork-Style Expert Profile Page
   ============================================ */

/* Hide default Dokan profile frame */
.dokan-single-store .dokan-profile-frame-wrapper .profile-frame {
    display: none;
}

/* Main Profile Card */
.kwork-profile-card {
    display: grid;
    grid-template-columns: 220px 1fr 280px;
    gap: 30px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Photo Section */
.kwork-photo-section {
    flex-shrink: 0;
}

.kwork-avatar-wrapper {
    width: 220px;
    height: 220px;
    border-radius: 8px;
    overflow: hidden;
    border: 3px solid #f0f0f0;
}

.kwork-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Info Section */
.kwork-info-section {
    min-width: 0;
}

.kwork-expert-name {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px 0;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 10px;
}

.kwork-premium-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 14px;
}

.kwork-expert-title {
    font-size: 16px;
    color: #666;
    margin: 0 0 10px 0;
    line-height: 1.5;
}

.kwork-expert-category {
    font-size: 14px;
    color: #009878;
    font-weight: 600;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.kwork-expert-category i {
    font-size: 12px;
}

.kwork-expert-description {
    color: #444;
    font-size: 15px;
    line-height: 1.6;
    max-height: 150px;
    overflow-y: auto;
}

.kwork-expert-description p {
    margin: 0 0 10px 0;
}

.kwork-expert-description p:last-child {
    margin-bottom: 0;
}

/* Actions Section */
.kwork-actions-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.kwork-settings-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #009878 0%, #00b894 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 152, 120, 0.2);
}

.kwork-settings-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 152, 120, 0.3);
    color: white;
}

.kwork-rating-box {
    background: #f9f9f9;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kwork-stars {
    display: flex;
    align-items: center;
}

.kwork-stars .star-rating {
    margin: 0;
    font-size: 18px;
}

.kwork-rating-text {
    font-size: 14px;
    color: #666;
}

.kwork-rating-text strong {
    font-size: 20px;
    color: #009878;
    margin-right: 5px;
}

.kwork-no-rating {
    text-align: center;
    padding: 10px 0;
}

.kwork-new-badge {
    display: inline-block;
    background: #f0f0f0;
    color: #666;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kwork-reviews-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #009878;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.kwork-reviews-link:hover {
    background: rgba(0, 152, 120, 0.1);
    color: #009878;
}

/* Meta Info Below Card */
.kwork-meta-info {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    padding: 15px 20px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 30px;
}

.kwork-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 14px;
}

.kwork-meta-item i {
    color: #009878;
    font-size: 13px;
}

.kwork-phone-verified i {
    color: #10b981;
}

.kwork-premium-indicator {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.kwork-premium-indicator i {
    color: #333;
}

/* Reviews Header */
.kwork-reviews-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e8e8e8;
}

.kwork-reviews-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 15px 0;
}

/* Store Tabs */
.kwork-store-tabs {
    margin-bottom: 30px;
}

.kwork-store-tabs ul {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.kwork-store-tabs ul li a {
    display: inline-block;
    padding: 10px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.kwork-store-tabs ul li a:hover {
    background: #009878;
    border-color: #009878;
    color: white;
}

/* Products Grid - 3 columns */
.dokan-single-store .seller-items .products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
}

.dokan-single-store .seller-items .products li.product {
    width: 100% !important;
    margin: 0 !important;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .kwork-profile-card {
        grid-template-columns: 180px 1fr 260px;
        gap: 20px;
        padding: 25px;
    }

    .kwork-avatar-wrapper {
        width: 180px;
        height: 180px;
    }

    .dokan-single-store .seller-items .products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 992px) {
    .kwork-profile-card {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .kwork-avatar-wrapper {
        width: 150px;
        height: 150px;
        margin: 0 auto;
    }

    .kwork-info-section {
        text-align: center;
    }

    .kwork-expert-name {
        justify-content: center;
    }

    .kwork-expert-category {
        justify-content: center;
    }

    .kwork-actions-section {
        align-items: center;
    }

    .kwork-meta-info {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .kwork-profile-card {
        padding: 20px;
    }

    .kwork-expert-name {
        font-size: 22px;
    }

    .kwork-meta-info {
        gap: 15px;
        padding: 12px 15px;
    }

    .dokan-single-store .seller-items .products {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

/* ============================================
   Unified Product/Service Card Design
   Marketplace Standard Style
   ============================================ */

/* ============================================
   Unified Product/Service Card Design
   Marketplace Standard Style
   ============================================ */

/* Main Card Container - Fluid Width */
.pi-service-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    /* Fill the grid column */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    position: relative;
}

.pi-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #d0d0d0;
}

/* Service Link */
.pi-service-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.pi-service-link:hover {
    text-decoration: none;
}

/* Image/Thumbnail Section */
.pi-service-thumb {
    position: relative;
    width: 100%;
    padding-top: 75%;
    /* Aspect Ratio 4:3 */
    background: #f9f9f9;
    overflow: hidden;
}

.pi-service-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.pi-service-card:hover .pi-service-thumb img {
    transform: scale(1.05);
}

/* Placeholder for missing images */
.pi-service-thumb:not(:has(img))::before,
.pi-service-thumb img[src=""]::before,
.pi-service-thumb img:not([src])::before {
    content: "📦";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #ccc;
    background: #f5f5f5;
}

/* Content Section */
.pi-service-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}

/* Price */
.pi-service-price {
    font-size: 18px;
    font-weight: 700;
    color: #009878;
    line-height: 1.2;
    min-height: 22px;
}

.pi-service-price del {
    color: #999;
    font-weight: 400;
    font-size: 15px;
    margin-right: 6px;
}

.pi-service-price ins {
    text-decoration: none;
}

/* Title */
.pi-service-title {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 45px;
    /* Fixed height for alignment */
}

.pi-service-title:hover {
    color: #009878 !important;
}

/* Meta Information */
.pi-service-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    color: #666;
    margin-top: auto;
}

.pi-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.pi-rating.new-service {
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Actions Section (Button) */
.pi-service-actions {
    padding: 0 16px 16px 16px;
    margin-top: auto;
}

.pi-service-actions .button,
.pi-service-actions .add_to_cart_button {
    display: block !important;
    width: 100% !important;
    background: #009878 !important;
    color: white !important;
    padding: 10px 0 !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-align: center !important;
    border: none !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
}

.pi-service-actions .button:hover,
.pi-service-actions .add_to_cart_button:hover {
    background: #00b894 !important;
}

/* Sale Badge */
.pi-service-card .onsale {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e74c3c;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
    line-height: 1;
}

/* Remove default WooCommerce styles that might interfere */
/* Note: Original elements are handled via PHP template */


.products.columns-3 li.product {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

/* Main Card Container */
.pi-service-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.pi-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #d0d0d0;
}

/* Service Link - Full Card Clickable */
.pi-service-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.pi-service-link:hover {
    text-decoration: none;
}

/* Image/Thumbnail Section */
.pi-service-thumb {
    position: relative;
    width: 100%;
    height: 240px;
    background: #f9f9f9;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pi-service-thumb img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}

.pi-service-card:hover .pi-service-thumb img {
    transform: scale(1.05);
}

/* Placeholder for missing images */
.pi-service-thumb:not(:has(img))::before,
.pi-service-thumb img[src=""]::before,
.pi-service-thumb img:not([src])::before {
    content: "📦";
    font-size: 64px;
    color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #f5f5f5;
}

/* Image loading state */
.pi-service-thumb img[loading] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Ensure WooCommerce placeholder works */
.pi-service-thumb .woocommerce-placeholder {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}


/* Content Section */
.pi-service-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
}

/* Actions Section (Add to Cart Button) */
.pi-service-actions {
    padding: 0 16px 16px 16px;
}

.pi-service-actions .button,
.pi-service-actions .add_to_cart_button {
    display: block !important;
    width: 100% !important;
    background: #009878 !important;
    color: white !important;
    padding: 12px 20px !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-align: center !important;
    text-decoration: none !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    margin: 0 !important;
}

.pi-service-actions .button:hover,
.pi-service-actions .add_to_cart_button:hover {
    background: #00b894 !important;
    transform: translateY(-2px) !important;
}


/* Price */
.pi-service-price {
    font-size: 18px;
    font-weight: 700;
    color: #009878;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.pi-service-price .woocommerce-Price-amount {
    font-size: inherit;
    color: inherit;
}

.pi-service-price del {
    color: #999;
    font-weight: 400;
    font-size: 15px;
    margin-right: 6px;
}

.pi-service-price ins {
    text-decoration: none;
}

/* Title */
.pi-service-title {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    line-height: 1.4 !important;
    margin: 0 0 8px 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 45px;
}

.pi-service-title:hover {
    color: #009878 !important;
}

/* Meta Information */
.pi-service-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    color: #666;
    margin-top: auto;
}

.pi-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #666;
    font-size: 13px;
}

.pi-rating .star-rating {
    font-size: 14px;
    margin: 0;
}

.pi-rating.new-service {
    background: #f0f0f0;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pi-orders {
    color: #999;
    font-size: 12px;
}

/* Category Badge (if present) */
.pi-service-category {
    display: inline-block;
    background: #f0f0f0;
    color: #666;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 8px;
}

/* Sale Badge */
.pi-service-card .onsale {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #e74c3c;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

/* Fix Dokan Store Sorting Dropdown Overlap */
.dokan-store-products-filter-area {
    margin-bottom: 30px !important;
    clear: both !important;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 15px 0;
    width: 100%;
    position: relative;
    z-index: 5;
    background: #fff;
    /* Ensure background covers anything behind */
}

.dokan-store-products-ordeby {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.dokan-store-products-ordeby select.orderby {
    height: 40px;
    padding: 0 30px 0 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background-color: #fff;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    min-width: 200px;
}

/* Search input in filter area */
.dokan-store-products-filter-search {
    height: 40px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 0 15px;
}

.search-store-products {
    height: 40px;
    padding: 0 20px;
    border-radius: 6px;
}

/* Ensure proper spacing between tabs and products */
.dokan-store-tabs {
    margin-bottom: 30px;
    clear: both;
    display: block !important;
    visibility: visible !important;
}

.seller-items {
    clear: both;
    margin-top: 20px;
    position: relative;
    z-index: 1;
    display: block !important;
    visibility: visible !important;
}

/* Dokan Store Full Width Layout - FORCE VISIBILITY */
.dokan-store-wrap.layout-full {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.dokan-store-wrap.layout-full #dokan-primary {
    width: 100% !important;
    margin-right: 0 !important;
    float: none !important;
    display: block !important;
    visibility: visible !important;
}

.dokan-store-wrap.layout-full #dokan-content {
    display: block !important;
    visibility: visible !important;
    width: 100% !important;
}

/* Ensure product grid takes full width */
.dokan-store-wrap.layout-full .seller-items ul.products {
    width: 100% !important;
    margin: 0 !important;
    display: grid !important;
    visibility: visible !important;
}

/* Force visibility for expert profile page elements */
.dokan-single-store,
.store-page-wrap {
    visibility: visible !important;
    display: block !important;
    opacity: 1 !important;
}

/* ============================================
   Kwork-Style Expert Page Design
   ============================================ */

.store-page-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px 40px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    box-sizing: border-box;
}

/* Hero Section - FORCE VISIBILITY */
.pi-expert-hero {
    background: #f4f4f4;
    border-radius: 8px;
    padding: 24px 30px;
    margin-bottom: 24px;
    text-align: center;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.pi-expert-hero__title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.pi-expert-hero__excerpt {
    font-size: 16px;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* Main Expert Card - FORCE VISIBILITY */
.pi-expert-card {
    display: flex !important;
    gap: 24px;
    background: #1a1a1a;
    /* Dark background as requested */
    color: #f6f6f6;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    visibility: visible !important;
    opacity: 1 !important;
    box-sizing: border-box;
}

/* Left: Photo */
.pi-expert-card__photo {
    flex-shrink: 0;
}

.pi-expert-card__photo img {
    display: block;
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

/* Center: Info */
.pi-expert-card__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pi-expert-card__name {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}

.pi-expert-card__short {
    font-size: 16px;
    margin-bottom: 12px;
    color: #ccc;
    font-weight: 500;
}

.pi-expert-card__meta-row {
    font-size: 14px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pi-expert-card__meta-label {
    opacity: 0.7;
}

.pi-expert-card__meta-value {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.pi-expert-card__about {
    font-size: 14px;
    line-height: 1.6;
    color: #ddd;
    max-height: 100px;
    overflow-y: auto;
    padding-right: 10px;
}

/* Scrollbar for about text */
.pi-expert-card__about::-webkit-scrollbar {
    width: 4px;
}

.pi-expert-card__about::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.pi-expert-card__about::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

/* Right: Side Actions */
.pi-expert-card__side {
    width: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    flex-shrink: 0;
}

.pi-expert-card__settings-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 13px;
    text-decoration: none !important;
    color: #fff !important;
    transition: all 0.2s;
}

.pi-expert-card__settings-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.pi-expert-card__rating {
    text-align: right;
}

.pi-expert-card__stars {
    margin-bottom: 6px;
    font-size: 18px;
    color: #ffcc00;
}

.pi-expert-card__reviews-link {
    font-size: 14px;
    text-decoration: underline;
    color: #ccc;
}

.pi-expert-card__reviews-link:hover {
    color: #fff;
}

/* Meta Info Bar - FORCE VISIBILITY */
.pi-expert-meta {
    display: flex !important;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-bottom: 40px;
    font-size: 14px;
    padding: 16px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    visibility: visible !important;
    opacity: 1 !important;
}

.pi-expert-meta__item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pi-expert-meta__label {
    color: #666;
}

.pi-expert-meta__value {
    font-weight: 600;
    color: #333;
}

.pi-expert-meta__item--success {
    color: #2ecc71;
    font-weight: 600;
}

.pi-expert-meta__item--success::before {
    content: "✓";
    display: inline-block;
}

.pi-expert-meta__item--badge {
    padding: 4px 12px;
    border-radius: 999px;
    background: #ffcc00;
    color: #000;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
}

/* Sections - FORCE VISIBILITY */
.pi-expert-section {
    margin-bottom: 40px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.pi-expert-section__title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
    display: block !important;
    visibility: visible !important;
}

/* Products Grid - Expert Profile Page */
.pi-expert-products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
}

/* Product cards on expert profile page */
.pi-expert-products li.product {
    width: 100% !important;
    margin: 0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.pi-expert-products li.product:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #d0d0d0;
}

/* Product link inside expert products */
.pi-expert-products li.product .woocommerce-loop-product__link,
.pi-expert-products li.product>a {
    display: flex !important;
    flex-direction: column !important;
    height: 100%;
    text-decoration: none !important;
    color: inherit !important;
}

/* Product images on expert profile */
.pi-expert-products li.product img,
.pi-expert-products li.product .attachment-woocommerce_thumbnail {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    max-width: none !important;
    border-radius: 0 !important;
    transition: transform 0.4s ease;
}

.pi-expert-products li.product:hover img {
    transform: scale(1.05);
}

/* Content padding for product cards */
.pi-expert-products li.product .woocommerce-loop-product__link>*:not(img),
.pi-expert-products li.product>a>*:not(img) {
    padding-left: 16px;
    padding-right: 16px;
}

.pi-expert-products li.product .woocommerce-loop-product__link>*:first-of-type:not(img),
.pi-expert-products li.product>a>*:first-of-type:not(img) {
    padding-top: 12px;
}

.pi-expert-products li.product .woocommerce-loop-product__link>*:last-child,
.pi-expert-products li.product>a>*:last-child {
    padding-bottom: 12px;
}

/* Product titles on expert page */
.pi-expert-products li.product .woocommerce-loop-product__title,
.pi-expert-products li.product h2 {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    line-height: 1.4 !important;
    margin: 0 0 8px 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 42px;
    order: 2;
}

/* Product prices on expert page */
.pi-expert-products li.product .price {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #009878 !important;
    margin: 0 0 8px 0 !important;
    order: 1 !important;
}

.pi-expert-products li.product .price bdi {
    font-size: inherit !important;
    color: inherit !important;
}

.pi-expert-products li.product .price del {
    color: #999 !important;
    font-weight: 400 !important;
    font-size: 15px !important;
}

.pi-expert-products li.product .price ins {
    text-decoration: none !important;
}

/* Product buttons on expert page */
.pi-expert-products li.product .button,
.pi-expert-products li.product .add_to_cart_button {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: #009878 !important;
    color: white !important;
    padding: 10px 18px !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-align: center !important;
    text-decoration: none !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    margin: 8px 0 0 0 !important;
    width: 100% !important;
    order: 4 !important;
}

.pi-expert-products li.product .button:hover,
.pi-expert-products li.product .add_to_cart_button:hover {
    background: #00b894 !important;
    transform: translateY(-1px) !important;
}

/* Star ratings on expert page */
.pi-expert-products li.product .star-rating {
    order: 3;
    margin: 4px 0 8px 0 !important;
    float: none !important;
    font-size: 14px !important;
}

/* Sale badge */
.pi-expert-products li.product .onsale {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    background: #e74c3c !important;
    color: white !important;
    padding: 6px 12px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    z-index: 2 !important;
}

/* Reviews List Styling - FORCE VISIBILITY */
.pi-expert-reviews {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.dokan-reviews-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: block !important;
    visibility: visible !important;
}

.dokan-reviews-list li {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    display: list-item !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.dokan-reviews-list .star-rating {
    float: right;
    color: #ffcc00;
}

/* Additional protection for expert profile page */
.dokan-store-tabs.kwork-store-tabs {
    display: block !important;
    visibility: visible !important;
    margin-bottom: 30px;
}

.dokan-store-tabs.kwork-store-tabs ul {
    display: flex !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 20px;
}

.dokan-store-tabs.kwork-store-tabs li {
    display: list-item !important;
}

.dokan-store-tabs.kwork-store-tabs a {
    display: inline-block !important;
    padding: 8px 16px;
    text-decoration: none;
    color: #333;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
}

.dokan-store-tabs.kwork-store-tabs a:hover {
    border-bottom-color: #009878;
    color: #009878;
}

/* Ensure seller-items and products are visible */
.seller-items,
.seller-items * {
    visibility: visible !important;
}

.seller-items {
    display: block !important;
    opacity: 1 !important;
}

/* Responsive Design for Expert Profile Page */
@media (max-width: 1024px) {
    .pi-expert-products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
}

@media (max-width: 900px) {
    .pi-expert-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .pi-expert-card__photo img {
        width: 180px;
        height: 180px;
    }

    .pi-expert-card__info {
        align-items: center;
    }

    .pi-expert-card__side {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
}

@media (max-width: 768px) {
    .pi-expert-products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }

    .store-page-wrap {
        padding: 20px 15px 30px;
    }

    .pi-expert-hero {
        padding: 16px 20px;
    }
}

@media (max-width: 600px) {
    .pi-expert-products {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .pi-expert-card {
        padding: 16px;
    }

    .store-page-wrap {
        padding: 16px 15px 30px;
    }

    .pi-expert-meta {
        flex-direction: column;
        gap: 10px;
    }

    .pi-expert-products li.product img,
    .pi-expert-products li.product .attachment-woocommerce_thumbnail {
        height: 180px !important;
    }
}



/* Out of Stock */
.pi-service-card .out-of-stock-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    z-index: 2;
}

/* Add to Cart Button (if present in card) */
.pi-service-card .add_to_cart_button,
.pi-service-card .product_type_simple,
.pi-service-card .button {
    display: inline-block;
    background: #009878;
    color: white !important;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
    width: 100%;
}

.pi-service-card .add_to_cart_button:hover,
.pi-service-card .product_type_simple:hover,
.pi-service-card .button:hover {
    background: #00b894;
    color: white !important;
    transform: translateY(-2px);
}

/* Standard WooCommerce elements inside cards */
.products li.product {
    position: relative;
}

.products li.product .woocommerce-loop-product__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.products li.product .woocommerce-loop-product__link:hover {
    text-decoration: none;
}

/* Image wrapper */
.products li.product .attachment-woocommerce_thumbnail {
    width: 100% !important;
    height: 240px !important;
    object-fit: cover !important;
    max-width: none !important;
}

/* Content wrapper with padding */
.products li.product>a>*:not(img),
.products li.product .woocommerce-loop-product__link>*:not(img) {
    padding-left: 16px;
    padding-right: 16px;
}

.products li.product>a>*:first-of-type:not(img),
.products li.product .woocommerce-loop-product__link>*:first-of-type:not(img) {
    padding-top: 16px;
}

.products li.product>a>*:last-child,
.products li.product .woocommerce-loop-product__link>*:last-child {
    padding-bottom: 16px;
}

/* Price positioning - FORCE DISPLAY */
.products li.product .price {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #009878 !important;
    margin: 0 0 8px 0 !important;
    order: 1 !important;
    position: relative !important;
    z-index: 1 !important;
}

.products li.product .price bdi {
    font-size: inherit !important;
    color: inherit !important;
}

.products li.product .price del {
    color: #999 !important;
    font-weight: 400 !important;
    font-size: 15px !important;
    margin-right: 6px !important;
}

.products li.product .price ins {
    text-decoration: none !important;
}

/* Override any theme hiding */
.products li.product .price,
.products li.product .price span,
.products li.product .price bdi,
.woocommerce ul.products li.product .price {
    display: block !important;
    visibility: visible !important;
}


/* Title positioning */
.products li.product .woocommerce-loop-product__title {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    line-height: 1.4 !important;
    margin: 0 0 8px 0 !important;
    order: 2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 45px;
}

.products li.product .woocommerce-loop-product__title:hover {
    color: #009878 !important;
}

/* Add to cart button - FORCE DISPLAY */
.products li.product .add_to_cart_button,
.products li.product .button,
.woocommerce ul.products li.product .button {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: #009878 !important;
    color: white !important;
    padding: 10px 20px !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-align: center !important;
    text-decoration: none !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    margin: 10px 0 0 0 !important;
    width: 100% !important;
    order: 4 !important;
    position: relative !important;
    z-index: 1 !important;
    box-sizing: border-box !important;
}

.products li.product .add_to_cart_button:hover,
.products li.product .button:hover,
.woocommerce ul.products li.product .button:hover {
    background: #00b894 !important;
    color: white !important;
    transform: translateY(-2px) !important;
}

/* Ensure button is not hidden */
.products li.product a.button,
.products li.product a.add_to_cart_button {
    display: inline-block !important;
    visibility: visible !important;
}

/* Star rating */
.products li.product .star-rating {
    order: 3;
    margin: 8px 0 !important;
    float: none !important;
}

/* Ensure proper flex order */
.products li.product>a,
.products li.product .woocommerce-loop-product__link {
    display: flex !important;
    flex-direction: column !important;
}

/* Override theme hiding of price/button */
body .woocommerce ul.products li.product .price,
body.woocommerce ul.products li.product .price,
body .products li.product .price {
    display: block !important;
}

body .woocommerce ul.products li.product .button,
body.woocommerce ul.products li.product .button,
body .products li.product .button,
body .products li.product .add_to_cart_button {
    display: inline-block !important;
}

/* Nifty theme specific overrides */
.bt_bb_wrapper .products li.product .price,
.bt-content .products li.product .price {
    display: block !important;
    visibility: visible !important;
}

.bt_bb_wrapper .products li.product .button,
.bt-content .products li.product .button {
    display: inline-block !important;
    visibility: visible !important;
}


/* Sale badge */
.products li.product .onsale {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    background: #e74c3c !important;
    color: white !important;
    padding: 6px 12px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    z-index: 2 !important;
    margin: 0 !important;
}


/* Responsive Grid */
@media (max-width: 1200px) {
    .products.columns-3 {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px !important;
    }

    .pi-service-thumb {
        height: 220px;
    }
}

@media (max-width: 1024px) {
    .products.columns-3 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }

    .pi-service-thumb {
        height: 200px;
    }

    .pi-service-title {
        font-size: 15px !important;
    }
}

@media (max-width: 768px) {
    .products.columns-3 {
        gap: 16px !important;
    }

    .pi-service-content {
        padding: 14px;
    }

    .pi-service-price {
        font-size: 16px;
    }

    .pi-service-title {
        font-size: 14px !important;
        max-height: 40px;
    }
}

@media (max-width: 480px) {
    .products.columns-3 {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .pi-service-thumb {
        height: 180px;
    }

    .pi-service-content {
        padding: 12px;
    }

    .pi-service-price {
        font-size: 15px;
    }

    .pi-service-title {
        font-size: 14px !important;
    }

    .pi-service-meta {
        font-size: 12px;
    }
}

/* Ensure Equal Heights in Grid */
.products.columns-3 {
    align-items: stretch;
}

.products.columns-3 li.product {
    display: flex;
}

/* Override WooCommerce Default Styles (Scoped) */
.pi-service-card .woocommerce-loop-product__title {
    font-size: inherit !important;
    margin: 0 !important;
}

.pi-service-card .price {
    margin: 0 !important;
}

.pi-service-card .star-rating {
    float: none !important;
}

/* Compatibility with Dokan - Cards work in all Dokan contexts */
.dokan-single-store .pi-service-card,
.dokan-store-wrap .pi-service-card {
    position: relative;
}

/* Loading State */
.pi-service-card.loading {
    opacity: 0.6;
    pointer-events: none;
}

.pi-service-card.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #009878;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ============================================
   Header Login Button Styles
   ============================================ */
.pi-header-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #009878;
    /* Theme green */
    color: #ffffff !important;
    padding: 10px 24px;
    border-radius: 50px;
    /* Pill shape */
    font-weight: 600;
    font-size: 14px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 152, 120, 0.2);
    position: relative;
    z-index: 9999;
    /* Ensure it's above other elements */
    white-space: nowrap;
    line-height: 1;
    border: 2px solid transparent;
}

.pi-header-login-btn:hover {
    background-color: #007a63;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 152, 120, 0.3);
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.2);
}

.pi-header-login-btn i {
    font-size: 16px;
}

/* Ensure the widget container doesn't block it */
.btTopToolsRight .widget_text {
    overflow: visible !important;
    z-index: 1000;
    position: relative;
}

/* Fix for potential font tags inside the link if they persist */
.pi-header-login-btn font {
    color: inherit !important;
}

/* Responsive: Adjust for smaller screens if needed */
@media (max-width: 600px) {
    .pi-header-login-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .pi-header-login-btn span {
        display: inline-block;
        /* Keep text visible as per request */
    }
}