/* Список бажань (localStorage) */

.category-products-grid .product-image-wrapper,
.home-cat-slider .product-image-wrapper,
.itemslider .product-image-wrapper {
	position: relative;
}

.estore-wishlist-btn {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
	cursor: pointer;
	transition: transform 0.15s ease, background 0.15s ease;
}

.estore-wishlist-btn:hover {
	transform: scale(1.08);
	background: #fff;
}

.estore-wishlist-btn__icon {
	font-size: 1.15rem;
	line-height: 1;
}

.estore-wishlist-btn.is-active {
	background: rgba(83, 235, 12, 0.15);
	box-shadow: 0 2px 10px rgba(83, 235, 12, 0.25);
}

.estore-wishlist-btn--pdp {
	position: static;
	width: 48px;
	height: 48px;
	flex-shrink: 0;
}

.pdp-buy-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.pdp-buy-row--wishlist-only {
	margin-top: 0.5rem;
}

/* У шапці — лише іконка; випадаючий блок вимкнено (відкривається модалка) */
[data-mini-wishlist] .mini-compare-content,
[data-mini-wishlist].dropdown.open .mini-compare-content {
	display: none !important;
	visibility: hidden !important;
	pointer-events: none !important;
}

#mini-wishlist-wrapper-regular .mini-compare-heading .label,
.header-links .mini-wishlist > .mini-compare-heading .label {
	display: none !important;
}

.mini-wishlist:not(.is-empty) > .mini-compare-heading .count:not(:empty) {
	display: inline-block;
}

/* Модальне вікно списку бажань */
.estore-wishlist-shell {
	position: fixed;
	inset: 0;
	z-index: 10060;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.estore-wishlist-shell__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.5);
	backdrop-filter: blur(2px);
}

.estore-wishlist-shell__panel {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: min(720px, calc(100vw - 2rem));
	max-height: min(90vh, 680px);
	height: auto;
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
	overflow: hidden;
}

.estore-wishlist-shell__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1.15rem;
	border-bottom: 1px solid #ececec;
	flex-shrink: 0;
}

