/* ====== Paleta & osnova ====== */
:root {
	--nav-h: 120px;
	--wood: #4b2e1d;
	--accent: #a0794c;
	--bg1: #f7f6f4;
	--bg2: #ffffff;
	--text: #333;
	--muted: #555;
	--shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
	--shadow-lg: 0 18px 46px rgba(0, 0, 0, 0.16);
}

html {
	scroll-behavior: smooth;
}
body {
	margin: 0;
	font-family: "Segoe UI", Tahoma, Verdana, sans-serif;
	color: var(--text);
	background: linear-gradient(180deg, var(--bg1) 0%, var(--bg2) 100%);
	line-height: 1.75;
}
body.lb-lock {
	overflow: hidden;
}

.vs-page {
	padding-top: var(--nav-h);
} /* gura ispod fiksne navigacije */

/* ====== HERO ====== */
.hero-section {
	background: #f4f1ee;
	text-align: center;
	padding: 72px 20px 56px;
	color: var(--wood);
	position: relative;
	box-shadow: inset 0 -10px 30px rgba(0, 0, 0, 0.08);
	margin: 0 auto 28px;
}
.hero-section h1 {
	margin: 0 0 14px;
	font-size: clamp(28px, 4vw, 44px);
	font-weight: 800;
	letter-spacing: 0.2px;
	text-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}
.hero-section p {
	max-width: 900px;
	margin: 0 auto 10px;
	color: #666;
	font-size: clamp(15px, 2.1vw, 18px);
}
.hero-section blockquote {
	max-width: 880px;
	margin: 10px auto 0;
	color: #777;
	font-style: italic;
	font-size: clamp(14px, 1.9vw, 16px);
}

/* ====== Sekcijske kutije ====== */
.seo-intro,
.tech-section,
.faq-section {
	max-width: 1100px;
	margin: 40px auto;
	background: #fff;
	border-radius: 16px;
	box-shadow: var(--shadow);
	padding: 26px 22px;
	color: var(--muted);
}
.seo-intro a,
.contact-info a {
	color: var(--accent);
	text-decoration: none;
	font-weight: 700;
}
.seo-intro a:hover,
.contact-info a:hover {
	filter: saturate(1.05);
	text-decoration: underline;
}

/* ====== USP GRID ====== */
.usp-grid {
	max-width: 1200px;
	margin: 40px auto 44px;
	display: grid;
	gap: 22px;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	padding: 0 16px;
}
.usp-card {
	background: #fff;
	border-radius: 16px;
	box-shadow: var(--shadow);
	padding: 24px 20px;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.usp-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--shadow-lg);
}
.usp-card h3 {
	margin: 0 0 8px;
	color: var(--wood);
	font-size: 1.15rem;
}
.usp-card p {
	margin: 0;
	color: #555;
	line-height: 1.7;
}

/* ====== Naslovi sekcija ====== */
.section-title {
	text-align: center;
	color: var(--wood);
	font-size: 1.8rem;
	margin: 52px auto 14px;
	position: relative;
	width: fit-content;
}
.section-title::after {
	content: "";
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	bottom: -10px;
	width: 88px;
	height: 4px;
	border-radius: 2px;
	background: var(--accent);
}

