/* ==========================================================================
   INDEX VM — global styles (1:1 remake of the Divi build)
   ========================================================================== */

/* Self-hosted Open Sans; Latin-ext includes Serbian Latin characters. */
@font-face {
	font-family: 'Open Sans'; font-style: normal; font-weight: 300 800; font-display: swap;
	src: url('../fonts/open-sans-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Open Sans'; font-style: normal; font-weight: 300 800; font-display: swap;
	src: url('../fonts/open-sans-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Open Sans'; font-style: italic; font-weight: 300 800; font-display: swap;
	src: url('../fonts/open-sans-latin-ext-italic.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Open Sans'; font-style: italic; font-weight: 300 800; font-display: swap;
	src: url('../fonts/open-sans-latin-italic.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	/* Brand accent — single source of truth. Change these two and every yellow
	   on the site follows, including the semi-transparent variants. */
	--idx-yellow: #ffcc00;
	--idx-yellow-rgb: 255, 204, 0;

	--idx-black: #000000;
	--idx-dark: #161616;
	--idx-brown: #32281B;
	--idx-cream: #F8F4F1;
	--idx-gray: #757575;
	--idx-body: #666666;
	--idx-white: #FFFFFF;
	--idx-heading-font: 'Open Sans', Helvetica, Arial, sans-serif;
	--idx-body-font: 'Open Sans', sans-serif;
	--idx-container: 85%;
	--idx-container-max: 1440px;
	--idx-radius: 10px;
	--idx-type-h1: clamp(34px, 4.1vw, 56px);
	--idx-type-h2: clamp(28px, 3.2vw, 44px);
	--idx-type-h3: clamp(20px, 2vw, 24px);
	--idx-type-h4: clamp(18px, 1.6vw, 20px);
	--idx-type-body: clamp(14px, 1.1vw, 17px);
}

/* --------------------------------------------------------------------------
   Reset / base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Scaled CTA banner may exceed the viewport width — never show a horizontal scrollbar */
html, body { overflow-x: hidden; }

body {
	margin: 0;
	font-family: var(--idx-body-font);
	/* Theme base font-size is 14px — em-based hero sizes resolve against it
	   (page-hero h1 = 4em = 56px). */
	font-size: 14px;
	line-height: 1.7;
	font-weight: 500;
	color: var(--idx-body);
	background: var(--idx-white);
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

/* Headings are weight 500; bold parts are explicit <strong> (700) in content */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--idx-heading-font);
	color: #000;
	line-height: 1.15;
	margin: 0 0 20px;
	font-weight: 500;
}

h1 strong, h2 strong, h3 strong, h4 strong { font-weight: 700; }

h1 { font-size: var(--idx-type-h1); }
h2 { font-size: var(--idx-type-h2); }
h3 { font-size: var(--idx-type-h3); margin-bottom: 10px; }
h4 { font-size: var(--idx-type-h4); }
h5, h6 { font-size: clamp(16px, 1.3vw, 18px); }

/* Large visual section titles that were intentionally fluid in the original
   design. Kept as a named component instead of an inline heading override. */
.idx-display-5vw {
	font-size: 5vw;
	line-height: 1.05;
	letter-spacing: -2px;
}

/* The 14px base drives em-derived hero headings; body copy runs at 16px
   in the body grey (#666). Headings stay #000. */
p {
	margin: 0 0 1em;
	font-size: var(--idx-type-body);
	line-height: 1.65;
	color: #555555;
}

.idx-specs li { font-size: 16px; }

/* Footer copy keeps its own light-on-dark scale */
.idx-footer p { font-size: 15px; color: rgba(255, 255, 255, .82); }

/* Divi resets link underlines globally; match that so styled links keep their
   own affordance (bottom border, arrow) instead of a default underline. */
a { color: inherit; text-decoration: none; }

.idx-legal-box a,
.idx-faq__body a { text-decoration: underline; }

.idx-container {
	width: var(--idx-container);
	max-width: var(--idx-container-max);
	margin-left: auto;
	margin-right: auto;
}

.idx-arrow { display: inline-block; transition: transform .25s ease; }
a:hover .idx-arrow { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.idx-btn,
.wp-block-button__link.idx-btn-yellow,
.idx-btn-yellow .wp-block-button__link {
	display: inline-block;
	background: var(--idx-yellow);
	color: #000;
	font-family: var(--idx-body-font);
	font-weight: 600;
	font-size: 16px;
	line-height: 1.4;
	padding: 12px 43px 12px 30px;
	border-radius: var(--idx-radius);
	text-decoration: none;
	border: 1px solid var(--idx-yellow);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	transition: color 300ms ease, background-color 300ms ease, border-color 300ms ease;
	cursor: pointer;
}

/* Hover: yellow text on translucent black (verified against the live Divi build) */
.idx-btn:hover,
.idx-btn-yellow .wp-block-button__link:hover {
	background: rgba(0, 0, 0, .6);
	border-color: var(--idx-yellow);
	color: var(--idx-yellow);
}

/* Larger variant used for the "Poslovna saradnja" style buttons */
.idx-btn--lg { font-size: 18px; padding: 10px 45px 10px 20px; }

/* Semi-transparent dark button with yellow text (hero contact buttons) */
.idx-btn--dark {
	background: rgba(0, 0, 0, .6);
	border-color: transparent;
	color: var(--idx-yellow);
}

.idx-btn--dark:hover {
	background: var(--idx-yellow);
	border-color: var(--idx-yellow);
	color: #000;
}

/* Hero action row: one primary CTA, followed by secondary contact options. */
.idx-hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }

/* Primary hero CTA */
.idx-btn--cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(0, 0, 0, 0.7);
	border: 1px solid var(--idx-yellow);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	border-radius: 10px;
	color: var(--idx-yellow);
	font-weight: 600;
	font-size: 16px;
	padding: 10px 18px;
	text-decoration: none;
	transition: background .25s ease, color .25s ease;
}

.idx-btn--cta:hover { background: var(--idx-yellow); color: #000; }
.idx-btn--cta .idx-ic,
.idx-phone-link .idx-ic { background: currentColor; }

/* Phone is a quiet secondary action: white text over a blurred glass surface. */
.idx-phone-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.24);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	border-radius: 10px;
	color: #fff;
	font-weight: 600;
	font-size: 16px;
	padding: 10px 18px;
	text-decoration: none;
	cursor: pointer;
	transition: background .25s ease, border-color .25s ease;
}
.idx-phone-link:hover { background: rgba(255, 255, 255, 0.18); border-color: rgba(255, 255, 255, 0.5); color: #fff; }

/* Desktop shows the phone number as contact information; phones can tap to call. */
@media (min-width: 768px) {
	.idx-phone-link { pointer-events: none; cursor: default; }
}
.idx-btn--cta.idx-location-map-link::after {
	content: "→";
	display: inline-block;
	margin-left: 4px;
	transition: transform .25s ease;
}
.idx-btn--cta.idx-location-map-link:hover::after { transform: translateX(4px); }

@media (max-width: 767px) {
	/* Hero buttons stay on one row, each sized to its content */
	.idx-hero-actions { flex-wrap: nowrap; gap: 10px; justify-content: flex-start; }
	/* Kontakt: text stays up, push the action buttons down toward the product */
	.idx-page-hero--kontakt .idx-hero-actions { margin-top: 260px !important; }
	/* Preuzimanja: hide the long intro on phones but preserve the vertical gap
	   before the CTA row, like Kontakt and Moddus. */
	.idx-page-hero--preuzimanja .idx-blur-box { display: none; }
	.idx-page-hero--preuzimanja .idx-hero-actions { margin-top: 320px !important; }

	/* Moddus: hide the copy blur box entirely; the breadcrumbs' bottom margin
	   keeps the space between the top content and the buttons (like Kontakt). */
	.idx-page-hero--moddus .idx-blur-box { display: none; }
	/* Tighten the gap between the buttons and the availability badge. */
	.idx-page-hero--moddus .idx-hero-badge { margin-top: 14px; }
	.idx-hero-actions > .idx-btn--cta,
	.idx-hero-actions > .idx-phone-link {
		flex: 0 1 auto;
		min-width: 0;
		justify-content: center;
		font-size: 14px;
		padding: 11px 14px;
		white-space: nowrap;
	}
}

/* Inline mask icons reusing the footer contact glyphs */
.idx-ic {
	width: 16px;
	height: 16px;
	min-width: 16px;
	display: inline-block;
	-webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
	-webkit-mask-position: center; mask-position: center;
	-webkit-mask-size: contain; mask-size: contain;
}

.idx-ic-email {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
}

.idx-ic-phone {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.15 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1C10.61 21 3 13.39 3 4c0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.24.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.15 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1C10.61 21 3 13.39 3 4c0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.24.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E");
}

/* Translucent yellow frame behind the MODDUS logo in the hero */
.idx-logo-frame {
	background: rgba(var(--idx-yellow-rgb), .2);
	backdrop-filter: blur(15px);
	-webkit-backdrop-filter: blur(15px);
	border-radius: 8px;
	display: inline-block;
	padding: 10px 9px;
	margin: 0 0 20px;
}

.idx-logo-frame img { width: 220px; display: block; }

/* Hero availability badge (Moddus) — exact live values:
   yellow 60% bg, radius 20px, padding 20px, margin-top 15px, right-aligned dark text */
.idx-hero-badge {
	background: rgba(var(--idx-yellow-rgb), .6);
	border-radius: 20px;
	overflow: hidden;
	padding: 20px;
	margin-top: 15px;
	color: #000;
	text-align: right;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	word-wrap: break-word;
	/* text is an h4 on the live build: 2.3vw / 59px / 25px.
	   clamp caps it so "Dostupno za poručivanje" stays on one line (2 rows total). */
	font-size: clamp(20px, 2.3vw, 30px);
	letter-spacing: -2px;
	line-height: 1.2em;
	font-family: var(--idx-heading-font);
	font-weight: 500;
}

@media (max-width: 980px) {
	.idx-hero-badge { font-size: 59px; }
}

@media (max-width: 767px) {
	.idx-hero-badge { font-size: 25px; }
}

.idx-btn--outline,
.idx-btn-ghost .wp-block-button__link {
	background: transparent;
	color: var(--idx-yellow);
	border: 1px solid var(--idx-yellow);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.idx-btn--outline:hover,
.idx-btn-ghost .wp-block-button__link:hover {
	background: var(--idx-yellow);
	color: #000;
}

.idx-btn-ghost .wp-block-button__link { border-radius: var(--idx-radius); padding: 12px 28px; }

/* Text-link style with arrow (yellow) */
.idx-link-yellow a, a.idx-link-yellow { color: var(--idx-yellow); text-decoration: none; font-weight: 600; }
.idx-link-black a, a.idx-link-black { color: #000; text-decoration: none; font-weight: 600; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.idx-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 999;
	background: transparent;
	border-top: 8px solid var(--idx-yellow);
	padding: 5px 0;
	transition: background-color 300ms ease, box-shadow 300ms ease;
}

/* WP admin bar offset so the fixed header is not covered */
body.admin-bar .idx-header { top: 32px; }

@media screen and (max-width: 782px) {
	body.admin-bar .idx-header { top: 46px; }
}

.idx-header.is-stuck {
	background: #000;
	box-shadow: 0 4px 20px rgba(0,0,0,.35);
}

.idx-header__inner {
	display: flex;
	align-items: center;
	gap: 30px;
	position: relative;
}

.idx-header__logo img { width: 150px; height: auto; display: block; }

@media (min-width: 1350px) {
	.idx-header__logo img { width: 220px; }
}

.idx-nav { margin-left: auto; }

/* Polylang switcher: compact language code at the end of the desktop nav. */
.idx-lang-switcher {
	display: flex;
	align-items: center;
	margin-left: 2px;
	flex: 0 0 auto;
}

.idx-lang-switcher ul {
	display: flex;
	align-items: center;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.idx-lang-switcher a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	min-height: 34px;
	padding: 4px 8px;
	border: 1px solid var(--idx-yellow);
	border-radius: 8px;
	color: var(--idx-yellow);
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color .2s ease, color .2s ease;
}

.idx-lang-switcher a:hover,
.idx-lang-switcher a:focus-visible {
	background: var(--idx-yellow);
	color: #000;
}

.idx-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 30px;
}

.idx-nav__list > li { position: relative; }

.idx-nav__list > li > a {
	color: #fff;
	text-decoration: none;
	font-size: clamp(15px, 1.1vw, 17px);
	font-weight: 500;
	padding: 24px 0 22px;
	display: inline-block;
	position: relative;
	transition: color .2s ease;
}

/* Current page + hover: thin yellow underline hugging the text.
   Animated — slides up from below (.3s ease-in-out like the live build).
   Bound to li:hover so it survives while the cursor is inside the mega panel. */
.idx-nav__list > li > a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 17px;
	height: 1px;
	background: var(--idx-yellow);
	opacity: 0;
	transform: translateY(6px);
	transition: opacity .3s ease-in-out, transform .3s ease-in-out;
}

.idx-nav__list > li:hover > a::after,
.idx-nav__list > li.current > a::after {
	opacity: 1;
	transform: translateY(0);
}

.idx-nav__cta a::after { display: none; }

/* Header CTA — live: dipi-cta-button (dark translucent bg, 1px gold border).
   Selector matches the nav link specificity so the yellow text isn't overridden. */
.idx-nav__list > li.idx-nav__cta > a {
	padding: 7px 15px !important;
	font-size: 16px;
	font-weight: 600;
	background: rgba(0, 0, 0, 0.6);
	border: 1px solid var(--idx-yellow);
	border-radius: 10px;
	color: var(--idx-yellow);
	text-decoration: none !important;
}

.idx-nav__list > li.idx-nav__cta > a:hover {
	background: var(--idx-yellow);
	color: #000;
}

.idx-nav-toggle { display: none; }

/* Mega menu */
.idx-nav__has-mega { position: static; }

.idx-mega {
	position: absolute;
	left: 50%;
	transform: translateX(-50%) translateY(10px);
	top: 100%;
	width: min(1200px, 92vw);
	background: rgba(10, 10, 10, .65);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border: 1px solid rgba(var(--idx-yellow-rgb), .25);
	border-radius: 14px;
	/* Divi Pixel balloon uses 1px padding — cards sit edge-to-edge in the panel */
	padding: 2px;
	opacity: 0;
	visibility: hidden;
	transition: all .25s ease;
	box-shadow: 0 30px 60px rgba(0,0,0,.55), 0 0 40px rgba(var(--idx-yellow-rgb),.25);
}

/* White caret centered on top of the dropdown panel */
.idx-mega::before {
	content: "";
	position: absolute;
	top: -9px;
	left: 50%;
	transform: translateX(-50%);
	border-left: 10px solid transparent;
	border-right: 10px solid transparent;
	border-bottom: 9px solid #fff;
}

.idx-nav__has-mega:hover .idx-mega,
.idx-nav__has-mega:focus-within .idx-mega {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
}

.idx-avail-badge {
	display: inline-block;
	background: var(--idx-yellow);
	color: #000;
	font-size: 12px;
	font-weight: 700;
	border-radius: 8px;
	padding: 8px 12px;
	margin-top: 8px;
	line-height: 1.35;
}

/* --------------------------------------------------------------------------
   Mega menu product cards (original code-module markup: .idx-products-menu-wrapper)
   -------------------------------------------------------------------------- */
/* Availability badge inside product cards — solid yellow bg, black text */
.idx-card .idx-avail-badge {
	width: 100%;
	background: var(--idx-yellow);
	border-radius: 10px;
	padding: 10px 18px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	color: #000;
	text-align: left;
	letter-spacing: .01em;
	box-sizing: border-box;
	margin-top: 0;
}

/* Inside the mega-menu dropdown the card is smaller: shrink the badge and pull
   it up toward the title (the description sits over a light part of the image) */
.idx-mega .idx-card .idx-card-desc { margin-bottom: 8px !important; }
.idx-mega .idx-card .idx-avail-badge {
	font-size: 12.5px !important;
	padding: 8px 12px !important;
	line-height: 1.25 !important;
	border-radius: 8px !important;
}

/* Desktop dropdown only: the badge is taller than the "Pogledaj proizvode" link,
   which pushes the title/description up. Pull the badge up so the description sits
   close to it and aligns horizontally with the other cards. (Mobile pills excluded.) */
@media (min-width: 861px) {
	.idx-mega .idx-card .idx-avail-badge { margin-top: -12px !important; }
}

/* Home product row: MODDUS has a taller availability badge, so align its
   title and description with the standard CTA links in the other cards. */
@media (min-width: 1451px) {
	.idx-products-menu-wrapper:not(.idx-mega) a.idx-card:first-child .idx-card-title,
	.idx-products-menu-wrapper:not(.idx-mega) a.idx-card:first-child .idx-card-desc {
		transform: translateY(22px);
	}

	.idx-products-menu-wrapper:not(.idx-mega) a.idx-card:not(:first-child) .idx-card-title,
	.idx-products-menu-wrapper:not(.idx-mega) a.idx-card:not(:first-child) .idx-card-desc,
	.idx-products-menu-wrapper:not(.idx-mega) a.idx-card:not(:first-child) .idx-card-link {
		transform: translateY(-7px);
	}

	.idx-mega .idx-products-menu-wrapper a.idx-card:first-child .idx-card-title,
	.idx-mega .idx-products-menu-wrapper a.idx-card:first-child .idx-card-desc {
		transform: translateY(0);
	}

	.idx-mega .idx-products-menu-wrapper a.idx-card:first-child .idx-avail-badge {
		font-size: 14.5px !important;
	}
}

.idx-card-link br { display: none; }

.idx-card-link {
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
	width: 80%;
	padding-bottom: 5px;
	color: #000;
	font-weight: 600;
	font-size: 16px;
	border-bottom: 1px solid rgba(241, 168, 10, .2);
	transition: color .3s ease, border-color .3s ease;
	text-decoration: none;
}
/* On dark surfaces (blur box, CTA banner) the link stays white */
.idx-blur-box .idx-card-link,
.idx-cta-banner .idx-card-link { color: #fff; }

/* Standalone version used in body copy (Divi capped these text modules at 300px) */
.idx-card-link--narrow { max-width: 300px; }

.idx-card-link .idx-arrow { transition: transform .3s ease; }
.idx-card-link:hover { border-bottom-color: var(--idx-yellow); }
.idx-card-link:hover .idx-arrow { transform: translateX(5px); }

.idx-product-card:hover .idx-card-link { color: var(--idx-yellow); border-bottom-color: var(--idx-yellow); }
.idx-product-card:hover .idx-arrow { transform: translateX(5px); }

@media (max-width: 767px) {
	.idx-card-link-m .idx-card-link { width: 100% !important; }
	.idx-card-link-m {
		margin-left: auto !important;
		margin-right: auto !important;
		justify-content: space-between !important;
		width: 200px !important;
		text-align: center;
		font-size: 14px !important;
	}
}

#poslovna-saradnja,
#kontakt-info { scroll-margin-top: 90px; }
.idx-mobile-break { display: none; }

.idx-products-menu-wrapper { 
	/* Brand golds used across the mega-menu product cards (matches original Divi build) */
	--idx-gold: #f1a80a;
	--idx-gold-light: #ffc23d;
	--idx-text-light: #ffffff;
	--idx-text-muted: rgba(255, 255, 255, 0.7);
	--idx-border-gold: rgba(241, 168, 10, 0.3);
	width: 100% !important;
	box-sizing: border-box !important;
}

.idx-products-menu-wrapper .idx-products-grid {
	display: flex !important;
	gap: 6px !important;
	width: 100% !important;
	align-items: stretch !important;
	box-sizing: border-box !important;
}

.idx-products-menu-wrapper a.idx-card {
	flex: 1 !important;
	min-width: 0 !important;
	aspect-ratio: 9 / 12.8 !important;
	background: #000000 !important;
	border: 1px solid var(--idx-border-gold) !important;
	border-radius: 12px !important;
	box-shadow: 0 0 30px rgba(241, 168, 10, 0.3) !important;
	overflow: hidden !important;
	display: flex !important;
	flex-direction: column !important;
	position: relative !important;
	text-decoration: none !important;
	color: inherit !important;
	transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
		box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
		border-color 0.3s ease;
	box-sizing: border-box !important;
}

.idx-products-menu-wrapper a.idx-card:hover {
	box-shadow: 0 0 40px rgba(241, 168, 10, 0.6) !important;
	border-color: var(--idx-gold) !important;
	background: #000000 !important;
	opacity: 1 !important;
}

/* Current product (you are on its page): the mega card keeps the hover look. */
.idx-products-menu-wrapper a.idx-card.is-current {
	box-shadow: 0 0 40px rgba(241, 168, 10, 0.6) !important;
	border-color: var(--idx-gold) !important;
	background: #000000 !important;
	opacity: 1 !important;
}
.idx-products-menu-wrapper a.idx-card.is-current .idx-card-img { transform: scale(1.05) !important; opacity: 1 !important; }
.idx-products-menu-wrapper a.idx-card.is-current .idx-card-link { color: var(--idx-gold-light) !important; }

.idx-products-menu-wrapper a.idx-card .et_overlay,
.idx-products-menu-wrapper a.idx-card:hover .et_overlay {
	display: none !important;
	opacity: 0 !important;
	visibility: hidden !important;
}

.idx-products-menu-wrapper a.idx-card:hover .idx-card-img-wrap,
.idx-products-menu-wrapper a.idx-card:hover .idx-card-img { opacity: 1 !important; }

.idx-products-menu-wrapper a.idx-card .idx-card-img-wrap {
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	overflow: hidden !important;
	z-index: 1 !important;
}

.idx-products-menu-wrapper a.idx-card .idx-card-img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	transition: transform 0.5s ease !important;
	display: block !important;
}

.idx-products-menu-wrapper a.idx-card .idx-card-img-wrap::after {
	content: "" !important;
	position: absolute !important;
	inset: 0 !important;
	background: linear-gradient(to top,
		rgba(0, 0, 0, 0.95) 0%,
		rgba(0, 0, 0, 0.85) 18%,
		rgba(0, 0, 0, 0.35) 35%,
		transparent 50%) !important;
	z-index: 2 !important;
}

.idx-products-menu-wrapper a.idx-card:hover .idx-card-img { transform: scale(1.05) !important; }

.idx-products-menu-wrapper a.idx-card .idx-card-body {
	position: absolute !important;
	bottom: 0 !important;
	left: 0 !important;
	right: 0 !important;
	padding: 52px 24px 24px 24px !important;
	z-index: 3 !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-start !important;
	text-align: left !important;
	box-sizing: border-box !important;
}

.idx-products-menu-wrapper a.idx-card .idx-card-title,
.idx-products-menu-wrapper a.idx-card .idx-card-desc { text-align: left !important; }

.idx-products-menu-wrapper a.idx-card .idx-card-title {
	font-size: 20px !important;
	font-weight: 700 !important;
	color: var(--idx-text-light) !important;
	text-transform: uppercase !important;
	margin: 0 0 8px 0 !important;
	letter-spacing: 0.01em !important;
	line-height: 1.25 !important;
	display: block !important;
	width: 100% !important;
}

.idx-products-menu-wrapper a.idx-card .idx-card-desc {
	font-size: 13px !important;
	color: var(--idx-text-muted) !important;
	line-height: 1.5 !important;
	margin: 0 0 20px 0 !important;
	height: 38px !important;
	overflow: hidden !important;
	display: block !important;
	width: 100% !important;
	box-sizing: border-box !important;
}

.idx-products-menu-wrapper a.idx-card .idx-card-link {
	font-size: 13px !important;
	font-weight: 600 !important;
	color: var(--idx-gold) !important;
	display: flex !important;
	justify-content: space-between !important;
	align-items: center !important;
	width: 100% !important;
	padding-bottom: 12px !important;
	border-bottom: 1px solid var(--idx-border-gold) !important;
	transition: color 0.3s, border-color 0.3s;
	box-sizing: border-box !important;
}

.idx-products-menu-wrapper a.idx-card .idx-card-link svg {
	transition: transform 0.3s ease !important;
	stroke: var(--idx-gold) !important;
}

.idx-products-menu-wrapper a.idx-card:hover .idx-card-link {
	color: var(--idx-gold-light) !important;
	border-color: var(--idx-gold) !important;
}

.idx-products-menu-wrapper a.idx-card:hover .idx-card-link svg {
	transform: translateX(5px) !important;
	stroke: var(--idx-gold-light) !important;
}

/* ≤860px is the mobile overlay (single-column pills override these anyway).
   861px and up keeps the compact single-row cards — see the range block below. */
@media (max-width: 860px) {
	.idx-products-menu-wrapper .idx-products-grid {
		flex-wrap: wrap !important;
		gap: 16px !important;
	}
	.idx-products-menu-wrapper a.idx-card {
		flex: 1 1 calc(50% - 8px) !important;
		min-width: calc(50% - 8px) !important;
		aspect-ratio: 9 / 11.2 !important;
	}
}

@media (max-width: 600px) {
	.idx-products-menu-wrapper .idx-products-grid {
		flex-direction: column !important;
	}
	.idx-products-menu-wrapper a.idx-card {
		flex: 1 1 100% !important;
		min-width: 100% !important;
		aspect-ratio: 6 / 11.2 !important;
	}
	.idx-products-menu-wrapper a.idx-card .idx-card-desc {
		height: auto !important;
	}
}

/* Compact single-row cards for the MEGA DROPDOWN on smaller desktops, down to the
   tablet breakdown (861px). Scoped to .idx-mega so the standalone home-page product
   section (same markup) keeps its full-width, taller cards. */
@media (min-width: 861px) and (max-width: 1450px) {
	/* .idx-mega is this theme's equivalent of the Divi Pixel .dp-balloon-content wrapper */
	.idx-mega {
		max-width: 1000px !important;
		margin: 0 auto !important;
		padding: 2px !important;
	}

	html body .idx-mega .idx-products-menu-wrapper .idx-products-grid { gap: 4px !important; }

	html body .idx-mega .idx-products-menu-wrapper a.idx-card { aspect-ratio: 9 / 11 !important; }

	html body .idx-mega .idx-products-menu-wrapper a.idx-card .idx-card-body { padding: 24px 14px 14px !important; }

	html body .idx-mega .idx-products-menu-wrapper a.idx-card .idx-card-title {
		font-size: 15px !important;
		line-height: 1.15 !important;
		margin-bottom: 5px !important;
	}

	html body .idx-mega .idx-products-menu-wrapper a.idx-card .idx-card-desc {
		font-size: 11px !important;
		line-height: 1.35 !important;
		height: 30px !important;
		margin-bottom: 10px !important;
	}

	html body .idx-mega .idx-products-menu-wrapper a.idx-card .idx-card-link {
		font-size: 11px !important;
		padding-bottom: 8px !important;
	}
}

@media (max-width: 600px) {
	html body .idx-products-menu-wrapper .idx-products-grid {
		display: flex !important;
		flex-direction: row !important;
		flex-wrap: wrap !important;
		gap: 10px !important;
		align-items: stretch !important;
	}

	html body .idx-products-menu-wrapper a.idx-card {
		flex: 1 1 calc(50% - 5px) !important;
		min-width: calc(50% - 5px) !important;
		max-width: calc(50% - 5px) !important;
		aspect-ratio: 9 / 15.4 !important;
	}

	html body .idx-products-menu-wrapper a.idx-card .idx-card-img-wrap::after {
		background: linear-gradient(to top,
			rgba(0, 0, 0, 0.95) 0%,
			rgba(0, 0, 0, 0.85) 30%,
			rgba(0, 0, 0, 0.35) 48%,
			transparent 55%) !important;
	}

	html body .idx-products-menu-wrapper a.idx-card .idx-card-body { padding: 40px 14px 16px !important; }

	html body .idx-products-menu-wrapper a.idx-card .idx-card-title {
		font-size: 20px !important;
		line-height: 1.2 !important;
		min-height: 48px !important;
		display: flex !important;
		align-items: flex-end !important;
		margin-bottom: 8px !important;
	}

	html body .idx-products-menu-wrapper a.idx-card .idx-card-desc {
		font-size: 13px !important;
		line-height: 1.4 !important;
		height: 40px !important;
		margin-bottom: 0 !important;
	}

	html body .idx-products-menu-wrapper a.idx-card .idx-card-link {
		font-size: 15px !important;
		padding-bottom: 10px !important;
	}

	html body .idx-products-menu-wrapper a.idx-card .idx-card-link svg {
		width: 16px !important;
		height: 16px !important;
	}
}

/* Reusable hover FX (originalne idx-gradient-overlay / idx-zoom klase) */
.idx-gradient-overlay { position: relative !important; }

.idx-zoom { position: relative !important; overflow: hidden !important; }
.idx-zoom img { transition: transform 0.6s ease !important; will-change: transform; }
.idx-zoom:hover img { transform: scale(1.08) !important; }

.idx-zoom::before {
	content: "";
	position: absolute;
	inset: 0;
	background: inherit;
	background-size: cover;
	background-position: center;
	transition: transform 0.6s ease;
	z-index: 0;
	pointer-events: none;
}
.idx-zoom:hover::before { transform: scale(1.08); }

.idx-gradient-overlay > *,
.idx-zoom > * { position: relative; z-index: 2; }

/* --------------------------------------------------------------------------
   Hero (front + product pages)
   -------------------------------------------------------------------------- */
.idx-hero {
	position: relative;
	color: #fff;
	padding: 180px 0 50px;
	background-size: cover;
	background-position: center;
	background-color: #1a1a1a;
	isolation: isolate;
}

/* Gradient overlays the image (Divi: "gradient overlays image" = on) */
.idx-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(100deg, rgba(0,0,0,0.5) 46%, rgba(0,0,0,0.05) 64%);
}

