/**
 * Vemax Company - Addon — Módulo Catálogo Individual.
 * Card do Single Produto (.vemax-catcard) e página do catálogo (.vemax-cat).
 */

/* ============ Card no Single Produto ============ */

.vemax-catcard {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 20px;
	border-radius: 8px;
	background-color: #16233a;
	border: 1px solid rgba(255, 255, 255, 0.05);
	text-decoration: none;
	transition-property: background-color, border-color, box-shadow, color;
	transition-duration: 300ms;
	transition-timing-function: ease;
}

.vemax-catcard:hover,
.vemax-catcard:focus-visible {
	border-color: rgba(255, 194, 0, 0.3);
}

.vemax-catcard__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 48px;
	height: 48px;
	border-radius: 8px;
	background-color: rgba(255, 194, 0, 0.12);
	color: #ffc200;
	transition-property: background-color, color;
	transition-duration: 300ms;
	transition-timing-function: ease;
}

.vemax-catcard:hover .vemax-catcard__icon {
	background-color: rgba(255, 194, 0, 0.2);
}

.vemax-catcard__icon svg {
	width: 24px;
	height: 24px;
	display: block;
}

.vemax-catcard__icon i {
	font-size: 24px;
	line-height: 1;
}

.vemax-catcard__body {
	flex: 1 1 auto;
	min-width: 0;
}

.vemax-catcard__title {
	display: block;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	color: #ffffff;
	transition-property: color;
	transition-duration: 300ms;
	transition-timing-function: ease;
}

.vemax-catcard:hover .vemax-catcard__title {
	color: #ffc200;
}

.vemax-catcard__desc {
	display: block;
	margin-top: 2px;
	font-size: 14px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.5);
}

.vemax-catcard__action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	color: rgba(255, 255, 255, 0.3);
	transition-property: color;
	transition-duration: 300ms;
	transition-timing-function: ease;
}

.vemax-catcard:hover .vemax-catcard__action {
	color: #ffc200;
}

.vemax-catcard__action svg {
	width: 20px;
	height: 20px;
	display: block;
}

/* ============ Página do catálogo ============ */

.vemax-cat {
	width: 100%;
}

/* ---- Breadcrumb ---- */

.vemax-cat__crumbs {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 32px;
	font-size: 14px;
	line-height: 20px;
	color: rgba(255, 255, 255, 0.5);
}

.vemax-cat__crumbs a {
	color: rgba(255, 255, 255, 0.5);
	text-decoration: none;
	transition: color 200ms ease;
}

.vemax-cat__crumbs a:hover,
.vemax-cat__crumbs a:focus-visible {
	color: #ffc200;
}

.vemax-cat__crumb-sep {
	display: inline-flex;
	flex: 0 0 auto;
}

.vemax-cat__crumb-sep svg {
	width: 12px;
	height: 12px;
	display: block;
}

.vemax-cat__crumb-current {
	color: rgba(255, 255, 255, 0.8);
}

/* ---- Grade ---- */

.vemax-cat__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 64px;
	align-items: start;
}

.vemax-cat__main {
	min-width: 0;
}

.vemax-cat__aside {
	min-width: 0;
}

.vemax-cat__aside--sticky {
	position: sticky;
	top: 96px;
}

/* ---- Cabeçalho ---- */

.vemax-cat__badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	border-radius: 999px;
	background-color: rgba(255, 194, 0, 0.1);
	border: 1px solid rgba(255, 194, 0, 0.25);
	color: #ffc200;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.8px;
	line-height: 1.4;
}

.vemax-cat__badge svg {
	width: 16px;
	height: 16px;
	display: block;
}

.vemax-cat__name {
	margin: 24px 0 12px;
	font-family: "Open Sans", sans-serif;
	font-size: 48px;
	font-weight: 800;
	line-height: 1.1;
	color: #ffffff;
}

.vemax-cat__subtitle {
	margin: 0 0 20px;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.4;
	color: #ffc200;
}

.vemax-cat__description {
	margin: 0 0 32px;
	font-size: 18px;
	line-height: 1.625;
	color: rgba(255, 255, 255, 0.7);
}

/* ---- Imagem ---- */

.vemax-cat__media {
	margin-bottom: 32px;
	border-radius: 16px;
	background-color: #16233a;
	border: 1px solid rgba(255, 255, 255, 0.05);
	overflow: hidden;
}

.vemax-cat__media-figure {
	aspect-ratio: 4 / 3;
	padding: 32px;
	background-color: #1b2942;
}

.vemax-cat__image {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.vemax-cat__media-bar {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 20px;
}

.vemax-cat__media-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background-color: rgba(255, 194, 0, 0.14);
	color: #ffc200;
}

.vemax-cat__media-icon svg {
	width: 20px;
	height: 20px;
	display: block;
}

.vemax-cat__media-text {
	min-width: 0;
}

.vemax-cat__media-title {
	display: block;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
	color: #ffffff;
}

.vemax-cat__media-file {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.45);
}

/* ---- Lista ---- */

