/* ==========================================================================
   LUNTHE Dokan Multivendor Styles
   Modern, responsive vendor storefronts and dashboard experiences
   ========================================================================== */

/* Store Wrapper & Hero */
.lunthe-dokan-store-wrapper {
    min-height: 70vh;
    padding-bottom: 60px;
}

.lunthe-store-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 60px 0 35px;
    border-bottom: 1px solid #e5e7eb;
}

.lunthe-store-header-card {
    display: flex;
    align-items: center;
    gap: 24px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(229, 231, 235, 0.8);
    border-radius: 20px;
    padding: 24px 28px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    max-width: 900px;
}

.lunthe-store-avatar-wrap {
    flex: 0 0 96px;
    width: 96px;
    height: 96px;
    border-radius: 18px;
    overflow: hidden;
    background: #f1f5f9;
    border: 2px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

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

.lunthe-store-header-meta {
    flex: 1 1 auto;
    min-width: 0;
}

.lunthe-store-badge-verified {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #ff6b00;
    background: rgba(255, 107, 0, 0.08);
    padding: 4px 10px;
    border-radius: 9999px;
    margin-bottom: 8px;
}

.lunthe-store-title {
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 800;
    color: #111827 !important;
    margin: 0 0 6px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.lunthe-store-sub-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    color: #64748b;
    font-size: 14px;
}

.lunthe-store-sub-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.lunthe-store-body {
    padding-top: 40px;
}

.lunthe-store-products-section .lunthe-products-grid {
    margin: 0 !important;
}

/* ==========================================================================
   Dokan Vendor Dashboard
   ========================================================================== */

.dokan-dashboard-wrap {
    max-width: 1380px;
    margin: 30px auto 60px;
    padding: 0 20px;
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

.dokan-dash-sidebar {
    flex: 0 0 260px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 20px 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.055);
}

.dokan-dash-sidebar ul.dokan-dashboard-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dokan-dash-sidebar ul.dokan-dashboard-menu li {
    margin-bottom: 6px;
}

.dokan-dash-sidebar ul.dokan-dashboard-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    color: #475467;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .18s ease, color .18s ease, transform .18s ease;
    min-height: 44px;
}

.dokan-dash-sidebar ul.dokan-dashboard-menu li a:hover,
.dokan-dash-sidebar ul.dokan-dashboard-menu li.active a {
    background: #f8fafc;
    color: #ff6b00;
}
.dokan-dash-sidebar ul.dokan-dashboard-menu li a:hover{transform:translateX(2px)}

.dokan-dash-sidebar ul.dokan-dashboard-menu li.active a {
    background: #111827;
    color: #fff;
}

.dokan-dashboard-content {
    flex: 1 1 auto;
    min-width: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.055);
}

/* Orders Summary Cards */
.lunthe-orders-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.lunthe-order-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 14px;
    padding: 18px 20px;
    transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease;
}
.lunthe-order-stat:hover{border-color:#ddd8f7;box-shadow:0 10px 24px rgba(15,23,42,.055);transform:translateY(-2px)}

.lunthe-order-stat-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    font-weight: 800;
    font-size: 18px;
    color: #ff6b00;
    flex-shrink: 0;
}

.lunthe-order-stat-content {
    display: flex;
    flex-direction: column;
}

.lunthe-order-stat-content span {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}

.lunthe-order-stat-content strong {
    font-size: 22px;
    font-weight: 800;
    color: #111827;
}

/* Orders Toolbar & Filters */
.lunthe-orders-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 20px;
}

.lunthe-orders-toolbar-left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.lunthe-orders-toolbar-label {
    font-size: 13px;
    font-weight: 700;
    color: #475467;
}

/* Tables & Horizontal Scroll Container */
.lunthe-orders-table-wrap,
.dokan-table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    margin-bottom: 24px;
}

.dokan-table,
.lunthe-orders-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
    min-width: 650px;
}

