/* Eko farma "Jezerac": bež je glavna boja, bijela sporedna, uz zelenu i narandžastu za detalje. */

/* Fontovi s Google Fonts, smješteni na stranicu: promjenljiva debljina, samo latinica i slova za č, ć, đ, š, ž. */
@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../assets/fonts/quicksand-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../assets/fonts/quicksand-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/nunito-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/nunito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --font: 'Nunito', system-ui, sans-serif;
  --font-head: 'Quicksand', 'Nunito', system-ui, sans-serif;
  --paper: #f1e9d8;
  --white: #fff;
  --beige: #e8dcc3;
  --sand: #dccdae;
  --mint: #e0e9cf;
  --forest: #1c4727;
  --green: #2f7d3f;
  --ink: #14261a;
  --grey: #4f5c53;
  --line: #ddd0b6;
  --orange: #e8862b;
  --error: #a8360a;
  --rule: rgb(28 71 39 / .07);
  --shadow: 0 16px 44px rgb(28 71 39 / .12);
  --cell: 40px;
  --gutter: clamp(20px, 5vw, 88px);
  --radius: 22px;
  --radius-big: clamp(24px, 3vw, 40px);
  --top-h: 76px;
  --eggs-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%231c4727' stroke-opacity='.09' stroke-width='1.5'%3E%3Cpath d='M30 12c9 0 16 14 16 25 0 9-7 15-16 15s-16-6-16-15c0-11 7-25 16-25Z'/%3E%3Cpath transform='rotate(24 90 88)' d='M90 62c8 0 14 12 14 22 0 8-6 14-14 14s-14-6-14-14c0-10 6-22 14-22Z'/%3E%3C/g%3E%3C/svg%3E");
  --eggs-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23fff' stroke-opacity='.1' stroke-width='1.5'%3E%3Cpath d='M30 12c9 0 16 14 16 25 0 9-7 15-16 15s-16-6-16-15c0-11 7-25 16-25Z'/%3E%3Cpath transform='rotate(24 90 88)' d='M90 62c8 0 14 12 14 22 0 8-6 14-14 14s-14-6-14-14c0-10 6-22 14-22Z'/%3E%3C/g%3E%3C/svg%3E");
}

@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

/* Bez plavog bljeska na dodir: povratna informacija dolazi iz stilova dugmadi. */
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 16px); }
* { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--orange); color: var(--ink); }

body {
  margin: 0;
  color: var(--ink);
  font: 400 18px/1.45 var(--font);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: var(--cell) var(--cell);
}

/* Skrol traka u bojama stranice */
::-webkit-scrollbar { width: 14px; height: 14px; }
::-webkit-scrollbar-track { background: var(--beige); }
::-webkit-scrollbar-thumb { border: 3px solid transparent; border-radius: 999px; background: var(--forest) padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--orange) padding-box; }
.cart::-webkit-scrollbar, .cart-list::-webkit-scrollbar, .picker-list::-webkit-scrollbar, .sent::-webkit-scrollbar, .field textarea::-webkit-scrollbar { width: 10px; }
.cart::-webkit-scrollbar-track, .cart-list::-webkit-scrollbar-track, .picker-list::-webkit-scrollbar-track, .sent::-webkit-scrollbar-track, .field textarea::-webkit-scrollbar-track { background: transparent; }
.sent::-webkit-scrollbar-thumb { background: var(--orange) padding-box; }
@supports not selector(::-webkit-scrollbar) {
  * { scrollbar-color: var(--forest) var(--beige); }
}

h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3 { color: var(--forest); font-family: var(--font-head); font-weight: 700; letter-spacing: -.015em; line-height: 1.08; }
.phone, .about-badge b, .pcard-price, .pcard-badge, .count, .cart-list b, .cart-total dd, .bar b, .ticker li { font-family: var(--font-head); }
.pcard-price small { font-family: var(--font); }
small { font-size: .85em; }
img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

:focus-visible { outline: 3px solid var(--ring, var(--forest)); outline-offset: 2px; }

.svg-defs { position: absolute; width: 0; height: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip-link { position: absolute; left: 8px; top: -60px; z-index: 40; padding: 10px 18px; border-radius: 999px; background: var(--forest); color: var(--white); }
.skip-link:focus { top: 8px; }

/* Mali oblačić umjesto sivog oblačića preglednika (atribut title) */
[data-tip] { position: relative; }
[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  z-index: 5;
  padding: 5px 11px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--white);
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgb(10 24 15 / .25);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity .18s, transform .18s ease-out;
}
@media (hover: hover) {
  [data-tip]:hover::after, [data-tip]:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
}

.icon { flex: none; width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon .solid, .icon use[href="#i-whatsapp"] { fill: currentColor; stroke: none; }

/* ---------- Dugmad: narandžasta se razlije s lijeva na hover ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 10px 28px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(var(--orange), var(--orange)) left / 0 100% no-repeat, var(--forest);
  color: var(--white);
  font: inherit;
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-size .3s ease-out, color .18s, transform .2s, box-shadow .2s;
}
.btn:hover, .btn:active { background-size: 100% 100%, auto; color: var(--ink); }
.btn:active { transform: scale(.98); }
.btn-wide { width: 100%; }
.btn-send { background: linear-gradient(var(--forest), var(--forest)) left / 0 100% no-repeat, var(--orange); color: var(--ink); }
.btn-send:hover, .btn-send:active { color: var(--white); }
.btn-orange { background: linear-gradient(var(--white), var(--white)) left / 0 100% no-repeat, var(--orange); color: var(--ink); }
.btn-orange:hover, .btn-orange:active { color: var(--forest); }
.btn-ghost { background: linear-gradient(var(--orange), var(--orange)) left / 0 100% no-repeat, transparent; box-shadow: inset 0 0 0 2px var(--forest); color: var(--forest); }
.btn-ghost:hover, .btn-ghost:active { box-shadow: inset 0 0 0 2px var(--orange); }
.btn-big { flex: none; min-height: 62px; padding: 12px 34px; font-size: 1.2rem; }
.btn .icon { transition: transform .25s ease-out; }
.btn-big:hover .icon, .about-actions .btn:hover .icon { transform: translateX(5px); }

/* ---------- Zaglavlje i podnožje ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--top-h);
  padding: 8px var(--gutter);
  border-bottom: 1px solid var(--line);
  background-color: var(--paper);
  color: var(--forest);
  box-shadow: 0 8px 24px rgb(28 71 39 / .08);
  transition: background-color .25s, border-color .25s, box-shadow .25s, color .25s;
  view-transition-name: top;
}
.top-over { margin-bottom: calc(var(--top-h) * -1); }
.top-logo { position: relative; display: block; border-radius: 12px; }
.top-logo img { width: auto; height: 56px; transition: transform .3s cubic-bezier(.3, 1.5, .6, 1), opacity .25s; }
.top-logo:hover img { transform: rotate(-3deg) scale(1.05); }
.top-logo .top-logo-light { position: absolute; top: 0; left: 0; opacity: 0; }

.top-nav { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 36px); font-weight: 700; }
.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  background: linear-gradient(var(--orange), var(--orange)) left bottom 7px / 0 2px no-repeat;
  text-decoration: none;
  transition: background-size .25s ease-out;
}
.nav-link:hover { background-size: 100% 2px; }
.btn-nav { min-height: 46px; padding: 6px 20px; font-size: 1rem; transition: background-color .25s, background-size .3s ease-out, color .18s, transform .2s; }

/* Dok stranica nije skrolana, zaglavlje nema pozadinu. Bez JavaScripta ostaje puno. */
@media (scripting: enabled) {
  .top:not(.is-scrolled) { border-color: transparent; background-color: transparent; box-shadow: none; }

  /* Na početnoj leži preko zelene sjene, pa je svijetlo. */
  .top-over:not(.is-scrolled) { --ring: var(--white); color: var(--white); }
  .top-over:not(.is-scrolled) .nav-link { background-image: linear-gradient(var(--white), var(--white)); }
  .top-over:not(.is-scrolled) .btn-nav { background-color: var(--white); color: var(--forest); }
  .top-over:not(.is-scrolled) .btn-nav:hover { color: var(--ink); }
  .top-over:not(.is-scrolled) .top-logo img { opacity: 0; }
  .top-over:not(.is-scrolled) .top-logo .top-logo-light { opacity: 1; }
}

.count {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--ink);
  font-size: .95rem;
  font-weight: 600;
}
.count.bump { animation: bump .35s ease-out; }
@keyframes bump { 40% { transform: scale(1.22); } }

.bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 24px;
  padding: 22px var(--gutter);
  color: var(--grey);
  font-size: 1rem;
}
.bottom-credit { display: inline-flex; align-items: center; gap: 8px; padding-block: 8px; margin-block: -8px; text-decoration: none; transition: color .2s; }
.bottom-credit b { padding-bottom: 2px; background: linear-gradient(var(--orange), var(--orange)) left bottom / 0 2px no-repeat; color: var(--forest); font-weight: 700; transition: background-size .3s ease-out; }
.bottom-credit-logo { display: grid; flex: none; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--forest); transition: transform .35s cubic-bezier(.3, 1.5, .6, 1); }
.bottom-credit img { width: 17px; height: auto; }
.bottom-credit:hover b, .bottom-credit:focus-visible b { background-size: 100% 2px; }
.bottom-credit:hover .bottom-credit-logo, .bottom-credit:focus-visible .bottom-credit-logo { transform: rotate(-20deg); }
.bottom-link { margin-left: 6px; padding-bottom: 2px; background: linear-gradient(var(--orange), var(--orange)) left bottom / 0 2px no-repeat; color: var(--forest); font-weight: 600; text-decoration: none; white-space: nowrap; transition: background-size .3s ease-out; }
.bottom-link:hover, .bottom-link:focus-visible { background-size: 100% 2px; }

/* ---------- Politika privatnosti ---------- */

.legal { max-width: 46rem; margin: 0 auto; padding: clamp(24px, 4vw, 48px) var(--gutter) clamp(48px, 7vw, 96px); }
.legal h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
.legal h2 { margin-top: clamp(28px, 3vw, 40px); font-size: clamp(1.45rem, 2.2vw, 1.9rem); }
.legal p, .legal ul { margin-top: 10px; line-height: 1.5; }
.legal ul { padding-left: 1.2em; list-style: disc; }
.legal li + li { margin-top: 8px; }
.legal li::marker { color: var(--orange); }
.legal a { color: var(--forest); text-decoration-color: var(--orange); text-underline-offset: .18em; transition: color .18s; }
.legal a:hover { color: var(--green); }
.legal-date { color: var(--grey); font-size: 1rem; }
.legal-lead { padding: 14px 18px; border-radius: var(--radius); background: var(--mint); color: var(--forest); font-weight: 600; }

/* ---------- Početna: hero s fotografijom u pozadini ---------- */

/* Fotografija i cesta zajedno zauzimaju cijeli prvi ekran. */
.hero {
  --road-h: clamp(46px, 6.5vh, 64px);
  --van-w: clamp(310px, min(32vw, 52vh), 520px);
  --van-h: calc(var(--van-w) * .445);
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  color: var(--white);
}
.hero-photo { position: absolute; inset: 0 0 var(--road-h); z-index: -2; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; transition: transform 1.6s cubic-bezier(.2, .7, .2, 1); }
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 var(--road-h);
  z-index: -1;
  /* Zelena sjena: tamna u ćoškovima, blaga oko teksta, a pod samim tekstom toliko da se slova čitaju */
  background:
    radial-gradient(ellipse 50% 38% at 50% 46%, rgb(28 71 39 / .74) 0%, rgb(28 71 39 / .62) 60%, rgb(28 71 39 / 0) 100%),
    linear-gradient(180deg, rgb(28 71 39 / .6) 0, rgb(28 71 39 / 0) 150px),
    radial-gradient(ellipse 78% 82% at 50% 48%, rgb(28 71 39 / .22) 45%, rgb(28 71 39 / .94) 100%);
}
.hero:hover .hero-photo img { transform: scale(1.05); }
/* Brda oko ceste u polukrugu: lijevo farma, desno kuće u koje kombi dostavlja. */
.hills { position: absolute; right: 0; bottom: var(--road-h); left: 0; z-index: -1; pointer-events: none; }
.hills img { display: block; width: 100%; height: auto; }
/* Donji razmak ostavlja mjesta kombiju, da nikad ne pređe preko teksta. */
.hero-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--top-h) + clamp(12px, 3vh, 40px)) var(--gutter) calc(var(--van-h) - var(--road-h) * .8 + 12px);
  text-align: center;
}
.hero h1 { color: var(--white); font-size: clamp(3rem, 7vw, 7.2rem); line-height: .98; text-shadow: 0 2px 16px rgb(15 35 20 / .55); }
.hero h1 em { color: var(--orange); font-style: normal; }
.hero-copy p { max-width: 24em; margin-top: 20px; font-size: clamp(1.2rem, 2vw, 1.65rem); line-height: 1.3; text-shadow: 0 1px 10px rgb(15 35 20 / .6); text-wrap: balance; }
.hero-copy .btn { margin-top: clamp(20px, 2.6vw, 32px); }

/* ---------- Početna: cesta i kombi koji vodi u webshop ---------- */

