/* Posteljina Radost — Herbarium specimen style */

:root {
  --espresso: #3c2a1e;
  --espresso-2: #5a3a2a;
  --caramel: #a86f3e;
  --caramel-2: #c98f52;
  --milk: #f6ecdb;
  --milk-2: #efe3cf;
  --paper: #f1e6d2;
  --ink: #2a1d14;
  --line: rgba(60, 42, 30, 0.22);
  --success: #3f6b4a;
  --error: #9a3324;
  --radius: 14px;
  --shadow: 0 8px 24px -8px rgba(42, 29, 20, 0.35);
  --font-display: "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
  --font-body: "Avenir Next", "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --font-mono: "Courier New", ui-monospace, monospace;
  --measure: 68ch;
}

html, body { overflow-x: clip; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--milk);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--espresso-2); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--espresso); margin: 0 0 0.5em; line-height: 1.15; }
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2.5px solid var(--caramel); outline-offset: 3px; }

.container { width: min(1180px, 92vw); margin-inline: auto; }
.section { padding: clamp(3rem, 6vw, 6rem) 0; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.flow > * + * { margin-top: 1em; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* === reveal === */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: none; }
.reveal.r1.in-view { transition-delay: .05s; }
.reveal.r2.in-view { transition-delay: .15s; }
.reveal.r3.in-view { transition-delay: .25s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
}

/* === header === */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem clamp(1rem, 4vw, 2.5rem);
  background: var(--milk-2);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(4px);
}
.logo { display: flex; align-items: center; gap: 0.6rem; color: var(--espresso); }
.logo-mark { color: var(--caramel-2); flex-shrink: 0; }
.logo-word { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: 0.01em; white-space: nowrap; }
.logo-word em { font-style: normal; color: var(--caramel); display: block; font-size: 0.78em; letter-spacing: 0.12em; text-transform: uppercase; }
.site-nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.site-nav a { font-size: 0.95rem; color: var(--espresso-2); position: relative; padding: 0.2rem 0; }
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1.5px;
  background: var(--caramel); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.site-nav a:hover::after, .site-nav a.active::after { transform: scaleX(1); }
.site-nav a.active { color: var(--espresso); }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.cart-link { position: relative; color: var(--espresso); display: flex; }
.cart-count {
  position: absolute; top: -8px; right: -10px; background: var(--caramel); color: var(--milk);
  font-size: 0.68rem; font-weight: 700; border-radius: 50%; min-width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center; padding: 0 3px;
}
.cart-count.bump { animation: bump 0.35s ease; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.4); } 100% { transform: scale(1); } }
.nav-toggle { display: none; background: none; border: none; color: var(--espresso); padding: 0.3rem; }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px); height: 100vh;
    background: var(--milk-2); flex-direction: column; padding: 5.5rem 2rem 2rem;
    transform: translateX(100%); visibility: hidden; transition: transform .35s ease, visibility .35s ease;
    box-shadow: var(--shadow); z-index: 60;
  }
  .site-nav.open { transform: translateX(0); visibility: visible; }
}

/* === buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; border-radius: 999px; font-size: 0.95rem; font-weight: 600;
  border: 1.5px solid transparent; position: relative; overflow: hidden; min-height: 44px;
  transition: color .3s ease, border-color .3s ease;
}
.btn::before {
  content: ""; position: absolute; inset: 0; width: 100%; left: -100%;
  background: var(--espresso); transition: left .3s ease; z-index: -1;
}
.btn-primary { background: var(--caramel); color: var(--milk); border-color: var(--caramel); }
.btn-primary:hover::before { left: 0; }
.btn-primary:hover { border-color: var(--espresso); }
.btn-outline { background: transparent; color: var(--espresso); border-color: var(--espresso); }
.btn-outline::before { background: var(--espresso); }
.btn-outline:hover { color: var(--milk); }
.btn-outline:hover::before { left: 0; }
.btn-ghost { background: transparent; color: var(--milk); border-color: rgba(255,255,255,0.5); }
.btn-ghost:hover { color: var(--espresso); border-color: var(--milk); }
.btn-ghost::before { background: var(--milk); }
.btn-ghost:hover::before { left: 0; }
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.85rem; min-height: 36px; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* === hero / split === */
.hero-split {
  display: grid; grid-template-columns: 1fr 1fr; min-height: 86vh; position: relative;
  background: var(--espresso); color: var(--milk); overflow: hidden;
}
.hero-split .hero-side {
  display: flex; flex-direction: column; justify-content: center; padding: clamp(2rem, 6vw, 5rem);
  position: relative; z-index: 2;
}
.hero-split .hero-side.light { background: var(--milk); color: var(--espresso); }
.hero-split .hero-side.dark { background: var(--espresso); color: var(--milk); }
.hero-divider {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: var(--caramel-2);
  z-index: 3; transform: translateX(-50%); box-shadow: 0 0 0 6px rgba(246,236,219,0.08);
}
.hero-title { font-size: clamp(2.4rem, 6vw, 4.6rem); letter-spacing: -0.01em; }
.hero-badge {
  position: absolute; width: clamp(110px, 14vw, 160px); height: clamp(110px, 14vw, 160px);
  z-index: 4; animation: spin 24s linear infinite;
}
@media (prefers-reduced-motion: reduce) { .hero-badge { animation: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 860px) {
  .hero-split { grid-template-columns: 1fr; min-height: auto; }
  .hero-divider { display: none; }
}

/* === decorative === */
.ornament-row { display: flex; justify-content: center; gap: 2rem; opacity: 0.6; margin: 2rem 0; }
.grain-overlay { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; opacity: 0.05; z-index: 1; mix-blend-mode: multiply; }
.specimen-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem; box-shadow: var(--shadow); position: relative;
}
.specimen-card .pin { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); color: var(--caramel); }
.specimen-label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--caramel); }

/* === feature: Barometar Topline === */
.barometer {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 3rem); box-shadow: var(--shadow);
}
.barometer-controls { display: grid; gap: 1.5rem; grid-template-columns: 1fr 1fr; margin-bottom: 1.5rem; }
@media (max-width: 640px) { .barometer-controls { grid-template-columns: 1fr; } }
.barometer-controls label { display: block; font-weight: 600; margin-bottom: 0.5rem; }
.season-pills { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.season-pills button {
  border: 1.5px solid var(--line); background: var(--milk); border-radius: 999px; padding: 0.5rem 1.1rem;
  font-size: 0.9rem; min-height: 40px;
}
.season-pills button.active { background: var(--caramel); color: var(--milk); border-color: var(--caramel); }
.barometer-gauge { display: flex; align-items: center; gap: 1rem; }
.barometer-gauge input[type="range"] { flex: 1; accent-color: var(--caramel); }
.barometer-result { margin-top: 1.5rem; padding: 1.25rem; border-radius: var(--radius); background: var(--milk); border: 1px dashed var(--caramel); }
.barometer-result strong { color: var(--espresso); }

/* === product cards / catalog === */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.75rem; }
.product-card {
  background: var(--paper); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow); transition: transform .3s ease;
}
.product-card:hover { transform: translateY(-6px); }
.product-card .thumb { aspect-ratio: 4/3; overflow: hidden; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .thumb img { transform: scale(1.06); }
.product-card .body { padding: 1.1rem 1.1rem 1.4rem; }
.product-card .price { font-weight: 700; color: var(--espresso); }
.price-old { text-decoration: line-through; opacity: 0.55; margin-right: 0.4rem; font-weight: 400; }
.product-strip {
  display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.5rem;
}
.product-strip .product-card { min-width: 220px; scroll-snap-align: start; }

/* === inner-page components === */
.page-hero {
  background: var(--espresso); color: var(--milk); padding: clamp(3rem, 8vw, 6rem) 0 clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}
.page-hero h1 { color: var(--milk); font-size: clamp(2rem, 5vw, 3.2rem); }
.page-hero p { opacity: 0.85; max-width: 60ch; margin-inline: auto; }

.breadcrumbs { font-size: 0.85rem; color: var(--espresso-2); margin: 1.5rem 0; }
.breadcrumbs a { text-decoration: underline; }
.breadcrumbs span { opacity: 0.6; margin: 0 0.4em; }

.prose { max-width: var(--measure); margin-inline: auto; }
.prose h2 { margin-top: 2em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.4em; }

.legal-toc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin-bottom: 2rem; }
.legal-toc h2 { font-size: 1rem; margin-bottom: 0.6rem; }
.legal-toc ol { margin: 0; padding-left: 1.2em; }

