/* ===== Страница избранного /favorite/ — Abrau Club ===== */

body:has(.favorite-page) .main_banner_after_banner,
body:has(.favorite-page) .main_banner {
	display: none !important;
}

body:has(.favorite-page) .maintop_bnrs {
	margin-bottom: 0 !important;
}

body:has(.favorite-page) #breadcrumbs {
	display: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

body:has(.favorite-page) .main_content {
	padding-top: calc(136px + env(safe-area-inset-top, 0px));
}

body:has(.favorite-page) .main_content .wrapper-inner.static_page {
	margin-top: 0 !important;
	max-width: 1100px;
}

body:has(.favorite-page) .title_box {
	display: none !important;
}

.favorite-page {
	--fp-ink: #151515;
	--fp-muted: #7a7a7a;
	--fp-line: #e8e8e8;
	--fp-bg: #f6f6f6;
	--fp-card: #ffffff;
	--fp-radius: 10px;
	--fp-ease: cubic-bezier(.22, 1, .36, 1);
	font-family: 'Futura New', 'Futura New Light', sans-serif;
	max-width: 1040px;
	margin: 0 auto 72px;
	padding: 0 20px;
	color: var(--fp-ink);
}

.favorite-page__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin: 0 0 24px;
	padding: 0 0 18px;
	border-bottom: 1px solid var(--fp-line);
}

.favorite-page__title {
	margin: 0;
	font-family: 'Futura New', 'Futura New Light', sans-serif;
	font-size: clamp(26px, 4vw, 36px);
	font-weight: 400;
	letter-spacing: -0.02em;
	color: var(--fp-ink);
	line-height: 1.15;
}

.favorite-page__to-catalog {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	padding: 0 18px;
	border-radius: 0;
	border: 1px solid var(--fp-line);
	background: transparent;
	color: var(--fp-muted);
	font-size: 13px;
	font-weight: 400;
	text-decoration: none;
	transition: border-color .2s var(--fp-ease), color .2s var(--fp-ease), background .2s var(--fp-ease);
}

.favorite-page__to-catalog:hover {
	border-color: var(--fp-ink);
	color: var(--fp-ink);
	background: var(--fp-bg);
}

/* ---- списки ---- */
.favorite-page .wishlist-btns {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 0 0 20px;
	margin: 0 0 8px;
	border-bottom: 1px solid var(--fp-line);
}

.favorite-page .wishlist-btn {
	margin: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 16px;
	border-radius: 0;
	background: var(--fp-bg);
	border: 1px solid transparent;
	color: var(--fp-ink);
	font-family: inherit;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background .2s var(--fp-ease), border-color .2s var(--fp-ease), color .2s var(--fp-ease);
}

.favorite-page .wishlist-btn:hover {
	background: #ececec;
	border-color: transparent;
}

.favorite-page .wishlist-btn:hover:active {
	background: #e2e2e2;
}

.favorite-page .wishlist-btn.active {
	background: var(--fp-ink);
	border-color: var(--fp-ink) !important;
	color: #fff;
}

.favorite-page .wishlist-btn.create-wishlist {
	background: transparent;
	border: 1px dashed #c8c8c8 !important;
	color: var(--fp-muted);
}

.favorite-page .wishlist-btn.create-wishlist:hover {
	border-color: var(--fp-ink) !important;
	color: var(--fp-ink);
	background: var(--fp-bg);
}

.favorite-page .create-wishlist::before {
	content: '+';
	display: inline-block;
	font-size: 18px;
	font-weight: 400;
	margin-right: 6px;
	line-height: 1;
}

/* ---- шапка текущего списка ---- */
.favorite-page .wishlist-change-wrap {
	padding: 0 0 20px;
}

.favorite-page .wishlist-change {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	background: var(--fp-bg);
	border-radius: 0;
	padding: 16px 18px;
}

.favorite-page .wishlist-change h3 {
	margin: 0;
	font-family: 'Futura New', 'Futura New Light', sans-serif;
	font-size: 18px;
	line-height: 1.25;
	font-weight: 400;
	letter-spacing: -0.01em;
	color: var(--fp-ink);
}

.favorite-page .wishlist-change .dots {
	width: 36px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 0;
	border-radius: 0;
	background: #fff;
	border: 1px solid var(--fp-line);
	cursor: pointer;
	transition: border-color .2s var(--fp-ease), background .2s var(--fp-ease);
}

.favorite-page .wishlist-change .dots:hover {
	border-color: var(--fp-ink);
	background: #fff;
}

.favorite-page .wishlist-change .dots span {
	width: 3px;
	height: 3px;
	border-radius: 0;
	background: var(--fp-ink);
}

.favorite-page .wishlist-change_popup {
	border-radius: 0;
	box-shadow: 0 8px 28px rgba(21, 21, 21, 0.12);
	border: 1px solid var(--fp-line);
	padding: 8px;
	overflow: hidden;
}