.road {
  position: relative;
  flex: none;
  height: var(--road-h);
  border-top: 4px solid var(--forest);
  background:
    linear-gradient(90deg, var(--white) 0 40px, transparent 40px) left center / 88px 4px repeat-x,
    var(--sand);
}

/* Bez animacije kombi stoji desno, spreman za klik. */
.van-lane {
  --van-time: 20s;
  --van-delay: -2s;
  --wheel-turns: 2700deg;
  position: absolute;
  bottom: calc(var(--road-h) * .2);
  left: 0;
  width: 100%;
  pointer-events: none;
  transform: translateX(calc(100% - var(--van-w) - var(--gutter)));
  animation: van-drive var(--van-time) var(--van-delay) infinite;
}
.van { --ring: var(--forest); display: block; width: var(--van-w); border-radius: 16px; pointer-events: auto; }
.van svg { display: block; width: 100%; height: auto; overflow: visible; }
.van-dark { fill: var(--ink); }
.van-tyre { fill: #2f3531; }
/* Bijeli kombi s narandžastim i zelenim detaljima, tanak zeleni obris da se odvoji od svijetlog brda. */
.van-paint { fill: var(--white); stroke: var(--forest); stroke-width: 2.5; stroke-linejoin: round; transition: fill .2s; }
.van-stripe { fill: var(--orange); transition: fill .2s; }
.van-skirt { fill: var(--green); transition: fill .2s; }
.van-line { fill: none; stroke: rgb(28 71 39 / .2); stroke-width: 1.5; }
.van-window { fill: var(--green); }
.van-shine { fill: rgb(255 255 255 / .3); }
.van-sun { fill: var(--orange); }
.van-sand { fill: var(--sand); }
.van-spoke { stroke: var(--ink); stroke-width: 2.4; }
.van-label { fill: var(--forest); font-family: var(--font-head); font-size: 26px; font-weight: 700; transition: fill .2s; }
.van-go-dot { fill: var(--orange); transition: fill .2s; }
/* Strelica se stalno lagano pomjera, da se vidi da je kombi za klik. */
.van-go-arrow { fill: none; stroke: var(--white); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; animation: arrow-nudge 1.1s ease-in-out infinite; }
@keyframes arrow-nudge { 50% { transform: translateX(3px); } }
.van:hover .van-paint, .van:focus-visible .van-paint { fill: var(--orange); }
.van:hover .van-stripe, .van:focus-visible .van-stripe { fill: var(--white); }
.van:hover .van-skirt, .van:focus-visible .van-skirt { fill: var(--forest); }
.van:hover .van-go-dot, .van:focus-visible .van-go-dot { fill: var(--forest); }
.puff { fill: var(--grey); transform-box: fill-box; transform-origin: center; animation: puff 1.3s ease-out infinite; }
.puff + .puff { animation-delay: .6s; }
.van-tilt { transform-box: fill-box; transform-origin: 50% 100%; animation: van-tilt var(--van-time) var(--van-delay) infinite; }
.van-body { transform-box: fill-box; transform-origin: 50% 100%; animation: van-bump .36s ease-in-out infinite alternate; }
.wheel { transform-box: fill-box; transform-origin: center; animation: wheel-roll var(--van-time) var(--van-delay) infinite; }

/* Kombi stane kad se pređe mišem preko njega, da se lakše klikne. */
.van-lane:hover, .van-lane:hover .van-tilt, .van-lane:hover .wheel,
.van-lane:focus-within, .van-lane:focus-within .van-tilt, .van-lane:focus-within .wheel { animation-play-state: paused; }

/* Dolazak s lijeve strane, stajanje desno, pa odlazak: točkovi prate isti ritam. */
@keyframes van-drive {
  0% { transform: translateX(calc(var(--van-w) * -1.05)); animation-timing-function: cubic-bezier(.35, .35, .45, 1); }
  36% { transform: translateX(calc(100% - var(--van-w) - var(--gutter))); }
  74% { transform: translateX(calc(100% - var(--van-w) - var(--gutter))); animation-timing-function: cubic-bezier(.6, 0, .85, .7); }
  100% { transform: translateX(105%); }
}
@keyframes wheel-roll {
  0% { transform: rotate(0); animation-timing-function: cubic-bezier(.35, .35, .45, 1); }
  36% { transform: rotate(var(--wheel-turns)); }
  74% { transform: rotate(var(--wheel-turns)); animation-timing-function: cubic-bezier(.6, 0, .85, .7); }
  100% { transform: rotate(calc(var(--wheel-turns) * 1.5)); }
}
@keyframes van-tilt {
  0%, 33%, 39%, 74%, 81%, 100% { transform: none; }
  36% { transform: rotate(1.3deg); }
  76% { transform: rotate(-1.1deg); }
}
@keyframes van-bump { to { transform: translateY(-1.8px) rotate(-.22deg); } }
@keyframes puff {
  from { opacity: .75; transform: none; }
  to { opacity: 0; transform: translate(-22px, -12px) scale(1.9); }
}

/* ---------- Početna: pokretna traka ispod sekcije O nama ---------- */

.ticker {
  margin: clamp(16px, 2vw, 28px) var(--gutter) 0;
  overflow: hidden;
  border-radius: var(--radius-big);
  background: var(--forest);
  color: var(--white);
}
.ticker-track { display: flex; width: max-content; animation: ticker 34s linear infinite; }
.ticker ul { display: flex; flex: none; justify-content: space-around; min-width: 100vw; }
.ticker li {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 32px);
  padding: clamp(8px, .8vw, 12px) 0 clamp(9px, .9vw, 13px) clamp(16px, 2vw, 32px);
  font-size: clamp(.8rem, .95vw, .9rem);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}
