/*
 * WooCommerce — componentes partilhados (L'éléphant)
 * Botões, cartão de produto, coração de favoritos, métodos de pagamento.
 */

/* Base tipográfica de segurança: qualquer elemento gerado pelo próprio
   WooCommerce (mensagens, campos, tooltips) que não tenha sido
   explicitamente estilizado herda a fonte da marca em vez do fallback
   do Bootstrap/navegador. */
.woocommerce,
.woocommerce-page {
	font-family: "Roboto", sans-serif;
}

.elephant-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 28px;
	font-family: "Roboto", sans-serif;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	border-radius: 999px;
	border: 1px solid var(--black);
	background: transparent;
	color: var(--black);
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
	white-space: nowrap;
}

.elephant-btn:hover,
.elephant-btn:focus-visible {
	background: var(--black);
	color: var(--white);
}

.elephant-btn--dark {
	background: var(--black);
	color: var(--white);
	border-color: var(--black);
}

.elephant-btn--dark:hover,
.elephant-btn--dark:focus-visible {
	background: var(--brown);
	border-color: var(--brown);
	color: var(--black);
}

.elephant-btn--outline:hover,
.elephant-btn--outline:focus-visible {
	background: var(--black);
	color: var(--white);
}

.elephant-btn[disabled] {
	opacity: 0.4;
	cursor: not-allowed;
	pointer-events: none;
}

/* ---------------- Coração de favoritos ---------------- */
/* Ícone simples (sem fundo), conforme os mockups — aparece sempre em
   cima do fundo bege da página, nunca sobreposto a uma imagem. */
.elephant-wishlist-heart {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	padding: 0;
	border: none;
	background: transparent;
	color: var(--black);
	cursor: pointer;
	transition: transform 0.15s ease, color 0.15s ease;
}

.elephant-wishlist-heart:hover {
	transform: scale(1.08);
}

.elephant-wishlist-heart.is-active {
	color: var(--brown);
}

.elephant-wishlist-heart.is-active svg path {
	fill: currentColor;
}

.elephant-wishlist-heart.is-loading {
	opacity: 0.6;
	pointer-events: none;
}

/* ---------------- Grid / cartão de produto ---------------- */
.elephant-product-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0;
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid rgba(0, 0, 0, 0.16);
	border-left: 1px solid rgba(0, 0, 0, 0.16);
}

@media (max-width: 1100px) {
	.elephant-product-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 780px) {
	.elephant-product-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.elephant-product-card {
	list-style: none;
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 460px;
	border-right: 1px solid rgba(0, 0, 0, 0.16);
	border-bottom: 1px solid rgba(0, 0, 0, 0.16);
	background: transparent;
}

.elephant-product-card__image {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	flex: 1 1 auto;
	min-height: 370px;
	padding: 28px 22px 22px;
	overflow: hidden;
	background: transparent;
	border-radius: 0;
}

.elephant-product-card__image img {
	width: 100%;
	height: 100%;
	max-width: 78%;
	max-height: 320px;
	object-fit: contain;
	display: block;
	transition: none;
}

.elephant-product-card:hover .elephant-product-card__image img {
	transform: none;
}

.elephant-product-card__info {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 10px;
	padding: 0 12px 11px;
	margin-top: auto;
	color: var(--black);
}

.elephant-product-card__text {
	display: block;
	min-width: 0;
}

.elephant-product-card__heart {
	flex-shrink: 0;
	align-self: flex-end;
	padding-bottom: 1px;
}

.elephant-product-card__title {
	margin: 0;
	font-family: "Roboto", sans-serif;
	font-size: 14px;
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
	line-height: 20px;
}

.elephant-product-card__brand {
	margin: 2px 0 0;
	font-family: "Roboto", sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 20px;
	color: rgba(0, 0, 0, 0.75);
}

.elephant-product-card__price {
	margin: 4px 0 0;
	font-family: "Roboto", sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 20px;
}

.elephant-product-card__price del {
	opacity: 0.5;
	margin-right: 4px;
}

/* ---------------- Linha "categorias + Carrinho/Área Pessoal" ---------------- */
.elephant-topbar {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 5px 0 4px;
	border-top: 1px solid rgba(0, 0, 0, 0.16);
	border-bottom: 1px solid rgba(0, 0, 0, 0.16);
	font-family: "Roboto", sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 20px;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.elephant-topbar__left {
	min-width: 0;
	flex: 1 1 auto;
	overflow-x: auto;
	scrollbar-width: none;
}

.elephant-topbar__left::-webkit-scrollbar {
	display: none;
}

.elephant-topbar__right {
	display: flex;
	align-items: center;
	gap: 12px;
	white-space: nowrap;
	margin-left: auto;
	flex: 0 0 auto;
}

.elephant-topbar__cart,
.elephant-topbar__account {
	color: var(--black);
	position: relative;
}

.elephant-topbar__account {
	padding-left: 10px;
}

.elephant-topbar__account::before {
	content: '|';
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	opacity: 0.8;
}

@media (max-width: 900px) {
	.elephant-topbar {
		flex-wrap: wrap;
		align-items: flex-start;
	}

	.elephant-topbar__right {
		width: 100%;
		justify-content: flex-end;
	}
}

@media (max-width: 780px) {
	.elephant-product-card {
		min-height: 340px;
	}

	.elephant-product-card__image {
		min-height: 260px;
		padding: 18px 14px 10px;
	}

	.elephant-product-card__image img {
		max-width: 86%;
		max-height: 220px;
	}

	.elephant-product-card__info {
		padding: 0 8px 8px;
	}

}

/* ---------------- Métodos de pagamento dinâmicos ---------------- */
.elephant-payment-methods {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.elephant-payment-methods__item img {
	height: 24px;
	width: auto;
	display: block;
}

.elephant-payment-methods__label {
	display: inline-block;
	padding: 4px 10px;
	border: 1px solid var(--black);
	border-radius: var(--border-radius);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}
