/* Karmone Dokan Marketplace Styles */

/* Store Page */
.dokan-store {
    margin-top: 40px;
}

.karmone-store-header {
    margin-bottom: 40px;
}

.store-banner {
    height: 300px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    position: relative;
}

.store-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.store-info {
    display: flex;
    align-items: center;
    gap: 30px;
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    position: relative;
    margin-top: -50px;
    z-index: 2;
}

.store-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--bg-color);
    box-shadow: var(--shadow);
}

.store-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.store-details {
    flex: 1;
}

.store-name {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.store-address {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.store-address i {
    color: var(--primary-color);
}

.store-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.star-rating {
    color: #ffc107;
    font-size: 1.25rem;
}

.rating-count {
    color: var(--text-light);
    font-size: 0.875rem;
}

.store-tabs {
    background-color: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 0 20px;
    margin-bottom: 40px;
}

.dokan-store-tabs {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.dokan-store-tabs li {
    margin-right: 30px;
}

.dokan-store-tabs a {
    display: block;
    padding: 20px 0;
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.dokan-store-tabs a:hover,
.dokan-store-tabs li.active a {
    color: var(--primary-color);
}

.dokan-store-tabs li.active a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px 3px 0 0;
}

/* Store Products */
.store-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.dokan-single-store .dokan-store-products {
    margin-top: 40px;
}

.dokan-store-sidebar {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: var(--radius-lg);
    margin-bottom: 40px;
}

.dokan-store-sidebar .widget {
    margin-bottom: 30px;
}

.dokan-store-sidebar .widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 1.125rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

/* Store Info Widget */
.store-info-widget {
    background-color: white;
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
}

.info-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.info-item i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

/* Store Rating Widget */
.store-rating-widget .rating-overview {
    text-align: center;
    margin-bottom: 20px;
}

.rating-average {
    font-size: 3rem;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 10px;
}

.rating-stars {
    color: #ffc107;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.rating-total {
    color: var(--text-light);
    font-size: 0.875rem;
}

.rating-breakdown {
    margin-top: 20px;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.rating-label {
    font-size: 0.875rem;
    color: var(--text-light);
    width: 40px;
}

.rating-progress {
    flex: 1;
    height: 8px;
    background-color: var(--border-light);
    border-radius: 4px;
    overflow: hidden;
}

.rating-progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 4px;
}

.rating-count {
    font-size: 0.875rem;
    color: var(--text-light);
    width: 40px;
    text-align: right;
}

/* Vendor Dashboard */
.dokan-dashboard {
    margin-top: 40px;
}

.vendor-dashboard-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    margin-bottom: 40px;
}

.vendor-dashboard-header h1 {
    color: white;
    margin-bottom: 20px;
    font-size: 2rem;
}

.vendor-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.stat-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
    backdrop-filter: blur(10px);
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    margin-bottom: 5px;
    opacity: 0.9;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
}

.dokan-dashboard-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
}

/* Dashboard Navigation */
.dokan-dash-sidebar {
    background-color: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 20px 0;
}

.dokan-dashboard-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dokan-dashboard-menu li {
    margin: 0;
}

.dokan-dashboard-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    color: var(--text-color);
    border-left: 3px solid transparent;
    transition: var(--transition);
}

.dokan-dashboard-menu li a:hover {
    background-color: rgba(74, 111, 165, 0.1);
    border-left-color: var(--primary-color);
    color: var(--primary-color);
}

.dokan-dashboard-menu li.active a {
    background-color: rgba(74, 111, 165, 0.1);
    border-left-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 500;
}

.dokan-dashboard-menu li a i {
    width: 20px;
    text-align: center;
}

/* Dashboard Main Content */
.dokan-dashboard-content-area {
    background-color: var(--bg-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
}

.dokan-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.dokan-dashboard-header h1 {
    font-size: 1.5rem;
    margin: 0;
}

.dokan-add-product-link {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 500;
    transition: var(--transition);
}

.dokan-add-product-link:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Dashboard Widgets */
.dokan-dashboard-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.dokan-dashboard-widget {
    background-color: var(--bg-light);
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
}

.dokan-dashboard-widget:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.dokan-dashboard-widget i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.dokan-dashboard-widget h3 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--text-light);
}

.dokan-dashboard-widget .content {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
}

/* Dashboard Reports */
.dokan-reports-content {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
}

.report-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.report-filter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.report-filter label {
    font-weight: 500;
    color: var(--text-color);
}

.report-filter select,
.report-filter input {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.875rem;
}

.report-chart {
    background-color: white;
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.report-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.summary-item {
    background-color: white;
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
}

.summary-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.summary-label {
    display: block;
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Products List */
.dokan-product-listing {
    background-color: var(--bg-light);
    border-radius: var(--radius);
    overflow: hidden;
}

.product-listing-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: white;
    border-bottom: 1px solid var(--border-color);
}

.product-search {
    display: flex;
    gap: 10px;
}

.product-search input {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    min-width: 250px;
}

.product-search button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.product-search button:hover {
    background-color: var(--secondary-color);
}

.product-listing-table {
    width: 100%;
    border-collapse: collapse;
}

.product-listing-table th {
    background-color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: var(--text-color);
    border-bottom: 2px solid var(--border-color);
}

.product-listing-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    background-color: white;
}

.product-thumbnail img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius);
}

.product-title a {
    color: var(--text-color);
    font-weight: 500;
}

.product-title a:hover {
    color: var(--primary-color);
}

