/* Cvjećarnica Zora — design system. Vaporwave-sunset grid + neon glow, adapted
   to a forest green / bone / brass florist palette. */

:root {
  --forest-900: #142820;
  --forest-800: #1f3a2e;
  --forest-700: #2f4a3a;
  --forest-600: #3f6350;
  --bone: #f2ead9;
  --bone-dim: #e4d9c4;
  --brass: #c89a4e;
  --brass-light: #e9c77b;
  --cyan: #6fd6c9;
  --pink: #e987a8;
  --ink: #1a1a16;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-1: 0 10px 30px -10px rgba(20, 40, 32, 0.35);
  --shadow-2: 0 20px 50px -20px rgba(20, 40, 32, 0.45);
  --maxw: 1180px;
  --font-display: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --font-body: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bone);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--forest-800); color: var(--bone);
  padding: 10px 16px; z-index: 200;
}
.skip-link:focus { left: 10px; top: 10px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

h1, h2, h3, h4 { font-family: var(--font-display); margin: 0 0 .5em; line-height: 1.15; color: var(--forest-900); }
.display { font-size: clamp(2.4rem, 6vw, 4.2rem); margin: 0 0 .4em; }
p { margin: 0 0 1em; }
.eyebrow {
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .12em;
  font-size: .78rem; color: var(--brass); margin: 0 0 .6em;
}

/* ---------- reveal / motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease, clip-path .7s ease; }
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  .blob-path animate, * { animation-duration: .001s !important; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  padding: .8em 1.5em; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; min-height: 44px; position: relative; overflow: hidden;
  transition: color .25s, border-color .25s, transform .15s;
}
.btn:active { transform: scale(.98); }
.btn-brass { background: var(--brass); color: var(--forest-900); }
.btn-outline { background: transparent; border-color: var(--forest-700); color: var(--forest-800); }
.btn-ghost { background: transparent; border-color: var(--bone-dim); color: var(--bone); }
.btn-sm { padding: .5em 1.1em; font-size: .85rem; min-height: 36px; }
.btn-sweep { z-index: 0; }
.btn-sweep::before {
  content: ""; position: absolute; inset: 0; left: -100%; width: 100%;
  background: var(--forest-800); z-index: -1; transition: left .3s ease;
}
.btn-sweep:hover::before { left: 0; }
.btn-sweep.btn-brass:hover { color: var(--bone); }
.btn-sweep.btn-outline:hover { color: var(--bone); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--bone); border-bottom: 1px solid var(--bone-dim); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--forest-900); }
.logo-mark { width: 38px; height: 38px; flex: none; }
.logo-word { width: 150px; height: 31px; flex: none; }
.nav { display: flex; align-items: center; }
.nav-toggle {
  display: none; background: none; border: none; color: var(--forest-900); cursor: pointer;
  width: 44px; height: 44px; align-items: center; justify-content: center;
}
.nav-menu { list-style: none; display: flex; align-items: center; gap: 22px; margin: 0; padding: 0; flex-wrap: wrap; }
.nav-menu a { text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--forest-800); padding: 4px 0; position: relative; }
.nav-menu a::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px; background: var(--brass); transition: width .25s; }
.nav-menu a:hover::after, .nav-menu a.is-active::after { width: 100%; }
.cart-link { display: flex; align-items: center; gap: 6px; }
.cart-count {
  background: var(--forest-800); color: var(--bone); font-size: .72rem; min-width: 20px; height: 20px;
  border-radius: 999px; display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.cart-count.bump { animation: bump .35s ease; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.4); } 100% { transform: scale(1); } }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px); flex-direction: column; align-items: flex-start;
    background: var(--forest-800); color: var(--bone); padding: 90px 28px 28px; gap: 20px;
    transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility .3s;
  }
  .nav-menu.is-open { transform: translateX(0); visibility: visible; }
  .nav-menu a { color: var(--bone); }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: clip; padding: 60px 0 40px; }
.hero-blob { position: absolute; top: -10%; right: -8%; width: 52vw; max-width: 620px; height: auto; opacity: .22; z-index: 0; }
.hero-sun { position: absolute; top: 6%; right: 4%; width: 220px; height: 220px; z-index: 0; opacity: .9; }
.hero-grid { position: absolute; bottom: -2px; left: 0; width: 100%; height: 180px; z-index: 0; color: var(--brass); }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero-lead { max-width: 46ch; font-size: 1.05rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 1.4em; }
.hero-media img { border-radius: var(--radius); box-shadow: var(--shadow-2); aspect-ratio: 9/11; object-fit: cover; }
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-sun { width: 130px; height: 130px; }
}

/* ---------- sections ---------- */
.section { padding: clamp(48px, 8vw, 90px) 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.divider-ornament { display: block; width: 100%; max-width: 400px; height: 24px; margin: 0 auto 30px; color: var(--brass); }

/* category grid */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; margin-top: 24px; }
.cat-card {
  display: flex; flex-direction: column; gap: 12px; align-items: flex-start; text-decoration: none;
  background: var(--forest-800); color: var(--bone); border-radius: var(--radius); padding: 24px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-1); }
