/**
 * Eletricx — página individual do produto.
 * Medidas transcritas de design/DISJUNTORES.pdf (canvas de 1650px: o miolo de
 * conteúdo tem 1216px, que é a largura usada aqui; o painel cinza extrapola
 * 112px para cada lado, como na referência).
 *
 * Escopado por body.elx-product-page. Os tokens de cor e o card do produto vêm
 * de catalog.css, que é dependência desta folha.
 */

.elx-product-page {
	--elx-prod-inner: 1213px;
	--elx-prod-pad: 112px;
	--elx-prod-panel-radius: 35px;
	--elx-prod-gallery: 696px;
	--elx-prod-summary: 488px;
	--elx-prod-col-gap: 32px;
	--elx-tint-15: rgba(84, 160, 123, 0.15);
	--elx-line-soft: #dbdbdb;
	--elx-pix-text: #5c5c5c;
}

/* ------------------------------------------------------------- migalhas -- */

/* O OceanWP substitui as migalhas do WooCommerce pelas dele (.site-breadcrumbs),
   por isso as duas marcações estão contempladas.
   A regra do tema é feita para o cabeçalho de página: posiciona as migalhas em
   absoluto à direita, com altura fixa de 32px, metade da largura e o texto numa
   linha só, cortado. Aqui elas voltam ao fluxo normal, alinhadas à esquerda e
   livres para quebrar. */
.elx-product-page #elx-prod-breadcrumb .woocommerce-breadcrumb,
.elx-product-page #elx-prod-breadcrumb .site-breadcrumbs,
.elx-product-page #elx-prod-breadcrumb .woocommerce-breadcrumbs {
	position: static;
	right: auto;
	top: auto;
	max-width: none;
	height: auto;
	margin: 0;
	padding: 0;
	font-family: var(--elx-sans);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.4;
	color: var(--elx-text);
	border: 0;
	/* O nome do produto é longo: precisa poder quebrar em telas estreitas. */
	white-space: normal;
	overflow: visible;
	overflow-wrap: anywhere;
}

.elx-product-page #elx-prod-breadcrumb .elx-crumb,
.elx-product-page #elx-prod-breadcrumb .elx-crumb a {
	color: var(--elx-text);
	font-weight: 400;
	text-decoration: none;
}

/* O separador do tema é um ">"; o layout usa "/". */
.elx-product-page #elx-prod-breadcrumb .elx-crumb__sep,
.elx-product-page #elx-prod-breadcrumb .breadcrumb-sep {
	margin: 0 7px;
	color: var(--elx-text);
	font-size: 0;
}

.elx-product-page #elx-prod-breadcrumb .elx-crumb__sep::after,
.elx-product-page #elx-prod-breadcrumb .breadcrumb-sep::after {
	content: "/";
	font-size: 15px;
}

/* O último item é a página aberta — em verde escuro, como na referência. */
.elx-product-page #elx-prod-breadcrumb .elx-crumb:last-of-type,
.elx-product-page #elx-prod-breadcrumb .elx-crumb:last-of-type a {
	color: var(--elx-green-dark);
	font-weight: 700;
}

.elx-product-page #elx-prod-breadcrumb .elx-crumb a:hover {
	color: var(--elx-green);
	text-decoration: underline;
}

/* ----------------------------------------------------- painel principal -- */

/* O painel cinza é mais largo que o miolo de conteúdo (1437 = 1213 + 112 de
   cada lado), exatamente como na referência. O fundo é pintado pelo Elementor
   no próprio contêiner, então é ele que precisa ser estreitado. */
.elx-product-page #elx-prod-main,
.elx-product-page #elx-prod-tabs-panel {
	width: min(100%, 1437px);
	margin-inline: auto;
	background: var(--elx-soft);
	border-radius: var(--elx-prod-panel-radius);
}

.elx-product-page #elx-prod-main > .e-con-inner,
.elx-product-page #elx-prod-tabs-panel > .e-con-inner {
	max-width: none;
}

/* A galeria ocupa o que sobra; o resumo mantém a largura definida no painel. */
.elx-product-page #elx-prod-gallery {
	flex: 1 1 auto;
	min-width: 0;
}

.elx-product-page #elx-prod-summary {
	flex: 0 0 auto;
}

/* --------------------------------------------------------------- galeria -- */

.elx-product-page #elx-prod-gallery {
	min-width: 0;
}

.elx-product-page .woocommerce-product-gallery {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: 25px;
	width: 100%;
	margin: 0;
	position: relative;
	float: none;
	opacity: 1 !important;
}

/* 567px é a largura da caixa branca na referência. O FlexSlider escreve uma
   altura inline no visor; zerando-a, quem manda é a proporção definida abaixo,
   e a caixa fica do mesmo tamanho em todas as fotos. */
