/**
 * ESTILOS DE BADGES - Copiados de cargacategorias_mysql.php
 * Para asegurar que se vean EXACTAMENTE igual
 */

/* ============================================
   BADGES Y MARCA MINI EN COLUMNA CÓDIGO
   ============================================ */
.jn-badges-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.jn-badges-left,
.jn-badges-right {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.jn-badges-right {
    margin-left: auto;
}

.jn-cell-code .jn-brand-mini {
    max-height: 20px;
    object-fit: contain;
}

.jn-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
    line-height: 1.2;
}

.jn-badge-rebaja {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(255, 193, 7, 0.3);
}

.jn-badge-oferta {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(255, 0, 0, 0.3);
}

.jn-badge-remate {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.jn-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* COLUMNA MARCA CON LOGO GRANDE Y CATEGORÍA */
.jn-brand-wrapper-new {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.jn-brand-img-full {
    max-height: 50px;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.jn-brand-img-full:hover {
    transform: scale(1.05);
}

.jn-category-full {
    font-size: 11px;
    color: #666;
    text-decoration: none;
    display: block;
    transition: color 0.2s ease;
}

.jn-category-full:hover {
    color: #ff0000 !important;
}

/* Responsive móvil */
@media (max-width: 768px) {
    .jn-brand-wrapper-new {
        gap: 8px;
        padding: 8px;
    }

    .jn-brand-img-full {
        max-height: 60px;
    }

    .jn-category-full {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .jn-brand-wrapper-new {
        gap: 6px;
        padding: 6px;
    }

    .jn-brand-img-full {
        max-height: 50px;
    }

    .jn-category-full {
        font-size: 11px;
    }
}

/* ============================================
   HOT SALE BADGE (temporal - se desactiva solo)
   ============================================ */
a.jn-hotsale-badge,
a.jn-hotsale-badge:visited {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    background: rgba(0, 0, 0, 0.75) !important;
    padding: 4px 8px 4px 4px !important;
    border: none !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25) !important;
    text-decoration: none !important;
    line-height: 1;
    border-radius: 6px;
    transition: transform 0.2s ease;
}
a.jn-hotsale-badge:hover {
    transform: scale(1.05);
    background: rgba(0, 0, 0, 0.85) !important;
}
.jn-hotsale-logo {
    height: 30px !important;
    width: auto !important;
    max-width: none !important;
    display: block !important;
    object-fit: contain !important;
    background: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-shrink: 0;
}
.jn-hotsale-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.jn-hotsale-pct {
    font-size: 10px;
    font-weight: 800;
    color: #fbbf24;
    white-space: nowrap;
}
.jn-hotsale-sub {
    font-size: 7px;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    white-space: nowrap;
}
/* Hot Sale en pagina de detalle */
a.jn-hotsale-badge-single {
    position: absolute !important;
    top: 20px;
    right: 20px;
    z-index: 15;
    padding: 6px 10px 6px 6px !important;
    box-shadow: 0 3px 10px rgba(0,0,0,0.25) !important;
    border-radius: 6px;
}
.jn-hotsale-badge-single .jn-hotsale-logo {
    height: 48px !important;
}
.jn-hotsale-badge-single .jn-hotsale-pct {
    font-size: 14px;
}
.jn-hotsale-badge-single .jn-hotsale-sub {
    font-size: 9px;
}
@media (max-width: 768px) {
    .jn-hotsale-logo { height: 24px !important; }
    .jn-hotsale-pct { font-size: 9px; }
    .jn-hotsale-sub { font-size: 6px; }
    .jn-hotsale-badge-single .jn-hotsale-logo { height: 36px !important; }
    .jn-hotsale-badge-single .jn-hotsale-pct { font-size: 11px; }
}