/* Mala narandžasta jaja kao razmak među natpisima */
.ticker li::after { content: ""; width: .62em; height: .78em; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: var(--orange); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Početna: o nama ---------- */

.about {
  --pad-x: clamp(20px, 4vw, 64px);
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 20px clamp(28px, 4.4vw, 72px);
  margin: clamp(48px, 7vw, 96px) var(--gutter) 0;
  padding: clamp(40px, 3vw, 44px) var(--pad-x) clamp(24px, 3vw, 44px);
  overflow: hidden;
  border-radius: var(--radius-big);
  background: var(--forest) var(--eggs-light);
  color: var(--white);
  --ring: var(--white);
}
/* Svijetli logo stopljen sa zelenom pozadinom sekcije */
.about::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  right: 1%;
  width: min(46vw, 640px);
  aspect-ratio: 480 / 266;
  background: url("../assets/img/logo-svijetli.webp") center / contain no-repeat;
  opacity: .1;
  transform: translateY(-50%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 30%);
  mask-image: linear-gradient(to right, transparent 0, #000 30%);
  pointer-events: none;
}
/* Pravougaona fotografija, manja u obliku jajeta preko nje, i narandžasti obris iza njih */
.about-photo { --egg: 50% 50% 50% 50% / 60% 60% 40% 40%; position: relative; isolation: isolate; width: clamp(210px, 21vw, 290px); aspect-ratio: 1 / 1.08; margin-inline: auto; }
.about-photo .mascot { top: -36px; left: 14%; width: 62px; height: 62px; }
.about-photo::before {
  content: "";
  position: absolute;
  top: 0;
  left: 3%;
  width: 80%;
  aspect-ratio: 4 / 5;
  border: 2px solid var(--orange);
  border-radius: var(--radius);
  transform: rotate(-4deg);
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.about-photo:hover::before { transform: rotate(-8deg); }
.about-frame { position: absolute; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--egg); }
.about-frame-big { top: 0; left: 0; width: 80%; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-frame-small {
  right: 0;
  bottom: 0;
  width: 44%;
  border: 5px solid var(--orange);
  box-shadow: 0 14px 34px rgb(20 38 26 / .25);
  transform: rotate(12deg);
  transition: transform .45s cubic-bezier(.3, 1.5, .6, 1);
}
.about-photo:hover .about-frame-small { transform: rotate(4deg) translateY(-6px); }
.about-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.about-photo:hover img { transform: scale(1.06); }
.about-badge {
  position: absolute;
  top: 6%;
  right: 0;
  padding: 7px 14px;
  border-radius: 14px;
  background: var(--orange);
  color: var(--ink);
  font-size: .85rem;
  line-height: 1.15;
  box-shadow: 0 10px 26px rgb(20 38 26 / .22);
  transition: transform .35s cubic-bezier(.3, 1.5, .6, 1);
}
.about-badge b { display: block; font-size: 1.25rem; font-weight: 700; }
.about-photo:hover .about-badge { transform: translateY(-8px) rotate(-3deg); }

.about h2 { color: var(--white); font-size: clamp(2.3rem, 3.9vw, 3.9rem); }
.about h2 em { color: var(--orange); font-style: normal; }
.about-text > p { max-width: 36em; margin-top: 10px; font-size: clamp(1.05rem, 1.3vw, 1.25rem); line-height: 1.4; }
.about-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(16px, 1.6vw, 24px); }
.about .btn-ghost { box-shadow: inset 0 0 0 2px var(--white); color: var(--white); }
.about .btn-ghost:hover, .about .btn-ghost:active { box-shadow: inset 0 0 0 2px var(--orange); color: var(--ink); }

/* ---------- Početna: galerija i pregled slika, namjerno bez zaobljenih ivica ---------- */

.gallery { padding: clamp(48px, 7vw, 96px) var(--gutter) 0; }
.gallery h2 { margin-bottom: clamp(20px, 3vw, 36px); font-size: clamp(2.6rem, 5.4vw, 5.4rem); }
.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(44px, 6.4vw, 96px); gap: clamp(10px, 1.2vw, 18px); }

.g-item {
  position: relative;
  display: block;
  grid-column: span 5;
  grid-row: span 3;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: var(--sand);
  color: var(--white);
  font: inherit;
  text-align: left;
  cursor: zoom-in;
}
/* Mozaik: red / kolona / visina / širina za svaku od 14 slika, bez rupa */
.g-item:nth-child(1) { grid-area: 1 / 1 / span 4 / span 6; }
.g-item:nth-child(2) { grid-area: 1 / 7 / span 5 / span 3; }
.g-item:nth-child(3) { grid-area: 1 / 10 / span 4 / span 3; }
.g-item:nth-child(4) { grid-area: 5 / 1 / span 3 / span 4; }
.g-item:nth-child(5) { grid-area: 5 / 5 / span 3 / span 2; }
.g-item:nth-child(6) { grid-area: 5 / 10 / span 4 / span 3; }
.g-item:nth-child(7) { grid-area: 6 / 7 / span 3 / span 3; }
.g-item:nth-child(8) { grid-area: 9 / 7 / span 4 / span 3; }
.g-item:nth-child(9) { grid-area: 8 / 1 / span 4 / span 6; }
.g-item:nth-child(10) { grid-area: 9 / 10 / span 3 / span 3; }
.g-item:nth-child(11) { grid-area: 12 / 10 / span 3 / span 3; }
.g-item:nth-child(12) { grid-area: 12 / 5 / span 3 / span 2; }
.g-item:nth-child(13) { grid-area: 13 / 7 / span 2 / span 3; }
.g-item:nth-child(14) { grid-area: 12 / 1 / span 3 / span 4; }
.g-item:nth-child(5) img { object-position: 50% 72%; }
.g-item:nth-child(7) img { object-position: 40% 55%; }
.g-item:nth-child(12) img { object-position: 28% 88%; }
.g-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.g-item:hover img, .g-item:focus-visible img { transform: scale(1.08); }
.g-item:focus-visible { outline-offset: 3px; }

.lightbox {
  --lb-edge: clamp(16px, 2.6vw, 36px);
  --ring: var(--white);
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: var(--white);
}
.lightbox::backdrop { background: rgb(20 38 26 / .94); }
/* Dijalozi se pojavljuju i nestaju blago, a ne naglo. */
.lightbox[open], .lightbox[open]::backdrop, .sent[open]::backdrop { animation: fade-in .25s ease-out; }
.sent[open] { animation: dialog-in .3s cubic-bezier(.2, .8, .3, 1); }
.lightbox.is-closing, .lightbox.is-closing::backdrop, .sent.is-closing::backdrop { animation: fade-out .18s ease-in forwards; }
.sent.is-closing { animation: dialog-out .18s ease-in forwards; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(16px) scale(.97); } }
@keyframes dialog-out { to { opacity: 0; transform: translateY(10px) scale(.98); } }
.lightbox img.is-in { animation: photo-in .3s ease-out; }
@keyframes photo-in { from { opacity: 0; transform: scale(.98); } }
.lightbox figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: clamp(24px, 5vh, 56px) calc(var(--lb-edge) * 2 + 56px);
}
.lightbox img { width: auto; max-height: calc(100dvh - clamp(48px, 10vh, 112px) - 44px); object-fit: contain; }
.lightbox figcaption { margin-top: 12px; font-size: 1.1rem; text-align: center; }
.lb-btn {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  background: var(--forest);
  color: var(--white);
  font-size: 1.3rem;
  cursor: pointer;
  transition: background-color .18s, color .18s, transform .2s;
}
.lb-btn:hover { background: var(--orange); color: var(--ink); transform: scale(1.08); }
.lb-close { top: var(--lb-edge); right: var(--lb-edge); }
.lb-prev { top: calc(50% - 28px); left: var(--lb-edge); }
.lb-next { top: calc(50% - 28px); right: var(--lb-edge); }

