.hfcs-product-template {
	--hfcs-bg: #f4efe8;
	--hfcs-surface: #fffdf9;
	--hfcs-surface-soft: #ece3d8;
	--hfcs-text: #261e1a;
	--hfcs-muted: #73655d;
	--hfcs-line: #d8cabd;
	--hfcs-brand: #a44524;
	--hfcs-brand-soft: #f2d5c8;
	--hfcs-good: #2d6a4f;
	--hfcs-warning: #8a5316;
}

.hfcs-product-template .product-entry-wrapper {
	align-items: start;
	background: var(--hfcs-surface);
	border: 1px solid var(--hfcs-line);
	border-radius: 22px;
	box-shadow: 0 18px 50px rgb(57 37 27 / 14%);
	gap: clamp(22px, 4vw, 54px);
	overflow: hidden;
	padding: clamp(16px, 3vw, 34px);
}

.hfcs-product-template .woocommerce-product-gallery {
	background: var(--hfcs-surface-soft);
	border-radius: 18px;
	padding: 14px;
}

.hfcs-product-template .woocommerce-product-gallery img {
	border-radius: 12px;
}

.hfcs-product-template .summary.entry-summary {
	color: var(--hfcs-text);
	direction: rtl;
	text-align: right;
}

.hfcs-product-template .summary.entry-summary .product_title {
	font-size: clamp(1.75rem, 3vw, 2.65rem);
	line-height: 1.35;
	margin-bottom: 7px;
}

.hfcs-product-identity {
	margin-bottom: 18px;
}

.hfcs-product-statuses {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-bottom: 9px;
}

.hfcs-product-status {
	background: var(--hfcs-brand-soft);
	border-radius: 999px;
	color: var(--hfcs-brand);
	display: inline-flex;
	font-size: .82rem;
	font-weight: 600;
	padding: 6px 10px;
}

.hfcs-product-status--rights {
	background: var(--hfcs-surface-soft);
	color: var(--hfcs-warning);
}

.hfcs-product-source-title {
	color: var(--hfcs-muted);
	font-size: .9rem;
	margin: 0;
	overflow-wrap: anywhere;
	text-align: right;
}

.hfcs-product-template .woocommerce-product-details__short-description {
	color: var(--hfcs-text);
	font-size: 1rem;
	line-height: 1.95;
	margin-bottom: 20px;
}

.hfcs-product-facts {
	display: grid;
	gap: 1px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 0;
	overflow: hidden;
}

.hfcs-product-fact {
	background: var(--hfcs-surface-soft);
	min-width: 0;
	padding: 11px 13px;
}

.hfcs-product-fact dt {
	color: var(--hfcs-muted);
	font-size: .78rem;
	margin-bottom: 3px;
}

.hfcs-product-fact dd {
	color: var(--hfcs-text);
	font-size: .9rem;
	font-weight: 600;
	margin: 0;
	overflow-wrap: anywhere;
}

.hfcs-product-availability {
	align-items: center;
	border-top: 1px solid var(--hfcs-line);
	display: flex;
	gap: 14px;
	justify-content: space-between;
	margin-top: 22px;
	padding-top: 17px;
}

.hfcs-product-availability > div {
	display: grid;
	gap: 3px;
}

.hfcs-product-availability strong {
	color: var(--hfcs-good);
	font-size: .98rem;
}

.hfcs-product-availability span:not(.hfcs-product-coming-soon) {
	color: var(--hfcs-muted);
	font-size: .82rem;
}

.hfcs-product-coming-soon {
	background: var(--hfcs-brand);
	border-radius: 12px;
	color: #fffaf6;
	flex: 0 0 auto;
	font-weight: 700;
	min-width: 96px;
	padding: 10px 18px;
	text-align: center;
}

.hfcs-product-template .out-of-stock-badge,
.hfcs-product-template .ct-product-waitlist,
.hfcs-product-template .ct-payment-methods,
.hfcs-product-template .product_meta .tagged_as,
.hfcs-product-template .summary .stock.out-of-stock {
	display: none !important;
}

.hfcs-product-template .product_meta {
	border-top: 1px solid var(--hfcs-line);
	color: var(--hfcs-muted);
	direction: rtl;
	margin-top: 18px;
	padding-top: 14px;
	text-align: right;
}

.hfcs-product-template .woocommerce-tabs {
	background: var(--hfcs-surface);
	border: 1px solid var(--hfcs-line);
	border-radius: 20px;
	direction: rtl;
	margin-top: clamp(24px, 4vw, 48px);
	overflow: hidden;
	padding: clamp(18px, 3vw, 30px);
	text-align: right;
}