.dokan-table th,
.lunthe-orders-table th {
    background: #f8fafc;
    color: #475467;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    white-space: nowrap;
}

.dokan-table td,
.lunthe-orders-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    color: #1e293b;
}

.dokan-table tbody tr:hover td,
.lunthe-orders-table tbody tr:hover td {
    background: #fafbfc;
}

.dokan-table tbody tr:last-child td,
.lunthe-orders-table tbody tr:last-child td {
    border-bottom: none;
}

/* Status Badges */
.dokan-label {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 9999px;
    text-transform: capitalize;
}

.dokan-label-success,
.dokan-label-completed {
    background: #ecfdf5;
    color: #059669;
}

.dokan-label-processing {
    background: #eff6ff;
    color: #2563eb;
}

.dokan-label-warning,
.dokan-label-pending {
    background: #fffbeb;
    color: #d97706;
}

.dokan-label-danger,
.dokan-label-cancelled,
.dokan-label-failed {
    background: #fef2f2;
    color: #dc2626;
}

/* Form Controls & Buttons */
.dokan-form-control,
.dokan-form-group input,
.dokan-form-group select,
.dokan-form-group textarea {
    min-height: 44px;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

.dokan-form-control:focus,
.dokan-form-group input:focus,
.dokan-form-group select:focus,
.dokan-form-group textarea:focus {
    outline: 2px solid #ff6b00;
    outline-offset: 1px;
    border-color: #ff6b00;
}

.dokan-btn,
input[type="submit"].dokan-btn {
    min-height: 44px;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    text-decoration: none;
}

.dokan-btn-theme,
input[type="submit"].dokan-btn-theme {
    background: #ff6b00;
    color: #fff;
}

.dokan-btn-theme:hover,
input[type="submit"].dokan-btn-theme:hover {
    background: #e56000;
    color: #fff;
}

.dokan-btn-default {
    background: #f1f5f9;
    color: #334155;
}

.dokan-btn-default:hover {
    background: #e2e8f0;
    color: #1e293b;
}

/* ==========================================================================
   Responsive Breakpoints for Dokan
   ========================================================================== */

@media (max-width: 1024px) {
    .lunthe-orders-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .dokan-dashboard-wrap {
        flex-direction: column;
        padding: 0 16px;
        margin: 20px auto 40px;
    }

    .dokan-dash-sidebar {
        flex: 0 0 100%;
        width: 100%;
        padding: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box;
    }

    .dokan-dash-sidebar ul.dokan-dashboard-menu {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 8px;
        white-space: nowrap;
    }

    .dokan-dash-sidebar ul.dokan-dashboard-menu li {
        margin-bottom: 0;
        flex: 0 0 auto;
    }

    .dokan-dash-sidebar ul.dokan-dashboard-menu li a {
        padding: 8px 14px;
        font-size: 13px;
        min-height: 44px;
        border-radius: 9999px;
        background: #f8fafc;
    }

    .dokan-dashboard-content {
        padding: 20px 16px;
        border-radius: 16px;
    }

    .lunthe-store-header-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }

    .lunthe-store-avatar-wrap {
        width: 80px;
        height: 80px;
        flex: 0 0 80px;
    }

    /* Stack Dokan grid columns */
    .dokan-w12, .dokan-w8, .dokan-w6, .dokan-w5, .dokan-w4, .dokan-w3 {
        width: 100% !important;
        float: none !important;
    }
}

@media (max-width: 480px) {
    .lunthe-orders-summary {
        grid-template-columns: 1fr;
    }

    .lunthe-orders-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .lunthe-orders-toolbar-left {
        flex-direction: column;
        align-items: stretch;
    }

    .lunthe-orders-toolbar-left .dokan-form-control,
    .lunthe-orders-toolbar-left input[type="submit"] {
        width: 100%;
    }
}

/* ==========================================================================
   LUNTHE Seller Workspace Premium — Content Polish
   Background #f6f7fb, cards white 1px border 14-18 radius, consistent
   Extends approved dark navy rail + white header + orange accent shell
   ========================================================================== */