.cat-card span { font-weight: 700; font-size: 1.05rem; }

/* masonry gallery */
.masonry { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 160px; gap: 16px; margin-top: 24px; }
.masonry-item {
  margin: 0; position: relative; overflow: hidden; border-radius: var(--radius-sm); grid-row: span 2;
  box-shadow: var(--shadow-1);
}
.masonry-item.span-tall { grid-row: span 3; }
.masonry-item.span-wide { grid-column: span 2; }
.masonry-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.masonry-item:hover img { transform: scale(1.08); }
.masonry-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px; font-size: .85rem;
  background: linear-gradient(to top, rgba(20,40,32,.85), transparent); color: var(--bone);
  opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s;
}
.masonry-item:hover figcaption { opacity: 1; transform: none; }
@media (max-width: 760px) {
  .masonry { grid-template-columns: repeat(2, 1fr); }
  .masonry-item.span-wide { grid-column: span 2; }
}

/* feature: cvjetni kalendar */
.section-feature { background: var(--forest-800); color: var(--bone); border-radius: var(--radius); margin: 0 20px; padding: clamp(40px, 7vw, 70px) clamp(20px, 4vw, 50px); }
.feature-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.section-feature h2 { color: var(--bone); }
.season-guide { background: rgba(242,234,217,.06); border: 1px solid rgba(242,234,217,.2); border-radius: var(--radius); padding: 22px; }
.season-months { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.season-month {
  background: transparent; border: 1px solid rgba(242,234,217,.35); color: var(--bone); border-radius: 999px;
  padding: .5em 1em; font-size: .82rem; cursor: pointer; min-height: 36px;
}
.season-month.is-active { background: var(--brass); color: var(--forest-900); border-color: var(--brass); }
.season-flowers { font-weight: 700; margin-bottom: .3em; color: var(--brass-light); }
.season-note { margin: 0; color: var(--bone-dim); }
@media (max-width: 760px) { .feature-inner { grid-template-columns: 1fr; } }

/* product strip / cards */
.product-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; margin-top: 24px; }
.product-card {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-1);
  transition: transform .25s ease, box-shadow .25s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.product-card-media { display: block; aspect-ratio: 4/3; overflow: hidden; }
.product-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product-card:hover .product-card-media img { transform: scale(1.07); }
.product-card-body { padding: 16px; }
.product-card-body h3 { font-size: 1.05rem; margin-bottom: .2em; }
.product-card-body h3 a { text-decoration: none; }
.product-price { font-family: var(--font-mono); color: var(--forest-700); font-weight: 700; }
@media (max-width: 640px) {
  .product-strip { grid-auto-flow: column; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; display: flex; }
  .product-card { scroll-snap-align: start; min-width: 72%; }
}

/* cta */
.section-cta { text-align: center; }
.cta-inner { max-width: 60ch; margin: 0 auto; }

/* ---------- inner-page components (for the 11 remaining pages) ---------- */
.page-hero {
  background: var(--forest-800); color: var(--bone); padding: clamp(50px, 8vw, 90px) 0 50px; position: relative; overflow: clip;
}
.page-hero h1 { color: var(--bone); font-size: clamp(2rem, 5vw, 3rem); }
.page-hero .eyebrow { color: var(--brass-light); }
.breadcrumbs { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 1em; font-size: .85rem; flex-wrap: wrap; }
.breadcrumbs li { display: flex; gap: 8px; align-items: center; }
.breadcrumbs li:not(:last-child)::after { content: "/"; opacity: .5; }
.breadcrumbs a { text-decoration: none; opacity: .8; }

