.drawer--favorites {
	--drawer-width: min(56%, 1043px);
}

.drawer__body.favorites-drawer {
	overflow: hidden;
	display: flex;
	flex-direction: column;
	min-height: 0;
	margin-right: -50px;
}

.favorites-drawer {
	position: relative;
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
}

.favorites-drawer__views {
	position: relative;
	flex: 1;
	min-height: 0;
}

.favorites-drawer__view {
	position: absolute;
	inset: 0;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	opacity: 0;
	visibility: hidden;
	transform: translateX(16px);
	transition: opacity 0.38s cubic-bezier(0.22, 1, 0.36, 1),
		transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
		visibility 0.38s;
	pointer-events: none;
}

.favorites-drawer[data-active-view="list"] [data-favorites-view="list"],
.favorites-drawer[data-active-view="product"] [data-favorites-view="product"] {
	position: relative;
	inset: auto;
	z-index: 2;
	height: 100%;
	min-height: 0;
	opacity: 1;
	visibility: visible;
	transform: translateX(0);
	pointer-events: auto;
	padding-right: 50px;
}

.favorite-product {
	padding-bottom: 40px;
}

.favorite-product__back {
	position: relative;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	gap: 20px;
	margin: 0 0 28px;
	padding: 0;
	border: 0;
	background: transparent;
	font-family: inherit;
	font-weight: 400;
	font-size: 16px;
	line-height: 20px;
	letter-spacing: 0.2px;
	text-transform: uppercase;
	color: var(--color-noir);
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.favorite-product__back:hover {
	opacity: 0.6;
}

.favorites-drawer__loader:not([hidden]) {
	pointer-events: auto;
}

.favorites-drawer__loader[hidden] {
	pointer-events: none;
}

.favorites-drawer__loader {
	position: absolute;
	inset: 0;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(247, 244, 239, 0.72);
	backdrop-filter: blur(2px);
}

.favorites-drawer__loader[hidden] {
	display: none;
}

.favorites-drawer__loader span {
	font-size: 12px;
	letter-spacing: 0.2px;
	text-transform: uppercase;
	color: var(--color-second-font);
}

.favorites-list__title {
	margin: 0 0 30px;
	font-weight: 400;
	font-size: 18px;
	line-height: 28px;
	text-transform: uppercase;

}

.favorites-list__grid {
	display: flex;
	flex-wrap: wrap;
}

.favorites-list__grid--empty {
	display: block;
}

.favorites-list__empty {
	display: flex;
	flex-direction: column;
	gap: 24px;
	max-width: 585px;
	flex: 1;
}
.favorites-list {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.favorites-list__empty .btn.btn--reverse {
	max-width: max-content;
}
.favorites-list__empty p {
	margin: 0;
	font-size: 14px;
	line-height: 22px;
	color: var(--color-second-font);
}

.favorites-list .products-grid {
	gap: 48px 32px;
}

.favorites-list .products-grid .product-card {
	flex: 0 0 calc(50% - 16px);
	max-width: calc(50% - 16px);
	display: flex;
	flex-direction: column;
}

.favorites-list .product-card__content {
	position: relative;
	height: auto;
	overflow: visible;
	padding-bottom: 0;
}

.favorites-list .product-card__content > * {
	position: static;
	opacity: 1;
	visibility: visible;
}

.favorites-list .product-card:hover .product-card__content--static{
	opacity: 1;
	visibility: visible;
}
.favorites-list .product-card__wishlist {
	opacity: 1;
	visibility: visible;
	border: 0;
	background: transparent;
	padding: 0;
	cursor: pointer;
	position: absolute;
}

.favorites-list .product-card__wishlist.in-wishlist path {
	fill: var(--color-noir);
}

.favorites-list .product-card__content--hover {
	display: none;
}

.favorites-list .product-card__media,
.favorites-list .product-card__name {
	cursor: pointer;
}

.favorite-card__cart {
	width: 100%;
	margin-top: 12px;
}

.product-gallery--stack {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.product-gallery__item {
	aspect-ratio: 3 / 4;
	background: var(--color-light);
	overflow: hidden;
}

.product-gallery__item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Мобилка: свайп-галерея с линейной пагинацией (как product-card) */
.product-gallery--slider {
	position: relative;
	width: 100%;
}

.product-gallery--slider .swiper {
	width: 100%;
	overflow: hidden;
	max-width: 100%;
	min-width: 0;
}

.product-gallery--slider .swiper-slide {
	aspect-ratio: 3 / 4;
	background: var(--color-light);
}

.product-gallery--slider .swiper-slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.product-gallery--slider .swiper-pagination {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	gap: 0;
	top: auto;
	bottom: 0;
	left: 0;
	right: 0;
	width: auto;
	height: auto;
	padding-bottom: 16px;
	pointer-events: none;
}

.product-gallery--slider .swiper-pagination-bullet {
	flex: 0 0 auto;
	position: relative;
	width: 46px;
	height: 28px;
	margin: 0 !important;
	border-radius: 0;
	background: transparent;
	opacity: 0.45;
	pointer-events: auto;
	cursor: pointer;
}

.product-gallery--slider .swiper-pagination-bullet::before {
	content: '';
	position: absolute;
	left: var(--pagination-bullet-left, calc(50% - 23px));
	bottom: 0;
	width: 46px;
	height: 1px;
	background: #fff;
}

.product-gallery--slider .swiper-pagination-bullet-active {
	opacity: 1;
}

.product-options__sku {
	font-weight: 500;
	font-size: 11px;
	line-height: 16px;
	letter-spacing: 0.2px;
	color: #988974;
	margin-bottom: 8px;
}

.product-options__name {
	margin: 0 0 4px;
	font-weight: 400;
	font-size: 16px;
	line-height: 26px;
}

.product-options__price-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}

.product-options__price {
	font-weight: 500;
	font-size: 14px;
	line-height: 22px;
}

.product-options__bonus {
	font-weight: 400;
	font-size: 10px;
	line-height: 18px;
	letter-spacing: 0.2px;
	text-transform: uppercase;
	padding: 2px 5px;
	border: 0.5px solid #a8977f;
	color: #A8977F;
}

.product-options__hint {
	margin: 0 0 41px;
	font-weight: 400;
	font-size: 11px;
	line-height: 16px;
	color: #a8977f;
}
.product-options__hint a{
	color: #a8977f;
}
.product-options__group {
	margin-bottom: 28px;
}

.product-options__label {
	margin-bottom: 10px;
	font-weight: 400;
	font-size: 12px;
	line-height: 16px;
}

.product-options__colors {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}
.favorites-list__footer{
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 38px;
}
.favorites-list__login{
	font-weight: 400;
	font-size: 12px;
	line-height: 20px;
	letter-spacing: 0.2px;
	text-transform: uppercase;
	border: none;
	background-color: transparent;
	border-bottom: 1px solid;
	padding: 0;
}
.product-options__actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	justify-content: center;
	align-items: center;
	margin-top: 20px;
}
.product-options__login {
	font-weight: 400;
	font-size: 12px;
	line-height: 20px;
	letter-spacing: 0.2px;
	text-transform: uppercase;
	border: none;
	border-bottom: none;
	padding: 0;
	cursor: pointer;
	width: 100%;
	background-color: transparent;
	margin-top: 10px;
	text-decoration: underline;
	text-underline-offset: 4px;
}
.product-options__colors li {
	border-bottom: 1px solid transparent;
	padding-bottom: 5px;
	transition: border-color 0.2s ease;
}

.product-options__colors li.is-active {
	border-color: var(--color-noir);
}

.product-options__colors button {
	width: 20px;
	height: 20px;
	padding: 0;
	border: 0;
	background: var(--swatch);
	cursor: pointer;
}

.product-options__sizes {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
}

.product-options__sizes li.is-active button {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.product-options__sizes li.is-disabled button {
	text-decoration: line-through;
	cursor: not-allowed;
	opacity: 0.4;
}

.product-options__sizes button {
	padding: 0;
	border: 0;
	background: transparent;
	font-family: inherit;
	font-weight: 400;
	font-size: 14px;
	line-height: 22px;
	color: var(--color-noir);
	cursor: pointer;
}

.product-options__more {
	display: inline-block;
	margin: 8px 0 28px;
	padding: 0;
	border: 0;
	background: transparent;
	font-family: inherit;
	font-weight: 400;
	font-size: 12px;
	line-height: 20px;
	letter-spacing: 0.2px;
	text-decoration: underline;
	text-underline-offset: 4px;
	text-transform: uppercase;
	color: var(--color-noir);
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.product-options__more:hover {
	opacity: 0.6;
}

.product-options__submit {
	width: 100%;
}

.favorite-product__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
	gap: 80px;
	align-items: start;
}

.favorite-product .product-options {
	position: sticky;
	top: 0;
	align-self: start;
	padding-top: 40px;
}

@media (max-width: 1024px) {
	.drawer--favorites {
		--drawer-width: min(88%, 100vw);
	}

	.favorite-product__layout {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.favorite-product .product-options {
		position: static;
	}
}

@media (max-width: 767px) {
	.favorites-list .products-grid .product-card {
		flex: 0 0 100%;
		max-width: 100%;
	}

	.favorites-list__title {
		margin-bottom: 30px;
		font-size: 16px;
		line-height: 20px;
	}
	.favorites-list .products-grid {
		gap: 30px 30px;
	}
	.drawer__body.favorites-drawer{
		margin-right: -16px;
	}
	.favorites-drawer[data-active-view="list"] [data-favorites-view="list"], .favorites-drawer[data-active-view="product"] [data-favorites-view="product"] {
		padding-right: 16px;
	}
	.favorite-product .product-options{
		padding-top: 0;
	}
	.favorite-product__layout{
		display: block;
	}

	.product-gallery--slider {
		width: 100%;
		max-width: none;
		margin-bottom: 20px;
	}
	.product-options__name {
		margin: 0 0 3px;
		font-size: 16px;
		line-height: 20px;
	}
	.product-options__price {
		font-size: 16px;
		line-height: 20px;
	}
	.product-options__bonus{
		padding: 1px 5px;
	}
	.product-options__hint{
		margin: 0 0 16px;
	}
	.product-options__colors button{
		width: 36px;
		height: 36px;
	}
	.product-options__group {
		margin-bottom: 35px;
	}
	.product-options__group:has(.count) {
		display: none;
	}
	.product-options__more {
		margin: 0;
		line-height: 16px;
		text-transform: none;
	}

	.favorite-product .product-options__login {
		display: block;
		width: 100%;
		margin-top: 10px;
		text-align: center;
		background: transparent;
		border: none;
		text-decoration: underline;
		text-underline-offset: 4px;
	}

	.product-options__actions{
		position: sticky;
		bottom: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.favorites-drawer__view,
	.favorite-card__media img,
	.product-gallery__item img {
		transition-duration: 0.01ms;
	}
}
