/* ===== Cvjećarnica Jutro — design system ===== */
:root{
  --cream:#f6ead9;
  --cream-dark:#ead6b8;
  --terracotta:#c65d33;
  --terracotta-dark:#a3461f;
  --mustard:#e8a33d;
  --olive:#4b5320;
  --olive-dark:#343a16;
  --brown:#5a3a26;
  --ink:#2c1f14;
  --white:#fffaf2;
  --radius-lg:28px;
  --radius-md:16px;
  --radius-sm:10px;
  --font-display: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  --font-body: "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --measure: 68ch;
  --shadow-paper: 0 2px 0 rgba(44,31,20,.08), 0 14px 30px -14px rgba(44,31,20,.35);
}

html,body{overflow-x:clip}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--cream);
  line-height:1.55;
}
img{max-width:100%;display:block}
a{color:var(--terracotta-dark)}
h1,h2,h3,h4{font-family:var(--font-display);margin:0 0 .5em;line-height:1.1;color:var(--brown)}
p{margin:0 0 1em}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
:focus-visible{outline:3px solid var(--terracotta-dark);outline-offset:2px;border-radius:4px}

@media (prefers-reduced-motion: reduce){
  *{animation-duration:.001ms !important;animation-iteration-count:1 !important;transition-duration:.001ms !important;scroll-behavior:auto !important}
}

.grain-overlay{position:fixed;inset:0;width:100vw;height:100vh;pointer-events:none;z-index:1;mix-blend-mode:multiply}

/* ---- layout helpers ---- */
.wrap{max-width:1180px;margin-inline:auto;padding-inline:clamp(1rem,4vw,2.5rem)}
.grid{display:grid;gap:clamp(1rem,3vw,2rem)}
.stack{display:flex;flex-direction:column}
.mt-0{margin-top:0}.mt-1{margin-top:1rem}.mt-2{margin-top:2rem}.mt-3{margin-top:3rem}
.mb-0{margin-bottom:0}.mb-1{margin-bottom:1rem}.mb-2{margin-bottom:2rem}.mb-3{margin-bottom:3rem}

/* ---- reveal animation ---- */
.reveal{opacity:1;transform:none}
body.js .reveal{opacity:0;transform:translateY(24px);transition:opacity .6s ease, transform .6s ease}
body.js .reveal.in-view{opacity:1;transform:none}
.reveal-stagger > *{transition-delay:calc(var(--i,0) * 90ms)}

/* ---- header ---- */
.site-header{
  position:sticky;top:0;z-index:40;
  display:flex;align-items:center;justify-content:space-between;
  padding:.8rem clamp(1rem,4vw,2.5rem);
  background:var(--cream);
  border-bottom:3px solid var(--ink);
}
.logo{display:flex;align-items:center;gap:.6rem;text-decoration:none;color:var(--brown)}
.logo-mark{width:40px;height:40px;flex:none}
.logo-word{font-family:var(--font-display);font-size:1.25rem;font-weight:700;letter-spacing:.01em}
.logo-word em{display:block;font-style:normal;color:var(--terracotta-dark);font-size:1.4rem}
.nav-toggle{display:none;background:none;border:none;color:var(--brown);cursor:pointer;padding:.4rem;min-width:44px;min-height:44px}
.site-nav{display:flex;align-items:center;gap:1.4rem}
.site-nav a{text-decoration:none;color:var(--ink);font-weight:600;position:relative;padding:.3rem 0}
.site-nav a::after{content:"";position:absolute;left:0;right:100%;bottom:-2px;height:2px;background:var(--terracotta);transition:right .25s ease}
.site-nav a:hover::after,.site-nav a.is-active::after{right:0}
.site-nav a.is-active{color:var(--terracotta-dark)}
.nav-cart{display:flex;align-items:center;gap:.3rem;color:var(--brown)}
.nav-cart::after{display:none}
.cart-count{background:var(--terracotta);color:var(--white);font-size:.75rem;font-weight:700;border-radius:999px;min-width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;padding:0 5px}
.cart-count.bump,.nav-cart.bump .cart-count{animation:bump .4s ease}
@keyframes bump{0%{transform:scale(1)}40%{transform:scale(1.4)}100%{transform:scale(1)}}