.idx-hero > .idx-container { position: relative; z-index: 1; }

/* Home hero — art-directed: separate image for phones, own gradient angle.
   Images live here rather than inline so both breakpoints can be served. */
.idx-hero--home {
	background-image: url("../../../../uploads/2026/07/INDEX-VM-razvija-i-proizvodi-elektroinstalaciona-resenja-koja-objedinjuju-funkcionalnost-pouzdanost-i-uskladjen-dizajn-za-stambene-poslovne-i-komercijalne-prost-h.jpg");
}

@media (max-width: 980px) {
	.idx-hero { padding: 200px 0 50px; }
	.idx-hero--home { background-position: left 22% bottom 0%; }
}

@media (max-width: 767px) {
	.idx-hero { padding: 120px 0 10px; }

	.idx-hero--home {
		background-image: url("../../../../uploads/2026/04/INDEX-VM-razvija-i-proizvodi-elektroinstalaciona-resenja-koja-objedinjuju-funkcionalnost-pouzdanost-i-uskladjen-dizajn-za-stambene-poslovne-i-komercijalne-prost-m.jpg");
		background-position: left 22% bottom 0%;
	}

	.idx-hero--home::before {
		background: linear-gradient(113deg, rgba(0,0,0,0.5) 59%, rgba(0,0,0,0.05) 70%);
	}
}

