/* Viškovi hrane - stilovi u duhu "kalkulatora" (tople neutralne + zelene boje).
   Namjerno se NE postavlja font-family nigdje - fontovi se nasljeđuju iz teme. */

.vh-exchange,
.vh-card {
	--vh-green-dark: #2e7d32;
	--vh-green: #3f7d4a;
	--vh-green-soft-bg: #e7f1e4;
	--vh-green-soft-text: #2f5233;
	--vh-text: #2b2b28;
	--vh-muted: #948573;
	--vh-border: #ece8e1;
	--vh-input-bg: #f2f0ec;
	--vh-red: #ab4331;
	--vh-red-soft-bg: #f7e9e4;
	--vh-radius-lg: 20px;
	--vh-radius-md: 12px;
	--vh-radius-sm: 8px;
	--vh-shadow: 0 1px 3px rgba(20, 20, 10, .04), 0 10px 30px rgba(20, 20, 10, .06);
	color: var(--vh-text);
}

/* ---------- Kartica ---------- */

.vh-card {
	background: #fff;
	border-radius: var(--vh-radius-lg);
	box-shadow: var(--vh-shadow);
	padding: 32px;
	margin-bottom: 24px;
	box-sizing: border-box;
}

.vh-card + .vh-card {
	margin-top: 0;
}

@media (max-width: 600px) {
	.vh-card {
		padding: 20px;
		border-radius: 16px;
	}
}

.vh-card-header {
	display: flex;
	align-items: center;
	margin-bottom: 24px;
}

.vh-icon-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	min-width: 48px;
	border-radius: var(--vh-radius-sm);
	background: var(--vh-green-soft-bg);
	font-size: 22px;
	margin-right: 14px;
	line-height: 1;
}

/* ---------- Ikone u badge kvadratićima (Google Material Symbols, lokalno) ----------
   Font se NE učitava s Google servera (GDPR - vanjski poziv bi otkrio IP
   posjetitelja Googleu) nego je isporučen s pluginom kao mala .woff2
   datoteka koja sadrži SAMO ikone koje stvarno koristimo (par KB, ne cijeli
   set od par tisuća ikona). U markupu se ikona ispisuje kao HTML entitet
   njenog Unicode znaka (npr. &#xe73c; za "key"), a ne kao naziv ikone -
   ta konkretna slova nisu ni ugrađena u font. Za dodavanje nove ikone:
   1) pyftsubset izvornog Material Symbols fonta po glyph nazivu ikone,
   2) upiši njen Unicode kod (iz fonta) u markup gdje se koristi. */
@font-face {
	font-family: 'VH Material Symbols';
	src: url('../fonts/material-symbols-outlined.woff2') format('woff2');
	font-weight: normal;
	font-style: normal;
	font-display: block;
}

.material-symbols-outlined {
	font-family: 'VH Material Symbols';
	font-weight: normal;
	font-style: normal;
	font-size: 26px;
	line-height: 1;
	letter-spacing: normal;
	text-transform: none;
	display: inline-block;
	white-space: nowrap;
	word-wrap: normal;
	direction: ltr;
	-webkit-font-smoothing: antialiased;
	color: var(--vh-green-dark);
}

.vh-card-header h3 {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--vh-text);
	flex: 1 1 auto;
}

/* Podnaslov ispod .vh-card-header, prije glavnog sadržaja kartice (npr.
   kratki opis sekcije poput onog u Community Partners). */
.vh-card-subtitle {
	margin: -14px 0 24px;
	max-width: 620px;
}

.vh-info-box p {
	margin: 0;
}

.vh-muted-text {
	color: var(--vh-muted);
}

/* ---------- Forme ---------- */

.vh-form p {
	margin: 0 0 18px;
}

.vh-form label {
	display: block;
	font-size: .72rem;
	text-transform: uppercase;
	letter-spacing: .04em;
	font-weight: 700;
	color: var(--vh-muted);
	margin-bottom: 8px;
}