.notice { border-radius: var(--radius); padding: 1rem 1.25rem; border: 1px solid var(--line); background: var(--paper); margin: 1.5rem 0; }
.notice-success { border-color: var(--success); background: rgba(63,107,74,0.1); }
.notice-error { border-color: var(--error); background: rgba(154,51,36,0.1); }
.notice-info { border-color: var(--caramel); background: rgba(168,111,62,0.08); }

/* forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-weight: 600; font-size: 0.9rem; }
.field input, .field select, .field textarea {
  border: 1.5px solid var(--line); border-radius: 8px; padding: 0.7rem 0.9rem; font-family: inherit;
  font-size: 0.95rem; background: var(--milk); min-height: 44px; accent-color: var(--caramel);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--caramel); }
.field textarea { min-height: 120px; resize: vertical; }
.field-error { color: var(--error); font-size: 0.82rem; min-height: 1.2em; }
.field-full { grid-column: 1 / -1; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { color: var(--success); font-weight: 600; }

/* faq */
.faq { max-width: var(--measure); margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--line); padding: 0.75rem 0; }
.faq-item summary { cursor: pointer; font-weight: 600; color: var(--espresso); list-style: none; display: flex; justify-content: space-between; gap: 1rem; 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(--caramel); flex-shrink: 0; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin-top: 0.6rem; opacity: 0.9; }

/* product detail */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 860px) { .product-detail { grid-template-columns: 1fr; } }
.product-detail .gallery { aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; }
.product-detail .gallery img { width: 100%; height: 100%; object-fit: cover; }
.product-detail .price-row { font-size: 1.6rem; font-weight: 700; color: var(--espresso); }
.qty-input { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; }
.qty-input button { background: none; border: none; width: 40px; height: 40px; font-size: 1.1rem; }
.qty-input input { width: 48px; text-align: center; border: none; background: none; font-size: 1rem; min-height: 40px; }

