/* public/css/pages/seller_portal.css */
/* MhSys OS - Estilos Modulares do Portal do Fornecedor / Seller Center Multi-Vendor */

:root {
    --seller-primary: #0284c7;
    --seller-primary-dark: #0369a1;
    --seller-primary-light: #f0f9ff;
    --seller-success: #10b981;
    --seller-success-light: #ecfdf5;
    --seller-warning: #f59e0b;
    --seller-warning-light: #fffbeb;
    --seller-danger: #ef4444;
    --seller-danger-light: #fef2f2;
    --seller-card-bg: #ffffff;
    --seller-border: #e2e8f0;
    --seller-text: #0f172a;
    --seller-muted: #64748b;
    --seller-radius: 0.875rem;
    --seller-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Container Principal */
.seller-container {
    padding: 1.5rem 0.75rem 3.5rem 0.75rem;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Header & Banner */
.seller-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0369a1 100%);
    border-radius: var(--seller-radius);
    padding: 2rem 2.5rem;
    color: #ffffff;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12);
}

.seller-header::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.seller-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.seller-header p {
    color: #94a3b8;
    margin-bottom: 0;
    font-size: 0.95rem;
}

.seller-badge-id {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.35rem 0.85rem;
    border-radius: 2rem;
    font-size: 0.825rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* KPIs Grid */
.seller-kpis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.seller-kpi-card {
    background: var(--seller-card-bg);
    border: 1px solid var(--seller-border);
    border-radius: var(--seller-radius);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--seller-transition);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04);
}

.seller-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

.seller-kpi-val {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--seller-text);
    margin-bottom: 0.2rem;
    line-height: 1.1;
}

.seller-kpi-label {
    font-size: 0.825rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--seller-muted);
}

.seller-kpi-icon {
    width: 50px;
    height: 50px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.seller-kpi-icon.primary { background: var(--seller-primary-light); color: var(--seller-primary); }
.seller-kpi-icon.warning { background: var(--seller-warning-light); color: var(--seller-warning); }
.seller-kpi-icon.success { background: var(--seller-success-light); color: var(--seller-success); }
.seller-kpi-icon.danger  { background: var(--seller-danger-light); color: var(--seller-danger); }

/* Sub-navegação / Menu do Seller */
.seller-nav-tabs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 2px solid var(--seller-border);
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    flex-wrap: wrap;
}

.seller-tab-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    font-size: 0.925rem;
    font-weight: 600;
    color: var(--seller-muted);
    border-radius: 0.5rem;
    text-decoration: none;
    transition: var(--seller-transition);
}

.seller-tab-link:hover {
    color: var(--seller-primary);
    background: var(--seller-primary-light);
}

.seller-tab-link.active {
    color: var(--seller-primary);
    background: var(--seller-primary-light);
    font-weight: 700;
}

.seller-tab-badge {
    background: rgba(0, 0, 0, 0.08);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 1rem;
}

.seller-tab-link.active .seller-tab-badge {
    background: var(--seller-primary);
    color: #ffffff;
}

/* Status Badges */
.seller-badge-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.seller-badge-status.pendente {
    background: var(--seller-warning-light);
    color: #b45309;
    border: 1px solid #fde68a;
    animation: seller-pulse 2s infinite;
}

.seller-badge-status.aprovado {
    background: var(--seller-success-light);
    color: #047857;
    border: 1px solid #a7f3d0;
}

.seller-badge-status.rejeitado {
    background: var(--seller-danger-light);
    color: #b91c1c;
    border: 1px solid #fecaca;
}

@keyframes seller-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.75; }
}

/* Tabela & Cards de Produtos */
.seller-card-box {
    background: #ffffff;
    border: 1px solid var(--seller-border);
    border-radius: var(--seller-radius);
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    margin-bottom: 2rem;
}

.seller-table {
    width: 100%;
    margin-bottom: 0;
    vertical-align: middle;
}

.seller-table th {
    background: #f8fafc;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--seller-muted);
    border-bottom: 1px solid var(--seller-border);
    padding: 0.875rem 1rem;
}

.seller-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--seller-border);
    font-size: 0.9rem;
}

