/* =====================================================================
   VIJENCI — sloj izgleda povrh naslijedenog style.css
   ---------------------------------------------------------------------
   Naslijedeni stil dolazi iz cvjecarne (roza, veselo). Ovdje se pretvara
   u nesto sto pristaje pogrebu: prigusena paleta, dosta zraka, mirni
   pokreti. Cilj nije "tuzno" nego "pouzdano" — covjek koji ovo otvara je
   pod stresom i mora odmah vidjeti da je u ozbiljnim rukama.

   Sve animacije se gase uz prefers-reduced-motion.
   ===================================================================== */

:root {
    --v-ink:        #1b2420;   /* tekst, tamna podloga */
    --v-ink-soft:   #55605a;
    --v-muted:      #7d8783;
    --v-line:       #e2e0d9;
    --v-paper:      #f7f5f0;   /* topla papirnata pozadina */
    --v-surface:    #ffffff;
    --v-green:      #46604f;   /* borova zelena — glavni naglasak */
    --v-green-dark: #354a3c;
    --v-green-soft: #eef1ed;
    --v-gold:       #a08a56;   /* diskretan detalj, nikad velike plohe */
    --v-radius:     14px;
    --v-shadow:     0 1px 2px rgba(27,36,32,.04), 0 8px 28px rgba(27,36,32,.07);
    --v-shadow-lg:  0 24px 70px rgba(27,36,32,.22);
    --v-ease:       cubic-bezier(.22,.61,.36,1);
}

/* Glavne boje teme dolaze iz Admin -> Postavke (color_primary i ostale) i
   layout ih ispisuje u :root. Ovdje se popunjavaju samo nijanse koje ta
   postavka nema, a naslijedeni style.css ih koristi — inace bi kroz njih
   ostala probijati roza iz cvjecarne. */
:root {
    --color-primary-light: #dfe6e0 !important;
    --color-primary-dark:  #354a3c !important;
    --color-success:       #46604f !important;
}

body {
    background: var(--v-paper);
    color: var(--v-ink-soft);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--v-ink); letter-spacing: -.01em; }

.v-eyebrow {
    display: inline-block;
    font-size: .72rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--v-gold);
    margin-bottom: .6rem;
}

/* =====================================================================
   1. ZASTOR NA ULAZU
   ===================================================================== */

/* Dok odrediste nije odabrano, ponuda se nazire ali se ne moze dirati. */
body.v-locked { overflow: hidden; }

body.v-locked #mainContent {
    filter: blur(7px) saturate(.65);
    transform: scale(1.012);
    pointer-events: none;
    user-select: none;
    transition: filter .5s var(--v-ease), transform .5s var(--v-ease);
}
body.v-locked .site-header { filter: blur(3px); pointer-events: none; }

/* Kad kupac odabere, zamucenje se skida mekano — to je trenutak u kojem
   se izlog "otvara", pa vrijedi da se vidi. */
body.v-unlocking #mainContent { filter: blur(0); transform: none; }

.v-gate {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    overflow-y: auto;
}
body:not(.v-locked) .v-gate { display: none; }

/* Dok stoji zastor, traka o kolacicima ceka svoj red — dvije obveze
   odjednom na ulazu su jedna previse. */
body.v-locked .cookie-consent { display: none !important; }

.v-gate__backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(120% 90% at 50% 0%, rgba(27,36,32,.55) 0%, rgba(27,36,32,.78) 60%, rgba(27,36,32,.88) 100%);
    animation: vFade .6s var(--v-ease) both;
}

.v-gate__panel {
    position: relative;
    width: min(620px, 100%);
    background: var(--v-surface);
    border-radius: 20px;
    padding: 38px 34px 26px;
    box-shadow: var(--v-shadow-lg);
    text-align: center;
    animation: vRise .65s var(--v-ease) both .08s;
    max-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
}

.v-gate__mark { color: var(--v-green); opacity: .9; margin-bottom: 10px; }
.v-gate__mark svg { animation: vDraw 1.2s var(--v-ease) both .2s; }

.v-gate__title {
    font-family: var(--font-heading, Georgia, serif);
    font-size: clamp(1.6rem, 4vw, 2.1rem);
    margin: 0 0 .5rem;
}