/* ====== GRID proizvoda ====== */
.product-grid {
	max-width: 1250px;
	margin: 24px auto 54px;
	padding: 0 16px;
	display: grid;
	gap: 22px;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.product-card {
	background: #fff;
	border-radius: 16px;
	box-shadow: var(--shadow);
	overflow: hidden;
	text-align: center;
	position: relative;
	display: flex;
	flex-direction: column;
	padding-bottom: 14px;
	text-decoration: none;
	color: inherit;
	transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.product-card:hover {
	transform: translateY(-8px);
	box-shadow: var(--shadow-lg);
}

/* ====== Slike u karticama (iOS repaint fix) ====== */
.image-wrapper {
	position: relative;
	overflow: hidden;
	cursor: zoom-in;
	background: #f1ede9;
	height: 220px; /* fiksna visina umesto aspect-ratio – pouzdanije na iOS */
	border-bottom: 1px solid #efe9e3;
}
.image-wrapper img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	object-position: center;
	transition: transform 0.45s ease;
	/* iOS/Safari nudge da odmah iscrta */
	-webkit-transform: translateZ(0);
	transform: translateZ(0);
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	will-change: transform;
	image-rendering: auto;
}
.product-card:hover .image-wrapper img {
	transform: scale(1.06);
}
.zoom-icon {
	position: absolute;
	right: 10px;
	bottom: 10px;
	font-size: 18px;
	color: #fff;
	background: rgba(0, 0, 0, 0.55);
	padding: 6px;
	border-radius: 50%;
	pointer-events: none;
	opacity: 0;
	transform: scale(0.9);
	transition: opacity 0.25s ease, transform 0.25s ease;
}
.image-wrapper:hover .zoom-icon {
	opacity: 1;
	transform: scale(1);
}

/* ====== Naslov, dimenzije, cena ====== */
.product-card h3 {
	margin: 14px 12px 6px;
	color: var(--wood);
	font-size: 1.05rem;
	font-weight: 800;
	letter-spacing: 0.2px;
}
.product-card h3::after {
	content: "";
	display: block;
	width: 52px;
	height: 3px;
	margin: 8px auto 0;
	background: linear-gradient(90deg, var(--accent), #cda67a);
	border-radius: 2px;
	opacity: 0.8;
}
.product-card .dim,
.product-card .dimenzija,
.product-card .size {
	margin: 2px 12px 6px;
	font-size: 14px;
	line-height: 1.5;
	color: #6a6a6a;
}
.product-card .price {
	margin: 0 12px 10px;
	font-size: 15.5px;
	font-weight: 800;
	color: var(--accent);
	background: #f7efe6;
	display: inline-block;
	align-self: center;
	padding: 6px 12px;
	border-radius: 999px;
	border: 1px solid #edd9c1;
	box-shadow: 0 6px 14px rgba(160, 121, 76, 0.08);
}

/* ====== Tehnička / FAQ / CTA ====== */
.tech-section h2,
.faq-section h2 {
	text-align: center;
	color: var(--wood);
	margin: 0 0 10px;
	font-size: 1.5rem;
	position: relative;
}
.tech-section h2::after {
	content: "";
	width: 64px;
	height: 4px;
	border-radius: 2px;
	background: var(--accent);
	display: block;
	margin: 10px auto 0;
}
.checklist {
	list-style: none;
	margin: 12px auto 0;
	max-width: 920px;
	padding-left: 0;
}
.checklist li {
	margin: 10px 0;
	color: #555;
	line-height: 1.7;
	padding-left: 26px;
	position: relative;
}
.checklist li::before {
	content: "✔";
	position: absolute;
	left: 0;
	color: var(--wood);
	font-weight: 800;
}

.faq-section details {
	border: 1px solid #eee2d7;
	border-radius: 12px;
	background: #fff;
	padding: 12px 14px;
	margin: 12px 0;
	transition: box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.faq-section details:hover {
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}
.faq-section details[open] {
	background: #fdfaf7;
	border-color: #e8d7c4;
}
.faq-section summary {
	list-style: none;
	cursor: pointer;
	font-weight: 800;
	color: var(--wood);
	display: flex;
	align-items: center;
	gap: 10px;
	outline: none;
}
.faq-section summary::-webkit-details-marker {
	display: none;
}
.faq-section summary::before {
	content: "+";
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 6px;
	background: var(--wood);
	color: #fff;
	font-weight: 800;
	flex: 0 0 22px;
	transform: translateY(-1px);
}
.faq-section details[open] summary::before {
	content: "–";
}
.faq-section details p {
	margin: 8px 2px 2px 32px;
	color: #555;
	line-height: 1.7;
}

.contact-info {
	text-align: center;
	margin: 26px auto 60px;
	font-size: 16px;
	color: #0a0a0a;
	font-weight: 800;
}

/* ====== Lightbox ====== */
.lightbox {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.88);
	z-index: 9999;
	padding: 24px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease;
}
.lightbox.open {
	opacity: 1;
	pointer-events: auto;
}
.lightbox img {
	max-width: 92vw;
	max-height: 88vh;
	border-radius: 12px;
	box-shadow: 0 0 30px rgba(255, 255, 255, 0.25);
}
.lb-close {
	position: absolute;
	top: 18px;
	right: 22px;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 30px;
	cursor: pointer;
	line-height: 1;
	transition: transform 0.2s ease, color 0.2s ease;
}
.lb-close:hover {
	transform: scale(1.08);
	color: #ddd;
}

/* ====== Animacije minimal ====== */
@media (prefers-reduced-motion: no-preference) {
	.anim-fade-up {
		opacity: 0;
		transform: translateY(18px);
		transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.6s;
		transition-delay: var(--delay, 0s);
	}
	.anim-fade-in {
		opacity: 0;
		transition: opacity 0.6s ease;
		transition-delay: var(--delay, 0s);
	}
	.anim-zoom-in {
		opacity: 0;
		transform: scale(0.96);
		transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.55s;
		transition-delay: var(--delay, 0s);
	}
	.in-view.anim-fade-up,
	.in-view.anim-fade-in,
	.in-view.anim-zoom-in {
		opacity: 1;
		transform: none;
	}
	.headline-reveal {
		position: relative;
		display: inline-block;
	}
	.headline-reveal::after {
		content: "";
		position: absolute;
		left: 50%;
		bottom: -12px;
		height: 3px;
		width: 0;
		transform: translateX(-50%);
		background: linear-gradient(45deg, var(--wood), var(--accent));
		border-radius: 2px;
		transition: width 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
	}
	.in-view.headline-reveal::after {
		width: 86%;
	}
}

/* ====== Responsive ====== */
@media (min-width: 1200px) {
	.hero-section h1 {
		font-size: 2.7rem;
	}
	.hero-section p {
		font-size: 1.1rem;
	}
}
@media (max-width: 1024px) {
	:root {
		--nav-h: 110px;
	}
	.hero-section {
		padding: 64px 16px 48px;
	}
	.hero-section h1 {
		font-size: 2.2rem;
	}
}
@media (max-width: 768px) {
	:root {
		--nav-h: 100px;
	}
	.hero-section {
		padding: 56px 14px 40px;
	}
	.hero-section h1 {
		font-size: 2rem;
	}
	.seo-intro,
	.tech-section,
	.faq-section {
		padding: 20px 16px;
		border-radius: 14px;
	}
	.product-grid {
		gap: 16px;
	}
	.product-card h3 {
		font-size: 1rem;
	}
	.zoom-icon {
		font-size: 16px;
		padding: 5px;
	}
	.image-wrapper {
		height: 200px;
	}
}
@media (max-width: 480px) {
	:root {
		--nav-h: 96px;
	}
	.hero-section {
		padding: 52px 12px 34px;
	}
	.hero-section h1 {
		font-size: 1.8rem;
	}
	.section-title {
		font-size: 1.5rem;
	}
	.product-grid {
		grid-template-columns: 1fr;
	}
	.image-wrapper {
		height: 190px;
	}
}
