/* WC Marketplace Pro - Frontend Styles v2.0 */

/* ===== VARIÁVEIS PADRÃO (MODO CLARO) ===== */
:root {
    --wcmp-primary: #2271b1;
    --wcmp-primary-hover: #135e96;
    --wcmp-success: #00a32a;
    --wcmp-danger: #d63638;
    --wcmp-warning: #dba617;
    --wcmp-info: #72aee6;
    --wcmp-gray: #646970;
    --wcmp-light: #f0f0f1;
    --wcmp-border: #c3c4c7;
    --wcmp-radius: 8px;
    --wcmp-shadow: 0 1px 3px rgba(0,0,0,0.08);
    --wcmp-shadow-lg: 0 4px 16px rgba(0,0,0,0.12);
    --wcmp-sidebar-bg: #1e1e1e;
    --wcmp-sidebar-text: #c3c4c7;
    --wcmp-card-bg: #ffffff;
    --wcmp-body-bg: #f0f0f1;
    --wcmp-text: #1d2327;
    --wcmp-text-secondary: #646970;
    --wcmp-input-bg: #ffffff;
    --wcmp-input-border: #c3c4c7;
    --wcmp-input-text: #1d2327;
}

/* ===== MODO ESCURO ===== */
.wcmp-dark-mode {
    --wcmp-primary: #4f94d4;
    --wcmp-primary-hover: #72aee6;
    --wcmp-success: #00a32a;
    --wcmp-danger: #d63638;
    --wcmp-warning: #dba617;
    --wcmp-info: #72aee6;
    --wcmp-gray: #a7aaad;
    --wcmp-light: #2c2c2c;
    --wcmp-border: #3c434a;
    --wcmp-sidebar-bg: #0c0c0c;
    --wcmp-sidebar-text: #a7aaad;
    --wcmp-card-bg: #1e1e1e;
    --wcmp-body-bg: #121212;
    --wcmp-text: #f0f0f1;
    --wcmp-text-secondary: #a7aaad;
    --wcmp-input-bg: #2c2c2c;
    --wcmp-input-border: #3c434a;
    --wcmp-input-text: #f0f0f1;
}

/* Auto-detecta preferência do sistema */
@media (prefers-color-scheme: dark) {
    .wcmp-auto-mode {
        --wcmp-primary: #4f94d4;
        --wcmp-primary-hover: #72aee6;
        --wcmp-success: #00a32a;
        --wcmp-danger: #d63638;
        --wcmp-warning: #dba617;
        --wcmp-info: #72aee6;
        --wcmp-gray: #a7aaad;
        --wcmp-light: #2c2c2c;
        --wcmp-border: #3c434a;
        --wcmp-sidebar-bg: #0c0c0c;
        --wcmp-sidebar-text: #a7aaad;
        --wcmp-card-bg: #1e1e1e;
        --wcmp-body-bg: #121212;
        --wcmp-text: #f0f0f1;
        --wcmp-text-secondary: #a7aaad;
        --wcmp-input-bg: #2c2c2c;
        --wcmp-input-border: #3c434a;
        --wcmp-input-text: #f0f0f1;
    }
}

/* ===== RESET E BASE ===== */
.wcmp-registration-wrap,
.wcmp-dashboard-wrap,
.wcmp-stores-grid {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: var(--wcmp-text);
    line-height: 1.5;
}

/* ===== ALERTAS ===== */
.wcmp-alert {
    padding: 14px 18px;
    border-radius: var(--wcmp-radius);
    margin-bottom: 20px;
    border-left: 4px solid;
    font-size: 14px;
}
.wcmp-alert-error { background: rgba(214,54,56,0.08); border-color: var(--wcmp-danger); color: var(--wcmp-danger); }
.wcmp-alert-success { background: rgba(0,163,42,0.08); border-color: var(--wcmp-success); color: var(--wcmp-success); }
.wcmp-alert-info { background: rgba(114,174,230,0.08); border-color: var(--wcmp-info); color: var(--wcmp-info); }
.wcmp-alert ul { margin: 0; padding-left: 20px; }