/* Workspace background + content max-width */
.dokan-dashboard .dokan-dashboard-content{
    background:#f6f7fb !important;
    border:0 !important;
    box-shadow:none !important;
    padding:24px !important;
}
.dokan-dashboard-content .dokan-dashboard-header,
.dokan-dashboard-content .entry-title{
    font-size:22px !important;
    font-weight:800 !important;
    letter-spacing:-.02em !important;
    color:#111827 !important;
    margin:0 0 12px !important;
}
.dokan-dashboard-content .dokan-dashboard-header + p,
.dokan-dashboard-content .entry-title + p{
    color:#64748b !important;
    font-size:14px !important;
    margin:0 0 20px !important;
}

/* Overview — WooCommerce analytics header + metric cards */
.dokan-dashboard-content .woocommerce-layout__header{
    background:#fff !important;
    border:1px solid #e2e8f0 !important;
    border-radius:16px !important;
    padding:16px 20px !important;
    margin-bottom:20px !important;
    box-shadow:0 4px 12px rgba(15,23,42,.04) !important;
}
.dokan-dashboard-content .dokan-analytics-vendor-earning-section{
    display:flex !important;
    align-items:center !important;
    gap:12px !important;
    flex-wrap:wrap !important;
}
.dokan-dashboard-content #dokan-analytics-app .woocommerce-layout__header h3{
    font-size:18px !important;
    font-weight:800 !important;
}

/* Metric cards — equal heights, consistent */
.dokan-dashboard-content .dokan-panel,
.dokan-dashboard-content .dokan-dashboard-content .dokan-panel{
    background:#fff !important;
    border:1px solid #e2e8f0 !important;
    border-radius:16px !important;
    padding:18px 20px !important;
    box-shadow:0 4px 12px rgba(15,23,42,.04) !important;
}
.dokan-dashboard-content .dokan-panel-heading{
    font-size:13px !important;
    font-weight:700 !important;
    text-transform:uppercase !important;
    letter-spacing:.04em !important;
    color:#475467 !important;
    border-bottom:1px solid #f1f5f9 !important;
    padding-bottom:10px !important;
    margin-bottom:14px !important;
}

/* Products — empty state, tabs, search, filter */
.dokan-product-listing-area .dokan-product-listing-wrapper.dokan-dashboard-not-product-found{
    background:#fff !important;
    border:1px solid #e2e8f0 !important;
    border-radius:18px !important;
    padding:40px 24px !important;
    text-align:center !important;
    box-shadow:0 4px 12px rgba(15,23,42,.04) !important;
}
.dokan-product-listing-area .no-product-found-icon{
    width:64px !important;
    height:64px !important;
    margin:0 auto 16px !important;
    opacity:.9 !important;
}
.dokan-product-listing-area .dokan-blank-product-message{
    font-size:16px !important;
    font-weight:700 !important;
    color:#111827 !important;
    margin:0 0 8px !important;
}
.dokan-product-listing-area .dokan-product-listing-wrapper p{
    color:#64748b !important;
    font-size:14px !important;
}
.dokan-product-listing-area .dokan-btn{
    margin-top:12px !important;
}
/* Products status tabs */
.dokan-product-listing-area .dokan-product-listing .dokan-listing-filter,
.dokan-orders-area .subsubsub{
    display:flex !important;
    flex-wrap:wrap !important;
    gap:8px !important;
    margin:0 0 16px !important;
    padding:0 !important;
    list-style:none !important;
}
.dokan-product-listing-area .dokan-listing-filter li a,
.dokan-orders-area .subsubsub li a{
    display:inline-flex !important;
    align-items:center !important;
    padding:8px 14px !important;
    border-radius:9999px !important;
    background:#fff !important;
    border:1px solid #e2e8f0 !important;
    color:#475467 !important;
    font-size:13px !important;
    font-weight:600 !important;
    text-decoration:none !important;
}
.dokan-product-listing-area .dokan-listing-filter li.active a,
.dokan-orders-area .subsubsub li.active a{
    background:#111827 !important;
    color:#fff !important;
    border-color:#111827 !important;
}

