/* themes/library/black-friday.css - BLACK FRIDAY "DOORBUSTER" (2026-11-17, recoloured 2026-11-19)
 *
 * Colours match the Black Friday 2026 EMAIL campaign (#1): warm black #1A1A18,
 * champagne gold #CCA86A (buttons, with black text, like the email's
 * "Voir les offres"), deep title red #931D1B and bright sale red #EE1111, on the
 * normal LIGHT page. The %/$ background pattern was removed (too much).
 * Previous look kept as black-friday-original.css.
 *
 * Loud on purpose, like halloween.css / soccer.css: a giant BLACK FRIDAY price
 * tag swings across the screen on page load, caution-tape ribbon under the
 * menu, LED sale sign, sale cards burn red, prices glow.
 *
 * This theme IMPORTS the live default theme and only paints on top, so every
 * component added to theme.css later keeps working here.
 *
 * CSS-only: every new visual is a ::before/::after on an EXISTING selector,
 * all pointer-events:none so nothing ever blocks a click.
 */
@import url("../default/theme.css");

/* ── TOKENS ─────────────────────────────────────────────────────────────── */
:root {
    --bf-red:    #EE1111;   /* sale prices in the email */
    --bf-red-d:  #931D1B;   /* the email title "VENDREDI FOU" */
    --bf-gold:   #CCA86A;   /* the email button */
    --bf-black:  #1A1A18;   /* the email top band */
    /* buttons + accents gold with black text, like the email */
    --accent:    #CCA86A;
    --accent-d:  #b08f52;
    --accent-t:  #111111;
}

/* ── Backdrop: the normal light page and a soft red glow at the top
   - stays easy to read ─────────────────────────── */
body {
    background:
        radial-gradient(ellipse 900px 380px at 15% -8%, rgba(238,17,17,0.10), transparent 60%),
        radial-gradient(ellipse 900px 380px at 85% -8%, rgba(204,168,106,0.10), transparent 60%),
        #f6f6f4;
    background-repeat: no-repeat;
    background-color: #f6f6f4;
}
/* (the faint %/$ pattern that was here was removed 2026-11-19: too much) */

/* ── DOORBUSTER! A giant red price tag swings across the screen on load ── */
body::after {
    content: "VENDREDI FOU";
    position: fixed;
    top: 40%;
    left: 0;
    will-change: transform, opacity;
    z-index: 99999;
    pointer-events: none;
    padding: 14px 26px 14px 44px;
    background: linear-gradient(180deg, var(--bf-red), var(--bf-red-d));
    color: #fff;
    font: 900 1.9rem/1 'Arial Black', Arial, sans-serif;
    letter-spacing: 1px;
    white-space: nowrap;
    text-shadow: 0 2px 0 rgba(0,0,0,0.35);
    border: 3px solid var(--bf-gold);
    clip-path: polygon(22px 0, 100% 0, 100% 100%, 22px 100%, 0 50%);
    animation: bf-doorbuster 2.6s cubic-bezier(.25,.8,.3,1) 0.25s 1 both;
}
@keyframes bf-doorbuster {
    0%   { transform: translateX(-340px) rotate(-25deg) scale(0.7); opacity: 0; }
    8%   { opacity: 1; }
    30%  { transform: translateX(30vw)  rotate(12deg)  scale(1.15); }
    45%  { transform: translateX(34vw)  rotate(-8deg)  scale(1.1); }
    58%  { transform: translateX(36vw)  rotate(4deg)   scale(1.1); }
    72%  { transform: translateX(38vw)  rotate(0)      scale(1.1); opacity: 1; }
    100% { transform: translateX(115vw) rotate(18deg)  scale(0.8); opacity: 0; }
}
@media (max-width: 600px) {
    body::after { font-size: 1.25rem; padding: 10px 18px 10px 32px; }
    @keyframes bf-doorbuster {
        0%   { transform: translateX(-260px) rotate(-25deg) scale(0.7); opacity: 0; }
        8%   { opacity: 1; }
        30%  { transform: translateX(12vw)  rotate(12deg)  scale(1.1); }
        45%  { transform: translateX(15vw)  rotate(-8deg)  scale(1.05); }
        72%  { transform: translateX(16vw)  rotate(0)      scale(1.05); opacity: 1; }
        100% { transform: translateX(115vw) rotate(18deg)  scale(0.8); opacity: 0; }
    }
}

