/* =========================================================================
 * Z DIZAJN - header and footer
 *
 * The header is Prague's own markup ("simple" style: logo left, inline nav
 * right, sticky) restyled from the tokens - its sticky and mobile-menu JS is
 * wired to that DOM, so replacing it would cost more than it buys. The footer
 * is the child theme's own template (footer.php).
 *
 * Header colour works off one local variable, --zd-header-fg. Prague paints
 * the logo, the links and the burger from three different selectors; setting
 * the variable once per state keeps the transparent-over-hero and the
 * scrolled state from turning into a specificity fight.
 * ====================================================================== */

/* -------------------------------------------------------------------------
 * Preloader
 *
 * The theme's overlay is taken away by JavaScript (see js/preloader.js for
 * why that alone is not enough). This is the last resort: if no script runs
 * at all, the overlay still clears itself, so a broken bundle can never leave
 * a visitor looking at a blank white screen.
 * ---------------------------------------------------------------------- */

.prague-loader {
	animation: zd-loader-release 0.4s ease 3s forwards;
}

@keyframes zd-loader-release {
	to {
		opacity: 0;
		visibility: hidden;
	}
}

@media (prefers-reduced-motion: reduce) {
	.prague-loader {
		animation-duration: 0.01s;
	}
}

/* -------------------------------------------------------------------------
 * Wordmark
 * ---------------------------------------------------------------------- */

.zd-wordmark {
	display: inline-flex;
	align-items: baseline;
	gap: 0.4em;
	line-height: 1;
	white-space: nowrap;
}

/* The logo now carries the wordmark itself, so it stands taller than the old
   mark did next to its text - 1.9em was sized for a lockup that had a second
   half. */
.zd-wordmark__mark {
	width: auto;
	height: 2.5em;
	display: block;
}

/* The light twin shows on dark grounds, the original on light ones.
   Prague marks the header with the colour of its own contents: .light means
   light text over a dark hero, .dark means dark text over a light one - so the
   twin follows that class, not merely "the header has not scrolled yet". The
   Fine Art page is the case that gives it away: its hero is ivory, and the
   light twin all but disappeared on it. Once scrolled the header is solid and
   pale, so the original is right again. */
.zd-wordmark__mark--light {
	display: none;
}

.prague-header:not(.scroll).light .zd-wordmark__mark--dark,
.zd-footer .zd-wordmark__mark--dark {
	display: none;
}

.prague-header:not(.scroll).light .zd-wordmark__mark--light,
.zd-footer .zd-wordmark__mark--light {
	display: block;
}

/* Potpis stoji na optičkoj sredini logotipa, ne na baseline-u: slova
   "design" u logu sjede nisko, a rukopis bi inače "visio" ispod njih. */
.zd-wordmark__sign {
	width: auto;
	height: 1.9em;
	display: block;
	align-self: center;
	margin-left: 0.2em;
}

@media only screen and (max-width: 767px) {
	.zd-wordmark__sign {
		height: 1.5em;
	}
}

.zd-wordmark__name {
	font-family: var(--zd-font-display);
	font-size: 1em;
	font-weight: 400;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

/* -------------------------------------------------------------------------
 * Header
 * ---------------------------------------------------------------------- */

.prague-header {
	--zd-header-fg: var(--zd-chalk);

	padding: var(--zd-space-md) var(--zd-gutter);
	transition: background-color var(--zd-dur) var(--zd-ease),
		padding var(--zd-dur) var(--zd-ease),
		box-shadow var(--zd-dur) var(--zd-ease);
}

/* Prague's own naming: .dark means dark type on a light page. */
.prague-header.dark {
	--zd-header-fg: var(--zd-graphite);
}

/* Transparent over a photograph, the bar needs its own ground under the type
   - a scrim rather than a panel, so the hero still reads as full bleed. */
.prague-header.absolute::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 180px;
	background: linear-gradient(180deg, rgba(12, 10, 8, 0.55) 0%, rgba(12, 10, 8, 0) 100%);
	pointer-events: none;
	transition: opacity var(--zd-dur) var(--zd-ease);
}