.idx-hero .idx-eyebrow { color: var(--idx-yellow); }

.idx-hero .idx-hero__accent { color: var(--idx-yellow); }

/* Values below mirror the live Divi build's computed CSS */
.idx-hero h1 {
	color: #fff;
	font-size: clamp(42px, 5.3vw, 56px); /* desktop caps at 4em (56px) */
	letter-spacing: -3px;
	line-height: 1.1em;
	text-shadow: 0.08em 0.08em 0.08em rgba(0,0,0,0.4);
	max-width: 600px;
	margin-bottom: 10px;
}

/* Large desktop: match the Home reference hero token (5em = 70px at the
   theme's 14px base). Smaller desktop, tablet and mobile keep their fluid sizes. */
@media (min-width: 1350px) {
	.idx-hero h1 { font-size: 5em; }
	.idx-onama-generation-title { max-width: 680px !important; }
}

.idx-hero__lead {
	color: #fff;
	font-size: 16px;
	max-width: 540px;
	text-shadow: 0.08em 0.08em 0.08em rgba(0,0,0,0.4);
	margin: 0 0 30px 2px;
}

.idx-hero__cta { margin-bottom: 70px; }

.idx-hero__stat {
	margin: 0;
	border-left: 1px solid var(--idx-yellow);
	padding-left: 15px;
}

@media (max-width: 980px) {
	.idx-hero h1 { letter-spacing: -2px; }
}

@media (max-width: 767px) {
	.idx-hero h1 { font-size: 40px; letter-spacing: -2px; margin-bottom: 240px; }
	.idx-hero .idx-eyebrow { letter-spacing: 0.5px; margin-bottom: 15px; }
	/* Divi hides the intro paragraph on phones to keep the hero compact */
	.idx-hero__lead { display: none; }
}

/* Eyebrow above the main heading — regular weight on the live build */
.idx-eyebrow {
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 2px;
	text-transform: uppercase;
	margin-bottom: 25px;
}

.idx-stat-num {
	font-family: var(--idx-heading-font);
	font-size: 60px;
	font-weight: 700;
	color: #fff;
	line-height: 1;
}

.idx-stat-label { color: rgba(255,255,255,.85); font-size: 14px; }

/* Page hero (inner pages: title + breadcrumbs over dark image).
   Live technique: image + dark gradient in one background-image, blended
   with multiply. Same 20vh top/bottom padding + min-height so every inner
   hero is exactly as tall as the Moddus one. */
.idx-page-hero {
	--idx-hero-grad: linear-gradient(180deg, #242424 0%, rgba(255,255,255,0) 79%, #32281b 100%);
	position: relative;
	color: #fff;
	/* Full-viewport hero so every inner page is the same height as Moddus;
	   content is vertically centered, with top padding clearing the fixed header. */
	min-height: 100vh;
	padding: 14vh 0 8vh;
	display: flex;
	align-items: center;
	background-size: cover;
	background-position: center bottom 31%;
	background-blend-mode: multiply;
	/* No background-color here: with multiply it would darken the whole image.
	   Only the photo + gradient layers blend, matching the live build. */
}

/* Desktop: keep hero copy in the left portion so the product in the image
   stays visible; blur box narrower. O nama copy shifts to the right half. */
@media (min-width: 981px) {
	/* Product heroes: push the blur box to the right so the centered product shows */
	.idx-page-hero--ogmax .idx-blur-box,
	.idx-page-hero--pp .idx-blur-box,
	.idx-page-hero--obujmice .idx-blur-box {
		max-width: 50%;
		margin-left: auto;
	}

	/* Obujmice: keep everything on the left — copy box below the breadcrumbs,
	   left-aligned; title capped so it wraps nicely. */
	.idx-page-hero--obujmice .idx-blur-box { margin-left: 0; }
	.idx-page-hero--obujmice h1 { max-width: 600px; }

	/* OG Max + Priključni: title centred, copy box pinned to the SAME vertical
	   level on the right (title and box share one horizontal line). */
	.idx-page-hero--ogmax,
	.idx-page-hero--pp { align-items: center; }
	.idx-page-hero--ogmax .idx-blur-box,
	.idx-page-hero--pp .idx-blur-box {
		position: absolute;
		right: 7.5%;
		top: 50%;
		transform: translateY(-50%);
		margin: 0 !important;
		max-width: 310px !important;
	}

	/* Priključni: lift the whole hero copy (title + box) ~25% higher. */
	.idx-page-hero--pp h1,
	.idx-page-hero--pp .idx-breadcrumbs { transform: translateY(-25vh); }
	/* Keep the title/breadcrumb position unchanged; lower only the right blur box. */
	.idx-page-hero--pp .idx-blur-box { top: calc(25% + 20px); }

	/* Moddus: product sits on the right of the image, so keep the copy box on
	   the left, below the breadcrumbs (matches the reference). */
	.idx-page-hero--moddus .idx-blur-box { max-width: 54%; margin-left: 0; }

	/* Pin the yellow availability badge to the bottom-right so it clears the
	   socket in the image instead of overlapping it. */
	.idx-page-hero--moddus .idx-hero-badge {
		position: absolute;
		right: 7.5%;
		bottom: 6vh;
		max-width: 460px;
		margin-top: 0;
	}

	/* O nama: whole copy block shifts to the right half */
	.idx-page-hero--onama .idx-container { display: flex; justify-content: flex-end; }
	.idx-page-hero--onama .idx-hero-copy { width: 52%; }
	.idx-page-hero--onama .idx-blur-box { max-width: 100%; }
}

/* Per-page background framing so the product is well positioned */
.idx-page-hero--pp { background-position: center bottom 8%; }
.idx-page-hero--onama { background-position: center 35%; }

/* --- Art-directed hero images per page (desktop + phone -m variant) --- */
.idx-page-hero--moddus { background-image: url("../../../../uploads/2026/04/Index-VM-Moddus-Modularni-program.jpg"), var(--idx-hero-grad); }
.idx-page-hero--ogmax { background-image: url("../../../../uploads/2026/05/INDEX-VM-OG-Max-IP-44-nadgradne-zidne-prikljucnice-za-sigurnu-elektro-instalaciju-1.jpg"), var(--idx-hero-grad); }
.idx-page-hero--pp { background-image: url("../../../../uploads/2026/04/INDEX-VM-Prikljucni-program-Domaca-proizvodnja-trofaznih-niskoprofilnih-monofaznih-utikaca-razvodnika-i-prikljucnica.jpg"), var(--idx-hero-grad); }
.idx-page-hero--obujmice { background-image: url("../../../../uploads/2026/06/Index-VM-Obujmice-Obujmice-za-kablove.jpg"), var(--idx-hero-grad); }
.idx-page-hero--onama { background-image: url("../../../../uploads/2026/04/INDEX-VM-razvija-i-proizvodi-elektroinstalaciona-resenja-koja-objedinjuju-funkcionalnost-pouzdanost-i-uskladjen-dizajn-za-stambene-poslovne-i-komercijalne-prost.jpg"), var(--idx-hero-grad); }
.idx-page-hero--kontakt { background-image: url("../../../../uploads/2026/07/Index-VM-Kontaktirajte-nas-saradnja-veleprodaja-maloprodaja.jpg"), var(--idx-hero-grad); }
.idx-page-hero--preuzimanja { background-image: url("../../../../uploads/2026/07/Index-VM-Kontaktirajte-nas-saradnja-veleprodaja-maloprodaja.jpg"), var(--idx-hero-grad); }

@media (max-width: 767px) {
	.idx-page-hero--preuzimanja { background-image: url("../../../../uploads/2026/07/Index-VM-Kontaktirajte-nas-saradnja-veleprodaja-maloprodaja-m.jpg"), var(--idx-hero-grad); }
	.idx-page-hero--moddus { background-image: url("../../../../uploads/2026/06/Index-VM-Moddus-Modularni-program-m.jpg"), var(--idx-hero-grad); }
	.idx-page-hero--ogmax { background-image: url("../../../../uploads/2026/05/INDEX-VM-OG-Max-IP-44-nadgradne-zidne-prikljucnice-za-sigurnu-elektro-instalaciju-m-1.jpg"), var(--idx-hero-grad); }
	.idx-page-hero--pp { background-image: url("../../../../uploads/2026/06/INDEX-VM-Prikljucni-program-Domaca-proizvodnja-trofaznih-niskoprofilnih-monofaznih-utikaca-razvodnika-i-prikljucnica-m.jpg"), var(--idx-hero-grad); }
	.idx-page-hero--obujmice { background-image: url("../../../../uploads/2026/06/Index-VM-Obujmice-Obujmice-za-kablove-m.jpg"), var(--idx-hero-grad); }
	.idx-page-hero--onama { background-image: url("../../../../uploads/2026/04/INDEX-VM-razvija-i-proizvodi-elektroinstalaciona-resenja-koja-objedinjuju-funkcionalnost-pouzdanost-i-uskladjen-dizajn-za-stambene-poslovne-i-komercijalne-prost-m.jpg"), var(--idx-hero-grad); }
	.idx-page-hero--kontakt { background-image: url("../../../../uploads/2026/07/Index-VM-Kontaktirajte-nas-saradnja-veleprodaja-maloprodaja-m.jpg"), var(--idx-hero-grad); }
}

.idx-page-hero h1 {
	color: #fff;
	margin-bottom: 10px;
	font-size: 4em; /* 4 × 14px theme base = 56px (matches the design-manual H1 token) */
	letter-spacing: -3px;
	line-height: 1.1em;
	text-shadow: 0.08em 0.08em 0.08em rgba(0,0,0,0.4);
}

/* O nama: 4em (56px), no shadow on the live build */
.idx-page-hero--onama h1 { font-size: 4em; line-height: 1.2em; text-shadow: none; }

@media (max-width: 767px) {
	.idx-page-hero h1,
	.idx-page-hero--onama h1 { font-size: 40px !important; letter-spacing: -2px; }
	/* Product heroes: push the copy box down so it clears the product image
	   (same idea as the Home hero space). */
	.idx-page-hero--moddus .idx-breadcrumbs { margin-bottom: 300px; }
	/* O nama: keep the same breathing room between breadcrumbs and the glass
	   intro box as the Home hero content stack. */
	.idx-page-hero--onama h1,
	.idx-page-hero--onama .idx-breadcrumbs { transform: translateY(-35px); }
	.idx-page-hero--onama .idx-breadcrumbs { margin-bottom: 200px; }

	/* Priključni: kill the desktop-only negative margin (inline) so the blur box
	   no longer overlaps the title; drop it below the breadcrumbs. */
	.idx-page-hero--pp .idx-blur-box { margin-top: 0 !important; }
	.idx-page-hero--pp .idx-breadcrumbs { margin-bottom: 28px; }
	/* Lift the whole copy block up so it clears the product (which sits at the
	   bottom of this hero image). */
	.idx-page-hero--pp .idx-container { position: relative; top: -80px; }

	/* OG Max: the product sits near the TOP of the hero image, so nudge the whole
	   copy block (title + breadcrumbs + box) downward as one, keeping it centered. */
	.idx-page-hero--ogmax .idx-container { position: relative; top: 140px; }

	/* Obujmice: nudge the whole copy block downward. */
	.idx-page-hero--obujmice .idx-container { position: relative; top: 90px; }
}

.idx-breadcrumbs { color: rgba(255,255,255,.75); font-size: 14px; }
/* Breadcrumb links are presentational only — not clickable, no hover state.
   Exception: the first link (Početna) stays clickable. */
.idx-breadcrumbs a { color: rgba(255,255,255,.75); text-decoration: none; pointer-events: none; cursor: default; }
.idx-breadcrumbs a:first-child { pointer-events: auto; cursor: pointer; }
.idx-breadcrumbs a:first-child:hover { color: var(--idx-yellow); }
.idx-breadcrumbs .idx-bc-sep { margin: 0 8px; color: var(--idx-yellow); }
.idx-breadcrumbs .idx-bc-current { color: #fff; font-weight: 600; }

/* Legal content box */
.idx-legal-box {
	background: #F7F4F0;
	padding: 60px;
	border-radius: 4px;
}

.idx-legal-box h2 { font-size: 26px; margin-top: 30px; }
.idx-legal-box h3 { font-size: 20px; margin-top: 24px; }

@media (max-width: 767px) {
	p { font-size: 13px; line-height: 1.6; }
	.idx-legal-box { padding: 30px 22px; }
	/* Each hero at least a full viewport tall on phones (svh accounts for browser UI) */
	.idx-page-hero { min-height: 100vh; min-height: 100svh; padding: 120px 0 60px; }
}

/* Tablet: use the compact paragraph scale of small desktop. */
@media (min-width: 768px) and (max-width: 860px) {
	p { font-size: 14px; line-height: 1.6; }
}

/* --------------------------------------------------------------------------
   Section helpers (used by Gutenberg content)
   -------------------------------------------------------------------------- */
.idx-section { padding: 80px 0; }
.idx-section--tight { padding: 40px 0; }
.idx-section--cream { background: var(--idx-cream); }
.idx-section--dark { background: var(--idx-black); color: rgba(255,255,255,.85); }
.idx-section--dark h1, .idx-section--dark h2, .idx-section--dark h3 { color: #fff; }

.idx-text-gray { color: var(--idx-gray); }
.idx-text-yellow { color: var(--idx-yellow); }

/* Product cards (homepage grid) */
.idx-product-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
}

.idx-product-card {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 480px;
	border-radius: 14px;
	overflow: hidden;
	background-size: cover;
	background-position: center;
	padding: 30px;
	text-decoration: none;
	isolation: isolate;
	transition: transform .35s ease;
}

.idx-product-card::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.25) 55%, rgba(0,0,0,0) 100%);
	transition: background .35s ease;
}