/* A little gold "%" tag keeps bouncing above the mobile nav */
.bnav::after {
    content: "%";
    position: absolute;
    right: 14px;
    top: -34px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 35% 30%, #ecdcb8, var(--bf-gold) 60%, #9c7d45);
    color: #000;
    font: 900 0.8rem/1 'Arial Black', Arial, sans-serif;
    box-shadow: 0 0 10px rgba(204,168,106,0.7), 0 3px 6px rgba(0,0,0,0.5);
    animation: bf-bounce 1.4s ease-in-out infinite;
}
@keyframes bf-bounce {
    0%, 100% { transform: translateY(0) scale(1,1); }
    35%, 50% { transform: translateY(-20px) scale(1,1); }
    65%      { transform: translateY(0) scale(1.15,0.85); }
    75%      { transform: translateY(-5px) scale(0.95,1.05); }
}
.bnav {
    border-top: 2px solid var(--bf-red);
    box-shadow: 0 -6px 18px rgba(238,17,17,0.35);
}
.bnav-item.active .bnav-icon, .bnav-item:hover .bnav-icon {
    filter: drop-shadow(0 0 6px var(--bf-red));
}

/* ── A thin gold line under the menu with a soft light passing along it ─── */
.navbar-main { overflow: visible; }
.navbar-main::after {
    content: "";
    position: absolute;
    left: 0; right: 0;
    bottom: -3px;
    height: 3px;
    pointer-events: none;
    background: var(--bf-gold);   /* gold, like the header icons - red stays for sale prices */
}
.navbar-main::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 180px;
    height: 3px;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    will-change: transform;
    animation: bf-shine 4s ease-in-out infinite;
}
@keyframes bf-shine {
    0%        { transform: translateX(-180px); }
    60%, 100% { transform: translateX(100vw); }
}
.sbar { border-bottom: 0 !important; }   /* no line between the top bar and the menu bar (user) */

/* ── Announcement bar: flickering red LED sale sign ───────────────────── */
#ann {
    background: linear-gradient(180deg, #2a0d0c, #1A1A18);
    color: var(--bf-red);
    font-weight: 900;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    text-shadow: 0 0 6px rgba(238,17,17,0.85), 0 0 16px rgba(238,17,17,0.45);
    border-bottom: 1px solid var(--bf-red);
    animation: bf-led 3.4s infinite;
}
#ann::before { content: "\01F525  "; text-shadow: none; }   /* fire */
#ann::after  { content: "  \01F3F7\FE0F"; text-shadow: none; } /* label */
@keyframes bf-led {
    0%, 90%, 100% { opacity: 1; }
    91%           { opacity: 0.45; }
    92%           { opacity: 1; }
    93%           { opacity: 0.6; }
    94%           { opacity: 1; }
}

/* ── Section titles: red pill with a gold edge instead of amber ────────── */
.sec-hdr, .sec-hdr::before { background-color: var(--bf-red) !important; }
.sec-hdr {
    box-shadow: 0 0 0 0 transparent, 0 4px 14px rgba(238,17,17,0.45);
    border-right: 4px solid var(--bf-gold);
}
.sec-title { text-transform: uppercase; letter-spacing: 0.5px; }
.sec-count { color: #fff; opacity: 0.85; }

/* ── Product cards ────────────────────────────────────────────────────── */
.pc {
    border: 1px solid #f3d0cf;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.pc:hover {
    transform: translateY(-4px) rotate(-0.4deg);
    box-shadow: 0 0 0 2px var(--bf-gold), 0 12px 28px rgba(204,168,106,0.25);
}
/* Every card gets a gold corner; sale cards get a big red "%" corner */
.pc-img::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    border-style: solid;
    border-width: 26px 26px 0 0;
    border-color: var(--bf-gold) transparent transparent transparent;
    pointer-events: none;
}
.pc:has(.b-sale) .pc-img::after {
    content: "%";
    border: 0;
    top: 0; left: 0;
    width: 52px; height: 52px;
    clip-path: polygon(0 0, 100% 0, 0 100%);
    display: block;
    padding: 6px 0 0 8px;
    background: var(--bf-red);
    color: #fff;
    font: 900 1rem/1 'Arial Black', Arial, sans-serif;
    z-index: 2;
}
/* Sale cards burn: pulsing red frame */
.pc:has(.b-sale) {
    border-color: var(--bf-red);
    box-shadow: 0 0 0 2px var(--bf-red), 0 0 16px rgba(238,17,17,0.35);
    position: relative;
}
.pc:has(.b-sale)::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 3;
    box-shadow: inset 0 0 0 2px var(--bf-red), inset 0 0 18px rgba(238,17,17,0.45);
    will-change: opacity;
    animation: bf-burn 1.8s ease-in-out infinite;
}
@keyframes bf-burn {
    0%, 100% { opacity: 0.25; }
    50%      { opacity: 1; }
}

