/* =========================================================
   Container externo
   ========================================================= */

.tdp-product-carousel-wrap {
	position: relative;
	width: 100%;
	padding: 0 48px;
	box-sizing: border-box;
}


/* =========================================================
   Swiper principal
   ========================================================= */

.tdp-product-carousel {
	position: relative;
	width: 100%;
	overflow: hidden;
	padding-bottom: 1.5rem;
	font-family:
		-apple-system,
		BlinkMacSystemFont,
		"Segoe UI",
		Roboto,
		Helvetica,
		Arial,
		sans-serif;
	box-sizing: border-box;
}

.tdp-product-carousel .swiper-wrapper {
	align-items: stretch;
}

.tdp-product-carousel .swiper-slide {
	display: flex;
	height: auto;
	box-sizing: border-box;
}


/* =========================================================
   Card do produto
   ========================================================= */

.tdp-product-carousel .tdp-product-card {
	position: relative;
	display: flex;
	flex: 1;
	flex-direction: column;
	width: 100%;
	height: 100%;
	padding: 16px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background-color: #fff;
	text-align: center;
	box-sizing: border-box;
	transition:
		transform 180ms ease,
		box-shadow 180ms ease,
		border-color 180ms ease;
}

.tdp-product-carousel .tdp-product-card:hover {
	transform: translateY(-2px);
	border-color: #d1d5db;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}


/* =========================================================
   Imagem
   ========================================================= */

.hentry .entry-content
.tdp-product-carousel
.tdp-product-card__image {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 1 / 1;
	margin: 0 0 14px;
	overflow: hidden;
	background-color: #fff;
	text-decoration: none;
}

.hentry .entry-content
.tdp-product-carousel
.tdp-product-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: contain;
	background-color: #fff;
	box-shadow: none;
	transition: transform 200ms ease;
}

.tdp-product-carousel
.tdp-product-card:hover
.tdp-product-card__image img {
	transform: scale(1.03);
}


/* =========================================================
   Título do produto
   ========================================================= */

.tdp-product-carousel .tdp-product-card__title {
	display: -webkit-box;
	min-height: 63px;
	margin: 0 0 10px;
	overflow: hidden;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	text-transform: none;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.hentry .entry-content
.tdp-product-carousel
.tdp-product-card__title a {
	color: #202124;
	font-weight: 600;
	text-decoration: none;
}

.hentry .entry-content
.tdp-product-carousel
.tdp-product-card__title a:hover,
.hentry .entry-content
.tdp-product-carousel
.tdp-product-card__title a:focus {
	color: #962b33;
	text-decoration: none;
}


/* =========================================================
   Preço
   ========================================================= */

.tdp-product-carousel .tdp-product-card__price {
	margin-top: auto;
	margin-bottom: 14px;
    color: #ad3350;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
}

.tdp-product-carousel
.tdp-product-card__price
.woocommerce-Price-amount {
	font-weight: 700;
}


/* =========================================================
   Botão
   ========================================================= */

.hentry .entry-content
.tdp-product-carousel
.tdp-product-card__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 44px;
	padding: 10px 16px;
	border: 2px solid #ad3350;
	border-radius: 5px;
	background-color: #ad3350;
	box-shadow: none;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	box-sizing: border-box;
	transition:
		background-color 160ms ease,
		border-color 160ms ease,
		color 160ms ease;
}

.hentry .entry-content
.tdp-product-carousel
.tdp-product-card__button:hover,
.hentry .entry-content
.tdp-product-carousel
.tdp-product-card__button:focus {
	border-color: #962b33;
	background-color: #962b33;
	color: #fff;
	text-decoration: none;
}


/* =========================================================
   Badge
   ========================================================= */

.tdp-product-carousel .tdp-product-card__badge {
	position: absolute;
	z-index: 3;
	top: 12px;
	left: 12px;
	padding: 5px 9px;
	border-radius: 999px;
	background-color: #ad3350;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
}


/* =========================================================
   Navegação
   ========================================================= */

.tdp-product-carousel-wrap > .swiper-button-prev,
.tdp-product-carousel-wrap > .swiper-button-next {
	position: absolute;
	z-index: 10;
	top: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	margin-top: -19px;
	padding: 0;
	border: 1px solid #e5e7eb;
	border-radius: 50%;
	background-color: #fff;
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.14);
	color: #962b33;
	cursor: pointer;
	box-sizing: border-box;
}

