/* =========================================================================
   Domaći organski proizvodi — javni sajt
   Boje prirode, veliki čitljivi elementi, prvo telefon.
   ========================================================================= */

@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-wght-normal.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; }

:root {
  --bg: #FBF7EE;
  --paper: #FFFDF8;
  --cream-2: #F4EDDD;
  --ink: #1E2B22;
  --ink-2: #4B5A4F;
  --ink-3: #7A867C;
  --forest: #1F3D2B;
  --green: #2F6B3A;
  --green-2: #3A7F46;
  --leaf: #4C8C4A;
  --leaf-50: #EEF5E6;
  --leaf-100: #DDEBCF;
  --sun: #E9A23B;
  --sun-50: #FDF3E1;
  --terra: #C8553D;
  --plum: #5B3A6B;
  --line: #E8E0CF;
  --viber: #7360F2;
  --wa: #1FAF57;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --sh-1: 0 1px 2px rgba(31, 61, 43, .06), 0 2px 8px rgba(31, 61, 43, .06);
  --sh-2: 0 4px 10px rgba(31, 61, 43, .06), 0 14px 34px rgba(31, 61, 43, .10);
  --sh-3: 0 10px 24px rgba(31, 61, 43, .10), 0 30px 60px rgba(31, 61, 43, .14);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --head: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1240px;
  --header-h: 72px;
  --bottom-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.6; font-weight: 500;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  padding-bottom: var(--bottom-h);
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--forest); }
h1, h2, h3, h4 { font-family: var(--head); color: var(--forest); line-height: 1.15; margin: 0 0 .5em; font-weight: 650; letter-spacing: -.01em; font-optical-sizing: auto; }
h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
h3, .h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 999; background: var(--forest); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; color: #fff; }
.ic { width: 1.2em; height: 1.2em; flex: none; display: inline-block; vertical-align: -.22em; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.narrow { max-width: 860px; }
.muted { color: var(--ink-3); }
.small { font-size: .9rem; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 62ch; }
[hidden] { display: none !important; }

/* ---------- Dugmad ---------- */
.btn {
  --b: var(--green); --t: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.25em; border-radius: 12px; border: 2px solid transparent;
  background: var(--b); color: var(--t); font-weight: 800; font-size: 1rem; line-height: 1.1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s, color .18s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { color: var(--t); transform: translateY(-1px); box-shadow: var(--sh-2); }
.btn:active { transform: translateY(0) scale(.98); box-shadow: none; }
.btn-primary { --b: var(--green); }
.btn-primary:hover { --b: var(--forest); }
.btn-sun { --b: var(--sun); --t: #2a1d05; }
.btn-sun:hover { --b: #f0b350; }
.btn-ghost { --b: var(--paper); --t: var(--forest); border-color: var(--line); }
.btn-ghost:hover { --t: var(--forest); border-color: var(--leaf); }
.btn-call { --b: linear-gradient(180deg, #3a8a47, #2a6b35); background: linear-gradient(180deg, #3d8f4a, #2a6b35); }
.btn-call-alt { --b: var(--leaf-50); --t: var(--forest); border-color: var(--leaf-100); }
.btn-viber { --b: var(--viber); }
.btn-wa { --b: var(--wa); }
.btn-sm { min-height: 40px; padding: .5em 1em; font-size: .92rem; }
.btn-lg { min-height: 56px; padding: .8em 1.6em; font-size: 1.08rem; }
.btn-xl { min-height: 64px; font-size: 1.15rem; padding: .8em 1.4em; }
.btn-block { display: flex; width: 100%; }
.btn-square { width: 52px; min-width: 52px; padding: 0; }
@keyframes ring { 0%, 86%, 100% { transform: rotate(0) } 88% { transform: rotate(-14deg) } 91% { transform: rotate(12deg) } 94% { transform: rotate(-8deg) } 97% { transform: rotate(5deg) } }

.icon-btn {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: transparent; color: var(--forest); cursor: pointer; transition: background-color .15s;
}
.icon-btn:hover { background: var(--leaf-50); }
.icon-btn .ic { width: 24px; height: 24px; }

.chip {
  display: inline-flex; align-items: center; gap: .45em; padding: .4em .9em .4em .5em; min-height: 40px;
  border-radius: 999px; background: var(--paper); border: 1.5px solid var(--line); color: var(--forest);
  font-weight: 700; font-size: .95rem; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: border-color .15s, background-color .15s, transform .15s var(--ease);
}
.chip img { width: 26px; height: 26px; }
.chip:hover { border-color: var(--leaf); color: var(--forest); transform: translateY(-1px); }
.chip.is-on { background: var(--forest); border-color: var(--forest); color: #fff; }

.badge {
  display: inline-flex; align-items: center; gap: .35em; padding: .3em .7em; border-radius: 999px;
  font-size: .82rem; font-weight: 800; background: var(--sun-50); color: #7a4f0b; line-height: 1.2;
}
.badge-organic { background: var(--leaf-100); color: var(--forest); }
.badge-light { background: rgba(255, 253, 248, .92); color: var(--forest); }
.badge-outline { background: transparent; border: 1.5px solid var(--line); color: var(--ink-2); }

/* ---------- Zaglavlje ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(251, 247, 238, .88); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid rgba(232, 224, 207, .8);
}
.header-in { height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--forest); min-width: 0; }
.brand img { width: 44px; height: 44px; }
.brand img.brand-logo { width: auto; height: 56px; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-text strong { font-family: var(--head); font-size: 1.3rem; font-weight: 700; letter-spacing: -.01em; }
.brand-text small { font-size: .74rem; color: var(--ink-3); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-light { color: #fff; }
.brand-light:hover { color: #fff; }

.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.main-nav > ul > li > a {
  display: inline-flex; align-items: center; gap: 4px; padding: 10px 14px; border-radius: 999px;
  text-decoration: none; color: var(--ink); font-weight: 750;
}
.main-nav > ul > li > a:hover, .main-nav a.is-active { background: var(--leaf-50); color: var(--forest); }
.main-nav .ic { width: 16px; height: 16px; transition: transform .2s; }
.has-mega { position: relative; }
.mega {
  position: absolute; left: 50%; top: calc(100% + 8px); width: min(720px, 90vw);
  transform: translate(-50%, 8px); opacity: 0; visibility: hidden; pointer-events: none;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-3); padding: 14px;
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.has-mega::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }
.has-mega:hover > a .ic { transform: rotate(180deg); }
.mega-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
.mega-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 14px; text-decoration: none; color: var(--forest); font-weight: 800; }
.mega-item img { width: 44px; height: 44px; transition: transform .25s var(--ease); }
.mega-item small { display: block; font-weight: 600; color: var(--ink-3); font-size: .8rem; }
.mega-item:hover { background: var(--leaf-50); }
.mega-item:hover img { transform: scale(1.12) rotate(-4deg); }
.header-actions { display: flex; align-items: center; gap: 6px; }
.menu-btn { display: none; }

/* pretraga preko celog ekrana */
.search-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(31, 61, 43, .55); backdrop-filter: blur(4px); padding-top: 14vh; animation: fade .2s; }
.search-pop { display: flex; align-items: center; gap: 10px; background: var(--paper); border-radius: var(--r-lg); padding: 10px 10px 10px 20px; box-shadow: var(--sh-3); max-width: 760px; animation: pop .25s var(--ease); }
.search-pop > .ic { width: 24px; height: 24px; color: var(--ink-3); }
.search-pop input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 1.15rem; min-width: 0; padding: 10px 0; }
@keyframes fade { from { opacity: 0 } }
@keyframes pop { from { opacity: 0; transform: translateY(-10px) scale(.98) } }

/* fioka (mobilni meni) */
.drawer { position: fixed; z-index: 95; top: 0; right: 0; bottom: 0; width: min(380px, 92vw); background: var(--bg); box-shadow: var(--sh-3); display: flex; flex-direction: column; animation: slide .28s var(--ease); }
@keyframes slide { from { transform: translateX(100%) } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
.drawer-body { padding: 16px 20px 28px; overflow-y: auto; }
.drawer-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 800; margin: 8px 0; }
.drawer-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.drawer-cats a { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: var(--forest); font-weight: 800; font-size: .9rem; line-height: 1.2; }
.drawer-cats img { width: 40px; height: 40px; }
.drawer-links { list-style: none; padding: 0; margin: 0 0 20px; }
.drawer-links a { display: flex; align-items: center; gap: 12px; padding: 13px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 750; }
.backdrop { position: fixed; inset: 0; z-index: 94; background: rgba(31, 61, 43, .45); animation: fade .2s; }

.flashes { margin-top: 16px; }
.flash { padding: 14px 18px; border-radius: var(--r); font-weight: 700; margin-bottom: 8px; }
.flash-ok { background: var(--leaf-100); color: var(--forest); }
.flash-error { background: #fbe1da; color: #8a2a17; }


/* ---------- Hero (fotografija) ---------- */
.hero { position: relative; display: flex; flex-direction: column; min-height: min(700px, 88vh); background: var(--forest); color: #fff; }
.hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16, 30, 21, .86) 0%, rgba(16, 30, 21, .62) 45%, rgba(16, 30, 21, .25) 100%), linear-gradient(0deg, rgba(16, 30, 21, .55), rgba(16, 30, 21, 0) 40%); }
.hero-in { position: relative; z-index: 2; flex: 1; display: flex; align-items: center; padding-top: clamp(40px, 8vh, 90px); padding-bottom: clamp(40px, 7vh, 80px); }
.hero-copy { width: 100%; max-width: 700px; min-width: 0; }
.eyebrow { display: inline-block; margin: 0 0 18px; padding: 0 0 0 14px; border-left: 3px solid var(--sun); font-size: .85rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .9); }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 1.3rem + 3.8vw, 4rem); font-weight: 600; margin-bottom: .35em; text-wrap: balance; }
.hero-sub { font-size: clamp(1.08rem, 1rem + .4vw, 1.3rem); color: rgba(255, 255, 255, .88); max-width: 54ch; margin-bottom: 28px; }
.hero-search { display: flex; gap: 8px; background: var(--paper); color: var(--ink); padding: 8px; border-radius: 16px; box-shadow: var(--sh-3); max-width: 680px; }
.hs-field { position: relative; display: flex; align-items: center; min-width: 0; border-radius: 10px; }
.hs-field > .ic { position: absolute; left: 14px; width: 22px; height: 22px; color: var(--ink-3); pointer-events: none; z-index: 1; }
.hs-field input, .hs-field select, .hs-field .sel-btn { width: 100%; height: 56px; border: 0; background: transparent; padding: 0 12px 0 46px; font-size: 1.05rem; font-weight: 650; outline: 0; border-radius: 10px; }
.hs-field select { cursor: pointer; }
.hs-q { flex: 1.4; }
.hs-city { flex: 1; border-left: 1.5px solid var(--line); border-radius: 0 10px 10px 0; }
.hs-field:focus-within { background: var(--leaf-50); }
.hero-search-inline { margin-top: 18px; box-shadow: var(--sh-2); border: 1px solid var(--line); }
.quick-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.quick-chips > span { font-weight: 800; font-size: .92rem; margin-right: 2px; color: var(--ink-2); }
.quick-chips .chip { padding: .35em .95em; }
.hero .quick-chips > span { color: rgba(255, 255, 255, .8); }
.hero .quick-chips .chip { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .32); color: #fff; backdrop-filter: blur(6px); }
.hero .quick-chips .chip:hover { background: rgba(255, 255, 255, .24); border-color: #fff; color: #fff; }
.hero-strip { position: relative; z-index: 1; background: rgba(16, 30, 21, .62); backdrop-filter: blur(8px); border-top: 1px solid rgba(255, 255, 255, .14); }
.hero-stats { display: flex; gap: clamp(20px, 5vw, 64px); list-style: none; margin: 0 auto; padding-block: 18px; }
.hero-stats li { display: flex; align-items: baseline; gap: 10px; line-height: 1.2; }
.hero-stats strong { font-family: var(--head); font-size: 1.7rem; color: #fff; font-weight: 600; }
.hero-stats span { color: rgba(255, 255, 255, .8); font-weight: 650; font-size: .95rem; }

/* ---------- Kartice kategorija (fotografije) ---------- */
.baskets { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.baskets-sm { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.cat-card { --c: var(--leaf); position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: var(--forest); color: #fff; text-decoration: none; box-shadow: var(--sh-1); isolation: isolate; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--sh-3); color: #fff; }
.cat-card-img { position: absolute; inset: 0; }
.cat-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.cat-card:hover .cat-card-img img { transform: scale(1.06); }
.cat-card::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(16, 30, 21, .88) 0%, rgba(16, 30, 21, .35) 45%, rgba(16, 30, 21, 0) 70%); }
.cat-card-body { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 14px; display: flex; flex-direction: column; gap: 2px; line-height: 1.2; }
.cat-card-body strong { font-family: var(--head); font-size: 1.3rem; font-weight: 600; }
.cat-card-body small { font-size: .85rem; font-weight: 700; color: rgba(255, 255, 255, .82); }
.cat-card.no-photo { background: color-mix(in srgb, var(--c) 12%, var(--paper)); color: var(--forest); border: 1px solid var(--line); }
.cat-card.no-photo::after { display: none; }
.cat-card.no-photo .cat-card-img { display: grid; place-items: center; padding-bottom: 22%; }
.cat-card.no-photo .cat-card-img img.is-icon { width: 34%; height: auto; object-fit: contain; }
.cat-card.no-photo .cat-card-body small { color: var(--ink-2); }
.cat-card.no-photo:hover { color: var(--forest); }
.baskets-sm .cat-card-body strong { font-size: 1.05rem; }
.baskets-sm .cat-card-body { left: 12px; right: 12px; bottom: 10px; }

/* ---------- Sekcije ---------- */
.section { padding: clamp(48px, 7vw, 96px) 0; }
.section-tight { padding: clamp(28px, 4vw, 48px) 0; }
.section-head { margin-bottom: 28px; }
.section-head h2 { margin-bottom: .2em; }
.section-head p { color: var(--ink-2); font-size: 1.1rem; margin: 0; }
.section-head.center { text-align: center; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.section-head-row h2 { margin: 0; }
.page-hero { padding: 26px 0 30px; background: linear-gradient(180deg, var(--leaf-50), var(--bg)); }
.page-hero h1 { margin-bottom: .25em; }
.page-hero-sm { padding-bottom: 8px; }
.count-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-weight: 800; color: var(--forest); margin: 6px 0 0; }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; padding: 0; margin: 0 0 14px; font-size: .9rem; font-weight: 700; }
.crumbs li:not(:last-child)::after { content: "›"; margin-left: 6px; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--green); text-decoration: underline; }
.crumbs span { color: var(--ink-3); }

/* ---------- Kategorija ---------- */
.cat-hero { position: relative; padding: 26px 0 30px; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 12%, var(--bg)), var(--bg)); isolation: isolate; }
.cat-hero h1 { margin-bottom: .25em; }
.cat-hero.has-photo { display: flex; align-items: flex-end; min-height: 320px; padding: 26px 0 34px; background: var(--forest); color: #fff; overflow: hidden; }
.cat-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cat-hero.has-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(16, 30, 21, .9) 0%, rgba(16, 30, 21, .55) 55%, rgba(16, 30, 21, .35) 100%); }
.cat-hero.has-photo h1 { color: #fff; }
.cat-hero.has-photo .lead { color: rgba(255, 255, 255, .9); }
.cat-hero.has-photo .crumbs a, .cat-hero.has-photo .crumbs span, .cat-hero.has-photo .crumbs li::after { color: rgba(255, 255, 255, .8); }
.cat-hero.has-photo .count-pill { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); color: #fff; }
.shelf-wrap { position: sticky; top: var(--header-h); z-index: 30; background: rgba(251, 247, 238, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.shelf { display: flex; gap: 10px; overflow-x: auto; padding: 12px 2px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.shelf-item { position: relative; flex: none; width: 104px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px 8px; border-radius: 18px; text-decoration: none; color: var(--forest); background: var(--paper); border: 1.5px solid var(--line); scroll-snap-align: start; transition: transform .2s var(--ease), border-color .2s, box-shadow .2s; }
.shelf-img { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--cream-2); transition: transform .3s var(--ease); }
.shelf-img img { width: 56px; height: 56px; }
.shelf-name { font-size: .85rem; font-weight: 800; text-align: center; line-height: 1.15; }
.shelf-count { position: absolute; top: 6px; right: 8px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--green); color: #fff; font-size: .75rem; font-weight: 800; display: grid; place-items: center; }
.shelf-item:hover { transform: translateY(-3px); border-color: var(--leaf); box-shadow: var(--sh-1); color: var(--forest); }
.shelf-item:hover .shelf-img { transform: scale(1.08) rotate(-6deg); }
.shelf-item.is-on { border-color: var(--green); background: var(--leaf-50); box-shadow: inset 0 0 0 1px var(--green); }

.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-bottom: 18px; }
.filter-field { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink-2); }
.filter-field select, .map-page-filters select, .field input, .field select, .field textarea, .inline-search input {
  min-height: 48px; border: 1.5px solid var(--line); background: var(--paper); border-radius: 14px; padding: 10px 14px; font-weight: 650; outline: 0; transition: border-color .15s, box-shadow .15s;
}
.filter-field select:focus, .map-page-filters select:focus, .field input:focus, .field select:focus, .field textarea:focus, .inline-search input:focus { border-color: var(--leaf); box-shadow: 0 0 0 4px var(--leaf-50); }
.switch { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--ink-2); cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui { width: 46px; height: 28px; border-radius: 999px; background: #d9d2c2; position: relative; transition: background-color .2s; flex: none; }
.switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: var(--sh-1); transition: transform .25s var(--ease); }
.switch input:checked + .switch-ui { background: var(--green); }
.switch input:checked + .switch-ui::after { transform: translateX(18px); }
.switch input:focus-visible + .switch-ui { outline: 3px solid var(--sun); outline-offset: 2px; }
.view-toggle { display: none; margin-left: auto; background: var(--cream-2); border-radius: 999px; padding: 4px; }
.view-toggle button { border: 0; background: transparent; padding: 8px 18px; border-radius: 999px; font-weight: 800; cursor: pointer; color: var(--ink-2); min-height: 40px; }
.view-toggle button.is-on { background: var(--paper); color: var(--forest); box-shadow: var(--sh-1); }

.results { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.results-map { position: sticky; top: calc(var(--header-h) + 110px); }
.page-city .results-map, .page-search .results-map { top: calc(var(--header-h) + 16px); }
.results-count { font-weight: 800; color: var(--ink-2); }

.empty { text-align: center; padding: 40px 0; display: flex; flex-direction: column; align-items: center; }
.empty img { margin-bottom: 12px; }
.empty p { color: var(--ink-2); max-width: 52ch; }
.seo-text { color: var(--ink-2); }
.seo-text h2 { color: var(--forest); }

/* ---------- Kartice gazdinstava ---------- */
.farm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.farm-grid-2 { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.farm-card { display: flex; flex-direction: column; background: var(--paper); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--sh-1); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.farm-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.farm-card.is-hl { box-shadow: 0 0 0 3px var(--sun), var(--sh-2); }
.farm-card-img { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--cream-2); overflow: hidden; }
.farm-card-img > img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.farm-card:hover .farm-card-img > img { transform: scale(1.05); }
.farm-card-noimg { display: grid; place-items: center; width: 100%; height: 100%; background: radial-gradient(circle at 50% 60%, var(--leaf-50), var(--cream-2)); }
.farm-card-noimg img { width: 46%; }
.farm-card-img > img.is-cover { filter: saturate(.9); }
.farm-card-badges { position: absolute; left: 10px; top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.farm-card-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.farm-card-title { font-size: 1.18rem; margin: 0 0 4px; }
.farm-card-title a { color: var(--forest); text-decoration: none; }
.farm-card-title a:hover { text-decoration: underline; }
.farm-card-place { display: flex; align-items: center; gap: 4px; color: var(--ink-2); font-weight: 700; font-size: .92rem; margin: 0 0 6px; }
.farm-card-place .ic { color: var(--terra); }
.js-dist { margin-left: 6px; color: var(--green); font-weight: 800; }
.farm-card-products { color: var(--ink-3); font-size: .92rem; font-weight: 650; margin: 0 0 14px; }
.farm-card-actions { margin-top: auto; display: flex; gap: 8px; }
.farm-card-actions .btn { flex: 1; }

/* ---------- Mapa ---------- */
.map-shell { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--sh-2); background: #e8efe2; }
.map { width: 100%; height: 460px; z-index: 1; }
.map-lg .map { height: min(560px, 70vh); }
.map-sm .map { height: 340px; }
.map-sticky .map { height: calc(100vh - var(--header-h) - 140px); min-height: 420px; }
.page-city .map-sticky .map, .page-search .map-sticky .map { height: calc(100vh - var(--header-h) - 40px); }
.map-full { border-radius: 0; border: 0; box-shadow: none; }
.map-full .map { height: calc(100vh - var(--header-h) - 74px); height: calc(100dvh - var(--header-h) - 74px - var(--bottom-h)); min-height: 380px; }
.map-loading { position: absolute; inset: 0; display: grid; place-items: center; gap: 10px; font-weight: 800; color: var(--ink-2); z-index: 500; pointer-events: none; }
.spinner { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--leaf-100); border-top-color: var(--green); animation: spin .8s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg) } }
.map-locate { position: absolute; z-index: 600; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--paper); color: var(--forest); font-weight: 800; box-shadow: var(--sh-2); cursor: pointer; }
.map-locate:hover { background: #fff; }
.map-locate.is-busy .ic { animation: spin 1s linear infinite; }
.map-filter { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 14px; scrollbar-width: thin; }
.map-filter .chip, .quick-chips .chip { flex: none; }

.pin { width: 46px; height: 54px; position: relative; }
.pin-in { position: absolute; left: 0; top: 0; width: 46px; height: 46px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); background: #fff; border: 3px solid var(--green); box-shadow: 0 6px 14px rgba(31, 61, 43, .3); display: grid; place-items: center; transition: transform .2s var(--ease); }
.pin-in img { transform: rotate(45deg); width: 30px; height: 30px; object-fit: contain; }
.pin.is-organic .pin-in { border-color: var(--leaf); }
.pin:hover .pin-in, .pin.is-hl .pin-in { transform: rotate(-45deg) scale(1.15); border-color: var(--sun); }
.leaflet-marker-icon.pin-wrap { background: none; border: 0; }
.cluster { background: none; }
.cluster div { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 1rem; color: #fff; background: var(--green); border: 4px solid rgba(255, 253, 248, .9); box-shadow: 0 0 0 6px rgba(47, 107, 58, .25), var(--sh-2); }
.cluster-lg div { width: 58px; height: 58px; background: var(--forest); }
.me-dot { width: 20px; height: 20px; border-radius: 50%; background: #2b7de9; border: 3px solid #fff; box-shadow: 0 0 0 8px rgba(43, 125, 233, .25); }
.leaflet-popup-content-wrapper { border-radius: 18px; padding: 0; overflow: hidden; box-shadow: var(--sh-3); }
.leaflet-popup-content { margin: 0; width: 260px !important; font-family: var(--body); font-size: 15px; line-height: 1.4; }
.leaflet-container a.leaflet-popup-close-button { width: 32px; height: 32px; top: 6px; right: 6px; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--forest); font-size: 22px; line-height: 30px; text-align: center; }
.pop-img { display: block; height: 130px; background: var(--cream-2) center / cover no-repeat; }
.pop-img.is-icon { background-size: 90px; background-color: var(--leaf-50); }
.pop-body { padding: 12px 14px 14px; }
.pop-body h3 { font-size: 1.08rem; margin: 0 0 2px; }
.pop-body p { margin: 0 0 4px; color: var(--ink-2); font-size: .88rem; }
.pop-actions { display: flex; gap: 6px; margin-top: 10px; }
.pop-actions .btn { flex: 1; min-height: 42px; font-size: .9rem; padding: 0 10px; }
.leaflet-container .pop-actions a.btn { color: #fff; }
.leaflet-container .pop-actions a.btn-ghost { color: var(--forest); }
.leaflet-control-attribution { font-size: 10px; }

.map-page-bar { background: var(--paper); border-bottom: 1px solid var(--line); }
.map-page-bar-in { display: flex; align-items: center; gap: 16px; min-height: 74px; flex-wrap: wrap; padding-block: 10px; }
.map-page-bar h1 { font-size: 1.5rem; margin: 0; }
.map-page-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; flex: 1; }
.map-count { margin-left: auto; font-weight: 800; color: var(--green); }

/* ---------- Koraci, gradovi, zašto ---------- */
.section-steps { background: var(--paper); border-block: 1px solid var(--line); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 4vw, 48px); }
.step { position: relative; }
.step-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: var(--leaf-50); color: var(--green); margin-bottom: 16px; }
.step-ic .ic { width: 28px; height: 28px; }
.step h3 { margin-bottom: .35em; }
.step-n { color: var(--sun); }
.step p { color: var(--ink-2); margin: 0; }

