/*
 * Wholesale offer — Horizonte do Açaí
 * Shop promo block, product-page hint and cart progress bar.
 */

.hda-promo,
.hda-wholesale-bar,
.hda-wholesale-hint {
	--hda-w-deep: var(--e-global-color-6597c5e, #261559);
	--hda-w-purple: var(--e-global-color-e02c158, #471ea7);
	--hda-w-soft: #f1ecfb;
	--hda-w-ink: #2c2640;
	--hda-w-ink-soft: #6b6580;
	--hda-w-line: rgba(60, 40, 100, 0.12);
	--hda-w-green: #14793a;
	--hda-w-font: var(--e-global-typography-text-font-family, "Roboto"), sans-serif;
}

/* ---------- Shop promo block ---------- */

.hda-promo {
	margin: 0 0 24px;
	padding: 24px 26px;
	border: 1px solid var(--hda-w-line);
	border-radius: 16px;
	background: linear-gradient(135deg, #fff 0%, var(--hda-w-soft) 100%);
	box-shadow: 0 8px 30px rgba(30, 20, 60, 0.06);
	font-family: var(--hda-w-font);
}

.hda-promo__head {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin-bottom: 18px;
}

.hda-promo__icon {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 46px;
	height: 46px;
	border-radius: 12px;
	background: var(--hda-w-purple);
	color: #fff;
}

.hda-promo__title {
	margin: 0 0 4px;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--hda-w-deep);
}

.hda-promo__sub {
	margin: 0;
	font-size: 14px;
	line-height: 1.45;
	color: var(--hda-w-ink-soft);
}

.hda-promo__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hda-promo__item {
	margin: 0;
	list-style: none;
}

.hda-promo__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	height: 100%;
	padding: 13px 15px;
	border: 1px solid var(--hda-w-line);
	border-radius: 12px;
	background: #fff;
	/* Todo o texto visível vive nos filhos, que têm cor própria. A cor aqui é
	   explícita mesmo assim: o link deixou de herdar o roxo global quando o
	   namespace .hda- passou a ser excluído daquela regra. */
	color: var(--hda-w-deep);
	text-decoration: none;
	transition: border-color 0.15s ease, transform 0.15s ease;
}

.hda-promo__link:hover {
	border-color: var(--hda-w-purple);
	transform: translateY(-1px);
}

.hda-promo__link:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(71, 30, 167, 0.35);
}

.hda-promo__name {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--hda-w-deep);
}

.hda-promo__prices {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	flex-shrink: 0;
	line-height: 1.2;
}

.hda-promo__was,
.hda-promo__was .amount {
	font-size: 12.5px;
	font-weight: 400;
	color: var(--hda-w-ink-soft);
	text-decoration: line-through;
}

.hda-promo__now,
.hda-promo__now .amount {
	font-size: 17px;
	font-weight: 700;
	color: var(--hda-w-green);
	white-space: nowrap;
}

.hda-promo__note {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 16px 0 0;
	padding-top: 14px;
	border-top: 1px solid var(--hda-w-line);
	font-size: 13px;
	line-height: 1.45;
	color: var(--hda-w-ink-soft);
}

.hda-promo__note .hda-icon {
	flex-shrink: 0;
	margin-top: 2px;
	color: var(--hda-w-green);
}

/* ---------- Product page hint ---------- */

.hda-wholesale-hint {
	display: block;
	margin-top: 8px;
	font-family: var(--hda-w-font);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
	color: var(--hda-w-ink-soft);
}

.hda-wholesale-hint strong {
	font-weight: 600;
	color: var(--hda-w-ink);
}

.hda-wholesale-hint .amount {
	font-weight: 700;
	color: var(--hda-w-green);
}

/* ---------- Cart progress bar ---------- */

.hda-wholesale-bar {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 16px;
	padding: 13px 16px;
	border-radius: 12px;
	font-family: var(--hda-w-font);
	font-size: 14.5px;
	font-weight: 600;
}

.hda-wholesale-bar.is-on {
	background: #e7f6ec;
	color: var(--hda-w-green);
}

.hda-wholesale-bar.is-near {
	background: var(--hda-w-soft);
	color: var(--hda-w-deep);
}

.hda-wholesale-bar .hda-icon {
	flex-shrink: 0;
}

@media (max-width: 600px) {
	.hda-promo {
		padding: 20px 16px;
	}

	.hda-promo__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.hda-promo__title {
		font-size: 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hda-promo__link {
		transition: none;
	}
}