/* ---------- Početna: kontakt ---------- */

.contact {
  --ring: var(--white);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 32px clamp(32px, 5vw, 72px);
  margin: clamp(48px, 7vw, 96px) var(--gutter) 0;
  padding: clamp(36px, 5vw, 72px) clamp(20px, 4vw, 56px);
  border-radius: var(--radius-big);
  background: var(--forest) var(--eggs-light);
  color: var(--white);
}
/* Lijeva strana je visoka kao mapa: naslov gore, dugmad dole */
.contact-info { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; min-width: 0; }
.contact h2 { color: var(--orange); font-size: clamp(2.6rem, 5.4vw, 5.4rem); }
.contact-lead { margin-top: 8px; font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.35; }

/* Brojevi kao velika dugmad: glavni je narandžast, drugi bijeli */
.contact-phones { display: grid; gap: 12px; }
.phone {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.2vw, 18px);
  padding: 9px clamp(18px, 2vw, 28px) 9px 9px;
  border-radius: 999px;
  background: var(--white);
  color: var(--forest);
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 10px 26px rgb(10 24 15 / .28);
  transition: transform .3s cubic-bezier(.3, 1.5, .6, 1), background-color .2s, color .2s;
}
.phone-main { background: var(--orange); color: var(--ink); }
.phone:hover { background: var(--orange); color: var(--ink); transform: translateX(8px); }
.phone-main:hover { background: var(--white); color: var(--forest); }
.phone-icon { display: grid; flex: none; place-items: center; width: 1.45em; height: 1.45em; border-radius: 50%; background: var(--forest); color: var(--white); }
.phone-icon .icon { width: .62em; height: .62em; }
.phone:hover .icon { animation: phone-ring .7s ease-in-out; }
@keyframes phone-ring {
  20% { transform: rotate(-16deg); }
  40% { transform: rotate(14deg); }
  60% { transform: rotate(-9deg); }
  80% { transform: rotate(6deg); }
}

/* Mapa kao uokvirena slika: bijeli okvir, nakrivljena bež podloga i pile koje viri iza okvira */
.contact-map { position: relative; isolation: isolate; min-width: 0; margin: 0; }
.contact-map::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  border-radius: var(--radius-big);
  background: var(--sand);
  transform: rotate(2.4deg);
  transition: transform .45s cubic-bezier(.3, 1.5, .6, 1);
}
.contact-map:hover::before { transform: rotate(-1.6deg); }
.contact-map .mascot { top: -52px; right: 12%; }

/* Maskota: pile koje viri iza okvira mape, slike u O nama i kartica u webshopu */
.mascot { position: absolute; z-index: -1; width: 74px; height: 74px; pointer-events: none; animation: chick-peek 3.4s ease-in-out infinite; }
@keyframes chick-peek {
  0%, 62%, 100% { transform: none; }
  72%, 90% { transform: var(--peek, translateY(-9px) rotate(-5deg)); }
}
.map-frame { padding: clamp(8px, .8vw, 12px) clamp(8px, .8vw, 12px) 0; border-radius: var(--radius-big); background: var(--white); color: var(--forest); box-shadow: 0 18px 44px rgb(10 24 15 / .35); }
.map-frame iframe { display: block; width: 100%; height: clamp(280px, 27vw, 400px); border: 0; border-radius: var(--radius); background: var(--beige); }
.map-frame figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 16px; padding: 6px 10px; }
.map-frame address { display: flex; align-items: center; gap: 8px; font-style: normal; font-weight: 500; }
.map-frame address .icon { color: var(--orange); }
.map-frame a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  background: linear-gradient(var(--orange), var(--orange)) left bottom 8px / 0 2px no-repeat;
  text-decoration: none;
  transition: background-size .25s ease-out;
}
.map-frame a:hover { background-size: 100% 2px; }

.contact-more { display: flex; gap: 10px; margin-top: 14px; }
.contact-more li { flex: 1 1 0; min-width: 0; }
.contact-more a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 6px 12px;
  border: 1.5px solid rgb(255 255 255 / .32);
  border-radius: 999px;
  text-decoration: none;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
.contact-more a:hover { border-color: var(--orange); background: var(--orange); color: var(--ink); transform: translateY(-3px); }

/* ---------- Webshop ---------- */

.shop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(320px, 28vw, 420px);
  align-items: start;
  gap: 24px clamp(30px, 3.6vw, 60px);
}
.shop-main { display: grid; gap: 24px; min-width: 0; padding: clamp(18px, 2.4vw, 32px) 0 clamp(40px, 5vw, 72px) var(--gutter); }
.shop-main h1 { font-size: clamp(2.8rem, 5.4vw, 5.2rem); }
.form h2, .cart h2 { font-size: clamp(1.7rem, 2.4vw, 2.2rem); }

.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }

.pcard {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform .25s ease-out, box-shadow .25s, border-color .25s;
}
.pcard:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-6px); }
.pcard-media {
  position: relative;
  height: 210px;
  padding: 22px;
  background: var(--beige) var(--eggs-dark);
}
.tray { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 8px 12px rgb(28 71 39 / .16)); }
.tray-base { fill: #d2c3a4; }
.tray-well { fill: #bdac89; }
.tray-egg { transform-box: fill-box; transform-origin: 50% 100%; }
.pcard:hover .tray-egg, .pcard.is-wave .tray-egg { animation: egg-hop .6s ease-out both; animation-delay: calc(var(--i) * 20ms); }
@keyframes egg-hop {
  0%, 100% { transform: none; }
  30% { transform: scale(1.08, .92); }
  60% { transform: translateY(-16%) scale(.96, 1.05); }
}
.pcard-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  min-width: 42px;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--forest);
  color: var(--white);
  font-weight: 500;
  text-align: center;
}
.pcard-count {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--ink);
  font-weight: 600;
}
.pcard-body { display: flex; flex: 1; flex-direction: column; padding: 16px 18px 18px; }
.pcard h2 { font-size: 1.35rem; letter-spacing: -.01em; }
.pcard-desc { margin-top: 2px; color: var(--grey); }
.pcard-price { margin: 10px 0 14px; color: var(--forest); font-size: 2rem; font-weight: 700; line-height: 1.05; }
.pcard-price small { display: block; margin-top: 3px; color: var(--grey); font-size: 1rem; font-weight: 500; }
.pcard-action { margin-top: auto; }
/* Dugme i brojač se smjenjuju s blagim pojavljivanjem. */
.pcard-action > * { animation: fade-in .2s ease-out; }
.form { animation: fade-in .3s ease-out; }