/* Sale badge: black price tag, red + gold, swings in */
.b-sale {
    background: #000 !important;
    color: var(--bf-gold) !important;
    border: 2px solid var(--bf-red);
    padding: 5px 9px 5px 15px;
    clip-path: polygon(9px 0, 100% 0, 100% 100%, 9px 100%, 0 50%);
    letter-spacing: 1px;
    transform-origin: 100% 50%;
    animation: bf-swing 2.4s ease-in-out infinite;
}
@keyframes bf-swing {
    0%, 100% { transform: rotate(0); }
    10%      { transform: rotate(-12deg); }
    20%      { transform: rotate(8deg); }
    30%      { transform: rotate(-4deg); }
    40%      { transform: rotate(0); }
}
.pd-badge.b-sale { font-size: 0.8rem; padding: 7px 12px 7px 18px; }
.ci-tag-promo { background: #000; border-color: var(--bf-red); color: var(--bf-gold); }

/* Prices: red + glow; sale prices bigger, old prices struck in red */
.pc-price, .pd-price, .cart-total-row .total, #cart-total, .co-total-amount, .acc-order-total {
    text-shadow: 0 0 6px rgba(238,17,17,0.35);
}
.pc-price-row:has(.pc-was) .pc-price { font-size: 1.2rem; color: var(--bf-red); }
.pc-was, .pd-was, .pd-var-was, .ci-was, .cn-was {
    text-decoration-color: var(--bf-red) !important;
    text-decoration-thickness: 2px !important;
}
.pd-var-btn .pd-on-sale { color: var(--bf-red); }
.pd-price-row:has(.pd-was) .pd-price,
.pd-info:has(.pd-on-sale) .pd-price-row .pd-price { color: var(--bf-red); }

/* ── Home hero: darker veil, huge uppercase headline with a red underline ─ */
.home-hero-overlay { background: linear-gradient(180deg, rgba(0,0,0,0.3), rgba(0,0,0,0.78)); }
.home-hero-headline {
    text-transform: uppercase;
    letter-spacing: 0.02em;
    text-shadow: 0 3px 0 var(--bf-red-d), 0 0 18px rgba(238,17,17,0.5);
}

/* ── Order confirmed: the tag pops + gold ring flash ──────────────────── */
.pay-success-icon, #confirm-icon, .order-confirmed-icon {
    position: relative;
    animation: bf-pop 0.7s ease-out;
}
@keyframes bf-pop {
    0%   { transform: scale(0.5) rotate(-15deg); opacity: 0; }
    55%  { transform: scale(1.25) rotate(8deg);  opacity: 1; }
    100% { transform: scale(1) rotate(0); }
}
.pay-success-icon::after, #confirm-icon::after, .order-confirmed-icon::after {
    content: "";
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    border: 3px solid var(--bf-gold);
    opacity: 0;
    pointer-events: none;
    animation: bf-ring 0.9s ease-out 0.15s;
}
@keyframes bf-ring {
    0%   { transform: scale(0.4); opacity: 0.9; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* ── Extras: red selection, caution-tape scrollbar ────────────────────── */
::selection { background: var(--bf-red); color: #fff; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb {
    background: repeating-linear-gradient(-45deg, var(--bf-gold) 0 6px, #000 6px 12px);
    border-radius: 6px;
    border: 2px solid #000;
}

.pd-sec-title { border-color: var(--bf-red) !important; }

/* The flying tag speaks the page's language (French is the default) */
html:lang(en) body::after { content: "BLACK FRIDAY"; }
html:lang(es) body::after { content: "VIERNES NEGRO"; }

/* ── The default theme writes the brand amber as a literal (#fbb00b) in a few
   places instead of var(--accent): repainted gold here, like the email. ── */
.ham-btn, #ham-icon { color: var(--bf-gold) !important; border-color: var(--bf-gold) !important; }
.cart-n { color: var(--bf-gold) !important; border-color: var(--bf-gold) !important; }
.hl-tab, .hl-drawer-header { background-color: var(--bf-gold) !important; color: #111111 !important; }

/* ── Cart icon: an IMAGE (assets/img/cart.png), so color cannot reach it - the
   image is hidden but keeps its place, and the same PNG is a stencil filled gold. ── */
.cart-btn { position: relative; }
.cart-btn > img { opacity: 0; }
.cart-btn::before {
    content: "";
    position: absolute;
    left: 50%; top: 50%;
    width: 22px; height: 22px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    background-color: var(--bf-gold);
    -webkit-mask: url("../../assets/img/cart.png") center / contain no-repeat;
            mask: url("../../assets/img/cart.png") center / contain no-repeat;
}