.v-gate__lead {
    color: var(--v-ink-soft);
    font-size: .95rem;
    line-height: 1.6;
    margin: 0 auto 1.4rem;
    max-width: 44ch;
}

.v-gate__tabs {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    background: var(--v-green-soft);
    border-radius: 999px;
    margin: 0 auto 1.1rem;
}

.v-gate__tab {
    border: 0;
    background: transparent;
    color: var(--v-ink-soft);
    font: inherit;
    font-size: .88rem;
    padding: .5rem 1.1rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background .25s var(--v-ease), color .25s var(--v-ease);
}
.v-gate__tab.is-active {
    background: var(--v-surface);
    color: var(--v-ink);
    box-shadow: 0 1px 3px rgba(27,36,32,.12);
}

.v-gate__pane { display: none; text-align: left; min-height: 0; }
.v-gate__pane.is-active { display: flex; flex-direction: column; min-height: 0; animation: vFade .35s var(--v-ease) both; }

.v-gate__search {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--v-line);
    border-radius: 10px;
    padding: .7rem .9rem;
    margin-bottom: .8rem;
    transition: border-color .2s var(--v-ease), box-shadow .2s var(--v-ease);
}
.v-gate__search:focus-within {
    border-color: var(--v-green);
    box-shadow: 0 0 0 3px rgba(70,96,79,.12);
}
.v-gate__search i { color: var(--v-muted); font-size: .85rem; }
.v-gate__search input {
    border: 0;
    outline: 0;
    font: inherit;
    font-size: .95rem;
    width: 100%;
    background: transparent;
    color: var(--v-ink);
}

.v-gate__list {
    overflow-y: auto;
    max-height: 42vh;
    margin: 0 -6px;
    padding: 0 6px;
}

.v-gate__group + .v-gate__group { margin-top: .5rem; }

.v-gate__groupName {
    font-size: .7rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--v-muted);
    padding: .7rem .2rem .35rem;
    position: sticky;
    top: 0;
    background: var(--v-surface);
}

.v-gate__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    text-align: left;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: .72rem .8rem;
    font: inherit;
    font-size: .97rem;
    color: var(--v-ink);
    cursor: pointer;
    transition: background .18s var(--v-ease), border-color .18s var(--v-ease), transform .18s var(--v-ease);
}
.v-gate__option i { color: var(--v-green); opacity: 0; transform: translateX(-6px); transition: all .22s var(--v-ease); font-size: .8rem; }
.v-gate__option:hover,
.v-gate__option:focus-visible {
    background: var(--v-green-soft);
    border-color: rgba(70,96,79,.18);
    outline: none;
    transform: translateX(2px);
}
.v-gate__option:hover i,
.v-gate__option:focus-visible i { opacity: 1; transform: translateX(0); }

.v-gate__noHits { color: var(--v-muted); font-size: .9rem; padding: 1rem .2rem; margin: 0; }

.v-gate__hint { color: var(--v-ink-soft); font-size: .9rem; line-height: 1.55; margin: 0 0 .9rem; }

.v-gate__cities { display: flex; flex-wrap: wrap; gap: 8px; }
.v-gate__city {
    border: 1px solid var(--v-line);
    background: var(--v-surface);
    border-radius: 999px;
    padding: .55rem 1.05rem;
    font: inherit;
    font-size: .92rem;
    color: var(--v-ink);
    cursor: pointer;
    transition: all .2s var(--v-ease);
}
.v-gate__city:hover,
.v-gate__city:focus-visible {
    background: var(--v-green);
    border-color: var(--v-green);
    color: #fff;
    outline: none;
    transform: translateY(-1px);
}

.v-gate__empty { color: var(--v-ink-soft); font-size: .93rem; line-height: 1.6; }

.v-gate__foot {
    margin: 1.2rem 0 0;
    padding-top: .9rem;
    border-top: 1px solid var(--v-line);
    font-size: .82rem;
    color: var(--v-muted);
    line-height: 1.6;
}
.v-gate__foot a { color: var(--v-green); text-decoration: underline; text-underline-offset: 3px; }

/* =====================================================================
   2. TRAKA S ODABRANIM ODREDISTEM
   ===================================================================== */