@media (max-width: 860px){
  .nav-toggle{display:inline-flex;align-items:center;justify-content:center}
  .site-nav{
    position:fixed;inset:0 0 0 auto;width:min(78vw,320px);
    background:var(--brown);color:var(--cream);
    flex-direction:column;align-items:flex-start;gap:1.6rem;
    padding:5.5rem 2rem 2rem;
    transform:translateX(100%);visibility:hidden;
    transition:transform .35s ease, visibility .35s ease;
    z-index:39;
  }
  .site-nav.is-open{transform:translateX(0);visibility:visible}
  .site-nav a{color:var(--cream)}
  .nav-cart{color:var(--cream)}
}

/* ---- buttons ---- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
  font-family:var(--font-body);font-weight:700;font-size:1rem;
  padding:.75rem 1.6rem;border-radius:999px;border:2px solid var(--ink);
  cursor:pointer;text-decoration:none;min-height:44px;
  position:relative;overflow:hidden;isolation:isolate;
  transition:color .3s ease, border-color .3s ease;
}
.btn span, .btn{z-index:1}
.btn::before{
  content:"";position:absolute;inset:0;left:-100%;width:100%;
  background:var(--ink);transition:left .35s ease;z-index:-1;
}
.btn:hover::before{left:0}
.btn-fill{background:var(--terracotta);color:var(--white);border-color:var(--terracotta)}
.btn-fill::before{background:var(--terracotta-dark)}
.btn-fill:hover{color:var(--white)}
.btn-outline{background:transparent;color:var(--ink)}
.btn-outline:hover{color:var(--cream)}
.btn-ghost{background:transparent;border-color:var(--cream);color:var(--cream)}
.btn-ghost::before{background:rgba(246,234,217,.18)}
.btn-ghost:hover{color:var(--cream)}
.btn-sm{padding:.45rem 1rem;font-size:.85rem;min-height:36px}
.btn[disabled]{opacity:.5;cursor:not-allowed}

/* ---- hero (home) ---- */
.hero{padding:clamp(2rem,6vw,4rem) 0}
.hero-headline{font-size:clamp(2.6rem,7vw,5.4rem);margin:0;color:var(--brown)}
.hero-headline .word{display:inline-block;opacity:0;transform:translateY(100%)}
body.js .hero-headline .word{animation:riseWord .7s cubic-bezier(.2,.8,.2,1) forwards}
@keyframes riseWord{to{opacity:1;transform:none}}

/* ---- page hero (inner pages) ---- */
.page-hero{
  padding:clamp(3rem,8vw,5rem) 0 clamp(2rem,5vw,3rem);
  background:linear-gradient(135deg,var(--cream-dark),var(--cream));
  border-bottom:3px solid var(--ink);
  text-align:left;
}
.page-hero h1{font-size:clamp(2.2rem,5vw,3.4rem)}
.page-hero p{max-width:var(--measure);font-size:1.1rem}

/* ---- breadcrumbs ---- */
.breadcrumbs{display:flex;gap:.4rem;flex-wrap:wrap;font-size:.9rem;margin-bottom:1rem;color:var(--brown)}
.breadcrumbs a{text-decoration:none;color:var(--brown)}
.breadcrumbs a:hover{text-decoration:underline}
.breadcrumbs .sep{opacity:.5}

/* ---- prose (legal pages) ---- */
.prose{max-width:var(--measure);font-size:1.02rem}
.prose h2{margin-top:2em;font-size:1.5rem}
.prose h3{margin-top:1.4em;font-size:1.2rem}
.prose ul,.prose ol{padding-left:1.4em}
.prose li{margin-bottom:.5em}

