/**
 * Prime Brand Pages 1.0.1
 * Escopo: somente body.prime-brand-page (arquivos /marca/*).
 * Não altera loja, categorias, produtos, cabeçalho nem rodapé.
 */

/* Reserva: esconde busca genérica + cards de outras categorias
   injetados pelo mu-plugin "Prime Store Customizações". */
body.prime-brand-page .prime-shop-tools {
	display: none !important;
}

/* Hero Blocksy type-2 usa o logo como fundo em tela cheia (cover + corte)
   e coloca o título por cima. Aqui o logo vira imagem contida, centralizada,
   num fundo branco (os PNGs das marcas têm fundo branco opaco). */
/* Especificidade acima do prime-ml-ui 1.0.8, que faz
   body.prime-mlui[data-prefix="woo_categories"] .hero-section[data-type="type-2"]
   { background: transparent !important }. O Blocksy põe data-prefix=woo_categories
   também nas páginas de marca. */
body.tax-product_brand.prime-brand-page[data-prefix] .hero-section[data-type="type-2"],
body.prime-brand-page .hero-section[data-type="type-2"] {
	position: relative;
	background: #ffffff !important;
	background-color: #ffffff !important;
	background-image: none !important;
	border-bottom: 1px solid #e7e2d4;
	padding: 36px 24px 32px;
	min-height: 0 !important;
	--min-height: 0;
	--container-padding: 0;
	--theme-object-fit: contain;
	--alignment: center;
}

body.prime-brand-page .hero-section[data-type="type-2"] > figure {
	position: relative !important;
	inset: auto !important;
	top: auto !important;
	right: auto !important;
	bottom: auto !important;
	left: auto !important;
	overflow: visible !important;
	z-index: 1;
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 0 auto;
	width: 100%;
	height: auto !important;
	background: transparent;
}

body.prime-brand-page .hero-section[data-type="type-2"] > figure .ct-media-container {
	position: relative !important;
	display: flex !important;
	justify-content: center;
	align-items: center;
	width: 180px !important;
	height: 180px !important;
	min-width: 180px;
	min-height: 180px;
	max-width: 100%;
	aspect-ratio: 1 / 1 !important;
	overflow: visible !important;
	background: transparent !important;
}

body.prime-brand-page .hero-section[data-type="type-2"] > figure .ct-media-container::before,
body.prime-brand-page .hero-section[data-type="type-2"] > figure .ct-media-container::after {
	display: none !important;
	content: none !important;
	padding: 0 !important;
}

body.prime-brand-page .hero-section[data-type="type-2"] > figure .ct-media-container img,
body.prime-brand-page .hero-section[data-type="type-2"] > figure img {
	position: static !important;
	inset: auto !important;
	width: 180px !important;
	height: 180px !important;
	max-width: 180px !important;
	max-height: 180px !important;
	object-fit: contain !important;
	object-position: center center !important;
	overflow: visible !important;
	display: block;
	margin: 0 auto;
	border-radius: 0;
}

body.prime-brand-page .hero-section[data-type="type-2"] > [class*="ct-container"],
body.prime-brand-page .hero-section[data-type="type-2"] .entry-header {
	position: relative !important;
	z-index: 2;
	min-height: 0 !important;
	padding: 14px 16px 0 !important;
	display: flex !important;
	flex-direction: column;
	align-items: center !important;
	justify-content: center !important;
	text-align: center !important;
	width: 100% !important;
	max-width: none !important;
	margin-left: auto !important;
	margin-right: auto !important;
	--alignment: center;
}

body.prime-brand-page .hero-section[data-type="type-2"] .page-title {
	color: #1D4A40;
	font-size: 28px;
	font-weight: 700;
	letter-spacing: 0.01em;
	margin: 0;
	line-height: 1.25;
}

body.prime-brand-page .prime-brand-intro {
	max-width: 640px;
	margin: 22px auto 8px;
	padding: 0 20px;
	text-align: center;
	color: #575757;
	font-size: 16px;
	line-height: 1.6;
}

body.prime-brand-page .prime-brand-intro p {
	margin: 0;
}

body.prime-brand-page .woocommerce-products-header {
	margin-bottom: 4px;
}

body.prime-brand-page ul.products {
	gap: 28px !important;
	margin-top: 16px;
}

@media (max-width: 800px) {
	body.prime-brand-page .hero-section[data-type="type-2"] {
		padding: 24px 16px 18px;
	}

	body.prime-brand-page .hero-section[data-type="type-2"] > figure .ct-media-container {
		width: 120px !important;
		height: 120px !important;
		min-width: 120px;
		min-height: 120px;
	}

	body.prime-brand-page .hero-section[data-type="type-2"] > figure .ct-media-container img,
	body.prime-brand-page .hero-section[data-type="type-2"] > figure img {
		width: 120px !important;
		height: 120px !important;
		max-height: 120px !important;
		max-width: 120px !important;
	}

	body.prime-brand-page .hero-section[data-type="type-2"] .page-title {
		font-size: 22px;
	}

	body.prime-brand-page .prime-brand-intro {
		font-size: 15px;
		margin-top: 16px;
	}

	body.prime-brand-page ul.products {
		gap: 20px !important;
	}
}