.vh-form input[type="text"],
.vh-form input[type="email"],
.vh-form input[type="password"],
.vh-form input[type="number"],
.vh-form select,
.vh-form textarea {
	width: 100%;
	padding: 13px 14px;
	background: var(--vh-input-bg);
	border: 1px solid transparent;
	border-radius: var(--vh-radius-sm);
	font-size: 1rem;
	color: var(--vh-text);
	box-sizing: border-box;
	transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.vh-form input:focus,
.vh-form select:focus,
.vh-form textarea:focus {
	outline: none;
	background: #fff;
	border-color: var(--vh-green);
	box-shadow: 0 0 0 3px rgba(63, 125, 74, .14);
}

.vh-form textarea {
	resize: vertical;
}

.vh-inline {
	display: flex;
	align-items: flex-end;
	gap: 10px;
}

.vh-inline label {
	width: 100%;
}

/* ---------- Forma registracije: puna širina na desktopu ----------
   Red 1: Naziv / Email / Telefon (3 polja, jednaka širina)
   Red 2: Grad / Adresa (2 polja, jednaka širina)
   Red 3: Lozinka / Ponovi lozinku (2 polja, jednaka širina)
   Postignuto 6-stupčanom mrežom: vh-field-col2 zauzima 2/6 (trećina reda),
   vh-field-col3 zauzima 3/6 (polovica reda). */

.vh-form-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	column-gap: 20px;
	width: 100%;
}

/* min-width: 0 je nužan jer su ovo grid stavke - bez toga grid stavka ne
   može biti uža od svog sadržaja (npr. <select> sa širim opcijama), pa na
   uskom (mobilnom) ekranu tjera cijeli red van širine ekrana umjesto da se
   sadržaj suzi/prelomi. */
.vh-field,
.vh-field-full,
.vh-field-col2,
.vh-field-col3 {
	min-width: 0;
}

.vh-field-full {
	grid-column: 1 / -1;
}

.vh-field-col2 {
	grid-column: span 2;
}

.vh-field-col3 {
	grid-column: span 3;
}

@media (max-width: 900px) {
	.vh-form-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.vh-field-col2,
	.vh-field-col3 {
		grid-column: span 1;
	}
}

@media (max-width: 560px) {
	.vh-form-grid {
		grid-template-columns: 1fr;
	}

	.vh-field-col2,
	.vh-field-col3 {
		grid-column: 1 / -1;
	}
}

/* ---------- Forma u jednom redu na desktopu (Dodaj višak hrane) ---------- */

.vh-form-row {
	display: grid;
	/* Naziv, Vrsta hrane - veći stupci; Količina, Jedinica mjere - manji stupci */
	grid-template-columns: 2fr 2fr 1fr 1fr;
	column-gap: 16px;
	width: 100%;
}

@media (max-width: 900px) {
	.vh-form-row {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 560px) {
	.vh-form-row {
		grid-template-columns: 1fr;
	}
}

.vh-form-login {
	max-width: 420px;
}

.vh-link-muted {
	color: var(--vh-muted);
	font-size: .9rem;
	text-decoration: none;
}

.vh-link-muted:hover {
	color: var(--vh-green-dark);
	text-decoration: underline;
}

/* ---------- Gumbi ---------- */

.vh-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border-radius: 999px;
	font-weight: 700;
	font-size: .95rem;
	padding: 14px 28px;
	border: none;
	cursor: pointer;
	transition: background .15s ease, transform .05s ease, color .15s ease, border-color .15s ease;
}

.vh-btn:active {
	transform: scale(.98);
}

.vh-btn-primary {
	background: var(--vh-green-dark);
	color: #fff;
}

.vh-btn-primary:hover {
	background: #1b5e20;
}

.vh-btn-outline {
	background: #fff;
	color: var(--vh-green-dark);
	border: 1px solid var(--vh-border);
	padding: 9px 16px;
	font-size: .85rem;
}

.vh-btn-outline:hover {
	background: var(--vh-green-soft-bg);
	border-color: var(--vh-green);
}

.vh-btn-sm {
	padding: 7px 14px;
	font-size: .78rem;
}