.elx-product-page .woocommerce-product-gallery .flex-viewport,
.elx-product-page .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper {
	flex: 1 1 auto;
	min-width: 0;
	width: auto;
	max-width: 567px;
	height: auto !important;
	border-radius: var(--elx-prod-panel-radius);
	overflow: hidden;
}

.elx-product-page .woocommerce-product-gallery__wrapper {
	margin: 0;
	padding: 0;
}

.elx-product-page .woocommerce-product-gallery__image {
	background: #fff;
	border-radius: var(--elx-prod-panel-radius);
	overflow: hidden;
}

/* A caixa branca guarda a proporção da referência (567 × 754) e a foto fica
   centralizada dentro dela, inteira — nunca cortada. */
.elx-product-page .woocommerce-product-gallery__image > a,
.elx-product-page .woocommerce-product-gallery__image > img {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 567 / 754;
	padding: 40px;
	box-sizing: border-box;
	/* A lupa do WooCommerce injeta uma cópia ampliada da foto; sem o corte aqui
	   ela vaza para fora da caixa em telas estreitas. */
	overflow: hidden;
}

.elx-product-page .woocommerce-product-gallery__image img {
	width: auto;
	max-width: 100%;
	max-height: 100%;
	height: auto;
	object-fit: contain;
	margin: 0;
}

.elx-product-page .woocommerce-product-gallery__image > img {
	padding: 40px;
}

/* Miniaturas na coluna da esquerda. */
.elx-product-page .flex-control-thumbs {
	order: -1;
	flex: 0 0 104px;
	width: 104px;
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* O WooCommerce distribui as miniaturas em colunas
   (`.woocommerce-product-gallery--columns-4 .flex-control-thumbs li{width:22%;float:left}`,
   0-5-3). Como aqui elas viram uma coluna vertical, a largura precisa vencer
   aquela regra — daí o !important nestas duas propriedades. */
.elx-product-page .flex-control-thumbs li {
	float: none !important;
	width: 104px !important;
	height: 104px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.elx-product-page .flex-control-thumbs img {
	width: 100%;
	height: 100%;
	padding: 8px;
	box-sizing: border-box;
	object-fit: contain;
	background: #fff;
	border: 1px solid transparent;
	border-radius: 15px;
	opacity: 1;
	cursor: pointer;
	transition: border-color 0.18s ease, transform 0.18s ease;
}

.elx-product-page .flex-control-thumbs img.flex-active,
.elx-product-page .flex-control-thumbs img:hover {
	border-color: var(--elx-green);
}

.elx-product-page .woocommerce-product-gallery__trigger {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 2;
	width: 38px;
	height: 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--elx-tint);
	color: var(--elx-green);
	font-size: 15px;
	text-decoration: none;
}

.elx-product-page .woocommerce-product-gallery__trigger img {
	width: 16px;
	height: 16px;
	margin: 0;
}

/* Selo de promoção do WooCommerce, na forma do layout. */
.elx-product-page #elx-prod-gallery span.onsale {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 2;
	min-height: 0;
	min-width: 0;
	margin: 0;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--elx-green);
	color: #fff;
	font-family: var(--elx-sans);
	font-weight: 700;
	font-size: 12px;
	line-height: 1.2;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.elx-product-page #elx-prod-gallery {
	position: relative;
}

/* ------------------------------------------------------------- resumo -- */

.elx-product-page #elx-prod-summary {
	min-width: 0;
}

.elx-product-page #elx-prod-brand .elx-product-meta {
	display: block;
	font-family: var(--elx-display);
	font-weight: 700;
	font-size: 22px;
	line-height: 1.2;
	color: var(--elx-green);
	text-transform: uppercase;
	letter-spacing: 0.01em;
}

.elx-product-page #elx-prod-title .elementor-heading-title,
.elx-product-page #elx-prod-title h1 {
	font-family: var(--elx-display);
	font-weight: 700;
	font-size: 32px;
	line-height: 1.25;
	color: var(--elx-ink);
	margin: 0;
	padding: 0;
	/* O tema desenha um filete sob o título do produto. */
	border: 0;
}

/* --------------------------------------------------------- avaliações -- */

.elx-product-page .elx-rating {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.elx-product-page .elx-stars {
	--elx-star: var(--elx-green);
	--elx-star-empty: rgba(84, 160, 123, 0.25);
	--elx-star-size: 20px;
	position: relative;
	display: inline-block;
	line-height: 0;
	white-space: nowrap;
}

.elx-product-page .elx-stars__base,
.elx-product-page .elx-stars__fill {
	display: inline-flex;
	gap: 3px;
	line-height: 0;
}

.elx-product-page .elx-stars svg {
	width: var(--elx-star-size);
	height: var(--elx-star-size);
	flex: 0 0 auto;
	fill: currentColor;
}

.elx-product-page .elx-stars__base {
	color: var(--elx-star-empty);
}

.elx-product-page .elx-stars__fill {
	position: absolute;
	inset: 0;
	overflow: hidden;
	color: var(--elx-star);
}

.elx-product-page .elx-rating__count {
	font-family: var(--elx-display);
	font-weight: 700;
	font-size: 18px;
	line-height: 1.2;
	color: var(--elx-text);
	text-decoration: none;
}

.elx-product-page a.elx-rating__count:hover {
	color: var(--elx-green);
}

/* -------------------------------------------------------------- preço -- */

.elx-product-page #elx-prod-price {
	background: var(--elx-tint-15);
	border-radius: 25px;
	padding: 18px 27px 22px;
	gap: 4px;
}