.stepper {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  height: 54px;
  overflow: hidden;
  border: 2px solid var(--forest);
  border-radius: 999px;
  background: var(--white);
}
.stepper button {
  border: 0;
  background: none;
  color: var(--forest);
  font: inherit;
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background-color .18s, color .18s;
}
.stepper button:hover { background: var(--orange); color: var(--ink); }
.stepper input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
}
.stepper :focus-visible { outline-offset: -3px; }

.noscript { padding: 16px 0; }

.panel { padding: clamp(20px, 2.4vw, 32px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 20px; }
.field { min-width: 0; margin: 0; padding: 0; border: 0; }
.field-full { grid-column: 1 / -1; }
.field label, .field legend { display: block; margin-bottom: 4px; padding: 0; font-weight: 500; }
.field small { color: var(--grey); font-weight: 400; }
.field-hint { margin-top: 4px; color: var(--grey); font-size: .9rem; line-height: 1.3; }

.field input, .field textarea, .picker-btn {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 10px 14px;
  border: 1.5px solid #c4b695;
  border-radius: 14px;
  background-color: var(--white);
  color: inherit;
  font: inherit;
  font-size: 1.1rem;
  caret-color: var(--forest);
  transition: border-color .2s, box-shadow .2s;
}
/* Napomena raste s tekstom, bez ručke preglednika za razvlačenje. */
.field textarea { min-height: 6.4em; max-height: 14em; resize: none; field-sizing: content; }
.field ::placeholder { color: var(--grey); opacity: .85; }
/* Automatsko popunjavanje preglednika ne boji polje u plavo ili žuto. */
.field input:-webkit-autofill { -webkit-text-fill-color: var(--ink); transition: background-color 600000s 0s, border-color .2s, box-shadow .2s; }
.field input:hover, .field textarea:hover, .picker-btn:hover { border-color: var(--orange); }
.field input:focus, .field textarea:focus, .picker-btn:focus-visible, .picker-btn[aria-expanded="true"] { outline: 0; border-color: var(--forest); box-shadow: 0 0 0 3px rgb(232 134 43 / .35); }

.time-range { display: flex; align-items: center; gap: 8px; }
.time-range .picker { flex: 1; }

/* Iskočni meniji za datum i sat, umjesto onih iz preglednika */
.picker { position: relative; min-width: 0; }
.picker-btn { display: flex; align-items: center; gap: 10px; text-align: left; cursor: pointer; }
.picker-btn .icon { color: var(--forest); }
.picker-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-btn.is-empty .picker-text { color: var(--grey); }
.picker-arrow { width: 1em; height: 1em; transition: transform .2s; }
.picker-btn[aria-expanded="true"] .picker-arrow { transform: rotate(180deg); }
.picker-pop {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 18px 44px rgb(28 71 39 / .22);
  scroll-margin: calc(var(--top-h) + 12px) 0 100px;
  animation: pop-in .16s ease-out;
}
.picker-pop.is-up { top: auto; bottom: calc(100% + 6px); }
.picker-pop.is-closing { pointer-events: none; animation: pop-out .12s ease-in forwards; }
@keyframes pop-in { from { opacity: 0; transform: translateY(-6px); } }
@keyframes pop-out { to { opacity: 0; transform: translateY(-6px); } }

.picker-list { max-height: 236px; padding: 6px; overflow-y: auto; outline: 0; }
.picker-list li { padding: 7px 12px; border-radius: 10px; color: var(--ink); cursor: pointer; transition: background-color .12s, color .12s; }
.picker-list li:hover, .picker-list li.is-active { background: var(--mint); color: var(--forest); }
.picker-list li[aria-selected="true"] { background: var(--forest); color: var(--white); }
.picker-list li[aria-disabled="true"] { background: none; color: #b5ae9d; cursor: default; }

.picker-cal { width: min(320px, max(100%, 268px)); padding: 12px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.cal-title { color: var(--forest); font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; }
.cal-nav { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--forest); cursor: pointer; transition: background-color .15s; }
.cal-nav:hover:not(:disabled) { background: var(--mint); }
.cal-nav:disabled { opacity: .28; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.cal-dow { padding-block: 4px; color: var(--grey); font-size: .85rem; font-weight: 700; text-align: center; }
.cal-day { aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink); font: inherit; font-size: 1rem; cursor: pointer; transition: background-color .12s, color .12s; }
.cal-day:hover:not(:disabled) { background: var(--mint); color: var(--forest); }
.cal-day[aria-current="date"] { box-shadow: inset 0 0 0 1.5px var(--orange); font-weight: 700; }
.cal-day[aria-pressed="true"] { background: var(--forest); box-shadow: none; color: var(--white); }
.cal-day:disabled { color: #bdb6a5; cursor: default; }

.field-error { margin-top: 4px; color: var(--error); font-size: 1rem; }
.field-error:empty { display: none; }
.is-invalid input, .is-invalid .picker-btn { border-color: var(--error); }

.form-privacy { max-width: 36em; margin-top: 16px; color: var(--grey); font-size: 1rem; }

/* Korpa zauzima cijelu visinu ekrana ispod zaglavlja i prati skrol. */
.cart-wrap { position: sticky; top: var(--top-h); isolation: isolate; height: calc(100svh - var(--top-h)); }
/* Maskota viri lijevo iza korpe i putuje s njom na skrolu. */
.cart-wrap .mascot { --peek: translateX(-10px) rotate(-8deg); top: 12px; left: -46px; }
.cart {
  display: flex;
  flex-direction: column;
  height: 100%;
  --cart-pad: clamp(18px, 2vw, 28px);
  padding: var(--cart-pad);
  overflow-y: auto;
  border-left: 1px solid var(--line);
  border-radius: var(--radius-big) 0 0 var(--radius-big);
  background: var(--white);
}
.cart h2:focus { outline: 0; }
.cart-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.cart-clear {
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--grey);
  font: inherit;
  font-size: 1rem;
  text-decoration: underline;
  text-underline-offset: .2em;
  cursor: pointer;
  transition: color .18s, text-decoration-color .18s;
}
.cart-clear:hover { color: var(--error); text-decoration-color: var(--orange); }
.cart-remove {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--grey);
  cursor: pointer;
  transition: background-color .18s, color .18s;
}
.cart-remove .icon { transition: transform .2s; }
.cart-remove:hover { background: rgb(168 54 10 / .1); color: var(--error); }
.cart-remove:hover .icon { transform: rotate(-8deg); }
/* Oblačić "Ukloni" ide lijevo od kante, da ga lista ne odsiječe. */
.cart-remove[data-tip]::after { top: 50%; right: calc(100% + 6px); bottom: auto; left: auto; transform: translate(4px, -50%); }
@media (hover: hover) {
  .cart-remove[data-tip]:hover::after, .cart-remove[data-tip]:focus-visible::after { transform: translate(0, -50%); }
}
.cart-empty { flex: 1 0 auto; margin-top: 12px; color: var(--grey); }

/* Skrol traka ide u bočni razmak korpe, pa ima marginu od cijena, a one ostaju poravnate s ukupnim iznosom. */
.cart-list { flex: 1 1 auto; min-height: 120px; margin: 6px calc(2px - var(--cart-pad)) 0 0; padding-right: calc(var(--cart-pad) - 12px); overflow-y: auto; scrollbar-gutter: stable; }
.cart-list:empty { display: none; }
.cart-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  animation: line-in .28s ease-out;
}
.cart-list li.is-out { pointer-events: none; animation: line-out .2s ease-in forwards; }
@keyframes line-in { from { opacity: 0; transform: translateX(-10px); } }
@keyframes line-out { to { opacity: 0; transform: translateX(10px); } }
.cart-name { font-weight: 500; line-height: 1.2; }
.cart-name small { display: block; color: var(--grey); font-size: 1rem; font-weight: 400; }
.cart-list b { color: var(--forest); font-size: 1.15rem; font-weight: 700; white-space: nowrap; }
.cart-list .stepper { grid-template-columns: 30px 30px 30px; width: fit-content; height: 32px; border-width: 1.5px; }
.cart-list .stepper button { font-size: 1.1rem; }
.cart-list .stepper input { font-size: .95rem; }
.cart-remove { justify-self: end; }
/* Na dodir treba više mjesta za prst. */
@media (pointer: coarse) {
  .cart-list .stepper { grid-template-columns: 38px 34px 38px; height: 38px; }
  .cart-remove { width: 40px; height: 40px; }
}

