/**
 * Product Carousel — Figma products-section (475:1676).
 */

.product-carousel {
	--product-carousel-pad-block: var(--space-120); /* 120px */
	--product-carousel-header-gap: 4.125rem; /* 66px */
	--product-carousel-intro-gap: var(--space-16);
	--product-carousel-stack-gap: 4.125rem; /* 66px header → grid */
	--product-carousel-body-gap: 2.3125rem; /* 37px tabs → cards */
	--product-carousel-panel-gap: var(--space-32);
	--product-carousel-slide-gap: var(--space-24);
	--product-carousel-card-w: 18.375rem; /* 294px */
	--product-carousel-media: 13.625rem; /* 218px */

	position: relative;
	width: 100%;
	box-sizing: border-box;
	padding-block: var(--product-carousel-pad-block);
	background-color: var(--color-bg-light);
	border-block: 0.5px solid var(--color-blue-200);
}

.product-carousel__inner {
	display: flex;
	flex-direction: column;
	gap: var(--product-carousel-stack-gap);
	min-width: 0;
}

.product-carousel__header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--product-carousel-header-gap);
}

.product-carousel__intro {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: var(--product-carousel-intro-gap);
	min-width: 0;
}

.product-carousel__eyebrow {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.625rem;
	margin: 0;
	padding-block: 0.625rem;
	font-family: var(--font-sans);
	font-size: var(--text-eyebrow-size);
	font-weight: 400;
	line-height: var(--text-eyebrow-line-height);
	letter-spacing: var(--text-eyebrow-letter-spacing);
	text-transform: uppercase;
	color: var(--color-brand-secondary);
}

.product-carousel__eyebrow::before {
	content: '';
	width: 1rem;
	height: 0.5px;
	background-color: currentColor;
	flex-shrink: 0;
}

.product-carousel__heading {
	margin: 0;
	max-width: 100%;
	font-family: var(--font-sans);
	font-size: var(--text-h1-size);
	font-weight: var(--text-display-md-weight);
	line-height: var(--text-heading-line-height);
	letter-spacing: var(--text-heading-letter-spacing);
	text-transform: uppercase;
	color: var(--color-nav);
}

.product-carousel__arrows {
	display: flex;
	align-items: flex-start;
	flex-shrink: 0;
	gap: var(--btn-carousel-gap);
}

.product-carousel__nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: var(--btn-carousel-size);
	height: var(--btn-carousel-size);
	padding: var(--btn-carousel-padding-block) var(--btn-carousel-padding-inline);
	margin: 0;
	background-color: var(--btn-carousel-bg);
	color: var(--btn-carousel-text);
	border: var(--btn-carousel-border-width) solid var(--btn-carousel-border);
	border-radius: var(--btn-carousel-radius);
	box-shadow: var(--btn-carousel-shadow);
	transition: var(--btn-carousel-transition);
	cursor: pointer;
}

.product-carousel__nav::after {
	content: none;
}

.product-carousel__nav:hover {
	background-color: var(--btn-carousel-bg-hover);
	color: var(--btn-carousel-text-hover);
	border-color: var(--btn-carousel-border-hover);
	box-shadow: var(--btn-carousel-shadow-hover);
}

.product-carousel__nav:active {
	background-color: var(--btn-carousel-bg-active);
	color: var(--btn-carousel-text-active);
	border-color: var(--btn-carousel-border-active);
}

.product-carousel__nav:focus-visible {
	outline: 2px solid var(--color-focus);
	outline-offset: 3px;
}

.product-carousel__nav.swiper-button-disabled,
.product-carousel__nav:disabled {
	background-color: var(--btn-carousel-bg-disabled);
	color: var(--btn-carousel-text-disabled);
	border-color: var(--btn-carousel-border-disabled);
	opacity: 1;
	cursor: default;
	pointer-events: none;
}

.product-carousel__nav.swiper-button-disabled .product-carousel__nav-icon,
.product-carousel__nav:disabled .product-carousel__nav-icon {
	opacity: 0.4;
	filter: grayscale(1);
}

.product-carousel__nav-icon {
	display: block;
	width: var(--btn-carousel-icon-size);
	height: var(--btn-carousel-icon-size);
	max-width: var(--btn-carousel-icon-size);
	object-fit: contain;
}

.product-carousel__prev .product-carousel__nav-icon {
	transform: rotate(-90deg);
}

.product-carousel__next .product-carousel__nav-icon {
	transform: rotate(90deg);
}

.product-carousel__body {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: var(--product-carousel-body-gap);
	width: 100%;
	min-width: 0;
}

.product-carousel__tabs-wrap {
	width: 100%;
	min-width: 0;
	border-bottom: 0.5px solid var(--color-brand-secondary);
}

.product-carousel__tabs {
	width: 100%;
	overflow: hidden;
}

.product-carousel__tabs .swiper-wrapper {
	align-items: stretch;
}

.product-carousel__tabs .swiper-slide {
	width: auto;
	height: auto;
}