/* Zajednički narančasti stil za sve gumbe "Exchange" (dosljedno s hover
   gumbom u katalogu) - !important kao zaštita od teme koja globalno stilizira
   <a> poveznice (gumb je sad <a>, ne <button>). */
.vh-btn-exchange {
	background: #F49424 !important;
	color: #fff !important;
	text-decoration: none !important;
}

.vh-btn-exchange:hover {
	background: #d97e12 !important;
	color: #fff !important;
}

/* Zajednički zlatnožuti stil za sve gumbe "Donate"/"Request Donation" u
   tablicama - uparen s narančastim .vh-btn-exchange, ista logika s !important. */
.vh-btn-donate {
	background: #E0A800 !important;
	color: #fff !important;
	text-decoration: none !important;
}

.vh-btn-donate:hover {
	background: #C79200 !important;
	color: #fff !important;
}

.vh-btn-danger {
	color: var(--vh-red);
}

.vh-btn-danger:hover {
	background: var(--vh-red-soft-bg);
	border-color: var(--vh-red);
}

.vh-row-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.vh-row-actions form {
	display: inline-block;
	margin: 0;
}

/* ---------- Fotografija u tablici "Moji unosi" ---------- */

.vh-photo-cell {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.vh-photo-thumb {
	width: 48px;
	height: 48px;
	object-fit: cover;
	border-radius: var(--vh-radius-sm);
	flex: 0 0 auto;
}

.vh-photo-form {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
}

.vh-photo-input {
	max-width: 130px;
	font-size: .75rem;
}

/* ---------- Akcijski stupac (npr. "Exchange" u tablicama) ---------- */

.vh-table-action-cell {
	text-align: right;
	white-space: nowrap;
}

.vh-table-action-cell form {
	display: inline-block;
	margin: 0;
}

/* Razmak kad su u istoj akcijskoj ćeliji dva gumba (npr. Exchange + Donate). */
.vh-table-action-cell .vh-btn {
	margin: 2px 0 2px 8px;
}

.vh-table-action-cell .vh-btn:first-child {
	margin-left: 0;
}

/* ---------- Add Product stil link (rezervirano za buduću upotrebu) ---------- */

.vh-add-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--vh-green-dark);
	font-weight: 700;
	text-decoration: none;
}

/* ---------- Obavijesti ---------- */

.vh-notice {
	padding: 14px 18px;
	border-radius: var(--vh-radius-md);
	margin-bottom: 18px;
	border: none;
}

.vh-notice ul {
	margin: 0;
	padding-left: 1.2em;
}

.vh-notice-error {
	background: var(--vh-red-soft-bg);
	color: var(--vh-red);
}

.vh-notice-success {
	background: var(--vh-green-soft-bg);
	color: var(--vh-green-soft-text);
}

/* ---------- Tabovi (Prijava / Registracija) ---------- */

.vh-tabs {
	display: inline-flex;
	background: var(--vh-input-bg);
	padding: 4px;
	border-radius: 999px;
	margin-bottom: 28px;
	gap: 2px;
}

.vh-tab-btn {
	border: none;
	background: transparent;
	padding: 10px 24px;
	border-radius: 999px;
	font-weight: 700;
	font-size: .9rem;
	color: var(--vh-muted);
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
}

.vh-tab-btn.active {
	background: var(--vh-green-dark);
	color: #fff;
}


/* ---------- Traka dobrodošlice ---------- */

.vh-welcome {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	background: var(--vh-input-bg);
	border-radius: var(--vh-radius-md);
	padding: 14px 20px;
	margin-bottom: 24px;
}

/* ---------- Panel "My Organization" (sklopivo - <details>/<summary>) ----------
   Isti izgled kartice/zaglavlja kao ostali .vh-card-header, samo je ovdje
   naslov ujedno i <summary> koji sklapa/rasklapa panel - zatvoren po
   zadanom da ne zauzima prostor svaki put kad organizacija samo dođe
   pregledati/dodati unose. */

.vh-profile-card > summary.vh-card-header {
	cursor: pointer;
	list-style: none;
	margin-bottom: 0;
}

.vh-profile-card[open] > summary.vh-card-header {
	margin-bottom: 24px;
}

