/* ==========================================================================
   Glava / meni – prodaja vstopnic (inc/af-header.php)
   ========================================================================== */

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url("fonts/inter-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url("fonts/inter-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.af-hdr {
	--hdr-red: #e00000;
	--hdr-red-d: #b40000;
	--hdr-ink: #121212;
	--hdr-soft: #4d4642;
	--hdr-muted: #6f6660;
	--hdr-hover: #f4f3f1;
	--hdr-hair: rgba(18, 18, 18, 0.1);
	--hdr-h: 76px;

	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 1000;
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	background: rgba(255, 255, 255, 0.92);
	-webkit-backdrop-filter: saturate(1.6) blur(14px);
	backdrop-filter: saturate(1.6) blur(14px);
	border-bottom: 1px solid var(--hdr-hair);
	transition: box-shadow 0.25s ease;
	-webkit-font-smoothing: antialiased;
}
.af-hdr.is-scrolled { box-shadow: 0 10px 30px -22px rgba(18, 18, 18, 0.45); }
/* Rdeča nit na vrhu – podpis znamke */
.af-hdr::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 3px;
	background: var(--hdr-red);
}

.af-hdr *,
.af-hdr *::before,
.af-hdr *::after { box-sizing: border-box; }

.af-hdr__bar {
	display: flex;
	align-items: center;
	gap: 28px;
	max-width: 1200px;
	height: var(--hdr-h);
	margin: 0 auto;
	padding: 3px clamp(16px, 3vw, 24px) 0;
}

/* Logotip + oznaka */
.af-hdr .af-hdr-logo {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	flex: none;
	color: var(--hdr-ink);
	text-decoration: none;
}
.af-hdr .af-hdr-logo__img {
	display: block;
	width: auto;
	height: 38px;
	max-width: none;
}
.af-hdr-logo__tag {
	padding-left: 14px;
	border-left: 1px solid var(--hdr-hair);
	font-size: 12px;
	font-weight: 750;
	line-height: 30px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--hdr-ink);
}

/* Meni */
.af-hdr-nav {
	display: flex;
	align-items: center;
	flex: 1;
	min-width: 0;
}
.af-hdr .af-hdr-nav__list {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0 0 0 auto;
	padding: 0;
	list-style: none;
}
.af-hdr-nav__list li { margin: 0; }

.af-hdr .af-hdr-nav__link {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 42px;
	padding: 0 14px;
	border-radius: 8px;
	font-size: 14.5px;
	font-weight: 600;
	letter-spacing: -0.005em;
	color: var(--hdr-soft);
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}
.af-hdr .af-hdr-nav__link:hover { background: var(--hdr-hover); color: var(--hdr-ink); }
.af-hdr .af-hdr-nav__link.is-active { color: var(--hdr-ink); }
.af-hdr .af-hdr-nav__link.is-active::after {
	content: "";
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: -17px;
	height: 3px;
	border-radius: 3px 3px 0 0;
	background: var(--hdr-red);
}
.af-hdr .af-hdr-nav__link .af-hdr-ico { width: 18px; height: 18px; color: var(--hdr-muted); }
.af-hdr .af-hdr-nav__link--ext { color: var(--hdr-muted); }
.af-hdr .af-hdr-nav__link--ext .af-hdr-ico { width: 15px; height: 15px; }

/* Desno: košarica, blagajna, hamburger */
.af-hdr__actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: none;
	padding-left: 18px;
	border-left: 1px solid var(--hdr-hair);
}

.af-hdr .af-hdr-cart {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 44px;
	padding: 0 14px 0 10px;
	border-radius: 8px;
	font-size: 14.5px;
	font-weight: 650;
	color: var(--hdr-ink);
	text-decoration: none;
	transition: background-color 0.15s ease;
}
.af-hdr .af-hdr-cart:hover,
.af-hdr .af-hdr-cart.is-active { background: var(--hdr-hover); color: var(--hdr-ink); }
.af-hdr-cart__icon { position: relative; display: inline-flex; }
.af-hdr-cart__icon .af-hdr-ico { width: 22px; height: 22px; }
.af-hdr-cart__count {
	position: absolute;
	top: -6px;
	right: -9px;
	display: grid;
	place-items: center;
	min-width: 19px;
	height: 19px;
	padding: 0 5px;
	border: 2px solid #fff;
	border-radius: 999px;
	background: var(--hdr-red);
	color: #fff;
	font-size: 10.5px;
	font-weight: 800;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}