.elx-product-page #elx-prod-price > .e-con-inner {
	max-width: none;
}

/* Produto sem preço cadastrado (orçamento sob consulta): a caixa inteira some,
   em vez de deixar um retângulo verde vazio. */
.elx-product-page #elx-prod-price:not(:has(.price:not(:empty))) {
	display: none;
}

/* O tema publica `.price { font-size: … !important; color: … !important }` no
   CSS do personalizador; sem o !important aqui o preço voltaria ao estilo dele. */
.elx-product-page #elx-prod-price .price,
.elx-product-page #elx-prod-price .elementor-widget-woocommerce-product-price .price {
	display: block;
	margin: 0;
	font-family: var(--elx-display);
	font-weight: 800;
	font-size: 40px !important;
	line-height: 1.2;
	color: var(--elx-ink) !important;
}

.elx-product-page #elx-prod-price .price:empty {
	display: none;
}

/* Faixa de preço dos produtos variáveis: os valores ficam em spans próprios,
   que o tema também pinta. */
.elx-product-page #elx-prod-price .price > .woocommerce-Price-amount,
.elx-product-page #elx-prod-price .price > .amount,
.elx-product-page #elx-prod-price .price ins .woocommerce-Price-amount {
	color: var(--elx-ink) !important;
}

.elx-product-page #elx-prod-price del {
	display: block;
	margin: 0 0 2px;
	font-family: var(--elx-sans);
	font-weight: 500;
	font-size: 16px !important;
	line-height: 1.2;
	color: var(--elx-green) !important;
	opacity: 1;
	text-decoration: line-through;
}

.elx-product-page #elx-prod-price ins {
	display: block;
	background: none;
	text-decoration: none;
	color: var(--elx-ink) !important;
}

/* Produto variável: a faixa "R$ 10 – R$ 40" cabe em duas linhas sem estourar. */
.elx-product-page #elx-prod-price .price .woocommerce-Price-amount {
	white-space: nowrap;
}

.elx-product-page .elx-product-meta--pix-price {
	display: block;
	font-family: var(--elx-sans);
	font-weight: 500;
	font-size: 14px;
	line-height: 1.4;
	color: var(--elx-pix-text);
}

.elx-product-page .elx-product-meta--pix-price .elx-product-meta__em {
	font-weight: 800;
	color: var(--elx-green);
}

/* ------------------------------------------------------- características -- */

.elx-product-page .elx-features {
	--elx-feature-icon: 36px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.elx-product-page .elx-features__item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.elx-product-page .elx-features__icon {
	flex: 0 0 var(--elx-feature-icon);
	width: var(--elx-feature-icon);
	height: var(--elx-feature-icon);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--elx-green);
}

.elx-product-page .elx-features__icon img,
.elx-product-page .elx-features__icon svg {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.elx-product-page .elx-features__icon--font {
	font-size: calc(var(--elx-feature-icon) * 0.8);
}

.elx-product-page .elx-features__text {
	font-family: var(--elx-sans);
	font-weight: 400;
	font-size: 15px;
	line-height: 1.47;
	color: var(--elx-text);
	padding-top: 6px;
}

/* --------------------------------------------------------------- frete -- */

.elx-product-page .elx-ship {
	border: 1px solid var(--elx-line-soft);
	border-radius: 25px;
	padding: 17px 27px 20px;
	background: transparent;
}

.elx-product-page .elx-ship__head {
	display: flex;
	align-items: center;
	gap: 9px;
	margin-bottom: 8px;
}

.elx-product-page .elx-ship__icon {
	flex: 0 0 34px;
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--elx-green);
}

.elx-product-page .elx-ship__icon svg {
	width: 100%;
	height: 100%;
}

.elx-product-page .elx-ship__icon svg path {
	fill: currentColor;
}

.elx-product-page .elx-ship__icon--font {
	font-size: 22px;
}

.elx-product-page .elx-ship__title {
	font-family: var(--elx-sans);
	font-weight: 700;
	font-size: 14px;
	line-height: 1.3;
	color: var(--elx-ink);
}

.elx-product-page .elx-ship__form {
	display: flex;
	align-items: center;
	gap: 6px;
}