.vh-profile-card > summary.vh-card-header::-webkit-details-marker {
	display: none;
}

.vh-profile-card > summary.vh-card-header::marker {
	content: '';
}

.vh-profile-card > summary.vh-card-header::after {
	content: '▾';
	margin-left: auto;
	color: var(--vh-muted);
	font-size: 1.1rem;
	transition: transform .15s ease;
}

.vh-profile-card[open] > summary.vh-card-header::after {
	transform: rotate(180deg);
}

.vh-profile-logo-row {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}

.vh-profile-logo-preview {
	flex: 0 0 auto;
	width: 56px;
	height: 56px;
	border-radius: var(--vh-radius-md);
	overflow: hidden;
	display: block;
}

.vh-profile-logo-preview img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.vh-profile-logo-hint {
	margin-top: 8px;
}

.vh-logout-link {
	color: var(--vh-green-dark);
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.vh-logout-link:hover {
	text-decoration: underline;
}

/* ---------- Tablica "Moji unosi" ---------- */

.vh-table-scroll {
	overflow-x: auto;
}

.vh-table {
	width: 100%;
	border-collapse: collapse;
}

.vh-table thead th {
	text-align: left;
	font-size: .7rem;
	text-transform: uppercase;
	letter-spacing: .04em;
	font-weight: 700;
	color: var(--vh-muted);
	padding: 0 10px 12px;
	border-bottom: 1px solid var(--vh-border);
	white-space: nowrap;
}

.vh-table td {
	padding: 16px 10px;
	border-bottom: 1px solid var(--vh-border);
	vertical-align: middle;
}

.vh-table tbody tr:last-child td {
	border-bottom: none;
}

/* ---------- Tablice na mobitelu: kartice jedna ispod druge, bez skrola ----------
   Svaka <td> već nosi data-label (isti tekst kao naslov stupca) - na uskom
   ekranu tablica se pretvara u popis kartica (jedan red = jedna kartica),
   a data-label se prikazuje kao mala oznaka iznad vrijednosti umjesto
   skrivenog <thead> stupca. Nema više vodoravnog skrolanja. */
@media (max-width: 700px) {
	.vh-table-scroll {
		overflow-x: visible;
	}

	.vh-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
		border: 0;
		padding: 0;
		margin: -1px;
	}

	.vh-table,
	.vh-table tbody,
	.vh-table tr {
		display: block;
		width: 100%;
	}

	.vh-table tr {
		background: #fff;
		border: 1px solid var(--vh-border);
		border-radius: var(--vh-radius-md);
		padding: 6px 14px;
		margin-bottom: 12px;
	}

	.vh-table tbody tr:last-child {
		margin-bottom: 0;
	}

	.vh-table td {
		display: block;
		width: auto;
		padding: 8px 0;
		border-bottom: 1px solid var(--vh-border);
	}

	/* Desktop pravilo iznad (".vh-table tbody tr:last-child td") uklanja
	   donji rub svim ćelijama zadnjeg reda - ovdje ga vraćamo (isti red
	   sada izgleda kao kartica i treba interne razdjelnike), a onda
	   uklanjamo rub samo zadnjoj ćeliji U SVAKOJ kartici (ista specifičnost
	   selektora, pa redoslijed pravila odlučuje - ovaj mora doći iza). */
	.vh-table tbody tr:last-child td {
		border-bottom: 1px solid var(--vh-border);
	}

	.vh-table tbody tr td:last-child {
		border-bottom: none;
	}

	.vh-table td[data-label]::before {
		content: attr(data-label);
		display: block;
		font-size: .68rem;
		text-transform: uppercase;
		letter-spacing: .04em;
		font-weight: 700;
		color: var(--vh-muted);
		margin-bottom: 4px;
	}

	.vh-table td.vh-table-action-cell {
		text-align: left;
		white-space: normal;
	}
}

/* ---------- Pill oznake statusa (u duhu CLIMATE / LAND USE oznaka) ---------- */

.vh-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 14px;
	border-radius: 999px;
	font-size: .72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .03em;
	white-space: nowrap;
}

