/* HF-130 Your Favorites — production Phase A · HF-136 PDP cache-bridge appended (see hf-pdp-fixes MU) 1.0.17-hf130
 * Canvas lock 2026-11-23 evening: Shop bottom-left; PDP beside title.
 * Copy: toasts Favorites; page title Your + Favorites (charcoal / rust italic).
 * No persistent PDP “Saved to Favorites” note — toast only.
 * Header: wrap twins .cart_icon; badge twins #hf-header-cart-count; outline heart.
 * Scroll unlock removed — HF-134 owns that separately.
 */

:root {
	--hf130-cream: #f5f4ef;
	--hf130-ink: #1f1e1d;
	--hf130-brown: #483723;
	--hf130-red: #a8321d;
	--hf130-tan: #e8e0d4;
	--hf130-day: #2f6b3a;
	--hf130-night: #1a2744;
	--hf130-sold-bg: #f3d6d0;
	--hf130-sold-fg: #a8321d;
	--hf130-chip-bg: #ebe8e2;
}

/*
 * Header heart — geometric twin of .cart_icon + #hf-header-cart-count:
 *   .cart_icon[role=button] { position:relative; padding:8px; 36×36 }
 *   #hf-header-cart-count { top:-8; right:-10; 20×20; … }
 * Badge is a direct child of the wrap (same as cart mirror on .cart_icon).
 * Heart glyph stays outline/stroke so the badge does not read “high”
 * against a filled red mass (cart is stroke-only).
 */
.hf130-header-wrap {
	display: block !important;
	flex-shrink: 0;
	box-sizing: border-box !important;
	position: relative !important;
	width: 36px !important;
	height: 36px !important;
	min-width: 36px !important;
	min-height: 36px !important;
	margin: 0 !important;
	margin-bottom: 0 !important;
	padding: 8px !important;
	max-width: none !important;
	line-height: 0 !important;
	align-self: center;
	overflow: visible !important;
	cursor: pointer;
}
.site_header .hf130-header-wrap.wpb_content_element,
.site_header .hf130-header-wrap {
	margin: 0 !important;
	padding: 8px !important;
}
.site_header .hf130-header-wrap > .wpb_wrapper {
	display: flex !important;
	align-items: center;
	justify-content: center;
	margin: 0 !important;
	padding: 0 !important;
	line-height: 0 !important;
	width: 20px !important;
	height: 20px !important;
}
.hf130-header {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 20px;
	height: 20px;
	min-width: 20px;
	min-height: 20px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--hf130-brown);
	text-decoration: none;
	line-height: 0;
	cursor: pointer;
	position: static;
	overflow: visible;
	-webkit-tap-highlight-color: transparent;
}
.hf130-header:focus-visible {
	outline: 2px solid var(--hf130-red);
	outline-offset: 2px;
	border-radius: 4px;
}
.hf130-header__icon,
.hf130-heart__icon {
	width: 20px;
	height: 20px;
	display: block;
	flex-shrink: 0;
}
/* Exact twin of .cart_icon[role="button"] #hf-header-cart-count */
.hf130-header-wrap > .hf130-header__badge,
.hf130-header__badge {
	position: absolute !important;
	z-index: 2;
	top: -8px !important;
	right: -10px !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: 20px;
	height: 20px;
	padding: 0 4px;
	margin: 0;
	border: 2px solid #fff8ed;
	border-radius: 999px;
	background: #c73525;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 16px;
	font-variant-numeric: tabular-nums;
	text-align: center;
}
.hf130-header__badge[hidden] {
	display: none !important;
}
body.hf-mm-open .hf130-header-wrap,
body.hf-mm-lock .hf130-header-wrap,
body:has(#hf-mm-root.is-open) .hf130-header-wrap,
body:has(.custom_mini_cart_pop.active) .hf130-header-wrap {
	visibility: hidden;
	pointer-events: none;
}
@media (max-width: 999px) {
	.site_header .cart_icon {
		margin-left: 0 !important;
	}
}
@media (max-width: 639px) {
	/* Chat keeps ml:auto; heart sits between chat and cart */
	.site_header .hf130-header-wrap {
		margin-left: 0 !important;
	}
}

/*
 * Canvas lock 2026-11-23 evening:
 * Shop — bottom-left of image; circle ~28 mobile / ~30 desktop; 16px icon.
 * PDP — beside title (not gallery); circle ~30–32; 16px icon.
 * Hit target ≥44×44 (transparent padding).
 */
.pf-card__image-wrap {
	position: relative;
}

/* Leftover title-row wrappers on shop cards (old experiments) */
.hf130-card-title-row {
	display: contents;
}

.hf130-card-heart {
	position: absolute !important;
	left: 4px !important;
	bottom: 4px !important;
	top: auto !important;
	right: auto !important;
	z-index: 6;
	display: flex !important;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 44px !important;
	height: 44px !important;
	min-width: 44px !important;
	min-height: 44px !important;
	max-width: 44px !important;
	max-height: 44px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	line-height: 0 !important;
	overflow: visible;
	pointer-events: auto;
}
.hf130-card-heart::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 28px;
	height: 28px;
	transform: translate(-50%, -50%);
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16);
	pointer-events: none;
}
@media (min-width: 1000px) {
	.hf130-card-heart::before {
		width: 30px;
		height: 30px;
	}
}
.hf130-card-heart:focus-visible {
	outline: 2px solid var(--hf130-red);
	outline-offset: 2px;
	border-radius: 4px;
}
.hf130-card-heart .hf130-heart__icon,
.hf130-card-heart svg.hf130-heart__icon,
.hf130-card-heart > svg {
	position: relative;
	z-index: 1;
	width: 16px !important;
	height: 16px !important;
	min-width: 16px !important;
	min-height: 16px !important;
	max-width: 16px !important;
	max-height: 16px !important;
	display: block !important;
	flex-shrink: 0 !important;
	margin: 0 !important;
}
.hf130-card-heart.is-saved .hf130-heart__icon path,
.hf130-card-heart.is-saved > svg path {
	fill: var(--hf130-red) !important;
	stroke: var(--hf130-brown) !important;
	stroke-width: 1.5 !important;
}

