/* ============================================================
   Black Friday: neónový vizuál (Fredy 16. 11. 2026, vzor „BLACK FRIDAY 65% OFF“)
   Tmavá stena z dlaždíc v perspektíve, ružová žiara a lúč, nápis s ozvenami
   a odpočet v svietiacich dlaždiciach. Načíta sa len v režime black-friday
   na homepage (template-parts/home/hero-sale.php) a výpredajovej stránke
   (page-templates/vypredaj.php, jej rámik je v css/sale-page.css).
   ============================================================ */
.cp-bf__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.cp-bf__wall { position: absolute; inset: -30% -12% -40% -12%; transform: perspective(900px) rotateY(16deg) rotateX(6deg); transform-origin: 70% 50%; }
.cp-bf__tiles, .cp-bf__tiles--lit { position: absolute; inset: 0; background-size: 74px 74px; }
.cp-bf__tiles {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='74' height='74'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23161216'/%3E%3Cstop offset='1' stop-color='%23070605'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='4' y='4' width='66' height='66' rx='12' fill='url(%23g)' stroke='%23ffffff' stroke-opacity='.10'/%3E%3Crect x='4.5' y='4.5' width='65' height='65' rx='11.5' fill='none' stroke='%23000' stroke-opacity='.6' stroke-dasharray='0 70 200'/%3E%3C/svg%3E");
	-webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.95), rgba(0,0,0,.55) 55%, rgba(0,0,0,.25));
	        mask-image: linear-gradient(90deg, rgba(0,0,0,.95), rgba(0,0,0,.55) 55%, rgba(0,0,0,.25));
}
.cp-bf__tiles--lit {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='74' height='74'%3E%3Crect x='4' y='4' width='66' height='66' rx='12' fill='%23ff7f2a' fill-opacity='.05' stroke='%23ff954f' stroke-opacity='.55'/%3E%3C/svg%3E");
	-webkit-mask-image: radial-gradient(38% 42% at 46% 36%, #000, transparent 100%);
	        mask-image: radial-gradient(38% 42% at 46% 36%, #000, transparent 100%);
}
/* Svetlý režim: svetlejšie dlaždice na slivkovom podklade (paleta v style.css) */
:root:not([data-theme="dark"]) .cp-bf__tiles { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='74' height='74'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%233A2618'/%3E%3Cstop offset='1' stop-color='%231F130B'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='4' y='4' width='66' height='66' rx='12' fill='url(%23g)' stroke='%23ffffff' stroke-opacity='.14'/%3E%3Crect x='4.5' y='4.5' width='65' height='65' rx='11.5' fill='none' stroke='%23000' stroke-opacity='.4' stroke-dasharray='0 70 200'/%3E%3C/svg%3E"); }
.cp-bf__glow { position: absolute; left: 50%; top: -6%; width: 760px; height: 420px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(255, 120, 30, .55), rgba(255, 120, 30, .18) 55%, transparent); animation: cp-bf-breathe 4.5s ease-in-out infinite; }
.cp-bf__beam { position: absolute; left: calc(50% - 610px); top: 96px; width: 460px; height: 56px; margin-top: -28px; transform: rotate(-21deg); transform-origin: 100% 50%; background: linear-gradient(90deg, transparent, rgba(255, 120, 30, .25) 35%, rgba(255, 138, 60, .7) 80%, rgba(255, 228, 210, .95)); -webkit-mask-image: linear-gradient(180deg, transparent, #000 35%, #000 65%, transparent); mask-image: linear-gradient(180deg, transparent, #000 35%, #000 65%, transparent); filter: blur(4px); mix-blend-mode: screen; animation: cp-bf-beam 3.2s ease-in-out infinite; }
.cp-bf__beam::before, .cp-bf__beam::after { content: ""; position: absolute; right: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, rgba(255, 237, 225, .95)); }
.cp-bf__beam::before { top: 40%; left: 20%; }
.cp-bf__beam::after { top: 62%; left: 42%; opacity: .8; }
.cp-bf__beam--2 { top: 116px; left: calc(50% - 540px); width: 380px; height: 30px; margin-top: -15px; transform: rotate(-17deg); opacity: .55; filter: blur(2px); animation-delay: -1.6s; }
.cp-bf__vignette { position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 30%, transparent 40%, var(--cp-bf-shade, rgba(0, 0, 0, .75)) 100%), linear-gradient(180deg, transparent 55%, var(--cp-bf-base, #050403) 100%); }

.cp-bf { position: relative; padding: 46px 24px 6px; text-align: center; }
.cp-bf__title { position: relative; display: inline-block; margin: 0; font-family: var(--cp-font-disp, "Montserrat", sans-serif); font-weight: 900; font-size: clamp(42px, 6.4vw, 82px); line-height: .9; letter-spacing: -.035em; text-transform: uppercase; }
.cp-bf__line { display: block; white-space: nowrap; }
.cp-bf__main { position: relative; z-index: 2; display: block; color: #fff1e8; text-shadow: 0 0 2px #fff, 0 0 10px rgba(255, 174, 120, .95), 0 0 26px rgba(255, 126, 40, .9), 0 0 60px rgba(255, 114, 20, .7), 0 0 110px rgba(255, 114, 20, .45); animation: cp-bf-flicker 6s linear infinite; }
.cp-bf__echo { position: absolute; inset: 0; z-index: 1; display: block; color: rgba(255, 207, 175, .5); pointer-events: none; }
.cp-bf__echo--1 { transform: translate(-9px, -7px); opacity: .6; filter: blur(.6px); animation: cp-bf-echo1 3.6s ease-in-out infinite; }
.cp-bf__echo--2 { transform: translate(-20px, -14px); opacity: .3; filter: blur(1.6px); animation: cp-bf-echo2 3.6s ease-in-out infinite; }
.cp-bf__echo--3 { transform: translate(14px, -6px); opacity: .32; filter: blur(1px); animation: cp-bf-echo3 4.2s ease-in-out infinite; }
.cp-bf__echo--4 { transform: translate(30px, -12px); opacity: .14; filter: blur(2.4px); animation: cp-bf-echo3 4.2s ease-in-out infinite reverse; }

.cp-bf__cd { display: flex; justify-content: center; gap: 14px; margin-top: 26px; }
.cp-bf__cd-box { display: flex; flex-direction: column; align-items: center; gap: 9px; }
.cp-bf__cd-box b { display: grid; place-items: center; width: 70px; height: 74px; border-radius: 14px; font-family: var(--cp-font-disp, "Montserrat", sans-serif); font-size: 36px; font-weight: 800; letter-spacing: -.02em; color: #fff; background: var(--cp-bf-box, linear-gradient(180deg, #241810, #0d0906 70%)); border: 1px solid rgba(255, 156, 90, .5); box-shadow: 0 0 22px rgba(255, 120, 30, .38), 0 0 2px rgba(255, 186, 140, .8), inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 0 18px rgba(255, 120, 30, .18); text-shadow: 0 0 12px rgba(255, 180, 130, .75); font-variant-numeric: tabular-nums; }
.cp-bf__cd-box small { font-size: 11px; font-weight: 600; color: rgba(255, 255, 255, .55); }
.cp-bf__label { margin: 16px 0 0; font-size: 12px; font-weight: 700; color: rgba(255, 228, 210, .78); }

@keyframes cp-bf-breathe { 50% { opacity: .78; transform: translateX(-50%) scale(1.06); } }
@keyframes cp-bf-beam { 50% { opacity: .7; } }
@keyframes cp-bf-flicker { 0%, 91%, 93%, 96%, 100% { opacity: 1; } 92%, 95% { opacity: .82; } }
@keyframes cp-bf-echo1 { 50% { transform: translate(-13px, -9px); } }
@keyframes cp-bf-echo2 { 50% { transform: translate(-27px, -17px); } }
@keyframes cp-bf-echo3 { 50% { transform: translate(19px, -8px); } }

/* ---- Homepage: hero v hlavičke. Nápis a odpočet vľavo, TOP zľavy vpravo.
   Mobil centrovaný, od 1024 px doľava; stena a žiara sa posunú za nápis. ---- */
.cp-sale-hero--bf { isolation: isolate; }
.cp-sale-hero--bf .cp-bf__glow { left: 50%; top: 2%; width: 620px; height: 380px; }
.cp-sale-hero--bf .cp-bf__beam { left: calc(50% - 360px); top: 20%; width: 360px; }
.cp-sale-hero--bf .cp-bf__beam--2 { display: none; }
.cp-sale-hero--bf .cp-bf__vignette { background: linear-gradient(180deg, var(--cp-bf-base, #050403) 0, transparent 16%), radial-gradient(120% 95% at 40% 35%, transparent 45%, var(--cp-bf-shade, rgba(0, 0, 0, .7)) 100%), linear-gradient(180deg, transparent 70%, var(--cp-bf-base, #050403) 100%); }
.cp-sale-hero--bf .cp-sale-hero__grid { padding: 14px 0 30px; }
.cp-sale-hero--bf .cp-sale-hero__text { display: flex; flex-direction: column; align-items: center; text-align: center; }
.cp-sale-hero--bf .cp-bf__title { font-size: clamp(38px, 11vw, 66px); padding-top: 16px; }
.cp-sale-hero--bf .cp-bf__cd { margin-top: 20px; gap: 10px; }
.cp-sale-hero--bf .cp-bf__cd-box b { width: 58px; height: 62px; border-radius: 12px; font-size: 29px; }
.cp-sale-hero--bf .cp-bf__label { margin-top: 12px; }
.cp-sale-hero--bf .cp-sale-hero__desc { margin: 14px auto 0; max-width: 520px; }
.cp-sale-hero--bf .cp-sale-hero__btn { background: linear-gradient(135deg, #ff8b3d, #d46012); color: #fff; box-shadow: 0 0 0 1px rgba(255, 192, 150, .45), 0 0 26px rgba(255, 120, 30, .55); }
.cp-sale-hero--bf .cp-sale-hero__btn:hover { color: #fff; filter: brightness(1.08); }
.cp-sale-hero--bf .cp-sale-hero__card { background: rgba(255, 255, 255, .055); border-color: rgba(255, 156, 90, .26); }
.cp-sale-hero--bf .cp-sale-hero__card:hover { background: rgba(255, 138, 60, .1); border-color: rgba(255, 168, 110, .5); }

@media (min-width: 1024px) {
	.cp-sale-hero--bf .cp-sale-hero__grid { padding: 18px 0 40px; }
	.cp-sale-hero--bf .cp-sale-hero__text { align-items: flex-start; text-align: left; }
	.cp-sale-hero--bf .cp-bf__title { font-size: clamp(52px, 5vw, 66px); padding: 14px 0 0 22px; }
	.cp-sale-hero--bf .cp-bf__cd { justify-content: flex-start; }
	.cp-sale-hero--bf .cp-sale-hero__desc { margin-left: 0; }
	/* --cp-bf-x = ľavá hrana nápisu (kontajner 1180 px), lúč a žiara sa viažu na ňu */
	.cp-sale-hero--bf { --cp-bf-x: max(60px, calc(50% - 548px)); }
	.cp-sale-hero--bf .cp-bf__glow { left: calc(var(--cp-bf-x) + 250px); top: 0; width: 760px; height: 420px; }
	.cp-sale-hero--bf .cp-bf__beam { left: calc(var(--cp-bf-x) - 440px); top: 74px; width: 460px; }
	.cp-sale-hero--bf .cp-bf__tiles--lit {
		-webkit-mask-image: radial-gradient(640px 300px at calc(var(--cp-bf-x) + 380px) 42%, #000, transparent 100%);
		        mask-image: radial-gradient(640px 300px at calc(var(--cp-bf-x) + 380px) 42%, #000, transparent 100%);
	}
}

@media (max-width: 639px) {
	.cp-bf { padding: 34px 12px 0; }
	.cp-bf__title { font-size: clamp(34px, 11vw, 48px); }
	.cp-bf__echo--1 { transform: translate(-6px, -5px); }
	.cp-bf__echo--2 { transform: translate(-13px, -10px); }
	.cp-bf__echo--3 { transform: translate(9px, -4px); }
	.cp-bf__echo--4 { display: none; }
	.cp-bf__cd { gap: 8px; margin-top: 20px; }
	.cp-bf__cd-box b { width: 56px; height: 60px; border-radius: 12px; font-size: 27px; }
	.cp-bf__cd-box small { font-size: 10px; }
	.cp-bf__glow { width: 420px; height: 300px; }
	.cp-bf__beam { left: calc(30% - 260px); width: 260px; top: 22%; }
	.cp-bf__beam--2 { display: none; }
	.cp-sale-hero--bf .cp-bf__glow { width: 420px; height: 300px; }
	.cp-sale-hero--bf .cp-bf__beam { left: calc(50% - 240px); width: 240px; top: 16%; }
	.cp-sale-hero--bf .cp-bf__cd-box b { width: 54px; height: 58px; font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
	.cp-bf__glow, .cp-bf__beam, .cp-bf__main, .cp-bf__echo { animation: none; }
}
