/* ============================================================
   EraNatury — Zioła · Zdrowie · Natura
   ============================================================ */

:root {
  --cream: #faf7f0;
  --cream-2: #f5f1e6;
  --card: #fffdf8;
  --green-dark: #33523c;
  --green: #4f7150;
  --green-soft: #7ba36f;
  --olive: #8a9a6b;
  --sage: #e8ead9;
  --text: #45483f;
  --muted: #6f7368;
  --line: #e6e0d2;
  --lavender: #f2edf7;
  --lavender-deep: #7c6494;
  --rose: #f9edef;
  --rose-deep: #b0526b;
  --rose-btn: #c97b93;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 2px 10px rgba(80, 84, 60, .07);
  --font-serif: "Lora", Georgia, serif;
  --font-sans: "Nunito Sans", "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
}

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, .logo-text strong {
  font-family: var(--font-serif);
  color: var(--green-dark);
  font-weight: 600;
}

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 11px 24px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(79, 113, 80, .25); }
.btn-primary { background: var(--green); }
.btn-primary:hover { background: #446345; }
.btn-olive { background: var(--olive); }
.btn-olive:hover { background: #7b8b5e; }
.btn-lavender { background: #a08cba; }
.btn-lavender:hover { background: #907da9; }
.btn-rose { background: var(--rose-btn); }
.btn-rose:hover { background: #b96a83; box-shadow: 0 6px 16px rgba(185, 106, 131, .3); }
.btn-icon { width: 17px; height: 17px; }
.btn-icon-stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Ikony SVG (obrys) ---------- */
.icon-btn svg,
.ailment-icon svg,
.feature-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============================================================
   Nagłówek
   ============================================================ */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}
.logo-mark { width: 34px; height: 34px; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text strong { font-size: 22px; letter-spacing: .2px; }
.logo-text small { font-size: 10.5px; color: var(--muted); letter-spacing: .4px; }

.main-nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}
.main-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s ease;
}
.main-nav a:hover { color: var(--green); }
.main-nav a.active {
  color: var(--green-dark);
  border-bottom-color: var(--green);
}

.header-actions { display: flex; align-items: center; gap: 4px; }
.icon-btn {
  background: none;
  border: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background .15s ease, color .15s ease;
}
.icon-btn:hover { background: var(--sage); color: var(--green-dark); }
.icon-btn svg { width: 20px; height: 20px; }

.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--green);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.nav-toggle { display: none; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  background:
    radial-gradient(60% 100% at 85% 40%, #f2eee0 0%, transparent 70%),
    var(--cream);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) 1.35fr;
  align-items: center;
  gap: 20px;
  min-height: 420px;
}

.hero-content { padding: 48px 0; animation: fadeUp .7s ease both; }
.hero-content h1 {
  font-size: clamp(36px, 4.6vw, 54px);
  line-height: 1.12;
  margin-bottom: 20px;
}
.hero-content p {
  max-width: 400px;
  color: var(--muted);
  margin-bottom: 28px;
}

.hero-image { align-self: end; position: relative; }
.hero-image img {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  object-position: right bottom;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* ============================================================
   Zapytaj AI
   ============================================================ */
.ai-section { padding: 6px 0 34px; }

.ai-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 300px 1fr 230px;
  gap: 28px;
  padding: 28px 30px;
  align-items: center;
}

.ai-intro { display: flex; gap: 16px; align-items: flex-start; }
.ai-decor { width: 52px; flex: none; opacity: .9; mix-blend-mode: multiply; }
.ai-intro h2 { font-size: 26px; line-height: 1.15; margin-bottom: 10px; }
.ai-intro p { font-size: 13px; color: var(--muted); max-width: 210px; }

.ai-form { display: flex; gap: 10px; }
.ai-form input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 20px;
  font-family: var(--font-sans);
  font-size: 14px;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.ai-form input:focus { border-color: var(--green-soft); box-shadow: 0 0 0 3px rgba(123, 163, 111, .15); }
.ai-form input::placeholder { color: #a8ab9f; }

.ai-examples {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}
.ai-examples-label { font-size: 13px; color: var(--muted); margin-right: 2px; }
.chip {
  border: 1px solid var(--line);
  background: var(--cream);
  border-radius: 999px;
  padding: 5px 13px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: var(--text);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.chip:hover { background: var(--sage); border-color: var(--green-soft); }

.ai-note {
  display: flex;
  gap: 12px;
  align-items: center;
  border-left: 1px solid var(--line);
  padding-left: 24px;
}
.ai-note-icon {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ai-note-icon svg { width: 24px; height: 24px; }
.ai-note p { font-size: 12.5px; color: var(--muted); }

/* ============================================================
   Kategorie
   ============================================================ */
.categories { padding: 8px 0 30px; }

.categories-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.cat-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 16px 14px 18px;
  text-align: center;
  text-decoration: none;
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(80, 84, 60, .13); }

.cat-card img {
  width: 100%;
  height: 96px;
  object-fit: contain;
  margin-bottom: 12px;
  mix-blend-mode: multiply;
}
.cat-card h3 { font-size: 18px; margin-bottom: 6px; }
.cat-card p { font-size: 12px; color: var(--muted); line-height: 1.45; }

.cat-ziola        { background: #fdfcf8; }
.cat-dolegliwosci { background: #fbf7ee; }
.cat-przepisy     { background: #faf6e7; }
.cat-masci        { background: #f2eef7; }
.cat-zielnik      { background: #eff3ea; }
.cat-sklepik      { background: #f9eef0; }

/* ============================================================
   Popularne zioła
   ============================================================ */
.popular { padding: 26px 0 34px; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
}
.section-head h2 { font-size: 24px; display: flex; align-items: center; gap: 8px; }
.leaf-inline { width: 20px; height: 20px; }

.see-all {
  color: var(--green);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
}
.see-all:hover { text-decoration: underline; }

.herbs-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.herb-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.herb-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(80, 84, 60, .13); }
.herb-card:hover img { transform: scale(1.05); }

.herb-card img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  transition: transform .35s ease;
}
.herb-body { padding: 13px 14px 16px; display: flex; flex-direction: column; flex: 1; }
.herb-body h3 { font-size: 16.5px; margin-bottom: 7px; }
.herb-body p { font-size: 12px; color: var(--muted); line-height: 1.5; margin-bottom: 12px; flex: 1; }

.tag {
  align-self: flex-start;
  border-radius: 999px;
  padding: 3px 11px;
  font-size: 11px;
  font-weight: 700;
  color: #5c604f;
}
.tag-cream  { background: #f0ead6; }
.tag-green  { background: #e2edd6; }
.tag-yellow { background: #f3ecce; }
.tag-olive  { background: #eaefd4; }
.tag-purple { background: #ece4f2; color: #6d5c85; }
.tag-pink   { background: #f8dfe4; color: #9c5468; }

/* ============================================================
   Znajdź zioła na dolegliwość
   ============================================================ */
.ailments { padding: 6px 0 34px; }

.ailments-banner {
  background: #e9ebda;
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 1fr 330px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.ailments-content { padding: 30px 12px 30px 34px; }
.ailments-content h2 { font-size: 26px; margin-bottom: 6px; }
.ailments-content > p { font-size: 13.5px; color: var(--muted); margin-bottom: 24px; }

.ailments-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
}

.ailment {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
  width: 74px;
}

.ailment-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #f7f6ec;
  color: #5c7a52;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(80, 84, 60, .1);
  transition: transform .18s ease, background .18s ease;
}
.ailment-icon svg { width: 26px; height: 26px; }
.ailment:hover .ailment-icon { transform: translateY(-3px) scale(1.06); background: #fff; }

.ailments-image { position: relative; }
.ailments-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 30%);
  mask-image: linear-gradient(to right, transparent 0%, #000 30%);
}

/* ============================================================
   Trzy karty (przepisy / DIY / sklepik)
   ============================================================ */
.feature-cards { padding: 6px 0 30px; }

.feature-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.fcard {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: 26px 26px 24px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.fcard h2 { font-size: 20px; margin-bottom: 5px; white-space: nowrap; }
.fcard-sub { font-size: 12.5px; color: var(--muted); margin-bottom: 18px; }

.fcard-list { list-style: none; position: relative; z-index: 1; }
.fcard-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}
.fcard-list li:last-child { border-bottom: 0; margin-bottom: 6px; }
.fcard-list img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  flex: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
}
.fcard-item-text { display: flex; flex-direction: column; line-height: 1.3; flex: 1; }
.fcard-item-text strong { font-size: 13.5px; color: #3c4438; }
.fcard-item-text small { font-size: 11.5px; color: var(--muted); }

.fcard-arrow {
  color: var(--green);
  text-decoration: none;
  font-size: 17px;
  transition: transform .15s ease;
}
.fcard-arrow:hover { transform: translateX(3px); }

.fcard .btn { position: relative; z-index: 1; margin-top: 4px; font-size: 12.5px; padding: 10px 18px; white-space: nowrap; }

/* Przepisy zielarskie */
.fcard-recipes { background: #f8f5ea; position: relative; }
.fcard-recipes .fcard-list { max-width: 74%; }
.fcard-recipes .fcard-image {
  position: absolute;
  right: -60px;
  bottom: 0;
  height: min(275px, 77%);
  width: auto;
  max-width: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 72%);
  mask-image: linear-gradient(to right, transparent 0%, #000 72%);
}

/* Maści i kremy DIY */
.fcard-diy {
  background: #f3eef7;
  position: relative;
}
.fcard-diy .fcard-list { max-width: 64%; }
.fcard-diy .fcard-item-text strong,
.fcard-diy .fcard-item-text small { white-space: nowrap; }
.fcard-diy .fcard-diy-text { min-width: 0; }
.fcard-diy h2, .fcard-shop h2 { white-space: normal; }
.fcard-diy h2 { color: var(--lavender-deep); }
.fcard-diy .fcard-arrow { color: var(--lavender-deep); }
.fcard-diy .fcard-image {
  position: absolute;
  right: 0;
  bottom: 0;
  height: min(300px, 80%);
  width: auto;
  max-width: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 72%);
  mask-image: linear-gradient(to right, transparent 0%, #000 72%);
}

/* Sklepik zielarski */
.fcard-shop {
  background: var(--rose);
  position: relative;
}
.fcard-shop .fcard-list { max-width: 64%; }
.fcard-shop .fcard-item-text strong { white-space: nowrap; }
.fcard-shop .fcard-shop-text { min-width: 0; }
.fcard-shop h2 { color: var(--rose-deep); }
.fcard-shop .fcard-arrow { color: var(--rose-deep); }
.fcard-shop .fcard-image {
  position: absolute;
  right: 0;
  bottom: 0;
  height: min(300px, 80%);
  width: auto;
  max-width: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 72%);
  mask-image: linear-gradient(to right, transparent 0%, #000 72%);
}
.fcard-list-shop img {
  width: 48px;
  height: 48px;
  background: none;
  box-shadow: none;
  object-fit: contain;
}
.fcard-list-shop li { padding: 8px 0; }

/* ============================================================
   Atuty
   ============================================================ */
.features {
  padding: 26px 0 34px;
  border-top: 1px solid var(--line);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 0 8px;
}
.feature + .feature { border-left: 1px solid var(--line); padding-left: 24px; }

.feature-icon {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #eef0e2;
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-icon svg { width: 26px; height: 26px; }

.feature h3 { font-size: 16px; margin-bottom: 4px; }
.feature p { font-size: 12.5px; color: var(--muted); }

/* ============================================================
   Stopka
   ============================================================ */
.site-footer {
  background: #f3eee1;
  border-top: 1px solid var(--line);
  padding: 40px 0 0;
  position: relative;
  overflow: hidden;
}

.footer-decor {
  position: absolute;
  right: 10px;
  bottom: 0;
  width: 150px;
  opacity: .8;
  pointer-events: none;
  mix-blend-mode: multiply;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.4fr;
  gap: 36px;
  position: relative;
  z-index: 1;
}

.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p { font-size: 13px; color: var(--muted); max-width: 230px; margin-bottom: 18px; }

.socials { display: flex; gap: 10px; }
.social {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s ease;
}
.social:hover { transform: translateY(-2px); }
.social svg { width: 19px; height: 19px; }
.social-fb  { background: #4a6ea9; }
.social-ig  { background: #c04f7c; }
.social-pin { background: #c04444; }
.social-yt  { background: #d33c3c; }

.footer-col { display: flex; flex-direction: column; gap: 7px; }
.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 800;
  color: #3c4438;
  margin-bottom: 6px;
}
.footer-col a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
}
.footer-col a:hover { color: var(--green-dark); text-decoration: underline; }

.footer-newsletter p { font-size: 13px; color: var(--muted); margin-bottom: 12px; max-width: 300px; }

.newsletter-form { display: flex; gap: 8px; }
.newsletter-form input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 18px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  background: #fff;
  color: var(--text);
  outline: none;
  min-width: 0;
}
.newsletter-form input:focus { border-color: var(--green-soft); }
.newsletter-form .btn { padding: 10px 20px; font-size: 13px; }

.newsletter-msg { font-size: 12.5px; color: var(--green); margin-top: 8px; min-height: 1em; }

.footer-bottom {
  margin-top: 34px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  padding-bottom: 16px;
}
.footer-bottom p { font-size: 12px; color: var(--muted); }

/* ============================================================
   Animacje przy przewijaniu
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-content { animation: none; }
}

/* ============================================================
   Responsywność
   ============================================================ */
@media (max-width: 1080px) {
  .categories-grid, .herbs-grid { grid-template-columns: repeat(3, 1fr); }
  .ai-card { grid-template-columns: 1fr; gap: 20px; }
  .ai-note { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 18px; }
  .feature-cards-grid { grid-template-columns: 1fr; max-width: 620px; margin: 0 auto; }
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .feature + .feature { border-left: 0; padding-left: 8px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 12px 24px 18px;
    gap: 4px;
    box-shadow: 0 12px 24px rgba(80, 84, 60, .12);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 9px 0; border-bottom: 0; }
  .nav-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }

  .hero-inner { grid-template-columns: 1fr; min-height: 0; }
  .hero-content { padding: 40px 0 8px; text-align: left; }
  .hero-image { height: 260px; }
  .hero-image img { height: 100%; margin-left: auto; }

  .ailments-banner { grid-template-columns: 1fr; }
  .ailments-image { height: 180px; }
  .ailments-image img { -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 30%); mask-image: linear-gradient(to bottom, transparent 0%, #000 30%); }
  .ailments-content { padding: 26px 24px; }
}

@media (max-width: 620px) {
  .categories-grid, .herbs-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .ai-form { flex-direction: column; }
  .ai-form .btn { justify-content: center; }
  .fcard-recipes .fcard-image, .fcard-diy .fcard-image, .fcard-shop .fcard-image { display: none; }
  .fcard-recipes .fcard-list, .fcard-diy .fcard-list, .fcard-shop .fcard-list { max-width: 100%; }
}

/* ============================================================
   Podstrony — wspólne komponenty (wyszukiwarka, formularze, panele)
   ============================================================ */
.page-title { font-size: 30px; margin: 34px 0 20px; }
.search-page { padding-bottom: 50px; min-height: 55vh; }

.search-page-form { display: flex; gap: 10px; max-width: 640px; margin-bottom: 26px; }
.search-page-form input {
  flex: 1; border: 1px solid var(--line); border-radius: 999px;
  padding: 12px 20px; font-family: var(--font-sans); font-size: 14px;
  background: #fff; color: var(--text); outline: none;
}
.search-page-form input:focus { border-color: var(--green-soft); box-shadow: 0 0 0 3px rgba(123,163,111,.15); }

.alert { border-radius: var(--radius); padding: 14px 18px; font-size: 13.5px; margin-bottom: 22px; }
.alert-warning { background: #f7ecd4; border: 1px solid #e5d3a6; color: #6b5a2e; }
.alert-success { background: #e6efdd; border: 1px solid #c4d8b2; color: #3c5a30; }
.alert-error { background: #f7dfe0; border: 1px solid #e3b8bc; color: #8a3b44; }

.search-hint, .search-empty p { color: var(--muted); font-size: 14.5px; }
.search-empty { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; max-width: 640px; }
.search-empty a { color: var(--green); }

.search-group-title { font-size: 21px; margin: 30px 0 14px; }
.search-ailments { display: flex; flex-wrap: wrap; gap: 12px; }
.search-ailment-card {
  background: var(--sage); border-radius: var(--radius); padding: 14px 18px;
  text-decoration: none; color: var(--text); max-width: 260px;
  display: flex; flex-direction: column; gap: 4px; transition: transform .15s ease;
}
.search-ailment-card:hover { transform: translateY(-2px); }
.search-ailment-card strong { color: var(--green-dark); font-size: 15px; }
.search-ailment-card span { font-size: 12px; color: var(--muted); }

.herbs-grid-search { grid-template-columns: repeat(4, 1fr); }
.herb-card-placeholder {
  height: 110px; display: flex; align-items: center; justify-content: center; background: var(--sage);
}
.herb-card-placeholder svg { width: 34px; height: 34px; fill: none; stroke: var(--green-soft); stroke-width: 1.6; }
.herb-body h3 a { color: inherit; text-decoration: none; }

.search-list { list-style: none; max-width: 640px; }
.search-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  padding: 10px 2px; border-bottom: 1px solid var(--line);
}
.search-list a { color: var(--green-dark); text-decoration: none; font-weight: 700; font-size: 14.5px; }
.search-list a:hover { text-decoration: underline; }
.search-list-meta { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.search-disclaimer { margin-top: 34px; font-size: 12px; color: var(--muted); }

/* Wyniki inline pod panelem „Zapytaj AI" na stronie głównej */
.ai-results { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 4px; }
.ai-results:empty { display: none; }
.ai-results-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; }
.ai-results h4 { font-family: var(--font-sans); font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin: 8px 0 4px; }
.ai-results a { color: var(--green-dark); font-size: 13.5px; text-decoration: none; display: block; padding: 3px 0; }
.ai-results a:hover { text-decoration: underline; }
.ai-results .ai-results-more { color: var(--green); font-weight: 700; margin-top: 8px; display: inline-block; }
.ai-results .ai-results-empty { color: var(--muted); font-size: 13.5px; }

@media (max-width: 860px) {
  .herbs-grid-search { grid-template-columns: repeat(2, 1fr); }
  .ai-results-columns { grid-template-columns: 1fr; }
}

/* ============================================================
   Formularze, panele, tabele — wspólne dla auth/konta/sklepu/admina
   ============================================================ */
.flash-container { padding-top: 18px; }
.header-admin-link {
  font-size: 12px; font-weight: 800; color: var(--green); text-decoration: none;
  border: 1px solid var(--green-soft); border-radius: 999px; padding: 4px 12px; margin-left: 4px;
}
.header-admin-link:hover { background: var(--sage); }

.form-page { padding: 40px 0 60px; min-height: 55vh; }
.form-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 30px 32px; max-width: 460px;
}
.form-card-wide { max-width: 720px; }
.form-card h1, .form-card h2 { font-size: 24px; margin-bottom: 18px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: #3c4438; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px;
  font-family: var(--font-sans); font-size: 14px; background: #fff; color: var(--text); outline: none;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--green-soft); box-shadow: 0 0 0 3px rgba(123,163,111,.15);
}
.field textarea { min-height: 110px; resize: vertical; }
.field-error { color: #b0526b; font-size: 12.5px; margin-top: 5px; }
.field-check { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--muted); }
.field-check input { width: auto; }
.form-footer-links { margin-top: 16px; font-size: 13px; color: var(--muted); }
.form-footer-links a { color: var(--green); }

.panel-layout { display: grid; grid-template-columns: 220px 1fr; gap: 28px; padding: 36px 0 60px; min-height: 60vh; }
.panel-nav { display: flex; flex-direction: column; gap: 4px; align-self: start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.panel-nav a {
  padding: 9px 14px; border-radius: 10px; text-decoration: none;
  color: var(--text); font-size: 13.5px; font-weight: 600;
}
.panel-nav a:hover { background: var(--sage); }
.panel-nav a.active { background: var(--green); color: #fff; }
.panel-nav .panel-nav-sep { border-top: 1px solid var(--line); margin: 8px 4px; }
.panel-content h1 { font-size: 26px; margin-bottom: 20px; }
.panel-content h2 { font-size: 19px; margin: 26px 0 12px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.panel-head h1 { margin-bottom: 0; }

.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.data-table th, .data-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.data-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); background: var(--cream-2); }
.data-table tr:last-child td { border-bottom: 0; }
.data-table .actions { white-space: nowrap; }
.data-table .actions > * { display: inline-block; vertical-align: middle; }
.data-table .actions > * + * { margin-left: 8px; }
.table-thumb { display: block; width: 48px; height: 48px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: var(--cream-2); }

.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-outline { background: transparent; color: var(--green); border: 1px solid var(--green-soft); }
.btn-outline:hover { background: var(--sage); box-shadow: none; }
.btn-danger { background: #b0526b; }
.btn-danger:hover { background: #9c4159; }

.status-badge { border-radius: 999px; padding: 3px 12px; font-size: 11.5px; font-weight: 700; display: inline-block; }
.status-nowe { background: #f3ecce; color: #7a6a2f; }
.status-oplacone { background: #e2edd6; color: #3c5a30; }
.status-wyslane { background: #ddeaf2; color: #33566b; }
.status-zrealizowane { background: #e6efdd; color: #3c5a30; }
.status-anulowane { background: #f7dfe0; color: #8a3b44; }

.pagination { display: flex; gap: 6px; margin-top: 20px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--card);
  color: var(--text); text-decoration: none; font-size: 13px;
}
.pagination .active span, .pagination span[aria-current] { background: var(--green); color: #fff; border-color: var(--green); }
.pagination a:hover { background: var(--sage); }

/* ── Sklepik ── */
.shop-layout { display: grid; grid-template-columns: 200px 1fr; gap: 28px; padding: 8px 0 50px; }
.shop-filters { align-self: start; display: flex; flex-direction: column; gap: 4px; }
.shop-filters a { padding: 8px 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-size: 13.5px; }
.shop-filters a.active { background: var(--green); color: #fff; }
.shop-filters a:hover:not(.active) { background: var(--sage); }

.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.product-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px; display: flex; flex-direction: column; gap: 8px;
  transition: transform .16s ease, box-shadow .16s ease;
}
.product-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(80,84,60,.13); }
.product-card-img {
  height: 120px; border-radius: 12px; background: var(--sage);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.product-card-img img { width: 100%; height: 100%; object-fit: cover; }
.product-card-img svg { width: 36px; height: 36px; fill: none; stroke: var(--green-soft); stroke-width: 1.6; }
.product-card h3 { font-size: 16px; }
.product-card h3 a { color: inherit; text-decoration: none; }
.product-card .product-cat { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.product-card .product-price { font-weight: 800; color: var(--green-dark); font-size: 15.5px; margin-top: auto; }
.product-card form { margin-top: 6px; }

.product-detail { display: grid; grid-template-columns: 340px 1fr; gap: 36px; padding: 36px 0 50px; }
.product-detail-img { border-radius: var(--radius-lg); background: var(--sage); min-height: 280px;
  display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-detail-img img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-img svg { width: 54px; height: 54px; fill: none; stroke: var(--green-soft); stroke-width: 1.4; }
.product-detail h1 { font-size: 28px; margin-bottom: 8px; }
.product-detail .product-price { font-size: 24px; color: var(--green-dark); font-weight: 800; margin: 14px 0; }
.product-detail .stock-info { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.qty-row { display: flex; gap: 10px; align-items: center; margin: 10px 0 18px; }
.qty-row input { width: 80px; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font-size: 14px; }

.cart-summary { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; max-width: 380px; margin-top: 20px; }
.cart-summary .row { display: flex; justify-content: space-between; font-size: 14px; padding: 5px 0; }
.cart-summary .row.total { font-weight: 800; font-size: 16px; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }

/* ── Szczegóły zioła/przepisu ── */
.detail-page { padding: 36px 0 56px; }
.detail-header { display: flex; gap: 28px; align-items: flex-start; margin-bottom: 26px; flex-wrap: wrap; }
.detail-header img { width: 260px; border-radius: var(--radius-lg); }
.detail-header .detail-title h1 { font-size: 32px; margin-bottom: 4px; }
.detail-header .latin { font-style: italic; color: var(--muted); font-size: 14.5px; margin-bottom: 12px; }
.detail-section { max-width: 760px; margin-bottom: 22px; }
.detail-section h2 { font-size: 20px; margin-bottom: 8px; }
.detail-section p, .detail-section li { font-size: 14.5px; color: var(--text); line-height: 1.7; }
.detail-section ul, .detail-section ol { padding-left: 22px; }
.contra-box { background: #f7ecd4; border: 1px solid #e5d3a6; border-radius: var(--radius); padding: 14px 18px; font-size: 13.5px; color: #6b5a2e; max-width: 760px; }
.related-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.related-chips a { background: var(--sage); border-radius: 999px; padding: 6px 14px; font-size: 12.5px; color: var(--green-dark); text-decoration: none; font-weight: 700; }
.related-chips a:hover { background: #dde0c8; }

.grid-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-bottom: 10px; }

.comments-section { max-width: 760px; margin-top: 34px; }
.comment { border-bottom: 1px solid var(--line); padding: 14px 0; }
.comment .comment-meta { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.comment p { font-size: 14px; }

@media (max-width: 900px) {
  .panel-layout, .shop-layout, .product-detail { grid-template-columns: 1fr; }
  .products-grid, .grid-list { grid-template-columns: repeat(2, 1fr); }
  .panel-nav { flex-direction: row; flex-wrap: wrap; }
  .panel-nav .panel-nav-sep { display: none; }
}
@media (max-width: 560px) {
  .products-grid, .grid-list { grid-template-columns: 1fr; }
}

/* ── Pulpit admina: kafelki statystyk ── */
.admin-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 10px; }
.admin-stat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 14px; display: flex; flex-direction: column; gap: 2px; text-align: center;
}
.admin-stat-num { font-family: var(--font-serif); font-size: 26px; font-weight: 700; color: var(--green-dark); }
.admin-stat-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.admin-filter { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.admin-filter select, .admin-filter input {
  border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px;
  font-family: var(--font-sans); font-size: 13.5px; background: #fff; color: var(--text);
}
@media (max-width: 900px) { .admin-stats { grid-template-columns: repeat(3, 1fr); } }

/* ── Moje miejsca ───────────────────────────────────────────── */
.mode-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.mode-switch a { padding: 7px 16px; font-size: 13.5px; color: var(--text); background: var(--card); text-decoration: none; }
.mode-switch a + a { border-left: 1px solid var(--line); }
.mode-switch a.active { background: var(--green); color: #fff; }
.spots-map { height: 460px; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.spot-picker { height: 280px; border-radius: 10px; border: 1px solid var(--line); overflow: hidden; margin-top: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-hint { font-size: 12.5px; color: var(--muted); margin: 4px 0 0; }
.spot-form-title { font-size: 18px; margin: 0 0 12px; }
.spot-form .field-check { display: block; }
.spot-form .field-check label { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.spot-form .field-check input { width: auto; margin: 0; }
.map-attribution, .map-fallback { font-size: 12.5px; color: var(--muted); margin: 8px 0 0; }
.map-attribution a, .map-fallback a { color: var(--green); }
.spot-popup h4 { margin: 0 0 4px; font-size: 14px; }
.spot-popup p { margin: 0; font-size: 12.5px; color: var(--muted); }
.spot-popup .spot-popup-public { color: var(--green); font-weight: 600; }
@media (max-width: 700px) { .field-row { grid-template-columns: 1fr; } }
.spot-search { position: relative; margin-bottom: 8px; }
.spot-search input { width: 100%; }
.spot-search-results { position: absolute; z-index: 5; left: 0; right: 0; margin: 4px 0 0; padding: 0;
  list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.spot-search-results li { padding: 9px 12px; font-size: 13px; cursor: pointer; }
.spot-search-results li:hover { background: var(--sage); }

/* ===== Co zbierać w tym miesiącu ===== */
.harvest-now { padding: 26px 0 10px; }
.harvest-badge {
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--green-soft);
  border: 1px solid var(--green-soft);
  border-radius: 999px;
  padding: 4px 12px;
  white-space: nowrap;
}
.harvest-lead {
  margin: -8px 0 18px;
  color: #6b6f5e;
  font-size: 15px;
}
.harvest-raw {
  font-size: 13px;
  line-height: 1.45;
  color: #6b6f5e;
}
