/* ════════════════════════════════════════════════════════
   Fooppers Smart Badges — Frontend Styles v1.0.2
   Positioning is handled entirely by JS (fsb-tracker.js)
   This file only controls badge visual appearance.
   ════════════════════════════════════════════════════════ */

/* ── Base badge ─────────────────────────────────────── */
.fsb-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px 5px 8px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.55px;
    text-transform: uppercase;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.22), 0 1px 3px rgba(0,0,0,0.12);
    font-family: 'DM Sans', 'Inter', system-ui, sans-serif;
    transition: transform 0.15s ease;
}

.fsb-badge .fsb-icon {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.fsb-badge .fsb-icon svg {
    width: 11px;
    height: 11px;
    fill: currentColor;
}

/* ── Badge stack (base — positioning set by JS inline styles) */
.fsb-stack--loop,
.fsb-stack--single {
    pointer-events: none;
}

/* ── Hover lift on archive ──────────────────────────── */
ul.products .product:hover .fsb-badge {
    transform: translateY(-1px);
}

/* ── Colours ────────────────────────────────────────── */

.fsb-badge--bestseller {
    background: linear-gradient(135deg, #1565C0, #1976D2);
    color: #fff;
}
.fsb-badge--top_favorite {
    background: linear-gradient(135deg, #C2185B, #E91E63);
    color: #fff;
}
.fsb-badge--weekly_hero {
    background: linear-gradient(135deg, #E65100, #FBC02D);
    color: #fff;
}
.fsb-badge--trending {
    background: linear-gradient(270deg, #FF6F00, #D32F2F, #FF6F00);
    background-size: 300% 100%;
    color: #fff;
    animation: fsb-fire 2.5s ease infinite;
}
@keyframes fsb-fire {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.fsb-badge--fast_moving {
    background: linear-gradient(135deg, #BF360C, #E64A19);
    color: #fff;
}
.fsb-badge--customer_favorite {
    background: linear-gradient(135deg, #1B5E20, #2E7D32);
    color: #fff;
}
.fsb-badge--hot_deal {
    background: linear-gradient(135deg, #B71C1C, #C0392B);
    color: #fff;
}
.fsb-badge--most_reordered {
    background: linear-gradient(135deg, #311B92, #6A1B9A);
    color: #fff;
}
.fsb-badge--premium_choice {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    color: #FFD700;
    border: 1px solid rgba(255,215,0,0.35);
    box-shadow: 0 2px 8px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,215,0,0.1);
}

/* ── Mobile ─────────────────────────────────────────── */
@media (max-width: 600px) {
    .fsb-badge {
        font-size: 10px;
        padding: 4px 8px 4px 6px;
    }
    .fsb-badge .fsb-icon { width: 10px; height: 10px; }
}
@media (max-width: 360px) {
    .fsb-badge { font-size: 9.5px; padding: 3px 7px; }
    .fsb-badge .fsb-icon { display: none; }
}

/* ── Accessibility ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .fsb-badge--trending {
        animation: none;
        background: linear-gradient(135deg, #D32F2F, #FF6F00);
    }
    .fsb-badge { transition: none; }
}
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .fsb-badge { -webkit-font-smoothing: antialiased; }
}
