/* ═══════════════════════════════════════════════════════════
   NIDO HOME — Wishlist (Verlanglijst) CSS
   /wp-content/themes/popularfx-child/assets/css/nido-wishlist.css

   Same conventions as nido-about.css / nido-pay.css:
   · `body .nido-wl …` = specificity [0,2,1], beats the Elementor kit
     post-318.css at [0,1,1] (h5/h6/label{color:#FFF}, h2{font-size:48px}).
     WHITE HEADINGS MEAN THIS CHAIN WAS SIMPLIFIED — do not reduce it.
   · appearance:none + background:none on interactive elements, against
     PopularFX + browser defaults.
   · Every base selector chain is repeated inside each media query.
   · Self-contained token block, not coupled to the other page stylesheets.
   ═══════════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ─────────────────────────────────────────── */
.nido-wl,
.nido-wl-btn,
.nido-wl-loop,
.nido-wl-single {
	--nido-gold:        #BD864E;
	--nido-gold-light:  #C4986A;
	--nido-gold-soft:   rgba(189, 134, 78, .10);
	--nido-brown:       #532509;
	--nido-heading:     #414141;
	--nido-body:        #55483C;
	--nido-muted:       #7A6650;
	--nido-border:      #E8E0D6;
	--nido-border-soft: #F0E8DF;
	--nido-white:       #FFFFFF;
	--nido-radius:      10px;
}

/* ═══════════════════════════════════════════════════════════
   HEART BUTTON — shared by loop + single + shortcode
   ═══════════════════════════════════════════════════════════ */

body .nido-wl-btn {
	appearance: none;
	-webkit-appearance: none;
	background: var(--nido-white);
	border: 1px solid var(--nido-border);
	border-radius: 999px;
	color: var(--nido-muted);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: 'Sen', sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	padding: 10px 16px;
	transition: color .22s ease, border-color .22s ease, background-color .22s ease, transform .22s ease;
}

body .nido-wl-btn:hover {
	color: var(--nido-gold);
	border-color: var(--nido-gold);
	background: var(--nido-gold-soft);
}

body .nido-wl-btn:focus-visible {
	outline: 2px solid var(--nido-gold);
	outline-offset: 2px;
}

body .nido-wl-btn__icon {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: fill .22s ease, stroke .22s ease, transform .22s ease;
}

/* Active = saved */
body .nido-wl-btn.is-active {
	color: var(--nido-gold);
	border-color: var(--nido-gold);
}

body .nido-wl-btn.is-active .nido-wl-btn__icon {
	fill: var(--nido-gold);
	stroke: var(--nido-gold);
}

/* Pop animation on toggle-on */
body .nido-wl-btn.is-bump .nido-wl-btn__icon {
	animation: nido-wl-bump .32s ease;
}

@keyframes nido-wl-bump {
	0%   { transform: scale(1); }
	42%  { transform: scale(1.32); }
	100% { transform: scale(1); }
}

/* In-flight state */
body .nido-wl-btn.is-busy {
	opacity: .55;
	pointer-events: none;
}

/* ── Loop variant: icon-only, floated over the thumbnail ── */
body .nido-wl-loop {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 3;
}

body .nido-wl-loop .nido-wl-btn {
	width: 40px;
	height: 40px;
	padding: 0;
	justify-content: center;
	box-shadow: 0 2px 10px rgba(83, 37, 9, .10);
}

body .nido-wl-loop .nido-wl-btn__text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* The loop <li> must be a positioning context for the floated heart.
   WooCommerce li.product is static by default. */
body ul.products li.product {
	position: relative;
}

/* ── Single product variant ── */
body .nido-wl-single {
	margin: 18px 0 6px;
}

/* ═══════════════════════════════════════════════════════════
   WISHLIST PAGE
   ═══════════════════════════════════════════════════════════ */

body .nido-wl {
	font-family: 'Sen', sans-serif;
	color: var(--nido-body);
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px;
	box-sizing: border-box;
}

