/**
 * Wishlist UI — cards, header, FAB, dashboard.
 */

/* Card wishlist button sizing shared with Quick view in shop.css */

@media (hover: none) {
	.gfch-card__qv,
	.gfch-card__wish {
		opacity: 1;
		pointer-events: auto;
		transform: translateX(-50%) translateY(0);
	}
}

/* Header wishlist */
.gfch-header__wishlist {
	position: relative;
	overflow: visible;
}

.gfch-header__wishlist-count {
	position: absolute;
	top: 0;
	left: 50%;
	right: auto;
	min-width: 1.1rem;
	height: 1.1rem;
	padding: 0 0.25rem;
	border-radius: 999px;
	background: #e07f0d;
	color: #fff;
	font-size: 0.65rem;
	font-weight: 800;
	line-height: 1.1rem;
	text-align: center;
	opacity: 0;
	transform: translate(-50%, -55%) scale(0.8);
	pointer-events: none;
	z-index: 2;
}

.gfch-header__wishlist-count.is-active {
	opacity: 1;
	transform: translate(-50%, -55%) scale(1);
}

/* Floating wishlist lives inside .gfch-float-rail (see side-cart.css) */

/* Dashboard wishlist — cart-style list */
.gfch-wishlist-dash__empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	min-height: 280px;
	padding: 2.5rem 1.5rem;
}

.gfch-wishlist-dash__empty-icon {
	display: block;
	width: auto;
	height: 150px;
	margin: 0 auto;
	opacity: 0.5;
	pointer-events: none;
}

.gfch-wishlist-dash__empty p {
	margin: 1rem 0 0;
	color: #0f172a;
	font-size: 1.15rem;
	font-weight: 700;
}

.gfch-wishlist-dash__shop {
	display: inline-flex;
	margin-top: 1rem;
	padding: 0.7rem 1.2rem;
	border-radius: 999px;
	background: #005028;
	color: #fff !important;
	text-decoration: none !important;
	font-weight: 700;
}

.gfch-wishlist-dash__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0;
	background: #fff;
	border: 1px solid #e8edf2;
	border-radius: 14px;
	overflow: hidden;
}

.gfch-wishlist-dash__item {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr) auto;
	gap: 1rem;
	align-items: center;
	padding: 1rem 1.15rem;
	border-bottom: 1px solid #eef2f6;
	background: #fff;
}

.gfch-wishlist-dash__item:last-child {
	border-bottom: 0;
}

.gfch-wishlist-dash__media {
	display: block;
	width: 96px;
	height: 96px;
	border-radius: 10px;
	overflow: hidden;
	background: #f1f5f1;
	flex-shrink: 0;
}

.gfch-wishlist-dash__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.gfch-wishlist-dash__info {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.gfch-wishlist-dash__sku {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 700;
	color: #94a3b8;
}

.gfch-wishlist-dash__title {
	margin: 0;
	font-size: 1rem;
	line-height: 1.35;
}

.gfch-wishlist-dash__title a {
	color: #0f172a;
	text-decoration: none;
}

.gfch-wishlist-dash__title a:hover {
	color: #005028;
}

.gfch-wishlist-dash__price {
	color: #005028;
	font-weight: 800;
	font-size: 1.05rem;
}

.gfch-wishlist-dash__stock {
	margin: 0;
	color: #ff6962;
	font-size: 0.82rem;
	font-weight: 700;
}

.gfch-wishlist-dash__controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.55rem;
}

.gfch-wishlist-dash__qty {
	display: inline-flex;
	align-items: center;
	border: 1px solid #dbe3ea;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
}

.gfch-wishlist-dash__qty-btn {
	width: 2rem;
	height: 2.15rem;
	border: 0;
	background: #f8fafc;
	color: #334155;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
}

.gfch-wishlist-dash__qty-btn:hover {
	background: #f7941d;
	color: #fff;
}

.gfch-wishlist-dash__qty-input {
	width: 2.5rem;
	height: 2.15rem;
	border: 0;
	border-left: 1px solid #dbe3ea;
	border-right: 1px solid #dbe3ea;
	text-align: center;
	font: inherit;
	font-weight: 700;
	font-size: 0.9rem;
	appearance: textfield;
	-moz-appearance: textfield;
}

.gfch-wishlist-dash__qty-input::-webkit-outer-spin-button,
.gfch-wishlist-dash__qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.gfch-wishlist-dash__atc,
.gfch-wishlist-dash__view {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.65rem 1rem;
	border-radius: 10px;
	font: inherit;
	font-size: 0.85rem;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none !important;
	border: 0;
	background: #005028;
	color: #fff !important;
	white-space: nowrap;
}

.gfch-wishlist-dash__atc:hover,
.gfch-wishlist-dash__view:hover {
	background: #f7941d;
}

.gfch-wishlist-dash__atc:disabled {
	opacity: 0.7;
	cursor: wait;
}

.gfch-wishlist-dash__remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.3rem;
	padding: 0.65rem 0.85rem;
	border-radius: 10px;
	font: inherit;
	font-size: 0.82rem;
	font-weight: 700;
	cursor: pointer;
	border: 0;
	background: #f1f5f9;
	color: #334155;
}

.gfch-wishlist-dash__remove:hover {
	background: #ff6962;
	color: #fff;
}

.gfch-wishlist-dash__footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0.65rem;
	margin-top: 1.15rem;
}

.gfch-wishlist-dash__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.8rem 1.2rem;
	border-radius: 10px;
	font-weight: 700;
	text-decoration: none !important;
}

.gfch-wishlist-dash__btn--ghost {
	background: #eef7f1;
	color: #005028 !important;
}

.gfch-wishlist-dash__btn--ghost:hover {
	background: #f7941d;
	color: #fff !important;
}

.gfch-wishlist-dash__btn--primary {
	background: #005028;
	color: #fff !important;
}

.gfch-wishlist-dash__btn--primary:hover {
	background: #f7941d;
}

@media (max-width: 760px) {
	.gfch-wishlist-dash__item {
		grid-template-columns: 72px minmax(0, 1fr);
		grid-template-areas:
			"media info"
			"controls controls";
	}

	.gfch-wishlist-dash__media {
		grid-area: media;
		width: 72px;
		height: 72px;
	}

	.gfch-wishlist-dash__info {
		grid-area: info;
	}

	.gfch-wishlist-dash__controls {
		grid-area: controls;
		justify-content: stretch;
	}

	.gfch-wishlist-dash__atc,
	.gfch-wishlist-dash__view {
		flex: 1 1 auto;
	}

	.gfch-wishlist-dash__footer {
		justify-content: stretch;
	}

	.gfch-wishlist-dash__btn {
		flex: 1 1 auto;
	}
}