.af-hdr-cart__count.is-empty { background: #b9b2ac; }

.af-hdr .af-hdr-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 44px;
	padding: 0 18px;
	border-radius: 8px;
	background: var(--hdr-red);
	color: #fff;
	font-size: 14.5px;
	font-weight: 750;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.15s ease;
}
.af-hdr .af-hdr-cta:hover { background: var(--hdr-red-d); color: #fff; }
.af-hdr .af-hdr-cta .af-hdr-ico { width: 18px; height: 18px; transition: transform 0.2s ease; }
.af-hdr .af-hdr-cta:hover .af-hdr-ico { transform: translateX(3px); }
.af-hdr .af-hdr-cta--mobile { display: none; }

.af-hdr .af-hdr-burger {
	display: none;
	place-items: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 1px solid var(--hdr-hair);
	border-radius: 8px;
	background: #fff;
	color: var(--hdr-ink);
	cursor: pointer;
}
.af-hdr .af-hdr-burger:hover,
.af-hdr .af-hdr-burger:focus { background: var(--hdr-hover); color: var(--hdr-ink); }
.af-hdr-burger__lines,
.af-hdr-burger__lines span,
.af-hdr-burger__lines::before,
.af-hdr-burger__lines::after {
	display: block;
	width: 18px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: transform 0.25s ease, opacity 0.2s ease;
}
.af-hdr-burger__lines { position: relative; background: none; }
.af-hdr-burger__lines::before,
.af-hdr-burger__lines::after { content: ""; position: absolute; left: 0; }
.af-hdr-burger__lines::before { top: -6px; }
.af-hdr-burger__lines::after { top: 6px; }
.af-hdr.is-open .af-hdr-burger__lines span { opacity: 0; }
.af-hdr.is-open .af-hdr-burger__lines::before { transform: translateY(6px) rotate(45deg); }
.af-hdr.is-open .af-hdr-burger__lines::after { transform: translateY(-6px) rotate(-45deg); }

.af-hdr a:focus-visible,
.af-hdr button:focus-visible {
	outline: 3px solid var(--hdr-red);
	outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Mobilno: hamburger + panel čez stran
   ----------------------------------------------------------------------- */
@media (max-width: 899px) {
	.af-hdr { --hdr-h: 64px; -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }
	.af-hdr__bar { gap: 12px; }
	.af-hdr .af-hdr-logo__img { height: 32px; }
	.af-hdr-logo__tag { display: none; }
	.af-hdr__actions { margin-left: auto; padding-left: 0; border-left: 0; gap: 6px; }
	.af-hdr .af-hdr-cart { padding: 0 12px; }
	.af-hdr-cart__label,
	.af-hdr__actions .af-hdr-cta { display: none; }
	.af-hdr .af-hdr-burger { display: grid; }

	.af-hdr-nav {
		position: fixed;
		inset: calc(var(--hdr-h) + var(--wp-admin--admin-bar--height, 0px)) 0 0;
		z-index: 999;
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 20px;
		padding: 18px clamp(16px, 3vw, 24px) 28px;
		background: #fff;
		border-top: 1px solid var(--hdr-hair);
		overflow-y: auto;
		visibility: hidden;
		opacity: 0;
		transform: translateY(-8px);
		transition: opacity 0.2s ease, transform 0.25s ease, visibility 0s linear 0.25s;
	}
	.af-hdr.is-open .af-hdr-nav {
		visibility: visible;
		opacity: 1;
		transform: none;
		transition: opacity 0.2s ease, transform 0.25s ease;
	}
	.af-hdr .af-hdr-nav__list { flex-direction: column; align-items: stretch; gap: 0; margin: 0; }
	.af-hdr-nav__list li + li { border-top: 1px solid var(--hdr-hair); }
	.af-hdr .af-hdr-nav__link {
		width: 100%;
		height: 60px;
		padding: 0 4px;
		border-radius: 0;
		font-size: 19px;
		font-weight: 700;
		letter-spacing: -0.015em;
		color: var(--hdr-ink);
	}
	.af-hdr .af-hdr-nav__link:hover { background: none; color: var(--hdr-red); }
	.af-hdr .af-hdr-nav__link.is-active { color: var(--hdr-red); }
	.af-hdr .af-hdr-nav__link.is-active::after { display: none; }
	.af-hdr .af-hdr-nav__link .af-hdr-ico { order: 2; margin-left: auto; }
	.af-hdr .af-hdr-nav__link--ext { font-size: 16px; font-weight: 600; color: var(--hdr-muted); }
	.af-hdr .af-hdr-cta--mobile { display: inline-flex; justify-content: center; height: 54px; font-size: 16px; }
	html.af-hdr-locked { overflow: hidden; }
}

@media (prefers-reduced-motion: reduce) {
	.af-hdr *,
	.af-hdr-nav { transition: none !important; }
}

/* ==========================================================================
   Noga
   ========================================================================== */
.af-ftr {
	--ftr-red: #e00000;
	--ftr-ink: #121212;
	--ftr-soft: #4d4642;
	--ftr-muted: #6f6660;
	--ftr-hair: rgba(18, 18, 18, 0.1);

	margin-top: 0;
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	background: #fff;
	color: var(--ftr-soft);
	border-top: 1px solid var(--ftr-hair);
	-webkit-font-smoothing: antialiased;
}
.af-ftr *,
.af-ftr *::before,
.af-ftr *::after { box-sizing: border-box; }
.af-ftr__wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 24px); }

