/*
 * Wishlist — the heart on the card and product page, and the account page list.
 *
 * The heart sits over the card image, so .kk-card__frame is the positioning
 * context. Everything degrades: with JavaScript off the control is a submit
 * button that reloads the page, and these styles are identical either way.
 */

/* --- the frame the heart is positioned against --------------------- */

.kk-card__frame {
	position: relative;
	display: block;
}

/* --- the control --------------------------------------------------- */

.kk-wish { margin: 0; }

.kk-wish__btn {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	font: inherit;
	color: var(--kk-brown);
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
}

.kk-heart {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	transition: fill .18s var(--kk-ease), stroke .18s var(--kk-ease), transform .18s var(--kk-ease);
}

.kk-wish__btn.is-saved .kk-heart {
	fill: var(--kk-sale);
	stroke: var(--kk-sale);
}

.kk-wish__btn:hover .kk-heart { transform: scale(1.12); }
.kk-wish__btn[disabled] { opacity: .5; cursor: default; }

/*
 * Blocksy paints, pads and sizes every [type=submit] from its own button
 * variables, hover state included. The heart is a control rather than a
 * button, so those are pinned back here — each variant below then paints its
 * own surface on top.
 */
.kk-wish__btn,
.kk-wish__btn:hover,
.kk-wish__btn:focus {
	min-height: 0;
	color: var(--kk-brown);
	background: none;
}

.kk-wish__btn:focus-visible {
	outline: 2px solid var(--kk-gold);
	outline-offset: 3px;
	border-radius: var(--kk-radius);
}

/* --- on a catalogue card ------------------------------------------- */

.kk-wish--card {
	position: absolute;
	top: .5rem;
	right: .5rem;
	z-index: 2;
}

.kk-wish--card .kk-wish__btn,
.kk-wish--card .kk-wish__btn:hover {
	width: 34px;
	height: 34px;
	justify-content: center;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	box-shadow: var(--kk-shadow);
}

/* The word is redundant beside the image; the heart and the label carry it. */
.kk-wish--card .kk-wish__label { display: none; }

.kk-wish--card .kk-heart { width: 17px; height: 17px; }

/* --- under Add to cart ---------------------------------------------- */

/*
 * The control is its own form, so it sits after the add-to-cart form rather
 * than inside it — a full-width quiet button under the dark primary, which is
 * the shape the buy block already has on every width.
 */
.kk-wish--single {
	display: block;
	margin: var(--kk-gap-xs) 0 0;
}

.kk-wish--single .kk-wish__btn,
.kk-wish--single .kk-wish__btn:hover {
	width: 100%;
	justify-content: center;
	padding: .78rem 1rem;
	border: 1px solid var(--kk-rule);
	border-radius: var(--kk-radius);
	background: var(--kk-white);
	color: var(--kk-brown);
	font-size: var(--kk-step--1);
	font-weight: 500;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.kk-wish--single .kk-wish__btn:hover {
	background: var(--kk-cream);
	border-color: var(--kk-brown);
}

.kk-wish--single .kk-wish__btn.is-saved,
.kk-wish--single .kk-wish__btn.is-saved:hover {
	border-color: var(--kk-sale);
	color: var(--kk-sale);
}

/* --- header count --------------------------------------------------- */

.kk-wish-link { position: relative; }

/* --- the account page ----------------------------------------------- */

.kk-wishlist { margin: 0 0 var(--kk-gap-l); }

.kk-wishlist__item {
	display: flex;
	flex-direction: column;
	gap: var(--kk-gap-xs);
}

.kk-wishlist__actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--kk-gap-xs);
	flex-wrap: wrap;
}

/* Small, quiet button variants — used here first, kept generic on purpose. */
.kk-btn--sm {
	padding: .45rem .85rem;
	font-size: var(--kk-step--1);
}

.kk-btn--quiet {
	color: var(--kk-brown);
	background: transparent;
	border: 1px solid var(--kk-rule);
}

.kk-btn--quiet:hover {
	background: var(--kk-cream);
	border-color: var(--kk-brown);
	color: var(--kk-brown);
}

.kk-wish-remove { margin: 0; }

.kk-wish-remove__btn {
	font: inherit;
	font-size: var(--kk-step--1);
	color: var(--kk-muted);
	background: none;
	border: 0;
	border-bottom: 1px solid var(--kk-rule);
	padding: 0 0 1px;
	cursor: pointer;
}

.kk-wish-remove__btn:hover { color: var(--kk-sale); border-bottom-color: var(--kk-sale); }

.kk-wish-remove__btn:focus-visible {
	outline: 2px solid var(--kk-gold);
	outline-offset: 2px;
}

/* --- empty state ---------------------------------------------------- */

.kk-wishlist-empty {
	padding: var(--kk-gap-l) var(--kk-gap-m);
	text-align: center;
	background: var(--kk-cream);
	border: 1px solid var(--kk-rule);
	border-radius: var(--kk-radius);
}

.kk-wishlist-empty p { margin: 0 0 var(--kk-gap-xs); color: var(--kk-brown); }

.kk-wishlist-empty__hint {
	color: var(--kk-muted);
	font-size: var(--kk-step--1);
	margin-bottom: var(--kk-gap-m) !important;
}
