/**
 * Stili Badge Black Friday per Caffè Toraldo
 */

/* Container figure posizionato per il badge */
.list-products figure,
.home-product figure,
.product-single-gallery .product-slider-container {
    position: relative !important;
}

/* Carrello: miniatura da 180px, badge leggermente ridotto */
.product-image-container {
    position: relative;
}
.product-image-container .bf-badge {
    top: 5px;
    left: 5px;
    font-size: 9.5px;
    padding: 3px 7px;
    gap: 5px;
}
.product-image-container .bf-badge-v2 .bf-tag-red {
    font-size: 7.5px;
}

/* Scheda prodotto: badge sopra il carousel/zoom, un po' piu' grande */
.product-single-gallery .bf-badge {
    z-index: 20;
    top: 12px;
    left: 12px;
    font-size: 13px;
    padding: 6px 14px;
}
.product-single-gallery .bf-badge-v2 .bf-tag-red {
    font-size: 10px;
}

/* Badge base */
.bf-badge {
    position: absolute !important;
    z-index: 6;
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
}

/* -------------------------------------------------------------
 * VARIANTE 1: Black & Gold Luxury (Stile Brand Toraldo)
 * ------------------------------------------------------------- */
.bf-badge-v1 {
    position: absolute !important;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #111111 0%, #1e1e1e 100%);
    color: #dfba6c;
    border: 1px solid #c59f51;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 215, 120, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    line-height: 1.2;
}
.bf-badge-v1::before {
    content: "★";
    font-size: 8.5px;
    color: #dfba6c;
}

/* -------------------------------------------------------------
 * VARIANTE 2: Black & Red Bold (Classico E-Commerce Alto Impatto)
 * ------------------------------------------------------------- */
.bf-badge-v2 {
    position: absolute !important;
    top: 8px;
    left: 8px;
    background: #000000;
    color: #ffffff;
    border-left: 3.5px solid #e50914;
    border-radius: 3px;
    padding: 4px 9px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1.2;
}
.bf-badge-v2 .bf-tag-red {
    background: #e50914;
    color: #ffffff;
    font-size: 8px;
    font-weight: 900;
    padding: 2px 5px;
    border-radius: 2px;
    letter-spacing: 0.5px;
}

/* -------------------------------------------------------------
 * VARIANTE 3: Ribbon Corner Diagonale (Nastro ad Angolo)
 * ------------------------------------------------------------- */
.bf-badge-v3-wrapper {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 120px;
    height: 120px;
    overflow: hidden;
    z-index: 6;
    pointer-events: none;
    user-select: none;
}
.bf-badge-v3-ribbon {
    position: absolute !important;
    display: block;
    width: 185px;
    padding: 3.5px 0;
    background: linear-gradient(135deg, #0d0d0d 0%, #222222 100%);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.55);
    color: #ffffff;
    font-size: 7.5px;
    font-weight: 800;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
    text-transform: uppercase;
    text-align: center;
    left: -48px;
    top: 32px;
    transform: rotate(-45deg);
    border-top: 1px solid #d4af37;
    border-bottom: 1px solid #d4af37;
    letter-spacing: 0.4px;
    line-height: 1.15;
    white-space: nowrap;
}

/* -------------------------------------------------------------
 * VARIANTE 4: Minimal Glossy Dark Pill (con Icona Fulmine ⚡)
 * ------------------------------------------------------------- */
.bf-badge-v4 {
    position: absolute !important;
    top: 8px;
    left: 8px;
    background: linear-gradient(180deg, #1f2329 0%, #0d0f12 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 20px;
    padding: 4.5px 12px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    line-height: 1.2;
}
.bf-badge-v4 .bf-icon-bolt {
    color: #ffd700;
    font-size: 11px;
    line-height: 1;
}

/* Adattamento Home page (grid più grande) */
.home-product .bf-badge-v1,
.home-product .bf-badge-v2,
.home-product .bf-badge-v4 {
    top: 10px;
    left: 10px;
    font-size: 11px;
    padding: 5px 12px;
}
.home-product .bf-badge-v3-wrapper {
    width: 130px;
    height: 130px;
}
.home-product .bf-badge-v3-ribbon {
    width: 195px;
    top: 34px;
    left: -50px;
    font-size: 8.5px;
    padding: 4px 0;
}
