/* ═══════════════════════════════════════════════════════
   GOIMPORT MAYORISTA — CSS
   Override de variables del minorista + estilos propios
   Paleta: Slate (0f172a / 1e293b / 334155 / 94a3b8 / f1f5f9)
═══════════════════════════════════════════════════════ */

/* ── Override de variables del catálogo base ── */
.may-body {
    --primary:        #334155;
    --primary-dark:   #1e293b;
    --primary-light:  #f1f5f9;
    --accent:         #475569;
    --text-main:      #0f172a;
    --text-muted:     #475569;
    --text-light:     #94a3b8;
    --bg:             #f8fafc;
    --bg-card:        #ffffff;
    --border:         #e2e8f0;
    --border-light:   #f1f5f9;
}

/* ── HEADER ── */
.may-header {
    background: #0f172a;
    border-bottom: 1px solid #1e293b;
    box-shadow: 0 2px 12px rgba(0,0,0,.25);
}

.may-header .search-icon { color: #94a3b8; }

.may-header .header-search input {
    background: #1e293b;
    border-color: #334155;
    color: #f1f5f9;
}

.may-header .header-search input::placeholder { color: #64748b; }

.may-header .header-search input:focus {
    border-color: #94a3b8;
    box-shadow: 0 0 0 3px rgba(148,163,184,.15);
    background: #1e293b;
}

/* Logo + tag Mayorista */
.logo-wrap { display: flex; align-items: center; gap: 8px; }

.may-logo {
    height: 40px;
    width: auto;
    border-radius: 8px;
}

.may-header-tag {
    background: #334155;
    color: #94a3b8;
    font-family: var(--font-display);
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: .12em;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid #475569;
    white-space: nowrap;
}

/* Cotización en header */
.may-header .cotizacion-badge { color: #f1f5f9; }
.may-header .cot-label { color: #94a3b8; }
.may-header .cot-value { color: #e2e8f0; }

/* Botón favoritos / icon */
.may-header .btn-icon {
    border-color: #334155;
    color: #94a3b8;
}
.may-header .btn-icon:hover { border-color: #94a3b8; color: #f1f5f9; }

/* Botón destacados */
.may-btn-dest {
    background: #1e293b !important;
    color: #fbbf24 !important;
    border-color: #334155 !important;
}
.may-btn-dest:hover { background: #334155 !important; }

/* Botón ir a minorista */
.may-btn-minorista {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    color: #94a3b8;
    border: 1.5px solid #334155;
    padding: 8px 14px;
    border-radius: 10px;
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}
.may-btn-minorista:hover { border-color: #94a3b8; color: #f1f5f9; }

/* Botón carrito mayorista */
.may-btn-carrito {
    background: #334155 !important;
}
.may-btn-carrito:hover { background: #475569 !important; }

/* ── SIDEBAR ── */
.may-body .filter-item.active {
    background: #f1f5f9;
    color: #0f172a;
}
.may-body .filter-item:hover {
    background: #f1f5f9;
    color: #1e293b;
}
.may-body .filter-item.active .filter-dot,
.may-body .filter-item:hover .filter-dot { background: #334155; }
.may-body .filter-item.active .filter-count {
    background: #e2e8f0;
    color: #334155;
}
.may-body .btn-apply-price { background: #1e293b; }
.may-body .btn-apply-price:hover { background: #0f172a; }

/* ── CARDS ── */
.may-body .product-card:hover {
    border-color: #334155;
}

/* Badge de mínimo de compra en card */
.may-minimo-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 6px;
    margin-top: 6px;
}

/* Badge de ahorro % */
.may-ahorro-badge {
    display: inline-flex;
    align-items: center;
    background: #dcfce7;
    color: #15803d;
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 20px;
    margin-left: 4px;
}

/* Badge destacado en card */
.may-badge-dest {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #0f172a;
    color: #fbbf24;
    font-family: var(--font-display);
    font-size: 0.62rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 20px;
    letter-spacing: .04em;
    z-index: 3;
}

/* Botón agregar en cards */
.may-body .btn-add-cart {
    background: #1e293b;
}
.may-body .btn-add-cart:hover { background: #0f172a; }
.may-body .product-card.sin-stock .btn-add-cart { background: var(--border); color: var(--text-light); }

/* ── CARRITO ── */
.may-body .cart-header { background: #0f172a; border-bottom-color: #1e293b; }
.may-body .cart-header h2 { color: #f1f5f9; }
.may-body .btn-close-cart { color: #94a3b8; }
.may-body .btn-close-cart:hover { color: #f1f5f9; }

/* Mínimo en item del carrito */
.may-cart-minimo {
    font-size: 0.7rem;
    color: #94a3b8;
    font-weight: 600;
    margin-top: 2px;
}

.may-body .btn-wpp-carrito {
    background: #25d366;
}
.may-body .btn-wpp-carrito:hover { background: #1ebe5d; }

/* ── PAGINACIÓN ── */
.may-body .pag-btn.active {
    background: #1e293b;
    border-color: #1e293b;
    color: #fff;
}
.may-body .pag-btn:hover:not(.disabled) {
    border-color: #334155;
    color: #0f172a;
    background: #f1f5f9;
}

/* ── MODAL ── */
.may-modal-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f1f5f9;
    color: #334155;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

.may-modal-minimo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    color: #334155;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 10px;
    width: 100%;
    box-sizing: border-box;
}
.may-modal-minimo i { color: #1e293b; }

.may-modal-btn-cart {
    background: #1e293b !important;
}
.may-modal-btn-cart:hover { background: #0f172a !important; }

/* ── FOOTER ── */
.may-footer { background: #0f172a; }

.may-footer-logo { height: 36px; width: auto; border-radius: 8px; opacity: 0.85; }

/* ── LIMPIAR FILTROS en tema slate ── */
.may-body .btn-limpiar-filtros {
    background: #f1f5f9;
    color: #334155;
    border-color: #cbd5e1;
}
.may-body .btn-limpiar-filtros:hover { background: #e2e8f0; border-color: #94a3b8; }

/* ── MOBILE HEADER ── */
@media (max-width: 768px) {
    .may-btn-minorista span { display: none; }
    .may-btn-minorista { padding: 8px 10px; }
    .may-header-tag { display: none; }
}
/* ── FOOTER BANNER en mayorista — override colores ── */
.may-footer-banner { background: #0d1f2d; border-top-color: #1e293b; }
.may-footer-btn-min { background: #334155; color: #e2e8f0; }
.may-footer-btn-min:hover { background: #475569; }

/* ── FAVORITOS MAYORISTA ── */
.may-body .btn-favoritos-may {
    background: none;
    border: 1.5px solid #334155;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #94a3b8;
    position: relative;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}
.may-body .btn-favoritos-may:hover { border-color: var(--primary); color: var(--primary); }

/* ── CHIPS EN MAYORISTA — override para tema oscuro ── */
.may-body .chip-filtro {
    background: rgba(75,195,209,.1);
    color: #7dd3db;
    border-color: rgba(75,195,209,.25);
}
.may-body .chip-filtro:hover {
    background: var(--primary);
    color: #0f172a;
    border-color: var(--primary);
}

/* ── FALLBACK COTIZACION ── */
.may-body .cot-fallback-warning { color: #fbbf24; }