/* The Sprit - Marketplace Styles */

/* Dashboard Header */
.pcshop-seller-dashboard .pcshop-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}
.pcshop-seller-dashboard .pcshop-dashboard-header h2 {
    margin: 0;
    color: var(--pcshop-dark);
}

/* Seller Status Badge */
.pcshop-seller-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: capitalize;
}
.pcshop-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.pcshop-seller-status.pending { background: #fff3cd; color: #856404; }
.pcshop-seller-status.pending .pcshop-status-dot { background: #ffc107; }
.pcshop-seller-status.active { background: #d4edda; color: #155724; }
.pcshop-seller-status.active .pcshop-status-dot { background: #28a745; }
.pcshop-seller-status.suspended { background: #f8d7da; color: #721c24; }
.pcshop-seller-status.suspended .pcshop-status-dot { background: #dc3545; }
.pcshop-seller-status.rejected { background: #f8d7da; color: #721c24; }
.pcshop-seller-status.rejected .pcshop-status-dot { background: #dc3545; }

/* Notice */
.pcshop-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}
.pcshop-notice-warning { background: #fff3cd; border-left: 4px solid #ffc107; color: #856404; }
.pcshop-notice-success { background: #d4edda; border-left: 4px solid #28a745; color: #155724; }
.pcshop-notice-error { background: #f8d7da; border-left: 4px solid #dc3545; color: #721c24; }
.pcshop-notice-info { background: #d1ecf1; border-left: 4px solid #17a2b8; color: #0c5460; }
.pcshop-notice-icon { font-weight: 700; font-size: 1.2rem; }

/* Stats Grid */
.pcshop-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}
.pcshop-stats-compact {
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 2rem;
}
.pcshop-stat-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: box-shadow 0.2s;
}
.pcshop-stat-card:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.pcshop-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.pcshop-stat-icon svg { width: 24px; height: 24px; }
.pcshop-stat-orders { background: #e3f2fd; color: #1976d2; }
.pcshop-stat-earnings { background: #e8f5e9; color: #388e3c; }
.pcshop-stat-balance { background: #fff3e0; color: #f57c00; }
.pcshop-stat-products { background: #fce4ec; color: #c62828; }
.pcshop-stat-info { display: flex; flex-direction: column; min-width: 0; }
.pcshop-stat-value { font-size: 1.25rem; font-weight: 700; color: var(--pcshop-dark); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcshop-stat-label { font-size: 0.8rem; color: #888; margin-top: 2px; }

/* Compact stats */
.pcshop-stats-compact .pcshop-stat-card {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
    padding: 1rem;
}
.pcshop-stats-compact .pcshop-stat-icon { display: none; }

/* Sections */
.pcshop-dashboard-sections,
.pcshop-seller-products,
.pcshop-seller-orders,
.pcshop-seller-payments,
.pcshop-seller-settings,
.pcshop-seller-balance,
.pcshop-seller-product-form,
.pcshop-seller-order-detail,
.pcshop-seller-dashboard {
    margin-bottom: 2rem;
    width: 100%;
}
.pcshop-section { margin-bottom: 2rem; }
.pcshop-section h3 {
    font-size: 1.1rem;
    color: var(--pcshop-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e5e5;
}

/* Section Header */
.pcshop-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.pcshop-section-header h2 { margin: 0; color: var(--pcshop-dark); }
.pcshop-count { color: #888; font-size: 0.9rem; }

/* Tables */
.pcshop-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
}
.pcshop-table thead th {
    background: #f8f9fa;
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #666;
    border-bottom: 1px solid #e5e5e5;
}
.pcshop-table tbody td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
    vertical-align: middle;
}
.pcshop-table tbody tr:last-child td { border-bottom: none; }
.pcshop-table tbody tr:hover { background: #f8f9fa; }
.pcshop-table a { color: var(--pcshop-primary); text-decoration: none; }
.pcshop-table a:hover { text-decoration: underline; }
.pcshop-na { color: #aaa; }

/* Order Status */
.pcshop-order-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: capitalize;
    white-space: nowrap;
}
.pcshop-status-pending { background: #fff3cd; color: #856404; }
.pcshop-status-completed { background: #d4edda; color: #155724; }
.pcshop-status-processing { background: #cce5ff; color: #004085; }
.pcshop-status-refunded { background: #e2e3e5; color: #383d41; }
.pcshop-status-cancelled { background: #f8d7da; color: #721c24; }
.pcshop-status-shipped { background: #cce5ff; color: #004085; }
.pcshop-status-active { background: #d4edda; color: #155724; }
.pcshop-status-inactive { background: #e2e3e5; color: #383d41; }
.pcshop-status-failed { background: #f8d7da; color: #721c24; }

/* Product Cell */
.pcshop-product-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}
.pcshop-product-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f5f5f5;
}
.pcshop-product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pcshop-product-name { display: flex; flex-direction: column; }
.pcshop-product-name a { font-weight: 600; }
.pcshop-product-id { font-size: 0.8rem; color: #888; }
.pcshop-product-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: capitalize;
}

/* Actions Cell */
.pcshop-actions-cell {
    display: flex;
    gap: 6px;
    align-items: center;
}

/* Empty State */
.pcshop-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #888;
}
.pcshop-empty-state svg { margin-bottom: 1rem; stroke: #ccc; }
.pcshop-empty-state h3 { color: var(--pcshop-dark); margin-bottom: 0.5rem; }
.pcshop-empty { color: #888; font-style: italic; padding: 1rem 0; }

/* Dashboard Actions */
.pcshop-dashboard-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* Buttons */
.pcshop-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    white-space: nowrap;
}
.pcshop-btn svg { width: 16px; height: 16px; }
.pcshop-btn-primary { background: var(--pcshop-primary); color: #fff; }
.pcshop-btn-primary:hover { background: #e03e3e; color: #fff; text-decoration: none; }
.pcshop-btn-cancel { background: #f6f7f7; color: #d63638; border: 1px solid #d63638; }
.pcshop-btn-cancel:hover { background: #d63638; color: #fff; }
.pcshop-btn-outline { background: #fff; border: 1px solid #ddd; color: var(--pcshop-dark); }
.pcshop-btn-outline:hover { border-color: var(--pcshop-primary); color: var(--pcshop-primary); text-decoration: none; }
.pcshop-btn-danger { background: var(--pcshop-danger, #dc3545); color: #fff; }
.pcshop-btn-danger:hover { background: #c82333; color: #fff; text-decoration: none; }
.pcshop-btn-sm { padding: 5px 12px; font-size: 0.8rem; }
.pcshop-btn-block { width: 100%; justify-content: center; }

/* Forms */
.pcshop-form-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 1.5rem;
    align-items: start;
}
.pcshop-form-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}
.pcshop-form-card h3 {
    font-size: 1rem;
    color: var(--pcshop-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
}
.pcshop-form-row {
    margin-bottom: 1rem;
}
.pcshop-form-row:last-child { margin-bottom: 0; }
.pcshop-form-row label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 4px;
}
.pcshop-form-row-half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.pcshop-form-help {
    font-size: 0.8rem;
    color: #888;
    margin-top: 4px;
}
.pcshop-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.pcshop-input:focus { outline: none; border-color: var(--pcshop-primary); box-shadow: 0 0 0 3px rgba(255,71,71,0.1); }
.pcshop-textarea { resize: vertical; min-height: 80px; }
.pcshop-form-actions { margin-top: 1rem; }

/* Meta Items */
.pcshop-meta-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid #f5f5f5;
}
.pcshop-meta-item:last-child { border-bottom: none; }
.pcshop-meta-label { color: #888; }

/* Order Detail Grid */
.pcshop-order-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 1.5rem;
    align-items: start;
}
.pcshop-order-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}
.pcshop-order-item:last-child { border-bottom: none; }
.pcshop-item-thumb { width: 48px; height: 48px; border-radius: 8px; overflow: hidden; background: #f5f5f5; flex-shrink: 0; }
.pcshop-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pcshop-item-info { display: flex; flex-direction: column; }
.pcshop-item-info strong { font-size: 0.95rem; }
.pcshop-item-info span { font-size: 0.85rem; color: #888; }

/* Summary Rows */
.pcshop-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid #f5f5f5;
}
.pcshop-summary-row:last-child { border-bottom: none; }
.pcshop-summary-row strong { color: var(--pcshop-primary); }

/* Tracking Info */
.pcshop-tracking-info { display: flex; flex-direction: column; gap: 6px; }
.pcshop-tracking-info div { font-size: 0.9rem; }

/* Order Timeline */
.pcshop-order-timeline {
    position: relative;
    padding-left: 24px;
}
.pcshop-order-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: #e5e7eb;
}
.pcshop-timeline-item {
    position: relative;
    padding-bottom: 20px;
}
.pcshop-timeline-item:last-child { padding-bottom: 0; }
.pcshop-timeline-dot {
    position: absolute;
    left: -24px;
    top: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #e5e7eb;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #e5e7eb;
    z-index: 1;
}
.pcshop-timeline-item.active .pcshop-timeline-dot {
    background: var(--pcshop-primary);
    box-shadow: 0 0 0 2px var(--pcshop-primary);
}
.pcshop-timeline-item.cancelled .pcshop-timeline-dot {
    background: #ef4444;
    box-shadow: 0 0 0 2px #ef4444;
}
.pcshop-timeline-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.pcshop-timeline-content strong {
    font-size: 0.9rem;
    color: var(--pcshop-dark);
}
.pcshop-timeline-content span {
    font-size: 0.8rem;
    color: #9ca3af;
}
.pcshop-timeline-item.active .pcshop-timeline-content strong {
    color: var(--pcshop-primary);
}

/* Current Product */
.pcshop-current-product {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 1rem;
}
.pcshop-current-thumb { width: 48px; height: 48px; border-radius: 8px; overflow: hidden; background: #fff; }
.pcshop-current-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Dropdown Results */
.pcshop-dropdown-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}
.pcshop-result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 0.9rem;
}
.pcshop-result-item:hover { background: #f5f5f5; }
.pcshop-result-item img { border-radius: 4px; }

/* Earning Amount */
.pcshop-earning-amount { color: var(--pcshop-danger, #dc3545); font-weight: 600; }

/* Pagination */
.pcshop-pagination {
    margin-top: 1.5rem;
    text-align: center;
}
.pcshop-pagination .page-numbers {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 2px;
    border-radius: 6px;
    text-decoration: none;
    color: #555;
    background: #f5f5f5;
    font-size: 0.9rem;
}
.pcshop-pagination .page-numbers.current {
    background: var(--pcshop-primary);
    color: #fff;
}

/* Seller Balance */
.pcshop-balance-overview {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.pcshop-balance-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 1.5rem;
}
.pcshop-balance-current h3 { margin: 0 0 0.5rem; font-size: 0.95rem; color: #888; }
.pcshop-balance-amount { font-size: 2rem; font-weight: 700; color: var(--pcshop-dark); margin-bottom: 1rem; }
.pcshop-withdraw-row {
    display: flex;
    gap: 10px;
}
.pcshop-withdraw-row input { flex: 1; }
.pcshop-balance-stats { display: flex; flex-direction: column; gap: 1rem; }
.pcshop-balance-stat {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.pcshop-balance-stat-label { color: #888; font-size: 0.9rem; }
.pcshop-balance-stat-value { font-weight: 600; }

/* Commission Info */
.pcshop-commission-info { padding: 0.5rem 0; }

/* Modal */
.pcshop-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pcshop-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}
.pcshop-modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    width: 90%;
    max-width: 400px;
    z-index: 1;
}
.pcshop-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.pcshop-modal-header h3 { margin: 0; }
.pcshop-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #888;
    line-height: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .pcshop-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .pcshop-stats-compact { grid-template-columns: repeat(2, 1fr); }
    .pcshop-form-grid { grid-template-columns: 1fr; }
    .pcshop-order-grid { grid-template-columns: 1fr; }
    .pcshop-balance-overview { grid-template-columns: 1fr; }
    .pcshop-form-row-half { grid-template-columns: 1fr; }
    .pcshop-product-form .pcshop-form-row-third { grid-template-columns: 1fr; }
    .pcshop-withdraw-row { flex-direction: column; }
    .pcshop-dashboard-actions { flex-direction: column; }
    .pcshop-order-tabs { gap: 4px; padding: 3px; }
    .pcshop-order-tab { padding: 8px 12px; font-size: 0.8rem; gap: 5px; }
    .pcshop-tab-label { display: none; }
    .pcshop-tab-icon svg { width: 16px; height: 16px; }
    .pcshop-order-card {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }
    .pcshop-order-card-left { gap: 12px; }
    .pcshop-order-card-right {
        justify-content: space-between;
        border-top: 1px solid #f3f4f6;
        padding-top: 12px;
    }
    .pcshop-order-earning { align-items: flex-start; }
    .pcshop-order-qty { border: none; padding: 0; }
    .pcshop-variant-options-header { grid-template-columns: 1fr 80px 80px 32px; gap: 6px; }
    .pcshop-variant-option-row { grid-template-columns: 1fr 80px 80px 32px; gap: 6px; }
}
@media (max-width: 480px) {
    .pcshop-stats-grid { grid-template-columns: 1fr; }
    .pcshop-section-header { flex-direction: column; align-items: flex-start; }
    .pcshop-table { font-size: 0.85rem; }
    .pcshop-table thead th,
    .pcshop-table tbody td { padding: 0.5rem 0.75rem; }
    .pcshop-orders-search .pcshop-input { width: 100%; }
    .pcshop-order-tab { padding: 8px 10px; }
    .pcshop-tab-count { min-width: 18px; height: 18px; font-size: 0.7rem; }
    .pcshop-order-card { padding: 12px 14px; }
    .pcshop-order-thumb { width: 44px; height: 44px; }
    .pcshop-order-card-right { flex-wrap: wrap; gap: 10px; }
    .pcshop-order-actions { width: 100%; }
    .pcshop-order-actions .pcshop-btn { flex: 1; justify-content: center; }
    .pcshop-variant-options-header { grid-template-columns: 1fr 70px 70px 28px; gap: 4px; font-size: 11px; }
    .pcshop-variant-option-row { grid-template-columns: 1fr 70px 70px 28px; gap: 4px; }
    .pcshop-variant-group { padding: 12px; }
}

/* ===== Seller Public Shop Page ===== (styles inlined in template) */

/* ===== Product Detail - Seller Info ===== */
.pcshop-pd-seller-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    font-size: 0.9rem;
    color: #555;
    border-top: 1px solid #f0f0f0;
    margin-top: 6px;
}
.pcshop-seller-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--pcshop-primary);
}
.pcshop-seller-link:hover { text-decoration: underline; }
.pcshop-seller-avatar-sm {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}
.pcshop-seller-rating-sm {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 0.8rem;
    color: #888;
}
.pcshop-seller-rating-sm svg { vertical-align: middle; }

/* ===== Seller Product Form Styles ===== */
.pcshop-product-form .pcshop-tabs { display:flex; gap:0; border-bottom:2px solid #e5e5e5; margin-bottom:20px; }
.pcshop-product-form .pcshop-tab { padding:10px 20px; cursor:pointer; border:none; background:none; font-size:14px; font-weight:500; color:#666; border-bottom:2px solid transparent; margin-bottom:-2px; transition:all 0.2s; }
.pcshop-product-form .pcshop-tab:hover { color:#ff4747; }
.pcshop-product-form .pcshop-tab.active { color:#ff4747; border-bottom-color:#ff4747; }
.pcshop-product-form .pcshop-tab-content { display:none; }
.pcshop-product-form .pcshop-tab-content.active { display:block; }
.pcshop-product-form .pcshop-form-row-half { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.pcshop-product-form .pcshop-form-row-third { display:grid; grid-template-columns:1fr 1fr 1fr; gap:16px; }
.pcshop-product-form .pcshop-img-preview { width:100px; height:100px; object-fit:cover; border-radius:8px; border:2px solid #eee; margin-top:8px; }
.pcshop-product-form .pcshop-gallery-preview { display:flex; gap:8px; flex-wrap:wrap; margin-top:8px; }
.pcshop-product-form .pcshop-gallery-preview img { width:80px; height:80px; object-fit:cover; border-radius:6px; border:2px solid #eee; }
.pcshop-product-form .pcshop-img-upload-btn { display:inline-flex; align-items:center; gap:6px; padding:8px 16px; background:#f5f5f5; border:2px dashed #ccc; border-radius:8px; cursor:pointer; font-size:13px; color:#555; transition:all 0.2s; }
.pcshop-product-form .pcshop-img-upload-btn:hover { border-color:#ff4747; color:#ff4747; }
.pcshop-product-form .pcshop-toggle-row { display:flex; align-items:center; gap:10px; padding:10px 0; }
.pcshop-product-form .pcshop-toggle { position:relative; width:40px; height:22px; }
.pcshop-product-form .pcshop-toggle input { opacity:0; width:0; height:0; }
.pcshop-product-form .pcshop-toggle-slider { position:absolute; inset:0; background:#ccc; border-radius:22px; cursor:pointer; transition:0.3s; }
.pcshop-product-form .pcshop-toggle-slider:before { content:""; position:absolute; height:16px; width:16px; left:3px; bottom:3px; background:#fff; border-radius:50%; transition:0.3s; }
.pcshop-product-form .pcshop-toggle input:checked + .pcshop-toggle-slider { background:#ff4747; }
.pcshop-product-form .pcshop-toggle input:checked + .pcshop-toggle-slider:before { transform:translateX(18px); }
.pcshop-product-form .pcshop-cat-list { max-height:200px; overflow-y:auto; border:1px solid #e5e5e5; border-radius:8px; padding:10px; }
.pcshop-variant-group { border:1px solid #e5e5e5; border-radius:10px; padding:16px; margin-bottom:14px; background:#fafafa; }
.pcshop-variant-group-header { display:flex; gap:10px; align-items:center; margin-bottom:12px; }
.pcshop-variant-group-header .pcshop-input { flex:1; }
.pcshop-variant-options { display:flex; flex-direction:column; gap:8px; margin-bottom:10px; }
.pcshop-variant-options-header { display:grid; grid-template-columns:1fr 120px 120px 40px; gap:8px; margin-bottom:6px; padding:0 2px; }
.pcshop-variant-options-header span { font-size:12px; font-weight:600; color:#888; text-transform:uppercase; letter-spacing:0.5px; }
.pcshop-variant-option-row { display:grid; grid-template-columns:1fr 120px 120px 40px; gap:8px; align-items:center; }
.pcshop-variant-option-row .pcshop-input { width:100%; }
.pcshop-variant-option-row .pcshop-variant-sale-adj { color:#16a34a; }
.pcshop-product-form .pcshop-cat-item { display:flex; align-items:center; gap:8px; padding:4px 0; }
.pcshop-product-form .pcshop-tag-list { display:flex; flex-wrap:wrap; gap:6px; }
.pcshop-product-form .pcshop-tag-item { display:flex; align-items:center; gap:4px; padding:4px 10px; background:#f5f5f5; border-radius:20px; font-size:12px; }
.pcshop-product-form .pcshop-tag-item input { margin:0; }
.pcshop-product-form .pcshop-tax-search-row { display:flex; gap:6px; margin-bottom:10px; }
.pcshop-product-form .pcshop-tax-search-row .pcshop-input { flex:1; }
.pcshop-product-form .pcshop-btn-sm { padding:6px 12px; font-size:12px; white-space:nowrap; }

/* ===== Image Upload Styles ===== */
.pcshop-img-preview-box { min-height:100px; border:2px dashed #ddd; border-radius:8px; display:flex; align-items:center; justify-content:center; margin-bottom:10px; overflow:hidden; background:#fafafa; }
.pcshop-img-preview-box img { max-width:100%; border-radius:6px; }
.pcshop-img-placeholder { text-align:center; padding:20px; color:#999; }
.pcshop-img-placeholder span { display:block; margin-top:6px; font-size:12px; }
.pcshop-img-actions { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.pcshop-img-upload-btn { cursor:pointer; display:inline-flex; align-items:center; gap:6px; }
.pcshop-gallery-preview { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:10px; }
.pcshop-gallery-item { position:relative; display:inline-block; }
.pcshop-gallery-remove { position:absolute; top:-6px; right:-6px; width:20px; height:20px; border-radius:50%; background:#dc3545; color:#fff; border:none; font-size:14px; line-height:18px; text-align:center; cursor:pointer; padding:0; }

/* ===== Seller Orders Page ===== */
.pcshop-seller-orders {
    width: 100%;
}
.pcshop-orders-subtitle {
    color: #888;
    font-size: 0.9rem;
    margin: 4px 0 0;
}
.pcshop-orders-search {
    margin-left: auto;
}
.pcshop-orders-search .pcshop-input {
    width: 240px;
    padding: 8px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9rem;
    background: #fff;
}

/* Order Tabs */
.pcshop-order-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 1.5rem;
    padding: 4px;
    background: #f8f9fa;
    border-radius: 12px;
    overflow-x: auto;
}
.pcshop-order-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    color: #666;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex: 1;
    justify-content: center;
}
.pcshop-order-tab:hover {
    background: #fff;
    color: var(--pcshop-dark);
    text-decoration: none;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.pcshop-order-tab.active {
    background: #fff;
    color: var(--tab-color, var(--pcshop-primary));
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.pcshop-order-tab.active .pcshop-tab-count {
    background: var(--tab-color, var(--pcshop-primary));
    color: #fff;
}
.pcshop-tab-icon {
    display: flex;
    align-items: center;
}
.pcshop-tab-icon svg {
    width: 18px;
    height: 18px;
}
.pcshop-tab-label {
    display: inline;
}
.pcshop-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 12px;
    background: #e5e7eb;
    color: #666;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
}

/* Orders List */
.pcshop-orders-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Order Card */
.pcshop-order-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 16px 20px;
    transition: all 0.2s ease;
    gap: 16px;
}
.pcshop-order-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.pcshop-order-card-left {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    flex: 1;
}

/* Order Thumb */
.pcshop-order-thumb {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f3f4f6;
}
.pcshop-order-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pcshop-order-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

/* Order Info */
.pcshop-order-info {
    min-width: 0;
    flex: 1;
}
.pcshop-order-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}
.pcshop-order-id {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--pcshop-dark);
}
.pcshop-order-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--badge-bg, #f3f4f6);
    color: var(--badge-color, #666);
}
.pcshop-order-product-name {
    font-size: 0.9rem;
    color: #555;
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.pcshop-order-more-items {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    background: #f3f4f6;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
}
.pcshop-order-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.8rem;
    color: #9ca3af;
}
.pcshop-meta-customer,
.pcshop-meta-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.pcshop-meta-customer svg,
.pcshop-meta-date svg {
    width: 14px;
    height: 14px;
    opacity: 0.6;
}

/* Order Card Right */
.pcshop-order-card-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

/* Earning */
.pcshop-order-earning {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}
.pcshop-earning-label {
    font-size: 0.75rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}
.pcshop-earning-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: #059669;
}

/* Quantity */
.pcshop-order-qty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 0 12px;
    border-left: 1px solid #f3f4f6;
    border-right: 1px solid #f3f4f6;
}
.pcshop-qty-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--pcshop-dark);
}
.pcshop-qty-label {
    font-size: 0.7rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Order Actions */
.pcshop-order-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Tracking Badge */
.pcshop-tracking-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: #ede9fe;
    color: #7c3aed;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}
.pcshop-tracking-badge-full {
    padding: 6px 14px;
    font-size: 0.85rem;
}

/* Process Button */
.pcshop-process-btn {
    animation: pcshop-pulse 2s infinite;
}
@keyframes pcshop-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,71,71,0.4); }
    50% { box-shadow: 0 0 0 6px rgba(255,71,71,0); }
}

/* Empty State */
.pcshop-empty-icon {
    margin-bottom: 1rem;
}
.pcshop-empty-icon svg {
    stroke: #d1d5db;
}

/* Pagination */
.pcshop-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s;
}
.pcshop-page-btn:hover {
    border-color: var(--pcshop-primary);
    color: var(--pcshop-primary);
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.pcshop-page-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}
.pcshop-page-info {
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 500;
}

/* ===== Admin Marketplace Styles ===== */
.pcshop-admin-stats { display: flex; gap: 12px; margin: 15px 0; flex-wrap: wrap; }

/* ===== Form Error Banner ===== */
.pcshop-form-error-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    margin-bottom: 20px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 4px solid #ef4444;
    border-radius: 8px;
    color: #991b1b;
    font-size: 14px;
    position: sticky;
    top: 40px;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(239,68,68,0.1);
}
.pcshop-form-error-icon {
    flex-shrink: 0;
    color: #ef4444;
    margin-top: 2px;
}
.pcshop-form-error-content {
    flex: 1;
}
.pcshop-form-error-content strong {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
}
.pcshop-form-error-content ul {
    margin: 0;
    padding-left: 18px;
}
.pcshop-form-error-content li {
    margin-bottom: 4px;
    line-height: 1.4;
}
.pcshop-form-error-close {
    flex-shrink: 0;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #991b1b;
    padding: 0 4px;
    line-height: 1;
}
.pcshop-form-error-close:hover {
    color: #7f1d1d;
}

/* Field error highlight */
.pcshop-field-error,
.pcshop-input.pcshop-field-error,
input.pcshop-field-error,
select.pcshop-field-error,
textarea.pcshop-field-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239,68,68,0.15) !important;
    background-color: #fff5f5 !important;
}
.pcshop-form-card:has(.pcshop-field-error) {
    border-color: #fecaca !important;
    box-shadow: 0 0 0 2px rgba(239,68,68,0.08) !important;
}
.pcshop-field-error-pulse {
    animation: pcshopFieldPulse 1.5s ease-in-out 3;
}
@keyframes pcshopFieldPulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(239,68,68,0.15) !important; }
    50% { box-shadow: 0 0 0 6px rgba(239,68,68,0.3) !important; }
}

/* Variant Stock in Inventory Tab */
#pcshop-variant-stock-section .pcshop-variant-stock-group {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}
#pcshop-variant-stock-section .pcshop-variant-stock-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.pcshop-variant-stock-group-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px;
    padding: 0;
}
.pcshop-variant-stock-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}
.pcshop-variant-stock-row label {
    flex: 0 0 140px;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pcshop-variant-stock-row .pcshop-input {
    flex: 0 0 100px;
}

/* Hide stock column in Variants tab when manage_stock is active */
.pcshop-manage-stock-active .pcshop-variant-stock-col {
    display: none;
}

@media (max-width: 768px) {
    .pcshop-variant-stock-row {
        flex-wrap: wrap;
        gap: 6px;
    }
    .pcshop-variant-stock-row label {
        flex: 0 0 100%;
        font-size: 12px;
    }
    .pcshop-variant-stock-row .pcshop-input {
        flex: 1;
        min-width: 80px;
    }
}
