/* PBN Wishlist - frontend styles */

/* Strong resets so the theme's button styles (e.g. Astra's blue background)
   never bleed into the wishlist toggle in any state. */
.pbn-wl-btn,
.pbn-wl-btn:link,
.pbn-wl-btn:visited,
.pbn-wl-btn:hover,
.pbn-wl-btn:focus,
.pbn-wl-btn:active,
.pbn-wl-btn:focus-visible {
	display: inline-flex !important;
	align-items: center;
	gap: 7px;
	border: 1px solid #d9dee3 !important;
	background: #fff !important;
	color: var(--pbn-wl-color, #1f3a5f) !important;
	border-radius: 999px !important;
	padding: 8px 14px;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
	box-shadow: none;
	text-decoration: none !important;
	transition: color .15s, border-color .15s, box-shadow .15s;
}

.pbn-wl-btn:hover,
.pbn-wl-btn:focus {
	border-color: var(--pbn-wl-color, #1f3a5f) !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .14) !important;
}

.pbn-wl-ico {
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	flex: 0 0 auto;
}

.pbn-wl-btn.is-active {
	color: var(--pbn-wl-color, #1f3a5f) !important;
	border-color: var(--pbn-wl-color, #1f3a5f) !important;
}

.pbn-wl-btn.is-active .pbn-wl-ico {
	fill: currentColor;
	stroke: currentColor;
}

.pbn-wl-btn.is-busy {
	opacity: .6;
	pointer-events: none;
}

/* Icon-only variant */
.pbn-wl-btn--icononly {
	padding: 9px;
	border-radius: 50%;
}

.pbn-wl-btn--icononly .pbn-wl-btn__label {
	display: none;
}

/* Overlay variant on shop loop images */
.woocommerce ul.products li.product,
ul.products li.product {
	position: relative;
}

.pbn-wl-btn--loop.pbn-wl-btn--icononly,
li.product .pbn-wl-btn--loop {
	position: absolute;
	top: 10px;
	z-index: 5;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}

.pbn-wl-btn--loop.pbn-wl-corner-tl {
	left: 10px;
	right: auto;
}

.pbn-wl-btn--loop.pbn-wl-corner-tr {
	right: 10px;
	left: auto;
}

/* Single product button spacing (summary / after add-to-cart placements) */
.pbn-wl-btn--single {
	margin-top: 12px;
}

/* Icon button overlaid on the single product main image */
.woocommerce div.product .woocommerce-product-gallery,
.single-product div.product .woocommerce-product-gallery {
	position: relative;
}

.pbn-wl-btn--single-image {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 6;
	padding: 10px;
	background: rgba(255, 255, 255, .95);
	box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
}

.pbn-wl-btn--single-image .pbn-wl-ico {
	width: 22px;
	height: 22px;
}

/* Count badge */
.pbn-wl-count-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	position: relative;
	color: inherit;
	text-decoration: none;
}

.pbn-wl-count-link .pbn-wl-ico {
	stroke: currentColor;
	fill: none;
}

.pbn-wl-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	color: #fff;
	background: #e0455f;
	border-radius: 999px;
}

.pbn-wl-count.is-hidden {
	display: none;
}

/* -------------------------------------------------------------------- */
/* Wishlist page                                                         */
/* -------------------------------------------------------------------- */

.pbn-wl-page {
	width: 100%;
}

.pbn-wl-loading {
	padding: 40px 0;
	text-align: center;
	color: #5a6470;
}

.pbn-wl-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px;
}

.pbn-wl-item {
	position: relative;
	display: flex;
	flex-direction: column;
}

.pbn-wl-item__remove {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 3;
	width: 30px;
	height: 30px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	box-shadow: 0 2px 8px rgba(0, 0, 0, .14);
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
	color: #5a6470;
}

.pbn-wl-item__remove:hover {
	color: #e0455f;
}

.pbn-wl-item__link {
	text-decoration: none;
	color: inherit;
}

.pbn-wl-item__thumb {
	display: block;
	aspect-ratio: 1 / 1;
	border-radius: 12px;
	overflow: hidden;
	background: #f1f3f5;
}

.pbn-wl-item__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.pbn-wl-item__name {
	display: block;
	margin: 10px 0 4px;
	font-size: 15px;
	line-height: 1.4;
}

.pbn-wl-item__price {
	display: block;
	font-weight: 600;
}

.pbn-wl-item__oos {
	display: inline-block;
	margin-top: 4px;
	font-size: 12px;
	color: #b42318;
}

.pbn-wl-item__cart {
	margin-top: 10px;
	text-align: center;
}

.pbn-wl-empty {
	text-align: center;
	padding: 40px 0;
}

.pbn-wl-empty p {
	font-size: 18px;
	color: #1f2329;
	margin-bottom: 18px;
}

.pbn-wl-hint {
	margin-top: 18px;
	font-size: 13px;
	color: #5a6470;
	text-align: center;
}

@media (max-width: 1024px) {
	.pbn-wl-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 680px) {
	.pbn-wl-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
	}
}