.prague-header.absolute.scroll::before {
	opacity: 0;
}

/* Pages that open on a light band carry dark type in the bar, and that type
   still has to cross the photograph on the right-hand side of the band - so
   the scrim is flipped rather than dropped. */
.prague-header.dark.absolute::before {
	background: linear-gradient(180deg, rgba(232, 227, 218, 0.92) 0%, rgba(232, 227, 218, 0.55) 55%, rgba(232, 227, 218, 0) 100%);
	height: 150px;
}

/* Past 50px the theme adds .scroll - that is where the bar earns a ground.
   Prague paints that state black from a five-class selector
   (.prague-header.simple.sticky-menu.light.scroll { background: #111 }), so
   ours has to match its weight; being later in the cascade wins the tie. The
   symptom was a black bar as soon as you scrolled - on the phone first,
   because a full-page screenshot is always taken from the top. */
/* 01.10.2026.: ljepljivo zaglavlje je crni gradijent sa svijetlim tekstom na
   SVIM stranicama. Prije je bilo svijetlo (bone), a na stranicama s tamnim
   herojem (.light) Pragueova pravila za bijeli tekst su ostajala - bijela slova
   i ikone na svijetloj traci, nevidljivo. Tamna traka ne ovisi o tome kakva je
   stranica ispod. */
.prague-header.simple.sticky-menu.light.scroll,
.prague-header.simple.sticky-menu.dark.scroll,
.prague-header.scroll {
	--zd-header-fg: var(--zd-chalk);

	background-color: transparent;
	background-image: linear-gradient(180deg, rgba(12, 10, 8, 0.95) 0%, rgba(12, 10, 8, 0.86) 70%, rgba(12, 10, 8, 0.78) 100%);
	padding-top: var(--zd-space-xs);
	padding-bottom: var(--zd-space-xs);
	box-shadow: 0 1px 0 rgba(245, 242, 236, 0.08);
	backdrop-filter: blur(8px);
}

/* Na tamnoj traci uvijek svijetla inačica loga i svijetla slova - i na
   stranicama koje inače nose tamni tekst (.dark). */
.prague-header.scroll .zd-wordmark__mark--dark {
	display: none;
}

.prague-header.scroll .zd-wordmark__mark--light {
	display: block;
}

.prague-header.dark.scroll .main-menu li a,
.prague-header.light.scroll .main-menu li a,
.prague-header.scroll .main-menu li a {
	color: var(--zd-chalk);
}

.prague-header .prague-logo a,
.prague-header.light .prague-logo a,
.prague-header.dark .prague-logo a {
	font-family: var(--zd-font-display);
	font-size: 20px;
	font-weight: 400;
	letter-spacing: 0;
	color: var(--zd-header-fg);
}

.prague-header .prague-logo a:hover {
	color: var(--zd-bronze-light);
}

.prague-header.scroll .prague-logo a:hover {
	color: var(--zd-bronze-light);
}

/* --- nav ---------------------------------------------------------------- */

.prague-header .main-menu {
	display: flex;
	align-items: center;
	gap: clamp(var(--zd-space-md), 2.2vw, var(--zd-space-xl));
	margin: 0;
	padding: 0;
	list-style: none;
}

.prague-header .main-menu > li {
	margin: 0;
}

.prague-header .main-menu li a,
.prague-navigation .main-menu li a {
	font-family: var(--zd-font-body);
	font-size: var(--zd-size-label);
	font-weight: var(--zd-weight-label);
	line-height: 1;
	letter-spacing: var(--zd-track-label);
	text-transform: uppercase;
	color: var(--zd-header-fg);
	padding: var(--zd-space-2xs) 0;
	position: relative;
}