.idx-product-card:hover { transform: translateY(-6px); }

.idx-product-card__title {
	color: #fff;
	font-family: var(--idx-heading-font);
	font-weight: 700;
	font-size: 22px;
	text-transform: uppercase;
	margin: 0 0 8px;
	transition: color .25s ease;
}

.idx-product-card:hover .idx-product-card__title { color: var(--idx-yellow); }

.idx-product-card__desc { color: rgba(255,255,255,.85); font-size: 14.5px; line-height: 1.55; margin: 0 0 18px; }

.idx-product-card__link { color: var(--idx-yellow); font-weight: 600; font-size: 14.5px; }

/* Video section w/ overlay box */
.idx-video-section {
	position: relative;
	overflow: hidden;
	padding: 150px 0;
}

/* Floating MODDUS logo bottom-right of the video (live: yellow 20% bg + blur, radius 8px) */
.idx-video-logo {
	position: absolute;
	right: 7.5%;
	bottom: 40px;
	z-index: 1;
	width: min(245px, 30vw);
	background: rgba(var(--idx-yellow-rgb), 0.2);
	backdrop-filter: blur(15px);
	-webkit-backdrop-filter: blur(15px);
	border-radius: 8px;
	padding: 10px 9px;
}

.idx-video-logo img { display: block; width: 100%; }

.idx-video-section video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
}

/* Global frosted-glass box (Divi ".blur-box") — exact live values:
   grey 30% bg + blur(15px), radius 20px, padding 20px, 15px white text.
   Reusable across pages; override max-width per instance as needed. */
.idx-blur-box {
	position: relative;
	z-index: 1;
	max-width: 360px;
	background: rgba(117, 117, 117, 0.3);
	backdrop-filter: blur(15px);
	-webkit-backdrop-filter: blur(15px);
	border-radius: 20px;
	overflow: hidden;
	padding: 20px;
	color: #fff;
	font-size: 15px;
}

.idx-blur-box h2, .idx-blur-box h3 { color: #fff; font-size: 26px; }
.idx-blur-box p { color: #fff; font-size: 15px; }
.idx-blur-box a { color: #fff; font-weight: 600; text-decoration: none; }
.idx-blur-box a:hover { color: var(--idx-yellow); }

/* --------------------------------------------------------------------------
   Hero contact row (Moddus) — desktop shows text links with icons,
   mobile collapses to outline CTA buttons.
   -------------------------------------------------------------------------- */
.idx-hero-contact {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 32px;
	margin-top: 10vh;
}

.idx-hero-contact__item a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: #fff;
	font-weight: 600;
	font-size: 18px;
	text-decoration: none;
	transition: color .3s ease;
}

.idx-hero-contact__item a:hover { color: var(--idx-yellow); }

.idx-hero-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	font-size: 18px;
	line-height: 1;
	color: var(--idx-yellow);
}

/* Mobile buttons are hidden on desktop */
.idx-hero-contact__btn { display: none; }

/* Availability badge in hero — full yellow, black text (matches card badge) */
.idx-hero-avail {
	display: inline-block;
	background: var(--idx-yellow);
	color: #000;
	font-weight: 700;
	font-size: 14px;
	padding: 10px 18px;
	border-radius: 8px;
	margin-left: auto;
}

@media (max-width: 767px) {
	.idx-hero-contact {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		margin-top: 6vh;
	}
	/* Hide the text-with-icon variant on mobile, show the button variant instead */
	.idx-hero-contact__item { display: none; }
	.idx-hero-contact__btn { display: inline-flex; justify-content: center; }
	.idx-hero-avail {
		margin-left: 0;
		align-self: center;
		text-align: center;
	}
}

/* ==========================================================================
   UNIVERSAL ZOOM EFFECT (original: zoom-text / zoom-blurb / zoom-image)
   .idx-zoom-image is the theme wrapper; original class names also work.
   ========================================================================== */
.zoom-text,
.zoom-blurb,
.zoom-image,
.idx-zoom-image {
	display: block;
	overflow: hidden;
}

.idx-zoom-image { border-radius: 14px; }

/* Background-image variant */
.zoom-text { position: relative; }

.zoom-text::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: inherit;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	transform: scale(1);
	transition: transform 350ms ease;
	will-change: transform;
	z-index: 0;
}

.zoom-text > * { position: relative; z-index: 1; }

.zoom-text:hover::before,
.zoom-text:active::before,
.zoom-text:focus-within::before {
	transform: scale(1.06);
}

/* <img> variant */
.zoom-blurb img,
.zoom-image img,
.idx-zoom-image img {
	display: block;
	width: 100%;
	object-fit: cover;
	transform: scale(1);
	transition: transform 350ms ease;
	will-change: transform;
}

.zoom-blurb:hover img,
.zoom-blurb:active img,
.zoom-blurb:focus-within img,
.zoom-image:hover img,
.zoom-image:active img,
.zoom-image:focus-within img,
.idx-zoom-image:hover img,
.idx-zoom-image:active img,
.idx-zoom-image:focus-within img {
	transform: scale(1.06);
}

/* Star rating */
.idx-stars { color: var(--idx-yellow); font-size: 20px; letter-spacing: 4px; }