.vemax-cat__contents-title {
	margin: 0 0 16px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.4;
	color: #ffffff;
}

.vemax-cat__contents-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.vemax-cat__contents-item {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.7);
}

.vemax-cat__contents-item svg {
	width: 16px;
	height: 16px;
	flex: 0 0 auto;
	color: #ffc200;
	display: block;
}

/* ---- Painel ---- */

.vemax-cat__panel {
	padding: 32px;
	border-radius: 16px;
	background-color: #16233a;
	border: 1px solid rgba(255, 255, 255, 0.05);
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
}

.vemax-cat__panel[hidden] {
	display: none;
}

.vemax-cat__panel-head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 24px;
}

.vemax-cat__panel-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background-color: rgba(255, 194, 0, 0.14);
	color: #ffc200;
}

.vemax-cat__panel-icon svg {
	width: 24px;
	height: 24px;
	display: block;
}

.vemax-cat__panel-title {
	display: block;
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.4;
	color: #ffffff;
}

.vemax-cat__panel-text {
	display: block;
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.55);
}

.vemax-cat__notice {
	margin-bottom: 16px;
}

/* ---- Formulário ---- */

.vemax-cat__form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.vemax-cat__field {
	display: block;
}

.vemax-cat__input {
	width: 100%;
	padding: 12px 14px;
	border-radius: 8px;
	background-color: #1b2942;
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: #ffffff;
	font-size: 15px;
	line-height: 1.5;
	transition: border-color 200ms ease;
}

.vemax-cat__input::placeholder {
	color: rgba(255, 255, 255, 0.3);
}

.vemax-cat__input:focus {
	outline: none;
	border-color: #ffc200;
}

.vemax-cat__hint {
	margin: 6px 0 0;
	font-size: 12px;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.4);
}

.vemax-cat__error {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: #ff8f8f;
}

.vemax-cat__error[hidden] {
	display: none;
}

/* Honeypot: fora da tela, sem display:none (bots ignoram o oculto). */
.vemax-cat__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---- Botões ---- */

.vemax-cat__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 14px 20px;
	border: 1px solid transparent;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease, transform 200ms ease;
}

.vemax-cat__button svg {
	width: 20px;
	height: 20px;
	display: block;
}

.vemax-cat__button--primary {
	background-color: #ffc200;
	color: #14203a;
}

.vemax-cat__button--primary:hover {
	background-color: #e5ae00;
}

.vemax-cat__button--primary:active {
	transform: scale(0.97);
}

.vemax-cat__button--primary[disabled] {
	opacity: 0.65;
	cursor: not-allowed;
}

.vemax-cat__button--ghost {
	margin-top: 12px;
	background-color: transparent;
	border-color: rgba(255, 255, 255, 0.15);
	color: #ffffff;
}

.vemax-cat__button--ghost:hover {
	background-color: rgba(255, 255, 255, 0.05);
}

.vemax-cat__consent {
	margin: 0;
	font-size: 12px;
	line-height: 1.5;
	text-align: center;
	color: rgba(255, 255, 255, 0.4);
}

/* ---- Sucesso ---- */

.vemax-cat__panel--success {
	text-align: center;
	border-color: rgba(255, 194, 0, 0.32);
}

.vemax-cat__panel--success:focus {
	outline: none;
}

.vemax-cat__success-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin: 0 auto 16px;
	border-radius: 999px;
	background-color: rgba(255, 194, 0, 0.14);
	color: #ffc200;
}

.vemax-cat__success-icon svg {
	width: 32px;
	height: 32px;
	display: block;
}

.vemax-cat__panel--success .vemax-cat__panel-title {
	font-size: 20px;
	margin-bottom: 8px;
}

.vemax-cat__panel--success .vemax-cat__panel-text {
	margin-bottom: 24px;
}

/* ---- Responsivo ---- */

@media (max-width: 1024px) {
	.vemax-cat__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
	}

	.vemax-cat__aside--sticky {
		position: static;
	}

	.vemax-cat__name {
		font-size: 36px;
	}
}

@media (max-width: 767px) {
	.vemax-cat__name {
		font-size: 30px;
	}

	.vemax-cat__contents-list {
		grid-template-columns: minmax(0, 1fr);
	}

	.vemax-cat__panel {
		padding: 24px;
	}

	/*
	 * No mobile o ícone fica no início da linha, ao lado do texto. O
	 * `flex-wrap: wrap` anterior empurrava o ícone sozinho para a primeira
	 * linha — ele aparecia acima do conteúdo, e não ao lado dele.
	 */
	.vemax-catcard {
		flex-wrap: nowrap;
		align-items: flex-start;
		gap: 12px;
	}

	/* Sem encolher: o texto longo não pode espremer o ícone. */
	.vemax-catcard__icon {
		flex: 0 0 auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.vemax-catcard,
	.vemax-catcard__icon,
	.vemax-catcard__title,
	.vemax-catcard__action,
	.vemax-cat__button,
	.vemax-cat__input {
		transition: none;
	}

	.vemax-cat__button--primary:active {
		transform: none;
	}
}