.prague-header .main-menu li a:hover,
.prague-navigation .main-menu li a:hover {
	color: var(--zd-bronze-light);
}

.prague-header.dark:not(.scroll) .main-menu li a:hover {
	color: var(--zd-bronze);
}

.prague-header.scroll .main-menu li a:hover {
	color: var(--zd-bronze-light);
}

/* The page drawings of 11.08. mark the current page in bronze rather than
   underlining it. */
.prague-header .main-menu > li.current-menu-item > a,
.prague-header .main-menu > li.current_page_item > a,
.prague-header.scroll .main-menu > li.current-menu-item > a,
.prague-header.scroll .main-menu > li.current_page_item > a {
	color: var(--zd-bronze-light);
}

/* The pale bronze is for dark grounds; on a light page it disappears. */
.prague-header.dark:not(.scroll) .main-menu > li.current-menu-item > a,
.prague-header.dark:not(.scroll) .main-menu > li.current_page_item > a {
	color: var(--zd-bronze);
}

.prague-header.scroll .main-menu > li.current-menu-item > a,
.prague-header.scroll .main-menu > li.current_page_item > a {
	color: var(--zd-bronze-light);
}

/* CONTACT sits in a box - the one call to action in the bar. */
.prague-header .main-menu > li.zd-nav-cta > a {
	border: 1px solid color-mix(in srgb, currentColor 45%, transparent);
	padding: var(--zd-space-xs) var(--zd-space-md);
	transition: background-color var(--zd-dur-fast) var(--zd-ease),
		color var(--zd-dur-fast) var(--zd-ease),
		border-color var(--zd-dur-fast) var(--zd-ease);
}

.prague-header .main-menu > li.zd-nav-cta > a:hover {
	background-color: var(--zd-chalk);
	border-color: var(--zd-chalk);
	color: var(--zd-ink);
}

.prague-header.dark:not(.scroll) .main-menu > li.zd-nav-cta > a:hover {
	background-color: var(--zd-ink);
	border-color: var(--zd-ink);
	color: var(--zd-bone);
}

.prague-header .main-menu > li.zd-nav-cta > a::after {
	display: none;
}

/* --- burger ------------------------------------------------------------- */

.prague-nav-menu-icon a {
	border: 1px solid color-mix(in srgb, var(--zd-header-fg) 35%, transparent);
	color: var(--zd-header-fg);
}

.prague-nav-menu-icon a i,
.prague-nav-menu-icon a i::before,
.prague-nav-menu-icon a i::after {
	background-color: var(--zd-header-fg);
}

/* Na tamnoj ljepljivoj traci uvijek svijetli - Prague na .dark stranicama
   crta crtice crnom bojom jačim selektorom. */
.prague-header.dark.scroll .prague-nav-menu-icon a,
.prague-header.light.scroll .prague-nav-menu-icon a {
	border-color: rgba(245, 242, 236, 0.45);
	color: var(--zd-chalk);
}

.prague-header.dark.scroll .prague-nav-menu-icon a i,
.prague-header.dark.scroll .prague-nav-menu-icon a i::before,
.prague-header.dark.scroll .prague-nav-menu-icon a i::after,
.prague-header.light.scroll .prague-nav-menu-icon a i,
.prague-header.light.scroll .prague-nav-menu-icon a i::before,
.prague-header.light.scroll .prague-nav-menu-icon a i::after {
	background-color: var(--zd-chalk);
}

.prague-nav-menu-icon a:hover {
	border-color: var(--zd-header-fg);
}

/* --- header socials -----------------------------------------------------
 * The client's header has no social icons - Prague renders them as a small
 * boxed toggle next to the burger, which reads as a stray button. Hidden
 * rather than switched off in Theme Options, because the same setting feeds
 * the footer, where the icons are wanted.
 * ---------------------------------------------------------------------- */

.prague-header .prague-social-nav {
	display: none;
}