/* Person signature (dipi_star_rating title/description on the live build) */
.idx-person-name { font-size: 25px; font-weight: 700; margin: 0 0 2px; }
.idx-person-role { font-size: 16px; color: #6b6b6b; margin: 10px 0; }

/* Blurb-style title inside content blocks (Divi blurb header) */
.idx-blurb-title { font-size: 18px !important; font-weight: 700; }

/* CookieYes custom edits */
.cky-btn.cky-btn-reject,
.cky-btn.cky-btn-accept {
	background-color: #d0d0d0 !important;
	border-color: #d0d0d0 !important;
	color: #000000 !important;
}

.cky-btn.cky-btn-accept:hover,
.cky-btn.cky-btn-reject:hover {
	background-color: #d0d0d0 !important;
	border-color: #d0d0d0 !important;
	color: #000000 !important;
}

/* FAQ accordion */
/* width:100% is required: with margin-left:auto alone a grid item shrinks to
   fit its content, so the box would resize when an entry opens. */
.idx-faq { width: 100%; max-width: 900px; margin-left: auto; }

/* FAQ entries — exact live values: #FAFAFA cards r20, open card gets black
   outline, white bg and larger padding (20px -> 30px, animated). */
.idx-faq details {
	background: #FAFAFA;
	border: 1px solid rgba(255, 255, 255, 0);
	border-radius: 20px;
	overflow: hidden;
	margin-bottom: 15px;
	transition: all .3s ease;
}

.idx-faq details[open] {
	background: #fff;
	border-color: rgba(85, 85, 85, .55);
}

.idx-faq summary {
	list-style: none;
	cursor: pointer;
	font-family: var(--idx-heading-font);
	font-weight: 500;
	font-size: 20px;
	color: #000;
	padding: 20px 50px 20px 20px;
	position: relative;
	transition: padding .3s ease;
}

.idx-faq details[open] summary { padding: 30px 50px 30px 30px; }

/* During close, return the question header and arrow at the same time as the
   body so the final details state change does not cause a visible hitch. */
.idx-faq details.is-closing summary { padding: 20px 50px 20px 20px; }
.idx-faq details.is-closing { background: #FAFAFA; border-color: rgba(255, 255, 255, 0); }

.idx-faq summary::-webkit-details-marker { display: none; }

.idx-faq summary::after {
	content: "→";
	position: absolute;
	right: 24px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 16px;
	font-weight: 400;
	color: #967850;
	transition: transform .3s ease;
}

/* Open: arrow rotates to point down (same behaviour as the mobile menu dropdown) */
.idx-faq details[open] summary::after { transform: translateY(-50%) rotate(90deg); }
.idx-faq details.is-closing summary::after { transform: translateY(-50%); }

.idx-faq .idx-faq__body {
	padding: 0 20px 20px 30px;
	color: var(--idx-body);
	overflow: hidden;
	transition: max-height .35s ease, padding-bottom .35s ease;
}
/* FAQ answers use the same global paragraph scale and body color. */
.idx-faq .idx-faq__body p { color: #555555; }
.idx-faq details.is-closing .idx-faq__body { padding-bottom: 0; }

/* Mobile: smaller question type and tighter padding for a compact accordion */
@media (max-width: 767px) {
	.idx-faq summary { font-size: 16px; padding: 14px 40px 14px 16px; }
	.idx-faq details[open] summary { padding: 16px 40px 16px 16px; }
	.idx-faq summary::after { right: 16px; }
	.idx-faq .idx-faq__body { padding: 0 16px 16px 16px; font-size: 14px; }
	.idx-faq details { margin-bottom: 12px; }
}

/* Expanding CTA banner (dipi_expanding_cta): pops to scale(1.2) when the
   viewport middle enters it — 500ms ease-in-out, exactly like the live build. */
.idx-cta-banner {
	position: relative;
	z-index: 1;
	border-radius: 20px;
	overflow: hidden;
	background-size: cover;
	background-position: center;
	background-color: rgba(50, 40, 27, 0.51);
	background-blend-mode: multiply;
	padding: 150px 50px;
	color: #fff;
	transition: transform 500ms ease-in-out, box-shadow 500ms ease-in-out;
	will-change: transform;
}

/* Exact scale factor is set from JS so the banner reaches the viewport edges */
.idx-cta-banner.is-expanded { z-index: 91; }

/* Dark page overlay while the CTA is expanded (live: rgba(0,0,0,0.7)) */
.idx-cta-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.7);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 500ms ease-in-out, visibility 500ms ease-in-out;
	z-index: 90;
}

.idx-cta-overlay.is-visible { opacity: 1; visibility: visible; }

/* CTA link matches the site-wide underline buttons, at the module's 20px size */
.idx-cta-banner .idx-card-link { font-size: 20px; font-weight: 600; }

@media (max-width: 767px) {
	.idx-cta-banner { padding: 80px 24px; }
}

/* Contact CTA banner (home + O nama) — image lives here for the phone -m swap */
.idx-cta-banner--contact { background-image: url("../../../../uploads/2026/07/Index-VM-Kontaktirajte-nas-saradnja-veleprodaja-maloprodaja.jpg"); }

@media (max-width: 767px) {
	.idx-cta-banner--contact { background-image: url("../../../../uploads/2026/07/Index-VM-Kontaktirajte-nas-saradnja-veleprodaja-maloprodaja-m.jpg"); }
}

.idx-cta-banner h2, .idx-cta-banner h3 { color: #fff; }

/* Display-size heading inside the CTA (live: 65px / 55px / 35px) */
.idx-cta-banner h2 {
	font-size: 65px;
	letter-spacing: -2px;
	line-height: 1.1em;
	max-width: 560px;
	padding-bottom: 10px;
}

.idx-cta-banner p { color: #fff; font-weight: 600; font-size: 14px; max-width: 460px; }

/* "Kontaktirajte nas" is a plain white text link on the live build, not a button */
.idx-cta-banner .idx-cta-link {
	color: #fff;
	font-size: 20px;
	font-weight: 600;
	text-decoration: none;
}

.idx-cta-banner .idx-cta-link:hover { color: var(--idx-yellow); }

@media (max-width: 980px) {
	.idx-cta-banner h2 { font-size: 55px; }
}

@media (max-width: 767px) {
	.idx-cta-banner h2 { font-size: 35px; letter-spacing: -1px; }
}

/* Horizontal history timeline (O nama) */
.idx-timeline-section { background: #f7f4f0; padding: 70px 0; }

.idx-timeline {
	display: flex;
	gap: 24px;
	overflow-x: auto;
	padding: 20px 0 30px;
	scroll-snap-type: x mandatory;
}

.idx-timeline::-webkit-scrollbar { height: 8px; }
.idx-timeline::-webkit-scrollbar-thumb { background: var(--idx-yellow); border-radius: 4px; }

.idx-tl-item {
	flex: 0 0 300px;
	scroll-snap-align: start;
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 6px 24px rgba(0,0,0,.06);
}

.idx-tl-item img { width: 100%; height: 190px; object-fit: cover; display: block; }

.idx-tl-item .idx-tl-body { padding: 20px; }

.idx-tl-year {
	font-family: var(--idx-heading-font);
	font-size: 30px;
	font-weight: 800;
	color: var(--idx-yellow);
	line-height: 1;
	margin: 0 0 8px;
}

.idx-tl-item h4 { font-size: 17px; margin: 0 0 6px; }
.idx-tl-item p { font-size: 14px; margin: 0; }

/* Quote blurb */
.idx-quote { font-size: 17px; font-style: italic; color: #000; border-left: 3px solid var(--idx-yellow); padding-left: 20px; }

/* Project card (dark image bg) */
.idx-project-card {
	background-size: cover;
	background-position: center;
	border-radius: 14px;
	padding: 30px;
	color: #fff;
	display: flex;
	flex-direction: column;
	min-height: 380px;
}

.idx-project-card h3 { color: #fff; margin-top: auto; }

/* Testimonial */
.idx-testimonial { background: #F7F4F0; border-radius: 14px; padding: 40px; }
.idx-testimonial .idx-testimonial__quote { font-size: 17px; color: #000; margin-bottom: 60px; }
.idx-testimonial .idx-testimonial__person { display: flex; align-items: center; gap: 14px; }
.idx-testimonial .idx-testimonial__person img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.idx-testimonial .idx-testimonial__person h4 { margin: 0; font-size: 16px; }
.idx-testimonial .idx-testimonial__person p { margin: 0; font-size: 14px; }

/* --------------------------------------------------------------------------
   O nama — story columns, director section, second-generation card
   -------------------------------------------------------------------------- */
/* Three story columns: hairline top border that darkens on hover */
.idx-story-col {
	border-top: 1px solid rgba(0,0,0,.2);
	padding-top: 22px;
	transition: border-color .3s ease;
}
.idx-story-col:hover { border-top-color: #000; }
.idx-story-col h3 { color: #000; font-size: 24px; font-weight: 600; }
.idx-story-col p { color: var(--idx-body); }

/* Home: crop only the visible frame of the tall application image. The image
   keeps its natural aspect ratio; overflow hides the lower part of the view. */
.idx-home-image--cropped {
	max-height: 580px;
	overflow: hidden;
}

/* O nama: this supporting image is shown on tablet/mobile, but omitted from
   the large-desktop three-column composition. */
@media (min-width: 981px) {
	.idx-story-image--responsive { display: none; }
}

/* Director section: image matches the text-column height (desktop only —
   on stacked mobile the image keeps its natural height) */
.idx-director .idx-zoom-image { border-radius: 20px; }
@media (min-width: 981px) {
	.idx-director { align-items: stretch !important; }
	.idx-director .idx-zoom-image { height: 100%; }
	.idx-director .idx-zoom-image img { height: 100%; width: 100%; object-fit: cover; }
}

/* Second generation: photo rounded on top only, caption attached below with border */
.idx-photo-card { display: flex; flex-direction: column; }
.idx-photo-card .idx-zoom-image { border-radius: 14px 14px 0 0; }
.idx-photo-card figcaption {
	border: 1px solid rgba(0,0,0,.15);
	border-top: 0;
	border-radius: 0 0 14px 14px;
	padding: 14px 18px;
	text-align: center;
	color: var(--idx-body);
	font-size: 14px;
}

/* Kontakt three-column info block — centered, vertical dividers between */
.idx-contact-cols { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.idx-contact-col { text-align: center; padding: 0 34px; }
.idx-contact-col + .idx-contact-col { border-left: 1px solid rgba(0,0,0,.14); }
.idx-contact-col h3 { font-size: 26px; margin-bottom: 16px; }
.idx-contact-col hr { border: 0; border-top: 1px solid rgba(0,0,0,.14); margin: 26px auto; max-width: 78%; }
.idx-contact-lines { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.idx-contact-line {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #000;
	font-weight: 600;
	text-decoration: none;
	transition: color .25s ease;
}
.idx-contact-line:hover { color: var(--idx-yellow); }
.idx-contact-line .indexvm-icon { background-color: var(--idx-yellow); }
.idx-contact-map-label {
	color: #000;
	font-weight: 600;
	line-height: 1.4;
}
.idx-location-box .idx-location-map-link { color: var(--idx-yellow); }
.idx-location-box .idx-location-map-link:hover { color: #000; }

@media (max-width: 767px) {
	.idx-contact-cols { grid-template-columns: 1fr; }
	.idx-contact-col { padding: 0 12px; min-width: 0; }
	/* No divider line under the paragraph on phones */
	.idx-contact-col hr { display: none; }
	/* Borders only between rows on mobile */
	.idx-contact-col + .idx-contact-col {
		border-left: 0;
		border-top: 1px solid rgba(0,0,0,.14);
		padding-top: 34px;
		margin-top: 14px;
	}
	/* Email and phone share one row on phones (short items fit; long address wraps) */
	.idx-contact-lines { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px 18px; }
	.idx-contact-line { font-size: 14px; }
}

/* Product catalog components */
/* Framed catalog grid: container gives the top/left frame, each card the
   right/bottom line — a clean table grid regardless of item count
   (mirrors the Divi 1px rgba(0,0,0,.2) row border). */
.idx-catalog-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0;
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-bottom: 1px solid rgba(0, 0, 0, 0.2); /* close the outer frame even when the last row is sparse */
}

.idx-catalog-card {
	position: relative;
	padding: 30px;
	text-align: center;
	text-decoration: none;
	display: flex;
	flex-direction: column;
	border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

/* Inset vertical divider between columns — not fully joined to top/bottom */
.idx-catalog-card::after {
	content: "";
	position: absolute;
	top: 28px;
	bottom: 28px;
	right: 0;
	width: 1px;
	background: rgba(0, 0, 0, 0.2);
}
.idx-catalog-card:nth-child(3n)::after { display: none; } /* last column: frame handles the edge */
/* 4-column variant: separator hides on the 4th column, not the 3rd */
.idx-catalog-grid--4 .idx-catalog-card:nth-child(3n)::after { display: block; }
.idx-catalog-grid--4 .idx-catalog-card:nth-child(4n)::after { display: none; }
.idx-catalog-card .idx-zoom-image { margin-bottom: 18px; }
.idx-catalog-card h6 { font-size: 15px; color: var(--idx-brown); font-weight: 700; margin: 0 0 8px; }
.idx-catalog-card h5 { font-size: 17px; margin: 0 0 8px; color: #000; }
.idx-catalog-card p { font-size: 14.5px; }

/* Obujmice keeps the two-card catalogue centered, while matching the
   larger card proportions used by the OG Max catalogue. */
.page-id-6891 .idx-catalog-grid { max-width: 900px !important; }
.page-id-6891 .idx-catalog-card { border-bottom: 0; }
.page-id-6891 .idx-catalog-card:nth-child(2n)::after { display: none; }

@media (max-width: 900px) {
	.page-id-6891 .idx-catalog-card::after { display: none; }
	.page-id-6891 .idx-catalog-card + .idx-catalog-card { border-top: 1px solid rgba(0, 0, 0, 0.2); }
}

/* "Detaljnije" styled like the homepage card link: underline + arrow.
   Underline is black here (per request). */
.idx-catalog-card .idx-more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	align-self: center;
	color: #000;
	font-weight: 700;
	text-decoration: none;
	padding-bottom: 5px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.3);
	transition: color .3s ease, border-color .3s ease;
}
.idx-catalog-card .idx-more::after {
	content: "→";
	display: inline-block;
	transition: transform .3s ease;
}

/* Hover anywhere on the card zooms the image and animates the link */
.idx-catalog-card:hover .idx-zoom-image img { transform: scale(1.06); }
.idx-catalog-card:hover .idx-more { border-bottom-color: #000; }
.idx-catalog-card:hover .idx-more::after { transform: translateX(4px); }

/* Black separator strip */
.idx-strip {
	background: #000;
	color: #fff;
	text-align: center;
	padding: 26px 0;
	margin: 0 0 50px;
}

.idx-strip h2, .idx-strip p { color: #fff; margin: 0; font-size: 28px; font-weight: 700; font-family: var(--idx-heading-font); }

/* O nama: the strip heading is a huge display size on the live build */
.idx-strip--big h2, .idx-strip--big p { font-size: clamp(40px, 7vw, 92px); letter-spacing: -5px; }

/* Full-bleed section strip (the "Sigurnost u kontaktu" look): true 7vw, Open Sans, -5px */
.idx-strip--display h2, .idx-strip--display p {
	font-family: 'Open Sans', Helvetica, Arial, Lucida, sans-serif;
	font-size: 7vw;
	letter-spacing: -5px;
	color: #fff;
	font-weight: 500;
	line-height: 1.1em;
}

/* Large display section heading (e.g. "Kvalitet gradi poverenje").
   clamp caps the size on 2K+ monitors so it stops growing past ~64px. */
.idx-h2-xl { font-size: clamp(34px, 5vw, 64px) !important; letter-spacing: -2px; }

/* Display statement inside content columns (live: .et_pb_text_14 h4 — 5vw, phone 60px) */
.idx-display {
	font-size: clamp(30px, 5vw, 64px) !important;
	letter-spacing: -2px;
	line-height: 1.1em;
	text-align: left;
}

@media (max-width: 767px) {
	.idx-display { font-size: 60px !important; }
}

@media (max-width: 980px) {
	.idx-strip--big h2, .idx-strip--big p { font-size: 110px; }
	.idx-strip--display h2, .idx-strip--display p { font-size: 110px; letter-spacing: -5px; }
	.idx-h2-xl { font-size: 55px !important; }
}

@media (max-width: 767px) {
	.idx-strip--big h2, .idx-strip--big p { font-size: 55px; letter-spacing: -2px; }
	.idx-strip--display h2, .idx-strip--display p { font-size: 55px; letter-spacing: -2px; }
	.idx-h2-xl { font-size: 35px !important; letter-spacing: -1px; }
}

/* Tablet refinement: keep the product detail subtitle compact and prevent the
   Priključni program hero copy from being covered by its glass panel. */
@media (min-width: 768px) and (max-width: 980px) {
	.idx-page-hero--pp .idx-container {
		top: 0;
	}
	.idx-page-hero--pp h1,
	.idx-page-hero--pp .idx-breadcrumbs {
		transform: none;
	}
	.idx-page-hero--pp .idx-blur-box {
		position: relative;
		top: auto;
		right: auto;
		transform: none;
		max-width: 310px !important;
		margin: 24px 0 0 !important;
	}
}

/* Product detail rows */
.idx-detail-row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; padding: 40px 0; }
/* Accent divider between consecutive products */
.idx-detail-row + .idx-detail-row { border-top: 2px solid var(--idx-yellow); }
/* Product title (Divi: h3.et_pb_module_header — Open Sans 700 uppercase 26px) */
.idx-detail-row h3 {
	font-family: 'Open Sans', Helvetica, Arial, Lucida, sans-serif;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 26px;
	color: #000;
}
/* Subtitle (Divi: italic 18px #757575) — the <p><em> right under the title */
.idx-detail-row > div:not(.idx-variant-pair) > p:nth-of-type(1) {
	font-style: italic;
	color: #757575;
	line-height: 1.75em;
}
/* "Karakteristike:" heading (Divi: h4.et_pb_module_header — 24px, -0.2px) */
.idx-detail-row > div:not(.idx-variant-pair) > p:nth-of-type(2) {
	font-size: 24px;
	font-weight: 500;
	letter-spacing: -0.2px;
	color: #000;
	margin: 0 0 10px;
}

/* Variant pair — two/three product images share one rounded frame with a
   yellow caption bar. Clicking an image focuses it (JS toggles .is-focused);
   the focused image expands and the siblings shrink. */
.idx-variant-pair {
	display: flex;
	gap: 0;
	height: 400px;
	border-radius: 16px;
	overflow: hidden;
	background: #f2efec;
}
.idx-variant {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
	height: 100%;
	display: flex;
	flex-direction: column;
	background: #f2efec;
	text-align: center;
	cursor: pointer;
	transition: flex-grow .45s cubic-bezier(.4, 0, .2, 1);
}
.idx-variant + .idx-variant .idx-vimg { position: relative; }
.idx-variant + .idx-variant .idx-vimg::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 1px;
	background: rgba(0, 0, 0, .08);
	z-index: 2;
	pointer-events: none;
}
/* Image wrapper clips the zoom so it never spills onto the caption bar */
.idx-vimg {
	display: block;
	flex: 1 1 auto;
	min-height: 0;
	overflow: hidden;
}
.idx-variant img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform .5s cubic-bezier(.4, 0, .2, 1);
}
/* Zoom-in on the focused variant's image (clipped by .idx-vimg) */
.idx-variant.is-focused .idx-vimg img { transform: scale(1.1); }
/* Yellow caption bar (two lines: "Art. XXX" + colour), flush to frame bottom */
.idx-variant h4 {
	margin: 0;
	flex: 0 0 auto;
	background: rgba(255, 204, 0, 0.6);
	color: #000;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.4;
	text-align: center;
	padding: 0 8px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.idx-variant h4::before {
	content: "Art. ";
	font-size: 12px;
	font-weight: 400;
	line-height: 1;
}
.idx-variant p {
	margin: 0;
	flex: 0 0 auto;
	background: rgba(255, 204, 0, 0.6);
	color: #000;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5em;
	text-align: center;
	padding: 0 8px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
/* Focus animation */
.idx-variant.is-focused { flex-grow: 2.4; }
.idx-variant-pair.has-focus .idx-variant:not(.is-focused) { flex-grow: .9; }
/* Caption bar always paints above the image (no overlap on focus) */
.idx-variant h4, .idx-variant p { position: relative; z-index: 1; }

.idx-specs { list-style: none; margin: 0; padding: 0; }
.idx-specs li { position: relative; padding: 0 0 0 22px; }
/* Value after the colon in a spec line is bold */
.idx-specs li strong { font-weight: 700; }
.idx-specs li::before { content: "•"; color: var(--idx-yellow); font-size: 22px; position: absolute; left: 0; top: -4px; }

/* Gallery — full-bleed 4-column grid: the two square "feature" shots (items 1 & 3)
   sit in columns 1 & 3 (span 2 rows), the four landscape shots stack in pairs in
   columns 2 & 4. Each cell takes its image's NATURAL aspect ratio so nothing is
   cropped; align-self:start keeps the shorter square flush to the top. */
.idx-masonry {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
	align-items: start;
	/* Break out of the container to the full viewport width */
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	padding: 0 14px;
	box-sizing: border-box;
}
.idx-masonry > .idx-gallery-item { aspect-ratio: 16 / 9; align-self: start; }
.idx-masonry > .idx-gallery-item:nth-child(1),
.idx-masonry > .idx-gallery-item:nth-child(3) { aspect-ratio: 1 / 1; grid-row: span 2; }
.idx-masonry .idx-gallery-item { margin: 0; }
.idx-masonry img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; margin: 0; display: block; }

/* Gallery item: rounded frame that clips the zoom, with a caption that pops in on hover. */
.idx-gallery-item {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 12px;
	margin: 0 0 14px;
	break-inside: avoid;
}
.idx-gallery-item img { width: 100%; margin: 0; border-radius: 12px; display: block; transition: transform .5s cubic-bezier(.4, 0, .2, 1); }
.idx-gallery-item:hover img { transform: scale(1.08); }
.idx-gallery-item:active img { transform: scale(1.08); }
.idx-gallery-item.is-tap-zoom img { transform: scale(1.08); }
.idx-gallery-item figcaption {
	position: absolute;
	left: 12px;
	bottom: 12px;
	background: rgba(117, 117, 117, .3);
	backdrop-filter: blur(15px);
	-webkit-backdrop-filter: blur(15px);
	border: 1px solid rgba(255, 255, 255, .16);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .3px;
	padding: 6px 13px;
	border-radius: 10px;
	opacity: 0;
	transform: translateY(12px);
	transition: opacity .35s ease, transform .35s cubic-bezier(.4, 0, .2, 1);
	pointer-events: none;
}
.idx-gallery-item:hover figcaption { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
	.idx-catalog-grid { grid-template-columns: 1fr !important; }
	.idx-detail-row { grid-template-columns: 1fr; }
	/* Every product stacks the same way — text first, image second — regardless
	   of the desktop zig-zag DOM order (image cell is always .idx-variant-pair). */
	.idx-detail-row > div:not(.idx-variant-pair) { order: 0; }
	.idx-detail-row .idx-variant-pair { order: 1; }
	.idx-variant-pair { height: 300px; }
	/* Tablet: 2-column grid, natural image heights, no tall feature spans */
	.idx-masonry { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
	.idx-masonry > .idx-gallery-item,
	.idx-masonry > .idx-gallery-item:nth-child(1),
	.idx-masonry > .idx-gallery-item:nth-child(3) { grid-row: auto; aspect-ratio: auto; }
	.idx-masonry .idx-gallery-item { height: auto; }
	.idx-masonry img { height: auto; object-fit: fill; }
}

/* Phones: gallery images one below another; caption always shown (no hover). */
@media (max-width: 767px) {
	.idx-masonry { grid-template-columns: 1fr; }
	.idx-gallery-item figcaption { opacity: 1 !important; transform: none !important; }
	.idx-gallery-item:hover img { transform: none; }
	.idx-gallery-item:active img { transform: scale(1.08); }
	.idx-gallery-item.is-tap-zoom img { transform: scale(1.08); }
	.idx-specs li { font-size: 15px; }

	/* Product pages: the wide "cover" image banners use inline `padding:300px 0`
	   which makes them 600px tall and crops the landscape photo to a strip on
	   phones. Show the full horizontal image at its ~16:9 ratio instead. */
	.idx-page [style*="center/cover"][style*="padding:300px"] {
		padding: 0 !important;
		aspect-ratio: 16 / 9;
	}
}

/* Contact form (black section) */
.idx-form-section { background: #000; padding: 60px 15vw 40px; border-radius: 24px; }
.idx-form-section h2 { color: #fff; }

/* Field labels visible above each input */
.idx-contact-form label { display: block; color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.idx-contact-form .idx-form-topics legend { display: block; color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.idx-contact-form .idx-form-topics label {
	display: flex; align-items: center; gap: 10px;
	color: #fff; font-size: 14px; font-weight: 400; margin: 0; cursor: pointer;
}

.idx-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.idx-form-row p { margin: 0 0 24px; }

.idx-contact-form input[type=text],
.idx-contact-form input[type=email],
.idx-contact-form input[type=tel],
.idx-contact-form textarea {
	width: 100%;
	background: #1a1a1a;
	border: 1px solid #2a2a2a;
	border-radius: var(--idx-radius);
	color: #fff;
	font-family: var(--idx-body-font);
	font-size: 16px;
	padding: 18px 22px;
}

.idx-contact-form textarea { border-radius: var(--idx-radius); }
.idx-contact-form input::placeholder, .idx-contact-form textarea::placeholder { color: #777; }
.idx-contact-form input:focus, .idx-contact-form textarea:focus {
	outline: 0 !important;
	outline-offset: 0;
	box-shadow: none !important;
	border: 1px solid var(--idx-yellow) !important;
}

.idx-form-topics { border: 0; margin: 0 0 24px; padding: 0; }
.idx-form-topics__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 28px; }
.idx-form-req { color: var(--idx-yellow); }
.idx-form-topics--error { outline: 1px solid #f44336; outline-offset: 8px; border-radius: 4px; }
.idx-form-topics--error legend { color: #ff8a80; }

/* Round custom checkboxes (fill yellow when selected) */
.idx-contact-form .idx-form-topics input[type=checkbox] {
	-webkit-appearance: none; appearance: none;
	width: 18px; height: 18px; flex: 0 0 18px;
	border-radius: 50%;
	border: 1px solid #666;
	background: transparent;
	cursor: pointer;
	position: relative;
	transition: background-color .2s ease, border-color .2s ease;
}
.idx-contact-form .idx-form-topics input[type=checkbox]:checked {
	background: var(--idx-yellow);
	border-color: var(--idx-yellow);
}
.idx-contact-form .idx-form-topics input[type=checkbox]:checked::after {
	content: ""; position: absolute; left: 5px; top: 2px;
	width: 5px; height: 9px; border: solid #000; border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

/* Full-width submit button — matches the site's primary buttons (radius + hover) */
.idx-form-submit { margin-top: 6px; }
.idx-btn--white { background: #fff; border-color: #fff; color: #000; border-radius: var(--idx-radius); transition: color 300ms ease, background-color 300ms ease, border-color 300ms ease; }
.idx-btn--white:hover { background: rgba(0, 0, 0, .6); border-color: var(--idx-yellow); color: var(--idx-yellow); }
.idx-form-submit .idx-btn--white { display: block; width: 100%; padding: 18px; font-size: 16px; border-radius: var(--idx-radius); }

.idx-form-notice { padding: 14px 18px; border-radius: 8px; font-weight: 600; }
.idx-form-notice--ok { background: rgba(76,175,80,.15); color: #7bd47f; }
.idx-form-notice--err { background: rgba(244,67,54,.15); color: #ff8a80; }

.idx-form-secure {
	color: #fff;
	margin: 20px 0 0;
	font-size: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}
.idx-form-secure .indexvm-icon { background-color: #fff; width: 14px; height: 14px; min-width: 14px; }

/* Flat white lock icon (replaces the coloured 🔒 emoji) */
.indexvm-icon-lock {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1a5 5 0 0 0-5 5v3H6a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-9a2 2 0 0 0-2-2h-1V6a5 5 0 0 0-5-5zm3 8H9V6a3 3 0 0 1 6 0v3z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1a5 5 0 0 0-5 5v3H6a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-9a2 2 0 0 0-2-2h-1V6a5 5 0 0 0-5-5zm3 8H9V6a3 3 0 0 1 6 0v3z'/%3E%3C/svg%3E");
}

@media (max-width: 860px) {
	.idx-form-section { padding: 40px 24px; }
	.idx-form-row { grid-template-columns: 1fr; gap: 0; }
	.idx-form-topics__list { grid-template-columns: 1fr; }
}

/* Location banner (contact page) */
.idx-location-banner {
	background: #000;
	border-radius: 18px;
	padding: 26px;
	display: grid;
	grid-template-columns: 1fr 1.25fr;
	gap: 26px;
	align-items: stretch;
}

.idx-location-box {
	position: relative;
	overflow: hidden;
	background: transparent;
	border-radius: 14px;
	padding: 40px 34px;
	display: flex;
	flex-direction: column;
	color: #fff;
	min-height: 320px;
}

/* Google Maps embed as the box background */
.idx-location-map {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
	z-index: 0;
	filter: grayscale(1) contrast(1.05) brightness(0.9);
	pointer-events: none;
}
.idx-location-box .idx-location-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,0.68) 0%, rgba(0,0,0,0.42) 45%, rgba(0,0,0,0.72) 100%);
	pointer-events: none;
	z-index: 1;
}

.idx-location-box h3 { position: relative; z-index: 2; color: #fff; font-size: 34px; margin: 0; text-shadow: 0 1px 6px rgba(0,0,0,0.5); }

.idx-location-box .idx-location-addr { position: relative; z-index: 2; margin-top: auto; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.idx-location-box .idx-contact-line { color: #fff; font-weight: 600; text-shadow: 0 1px 6px rgba(0,0,0,0.5); }
.idx-location-box .idx-contact-line:hover { color: var(--idx-yellow); }
.idx-location-box .indexvm-icon { background-color: #fff; }

.idx-location-img {
	width: 100%;
	border-radius: 14px;
	overflow: hidden;
}
.idx-location-img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 14px;
}

/* On phones and tablets show the complete location photo instead of cropping
   it to the height of the neighbouring map/info box. */
@media (max-width: 900px) {
	.idx-location-img { align-self: start; height: auto; }
	.idx-location-img img { width: 100%; height: auto; object-fit: contain; }
}

@media (max-width: 767px) {
	.idx-location-banner { grid-template-columns: 1fr; }
	.idx-location-box { min-height: 0; padding: 30px 24px; }
	.idx-location-img,
	.idx-location-img img { width: 100%; height: auto; }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.idx-footer {
	background: var(--idx-black);
	color: rgba(255,255,255,.82);
	padding: 60px 0 0;
	font-size: 15px;
}

.idx-footer a { color: rgba(255,255,255,.82); text-decoration: none; transition: color .2s ease; }
.idx-footer a:hover { color: var(--idx-yellow); }

.idx-footer__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 40px;
	padding-bottom: 30px;
}

.idx-footer__brand { max-width: 480px; }
.idx-footer__logo { max-width: 170px; height: auto; display: block; margin-bottom: 18px; }

.idx-footer__socials { display: flex; gap: 18px; margin-top: 40px; flex-wrap: wrap; }
.idx-footer__socials--hidden { display: none !important; }

/* Live build: large 72px tiles with real brand glyphs */
.idx-footer__socials a {
	width: 72px;
	height: 72px;
	background: var(--idx-dark);
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	transition: all .25s ease;
}

.idx-footer__socials a svg { width: 30px; height: 30px; }

.idx-footer__socials a:hover { background: var(--idx-yellow); color: #000; }

.idx-footer__divider { border: 0; border-top: 1px solid rgba(255,255,255,.12); margin: 0; }

.idx-footer__cols {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 42px;
	padding: 40px 0;
}

.idx-footer__col h4 {
	color: var(--idx-yellow);
	font-family: var(--idx-body-font);
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 2px;
	text-transform: uppercase;
	margin: 0 0 25px;
}

.idx-footer__col ul { list-style: none; margin: 0; padding: 0; }
.idx-footer__col li { margin: 0 0 14px; }

/* Column links carry the underline+arrow treatment like the rest of the site */
.idx-footer__col ul a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	max-width: 200px;
	padding-bottom: 8px;
	border-bottom: 1px solid rgba(var(--idx-yellow-rgb), .2);
	transition: color .3s ease, border-color .3s ease;
}

.idx-footer__col ul a:hover { border-bottom-color: var(--idx-yellow); }

.indexvm-contact-item {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
}

.indexvm-icon {
	width: 15px;
	height: 15px;
	min-width: 15px;
	display: inline-block;
	background-color: var(--idx-yellow);
	mask-repeat: no-repeat;
	mask-position: center;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-position: center;
	-webkit-mask-size: contain;
}

.indexvm-icon-location {
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5A2.5 2.5 0 1 1 12 6a2.5 2.5 0 0 1 0 5.5z'/%3E%3C/svg%3E");
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5A2.5 2.5 0 1 1 12 6a2.5 2.5 0 0 1 0 5.5z'/%3E%3C/svg%3E");
}

.indexvm-icon-phone {
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.15 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1C10.61 21 3 13.39 3 4c0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.24.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E");
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.15 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1C10.61 21 3 13.39 3 4c0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.24.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E");
}

.indexvm-icon-email {
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
}

.idx-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
	padding: 18px 0 22px;
}

.idx-footer__legal { display: flex; gap: 10px; margin: 0; color: rgba(255,255,255,.68); font-size: 14px; }
.idx-footer__legal a { color: rgba(255,255,255,.68); }
.idx-footer__copy { margin: 0; color: rgba(255,255,255,.68); font-size: 14px; }

/* --------------------------------------------------------------------------
   Gutenberg alignment inside idx-page
   -------------------------------------------------------------------------- */
.idx-page > .wp-block-group.alignfull { margin-left: 0; margin-right: 0; }

.idx-page .wp-block-group__inner-container,
.idx-page .idx-inner {
	width: var(--idx-container);
	max-width: var(--idx-container-max);
	margin-left: auto;
	margin-right: auto;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
	h1 { font-size: var(--idx-type-h1); }
	h2 { font-size: var(--idx-type-h2); }
	.idx-product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
	.idx-footer__cols { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 860px) {
	/* Hamburger — plain white lines, no box; animates into a dark X when open */
	.idx-lang-switcher {
		position: absolute;
		right: 52px;
		top: 50%;
		transform: translateY(-50%);
		margin: 0;
		z-index: 10002;
	}

	.idx-lang-switcher a {
		min-width: 36px;
		min-height: 36px;
		font-size: 12px;
	}

	.idx-nav-toggle {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		gap: 6px;
		width: 44px;
		height: 44px;
		margin-left: auto;
		background: transparent;
		border: 0;
		padding: 8px 4px;
		cursor: pointer;
		position: relative;
		z-index: 10001;
	}

	.idx-nav-toggle span {
		display: block;
		height: 2px;
		width: 22px;
		background: #fff;
		border-radius: 2px;
		transition: transform .35s ease, opacity .25s ease, background-color .25s ease;
		transform-origin: center;
	}

	.idx-nav-toggle[aria-expanded="true"] span { background: #000; }
	.idx-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
	.idx-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
	.idx-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

	/* Full-screen cream menu overlay with a smooth open animation */
	.idx-nav {
		position: fixed;
		inset: 0;
		background: var(--idx-cream);
		padding: 90px 22px 40px;
		margin: 0;
		display: flex;
		opacity: 0;
		visibility: hidden;
		transform: translateY(-12px);
		transition: opacity .35s ease, transform .35s ease, visibility .35s ease;
		z-index: 10000;
		overflow-y: auto;
	}

	.idx-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }

	.idx-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		width: 100%;
		max-width: 460px;
		margin: auto;
	}

	.idx-nav__list > li { width: 100%; }

	.idx-nav__list > li > a {
		display: flex;
		align-items: center;
		justify-content: center;
		position: relative;
		background: #fff;
		color: #000;
		border-radius: var(--idx-radius);
		padding: 18px 24px;
		font-size: 16px;
		font-weight: 500;
		box-shadow: 0 4px 14px rgba(0,0,0,.05);
	}

	/* Staggered fade-in of each item when the menu opens */
	.idx-nav.is-open .idx-nav__list > li {
		animation: idx-menu-item .4s ease both;
	}
	.idx-nav.is-open .idx-nav__list > li:nth-child(1) { animation-delay: .05s; }
	.idx-nav.is-open .idx-nav__list > li:nth-child(2) { animation-delay: .10s; }
	.idx-nav.is-open .idx-nav__list > li:nth-child(3) { animation-delay: .15s; }
	.idx-nav.is-open .idx-nav__list > li:nth-child(4) { animation-delay: .20s; }
	.idx-nav.is-open .idx-nav__list > li:nth-child(5) { animation-delay: .25s; }
	.idx-nav.is-open .idx-nav__list > li:nth-child(6) { animation-delay: .30s; }
	.idx-nav.is-open .idx-nav__list > li:nth-child(7) { animation-delay: .35s; }

	@keyframes idx-menu-item {
		from { opacity: 0; transform: translateY(10px); }
		to { opacity: 1; transform: translateY(0); }
	}

	/* Active item: yellow underline under the label */
	.idx-nav__list > li > a::after {
		left: 50%; right: auto;
		bottom: 12px;
		width: 46px;
		transform: translateX(-50%) translateY(6px);
	}
	.idx-nav__list > li:hover > a::after,
	.idx-nav__list > li.current > a::after { transform: translateX(-50%) translateY(0); }

	/* "Proizvodi" gets a → on the right; opens the mega panel inline.
	   It rotates to point down while the submenu is open. */
	.idx-nav__has-mega > a::before {
		content: "→";
		position: absolute;
		right: 24px;
		color: #000;
		font-size: 16px;
		transition: transform .3s ease;
	}
	.idx-nav__has-mega.is-open > a::before { transform: rotate(90deg); }

	.idx-nav__cta { margin-top: 4px; }
	.idx-nav__list > li.idx-nav__cta > a {
		background: transparent !important;
		border: 1px solid #000 !important;
		box-shadow: none;
		color: #000 !important;
	}

	/* Mobile "Proizvodi" submenu — animated expand, items become yellow pills */
	.idx-mega {
		position: static;
		transform: none;
		width: auto;
		visibility: visible;
		background: transparent;
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
		border: 0;
		box-shadow: none;
		padding: 0;
		display: block;
		max-height: 0;
		opacity: 0;
		overflow: hidden;
		transition: max-height .4s cubic-bezier(.4, 0, .2, 1), opacity .35s ease, margin .35s ease;
	}

	.idx-mega::before { display: none; }
	/* Open to a height just above the real content (~300px) so the reveal maps to
	   the actual cards across the whole duration — smooth open, no empty overshoot. */
	.idx-nav__has-mega.is-open .idx-mega { max-height: 380px; opacity: 1; margin-top: 12px; }

	/* The desktop hover/focus rule sets transform: translateX(-50%); on a phone the
	   Proizvodi link focuses on tap → :focus-within → the panel jumps left on the
	   first open. Neutralise that transform (and opacity leak) on mobile. */
	.idx-nav__has-mega:hover .idx-mega,
	.idx-nav__has-mega:focus-within .idx-mega { transform: none !important; }
	.idx-nav__has-mega:focus-within:not(.is-open) .idx-mega { opacity: 0; }

	/* High specificity (html body … .idx-products-menu-wrapper) so these beat the
	   responsive product-card rules that also target the same cards on mobile. */
	html body .idx-mega .idx-products-menu-wrapper,
	html body .idx-mega .idx-products-menu-wrapper .idx-products-grid {
		display: flex !important;
		flex-direction: column !important;
		flex-wrap: nowrap !important;
		gap: 12px !important;
		max-width: none !important;
	}

	html body .idx-mega .idx-products-menu-wrapper a.idx-card {
		aspect-ratio: auto !important;
		flex: 0 0 auto !important;
		width: 100% !important;
		min-width: 0 !important;
		max-width: none !important;
		background: var(--idx-yellow) !important;
		border: 1px solid var(--idx-yellow) !important;
		box-shadow: none !important;
		border-radius: var(--idx-radius) !important;
		min-height: 0 !important;
		padding: 0 !important;
		transition: background-color .3s ease, color .3s ease, border-color .3s ease !important;
	}
	/* Button-style hover, matching the site's primary buttons */
	html body .idx-mega .idx-products-menu-wrapper a.idx-card:hover {
		background: rgba(0, 0, 0, .6) !important;
		border-color: var(--idx-yellow) !important;
	}
	html body .idx-mega .idx-products-menu-wrapper a.idx-card:hover .idx-card-title { color: var(--idx-yellow) !important; }
	/* Current product pill: black outline marker */
	html body .idx-mega .idx-products-menu-wrapper a.idx-card.is-current { outline: 2px solid #000 !important; outline-offset: -2px; }

	html body .idx-mega .idx-products-menu-wrapper a.idx-card .idx-card-img-wrap,
	html body .idx-mega .idx-products-menu-wrapper a.idx-card .idx-card-desc,
	html body .idx-mega .idx-products-menu-wrapper a.idx-card .idx-card-link { display: none !important; }

	html body .idx-mega .idx-products-menu-wrapper a.idx-card .idx-card-body {
		position: static !important;
		padding: 16px 24px !important;
		min-height: 0 !important;
		display: block !important;
	}

	html body .idx-mega .idx-products-menu-wrapper a.idx-card .idx-card-title {
		color: #000 !important;
		font-size: 15px !important;
		line-height: 1.25 !important;
		min-height: 0 !important;
		margin: 0 !important;
		text-align: center !important;
		display: block !important;
	}

	/* Availability note becomes a centered, contrasting dark pill on the yellow item */
	html body .idx-mega .idx-products-menu-wrapper a.idx-card .idx-avail-badge {
		display: block !important;
		width: fit-content !important;
		max-width: 100% !important;
		margin: 8px auto 0 !important;
		background: #000 !important;
		color: #fff !important;
		text-align: center !important;
		border-radius: var(--idx-radius) !important;
		font-size: 11px !important;
		line-height: 1.3 !important;
		padding: 7px 16px !important;
	}

	.idx-hero { padding-top: 130px; }
	.idx-section { padding: 55px 0; }
	.idx-cta-banner { padding: 60px 24px; }
	.idx-footer__top { flex-direction: column; }
	.idx-footer__socials { margin-top: 0; }
}

/* fr columns must not be stretched by their content (auto min-size) —
   otherwise opening a FAQ entry redistributes the column widths. */
.idx-program-grid > *,
.idx-cream-grid > *,
.idx-owner-grid > *,
.idx-faq-grid > * { min-width: 0; }

@media (max-width: 900px) {
	.idx-program-grid,
	.idx-cream-grid,
	.idx-owner-grid,
	.idx-faq-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 600px) {
	h1 { font-size: var(--idx-type-h1); }
	h2 { font-size: var(--idx-type-h2); }
	.idx-product-grid { grid-template-columns: 1fr; }
	html body .idx-avail-badge { font-size: 14px; padding: 8px 10px; }

	/* Footer centered on mobile: columns, links and copyright */
	.idx-footer__cols { grid-template-columns: 1fr; text-align: center; }
	.idx-footer__col ul a { max-width: 240px; margin: 0 auto; }
	.indexvm-contact-item { justify-content: center; }
	.idx-footer__bottom { flex-direction: column; align-items: center; text-align: center; gap: 10px; }
	.idx-footer__legal { justify-content: center; }
	.idx-footer__copy { font-size: 12px; }
	.idx-footer__brand { max-width: none; text-align: center; }
	.idx-footer__logo { margin-left: auto; margin-right: auto; }
	.idx-footer__socials { justify-content: center; }
}

/* ---- Remaining mobile refinements (≤767px) ---- */
@media (max-width: 767px) {
	.idx-mobile-break { display: block; }
	#poslovna-saradnja,
	#kontakt-info { scroll-margin-top: 70px; }

	/* Give every page's content a comfortable side margin like the Home hero */
	.idx-container { width: 88%; }

	/* Video section: stack — video as a banner, blur box below it (not overlapping) */
	.idx-video-section { padding: 0; }
	/* display:block kills the inline descender gap so the text block sits flush
	   against the video banner above it. */
	.idx-video-section video {
		position: static;
		display: block;
		width: calc(100% + 50px);
		max-width: none;
		transform: translateX(-50px);
		height: 240px;
		/* Reframe the crop 50px to the right without widening the viewport. */
		object-position: calc(50% + 50px) center;
	}
	.idx-video-section > .idx-container { width: 100%; padding: 0; }
	.idx-video-section .idx-blur-box {
		max-width: none;
		border-radius: 0;
		background: #1a1a1a;
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
		padding: 32px 6%;
	}
	/* MODDUS logo balloon floats at the bottom-right of the VIDEO banner
	   (video is 240px tall), not pinned to the bottom of the whole section. */
	.idx-video-logo {
		top: 175px;
		bottom: auto;
		right: 10px;
		width: min(130px, 42vw);
		padding: 5px 5px;
	}

	/* Moddus hero: drop the yellow badge lower so the product shows */
	.idx-hero-badge { margin-top: 40px; }

	/* Expanding CTA never spans the very edges even when zoomed */
	.idx-cta-banner { border-radius: 16px; }
}

/* ===== Floating TOC panel (units-toc) — used on product pages e.g. OG Max IP44 ===== */
.units-toc.toc-outside{
  pointer-events: none;
}
.units-toc.toc-outside.active{
  transform: translateX(calc(-100% + var(--tab) - 1px));
}
/* TOC naslov */
.units-toc p,
.units-toc p strong{
  color: #000000 !important;
}
/* lista i bulleti */
.units-toc ul{
  margin: 0;
  padding-left: 18px;
}
.units-toc li{
  color: #ffcc00 !important; /* bullet */
  margin: 0 0 8px;
}
/* linkovi ostaju crni kao tekst sa desne strane */
.units-toc li a{
  color: #000000 !important;
  text-decoration: none;
  font-weight: 400;
  line-height: 1.45;
}
.units-toc li a:hover{
  color: #000000 !important;
  text-decoration: underline;
}
/* settings */
:root{
  --toc-width: 350px;      /* panel width */
  --top-offset: 180px;     /* header offset */
  --tab: 50px;             /* width of the vertical "Svi proizvodi" tab */
}
/* panel (closed by default) */
.units-toc{
  position: fixed;
  top: var(--top-offset);
  left: -50px;
  width: var(--toc-width);
  max-height: calc(100vh - var(--top-offset) - 20px);
  box-sizing: border-box;
  background:#fff;
  border:1px solid #eee;
  border-radius: 0 20px 20px 0;
  box-shadow: 0 6px 24px rgba(0,0,0,.12);
  padding: 20px;
  z-index: 9999999;
  transform: translateX(calc(-100% + var(--tab) - 1px));
  pointer-events: none;
  transition: transform .28s ease;
  overflow: visible;
}
/* opened */
.units-toc.active{
  transform: none;
  pointer-events: auto;
  left:0px;
  z-index: 9999999;
}
/* the vertical "Svi proizvodi" tab */
.units-toc::after{
  position:absolute;
  top:.75rem;
  right: calc(-1 * var(--tab));
  width: var(--tab);
  display:flex; align-items:center; justify-content:center;
  background:#fff;
  border:1px solid #eee; border-left:none;
  border-radius:0 10px 10px 0;
  box-shadow:3px 2px 8px rgba(0,0,0,.05);
  color:#000000;
  font-weight:600;
  font-size:.92rem;
  line-height:1.05;
  writing-mode: sideways-lr; text-orientation: mixed;
  padding:.25rem .1rem;
  content: "Svi\A proizvodi \25BC";     /* ▼ */
  white-space: pre;
  cursor: pointer;
  pointer-events: auto;
}
/* when open, show ▲ only */
.units-toc.active::after{
  content:"\25B2";
  height:var(--tab);
}
html[lang^="en"] .units-toc::after{
  content: "All\A products \25BC";
}
html[lang^="en"] .units-toc.active::after{
  content: "\25B2";
}
@media (max-width: 980px) {
  :root{
    --tab: 26px;
  }
  .units-toc::after{
    font-size:.72rem;
  }
  .units-toc{
    left: -50px;
  }
}
/* Pulse efekat za TOC tab */
.units-toc.toc-pulse::after{
  animation: tocPulse 1.2s ease-in-out 3;
}
@keyframes tocPulse{
  0%{
    transform: scale(1);
    box-shadow: 3px 2px 8px rgba(0,0,0,.05), 0 0 0 0 rgba(255, 204, 0, 0.55);
  }
  35%{
    transform: scale(1.08);
    box-shadow: 3px 2px 8px rgba(0,0,0,.08), 0 0 0 10px rgba(255, 204, 0, 0.18);
  }
  70%{
    transform: scale(1.03);
    box-shadow: 3px 2px 8px rgba(0,0,0,.06), 0 0 0 16px rgba(255, 204, 0, 0);
  }
  100%{
    transform: scale(1);
    box-shadow: 3px 2px 8px rgba(0,0,0,.05), 0 0 0 0 rgba(255, 204, 0, 0);
  }
}

/* ===========================================================================
   Touch targets — on touch/mobile widths lift interactive controls to the
   44px minimum (Apple HIG / Material) and remove the 300ms tap delay.
   Desktop is untouched.
   =========================================================================== */
a, button, summary, .idx-nav-toggle, input[type="checkbox"] { touch-action: manipulation; }

@media (max-width: 860px) {
	/* Primary buttons: a touch more vertical padding → ≥44px */
	.idx-btn,
	.wp-block-button__link.idx-btn-yellow,
	.idx-btn-yellow .wp-block-button__link {
		padding-top: 14px;
		padding-bottom: 14px;
		min-height: 44px;
	}
}

/* ===========================================================================
   Visible keyboard focus (WCAG 2.4.7) — was missing site-wide. Only shows for
   keyboard/AT users (:focus-visible), never on mouse click.
   =========================================================================== */
:focus-visible { outline: 3px solid var(--idx-yellow); outline-offset: 2px; }
/* On yellow / light surfaces the ring must be dark to stay visible */
.idx-btn:focus-visible,
.wp-block-button__link.idx-btn-yellow:focus-visible,
.idx-btn-yellow .wp-block-button__link:focus-visible,
.idx-btn--white:focus-visible,
.idx-avail-badge:focus-visible,
.idx-nav__list > li.idx-nav__cta > a:focus-visible,
a.idx-card:focus-visible { outline-color: #000; }
.idx-contact-form input:focus-visible,
.idx-contact-form textarea:focus-visible { outline: 3px solid var(--idx-yellow); outline-offset: 1px; }

@media (max-width: 860px) {
	/* (touch-target block continues) */
	.idx-form-submit .idx-btn--white { padding-top: 18px; padding-bottom: 18px; }

	/* Arrow / text-link CTAs: compact mobile tap box, text centred */
	.idx-card-link,
	.idx-footer__col ul a {
		min-height: 34px;
	}

	/* Catalog "Detaljnije" — expand its tap area to 44px */
	.idx-catalog-card .idx-more {
		min-height: 44px;
		padding-top: 7px;
	}
}

/* ===========================================================================
   Small-desktop typography — between the mobile breakpoint and the full desktop
   the fixed heading/body sizes were proportionally too large (text swallowed the
   screen, nav wrapped). Scale everything down so the layout reads like the wide
   desktop reference. Large desktop (>1300px) is untouched.
   =========================================================================== */
@media (min-width: 861px) and (max-width: 1349px) {
	p { font-size: var(--idx-type-body); line-height: 1.6; }
	.idx-card-link { font-size: 14px; }
	.idx-blur-box p { font-size: 13px; }
	.idx-footer,
	.idx-footer p { font-size: 14px; }
	h1 { font-size: var(--idx-type-h1); }
	h2 { font-size: var(--idx-type-h2); }
	h3 { font-size: var(--idx-type-h3); }
	.idx-display-5vw { font-size: clamp(28px, 3.5vw, 44px); }
	/* Centered section headings (inline max-width) narrower on small desktop.
	   Large desktop keeps the wider inline value (e.g. idx-h2-xl at 1100px). */
	h3[style*="max-width"] { max-width: 700px !important; }
	.idx-h2-xl[style*="max-width"] { max-width: 700px !important; }
	.idx-catalog-card { padding: 20px; }
	h4 { font-size: var(--idx-type-h4); }

	.idx-hero__lead { font-size: 13px; }
	.idx-h2-xl { font-size: clamp(30px, 3.9vw, 50px) !important; }
	.idx-display { font-size: clamp(26px, 3.4vw, 46px) !important; }

	/* Menu: smaller font + tighter gap so all items + CTA stay on one line */
	.idx-nav__list { gap: 20px; }
	.idx-nav__list > li > a { font-size: 14px; }
	.idx-nav__list > li.idx-nav__cta > a { white-space: nowrap; font-size: 14px; }

	/* Buttons: smaller type + padding */
	.idx-btn,
	.idx-btn-yellow .wp-block-button__link,
	.wp-block-button__link.idx-btn-yellow {
		font-size: 14px;
		padding: 11px 30px 11px 20px;
	}
	.idx-btn--lg { font-size: 15px; }

	/* FAQ: smaller question type + tighter padding, compact like mobile */
	.idx-faq summary { font-size: 14px; padding: 14px 40px 14px 18px; }
	.idx-faq details[open] summary { padding: 16px 40px 16px 18px; }
	.idx-faq .idx-faq__body { padding: 0 18px 16px 18px; font-size: 14px; }

	.idx-card .idx-avail-badge { font-size: 14px; }

	/* Product detail + specs + variants + TOC — tuned sizes on small desktop */
	.idx-specs li { font-size: 14px; }
	.units-toc::after { font-size: 13px; }
	.idx-variant h4 { font-size: 16px; }
	.idx-variant p { font-size: 12px; }
	.idx-detail-row > div:not(.idx-variant-pair) > p:nth-of-type(2) { font-size: 18px; }
	.idx-detail-row h3 { font-size: 20px; }
}

/* Availability badge is oversized inside the small product cards on phones */
@media (max-width: 767px) {
	.idx-card .idx-avail-badge {
		font-size: 13px;
		padding: 8px 12px;
		line-height: 1.3;
	}
	.idx-card-link { font-size: 14px; }
	html body .idx-products-menu-wrapper a.idx-card .idx-card-link {
		font-size: 12px !important;
		padding-bottom: 0 !important;
	}
}