.city-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.city-chips a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px 10px 14px; min-height: 48px; border-radius: 999px; background: var(--paper); border: 1.5px solid var(--line); text-decoration: none; color: var(--forest); font-weight: 800; transition: border-color .15s, transform .15s var(--ease); }
.city-chips a .ic { color: var(--terra); }
.city-chips a b { min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; background: var(--leaf-50); color: var(--green); display: grid; place-items: center; font-size: .85rem; }
.city-chips a:hover { border-color: var(--leaf); transform: translateY(-2px); }
.city-cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.city-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r); background: var(--paper); border: 1.5px solid var(--line); text-decoration: none; color: var(--forest); transition: border-color .15s, transform .15s var(--ease); }
.city-card:hover { border-color: var(--leaf); transform: translateY(-2px); color: var(--forest); }
.city-card strong { display: block; font-size: 1.05rem; }
.city-card small { display: block; color: var(--ink-3); font-weight: 650; font-size: .82rem; }
.city-card b { margin-left: auto; min-width: 34px; height: 34px; border-radius: 999px; background: var(--green); color: #fff; display: grid; place-items: center; font-size: .9rem; }
.city-card.is-empty b { background: var(--cream-2); color: var(--ink-3); }
.city-ic { width: 42px; height: 42px; border-radius: 50%; background: #fbe6df; color: var(--terra); display: grid; place-items: center; flex: none; }
.inline-search { position: relative; display: block; max-width: 420px; margin-top: 14px; }
.inline-search .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.inline-search input { width: 100%; padding-left: 44px; }

.section-why { background: var(--bg); }
.why { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.why-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-xl); box-shadow: var(--sh-2); }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; }
.ticks .ic { flex: none; width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: var(--green); color: #fff; margin-top: 1px; }

.faq { display: grid; gap: 10px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 0 20px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--sh-1); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 34px 18px 0; font-weight: 800; font-size: 1.08rem; color: var(--forest); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--leaf-50); display: grid; place-items: center; font-size: 1.3rem; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--ink-2); padding-bottom: 18px; margin: 0; }

