.twc-home-bestsellers {
	display: grid;
	grid-template-columns: minmax(210px, 280px) minmax(0, 1fr);
	gap: clamp(30px, 4vw, 58px);
	width: 100%;
	min-height: 570px;
	padding: 4px 0 38px;
}

.twc-home-bestsellers__tabs {
	display: flex;
	align-self: start;
	flex-direction: column;
	gap: 4px;
	padding: 2px 0;
}

.twc-home-bestsellers .twc-home-bestsellers__tab {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	width: 100%;
	min-height: 56px;
	padding: 12px 14px 12px 0;
	color: #17212b;
	font: inherit;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.35;
	text-align: left;
	background: transparent;
	border: 0;
	border-bottom: 1px solid #e6ebed;
	border-radius: 0;
	cursor: pointer;
	transition: color 160ms ease-out, padding 160ms ease-out;
}

.twc-home-bestsellers .twc-home-bestsellers__tab svg {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
	fill: none;
	stroke: currentcolor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.7;
	opacity: 0;
	transform: translateX(-5px);
	transition: opacity 160ms ease-out, transform 160ms ease-out;
}

.twc-home-bestsellers .twc-home-bestsellers__tab:hover,
.twc-home-bestsellers .twc-home-bestsellers__tab:focus-visible,
.twc-home-bestsellers .twc-home-bestsellers__tab.is-active {
	padding-left: 10px;
	color: #087f7c;
}

.twc-home-bestsellers .twc-home-bestsellers__tab.is-active {
	font-weight: 700;
	background: #eef8f7;
	border-bottom-color: transparent;
	border-radius: 8px;
}

.twc-home-bestsellers .twc-home-bestsellers__tab:hover svg,
.twc-home-bestsellers .twc-home-bestsellers__tab:focus-visible svg,
.twc-home-bestsellers .twc-home-bestsellers__tab.is-active svg {
	opacity: 1;
	transform: translateX(0);
}

.twc-home-bestsellers .twc-home-bestsellers__tab:focus-visible {
	outline: 2px solid #087f7c;
	outline-offset: 2px;
}

.twc-home-bestsellers__stage {
	position: relative;
	min-width: 0;
}

.twc-home-bestsellers__products {
	min-height: 520px;
	transition: opacity 140ms ease-out;
}

.twc-home-bestsellers.is-loading .twc-home-bestsellers__products {
	opacity: 0.12;
}

.twc-home-bestsellers__loading {
	position: absolute;
	inset: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px 16px;
	pointer-events: none;
}

.twc-home-bestsellers__loading[hidden] {
	display: none;
}

.twc-home-bestsellers__loading span {
	min-height: 240px;
	background: linear-gradient(100deg, #f1f4f5 30%, #fafcfc 50%, #f1f4f5 70%);
	background-size: 220% 100%;
	border-radius: 10px;
	animation: twc-best-loading 1.1s linear infinite;
}

.twc-home-bestsellers__error {
	margin: 18px 0;
	padding: 14px 16px;
	color: #8a3500;
	background: #fff4e8;
	border: 1px solid #f2c28e;
	border-radius: 8px;
}

@keyframes twc-best-loading {
	to { background-position-x: -220%; }
}

@media (max-width: 1024px) {
	.twc-home-bestsellers {
		grid-template-columns: 1fr;
		gap: 24px;
		min-height: 0;
	}

	.twc-home-bestsellers__tabs {
		display: flex;
		overflow-x: auto;
		flex-direction: row;
		gap: 8px;
		padding: 4px 2px 10px;
		scrollbar-width: thin;
	}

	.twc-home-bestsellers .twc-home-bestsellers__tab,
	.twc-home-bestsellers .twc-home-bestsellers__tab:hover,
	.twc-home-bestsellers .twc-home-bestsellers__tab:focus-visible,
	.twc-home-bestsellers .twc-home-bestsellers__tab.is-active {
		width: auto;
		min-height: 44px;
		padding: 9px 14px;
		flex: 0 0 auto;
		border: 1px solid #dce4e5;
		border-radius: 999px;
		white-space: nowrap;
	}

	.twc-home-bestsellers .twc-home-bestsellers__tab svg {
		display: none;
	}

	.twc-home-bestsellers__products {
		min-height: 480px;
	}
}

@media (max-width: 767px) {
	.twc-home-bestsellers {
		padding-bottom: 22px;
	}

	.twc-home-bestsellers__products {
		min-height: 380px;
	}

	.twc-home-bestsellers__loading {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.twc-home-bestsellers__loading span {
		min-height: 210px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.twc-home-bestsellers .twc-home-bestsellers__tab,
	.twc-home-bestsellers .twc-home-bestsellers__tab svg,
	.twc-home-bestsellers__products {
		transition: none;
	}

	.twc-home-bestsellers__loading span {
		animation: none;
	}
}

