/* Pantit Wishlist 1.2.11 – samma utseende som YITH-uppsättningen på Marknad */

/* ---------- Hjärtat på produktbilderna (listningar, sök) ---------- */
ul.products li.product { position: relative; }
.pwl-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;
}
.pwl-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;
}
.pwl-heart-svg {
	width: 35px;
	height: 35px;
	fill: #ffffff;
	stroke: #cccccc;
	stroke-width: .6px;
	filter: drop-shadow(0 1px 2px rgba(61, 49, 103, .25));
	transition: transform .15s ease, fill .15s ease;
}
.pwl-heart:hover .pwl-heart-svg { transform: scale(1.08); }
.pwl-heart.is-saved .pwl-heart-svg { fill: #f1beef; stroke: #e3a6e1; }
.pwl-heart.is-busy { opacity: .6; }
.pwl-heart.pwl-pop .pwl-heart-svg { animation: pwl-pop .35s ease; }
@keyframes pwl-pop { 0% { transform: scale(1); } 45% { transform: scale(1.3); } 100% { transform: scale(1); } }

/* ---------- Produktsidan: rosa knapp under "Lägg i varukorg" ---------- */
.pwl-single { margin: 10px 0 0; clear: both; }
.pwl-single .pwl-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: #3d3167 !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;
}
.pwl-single .pwl-btn:hover { background-image: linear-gradient(135deg, #f7ddf6 0%, #f0c4ef 55%, #EBB9EC 100%); }
.pwl-single .pwl-btn.is-saved { background-image: linear-gradient(135deg, #f7ddf6 0%, #f0c4ef 55%, #EBB9EC 100%); }
.pwl-single .pwl-btn.is-saved:hover { background-image: linear-gradient(135deg, #f0c4ef 0%, #e3a6e1 55%, #d98fd6 100%); border-color: #e3a6e1; }
.pwl-single .pwl-btn-ico { font-size: 18px; line-height: 1; color: #c46fc0; }
.pwl-single .pwl-btn.is-busy { opacity: .7; cursor: progress; }
.pwl-single .pwl-unsave {
	display: block;
	margin: 6px auto 0;
	padding: 0;
	border: 0;
	background: none;
	color: #897bb6;
	font-family: "Montserrat", sans-serif;
	font-size: 12px;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
}
.pwl-single .pwl-unsave[hidden] { display: none; }

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

/* ---------- Notis ---------- */
.pwl-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: #3d3167;
	color: #ffffff;
	font-family: "Montserrat", sans-serif;
	font-size: 14px;
	font-weight: 600;
	box-shadow: 0 8px 24px rgba(61, 49, 103, .3);
	transition: opacity .2s ease, transform .2s ease;
	pointer-events: none;
}
.pwl-toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.pwl-toast a { color: #f1beef !important; font-weight: 800; text-decoration: underline; white-space: nowrap; }

/* ---------- Mitt konto > Mina Favoriter ---------- */
.pwl-head { margin: 0 0 18px; padding-bottom: 14px; border-bottom: 1px solid #ECEAF2; }
.pwl-title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: "Montserrat", sans-serif !important;
	font-weight: 900 !important;
	font-size: 19px !important;
	color: #3d3167 !important;
	letter-spacing: .3px;
	margin: 0 0 4px !important;
	text-transform: none !important;
}
.pwl-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;
}
.pwl-sub {
	font-family: "Montserrat", sans-serif !important;
	font-size: 13px !important;
	color: #897bb6 !important;
	margin: 0 0 0 42px !important;
	line-height: 1.5;
}
.pwl-empty { font-family: "Montserrat", sans-serif; color: #897bb6; font-weight: 600; padding: 20px 0; }
.pwl-empty[hidden] { display: none; }
.pwl-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 16px;
	margin: 10px 0 30px;
}
.pwl-card {
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border: 1px solid #E2E0E8;
	border-radius: 10px;
	overflow: hidden;
	position: relative;
	box-shadow: 4px 7px 10px rgba(114, 101, 143, .10);
	transition: box-shadow .25s ease, transform .25s ease, opacity .25s ease;
}
.pwl-card:hover { box-shadow: 6px 10px 18px rgba(114, 101, 143, .18); transform: translateY(-2px); }
.pwl-card.is-leaving { opacity: 0; transform: scale(.96); }
.pwl-card-thumb { position: relative; }
.pwl-thumb { display: block; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; background: #f7f7f9; position: relative; }
.pwl-thumb .pwl-thumb-main { display: block; width: 100%; height: 100%; }
.pwl-thumb img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	display: block;
	margin: 0 !important;
	border-radius: 0 !important;
	max-width: none !important;
}
.pwl-thumb img.pwl-thumb-hover { position: absolute; top: 0; left: 0; opacity: 0; transition: opacity .35s ease; z-index: 2; pointer-events: none; }
.pwl-thumb.has-hover:hover img.pwl-thumb-hover { opacity: 1; }
.pwl-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: #3d3167 !important;
	font-size: 18px;
	line-height: 26px;
	text-align: center;
	cursor: pointer;
	box-shadow: 0 1px 4px rgba(61, 49, 103, .2);
}
.pwl-remove:hover { background: #ffffff !important; color: #c7666c !important; }
.pwl-live-badge {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 4;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 9px;
	border-radius: 999px;
	background: #c7666c;
	color: #ffffff;
	font-family: "Montserrat", sans-serif;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .6px;
}
.pwl-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #ffffff; animation: pwl-blink 1.2s infinite; }
@keyframes pwl-blink { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .pwl-live-dot, .pwl-heart.pwl-pop .pwl-heart-svg { animation: none; } }
.pwl-card-body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 14px; text-align: center; }
.pwl-card-title {
	display: block;
	min-height: 40px;
	margin-bottom: 6px;
	color: #3d3167 !important;
	font-family: "Montserrat", sans-serif;
	font-weight: 600;
	font-size: 13px;
	line-height: 1.4;
	letter-spacing: .2px;
	text-decoration: none !important;
}
.pwl-card-title:hover { color: #897bb6 !important; }
.pwl-card-price { margin-bottom: 6px; }
.pwl-card-price,
.pwl-card-price .amount,
.pwl-card-price bdi {
	font-family: "Montserrat", sans-serif !important;
	font-weight: 800 !important;
	font-size: 16px !important;
	color: #8D7FB8 !important;
}
.pwl-card-price del { opacity: .6; font-size: 13px; }
.pwl-card-price ins { text-decoration: none; }
.pwl-price-label {
	display: block;
	font-size: 10px !important;
	font-weight: 700 !important;
	text-transform: uppercase;
	letter-spacing: .5px;
	color: #897bb6 !important;
	margin-bottom: 1px;
}
.pwl-status { display: block; margin-top: 3px; font-size: 11px !important; font-weight: 700 !important; }
.pwl-status-leads, .pwl-status-won { color: #0AB776 !important; }
.pwl-status-won::before { content: "\2713\00a0"; font-weight: 900; }
.pwl-status-outbid { color: #c7666c !important; }
.pwl-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;
}
.pwl-card-action { margin-top: auto; padding-top: 6px; }
.pwl-card-action .added_to_cart { display: none !important; }
.pwl-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;
}
.pwl-btn-green { background: #0AB776 !important; }
.pwl-btn-green:hover { background: rgba(10, 183, 118, .85) !important; }
.pwl-btn-green.loading { opacity: .7; }
.pwl-btn-incart { background: #11d88d !important; }
.pwl-btn-incart::before { content: "\2713\00a0"; font-weight: 900; }
.pwl-btn-purple { background: #3d3167 !important; }
.pwl-btn-purple:hover { background: #5941ab !important; }
.pwl-btn-sold { background: #c7666c !important; text-transform: uppercase; cursor: default; }

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

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