/**
 * Single product — page title (editorial)
 */

/* Content zona — bijela pozadina */
body.runnerp-single-product,
body.runnerp-single-product #qodef-page-outer,
body.runnerp-single-product #qodef-page-content,
body.runnerp-single-product .qodef-page-content-section,
body.runnerp-single-product .qodef-page-content-holder,
body.runnerp-single-product #qodef-page-inner,
body.runnerp-single-product .qodef-grid-item,
body.runnerp-single-product #qodef-woo-page {
	background-color: #fff !important;
}

@keyframes runnerp-single-product-title-in {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

body.runnerp-single-product .qodef-page-title.runnerp-single-product-title,
body.runnerp-single-product .qodef-page-title.runnerp-single-product-title .qodef-m-inner {
	position: relative;
	height: auto !important;
	min-height: 0 !important;
	overflow: hidden;
	background:
		radial-gradient(120% 90% at 50% 0%, rgba(255, 252, 250, 0.95) 0%, transparent 62%),
		linear-gradient(180deg, var(--runnerp-beige-50, #FBF7F2) 0%, var(--runnerp-beige-100, #F3EBE3) 100%) !important;
	border-bottom: 1px solid rgba(74, 52, 40, 0.08);
}

body.runnerp-single-product .qodef-page-title.runnerp-single-product-title .qodef-m-inner::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: 0.3;
	background-image:
		radial-gradient(circle at 16% 70%, rgba(166, 124, 82, 0.12) 0 1px, transparent 1.5px),
		radial-gradient(circle at 84% 26%, rgba(110, 78, 58, 0.1) 0 1px, transparent 1.5px);
	background-size: 28px 28px, 36px 36px;
	background-position: 0 0, 12px 8px;
}

body.runnerp-single-product .qodef-page-title.runnerp-single-product-title .qodef-m-inner::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	z-index: 1;
	width: min(150px, 36vw);
	height: 2px;
	transform: translateX(-50%);
	background: linear-gradient(
		90deg,
		transparent 0%,
		var(--runnerp-cta-color, #A67C52) 50%,
		transparent 100%
	);
	opacity: 0.85;
}

body.runnerp-single-product .qodef-page-title.runnerp-single-product-title .qodef-m-content {
	position: relative;
	z-index: 2;
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100%;
	max-width: 760px;
	margin: 0 auto;
	padding: 48px 24px 44px !important;
	text-align: center !important;
	box-sizing: border-box;
	animation: runnerp-single-product-title-in 0.7s ease both;
}

/* Eyebrow — tekst dolazi iz inline CSS (brend ili “Proizvod”) */
body.runnerp-single-product .qodef-page-title.runnerp-single-product-title .qodef-m-content::before {
	content: "Proizvod";
	display: block;
	margin: 0 0 12px;
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.28em;
	line-height: 1;
	text-transform: uppercase;
	color: var(--runnerp-taupe-500, #A67C52);
}

body.runnerp-single-product .qodef-page-title.runnerp-single-product-title .qodef-m-title.entry-title {
	margin: 0 !important;
	padding: 0 !important;
	max-width: 22ch;
	font-family: "Cormorant Garamond", Georgia, serif !important;
	font-size: clamp(2.1rem, 4.5vw, 3.25rem) !important;
	font-weight: 600 !important;
	letter-spacing: 0.02em !important;
	line-height: 1.12 !important;
	text-transform: none !important;
	color: var(--runnerp-sienna-800, #4A3428) !important;
}

body.runnerp-single-product .qodef-page-title.runnerp-single-product-title .qodef-m-subtitle,
body.runnerp-single-product .qodef-page-title.runnerp-single-product-title .qodef-breadcrumbs {
	display: none !important;
}

/* Bez duplog naslova u summary bloku */
body.runnerp-single-product.single-product div.product .product_title,
body.runnerp-single-product.single-product div.product .qodef-woo-product-title.product_title {
	display: none !important;
}

/* Blagi prostor ispod title zone */
body.runnerp-single-product #qodef-page-inner {
	padding-top: 36px !important;
}

@media only screen and (max-width: 680px) {
	body.runnerp-single-product .qodef-page-title.runnerp-single-product-title .qodef-m-content {
		padding: 34px 20px 32px !important;
	}

	body.runnerp-single-product .qodef-page-title.runnerp-single-product-title .qodef-m-content::before {
		margin-bottom: 10px;
		font-size: 11px;
		letter-spacing: 0.22em;
	}

	body.runnerp-single-product .qodef-page-title.runnerp-single-product-title .qodef-m-title.entry-title {
		font-size: clamp(1.85rem, 8vw, 2.35rem) !important;
		max-width: 18ch;
	}

	body.runnerp-single-product #qodef-page-inner {
		padding-top: 24px !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.runnerp-single-product .qodef-page-title.runnerp-single-product-title .qodef-m-content {
		animation: none;
	}
}
