/* Pantit VJO Wishlist 1.0.1 – VJ:s färger: svart/vitt/grått, rosa accent på favoritknappen (som snippet #89) */

/* ---------- Hjärtat på produktbilderna (listningar, sök) ---------- */
ul.products li.product { position: relative; }
.pvwl-loop {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	aspect-ratio: 1 / 1; /* produktbilderna är kvadratiska – hjärtat hamnar i bildens hörn */
	pointer-events: none;
	z-index: 10;
}
.pvwl-heart {
	position: absolute;
	right: 10px;
	bottom: 8px;
	width: 40px;
	height: 40px;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	cursor: pointer;
	pointer-events: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	-webkit-tap-highlight-color: transparent;
}
.pvwl-heart-svg {
	width: 35px;
	height: 35px;
	fill: #ffffff;
	stroke: #cccccc;
	stroke-width: .6px;
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .25));
	transition: transform .15s ease, fill .15s ease;
}
.pvwl-heart:hover .pvwl-heart-svg { transform: scale(1.08); }
.pvwl-heart.is-saved .pvwl-heart-svg { fill: #f1beef; stroke: #e3a6e1; }
.pvwl-heart.is-busy { opacity: .6; }
.pvwl-heart.pvwl-pop .pvwl-heart-svg { animation: pvwl-pop .35s ease; }
@keyframes pvwl-pop { 0% { transform: scale(1); } 45% { transform: scale(1.3); } 100% { transform: scale(1); } }

/* ---------- Produktsidan: rosa knapp under "Lägg i varukorg" ---------- */
.pvwl-single { margin: 10px 0 0; clear: both; }
.pvwl-single .pvwl-btn {
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	background: #ffffff;
	background-image: linear-gradient(135deg, #fdf4fd 0%, #f7ddf6 55%, #f3cdf2 100%);
	border: 3px solid #EBB9EC;
	border-radius: 6px;
	color: #1a1a1a !important;
	font-family: "Montserrat", sans-serif;
	font-weight: 700;
	font-size: 15px;
	line-height: 15px;
	letter-spacing: .3px;
	padding: .45em 1.2em;
	min-height: 44px;
	box-sizing: border-box;
	cursor: pointer;
	text-transform: none;
	transition: background-image .2s ease;
}
.pvwl-single .pvwl-btn:hover { background-image: linear-gradient(135deg, #f7ddf6 0%, #f0c4ef 55%, #EBB9EC 100%); }
.pvwl-single .pvwl-btn.is-saved { background-image: linear-gradient(135deg, #f7ddf6 0%, #f0c4ef 55%, #EBB9EC 100%); }
.pvwl-single .pvwl-btn.is-saved:hover { background-image: linear-gradient(135deg, #f0c4ef 0%, #e3a6e1 55%, #d98fd6 100%); border-color: #e3a6e1; }
.pvwl-single .pvwl-btn-ico { font-size: 18px; line-height: 1; color: #c46fc0; }
.pvwl-single .pvwl-btn.is-busy { opacity: .7; cursor: progress; }
.pvwl-single .pvwl-unsave {
	display: block;
	margin: 6px auto 0;
	padding: 0;
	border: 0;
	background: none;
	color: #6b6b6b;
	font-family: "Montserrat", sans-serif;
	font-size: 12px;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
}
.pvwl-single .pvwl-unsave[hidden] { display: none; }

/* ---------- Antal på header-hjärtat ---------- */
#nav-icon-my-whishlist a { position: relative; }
.pvwl-count {
	position: absolute;
	top: -6px;
	right: -9px;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 999px;
	background: #EBB9EC;
	color: #1a1a1a;
	font-family: "Montserrat", sans-serif;
	font-size: 10px;
	font-weight: 800;
	line-height: 16px;
	text-align: center;
	box-sizing: border-box;
}

/* ---------- Notis ---------- */
.pvwl-toast {
	position: fixed;
	left: 50%;
	bottom: 24px;
	transform: translate(-50%, 20px);
	opacity: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: calc(100vw - 32px);
	padding: 12px 18px;
	border-radius: 10px;
	background: #1a1a1a;
	color: #ffffff;
	font-family: "Montserrat", sans-serif;
	font-size: 14px;
	font-weight: 600;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
	transition: opacity .2s ease, transform .2s ease;
	pointer-events: none;
}
.pvwl-toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.pvwl-toast a { color: #EBB9EC !important; font-weight: 800; text-decoration: underline; white-space: nowrap; }

/* ---------- Mitt konto > Mina Favoriter ---------- */
.pvwl-head { margin: 0 0 18px; padding-bottom: 14px; border-bottom: 1px solid #E4E4E4; }
.pvwl-title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: "Montserrat", sans-serif !important;
	font-weight: 900 !important;
	font-size: 19px !important;
	color: #1a1a1a !important;
	letter-spacing: .3px;
	margin: 0 0 4px !important;
	text-transform: none !important;
}
.pvwl-title-ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #F7EAF6;
	color: #c46fc0;
	font-size: 16px;
	line-height: 1;
}
.pvwl-sub {
	font-family: "Montserrat", sans-serif !important;
	font-size: 13px !important;
	color: #6b6b6b !important;
	margin: 0 0 0 42px !important;
	line-height: 1.5;
}
.pvwl-empty { font-family: "Montserrat", sans-serif; color: #6b6b6b; font-weight: 600; padding: 20px 0; }
.pvwl-empty[hidden] { display: none; }
.pvwl-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 16px;
	margin: 10px 0 30px;
}
.pvwl-card {
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border: 1px solid #E4E4E4;
	border-radius: 10px;
	overflow: hidden;
	position: relative;
	box-shadow: 4px 7px 10px rgba(0, 0, 0, .10);
	transition: box-shadow .25s ease, transform .25s ease, opacity .25s ease;
}
.pvwl-card:hover { box-shadow: 6px 10px 18px rgba(0, 0, 0, .18); transform: translateY(-2px); }
.pvwl-card.is-leaving { opacity: 0; transform: scale(.96); }
.pvwl-card-thumb { position: relative; }
.pvwl-thumb { display: block; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; background: #f5f5f5; position: relative; }
.pvwl-thumb .pvwl-thumb-main { display: block; width: 100%; height: 100%; }
.pvwl-thumb img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	display: block;
	margin: 0 !important;
	border-radius: 0 !important;
	max-width: none !important;
}
.pvwl-thumb img.pvwl-thumb-hover { position: absolute; top: 0; left: 0; opacity: 0; transition: opacity .35s ease; z-index: 2; pointer-events: none; }
.pvwl-thumb.has-hover:hover img.pvwl-thumb-hover { opacity: 1; }
.pvwl-remove {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 4;
	width: 26px;
	height: 26px;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92) !important;
	color: #1a1a1a !important;
	font-size: 18px;
	line-height: 26px;
	text-align: center;
	cursor: pointer;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
}
.pvwl-remove:hover { background: #ffffff !important; color: #b23b40 !important; }
@media (prefers-reduced-motion: reduce) { .pvwl-heart.pvwl-pop .pvwl-heart-svg { animation: none; } }
.pvwl-card-body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 14px; text-align: center; }
.pvwl-card-title {
	display: block;
	min-height: 40px;
	margin-bottom: 6px;
	color: #1a1a1a !important;
	font-family: "Montserrat", sans-serif;
	font-weight: 600;
	font-size: 13px;
	line-height: 1.4;
	letter-spacing: .2px;
	text-decoration: none !important;
}
.pvwl-card-title:hover { color: #6b6b6b !important; }
.pvwl-card-price { margin-bottom: 6px; }
.pvwl-card-price,
.pvwl-card-price .amount,
.pvwl-card-price bdi {
	font-family: "Montserrat", sans-serif !important;
	font-weight: 800 !important;
	font-size: 16px !important;
	color: #1a1a1a !important;
}
.pvwl-card-price del { opacity: .6; font-size: 13px; }
.pvwl-card-price ins { text-decoration: none; }
.pvwl-stock {
	display: block;
	margin-bottom: 10px;
	color: #0AB776;
	font-family: "Montserrat", sans-serif;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .5px;
}
.pvwl-card-action { margin-top: auto; padding-top: 6px; }
.pvwl-card-action .added_to_cart { display: none !important; }
.pvwl-btn-card {
	display: block !important;
	width: 100%;
	box-sizing: border-box;
	padding: 11px 8px !important;
	border-radius: 6px !important;
	border: 0 !important;
	color: #ffffff !important;
	font-family: "Montserrat", sans-serif !important;
	font-weight: 700 !important;
	font-size: 13px !important;
	line-height: 15px !important;
	letter-spacing: .3px;
	text-align: center;
	text-decoration: none !important;
	text-transform: none;
	transition: background .2s ease;
}
.pvwl-btn-green { background: #0AB776 !important; }
.pvwl-btn-green:hover { background: rgba(10, 183, 118, .85) !important; }
.pvwl-btn-green.loading { opacity: .7; }
.pvwl-btn-incart { background: #11d88d !important; }
.pvwl-btn-incart::before { content: "\2713\00a0"; font-weight: 900; }
.pvwl-btn-sold { background: #b23b40 !important; text-transform: uppercase; cursor: default; }

@media (max-width: 600px) {
	.pvwl-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.pvwl-sub { margin-left: 0 !important; }
	.pvwl-card-title { font-size: 12px; }
	.pvwl-card-body { padding: 10px; }
	.pvwl-heart-svg { width: 30px; height: 30px; }
}

/* 1.2.0: "X andra har sparat den här som favorit" */
.pvwl-others {
	margin: 10px 0 0;
	font-size: 13px;
	line-height: 1.4;
	color: #1a1a1a;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 6px;
}
.pvwl-others::before {
	content: "\2665";
	color: #EBB9EC;
	font-size: 14px;
}
.pvwl-others[hidden] { display: none; }