.product-carousel__tab {
	display: block;
	width: 100%;
	margin: 0;
	padding: 1.125rem 1.875rem; /* 18px 30px */
	border: 0;
	background-color: var(--color-steel);
	color: var(--color-text-inverse);
	font-family: var(--font-sans);
	font-size: var(--nav-size);
	font-weight: var(--nav-weight-bold);
	line-height: var(--nav-line-height);
	letter-spacing: var(--nav-letter-spacing);
	text-transform: uppercase;
	white-space: nowrap;
	cursor: pointer;
}

.product-carousel__tab.is-active,
.product-carousel__tab[aria-selected='true'] {
	background-color: var(--color-brand-secondary);
}

.product-carousel__tab:focus-visible {
	outline: 2px solid var(--color-focus);
	outline-offset: -2px;
}

.product-carousel__panel {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: var(--product-carousel-panel-gap);
	width: 100%;
	min-width: 0;
	max-width: 100%;
}

.product-carousel__panel[hidden] {
	display: none;
}

.product-carousel__swiper {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	overflow: hidden;
	box-sizing: border-box;
}

.product-carousel__swiper .swiper-wrapper {
	align-items: stretch;
}

.product-carousel__swiper .swiper-slide {
	height: auto;
	display: flex;
	min-width: 0;
	box-sizing: border-box;
}

.product-carousel__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-20);
	width: 100%;
	min-width: 0;
	padding: 0.9375rem 0.9375rem 2.1875rem; /* 15 / 15 / 35 */
	background-color: var(--color-bg-white);
	border: 1px solid var(--color-steel);
	text-decoration: none;
	color: inherit;
	box-sizing: border-box;
}

a.product-carousel__card:hover,
a.product-carousel__card:focus-visible {
	border-color: var(--color-brand-secondary);
}

a.product-carousel__card:focus-visible {
	outline: 2px solid var(--color-focus);
	outline-offset: 4px;
}

.product-carousel__media {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: var(--product-carousel-media);
	overflow: clip;
}

.product-carousel__image {
	display: block;
	width: var(--product-carousel-media);
	height: var(--product-carousel-media);
	max-width: 100%;
	object-fit: contain;
}

.product-carousel__copy {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.625rem;
	width: 100%;
	max-width: 14.8125rem; /* 237px */
	text-align: center;
}

.product-carousel__title,
.product-carousel__desc,
.product-carousel__meta {
	margin: 0;
	font-family: var(--font-sans);
}

.product-carousel__title {
	font-size: var(--nav-size);
	font-weight: var(--nav-weight-bold);
	line-height: var(--nav-line-height);
	letter-spacing: var(--nav-letter-spacing);
	text-transform: uppercase;
	color: var(--color-blue-mid);
}

.product-carousel__desc {
	font-size: var(--text-body-lg-size);
	font-weight: var(--text-body-lg-weight);
	line-height: var(--text-body-line-height);
	letter-spacing: var(--text-body-letter-spacing);
	color: var(--color-text);
}

.product-carousel__meta {
	font-size: var(--text-body-size);
	font-weight: var(--text-body-weight);
	line-height: var(--text-body-line-height);
	letter-spacing: var(--text-body-letter-spacing);
	color: var(--color-grey-blue-2);
}

.product-carousel__chips {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: center;
	gap: 0.375rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.product-carousel__chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.25rem 0.875rem;
	background-color: var(--color-bg-blue-light);
	border: 1px solid var(--color-border-muted);
	border-radius: 1000px;
	font-family: var(--font-sans);
	font-size: var(--text-body-sm-size);
	font-weight: var(--text-label-weight);
	line-height: var(--text-body-line-height);
	letter-spacing: 0.05em;
	color: var(--color-grey-blue-2);
	white-space: nowrap;
}

.product-carousel__dots {
	position: static;
	width: auto;
}

.product-carousel__dots .swiper-pagination-bullet {
	width: 0.5rem;
	height: 0.5rem;
	margin: 0 0.1875rem;
	background: var(--color-steel);
	opacity: 1;
}

.product-carousel__dots .swiper-pagination-bullet-active {
	background: var(--color-brand-secondary);
}

.product-carousel__footer {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-32);
}

.product-carousel__cta {
	min-width: 16.875rem; /* 270px */
}

.product-carousel__cta:focus-visible {
	outline-color: var(--color-brand-secondary);
}

@media (max-width: 1439px) {
	.product-carousel {
		--product-carousel-pad-block: var(--space-80);
		--product-carousel-stack-gap: var(--space-48);
		--product-carousel-header-gap: var(--space-32);
	}

	.product-carousel__heading {
		font-size: var(--text-h2-size);
	}
}

@media (max-width: 767px) {
	.product-carousel {
		--product-carousel-pad-block: var(--space-48);
		--product-carousel-stack-gap: var(--space-32);
		--product-carousel-body-gap: var(--space-24);
	}

	.product-carousel__header {
		flex-wrap: wrap;
		align-items: flex-start;
	}

	.product-carousel__heading {
		font-size: var(--text-h2-size);
	}

	.product-carousel__nav {
		width: 3rem;
		height: 3rem;
	}

	.product-carousel__tab {
		padding: 0.875rem 1.25rem;
	}
}
