/*
 * PepTools Product Badges
 * One visual standard for catalogue status labels.
 */

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.wc-block-grid__product {
    position: relative;
}

.pt-product-badge-stack {
    position: absolute;
    top: 12px;
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: 6px;
    pointer-events: none;
}

.pt-product-badge-stack--left {
    left: 12px;
    align-items: flex-start;
}

.pt-product-badge-stack--right {
    right: 12px;
    align-items: flex-end;
}

/*
 * Every state uses the same geometry, typography and finish.
 * The modifier classes exist for future differentiation if wanted,
 * but intentionally inherit the same PepTools blue standard today.
 */
.pt-product-badge {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 0;
    height: 26px;
    min-height: 26px;
    margin: 0;
    padding: 0 10px;
    border: 1px solid rgba(93, 196, 255, .28);
    border-radius: 5px;
    color: #fff !important;
    background: linear-gradient(180deg, #1688ef 0%, #0d6fd0 100%);
    box-shadow:
        0 4px 12px rgba(0, 112, 214, .25),
        inset 0 1px rgba(255, 255, 255, .10);
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .055em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Prevent inherited theme rules from altering our component. */
.woocommerce ul.products li.product .pt-product-badge,
.woocommerce-page ul.products li.product .pt-product-badge {
    min-width: 0;
    min-height: 26px;
    margin: 0;
    padding: 0 10px;
    line-height: 1;
    border-radius: 5px;
}

/* Mobile: same component, slightly tighter inset only. */
@media (max-width: 767px) {
    .pt-product-badge-stack {
        top: 10px;
    }

    .pt-product-badge-stack--left {
        left: 10px;
    }

    .pt-product-badge-stack--right {
        right: 10px;
    }

    .pt-product-badge {
        height: 24px;
        min-height: 24px;
        padding: 0 8px;
        font-size: 9px;
    }
}
