:root {
  --primary: #2D5F2D;
  --primary-dark: #1E4A1E;
  --primary-light: #3A7A3A;
  --secondary: #C4985A;
  --secondary-light: #D4AE78;
  --accent: #A8C5A0;
  --accent-light: #D4E8D0;
  --background: #FAFAF7;
  --surface: #FFFFFF;
  --surface-warm: #F5F0E8;
  --border: #D4D9D0;
  --border-light: #E8ECE5;
  --text-primary: #1A2E1A;
  --text-secondary: #4A5E4A;
  --text-muted: #7A8E7A;
  --error: #C53030;
  --success: #2F855A;
  --warning: #C05621;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 999px;

  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;

  --shadow-soft: 0 4px 18px rgba(26,46,26,.08);
  --max-width: 1280px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--background);
  color: var(--text-primary);
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(var(--max-width), calc(100% - 2 * var(--spacing-xl)));
  margin: 0 auto;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.93);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
}
.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: var(--primary);
}
.brand-name {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
}
.brand-sub {
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
}
.nav-links { display: flex; align-items: center; gap: 18px; }
.nav-link {
  font-size: 15px;
  color: var(--text-secondary);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
}
.nav-link:hover { background: var(--surface-warm); color: var(--text-primary); }
.nav-link.active { color: var(--primary); font-weight: 600; }

.page-hero {
  padding: 56px 0 28px;
  background:
    radial-gradient(1200px 400px at 95% -30%, rgba(196,152,90,.28), transparent 60%),
    radial-gradient(900px 380px at 0% 0%, rgba(168,197,160,.28), transparent 65%);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--primary-dark);
  background: rgba(168,197,160,.28);
  border: 1px solid rgba(45,95,45,.16);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
}
.hero-title {
  margin: 18px 0 10px;
  font-family: var(--font-heading);
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.08;
  color: var(--primary);
}
.hero-subtitle {
  margin: 0;
  color: var(--text-secondary);
  font-size: clamp(16px, 2vw, 19px);
  max-width: 840px;
}

.controls-panel {
  margin-top: 28px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--shadow-soft);
}
.search-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.search-field {
  flex: 1 1 320px;
  position: relative;
}
.search-input {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.search-input:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(58,122,58,.15);
}
.filter-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}
.btn-clear {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  background: var(--surface);
  color: var(--text-secondary);
  font-weight: 600;
  cursor: pointer;
}
.btn-clear:hover { border-color: var(--primary-light); color: var(--primary); }

.filters-wrap {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-pill {
  border: 1px solid var(--border-light);
  background: var(--surface-warm);
  color: var(--text-secondary);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 12px;
  cursor: pointer;
  transition: transform .15s ease, border-color .2s ease, background .2s ease;
}
.filter-pill:hover { transform: translateY(-1px); border-color: var(--primary-light); }
.filter-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.catalog-section {
  padding: 28px 0 72px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}
.tincture-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .18s ease, box-shadow .2s ease;
}
.tincture-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(26,46,26,.13);
}
.card-image {
  height: 180px;
  background:
    radial-gradient(380px 120px at 18% -20%, rgba(255,255,255,.45), transparent 65%),
    linear-gradient(145deg, var(--accent-light), rgba(168,197,160,.55));
  border-bottom: 1px solid var(--border-light);
  display: grid;
  place-items: center;
}
.card-image-badge {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(30,74,30,.24);
  background: rgba(255,255,255,.55);
  color: var(--primary-dark);
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
}
.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 250px;
}
.card-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.24;
}
.card-latin {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  font-style: italic;
}
.card-summary {
  margin: 2px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
  flex: 1;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.tag-pill {
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid transparent;
  white-space: nowrap;
}

.card-actions {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: #fff;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
}
.card-link:hover { background: var(--primary-dark); }
.card-meta { color: var(--text-muted); font-size: 12px; }

.empty-state {
  display: none;
  margin-top: 14px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 28px;
  text-align: center;
  color: var(--text-secondary);
}

.detail-main {
  padding: 36px 0 72px;
}
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 14px;
}
.breadcrumbs a { color: var(--primary); font-weight: 600; }
.detail-header {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}
.detail-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(30px, 3.5vw, 46px);
  line-height: 1.12;
  color: var(--primary);
}
.detail-latin {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-style: italic;
  font-size: 16px;
}
.detail-meta-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px;
}
.meta-box {
  background: var(--surface-warm);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 14px;
}
.meta-k {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 4px;
  font-weight: 700;
}
.meta-v { color: var(--text-primary); font-size: 14px; line-height: 1.45; }