.seller-prod-thumb-mini {
    width: 52px;
    height: 52px;
    border-radius: 0.5rem;
    object-fit: cover;
    background: #f1f5f9;
    border: 1px solid var(--seller-border);
    flex-shrink: 0;
}

/* Rejection Feedback Box */
.seller-alert-rejection {
    background: #fff5f5;
    border: 1px solid #feb2b2;
    border-left: 4px solid var(--seller-danger);
    border-radius: 0.5rem;
    padding: 0.85rem 1.25rem;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #9b2c2c;
}

.seller-alert-rejection strong {
    display: block;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
}

/* Split Financeiro Preview Widget */
.seller-split-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.25rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    text-align: center;
    margin: 1.5rem 0;
}

.seller-split-col span {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--seller-muted);
    margin-bottom: 0.35rem;
}

.seller-split-col strong {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--seller-text);
}

.seller-split-col.comissao strong { color: var(--seller-primary); }
.seller-split-col.repasse strong { color: var(--seller-success); }

/* Form Styles */
.seller-form-card {
    background: #ffffff;
    border: 1px solid var(--seller-border);
    border-radius: var(--seller-radius);
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    max-width: 900px;
    margin: 0 auto;
}

.seller-form-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--seller-text);
    margin-bottom: 0.25rem;
}

.seller-form-subtitle {
    font-size: 0.875rem;
    color: var(--seller-muted);
    margin-bottom: 1.75rem;
}

.seller-upload-preview {
    width: 140px;
    height: 140px;
    border-radius: 0.75rem;
    object-fit: cover;
    border: 2px dashed var(--seller-border);
    background: #f8fafc;
    display: block;
    margin-bottom: 0.75rem;
}

/* Empty State */
.seller-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: #ffffff;
    border: 2px dashed var(--seller-border);
    border-radius: var(--seller-radius);
    color: var(--seller-muted);
}

.seller-empty-state i {
    font-size: 3.5rem;
    color: #94a3b8;
    margin-bottom: 1rem;
    display: inline-block;
}

.seller-empty-state h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--seller-text);
    margin-bottom: 0.5rem;
}

