/* ==========================================================================
   Black Friday styling for a PRODUCT page (only on /el/black-friday/<product>).
   Loaded by partials/black-friday/product-extras.blade.php.
   Every rule starts with ".bfp ~" (= after the Black Friday banner) or a
   "bfx-" class, so normal product pages never change.
   Colours: black #0e0d12, yellow #f6bc16, purple #4a2c8c, kraft #c99d66.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Round sticker on the main product image. The text comes from the
   data-bf-sticker attribute: "BLACK FRIDAY -30%" when the product has a
   discount, "BLACK FRIDAY READY" when it is full price.
   -------------------------------------------------------------------------- */
.bfp ~ .product-page .product-image {
    position: relative;
}

.bfp ~ .product-page .product-image[data-bf-sticker]::after {
    content: attr(data-bf-sticker);
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    padding: 10px;
    border-radius: 50%;
    background: #0e0d12;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    font-family: 'Commissioner', 'Manrope', sans-serif;
    font-weight: 900;
    font-size: 0.78rem;
    line-height: 1.1;
    text-align: center;
    color: #f6bc16;
    transform: rotate(10deg);
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   Configurator in campaign colours (instead of the pink).
   "Completed" steps stay green so customers still see their progress.
   -------------------------------------------------------------------------- */
.bfp ~ .product-page .config-step.active {
    border-color: #4a2c8c;
}

.bfp ~ .product-page .config-step.active .config-step__number {
    background: #f6bc16;
    color: #0e0d12;
}

.bfp ~ .product-page .summary-box__total-value {
    color: #f6bc16;
}

/* Add-to-cart button: yellow with black text. The disabled (grey) look stays. */
.bfp ~ .product-page .summary-box__btn:not(:disabled) {
    background: #f6bc16;
    color: #0e0d12;
}

.bfp ~ .product-page .summary-box__btn:not(:disabled):hover {
    background: #ffd04a;
}

/* --------------------------------------------------------------------------
   Campaign box under the price badges
   -------------------------------------------------------------------------- */
.bfx-box {
    position: relative;
    margin-top: 20px;
    padding: 26px 22px 20px;
    border-radius: 16px;
    background:
        radial-gradient(ellipse at 100% 0%, rgba(74, 44, 140, 0.55), transparent 60%),
        #0e0d12;
    color: #fff;
}

.bfx-box__tag {
    position: absolute;
    top: -12px;
    left: 18px;
    padding: 4px 12px;
    background: #c99d66;
    font-family: 'Commissioner', 'Manrope', sans-serif;
    font-weight: 900;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: #4a2c8c;
    transform: rotate(-2deg);
}

.bfx-box__title {
    margin: 0 0 12px;
    font-family: 'Commissioner', 'Manrope', sans-serif;
    font-weight: 900;
    font-size: 1.15rem;
    line-height: 1.3;
    color: #f6bc16;
}

.bfx-box__list {
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

.bfx-box__list li {
    position: relative;
    padding: 5px 0 5px 26px;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.85);
}

/* Yellow check mark in front of each line */
.bfx-box__list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    font-weight: 900;
    color: #f6bc16;
}

.bfx-box__link {
    font-weight: 800;
    font-size: 0.92rem;
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.bfx-box__link:hover {
    color: #f6bc16;
}

/* Fine print with the offer terms */
.bfx-box__terms {
    margin: 14px 0 0;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

/* --------------------------------------------------------------------------
   Kraft tape strip above the "related products" sections
   (static text, CSS only)
   -------------------------------------------------------------------------- */
.bfp ~ #category_products::before {
    content: 'BLACK FRIDAY ✦ BLACK FRIDAY ✦ BLACK FRIDAY ✦ BLACK FRIDAY ✦ BLACK FRIDAY ✦ BLACK FRIDAY ✦ BLACK FRIDAY ✦ BLACK FRIDAY ✦ BLACK FRIDAY ✦ BLACK FRIDAY ✦ BLACK FRIDAY ✦ BLACK FRIDAY ✦';
    display: block;
    width: 110%;
    margin: 0 0 50px -5%;
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
    background: #c99d66;
    transform: rotate(-1.2deg);
    font-family: 'Commissioner', 'Manrope', sans-serif;
    font-weight: 900;
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    color: #4a2c8c;
}

.bfp ~ #category_products {
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   Mobile bottom bar (hidden on desktop)
   -------------------------------------------------------------------------- */
.bfx-bar {
    display: none;
}

@media (max-width: 767px) {
    .bfp ~ .product-page .product-image[data-bf-sticker]::after {
        width: 78px;
        height: 78px;
        font-size: 0.65rem;
    }

    .bfx-bar {
        position: fixed;
        right: 12px;
        bottom: 12px;
        left: 12px;
        z-index: 1040;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 10px 10px 10px 18px;
        border-radius: 999px;
        background: #0e0d12;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
        color: #fff;
        transform: translateY(150%);
        transition: transform 0.35s ease;
    }

    .bfx-bar.is-visible {
        transform: none;
    }

    .bfx-bar__text strong {
        display: block;
        font-family: 'Commissioner', 'Manrope', sans-serif;
        font-weight: 900;
        line-height: 1;
        text-transform: uppercase;
        color: #f6bc16;
    }

    .bfx-bar__text span {
        font-family: 'Fira Code', monospace;
        font-size: 0.8rem;
        color: rgba(255, 255, 255, 0.75);
    }

    .bfx-bar__btn {
        padding: 10px 20px;
        border-radius: 999px;
        background: #f6bc16;
        font-weight: 800;
        color: #0e0d12;
        text-decoration: none;
    }
}
