/**
 * VTEX products carousel styles (design: 3 visible + arrows/dots).
 *
 * @package blog_Trendy
 */

.vtex-products {
	margin: 40px 0 0;
	padding: 32px 28px 28px;
	background: #ffe4f0;
	border-radius: 24px;
}

.vtex-products__title {
	margin: 0 0 28px;
	font-family: "Nunito", sans-serif;
	font-size: clamp(1rem, 2.4vw, 1.25rem);
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: 0.04em;
	text-align: center;
	text-transform: uppercase;
	background: linear-gradient(90deg, #ff1493 0%, #9b59b6 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.vtex-products__viewport {
	display: flex;
	align-items: center;
	gap: 12px;
}

.vtex-products__track-wrap {
	flex: 1;
	min-width: 0;
	overflow: hidden;
}

.vtex-products__track {
	display: flex;
	gap: 20px;
	margin: 0;
	padding: 4px 2px 8px;
	list-style: none;
	transition: transform 0.35s ease;
	will-change: transform;
}

.vtex-products__item {
	flex: 0 0 calc((100% - 40px) / 3);
	min-width: 0;
	margin: 0;
	box-sizing: border-box;
}

.vtex-products__card {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	background: var(--trendy-color-white, #ffffff);
	border-radius: 16px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vtex-products__card:hover,
.vtex-products__card:focus {
	text-decoration: none;
	color: inherit;
	box-shadow: 0 10px 28px rgba(255, 20, 147, 0.16);
	transform: translateY(-2px);
}

.vtex-products__card--static {
	cursor: default;
}

.vtex-products__figure {
	margin: 0;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #f7f7f7;
}

.vtex-products__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.vtex-products__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 10px;
	padding: 14px 16px 16px;
}

.vtex-products__name {
	margin: 0;
	font-family: "Nunito", sans-serif;
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.35;
	color: #1a1a1a;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.vtex-products__pricing {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px;
	margin: 0;
}

.vtex-products__list-price {
	font-family: "Nunito", sans-serif;
	font-size: 0.8125rem;
	font-weight: 500;
	color: #888888;
	text-decoration: line-through;
}

.vtex-products__price {
	font-family: "Nunito", sans-serif;
	font-size: 1.0625rem;
	font-weight: 800;
	color: #ff1493;
}

.vtex-products__cta,
.vtex-products__cta:link,
.vtex-products__cta:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	margin-top: auto;
	padding: 10px 16px;
	font-family: "Nunito", sans-serif;
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1;
	color: #ffffff;
	text-decoration: none;
	background: linear-gradient(90deg, #ff1493 0%, #9b59b6 100%);
	border-radius: 999px;
}

.vtex-products__cta:hover,
.vtex-products__cta:focus,
.vtex-products__cta:active {
	color: #ffffff;
	text-decoration: none;
}

.vtex-products__cta svg {
	width: 12px;
	height: 12px;
	color: inherit;
	fill: currentColor;
}

.vtex-products__nav {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	color: #9a9a9a;
	background: #ffffff;
	border: none;
	border-radius: 50%;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	cursor: pointer;
	transition: opacity 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.vtex-products__nav svg {
	width: 16px;
	height: 16px;
}

.vtex-products__nav:hover,
.vtex-products__nav:focus {
	color: #ff1493;
	box-shadow: 0 4px 14px rgba(255, 20, 147, 0.2);
}

.vtex-products__nav:disabled {
	opacity: 0.4;
	cursor: default;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.vtex-products__dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 20px;
}

.vtex-products__dot {
	width: 8px;
	height: 8px;
	padding: 0;
	background: rgba(255, 20, 147, 0.25);
	border: none;
	border-radius: 50%;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

.vtex-products__dot.is-active {
	background: #ff1493;
	transform: scale(1.15);
}

.vtex-products__dot:hover,
.vtex-products__dot:focus {
	background: rgba(255, 20, 147, 0.55);
}

@media (max-width: 900px) {
	.vtex-products__item {
		flex: 0 0 calc((100% - 20px) / 2);
	}
}

@media (max-width: 600px) {
	.vtex-products {
		padding: 24px 14px 20px;
	}

	.vtex-products__viewport {
		gap: 8px;
	}

	.vtex-products__track {
		gap: 12px;
	}

	.vtex-products__item {
		flex: 0 0 100%;
	}

	.vtex-products__nav {
		width: 32px;
		height: 32px;
	}
}