.favorite-page .wishlist-change_popup::before {
	border: 1px solid var(--fp-line);
	border-bottom: none;
	border-right: none;
}

.favorite-page .wishlist-change_btn {
	border-radius: 0;
	font-size: 13px;
	color: var(--fp-ink);
}

.favorite-page .wishlist-change_btn:hover {
	background: var(--fp-bg);
}

.favorite-page .wishlist-change_btn:hover:active {
	background: #ececec;
}

/* ---- сетка товаров ---- */
.favorite-page .wishlist-items {
	margin-top: 8px;
}

.favorite-page .sorting_box,
.favorite-page .wishlist-items .sorting_box {
	display: none !important;
}

.favorite-page .wishlist-items .sort-line,
.favorite-page .wishlist-items .sott-title,
.favorite-page .wishlist-items .sort-type {
	font-size: 13px;
	color: var(--fp-muted);
}

.favorite-page .wishlist-items .limit_and_view {
	display: none !important;
}

.favorite-page .remove-wishlist {
	opacity: 1;
	width: 32px;
	height: 32px;
	top: 10px;
	right: 10px;
	border-radius: 0;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 2px 8px rgba(21, 21, 21, 0.1);
	z-index: 5;
}

.favorite-page .remove-wishlist svg {
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

/* ---- пустые состояния ---- */
.favorite-page .bx-sbb-empty-cart-container,
.favorite-page .wishlist-items .bx-sbb-empty-cart-text {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 56px 24px;
	margin: 12px 0 0;
	background: var(--fp-bg);
	border-radius: 0;
}

.favorite-page .bx-sbb-empty-cart-text {
	padding: 48px 20px;
}

.favorite-page .bx-sbb-empty-cart-text .big-text {
	margin: 0 0 10px;
	font-family: 'Futura New', 'Futura New Light', sans-serif;
	font-size: clamp(18px, 3vw, 22px);
	font-weight: 400;
	letter-spacing: -0.02em;
	color: var(--fp-ink);
	line-height: 1.3;
}

.favorite-page .bx-sbb-empty-cart-text .small-text {
	margin: 0;
	max-width: 360px;
	font-size: 14px;
	line-height: 1.45;
	color: var(--fp-muted);
	font-weight: 400;
}

.favorite-page .bx-sbb-empty-cart-text .small-text svg {
	display: inline-block;
	vertical-align: -4px;
	margin: 0 2px;
}

.favorite-page .bx-sbb-empty-cart-btn {
	margin-top: 22px;
}

.favorite-page .bx-sbb-empty-cart-btn .btn_fill,
.favorite-page .bx-sbb-empty-cart-btn .catalog-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 22px;
	border-radius: 0;
	background: var(--fp-ink) !important;
	border: 1px solid var(--fp-ink) !important;
	color: #fff !important;
	font-size: 14px;
	font-weight: 400;
	text-decoration: none;
	text-transform: none;
	letter-spacing: 0;
	transition: opacity .2s var(--fp-ease), transform .15s var(--fp-ease);
}

.favorite-page .bx-sbb-empty-cart-btn .btn_fill:hover,
.favorite-page .bx-sbb-empty-cart-btn .catalog-link:hover {
	opacity: 0.88;
}

/* ---- попап создания/переименования списка ---- */
body:has(.favorite-page) #wishList {
	width: min(440px, calc(100vw - 32px)) !important;
	padding: 28px 28px 24px !important;
	border-radius: 0 !important;
	box-shadow: 0 16px 48px rgba(21, 21, 21, 0.16) !important;
}

body:has(.favorite-page) #wishList .popup-window-titlebar-text,
body:has(.favorite-page) #wishList .popup-window-titlebar span {
	font-family: 'Futura New', 'Futura New Light', sans-serif !important;
	font-size: 18px !important;
	font-weight: 400 !important;
	color: var(--fp-ink, #151515) !important;
}

body:has(.favorite-page) #changeWishlist,
body:has(.favorite-page) #createWishlist {
	width: 100%;
	box-sizing: border-box;
	font-size: 14px;
	font-weight: 400;
	padding: 14px 16px;
	border: 1px solid var(--fp-line, #e8e8e8);
	border-radius: 0;
	outline: none;
	transition: border-color .2s ease;
}

body:has(.favorite-page) #changeWishlist:focus,
body:has(.favorite-page) #createWishlist:focus {
	border-color: #151515;
}

body:has(.favorite-page) #wishList .popup-window-buttons {
	display: flex;
	gap: 10px;
	margin-top: 8px;
}

body:has(.favorite-page) #wishList .btn_fill,
body:has(.favorite-page) #wishList .btn_border {
	flex: 1;
	min-height: 44px;
	border-radius: 0;
	font-size: 14px;
	font-weight: 400;
	text-transform: none;
}

