/**
 * Wishlist — VishaPet (native + YITH / TI / WishSuite + product heart buttons).
 * Paired with cart-checkout.css flow chrome (.vp-flow).
 */

/* Native wishlist remove */
.vp-wishlist-remove {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 2rem !important;
	height: 2rem !important;
	border-radius: 999px !important;
	background: rgba(220, 38, 38, 0.08) !important;
	color: #dc2626 !important;
	font-size: 1.1rem !important;
	line-height: 1 !important;
	border: 0 !important;
	cursor: pointer;
	padding: 0 !important;
}

.vp-wishlist-remove:hover {
	background: #dc2626 !important;
	color: #fff !important;
}

/* Product card heart + cart */
.vp-product-card__actions {
	display: flex !important;
	flex-direction: column;
	gap: 0.45rem;
	margin-top: 0.35rem;
	width: 100%;
	align-self: stretch;
	box-sizing: border-box;
}

.vp-product-card__actions--inline {
	flex-direction: row !important;
	align-items: center !important;
	gap: 0.5rem;
}

/* Heart on the physical right (RTL: first flex item). */
.vp-product-card__actions--wish-right {
	flex-direction: row;
}

.vp-product-card__actions--wish-left {
	flex-direction: row-reverse;
}

html[dir="ltr"] .vp-product-card__actions--wish-right {
	flex-direction: row-reverse;
}

html[dir="ltr"] .vp-product-card__actions--wish-left {
	flex-direction: row;
}

.vp-product-card__actions--inline .vp-product-card__cart,
.vp-product-card__actions--inline .vp-product-card__cart.button {
	flex: 1 1 auto;
	min-width: 0;
	width: auto !important;
	margin: 0 !important;
}

.vp-wish-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	border: 1px solid rgba(225, 29, 72, 0.22);
	background: #fff;
	color: #e11d48;
	border-radius: 999px;
	font-weight: 800;
	font-size: 0.8rem;
	cursor: pointer;
	transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, transform 0.18s ease;
	font-family: inherit;
	padding: 0;
	box-shadow: 0 6px 16px rgba(74, 59, 50, 0.06);
}

.vp-wish-btn--card {
	width: 100%;
	padding: 0.45rem 0.75rem;
	min-height: 2.35rem;
}

.vp-wish-btn--inline {
	display: grid;
	place-items: center;
	flex: 0 0 2.5rem;
	width: 2.5rem;
	min-width: 2.5rem;
	height: 2.5rem;
	min-height: 2.5rem;
	align-self: center;
	padding: 0;
	box-sizing: border-box;
}

.vp-wish-btn__text:empty {
	display: none;
}

.vp-wish-btn__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1em;
	height: 1em;
	line-height: 1;
	position: relative;
	flex-shrink: 0;
}

.vp-wish-btn__ico {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: block !important;
	font-size: 0.9rem !important;
	line-height: 1 !important;
	color: inherit !important;
	text-align: center;
	margin: 0 !important;
	padding: 0 !important;
	width: 1em;
	height: 1em;
	font-family: "Font Awesome 6 Free", FontAwesome !important;
	font-style: normal !important;
	-webkit-font-smoothing: antialiased;
}

.vp-wish-btn__ico--off {
	font-weight: 400 !important;
}

.vp-wish-btn__ico--on {
	font-weight: 900 !important;
	display: none !important;
}

.vp-wish-btn.is-active .vp-wish-btn__ico--off {
	display: none !important;
}