.vh-pill-available {
	background: var(--vh-green-soft-bg);
	color: var(--vh-green-soft-text);
}

.vh-pill-taken {
	background: var(--vh-red-soft-bg);
	color: var(--vh-red);
}

.vh-pill-pending {
	background: #fdecd2;
	color: #a1620a;
}

.vh-pill-declined {
	background: #eee;
	color: #777;
}

.vh-pill-exchange {
	background: #fde6c8;
	color: #a1620a;
}

.vh-pill-donation {
	background: var(--vh-green-soft-bg);
	color: var(--vh-green-soft-text);
}

/* ---------- Panel "Zatraži zamjenu" i lista "Moji zahtjevi za zamjenu" ---------- */

.vh-pending-note {
	margin: 0;
	font-size: .82rem;
}

.vh-request-options {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 10px 0 16px;
}

.vh-request-option {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	border: 1px solid var(--vh-border);
	border-radius: var(--vh-radius-sm);
	cursor: pointer;
	transition: border-color .15s ease, background .15s ease;
}

.vh-request-option:hover {
	border-color: var(--vh-green-dark);
}

.vh-request-option input[type="radio"] {
	flex: 0 0 auto;
}

.vh-request-option:has(input:checked) {
	border-color: var(--vh-green-dark);
	background: var(--vh-green-soft-bg);
}

/* ---------- "Available For" izbor u formi "Dodaj višak hrane" ----------
   Isti izgled kao vh-request-option (kartice s radio gumbom), samo
   posložene u redak umjesto jedna ispod druge, jer su ovdje samo tri
   kratke opcije (Exchange / Donation / Both). */

.vh-nacin-options {
	flex-direction: row;
	flex-wrap: wrap;
}

.vh-nacin-options .vh-request-option {
	flex: 1 1 140px;
}

/* ============================================================
   JAVNI KATALOG ([vh_katalog]) - pretraga, filtri, mreža kartica
   ============================================================ */

.vh-katalog {
	--vh-green-dark: #2e7d32;
	--vh-green: #3f7d4a;
	--vh-green-soft-bg: #e7f1e4;
	--vh-green-soft-text: #2f5233;
	--vh-text: #2b2b28;
	--vh-muted: #948573;
	--vh-border: #ece8e1;
	--vh-input-bg: #f2f0ec;
	--vh-radius-lg: 20px;
	--vh-radius-md: 12px;
	--vh-radius-sm: 8px;
	--vh-shadow: 0 1px 3px rgba(20, 20, 10, .04), 0 10px 30px rgba(20, 20, 10, .06);
	color: var(--vh-text);
}

/* ---------- Pretraga ---------- */
/* !important na cijelom bloku: tema/page builder (Elementor global kit)
   zna nametnuti vlastite zadane stilove na input[type="text"] (uglati
   rubovi, tamniji border, drugi padding) koji imaju veći prioritet od
   običnog selektora s klasom, pa nadjačaju naš izgled - isti problem koji
   smo imali s bojama Exchange gumba. */

.vh-kat-search {
	position: relative !important;
	max-width: 640px;
	margin-bottom: 20px;
}

.vh-kat-search-icon {
	position: absolute !important;
	left: 20px !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	font-size: 1rem;
	opacity: .55;
	pointer-events: none;
	line-height: 1;
	z-index: 1;
}

.vh-kat-search-input {
	width: 100% !important;
	box-sizing: border-box !important;
	padding: 15px 20px 15px 46px !important;
	border: 1px solid var(--vh-border) !important;
	border-radius: 999px !important;
	font-size: 1rem !important;
	color: var(--vh-text) !important;
	background: #fff !important;
	box-shadow: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.vh-kat-search-input::placeholder {
	color: var(--vh-muted) !important;
	opacity: 1;
}

.vh-kat-search-input:hover {
	border-color: var(--vh-green) !important;
}

.vh-kat-search-input:focus {
	outline: none !important;
	border-color: var(--vh-green) !important;
	box-shadow: 0 0 0 3px rgba(63, 125, 74, .14) !important;
}

/* ---------- Filter pilule ---------- */

.vh-kat-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 28px;
}