.prague-header .prague-social-nav a {
	color: var(--zd-header-fg);
	font-size: 13px;
}

.prague-header .prague-social-nav a:hover {
	color: var(--zd-bronze-light);
}

.prague-header.scroll .prague-social-nav a:hover {
	color: var(--zd-bronze);
}

/* --- open mobile / overlay menu ---------------------------------------- */

.prague-header.open-menu,
.prague-header.light.open-menu,
.prague-header.dark.open-menu {
	background-color: var(--zd-ink);
	--zd-header-fg: var(--zd-chalk);
}

/* Only the slide-out panel gets a ground. Unscoped, this painted an ink box
   behind the desktop navigation - the mockup's header is transparent over the
   hero the whole way across. */
.prague-header.open-menu .topmenu,
.prague-header.open-menu .pargue-navigation-wrapper {
	background-color: var(--zd-ink);
}

/* The slide-out panel, owned outright.
 *
 * Prague paints it from the header's own variant, and the two disagree: under
 * 1199px `.prague-header.light:not(.left):not(.easy_style)` gives the panel a
 * white ground AND black links, while the wrapper inside it is ink - so on
 * every page that opens on a photograph the menu came out black on black.
 * These selectors carry the same weight as Prague's and come later, so the
 * panel is ink with chalk type whatever variant the bar is in. */
@media only screen and (max-width: 1118px) {
	.topmenu,
	.prague-navigation,
	.prague-navigation .pargue-navigation-wrapper,
	.prague-header.light:not(.left):not(.easy_style) .prague-navigation,
	.prague-header.dark:not(.left):not(.easy_style) .prague-navigation {
		background-color: var(--zd-ink);
	}

	.prague-header .main-menu li a,
	.prague-header.light:not(.left):not(.easy_style) .main-menu li a,
	.prague-header.dark:not(.left):not(.easy_style) .main-menu li a {
		color: var(--zd-chalk);
	}

	/* The page you are on keeps its bronze inside the panel too. */
	.prague-header.light:not(.left):not(.easy_style) .main-menu > li.current-menu-item > a,
	.prague-header.dark:not(.left):not(.easy_style) .main-menu > li.current-menu-item > a,
	.prague-header.light:not(.left):not(.easy_style) .main-menu > li.current_page_item > a,
	.prague-header.dark:not(.left):not(.easy_style) .main-menu > li.current_page_item > a {
		color: var(--zd-bronze-light);
	}
}

@media only screen and (max-width: 1118px) {
	.prague-header .main-menu {
		flex-direction: column;
		align-items: flex-start;
		gap: var(--zd-space-md);
	}

	.prague-header .main-menu li a,
	.prague-navigation .main-menu li a {
		--zd-header-fg: var(--zd-chalk);

		font-size: var(--zd-size-small);
		letter-spacing: 0.12em;
	}
}

/* -------------------------------------------------------------------------
 * Footer
 *
 * Drawn to the client's sketch of 01.10.2026: three columns split by bronze
 * hairlines, a bronze rule, and one low line with the copyright left and the
 * legal links right. Type is normal case here - the sketch drops the tracked
 * capitals of the earlier band, and an address or a phone number reads better
 * without them.
 * ---------------------------------------------------------------------- */

.zd-footer {
	/* The band is dark but does not carry .zd-dark, so these are .zd-dark's
	   own values, scoped to the footer. */
	--zd-fg-muted: rgba(245, 242, 236, 0.72);
	--zd-f-rule: var(--zd-bronze);

	padding: clamp(2.5rem, 3.6vw, 3.5rem) var(--zd-gutter) clamp(1.5rem, 2vw, 2rem);
	background-color: #131311;
	color: var(--zd-chalk);
	font-family: var(--zd-font-body);
	font-size: var(--zd-size-body);
	line-height: 1.6;
}

