/* ===== Rastlinná Výživa — Industrial loft x organic garden ===== */

:root {
  --steel-dark: #232320;
  --steel: #3c3c35;
  --steel-light: #5a5a4e;
  --amber: #c8792e;
  --amber-light: #e3a35c;
  --olive: #5c6b3f;
  --olive-dark: #3b4527;
  --cream: #f3ecdd;
  --cream-soft: #e9e0cc;
  --soil: #4a3826;
  --ink: #221f1a;

  --font-display: "Futura PT", "Century Gothic", "Arial Narrow", "Segoe UI", sans-serif;
  --font-body: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Consolas", "SFMono-Regular", "Courier New", monospace;

  --radius: 6px;
  --shadow-card: 0 18px 40px -20px rgba(34, 31, 26, 0.45);
  --shadow-rivet: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -2px 2px rgba(0,0,0,.4);
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0 0 .5em;
  color: var(--steel-dark);
  letter-spacing: .01em;
}

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .72rem;
  color: var(--amber);
  font-weight: 700;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .85em 1.6em;
  border-radius: var(--radius);
  border: 2px solid var(--steel-dark);
  background: var(--steel-dark);
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .85rem;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  min-height: 44px;
  z-index: 0;
  transition: color .3s ease, border-color .3s ease;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  left: -100%;
  width: 100%;
  background: var(--amber);
  z-index: -1;
  transition: left .35s cubic-bezier(.65,0,.35,1);
}
.btn:hover::before, .btn:focus-visible::before { left: 0; }
.btn:hover, .btn:focus-visible { color: var(--ink); }

.btn--ghost {
  background: transparent;
  color: var(--steel-dark);
}
.btn--ghost::before { background: var(--olive); }
.btn--ghost:hover, .btn--ghost:focus-visible { color: var(--cream); }

.btn--on-dark { border-color: var(--amber-light); color: var(--cream); background: transparent; }
.btn--on-dark::before { background: var(--amber-light); }
.btn--on-dark:hover, .btn--on-dark:focus-visible { color: var(--ink); }

.btn--ghost-on-dark { background: transparent; color: var(--cream); border-color: var(--cream-soft); }
.btn--ghost-on-dark::before { background: var(--olive); }
.btn--ghost-on-dark:hover, .btn--ghost-on-dark:focus-visible { color: var(--cream); }

button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

