/* ============================================================
   MERCADO EMPRESARIAL - Cuality X
   Enterprise Marketplace — MercadoLibre-inspired (Blue + White)
   Centered layout like ML with max-width containers
   Accent: #3483FA (ML blue)
   Green: #00A650 (shipping/verified)
   Prefix: me-
   ============================================================ */

/* ---- Shell Layout ---- */
.me-shell{
    display:flex;flex-direction:column;height:100%;
    background:#ebebeb;color:#333;
    font-family:"Inter","DM Sans","Segoe UI",system-ui,sans-serif;
    overflow:hidden;
}

/* ---- Centered container util ---- */
.me-center{
    width:100%;max-width:1180px;
    margin:0 auto;padding-left:16px;padding-right:16px;
    box-sizing:border-box;
}

/* ---- Header (Blue bar - full width, inner centered) ---- */
.me-header{
    flex-shrink:0;
    background:linear-gradient(135deg,#5ba3f5,#2968c8);
}
.me-header-inner{
    display:flex;align-items:center;gap:14px;
    width:100%;max-width:1180px;margin:0 auto;
    padding:8px 16px;box-sizing:border-box;
}
.me-header-brand{display:flex;align-items:center;gap:8px;flex-shrink:0}
.me-header-logo{width:28px;height:28px;border-radius:7px}
.me-header-title{font-size:14px;font-weight:700;color:#fff;white-space:nowrap}
.me-header-search-wrap{
    flex:1;display:flex;max-width:600px;
    border-radius:4px;overflow:hidden;
    box-shadow:0 2px 6px rgba(0,0,0,.12);
}
.me-header-search{
    flex:1;border:none;padding:8px 14px;
    font-size:13px;background:#fff;color:#333;outline:none;
    font-family:inherit;
}
.me-header-search::placeholder{color:#aaa}
.me-header-search-btn{
    padding:0 14px;border:none;
    background:#e8e8e8;cursor:pointer;
    display:flex;align-items:center;justify-content:center;
    transition:background .15s;
}
.me-header-search-btn:hover{background:#ddd}
.me-header-actions{display:flex;gap:6px;align-items:center;margin-left:auto;flex-shrink:0}
.me-header-icon-btn{
    width:32px;height:32px;border-radius:6px;border:none;
    background:rgba(255,255,255,.15);color:#fff;cursor:pointer;
    display:flex;align-items:center;justify-content:center;transition:all .15s;padding:0;
    position:relative;
}
.me-header-icon-btn:hover{background:rgba(255,255,255,.25)}
/* Header notification badge */
.me-header-badge{
    position:absolute;top:-4px;right:-4px;
    min-width:16px;height:16px;padding:0 4px;border-radius:8px;
    background:#EF4444;color:#fff;font-size:9px;font-weight:700;
    display:flex;align-items:center;justify-content:center;
    line-height:1;box-sizing:border-box;
    pointer-events:none;
}

/* Profile button in header */
.me-header-profile-btn{
    display:flex;align-items:center;gap:6px;
    padding:4px 10px 4px 4px;border-radius:20px;border:none;
    background:rgba(255,255,255,.15);color:#fff;cursor:pointer;
    font-size:12px;font-weight:500;font-family:inherit;transition:all .15s;
    max-width:180px;
}
.me-header-profile-btn:hover{background:rgba(255,255,255,.25)}
.me-header-profile-avatar{
    width:24px;height:24px;border-radius:50%;
    background:rgba(255,255,255,.3);display:flex;align-items:center;
    justify-content:center;font-size:12px;overflow:hidden;flex-shrink:0;
}
.me-header-profile-avatar img{width:100%;height:100%;object-fit:cover}
#me-header-profile-name{
    overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}

/* ---- Nav Tabs (full-width bar, inner centered) ---- */
.me-nav-bar{
    flex-shrink:0;border-bottom:1px solid #ddd;background:#fff;
    overflow-x:auto;
}
.me-nav{
    display:flex;gap:0;
    width:100%;max-width:1180px;margin:0 auto;
    padding:0 16px;box-sizing:border-box;
    overflow-x:auto;
}
.me-nav-tab{
    padding:10px 18px;border:none;background:transparent;
    color:#666;font-size:13px;font-weight:500;
    cursor:pointer;white-space:nowrap;border-bottom:2px solid transparent;
    transition:all .15s;font-family:inherit;
}
.me-nav-tab:hover{color:#333}
.me-nav-tab.me-nav-tab-active{color:#3483FA;border-bottom-color:#3483FA;font-weight:600}

/* ---- Body Layout (centered, filters + main) ---- */
.me-body{
    flex:1;min-height:0;overflow:hidden;
    display:flex;justify-content:center;
}
.me-body-inner{
    display:grid;
    grid-template-columns:220px 1fr;
    width:100%;max-width:1180px;
    min-height:0;overflow:hidden;
}
.me-body.me-body-no-sidebar .me-body-inner{grid-template-columns:1fr}
.me-body.me-body-no-sidebar .me-filters-sidebar{display:none}

.me-filters-sidebar{
    padding:16px 14px;overflow-y:auto;
    border-right:1px solid #ddd;
    background:#fff;
}
.me-main{
    overflow-y:auto;overflow-x:hidden;
    padding:0;
    background:#ebebeb;
}

/* ---- Filter Sidebar Components ---- */
.me-filter-group{margin-bottom:20px}
.me-filter-group-title{
    font-size:14px;font-weight:600;color:#333;
    margin-bottom:10px;
}
.me-filter-option{
    display:flex;align-items:center;gap:8px;
    padding:4px 0;cursor:pointer;font-size:13px;
    color:#666;transition:color .12s;
}
.me-filter-option:hover{color:#3483FA}
.me-filter-option.active{color:#3483FA;font-weight:600}
.me-filter-option-count{
    font-size:11px;color:#999;margin-left:auto;
}
.me-filter-price-range{display:flex;gap:8px;align-items:center}
.me-filter-price-input{
    width:80px;padding:7px 8px;border-radius:4px;
    border:1px solid #ddd;background:#fff;
    color:#333;font-size:12px;outline:none;font-family:inherit;box-sizing:border-box;
}
.me-filter-price-input:focus{border-color:#3483FA}
.me-filter-price-input::placeholder{color:#bbb}
.me-filter-price-btn{
    padding:6px 12px;border-radius:4px;border:none;
    background:#3483FA;color:#fff;font-size:11px;font-weight:600;
    cursor:pointer;transition:background .15s;font-family:inherit;
}
.me-filter-price-btn:hover{background:#2968c8}

/* ---- Results Header ---- */
.me-results-header{
    display:flex;align-items:center;justify-content:space-between;
    padding:14px 24px;
    background:#fff;border-bottom:1px solid #eee;
    border-radius:8px 8px 0 0;
    margin:16px 16px 0;
}
.me-results-count{font-size:14px;color:#666}
.me-results-sort{
    padding:6px 10px;border-radius:4px;
    border:1px solid #ddd;background:#fff;
    color:#333;font-size:12px;outline:none;font-family:inherit;
}

/* ---- Product List (Horizontal ML style) ---- */
.me-product-list{
    margin:0 16px 16px;background:#fff;
    border-radius:0 0 8px 8px;
}
.me-product-item{
    display:grid;grid-template-columns:200px 1fr;
    border-bottom:1px solid #eee;
    padding:24px;cursor:pointer;transition:background .15s;
    gap:24px;
}
.me-product-item:hover{background:#f5f5f5}
.me-product-item:last-child{border-bottom:none}

.me-product-item-img{
    width:200px;height:200px;border-radius:4px;
    background:#f5f5f5;overflow:hidden;
    display:flex;align-items:center;justify-content:center;flex-shrink:0;
}
.me-product-item-img img{width:100%;height:100%;object-fit:cover}
.me-product-item-img-placeholder{color:#ccc;font-size:56px}

.me-product-item-info{display:flex;flex-direction:column;gap:4px;padding:4px 0;min-width:0}
.me-product-item-title{
    font-size:20px;color:#333;
    font-weight:400;line-height:1.3;
    display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.me-product-item-price{
    font-size:32px;font-weight:400;color:#333;
    margin:10px 0 4px;font-variant-numeric:tabular-nums;
    letter-spacing:-.5px;
}
.me-product-item-price-quote{
    font-size:16px;font-weight:500;color:#3483FA;
    margin:10px 0 4px;
}
.me-product-item-shipping{font-size:14px;color:#00a650;font-weight:600}
.me-product-item-meta{
    display:flex;gap:10px;align-items:center;flex-wrap:wrap;
    margin-top:4px;
}
.me-product-item-seller{font-size:13px;color:#999;margin-top:auto}
.me-product-item-badges{display:flex;gap:6px;margin-top:4px}

/* ---- Content Wrapper (centered padding for non-catalog views) ---- */
.me-content-wrap{
    padding:20px 24px;
    max-width:960px;margin:0 auto;
}

/* ---- Buttons ---- */
.me-btn-primary{
    padding:9px 20px;border-radius:6px;border:none;
    background:#3483FA;color:#fff;
    font-weight:600;font-size:13px;cursor:pointer;transition:all .15s;
    font-family:inherit;
}
.me-btn-primary:hover{background:#2968c8}
.me-btn-primary:disabled{opacity:.4;cursor:default}

.me-btn-secondary{
    padding:9px 20px;border-radius:6px;
    border:1px solid #ddd;background:#fff;
    color:#333;font-weight:500;font-size:13px;cursor:pointer;transition:all .15s;
    font-family:inherit;
}
.me-btn-secondary:hover{background:#f5f5f5}

.me-btn-danger{
    padding:9px 20px;border-radius:6px;border:none;
    background:#ffe0e0;color:#d32f2f;
    font-weight:600;font-size:13px;cursor:pointer;transition:all .15s;
    font-family:inherit;
}
.me-btn-danger:hover{background:#ffd0d0}

.me-btn-sm{padding:6px 14px;font-size:12px;border-radius:4px}
.me-btn-ghost{
    padding:5px 10px;border-radius:4px;border:none;
    background:transparent;color:#666;
    font-size:12px;cursor:pointer;transition:all .15s;font-family:inherit;
}
.me-btn-ghost:hover{background:#f0f0f0;color:#333}

.me-btn-outline{
    padding:7px 16px;border-radius:6px;
    border:1px solid #3483FA;background:transparent;
    color:#3483FA;font-weight:500;font-size:12px;cursor:pointer;transition:all .15s;
    font-family:inherit;
}
.me-btn-outline:hover{background:rgba(52,131,250,.06)}

.me-icon-btn{
    width:28px;height:28px;border-radius:6px;border:1px solid #ddd;
    background:#fff;color:#666;cursor:pointer;
    display:flex;align-items:center;justify-content:center;transition:all .15s;padding:0;
}
.me-icon-btn:hover{background:#f0f0f0;color:#3483FA;border-color:#3483FA}

/* ---- Modals ---- */
.me-modal{
    position:absolute;top:0;left:0;width:100%;height:100%;
    background:rgba(0,0,0,.45);backdrop-filter:blur(4px);
    z-index:100;display:flex;align-items:center;justify-content:center;
}
.me-modal-box{
    background:#fff;border:1px solid #ddd;border-radius:12px;
    width:92%;max-height:85%;box-shadow:0 20px 60px rgba(0,0,0,.25);overflow:hidden;
    display:flex;flex-direction:column;
}
.me-modal-header{
    display:flex;align-items:center;justify-content:space-between;
    padding:16px 20px;border-bottom:1px solid #eee;
    font-size:16px;font-weight:600;color:#333;flex-shrink:0;
}
.me-modal-body{padding:20px;overflow-y:auto;flex:1 1 auto;min-height:0}
.me-modal-footer{
    display:flex;justify-content:flex-end;gap:8px;
    padding:14px 20px;border-top:1px solid #eee;
    background:#fafafa;flex-shrink:0;
}
.me-modal-close{
    width:28px;height:28px;border-radius:6px;border:none;
    background:#f0f0f0;color:#999;
    font-size:18px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .15s;
}
.me-modal-close:hover{background:#ffe0e0;color:#d32f2f}

/* ---- Form ---- */
.me-label{display:block;font-size:11px;font-weight:600;color:#999;margin-bottom:5px;text-transform:uppercase;letter-spacing:.5px}
.me-input{
    width:100%;padding:10px 12px;border-radius:6px;
    border:1px solid #ddd;background:#fff;
    color:#333;font-size:13px;outline:none;transition:border-color .15s;box-sizing:border-box;
    font-family:inherit;
}
.me-input:focus{border-color:#3483FA}
.me-input::placeholder{color:#bbb}
.me-textarea{
    width:100%;padding:10px 12px;border-radius:6px;
    border:1px solid #ddd;background:#fff;
    color:#333;font-size:13px;outline:none;resize:vertical;min-height:55px;
    font-family:inherit;transition:border-color .15s;box-sizing:border-box;
}
.me-textarea:focus{border-color:#3483FA}
.me-select{
    width:100%;padding:10px 12px;border-radius:6px;
    border:1px solid #ddd;background:#fff;
    color:#333;font-size:13px;outline:none;box-sizing:border-box;font-family:inherit;
}
.me-form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:12px}
.me-form-group{margin-bottom:12px}

/* ---- Dashboard Cards ---- */
.me-dash-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:12px;margin-bottom:22px}
.me-dash-card{
    padding:18px;border-radius:8px;border:1px solid #eee;
    background:#fff;
}
.me-dash-card-label{font-size:11px;color:#999;text-transform:uppercase;letter-spacing:.5px;margin-bottom:6px}
.me-dash-card-value{font-size:28px;font-weight:700;color:#333;font-variant-numeric:tabular-nums}
.me-dash-card-sub{font-size:11px;color:#999;margin-top:3px}
.me-dash-card-icon{
    width:36px;height:36px;border-radius:10px;
    display:flex;align-items:center;justify-content:center;margin-bottom:10px;
}

/* ---- Profile Card (Mi Perfil section) ---- */
.me-profile-section{
    padding:24px 24px;
    max-width:960px;margin:0 auto;
}
.me-profile-card{
    background:#fff;border-radius:8px;border:1px solid #eee;
    padding:24px;margin-bottom:16px;
}
.me-profile-card-header{
    display:flex;align-items:center;gap:16px;margin-bottom:20px;
}
.me-profile-card-avatar{
    width:72px;height:72px;border-radius:50%;
    background:#f0f0f0;display:flex;align-items:center;justify-content:center;
    font-size:30px;color:#ccc;overflow:hidden;flex-shrink:0;
    border:2px solid #eee;
}
.me-profile-card-avatar img{width:100%;height:100%;object-fit:cover}
.me-profile-card-name{font-size:22px;font-weight:600;color:#333}
.me-profile-card-meta{font-size:13px;color:#999;margin-top:2px}
.me-profile-card-verified{
    display:inline-flex;align-items:center;gap:4px;
    color:#00a650;font-size:12px;font-weight:600;margin-top:4px;
}
.me-profile-stats{
    display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));
    gap:12px;margin-bottom:20px;
}
.me-profile-stat{
    text-align:center;padding:16px;border-radius:8px;
    background:#fff;border:1px solid #eee;
}
.me-profile-stat-value{font-size:24px;font-weight:700;color:#333}
.me-profile-stat-label{font-size:11px;color:#999;margin-top:4px}
.me-profile-actions{display:flex;gap:8px;flex-wrap:wrap}

/* ---- Badges ---- */
.me-badge{
    display:inline-flex;align-items:center;gap:3px;
    padding:3px 8px;border-radius:4px;
    font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.3px;
}
.me-badge-product,.me-badge-producto{background:#eef4ff;color:#3483FA}
.me-badge-servicio{background:#f3e8ff;color:#8b5cf6}
.me-badge-digital{background:#fce7f3;color:#db2777}
.me-badge-nuevo{background:#e8faf0;color:#00a650}
.me-badge-usado{background:#fef3c7;color:#d97706}
.me-badge-refurbished{background:#f3f4f6;color:#6b7280}
.me-badge-featured{background:#fef9c3;color:#ca8a04}
.me-badge-active{background:#e8faf0;color:#00a650}
.me-badge-inactive{background:#f3f4f6;color:#6b7280}

.me-badge-status{
    display:inline-flex;padding:3px 10px;border-radius:4px;
    font-size:10px;font-weight:600;letter-spacing:.3px;
}
.me-badge-pendiente{background:#fef3c7;color:#d97706}
.me-badge-confirmado{background:#eef4ff;color:#3483FA}
.me-badge-enviado{background:#f3e8ff;color:#8b5cf6}
.me-badge-entregado{background:#e8faf0;color:#00a650}
.me-badge-cancelado{background:#ffe0e0;color:#d32f2f}
.me-badge-nueva{background:#eef4ff;color:#3483FA}
.me-badge-respondida{background:#e8faf0;color:#00a650}
.me-badge-cerrada{background:#f3f4f6;color:#6b7280}

/* ---- Rating Stars ---- */
.me-stars{display:inline-flex;gap:1px;align-items:center}
.me-star{color:#ddd;font-size:13px;cursor:default}
.me-star.me-star-filled{color:#3483FA}
.me-star-clickable{cursor:pointer;transition:color .1s}
.me-star-clickable:hover{color:#5ba3f5}
.me-rating-value{font-size:12px;font-weight:600;color:#666;margin-left:4px}

/* ---- Product Detail ---- */
.me-detail-section{padding:20px}
.me-detail-gallery{display:flex;gap:10px;margin-bottom:16px;overflow-x:auto}
.me-detail-gallery-img{
    width:200px;height:150px;border-radius:8px;overflow:hidden;flex-shrink:0;
    border:1px solid #eee;background:#f9f9f9;position:relative;cursor:pointer;
}
.me-detail-gallery-img img{width:100%;height:100%;object-fit:cover}
.me-detail-title{font-size:22px;font-weight:600;color:#333;margin-bottom:6px}
.me-detail-price{font-size:24px;font-weight:400;color:#333;margin-bottom:12px}
.me-detail-meta{font-size:12px;color:#999;margin-bottom:16px;display:flex;flex-wrap:wrap;gap:12px}
.me-detail-desc{font-size:14px;color:#666;line-height:1.6;margin-bottom:16px}
.me-detail-specs{margin-bottom:16px}
.me-detail-specs-row{
    display:flex;justify-content:space-between;
    padding:8px 0;border-bottom:1px solid #f0f0f0;
    font-size:13px;
}
.me-detail-specs-label{color:#999}
.me-detail-specs-value{color:#333;font-weight:500}

.me-detail-seller{
    padding:16px;border-radius:8px;border:1px solid #eee;
    background:#f8f9fa;margin-bottom:16px;
}
.me-detail-seller-name{font-size:14px;font-weight:600;color:#333;margin-bottom:2px}
.me-detail-seller-meta{font-size:12px;color:#999}
.me-detail-seller-verified{color:#00a650;font-size:12px;font-weight:600}

/* ---- List / Table Rows ---- */
.me-list-header{
    display:grid;align-items:center;gap:8px;
    padding:10px 16px;
    font-size:11px;font-weight:600;color:#999;text-transform:uppercase;letter-spacing:.5px;
}
.me-list-row{
    display:grid;align-items:center;gap:8px;
    padding:12px 16px;border-radius:6px;border:1px solid #eee;
    background:#fff;cursor:pointer;transition:all .12s;margin-bottom:4px;
}
.me-list-row:hover{background:#f8f9fa;border-color:#ddd}
.me-list-row-title{font-size:13px;font-weight:600;color:#333;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.me-list-row-sub{font-size:10px;color:#999;margin-top:1px}

.me-products-list .me-list-header,
.me-products-list .me-list-row{grid-template-columns:1fr 110px 90px 80px 70px 60px}
.me-orders-list .me-list-header,
.me-orders-list .me-list-row{grid-template-columns:1fr 100px 80px 90px 80px 60px}
.me-reviews-list .me-list-header,
.me-reviews-list .me-list-row{grid-template-columns:1fr 100px 90px 100px}
.me-inquiries-list .me-list-header,
.me-inquiries-list .me-list-row{grid-template-columns:1fr 110px 80px 80px}

/* ---- Inquiry / Message Item ---- */
.me-inquiry-item{
    padding:16px;border-radius:8px;border:1px solid #eee;
    background:#fff;margin-bottom:8px;transition:all .12s;cursor:pointer;
}
.me-inquiry-item:hover{background:#f8f9fa;border-color:#ddd}
.me-inquiry-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}
.me-inquiry-from{font-size:14px;font-weight:600;color:#333}
.me-inquiry-date{font-size:11px;color:#999}
.me-inquiry-product{font-size:12px;color:#999;margin-bottom:6px}
.me-inquiry-msg{font-size:13px;color:#666;line-height:1.5}
.me-inquiry-reply{
    margin-top:10px;padding:12px;border-radius:6px;
    background:#eef4ff;border-left:3px solid #3483FA;
    font-size:13px;color:#555;
}

/* ---- Review Item ---- */
.me-review-item{
    padding:16px;border-radius:8px;border:1px solid #eee;
    background:#fff;margin-bottom:8px;
}
.me-review-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}
.me-review-author{font-size:14px;font-weight:600;color:#333}
.me-review-date{font-size:11px;color:#999}
.me-review-text{font-size:13px;color:#666;line-height:1.5;margin-top:6px}

/* ---- Section Headers ---- */
.me-section-title{font-size:16px;font-weight:600;color:#333;margin-bottom:14px}
.me-section-subtitle{font-size:12px;color:#999;margin-bottom:10px}

/* ---- Image Upload ---- */
.me-upload-area{display:flex;flex-wrap:wrap;gap:10px;margin-top:6px}
.me-upload-thumb{
    width:80px;height:80px;border-radius:8px;overflow:hidden;position:relative;
    border:1px solid #ddd;background:#f9f9f9;
}
.me-upload-thumb img{width:100%;height:100%;object-fit:cover}
.me-upload-thumb-remove{
    position:absolute;top:2px;right:2px;width:18px;height:18px;border-radius:50%;
    background:rgba(211,47,47,.85);color:#fff;border:none;font-size:10px;
    cursor:pointer;display:flex;align-items:center;justify-content:center;
}
.me-upload-add{
    width:80px;height:80px;border-radius:8px;
    border:2px dashed #ddd;background:transparent;
    color:#ccc;font-size:24px;cursor:pointer;
    display:flex;align-items:center;justify-content:center;transition:all .15s;
}
.me-upload-add:hover{border-color:#3483FA;color:#3483FA;background:#eef4ff}

/* ---- Tags ---- */
.me-tags{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}
.me-tag{
    display:inline-flex;align-items:center;gap:3px;
    padding:3px 10px;border-radius:4px;
    background:#f0f0f0;color:#666;
    font-size:11px;
}
.me-tag-remove{cursor:pointer;opacity:.5;transition:opacity .15s}
.me-tag-remove:hover{opacity:1;color:#d32f2f}

/* ---- Empty State ---- */
.me-empty{
    display:flex;flex-direction:column;align-items:center;justify-content:center;
    padding:60px 20px;text-align:center;
}
.me-empty-icon{font-size:52px;margin-bottom:16px;opacity:.25}
.me-empty-title{font-size:18px;font-weight:600;color:#666;margin-bottom:6px}
.me-empty-desc{font-size:13px;color:#999;max-width:340px;margin-bottom:16px;line-height:1.5}

/* ---- Tabs ---- */
.me-tabs{display:flex;gap:2px;margin-bottom:14px}
.me-tab{
    padding:7px 16px;border-radius:6px;border:none;
    background:transparent;color:#666;
    font-size:13px;font-weight:500;cursor:pointer;transition:all .15s;font-family:inherit;
}
.me-tab:hover{color:#333;background:#f0f0f0}
.me-tab.me-tab-active{background:#eef4ff;color:#3483FA}

/* ---- Activity List ---- */
.me-activity-item{
    display:flex;align-items:flex-start;gap:10px;
    padding:10px 0;border-bottom:1px solid #f0f0f0;
}
.me-activity-dot{
    width:8px;height:8px;border-radius:50%;margin-top:5px;flex-shrink:0;
    background:#3483FA;
}
.me-activity-text{font-size:12px;color:#666;line-height:1.4}
.me-activity-time{font-size:10px;color:#bbb;margin-top:2px}

/* ---- Nav Badge (notification count) ---- */
.me-nav-badge{
    display:inline-flex;align-items:center;justify-content:center;
    min-width:18px;height:18px;padding:0 5px;border-radius:9px;
    background:#EF4444;color:#fff;
    font-size:10px;font-weight:700;line-height:1;
    margin-left:6px;vertical-align:middle;
    box-sizing:border-box;
}

/* ---- Order Detail Modal ---- */
.me-od-section{
    padding:16px 0;border-bottom:1px solid #f0f0f0;
}
.me-od-section:last-child{border-bottom:none}
.me-od-section-title{
    font-size:13px;font-weight:700;color:#333;
    margin-bottom:10px;text-transform:uppercase;letter-spacing:.3px;
}
.me-od-summary-row{
    display:flex;justify-content:space-between;align-items:center;
    padding:5px 0;font-size:13px;
}
.me-od-summary-label{color:#999}
.me-od-summary-value{color:#333;font-weight:500}
.me-od-summary-total{font-size:18px;font-weight:700;color:#3483FA}

.me-od-info-card{
    display:flex;align-items:center;gap:10px;
    padding:10px 12px;border-radius:8px;
    background:#f8f9fa;border:1px solid #eee;margin-bottom:6px;
}
.me-od-info-card-avatar{
    width:36px;height:36px;border-radius:50%;
    background:#e8e8e8;display:flex;align-items:center;justify-content:center;
    font-size:14px;color:#999;flex-shrink:0;overflow:hidden;
}
.me-od-info-card-avatar img{width:100%;height:100%;object-fit:cover}
.me-od-info-card-name{font-size:13px;font-weight:600;color:#333}
.me-od-info-card-sub{font-size:11px;color:#999}

.me-od-notes{
    padding:10px 14px;border-radius:8px;
    background:#fefce8;border:1px solid #fef08a;
    font-size:13px;color:#713f12;line-height:1.5;
}
.me-od-toggle{user-select:none}
.me-od-toggle:hover{color:#3483FA}
.me-od-chevron{transition:transform .2s;flex-shrink:0;color:#999}
.me-od-collapse-body{padding-top:8px}

/* ---- Order Detail Stepper ---- */
.me-od-stepper{
    display:flex;align-items:flex-start;justify-content:space-between;
    padding:8px 0;position:relative;
}
.me-od-step{
    display:flex;flex-direction:column;align-items:center;
    flex:1;position:relative;z-index:1;
}
.me-od-step-dot{
    width:28px;height:28px;border-radius:50%;
    display:flex;align-items:center;justify-content:center;
    font-size:12px;font-weight:700;
    background:#e5e7eb;color:#9ca3af;
    transition:all .2s;position:relative;
}
.me-od-step-label{
    font-size:10px;color:#9ca3af;margin-top:6px;
    text-align:center;font-weight:500;
}
.me-od-step.completed .me-od-step-dot{background:#22c55e;color:#fff}
.me-od-step.completed .me-od-step-label{color:#22c55e;font-weight:600}
.me-od-step.current .me-od-step-dot{background:#3483FA;color:#fff;box-shadow:0 0 0 4px rgba(52,131,250,.25)}
.me-od-step.current .me-od-step-label{color:#3483FA;font-weight:600}
.me-od-step.cancelled .me-od-step-dot{background:#EF4444;color:#fff}
.me-od-step.cancelled .me-od-step-label{color:#EF4444;font-weight:600}
.me-od-step-line{
    position:absolute;top:14px;left:50%;right:-50%;
    height:3px;background:#e5e7eb;z-index:0;
}
.me-od-step:last-child .me-od-step-line{display:none}
.me-od-step.completed .me-od-step-line{background:#22c55e}

/* ---- Chat inside Order Detail ---- */
.me-od-chat{
    display:flex;flex-direction:column;gap:8px;
    max-height:240px;overflow-y:auto;
    padding:12px;border-radius:8px;
    background:#f8f9fa;border:1px solid #eee;
}
.me-od-chat:empty::after{
    content:'Sin mensajes aun. Escribe el primero.';
    text-align:center;padding:20px 0;
    font-size:12px;color:#bbb;
}
.me-od-chat-msg{
    max-width:80%;padding:8px 12px;border-radius:12px;
    font-size:13px;line-height:1.4;word-break:break-word;
}
.me-od-chat-msg-mine{
    align-self:flex-end;
    background:#3483FA;color:#fff;
    border-bottom-right-radius:4px;
}
.me-od-chat-msg-other{
    align-self:flex-start;
    background:#e5e7eb;color:#333;
    border-bottom-left-radius:4px;
}
.me-od-chat-msg-sender{
    font-size:10px;font-weight:600;margin-bottom:2px;opacity:.7;
}
.me-od-chat-msg-time{
    font-size:9px;opacity:.5;margin-top:2px;text-align:right;
}
.me-od-chat-input-wrap{
    display:flex;gap:6px;margin-top:8px;
}
.me-od-chat-input{
    flex:1;padding:8px 12px;border-radius:20px;
    border:1px solid #ddd;background:#fff;
    font-size:13px;color:#333;outline:none;
    font-family:inherit;
}
.me-od-chat-input:focus{border-color:#3483FA}
.me-od-chat-input::placeholder{color:#bbb}
.me-od-chat-send{
    width:36px;height:36px;border-radius:50%;border:none;
    background:#3483FA;color:#fff;cursor:pointer;
    display:flex;align-items:center;justify-content:center;
    transition:background .15s;flex-shrink:0;
}
.me-od-chat-send:hover{background:#2968c8}

/* ---- Messenger Layout (Pedidos) ---- */
.me-main.me-main-messenger{overflow:hidden !important}

.me-messenger{
    display:flex;height:100%;background:#fff;
}

/* Left sidebar: order list */
.me-msn-sidebar{
    width:280px;flex-shrink:0;display:flex;flex-direction:column;
    border-right:1px solid #e5e7eb;background:#fff;
}
.me-msn-sidebar-header{
    padding:10px 12px;border-bottom:1px solid #eee;flex-shrink:0;
}
.me-msn-order-list{flex:1;overflow-y:auto}
.me-msn-order-item{
    display:flex;align-items:center;gap:10px;
    padding:12px 14px;cursor:pointer;
    border-bottom:1px solid #f0f0f0;transition:background .12s;
}
.me-msn-order-item:hover{background:#f8f9fa}
.me-msn-order-item.active{background:#eef4ff;border-left:3px solid #3483FA}
.me-msn-order-avatar{
    width:40px;height:40px;border-radius:50%;background:#e8e8e8;
    display:flex;align-items:center;justify-content:center;
    font-size:16px;color:#999;flex-shrink:0;overflow:hidden;
}
.me-msn-order-avatar img{width:100%;height:100%;object-fit:cover}
.me-msn-order-info{flex:1;min-width:0}
.me-msn-order-name{
    font-size:13px;font-weight:600;color:#333;
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.me-msn-order-product{
    font-size:11px;color:#999;white-space:nowrap;
    overflow:hidden;text-overflow:ellipsis;
}
.me-msn-order-preview{
    font-size:11px;color:#bbb;white-space:nowrap;
    overflow:hidden;text-overflow:ellipsis;margin-top:2px;
}
.me-msn-order-meta{
    flex-shrink:0;text-align:right;display:flex;
    flex-direction:column;align-items:flex-end;gap:4px;
}
.me-msn-order-time{font-size:10px;color:#bbb}
/* Unread order styling */
.me-msn-order-item.me-msn-unread{background:#f0f7ff}
.me-msn-order-item.me-msn-unread .me-msn-order-name{font-weight:700;color:#111}
.me-msn-order-item.me-msn-unread .me-msn-order-preview{color:#333;font-weight:600}
.me-msn-unread-dot{
    width:10px;height:10px;border-radius:50%;
    background:#3483FA;flex-shrink:0;
}

/* Center: Chat area */
.me-msn-chat{
    flex:1;display:flex;flex-direction:column;min-width:0;
    border-right:1px solid #e5e7eb;background:#fff;
}
.me-msn-chat-header{
    padding:14px 20px;border-bottom:1px solid #eee;
    display:flex;align-items:center;gap:10px;flex-shrink:0;background:#fff;
}
.me-msn-chat-header-name{font-size:15px;font-weight:600;color:#333}
.me-msn-chat-header-sub{font-size:11px;color:#999}
.me-msn-chat-thread{
    flex:1;overflow-y:auto;padding:16px 20px;
    display:flex;flex-direction:column;gap:8px;background:#f8f9fa;
}
.me-msn-chat-thread:empty::after{
    content:'Sin mensajes aun';text-align:center;padding:40px 0;
    font-size:13px;color:#bbb;margin:auto;
}
.me-msn-msg{
    max-width:70%;padding:10px 14px;border-radius:18px;
    font-size:13px;line-height:1.45;word-break:break-word;
}
.me-msn-msg-mine{
    align-self:flex-end;background:#3483FA;color:#fff;
    border-bottom-right-radius:4px;
}
.me-msn-msg-other{
    align-self:flex-start;background:#e5e7eb;color:#333;
    border-bottom-left-radius:4px;
}
.me-msn-msg-sender{font-size:10px;font-weight:600;margin-bottom:2px;opacity:.7}
.me-msn-msg-time{font-size:9px;opacity:.5;margin-top:3px;text-align:right}
.me-msn-msg-text{white-space:pre-wrap}
.me-msn-chat-input-wrap{
    display:flex;gap:8px;padding:12px 20px;
    border-top:1px solid #eee;background:#fff;flex-shrink:0;
}
.me-msn-chat-input{
    flex:1;padding:10px 16px;border-radius:24px;
    border:1px solid #ddd;background:#f0f2f5;font-size:13px;color:#333;
    outline:none;font-family:inherit;
}
.me-msn-chat-input:focus{border-color:#3483FA;background:#fff}
.me-msn-chat-input::placeholder{color:#999}
.me-msn-chat-send{
    width:40px;height:40px;border-radius:50%;border:none;
    background:#3483FA;color:#fff;cursor:pointer;
    display:flex;align-items:center;justify-content:center;
    transition:background .15s;flex-shrink:0;
}
.me-msn-chat-send:hover{background:#2968c8}

/* Right: Detail panel */
.me-msn-detail{
    width:300px;flex-shrink:0;overflow-y:auto;background:#fff;padding:0;
}
.me-msn-detail-section{padding:16px 18px;border-bottom:1px solid #f0f0f0}
.me-msn-detail-section:last-child{border-bottom:none}
.me-msn-detail-label{
    font-size:10px;font-weight:700;color:#999;
    text-transform:uppercase;letter-spacing:.5px;margin-bottom:8px;
}

/* Messenger empty state */
.me-msn-empty{
    display:flex;flex-direction:column;align-items:center;
    justify-content:center;flex:1;color:#bbb;font-size:14px;
    text-align:center;padding:40px;
}
.me-msn-empty-icon{font-size:48px;margin-bottom:12px;opacity:.3}

/* ---- Context Menu ---- */
.me-ctx-menu{
    position:absolute;z-index:200;min-width:180px;background:#fff;
    border:1px solid #e5e7eb;border-radius:8px;
    box-shadow:0 8px 24px rgba(0,0,0,.15);padding:4px;
    animation:me-ctx-fadein .1s ease;
}
@keyframes me-ctx-fadein{
    from{opacity:0;transform:scale(.95)} to{opacity:1;transform:scale(1)}
}
.me-ctx-item{
    display:flex;align-items:center;gap:8px;padding:8px 12px;
    font-size:13px;color:#333;border-radius:6px;cursor:pointer;transition:background .1s;
}
.me-ctx-item:hover{background:#f0f2f5}
.me-ctx-item-danger{color:#d32f2f}
.me-ctx-item-danger:hover{background:#fff0f0}
.me-ctx-item-restore{color:#3483FA}
.me-ctx-sep{height:1px;background:#e5e7eb;margin:4px 8px}

/* ---- Log Timeline ---- */
.me-od-log-timeline{display:flex;flex-direction:column;gap:0;padding-left:4px}
.me-od-log-entry{
    display:flex;gap:12px;padding:10px 0;
    border-left:2px solid #e5e7eb;margin-left:10px;
    padding-left:16px;position:relative;
}
.me-od-log-dot{
    position:absolute;left:-8px;top:12px;width:14px;height:14px;
    border-radius:50%;display:flex;align-items:center;justify-content:center;
    font-size:8px;color:#fff;flex-shrink:0;
}
.me-od-log-content{flex:1;min-width:0}
.me-od-log-text{font-size:13px;color:#333;line-height:1.4}
.me-od-log-meta{font-size:11px;color:#999;margin-top:2px}

/* ---- Scrollbar ---- */
#win-mercado-empresarial ::-webkit-scrollbar{width:6px;height:6px}
#win-mercado-empresarial ::-webkit-scrollbar-track{background:transparent}
#win-mercado-empresarial ::-webkit-scrollbar-thumb{background:#ccc;border-radius:4px}
#win-mercado-empresarial ::-webkit-scrollbar-thumb:hover{background:#aaa}

/* ---- Responsive ---- */
@media(max-width:900px){
    .me-body-inner{grid-template-columns:1fr}
    .me-filters-sidebar{display:none}
    .me-product-item{grid-template-columns:140px 1fr}
    .me-product-item-img{width:140px;height:140px}
    .me-dash-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}
    .me-form-row{grid-template-columns:1fr}
    .me-detail-gallery-img{width:150px;height:110px}
    .me-profile-stats{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:640px){
    .me-product-item{grid-template-columns:100px 1fr;gap:12px;padding:16px}
    .me-product-item-img{width:100px;height:100px}
    .me-product-item-price{font-size:22px}
    .me-product-item-title{font-size:15px}
    .me-header-search-wrap{max-width:none}
    .me-header-brand{display:none}
}

/* ---- Confirm Delivery Box ---- */
.me-confirm-delivery-box{
    background:#f0fdf4;border:1px solid #bbf7d0;border-radius:10px;padding:16px;text-align:center
}
.me-confirm-delivery-icon{font-size:28px;margin-bottom:6px}
.me-confirm-delivery-title{font-size:13px;font-weight:600;color:#166534;margin-bottom:4px}
.me-confirm-delivery-desc{font-size:11px;color:#6b7280}

/* ---- Star Rating Selector ---- */
.me-star-selector{display:flex;gap:4px;justify-content:center;margin:8px 0}
.me-star-btn{
    font-size:24px;cursor:pointer;color:#d1d5db;transition:color .15s;
    background:none;border:none;padding:2px
}
.me-star-btn.active{color:#f59e0b}
.me-star-btn:hover{color:#fbbf24}

/* ---- Review Form Sections ---- */
.me-review-form-section{
    margin-bottom:16px;padding-bottom:16px;border-bottom:1px solid #f0f0f0
}
.me-review-form-section:last-child{border-bottom:none;margin-bottom:0}
.me-review-form-label{font-size:12px;font-weight:600;color:#333;margin-bottom:6px}

/* ---- Loading Spinner ---- */
@keyframes me-spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}

/* ---- Video Thumbnail ---- */
.me-video-thumb{position:relative;width:100%;height:100%}
.me-video-thumb video{width:100%;height:100%;object-fit:cover}
.me-video-poster-static{
    width:100%;height:100%;
    background:linear-gradient(135deg,#1a1a2e 0%,#16213e 50%,#0f3460 100%);
    display:flex;align-items:center;justify-content:center;
}
.me-video-play-badge{
    position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);
    width:36px;height:36px;border-radius:50%;
    background:rgba(0,0,0,.55);color:#fff;font-size:14px;
    display:flex;align-items:center;justify-content:center;
    pointer-events:none;backdrop-filter:blur(2px);
}
.me-detail-gallery-img video{width:100%;height:100%;object-fit:cover;border-radius:8px}
