/* Popup promo — DA Bella Italia */
html.bi-promo-open {
	overflow: hidden;
}

.bi-promo {
	position: fixed;
	inset: 0;
	z-index: 10050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
	background: rgba(18, 14, 10, 0.72);
	backdrop-filter: blur(4px);
}

.bi-promo[hidden] {
	display: none !important;
}

.bi-promo__dialog {
	position: relative;
	width: min(100%, 760px);
	max-height: min(88vh, 760px);
	overflow: auto;
	background: #24201b;
	border: 1px solid rgba(215, 181, 109, 0.35);
	border-radius: 16px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
	color: #b7ab9a;
	padding: 1.65rem 1.5rem 1.45rem;
	text-align: center;
}

.bi-promo__close {
	position: absolute;
	top: 0.65rem;
	right: 0.65rem;
	width: 2.25rem;
	height: 2.25rem;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #f0d7a2;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
}

.bi-promo__close:hover,
.bi-promo__close:focus-visible {
	background: rgba(215, 181, 109, 0.15);
	outline: none;
}

.bi-promo__eyebrow {
	margin: 0 0 0.35rem;
	font-family: Outfit, system-ui, sans-serif;
	font-size: 0.75rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #d7b56d;
}

.bi-promo__title {
	margin: 0 0 0.65rem;
	padding: 0 2rem;
	font-family: "Cormorant Garamond", Georgia, serif;
	font-weight: 500;
	font-size: clamp(1.55rem, 4vw, 1.9rem);
	line-height: 1.2;
	color: #f6f1e7;
}

.bi-promo__tricolor {
	display: block;
	width: 84px;
	height: 3px;
	margin: 0 auto 0.9rem;
	background: linear-gradient(90deg, #009246 0 33.33%, #f4f1ea 33.33% 66.66%, #ce2b37 66.66%);
}

.bi-promo__message {
	margin: 0 auto 1.25rem;
	max-width: 36em;
	font-family: Outfit, system-ui, sans-serif;
	font-size: 0.95rem;
	font-weight: 300;
	line-height: 1.55;
	color: #b7ab9a;
}

.bi-promo__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.bi-promo__list > li {
	min-width: 0;
	display: flex;
}

.bi-promo__item {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 0.9rem;
	width: 100%;
	min-height: 100%;
	padding: 0.85rem 1rem;
	border: 1px solid rgba(215, 181, 109, 0.18);
	border-radius: 14px;
	background: #1e1a16;
	text-decoration: none;
	color: inherit;
	text-align: left;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.bi-promo__item:hover,
.bi-promo__item:focus-visible {
	border-color: rgba(215, 181, 109, 0.45);
	background: #221e19;
	outline: none;
}

.bi-promo__thumb {
	flex: 0 0 88px;
	width: 88px;
	height: 88px;
	border-radius: 12px;
	object-fit: cover;
	background: #2a2520;
}

.bi-promo__thumb--empty {
	display: block;
	background: linear-gradient(135deg, #2a2520, #1e1a16);
}

.bi-promo__body {
	flex: 1 1 auto;
	min-width: 0;
}

.bi-promo__name {
	margin: 0 0 0.35rem;
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: 1.2rem;
	font-weight: 500;
	color: #f6f1e7;
	line-height: 1.25;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.bi-promo__prices {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.35rem 0.55rem;
	font-family: Outfit, system-ui, sans-serif;
	font-size: 0.9rem;
}

.bi-promo__old {
	color: #8c7e6d;
	text-decoration: line-through;
}

.bi-promo__new {
	color: #f0d7a2;
	font-weight: 600;
	font-size: 1.1rem;
}

.bi-promo__swipe-hint,
.bi-promo__dots {
	display: none;
}

.bi-promo__cta {
	display: block;
	margin: 1.25rem auto 0;
	width: fit-content;
	max-width: 100%;
	padding: 0.75rem 1.35rem;
	border-radius: 999px;
	border: 0;
	background: linear-gradient(180deg, #f0d7a2, #d7b56d);
	color: #24180c;
	font-family: Outfit, system-ui, sans-serif;
	font-size: 0.92rem;
	font-weight: 600;
	cursor: pointer;
}

.bi-promo__cta:hover,
.bi-promo__cta:focus-visible {
	filter: brightness(1.05);
	outline: none;
}

@media (max-width: 640px) {
	.bi-promo {
		padding: 0.75rem;
		align-items: flex-end;
	}

	.bi-promo__dialog {
		width: 100%;
		max-height: 92vh;
		border-radius: 16px 16px 12px 12px;
		padding: 1.35rem 0 1.15rem;
		overflow-x: hidden;
	}

	.bi-promo__eyebrow,
	.bi-promo__title,
	.bi-promo__tricolor,
	.bi-promo__message {
		padding-left: 1.1rem;
		padding-right: 1.1rem;
	}

	.bi-promo__close {
		right: 0.5rem;
		z-index: 2;
	}

	.bi-promo__list {
		display: flex;
		grid-template-columns: none;
		gap: 0.85rem;
		overflow-x: auto;
		overflow-y: hidden;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: 1.1rem;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior-x: contain;
		scrollbar-width: none;
		padding: 0.15rem 1.1rem 0.35rem;
	}

	.bi-promo__list::-webkit-scrollbar {
		display: none;
	}

	.bi-promo__list > li {
		flex: 0 0 min(82vw, 300px);
		scroll-snap-align: center;
	}

	.bi-promo__item {
		padding: 1rem 1.05rem;
		gap: 1rem;
		min-height: 112px;
	}

	.bi-promo__thumb {
		flex-basis: 96px;
		width: 96px;
		height: 96px;
		border-radius: 12px;
	}

	.bi-promo__name {
		font-size: 1.25rem;
	}

	.bi-promo__prices {
		font-size: 0.95rem;
	}

	.bi-promo__new {
		font-size: 1.15rem;
	}

	.bi-promo__swipe-hint {
		display: block;
		margin: 0.65rem 1.1rem 0;
		font-family: Outfit, system-ui, sans-serif;
		font-size: 0.78rem;
		letter-spacing: 0.04em;
		color: #8c7e6d;
	}

	.bi-promo__dots {
		display: flex;
		justify-content: center;
		align-items: center;
		gap: 0.45rem;
		margin: 0.75rem 0 0;
		padding: 0;
		list-style: none;
	}

	.bi-promo__dot {
		width: 7px;
		height: 7px;
		padding: 0;
		border: 0;
		border-radius: 999px;
		background: rgba(215, 181, 109, 0.28);
		cursor: pointer;
		transition: background 0.2s ease, transform 0.2s ease;
	}

	.bi-promo__dot.is-active {
		background: #f0d7a2;
		transform: scale(1.2);
	}

	.bi-promo__cta {
		margin: 1rem auto 0;
	}
}
