/* ============================================================
   Sweetsaf Product Badges — Frontend Styles
   ============================================================ */

/* Wrapper that holds the thumbnail + badges together */
.sweetsaf-badge-wrap {
    position: relative;
    display: block;
    overflow: hidden;
}

.sweetsaf-badge-wrap img {
    display: block;
    width: 100%;
}

/* Badge container — top-left of the image */
.sweetsaf-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 5px;
    pointer-events: none;
}

/* Individual badge pill */
.sweetsaf-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Single product page — badge strip above gallery */
.sweetsaf-single-badges {
    margin-bottom: 12px;
}

.sweetsaf-single-badges .sweetsaf-badges {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
}

.sweetsaf-single-badges .sweetsaf-badge {
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 6px;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 600px) {
    .sweetsaf-badges {
        top: 8px;
        left: 8px;
        gap: 4px;
    }

    .sweetsaf-badge {
        font-size: 10px;
        padding: 4px 9px;
        letter-spacing: 0.2px;
    }
}