.estore-wishlist-shell__title {
	margin: 0;
	font-size: 1.15rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.estore-wishlist-shell__close {
	border: 0;
	background: transparent;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	color: #444;
	padding: 0.15rem 0.35rem;
	border-radius: 4px;
}

.estore-wishlist-shell__close:hover {
	background: #f0f0f0;
}

.estore-wishlist-shell__body {
	padding: 0.65rem 1rem;
	overflow-y: auto;
	flex: 0 1 auto;
	min-height: 0;
	max-height: calc(90vh - 9rem);
}

.estore-wishlist-shell__loading,
.estore-wishlist-shell__empty {
	margin: 0.75rem 0;
	color: #666;
}

.estore-wishlist-shell__rows {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.estore-wishlist-shell__row {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 0.75rem;
	position: relative;
	padding: 0.75rem 2.25rem 0.75rem 0.75rem;
	background: #f7f7f8;
	border-radius: 8px;
}

.estore-wishlist-shell__remove-corner {
	position: absolute;
	top: 0.5rem;
	right: 0.4rem;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #888;
	cursor: pointer;
}

.estore-wishlist-shell__remove-corner:hover {
	background: #ebebeb;
	color: #333;
}

.estore-wishlist-shell__ic {
	width: 1rem;
	height: 1rem;
	display: block;
}

.estore-wishlist-shell__thumb-wrap {
	flex: 0 0 72px;
	width: 72px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border-radius: 8px;
	padding: 4px;
	text-decoration: none;
}

.estore-wishlist-shell__thumb {
	max-width: 100%;
	max-height: 64px;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}

.estore-wishlist-shell__col-main {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 0.4rem;
	text-align: left;
}

.estore-wishlist-shell__name {
	display: block;
	width: 100%;
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.35;
	color: #1a1a1a;
	text-decoration: none;
	word-break: break-word;
	text-align: left;
}

.estore-wishlist-shell__name:hover {
	color: #53eb0c;
}

.estore-wishlist-shell__meta {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 0.35rem;
	width: 100%;
}

.estore-wishlist-shell__price {
	font-weight: 700;
	font-size: 0.95rem;
	color: #111;
}

.estore-wishlist-shell__cart.button {
	margin: 0;
	padding: 4px 10px;
	min-height: 0;
	height: auto;
	line-height: 1.25;
	font-size: 0.75rem;
	font-weight: 600;
	color: #000 !important;
}

.estore-wishlist-shell__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 1rem 1.15rem;
	border-top: 1px solid #ececec;
	flex-shrink: 0;
}

.estore-wishlist-shell__continue {
	border: 0;
	background: transparent;
	color: #555;
	font-size: 0.9rem;
	cursor: pointer;
	text-decoration: underline;
	padding: 0;
}

.estore-wishlist-shell__continue:hover {
	color: #111;
}

.estore-wishlist-shell__all.button {
	margin: 0;
	color: #000 !important;
	font-weight: 700;
}

@media (max-width: 520px) {
	.estore-wishlist-shell__row {
		padding-right: 2.25rem;
	}

	.estore-wishlist-shell__thumb-wrap {
		flex: 0 0 60px;
		width: 60px;
	}

	.estore-wishlist-shell__thumb {
		max-height: 52px;
	}
}

.estore-wishlist-toast {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 10050;
	max-width: 320px;
	animation: estore-wishlist-toast-in 0.25s ease;
}

.estore-wishlist-toast__inner {
	background: #1a1a1a;
	color: #fff;
	padding: 14px 16px;
	border-radius: 10px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
	border: 1px solid rgba(83, 235, 12, 0.35);
}

.estore-wishlist-toast__product {
	margin: 0 0 4px;
	font-weight: 600;
	font-size: 0.95rem;
}

.estore-wishlist-toast__msg {
	margin: 0 0 10px;
	font-size: 0.85rem;
	color: #aaa;
}

.estore-wishlist-toast__btn {
	display: inline-block;
	font-size: 0.85rem;
	padding: 6px 14px;
	text-decoration: none;
}

@keyframes estore-wishlist-toast-in {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.wishlist-page-lead {
	color: #666;
	margin-bottom: 1.25rem;
}

.estore-wishlist-page__grid {
	display: grid;
	gap: 1.25rem;
}

@media (min-width: 640px) {
	.estore-wishlist-page__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.estore-wishlist-page__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.estore-wishlist-page__card {
	display: flex;
	flex-direction: column;
	background: #f8f8f8;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid #e8e8e8;
}

.estore-wishlist-page__media {
	display: block;
	background: #fff;
	padding: 12px;
	text-align: center;
}

.estore-wishlist-page__thumb {
	max-width: 100%;
	max-height: 160px;
	object-fit: contain;
}

.estore-wishlist-page__thumb--empty {
	min-height: 120px;
	background: #eee;
	border-radius: 8px;
}

.estore-wishlist-page__body {
	padding: 14px 16px 16px;
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 8px;
}

.estore-wishlist-page__title {
	margin: 0;
	font-size: 1rem;
	line-height: 1.35;
}

.estore-wishlist-page__title a {
	color: inherit;
	text-decoration: none;
}

.estore-wishlist-page__title a:hover {
	color: #53eb0c;
}

.estore-wishlist-page__price {
	font-weight: 700;
	font-size: 1.1rem;
	color: #111;
}

.estore-wishlist-page__price--na {
	font-weight: 500;
	font-size: 0.95rem;
	color: #888;
}

.estore-wishlist-page__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: auto;
}

.estore-wishlist-page__cart,
.estore-wishlist-page__remove {
	font-size: 0.85rem;
	padding: 8px 14px;
}

.estore-wishlist-page__remove {
	background: transparent;
	border: 1px solid #ccc;
	color: #555;
}

.estore-wishlist-empty {
	text-align: center;
	padding: 2rem 1rem;
}

.estore-wishlist-empty__title {
	font-size: 1.25rem;
	margin: 0 0 0.5rem;
}

.estore-wishlist-page-loading {
	color: #888;
}
