/* ==========================================================================
   My Spectacles – Black Friday sale (inc/black-friday.php)
   Loaded on every page ONLY while the sale is live (25–30 Nov 2026).
   Colours follow the promo bar (black + #ffc928) and the sale red (#c8102e).
   ========================================================================== */
.ms-bf-on { --ms-bf-black: #000; --ms-bf-yellow: #ffc928; --ms-bf-red: #c8102e; }

/* ---------- Countdown (shared) ---------- */
.ms-bf-cd { display: inline-flex; align-items: center; gap: 8px; font-family: "Poppins", "Helvetica Neue", Arial, sans-serif; }
.ms-bf-cd__units { display: inline-flex; gap: 4px; font-variant-numeric: tabular-nums; }
.ms-bf-cd__unit strong { font-weight: 700; }

/* ---------- 1. Promo bar ---------- */
.ms-header:not(.is-scrolled) .ms-hd__promo--bf { max-height: 96px; }
.ms-hd__promo--bf { background: var(--ms-bf-black); color: var(--ms-bf-yellow); }
.ms-hd__promo--bf .ms-hd__promo-text { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; column-gap: 8px; row-gap: 4px; text-transform: uppercase; letter-spacing: .02em; }
.ms-hd__promo--bf .ms-hd__promo-text a { margin-left: 0; padding: 2px 10px; border-radius: 4px; background: var(--ms-bf-yellow); color: var(--ms-bf-black); text-transform: none; letter-spacing: 0; }
.ms-hd__promo--bf .ms-hd__promo-text a:hover { text-decoration: none; background: #fff; }
.ms-bf-cd--bar { margin-left: 4px; color: #fff; font-size: 13px; text-transform: none; }
.ms-bf-cd--bar .ms-bf-cd__label { opacity: .85; font-weight: 500; }
.ms-bf-cd--bar .ms-bf-cd__unit strong { color: var(--ms-bf-yellow); margin-right: 1px; }
@media (max-width: 767px) {
	.ms-hd__promo--bf .ms-hd__promo-text { font-size: 12px; }
	.ms-bf-cd--bar { font-size: 12px; margin-left: 0; }
	.ms-bf-cd--bar .ms-bf-cd__label { display: none; }
}

/* ---------- 2. Home hero ---------- */
.ms-home .ms-hero--bf .ms-hero__badge {
	padding: 6px 14px; border-radius: 4px;
	background: var(--ms-bf-black); color: var(--ms-bf-yellow);
	font-size: 1rem; letter-spacing: .04em;
}
.ms-home .ms-hero--bf .ms-hero__buttons { margin-bottom: 18px; }
.ms-home .ms-hero--bf .ms-hero__buttons .ms-btn:first-child { background: var(--ms-bf-red); }
.ms-home .ms-hero--bf .ms-hero__buttons .ms-btn:first-child:hover { background: #a50d26; box-shadow: 0 8px 18px rgba(200, 16, 46, .3); }
.ms-bf-hero-cd { margin: 0 0 28px; }
.ms-bf-cd--boxes { flex-wrap: wrap; gap: 12px; }
.ms-bf-cd--boxes .ms-bf-cd__label { font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ms-bf-black); }
.ms-bf-cd--boxes .ms-bf-cd__units { gap: 8px; }
.ms-bf-cd--boxes .ms-bf-cd__unit {
	display: flex; flex-direction: column; align-items: center; min-width: 58px; padding: 8px 6px;
	border-radius: 8px; background: var(--ms-bf-black); color: #fff; line-height: 1.1;
}
.ms-bf-cd--boxes .ms-bf-cd__unit strong { font-size: 1.45rem; color: var(--ms-bf-yellow); }
.ms-bf-cd--boxes .ms-bf-cd__unit small { margin-top: 2px; font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
@media (max-width: 420px) {
	.ms-bf-cd--boxes .ms-bf-cd__unit { min-width: 50px; }
	.ms-bf-cd--boxes .ms-bf-cd__unit strong { font-size: 1.2rem; }
}

/* ---------- 3. Product card badge ---------- */
.ms-product__sale--bf { display: inline-flex; gap: 4px; align-items: center; background: var(--ms-bf-black); color: #fff; text-transform: none; }
.ms-product__sale--bf b { color: var(--ms-bf-yellow); font-weight: 700; text-transform: uppercase; }
.ms-product__sale--bf span { font-weight: 700; }
/* Small 2-column phone cards: keep the pill inside the image, show only "-30%". */
.ms-product__sale--bf { max-width: calc(100% - 16px); flex-wrap: wrap; }
@media (max-width: 480px) {
	.ms-product__sale--bf:has(span) b { display: none; }
}
.woocommerce span.onsale.ms-bf-flash { background: var(--ms-bf-black); color: var(--ms-bf-yellow); }

/* ---------- 4. Product page ---------- */
.ms-sale-dot--bf { background: var(--ms-bf-black); color: var(--ms-bf-yellow); font-size: .95rem; box-shadow: 0 6px 14px rgba(0, 0, 0, .25); }
.ms-bf-pdp {
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 14px; padding: 10px 14px;
	border-radius: 10px; background: var(--ms-bf-black); color: #fff; font-size: .88rem;
}
.ms-bf-pdp__tag { font-family: "Poppins", "Helvetica Neue", Arial, sans-serif; font-weight: 700; color: var(--ms-bf-yellow); text-transform: uppercase; letter-spacing: .04em; }
.ms-bf-cd--line .ms-bf-cd__label { opacity: .85; }
.ms-bf-cd--line .ms-bf-cd__units { gap: 6px; }
.ms-bf-cd--line .ms-bf-cd__unit strong { color: var(--ms-bf-yellow); margin-right: 1px; }

/* ---------- 5. Deals page ---------- */
.ms-bf-on .msd .msd-hero { background: linear-gradient(100deg, #111 0%, #1d1f2b 60%, #2b2f55 100%); }
.ms-bf-on .msd .msd-hero .msd-eyebrow { color: var(--ms-bf-yellow); }
.ms-bf-on .msd .msd-hero h1 { color: #fff; }
.ms-bf-on .msd .msd-hero h1 span { display: block; color: var(--ms-bf-yellow); }
.ms-bf-on .msd .msd-hero > div:first-child > p { color: #e8e9f2; }
.ms-bf-on .msd .msd-hero .msd-btn--fill { background: var(--ms-bf-yellow); border-color: var(--ms-bf-yellow); color: #000; }
.ms-bf-on .msd .msd-hero .msd-btn--fill:hover { background: #fff; border-color: #fff; }
.ms-bf-on .msd .msd-hero .msd-btn--line { border-color: #fff; color: #fff; }
.ms-bf-on .msd .msd-hero .msd-btn--line:hover { background: #fff; color: #000; }
.ms-bf-on .msd .msd-cd div { background: #000; }
.ms-bf-on .msd .msd-cd strong { color: var(--ms-bf-yellow); }
.ms-bf-deals { scroll-margin-top: 120px; }
.ms-bf-deals .ms-grid { margin-bottom: 24px; }
.ms-bf-deals__more { text-align: center; }
@media (max-width: 1024px) { .ms-bf-deals .ms-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) { .ms-bf-deals .ms-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }

@media (prefers-reduced-motion: reduce) { .ms-bf-cd * { transition: none; } }
