.wolf-bestsellers {
	--seller-ink: #101820;
	--seller-navy: #10243a;
	--seller-gap: 18px;
	--seller-columns: 4;
	max-width: 1400px;
	margin: 36px auto 0;
	padding: 22px 0 20px;
	background: #fff;
	color: var(--seller-ink);
}

.wolf-bestsellers [hidden] { display: none; }
.wolf-bestsellers__header { margin: 0 0 24px; text-align: center; }

.wolf-bestsellers__title {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(8px, 2.3vw, 28px);
	margin: 0;
	color: var(--seller-ink);
	font-size: 28px;
	font-weight: 800;
	line-height: 1.15;
}

.wolf-bestsellers__title::before,
.wolf-bestsellers__title::after {
	flex: 1 1 8%;
	max-width: 134px;
	height: 1px;
	background: #e4e7eb;
	content: "";
}

.wolf-bestsellers__subtitle {
	margin: 5px 0 0;
	color: #5b6470;
	font-size: 14px;
	line-height: 1.4;
}

.wolf-bestsellers__carousel { position: relative; }

.wolf-bestsellers__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - var(--seller-gap) * (var(--seller-columns) - 1)) / var(--seller-columns));
	gap: var(--seller-gap);
	margin: 0;
	padding: 0 0 5px;
	overflow-x: auto;
	overscroll-behavior-inline: contain;
	scrollbar-width: none;
	scroll-snap-type: x mandatory;
	list-style: none;
}

.wolf-bestsellers__track::-webkit-scrollbar { display: none; }
.wolf-bestsellers__track.is-animating { scroll-snap-type: none; }

.wolf-bestsellers__slide {
	display: flex;
	min-width: 0;
	scroll-snap-align: start;
}

.wolf-bestsellers__card {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	border: 1px solid #eceff2;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 2px 5px rgb(16 36 58 / 5%);
	transition: box-shadow 350ms ease;
}

.wolf-bestsellers__media {
	position: relative;
	aspect-ratio: 1 / 1.04;
	background: #f2f3f6;
}

.wolf-bestsellers__photo,
.wolf-bestsellers__primary,
.wolf-bestsellers__image {
	display: block;
	width: 100%;
	height: 100%;
}

.wolf-bestsellers__photo { position: absolute; inset: 0; overflow: hidden; }

.wolf-bestsellers__image {
	object-fit: cover;
	object-position: center top;
	transition: opacity 350ms ease, transform 350ms ease;
}

.wolf-bestsellers__image--secondary {
	position: absolute;
	inset: 0;
	opacity: 0;
}

.wolf-bestsellers__favorite {
	position: absolute;
	z-index: 1;
	top: 10px;
	right: 10px;
	display: grid;
	width: 30px;
	height: 30px;
	place-items: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: #111827;
	box-shadow: 0 1px 6px rgb(16 36 58 / 16%);
	cursor: pointer;
}

.wolf-bestsellers__favorite[aria-pressed="true"] { color: #a62e49; }
.wolf-bestsellers__favorite[aria-pressed="true"] svg { fill: currentColor; }

.wolf-bestsellers__details {
	position: relative;
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
	padding: 10px 11px 8px;
}

.wolf-bestsellers__name {
	min-height: 2.6em;
	margin: 0 0 3px;
	color: #111827;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
}

.wolf-bestsellers__name a {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	color: inherit;
	text-decoration: none;
	overflow-wrap: anywhere;
}

.wolf-bestsellers__name a:hover { text-decoration: underline; }

.wolf-bestsellers__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	column-gap: 5px;
	color: var(--seller-ink);
	font-size: 14px;
	font-weight: 800;
	line-height: 1.3;
}