.vh-kat-filter-btn {
	border: 1px solid var(--vh-border);
	background: #fff;
	color: var(--vh-text);
	padding: 10px 20px;
	border-radius: 999px;
	font-weight: 700;
	font-size: .9rem;
	cursor: pointer;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.vh-kat-filter-btn:hover {
	border-color: var(--vh-green);
}

.vh-kat-filter-btn.active {
	background: var(--vh-green-dark);
	border-color: var(--vh-green-dark);
	color: #fff;
}

/* ---------- Mreža kartica ---------- */

.vh-kat-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

@media (max-width: 1100px) {
	.vh-kat-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 560px) {
	.vh-kat-grid {
		grid-template-columns: 1fr;
	}
}

.vh-kat-card {
	background: transparent;
	border-radius: var(--vh-radius-lg);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.vh-kat-image {
	position: relative;
	aspect-ratio: 4 / 2.55; /* visina smanjena za 15% u odnosu na prijašnji 4/3 omjer */
	background: var(--vh-green-soft-bg);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.vh-kat-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .3s ease;
}

/* Blagi zoom na sliku kartice pri hoveru. */
.vh-kat-card:hover .vh-kat-image img {
	transform: scale(1.08);
}

.vh-kat-image-placeholder {
	font-size: 3rem;
	line-height: 1;
}

.vh-kat-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	background: var(--vh-green-dark);
	color: #fff;
	font-size: .72rem;
	font-weight: 700;
	padding: 6px 14px;
	border-radius: 999px;
	letter-spacing: .02em;
}

/* "Exchange" / "Request Donation" gumbi koji se pojavljuju na hover preko
   slike kartice - naslagani jedan ispod drugog u zajedničkom omotaču. */

.vh-kat-actions {
	position: absolute;
	top: 12px;
	right: 12px;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 6px;
	z-index: 1;
}

.vh-kat-exchange-btn,
.vh-kat-donate-btn {
	background: #F49424 !important;
	color: #fff !important;
	font-size: .72rem;
	font-weight: 700;
	padding: 6px 14px;
	border-radius: 999px;
	letter-spacing: .02em;
	text-decoration: none !important;
	white-space: nowrap;
	opacity: 0;
	transform: translateY(-4px);
	transition: opacity .15s ease, transform .15s ease, background .15s ease;
	pointer-events: none;
}

.vh-kat-donate-btn {
	background: #E0A800 !important;
	color: #fff !important;
}

.vh-kat-exchange-btn:hover {
	background: #d97e12 !important;
}

.vh-kat-donate-btn:hover {
	background: #C79200 !important;
	color: #fff !important;
}

.vh-kat-card:hover .vh-kat-exchange-btn,
.vh-kat-card:focus-within .vh-kat-exchange-btn,
.vh-kat-card:hover .vh-kat-donate-btn,
.vh-kat-card:focus-within .vh-kat-donate-btn {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

/* Uređaji bez pokazivača miša (dodir) nemaju hover - gumbi ostaju trajno vidljivi. */
@media (hover: none) {
	.vh-kat-exchange-btn,
	.vh-kat-donate-btn {
		opacity: 1;
		transform: none;
		pointer-events: auto;
	}
}

.vh-kat-body {
	padding: 18px 20px 20px;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
}

.vh-kat-title {
	margin: 0 0 4px;
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--vh-text);
}

.vh-kat-qty {
	margin: 0 0 10px;
	font-size: .85rem;
	font-weight: 700;
	color: var(--vh-green-dark);
}

.vh-kat-desc {
	margin: 0 0 14px;
	font-size: .9rem;
	color: var(--vh-text);
	opacity: .85;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.vh-kat-meta {
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px solid var(--vh-border);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	font-size: .85rem;
	color: var(--vh-muted);
}

.vh-kat-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	max-width: 100%;
}

.vh-kat-meta-icon {
	flex: 0 0 auto;
}

/* ---------- Prazno stanje / Load more ---------- */

.vh-kat-empty {
	text-align: center;
	color: var(--vh-muted);
	padding: 40px 0;
}

.vh-kat-loadmore-wrap {
	display: flex;
	justify-content: center;
	margin-top: 36px;
}

.vh-kat-loadmore {
	min-width: 220px;
	padding: 14px 28px;
	font-size: .95rem;
}

/* ============================================================
   COMMUNITY PARTNERS ([vh_partneri]) - registrirane organizacije
   ============================================================ */

.vh-partners {
	--vh-green-dark: #2e7d32;
	--vh-green: #3f7d4a;
	--vh-green-soft-bg: #e7f1e4;
	--vh-green-soft-text: #2f5233;
	--vh-text: #2b2b28;
	--vh-muted: #948573;
	--vh-border: #ece8e1;
	--vh-red: #ab4331;
	--vh-red-soft-bg: #f7e9e4;
	--vh-radius-lg: 20px;
	--vh-radius-md: 12px;
	color: var(--vh-text);
}

.vh-partners-header {
	margin-bottom: 24px;
}

.vh-partners-header h2 {
	margin: 0 0 6px;
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--vh-text);
}