.tdp-product-carousel-wrap > .swiper-button-prev {
	left: 2px;
}

.tdp-product-carousel-wrap > .swiper-button-next {
	right: 2px;
}

/* Remove a seta criada manualmente */
.tdp-product-carousel-wrap > .swiper-button-prev::after,
.tdp-product-carousel-wrap > .swiper-button-next::after {
	display: none;
	content: none;
}

/* Centraliza e dimensiona o SVG nativo do Swiper */
.tdp-product-carousel-wrap > .swiper-button-prev svg,
.tdp-product-carousel-wrap > .swiper-button-next svg {
	display: block;
	width: 16px;
	height: 16px;
	margin: 0;
	fill: currentColor;
	stroke: currentColor;
}

.tdp-product-carousel-wrap > .swiper-button-prev:hover,
.tdp-product-carousel-wrap > .swiper-button-next:hover,
.tdp-product-carousel-wrap > .swiper-button-prev:focus,
.tdp-product-carousel-wrap > .swiper-button-next:focus {
	background-color: #962b33;
	color: #fff;
	outline: none;
}

.tdp-product-carousel-wrap > .swiper-button-disabled {
	opacity: 0.3;
	cursor: default;
	pointer-events: none;
}


/* =========================================================
   Título das seções da home
   ========================================================= */

.hentry .entry-content h2.tdp-carousel-section-title {
	margin: 30px 0 16px;
	padding: 0 0 9px;
	border-bottom: 2px solid #fc7a51;
	color: #202124;
	font-family:
		-apple-system,
		BlinkMacSystemFont,
		"Segoe UI",
		Roboto,
		Helvetica,
		Arial,
		sans-serif;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	text-transform: none;
}


/* =========================================================
   Mobile
   Compatível com mobile="1.15"
   ========================================================= */

@media (max-width: 639px) {
	.tdp-product-carousel-wrap {
		padding: 0;
	}

	.tdp-product-carousel {
		padding-bottom: 1.25rem;
	}

	.tdp-product-carousel .swiper-slide {
		display: flex;
		height: auto;
	}

	/*
	 * Como mobile="1.15" já reduz a largura do slide,
	 * não usamos max-width fixo no card.
	 */
	.tdp-product-carousel .tdp-product-card {
		width: 100%;
		max-width: none;
		padding: 12px;
		border-radius: 7px;
	}

	.hentry .entry-content
	.tdp-product-carousel
	.tdp-product-card__image {
		width: 100%;
		max-width: 190px;
		margin: 0 auto 12px;
		aspect-ratio: 1 / 1;
	}

	.tdp-product-carousel .tdp-product-card__title {
		min-height: 40px;
		margin-bottom: 8px;
		font-size: 14px;
		line-height: 1.4;
		-webkit-line-clamp: 2;
	}

	.tdp-product-carousel .tdp-product-card__price {
		margin-bottom: 11px;
		font-size: 17px;
	}

	.hentry .entry-content
	.tdp-product-carousel
	.tdp-product-card__button {
		min-height: 40px;
		padding: 8px 12px;
		font-size: 14px;
	}

	/* No celular a navegação é feita por gesto */
	.tdp-product-carousel-wrap > .swiper-button-prev,
	.tdp-product-carousel-wrap > .swiper-button-next {
		display: none;
	}

	.hentry .entry-content h2.tdp-carousel-section-title {
		margin-top: 24px;
		margin-bottom: 14px;
		font-size: 18px;
	}
}


/* =========================================================
   Telas muito pequenas
   ========================================================= */

@media (max-width: 380px) {
	.hentry .entry-content
	.tdp-product-carousel
	.tdp-product-card__image {
		max-width: 165px;
	}

	.tdp-product-carousel .tdp-product-card {
		padding: 10px;
	}

	.tdp-product-carousel .tdp-product-card__title {
		font-size: 13px;
	}

	.tdp-product-carousel .tdp-product-card__price {
		font-size: 16px;
	}
}


/* =========================================================
   Acessibilidade
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
	.tdp-product-carousel .tdp-product-card,
	.tdp-product-carousel .tdp-product-card__image img,
	.tdp-product-carousel .tdp-product-card__button {
		transition: none;
	}

	.tdp-product-carousel .tdp-product-card:hover {
		transform: none;
	}
}