.elx-product-page .elx-ship__cep {
	flex: 1 1 auto;
	min-width: 0;
	height: 50px;
	padding: 0 18px;
	border: 1px solid transparent;
	border-radius: var(--elx-radius-field);
	background: #fff;
	font-family: var(--elx-sans);
	font-weight: 500;
	font-size: 14px;
	color: var(--elx-text);
	box-shadow: none;
	max-width: none;
}

.elx-product-page .elx-ship__cep::placeholder {
	color: var(--elx-text);
	opacity: 0.75;
}

.elx-product-page .elx-ship__cep:focus {
	border-color: var(--elx-green);
	outline: none;
}

.elx-product-page .elx-ship.is-error .elx-ship__cep {
	border-color: #c0392b;
}

.elx-product-page .elx-ship__btn {
	flex: 0 0 114px;
	height: 50px;
	border: 0;
	border-radius: var(--elx-radius-field);
	background: var(--elx-green);
	color: #fff;
	font-family: var(--elx-sans);
	font-weight: 700;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.18s ease;
}

.elx-product-page .elx-ship__btn:hover,
.elx-product-page .elx-ship__btn:focus-visible {
	background: var(--elx-green-hover);
}

.elx-product-page .elx-ship__btn[disabled] {
	opacity: 0.6;
	cursor: progress;
}

.elx-product-page .elx-ship__lookup {
	display: inline-block;
	margin-top: 8px;
	font-family: var(--elx-sans);
	font-size: 12px;
	color: var(--elx-muted);
	text-decoration: underline;
}

.elx-product-page .elx-ship__lookup:hover {
	color: var(--elx-green);
}

.elx-product-page .elx-ship__result {
	display: none;
}

.elx-product-page .elx-ship__result.is-open {
	display: block;
	margin-top: 14px;
}

.elx-product-page .elx-ship__rates {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.elx-product-page .elx-ship__rate {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: baseline;
	gap: 2px 12px;
	margin: 0;
	padding: 10px 14px;
	border-radius: var(--elx-radius-field);
	background: #fff;
	list-style: none;
}

.elx-product-page .elx-ship__rate-name {
	font-family: var(--elx-sans);
	font-weight: 600;
	font-size: 14px;
	color: var(--elx-ink);
}

.elx-product-page .elx-ship__rate-caption {
	grid-column: 1;
	font-family: var(--elx-sans);
	font-size: 12px;
	color: var(--elx-muted);
}

.elx-product-page .elx-ship__rate-price {
	grid-column: 2;
	grid-row: 1 / span 2;
	align-self: center;
	font-family: var(--elx-display);
	font-weight: 800;
	font-size: 16px;
	color: var(--elx-ink);
	white-space: nowrap;
}

.elx-product-page .elx-ship__rate-price.is-free {
	color: var(--elx-green);
}

.elx-product-page .elx-ship__msg {
	margin: 0;
	font-family: var(--elx-sans);
	font-size: 13px;
	line-height: 1.45;
	color: var(--elx-text);
}

.elx-product-page .elx-ship__msg--error {
	color: #c0392b;
}

.elx-product-page .elx-ship__dest {
	margin: 8px 0 0;
	font-family: var(--elx-sans);
	font-size: 12px;
	color: var(--elx-muted);
}

/* ------------------------------------------------ quantidade + comprar -- */

.elx-product-page #elx-prod-cart form.cart {
	display: flex;
	align-items: center;
	gap: 21px;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	/* O tema desenha filetes acima e abaixo do formulário; o layout não os tem. */
	border: 0;
}

/* O clearfix do tema (::before/::after) vira um item flex e rouba um vão de
   21px do botão. Sem ele a linha fecha exatamente na largura da coluna. */
.elx-product-page #elx-prod-cart form.cart::before,
.elx-product-page #elx-prod-cart form.cart::after,
.elx-product-page #elx-prod-cart .woocommerce-variation-add-to-cart::before,
.elx-product-page #elx-prod-cart .woocommerce-variation-add-to-cart::after {
	display: none;
}

/* Produto variável: a tabela de variações fica acima e só a última linha
   (quantidade + botão) volta a ser a barra do layout. */
.elx-product-page #elx-prod-cart form.variations_form {
	display: block;
}

.elx-product-page #elx-prod-cart .woocommerce-variation-add-to-cart {
	display: flex;
	align-items: center;
	gap: 21px;
	flex-wrap: wrap;
}

.elx-product-page #elx-prod-cart .quantity {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex: 0 0 104px;
	width: 104px;
	min-width: 0;
	max-width: 104px;
	height: 50px;
	padding: 0 6px;
	box-sizing: border-box;
	background: #fff;
	border-radius: var(--elx-radius-field);
	margin: 0;
}