.af-ftr__cta { background: var(--ftr-ink); color: #fff; }
.af-ftr__cta-in {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px 40px;
	padding-top: clamp(28px, 4vw, 40px);
	padding-bottom: clamp(28px, 4vw, 40px);
}
.af-ftr .af-ftr__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 750;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #ff4a4a;
}
.af-ftr .af-ftr__eyebrow::before { content: ""; width: 24px; height: 3px; background: var(--ftr-red); }
.af-ftr .af-ftr__cta-title {
	max-width: 30ch;
	margin: 0;
	font-size: clamp(20px, 2.4vw, 26px);
	font-weight: 750;
	line-height: 1.25;
	letter-spacing: -0.02em;
	color: #fff;
	text-wrap: balance;
}
.af-ftr__cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.af-ftr .af-ftr-pill {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 50px;
	padding: 0 20px;
	border: 1.5px solid rgba(255, 255, 255, 0.28);
	border-radius: 10px;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}
.af-ftr .af-ftr-pill:hover { border-color: #fff; color: #fff; }
.af-ftr .af-ftr-pill--solid { background: var(--ftr-red); border-color: var(--ftr-red); }
.af-ftr .af-ftr-pill--solid:hover { background: #b40000; border-color: #b40000; }
.af-ftr-pill .af-hdr-ico { width: 18px; height: 18px; }

.af-ftr__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
	gap: 32px clamp(24px, 4vw, 56px);
	padding-top: clamp(40px, 5vw, 64px);
	padding-bottom: clamp(36px, 5vw, 56px);
}
.af-ftr .af-ftr-logo { display: inline-block; margin-bottom: 18px; }
.af-ftr .af-ftr-logo__img { display: block; width: auto; height: 40px; max-width: none; }
.af-ftr__brand p { max-width: 40ch; margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--ftr-muted); }

.af-ftr .af-ftr__title {
	margin: 0 0 16px;
	font-size: 12px;
	font-weight: 750;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ftr-ink);
}
.af-ftr__col ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.af-ftr__col li { margin: 0; }
.af-ftr .af-ftr__col a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14.5px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--ftr-soft);
	text-decoration: none;
	transition: color 0.15s ease;
}
.af-ftr .af-ftr__col a:hover { color: var(--ftr-red); }
.af-ftr__col .af-hdr-ico { width: 14px; height: 14px; }

.af-ftr__bottom { border-top: 1px solid var(--ftr-hair); }
.af-ftr__bottom-in {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 6px 24px;
	padding-top: 18px;
	padding-bottom: 22px;
	font-size: 13px;
	color: var(--ftr-muted);
}
.af-ftr a:focus-visible { outline: 3px solid var(--ftr-red); outline-offset: 2px; }

@media (max-width: 899px) {
	.af-ftr__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.af-ftr__brand { grid-column: 1 / -1; }
}
@media (max-width: 559px) {
	.af-ftr__grid { grid-template-columns: 1fr; }
	.af-ftr__cta-actions,
	.af-ftr .af-ftr-pill { width: 100%; }
	.af-ftr .af-ftr-pill { justify-content: center; }
}
/* Prostor za lepljivo vrstico na strani dogodka */
@media (max-width: 759px) {
	.af-ev-page .af-ftr__bottom-in { padding-bottom: 96px; }
}