.wolf-bestsellers__price ins { order: -1; text-decoration: none; }
.wolf-bestsellers__price del { color: #697380; font-size: .86em; font-weight: 500; }

.wolf-bestsellers__rating {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-top: 4px;
	color: #596371;
	font-size: 12px;
}

.wolf-bestsellers__rating:empty { display: none; }

.wolf-bestsellers__rating .star-rating {
	position: relative;
	width: 5.4em;
	height: 1.2em;
	overflow: hidden;
	color: #d5d9df;
	font: 12px/1.2 sans-serif;
	letter-spacing: .025em;
	white-space: nowrap;
}

.wolf-bestsellers__rating .star-rating::before,
.wolf-bestsellers__rating .star-rating span::before {
	position: absolute;
	inset: 0 auto auto 0;
	content: "\2605\2605\2605\2605\2605";
}

.wolf-bestsellers__rating .star-rating span {
	position: absolute;
	inset: 0 auto auto 0;
	height: 100%;
	overflow: hidden;
	color: #f5b301;
	text-indent: -999px;
}

.wolf-bestsellers__rating .star-rating span::before { text-indent: 0; }

.wolf-bestsellers__actions {
	display: flex;
	align-items: center;
	gap: 3px;
	justify-content: flex-end;
	min-height: 34px;
	margin-top: auto;
	padding-top: 4px;
}

.wolf-bestsellers__colors {
	display: flex;
	flex: 1;
	align-items: center;
	flex-wrap: wrap;
	gap: 2px;
	min-width: 0;
}

.wolf-bestsellers__swatch {
	display: grid;
	flex: 0 0 auto;
	width: 15px;
	height: 24px;
	place-items: center;
	border-radius: 50%;
}

.wolf-bestsellers__swatch::after {
	box-sizing: border-box;
	width: 12px;
	height: 12px;
	border: 1px solid rgb(16 36 58 / 24%);
	border-radius: 50%;
	background: var(--swatch-color);
	content: "";
}

.wolf-bestsellers__swatch[aria-current]::after { outline: 1px solid #42536a; outline-offset: 1px; }

.wolf-bestsellers__more-colors {
	color: #596371;
	font-size: 11px;
	font-weight: 700;
	text-decoration: none;
}

.wolf-bestsellers__add-to-cart {
	display: grid;
	flex: 0 0 36px;
	width: 36px;
	height: 34px;
	place-items: center;
	padding: 0;
	border: 0;
	border-radius: 7px;
	background: var(--seller-navy);
	color: #fff;
	text-decoration: none;
	cursor: pointer;
}

.wolf-bestsellers__add-to-cart:hover,
.wolf-bestsellers__add-to-cart:focus { background: #19436a; color: #fff; }
.wolf-bestsellers__add-to-cart[aria-busy="true"] { opacity: .58; cursor: wait; }
.wolf-bestsellers__add-to-cart .wolf-bestsellers__check,
.wolf-bestsellers__add-to-cart.is-added svg:first-child { display: none; }
.wolf-bestsellers__add-to-cart.is-added .wolf-bestsellers__check { display: block; }
.wolf-bestsellers__add-to-cart.is-added { animation: wolf-bestseller-confirm 240ms ease-out; }
@keyframes wolf-bestseller-confirm { 45% { transform: scale(1.09); } }

.wolf-bestsellers__message {
	position: absolute;
	z-index: 1;
	right: 7px;
	bottom: 44px;
	max-width: calc(100% - 14px);
	margin: 0;
	padding: 4px 6px;
	border-radius: 4px;
	background: #f1f8f4;
	color: #23543e;
	font-size: 10px;
	line-height: 1.25;
}

.wolf-bestsellers__message.is-error { background: #fff1f1; color: #902b3b; }
.wolf-bestsellers__message:empty { display: none; }

.wolf-bestsellers__arrow {
	position: absolute;
	z-index: 2;
	top: 35%;
	display: grid;
	width: 34px;
	height: 34px;
	place-items: center;
	padding: 0;
	border: 1px solid #e7eaee;
	border-radius: 50%;
	background: #f8f9fa;
	color: #101820;
	box-shadow: 0 2px 8px rgb(16 36 58 / 10%);
	cursor: pointer;
}

.wolf-bestsellers__arrow::after {
	width: 8px;
	height: 8px;
	border-top: 1.6px solid currentColor;
	border-right: 1.6px solid currentColor;
	content: "";
}

.wolf-bestsellers__arrow--previous { left: -13px; }
.wolf-bestsellers__arrow--next { right: -13px; }
.wolf-bestsellers__arrow--previous::after { transform: translateX(2px) rotate(-135deg); }
.wolf-bestsellers__arrow--next::after { transform: translateX(-2px) rotate(45deg); }
.wolf-bestsellers__arrow:disabled { opacity: .38; cursor: default; }

.wolf-bestsellers :is(a, button, [tabindex]):focus-visible {
	outline: 2px solid #2969a0;
	outline-offset: -2px;
}

.wolf-bestsellers__empty { margin: 0; text-align: center; color: #5b6470; }

@media (hover: hover) and (pointer: fine) {
	.wolf-bestsellers__card:hover { box-shadow: 0 3px 10px rgb(16 36 58 / 12%); }
	.wolf-bestsellers__media:hover .wolf-bestsellers__image { transform: scale(1.035); }
	.wolf-bestsellers__media:hover .wolf-bestsellers__image--secondary.is-ready { opacity: 1; }
}

@media (max-width: 1199px) {
	.wolf-bestsellers { --seller-gap: 14px; }
}

@media (max-width: 991px) {
	.wolf-bestsellers { --seller-gap: 12px; --seller-columns: 3; }
}

@media (max-width: 767px) {
	.wolf-bestsellers { --seller-gap: 8px; --seller-columns: 2; margin-top: 30px; }
	.wolf-bestsellers__title { gap: clamp(4px, 1.6vw, 10px); font-size: clamp(21px, 5.6vw, 23px); white-space: nowrap; }
	.wolf-bestsellers__title::before,
	.wolf-bestsellers__title::after { flex: 0 1 25px; min-width: 0; }
	.wolf-bestsellers__subtitle { font-size: 12px; }
	.wolf-bestsellers__card { border-radius: 9px; }
	.wolf-bestsellers__media { aspect-ratio: 4 / 5; }
	.wolf-bestsellers__details { padding: 8px 6px 6px; }
	.wolf-bestsellers__name { font-size: 12px; }
	.wolf-bestsellers__price { font-size: 12px; }
	.wolf-bestsellers__add-to-cart { flex-basis: 34px; width: 34px; }
	.wolf-bestsellers__arrow { width: 27px; height: 27px; }
	.wolf-bestsellers__arrow--previous { left: -7px; }
	.wolf-bestsellers__arrow--next { right: -7px; }
}

@media (max-width: 359px) {
	.wolf-bestsellers__colors { gap: 1px; }
	.wolf-bestsellers__swatch { width: 13px; }
	.wolf-bestsellers__more-colors { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
	.wolf-bestsellers__card,
	.wolf-bestsellers__image { transition: none; }
	.wolf-bestsellers__media:hover .wolf-bestsellers__image { transform: none; }
	.wolf-bestsellers__add-to-cart.is-added { animation: none; }
}
