/* =========================================================
   FITTD — Black Friday theme  ("Dark Drop" edition)
   ---------------------------------------------------------
   Turn ON / OFF: in includes/header.php, the line under
   "Black Friday theme" loads this file. Comment it out to
   remove every Black Friday touch; nothing else depends on it.
   Pure CSS: no markup, no JavaScript.
   ========================================================= */

:root {
    --bf-black: #0a0a0b;
    --bf-coal: #141518;
    --bf-lime: #d4ff3a;               /* the brand accent, pushed to the front */
    --bf-red: #ff3b30;
}

/* ---------------------------------------------------------
   1. Top bar: lime sale tape with a fixed "BLACK FRIDAY" tag
   --------------------------------------------------------- */
.announce {
    position: relative;
    background: var(--bf-lime);
    color: var(--bf-black);
    font-weight: 700;
}
.announce__track i { color: var(--bf-black); }
.announce__promo { color: var(--bf-black); }
.announce::before {
    content: 'Black Friday';
    position: absolute; left: 0; top: 0; bottom: 0; z-index: 2;
    display: flex; align-items: center;
    padding: 0 18px 0 16px;
    background: var(--bf-black); color: var(--bf-lime);
    font-weight: 800; letter-spacing: .14em;
    clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
/* A light sweep running across the tape */
.announce::after {
    content: '';
    position: absolute; inset: 0;
    pointer-events: none;
    background: linear-gradient(100deg, transparent 0 40%, rgba(255,255,255,.55) 50%, transparent 60% 100%) no-repeat;
    background-size: 40% 100%;
    animation: bfSweep 4.5s ease-in-out infinite;
}
@keyframes bfSweep { from { background-position: -60% 0; } to { background-position: 160% 0; } }

/* ---------------------------------------------------------
   2. Header: black glass, lime active link
   --------------------------------------------------------- */
.header,
.header.is-scrolled {
    background: rgba(10,10,11,.88);
    color: #fff;
    border-color: rgba(255,255,255,.08);
}
.header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(0,0,0,.7); }
.header::after {
    content: '';
    position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--bf-lime), transparent);
    opacity: .7;
}
.header .logo__mark { background: var(--bf-lime); color: var(--bf-black); }
.header .nav__link:hover, .header .icon-btn:hover { background: rgba(255,255,255,.1); }
.header .nav__link.is-active { background: var(--bf-lime); color: var(--bf-black); }
.header .burger span { background: #fff; }

/* ---------------------------------------------------------
   3. Home hero: dark stage, lime spotlight, "BLACK FRIDAY" behind the rack
   --------------------------------------------------------- */
.hero {
    isolation: isolate;
    color: #fff;
    background:
        radial-gradient(700px 420px at 50% 30%, rgba(212,255,58,.16) 0%, rgba(212,255,58,0) 70%),
        radial-gradient(900px 500px at 50% 110%, rgba(212,255,58,.08) 0%, transparent 70%),
        linear-gradient(180deg, #121316 0%, var(--bf-black) 100%);
}
/* The outlined word becomes BLACK FRIDAY, stacked on two lines */
.hero__bgword { font-size: 0; -webkit-text-stroke: 0; }
.hero__bgword::before {
    content: 'BLACK\A FRIDAY';
    white-space: pre;
    display: block;
    text-align: center;
    font-size: clamp(80px, 15vw, 250px);
    line-height: .86;
    -webkit-text-stroke: 1.5px rgba(212,255,58,.22);
    color: transparent;
}
/* Fine grain so the black feels rich, not flat */
.hero::before {
    content: '';
    position: absolute; inset: 0; z-index: -1;
    pointer-events: none;
    opacity: .5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* Lime price-tag sticker, top right of the hero */
.hero::after {
    content: 'BLACK\A FRIDAY\A DEALS';
    white-space: pre;
    position: absolute; top: 34px; right: 5%; z-index: 3;
    width: 128px; height: 128px;
    display: grid; place-items: center;
    text-align: center;
    font-family: var(--display); font-stretch: 125%; font-weight: 900;
    font-size: 15px; line-height: 1.05; letter-spacing: .02em;
    color: var(--bf-black);
    background: var(--bf-lime);
    clip-path: polygon(50% 0, 61% 12%, 75% 5%, 79% 20%, 95% 21%, 89% 36%, 100% 50%, 89% 64%, 95% 79%, 79% 80%, 75% 95%, 61% 88%, 50% 100%, 39% 88%, 25% 95%, 21% 80%, 5% 79%, 11% 64%, 0 50%, 11% 36%, 5% 21%, 21% 20%, 25% 5%, 39% 12%);
    pointer-events: none;
    animation: bfSticker 3.5s ease-in-out infinite alternate;
}
@keyframes bfSticker { from { transform: rotate(-10deg) scale(1); } to { transform: rotate(6deg) scale(1.06); } }

.hero__eyebrow { color: #fff; }
.hero__eyebrow .muted { color: rgba(255,255,255,.55); }
.hero__eyebrow i { background: rgba(255,255,255,.3); }
.hero__eyebrow::before {
    content: 'Black Friday';
    padding: 5px 12px; border-radius: 999px;
    background: var(--bf-lime); color: var(--bf-black);
    font-weight: 800; letter-spacing: .16em;
}
.rack__rail { background: linear-gradient(180deg, #8b9096 0%, #4b4f55 50%, #2a2c30 100%); box-shadow: 0 6px 14px -4px rgba(0,0,0,.8); }
.rack__item img { filter: drop-shadow(0 20px 22px rgba(0,0,0,.55)); }
.rack__item:hover img { filter: drop-shadow(0 26px 28px rgba(212,255,58,.18)); }
.rack__tag { background: var(--bf-lime); border-color: transparent; color: var(--bf-black); }
.rack__label { color: #fff; }
.rack__label em { color: rgba(255,255,255,.5); }
.hero .btn--pill { background: var(--bf-lime); border-color: var(--bf-lime); color: var(--bf-black); font-weight: 700; }
.hero .btn--pill:hover { background: #fff; border-color: #fff; color: var(--bf-black); box-shadow: 0 0 0 6px rgba(212,255,58,.22); }
.hero__sub { color: rgba(255,255,255,.6); }
.hero__scroll { color: rgba(255,255,255,.5); }
.hero__scroll span { background: linear-gradient(rgba(255,255,255,.6), transparent); }

/* ---------------------------------------------------------
   4. Category band: black & lime "sale tape"
   --------------------------------------------------------- */
.marquee {
    background: var(--bf-lime);
    color: var(--bf-black);
    border-block: 6px solid var(--bf-black);
    box-shadow: 0 0 0 1px var(--bf-lime);
}
.marquee .outline { -webkit-text-stroke: 1.5px var(--bf-black); }
.marquee i { color: var(--bf-black); }

/* ---------------------------------------------------------
   5. Products: sale badges and prices
   --------------------------------------------------------- */
/* Only discounted products carry the Black Friday tag */
.badge--sale {
    background: var(--bf-black); color: var(--bf-lime);
    box-shadow: 0 0 0 1px rgba(212,255,58,.5), 0 6px 16px -6px rgba(0,0,0,.5);
}
.badge--sale::before { content: 'Black Friday · '; }
.card__price s { color: var(--bf-red); }
.card:hover .card__media { box-shadow: inset 0 0 0 2px var(--bf-black); }
.card__quick { background: var(--bf-black); }
.card__quick:hover { background: var(--bf-lime); color: var(--bf-black); }

/* Product page: "Save $X" becomes the Black Friday saving */
.save { background: var(--bf-black); color: var(--bf-lime); }
.save::before { content: 'Black Friday · '; }

/* ---------------------------------------------------------
   6. "Built for movement" banner: night-black with a lime glow
   --------------------------------------------------------- */
.sky {
    background:
        radial-gradient(700px 500px at 80% 50%, rgba(212,255,58,.18) 0%, transparent 70%),
        linear-gradient(180deg, #0d0e10 0%, #16181c 100%);
}
.sky__clouds i { opacity: .07 !important; }
.sky__title em { -webkit-text-stroke-color: var(--bf-lime); }
.sky .btn--light { background: var(--bf-lime); color: var(--bf-black); }

/* ---------------------------------------------------------
   7. Buttons and footer
   --------------------------------------------------------- */
.btn--dark:hover { background: var(--bf-lime); color: var(--bf-black); box-shadow: 0 14px 30px -12px rgba(212,255,58,.55); }
.footer { position: relative; }
.footer::before {
    content: '';
    position: absolute; left: 0; right: 0; top: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--bf-lime), transparent);
}
.footer__mega { background: linear-gradient(180deg, rgba(212,255,58,.3), rgba(212,255,58,0) 85%); -webkit-background-clip: text; background-clip: text; }

/* ---------------------------------------------------------
   Phones
   --------------------------------------------------------- */
@media (max-width: 767px) {
    .announce::before { padding: 0 14px 0 12px; font-size: 11px; }
    .hero::after { display: none; }                       /* the big word + pill already say it */
    .hero__eyebrow .muted, .hero__eyebrow i { display: none; }
    .hero__bgword::before { font-size: 22vw; }
}

/* People who turn off animations get a still sticker and tape */
@media (prefers-reduced-motion: reduce) {
    .announce::after, .hero::after { animation: none; }
}