.hfcs-conversion-hero {
	display: none;
}

.hfcs-product-template--conversion .site-logo-container svg {
	display: none;
}

.hfcs-product-template--conversion .site-logo-container::before {
	color: #211915;
	content: "HueForge";
	font-size: 1.35rem;
	font-weight: 850;
	letter-spacing: -.035em;
}

.hfcs-product-template--conversion footer:not(.hfcs-conversion-footer):not(.hfcs-site-footer),
.hfcs-product-template--conversion .summary .ct-woo-card-actions,
.hfcs-product-template--conversion .summary .ct-product-additional-actions,
.hfcs-product-template--conversion .summary .product_meta {
	display: none !important;
}

.hfcs-product-template--conversion header [data-row="top"],
.hfcs-product-template--conversion header [data-row="middle"][data-middle="search-input"] > .ct-container > div:not(:first-child),
.hfcs-product-template--conversion header [data-row="bottom"] [data-id="contacts"] {
	display: none !important;
}

.hfcs-product-template--conversion header [data-row="middle"][data-middle="search-input"] {
	--height: 76px;
}

.hfcs-product-template--conversion header [data-row="middle"][data-middle="search-input"] > .ct-container {
	grid-template-columns: 1fr !important;
}

.hfcs-product-template--conversion header [data-row="middle"][data-middle="search-input"] > .ct-container > div:first-child {
	justify-content: center !important;
}

.hfcs-product-template--conversion .product_title,
.hfcs-product-template--conversion .ct-breadcrumbs,
.hfcs-product-template--conversion .ct-breadcrumbs a {
	color: var(--hfcs-text) !important;
}

.hfcs-product-template--conversion .product-entry-wrapper {
	background:
		radial-gradient(circle at 90% 0, rgb(196 86 49 / 13%), transparent 32%),
		var(--hfcs-surface);
}

.hfcs-product-template--conversion .woocommerce-product-details__short-description {
	font-size: 1.06rem;
	line-height: 2.05;
}

.hfcs-product-template--conversion .hfcs-product-status--story {
	background: #ede5d9;
	color: #6c4838;
}

