/* ============================================================
   Single product: sale badge (replaces default WC sale flash)
   ------------------------------------------------------------
   .rb-badge-sale       = classic red circle "Sale!" (2018 revival)
   .rb-badge-earlybird  = 33 & Brew treatment for pre-order + sale
   ============================================================ */

.rb-badge {
    display: inline-block;
    margin-bottom: 12px;
}

.rb-badge-sale {
    background: #e4032c;
    color: #fff;
    border-radius: 50%;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Raleway', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rb-badge-earlybird {
    position: relative;
    background: #1e1e1c;
    color: #FAC400;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 20px;
}

.rb-badge-earlybird::before,
.rb-badge-earlybird::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border-color: #FAC400;
    border-style: solid;
}

.rb-badge-earlybird::before {
    top: 4px;
    left: 4px;
    border-width: 3px 0 0 3px;
}

.rb-badge-earlybird::after {
    bottom: 4px;
    right: 4px;
    border-width: 0 3px 3px 0;
}

/* ============================================================
   Advanced Woo Search: recolour ribbon to brand red, distinct
   Early Bird treatment for pre-order + sale results
   ============================================================ */

.aws-search-result .aws_onsale {
    background: #e4032c;
}

.aws-search-result .aws_result_item.rb-early-bird .aws_onsale {
    background: #1e1e1c;
    color: #FAC400;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 8px;
    letter-spacing: 0;
    width: 90px;
    right: -30px;
}

/* ============================================================
   Category/shop tile context - overlay positioning
   ------------------------------------------------------------
   .rb-badge on the single product page sits in normal flow in
   the .summary text column. On category tiles it needs to
   overlay the top-right of the image instead, matching where
   the original WC/theme sale flash sat. .thumb already has
   position: relative (see custom.css ~line 797).
   ============================================================ */

.rb-carousel-row ul.products li.product .thumb .rb-badge,
#content ul.products li.product .thumb .rb-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    margin: 0;
    z-index: 5;
}

.rb-carousel-row ul.products li.product .thumb .rb-badge-sale,
#content ul.products li.product .thumb .rb-badge-sale {
    width: 48px;
    height: 48px;
    font-size: 10px;
}

.rb-carousel-row ul.products li.product .thumb .rb-badge-earlybird,
#content ul.products li.product .thumb .rb-badge-earlybird {
    font-size: 9px;
    padding: 6px 12px;
}

