/* themes/library/cyber-monday.css - CYBER LUNDI (2026-11-18, recoloured 2026-11-19)
 *
 * Matches the CyberMonday 2026 EMAIL campaign: pink #EC018C, black #111111
 * and white on a LIGHT page, black header - no cyan/blue (tried a blue header
 * 2026-11-19: rejected). Buttons are pink with black text, like
 * the email's "Voir les offres" (the brand amber is replaced for this theme).
 * Previous looks kept: cyber-monday-dark.css (black page, flyer magenta + cyan)
 * and cyber-monday-light.css (light page, flyer colours).
 * Same build as black-friday.css: IMPORTS the live default theme and only
 * paints on top; every animation is transform/opacity only (fast).
 */
@import url("../default/theme.css");

/* ── TOKENS ─────────────────────────────────────────────────────────────── */
:root {
    --cm-pink:    #EC018C;
    --cm-pink-d:  #b8016d;
    --cm-cyan:    #EC018C;   /* no cyan: the email has none - every cyan accent is pink */
    --cm-black:   #111111;
    /* buttons + accents pink with black text, like the email */
    --accent:     #EC018C;
    --accent-d:   #b8016d;
    --accent-t:   #111111;
}

/* ── Backdrop: the normal light page and a soft pink glow at the top
   - stays easy to read ─────────────────────────── */
body {
    background:
        radial-gradient(ellipse 900px 380px at 15% -8%, rgba(236,1,140,0.10), transparent 60%),
        radial-gradient(ellipse 900px 380px at 85% -8%, rgba(236,1,140,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 pink price tag swings across the screen on load ── */
body::after {
    content: "CYBER LUNDI";
    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(--cm-pink), var(--cm-pink-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(--cm-black);
    clip-path: polygon(22px 0, 100% 0, 100% 100%, 22px 100%, 0 50%);
    animation: cm-doorbuster 2.6s cubic-bezier(.25,.8,.3,1) 0.25s 1 both;
}
@keyframes cm-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 cm-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 pink "%" 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%, #ff8fd0, var(--cm-cyan) 60%, #b8016d);
    color: #000;
    font: 900 0.8rem/1 'Arial Black', Arial, sans-serif;
    box-shadow: 0 0 10px rgba(236,1,140,0.7), 0 3px 6px rgba(0,0,0,0.5);
    animation: cm-bounce 1.4s ease-in-out infinite;
}
@keyframes cm-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(--cm-pink);
    box-shadow: 0 -6px 18px rgba(236,1,140,0.35);
}
.bnav-item.active .bnav-icon, .bnav-item:hover .bnav-icon {
    filter: drop-shadow(0 0 6px var(--cm-pink));
}

/* ── A thin pink line under the (blue) 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(--cm-pink);
}
.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: cm-shine 4s ease-in-out infinite;
}
@keyframes cm-shine {
    0%        { transform: translateX(-180px); }
    60%, 100% { transform: translateX(calc(100vw - 180px)); }   /* stop AT the right edge: 100vw pushed the 180px glow past it and made phones scroll sideways (2026-11-26) */
}
.sbar { border-bottom: 1px solid rgba(236,1,140,0.45) !important; }

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

/* ── Section titles: pink pill with a black edge ────────── */
.sec-hdr, .sec-hdr::before { background-color: var(--cm-pink) !important; }
.sec-hdr {
    box-shadow: 0 0 0 0 transparent, 0 4px 14px rgba(236,1,140,0.45);
    border-right: 4px solid var(--cm-black);
}
.sec-title { text-transform: uppercase; letter-spacing: 0.5px; }
.sec-count { color: #fff; opacity: 0.85; }

/* ── Product cards ────────────────────────────────────────────────────── */
.pc {
    border: 1px solid #f6d2e6;
    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(--cm-cyan), 0 12px 28px rgba(236,1,140,0.25);
}
/* Every card gets a pink corner; sale cards get a big pink "%" corner */
.pc-img::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    border-style: solid;
    border-width: 26px 26px 0 0;
    border-color: var(--cm-cyan) 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(--cm-pink);
    color: #fff;
    font: 900 1rem/1 'Arial Black', Arial, sans-serif;
    z-index: 2;
}
/* Sale cards burn: pulsing pink frame */
.pc:has(.b-sale) {
    border-color: var(--cm-pink);
    box-shadow: 0 0 0 2px var(--cm-pink), 0 0 16px rgba(236,1,140,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(--cm-pink), inset 0 0 18px rgba(236,1,140,0.45);
    will-change: opacity;
    animation: cm-burn 1.8s ease-in-out infinite;
}
@keyframes cm-burn {
    0%, 100% { opacity: 0.25; }
    50%      { opacity: 1; }
}

/* Sale badge: same colours as the flying CYBER LUNDI tag (body::after) -
   pink gradient, white text with a dark shadow, no edge - and it swings */
.b-sale {
    background: linear-gradient(180deg, var(--cm-pink), var(--cm-pink-d)) !important;
    color: #fff !important;
    text-shadow: 0 1px 0 rgba(0,0,0,0.35);
    font-weight: 900;
    border: 0 !important;
    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: cm-swing 2.4s ease-in-out infinite;
}
@keyframes cm-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: linear-gradient(180deg, var(--cm-pink), var(--cm-pink-d)); border-color: transparent; color: #fff; }

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

/* ── Home hero: darker veil, huge uppercase headline with a pink 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(--cm-pink-d), 0 0 18px rgba(236,1,140,0.5);
}

/* ── Order confirmed: the tag pops + cyan ring flash ──────────────────── */
.pay-success-icon, #confirm-icon, .order-confirmed-icon {
    position: relative;
    animation: cm-pop 0.7s ease-out;
}
@keyframes cm-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(--cm-cyan);
    opacity: 0;
    pointer-events: none;
    animation: cm-ring 0.9s ease-out 0.15s;
}
@keyframes cm-ring {
    0%   { transform: scale(0.4); opacity: 0.9; }
    100% { transform: scale(1.6); opacity: 0; }
}

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

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

/* The flying tag speaks the page's language (French is the default) */
html:lang(en) body::after { content: "CYBER MONDAY"; }
html:lang(es) body::after { content: "CIBER LUNES"; }

/* Flyer look: orange sale price, purple old price ("Reg") */
:root { --cm-purple: #7b4fd0; }
.pc-price-row:has(.pc-was) .pc-price { color: #f7941d; }
.pc-was, .pd-was, .pd-var-was, .ci-was, .cn-was {
    color: var(--cm-purple) !important;
    text-decoration-color: var(--cm-purple) !important;
}

/* ── The default theme writes the brand amber as a literal (#fbb00b) in a few
   places instead of var(--accent), so --accent above does not reach them.
   Repainted pink here, like the email; the default theme is untouched. ── */
.ham-btn, #ham-icon { color: var(--cm-pink) !important; border-color: var(--cm-pink) !important; }
.cart-n { color: var(--cm-pink) !important; border-color: var(--cm-pink) !important; }
.hl-tab, .hl-drawer-header { background-color: var(--cm-pink) !important; color: var(--cm-black) !important; }


/* ── Cart icon: it is an IMAGE (assets/img/cart.png, amber on transparent),
   so color cannot reach it. The image stays for layout but is hidden, and the
   same PNG is used as a stencil (mask) filled with the theme pink. ── */
.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(--cm-pink);
    -webkit-mask: url("../../assets/img/cart.png") center / contain no-repeat;
            mask: url("../../assets/img/cart.png") center / contain no-repeat;
}
