/*******************************************************
 * WAPU BEAUTY BADGE SYSTEM v2.0
 * Sistema unificado de badges para WooCommerce
 *******************************************************/


/* =====================================================
   BASE GLOBAL — contenedor de badges
   ===================================================== */
.wapu-badges-box {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
}


/* =====================================================
   BADGE BASE — estilo minimal
   ===================================================== */
.wapu-badge {
    font-family: "Poppins", sans-serif;
    font-size: 10px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(0,0,0,0.06);
    color: #333;
    padding: 4px 8px;
    border-radius: 8px;
    line-height: 1.1;
}

/* Variante para textos solos (sin fondo) */
.wapu-text-mini {
    font-family: "Poppins", sans-serif;
    font-size: 10px;
    font-weight: 600;
    margin: 0;
    padding: 0;
}


/*******************************************************
 * 1) RANKINGS DE MARCA / CATEGORÍA
 *******************************************************/
.top-marca-badge {
    background: rgba(0,0,0,0.06);
    padding: 4px 8px;
    border-radius: 10px;
}

.top-marca-text {
    font-family: "Poppins", sans-serif;
    font-size: 10px;
    font-weight: 600;
}


/*******************************************************
 * 2) ALERTAS DE STOCK
 *******************************************************/
.badge-stock {
    font-family: "Poppins", sans-serif;
    font-size: 10px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
}

/* Clases legacy para compatibilidad */
.badge-stock-mid {
    background: #ffece7;
    color: #d44c3d;
}

.badge-stock-low {
    background: #fff3da;
    color: #c97a00;
}

.badge-stock-last,
.badge-stock-verylow {
    background: #ffe8e8;
    color: #c03131;
}


/*******************************************************
 * 3) HOT TAGS — ventas totales
 *******************************************************/
.hot-tag {
    font-family: "Poppins", sans-serif;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 6px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Clases legacy para compatibilidad */
.hot-lvl-1 {
    background: #fff0f6;
    color: #d640a8;
    border: 1px solid #ffd6ec;
}

.hot-lvl-3 {
    background: #ffe8e8;
    color: #d64040;
    border: 1px solid #ffbcbc;
}

.hot-lvl-4 {
    background: linear-gradient(90deg, #ff93c9, #d77bff);
    color: #fff;
}


/*******************************************************
 * 4) DESCUENTOS MAKEUP — degradados + holográfico
 *******************************************************/

/* Nivel 1 — texto degradado rosa/violeta */
.text-glow-1 {
    font-size: 10px;
    font-weight: 600;
    background: linear-gradient(90deg,
        #cb9bb2 0%,
        #d560be 50%,
        #9d7dff 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Nivel 2 — texto degradado peach/pink */
.text-glow-2 {
    font-size: 10px;
    font-weight: 600;
    background: linear-gradient(90deg,
        #ffb38a 0%,
        #ff7fa1 50%,
        #ff5da5 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Nivel 3 — botón holográfico mini */
.tag-mini-holo-btn {
    display: inline-flex;
    font-size: 10px;
    font-weight: 700;
    border-radius: 10px;

    background: linear-gradient(125deg,
        #d560be,
        #be46a4,
        #8ed8ff,
        #ffd2a8,
        #ffa6d1
    );
    background-size: 300% 300%;
    animation: wapuHoloShift 5s ease infinite;

    color: #fff;
    text-shadow: 0 1px 1px rgba(0,0,0,0.25);
    box-shadow:
        0 2px 6px rgba(180, 120, 255, 0.35),
        inset 0 0 4px rgba(255,255,255,0.4);
}

/* Animación holográfica */
@keyframes wapuHoloShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Alias para compatibilidad */
@keyframes holoShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}


/*******************************************************
 * 5) NUEVAS CLASES DINÁMICAS (v2.0)
 *******************************************************/

/* Stock alerts dinámicos */
.wapu-badge-stock-mid,
.wapu-badge-stock-low,
.wapu-badge-stock-critical,
.wapu-badge-stock-waiting {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Hot labels dinámicos */
.wapu-hot-hot-best,
.wapu-hot-hot-hot,
.wapu-hot-hot-legendary {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Discount badges dinámicos */
.wapu-discount-discount-soft,
.wapu-discount-discount-glow {
    font-family: "Poppins", sans-serif;
}

.wapu-discount-ultra {
    font-family: "Poppins", sans-serif;
}

/* Ranking badges dinámicos */
.wapu-ranking-1,
.wapu-ranking-2,
.wapu-ranking-3 {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
}


/*******************************************************
 * 6) RESPONSIVE
 *******************************************************/
@media (max-width: 480px) {
    .wapu-badges-box {
        gap: 4px;
    }

    .wapu-badge,
    .badge-stock,
    .hot-tag,
    .top-marca-badge {
        font-size: 9px;
        padding: 3px 6px;
    }

    .text-glow-1,
    .text-glow-2,
    .tag-mini-holo-btn {
        font-size: 9px;
    }
}