.v-destination {
    background: var(--v-ink);
    color: #e8eae7;
    font-size: .85rem;
}
.v-destination__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: .55rem 16px;
    text-align: center;
}
.v-destination i { color: var(--v-gold); font-size: .8rem; }
.v-destination strong { color: #fff; font-weight: 600; }
.v-destination button {
    border: 0;
    background: transparent;
    color: #b9c2bc;
    font: inherit;
    font-size: .82rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    padding: 0;
    transition: color .2s var(--v-ease);
}
.v-destination button:hover { color: #fff; }

/* =====================================================================
   3. STRANICA /dostava
   ===================================================================== */

.v-choose { padding: clamp(2.5rem, 7vw, 5rem) 0; }
.v-choose__inner { max-width: 960px; }
.v-choose__title { font-family: var(--font-heading, Georgia, serif); font-size: clamp(1.8rem, 5vw, 2.6rem); margin: 0 0 .6rem; }
.v-choose__lead { color: var(--v-ink-soft); max-width: 60ch; line-height: 1.65; margin: 0 0 1.8rem; }
.v-choose__current {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--v-green-soft); border-radius: 10px;
    padding: .7rem 1rem; margin-bottom: 1.8rem; font-size: .92rem; color: var(--v-ink);
}
.v-choose__current i { color: var(--v-green); }
.v-choose__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.v-choose__col { background: var(--v-surface); border: 1px solid var(--v-line); border-radius: var(--v-radius); padding: 1.6rem; }
.v-choose__colTitle { font-size: 1.05rem; margin: 0 0 1rem; display: flex; align-items: center; gap: 10px; }
.v-choose__colTitle i { color: var(--v-green); font-size: .95rem; }
.v-choose__list { max-height: none; }
@media (max-width: 780px) { .v-choose__cols { grid-template-columns: 1fr; gap: 1.4rem; } }

/* =====================================================================
   4. ANIMACIJE
   ===================================================================== */

@keyframes vFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes vRise { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes vDraw { from { opacity: 0; transform: rotate(-12deg) scale(.9); } to { opacity: .9; transform: none; } }

/* Sadrzaj koji ulazi u vidno polje. JS dodaje .is-in. */
.v-reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--v-ease), transform .7s var(--v-ease); }
.v-reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    .v-reveal { opacity: 1; transform: none; }
    body.v-locked #mainContent { transform: none; }
}

@media (max-width: 560px) {
    .v-gate__panel { padding: 28px 20px 20px; border-radius: 16px; }
    .v-gate__list { max-height: 38vh; }
}

/* =====================================================================
   5. NASLIJEDENI IZLOG — popravci
   ===================================================================== */

/* Naslovni blok je bio visok 70vh na slici koja je i sama mracna, pa je
   stranica pocinjala kao zid. Niza slika i citljiviji tekst: covjek koji
   ovo otvara treba u prvom pogledu vidjeti sto moze uciniti. */
.hero-banner {
    min-height: min(62vh, 560px);
}
.hero-banner .hero-overlay {
    background: linear-gradient(to bottom, rgba(20,26,23,.35) 0%, rgba(20,26,23,.62) 100%);
}
.hero-banner .hero-content h1 {
    font-size: clamp(1.9rem, 4.4vw, 3rem);
    line-height: 1.15;
    text-shadow: 0 2px 26px rgba(0,0,0,.45);
    animation: vRise .9s var(--v-ease) both .1s;
}
.hero-banner .hero-content p {
    color: rgba(255,255,255,.94);
    font-size: clamp(.98rem, 1.5vw, 1.12rem);
    text-shadow: 0 1px 14px rgba(0,0,0,.5);
    animation: vRise .9s var(--v-ease) both .22s;
}
.hero-banner .hero-content .btn {
    animation: vRise .9s var(--v-ease) both .34s;
}

/* Kartice proizvoda — mirniji okvir i suzdrzan podizaj na hover.
   Pokret je namjerno malen; ovo nije trgovina u kojoj se pregledava. */
