/* ==========================================================================
   Black Friday promo banner (partials/black-friday/promo-banner.blade.php)
   Used only on the campaign addresses /el/black-friday and
   /el/black-friday/promotional-products.
   Same palette as the homepage hero and the private landing page.
   ========================================================================== */

.bfp {
    --bfp-black: #0e0d12;
    --bfp-yellow: #f6bc16;
    --bfp-purple: #4a2c8c;
    --bfp-kraft: #c99d66;
    --bfp-display: 'Commissioner', 'Manrope', sans-serif;

    position: relative;
    overflow: hidden;
    padding: 56px 0 0;
    background:
        radial-gradient(ellipse at 85% 0%, rgba(74, 44, 140, 0.6), transparent 55%),
        var(--bfp-black);
    color: #fff;
}

.bfp__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: min(1240px, 100% - 40px);
    margin: 0 auto;
    padding-bottom: 46px;
}

.bfp__date {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: var(--bfp-yellow);
}

.bfp__title {
    margin: 0;
    font-family: var(--bfp-display);
    font-weight: 900;
    font-size: clamp(3rem, 8vw, 6.5rem);
    line-height: 0.9;
    text-transform: uppercase;
    color: var(--bfp-yellow);
}

/* Second word in outline, for contrast */
.bfp__title span {
    color: transparent;
    -webkit-text-stroke: 2px var(--bfp-yellow);
}

.bfp__sub {
    margin: 16px 0 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
}

.bfp__upto {
    display: inline-block;
    margin-left: 8px;
    padding: 4px 14px;
    background: var(--bfp-purple);
    font-family: var(--bfp-display);
    font-weight: 900;
    color: #fff;
    transform: rotate(-2deg);
}

/* Small offer-terms note under the discount ("Ισχύει μέχρι εξαντλήσεως...") */
.bfp__note {
    margin: 10px 0 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
}

.bfp__side {
    flex-shrink: 0;
    text-align: center;
}

.bfp__countdown {
    display: flex;
    gap: 10px;
}

/* "display: flex" above would beat the hidden attribute, so hide it explicitly */
.bfp__countdown[hidden] {
    display: none;
}

.bfp__countdown div {
    min-width: 74px;
    padding: 12px 8px 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
}

.bfp__countdown b {
    display: block;
    font-family: var(--bfp-display);
    font-weight: 900;
    font-size: 2rem;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.bfp__countdown small {
    display: block;
    margin-top: 4px;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.bfp__live {
    margin: 0;
    font-family: var(--bfp-display);
    font-weight: 900;
    font-size: 1.6rem;
    color: var(--bfp-yellow);
}

.bfp__btn {
    display: inline-block;
    margin-top: 18px;
    padding: 14px 30px;
    border-radius: 999px;
    background: var(--bfp-yellow);
    font-weight: 800;
    color: var(--bfp-black);
    text-decoration: none;
    transition: transform 0.2s ease;
}

.bfp__btn:hover {
    transform: translateY(-2px);
    color: var(--bfp-black);
}

/* Kraft tape at the bottom of the banner, text sliding slowly */
.bfp__tape {
    width: 110%;
    margin-left: -5%;
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
    background: var(--bfp-kraft);
    transform: rotate(-1.2deg) translateY(6px);
    font-family: var(--bfp-display);
    font-weight: 900;
    font-size: 1.1rem;
    letter-spacing: 0.06em;
    color: var(--bfp-purple);
}

.bfp__tape span {
    display: inline-block;
    animation: bfpTape 40s linear infinite;
}

@keyframes bfpTape {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   Product cards on the same page. ".bfp ~" = only elements after the banner.
   -------------------------------------------------------------------------- */

/* Discount badges in Black Friday colours */
.bfp ~ * .product-sale,
.bfp ~ * .dev-product-card__badge {
    background: #0e0d12 !important;
    color: #f6bc16 !important;
    font-family: 'Commissioner', 'Manrope', sans-serif;
    font-weight: 900;
}

/* Small "BLACK FRIDAY" tag, ONLY on cards that really have a discount badge
   (":has(...)"), so full-price products never look discounted. */
.bfp ~ * .product-item .the-content,
.bfp ~ * .dev-product-card__image-wrapper {
    position: relative;
}

.bfp ~ * .product-item .the-content:has(.product-sale)::after,
.bfp ~ * .dev-product-card__image-wrapper:has(.dev-product-card__badge)::after {
    content: 'BLACK FRIDAY';
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 2;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f6bc16;
    font-family: 'Commissioner', 'Manrope', sans-serif;
    font-weight: 900;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    color: #0e0d12;
    pointer-events: none;
}

/* On the sales cards the "-X%" badge sits top-left and the price is at the
   bottom, so the tag goes top-right */
.bfp ~ * .product-item .the-content:has(.product-sale)::after {
    top: 14px;
    right: 10px;
    bottom: auto;
    left: auto;
}

@media (prefers-reduced-motion: reduce) {
    .bfp__tape span {
        animation: none;
    }
}

/* --------------------------------------------------------------------------
   Mobile
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .bfp {
        padding-top: 40px;
        text-align: center;
    }

    .bfp__inner {
        flex-direction: column;
        gap: 26px;
        padding-bottom: 34px;
    }

    .bfp__title span {
        -webkit-text-stroke-width: 1.5px;
    }

    .bfp__countdown {
        justify-content: center;
        gap: 6px;
    }

    .bfp__countdown div {
        min-width: 66px;
    }

    .bfp__countdown b {
        font-size: 1.6rem;
    }

    .bfp__btn {
        width: 100%;
    }
}