/* ── Header ── */
body .nido-wl .nido-wl__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-bottom: 18px;
	margin-bottom: 28px;
	border-bottom: 1px solid var(--nido-border);
}

body .nido-wl .nido-wl__count {
	margin: 0;
	font-size: 15px;
	color: var(--nido-muted);
	display: flex;
	align-items: baseline;
	gap: 7px;
}

body .nido-wl .nido-wl__count-num {
	font-size: 22px;
	font-weight: 700;
	color: var(--nido-brown);
}

/* ── Grid ── */
body .nido-wl .nido-wl__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 26px;
}

body .nido-wl .nido-wl__item {
	position: relative;
	background: var(--nido-white);
	border: 1px solid var(--nido-border-soft);
	border-radius: var(--nido-radius);
	overflow: hidden;
	margin: 0;
	display: flex;
	flex-direction: column;
	transition: box-shadow .25s ease, border-color .25s ease, opacity .25s ease, transform .25s ease;
}

body .nido-wl .nido-wl__item:hover {
	border-color: var(--nido-border);
	box-shadow: 0 6px 22px rgba(83, 37, 9, .09);
}

/* Removal animation, applied by the JS before the node is dropped */
body .nido-wl .nido-wl__item.is-removing {
	opacity: 0;
	transform: scale(.94);
}

/* ── Remove × ── */
body .nido-wl .nido-wl__remove {
	appearance: none;
	-webkit-appearance: none;
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	width: 30px;
	height: 30px;
	border: 1px solid var(--nido-border);
	border-radius: 50%;
	background: rgba(255, 255, 255, .94);
	color: var(--nido-muted);
	font-size: 19px;
	line-height: 1;
	cursor: pointer;
	transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

body .nido-wl .nido-wl__remove:hover {
	color: #B3261E;
	border-color: #B3261E;
	background: #FFF;
}

body .nido-wl .nido-wl__remove:focus-visible {
	outline: 2px solid var(--nido-gold);
	outline-offset: 2px;
}

/* ── Media ── */
body .nido-wl .nido-wl__media {
	display: block;
	background: #FAF7F3;
	line-height: 0;
}

body .nido-wl .nido-wl__media img {
	width: 100%;
	height: auto;
	display: block;
	transition: transform .4s ease;
}

body .nido-wl .nido-wl__item:hover .nido-wl__media img {
	transform: scale(1.04);
}

/* ── Body ── */
body .nido-wl .nido-wl__body {
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 9px;
	flex: 1;
}

body .nido-wl .nido-wl__title {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--nido-brown);
}

body .nido-wl .nido-wl__title a {
	color: var(--nido-brown);
	text-decoration: none;
	transition: color .2s ease;
}

body .nido-wl .nido-wl__title a:hover {
	color: var(--nido-gold);
}

body .nido-wl .nido-wl__price {
	font-size: 16px;
	font-weight: 700;
	color: var(--nido-gold);
}

body .nido-wl .nido-wl__price del {
	color: var(--nido-muted);
	font-weight: 400;
	margin-right: 6px;
}

body .nido-wl .nido-wl__price ins {
	text-decoration: none;
}

body .nido-wl .nido-wl__stock {
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .02em;
}