.vp-wish-btn.is-active .vp-wish-btn__ico--on,
.vp-wish-btn:hover .vp-wish-btn__ico--on {
	display: block !important;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.vp-wish-btn:hover .vp-wish-btn__ico--off {
	display: none !important;
}

.vp-wish-btn--card .vp-wish-btn__icon,
.vp-wish-btn--inline .vp-wish-btn__icon {
	font-size: 1rem;
	line-height: 1;
}

.vp-wish-btn--single {
	margin: 0.75rem 0 0;
	padding: 0.65rem 1.15rem;
}

.vp-wish-btn:hover,
.vp-wish-btn.is-active {
	background: #e11d48;
	border-color: #e11d48;
	color: #fff;
	box-shadow: 0 10px 22px rgba(225, 29, 72, 0.28);
	transform: translateY(-2px);
}

/* =========================================================
   Page chrome
   ========================================================= */

body.vp-wishlist-page .entry-title,
body.vp-wishlist-page .page-title,
body.vp-wishlist-page .vp-page__title,
body.vp-wishlist-page .wishlist-title h2,
body.vp-wishlist-page .wishlist-title-with-form h2,
.vp-flow--wishlist .wishlist-title,
.vp-flow--wishlist .wishlist-title-with-form {
	display: none !important;
}

.vp-flow--wishlist {
	margin-bottom: 2.5rem;
}

.vp-wishlist__cta-bar {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
	margin-top: 1.75rem;
	padding-top: 1.5rem;
	border-top: 1px dashed rgba(74, 59, 50, 0.12);
}

.vp-wishlist__cta-bar .vp-btn-checkout {
	width: auto;
	min-width: 14rem;
	padding-inline: 1.5rem !important;
}

.vp-wishlist__cta-bar .vp-btn-secondary {
	min-width: 12rem;
}

/* =========================================================
   YITH table → card rows (same language as cart)
   ========================================================= */

.vp-flow--wishlist .woocommerce-wishlist-form,
.vp-flow--wishlist form.woocommerce.wishlist_table,
.vp-flow--wishlist .yith-wcwl-form,
.yith-wcwl-form,
form.woocommerce.cart.wishlist_table {
	margin: 0;
}

.wishlist_table.shop_table,
.wishlist_table {
	width: 100%;
	border-collapse: separate !important;
	border-spacing: 0 0.75rem !important;
	background: transparent !important;
	margin: 0 !important;
}

.wishlist_table thead {
	display: none;
}

.wishlist_table tbody tr {
	background: #fff;
	box-shadow: 0 12px 28px rgba(90, 140, 61, 0.08);
}

.wishlist_table tbody tr td {
	border: 1px solid rgba(74, 59, 50, 0.08) !important;
	border-left: 0 !important;
	border-right: 0 !important;
	padding: 1rem 0.85rem !important;
	vertical-align: middle !important;
	background: #fff !important;
}

.wishlist_table tbody tr td:first-child {
	border-right: 1px solid rgba(74, 59, 50, 0.08) !important;
	border-radius: 0 1.35rem 1.35rem 0;
}

.wishlist_table tbody tr td:last-child {
	border-left: 1px solid rgba(74, 59, 50, 0.08) !important;
	border-radius: 1.35rem 0 0 1.35rem;
}

.wishlist_table .product-thumbnail a,
.wishlist_table .product-thumbnail img {
	display: block;
	width: 4.5rem;
	height: 4.5rem;
	border-radius: 1rem;
	object-fit: cover;
	background: var(--vp-light);
	overflow: hidden;
}

.wishlist_table .product-name a {
	color: var(--vp-dark);
	font-weight: 800;
	font-size: 0.95rem;
	text-decoration: none;
	line-height: 1.45;
}

.wishlist_table .product-name a:hover {
	color: var(--vp-orange);
}

.wishlist_table .product-price,
.wishlist_table .product-price .amount {
	font-weight: 800 !important;
	color: var(--vp-orange) !important;
	white-space: nowrap;
}

.wishlist_table .product-stock-status span,
.wishlist_table .wishlist-in-stock {
	display: inline-flex;
	align-items: center;
	padding: 0.25rem 0.65rem;
	border-radius: 999px;
	background: rgba(90, 140, 61, 0.12);
	color: var(--vp-green-hover);
	font-size: 0.75rem;
	font-weight: 800;
}

.wishlist_table .wishlist-out-of-stock {
	background: rgba(220, 38, 38, 0.1) !important;
	color: #b91c1c !important;
}

.wishlist_table .product-remove a,
.wishlist_table .remove_from_wishlist,
.wishlist_table a.remove {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 2rem !important;
	height: 2rem !important;
	border-radius: 999px !important;
	background: rgba(220, 38, 38, 0.08) !important;
	color: #dc2626 !important;
	font-size: 1.05rem !important;
	line-height: 1 !important;
	text-decoration: none !important;
	border: 0 !important;
	box-shadow: none !important;
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.wishlist_table .product-remove a:hover,
.wishlist_table .remove_from_wishlist:hover,
.wishlist_table a.remove:hover {
	background: #dc2626 !important;
	color: #fff !important;
	transform: scale(1.05);
}

.wishlist_table .product-add-to-cart a,
.wishlist_table .product-add-to-cart .button,
.wishlist_table .add_to_cart,
.wishlist_table a.add_to_cart_button,
.wishlist_table .button.add_to_cart_button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	padding: 0.7rem 1.15rem !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: var(--vp-green) !important;
	color: #fff !important;
	font-weight: 800 !important;
	font-size: 0.85rem !important;
	text-decoration: none !important;
	box-shadow: 0 8px 18px rgba(90, 140, 61, 0.28) !important;
	white-space: nowrap;
	transition: background 0.2s ease, transform 0.2s ease;
}

.wishlist_table .product-add-to-cart a:hover,
.wishlist_table .product-add-to-cart .button:hover,
.wishlist_table a.add_to_cart_button:hover {
	background: var(--vp-green-hover) !important;
	color: #fff !important;
	transform: translateY(-1px);
}

.wishlist_table .quantity {
	display: inline-flex;
	align-items: center;
	background: var(--vp-light);
	border: 1.5px solid rgba(74, 59, 50, 0.12);
	border-radius: 999px;
	padding: 0.15rem;
	overflow: hidden;
}

.wishlist_table .quantity .qty {
	width: 2.75rem;
	border: 0;
	background: transparent;
	text-align: center;
	font-weight: 800;
	color: var(--vp-dark);
}

/* Footer actions (add all / ask estimate) */
.yith-wcwl-form .yith_wcwl_wishlist_footer,
.wishlist-view-footer,
.yith_wcwl_wishlist_footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.85rem;
	margin-top: 0.5rem;
	padding: 1rem 1.15rem;
	background: #fff;
	border: 1px solid rgba(74, 59, 50, 0.08);
	border-radius: 1.35rem;
	box-shadow: 0 10px 24px rgba(90, 140, 61, 0.06);
}