/* ===== Grain overlay ===== */
.grain {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 999;
  opacity: .05;
  mix-blend-mode: multiply;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--steel-dark);
  border-bottom: 3px solid var(--amber);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--cream);
  min-width: 0;
}
.logo svg.mark { width: 42px; height: 42px; flex-shrink: 0; }
.logo svg.word { width: 154px; height: 20px; color: var(--cream); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.main-nav a {
  color: var(--cream-soft);
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: .78rem;
  letter-spacing: .1em;
  position: relative;
  padding: .3em 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--amber);
  transition: right .3s ease;
}
.main-nav a:hover::after, .main-nav a[aria-current]::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: .9rem; }
.cart-link {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: .85rem;
  border: 1px solid var(--steel-light);
  padding: .5em .8em;
  border-radius: var(--radius);
  min-height: 44px;
}
.cart-link svg { width: 20px; height: 20px; }
.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4em;
  height: 1.4em;
  background: var(--amber);
  color: var(--ink);
  border-radius: 50%;
  font-weight: 800;
  font-size: .75rem;
}
.cart-count.bump { animation: bump .4s ease; }
@keyframes bump { 0%{transform:scale(1);} 40%{transform:scale(1.5);} 100%{transform:scale(1);} }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--steel-light);
  border-radius: var(--radius);
  padding: .4rem;
  width: 44px;
  height: 44px;
  color: var(--cream);
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 480px) {
  .cart-link > span:not(.cart-count) { display: none; }
  .cart-link { padding: .5em .6em; }
  .logo svg.word { width: 118px; }
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(320px, 85vw);
    background: var(--steel-dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 6rem 1.5rem 2rem;
    gap: 1.3rem;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .35s ease;
    border-left: 3px solid var(--amber);
    z-index: 90;
  }
  .main-nav.open { transform: translateX(0); visibility: visible; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-icon-close { display: none; }
  .nav-toggle[aria-expanded="true"] .nav-icon-menu { display: none; }
  .nav-toggle[aria-expanded="true"] .nav-icon-close { display: block; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  background: var(--steel-dark);
  color: var(--cream);
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 8vw, 6rem);
}
.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: 2.5rem;
}
.hero .container > * { min-width: 0; }
@media (max-width: 860px) {
  .hero .container { grid-template-columns: minmax(0, 1fr); }
}
.hero-text h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  color: var(--cream);
  line-height: 1.02;
  margin-bottom: .6rem;
}
.hero-text h1 em {
  font-style: normal;
  color: var(--amber-light);
}
.hero-text p { max-width: 36em; color: var(--cream-soft); font-size: 1.08rem; }
.hero-cta { display: flex; gap: 1rem; margin-top: 1.6rem; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  aspect-ratio: 4/3.2;
}
.hero-blob-svg {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  z-index: 0;
}
.hero-blob-svg path {
  fill: var(--olive-dark);
  d: path("M53,-61C66,-50,70,-25,68,-2C66,20,58,38,43,50C29,62,8,68,-13,65C-34,62,-56,50,-67,31C-78,13,-78,-13,-67,-33C-56,-53,-34,-67,-10,-69C13,-72,40,-73,53,-61Z");
  animation: morph 10s ease-in-out infinite;
  transform-origin: center;
}
@keyframes morph {
  0%, 100% { d: path("M53,-61C66,-50,70,-25,68,-2C66,20,58,38,43,50C29,62,8,68,-13,65C-34,62,-56,50,-67,31C-78,13,-78,-13,-67,-33C-56,-53,-34,-67,-10,-69C13,-72,40,-73,53,-61Z"); }
  50% { d: path("M58,-56C71,-40,71,-14,65,8C60,30,49,48,32,58C14,67,-9,68,-29,60C-50,52,-67,36,-72,16C-77,-5,-71,-30,-55,-45C-40,-60,-16,-65,6,-67C28,-69,46,-71,58,-56Z"); }
}
.hero-photo {
  position: relative;
  z-index: 1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 3px solid var(--steel-light);
}
.hero-photo img { aspect-ratio: 4/3; object-fit: cover; width: 100%; height: 100%; }
.hero-badge {
  position: absolute;
  bottom: -18px;
  left: -18px;
  z-index: 2;
  width: 92px;
  height: 92px;
}
@media (prefers-reduced-motion: reduce) {
  .hero-blob-svg path { animation: none; }
}

/* ===== Rivets ===== */
.rivets {
  display: flex;
  gap: .5rem;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
}
.rivet {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--steel-light);
  box-shadow: var(--shadow-rivet);
}

/* ===== Numbered section grid (home composition) ===== */
.numbered {
  position: relative;
  padding: clamp(3rem, 7vw, 5.5rem) 0;
  border-top: 1px solid var(--cream-soft);
}
.numbered--dark { background: var(--steel-dark); color: var(--cream); border-top: 3px solid var(--amber); }
.numbered--dark h2 { color: var(--cream); }
.numbered--dark .num-big { color: var(--amber); }
.numbered--olive { background: var(--olive-dark); color: var(--cream); }
.numbered--olive h2 { color: var(--cream); }

.num-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1rem, 4vw, 3rem);
  align-items: start;
}
.num-row > * { min-width: 0; }
.num-big {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 11vw, 8rem);
  font-weight: 800;
  line-height: .8;
  color: transparent;
  -webkit-text-stroke: 2px var(--amber);
  text-stroke: 2px var(--amber);
  opacity: .9;
}
@media (max-width: 640px) {
  .num-row { grid-template-columns: minmax(0, 1fr); }
  .num-big { font-size: 3.4rem; }
}

/* ===== Cards grid ===== */
.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid > * { min-width: 0; }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid { grid-template-columns: minmax(0, 1fr); } }

.card {
  background: var(--cream);
  border: 1px solid var(--cream-soft);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-6px); }