/* cart / checkout */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { text-align: left; padding: 0.9rem 0.5rem; border-bottom: 1px solid var(--line); }
.cart-table .row-thumb { width: 70px; height: 70px; border-radius: 10px; overflow: hidden; }
.cart-table .row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-summary { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.cart-summary .total-row { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.15rem; margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px dashed var(--caramel); }
.cart-empty { text-align: center; padding: 3rem 1rem; }

/* contact layout */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-info-list { list-style: none; padding: 0; display: grid; gap: 1rem; }
.contact-info-list li { display: flex; gap: 0.75rem; align-items: flex-start; }
.contact-info-list svg { flex-shrink: 0; color: var(--caramel); margin-top: 0.2em; }

/* footer */
.site-footer { background: var(--espresso); color: var(--milk); padding: clamp(2.5rem, 5vw, 4rem) 0 1.5rem; }
.footer-top { width: min(1180px, 92vw); margin-inline: auto; display: grid; grid-template-columns: 1.4fr 2fr 1.2fr; gap: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(246,236,219,0.15); }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand p { opacity: 0.75; font-size: 0.9rem; }
.footer-cols { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.footer-cols h3 { color: var(--milk); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.9rem; }
.footer-cols a { display: block; color: rgba(246,236,219,0.8); margin-bottom: 0.55em; font-size: 0.92rem; }
.footer-cols a:hover { color: var(--caramel-2); }
.newsletter-form .field { margin-bottom: 0.75rem; }
.newsletter-form input { background: rgba(246,236,219,0.08); border-color: rgba(246,236,219,0.3); color: var(--milk); }
.newsletter-form input::placeholder { color: rgba(246,236,219,0.5); }
.newsletter-form label { color: var(--milk); }
.footer-bottom { width: min(1180px, 92vw); margin-inline: auto; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.5rem; font-size: 0.85rem; opacity: 0.7; }
.footer-bottom a { color: var(--milk); }

/* cookie banner */
.cookie-banner {
  position: fixed; bottom: 1rem; left: 1rem; right: 1rem; z-index: 90;
  background: var(--espresso); color: var(--milk); border-radius: var(--radius);
  padding: 1.25rem 1.5rem; display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap;
  box-shadow: var(--shadow); max-width: 640px; margin-inline: auto;
}
.cookie-banner p { margin: 0; flex: 1; min-width: 200px; font-size: 0.9rem; }
.cookie-banner a { color: var(--caramel-2); text-decoration: underline; }
.cookie-actions { display: flex; gap: 0.6rem; }

/* toast */
.toast {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translate(-50%, 20px); opacity: 0;
  background: var(--espresso); color: var(--milk); padding: 0.8rem 1.4rem; border-radius: 999px;
  font-size: 0.9rem; box-shadow: var(--shadow); z-index: 100; transition: opacity .3s ease, transform .3s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 404 */
.error-page { text-align: center; padding: clamp(4rem, 10vw, 7rem) 1rem; }
.error-page .big-number { font-family: var(--font-display); font-size: clamp(5rem, 18vw, 10rem); color: var(--caramel); line-height: 1; }

/*
COMPONENTS:
.container - centered max-width wrapper
.section - vertical page section padding
.grid-2 / .grid-3 - responsive content grids
.reveal / .reveal.in-view / .r1 .r2 .r3 - scroll-reveal states + stagger delays
.site-header / .logo / .logo-mark / .logo-word / .site-nav / .header-actions - header & nav
.cart-link / .cart-count - header cart icon + badge
.nav-toggle - mobile menu button
.btn / .btn-primary / .btn-outline / .btn-ghost / .btn-sm - button variants with fill-sweep
.hero-split / .hero-side / .hero-divider / .hero-title / .hero-badge - split-screen hero with rotating badge
.ornament-row / .grain-overlay / .specimen-card / .specimen-label - decorative herbarium motifs
.barometer / .barometer-controls / .season-pills / .barometer-gauge / .barometer-result - signature feature widget
.product-grid / .product-card / .product-strip - catalog listing & mobile scroll-snap strip
.price-old - struck-through old price
.page-hero - inner page hero banner
.breadcrumbs - page breadcrumb trail
.prose - long-form legal/text content column
.legal-toc - table of contents box for legal pages
.notice / .notice-success / .notice-error / .notice-info - inline alert boxes
.form-grid / .field / .field-error / .field-full / .hp-field / .form-note - form layout primitives
.faq / .faq-item - details/summary FAQ accordion
.product-detail / .gallery / .price-row / .qty-input - single product page layout
.cart-table / .cart-summary / .cart-empty - cart & checkout layout
.contact-layout / .contact-info-list - contact page layout
.site-footer / .footer-top / .footer-brand / .footer-cols / .footer-bottom / .newsletter-form - footer
.cookie-banner / .cookie-actions - cookie consent banner
.toast - transient feedback message
.error-page / .big-number - 404 page
*/

/* wg-contrast-autofix */
main section.hero-split div.hero-side.dark h1.hero-title { color: #ffffff !important; }
footer.site-footer div.footer-top form.newsletter-form h3 { color: #ffffff !important; }