/* ---- legal-toc ---- */
.legal-toc{background:var(--white);border:2px solid var(--ink);border-radius:var(--radius-md);padding:1.2rem 1.4rem;max-width:var(--measure);margin-bottom:2rem}
.legal-toc h2{font-size:1rem;text-transform:uppercase;letter-spacing:.06em;margin-bottom:.6rem}
.legal-toc ol{margin:0;padding-left:1.2em}
.legal-toc a{text-decoration:none}
.legal-toc a:hover{text-decoration:underline}

/* ---- notice ---- */
.notice{border-radius:var(--radius-md);border:2px solid var(--ink);padding:1rem 1.3rem;max-width:var(--measure);margin-bottom:1.5rem}
.notice-info{background:#eef0e2;border-color:var(--olive)}
.notice-warn{background:#fbe6d4;border-color:var(--terracotta)}
.notice-ok{background:#e4efdd;border-color:var(--olive)}

/* ---- cards / sections ---- */
.section{padding:clamp(2.5rem,6vw,4.5rem) 0}
.section-head{max-width:var(--measure);margin-bottom:2rem}
.card{
  background:var(--white);border:2px solid var(--ink);border-radius:var(--radius-md);
  box-shadow:var(--shadow-paper);overflow:hidden;
}

/* ---- product grid / strip ---- */
.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:1.5rem}
.product-card{display:flex;flex-direction:column;text-decoration:none;color:var(--ink)}
.product-card .thumb{aspect-ratio:4/3;overflow:hidden}
.product-card img{width:100%;height:100%;object-fit:cover;transition:transform .5s ease}
.product-card:hover img{transform:scale(1.07)}
.product-card .body{padding:1rem 1.1rem 1.2rem;display:flex;flex-direction:column;gap:.4rem;flex:1}
.product-card h3{font-size:1.15rem;margin:0}
.product-card .price{font-weight:700;color:var(--terracotta-dark);margin-top:auto}
.chip-row{display:flex;gap:.4rem;flex-wrap:wrap}
.chip{background:var(--cream-dark);border-radius:999px;padding:.15rem .7rem;font-size:.75rem;font-weight:600;color:var(--brown)}

.product-strip{display:flex;gap:1.2rem;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:.5rem}
.product-strip .product-card{min-width:220px;scroll-snap-align:start}
@media (min-width:860px){.product-strip{overflow:visible;display:grid;grid-template-columns:repeat(4,1fr)}}

/* ---- product detail ---- */
.product-detail{display:grid;gap:clamp(1.5rem,4vw,3rem);grid-template-columns:1fr}
@media (min-width:800px){.product-detail{grid-template-columns:1fr 1fr}}
.product-detail .gallery{border-radius:var(--radius-lg);overflow:hidden;border:3px solid var(--ink);aspect-ratio:4/3}
.product-detail .gallery img{width:100%;height:100%;object-fit:cover}
.product-detail .price-tag{font-size:1.8rem;color:var(--terracotta-dark);font-weight:700}
.qty-row{display:flex;align-items:center;gap:.8rem;margin:1rem 0}
.qty-row input{width:4rem;text-align:center;padding:.5rem;border-radius:var(--radius-sm);border:2px solid var(--ink)}

/* ---- cart / checkout ---- */
.cart-table{width:100%;border-collapse:collapse;margin-bottom:2rem}
.cart-table th,.cart-table td{padding:.8rem;border-bottom:2px solid var(--cream-dark);text-align:left}
.cart-table img{width:64px;height:64px;object-fit:cover;border-radius:var(--radius-sm)}
.cart-summary{max-width:360px;margin-left:auto;background:var(--white);border:2px solid var(--ink);border-radius:var(--radius-md);padding:1.3rem;box-shadow:var(--shadow-paper)}
.cart-summary .total-row{display:flex;justify-content:space-between;font-weight:700;font-size:1.2rem;margin-top:.8rem;padding-top:.8rem;border-top:2px dashed var(--cream-dark)}

/* ---- forms ---- */
.form-grid{display:grid;gap:1.1rem;max-width:var(--measure)}
@media (min-width:640px){.form-grid.two-col{grid-template-columns:1fr 1fr}}
.field{display:flex;flex-direction:column;gap:.35rem}
.field label{font-weight:600;font-size:.92rem}
.field input,.field textarea,.field select{
  font:inherit;padding:.7rem .9rem;border:2px solid var(--ink);border-radius:var(--radius-sm);
  background:var(--white);accent-color:var(--terracotta);
}
.field input:focus,.field textarea:focus,.field select:focus{border-color:var(--terracotta-dark)}
.field-error{color:var(--terracotta-dark);font-size:.85rem;min-height:1.1em}
.hp{position:absolute !important;width:1px;height:1px;opacity:0;pointer-events:none}
.form-msg{min-height:1.4em;font-weight:600}
.form-msg.is-ok{color:var(--olive)}
.form-msg.is-err{color:var(--terracotta-dark)}

.contact-layout{display:grid;gap:clamp(1.5rem,4vw,3rem);grid-template-columns:1fr}
@media (min-width:800px){.contact-layout{grid-template-columns:1.1fr 1fr}}
.contact-info{display:flex;flex-direction:column;gap:1rem}
.contact-info .row{display:flex;gap:.7rem;align-items:flex-start}
.contact-info svg{flex:none;color:var(--terracotta-dark);margin-top:.15rem}

/* ---- faq ---- */
.faq{display:flex;flex-direction:column;gap:.8rem;max-width:var(--measure)}
.faq-item{background:var(--white);border:2px solid var(--ink);border-radius:var(--radius-md);padding:.2rem 1.2rem;overflow:hidden}
.faq-item summary{cursor:pointer;font-weight:700;padding:.9rem 0;list-style:none;display:flex;justify-content:space-between;gap:1rem}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::after{content:"+";font-size:1.4rem;color:var(--terracotta-dark)}
.faq-item[open] summary::after{content:"\2212"}
.faq-item p{padding-bottom:1rem;margin:0}

/* ---- footer ---- */
.wave-divider{display:block;width:100%;height:60px}
.site-footer{background:var(--brown);color:var(--cream);padding:3rem clamp(1rem,4vw,2.5rem) 1.5rem}
.footer-grid{display:grid;gap:2rem;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));max-width:1180px;margin-inline:auto}
.footer-brand p{margin:.6rem 0 .3rem;opacity:.9}
.footer-brand a{color:var(--mustard)}
.footer-col h3{color:var(--cream);font-size:.95rem;text-transform:uppercase;letter-spacing:.06em;margin-bottom:.7rem}
.footer-col{display:flex;flex-direction:column;gap:.5rem}
.footer-col a{color:var(--cream);opacity:.85;text-decoration:none}
.footer-col a:hover{opacity:1;text-decoration:underline}
.newsletter-form h3{color:var(--cream);margin-bottom:.3rem}
.newsletter-form p{opacity:.85;font-size:.9rem}
.field-row{display:flex;gap:.5rem;flex-wrap:wrap}
.field-row input{flex:1;min-width:140px;padding:.6rem .8rem;border-radius:var(--radius-sm);border:2px solid var(--cream)}
.footer-legal{text-align:center;opacity:.7;margin-top:2.5rem;font-size:.85rem}