.card-media { aspect-ratio: 4/3; overflow: hidden; position: relative; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.08); }
.card-body { padding: 1.1rem 1.2rem 1.3rem; }
.card-tag {
  font-family: var(--font-mono);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--olive);
}
.card h3 { font-size: 1.15rem; margin: .3rem 0 .4rem; }
.card p { font-size: .92rem; color: var(--steel); margin: 0 0 .8rem; }
.card-foot { display: flex; align-items: center; justify-content: space-between; }
.price { font-family: var(--font-mono); font-weight: 700; font-size: 1.1rem; color: var(--soil); }

/* ===== Reveal ===== */
.reveal { opacity: 1; }
.reveal.js-hidden {
  opacity: 0;
  transform: translateY(24px);
  clip-path: inset(0 0 12% 0);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
  clip-path: inset(0 0 0 0);
  transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1), clip-path .7s cubic-bezier(.2,.7,.3,1);
}
@media (prefers-reduced-motion: reduce) {
  .reveal.js-hidden { opacity: 1; transform: none; clip-path: none; }
  .reveal.in-view { transition: none; }
}

/* ===== Section dividers ===== */
.divider { display: block; width: 100%; height: auto; }
.divider--seam path { fill: none; stroke: var(--amber); stroke-width: 2; }

/* ===== Calculator (signature feature) ===== */
.calc {
  background: var(--cream-soft);
  border: 2px solid var(--steel-dark);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  position: relative;
}
.calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.2rem 1.6rem;
}
@media (max-width: 640px) { .calc-grid { grid-template-columns: minmax(0, 1fr); } }
.field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.field label {
  font-family: var(--font-mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--steel);
}
.field input, .field select, .field textarea {
  font: inherit;
  padding: .7em .8em;
  border: 2px solid var(--steel-light);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--ink);
  min-height: 44px;
  accent-color: var(--amber);
}
.field textarea { min-height: 110px; resize: vertical; }
.calc-result {
  margin-top: 1.4rem;
  padding: 1.2rem 1.4rem;
  background: var(--steel-dark);
  color: var(--cream);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  display: none;
}
.calc-result.show { display: block; }
.calc-result strong { color: var(--amber-light); font-size: 1.3rem; }

/* ===== Product strip (mobile scroll-snap) ===== */
.strip-wrap { overflow-x: hidden; }
@media (max-width: 760px) {
  .strip-wrap .grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding-bottom: .5rem;
  }
  .strip-wrap .grid .card { min-width: 78vw; scroll-snap-align: start; }
}

/* ===== Footer ===== */
.site-footer {
  background: var(--soil);
  color: var(--cream-soft);
  padding: clamp(2.5rem, 6vw, 4rem) 0 2rem;
  border-top: 4px solid var(--amber);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 2rem;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 {
  color: var(--amber-light);
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: .78rem;
  letter-spacing: .1em;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .55rem; }
.footer-grid a { color: var(--cream-soft); font-size: .92rem; }
.footer-grid a:hover { color: var(--amber-light); }
.footer-logo svg.mark { width: 36px; height: 36px; }
.footer-logo svg.word { width: 150px; height: 20px; color: var(--cream); }
.newsletter-form { display: flex; gap: .5rem; margin-top: .8rem; flex-wrap: wrap; }
.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 10em;
  padding: .7em .9em;
  border-radius: var(--radius);
  border: 2px solid var(--steel-light);
  background: var(--steel-dark);
  color: var(--cream);
  min-height: 44px;
}
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(243,236,221,.15);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .6rem;
  font-size: .82rem;
  color: var(--cream-soft);
  opacity: .85;
}
.form-msg { font-size: .85rem; margin-top: .5rem; min-height: 1.2em; }
.form-msg.ok { color: #9fd17a; }
.form-msg.err { color: #e59a7a; }

/* honeypot */
.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ===== Cookie banner ===== */
.cookie-banner {
  position: fixed;
  left: 1rem; right: 1rem; bottom: 1rem;
  z-index: 200;
  max-width: 640px;
  margin: 0 auto;
  background: var(--steel-dark);
  color: var(--cream);
  border: 2px solid var(--amber);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  box-shadow: var(--shadow-card);
  display: none;
}
.cookie-banner.show { display: block; }
.cookie-banner p { margin: 0 0 1rem; font-size: .9rem; color: var(--cream-soft); }
.cookie-actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ===== Generic page sections ===== */
.page-hero {
  background: var(--steel-dark);
  color: var(--cream);
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  border-bottom: 3px solid var(--amber);
}
.page-hero h1 { color: var(--cream); font-size: clamp(2rem, 5vw, 3.2rem); }
.page-hero p { color: var(--cream-soft); max-width: 42em; }

.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.8em; }
.prose ul { padding-left: 1.3em; }

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}
.two-col > * { min-width: 0; }
@media (max-width: 860px) { .two-col { grid-template-columns: minmax(0, 1fr); } }
.two-col img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; box-shadow: var(--shadow-card); }