.vh-partners-header .vh-muted-text {
	margin: 0;
	max-width: 620px;
}

.vh-partners-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

@media (max-width: 900px) {
	.vh-partners-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	.vh-partners-grid {
		grid-template-columns: 1fr;
	}
}

.vh-partner-card {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px;
	background: #fff;
	border: 1px solid var(--vh-border);
	border-radius: var(--vh-radius-lg);
	text-decoration: none;
	color: inherit;
	transition: border-color .2s ease, transform .15s ease;
}

.vh-partner-card:hover {
	border-color: var(--vh-green-dark);
	transform: translateY(-2px);
}

.vh-partner-avatar {
	flex: 0 0 auto;
	width: 56px;
	height: 56px;
	border-radius: var(--vh-radius-md);
	background: var(--vh-green-soft-bg);
	color: var(--vh-green-soft-text);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.4rem;
	font-weight: 800;
	overflow: hidden;
}

/* Kad organizacija ima uploadan logo/fotografiju, prikazuje se umjesto
   slova-inicijala - slika popunjava cijeli kvadratić (object-fit: cover). */
.vh-partner-avatar.has-logo {
	background: var(--vh-border);
}

.vh-partner-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.vh-partner-body {
	min-width: 0;
}

.vh-partner-top {
	margin-bottom: 6px;
}

.vh-partner-name {
	margin: 0 0 2px;
	font-size: 1rem;
	font-weight: 700;
	color: var(--vh-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.vh-partner-desc {
	margin: 0;
	font-size: .82rem;
	color: var(--vh-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ============================================================
   [vh_donacije] - "Local Donation Network": popis SAMO unosa
   ponuđenih za donaciju, u dizajnu koji je korisnik priložio.
   Vlastita paleta boja (scoped na .vh-donacije) po uzoru na taj
   dizajn, neovisna o ostatku plugina - font i dalje nasljeđuje temu.
   ============================================================ */

.vh-donacije {
	--vh-d-primary: #2E7D32;
	--vh-d-primary-soft: rgba(46, 125, 50, .1);
	--vh-d-text: #1b1c1c;
	--vh-d-muted: #3d493d;
	--vh-d-outline: #707a6c;
	--vh-d-border: #bfcaba;
	--vh-d-card-border: #ece8e1;
	--vh-d-surface: #fbf9f8;
	--vh-d-card: #ffffff;
	background: var(--vh-d-surface);
	border-radius: 2rem;
	padding: 48px 0;
	display: flex;
	flex-direction: column;
	gap: 48px;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	overflow: hidden;
}

@media (max-width: 700px) {
	.vh-donacije {
		padding: 32px 0;
		border-radius: 24px;
	}
}

.vh-don-inner {
	display: flex;
	flex-direction: column;
	gap: 48px;
	align-items: center;
}

@media (min-width: 992px) {
	.vh-don-inner {
		flex-direction: row;
		align-items: center;
	}
}

.vh-don-intro {
	flex: 0 0 auto;
	width: 100%;
}

@media (min-width: 992px) {
	.vh-don-intro {
		width: 33%;
	}
}

.vh-don-eyebrow {
	display: block;
	color: var(--vh-d-primary);
	font-weight: 700;
	font-size: .82rem;
	text-transform: uppercase;
	letter-spacing: .06em;
	margin-bottom: 8px;
}

.vh-don-title {
	color: var(--vh-d-text);
	font-size: 1.8rem;
	line-height: 1.3;
	font-weight: 700;
	margin: 0;
}

.vh-don-desc {
	color: var(--vh-d-muted);
	margin: 16px 0 28px;
	line-height: 1.6;
}

.vh-don-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--vh-d-primary) !important;
	color: #fff !important;
	font-weight: 700;
	padding: 15px 36px;
	border-radius: 999px;
	text-decoration: none !important;
	box-shadow: 0 10px 24px rgba(46, 125, 50, .25);
	transition: filter .15s ease, transform .05s ease;
}

.vh-don-cta:hover {
	filter: brightness(1.1);
}

.vh-don-cta:active {
	transform: scale(.98);
}

.vh-don-grid-wrap {
	flex: 1 1 auto;
	width: 100%;
}

.vh-don-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 16px;
	width: 100%;
	box-sizing: border-box;
}

@media (min-width: 640px) {
	.vh-don-grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}
}