/* ---- cookie banner ---- */
.cookie-banner{
  position:fixed;left:1rem;right:1rem;bottom:1rem;z-index:60;
  background:var(--brown);color:var(--cream);border:2px solid var(--ink);
  border-radius:var(--radius-md);padding:1.2rem 1.4rem;
  display:flex;flex-wrap:wrap;gap:1rem;align-items:center;justify-content:space-between;
  max-width:720px;margin-inline:auto;box-shadow:var(--shadow-paper);
}
.cookie-banner p{margin:0;flex:1;min-width:200px}
.cookie-banner a{color:var(--mustard)}
.cookie-actions{display:flex;gap:.6rem}

/* ---- decorative ---- */
.ornament{color:var(--terracotta)}
.seal{color:var(--olive)}

/* COMPONENTS: .class - what it is
.wrap - centered max-width content container
.grid - generic CSS grid helper
.stack - flex column helper
.mt-0/.mt-1/.mt-2/.mt-3, .mb-0/.mb-1/.mb-2/.mb-3 - spacing utilities
.reveal / .reveal-stagger / .in-view - scroll-reveal animation hooks
.site-header / .logo / .logo-mark / .logo-word / .nav-toggle / .site-nav / .nav-cart / .cart-count - header & nav
.btn / .btn-fill / .btn-outline / .btn-ghost / .btn-sm - button variants with fill-sweep hover
.hero / .hero-headline / .word - home hero with word-by-word rise
.page-hero - inner page hero banner
.breadcrumbs - breadcrumb trail nav
.prose - long-form legal/readable text block
.legal-toc - table of contents box for legal pages
.notice / .notice-info / .notice-warn / .notice-ok - callout boxes
.section / .section-head - generic page section with heading
.card - bordered paper-shadow card
.product-grid - responsive catalog grid
.product-card / .thumb / .body / .price / .chip-row / .chip - product card anatomy
.product-strip - horizontal scroll-snap strip (mobile) / grid (desktop)
.product-detail / .gallery / .price-tag / .qty-row - product page layout
.cart-table / .cart-summary / .total-row - cart & checkout
.form-grid / .field / .field-error / .hp / .form-msg - form building blocks
.contact-layout / .contact-info - contact page layout
.faq / .faq-item - details/summary accordion
.site-footer / .footer-grid / .footer-col / .footer-brand / .newsletter-form / .field-row / .footer-legal - footer
.cookie-banner / .cookie-actions - cookie consent banner
.wave-divider - SVG section divider
.grain-overlay - fixed feTurbulence grain texture
.ornament / .seal - decorative SVG accent colors
*/

