/* [ak_product_card] — card de produto do Loop Grid */

.akpc {
	--akpc-text: #000;
	--akpc-muted: #777;
	--akpc-line: #d9d9d9;
	--akpc-size: 14px;
	--akpc-accent: #7c0f36;
	--akpc-swatch: 28px;

	display: flex;
	flex-direction: column;
	gap: 12px;
	height: 100%;
	color: var(--akpc-text);
	font-size: var(--akpc-size);
	line-height: 1.35;
}

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

.akpc__media {
	position: relative;
	overflow: hidden;
}

/* Wishlist (TI Wishlist) flutuando no canto superior direito da foto */
.akpc__media .tinv-wraper {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 2;
	margin: 0;
	padding: 0;
	line-height: 0;
}

.akpc__media .tinv-wraper .tinvwl_add_to_wishlist_button {
	margin: 0;
}

.akpc__media .tinv-wishlist-clear {
	display: none;
}

.akpc__link {
	display: block;
	position: relative;
}

.akpc__img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
}

.akpc__img--alt {
	position: absolute;
	inset: 0;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity .35s ease;
	pointer-events: none;
}

@media (hover: hover) {
	.akpc__media.has-alt:hover .akpc__img--alt {
		opacity: 1;
	}
}

.akpc__media.is-revealed .akpc__img--alt {
	opacity: 1;
}

/* ---------- Informações ---------- */

.akpc__info {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
	text-align: center;
}

.akpc__name,
.akpc__name:hover,
.akpc__name:focus {
	color: var(--akpc-text);
	font-size: var(--akpc-size);
	font-weight: 400;
	text-decoration: none;
}

.akpc__price {
	color: var(--akpc-text);
	font-size: var(--akpc-size);
	font-weight: 400;
}

.akpc__price del {
	color: var(--akpc-muted);
}

.akpc__price ins {
	text-decoration: none;
}

/* Padroniza o preço (inclusive PIX/parcelamento do Woo Custom Installments) no tamanho do nome */
.akpc .akpc__price,
.akpc .akpc__price * {
	font-size: var(--akpc-size) !important;
	line-height: 1.35;
}

.akpc .akpc__price .woo-custom-installments-group {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 0;
	text-align: center;
}

.akpc .akpc__price .woo-custom-installments-group-main-price {
	padding: 0 !important;
	margin: 0;
}

/* PIX como texto simples na linha, igual ao parcelamento */
.akpc .akpc__price .woo-custom-installments-offer {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0 4px;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	box-shadow: none !important;
	color: inherit !important;
}

.akpc .akpc__price .woo-custom-installments-card-container,
.akpc .akpc__price .woo-custom-installments-details-without-fee {
	justify-content: center;
	margin: 0;
	text-align: center;
}

/* ---------- Compra ---------- */

.akpc__buy {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: auto;
}

.akpc__group {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
}

.akpc .akpc__swatch {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: relative;
	min-width: var(--akpc-swatch);
	height: var(--akpc-swatch);
	padding: 0 6px;
	margin: 0;
	border: 1px solid var(--akpc-line);
	border-radius: 999px;
	background: #fff;
	color: var(--akpc-text);
	font-size: 12px;
	font-weight: 400;
	line-height: 1;
	text-transform: none;
	cursor: pointer;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.akpc .akpc__swatch:hover,
.akpc .akpc__swatch:focus-visible {
	border-color: var(--akpc-text);
	background: #fff;
	color: var(--akpc-text);
}

.akpc .akpc__swatch--color,
.akpc .akpc__swatch--color:hover,
.akpc .akpc__swatch--color:focus-visible {
	width: var(--akpc-swatch);
	padding: 0;
	background: var(--sw);
}

.akpc .akpc__swatch.is-selected {
	border-color: var(--akpc-text);
	box-shadow: inset 0 0 0 1px var(--akpc-text);
}

.akpc .akpc__swatch--color.is-selected {
	box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--akpc-text);
}

.akpc .akpc__swatch.is-disabled {
	opacity: .35;
	cursor: not-allowed;
}

.akpc .akpc__swatch.is-disabled::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 2px;
	right: 2px;
	border-top: 1px solid var(--akpc-text);
	transform: rotate(-45deg);
}

.akpc__group.needs-choice {
	animation: akpc-shake .35s ease;
}

@keyframes akpc-shake {
	25% {
		transform: translateX(-3px);
	}

	75% {
		transform: translateX(3px);
	}
}

.akpc__msg {
	margin: 0;
	text-align: center;
	min-height: 0;
	color: var(--akpc-muted);
	font-size: 12px;
}

.akpc__msg:empty {
	display: none;
}

.akpc__buy .button {
	display: block;
	width: 100%;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid var(--akpc-text);
	border-radius: 0;
	background: var(--akpc-text);
	color: #fff;
	font-size: 13px;
	font-weight: 400;
	text-align: center;
	text-decoration: none;
	letter-spacing: .02em;
}

.akpc__buy .button:hover,
.akpc__buy .button:focus-visible {
	border-color: var(--akpc-accent);
	background: var(--akpc-accent);
	color: #fff;
}

.akpc__buy .button.is-disabled {
	opacity: .45;
	cursor: not-allowed;
}

.akpc__buy .button.loading {
	opacity: .6;
}

.akpc__buy .added_to_cart {
	color: var(--akpc-text);
	font-size: 12px;
	text-align: center;
	text-decoration: underline;
}