.yith_wcwl_wishlist_footer .button,
.wishlist-view-footer .button,
.yith-wcwl-wishlist-add-all-to-cart,
a.add_all_to_cart_button {
	padding: 0.75rem 1.25rem !important;
	border-radius: 999px !important;
	border: 0 !important;
	background: var(--vp-orange) !important;
	color: #fff !important;
	font-weight: 900 !important;
	font-size: 0.88rem !important;
	box-shadow: 0 10px 22px rgba(242, 140, 40, 0.3) !important;
	text-decoration: none !important;
}

.yith_wcwl_wishlist_footer .button:hover,
a.add_all_to_cart_button:hover {
	background: #e07b18 !important;
	color: #fff !important;
}

/* Empty state */
.wishlist-empty,
.yith-wcwl-wishlist-empty,
.wishlist_table tbody td.wishlist-empty {
	text-align: center !important;
	padding: 2.5rem 1.5rem !important;
	border-radius: 1.5rem !important;
	background: #fff !important;
	border: 1px dashed rgba(74, 59, 50, 0.12) !important;
	box-shadow: none !important;
	font-size: 0.95rem;
	font-weight: 600;
	color: #7a7168;
}

.wishlist_table tbody tr:has(td.wishlist-empty),
.wishlist_table tbody tr:has(.wishlist-empty) {
	box-shadow: none;
}

.wishlist_table tbody tr:has(td.wishlist-empty) td,
.wishlist_table tbody tr:has(.wishlist-empty) td {
	border: 0 !important;
	border-radius: 1.5rem !important;
}

/* =========================================================
   Mobile cards
   ========================================================= */

