/* ===============================
   ALU PRODUCT BADGE COMPONENT
================================ */

.alu-product-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    border-radius: 14px;
    color: #fff;
    white-space: nowrap;
    user-select: none;
    animation: alu-product-badge-pulse 2s infinite;
    transition: transform .25s ease, box-shadow .25s ease;
}

/* Badge trong product card (danh mục) - positioned absolutely */
.alu-brand-card {
    position: relative;
}

.alu-brand-card > .alu-product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 99;
    animation: none;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25) !important;
}

.alu-brand-card > .alu-product-badge:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.35) !important;
}

.alu-brand-card-image-wrapper {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    border-radius: 4px;
}

.alu-brand-card-image-wrapper .alu-brand-image {
    display: block;
    position: relative;
}

.alu-product-badge-emoji {
    font-style: normal;
    font-size: 13px;
    display: inline-block;
    line-height: 1;
    min-width: 13px;
    text-align: center;
}

.alu-product-badge-text {
    font-size: 11px;
}

.alu-product-badge-label {
    padding: 8px 12px 0;
    text-align: center;
}

.alu-product-badge-label .alu-product-badge-text {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    display: inline-block;
}

/* ===== BADGE CẠN TITLE TRONG DANH MỤC ===== */
.alu-brand-name-with-badge {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    flex-wrap: nowrap;
    margin-bottom: 8px;
}

.alu-brand-name {
    flex: 0 1 auto;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
    display: flex;
    align-items: center;
}

.alu-category-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    border-radius: 14px;
    color: #fff;
    white-space: nowrap;
    user-select: none;
    flex-shrink: 0;
    animation: alu-product-badge-pulse 2s infinite;
    transition: transform .25s ease, box-shadow .25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    vertical-align: middle;
}

.alu-category-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.alu-category-badge-emoji {
    font-style: normal;
    font-size: 13px;
    display: inline-block;
    line-height: 1;
    min-width: 13px;
    text-align: center;
    vertical-align: middle;
}

.alu-category-badge-text {
    font-size: 11px;
    font-weight: 600;
    vertical-align: middle;
}

/* Reuse gradient backgrounds from main badges */
.alu-category-badge.alu-product-badge-cheap {
    background: linear-gradient(135deg, #2a9d8f, #1b7f72);
}

.alu-category-badge.alu-product-badge-hot {
    background: linear-gradient(135deg, #f4a261, #e76f51);
}

.alu-category-badge.alu-product-badge-premium {
    background: linear-gradient(135deg, #264653, #1b2f3a);
}

.alu-category-badge.alu-product-badge-mica-cheap {
    background: linear-gradient(135deg, #d4af37, #aa8c2c);
}

.alu-category-badge.alu-product-badge-mica-premium {
    background: linear-gradient(135deg, #9c27b0, #6a1b9a);
}

.alu-category-badge.alu-product-badge-grade1 {
    background: linear-gradient(135deg, #ffc107, #ff9800);
}

.alu-category-badge.alu-product-badge-grade2 {
    background: linear-gradient(135deg, #4caf50, #388e3c);
}

.alu-category-badge.alu-product-badge-bestseller {
    background: linear-gradient(135deg, #ff5722, #d84315);
}

.alu-category-badge.alu-product-badge-good-price {
    background: linear-gradient(135deg, #1976d2, #1565c0);
}

.alu-category-badge.alu-product-badge-high-class {
    background: linear-gradient(135deg, #c41c3b, #880e4f);
}

/* ===== BADGE TYPES ===== */
.alu-product-badge-cheap {
    background: linear-gradient(135deg, #2a9d8f, #1b7f72);
}

.alu-product-badge-hot {
    background: linear-gradient(135deg, #f4a261, #e76f51);
}

.alu-product-badge-premium {
    background: linear-gradient(135deg, #264653, #1b2f3a);
}

.alu-product-badge-mica-cheap {
    background: linear-gradient(135deg, #d4af37, #aa8c2c);
}

.alu-product-badge-mica-premium {
    background: linear-gradient(135deg, #9c27b0, #6a1b9a);
}

.alu-product-badge-grade1 {
    background: linear-gradient(135deg, #ffc107, #ff9800);
}

.alu-product-badge-grade2 {
    background: linear-gradient(135deg, #4caf50, #388e3c);
}

.alu-product-badge-bestseller {
    background: linear-gradient(135deg, #ff5722, #d84315);
}

.alu-product-badge-good-price {
    background: linear-gradient(135deg, #1976d2, #1565c0);
}

.alu-product-badge-high-class {
    background: linear-gradient(135deg, #c41c3b, #880e4f);
}

.alu-product-badge-stock {
    background: linear-gradient(135deg, #e63946, #c1121f);
}

/* ===== HOVER ===== */
.alu-product-badge:hover {
    transform: scale(1.05);
}

/* ===== PULSE EFFECT ===== */
@keyframes alu-product-badge-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 0, 0, .25);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(0, 0, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
}

@media (max-width: 768px) {
    .alu-product-badge {
        animation: none;
    }
}