/* Responsividade */
@media (max-width: 768px) {
    .seller-header {
        padding: 1.5rem;
    }
    .seller-split-box {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    .seller-table {
        display: block;
        overflow-x: auto;
    }
}

/* ==========================================================================
   Seletor de Categorias Oficial com Autocomplete e Árvore Hierárquica
   ========================================================================== */
.category-selector-container {
    position: relative;
    width: 100%;
}

.category-dropdown-results {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #ffffff;
    z-index: 1050;
    border: 1px solid #cbd5e1;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.15), 0 8px 10px -6px rgba(15, 23, 42, 0.1);
    overflow: hidden;
    animation: sellerFadeSlideDown 0.15s ease-out;
}

.category-dropdown-item {
    padding: 10px 14px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.88rem;
    color: #1e293b;
    transition: all 0.15s ease;
    text-decoration: none;
}

.category-dropdown-item:last-child {
    border-bottom: none;
}

.category-dropdown-item:hover,
.category-dropdown-item.active {
    background: #eff6ff;
    color: #0284c7;
}

.category-dropdown-item .category-icon {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    margin-right: 10px;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.category-dropdown-item:hover .category-icon {
    background: #dbeafe;
    color: #0284c7;
}

.category-dropdown-item .category-path {
    font-weight: 500;
    flex-grow: 1;
}

.category-dropdown-item .category-trail-parent {
    color: #94a3b8;
    font-weight: 400;
}

.category-dropdown-item .category-trail-leaf {
    color: #0f172a;
    font-weight: 700;
}

.category-dropdown-item:hover .category-trail-leaf {
    color: #0284c7;
}

.category-tree-panel {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.15), 0 8px 10px -6px rgba(15, 23, 42, 0.1);
    animation: sellerFadeSlideDown 0.15s ease-out;
}

.category-tree-item {
    padding: 7px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #334155;
    transition: background 0.2s;
    user-select: none;
}

.category-tree-item:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.category-tree-item.level-0 { 
    font-weight: 700; 
    color: #0f172a; 
    margin-top: 4px; 
    font-size: 0.9rem;
}
.category-tree-item.level-1 { 
    padding-left: 24px; 
    color: #475569; 
    font-weight: 600;
}
.category-tree-item.level-2 { 
    padding-left: 44px; 
    color: #64748b; 
    font-size: 0.82rem; 
}

.category-tree-toggle-icon {
    width: 20px;
    display: inline-flex;
    justify-content: center;
    color: #94a3b8;
    transition: transform 0.2s ease;
}

.category-tree-toggle-icon.expanded {
    transform: rotate(90deg);
}

.category-tree-btn-select {
    padding: 2px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    background: #f0f9ff;
    color: #0284c7;
    border: 1px solid #bae6fd;
    cursor: pointer;
    transition: all 0.15s ease;
    opacity: 0.85;
}

.category-tree-btn-select:hover {
    background: #0284c7;
    color: #ffffff;
    opacity: 1;
}

@keyframes sellerFadeSlideDown {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Card de Cota de Anúncios & Consumo com Barra de Progresso
   ========================================================================== */
.seller-quota-card {
    background: #ffffff;
    border: 1px solid var(--seller-border);
    border-radius: var(--seller-radius);
    padding: 1.25rem 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    margin-bottom: 2rem;
    transition: var(--seller-transition);
}

.seller-quota-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.seller-quota-progress-track {
    height: 10px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    position: relative;
    margin: 0.75rem 0 0.5rem 0;
}

.seller-quota-progress-bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #0284c7 0%, #38bdf8 100%);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.seller-quota-progress-bar.warning {
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
}

.seller-quota-progress-bar.danger {
    background: linear-gradient(90deg, #ef4444 0%, #f87171 100%);
}

.seller-quota-progress-bar.success {
    background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
}

/* ==========================================================================
   Painel de Ação Imediata (Pending Attention / Itens Rejeitados / Staging)
   ========================================================================== */
.seller-attention-banner {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fde68a;
    border-left: 5px solid #f59e0b;
    border-radius: var(--seller-radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.08);
}

.seller-attention-banner.rejection {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-color: #fecaca;
    border-left-color: #ef4444;
}

.seller-attention-item {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 0.65rem;
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.75rem;
    transition: all 0.2s ease;
}

.seller-attention-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    border-color: rgba(0,0,0,0.12);
}

/* ==========================================================================
   Zona de Upload Visual Drag-and-Drop (Dropzone)
   ========================================================================== */
.seller-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 0.875rem;
    background: #f8fafc;
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.seller-dropzone:hover,
.seller-dropzone.dragover {
    border-color: var(--seller-primary);
    background: #f0f9ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.1);
}

.seller-dropzone input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.seller-dropzone-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem auto;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--seller-primary);
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.seller-dropzone:hover .seller-dropzone-icon {
    transform: scale(1.08);
    background: var(--seller-primary);
    color: #ffffff;
}