body:has(.favorite-page) #wishList .btn_fill {
	background: #151515 !important;
	border-color: #151515 !important;
	color: #fff !important;
}

body:has(.favorite-page) #wishList .btn_border {
	background: transparent !important;
	border: 1px solid #e8e8e8 !important;
	color: #151515 !important;
	margin-left: 0 !important;
}

@media (max-width: 767px) {
	.favorite-page {
		padding: 0 16px;
		margin-bottom: 48px;
	}

	.favorite-page__head {
		align-items: flex-start;
		flex-direction: column;
		gap: 12px;
	}

	.favorite-page__to-catalog {
		width: 100%;
	}

	.favorite-page .wishlist-change {
		padding: 14px 14px;
	}

	.favorite-page .bx-sbb-empty-cart-container,
	.favorite-page .wishlist-items .bx-sbb-empty-cart-text {
		padding: 40px 18px;
	}
}

/* ---- Поделиться списком ---- */
.wishlist-change {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
}

.wishlist-change__actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.wishlist-change_share.wishlist-change_action {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 36px;
	padding: 0 12px;
	border: 1px solid var(--fp-line, #e8e8e8);
	border-radius: 0;
	background: #fff;
	color: var(--fp-ink, #151515);
	font-size: 13px;
	font-weight: 400;
	cursor: pointer;
	transition: border-color .2s ease, background .2s ease;
}

.wishlist-change_share.wishlist-change_action:hover {
	border-color: var(--fp-ink, #151515);
	background: var(--fp-bg, #f6f6f6);
}

.wishlist-change_share svg {
	flex-shrink: 0;
}

.wishlist-share-popup {
	padding: 4px 0 8px;
	text-align: left;
}

.wishlist-share-popup__hint {
	margin: 0 0 12px;
	font-size: 14px;
	line-height: 1.4;
	color: #7a7a7a;
}

.wishlist-share-popup__input {
	width: 100%;
	box-sizing: border-box;
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid #e8e8e8;
	border-radius: 0;
	font-size: 13px;
	color: #151515;
	background: #f6f6f6;
}

.wishlist-share-popup__status {
	min-height: 18px;
	margin: 8px 0 0;
	font-size: 13px;
	color: #059733;
}

.wishlist-share-popup__revoke {
	margin-top: 14px;
	padding: 0;
	border: 0;
	background: none;
	color: #7a7a7a;
	font-size: 13px;
	text-decoration: underline;
	cursor: pointer;
}

.wishlist-share-popup__revoke:hover {
	color: #151515;
}

.wishlist-shared {
	padding: 8px 0 40px;
	text-align: center;
}

.wishlist-shared__badge {
	display: inline-flex;
	align-items: center;
	height: 28px;
	padding: 0 12px;
	margin-bottom: 10px;
	border-radius: 0;
	background: #f6f6f6;
	border: 1px solid #e8e8e8;
	font-size: 12px;
	font-weight: 400;
	color: #7a7a7a;
	letter-spacing: 0.02em;
}

.wishlist-shared__title {
	margin: 0 0 24px;
	font-family: 'Futura New', 'Futura New Light', sans-serif;
	font-size: clamp(22px, 3.5vw, 30px);
	font-weight: 400;
	color: #151515;
}

.wishlist-shared__catalog {
	display: inline-flex;
	margin-top: 28px;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 20px;
	border-radius: 0;
	border: 1px solid #e8e8e8;
	color: #7a7a7a;
	text-decoration: none;
	font-size: 13px;
	font-weight: 400;
}

.wishlist-shared__catalog:hover {
	border-color: #151515;
	color: #151515;
}

.wishlist-items--shared {
	text-align: left;
}

@media (max-width: 640px) {
	.wishlist-change_share span {
		display: none;
	}
	.wishlist-change_share.wishlist-change_action {
		width: 36px;
		padding: 0;
		justify-content: center;
	}
}

/* ---- Перенос в список ---- */
.favorite-page .product-item-container,
.favorite-page .product-item,
.favorite-page [data-entity="item"] {
	position: relative;
}

.favorite-page .move-to-wishlist {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 6;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 32px;
	padding: 0 12px;
	border: 1px solid #e8e8e8;
	border-radius: 0;
	background: rgba(255, 255, 255, 0.96);
	color: #151515;
	font-size: 12px;
	font-weight: 400;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(21, 21, 21, 0.1);
	white-space: nowrap;
}

.favorite-page .move-to-wishlist:hover {
	border-color: #151515;
	background: #fff;
}

.favorite-page .wishlist-change-wrap {
	margin-bottom: 8px;
}

.favorite-page .wishlist-change__actions .dots-wrap {
	position: relative;
}

.wish-popup-move-hint {
	margin: 12px 0 0;
	font-size: 13px;
	color: #7a7a7a;
	text-align: left;
}

.favorite-page .product-item-container,
.favorite-page .product-item,
.favorite-page [data-entity="item"] {
	position: relative;
}