.elx-product-page #elx-prod-cart .quantity input.qty {
	width: 44px;
	min-width: 0;
	max-width: none;
	height: 46px;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	text-align: center;
	font-family: var(--elx-sans);
	font-weight: 700;
	font-size: 14px;
	color: var(--elx-text);
	-moz-appearance: textfield;
}

.elx-product-page #elx-prod-cart .quantity input.qty::-webkit-outer-spin-button,
.elx-product-page #elx-prod-cart .quantity input.qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Os botões "-" e "+" são os do tema; aqui só recebem a forma do layout. */
.elx-product-page #elx-prod-cart .quantity .minus,
.elx-product-page #elx-prod-cart .quantity .plus,
.elx-product-page #elx-prod-cart .quantity .qty-minus,
.elx-product-page #elx-prod-cart .quantity .qty-plus,
.elx-product-page #elx-prod-cart .quantity button {
	flex: 0 0 22px;
	width: 22px;
	height: 46px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	background: transparent;
	color: var(--elx-text);
	font-family: var(--elx-sans);
	font-weight: 500;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	border-radius: 8px;
}

.elx-product-page #elx-prod-cart .quantity .minus:hover,
.elx-product-page #elx-prod-cart .quantity .plus:hover,
.elx-product-page #elx-prod-cart .quantity .qty-minus:hover,
.elx-product-page #elx-prod-cart .quantity .qty-plus:hover {
	color: var(--elx-green);
	background: var(--elx-tint);
}

.elx-product-page #elx-prod-cart .single_add_to_cart_button,
.elx-product-page #elx-prod-cart button.button.alt {
	flex: 1 1 240px;
	min-height: 50px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 0;
	padding: 0 24px;
	border: 0;
	border-radius: var(--elx-radius-field);
	background: var(--elx-green);
	color: #fff;
	font-family: var(--elx-sans);
	font-weight: 700;
	font-size: 14px;
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: 0.01em;
	transition: background-color 0.18s ease, transform 0.18s ease;
}

.elx-product-page #elx-prod-cart .single_add_to_cart_button::before {
	content: "";
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
	background: currentColor;
	-webkit-mask: var(--elx-cart-icon) center / contain no-repeat;
	mask: var(--elx-cart-icon) center / contain no-repeat;
}

.elx-product-page #elx-prod-cart {
	--elx-cart-icon: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E");
}

.elx-product-page #elx-prod-cart .single_add_to_cart_button:hover,
.elx-product-page #elx-prod-cart .single_add_to_cart_button:focus-visible {
	background: var(--elx-green-hover);
}

.elx-product-page #elx-prod-cart .single_add_to_cart_button.disabled,
.elx-product-page #elx-prod-cart .single_add_to_cart_button[disabled] {
	background: var(--elx-line);
	cursor: not-allowed;
}

/* A disponibilidade sai do próprio WooCommerce, acima da linha de compra.
   Mesmo selo (pílula com ponto) usado na página de favoritos. */
.elx-product-page #elx-prod-cart .stock {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 30px;
	margin: 0 0 12px;
	padding: 0 12px;
	border-radius: 999px;
	background: var(--elx-tint);
	font-family: var(--elx-sans);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--elx-green-dark);
}

.elx-product-page #elx-prod-cart .stock::before {
	content: "";
	width: 8px;
	height: 8px;
	flex: 0 0 8px;
	border-radius: 50%;
	background: currentColor;
}

.elx-product-page #elx-prod-cart .stock.out-of-stock {
	background: rgba(192, 57, 43, 0.1);
	color: #c0392b;
}

.elx-product-page #elx-prod-cart .stock.available-on-backorder {
	background: rgba(230, 162, 60, 0.16);
	color: #8a5a12;
}

/* Revisão 15/09 (item 29): quantidade, comprar e favoritos na mesma linha.
   O contêiner #elx-prod-buy (linha, alinhado pela base) guarda o widget de
   compra e o coração; o selo de estoque continua acima do formulário. */
.elx-product-page #elx-prod-buy {
	align-items: flex-end;
}

.elx-product-page #elx-prod-buy > #elx-prod-cart {
	flex: 1 1 0;
	width: auto;
	min-width: 0;
}

.elx-product-page #elx-prod-buy > #elx-prod-wish {
	flex: 0 0 auto;
	width: auto;
}

.elx-product-page #elx-prod-buy .single_add_to_cart_button,
.elx-product-page #elx-prod-buy button.button.alt {
	flex: 1 1 200px;
	padding: 0 18px;
}

.elx-product-page #elx-prod-buy .elx-wishbtn {
	margin: 0;
}

/* Só o coração, num quadrado da altura do botão de compra; o texto continua
   no aria-label e no title do botão. */
.elx-product-page #elx-prod-buy .elx-wish--inline {
	width: 50px;
	height: 50px;
	padding: 0;
	justify-content: center;
}