.cta-band { background: var(--forest); color: #fff; }
.cta-in { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.cta-in h2 { color: #fff; margin-bottom: .2em; }
.cta-in p { margin: 0; color: rgba(255, 255, 255, .85); font-size: 1.1rem; max-width: 60ch; }
.cta-band .btn-primary { --b: var(--sun); --t: #2a1d05; }
.cta-band .btn-primary:hover { --b: #f0b350; }
.cta-band + .site-footer { margin-top: 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.cta-band + .site-footer .footer-hills { display: none; }

/* ---------- Padajući meni ---------- */
.sel { position: relative; display: block; min-width: 0; width: 100%; }
.sel > select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.sel-btn { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); font-weight: 650; text-align: left; cursor: pointer; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.sel-btn > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sel-btn .ic { width: 18px; height: 18px; color: var(--ink-3); transition: transform .2s var(--ease); }
.sel.is-open .sel-btn .ic { transform: rotate(180deg); }
.sel-btn:hover, .sel.is-open .sel-btn { border-color: var(--leaf); }
.sel.is-open .sel-btn { box-shadow: 0 0 0 4px var(--leaf-50); }
.hs-field .sel-btn, .hs-field .sel-btn:hover, .hs-field .sel.is-open .sel-btn { border: 0; box-shadow: none; }
.sel-pop { position: absolute; z-index: 700; left: 0; top: calc(100% + 8px); min-width: max(100%, 240px); max-width: min(360px, 92vw); background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sh-3); padding: 6px; animation: pop .16s var(--ease); }
.sel-search { position: relative; padding: 2px 2px 6px; }
.sel-search input { width: 100%; height: 42px; border: 1.5px solid var(--line); border-radius: 10px; padding: 0 12px; background: var(--bg); font-weight: 600; outline: 0; }
.sel-search input:focus { border-color: var(--leaf); }
.sel-list { max-height: 296px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--leaf-100) transparent; }
.sel-opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 9px; cursor: pointer; font-weight: 650; line-height: 1.25; }
.sel-opt.is-child { padding-left: 26px; font-weight: 550; color: var(--ink-2); }
.sel-opt.is-active { background: var(--leaf-50); color: var(--forest); }
.sel-opt[aria-selected="true"] { color: var(--green); font-weight: 800; }
.sel-opt[aria-selected="true"]::after { content: ""; width: 16px; height: 16px; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.sel-empty { padding: 12px; color: var(--ink-3); font-weight: 600; }
.filter-field .sel { width: auto; min-width: 220px; }
.map-page-filters .sel { width: auto; min-width: 210px; flex: 0 1 240px; }

/* ---------- Gazdinstvo ---------- */
.farm-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 36px; align-items: start; padding-bottom: 18px; }
.farm-gallery { position: sticky; top: calc(var(--header-h) + 16px); }
.farm-main-img { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--r-xl); overflow: hidden; background: var(--cream-2); box-shadow: var(--sh-2); }
.farm-main-img img { width: 100%; height: 100%; object-fit: cover; }
.farm-noimg { display: grid; place-items: center; background: radial-gradient(circle at 50% 55%, color-mix(in srgb, var(--c) 18%, var(--paper)), var(--cream-2)); }
.farm-noimg img { width: 46%; height: auto; object-fit: contain; }
.img-count { position: absolute; right: 12px; bottom: 12px; display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 999px; background: rgba(31, 61, 43, .78); color: #fff; font-weight: 800; font-size: .9rem; }
.farm-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.farm-thumbs a { flex: none; width: 92px; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; border: 2px solid transparent; opacity: .85; transition: opacity .15s, border-color .15s; }
.farm-thumbs a:hover, .farm-thumbs a.is-on { opacity: 1; border-color: var(--green); }
.farm-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.farm-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.farm-title { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); margin-bottom: .15em; }
.farm-place { display: flex; align-items: center; gap: 6px; font-weight: 800; color: var(--ink-2); font-size: 1.08rem; }
.farm-place .ic { color: var(--terra); }
.farm-lead { font-size: 1.12rem; color: var(--ink-2); }
.contact-box { display: grid; gap: 10px; padding: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); margin: 18px 0 14px; }
.contact-box .btn-xl span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.contact-box .btn-xl strong { font-size: 1.25rem; letter-spacing: .01em; }
.contact-box .btn-xl .ic { width: 28px; height: 28px; }
.contact-row { display: flex; gap: 8px; flex-wrap: wrap; }
.contact-row .btn { flex: 1 1 120px; }
.contact-hint { margin: 0; color: var(--ink-3); font-size: .9rem; text-align: center; font-weight: 650; }
.share-row { display: flex; gap: 8px; margin-bottom: 18px; }
.farm-facts { display: grid; gap: 0; margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.farm-facts > div { display: grid; grid-template-columns: 190px 1fr; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.farm-facts > div:last-child { border-bottom: 0; }
.farm-facts dt { color: var(--ink-3); font-weight: 750; display: flex; gap: 8px; align-items: center; font-size: .94rem; }
.farm-facts dd { margin: 0; font-weight: 750; }
.farm-socials { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; font-weight: 800; }
.farm-socials a { display: inline-flex; gap: 6px; align-items: center; text-decoration: none; }
.offer-chips { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 12px; }
.offer-chips a { display: flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; border-radius: 999px; background: var(--paper); border: 1.5px solid var(--line); text-decoration: none; color: var(--forest); font-weight: 800; transition: transform .2s var(--ease), border-color .2s; }
.offer-chips img { width: 48px; height: 48px; border-radius: 50%; background: var(--cream-2); padding: 4px; transition: transform .3s var(--ease); }
.offer-chips a:hover { border-color: var(--leaf); transform: translateY(-2px); }
.offer-chips a:hover img { transform: rotate(-10deg) scale(1.08); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-bottom: 12px; }
.product { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.product-img { aspect-ratio: 4 / 3; background: var(--cream-2); display: grid; place-items: center; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-img img.is-icon { width: 50%; height: auto; object-fit: contain; }
.product-body { padding: 12px 14px 14px; }
.product-body h3 { font-size: 1.1rem; margin: 0 0 4px; }
.product-cat { display: inline-block; font-size: .78rem; font-weight: 800; color: var(--green); background: var(--leaf-50); padding: 2px 8px; border-radius: 999px; margin-bottom: 6px; }
.product-body p { margin: 0; font-size: .94rem; color: var(--ink-2); }

.call-bar { display: none; }

.prose { font-size: 1.08rem; }
.prose h2 { font-size: 1.6rem; margin-top: 1.2em; }
.prose h3 { font-size: 1.3rem; margin-top: 1em; }
.prose img { border-radius: var(--r); margin: 1em 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose blockquote { margin: 1em 0; padding: 14px 20px; border-left: 4px solid var(--sun); background: var(--sun-50); border-radius: 0 var(--r) var(--r) 0; }
.prose > :first-child { margin-top: 0; }
.card-paper { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 36px); box-shadow: var(--sh-1); }

/* ---------- Dijalozi ---------- */
dialog { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; }
dialog::backdrop { background: rgba(31, 61, 43, .55); backdrop-filter: blur(3px); }
.share-dialog[open] { animation: pop .25s var(--ease); }
.share-in { width: min(440px, 92vw); background: var(--paper); border-radius: var(--r-xl); padding: 24px; box-shadow: var(--sh-3); }
.share-in h2 { font-size: 1.4rem; }
.share-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.sh { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--bg); color: var(--forest); text-decoration: none; font-weight: 800; font-size: .85rem; cursor: pointer; transition: transform .15s var(--ease), border-color .15s; }
.sh .ic { width: 28px; height: 28px; }
.sh:hover { transform: translateY(-2px); border-color: var(--leaf); color: var(--forest); }
.sh-wa .ic { color: var(--wa); } .sh-viber .ic { color: var(--viber); } .sh-fb .ic { color: #1877F2; } .sh-ig .ic { color: #D62976; }
.share-url { width: 100%; min-height: 46px; border: 1.5px dashed var(--line); border-radius: 12px; padding: 0 12px; background: var(--bg); margin-bottom: 12px; font-size: .9rem; color: var(--ink-2); }
.lightbox[open] { position: fixed; inset: 0; width: 100vw; height: 100vh; display: grid; place-items: center; background: rgba(15, 25, 18, .92); }
.lightbox img { max-width: 92vw; max-height: 84vh; border-radius: 12px; object-fit: contain; }
.lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, .14); color: #fff; width: 54px; height: 54px; border-radius: 50%; font-size: 2rem; cursor: pointer; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(255, 255, 255, .26); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.toast { position: fixed; left: 50%; bottom: calc(24px + var(--bottom-h)); transform: translateX(-50%); z-index: 2000; background: var(--forest); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 800; box-shadow: var(--sh-3); animation: pop .25s var(--ease); max-width: 92vw; text-align: center; }

/* ---------- Forme ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.form { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field > span { font-weight: 800; color: var(--forest); font-size: .95rem; }
.field input, .field textarea, .field select { width: 100%; }
.field textarea { resize: vertical; min-height: 130px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-errors { background: #fbe1da; color: #8a2a17; padding: 14px 18px; border-radius: var(--r); }
.form-errors ul { margin: 6px 0 0; padding-left: 1.2em; }
.contact-aside { display: grid; gap: 16px; }
.company-card { text-align: center; }
.company-card img { margin: -6px auto 4px; }
.company-card p { margin: 0 0 8px; }
.cat-blocks { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.cat-block { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; }
.cat-block .cat-card { border-radius: 0; box-shadow: none; }

.cat-block-list { list-style: none; padding: 8px; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.cat-block-list a { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 12px; text-decoration: none; color: var(--forest); font-weight: 750; font-size: .92rem; line-height: 1.2; }
.cat-block-list a:hover { background: var(--leaf-50); }
.cat-block-list img { width: 34px; height: 34px; }
.cat-block-list b { margin-left: auto; font-size: .78rem; color: var(--green); }

/* ---------- Futer ---------- */
.site-footer { position: relative; background: #182f21; color: #d8e4d6; margin-top: 60px; padding: 56px 0 20px; }
.page-home .site-footer { margin-top: 0; }
.footer-hills { position: absolute; left: 0; right: 0; top: -58px; height: 60px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 60V34C120 10 240 0 380 14s260 40 420 30 300-40 440-34 200 20 200 20v30z' fill='%232F6B3A'/%3E%3Cpath d='M0 60V44c160-20 300-26 470-10s300 22 470 6 330-26 500-8v28z' fill='%231F3D2B'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 36px; }
.footer-brand p { margin-top: 14px; color: #b9cbb6; }
.footer-title { font-family: var(--body); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: #fff; margin: 0 0 12px; font-weight: 900; }
.footer-links { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 6px; }
.site-footer a { color: #d8e4d6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-company p { margin: 0 0 6px; }
.footer-company strong { color: #fff; font-size: 1.05rem; }
.footer-company .btn { margin-top: 10px; }
.site-footer .btn-sun, .site-footer .btn-sun:hover { color: #2a1d05; text-decoration: none; }
.socials { display: flex; gap: 8px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .1); display: grid; place-items: center; }
.socials a:hover { background: rgba(255, 255, 255, .2); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 30px; padding-top: 18px; font-size: .9rem; color: #9fb59b; }
.footer-bottom p { margin: 0; }

.bottom-nav { display: none; }

/* ---------- Animacija pri skrolu ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1100px) {
  .main-nav { display: none; }
  .menu-btn { display: inline-grid; }
  .header-actions { margin-left: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1023px) {
  .why { grid-template-columns: 1fr; }
  .results { grid-template-columns: 1fr; }
  .view-toggle { display: inline-flex; }
  .results[data-view="list"] .results-map, .results:not([data-view]) .results-map { display: none; }
  .results[data-view="map"] .results-list { display: none; }
  .results-map { position: static; }
  .map-sticky .map, .page-city .map-sticky .map, .page-search .map-sticky .map { height: 70vh; }
  .farm-top { grid-template-columns: 1fr; gap: 20px; }
  .farm-gallery { position: static; }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --header-h: 62px; --bottom-h: calc(66px + env(safe-area-inset-bottom)); }
  body { font-size: 16.5px; }
  .wrap { padding-inline: 16px; }
  .brand img { width: 38px; height: 38px; }
  .brand img.brand-logo { width: auto; height: 42px; }
  .brand-text strong { font-size: 1.12rem; }
  .brand-text small { display: none; }
  .hide-sm { display: none !important; }

  .hero { min-height: 0; }
  .hero-bg::after { background: linear-gradient(0deg, rgba(16, 30, 21, .88), rgba(16, 30, 21, .62)); }
  .hero-in { padding-top: 34px; padding-bottom: 34px; }
  .hero-stats { flex-direction: column; gap: 6px; padding-block: 14px; }
  .hero-stats strong { font-size: 1.3rem; min-width: 46px; }
  .baskets, .baskets-sm { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cat-card-body strong { font-size: 1.05rem; }
  .cat-card-body { left: 12px; right: 12px; bottom: 10px; }
  .cat-hero.has-photo { min-height: 240px; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; }
  .step-ic { grid-row: span 2; margin: 0; }
  .cta-in { grid-template-columns: 1fr; }
  .filter-field .sel, .map-page-filters .sel { flex: 1; min-width: 0; }

  .hero-search { flex-direction: column; border-radius: var(--r-lg); padding: 8px; }
  .hs-city { border-left: 0; border-top: 1.5px solid var(--line); }
  .hs-field, .hs-field input, .hs-field select { border-radius: 14px; }
  .hs-field:focus-within { border-radius: 14px; }
  .hero-search .btn { width: 100%; border-radius: 14px; }
  .quick-chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .quick-chips::-webkit-scrollbar { display: none; }


  .shelf-item { width: 92px; }
  .shelf-img { width: 56px; height: 56px; }
  .shelf-img img { width: 48px; height: 48px; }
  .filters { gap: 10px; }
  .filter-field { width: 100%; }
  .filter-field select { flex: 1; }

  .farm-grid, .farm-grid-2 { grid-template-columns: 1fr; }
  .farm-facts > div { grid-template-columns: 1fr; gap: 2px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 10px; }
  .site-footer { padding-bottom: 24px; }
  .map-lg .map { height: 62vh; }
  .map-page-bar h1 { display: none; }
  .map-page-filters select { flex: 1 1 140px; min-width: 0; }
  .map-count { width: 100%; margin: 0; font-size: .9rem; }
  .map-full .map { height: calc(100dvh - var(--header-h) - 120px - var(--bottom-h)); }
  .share-grid { grid-template-columns: repeat(3, 1fr); }

  /* donji meni kao aplikacija */
  .bottom-nav {
    position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; height: var(--bottom-h); padding-bottom: env(safe-area-inset-bottom);
    display: grid; grid-template-columns: repeat(5, 1fr);
    background: rgba(255, 253, 248, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(31, 61, 43, .06);
  }
  .bottom-nav a, .bottom-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 0; background: none; color: var(--ink-3); text-decoration: none; font-size: .74rem; font-weight: 800; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .bottom-nav .ic { width: 25px; height: 25px; }
  .bottom-nav .is-active { color: var(--green); }
  .bottom-nav .is-active .ic { transform: translateY(-1px); }

  /* na stranici gazdinstva umesto menija: veliko dugme "Pozovi" */
  .page-farm { --bottom-h: calc(76px + env(safe-area-inset-bottom)); }
  .page-farm .bottom-nav { display: none; }
  .call-bar { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 253, 248, .97); backdrop-filter: blur(10px); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(31, 61, 43, .1); }
  .call-bar .btn { min-height: 54px; }
  .call-bar .btn-call { flex: 1; font-size: 1.1rem; }
  .toast { bottom: calc(16px + var(--bottom-h)); }
}


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .bottom-nav, .call-bar, .site-footer, .map-shell, .share-row { display: none !important; }
}

.farm-noimg img.is-cover { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Fotografije proizvoda (umesto crteža) ---------- */
img[src*="img/products/"][src*=".jpg"] { border-radius: 50%; object-fit: cover; }
.shelf-img { overflow: hidden; }
.shelf-img img[src*=".jpg"] { width: 100%; height: 100%; }
.pin-in { overflow: hidden; }
.pin-in img[src*=".jpg"] { width: 100%; height: 100%; }
.cat-card.no-photo .cat-card-img img.is-icon[src*=".jpg"] { width: 46%; aspect-ratio: 1; box-shadow: 0 6px 18px rgba(16, 30, 21, .18); }
.product-img img.is-icon[src*=".jpg"] { width: 100%; height: 100%; border-radius: 0; }
.pop-img.is-icon { background-size: cover; }

/* =========================================================================
   REDIZAJN — svetao, moderan izgled (Plus Jakarta Sans, zelena, bele kartice)
   ========================================================================= */
:root {
  --bg: #FFFFFF;
  --paper: #FFFFFF;
  --cream-2: #F3F5EE;
  --soft: #F5F8F1;
  --ink: #1B2A1E;
  --ink-2: #4A574D;
  --ink-3: #7B867D;
  --forest: #1B2A1E;
  --green: #2E6B2C;
  --green-2: #37802F;
  --leaf: #4E9A3A;
  --leaf-50: #EEF6E8;
  --leaf-100: #DCEDD0;
  --line: #E7EBE2;
  --r: 14px;
  --r-lg: 18px;
  --r-xl: 24px;
  --sh-1: 0 1px 2px rgba(27, 42, 30, .05), 0 4px 14px rgba(27, 42, 30, .06);
  --sh-2: 0 6px 16px rgba(27, 42, 30, .07), 0 18px 40px rgba(27, 42, 30, .09);
  --sh-3: 0 12px 28px rgba(27, 42, 30, .10), 0 32px 64px rgba(27, 42, 30, .14);
  --head: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 76px;
}
body { font-size: 16.5px; font-weight: 500; }
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -.025em; color: var(--ink); }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.2vw, 2.1rem); }
.lead { color: var(--ink-2); }

/* dugmad */
.btn { border-radius: 12px; font-weight: 700; }
.btn-pill { border-radius: 999px; }
.btn-primary { --b: var(--green); }
.btn-primary:hover { --b: #245622; }
.btn-white { --b: #fff; --t: var(--green); }
.btn-white:hover { --t: #245622; --b: #fff; }
.btn-ghost { --b: #fff; --t: var(--ink); border-color: var(--line); }
.btn .ic { width: 1.1em; height: 1.1em; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .95rem; color: var(--green); text-decoration: none; white-space: nowrap; }
.link-arrow .ic { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.link-arrow:hover { color: #245622; }
.link-arrow:hover .ic { transform: translateX(3px); }
.chip { font-weight: 600; background: #fff; }
.chip.is-on { background: var(--green); border-color: var(--green); }
.badge { font-weight: 700; }
.badge-organic { background: var(--green); color: #fff; }
.badge-organic .ic { width: 14px; height: 14px; }

/* zaglavlje */
.site-header { background: rgba(255, 255, 255, .92); border-bottom: 1px solid var(--line); }
.header-in { gap: 28px; }
.brand img.brand-logo { height: 52px; }
.main-nav { margin-left: auto; margin-right: auto; }
.main-nav > ul { gap: 6px; }
.main-nav > ul > li > a { position: relative; padding: 10px 12px; border-radius: 8px; color: var(--ink); font-weight: 600; font-size: .97rem; background: none; }
.main-nav > ul > li > a:hover { background: none; color: var(--green); }
.main-nav a.is-active { background: none; color: var(--green); font-weight: 700; }
.main-nav a.is-active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--green); }
.header-actions { gap: 12px; }
.icon-btn-ring { border: 1px solid var(--line); background: #fff; }
.icon-btn-ring .ic { width: 20px; height: 20px; }
.header-actions .btn-sm { min-height: 46px; padding: 0 20px; font-size: .95rem; }
.mega { border-radius: var(--r-lg); }
.mega-item { font-weight: 700; }

/* hero */
.hero { min-height: min(640px, 82vh); background: #eef2e6; color: var(--ink); }
.hero-bg img { object-position: 70% 50%; }
.hero-bg::after { background: linear-gradient(90deg, rgba(255, 255, 255, .92) 0%, rgba(255, 255, 255, .78) 30%, rgba(255, 255, 255, .25) 55%, rgba(255, 255, 255, 0) 70%); }
.hero-in { padding-top: clamp(48px, 9vh, 96px); padding-bottom: clamp(48px, 9vh, 96px); }
.hero-copy { max-width: 600px; }
.hero h1 { color: var(--ink); font-weight: 800; font-size: clamp(2.2rem, 1.2rem + 3.4vw, 3.6rem); line-height: 1.08; letter-spacing: -.035em; margin-bottom: .4em; }
.hero h1 .hl { color: var(--leaf); }
.hero-sub { color: #2E3A31; font-size: clamp(1.02rem, .95rem + .3vw, 1.18rem); font-weight: 500; max-width: 48ch; margin-bottom: 26px; }
.hero-search { align-items: center; border-radius: 999px; padding: 6px 6px 6px 8px; box-shadow: 0 10px 30px rgba(27, 42, 30, .14); max-width: 600px; background: #fff; }
.hs-field input, .hs-field select, .hs-field .sel-btn { height: 52px; font-weight: 500; font-size: 1rem; }
.hs-field:focus-within { background: transparent; }
.hs-q { flex: 1.5; }
.hs-city { flex: 1; border-left: 1px solid var(--line); border-radius: 0; }
.hero-search .btn { min-height: 50px; padding: 0 28px; }
.hero-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; padding: 0; }
.hero-tags li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, .78); backdrop-filter: blur(8px); border: 1px solid rgba(231, 235, 226, .9); font-weight: 700; font-size: .92rem; color: var(--ink); box-shadow: 0 2px 8px rgba(27, 42, 30, .06); }
.hero-tags .ic { width: 18px; height: 18px; color: var(--green); }

/* sekcije */
.section { padding: clamp(44px, 6vw, 80px) 0; }
.section-head { margin-bottom: 26px; }
.section-head-row { align-items: center; }
.section-cats { padding-bottom: clamp(28px, 4vw, 48px); }

/* kategorije na početnoj */
.prod-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 16px; }
.prod-cat { display: flex; flex-direction: column; background: var(--soft); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: var(--ink); border: 1px solid var(--line); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.prod-cat:hover { transform: translateY(-4px); box-shadow: var(--sh-2); color: var(--ink); }
.prod-cat-img { display: block; aspect-ratio: 1 / .82; overflow: hidden; background: #fff; }
.prod-cat-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; transition: transform .6s var(--ease); }
.prod-cat:hover .prod-cat-img img { transform: scale(1.06); }
.prod-cat-name { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 58px; padding: 10px 8px; font-weight: 700; font-size: .92rem; line-height: 1.2; text-align: center; }
.prod-cat-name .ic { width: 18px; height: 18px; color: var(--green); flex: none; }

/* kartice gazdinstava */
.section-featured { background: var(--soft); }
.farm-grid { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.farm-grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.farm-card { border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--sh-1); background: #fff; }
.farm-card-img { aspect-ratio: 16 / 10; }
.farm-card-badges { left: 12px; top: 12px; }
.farm-card-body { padding: 16px; gap: 14px; }
.farm-card-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.farm-card-avatar { width: 48px; height: 48px; flex: none; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(27, 42, 30, .14); background: var(--leaf-50); }
.farm-card-id { min-width: 0; }
.farm-card-title { font-size: 1.08rem; font-weight: 800; margin: 0 0 2px; }
.farm-card-title a { color: var(--ink); }
.farm-card-place { margin: 0; font-weight: 600; font-size: .9rem; }
.farm-card-place .ic { color: var(--green); }
.farm-card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.farm-card-thumbs { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; min-width: 0; }
.farm-card-thumbs li { flex: none; }
.farm-card-thumbs img { width: 44px; height: 44px; border-radius: 10px !important; object-fit: cover; }
.farm-card-thumbs .more { width: 44px; height: 44px; border-radius: 10px; background: var(--leaf-50); color: var(--green); display: grid; place-items: center; font-weight: 800; font-size: .85rem; }
.farm-card-foot .btn { flex: none; }

/* koraci */
.section-steps { background: var(--soft); border: 0; }
.steps { grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 4vw, 56px); }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step:not(:last-child)::after { content: ""; position: absolute; right: calc(clamp(20px, 4vw, 56px) / -2 - 12px); top: 22px; width: 24px; height: 24px; background: var(--green); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16M14 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16M14 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; }
.step-ic { flex: none; width: 68px; height: 68px; border-radius: 18px; background: #fff; color: var(--green); box-shadow: var(--sh-1); margin: 0; }
.step-ic .ic { width: 30px; height: 30px; }
.step h3 { font-size: 1.1rem; margin-bottom: .3em; }
.step p { font-size: .95rem; }

/* zašto, pitanja, mapa */
.section-why { background: #fff; }
.section-faq { background: var(--soft); }
.faq details { border-radius: var(--r); background: #fff; }
.faq summary { font-weight: 700; color: var(--ink); }
.map-shell { border-radius: var(--r-xl); }

/* poziv za gazdinstva (iznad futera) */
.cta-section { padding-top: clamp(28px, 4vw, 48px); }
.cta-banner { position: relative; isolation: isolate; overflow: hidden; border-radius: 28px; min-height: 260px; display: flex; align-items: center; background: #24561f; box-shadow: var(--sh-2); }
.cta-bg { position: absolute; inset: 0; z-index: -1; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.cta-banner::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(90deg, rgba(36, 86, 31, .96) 0%, rgba(36, 86, 31, .82) 32%, rgba(36, 86, 31, 0) 62%); }
.cta-copy { position: relative; z-index: 1; padding: clamp(28px, 4vw, 52px); max-width: 560px; color: #fff; }
.cta-copy h2 { color: #fff; font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem); margin-bottom: .3em; }
.cta-copy p { color: rgba(255, 255, 255, .92); font-size: 1.08rem; margin-bottom: 22px; }
.page-home .site-footer { margin-top: 40px; }

/* stranica kategorija: pozadinska fotografija */
.page-hero { background: var(--soft); }
.page-hero.has-photo { position: relative; isolation: isolate; overflow: hidden; padding: 56px 0 60px; background: #eef2e6; }
.page-hero-bg { position: absolute; inset: 0; z-index: -2; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 55%; }
.page-hero.has-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(255, 255, 255, .94) 0%, rgba(255, 255, 255, .8) 35%, rgba(255, 255, 255, .15) 70%); }
.page-hero.has-photo .lead { color: #2E3A31; }

/* kategorije i ostale stranice */
.cat-card-body strong { font-weight: 800; }
.cat-block { border-radius: var(--r-xl); box-shadow: var(--sh-1); }
.shelf-wrap { background: rgba(255, 255, 255, .95); }
.shelf-item { border-radius: 16px; }
.shelf-name { font-weight: 700; }
.shelf-item.is-on { background: var(--leaf-50); }
.count-pill { font-weight: 700; }

/* futer */
.site-footer { background: #17291B; }
.footer-hills { display: none; }
.footer-title { font-weight: 800; }

@media (max-width: 1100px) {
  .hide-md { display: none !important; }
  .main-nav { margin: 0; }
}
@media (max-width: 1023px) {
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .step:not(:last-child)::after { display: none; }
}
@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .brand img.brand-logo { height: 42px; }
  .hero { min-height: 0; }
  .hero-bg img { object-position: 78% 50%; }
  .hero-bg::after { background: linear-gradient(180deg, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, .82) 55%, rgba(255, 255, 255, .55) 100%); }
  .hero-in { padding-top: 32px; padding-bottom: 32px; }
  .hero-search { flex-direction: column; align-items: stretch; border-radius: 22px; padding: 8px; }
  .hs-city { border-left: 0; border-top: 1px solid var(--line); }
  .hero-search .btn { width: 100%; }
  .hero-tags { gap: 8px; }
  .hero-tags li { padding: 6px 12px; font-size: .85rem; }
  .prod-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .section-head-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .step { display: flex; }
  .cta-banner { min-height: 0; }
  .cta-banner::before { background: linear-gradient(180deg, rgba(36, 86, 31, .92) 0%, rgba(36, 86, 31, .8) 100%); }
  .farm-card-thumbs img, .farm-card-thumbs .more { width: 40px; height: 40px; }
}
.hs-q { flex: 2; }
.hs-city { flex: .9; }
.site-footer .btn-sun, .site-footer .btn-sun:hover { --b: #fff; --t: var(--green); color: var(--green); }
.hs-city { flex: 0 0 190px; }
@media (max-width: 760px) { .hs-city { flex: 1 1 auto; } }
.hero-search { max-width: 660px; }
.hero-copy { max-width: 660px; }
.page-hero.has-photo .count-pill { background: rgba(255, 255, 255, .85); backdrop-filter: blur(6px); }

/* ---------- Kontakt ---------- */
.contact-quick-wrap { margin-top: -34px; position: relative; z-index: 2; }
.contact-quick { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.contact-quick a, .contact-quick div { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-2); text-decoration: none; color: var(--ink); }
.contact-quick a:hover { border-color: var(--leaf); color: var(--ink); }
.contact-quick small { display: block; color: var(--ink-3); font-weight: 600; font-size: .82rem; }
.contact-quick strong { display: block; font-weight: 700; }
.cq-ic { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--leaf-50); color: var(--green); }
.cq-ic .ic { width: 22px; height: 22px; }
.contact-layout { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 28px; }
.contact-form { box-shadow: var(--sh-2); }
.form-head { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.form-head h2 { margin: 0; }
.form-head p { margin: 0; }
.form-head-ic { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--green); color: #fff; }
.form-head-ic .ic { width: 24px; height: 24px; }
.field input, .field select, .field textarea { border-radius: 12px; background: #FAFBF8; }

.company-card2 { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-2); overflow: hidden; }
.cc-photo { position: relative; height: 150px; }
.cc-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 75% 50%; }
.cc-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(36, 86, 31, 0) 40%, rgba(36, 86, 31, .35)); }
.cc-logo { position: absolute; z-index: 1; left: 22px; bottom: -32px; width: 72px; height: 72px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: var(--sh-2); }
.cc-logo img { width: 58px; height: 58px; }
.cc-body { padding: 44px 22px 22px; }
.cc-label { margin: 0 0 2px; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--green); }
.cc-name { font-size: 1.45rem; margin: 0 0 6px; }
.cc-text { color: var(--ink-2); font-size: .95rem; margin-bottom: 14px; }
.cc-rows { margin: 0; display: grid; border-top: 1px solid var(--line); }
.cc-rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.cc-rows dt { display: flex; align-items: center; gap: 8px; color: var(--ink-3); font-weight: 600; font-size: .92rem; }
.cc-rows dt .ic { color: var(--green); width: 18px; height: 18px; }
.cc-rows dd { margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.cc-rows a { text-decoration: none; }
.cc-socials { margin-top: 14px; }
.cc-socials a { background: var(--leaf-50); color: var(--green); }
.cc-promo { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r-lg); background: var(--soft); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .2s, transform .2s var(--ease); }
.cc-promo:hover { border-color: var(--leaf); transform: translateY(-2px); color: var(--ink); }
.cc-promo strong { display: block; }
.cc-promo small { display: block; color: var(--ink-2); font-weight: 500; }
.cc-promo > .ic { margin-left: auto; color: var(--green); }

.help-section { background: var(--soft); margin-top: clamp(20px, 3vw, 40px); }
.help-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.help-cards li { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: 26px; box-shadow: var(--sh-1); }
.help-cards .step-ic { margin-bottom: 16px; }
.help-cards h3 { font-size: 1.15rem; margin-bottom: .35em; }
.help-cards p { color: var(--ink-2); font-size: .96rem; margin-bottom: 10px; }
@media (max-width: 1023px) { .help-cards { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .contact-quick-wrap { margin-top: 16px; } }
/* čitljiviji tekst preko fotografije u zaglavljima */
.page-hero.has-photo::after { background: linear-gradient(90deg, rgba(255, 255, 255, .97) 0%, rgba(255, 255, 255, .9) 38%, rgba(255, 255, 255, .55) 58%, rgba(255, 255, 255, .08) 80%); }
.page-hero.has-photo .lead { max-width: 54ch; color: #1F2B22; font-weight: 600; text-shadow: 0 0 14px rgba(255, 255, 255, .95), 0 0 2px rgba(255, 255, 255, .9); }
.page-hero.has-photo h1, .page-hero.has-photo .crumbs { text-shadow: 0 0 18px rgba(255, 255, 255, .9); }
@media (max-width: 760px) { .page-hero.has-photo::after { background: linear-gradient(180deg, rgba(255, 255, 255, .93), rgba(255, 255, 255, .85)); } }
.company-card2 { border-top: 4px solid var(--green); }
.cc-body { padding: 24px 22px 22px; }
.cc-name { font-size: 1.4rem; }
/* kartice kategorija kao na dizajnu: slika uvučena, zaobljena, naziv ispod */
.prod-cats { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 14px; }
.prod-cat { background: #F5F4EF; border: 1px solid #ECEAE2; border-radius: 18px; padding: 6px 6px 0; box-shadow: 0 1px 2px rgba(27, 42, 30, .04); }
.prod-cat-img { aspect-ratio: 1 / .78; border-radius: 13px; background: #fff; }
.prod-cat-img img { object-position: 50% 60%; }
.prod-cat-name { min-height: 62px; font-size: .9rem; color: var(--ink); }
.prod-cat-name .ic { width: 20px; height: 20px; padding: 2px; border: 1.5px solid var(--green); border-radius: 6px; }
.footer-logo { display: inline-flex; padding: 10px 16px; background: #fff; border-radius: 16px; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.footer-logo img { width: auto; height: 50px; }
.footer-logo { padding: 0; background: none; border-radius: 0; box-shadow: none; }
.footer-logo img { height: 64px; }
.company-card2 { border-top: 1px solid var(--line); }
.cc-body { padding: 46px 22px 22px; }
@media (max-width: 1023px) { .contact-layout { grid-template-columns: minmax(0, 1fr); } }
.contact-layout > * { min-width: 0; }
@media (max-width: 760px) { .form-head { align-items: flex-start; } .form-head-ic { width: 44px; height: 44px; border-radius: 12px; } .contact-form { padding: 20px 16px; } }
/* ---------- Responsive dorade ---------- */
@media (max-width: 1023px) {
  .page-hero.has-photo::after { background: linear-gradient(180deg, rgba(255, 255, 255, .94) 0%, rgba(255, 255, 255, .86) 70%, rgba(255, 255, 255, .7) 100%); }
  .page-hero.has-photo { padding: 40px 0 44px; }
  .hero-bg::after { background: linear-gradient(90deg, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .85) 50%, rgba(255, 255, 255, .35) 100%); }
  .help-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .help-cards li { padding: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 700px) {
  .help-cards { grid-template-columns: 1fr; }
  .help-cards li { display: grid; grid-template-columns: 52px 1fr; column-gap: 14px; }
  .help-cards .step-ic { grid-row: span 3; width: 52px; height: 52px; border-radius: 14px; margin: 0; }
  .help-cards .step-ic .ic { width: 24px; height: 24px; }
}
@media (max-width: 760px) {
  .hero-bg::after { background: linear-gradient(180deg, rgba(255, 255, 255, .92) 0%, rgba(255, 255, 255, .84) 60%, rgba(255, 255, 255, .6) 100%); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px 16px; }
  .footer-brand, .footer-company { grid-column: 1 / -1; }
  .footer-links { margin-bottom: 0; }
  .footer-logo img { height: 54px; }
  .section { padding: 40px 0; }
  .contact-quick-wrap { margin-top: 16px; }
  .cc-rows > div { flex-wrap: wrap; }
}
.prod-cats { grid-template-columns: repeat(7, minmax(0, 1fr)); }
@media (max-width: 1100px) { .prod-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 700px) { .prod-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } .prod-cat { padding: 4px 4px 0; border-radius: 14px; } .prod-cat-img { border-radius: 10px; } .prod-cat-name { min-height: 54px; font-size: .8rem; padding: 8px 4px; gap: 4px; } .prod-cat-name .ic { width: 16px; height: 16px; } }
@media (max-width: 360px) { .prod-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.prod-cats { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1100px) { .prod-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 700px) { .prod-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .prod-cat-name { font-size: .88rem; } }
.farm-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.farm-grid-4 .farm-card-thumbs img, .farm-grid-4 .farm-card-thumbs .more { width: 36px; height: 36px; border-radius: 8px !important; }
.farm-grid-4 .farm-card-title { font-size: 1rem; }
.farm-grid-4 .farm-card-avatar { width: 42px; height: 42px; }
@media (max-width: 1100px) { .farm-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .farm-grid-4 { grid-template-columns: 1fr; } }
.farm-card-thumbs { overflow: hidden; }
.farm-grid-4 .farm-card-thumbs li:nth-child(n+4) { display: none; }
.farm-card-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.farm-card-thumbs { min-width: 0; overflow: hidden; flex-wrap: nowrap; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.farm-card-foot .btn { justify-self: end; }
/* novi okrugli amblem */
.brand img.brand-logo { height: 66px; width: 66px; }
.footer-logo { width: 116px; height: 116px; padding: 6px; background: #fff; border-radius: 50%; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
.footer-logo img { width: 100%; height: 100%; }
.cc-logo img { width: 64px; height: 64px; }
@media (max-width: 760px) { .brand img.brand-logo { height: 54px; width: 54px; } .footer-logo { width: 96px; height: 96px; } .footer-logo img { height: 100%; } }
/* veći amblem */
:root { --header-h: 100px; }
.brand img.brand-logo { height: 88px; width: 88px; }
.footer-logo { width: 150px; height: 150px; padding: 8px; }
.cc-logo { width: 84px; height: 84px; bottom: -40px; } .cc-logo img { width: 76px; height: 76px; } .cc-body { padding-top: 54px; }
@media (max-width: 760px) { :root { --header-h: 76px; } .brand img.brand-logo { height: 66px; width: 66px; } .footer-logo { width: 120px; height: 120px; } }
/* ---------- Narandžasti akcenat iz logoa ---------- */
:root { --orange: #F06A0F; --orange-d: #D9560A; --orange-50: #FFF1E6; }
.main-nav a.is-active::after { background: var(--orange); height: 3px; }
.main-nav > ul > li > a:hover { color: var(--orange-d); }
.hero h1 .hl { color: var(--orange); }
.hero-tags .ic { color: var(--orange); }
.link-arrow .ic { color: var(--orange); }
.section-head h2::after { content: ""; display: block; width: 44px; height: 4px; margin-top: 10px; border-radius: 4px; background: var(--orange); }
.section-head.center h2::after { margin-inline: auto; }
.section-head-row h2::after { margin-top: 8px; }
.step:not(:last-child)::after { background: var(--orange); }
.step-ic { color: var(--orange); }
.prod-cat:hover { border-color: var(--orange); }
.prod-cat-name .ic { color: var(--orange); border-color: var(--orange); }
.badge-light .ic { color: var(--orange); }
.farm-card-place .ic, .farm-place .ic { color: var(--orange); }
.footer-title { color: var(--orange); }
.cc-rows dt .ic, .cq-ic { color: var(--orange); }
.cq-ic { background: var(--orange-50); }
.shelf-count { background: var(--orange); }
.page-hero.has-photo h1::after { content: ""; display: block; width: 52px; height: 4px; margin-top: 12px; border-radius: 4px; background: var(--orange); }
@media (max-width: 760px) { .sel-pop { left: 0; right: 0; min-width: 0; max-width: none; } .sel-opt { min-height: 46px; padding: 12px 14px; } .sel-list { max-height: 50vh; } .hs-field .sel-pop { left: -8px; right: -8px; } }
/* naziv pored logoa (tablet i telefon) */
.brand-name { display: none; flex-direction: column; line-height: 1.05; }
.brand-name strong { font-size: 1.12rem; font-weight: 800; color: var(--green); letter-spacing: -.02em; }
.brand-name span { font-size: 1.12rem; font-weight: 800; color: var(--orange); letter-spacing: -.02em; }
@media (max-width: 1100px) { .brand-name { display: flex; } }
@media (max-width: 380px) { .brand-name strong, .brand-name span { font-size: 1rem; } }
.brand-name strong, .brand-name span { white-space: nowrap; }
@media (max-width: 380px) { .brand { gap: 8px; } .brand-name strong, .brand-name span { font-size: .95rem; } .header-actions { gap: 4px; } }