.detail-sections {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.section-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.section-title {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-size: 26px;
  color: var(--text-primary);
}
.section-card p { margin: 0; color: var(--text-secondary); font-size: 15px; }
.section-card ul { margin: 0; padding-left: 18px; color: var(--text-secondary); }
.section-card li { margin-bottom: 8px; }

.related {
  margin-top: 24px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.related h3 {
  margin: 0 0 12px;
  font-family: var(--font-heading);
  font-size: 24px;
  color: var(--text-primary);
}
.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.related-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px;
  background: var(--surface-warm);
}
.related-item-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 4px;
}
.related-item-latin {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
  font-style: italic;
}

.site-footer {
  background: var(--primary-dark);
  color: #FFFFFFCC;
  margin-top: 40px;
}
.footer-wrap {
  padding: 28px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 16px;
  font-size: 13px;
}
.footer-title { color: #fff; font-weight: 700; }

@media (max-width: 920px) {
  .container { width: min(var(--max-width), calc(100% - 2 * var(--spacing-lg))); }
  .nav-links { gap: 10px; }
  .nav-link { font-size: 14px; padding: 6px 8px; }
  .detail-meta-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .nav-wrap { min-height: 64px; }
  .brand-sub { display: none; }
  .nav-links { font-size: 13px; }
  .hero-title { font-size: clamp(30px, 10vw, 40px); }
  .controls-panel { padding: 14px; border-radius: var(--radius-lg); }
  .grid { grid-template-columns: 1fr; gap: 18px; }
  .card-body { min-height: initial; }
}
.tag-digestiv{background:#FFF2DE;color:#8A5A21;border-color:#F0D3A8;}
.tag-respirator{background:#E5F2FF;color:#245B8A;border-color:#B9D7F2;}
.tag-imunitate{background:#E9F7EA;color:#2F6F43;border-color:#BEE3C1;}
.tag-circulator{background:#FDEBEC;color:#8C2A36;border-color:#F0B8BF;}
.tag-osteoarticular{background:#F4EFFF;color:#5A3D91;border-color:#D7C6F3;}
.tag-urinar{background:#E9F6F3;color:#276E63;border-color:#BEE3DB;}
.tag-nervos{background:#F1EEFF;color:#57407D;border-color:#CBC0EC;}
.tag-endocrin{background:#FFF0F7;color:#8D3D69;border-color:#F2C0DA;}
.tag-metabolic{background:#EAF7F0;color:#2A6A48;border-color:#BEE3CF;}
.tag-dermatologic{background:#FFF3E8;color:#935A2F;border-color:#F2CEAE;}
.tag-genital-feminin{background:#FDF0F4;color:#8A3B5D;border-color:#EFC4D3;}
.tag-genital-masculin{background:#EEF4FF;color:#304F88;border-color:#C8D7F2;}
.tag-hematologic{background:#FCEEEF;color:#8A2A38;border-color:#F0BEC5;}
.tag-orl{background:#ECF5FF;color:#2D5D8D;border-color:#C4DBF3;}
.tag-alergii{background:#FFF8E8;color:#8A6A2A;border-color:#F3DFB1;}
.tag-senzorial{background:#EAF7FF;color:#2C5E80;border-color:#BFDDF0;}
.tag-detoxifiere{background:#EEF8EA;color:#3D6F2D;border-color:#CBE6BF;}
.tag-tonic-general{background:#F4F1EA;color:#6D5A38;border-color:#DDD1BB;}
.tag-hepatic{background:#F0F8E8;color:#4A6C2E;border-color:#CFE4BA;}