.badge-seal { width: 110px; height: 110px; }

/* ===== Forms ===== */
.form-stack { display: flex; flex-direction: column; gap: 1.1rem; max-width: 46em; }
.form-stack .field input, .form-stack .field textarea, .form-stack .field select {
  width: 100%;
}
.checkbox-row { display: flex; align-items: flex-start; gap: .6em; font-size: .88rem; }
.checkbox-row input { accent-color: var(--amber); width: 20px; height: 20px; margin-top: .1em; flex-shrink: 0; }

/* ===== Catalog filters ===== */
.filters { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 2rem; }
.filter-btn {
  font-family: var(--font-mono);
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .5em .9em;
  border: 2px solid var(--steel-dark);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  min-height: 40px;
}
.filter-btn[aria-pressed="true"] { background: var(--steel-dark); color: var(--cream); }

/* ===== Product detail ===== */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
@media (max-width: 860px) { .product-detail { grid-template-columns: 1fr; } }
.product-detail img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; box-shadow: var(--shadow-card); }
.qty-row { display: flex; align-items: center; gap: .8rem; margin: 1.2rem 0; }
.qty-row input { width: 4.5em; text-align: center; min-height: 44px; border-radius: var(--radius); border: 2px solid var(--steel-light); font: inherit; }
.dose-note { background: var(--cream-soft); border-left: 3px solid var(--olive); padding: 1rem 1.2rem; border-radius: var(--radius); font-size: .92rem; }

/* ===== Cart table ===== */
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 2rem; }
.cart-table th, .cart-table td { text-align: left; padding: .9rem .6rem; border-bottom: 1px solid var(--cream-soft); font-size: .92rem; }
.cart-table th { font-family: var(--font-mono); text-transform: uppercase; font-size: .72rem; letter-spacing: .08em; color: var(--steel); }
.cart-table img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius); }
.cart-item-name { display: flex; align-items: center; gap: .8rem; }
.remove-btn { background: none; border: none; color: var(--amber); cursor: pointer; font-size: .85rem; text-decoration: underline; min-height: 44px; }
.cart-totals { display: flex; justify-content: flex-end; }
.cart-totals-box { min-width: 260px; }
.cart-totals-row { display: flex; justify-content: space-between; padding: .4rem 0; font-size: .95rem; }
.cart-totals-row.grand { font-weight: 800; font-size: 1.2rem; border-top: 2px solid var(--steel-dark); margin-top: .5rem; padding-top: .8rem; }
.empty-note { padding: 2rem; text-align: center; background: var(--cream-soft); border-radius: var(--radius); }

/* ===== FAQ ===== */
.faq-item { border-bottom: 1px solid var(--cream-soft); padding: 1.1rem 0; }
.faq-item summary {
  font-family: var(--font-display);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform .25s ease; }
.faq-item[open] summary svg { transform: rotate(45deg); }
.faq-item p { color: var(--steel); margin: .7rem 0 0; }

/* ===== 404 ===== */
.notfound { text-align: center; padding: 6rem 0; }
.notfound .num-big { -webkit-text-stroke: 3px var(--amber); font-size: clamp(5rem, 20vw, 11rem); }

/* ===== Icon helper ===== */
.icon { width: 22px; height: 22px; stroke: currentColor; fill: none; }

/* ===== Steel pattern strip ===== */
.pattern-strip { width: 100%; height: 14px; display: block; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