.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose a { color: var(--forest-700); text-decoration: underline; }

.legal-toc { background: var(--bone-dim); border-radius: var(--radius); padding: 20px 24px; margin: 0 0 2em; }
.legal-toc h2 { font-size: 1rem; margin-bottom: .5em; }
.legal-toc ol { margin: 0; padding-left: 1.2em; }

.notice { border-radius: var(--radius-sm); padding: 16px 18px; margin: 1.2em 0; border: 1px solid; }
.notice-info { background: #eef7f4; border-color: var(--cyan); }
.notice-warn { background: #fbf2e4; border-color: var(--brass); }
.notice-error { background: #fbecee; border-color: var(--pink); }

/* forms */
.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .9rem; }
.field input, .field select, .field textarea {
  font: inherit; padding: .7em .9em; border: 1.5px solid var(--bone-dim); border-radius: var(--radius-sm);
  background: #fff; accent-color: var(--brass); min-height: 44px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field-error { color: #b23a4a; font-size: .82rem; min-height: 1.2em; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.field-inline { display: flex; gap: 10px; flex-wrap: wrap; }
.form-error { color: #b23a4a; font-size: .85rem; min-height: 1.2em; }
.form-thanks { color: var(--forest-700); font-weight: 600; }

/* faq */
.faq { max-width: 70ch; display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: #fff; border: 1px solid var(--bone-dim); border-radius: var(--radius-sm); padding: 4px 18px; }
.faq-item summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 10px; min-height: 44px; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--brass); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { padding-bottom: 14px; margin: 0; }

/* product detail */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.product-detail img { border-radius: var(--radius); box-shadow: var(--shadow-1); aspect-ratio: 4/3; object-fit: cover; }
.product-detail .product-price { font-size: 1.4rem; }
.product-detail ul { padding-left: 1.2em; }
@media (max-width: 760px) { .product-detail { grid-template-columns: 1fr; } }

/* cart / checkout */
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.cart-table th, .cart-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--bone-dim); }
.cart-table img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); }
.cart-summary { background: var(--bone-dim); border-radius: var(--radius); padding: 20px; max-width: 360px; margin-left: auto; }
.cart-summary .row { display: flex; justify-content: space-between; margin-bottom: 8px; }
.cart-summary .total { font-weight: 700; font-size: 1.1rem; border-top: 1px solid rgba(0,0,0,.1); padding-top: 8px; }

/* contact layout */
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
.contact-info ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.contact-info li { display: flex; gap: 10px; align-items: flex-start; }
@media (max-width: 760px) { .contact-layout { grid-template-columns: 1fr; } }

/* toast + cookie banner */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); background: var(--forest-900); color: var(--bone);
  padding: 12px 22px; border-radius: 999px; font-size: .9rem; opacity: 0; transition: opacity .3s, transform .3s; z-index: 300; pointer-events: none;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; background: var(--forest-900); color: var(--bone); z-index: 250; }