/* base.css colours `p, li` with the light-mode ink; the band has to say its
   own colours or the text comes out near-black on near-black. */
.zd-footer p,
.zd-footer li {
	margin: 0;
	color: inherit;
	line-height: 1.6;
}

.zd-footer__grid {
	max-width: var(--zd-container, 1320px);
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: start;
}

.zd-footer__col {
	padding: 0.25rem clamp(1.5rem, 4vw, 4.5rem);
}

.zd-footer__col:first-child {
	padding-left: 0;
}

.zd-footer__col + .zd-footer__col {
	border-left: 1px solid var(--zd-f-rule);
}

.zd-footer__logo {
	display: inline-block;
	font-size: 1.25rem;
	color: var(--zd-chalk);
	line-height: 1;
}

.zd-footer__tagline {
	margin-top: 1rem !important;
	font-size: 1.0625rem;
	letter-spacing: 0.04em;
	color: var(--zd-bronze-light) !important;
}

.zd-footer__tagline span {
	margin: 0 0.45em;
	font-size: 0.75em;
	vertical-align: 0.1em;
}

.zd-footer__social {
	display: flex;
	flex-wrap: wrap;
	margin: 1.25rem 0 0;
	padding: 0;
	list-style: none;
}

/* The separator is drawn before every item but the first, so a wrapped
   line never starts with a stray mark. */
.zd-footer__social li + li::before {
	content: "\00b7";
	margin: 0 0.6em;
	color: var(--zd-fg-muted);
}

.zd-footer__heading {
	margin-bottom: 0.75rem !important;
	font-weight: 500;
	font-size: 1.0625rem;
	color: var(--zd-chalk);
}

.zd-footer__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.zd-footer__list li + li {
	margin-top: 0.3rem;
}

.zd-footer a {
	color: var(--zd-chalk);
	transition: color var(--zd-dur) var(--zd-ease);
}

.zd-footer a:hover {
	color: var(--zd-bronze-light);
}

.zd-footer__list--underlined a {
	text-decoration: underline;
	text-decoration-color: rgba(245, 242, 236, 0.4);
	text-underline-offset: 0.22em;
}

.zd-footer__list--underlined a:hover {
	text-decoration-color: currentColor;
}

/* --- bottom line -------------------------------------------------------- */

.zd-footer__bottom {
	max-width: var(--zd-container, 1320px);
	margin: clamp(2rem, 3vw, 2.75rem) auto 0;
	padding-top: 1.25rem;
	border-top: 1px solid var(--zd-f-rule);
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 0.75rem 2rem;
	font-size: var(--zd-size-small);
	color: var(--zd-fg-muted);
}

.zd-footer__credit {
	margin-left: 1.25em;
	white-space: nowrap;
}

.zd-footer__credit a {
	color: inherit;
}

.zd-footer__legal {
	display: flex;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	list-style: none;
}

.zd-footer__legal li + li::before {
	content: "\00b7";
	margin: 0 0.8em;
}

.zd-footer__legal a {
	color: var(--zd-fg-muted);
}

@media only screen and (max-width: 991px) {
	.zd-footer__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		row-gap: 2.25rem;
	}

	/* The brand takes the whole first row; Kontakt and Informacije o kupnji
	   share the second, still split by their hairline. */
	.zd-footer__brand {
		grid-column: 1 / -1;
	}

	.zd-footer__brand + .zd-footer__col {
		padding-left: 0;
		border-left: 0;
	}
}