.product-card {
    border: 1px solid var(--v-line);
    border-radius: var(--v-radius);
    background: var(--v-surface);
    box-shadow: none;
    transition: transform .3s var(--v-ease), box-shadow .3s var(--v-ease), border-color .3s var(--v-ease);
}
.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--v-shadow);
    border-color: rgba(70,96,79,.22);
}
.product-card img { transition: transform .6s var(--v-ease); }
.product-card:hover img { transform: scale(1.03); }

/* Naslovi sekcija dobivaju isti mirni ritam kao ostatak. */
.section-header h2 {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
}

/* Gumbi: puna zelena umjesto roze, bez sjaja. */
.btn-primary, .btn.btn-primary {
    background: var(--v-green);
    border-color: var(--v-green);
}
.btn-primary:hover, .btn.btn-primary:hover {
    background: var(--v-green-dark);
    border-color: var(--v-green-dark);
}
.btn { transition: all .25s var(--v-ease); }

/* Zaglavlje: tanja linija, bez sjene, da traka s odredistem ispod njega
   ostane najjaci element na vrhu. */
.site-header { box-shadow: none; border-bottom: 1px solid var(--v-line); }

/* Kartice kategorija su bile 3/4 visoke, sto na tri stupca daje zid od
   pola metra slike. Nizi omjer drzi cijelu sekciju u jednom pogledu. */
.category-card { aspect-ratio: 4/3; }
.category-card:hover img { transform: scale(1.04); }
.category-card .category-overlay {
    background: linear-gradient(to top, rgba(20,26,23,.72), rgba(20,26,23,0));
}
@media (max-width: 780px) { .category-card { aspect-ratio: 16/9; } }

