/* Wishlist module */
.nextshop-wishlist-header-btn {
	position: relative;
	border: 1px solid #e0e0e2;
	padding: 8px 12px;
	text-decoration: none;
	color: inherit;
	transition: color 0.2s ease;
}

.nextshop-wishlist-header-btn.has-items,
.nextshop-wishlist-header-btn.has-items:hover {
	color: #ef394e;
}

.nextshop-wishlist-count {
	position: absolute;
	top: -4px;
	left: -4px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	background: #ef394e;
	color: #fff;
	font-size: 0.7rem;
	font-weight: 800;
	border-radius: 999px;
	line-height: 18px;
	text-align: center;
}

.nextshop-wishlist-count[hidden] {
	display: none !important;
}

.nextshop-wishlist-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 1px solid #e0e0e2;
	background: #fff;
	color: #3f4064;
	border-radius: 999px;
	cursor: pointer;
	transition: all 0.2s ease;
	font-family: inherit;
	line-height: 1;
}

.nextshop-wishlist-btn:hover {
	border-color: var(--ns-wl-loop-accent, #ef394e);
	color: var(--ns-wl-loop-accent, #ef394e);
}

.nextshop-wishlist-btn.is-active,
.nextshop-wishlist-btn.is-active:hover {
	background: color-mix(in srgb, var(--ns-wl-loop-accent, #ef394e) 8%, #fff);
	border-color: var(--ns-wl-loop-accent, #ef394e);
	color: var(--ns-wl-loop-accent, #ef394e);
}

.nextshop-wishlist-btn.is-loading {
	opacity: 0.65;
	pointer-events: none;
}

.nextshop-wishlist-btn--loop {
	--ns-wl-loop-accent: #ef394e;
	--ns-wl-loop-icon-size: 1rem;
	--ns-wl-loop-reveal-y: 10px;
	position: absolute;
	z-index: 3;
	width: 36px;
	height: 36px;
	padding: 0;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
	opacity: 0;
	visibility: hidden;
	transform: translateY(var(--ns-wl-loop-reveal-y));
	pointer-events: none;
	transition:
		opacity 0.28s ease,
		visibility 0.28s ease,
		transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
		border-color 0.2s ease,
		color 0.2s ease,
		background 0.2s ease;
}

.products .product:hover .nextshop-wishlist-btn--loop,
.products .product:focus-within .nextshop-wishlist-btn--loop,
.nextshop-wishlist-grid .product:hover .nextshop-wishlist-btn--loop,
.nextshop-wishlist-grid .product:focus-within .nextshop-wishlist-btn--loop,
.nextshop-fp-products .product:hover .nextshop-wishlist-btn--loop,
.nextshop-fp-products .product:focus-within .nextshop-wishlist-btn--loop,
.nextshop-shop-products .product:hover .nextshop-wishlist-btn--loop,
.nextshop-shop-products .product:focus-within .nextshop-wishlist-btn--loop,
.ns-el-product-card:hover .nextshop-wishlist-btn--loop,
.ns-el-product-card:focus-within .nextshop-wishlist-btn--loop,
.ns-el-product-carousel__item:hover .nextshop-wishlist-btn--loop,
.ns-el-product-carousel__item:focus-within .nextshop-wishlist-btn--loop,
.nextshop-wishlist-btn--loop:hover,
.nextshop-wishlist-btn--loop:focus-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
}

.nextshop-wishlist-btn--loop .nextshop-wishlist-btn__text {
	display: none;
}

.nextshop-wishlist-btn--single {
	width: 100%;
	min-height: 44px;
	padding: 10px 16px;
	border-radius: 10px;
	margin-top: 12px;
}

.nextshop-wishlist-btn--both.nextshop-wishlist-btn--single,
.nextshop-wishlist-btn--text.nextshop-wishlist-btn--single {
	justify-content: center;
}

.nextshop-wishlist-btn__icon {
	display: inline-flex;
	font-size: 1rem;
}

.nextshop-wishlist-btn--loop .nextshop-wishlist-btn__icon {
	font-size: var(--ns-wl-loop-icon-size, 1rem);
}

.nextshop-wishlist-btn--single .nextshop-wishlist-btn__icon {
	font-size: 1.05rem;
}

.nextshop-wishlist-btn__text {
	font-size: 0.9rem;
	font-weight: 600;
}

.nextshop-wishlist-single-wrap {
	width: 100%;
}

.products .product {
	position: relative;
}

.nextshop-wishlist-page {
	padding: 4px 0 24px;
}

.nextshop-wishlist-page__header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.nextshop-wishlist-page__title {
	margin: 0;
	font-size: 1.35rem;
}

.nextshop-wishlist-page__count {
	margin: 0;
	color: #64748b;
	font-size: 0.95rem;
}

.nextshop-wishlist-empty {
	text-align: center;
	padding: 48px 20px;
	background: #f8fafc;
	border: 1px dashed #cbd5e1;
	border-radius: 16px;
}

.nextshop-wishlist-empty__icon {
	font-size: 2.5rem;
	color: #ef394e;
	margin-bottom: 12px;
}

.nextshop-wishlist-empty p {
	margin: 0 0 20px;
	color: #475569;
}

.nextshop-wishlist-grid .product {
	position: relative;
}

.nextshop-wishlist-login-notice {
	padding: 16px;
	background: #fff7ed;
	border: 1px solid #fed7aa;
	border-radius: 10px;
	color: #9a3412;
}

.nextshop-wishlist-swal-container.swal2-container {
	z-index: 2147483002 !important;
}

.nextshop-wishlist-swal-toast.swal2-popup {
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
}

@media (hover: none), (pointer: coarse) {
	.nextshop-wishlist-btn--loop {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
		pointer-events: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nextshop-wishlist-btn--loop {
		transition:
			opacity 0.15s ease,
			visibility 0.15s ease,
			border-color 0.2s ease,
			color 0.2s ease,
			background 0.2s ease;
	}
}

@media (max-width: 768px) {
	.nextshop-wishlist-page__title {
		font-size: 1.15rem;
	}
}