.product-status .status {
    padding: 5px 10px;
    border-radius: var(--radius);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-publish {
    background-color: #4CAF50;
    color: white;
}

.status-pending {
    background-color: #FF9800;
    color: white;
}

.status-draft {
    background-color: #9E9E9E;
    color: white;
}

.product-actions {
    display: flex;
    gap: 5px;
}

.product-action-btn {
    width: 35px;
    height: 35px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    background-color: white;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-action-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Add/Edit Product Form */
.dokan-product-edit-form {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: var(--radius-lg);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(74, 111, 165, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Vendor Withdraw */
.withdraw-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.withdraw-method {
    background-color: white;
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.withdraw-method:hover,
.withdraw-method.active {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.withdraw-method i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.withdraw-method h4 {
    margin-bottom: 5px;
    font-size: 1rem;
}

.withdraw-method p {
    font-size: 0.875rem;
    color: var(--text-light);
}

.withdraw-form {
    background-color: white;
    padding: 30px;
    border-radius: var(--radius);
}

.withdraw-form .form-row {
    margin-bottom: 20px;
}

.withdraw-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.withdraw-form input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
}

.withdraw-amount {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding: 20px;
    background-color: var(--bg-light);
    border-radius: var(--radius);
    text-align: center;
}

/* Vendor Orders */
.dokan-orders-area {
    background-color: var(--bg-light);
    border-radius: var(--radius);
    overflow: hidden;
}

.orders-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: white;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 15px;
}

.filter-actions {
    display: flex;
    gap: 10px;
}

.filter-actions select,
.filter-actions input {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
}

.orders-table th {
    background-color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: var(--text-color);
    border-bottom: 2px solid var(--border-color);
}

.orders-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    background-color: white;
}

.order-id a {
    color: var(--primary-color);
    font-weight: 500;
}

.order-status {
    padding: 5px 10px;
    border-radius: var(--radius);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.order-status-processing {
    background-color: #2196F3;
    color: white;
}

.order-status-completed {
    background-color: #4CAF50;
    color: white;
}

.order-status-on-hold {
    background-color: #FF9800;
    color: white;
}

.order-status-cancelled {
    background-color: #f44336;
    color: white;
}

/* Vendor Registration */
.dokan-vendor-registration {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.registration-header {
    text-align: center;
    margin-bottom: 40px;
}

.registration-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.registration-header p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.registration-steps {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    counter-reset: step;
}

.registration-step {
    text-align: center;
    position: relative;
    flex: 1;
    max-width: 200px;
}

.registration-step:before {
    counter-increment: step;
    content: counter(step);
    width: 40px;
    height: 40px;
    background-color: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: 600;
    color: var(--text-light);
    transition: var(--transition);
}

.registration-step.active:before {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.registration-step.completed:before {
    background-color: #4CAF50;
    border-color: #4CAF50;
    color: white;
}

.registration-step h4 {
    font-size: 0.875rem;
    margin-bottom: 5px;
    color: var(--text-light);
}

.registration-step.active h4 {
    color: var(--text-color);
}

.registration-step:not(:last-child):after {
    content: '';
    position: absolute;
    top: 20px;
    right: -50%;
    width: 100%;
    height: 2px;
    background-color: var(--border-color);
    z-index: -1;
}

.registration-step.completed:after {
    background-color: #4CAF50;
}

.registration-form {
    background-color: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.registration-form-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.registration-form-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.form-section-title {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section-title i {
    color: var(--primary-color);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

.btn-prev,
.btn-next {
    padding: 12px 30px;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-prev {
    background-color: var(--bg-light);
    color: var(--text-color);
}

.btn-prev:hover {
    background-color: var(--border-color);
}

.btn-next {
    background-color: var(--primary-color);
    color: white;
}

.btn-next:hover {
    background-color: var(--secondary-color);
}

.btn-submit {
    background-color: #4CAF50;
    color: white;
    padding: 12px 40px;
    border-radius: var(--radius);
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 1024px) {
    .dokan-dashboard-content {
        grid-template-columns: 1fr;
    }
    
    .dokan-dash-sidebar {
        margin-bottom: 30px;
    }
    
    .dokan-dashboard-menu {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .dokan-dashboard-menu li a {
        border-left: none;
        border-bottom: 3px solid transparent;
        justify-content: center;
        text-align: center;
    }
    
    .dokan-dashboard-menu li.active a {
        border-left: none;
        border-bottom-color: var(--primary-color);
    }
}

@media (max-width: 768px) {
    .store-info {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .store-avatar {
        width: 120px;
        height: 120px;
        margin-top: -60px;
    }
    
    .dokan-store-tabs {
        flex-direction: column;
    }
    
    .dokan-store-tabs li {
        margin-right: 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .dokan-store-tabs li:last-child {
        border-bottom: none;
    }
    
    .dokan-store-tabs li.active a:after {
        bottom: 0;
        left: 0;
        right: auto;
        width: 3px;
        height: 100%;
    }
    
    .form-row,
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .registration-steps {
        flex-direction: column;
        align-items: center;
    }
    
    .registration-step:not(:last-child):after {
        top: auto;
        bottom: -30px;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        width: 2px;
        height: 30px;
    }
}

@media (max-width: 480px) {
    .vendor-stats {
        grid-template-columns: 1fr;
    }
    
    .dokan-dashboard-widgets {
        grid-template-columns: 1fr;
    }
    
    .orders-filter {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-actions {
        flex-direction: column;
    }
    
    .product-listing-top {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .product-search input {
        min-width: auto;
        flex: 1;
    }
}