/* Odrediste u checkoutu — potvrda, ne novo pitanje. */
.v-destinationBox {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    background: var(--v-green-soft); border-radius: 10px; padding: .85rem 1rem;
}
.v-destinationBox__label { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--v-muted); margin-bottom: 2px; }
.v-destinationBox strong { color: var(--v-ink); font-size: 1.02rem; }
.v-destinationBox__city { color: var(--v-ink-soft); }
.v-destinationBox a { color: var(--v-green); font-size: .85rem; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.v-hint { display: flex; align-items: flex-start; gap: 8px; color: var(--v-ink-soft); font-size: .88rem; line-height: 1.55; margin: .8rem 0 0; }
.v-hint i { color: var(--v-green); margin-top: .2rem; font-size: .82rem; }
.checkout-section small { display: block; color: var(--v-muted); font-size: .82rem; line-height: 1.5; margin-top: .4rem; }

/* Naslijedene tople nijanse su bile rozkaste (#fdf2ee, #faf6f4). */
:root {
    --color-accent-warm: #eef1ed !important;
    --color-bg-warm:     #f2f0ea !important;
}

/* =====================================================================
   6. KONTAKT I CVJEĆARI
   ===================================================================== */

.v-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.v-contact__rows { display: flex; flex-direction: column; gap: 2px; margin-bottom: 2rem; }
.v-contact__row {
    display: flex; align-items: center; gap: 14px;
    padding: .9rem 1rem; border-radius: 10px; color: inherit;
    transition: background .2s var(--v-ease);
}
a.v-contact__row:hover { background: var(--v-green-soft); }
.v-contact__icon {
    width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%;
    background: var(--v-green-soft); color: var(--v-green);
    display: flex; align-items: center; justify-content: center; font-size: .9rem;
}
.v-contact__row strong { display: block; color: var(--v-ink); font-size: .95rem; }
.v-contact__row em { font-style: normal; color: var(--v-ink-soft); font-size: .9rem; }
.v-contact__note {
    border-left: 3px solid var(--v-green); padding: .2rem 0 .2rem 1.1rem;
}
.v-contact__note h2 { font-size: 1.05rem; margin: 0 0 .6rem; }
.v-contact__note p { font-size: .92rem; line-height: 1.65; margin: 0 0 .7rem; }
.v-contact__note a { color: var(--v-green); text-decoration: underline; text-underline-offset: 3px; }
.v-contact__form {
    background: var(--v-surface); border: 1px solid var(--v-line);
    border-radius: var(--v-radius); padding: 1.8rem;
}
.v-contact__form h2 { font-size: 1.2rem; margin: 0 0 .4rem; }
.v-contact__formLead { color: var(--v-muted); font-size: .88rem; margin: 0 0 1.4rem; }
@media (max-width: 820px) { .v-contact { grid-template-columns: 1fr; gap: 2rem; } }

.v-partners { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.6rem; }
.v-partner {
    background: var(--v-surface); border: 1px solid var(--v-line);
    border-radius: var(--v-radius); padding: 1.6rem;
    transition: border-color .3s var(--v-ease), box-shadow .3s var(--v-ease);
}
.v-partner:hover { border-color: rgba(70,96,79,.25); box-shadow: var(--v-shadow); }
.v-partner h2 { font-size: 1.15rem; margin: 0 0 .3rem; }
.v-partner__city { color: var(--v-muted); font-size: .85rem; margin: 0 0 1.1rem; }
.v-partner__city i { color: var(--v-gold); margin-right: 5px; }
.v-partner__label {
    display: block; font-size: .7rem; letter-spacing: .13em; text-transform: uppercase;
    color: var(--v-muted); margin-bottom: .55rem;
}
.v-partner__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.v-partner__tags li {
    background: var(--v-green-soft); color: var(--v-ink);
    border-radius: 999px; padding: .3rem .75rem; font-size: .82rem;
}
.v-partner__home { margin: 1rem 0 0; font-size: .85rem; color: var(--v-ink-soft); }
.v-partner__home i { color: var(--v-green); margin-right: 6px; }
.v-partners__foot { margin-top: 2rem; color: var(--v-muted); font-size: .9rem; }
.v-partners__foot a { color: var(--v-green); text-decoration: underline; text-underline-offset: 3px; }

/* =====================================================================
   7. PRAVNE STRANICE
   ===================================================================== */

.page-content h2 { font-size: 1.25rem; margin: 2.2rem 0 .8rem; }
.page-content h3 { font-size: 1.02rem; margin: 1.6rem 0 .6rem; }
.page-content p,
.page-content li { line-height: 1.75; }
.page-content ul,
.page-content ol { padding-left: 1.3rem; margin: .8rem 0 1.2rem; }
.page-content li { margin-bottom: .5rem; }
.page-content a { color: var(--v-green); text-decoration: underline; text-underline-offset: 3px; }
.page-content strong { color: var(--v-ink); }

/* Podatak o tvrtki koji jos nije upisan u Postavke. Namjerno je upadljiv —
   prazno mjesto u pravnom tekstu se inace provuce neopazeno do objave. */
.v-nedostaje {
    background: #fdf3d7;
    color: #6b5415;
    border-radius: 4px;
    padding: .1em .45em;
    font-size: .92em;
    font-style: italic;
}

/* Tko izrađuje proizvod — stoji uz gumb za kupnju, ne u sitnom tisku. */
.v-maker {
    display: flex; align-items: flex-start; gap: 10px;
    background: var(--v-green-soft); border-radius: 10px;
    padding: .85rem 1rem; margin: 0 0 1.2rem;
    font-size: .9rem; line-height: 1.6; color: var(--v-ink-soft);
}
.v-maker i { color: var(--v-green); margin-top: .25rem; font-size: .85rem; }
.v-maker strong { color: var(--v-ink); }
.v-maker a { color: var(--v-green); text-decoration: underline; text-underline-offset: 3px; margin-left: .35rem; white-space: nowrap; }

/* Potvrda narudžbe — kamo ide i tko ga radi. */
.v-confirm {
    max-width: 500px; margin: 0 auto 1.6rem; text-align: left;
    background: var(--v-green-soft); border-radius: var(--v-radius); padding: 1.2rem 1.4rem;
}
.v-confirm__row + .v-confirm__row { margin-top: .9rem; padding-top: .9rem; border-top: 1px solid rgba(70,96,79,.15); }
.v-confirm__label { display: block; font-size: .7rem; letter-spacing: .13em; text-transform: uppercase; color: var(--v-muted); margin-bottom: .25rem; }
.v-confirm strong { color: var(--v-ink); font-size: 1rem; }
.v-confirm em { display: block; font-style: normal; color: var(--v-ink-soft); font-size: .85rem; line-height: 1.55; margin-top: .3rem; }
.v-destinationBox strong.is-empty { color: var(--v-muted); font-weight: 400; font-style: italic; }
