/* ==========================================================
   Sri Ganga Vilas – Wishlist (Figma: "Desktop - 7" / "Desktop - 8")
   ----------------------------------------------------------
   1. Heart on product cards
   2. Heart on the product page
   3. Heart in the header
   4. Wishlist page: breadcrumb + products
   5. Wishlist page: empty
   6. Tablet & mobile
   ========================================================== */


/* ----------------------------------------------------------
   1. Heart on product cards (top-right of the picture)
   ---------------------------------------------------------- */
.gv-card {
	position: relative;
}

.gv-wish {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	color: var(--gv-red);
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.gv-wish svg {
	display: block;
	transition: fill 0.2s ease;
}

.gv-wish.is-active svg {
	fill: currentColor;
}

.gv-wish.is-pop {
	animation: gv-wish-pop 0.35s ease;
}

@keyframes gv-wish-pop {
	50% {
		transform: scale(1.2);
	}
}

.gv-card .gv-wish.gv-wish--card {
	position: absolute;
	top: 22px;
	right: 22px;
	z-index: 3;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	color: var(--gv-red);
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.gv-card .gv-wish.gv-wish--card:hover {
	background: #fff;
}

/* Wishlist page: the card fades out when removed */
.gv-card.is-leaving {
	opacity: 0;
	transform: scale(0.96);
	transition: opacity 0.25s ease, transform 0.25s ease;
}


/* ----------------------------------------------------------
   2. Heart on the product page (next to Add to cart)
   ---------------------------------------------------------- */
.gv-pdp .gv-pdp-form__row .gv-wish.gv-wish--pdp {
	flex: none;
	width: 56px;
	height: 56px;
	padding: 0;
	border: 0;
	border-radius: 10px;
	color: var(--gv-red);
	background: #f2f4f5;
}

.gv-pdp .gv-pdp-form__row .gv-wish.gv-wish--pdp svg {
	width: 24px;
	height: 24px;
}

.gv-pdp .gv-pdp-form__row .gv-wish.gv-wish--pdp:hover {
	background: rgba(172, 38, 45, 0.1);
}


/* ----------------------------------------------------------
   3. Heart in the header (count like the cart)
   ---------------------------------------------------------- */
.gv-wish-count {
	position: absolute;
	top: -8px;
	right: -10px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 9px;
	background: var(--gv-red);
	font-size: 11px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
	color: #fff;
}

.gv-wish-count.is-empty {
	display: none;
}


/* ----------------------------------------------------------
   4. Wishlist page: breadcrumb + products
   ---------------------------------------------------------- */
.gv-wishlist {
	padding: 21px 0 164px;
}

.gv-wishlist .gv-crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 2px;
	padding-left: 9px;
	font-weight: 500;
	font-size: 24px;
	line-height: 33px;
	text-transform: capitalize;
	color: #000;
}

.gv-wishlist .gv-crumbs a {
	color: rgba(0, 0, 0, 0.5);
}

.gv-wishlist .gv-crumbs a:hover {
	color: var(--gv-red);
}

.gv-wishlist .gv-crumbs svg {
	flex: none;
}

.gv-wishlist .gv-crumbs__current {
	margin: 0;
	font: inherit;
	letter-spacing: 0;
	color: #000;
}

.gv-wishlist ul.products.gv-wishlist__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, 385px);
	gap: 32px 24px;
	margin: 21px 0 0;
	padding: 0 0 0 8px;
	list-style: none;
}

.gv-wishlist ul.products.gv-wishlist__grid[hidden] {
	display: none;
}

.gv-wishlist ul.products.gv-wishlist__grid::before,
.gv-wishlist ul.products.gv-wishlist__grid::after {
	display: none;
}

.gv-wishlist ul.products.gv-wishlist__grid li.product.gv-card {
	float: none;
	width: auto;
	margin: 0;
	clear: none;
}


/* ----------------------------------------------------------
   5. Wishlist page: empty
   ---------------------------------------------------------- */
.gv-wishlist__empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-top: 189px;
	padding-bottom: 232px;
	text-align: center;
}

.gv-wishlist__empty[hidden] {
	display: none;
}

.gv-wishlist .gv-wishlist__img {
	display: block;
	width: 199px;
	height: auto;
	margin-bottom: 11px;
}

.gv-wishlist__text {
	max-width: 892px;
	margin: 0;
	font-weight: 500;
	font-size: 24px;
	line-height: 33px;
	text-transform: capitalize;
	color: #000;
}

.gv-wishlist .gv-wishlist__shop {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-width: 208px;
	height: 53px;
	margin-top: 18px;
	padding: 10px 29px;
	border-radius: 10px;
	background: #ac262e;
	font-weight: 500;
	font-size: 20px;
	line-height: 33px;
	text-transform: capitalize;
	color: #fff;
	transition: background 0.2s ease;
}

.gv-wishlist .gv-wishlist__shop:hover {
	background: var(--gv-red-dark);
	color: #fff;
}


/* ----------------------------------------------------------
   6. Tablet & mobile
   ---------------------------------------------------------- */
@media (max-width: 1023px) {
	.gv-wishlist {
		padding-bottom: 96px;
	}

	.gv-wishlist .gv-crumbs {
		padding-left: 0;
		font-size: 20px;
	}

	.gv-wishlist ul.products.gv-wishlist__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px 16px;
		padding: 0;
	}

	.gv-wishlist__empty {
		margin-top: 96px;
		padding-bottom: 120px;
	}

	.gv-wishlist__text {
		font-size: 20px;
		line-height: 29px;
	}
}

@media (max-width: 600px) {
	.gv-wishlist {
		padding: 16px 0 64px;
	}

	.gv-wishlist .gv-crumbs {
		font-size: 18px;
		line-height: 26px;
	}

	.gv-wishlist .gv-crumbs svg {
		width: 18px;
		height: 18px;
	}

	.gv-wishlist ul.products.gv-wishlist__grid {
		grid-template-columns: minmax(0, 1fr);
		margin-top: 16px;
	}

	/* Phone cards have the picture on the left – heart goes top-right of the card */
	.gv-card .gv-wish.gv-wish--card {
		top: 10px;
		right: 10px;
		width: 30px;
		height: 30px;
		box-shadow: none;
	}

	.gv-card .gv-card__title {
		padding-right: 28px;
	}

	.gv-card .gv-wish.gv-wish--card svg {
		width: 17px;
		height: 17px;
	}

	.gv-wishlist__empty {
		margin-top: 56px;
		padding-bottom: 72px;
	}

	.gv-wishlist .gv-wishlist__img {
		width: 160px;
	}

	.gv-wishlist__text {
		font-size: 17px;
		line-height: 25px;
	}

	.gv-wishlist .gv-wishlist__shop {
		min-width: 0;
		height: 48px;
		padding-inline: 24px;
		font-size: 17px;
	}
}