/* AE Black Friday — design pagină /black-friday/ */

html body.ae-bf-body {
	background: #0b0b0b;
	margin: 0;
	padding: 0;
	min-width: 0;
}

.ae-bf {
	--bf-bg: #0b0b0b;
	--bf-surface: #141414;
	--bf-surface-2: #1b1b1b;
	--bf-line: #2a2a2a;
	--bf-red: #d7131c;
	--bf-red-hover: #b80f17;
	--bf-text: #f2f2f2;
	--bf-muted: #8c8c8c;
	--bf-dim: #6a6a6a;
	--bf-font: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--bf-gutter: 64px;
	--bf-radius: 6px;

	background: var(--bf-bg);
	color: var(--bf-text);
	font-family: var(--bf-font);
	font-size: 13px;
	line-height: 1.5;
	min-height: 100vh;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

.ae-bf *,
.ae-bf *::before,
.ae-bf *::after {
	box-sizing: border-box;
}

.ae-bf a {
	color: inherit;
	text-decoration: none;
}

.ae-bf img {
	max-width: 100%;
	height: auto;
	display: block;
}

.ae-bf h1,
.ae-bf h2,
.ae-bf h3 {
	font-family: var(--bf-font);
	color: var(--bf-text);
	margin: 0;
	padding: 0;
	letter-spacing: 0;
	text-transform: none;
}

.ae-bf p {
	margin: 0;
}

.ae-bf button,
.ae-bf select {
	font-family: var(--bf-font);
}

.ae-bf .ae-bf-ico {
	width: 14px;
	height: 14px;
	flex: none;
}

.ae-bf-wrap {
	width: 100%;
	max-width: calc(1312px + var(--bf-gutter) * 2);
	margin: 0 auto;
	padding: 0 var(--bf-gutter);
}

.ae-bf-only-m {
	display: none !important;
}

/* Top bar ---------------------------------------------------------- */

.ae-bf-topbar {
	background: var(--bf-red);
	color: #fff;
	text-align: center;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	padding: 8px 16px;
}

/* Header ----------------------------------------------------------- */

.ae-bf-header {
	border-bottom: 1px solid var(--bf-line);
}

.ae-bf-header__in {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	min-height: 84px;
}

.ae-bf .ae-bf-back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	color: var(--bf-text);
	justify-self: start;
	transition: color .15s;
}

.ae-bf .ae-bf-back:hover {
	color: var(--bf-red);
}

.ae-bf-logo img {
	width: 210px;
}

.ae-bf .ae-bf-cart {
	justify-self: end;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--bf-red);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	padding: 9px 12px 9px 14px;
	border-radius: var(--bf-radius);
	transition: background .15s;
}

.ae-bf .ae-bf-cart:hover {
	background: var(--bf-red-hover);
}

.ae-bf-cart-count {
	display: inline-grid;
	place-items: center;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border-radius: 999px;
	background: #fff;
	color: var(--bf-red);
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
}

/* Hero ------------------------------------------------------------- */

.ae-bf-hero-wrap {
	padding-top: 32px;
}

.ae-bf .ae-bf-hero {
	display: block;
	position: relative;
	aspect-ratio: 1312 / 520;
	border: 2px solid var(--bf-red);
	border-radius: 8px;
	overflow: hidden;
	background: var(--bf-surface);
}

.ae-bf-hero picture,
.ae-bf-hero img {
	width: 100%;
	height: 100%;
}

.ae-bf .ae-bf-hero img {
	object-fit: cover;
}

/* Banner cu imagine: caseta ia proporția imaginii, fără decupare. */
.ae-bf .ae-bf-hero.ae-bf-hero--img {
	aspect-ratio: auto;
}

.ae-bf .ae-bf-hero--img picture,
.ae-bf .ae-bf-hero--img img {
	height: auto;
}

.ae-bf-hero--text {
	background:
		repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 14px, transparent 14px 28px),
		radial-gradient(120% 90% at 85% 10%, rgba(215, 19, 28, .35), transparent 60%),
		var(--bf-surface);
}

.ae-bf-hero__text {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 0 7%;
	gap: 14px;
}

.ae-bf-hero__kicker {
	font-size: 12px;
	letter-spacing: .3em;
	text-transform: uppercase;
	color: var(--bf-muted);
}

.ae-bf-hero__title {
	font-size: clamp(48px, 9vw, 128px);
	font-weight: 800;
	line-height: .9;
	text-transform: uppercase;
	letter-spacing: -.02em;
}

.ae-bf-hero__sub {
	align-self: flex-start;
	background: var(--bf-red);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	padding: 6px 10px;
	border-radius: 3px;
}

/* Section head ----------------------------------------------------- */

.ae-bf-offers {
	padding-top: 44px;
	padding-bottom: 64px;
}