.elx-product-page #elx-prod-buy .elx-wish--inline .elx-wish__icon {
	width: 22px;
	height: 22px;
}

/* Seleção de variações. */
.elx-product-page #elx-prod-cart table.variations {
	width: 100%;
	margin: 0 0 18px;
	border: 0;
	background: transparent;
}

/* Rótulo em cima e campo ocupando a largura toda, como os demais campos. */
.elx-product-page #elx-prod-cart table.variations,
.elx-product-page #elx-prod-cart table.variations tbody,
.elx-product-page #elx-prod-cart table.variations tr,
.elx-product-page #elx-prod-cart table.variations th,
.elx-product-page #elx-prod-cart table.variations td {
	display: block;
	width: 100%;
	border: 0;
	background: transparent;
	text-align: left;
}

.elx-product-page #elx-prod-cart table.variations th {
	padding: 0 0 6px;
}

.elx-product-page #elx-prod-cart table.variations td {
	padding: 0 0 14px;
}

.elx-product-page #elx-prod-cart table.variations label {
	display: block;
	font-family: var(--elx-sans);
	font-weight: 600;
	font-size: 14px;
	color: var(--elx-ink);
	margin: 0;
	text-transform: none;
}

.elx-product-page #elx-prod-cart table.variations select {
	width: 100%;
	height: 50px;
	padding: 0 16px;
	border: 1px solid var(--elx-line-soft);
	border-radius: var(--elx-radius-field);
	background-color: #fff;
	font-family: var(--elx-sans);
	font-size: 14px;
	color: var(--elx-text);
}

.elx-product-page #elx-prod-cart .woocommerce-variation-price .price {
	display: block;
	margin: 0 0 6px;
	font-family: var(--elx-display);
	font-weight: 800;
	font-size: 28px !important;
	line-height: 1.2;
	color: var(--elx-ink) !important;
}

.elx-product-page #elx-prod-cart .woocommerce-variation-price del {
	font-family: var(--elx-sans);
	font-weight: 500;
	font-size: 15px !important;
	color: var(--elx-green) !important;
	opacity: 1;
}

.elx-product-page #elx-prod-cart .woocommerce-variation-price ins {
	background: none;
	text-decoration: none;
	color: var(--elx-ink) !important;
}

.elx-product-page #elx-prod-cart .woocommerce-variation-availability .stock {
	margin: 0 0 12px;
}

.elx-product-page #elx-prod-cart .reset_variations {
	font-family: var(--elx-sans);
	font-size: 13px;
	color: var(--elx-muted);
}

/* ---------------------------------------------------------------- abas -- */

.elx-product-page .elx-tabs {
	--elx-tab-height: 50px;
	--elx-tab-divider: var(--elx-green);
}

.elx-product-page .elx-tabs__nav {
	display: flex;
	align-items: stretch;
	min-height: var(--elx-tab-height);
	border: 1.5px solid var(--elx-green);
	border-radius: var(--elx-radius-field);
	overflow: hidden;
}

.elx-product-page .elx-tabs__tab {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
	padding: 0 14px;
	border: 0;
	background: transparent;
	color: var(--elx-green);
	font-family: var(--elx-sans);
	font-weight: 700;
	font-size: 16px;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.18s ease, color 0.18s ease;
}

.elx-product-page .elx-tabs__tab + .elx-tabs__tab::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 2px;
	height: 20px;
	background: var(--elx-tab-divider);
}

.elx-product-page .elx-tabs__tab[aria-selected="true"] {
	background: var(--elx-tint-15);
}

.elx-product-page .elx-tabs__tab:hover {
	background: rgba(84, 160, 123, 0.08);
}

.elx-product-page .elx-tabs__tab:focus-visible {
	outline: 2px solid var(--elx-green-dark);
	outline-offset: -4px;
}

.elx-product-page .elx-tabs__panels {
	padding: 30px 83px 0;
}

.elx-product-page .elx-tabs__panel {
	font-family: var(--elx-sans);
	font-weight: 400;
	font-size: 16px;
	line-height: 1.62;
	color: var(--elx-text);
}

.elx-product-page .elx-tabs__panel > h2:first-child:empty {
	display: none;
}

.elx-product-page .elx-tabs__panel p {
	margin: 0 0 16px;
}

.elx-product-page .elx-tabs__panel p:last-child {
	margin-bottom: 0;
}

.elx-product-page .elx-tabs__anchor {
	display: block;
	height: 0;
	scroll-margin-top: 120px;
}

/* Tabela de especificações técnicas (os atributos do produto). */
.elx-product-page .elx-tabs__panel table.woocommerce-product-attributes {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: separate;
	border-spacing: 0;
	background: transparent;
}

.elx-product-page .elx-tabs__panel table.woocommerce-product-attributes th,
.elx-product-page .elx-tabs__panel table.woocommerce-product-attributes td {
	padding: 12px 16px;
	border: 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	background: transparent;
	font-size: 15px;
	line-height: 1.5;
	text-align: left;
	vertical-align: top;
}