.seller-dropzone-preview-wrapper {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-top: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.seller-dropzone-thumb {
    width: 80px;
    height: 80px;
    border-radius: 0.5rem;
    object-fit: cover;
    border: 1px solid #e2e8f0;
    background: #f1f5f9;
    flex-shrink: 0;
}

/* ==========================================================================
   Badges de Staging & Status Refinados
   ========================================================================== */
.seller-badge-staging {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    padding: 0.25rem 0.65rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.seller-badge-staging.active-online {
    background: #ecfeff;
    color: #0e7490;
    border-color: #a5f3fc;
}

/* ==========================================================================
   Calculadora de Repasse Interativa
   ========================================================================== */
.seller-calc-box {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 0.875rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.seller-calc-metric {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.65rem;
    padding: 1rem;
    text-align: center;
    transition: all 0.2s ease;
}

.seller-calc-metric:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.seller-calc-metric.payout {
    border-color: #a7f3d0;
    background: #f0fdf4;
}

.seller-calc-metric.fee {
    border-color: #bae6fd;
    background: #f0f9ff;
}

/* ==========================================================================
   Fotos do Produto / Captura de Câmera Mobile & Galeria
   ========================================================================== */
.seller-media-card {
    background: #ffffff;
    border: 1px solid var(--seller-border);
    border-radius: var(--seller-radius);
    padding: 1.5rem;
    transition: var(--seller-transition);
}

.seller-photo-actions-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    width: 100%;
}

.btn-trigger-camera {
    background: linear-gradient(135deg, #0072ce 0%, #005bb5 100%);
    border: none;
    color: #ffffff !important;
    min-height: 48px;
    font-size: 0.92rem;
    font-weight: 700;
    border-radius: 12px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 114, 206, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-trigger-camera:hover {
    background: linear-gradient(135deg, #005bb5 0%, #00448a 100%);
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 114, 206, 0.35);
}

.btn-trigger-gallery {
    background: #ffffff;
    border: 1.5px solid #0072ce !important;
    color: #0072ce !important;
    min-height: 48px;
    font-size: 0.92rem;
    font-weight: 700;
    border-radius: 12px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-trigger-gallery:hover {
    background: rgba(0, 114, 206, 0.08);
    border-color: #005bb5 !important;
    color: #005bb5 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 114, 206, 0.15);
}

.btn-trigger-camera:active,
.btn-trigger-gallery:active {
    transform: scale(0.98);
}

.seller-photo-card {
    background: #ffffff;
    border: 1px solid var(--seller-border);
    transition: all 0.2s ease;
}

.seller-photo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.08);
}

.seller-photo-card .btn-make-cover {
    backdrop-filter: blur(4px);
    transition: all 0.15s ease;
}

.seller-photo-card .btn-make-cover:hover {
    background: rgba(2, 132, 199, 0.9) !important;
}

@media (max-width: 768px) {
    .seller-photo-actions-grid {
        flex-direction: column !important;
        gap: 0.65rem !important;
        width: 100% !important;
    }

    .btn-trigger-camera,
    .btn-trigger-gallery {
        width: 100% !important;
        flex: 1 1 100% !important;
        justify-content: center !important;
        text-align: center !important;
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
        min-height: 48px !important;
        font-size: 0.95rem !important;
        border-radius: 12px !important;
    }
}

/* ==========================================================================
   Seletor de Condição do Item (Cards Interativos)
   ========================================================================== */
.seller-condition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.875rem;
}

.seller-condition-card {
    position: relative;
    border: 2px solid #e2e8f0;
    border-radius: 0.875rem;
    padding: 1rem 1.15rem;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.seller-condition-card:hover {
    border-color: #94a3b8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.seller-condition-card.active {
    border-color: var(--seller-primary);
    background: #f0f9ff;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.seller-condition-card .condition-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.seller-condition-card .condition-icon {
    font-size: 1.35rem;
}

.seller-condition-card .condition-title {
    font-size: 0.925rem;
    font-weight: 700;
    color: var(--seller-text);
}

.seller-condition-card .condition-desc {
    font-size: 0.775rem;
    color: var(--seller-muted);
    line-height: 1.35;
    margin: 0;
}

.seller-condition-card .condition-radio {
    accent-color: var(--seller-primary);
    width: 1.1rem;
    height: 1.1rem;
}

/* ==========================================================================
   Cards de Seções do Formulário (Form Section Cards)
   ========================================================================== */
.seller-form-section {
    background: #ffffff;
    border: 1px solid var(--seller-border);
    border-radius: var(--seller-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: var(--seller-transition);
}

.seller-form-section:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.seller-form-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--seller-text);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.35rem;
}

.seller-form-section-subtitle {
    font-size: 0.825rem;
    color: var(--seller-muted);
    margin-bottom: 1.25rem;
}

/* ==========================================================================
   Opções de Entrega & Retirada (Delivery Checkbox Cards)
   ========================================================================== */
.seller-delivery-card {
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.seller-delivery-card:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.seller-delivery-card.active {
    border-color: var(--seller-primary);
    background: #f0f9ff;
}

.seller-delivery-card input[type="checkbox"] {
    accent-color: var(--seller-primary);
    width: 1.2rem;
    height: 1.2rem;
    margin-top: 0.15rem;
    cursor: pointer;
}

/* ==========================================================================
   Badge de Desconto Promo & Contador de Caracteres
   ========================================================================== */
.seller-promo-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.seller-char-counter {
    font-size: 0.75rem;
    color: var(--seller-muted);
    text-align: right;
    margin-top: 0.25rem;
}

/* ==========================================================================
   Grid de Fotos / Mídia do Vendedor
   ========================================================================== */
.seller-photo-item {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 2px solid #e2e8f0;
    aspect-ratio: 1 / 1;
    background: #f8fafc;
    transition: all 0.2s ease;
}

.seller-photo-item.is-cover {
    border-color: #f59e0b;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.3);
}

.seller-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.seller-photo-item .cover-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: #f59e0b;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.15rem 0.5rem;
    border-radius: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    z-index: 5;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.seller-photo-item .photo-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, transparent 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 6;
}

.seller-photo-item:hover .photo-actions {
    opacity: 1;
}

@media (max-width: 768px) {
    .seller-photo-item .photo-actions {
        opacity: 1;
    }
}

/* ==========================================================================
   NAVBAR BRAND & LOGO REFINADA
   ========================================================================== */
.seller-nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.seller-nav-brand img,
.seller-logo-img {
    height: 32px !important;
    max-height: 36px !important;
    width: auto !important;
    max-width: 170px !important;
    object-fit: contain !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

/* ==========================================================================
   BLINDAGEM CONTRA AUTO-ZOOM INVOLUNTÁRIO & OVERFLOW NO IOS SAFARI (IPHONE / IPAD)
   ========================================================================== */
@media screen and (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        position: relative;
        -webkit-text-size-adjust: 100%;
    }

    /* Anti-Zoom Obrigatório no iOS Safari (font-size >= 16px) */
    input[type="text"],
    input[type="number"],
    input[type="password"],
    input[type="email"],
    input[type="tel"],
    input[type="url"],
    input[type="search"],
    select,
    textarea,
    .form-control,
    .form-select,
    .form-control-lg,
    .form-control-sm,
    .form-select-sm,
    .form-select-lg,
    .input-group input,
    .input-group select,
    .input-group .btn,
    .input-group-text,
    .money-mask,
    .seller-form-input,
    .seller-editor-content,
    .seller-editor-code,
    #sellerEditorVisual,
    #textareaDescricao,
    #categoria_busca_input {
        font-size: 16px !important;
        transform: translateZ(0);
        -webkit-text-size-adjust: 100%;
        max-width: 100% !important;
        touch-action: manipulation;
    }

    .input-group-sm > .form-control,
    .input-group-sm > .form-select,
    .input-group-sm > .btn {
        font-size: 16px !important;
        min-height: 44px;
    }

    .form-control-lg,
    .form-select-lg,
    .input-group-text {
        min-height: 46px;
    }

    .seller-container {
        padding: 0.85rem 0.5rem 3.5rem 0.5rem !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    .seller-container .row {
        margin-left: -0.25rem !important;
        margin-right: -0.25rem !important;
        max-width: calc(100% + 0.5rem) !important;
    }

    .seller-container .row > [class*="col-"] {
        padding-left: 0.25rem !important;
        padding-right: 0.25rem !important;
        max-width: 100% !important;
    }

    .seller-header {
        padding: 1.15rem 0.85rem !important;
        border-radius: 0.75rem !important;
        margin-bottom: 0.85rem !important;
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .seller-header h1 {
        font-size: 1.15rem !important;
        line-height: 1.3 !important;
        word-break: break-word !important;
    }

    .seller-header p {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
        word-break: break-word !important;
    }

    .seller-badge-id {
        font-size: 0.75rem !important;
        padding: 0.25rem 0.65rem !important;
        max-width: 100% !important;
        white-space: normal !important;
        word-break: break-word !important;
    }

    .seller-form-section {
        padding: 1rem 0.85rem !important;
        margin-bottom: 1rem !important;
        border-radius: 0.75rem !important;
        box-sizing: border-box !important;
    }

    .seller-form-section-title {
        font-size: 1rem !important;
    }

    .seller-form-section-subtitle {
        font-size: 0.78rem !important;
        margin-bottom: 1rem !important;
    }

    /* Grid de Condição em 2 colunas fluidas no Mobile */
    .seller-condition-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
    }

    .seller-condition-card {
        padding: 0.7rem 0.65rem !important;
        border-radius: 0.65rem !important;
    }

    .seller-condition-card .condition-title {
        font-size: 0.825rem !important;
        line-height: 1.2 !important;
    }

    .seller-condition-card .condition-desc {
        font-size: 0.68rem !important;
        line-height: 1.25 !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Widget de Repasse Financeiro Responsivo no Mobile */
    .seller-split-box {
        grid-template-columns: 1fr !important;
        gap: 0.35rem !important;
        padding: 0.75rem 0.85rem !important;
        margin: 0.65rem 0 !important;
        border-radius: 0.75rem !important;
    }

    .seller-split-col {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        text-align: left !important;
        padding: 0.3rem 0 !important;
        border-bottom: 1px dashed #e2e8f0 !important;
    }

    .seller-split-col:last-child {
        border-bottom: none !important;
        padding-top: 0.4rem !important;
    }

    .seller-split-col span {
        margin-bottom: 0 !important;
        font-size: 0.75rem !important;
    }

    .seller-split-col strong {
        font-size: 1rem !important;
    }

    /* Autocomplete e Árvore de Categorias adaptados */
    .category-dropdown-results,
    .category-tree-panel {
        width: 100% !important;
        max-width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        box-sizing: border-box !important;
        z-index: 1050 !important;
    }

    .category-dropdown-item {
        padding: 0.65rem 0.75rem !important;
        min-height: 44px !important;
    }

    /* Botões de Ação de Câmera & Upload */
    .btn-trigger-camera,
    .seller-form-section .btn-outline-secondary {
        min-height: 44px;
        touch-action: manipulation;
    }

    .seller-kpis-grid {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
        margin-bottom: 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .seller-kpi-card {
        padding: 1rem 1.15rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .seller-quota-card {
        padding: 1rem 1.15rem !important;
        margin-bottom: 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .seller-card-box {
        padding: 1rem !important;
        border-radius: 0.875rem !important;
        margin-bottom: 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .seller-nav-tabs {
        gap: 0.35rem !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        flex-wrap: nowrap !important;
        padding-bottom: 0.5rem !important;
        margin-bottom: 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none;
    }

    .seller-nav-tabs::-webkit-scrollbar {
        display: none;
    }

    .seller-tab-link {
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        font-size: 0.825rem !important;
        padding: 0.45rem 0.75rem !important;
    }

    .table-responsive {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        border-radius: 0.5rem !important;
        margin-bottom: 0 !important;
    }

    .seller-table {
        min-width: 500px !important;
    }

    .seller-table th {
        font-size: 0.725rem !important;
        padding: 0.6rem 0.65rem !important;
    }

    .seller-table td {
        font-size: 0.8rem !important;
        padding: 0.65rem !important;
    }

    .seller-attention-banner {
        padding: 1rem 1.15rem !important;
        margin-bottom: 1rem !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .seller-attention-item {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.65rem !important;
    }

    .seller-attention-item a.btn {
        width: 100% !important;
        text-align: center !important;
    }
}

@media screen and (max-width: 576px) {
    .seller-badge-portal {
        display: none !important;
    }
    .btn-anunciar-nav span {
        display: none !important;
    }
    .btn-anunciar-nav {
        padding: 0.45rem 0.65rem !important;
        font-size: 0.85rem !important;
    }
    .seller-nav-brand img,
    .seller-logo-img {
        max-height: 28px !important;
        max-width: 110px !important;
    }
}

/* ==========================================================================
   EDITOR DE TEXTO RICO (WYSIWYG) & CHIPS RÁPIDOS MOBILE (SELLER CENTER)
   ========================================================================== */

/* Chips de Modelos Rápidos */
.seller-editor-chips-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

@media (min-width: 576px) {
    .seller-editor-chips-wrapper {
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
    }
}

.seller-editor-chips-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #475569;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.seller-editor-chips-scroll {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.seller-editor-chips-scroll::-webkit-scrollbar {
    display: none;
}

.seller-editor-chip {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 2rem;
    padding: 0.35rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    touch-action: manipulation;
}

.seller-editor-chip:hover {
    background: #e0f2fe;
    border-color: #38bdf8;
    color: #0284c7;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(2, 132, 199, 0.15);
}

.seller-editor-chip:active {
    transform: translateY(0);
    background: #bae6fd;
}

/* Container do Editor */
.seller-rich-editor {
    border: 1.5px solid #cbd5e1;
    border-radius: 0.75rem;
    background: #ffffff;
    overflow: hidden;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.seller-rich-editor:focus-within {
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.18);
}

/* Toolbar */
.seller-editor-toolbar {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.seller-editor-toolbar::-webkit-scrollbar {
    display: none;
}

.seller-toolbar-group {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

.seller-toolbar-divider {
    width: 1px;
    height: 22px;
    background: #cbd5e1;
    margin: 0 0.35rem;
    flex-shrink: 0;
}

.seller-tb-btn {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 0.4rem;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
    touch-action: manipulation;
    user-select: none;
}

.seller-tb-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.seller-tb-btn:active,
.seller-tb-btn.active {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
}

.seller-tb-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: transparent !important;
    color: #94a3b8 !important;
}

/* Área de Conteúdo Visual */
.seller-editor-content {
    min-height: 200px;
    max-height: 480px;
    overflow-y: auto;
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #1e293b;
    outline: none;
    word-break: break-word;
}

.seller-editor-content:empty:before {
    content: attr(placeholder);
    color: #94a3b8;
    pointer-events: none;
    display: block;
}

.seller-editor-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.seller-editor-content h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    margin-top: 0.85rem;
    margin-bottom: 0.4rem;
}

.seller-editor-content p {
    margin-bottom: 0.65rem;
}

.seller-editor-content ul,
.seller-editor-content ol {
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.seller-editor-content li {
    margin-bottom: 0.25rem;
}

.seller-editor-content hr {
    border: 0;
    border-top: 1px solid #cbd5e1;
    margin: 1rem 0;
}

/* Textarea de Código HTML */
.seller-editor-code {
    width: 100%;
    min-height: 200px;
    max-height: 480px;
    padding: 1rem 1.25rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.875rem;
    color: #0f172a;
    background: #f8fafc;
    border: none;
    outline: none;
    resize: vertical;
}

/* Rodapé do Editor */
.seller-editor-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    font-size: 0.775rem;
    color: #64748b;
}

.seller-editor-stats {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
}

.seller-editor-stats .divider {
    opacity: 0.5;
}

/* Otimização Mobile para o Editor */
@media screen and (max-width: 768px) {
    .seller-editor-content,
    .seller-editor-code {
        font-size: 16px !important;
        -webkit-text-size-adjust: 100%;
        min-height: 180px;
    }

    .seller-tb-btn {
        width: 38px;
        height: 38px;
        font-size: 1.05rem;
    }

    .seller-editor-chip {
        padding: 0.4rem 0.9rem;
        font-size: 0.825rem;
    }
}

/* Links de Produtos na Grid e Dashboard */
.seller-prod-title-link {
    text-decoration: none !important;
    color: inherit;
    display: inline-block;
    transition: var(--seller-transition);
}

.seller-prod-title-link strong {
    transition: color 0.15s ease-in-out;
}

.seller-prod-title-link:hover strong {
    color: var(--seller-primary) !important;
    text-decoration: underline;
}

.seller-prod-thumb-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    flex-shrink: 0;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: var(--seller-transition);
}

.seller-prod-thumb-link:hover .seller-prod-thumb-mini {
    border-color: var(--seller-primary);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.18);
}

/* Botão de Excluir Produto */
.seller-btn-excluir {
    transition: var(--seller-transition);
    border-color: #fecaca;
    color: #dc2626;
    background-color: #fff;
}

.seller-btn-excluir:hover,
.seller-btn-excluir:focus {
    background-color: #dc2626 !important;
    border-color: #dc2626 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.25);
}

/* Modal de Exclusão */
.seller-delete-modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: #fef2f2;
    border: 2px solid #fee2e2;
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.25rem;
}
