/* ZonaStore – Black Friday PC + Tricouri */

/* ---------- Meniul: pastilele BF (XStore + tema ZONA) ---------- */
.menu-item-zona-bf > a,
.zh-link[href$="#zona-bf"],
.zm-link[href$="#zona-bf"] {
	position: relative;
	display: inline-flex !important;
	align-items: center;
	gap: 8px;
	padding: 7px 14px !important;
	border-radius: 999px !important;
	background: linear-gradient(135deg, #fb6e1e 0%, #ff9248 100%) !important;
	color: #111 !important;
	font-weight: 700 !important;
	line-height: 1.1 !important;
	text-decoration: none !important;
	box-shadow: 0 0 0 0 rgba(251, 110, 30, .55), 0 8px 22px -8px rgba(251, 110, 30, .8);
	animation: zbf-glow 2.4s ease-out infinite;
}
.menu-item-zona-bf > a::before,
.zh-link[href$="#zona-bf"]::before,
.zm-link[href$="#zona-bf"]::before {
	content: '';
	flex: none;
	width: 7px;
	height: 7px;
	border-radius: 999px;
	background: #111;
}
.menu-item-zona-bf > a:hover,
.zh-link[href$="#zona-bf"]:hover,
.zm-link[href$="#zona-bf"]:hover { color: #111 !important; filter: brightness(1.06); }
.zh-link[href$="#zona-bf"]::after { display: none !important; }
.zh-link[href$="#zona-bf"] { height: auto !important; align-self: center; margin: 0 6px; padding: 9px 16px !important; font-size: 14px !important; }
.zm-link[href$="#zona-bf"] { flex: 0 0 auto; margin: 12px 20px !important; padding: 12px 20px !important; font-size: 17px !important; }

/* PC-urile: oferta principala, in rosul barei de sus, cu „flacara” care clipeste */
.menu-item-zona-bf-pc > a,
li.menu-item-zona-bf-pc > a,
.zh-link[href*="/game/#zona-bf"],
.zm-link[href*="/game/#zona-bf"] {
	background: linear-gradient(135deg, #d50000 0%, #ff3d00 100%) !important;
	color: #fff !important;
	box-shadow: 0 0 0 0 rgba(213, 0, 0, .55), 0 8px 22px -8px rgba(213, 0, 0, .85);
	animation: zbf-glow-red 2s ease-out infinite;
}
.menu-item-zona-bf-pc > a::before,
li.menu-item-zona-bf-pc > a::before,
.zh-link[href*="/game/#zona-bf"]::before,
.zm-link[href*="/game/#zona-bf"]::before {
	background: #fff;
	animation: zbf-blink 1s steps(2, start) infinite;
}
.menu-item-zona-bf-pc > a:hover,
li.menu-item-zona-bf-pc > a:hover,
.zh-link[href*="/game/#zona-bf"]:hover,
.zm-link[href*="/game/#zona-bf"]:hover { color: #fff !important; }
/* XStore: cu pastilele BF meniul are mai multe elemente – le strangem ca sa ramana pe un rand */
.et_b_header-menu .menu:has(> li.menu-item-zona-bf ~ li.menu-item-zona-bf) > li > a { margin-left: 7px !important; margin-right: 7px !important; }
.et_b_header-menu .menu > li.menu-item-zona-bf > a { padding: 6px 11px !important; gap: 6px; }
@media (max-width: 1439px) {
	.et_b_header-menu .menu:has(> li.menu-item-zona-bf ~ li.menu-item-zona-bf) > li > a { margin-left: 4px !important; margin-right: 4px !important; }
	.et_b_header-menu .menu > li.menu-item-zona-bf > a { padding: 5px 9px !important; }
}
/* mega-meniul XStore al „PC-uri Gaming” ramane la fel */
.menu-item-zona-bf-pc > a .arrow,
.menu-item-zona-bf-pc > a .et-icon { color: inherit !important; }

@keyframes zbf-glow {
	0%   { box-shadow: 0 0 0 0 rgba(251, 110, 30, .55), 0 8px 22px -8px rgba(251, 110, 30, .8); }
	70%  { box-shadow: 0 0 0 10px rgba(251, 110, 30, 0), 0 8px 22px -8px rgba(251, 110, 30, .8); }
	100% { box-shadow: 0 0 0 0 rgba(251, 110, 30, 0), 0 8px 22px -8px rgba(251, 110, 30, .8); }
}
@keyframes zbf-glow-red {
	0%   { box-shadow: 0 0 0 0 rgba(213, 0, 0, .6), 0 8px 22px -8px rgba(213, 0, 0, .85); }
	70%  { box-shadow: 0 0 0 11px rgba(213, 0, 0, 0), 0 8px 22px -8px rgba(213, 0, 0, .85); }
	100% { box-shadow: 0 0 0 0 rgba(213, 0, 0, 0), 0 8px 22px -8px rgba(213, 0, 0, .85); }
}
@keyframes zbf-blink { to { opacity: .25; } }
@media (prefers-reduced-motion: reduce) {
	.menu-item-zona-bf > a, .zh-link[href$="#zona-bf"], .zm-link[href$="#zona-bf"],
	.menu-item-zona-bf > a::before, .zh-link[href$="#zona-bf"]::before { animation: none !important; }
}

/* ---------- Bara de sus, dupa start ---------- */
#bf-bar.zbf-live { position: sticky; cursor: pointer; }
#bf-bar.zbf-live .bf-cd { display: none !important; }
#bf-bar.zbf-live .bf-in { gap: 16px; }
#bf-bar .zbf-act { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }
#bf-bar .zbf-left {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 5px 10px; border-radius: 999px;
	background: rgba(0, 0, 0, .22); color: #fff;
	font-size: 13px; font-weight: 700; white-space: nowrap;
}
#bf-bar .zbf-left::before { content: ''; width: 7px; height: 7px; border-radius: 99px; background: #ffd54f; animation: zbf-blink 1s steps(2, start) infinite; }
#bf-bar .zbf-left[hidden] { display: none; }
#bf-bar .zbf-cta {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 7px 16px; border-radius: 999px;
	background: #fff; color: #d50000;
	font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .3px; white-space: nowrap;
	transition: transform .15s ease;
}
#bf-bar.zbf-live:hover .zbf-cta { transform: translateX(3px); }
#bf-bar .zbf-hit { position: absolute; inset: 0; z-index: 2; }
#bf-bar.zbf-soldout .zbf-left { display: none; }

/* Bara proprie, daca snippet-ul cu countdown nu mai exista */
#bf-bar.zbf-own { position: sticky; top: 0; z-index: 99999; background: #d50000; color: #fff; font-family: Poppins, sans-serif; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
body.admin-bar #bf-bar.zbf-own { top: 32px; }
#bf-bar.zbf-own .bf-in { max-width: 1400px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; text-align: center; }
#bf-bar.zbf-own .bf-txt { font-size: 17px; line-height: 1.3; font-weight: 500; }
#bf-bar.zbf-own .bf-txt b { font-weight: 800; text-transform: uppercase; letter-spacing: .5px; }
#bf-bar.zbf-own .bf-sep { opacity: .6; margin: 0 8px; }

@media (max-width: 782px) {
	body.admin-bar #bf-bar.zbf-own { top: 46px; }
}
@media (max-width: 640px) {
	#bf-bar.zbf-live .bf-in { gap: 6px 10px; padding: 8px 12px; }
	#bf-bar.zbf-live .bf-txt { font-size: 14px; }
	#bf-bar .zbf-cta { padding: 5px 12px; font-size: 12px; }
	#bf-bar .zbf-left { font-size: 12px; padding: 4px 9px; }
}

/* ---------- Eticheta „BLACK FRIDAY” pe produse ---------- */
.zbf-product .product-image-wrapper::after,
.zbf-product .woocommerce-product-gallery::after,
.zbf-product .zg-media::after,
.zbf-product .zpd-gallery::after {
	content: var(--zbf-badge, "BLACK FRIDAY");
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 5;
	padding: 5px 10px 4px;
	border-radius: 6px;
	background: #d50000;
	color: #fff;
	font: 800 11px/1.2 Poppins, sans-serif;
	letter-spacing: .6px;
	text-transform: uppercase;
	white-space: nowrap;
	pointer-events: none;
	box-shadow: 0 4px 12px -4px rgba(213, 0, 0, .6);
}
.zbf-product .woocommerce-product-gallery { position: relative; }
.zbf-product .woocommerce-product-gallery::after { top: 14px; right: 14px; padding: 7px 14px 6px; font-size: 13px; }
@media (max-width: 640px) {
	.zbf-product .product-image-wrapper::after { top: 6px; right: 6px; padding: 4px 7px 3px; font-size: 9.5px; }
}