/* PDP: title row — name left, heart right */
.hf130-pdp-title-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
}
.hf130-pdp-title-row .hf40-title,
.hf130-pdp-title-row .product_title,
.hf130-pdp-title-row .product-title {
	flex: 1 1 auto;
	min-width: 0;
	margin-right: 0;
}
.hf130-pdp-heart-wrap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	margin: -4px -6px 0 0;
	padding: 0;
	line-height: 0;
	position: relative;
	width: 44px;
	height: 44px;
	pointer-events: none;
	z-index: 3;
}
.hf130-pdp-heart {
	position: relative !important;
	top: auto !important;
	right: auto !important;
	left: auto !important;
	bottom: auto !important;
	z-index: 3;
	display: flex !important;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 44px !important;
	height: 44px !important;
	min-width: 44px !important;
	min-height: 44px !important;
	max-width: 44px !important;
	max-height: 44px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	line-height: 0 !important;
	overflow: visible;
	pointer-events: auto;
}
.hf130-pdp-heart::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 30px;
	height: 30px;
	transform: translate(-50%, -50%);
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16);
	pointer-events: none;
}
@media (min-width: 1000px) {
	.hf130-pdp-heart::before {
		width: 32px;
		height: 32px;
	}
}
.hf130-pdp-heart:focus-visible {
	outline: 2px solid var(--hf130-red);
	outline-offset: 2px;
	border-radius: 4px;
}
.hf130-pdp-heart .hf130-heart__icon,
.hf130-pdp-heart svg.hf130-heart__icon,
.hf130-pdp-heart > svg {
	position: relative;
	z-index: 1;
	width: 16px !important;
	height: 16px !important;
	min-width: 16px !important;
	min-height: 16px !important;
	max-width: 16px !important;
	max-height: 16px !important;
	display: block !important;
	flex-shrink: 0 !important;
	margin: 0 !important;
}
.hf130-pdp-heart.is-saved .hf130-heart__icon path,
.hf130-pdp-heart.is-saved > svg path {
	fill: var(--hf130-red) !important;
	stroke: var(--hf130-brown) !important;
	stroke-width: 1.5 !important;
}

/* Never leave a heart on the PDP gallery (evening canvas) */
.hf40-gallery .hf130-pdp-heart-wrap,
.hf40-gallery .hf130-pdp-heart,
.product-carousel__featured > .hf130-pdp-heart-wrap {
	display: none !important;
}

/* —— Toast —— */
.hf130-toast {
	position: fixed;
	left: 12px;
	right: 12px;
	bottom: 16px;
	z-index: 100050;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	border-radius: 10px;
	background: #111;
	color: #fff;
	font: 500 14px/1.3 system-ui, -apple-system, sans-serif;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
	transform: translateY(120%);
	opacity: 0;
	pointer-events: none;
	transition: transform 0.28s ease, opacity 0.28s ease;
}
.hf130-toast.is-on {
	transform: translateY(0);
	opacity: 1;
	pointer-events: auto;
}
.hf130-toast__view {
	color: #e8c98a;
	text-decoration: none;
	font-weight: 600;
	white-space: nowrap;
}
.hf130-toast__view:hover,
.hf130-toast__view:focus {
	text-decoration: underline;
}