body .nido-wl .nido-wl__stock.is-in  { color: #2E7D4F; }
body .nido-wl .nido-wl__stock.is-out { color: #B3261E; }

/* ── Buttons ── */
body .nido-wl .nido-wl__btn {
	appearance: none;
	-webkit-appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: auto;
	padding: 12px 20px;
	border: 1px solid var(--nido-gold);
	border-radius: 6px;
	background: var(--nido-gold);
	color: #FFF !important;
	font-family: 'Sen', sans-serif;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none !important;
	text-align: center;
	cursor: pointer;
	transition: background-color .22s ease, border-color .22s ease, color .22s ease;
}

body .nido-wl .nido-wl__btn:hover {
	background: var(--nido-brown);
	border-color: var(--nido-brown);
	color: #FFF !important;
}

body .nido-wl .nido-wl__btn--ghost {
	background: transparent;
	color: var(--nido-gold) !important;
}

body .nido-wl .nido-wl__btn--ghost:hover {
	background: var(--nido-gold);
	color: #FFF !important;
}

/* WooCommerce injects "Bekijk winkelwagen" after an ajax add — tame it */
body .nido-wl .nido-wl__item a.added_to_cart {
	display: block;
	margin-top: 9px;
	font-size: 13px;
	font-weight: 600;
	color: var(--nido-muted);
	text-decoration: underline;
}

/* ── Empty state ── */
body .nido-wl .nido-wl__empty {
	text-align: center;
	padding: 70px 20px 80px;
	max-width: 520px;
	margin: 0 auto;
}

body .nido-wl .nido-wl__empty svg {
	width: 72px;
	height: 72px;
	fill: none;
	stroke: var(--nido-gold);
	stroke-width: 1.3;
	stroke-linecap: round;
	stroke-linejoin: round;
	opacity: .55;
	margin-bottom: 22px;
}

body .nido-wl .nido-wl__empty h2 {
	margin: 0 0 12px;
	font-size: 30px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--nido-heading);
}

body .nido-wl .nido-wl__empty p {
	margin: 0 0 26px;
	font-size: 16px;
	line-height: 1.65;
	color: var(--nido-muted);
}

/* ═══════════════════════════════════════════════════════════
   TOAST
   ═══════════════════════════════════════════════════════════ */

body .nido-wl-toast {
	position: fixed;
	left: 50%;
	bottom: 28px;
	transform: translate(-50%, 16px);
	z-index: 99999;
	background: var(--nido-brown, #532509);
	color: #FFF;
	font-family: 'Sen', sans-serif;
	font-size: 14px;
	font-weight: 600;
	padding: 13px 22px;
	border-radius: 999px;
	box-shadow: 0 6px 26px rgba(0, 0, 0, .22);
	opacity: 0;
	pointer-events: none;
	transition: opacity .25s ease, transform .25s ease;
}

body .nido-wl-toast.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — base chains repeated in full, per house convention
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 1200px) {
	body .nido-wl { padding: 32px 24px; }
	body .nido-wl .nido-wl__grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
}

@media (max-width: 900px) {
	body .nido-wl { padding: 28px 20px; }
	body .nido-wl .nido-wl__grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
	body .nido-wl .nido-wl__empty h2 { font-size: 26px; }
}

@media (max-width: 600px) {
	body .nido-wl { padding: 22px 16px; }
	body .nido-wl .nido-wl__grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
	body .nido-wl .nido-wl__body { padding: 13px; gap: 7px; }
	body .nido-wl .nido-wl__title { font-size: 14px; }
	body .nido-wl .nido-wl__price { font-size: 14px; }
	body .nido-wl .nido-wl__stock { font-size: 12px; }
	body .nido-wl .nido-wl__btn { padding: 10px 12px; font-size: 13px; }
	body .nido-wl .nido-wl__empty { padding: 50px 14px 60px; }
	body .nido-wl .nido-wl__empty h2 { font-size: 22px; }
	body .nido-wl .nido-wl__empty p { font-size: 15px; }
	body .nido-wl-loop { top: 8px; right: 8px; }
	body .nido-wl-loop .nido-wl-btn { width: 34px; height: 34px; }
	body .nido-wl-loop .nido-wl-btn__icon { width: 17px; height: 17px; }
}

@media (max-width: 380px) {
	body .nido-wl .nido-wl__grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
	body .nido-wl .nido-wl__item,
	body .nido-wl .nido-wl__media img,
	body .nido-wl-btn,
	body .nido-wl-btn__icon,
	body .nido-wl-toast {
		transition: none !important;
		animation: none !important;
	}
}