.cookie-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 16px 20px; }
.cookie-banner a { color: var(--brass-light); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* footer */
.site-footer { background: var(--forest-800); color: var(--bone); margin-top: 40px; position: relative; }
.footer-divider { width: 100%; height: 30px; color: var(--brass); display: block; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1.3fr; gap: 30px; padding: 20px 20px 40px; }
.footer-col h3 { color: var(--brass-light); font-size: .95rem; margin-bottom: .6em; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { text-decoration: none; opacity: .9; }
.footer-col a:hover { text-decoration: underline; }
.newsletter-form .field-inline input { flex: 1; min-width: 160px; border: 1.5px solid rgba(242,234,217,.3); background: rgba(242,234,217,.06); color: var(--bone); }
.footer-bottom { border-top: 1px solid rgba(242,234,217,.15); padding: 16px 20px; font-size: .82rem; opacity: .8; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }

/* utility */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-lg { margin-top: 2.5em; } .mb-lg { margin-bottom: 2.5em; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }
.text-center { text-align: center; }
.text-sm { font-size: 0.85rem; }

/* product detail additions */
.product-image { margin-bottom: 20px; }
.product-info { padding: 0; }

/* cart summary detail rows */
.cart-summary .summary-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; font-size: 0.95rem; }
.cart-summary .summary-total { font-weight: 700; font-size: 1.1rem; border-top: 1px solid rgba(0,0,0,.15); padding-top: 12px; margin-top: 8px; }

/* checkbox field */
.field-checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; line-height: 1.4; cursor: pointer; margin: 1em 0; }
.field-checkbox input { margin-top: 4px; flex-shrink: 0; cursor: pointer; }
.field-checkbox a { color: var(--brass); text-decoration: none; }
.field-checkbox a:hover { text-decoration: underline; }

/* product strip and cards */
.product-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.product-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-1); text-decoration: none; transition: transform 0.3s, box-shadow 0.3s; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.product-card-image { overflow: hidden; background: var(--bone-dim); aspect-ratio: 1; }
.product-card-image img { width: 100%; height: 100%; object-fit: cover; }
.product-card-info { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.product-card-info h3 { flex-grow: 1; }
@media (max-width: 640px) { .product-strip { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; } }

/* COMPONENTS: .wrap - max-width content container
   COMPONENTS: .btn / .btn-brass / .btn-outline / .btn-ghost / .btn-sm / .btn-sweep - button variants (fill-sweep on hover)
   COMPONENTS: .reveal - scroll-reveal element, add .in-view via JS
   COMPONENTS: .page-hero - dark hero band for inner pages
   COMPONENTS: .breadcrumbs - inline breadcrumb trail
   COMPONENTS: .prose - readable long-form legal/text content
   COMPONENTS: .legal-toc - boxed table of contents for legal pages
   COMPONENTS: .notice / .notice-info / .notice-warn / .notice-error - callout boxes
   COMPONENTS: .form-grid / .field / .field-error / .field-inline / .form-error / .form-thanks / .hp - form layout + validation + honeypot
   COMPONENTS: .faq / .faq-item - details/summary accordion
   COMPONENTS: .product-detail - two-column product page layout
   COMPONENTS: .cart-table / .cart-summary - cart & checkout layout
   COMPONENTS: .contact-layout / .contact-info - contact page split layout
   COMPONENTS: .cat-grid / .cat-card - home category tiles
   COMPONENTS: .masonry / .masonry-item - home masonry gallery with hover captions
   COMPONENTS: .season-guide / .season-months / .season-month / .season-panel - Cvjetni kalendar feature
   COMPONENTS: .product-strip / .product-card - product cards grid/scroll-strip
   COMPONENTS: .cart-count / .cart-link - header cart badge
   COMPONENTS: .cookie-banner / .cookie-actions - cookie consent banner
   COMPONENTS: .toast - transient notice
   COMPONENTS: .grid-2 / .mt-lg / .mb-lg / .text-center - small utilities
*/

/* nav-cart: cart item in navigation */
.nav-cart {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* hero-text: main hero section text */
.hero-text {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  line-height: 1.2;
  color: var(--forest-900);
}

/* section-categories: category section wrapper */
.section-categories {
  padding: clamp(48px, 8vw, 90px) 0;
}

/* section-masonry: masonry gallery section wrapper */
.section-masonry {
  padding: clamp(48px, 8vw, 90px) 0;
}

/* feature-text: heading text in feature section */
.feature-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1.2;
  color: var(--forest-900);
}

/* section-products: products section wrapper */
.section-products {
  padding: clamp(48px, 8vw, 90px) 0;
}

/* product-details: product details container */
.product-details {
  background: #fff;
  border-radius: var(--radius);
  padding: clamp(30px, 5vw, 50px);
  box-shadow: var(--shadow-1);
}

/* wg-contrast-autofix */
section.hero div.wrap.hero-inner div.hero-text.reveal p.eyebrow { color: #111111 !important; }
section.section.section-feature div.wrap.feature-inner div.feature-text p { color: #ffffff !important; }