.vh-don-card {
	display: flex;
	gap: 16px;
	padding: 16px;
	background: var(--vh-d-card);
	border: 1px solid var(--vh-d-border);
	border-radius: 1rem;
	text-decoration: none !important;
	cursor: pointer;
	transition: border-color .2s ease, box-shadow .2s ease;
	min-width: 0;
	width: 100%;
	box-sizing: border-box;
}

.vh-don-card:hover {
	border-color: var(--vh-d-primary);
	box-shadow: 0 12px 28px rgba(27, 32, 27, .1);
}

.vh-don-card-image {
	flex: 0 0 auto;
	width: 88px;
	height: 88px;
	border-radius: .75rem;
	overflow: hidden;
	border: 1px solid var(--vh-d-card-border);
	background: var(--vh-d-primary-soft);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2rem;
}

.vh-don-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .3s ease;
}

.vh-don-card:hover .vh-don-card-image img {
	transform: scale(1.08);
}

.vh-don-card-body {
	min-width: 0;
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.vh-don-card-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px 8px;
	margin-bottom: 4px;
	min-width: 0;
}

.vh-don-card-badge {
	padding: 2px 9px;
	border-radius: 999px;
	background: var(--vh-d-primary-soft);
	color: var(--vh-d-primary);
	font-size: .62rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	white-space: nowrap;
}

.vh-don-card-city {
	font-size: .68rem;
	font-weight: 700;
	color: var(--vh-d-outline);
	overflow-wrap: break-word;
	word-break: break-word;
}

.vh-don-card-title {
	margin: 0;
	font-weight: 700;
	color: var(--vh-d-text);
	overflow-wrap: break-word;
	word-break: break-word;
	transition: color .15s ease;
}

.vh-don-card:hover .vh-don-card-title {
	color: var(--vh-d-primary);
}

.vh-don-card-desc {
	margin: 2px 0 0;
	font-size: .78rem;
	color: var(--vh-d-muted);
	overflow-wrap: break-word;
	word-break: break-word;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Uski telefoni - kartica se slaže u stupac (slika gore, tekst ispod)
   umjesto zbijenog retka, tako da se ništa ne gura izvan ekrana. */
@media (max-width: 480px) {
	.vh-don-card {
		flex-direction: column;
		padding: 0;
		overflow: hidden;
	}

	.vh-don-card-image {
		width: 100%;
		height: 150px;
		border-radius: 0;
		font-size: 2.6rem;
	}

	.vh-don-card-body {
		padding: 12px 14px 16px;
	}
}

.vh-don-empty {
	color: var(--vh-d-muted);
	margin: 0;
}

.vh-don-loadmore-wrap {
	text-align: center;
	margin-top: 20px;
}