.cart-perks {
  display: grid;
  flex: none;
  gap: 6px;
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--mint);
  color: var(--forest);
  font-size: .98rem;
  font-weight: 700;
  line-height: 1.25;
}
.cart-perks li { display: flex; align-items: center; gap: 10px; }
.cart-perks .icon { color: var(--orange); }

.cart-lines { flex: none; margin-top: 12px; }
.cart-lines > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-block: 3px; }
.cart-lines dd { font-weight: 500; }
.cart-total { margin-top: 6px; padding-top: 8px !important; border-top: 1px solid var(--line); font-size: 1.2rem; }
.cart-total dd { display: inline-block; color: var(--forest); font-size: 2.2rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.cart-total dd.bump { animation: bump .32s ease-out; }

.cart .btn { flex: none; margin-top: 14px; padding-inline: 12px; }
.cart-error { flex: none; margin-top: 10px; color: var(--error); font-weight: 500; }
.cart-fine { flex: none; margin-top: 10px; color: var(--grey); font-size: 1rem; line-height: 1.3; }

/* Traka s iznosom, samo na telefonu i tabletu */
.bar { display: none; }

/* ---------- Potvrda nakon slanja ---------- */

.sent {
  --ring: var(--white);
  width: min(460px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: clamp(20px, 5vw, 36px);
  overflow: auto;
  border: 0;
  border-radius: var(--radius-big);
  background: var(--forest) var(--eggs-light);
  color: var(--white);
  text-align: center;
}
.sent::backdrop { background: rgb(20 38 26 / .6); }
.sent h2 { color: var(--white); font-size: clamp(2rem, 6vw, 2.6rem); }
.sent p { margin-top: 10px; line-height: 1.35; }
.sent b { font-weight: 500; }
.sent .btn { margin-top: 18px; }
.sent-alt { font-size: 1rem; }
.sent-alt a { display: inline-block; padding-block: 6px; text-decoration-color: var(--orange); transition: color .18s; }
.sent-alt a:hover { color: var(--orange); }
.sent-actions { display: flex; justify-content: center; gap: 24px; margin-top: 8px; }
.sent-actions button {
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-underline-offset: .2em;
  cursor: pointer;
  transition: color .18s;
}
.sent-actions button:hover { color: var(--orange); }

.hatch { display: block; width: 136px; margin: 0 auto 6px; overflow: visible; }
.hatch-all { transform-origin: 80px 142px; }
.hatch-chick { transform-origin: 80px 90px; transform: translateY(-30px); }
.hatch-top { transform-origin: 52px 90px; transform: translate(3px, -58px) rotate(-12deg); }

dialog[open] .hatch-all { animation: hatch-shake .95s ease-in-out both; }
dialog[open] .hatch-chick { animation: hatch-chick .55s cubic-bezier(.3, 1.4, .5, 1) .95s both; }
dialog[open] .hatch-top { animation: hatch-top .55s cubic-bezier(.3, 1.4, .5, 1) .95s both; }

@keyframes hatch-shake {
  0%, 48%, 100% { transform: none; }
  12% { transform: rotate(-7deg); }
  24% { transform: rotate(6deg); }
  36% { transform: rotate(-3deg); }
  60% { transform: rotate(-8deg); }
  72% { transform: rotate(7deg); }
  84% { transform: rotate(-4deg); }
}
@keyframes hatch-chick {
  from { transform: translateY(34px) scale(.7); }
  to { transform: translateY(-30px); }
}
@keyframes hatch-top {
  from { transform: none; }
  to { transform: translate(3px, -58px) rotate(-12deg); }
}

/* ---------- Manji ekrani ---------- */

@media (max-width: 999px) {
  .shop-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .shop-main { padding-right: var(--gutter); padding-bottom: 24px; }
  .cart-wrap { position: relative; top: auto; height: auto; margin-top: 44px; }
  .cart-wrap .mascot { --peek: translateY(-9px) rotate(-5deg); top: -52px; right: 12%; left: auto; }
  .cart { height: auto; overflow-y: visible; border-left: 0; border-top: 1px solid var(--line); border-radius: var(--radius-big) var(--radius-big) 0 0; box-shadow: none; }
  .cart-empty { flex: none; }
  .cart-list { min-height: 0; margin-right: 0; padding-right: 0; overflow-y: visible; scrollbar-gutter: auto; }


  .bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    border-radius: 20px 20px 0 0;
    background: var(--white);
    box-shadow: 0 -8px 28px rgb(28 71 39 / .16);
    visibility: hidden;
    transform: translateY(110%);
    transition: transform .22s ease-out, visibility 0s .22s;
  }
  .bar.has-items:not(.is-covered) { visibility: visible; transform: none; transition: transform .22s ease-out; }
  .bar p { line-height: 1.15; }
  .bar b { display: block; color: var(--forest); font-size: 1.6rem; font-weight: 700; }
  .bar small { font-size: 1rem; color: var(--grey); }
  .bar .btn { min-height: 50px; }
}

@media (max-width: 859px) {
  .about, .contact { grid-template-columns: minmax(0, 1fr); }
  /* Logo u pozadini stoji iza naslova i teksta. */
  .about::before { top: clamp(96px, 26vw, 150px); right: 0; width: min(100%, 440px); transform: none; }
  /* Naslov i tekst prvi, pa položena slika od margine do margine, a dugmad ostaju na dnu. */
  .about { gap: 0; }
  .about-text { display: contents; }
  .about-photo { order: 1; width: 100%; aspect-ratio: 1.47; margin-top: 58px; }
  .about-photo::before, .about-frame-big { aspect-ratio: 4 / 3; }
  .about-frame-big img { object-position: center 58%; }
  .about-frame-small { width: 34%; }
  .about-actions { order: 2; margin-top: 44px; }
  .about h2 { font-size: clamp(2.7rem, 11.5vw, 3.8rem); }
  .about-text > p { margin-top: 12px; font-size: clamp(1.02rem, 2.6vw, 1.2rem); }
  .contact-map { margin-top: 44px; }
}

@media (max-width: 759px) {
  /* Manji ekran, manji tekst i elementi: sve u rem jedinicama se smanjuje zajedno. */
  :root { --top-h: 62px; }
  html { font-size: 15px; }
  body { font-size: 16px; }
  .btn { min-height: 48px; padding: 8px 22px; }
  .btn-big { min-height: 54px; padding: 10px 26px; font-size: 1.08rem; }
  .btn-nav { min-height: 44px; padding: 4px 16px; }
  .hero-copy p { font-size: 1.08rem; }
  .about, .contact { margin-top: 40px; }
  .gallery { padding-top: 40px; }
  .gallery h2, .contact h2 { font-size: clamp(2.2rem, 9vw, 3.4rem); }
  .shop-main h1 { font-size: clamp(2.2rem, 9.6vw, 3.4rem); }
  .mascot { width: 60px; height: 60px; }
  .about-photo .mascot { top: -32px; width: 52px; height: 52px; }
  .contact-map .mascot, .cart-wrap .mascot { top: -44px; }
  .map-frame iframe { height: 240px; }
  /* Polja ostaju na 16 px, da iPhone ne zumira stranicu kad se u njih klikne. */
  .field input, .field textarea, .picker-btn { min-height: 46px; font-size: 16px; }
  .cart-total dd { font-size: 2rem; }
  .bar .btn { min-height: 46px; }
  .top-nav .nav-link { display: none; }
  .top-logo img { height: 44px; }
  .hero::before {
    background:
      radial-gradient(ellipse 95% 34% at 50% 44%, rgb(28 71 39 / .88) 0%, rgb(28 71 39 / .78) 62%, rgb(28 71 39 / 0) 100%),
      linear-gradient(180deg, rgb(28 71 39 / .6) 0, rgb(28 71 39 / 0) 130px),
      radial-gradient(ellipse 90% 80% at 50% 46%, rgb(28 71 39 / .2) 45%, rgb(28 71 39 / .9) 100%);
  }
  .hero-photo img { object-position: 16% bottom; }
  .hero h1 { font-size: clamp(2rem, 10vw, 5rem); }
  .hero { --van-w: clamp(190px, 56vw, 300px); }
  .van-lane { --wheel-turns: 1000deg; }
  .bottom { flex-direction: column; align-items: center; text-align: center; }
  .about-actions .btn { flex: 1 1 auto; padding-inline: 16px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }

  /* Pregled slike na telefonu: strelice ispod fotografije, da je ne prekrivaju */
  .lightbox figure { padding: 88px var(--lb-edge) 92px; }
  .lightbox img { max-height: calc(100dvh - 220px); }
  .lb-prev, .lb-next { top: auto; bottom: var(--lb-edge); }

  /* Kartice na telefonu: crtež lijevo, podaci desno */
  .products { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .pcard { flex-direction: row; flex-wrap: wrap; }
  .pcard-media { flex: 0 0 38%; height: auto; min-height: 150px; padding: 34px 10px 12px; }
  .pcard-badge { top: 8px; left: 8px; min-width: 34px; padding: 2px 10px; font-size: .95rem; }
  .pcard-count { top: 8px; right: 8px; padding: 2px 8px; font-size: .95rem; }
  .pcard-body { flex: 1 1 0; min-width: 0; padding: 12px 14px 14px; }
  .pcard h2 { font-size: 1.2rem; }
  .pcard-price { margin: 6px 0 10px; font-size: 1.75rem; }
  .pcard-price small { font-size: .9rem; }
  .pcard .btn { min-height: 48px; padding: 8px 12px; font-size: 1rem; }
  .pcard .stepper { grid-template-columns: 44px minmax(0, 1fr) 44px; height: 48px; }
}

@media (max-width: 519px) {
  .gallery-grid { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 15vw; }
  .g-item:nth-child(n) { grid-area: span 3 / span 3; }
  .g-item:nth-child(1), .g-item:nth-child(4), .g-item:nth-child(9), .g-item:nth-child(14) { grid-area: span 3 / span 6; }
  .g-item:nth-child(2), .g-item:nth-child(3), .g-item:nth-child(5), .g-item:nth-child(7), .g-item:nth-child(10), .g-item:nth-child(12) { grid-area: span 4 / span 3; }
  .phone { font-size: clamp(1.5rem, 7.4vw, 2.2rem); }
  .contact-more { gap: 8px; }
  .contact-more a { flex-direction: column; gap: 2px; min-height: 62px; padding: 6px 4px; border-radius: 18px; font-size: .88rem; }
}

/* Na dodir nema hovera, pa kartice, slike i dugmad ne smiju ostati pomjereni poslije dodira. */
@media (hover: none) {
  .pcard:hover { border-color: var(--line); box-shadow: none; transform: none; }
  .phone:hover, .contact-more a:hover, .lb-btn:hover { transform: none; }
  .hero:hover .hero-photo img, .about-photo:hover img, .g-item:hover img, .top-logo:hover img { transform: none; }
  .about-photo:hover::before { transform: rotate(-4deg); }
  .about-photo:hover .about-frame-small { transform: rotate(12deg); }
  .about-photo:hover .about-badge { transform: none; }
  .contact-map:hover::before { transform: rotate(2.4deg); }
  .pcard:hover .tray-egg { animation: none; }
  .pcard.is-wave .tray-egg { animation: egg-hop .6s ease-out both; animation-delay: calc(var(--i) * 20ms); }
}

/* ---------- Bez animacija, ako je kupac tako podesio uređaj ---------- */

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