.ae-bf-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}

.ae-bf-head__title {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ae-bf-tag {
	display: inline-block;
	background: var(--bf-red);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	padding: 5px 9px;
	border-radius: 3px;
	transform: rotate(-4deg);
	white-space: nowrap;
}

.ae-bf .ae-bf-head h1 {
	font-size: 34px;
	font-weight: 800;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: -.01em;
}

.ae-bf-count {
	font-size: 11px;
	color: var(--bf-muted);
	white-space: nowrap;
}

/* Toolbar ---------------------------------------------------------- */

.ae-bf-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 10px;
	border: 1px solid var(--bf-line);
	border-radius: 8px;
	background: var(--bf-surface);
	margin-bottom: 20px;
}

.ae-bf-chips {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.ae-bf .ae-bf-chip {
	appearance: none;
	margin: 0;
	min-height: 0;
	height: auto;
	line-height: 1.4;
	background: var(--bf-surface-2);
	color: var(--bf-text);
	border: 1px solid var(--bf-line);
	border-radius: 4px;
	padding: 6px 11px;
	font-size: 11px;
	font-weight: 500;
	text-transform: none;
	letter-spacing: 0;
	box-shadow: none;
	cursor: pointer;
	white-space: nowrap;
	transition: border-color .15s, background .15s;
}

.ae-bf .ae-bf-chip:hover {
	border-color: #444;
	background: var(--bf-surface-2);
	color: var(--bf-text);
}

.ae-bf .ae-bf-chip.is-active {
	background: var(--bf-red);
	border-color: var(--bf-red);
	color: #fff;
	font-weight: 700;
}

.ae-bf-sort {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: none;
}

.ae-bf-sort__label {
	font-size: 11px;
	color: var(--bf-muted);
}

.ae-bf .ae-bf-select {
	appearance: none;
	-webkit-appearance: none;
	margin: 0;
	height: 34px;
	min-width: 170px;
	padding: 0 34px 0 12px;
	font-size: 11px;
	color: var(--bf-text);
	background: var(--bf-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23f2f2f2' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
	border: 1px solid var(--bf-line);
	border-radius: 4px;
	box-shadow: none;
	cursor: pointer;
}

.ae-bf .ae-bf-select:focus {
	outline: none;
	border-color: var(--bf-red);
}

/* Grid & cards ----------------------------------------------------- */

.ae-bf-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.ae-bf-card {
	display: flex;
	flex-direction: column;
	background: var(--bf-surface);
	border: 1px solid var(--bf-line);
	border-radius: var(--bf-radius);
	overflow: hidden;
	transition: border-color .15s, transform .15s;
}

.ae-bf-card:hover {
	border-color: #3a3a3a;
}

.ae-bf-card[hidden] {
	display: none;
}

/* Pachete promo: ramă aurie-roșie, etichetă „Pachet exclusiv” */
.ae-bf-card--pachet {
	position: relative;
	border: 0;
	padding: 2px;
	background: linear-gradient(135deg, #f5d77a 0%, #b8862b 35%, #d7131c 65%, #f5d77a 100%);
	box-shadow: 0 0 0 1px rgba(245, 215, 122, .25), 0 12px 32px -12px rgba(215, 19, 28, .7);
}

.ae-bf-card--pachet:hover {
	transform: translateY(-2px);
	box-shadow: 0 0 0 1px rgba(245, 215, 122, .45), 0 16px 40px -12px rgba(215, 19, 28, .85);
}

.ae-bf-card--pachet .ae-bf-card__media {
	border-radius: calc(var(--bf-radius) - 2px) calc(var(--bf-radius) - 2px) 0 0;
}

.ae-bf-card--pachet .ae-bf-card__body {
	background: var(--bf-surface);
	border-radius: 0 0 calc(var(--bf-radius) - 2px) calc(var(--bf-radius) - 2px);
}

/* Pachetele au aceeași mărime ca restul; poza (4:3) se vede întreagă pe fundal alb, ca la celelalte produse. */
.ae-bf .ae-bf-card--pachet .ae-bf-card__media {
	background: #fff;
}

/* Eticheta stă peste partea de jos a imaginii, ca să nu schimbe înălțimea cardului. */
.ae-bf-card__ribbon {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	background: linear-gradient(90deg, #b8862b, #f5d77a 50%, #b8862b);
	color: #111;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
	text-align: center;
	white-space: nowrap;
	padding: 5px 6px;
}

.ae-bf .ae-bf-card__media {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	background: #fff;
	padding: 0;
	overflow: hidden;
}

.ae-bf .ae-bf-card__media img {
	width: 100%;
	height: 100%;
	/* contain: pozele ne-pătrate (ex. pachetele) se văd întregi, nu tăiate de card */
	object-fit: contain;
	transition: transform .3s;
}

.ae-bf-card:hover .ae-bf-card__media img {
	transform: scale(1.03);
}

.ae-bf-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 1;
	background: var(--bf-red);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	padding: 3px 7px;
	border-radius: 3px;
	line-height: 1.4;
}

.ae-bf-badge--sub {
	top: 32px;
	left: 16px;
	background: #111;
	font-size: 8px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	padding: 2px 6px;
	transform: rotate(-4deg);
}

.ae-bf-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 14px 12px 12px;
}

.ae-bf-card__brand {
	font-size: 9px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--bf-muted);
	margin-bottom: 4px;
}

.ae-bf .ae-bf-card__title {
	font-size: 12px;
	font-weight: 500;
	line-height: 1.45;
	margin-bottom: 18px;
	min-height: 2.9em;
}

.ae-bf .ae-bf-card__title a:hover {
	color: var(--bf-red);
}

.ae-bf-card__prices {
	margin-top: auto;
	margin-bottom: 12px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.ae-bf .ae-bf-card__prices del {
	color: var(--bf-dim);
	font-size: 11px;
	text-decoration: line-through;
	opacity: 1;
}

.ae-bf .ae-bf-card__prices strong {
	color: var(--bf-red);
	font-size: 19px;
	font-weight: 800;
	line-height: 1.2;
}

.ae-bf .ae-bf-card__prices .amount,
.ae-bf .ae-bf-card__prices bdi {
	color: inherit;
	font: inherit;
}

.ae-bf .ae-bf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: 36px;
	margin: 0;
	padding: 8px 12px;
	background: var(--bf-red);
	color: #fff;
	border: 0;
	border-radius: 4px;
	font-family: var(--bf-font);
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: 0;
	box-shadow: none;
	cursor: pointer;
	transition: background .15s, opacity .15s;
}

.ae-bf .ae-bf-btn:hover {
	background: var(--bf-red-hover);
	color: #fff;
}

.ae-bf .ae-bf-btn.loading {
	opacity: .7;
	pointer-events: none;
}

.ae-bf .ae-bf-btn.loading::after,
.ae-bf .ae-bf-btn.added::after {
	content: none;
	display: none;
}

.ae-bf .ae-bf-btn.is-disabled {
	background: var(--bf-surface-2);
	color: var(--bf-muted);
	cursor: default;
}

.ae-bf .ae-bf-btn--inline {
	width: auto;
	padding: 9px 16px;
}

/* WooCommerce adaugă automat un link „Vezi coșul” după buton — folosim toast-ul în locul lui. */
.ae-bf .added_to_cart {
	display: none !important;
}

.ae-bf-empty {
	padding: 48px 0;
	text-align: center;
	color: var(--bf-muted);
}

/* Footer ----------------------------------------------------------- */

.ae-bf-footer {
	border-top: 1px solid var(--bf-line);
	padding: 44px 0 28px;
}

.ae-bf-footer__grid {
	display: grid;
	grid-template-columns: 2fr 1.3fr 1.3fr;
	gap: 32px;
	padding-bottom: 36px;
	border-bottom: 1px solid var(--bf-line);
}

.ae-bf-footer__brand {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 18px;
}

.ae-bf-footer__brand img {
	width: 168px;
}

.ae-bf .ae-bf-footer h3 {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	margin-bottom: 14px;
}

.ae-bf-footer__col p {
	font-size: 11px;
	color: #cfcfcf;
	margin-bottom: 10px;
}

.ae-bf .ae-bf-footer__col a:hover {
	color: var(--bf-red);
}

.ae-bf-footer__bottom {
	padding-top: 22px;
	font-size: 10px;
	color: var(--bf-dim);
}

/* Toast ------------------------------------------------------------ */

.ae-bf-toast {
	position: fixed;
	left: 50%;
	bottom: 24px;
	z-index: 99999;
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 12px 16px;
	background: #fff;
	color: #111;
	font-family: var(--bf-font);
	font-size: 12px;
	font-weight: 700;
	border-radius: var(--bf-radius);
	box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
	transform: translate(-50%, 20px);
	opacity: 0;
	transition: opacity .2s, transform .2s;
	white-space: nowrap;
}

.ae-bf-toast[hidden] {
	display: none;
}

.ae-bf-toast.is-on {
	opacity: 1;
	transform: translate(-50%, 0);
}

.ae-bf .ae-bf-toast a {
	color: var(--bf-red);
}

/* Focus ------------------------------------------------------------ */

.ae-bf a:focus-visible,
.ae-bf button:focus-visible,
.ae-bf select:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

/* Tabletă ---------------------------------------------------------- */

@media (max-width: 1100px) {
	.ae-bf {
		--bf-gutter: 32px;
	}

	.ae-bf-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* Telefon ---------------------------------------------------------- */

@media (max-width: 760px) {
	.ae-bf {
		--bf-gutter: 12px;
	}

	.ae-bf-only-d {
		display: none !important;
	}

	.ae-bf-only-m {
		display: revert !important;
	}

	.ae-bf-topbar {
		font-size: 9px;
		padding: 7px 12px;
	}

	.ae-bf-header__in {
		min-height: 60px;
	}

	.ae-bf .ae-bf-back {
		font-size: 11px;
		gap: 5px;
	}

	.ae-bf-logo img {
		width: 140px;
	}

	.ae-bf .ae-bf-cart {
		position: relative;
		width: 38px;
		height: 38px;
		padding: 0;
		justify-content: center;
	}

	.ae-bf .ae-bf-cart .ae-bf-ico {
		width: 16px;
		height: 16px;
	}

	.ae-bf .ae-bf-cart .ae-bf-cart-count {
		position: absolute;
		top: -6px;
		right: -6px;
		min-width: 18px;
		height: 18px;
		font-size: 10px;
		box-shadow: 0 0 0 2px var(--bf-bg);
	}

	.ae-bf-hero-wrap {
		padding: 0;
	}

	.ae-bf .ae-bf-hero {
		aspect-ratio: 1080 / 1220;
		border: 0;
		border-bottom: 2px solid var(--bf-red);
		border-radius: 0;
	}

	.ae-bf-hero__title {
		font-size: 64px;
	}

	.ae-bf-offers {
		padding-top: 18px;
		padding-bottom: 32px;
	}

	.ae-bf-head {
		margin-bottom: 12px;
	}

	.ae-bf-head__title {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	.ae-bf .ae-bf-head h1 {
		font-size: 26px;
	}

	.ae-bf-toolbar {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		padding: 0;
		border: 0;
		background: none;
		margin-bottom: 14px;
	}

	.ae-bf-chips {
		flex-wrap: nowrap;
		overflow-x: auto;
		scrollbar-width: none;
		margin: 0 calc(var(--bf-gutter) * -1);
		padding: 0 var(--bf-gutter);
	}

	.ae-bf-chips::-webkit-scrollbar {
		display: none;
	}

	.ae-bf .ae-bf-chip {
		padding: 8px 11px;
	}

	.ae-bf-sort {
		justify-content: space-between;
	}

	.ae-bf .ae-bf-select {
		min-width: 0;
		width: 170px;
		height: 36px;
	}

	.ae-bf-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	.ae-bf .ae-bf-card__media {
		aspect-ratio: 1 / .82;
	}

	.ae-bf-badge {
		top: 6px;
		left: 6px;
		font-size: 9px;
		padding: 2px 5px;
	}

	.ae-bf-badge--sub {
		top: 24px;
		left: 10px;
		font-size: 7px;
	}

	.ae-bf-card__ribbon {
		font-size: 8px;
		letter-spacing: .06em;
		padding: 3px 4px;
	}

	.ae-bf-card__body {
		padding: 10px 8px 8px;
	}

	.ae-bf-card__brand {
		font-size: 8px;
	}

	.ae-bf .ae-bf-card__title {
		font-size: 11px;
		margin-bottom: 6px;
	}

	.ae-bf-card__prices {
		margin-bottom: 8px;
		gap: 0;
	}

	.ae-bf .ae-bf-card__prices del {
		font-size: 9px;
	}

	.ae-bf .ae-bf-card__prices strong {
		font-size: 14px;
	}

	.ae-bf .ae-bf-btn {
		min-height: 34px;
		font-size: 10px;
	}

	.ae-bf .ae-bf-card .ae-bf-btn .ae-bf-ico {
		display: none;
	}

	.ae-bf-footer {
		padding: 20px 0 24px;
	}

	.ae-bf-footer__grid {
		grid-template-columns: 1fr;
		gap: 18px;
		padding-bottom: 0;
		border-bottom: 0;
	}

	.ae-bf .ae-bf-btn--inline {
		width: 100%;
		min-height: 40px;
	}

	.ae-bf .ae-bf-footer h3 {
		margin-bottom: 6px;
	}

	.ae-bf-footer__col p {
		margin-bottom: 4px;
	}

	.ae-bf-footer__legal {
		display: flex;
		flex-wrap: wrap;
		gap: 4px 14px;
	}

	.ae-bf-footer__bottom {
		padding-top: 14px;
	}

	.ae-bf-toast {
		left: 12px;
		right: 12px;
		bottom: 12px;
		justify-content: space-between;
		transform: translateY(20px);
	}

	.ae-bf-toast.is-on {
		transform: translateY(0);
	}
}