/* ---- hero-grid ---- */
.hero-grid{display:grid;gap:clamp(1.5rem,3vw,2rem);grid-template-columns:1fr;align-items:end}

/* ---- hero-illustration ---- */
.hero-illustration{display:block;width:100%;max-width:900px;height:auto;margin:clamp(1rem,2vw,2rem) auto 0}

/* ---- sticky-scroll ---- */
.sticky-scroll{display:grid;gap:clamp(1.5rem,3vw,2.5rem);grid-template-columns:1fr}
@media (min-width:860px){.sticky-scroll{grid-template-columns:1fr 1.2fr}}

/* ---- sticky-col ---- */
.sticky-col{position:sticky;top:90px;align-self:start}

/* ---- scroll-col ---- */
.scroll-col{display:flex;flex-direction:column;gap:clamp(1.5rem,3vw,2.4rem)}

/* ---- filter-btn ---- */
.filter-btn{display:inline-flex;align-items:center;justify-content:center;padding:0.6rem 1.2rem;border:2px solid var(--ink);background:transparent;color:var(--ink);border-radius:var(--radius-sm);font-weight:600;font-family:var(--font-body);font-size:1rem;cursor:pointer;transition:background .2s ease, color .2s ease}
.filter-btn:hover{background:var(--cream-dark)}
.filter-btn.active{background:var(--ink);color:var(--white)}

/* ---- remove-btn ---- */
.remove-btn{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;background:none;border:none;color:var(--terracotta-dark);font-size:1.2rem;cursor:pointer;transition:color .2s ease}
.remove-btn:hover{color:var(--terracotta)}