/* ===== BOTÕES ===== */
.wcmp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: var(--wcmp-radius);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.4;
    background: var(--wcmp-card-bg);
    color: var(--wcmp-text);
    border-color: var(--wcmp-border);
}
.wcmp-btn:hover { background: var(--wcmp-light); }
.wcmp-btn-primary { background: var(--wcmp-primary); color: #fff; border-color: var(--wcmp-primary); }
.wcmp-btn-primary:hover { background: var(--wcmp-primary-hover); border-color: var(--wcmp-primary-hover); color: #fff; }
.wcmp-btn-secondary { background: var(--wcmp-light); border-color: var(--wcmp-border); color: var(--wcmp-text); }
.wcmp-btn-danger { background: var(--wcmp-danger); color: #fff; border-color: var(--wcmp-danger); }
.wcmp-btn-danger:hover { background: #b32d2e; border-color: #b32d2e; color: #fff; }
.wcmp-btn-success { background: var(--wcmp-success); color: #fff; border-color: var(--wcmp-success); }
.wcmp-btn-lg { padding: 14px 28px; font-size: 16px; }
.wcmp-btn-sm { padding: 6px 12px; font-size: 12px; }
.wcmp-btn-block { width: 100%; }

/* ===== FORMULÁRIOS - INPUTS COM FUNDO CLARO ===== */
.wcmp-form { max-width: 100%; }
.wcmp-form-section {
    background: var(--wcmp-card-bg);
    padding: 28px;
    margin-bottom: 20px;
    border-radius: var(--wcmp-radius);
    box-shadow: var(--wcmp-shadow);
    border: 1px solid var(--wcmp-border);
}
.wcmp-form-section h3 { margin: 0 0 20px 0; font-size: 16px; color: var(--wcmp-text); padding-bottom: 12px; border-bottom: 1px solid var(--wcmp-border); }
.wcmp-form-row { margin-bottom: 18px; }
.wcmp-form-row label { display: block; margin-bottom: 8px; font-weight: 500; font-size: 13px; color: var(--wcmp-text); }

/* INPUTS SEMPRE COM FUNDO CLARO/PROFISSIONAL */
.wcmp-form-row input[type="text"],
.wcmp-form-row input[type="email"],
.wcmp-form-row input[type="url"],
.wcmp-form-row input[type="tel"],
.wcmp-form-row input[type="password"],
.wcmp-form-row input[type="number"],
.wcmp-form-row select,
.wcmp-form-row textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--wcmp-input-border);
    border-radius: var(--wcmp-radius);
    font-size: 14px;
    background: var(--wcmp-input-bg);
    color: var(--wcmp-input-text);
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.wcmp-form-row input:focus,
.wcmp-form-row select:focus,
.wcmp-form-row textarea:focus {
    border-color: var(--wcmp-primary);
    box-shadow: 0 0 0 2px rgba(34,113,177,0.15);
    outline: none;
}
.wcmp-form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.wcmp-form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.wcmp-form-submit { display: flex; gap: 12px; align-items: center; margin-top: 24px; }
.wcmp-form-note { font-size: 12px; color: var(--wcmp-text-secondary); margin-top: 8px; }
.wcmp-field-hint { font-size: 12px; margin-top: 4px; display: block; }

/* ===== REGISTRATION ===== */
.wcmp-registration-wrap { max-width: 800px; margin: 40px auto; padding: 0 20px; }
.wcmp-registration-box {
    background: var(--wcmp-card-bg);
    padding: 48px;
    border-radius: 16px;
    box-shadow: var(--wcmp-shadow-lg);
    border: 1px solid var(--wcmp-border);
}
.wcmp-registration-box h2 { margin: 0 0 8px 0; font-size: 28px; color: var(--wcmp-text); }
.wcmp-registration-subtitle { color: var(--wcmp-text-secondary); margin-bottom: 30px; font-size: 15px; }
.wcmp-success-box { text-align: center; padding: 60px 40px; }
.wcmp-success-icon { font-size: 64px; margin-bottom: 20px; }
.wcmp-success-message { background: rgba(0,163,42,0.08); padding: 24px; border-radius: var(--wcmp-radius); margin: 24px 0; border: 1px solid var(--wcmp-success); }
.wcmp-success-actions { margin-top: 30px; }

/* ===== DASHBOARD ===== */
.wcmp-dashboard-wrap { display: flex; min-height: calc(100vh - 100px); background: var(--wcmp-body-bg); }
.wcmp-dashboard-sidebar {
    width: 270px;
    background: var(--wcmp-sidebar-bg);
    color: var(--wcmp-sidebar-text);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    transition: all 0.3s ease;
}
.wcmp-dashboard-main { flex: 1; margin-left: 270px; padding: 32px; min-height: 100vh; }

/* Toggle dark mode button */
.wcmp-dark-mode-toggle {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: var(--wcmp-sidebar-text);
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}
.wcmp-dark-mode-toggle:hover { background: rgba(255,255,255,0.2); }

.wcmp-vendor-profile { padding: 28px 24px; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.1); position: relative; }
.wcmp-vendor-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; border: 3px solid var(--wcmp-primary); }
.wcmp-vendor-avatar-placeholder { background: var(--wcmp-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: bold; text-transform: uppercase; }
.wcmp-vendor-profile h3 { margin: 0 0 8px 0; font-size: 16px; color: #fff; }
.wcmp-view-store { display: inline-block; margin-top: 12px; color: var(--wcmp-info); text-decoration: none; font-size: 13px; }
.wcmp-view-store:hover { color: #fff; }

.wcmp-dashboard-nav a {
    display: flex;
    align-items: center;
    padding: 14px 24px;
    color: var(--wcmp-sidebar-text);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}
.wcmp-dashboard-nav a:hover { background: rgba(255,255,255,0.05); color: #fff; }
.wcmp-dashboard-nav a.active { background: var(--wcmp-primary); color: #fff; border-left-color: #72aee6; }
.wcmp-dashboard-nav .dashicons { margin-right: 12px; font-size: 18px; width: 18px; height: 18px; }
.wcmp-nav-count { margin-left: auto; background: var(--wcmp-danger); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 10px; }

.wcmp-dashboard-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.wcmp-dashboard-header h2 { margin: 0; font-size: 24px; color: var(--wcmp-text); }

/* ===== STATS ===== */
.wcmp-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 30px; }
.wcmp-stat-card {
    background: var(--wcmp-card-bg);
    padding: 28px;
    border-radius: var(--wcmp-radius);
    box-shadow: var(--wcmp-shadow);
    text-align: center;
    border: 1px solid var(--wcmp-border);
    transition: transform 0.2s;
}
.wcmp-stat-card:hover { transform: translateY(-2px); }
.wcmp-stat-icon { font-size: 32px; margin-bottom: 8px; }
.wcmp-stat-value { font-size: 26px; font-weight: 700; color: var(--wcmp-text); margin-bottom: 4px; }
.wcmp-stat-label { font-size: 13px; color: var(--wcmp-text-secondary); }

/* ===== SECTIONS ===== */
.wcmp-dashboard-sections { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.wcmp-section {
    background: var(--wcmp-card-bg);
    padding: 28px;
    border-radius: var(--wcmp-radius);
    box-shadow: var(--wcmp-shadow);
    border: 1px solid var(--wcmp-border);
}
.wcmp-section h3 { margin: 0 0 16px 0; font-size: 16px; color: var(--wcmp-text); }

/* ===== TABELAS ===== */
.wcmp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.wcmp-table th {
    text-align: left;
    padding: 14px;
    border-bottom: 2px solid var(--wcmp-border);
    font-weight: 600;
    color: var(--wcmp-text);
    background: var(--wcmp-light);
}
.wcmp-table td { padding: 14px; border-bottom: 1px solid var(--wcmp-border); vertical-align: middle; color: var(--wcmp-text); }
.wcmp-table tr:hover td { background: var(--wcmp-light); }
.wcmp-table-sm th, .wcmp-table-sm td { padding: 10px 14px; font-size: 13px; }

/* ===== STATUS BADGES ===== */
.wcmp-status-badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 500; }
.wcmp-status-publish, .wcmp-status-approved, .wcmp-status-completed, .wcmp-status-processing { background: rgba(0,163,42,0.12); color: var(--wcmp-success); }
.wcmp-status-pending, .wcmp-status-pending-payment { background: rgba(219,166,23,0.12); color: var(--wcmp-warning); }
.wcmp-status-draft, .wcmp-status-rejected { background: rgba(214,54,56,0.12); color: var(--wcmp-danger); }
.wcmp-status-trash, .wcmp-status-cancelled, .wcmp-status-failed { background: rgba(214,54,56,0.12); color: var(--wcmp-danger); }
.wcmp-status-on-hold { background: rgba(114,174,230,0.12); color: var(--wcmp-info); }

/* ===== PRODUTOS ===== */
.wcmp-products-table img { border-radius: 4px; }
.wcmp-no-image { width: 50px; height: 50px; background: var(--wcmp-light); display: flex; align-items: center; justify-content: center; font-size: 10px; color: var(--wcmp-text-secondary); border-radius: 4px; }
.wcmp-product-mini-list { display: flex; flex-direction: column; gap: 12px; }
.wcmp-product-mini { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: var(--wcmp-radius); transition: background 0.2s; }
.wcmp-product-mini:hover { background: var(--wcmp-light); }
.wcmp-product-mini-img { width: 48px; height: 48px; object-fit: cover; border-radius: 4px; }
.wcmp-product-mini-info h4 { margin: 0 0 4px 0; font-size: 14px; }
.wcmp-product-mini-info h4 a { text-decoration: none; color: var(--wcmp-text); }
.wcmp-product-mini-price { color: var(--wcmp-success); font-weight: 600; font-size: 13px; }
.wcmp-product-mini-status { font-size: 11px; margin-left: 8px; }

/* ===== FORM PRODUTO ===== */
.wcmp-product-form .wcmp-image-upload {
    border: 2px dashed var(--wcmp-border);
    padding: 32px;
    text-align: center;
    border-radius: var(--wcmp-radius);
    background: var(--wcmp-light);
    transition: border-color 0.2s;
}
.wcmp-product-form .wcmp-image-upload:hover { border-color: var(--wcmp-primary); }
.wcmp-image-preview img { max-width: 200px; max-height: 200px; border-radius: 4px; margin-bottom: 10px; }
.wcmp-gallery-preview { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.wcmp-gallery-preview img { width: 80px; height: 80px; object-fit: cover; border-radius: 4px; }
.wcmp-checkbox-group { display: flex; flex-wrap: wrap; gap: 14px; }
.wcmp-checkbox-label { display: flex; align-items: center; gap: 8px; font-weight: normal; font-size: 13px; cursor: pointer; color: var(--wcmp-text); }
.wcmp-attribute-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto auto auto;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
    padding: 12px;
    background: var(--wcmp-light);
    border-radius: var(--wcmp-radius);
}
.wcmp-attr-name, .wcmp-attr-values { padding: 8px 12px; border: 1px solid var(--wcmp-input-border); border-radius: 4px; background: var(--wcmp-input-bg); color: var(--wcmp-input-text); }

/* ===== PROFILE ===== */
.wcmp-image-upload-inline { display: flex; align-items: center; gap: 16px; }
.wcmp-image-preview-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--wcmp-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--wcmp-border);
    color: var(--wcmp-text-secondary);
}
.wcmp-image-preview-circle img { width: 100%; height: 100%; object-fit: cover; }
.wcmp-image-preview-banner {
    width: 300px;
    height: 100px;
    border-radius: var(--wcmp-radius);
    overflow: hidden;
    background: var(--wcmp-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--wcmp-border);
    color: var(--wcmp-text-secondary);
}
.wcmp-image-preview-banner img { width: 100%; height: 100%; object-fit: cover; }

/* ===== CONTACT ===== */
.wcmp-contact-display { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 30px; }
.wcmp-contact-card {
    background: var(--wcmp-card-bg);
    padding: 24px;
    border-radius: var(--wcmp-radius);
    box-shadow: var(--wcmp-shadow);
    border: 1px solid var(--wcmp-border);
}
.wcmp-contact-card h3 { margin: 0 0 12px 0; font-size: 15px; color: var(--wcmp-text-secondary); }
.wcmp-contact-card p { margin: 0; font-size: 14px; color: var(--wcmp-text); }
.wcmp-social-link { display: inline-block; padding: 6px 12px; border-radius: 4px; text-decoration: none; font-size: 13px; margin-bottom: 6px; }
.wcmp-facebook { background: #1877f2; color: #fff; }
.wcmp-instagram { background: #e4405f; color: #fff; }

/* ===== MESSAGES ===== */
.wcmp-messages-container { display: flex; height: 500px; background: var(--wcmp-card-bg); border-radius: var(--wcmp-radius); box-shadow: var(--wcmp-shadow); border: 1px solid var(--wcmp-border); overflow: hidden; }
.wcmp-messages-sidebar { width: 280px; border-right: 1px solid var(--wcmp-border); background: var(--wcmp-light); }
.wcmp-messages-search { padding: 12px; border-bottom: 1px solid var(--wcmp-border); }
.wcmp-messages-search input { width: 100%; padding: 10px 14px; border: 1px solid var(--wcmp-input-border); border-radius: var(--wcmp-radius); background: var(--wcmp-input-bg); color: var(--wcmp-input-text); box-sizing: border-box; }
.wcmp-messages-list { overflow-y: auto; }
.wcmp-message-item { display: flex; gap: 12px; padding: 12px; cursor: pointer; border-bottom: 1px solid var(--wcmp-border); transition: background 0.2s; }
.wcmp-message-item:hover, .wcmp-message-active { background: var(--wcmp-card-bg); }
.wcmp-message-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--wcmp-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: bold; flex-shrink: 0; }
.wcmp-message-info { flex: 1; min-width: 0; }
.wcmp-message-info h4 { margin: 0 0 4px 0; font-size: 14px; color: var(--wcmp-text); }
.wcmp-message-info p { margin: 0; font-size: 12px; color: var(--wcmp-text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wcmp-message-time { font-size: 11px; color: var(--wcmp-text-secondary); }
.wcmp-messages-chat { flex: 1; display: flex; flex-direction: column; }
.wcmp-chat-header { padding: 14px 20px; border-bottom: 1px solid var(--wcmp-border); display: flex; justify-content: space-between; align-items: center; background: var(--wcmp-card-bg); }
.wcmp-chat-status { font-size: 12px; color: var(--wcmp-success); }
.wcmp-chat-body { flex: 1; padding: 20px; overflow-y: auto; background: var(--wcmp-light); }
.wcmp-chat-message { max-width: 70%; padding: 12px 16px; border-radius: 16px; margin-bottom: 12px; position: relative; font-size: 14px; }
.wcmp-chat-received { background: var(--wcmp-card-bg); border-bottom-left-radius: 4px; color: var(--wcmp-text); box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.wcmp-chat-time { font-size: 11px; color: var(--wcmp-text-secondary); display: block; margin-top: 4px; }
.wcmp-chat-footer { padding: 14px 20px; border-top: 1px solid var(--wcmp-border); display: flex; gap: 10px; background: var(--wcmp-card-bg); }
.wcmp-chat-footer input { flex: 1; padding: 10px 16px; border: 1px solid var(--wcmp-input-border); border-radius: 20px; background: var(--wcmp-input-bg); color: var(--wcmp-input-text); }

/* ===== EARNINGS ===== */
.wcmp-earnings-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 30px; }
.wcmp-earnings-card {
    background: var(--wcmp-card-bg);
    padding: 28px;
    border-radius: var(--wcmp-radius);
    box-shadow: var(--wcmp-shadow);
    border: 1px solid var(--wcmp-border);
    text-align: center;
}
.wcmp-earnings-card h4 { margin: 0 0 12px 0; font-size: 13px; color: var(--wcmp-text-secondary); font-weight: 500; }
.wcmp-earnings-value { font-size: 24px; font-weight: 700; }
.wcmp-earnings-total .wcmp-earnings-value { color: var(--wcmp-text); }
.wcmp-earnings-commission .wcmp-earnings-value { color: var(--wcmp-danger); }
.wcmp-earnings-net .wcmp-earnings-value { color: var(--wcmp-success); }

/* ===== SETTINGS ===== */
.wcmp-settings-sections { max-width: 600px; }
.wcmp-settings-card {
    background: var(--wcmp-card-bg);
    padding: 28px;
    border-radius: var(--wcmp-radius);
    box-shadow: var(--wcmp-shadow);
    border: 1px solid var(--wcmp-border);
    margin-bottom: 20px;
}
.wcmp-settings-card h3 { margin: 0 0 20px 0; font-size: 16px; color: var(--wcmp-text); }
.wcmp-settings-danger { border-color: var(--wcmp-danger); }

/* ===== LOJAS (SHORTCODE) ===== */
.wcmp-stores-grid { display: grid; grid-template-columns: repeat(var(--columns, 3), 1fr); gap: 24px; margin: 30px 0; }
.wcmp-store-card {
    background: var(--wcmp-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--wcmp-shadow);
    border: 1px solid var(--wcmp-border);
    transition: transform 0.2s, box-shadow 0.2s;
}
.wcmp-store-card:hover { transform: translateY(-4px); box-shadow: var(--wcmp-shadow-lg); }
.wcmp-store-banner { height: 150px; background-size: cover; background-position: center; position: relative; background-color: var(--wcmp-light); }
.wcmp-store-logo { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; position: absolute; bottom: -30px; left: 20px; border: 3px solid var(--wcmp-card-bg); box-shadow: var(--wcmp-shadow); }
.wcmp-store-info { padding: 40px 20px 20px; }
.wcmp-store-info h3 { margin: 0 0 8px 0; font-size: 18px; }
.wcmp-store-info h3 a { text-decoration: none; color: var(--wcmp-text); }
.wcmp-store-products { color: var(--wcmp-text-secondary); font-size: 13px; margin-bottom: 16px; }

/* ===== VENDOR INFO SINGLE ===== */
.wcmp-vendor-info-single { margin-bottom: 16px; padding: 12px 16px; background: var(--wcmp-light); border-radius: var(--wcmp-radius); display: inline-flex; align-items: center; gap: 10px; }
.wcmp-vendor-link { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--wcmp-text); font-weight: 500; }
.wcmp-vendor-logo-small { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.wcmp-vendor-loop { font-size: 12px; margin-top: 4px; }
.wcmp-vendor-loop a { color: var(--wcmp-primary); text-decoration: none; }

/* ===== EMPTY STATE ===== */
.wcmp-empty-state { text-align: center; padding: 40px; color: var(--wcmp-text-secondary); }
.wcmp-empty-state p { margin-bottom: 20px; }

/* ===== ORDER DETAIL ===== */
.wcmp-order-detail { background: var(--wcmp-card-bg); padding: 28px; border-radius: var(--wcmp-radius); box-shadow: var(--wcmp-shadow); border: 1px solid var(--wcmp-border); }
.wcmp-order-info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 30px; }
.wcmp-order-info-box { padding: 20px; background: var(--wcmp-light); border-radius: var(--wcmp-radius); }
.wcmp-order-info-box h4 { margin: 0 0 12px 0; font-size: 14px; color: var(--wcmp-text-secondary); }
.wcmp-order-info-box p { margin: 0 0 6px 0; font-size: 13px; color: var(--wcmp-text); }

/* ===== RESPONSIVO ===== */
@media (max-width: 1024px) {
    .wcmp-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .wcmp-earnings-summary { grid-template-columns: repeat(2, 1fr); }
    .wcmp-dashboard-sections { grid-template-columns: 1fr; }
    .wcmp-contact-display { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .wcmp-dashboard-sidebar { width: 100%; position: relative; height: auto; }
    .wcmp-dashboard-main { margin-left: 0; padding: 20px; }
    .wcmp-dashboard-wrap { flex-direction: column; }
    .wcmp-form-row-2, .wcmp-form-row-3 { grid-template-columns: 1fr; }
    .wcmp-stats-grid, .wcmp-earnings-summary, .wcmp-stores-grid { grid-template-columns: 1fr; }
    .wcmp-contact-display { grid-template-columns: 1fr; }
    .wcmp-messages-container { flex-direction: column; height: auto; }
    .wcmp-messages-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--wcmp-border); }
    .wcmp-order-info-grid { grid-template-columns: 1fr; }
    .wcmp-registration-box { padding: 24px; }
}

/* ===== SCROLLBAR CUSTOMIZADA ===== */
.wcmp-dashboard-sidebar::-webkit-scrollbar { width: 6px; }
.wcmp-dashboard-sidebar::-webkit-scrollbar-track { background: transparent; }
.wcmp-dashboard-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 3px; }
.wcmp-dashboard-sidebar::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.3); }

/* ===== MENSAGENS 1:1 ===== */
.wcmp-message-box,.wcmp-messaging-app{background:var(--wcmp-card-bg);border:1px solid var(--wcmp-border);border-radius:var(--wcmp-radius);box-shadow:var(--wcmp-shadow);padding:20px;color:var(--wcmp-text)}
.wcmp-message-box{max-width:760px}.wcmp-message-box h3{margin-top:0}.wcmp-message-box input[type=text],.wcmp-message-box textarea,.wcmp-reply-form textarea{width:100%;margin:8px 0;padding:12px;border:1px solid var(--wcmp-border);border-radius:8px;background:var(--wcmp-card-bg);color:var(--wcmp-text)}
.wcmp-message-box input[type=file],.wcmp-reply-form input[type=file]{display:block;margin:10px 0}.wcmp-message-status{margin-top:10px;min-height:20px}.wcmp-message-status.is-error{color:#d63638}.wcmp-message-status.is-success{color:#00a32a}
.wcmp-messaging-app{display:grid;grid-template-columns:320px 1fr;gap:0;min-height:520px;padding:0;overflow:hidden}.wcmp-conversations{border-right:1px solid var(--wcmp-border);padding:16px}.wcmp-conversation-list{display:flex;flex-direction:column;gap:8px}.wcmp-conversation-item{display:block;width:100%;text-align:left;border:1px solid var(--wcmp-border);background:var(--wcmp-card-bg);color:var(--wcmp-text);padding:12px;border-radius:8px;cursor:pointer}.wcmp-conversation-item.is-active{border-color:var(--wcmp-primary)}.wcmp-conversation-item .unread{float:right;background:var(--wcmp-primary);color:#fff;border-radius:99px;padding:2px 7px;font-size:11px}.wcmp-thread{display:flex;flex-direction:column;min-width:0}.wcmp-thread-header{padding:16px;border-bottom:1px solid var(--wcmp-border)}.wcmp-thread-header h3{margin:0 0 5px}.wcmp-thread-messages{padding:18px;overflow:auto;min-height:320px;max-height:500px}.wcmp-chat-message{max-width:78%;padding:11px 13px;border-radius:12px;margin:0 0 12px;background:var(--wcmp-light)}.wcmp-chat-message.is-me{margin-left:auto;background:var(--wcmp-primary);color:#fff}.wcmp-chat-message-body{white-space:pre-wrap;overflow-wrap:anywhere}.wcmp-chat-attachments{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}.wcmp-chat-attachments img{width:90px;height:90px;object-fit:cover;border-radius:7px}.wcmp-chat-date{font-size:11px;opacity:.7;margin-top:6px}.wcmp-reply-form{padding:16px;border-top:1px solid var(--wcmp-border)}.wcmp-customer-messages{max-width:1000px}.wcmp-customer-messages .wcmp-messaging-app{margin-top:16px}
@media(max-width:768px){.wcmp-messaging-app{grid-template-columns:1fr}.wcmp-conversations{border-right:0;border-bottom:1px solid var(--wcmp-border)}.wcmp-thread-messages{max-height:420px}.wcmp-chat-message{max-width:90%}}
