/* =========================================================================
   Boiadeira Raiz - Configurador do Blend Gourmet (pagina do produto)
   Usa os tokens de cor/fonte do theme.json (verde-floresta / coral / creme).
   ========================================================================= */

.br-blend {
	--v: var(--wp--preset--color--primary, #0F3D2E);
	--v2: var(--wp--preset--color--secondary, #2D6A4F);
	--c: var(--wp--preset--color--accent, #E85D3A);
	--brd: var(--wp--preset--color--accent-5, #E6DECB);
	--ff-t: var(--wp--preset--font-family--titulo, "Alfa Slab One", serif);
	--ff-b: var(--wp--preset--font-family--corpo, Inter, sans-serif);
	margin: 2rem 0;
	display: grid;
	/* respiro entre os passos numerados */
	gap: clamp(2rem, 5.5vw, 2.75rem);
	font-family: var(--ff-b);
}

.br-blend__step > h3 {
	font-family: var(--ff-t);
	color: var(--v);
	font-size: 1.1rem;
	/* o titulo do passo nao encosta nos controles dele */
	margin: 0 0 1.1rem;
	display: flex;
	align-items: center;
	gap: 0.65rem;
	line-height: 1.2;
}
.br-blend__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.7rem;
	height: 1.7rem;
	flex: 0 0 auto;
	border-radius: 50%;
	background: var(--c);
	color: #fff;
	font-family: var(--ff-b);
	font-size: 0.78rem;
	font-weight: 700;
}
.br-blend__count {
	font-family: var(--ff-b);
	color: var(--c);
	font-size: 0.85rem;
	font-weight: 600;
	margin-left: auto;
}

/* Opcoes em cartao (formato / intensidade) */
.br-blend__opts {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.85rem;
}
.br-blend__intensidades {
	grid-template-columns: 1fr 1fr 1fr;
}
.br-blend__opt {
	position: relative;
	display: block;
	cursor: pointer;
	margin: 0;
}
.br-blend__opt input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}
.br-blend__optbody {
	display: flex;
	flex-direction: column;
	gap: 5px;
	height: 100%;
	border: 2px solid var(--brd);
	border-radius: 14px;
	padding: 1rem 1.1rem;
	background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.br-blend__opt.is-sel .br-blend__optbody,
.br-blend__opt input:checked + .br-blend__optbody {
	border-color: var(--v);
	box-shadow: 0 0 0 3px rgba(15, 61, 46, 0.08);
}
.br-blend__optbody strong {
	font-family: var(--ff-t);
	color: var(--v);
	font-size: 0.95rem;
	font-weight: 400;
}
.br-blend__optbody small {
	color: var(--v2);
	font-size: 0.78rem;
}
.br-blend__price {
	color: var(--c);
	font-weight: 700;
	font-size: 0.9rem;
	margin-top: 2px;
}

/* Folha / Palito */
.br-blend__range {
	display: block;
	width: 100%;
	accent-color: var(--v);
	/* area de arraste confortavel no toque; a trilha continua fina e centrada */
	height: 24px;
	margin: 0;
	cursor: pointer;
}
.br-blend__fpvals {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	/* afasta os percentuais da trilha do slider */
	margin-top: 0.85rem;
	color: var(--v2);
	font-size: 0.92rem;
}
.br-blend__fpvals b {
	color: var(--v);
	font-weight: 700;
}

/* Sabores */
.br-blend__sabores {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.55rem 1.5rem;
}
.br-blend__sabores label {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	/* alvo de toque confortavel (WCAG 2.5.5) */
	min-height: 44px;
	cursor: pointer;
	color: var(--wp--preset--color--contrast, #241E17);
}
.br-blend__sabores label.is-off {
	opacity: 0.4;
	cursor: not-allowed;
}
.br-blend__sabores input {
	width: 1.15rem;
	height: 1.15rem;
	flex: 0 0 auto;
	accent-color: var(--v);
}

/* Nome */
.br-blend__nome {
	display: block;
	font-weight: 600;
	color: var(--v);
}
.br-blend__nome input {
	display: block;
	box-sizing: border-box; /* sem isto, padding + borda somam a 100% e geram rolagem horizontal */
	width: 100%;
	/* o rotulo estava colado no campo */
	margin-top: 0.85rem;
	min-height: 48px;
	padding: 0.8rem 0.95rem;
	border: 2px solid var(--brd);
	border-radius: 10px;
	font-family: var(--ff-b);
	font-size: 1rem;
	background: #fff;
}
.br-blend__nome input:focus {
	outline: none;
	border-color: var(--v);
}

/* Resumo / total */
.br-blend__resumo {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	background: var(--v);
	color: var(--wp--preset--color--base, #FAF3E5);
	border-radius: 14px;
	padding: 1.15rem 1.35rem;
}
.br-blend__resumo span {
	font-weight: 600;
}
.br-blend__total {
	font-family: var(--ff-t);
	font-size: 1.45rem;
	line-height: 1;
}

@media (max-width: 520px) {
	.br-blend__opts,
	.br-blend__intensidades,
	.br-blend__sabores {
		grid-template-columns: 1fr;
	}
}