.elx-product-page .elx-tabs__panel table.woocommerce-product-attributes th {
	width: 34%;
	font-family: var(--elx-sans);
	font-weight: 700;
	color: var(--elx-ink);
}

.elx-product-page .elx-tabs__panel table.woocommerce-product-attributes tr:last-child th,
.elx-product-page .elx-tabs__panel table.woocommerce-product-attributes tr:last-child td {
	border-bottom: 0;
}

.elx-product-page .elx-tabs__panel table.woocommerce-product-attributes p {
	margin: 0;
}

/* Revisão 15/09 (item 30): link para o produto no site do fabricante, no fim
   das especificações. Só existe quando o campo do produto está preenchido. */
.elx-product-page .elx-tabs__panel .elx-maker-link {
	margin: 18px 0 0;
	padding-top: 16px;
	border-top: 1px solid var(--elx-line);
}

.elx-product-page .elx-tabs__panel .elx-maker-link a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--elx-sans);
	font-size: 14px;
	font-weight: 700;
	color: var(--elx-green);
	text-decoration: none;
}

.elx-product-page .elx-tabs__panel .elx-maker-link a:hover {
	text-decoration: underline;
}

.elx-product-page .elx-tabs__panel .elx-maker-link__ext {
	width: 14px;
	height: 14px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6M20 4l-9 9M19 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6M20 4l-9 9M19 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Avaliações. */
.elx-product-page .elx-tabs__panel .woocommerce-Reviews .commentlist {
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}

.elx-product-page .elx-tabs__panel .woocommerce-Reviews .comment_container {
	display: flex;
	gap: 16px;
	padding: 18px;
	background: #fff;
	border-radius: var(--elx-radius-field);
}

.elx-product-page .elx-tabs__panel .woocommerce-Reviews .comment_container img.avatar {
	position: static;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 0;
	padding: 0;
}

.elx-product-page .elx-tabs__panel .woocommerce-Reviews .comment-text {
	margin: 0;
	padding: 0;
	border: 0;
	flex: 1 1 auto;
}

/* As estrelas da lista de avaliações são as do WooCommerce; aqui só recebem a
   cor da marca, no lugar do amarelo padrão. */
.elx-product-page .elx-tabs__panel .star-rating span::before,
.elx-product-page .elx-tabs__panel .star-rating::before,
.elx-product-page .elx-tabs__panel .stars a {
	color: var(--elx-green);
}

.elx-product-page .elx-tabs__panel .woocommerce-Reviews-title {
	font-family: var(--elx-display);
	font-weight: 700;
	font-size: 20px;
	color: var(--elx-ink);
	margin: 0 0 18px;
}

.elx-product-page .elx-tabs__panel #review_form_wrapper {
	margin-top: 8px;
}

.elx-product-page .elx-tabs__panel .comment-form input[type="text"],
.elx-product-page .elx-tabs__panel .comment-form input[type="email"],
.elx-product-page .elx-tabs__panel .comment-form textarea {
	width: 100%;
	max-width: none;
	padding: 12px 16px;
	border: 1px solid var(--elx-line-soft);
	border-radius: var(--elx-radius-field);
	background: #fff;
	font-family: var(--elx-sans);
	font-size: 15px;
}

.elx-product-page .elx-tabs__panel .comment-form .submit,
.elx-product-page .elx-tabs__panel #respond input#submit {
	min-height: 50px;
	padding: 0 28px;
	border: 0;
	border-radius: var(--elx-radius-field);
	background: var(--elx-green);
	color: #fff;
	font-family: var(--elx-sans);
	font-weight: 700;
	font-size: 14px;
	text-transform: uppercase;
	cursor: pointer;
}

.elx-product-page .elx-tabs__panel #respond input#submit:hover {
	background: var(--elx-green-hover);
}

/* ------------------------------------------------------- relacionados -- */

.elx-product-page #elx-prod-related-title .elementor-heading-title {
	font-family: var(--elx-display);
	font-weight: 700;
	font-size: 42px;
	line-height: 1.2;
	color: var(--elx-green);
	text-align: center;
	margin: 0;
}

/* Sem relacionados de verdade, a seção inteira some em vez de mostrar um
   título solto. */
.elx-product-page #elx-prod-related .elementor-widget-loop-grid:not(:has(.e-loop-item)) {
	display: none;
}

/* --------------------------------------------------------------- tablet -- */

@media (max-width: 1280px) {
	.elx-product-page {
		--elx-prod-pad: 56px;
		--elx-prod-summary: 420px;
	}

	.elx-product-page .elx-tabs__panels {
		padding-inline: 40px;
	}
}

