.depilart-best-sellers {
	--depilart-best-sellers-accent: var(--wp--preset--color--primary, #614d76);
	--depilart-best-sellers-text: #111;
	padding: 32px 0;
	color: var(--depilart-best-sellers-text);
}

.depilart-best-sellers__header {
	display: grid;
	min-height: 72px;
	margin: 24px 0 18px;
	padding: 32px;
	place-items: center;
	color: #111;
	text-align: center;
	background: #f7f7f8;
	border: 1px solid #ececef;
	border-radius: 8px;
}

.depilart-best-sellers__title {
	margin: 0;
	color: var(--depilart-best-sellers-text);
	font-size: clamp(1.25rem, 2vw, 1.75rem);
	font-weight: 700;
	line-height: 1.2;
}

.depilart-best-sellers__tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 16px;
	margin-bottom: 16px;
}

.depilart-best-sellers__tab {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 32px;
	padding: 8px 14px;
	color: var(--depilart-best-sellers-text);
	font-size: 0.82rem;
	font-weight: 600;
	line-height: 1;
	background: transparent;
	border: 0;
	border-radius: 9999px;
	cursor: pointer;
	transition: background-color 0.18s ease, color 0.18s ease;
}

.depilart-best-sellers__tab:hover,
.depilart-best-sellers__tab:focus-visible,
.depilart-best-sellers__tab.is-active {
	color: #fff;
	background: var(--depilart-best-sellers-accent);
}

.depilart-best-sellers__tab:focus-visible {
	outline: 3px solid rgba(97, 77, 118, 0.18);
	outline-offset: 3px;
}

.depilart-best-sellers__panel {
	display: none;
}

.depilart-best-sellers__panel.is-active {
	display: block;
}

.products-carousel {
	position: relative;
	width: 100%;
	padding: 0 40px;
}

.products-carousel__viewport {
	width: 100%;
	overflow: hidden;
	padding-bottom: 2px;
}

.products-carousel__track {
	display: flex;
	gap: 18px;
	padding: 0 0 2px;
	margin: 0;
	list-style: none;
	transition: transform 0.45s ease;
	will-change: transform;
}

.products-carousel__slide {
	box-sizing: border-box;
	flex: 0 0 calc((100% - 54px) / 4);
	min-width: 0;
}

.products-carousel__empty {
	width: 100%;
	padding: 32px;
	color: #6b6680;
	text-align: center;
	list-style: none;
}

.products-carousel__arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: inline-grid;
	width: 40px;
	height: 40px;
	padding: 0;
	place-items: center;
	color: var(--depilart-best-sellers-accent);
	background: #fff;
	border: 1px solid #ded6e6;
	border-radius: 9999px;
	box-shadow: 0 4px 16px rgba(97, 77, 118, 0.08);
	cursor: pointer;
	transform: translateY(-50%);
	transition: color 0.18s ease, background-color 0.18s ease, filter 0.18s ease;
}

.products-carousel__arrow:hover,
.products-carousel__arrow:focus-visible {
	color: #fff;
	background: var(--depilart-best-sellers-accent);
	outline: none;
}

.products-carousel__arrow svg {
	width: 22px;
	height: 22px;
}

.products-carousel__arrow--prev {
	left: 0;
}

.products-carousel__arrow--next {
	right: 0;
}

.products-carousel__arrow[disabled],
.products-carousel__arrow.is-hidden {
	display: none;
}

.products-carousel__dots {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding-top: 22px;
}

.products-carousel__dot {
	width: 7px;
	height: 7px;
	padding: 0;
	background: #ded6e6;
	border: 0;
	border-radius: 9999px;
	cursor: pointer;
	transition: background-color 0.18s ease, transform 0.18s ease;
}

.products-carousel__dot:hover,
.products-carousel__dot.is-active {
	background: var(--depilart-best-sellers-accent);
}

.products-carousel__dot.is-active {
	transform: scale(1.2);
}

@media (max-width: 992px) {
	.products-carousel__slide {
		flex-basis: calc((100% - 36px) / 3);
	}
}

@media (max-width: 720px) {
	.products-carousel__slide {
		flex-basis: calc((100% - 18px) / 2);
	}
}

@media (max-width: 640px) {
	.depilart-best-sellers__header {
		min-height: 60px;
		border-radius: 14px;
	}

	.depilart-best-sellers__tabs {
		justify-content: flex-start;
		overflow-x: auto;
		padding-bottom: 4px;
		flex-wrap: nowrap;
	}

	.depilart-best-sellers__tab {
		white-space: nowrap;
	}

	.products-carousel {
		padding: 0;
	}

	.products-carousel__arrow--prev {
		left: 8px;
	}

	.products-carousel__arrow--next {
		right: 8px;
	}
}

@media (max-width: 480px) {
	.products-carousel__slide {
		flex-basis: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.products-carousel__track,
	.products-carousel__arrow,
	.products-carousel__dot {
		transition: none;
	}
}