@media (max-width: 767px) {
	.wishlist_table,
	.wishlist_table tbody,
	.wishlist_table tr,
	.wishlist_table td {
		display: block;
		width: 100%;
	}

	.wishlist_table tbody tr {
		position: relative;
		padding: 1rem;
		border-radius: 1.35rem;
		border: 1px solid rgba(74, 59, 50, 0.08);
		margin-bottom: 0.75rem;
	}

	.wishlist_table tbody tr td {
		border: 0 !important;
		border-radius: 0 !important;
		padding: 0.35rem 0 !important;
		background: transparent !important;
		text-align: right !important;
	}

	.wishlist_table tbody tr td.product-remove {
		position: absolute;
		top: 0.75rem;
		left: 0.75rem;
		width: auto;
		padding: 0 !important;
	}

	.wishlist_table tbody tr td.product-thumbnail {
		width: 4.5rem;
		padding-bottom: 0.75rem !important;
	}

	.wishlist_table tbody tr td::before {
		content: attr(data-title);
		float: right;
		font-weight: 700;
		font-size: 0.78rem;
		color: #9ca3af;
		margin-left: 0.75rem;
	}

	.wishlist_table tbody tr td.product-remove::before,
	.wishlist_table tbody tr td.product-thumbnail::before,
	.wishlist_table tbody tr td.product-name::before,
	.wishlist_table tbody tr td.product-checkbox::before {
		display: none;
	}

	.wishlist_table .product-add-to-cart a,
	.wishlist_table .product-add-to-cart .button {
		width: 100%;
	}

	.vp-wishlist__cta-bar {
		flex-direction: column;
		align-items: stretch;
	}

	.vp-wishlist__cta-bar .vp-btn-checkout,
	.vp-wishlist__cta-bar .vp-btn-secondary {
		width: 100%;
		min-width: 0;
	}
}

/* YITH modern mobile list */
.wishlist_table.mobile li,
ul.shop_table.cart.wishlist_table.mobile li {
	background: #fff;
	border: 1px solid rgba(74, 59, 50, 0.08);
	border-radius: 1.35rem;
	box-shadow: 0 12px 28px rgba(90, 140, 61, 0.08);
	padding: 1rem !important;
	margin-bottom: 0.85rem !important;
}

/* =========================================================
   TI Wishlist / WishSuite fallbacks
   ========================================================= */

.tinv-wishlist .tinvwl-table-manage-list,
.wishsuite-table-content table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0 0.75rem;
}

.tinv-wishlist .product-name a,
.wishsuite-table-content .product-name a {
	font-weight: 800;
	color: var(--vp-dark);
	text-decoration: none;
}

.tinv-wishlist .tinvwl_add_to_cart_button,
.wishsuite-table-content .button {
	border-radius: 999px !important;
	background: var(--vp-green) !important;
	color: #fff !important;
	font-weight: 800 !important;
	border: 0 !important;
}

/* =========================================================
   Add-to-wishlist buttons on product cards / single
   ========================================================= */

.yith-wcwl-add-to-wishlist,
.products .yith-wcwl-add-to-wishlist {
	margin: 0.5rem 0 0;
}

.yith-wcwl-add-button a.add_to_wishlist,
.yith-wcwl-wishlistexistsbrowse a,
.yith-wcwl-wishlistaddedbrowse a,
a.add_to_wishlist,
.single-product .yith-wcwl-add-to-wishlist a {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	padding: 0.55rem 1rem !important;
	border-radius: 999px !important;
	background: #fff !important;
	color: #e11d48 !important;
	border: 1.5px solid rgba(225, 29, 72, 0.25) !important;
	font-weight: 800 !important;
	font-size: 0.8rem !important;
	text-decoration: none !important;
	box-shadow: 0 6px 14px rgba(225, 29, 72, 0.08);
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.yith-wcwl-add-button a.add_to_wishlist:hover,
.single-product .yith-wcwl-add-to-wishlist a:hover {
	background: #e11d48 !important;
	color: #fff !important;
	border-color: #e11d48 !important;
}

.yith-wcwl-wishlistaddedbrowse a,
.yith-wcwl-wishlistexistsbrowse a {
	background: rgba(225, 29, 72, 0.08) !important;
}

/* Hide noisy YITH feedback text under buttons when redundant */
.yith-wcwl-add-to-wishlist .feedback {
	font-size: 0.75rem;
	color: #9ca3af;
	margin-top: 0.35rem;
}

/* Share icons */
.yith-wcwl-share,
.yith-wcwl-share ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
	list-style: none;
	margin: 1.25rem 0 0;
	padding: 0;
}

.yith-wcwl-share li a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.4rem;
	height: 2.4rem;
	border-radius: 999px;
	background: var(--vp-light);
	color: var(--vp-dark);
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
}

.yith-wcwl-share li a:hover {
	background: var(--vp-green);
	color: #fff;
}