/* —— Your Favorites page —— */
.hf130-page {
	max-width: 720px;
	margin: 0 auto;
	padding: 24px 16px 48px;
	color: var(--hf130-ink);
}
.hf130-page__title {
	margin: 0 0 8px;
	font-family: "Playfair Display", Georgia, serif;
	font-size: clamp(2rem, 5vw, 2.75rem);
	font-weight: 700;
	line-height: 1.15;
	color: var(--hf130-ink); /* charcoal roman "Your" */
}
.hf130-page__title em {
	font-style: italic;
	color: var(--hf130-red);
	font-weight: 700;
}
.hf130-page__sub {
	margin: 0 0 24px;
	font: 400 15px/1.45 system-ui, -apple-system, sans-serif;
	color: #4a4845;
}
.hf130-page__full {
	margin: 0 0 16px;
	padding: 10px 12px;
	border-radius: 8px;
	background: #f3ebe2;
	border: 1px solid #c98a5a;
	font: 500 14px/1.4 system-ui, -apple-system, sans-serif;
}
.hf130-page__full[hidden],
.hf130-page__empty[hidden] {
	display: none !important;
}
.hf130-page__empty {
	padding: 32px 8px;
	text-align: center;
}
.hf130-page__empty p {
	margin: 0 0 16px;
	font: 400 16px/1.45 system-ui, -apple-system, sans-serif;
}
.hf130-page__shop-btn,
.hf130-row__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 18px;
	border-radius: 8px;
	border: 0;
	background: var(--hf130-red);
	color: #fff !important;
	font: 600 14px/1.2 system-ui, -apple-system, sans-serif;
	text-decoration: none !important;
	cursor: pointer;
}
.hf130-row__btn.is-outline {
	background: transparent;
	color: var(--hf130-red) !important;
	border: 1.5px solid var(--hf130-red);
}
.hf130-row__btn:disabled,
.hf130-row__btn.is-disabled {
	opacity: 0.45;
	pointer-events: none;
	cursor: not-allowed;
}
.hf130-page__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.hf130-row {
	display: grid;
	grid-template-columns: 88px 1fr;
	gap: 12px;
	padding: 12px;
	border: 1px solid #ddd8cf;
	border-radius: 12px;
	background: #fff;
}
.hf130-row__img {
	width: 88px;
	height: 88px;
	border-radius: 8px;
	object-fit: cover;
	background: var(--hf130-tan);
}
.hf130-row__img--ph {
	display: block;
}
.hf130-row__body {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.hf130-row__name {
	margin: 0;
	font: 700 15px/1.25 system-ui, -apple-system, sans-serif;
	color: var(--hf130-ink);
}
.hf130-row__name a {
	color: inherit;
	text-decoration: none;
}
.hf130-row__meta {
	margin: 0;
	font: 400 13px/1.35 system-ui, -apple-system, sans-serif;
	color: #5a5854;
}
.hf130-row__meta .hf130-menu--Day { color: var(--hf130-day); font-weight: 600; }
.hf130-row__meta .hf130-menu--Night { color: var(--hf130-night); font-weight: 600; }
.hf130-row__meta .hf130-menu--Pre-order { color: #7a5a18; font-weight: 600; }
.hf130-row__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 4px;
}
.hf130-chip {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--hf130-chip-bg);
	color: var(--hf130-ink);
	font: 600 12px/1 system-ui, -apple-system, sans-serif;
}
.hf130-chip--sold {
	background: var(--hf130-sold-bg);
	color: var(--hf130-sold-fg);
}
.hf130-row__remove {
	background: none;
	border: 0;
	padding: 8px 4px;
	color: #5a5854;
	text-decoration: underline;
	font: 500 13px/1 system-ui, -apple-system, sans-serif;
	cursor: pointer;
	min-height: 44px;
}
.hf130-page__footer {
	margin-top: 28px;
}
.hf130-page__keep {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 48px;
	border: 1.5px solid #1f1e1d;
	border-radius: 10px;
	background: #fff;
	color: #1f1e1d !important;
	font: 700 15px/1.2 system-ui, -apple-system, sans-serif;
	text-decoration: none !important;
}

@media (min-width: 768px) {
	.hf130-toast {
		left: auto;
		right: 24px;
		width: min(420px, calc(100vw - 48px));
	}
	.hf130-row {
		grid-template-columns: 104px 1fr;
	}
	.hf130-row__img {
		width: 104px;
		height: 104px;
	}
}


/* =============================================================================
 * HF-136 PDP fixes (cache-bridge) — NOT Favorites features.
 * Primary home: mu-plugins/hf-pdp-fixes.php. This append reaches Rocket-cached
 * HTML that already enqueues hf-your-edit.css until page HTML regenerates.
 * ============================================================================= */
.hf130-pdp-note,
[data-hf130-pdp-note] {
	display: none !important;
	height: 0 !important;
	max-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	overflow: hidden !important;
}
.hf40-identity > .hf40-price-row {
	margin-bottom: 0 !important;
}
.hf40-identity > .hf-product-badges,
.hf40-identity > .hf40-badges-deferred {
	margin: 0.15rem 0 0.85rem;
	width: 100%;
}
@media (min-width: 1000px) {
	.hf40-grid.product-layout__grid {
		row-gap: 0.35rem !important;
	}
}
.hf40-pick-helper,
[data-hf40-pick-helper] {
	display: none !important;
}