/* Withdraw — balance card, payment methods */
.dokan-withdraw-area .dokan-panel{
    background:#fff !important;
    border:1px solid #e2e8f0 !important;
    border-radius:16px !important;
}
.dokan-withdraw-area .dokan-panel-body .dokan-panel-inner-container{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:16px !important;
}
.dokan-withdraw-area .dokan-withdraw-balance{
    background:linear-gradient(135deg,#ff6b00 0%,#ff8c33 100%) !important;
    color:#fff !important;
    border-radius:16px !important;
    padding:20px !important;
}
.dokan-withdraw-area .dokan-withdraw-balance strong{
    color:#fff !important;
    font-size:24px !important;
}
.dokan-withdraw-area .dokan-form-group{
    background:#fff !important;
    border:1px solid #e2e8f0 !important;
    border-radius:14px !important;
    padding:16px !important;
}

/* Settings — Store Identity, Business, Availability, Pricing */
.dokan-settings-area .dokan-form-group,
.dokan-settings-area .dokan-store-settign-header-wrap{
    background:#fff !important;
    border:1px solid #e2e8f0 !important;
    border-radius:16px !important;
    padding:20px !important;
    margin-bottom:16px !important;
    box-shadow:0 4px 12px rgba(15,23,42,.04) !important;
}
.dokan-settings-area .dokan-form-group label,
.dokan-settings-area .dokan-control-label{
    font-size:13px !important;
    font-weight:600 !important;
    color:#334155 !important;
    margin-bottom:6px !important;
}
.dokan-settings-area .dokan-form-control{
    min-height:44px !important;
    border-radius:10px !important;
}
.dokan-settings-area .dokan-update-setting-top{
    position:sticky !important;
    top:16px !important;
    z-index:5 !important;
}

/* Pricing & Dropshipping card — 2-col on desktop, 1-col mobile */
.lunthe-seller-panel,
.lunthe-seller-defaults-box{
    background:#fff !important;
    border:1px solid #e2e8f0 !important;
    border-radius:16px !important;
    padding:20px !important;
    box-shadow:0 4px 12px rgba(15,23,42,.04) !important;
    max-width:100% !important;
}
.lunthe-seller-panel .lunthe-sf-section{
    border-top:1px solid #f1f5f9 !important;
    padding-top:16px !important;
    margin-top:16px !important;
}
.lunthe-seller-panel .lunthe-sf-row{
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    gap:12px !important;
    align-items:start !important;
}
@media(max-width:900px){
    .lunthe-seller-panel .lunthe-sf-row{grid-template-columns:1fr !important;}
}
.lunthe-sf-controls{
    gap:10px !important;
}
.lunthe-sf-input, .lunthe-sf-select{
    min-height:44px !important;
    border-radius:10px !important;
}
.lunthe-sf-mode{
    min-height:44px !important;
    border-radius:10px !important;
}

/* Forms — consistent */
.dokan-form-group input, .dokan-form-group select, .dokan-form-group textarea{
    min-height:44px !important;
    border-radius:10px !important;
}

/* Tables + badges — already premium, ensure no overflow */
.dokan-table, .lunthe-orders-table{
    min-width:650px !important;
}
.dokan-table-responsive, .lunthe-orders-table-wrap{
    border-radius:14px !important;
}

/* Empty states — intentional, compact */
.dokan-empty, .dokan-dashboard-not-product-found, .dokan-panel .dokan-empty{
    text-align:center !important;
    padding:32px 20px !important;
}

/* Responsive — workspace retains sidebar at 1024/1366, stacks at phone */
@media(max-width:768px){
    .dokan-dashboard .dokan-dashboard-content{padding:16px !important;}
    .dokan-withdraw-area .dokan-panel-body .dokan-panel-inner-container{grid-template-columns:1fr !important;}
}
