/* =============================================
    ABSOLUTE LEFT TAGS BASE
    ============================================= */
.wasPrice {
    position: relative;
    display: inline-flex;
    align-items: center;

    /* left padding accounts for the notch width (10px) + inner spacing */
    padding: 2px 10px 2px 15px;

    background: var(--clr);
    /* right side gets a small cut-corner for a "ticket" feel */
    clip-path: polygon(8px 0%, 100% 0%, 100% 100%, 8px 100%, 0% 50%);

    font-family: 'DM Sans', sans-serif;
    font-size: .565rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    white-space: nowrap;

    cursor: default;
    user-select: none;
    transition: transform 0.18s cubic-bezier(.34, 1.56, .64, 1), filter 0.18s ease;
    width: fit-content;
    background-color: red;
}

.top-selling {
    gap: 4px;
    color: var(--mzansi-orange);
    border: 1px solid var(--mzansi-orange);
    font-size: 0.565rem;
    font-weight: 500;
    border-radius: 4px;
    padding: 2px 8px;
    color: var(--mzansi-orange);
    text-transform: uppercase;
    background-color: white;
    font-weight: 600;
    display: flex;
    align-items: center;

    i {
        color: orange;
        font-size: .7rem;
        display: flex;
        padding: 0px;
    }
}

/* =============================================
       BADGE BASE
    ============================================= */
.condition-badge {
    --clr: #28a745;
    --clr-dark: #1a7a30;
    --notch: 14px;
    /* half-height of the triangle notch */

    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;

    /* left padding accounts for the notch width (10px) + inner spacing */
    padding: 2px 0px;
    border-radius: 4px;

    background: var(--clr);

    font-family: 'DM Sans', sans-serif;
    font-size: .665rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    white-space: nowrap;

    cursor: default;
    user-select: none;
    transition: transform 0.18s cubic-bezier(.34, 1.56, .64, 1), filter 0.18s ease;
    width: fit-content;
}

/* .condition-badge:hover {
    transform: translateX(3px) scale(1.04);
    filter: brightness(1.08);
} */

/* ── dot indicator ── */
.condition-badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    flex-shrink: 0;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.75);
    }
}

/* ── icon slot ── */
.condition-badge .icon {
    font-size: 13px;
    line-height: 1;
    flex-shrink: 0;
}

/* ── label text ── */
.condition-badge .label {
    line-height: 1;
    font-size: .6rem;
}

/* =============================================
       COLOR VARIANTS
    ============================================= */

/* New — emerald green */
.condition-badge.new {
    --clr: #16a34a;
    /* --clr-light: #dcfce7; */
}

/* Used — warm amber */
.condition-badge.used {
    --clr: #d97706;
    /* --clr-light: #fef3c7; */
}

/* Refurbished — sky blue */
.condition-badge.refurbished {
    --clr: #0284c7;
    /* --clr-light: #e0f2fe; */
}

/* Like New — teal */
.condition-badge.like-new {
    --clr: #0d9488;
    /* --clr-light: #ccfbf1; */
}

/* For Parts — muted red */
.condition-badge.for-parts {
    --clr: #dc2626;
    /* --clr-light: #fee2e2; */
}

/* =============================================
       OUTLINED / GHOST VARIANT
    ============================================= */
.condition-badge.outlined {
    background: var(--clr-light);
    color: var(--clr);
}

.condition-badge.outlined .dot {
    background: var(--clr);
    opacity: 0.5;
}

/* =============================================
       LARGE SIZE MODIFIER
    ============================================= */
.condition-badge.lg {
    height: 40px;
    font-size: 13px;
    padding: 0 18px 0 24px;
    gap: 9px;
    clip-path: polygon(12px 0%,
            100% 0%,
            100% 100%,
            12px 100%,
            0% 50%);
}

.condition-badge.lg .dot {
    width: 7px;
    height: 7px;
}

/* =============================================
       SMALL SIZE MODIFIER
    ============================================= */
.condition-badge.sm {
    height: 22px;
    font-size: 10px;
    letter-spacing: 0.05em;
    padding: 0 10px 0 14px;
    gap: 5px;
    clip-path: polygon(8px 0%,
            100% 0%,
            100% 100%,
            8px 100%,
            0% 50%);
}

.condition-badge.sm .dot {
    width: 5px;
    height: 5px;
}

/* =============================================
       DEMO LAYOUT
    ============================================= */
.demo-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.demo-label {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 4px;
}

.demo-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

/* product card context demo */
.card-demo {
    background: #fff;
    border-radius: 14px;
    padding: 1.4rem 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 280px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
}

.card-demo-img {
    width: 100%;
    height: 140px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.card-demo-title {
    font-weight: 700;
    font-size: 15px;
    color: #1a1a1a;
}

.card-demo-price {
    font-weight: 700;
    font-size: 20px;
    color: #16a34a;
}