@media (max-width: 1024px) {
	.elx-product-page {
		--elx-prod-pad: 36px;
		--elx-prod-summary: 340px;
		--elx-prod-col-gap: 24px;
	}

	/* Abaixo de 1024 o painel encosta nas bordas; recuo pela largura, para não
	   gerar rolagem lateral. */
	.elx-product-page #elx-prod-main,
	.elx-product-page #elx-prod-tabs-panel {
		width: calc(100% - 32px);
	}

	.elx-product-page #elx-prod-title .elementor-heading-title {
		font-size: 26px;
	}

	.elx-product-page #elx-prod-price .price {
		font-size: 34px;
	}

	.elx-product-page #elx-prod-related-title .elementor-heading-title {
		font-size: 32px;
	}

	.elx-product-page .flex-control-thumbs {
		flex: 0 0 84px;
		width: 84px;
	}

	.elx-product-page .flex-control-thumbs li {
		width: 84px !important;
		height: 84px;
	}
}

/* Entre 768 e 991 a coluna da foto ficaria estreita demais ao lado do resumo —
   o Elementor não tem um ponto de quebra nessa faixa, então a pilha é feita
   aqui. Acima e abaixo disso as larguras continuam vindo do painel. */
@media (min-width: 768px) and (max-width: 991px) {
	.elx-product-page #elx-prod-main {
		flex-direction: column;
	}

	.elx-product-page #elx-prod-summary {
		width: 100% !important;
		padding-top: 8px;
	}

	.elx-product-page #elx-prod-gallery {
		width: 100%;
	}
}

/* --------------------------------------------------------------- celular -- */

@media (max-width: 767px) {
	.elx-product-page {
		--elx-prod-pad: 18px;
		--elx-prod-panel-radius: 22px;
	}

	.elx-product-page #elx-prod-breadcrumb .woocommerce-breadcrumb {
		font-size: 13px;
	}

	/* Miniaturas passam para baixo da foto, em linha rolável. */
	.elx-product-page .woocommerce-product-gallery {
		flex-direction: column;
		align-items: center;
		gap: 14px;
	}

	.elx-product-page .woocommerce-product-gallery .flex-viewport,
	.elx-product-page .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper {
		width: 100%;
		max-width: none;
	}

	.elx-product-page .flex-control-thumbs {
		order: 1;
		flex: 0 0 auto;
		width: 100%;
		flex-direction: row;
		gap: 10px;
		overflow-x: auto;
		padding-bottom: 4px;
		scrollbar-width: thin;
	}

	.elx-product-page .flex-control-thumbs li {
		flex: 0 0 72px;
		width: 72px !important;
		height: 72px;
	}

	.elx-product-page .woocommerce-product-gallery__image > a,
	.elx-product-page .woocommerce-product-gallery__image > img {
		aspect-ratio: 1 / 1;
		padding: 22px;
	}

	.elx-product-page #elx-prod-title .elementor-heading-title {
		font-size: 22px;
	}

	.elx-product-page #elx-prod-brand .elx-product-meta {
		font-size: 18px;
	}

	.elx-product-page #elx-prod-price {
		padding: 16px 18px 18px;
	}

	.elx-product-page #elx-prod-price .price {
		font-size: 30px;
	}

	.elx-product-page .elx-ship {
		padding: 16px 18px 18px;
	}

	.elx-product-page .elx-ship__form {
		flex-wrap: wrap;
	}

	.elx-product-page .elx-ship__cep {
		flex: 1 1 100%;
	}

	.elx-product-page .elx-ship__btn {
		flex: 1 1 100%;
	}

	.elx-product-page #elx-prod-cart .quantity,
	.elx-product-page #elx-prod-cart .single_add_to_cart_button {
		flex: 1 1 100%;
		width: 100%;
	}

	.elx-product-page #elx-prod-cart .quantity {
		max-width: 140px;
	}

	/* A barra de abas vira uma faixa rolável, sem quebrar os nomes. */
	.elx-product-page .elx-tabs__nav {
		overflow-x: auto;
		scrollbar-width: none;
	}

	.elx-product-page .elx-tabs__nav::-webkit-scrollbar {
		display: none;
	}

	.elx-product-page .elx-tabs__tab {
		flex: 0 0 auto;
		padding: 12px 18px;
		font-size: 14px;
	}

	.elx-product-page .elx-tabs__panels {
		padding: 22px 4px 0;
	}

	.elx-product-page .elx-tabs__panel {
		font-size: 15px;
	}

	.elx-product-page #elx-prod-related-title .elementor-heading-title {
		font-size: 26px;
	}

	.elx-product-page .elx-tabs__panel table.woocommerce-product-attributes th,
	.elx-product-page .elx-tabs__panel table.woocommerce-product-attributes td {
		padding: 10px 8px;
		font-size: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.elx-product-page * {
		transition-duration: 0.01ms !important;
	}
}