.hfcs-conversion-benefits {
	background: linear-gradient(145deg, #f6e8df, #efe6dc);
	border: 1px solid #e5ccbe;
	border-radius: 16px;
	margin: 4px 0 18px;
	padding: 16px 18px;
}

.hfcs-conversion-benefits p {
	color: var(--hfcs-brand);
	font-size: .95rem;
	font-weight: 800;
	margin: 0 0 10px;
}

.hfcs-conversion-benefits ul {
	display: grid;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.hfcs-conversion-benefits li {
	color: var(--hfcs-text);
	font-size: .88rem;
	line-height: 1.8;
	padding-right: 22px;
	position: relative;
}

.hfcs-conversion-benefits li::before {
	color: var(--hfcs-brand);
	content: "✓";
	font-weight: 900;
	position: absolute;
	right: 0;
}

.hfcs-product-availability--browse .hfcs-product-coming-soon {
	text-decoration: none;
}

.hfcs-conversion-footer {
	align-items: center;
	background: #211915;
	color: #f8efe8;
	display: grid;
	gap: 10px;
	grid-template-columns: auto 1fr auto;
	margin-top: 48px;
	padding: 26px max(24px, calc((100vw - 1240px) / 2));
}

.hfcs-conversion-footer__brand {
	color: #fff;
	font-size: 1.45rem;
	font-weight: 850;
	text-decoration: none;
}

.hfcs-conversion-footer p {
	color: #d8c8be;
	margin: 0;
}

.hfcs-conversion-footer nav {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.hfcs-conversion-footer nav a {
	color: #f6b69c;
	font-size: .88rem;
	text-decoration: none;
}

.hfcs-product-template .woocommerce-tabs .tabs {
	border-bottom-color: var(--hfcs-line);
	direction: rtl;
}

.hfcs-product-template .woocommerce-tabs .tabs a {
	font-weight: 650;
}

.hfcs-product-description,
.hfcs-product-specifications {
	color: var(--hfcs-text);
	line-height: 2;
	max-width: 78ch;
}

.hfcs-product-description h2,
.hfcs-product-specifications h2 {
	font-size: 1.45rem;
	margin: 0 0 13px;
}

.hfcs-product-attribution {
	align-items: center;
	background: var(--hfcs-surface-soft);
	border-radius: 12px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	justify-content: space-between;
	margin-top: 22px;
	padding: 12px 14px;
}

.hfcs-product-attribution a {
	color: var(--hfcs-brand);
	font-weight: 650;
}

.hfcs-product-specifications table {
	border-collapse: collapse;
	width: 100%;
}

.hfcs-product-specifications th,
.hfcs-product-specifications td {
	border-bottom: 1px solid var(--hfcs-line);
	padding: 10px 0;
	text-align: right;
	vertical-align: top;
}

.hfcs-product-specifications th {
	color: var(--hfcs-muted);
	font-weight: 500;
	width: 38%;
}

.hfcs-product-data-note {
	color: var(--hfcs-muted);
	font-size: .84rem;
	margin: 16px 0 0;
}

@media (prefers-color-scheme: dark) {
	.hfcs-product-template {
		--hfcs-bg: #15110f;
		--hfcs-surface: #211b18;
		--hfcs-surface-soft: #2d2521;
		--hfcs-text: #fff8ef;
		--hfcs-muted: #c9bcb2;
		--hfcs-line: #493d36;
		--hfcs-brand: #f58a5f;
		--hfcs-brand-soft: #4a271c;
		--hfcs-good: #80d3a8;
		--hfcs-warning: #ffc777;
	}

	.hfcs-product-template--conversion .hfcs-product-status--story,
	.hfcs-product-template--conversion .hfcs-conversion-benefits {
		background: #342823;
		border-color: #5a4035;
		color: #f8d4c4;
	}
}

@media (max-width: 767px) {
	.hfcs-product-template .product-entry-wrapper {
		border-radius: 16px;
		padding: 14px;
	}

	.hfcs-product-facts {
		grid-template-columns: 1fr;
	}

	.hfcs-product-availability {
		align-items: stretch;
		flex-direction: column;
	}

	.hfcs-product-coming-soon {
		width: 100%;
	}

	.hfcs-product-template .woocommerce-tabs {
		border-radius: 16px;
		padding: 16px;
	}

	.hfcs-product-template--conversion .product-entry-wrapper {
		display: flex;
		flex-direction: column;
		gap: 18px;
	}

	.hfcs-product-template--conversion .hfcs-conversion-hero {
		display: block;
		order: 0;
		padding: 8px 2px 0;
	}

	.hfcs-product-template--conversion .woocommerce-product-gallery {
		order: 1;
	}

	.hfcs-product-template--conversion .summary.entry-summary {
		order: 2;
	}

	.hfcs-product-template--conversion .summary .product_title,
	.hfcs-product-template--conversion .summary .hfcs-product-identity,
	.hfcs-product-template--conversion .summary .woocommerce-product-details__short-description {
		display: none;
	}

	.hfcs-conversion-eyebrow {
		color: #c45531;
		font-size: .78rem;
		font-weight: 800;
		letter-spacing: .03em;
		margin: 0 0 7px;
	}

	.hfcs-conversion-title {
		color: #211915;
		font-size: clamp(1.85rem, 8vw, 2.5rem);
		font-weight: 850;
		line-height: 1.45;
		margin-bottom: 10px;
	}

	.hfcs-conversion-lede {
		color: #65554e;
		font-size: .96rem;
		line-height: 1.95;
		margin: 0 0 15px;
	}

	.hfcs-conversion-actions {
		display: grid;
		gap: 8px;
		grid-template-columns: 1fr 1fr;
	}

	.hfcs-conversion-action {
		border: 1px solid var(--hfcs-brand);
		border-radius: 12px;
		font-size: .86rem;
		font-weight: 800;
		padding: 11px 10px;
		text-align: center;
		text-decoration: none;
	}

	.hfcs-conversion-action--primary {
		background: var(--hfcs-brand);
		color: #fff;
	}

	.hfcs-conversion-action--secondary {
		color: var(--hfcs-brand);
	}

	.hfcs-product-template--conversion .woocommerce-product-gallery .flex-viewport,
	.hfcs-product-template--conversion .woocommerce-product-gallery .woocommerce-product-gallery__image {
		max-height: 66vh;
	}

	.hfcs-product-template--conversion .woocommerce-product-gallery .woocommerce-product-gallery__image img {
		height: min(66vh, 560px);
		object-fit: contain;
		width: 100%;
	}

	.hfcs-conversion-footer {
		grid-template-columns: 1fr;
		padding: 24px 20px;
		text-align: right;
	}
}