@media only screen and (max-width: 600px) {
	.zd-footer__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	/* Stacked, the hairlines turn horizontal. */
	.zd-footer__col,
	.zd-footer__col + .zd-footer__col {
		padding: 1.75rem 0 0;
		border-left: 0;
	}

	.zd-footer__col + .zd-footer__col {
		border-top: 1px solid var(--zd-f-rule);
	}

	.zd-footer__brand {
		padding-top: 0;
	}

	.zd-footer__grid {
		row-gap: 1.75rem;
	}

	.zd-footer__list li + li {
		margin-top: 0.5rem;
	}

	.zd-footer__bottom {
		flex-direction: column;
	}

	/* Three links do not fit one phone line, and a wrapped line would start
	   with its separator - so they stack instead. */
	.zd-footer__legal {
		flex-direction: column;
		gap: 0.35rem;
	}

	.zd-footer__legal li + li::before {
		content: none;
	}

	.zd-footer__credit {
		display: block;
		margin: 0.25rem 0 0;
	}
}

/* -------------------------------------------------------------------------
 * Košarica u glavnom izborniku
 *
 * Stavka se ispisuje skrivena (`hidden`) i JS je otkrije kad u košarici ima
 * nečega - vidi inc/cart-badge.php. Boju nasljeđuje od izbornika, pa radi i na
 * svijetlom i na tamnom zaglavlju bez posebnih pravila.
 * ---------------------------------------------------------------------- */

.zd-cart[hidden] {
	display: none;
}

/* Prague postavlja `.main-menu li a { display: inline-block }` i to je jače od
   pukog `.zd-cart > a`, pa je poveznica ostajala široka 19px i broj je padao u
   drugi red ispod ikone. Klasa se ponavlja da nadjača tu specifičnost bez
   !important i bez oslanjanja na ime kontejnera (mobilni izbornik ga mijenja). */
.zd-cart.zd-cart > a {
	display: inline-flex;
	align-items: center;
	gap: 0.45em;
	line-height: 1;
	white-space: nowrap;
}

/* Odmak od zadnje stavke izbornika, koja je uokvireni „Kontakt". */
.zd-cart {
	margin-left: 0.6em;
}

.zd-cart__icon {
	display: block;
	flex: none;
}

/* Broj stoji uz ikonu, ne kao klasični crveni balončić - na ovoj stranici bi
   to bio jedini vrisak boje u cijelom zaglavlju. */
.zd-cart__count {
	font-family: var(--zd-font-body);
	font-size: 0.68rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	min-width: 1.35em;
	height: 1.35em;
	padding: 0 0.3em;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: var(--zd-bronze, #8a6626);
	color: var(--zd-chalk, #f2eee7);
	font-variant-numeric: tabular-nums;
}

.zd-cart.is-bumped .zd-cart__icon {
	animation: zd-cart-bump 1.6s ease;
}

/* Bljesak kad se nešto doda (01.10.2026.): ikona poskoči i triput zasvijetli
   broncom, a broj zatitra prstenom - dovoljno da se primijeti krajičkom oka,
   ne toliko da izgleda kao reklama. */
.zd-cart.is-bumped .zd-cart__count {
	animation: zd-cart-ring 1.6s ease;
}

@keyframes zd-cart-bump {
	0%, 100% { transform: none; color: inherit; }
	12%      { transform: translateY(-3px) scale(1.2); color: var(--zd-bronze-light, #c8ae85); }
	30%      { transform: none; color: inherit; }
	45%      { color: var(--zd-bronze-light, #c8ae85); }
	60%      { color: inherit; }
	75%      { color: var(--zd-bronze-light, #c8ae85); }
}

@keyframes zd-cart-ring {
	0%   { box-shadow: 0 0 0 0 rgba(200, 174, 133, 0.9); }
	35%  { box-shadow: 0 0 0 7px rgba(200, 174, 133, 0); }
	36%  { box-shadow: 0 0 0 0 rgba(200, 174, 133, 0.9); }
	70%  { box-shadow: 0 0 0 7px rgba(200, 174, 133, 0); }
	100% { box-shadow: 0 0 0 0 rgba(200, 174, 133, 0); }
}

@media (prefers-reduced-motion: reduce) {
	.zd-cart.is-bumped .zd-cart__icon,
	.zd-cart.is-bumped .zd-cart__count { animation: none; }
}
