/* ========================================
   DR. HERBARIUS — Digital Menu
   Mobile-first styles
   ======================================== */

:root {
  /* Category colors */
  --cat-vitamins: #4CAF50;
  --cat-vitamins-light: #E8F5E9;
  --cat-vitamins-mid: #A5D6A7;
  --cat-mind: #F5A623;
  --cat-mind-light: #FFF8E1;
  --cat-mind-mid: #FFE082;
  --cat-sport: #2196F3;
  --cat-sport-light: #E3F2FD;
  --cat-sport-mid: #90CAF9;
  --cat-elixirs: #9C6B9F;
  --cat-elixirs-light: #F3E5F5;
  --cat-elixirs-mid: #CE93D8;
  --cat-herbal: #7E57C2;
  --cat-herbal-light: #EDE7F6;
  --cat-herbal-mid: #B39DDB;
  --cat-detox: #A1887F;
  --cat-detox-light: #EFEBE9;
  --cat-detox-mid: #BCAAA4;
  --cat-oxygen: #26A69A;
  --cat-oxygen-light: #E0F2F1;
  --cat-oxygen-mid: #80CBC4;
  --cat-boosters: #607D5B;
  --cat-boosters-light: #E8F0E6;
  --cat-boosters-mid: #A5C4A0;

  /* Base */
  --bg: #FAFAF5;
  --bg-card: #FFFFFF;
  --text-primary: #265B2D;
  --text-secondary: #5A7A5E;
  --text-tertiary: #8FAD92;
  --border: #E8E8E0;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.1);

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
}

/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ========================================
   APP SHELL
   ======================================== */
#app {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--bg);
  position: relative;
  padding-bottom: 72px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(250, 250, 245, 0.92);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.header-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.header-title {
  font-size: 18px;
  font-weight: 700;
  color: #2E4A1E;
  letter-spacing: -0.3px;
}

.header-actions {
  display: flex;
  gap: var(--space-sm);
}

.header-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: background 0.2s;
}

.header-btn:active {
  background: var(--border);
}

.header-btn svg {
  width: 22px;
  height: 22px;
}

/* Back header */
.header-back {
  justify-content: flex-start;
  gap: var(--space-sm);
}

.header-back .header-title {
  font-size: 16px;
  font-weight: 600;
}

.back-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.back-btn svg {
  width: 20px;
  height: 20px;
}

/* Bottom Nav */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  padding: var(--space-sm) 0;
  padding-bottom: max(var(--space-sm), env(safe-area-inset-bottom));
  z-index: 100;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: var(--space-xs) var(--space-md);
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text-tertiary);
  font-size: 11px;
  font-weight: 500;
  transition: color 0.2s;
  text-decoration: none;
}

.nav-item.active {
  color: #2E4A1E;
}

.nav-item svg {
  width: 24px;
  height: 24px;
}

/* ========================================
   SEARCH
   ======================================== */
.search-container {
  padding: 0 var(--space-lg);
  margin-bottom: var(--space-lg);
}

.search-box {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-box:focus-within {
  border-color: #4CAF50;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.search-box svg {
  width: 20px;
  height: 20px;
  color: var(--text-tertiary);
  flex-shrink: 0;
}

.search-box input {
  border: none;
  outline: none;
  background: none;
  font-size: 15px;
  color: var(--text-primary);
  width: 100%;
  font-family: inherit;
}

.search-box input::placeholder {
  color: var(--text-tertiary);
}

.search-clear {
  display: none;
  border: none;
  background: var(--border);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
  color: var(--text-secondary);
}

.search-clear.visible {
  display: flex;
}

/* Search results */
.search-results {
  padding: 0 var(--space-lg);
}

.search-results-title {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ========================================
   HOME PAGE
   ======================================== */
.page-title {
  padding: var(--space-lg) var(--space-lg) var(--space-sm);
}

.page-title h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
  color: var(--text-primary);
}

.page-title p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-top: var(--space-xs);
}

/* Category Cards */
.categories-grid {
  padding: var(--space-md) var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.category-card {
  display: flex;
  align-items: center;
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  min-height: 100px;
}

.category-card:active {
  transform: scale(0.98);
}

.category-card::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  opacity: 0.15;
  background: white;
}

.category-card-content {
  flex: 1;
  z-index: 1;
}

.category-card-subtitle {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.7;
  margin-bottom: 2px;
}

.category-card-name {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.category-card-name-ru {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.8;
  margin-top: 1px;
}

.category-card-desc {
  font-size: 13px;
  opacity: 0.75;
  margin-top: var(--space-xs);
  line-height: 1.2;
}

.category-card-count {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.6;
  margin-top: var(--space-sm);
}

.category-card-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
}

.category-card-arrow svg {
  width: 20px;
  height: 20px;
}

/* ========================================
   CATEGORY PAGE
   ======================================== */
.category-page {
  min-height: 100vh;
}

.category-header {
  padding: var(--space-lg) var(--space-lg) var(--space-md);
}

.category-header-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2px;
}

.category-header-en {
  font-size: 15px;
  font-weight: 400;
  opacity: 0.6;
  margin-bottom: var(--space-sm);
}

.category-header-desc {
  font-size: 14px;
  opacity: 0.85;
  line-height: 1.5;
}

/* Drink list */
.drinks-list {
  padding: var(--space-md) var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.drink-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  display: flex;
  gap: var(--space-md);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.drink-card:active {
  transform: scale(0.98);
  box-shadow: var(--shadow-md);
}

.drink-card-image {
  width: 90px;
  align-self: stretch;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drink-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.drink-card-image .placeholder {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.drink-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.drink-card-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.2px;
  line-height: 1.2;
}

.drink-card-name-ru {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.drink-card-function {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.3;
  margin-top: var(--space-xs);
}

.drink-card-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: var(--space-sm);
}

.drink-card-temps {
  display: flex;
  gap: 6px;
  margin-top: var(--space-sm);
  flex-wrap: wrap;
  align-items: center;
}

.temp-card-img {
  height: 36px;
  width: auto;
  display: block;
}

.temp-badge {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.temp-badge svg {
  flex-shrink: 0;
}

.temp-hot {
  background: #FAF3EB;
  color: #8B5E3C;
}

.temp-warm {
  background: #F3F8F4;
  color: #3D6B42;
}

.temp-cold {
  background: #F1F9FE;
  color: #2B6B8A;
}

.temp-vol {
  font-weight: 700;
  margin-left: 2px;
}

.temp-badge img {
  flex-shrink: 0;
}

/* Favorite button */
.fav-btn {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
  z-index: 2;
}

.fav-btn:active {
  transform: scale(1.2);
}

.fav-btn svg {
  width: 20px;
  height: 20px;
  color: var(--text-tertiary);
  transition: color 0.2s, fill 0.2s;
}

.fav-btn.active svg {
  color: #E53935;
  fill: #E53935;
}

/* ========================================
   DRINK DETAIL PAGE
   ======================================== */

/* Hero */
.drink-hero-wrap {
  position: relative;
}

.drink-hero {
  position: relative;
  padding: var(--space-lg) var(--space-lg) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: visible;
}

.drink-hero--no-image {
  padding-bottom: 70px;
}

.drink-hero-fav {
  position: absolute;
  top: var(--space-md);
  right: var(--space-lg);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(6px);
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

.drink-hero-fav svg {
  width: 20px;
  height: 20px;
  color: var(--text-tertiary);
}

.drink-hero-fav.active svg {
  color: #E53935;
  fill: #E53935;
}

.drink-hero-image {
  width: 260px;
  height: 320px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.drink-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.drink-hero-image .placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
}

/* Info card overlapping photo from below */
.drink-info-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  margin: -28px var(--space-lg) var(--space-md);
  padding: var(--space-lg);
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

.drink-info-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
}

.drink-hero-cat-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
}

.drink-hero-price-tag {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1;
}

.drink-info-card-name {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.05;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.drink-info-card-name-ru {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.drink-info-card-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary);
  margin: 0;
}

.drink-function-badge {
  display: inline-block;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  margin-top: var(--space-md);
}

/* Stats bar */
.stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  margin: 0 var(--space-lg) var(--space-md);
  padding: var(--space-md) 0;
  box-shadow: var(--shadow-sm);
}

.stats-bar-item {
  flex: 1;
  text-align: center;
  position: relative;
}

.stats-bar-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--border);
}

.stats-bar-label {
  font-size: 10px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.stats-bar-value {
  font-size: 16px;
  font-weight: 700;
}

/* Content sections */
.drink-content {
  padding: 0 var(--space-lg);
}

.drink-section {
  margin-bottom: var(--space-lg);
}

.section-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.section-card-title {
  font-size: 17px;
  font-weight: 700;
  text-align: left;
  margin-bottom: var(--space-md);
  letter-spacing: -0.3px;
  color: var(--text-primary);
}

.drink-section-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  letter-spacing: -0.2px;
}

.drink-section-title .section-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

/* Description */
.drink-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Phyto tags */
.phyto-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.phyto-tag {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  background: var(--bg);
  border: 1px solid var(--border);
}

/* Ingredient list (for phyto with effects) */
.ingredient-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.ingredient-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--bg);
  border-radius: var(--radius-sm);
}

.ingredient-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}

.ingredient-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.ingredient-effect {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Composition grid (fruit + nutra side by side) */
.composition-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.composition-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
}

.composition-card-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.composition-card-list {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Fruit base with amounts */
.fruit-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.fruit-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  background: var(--bg);
  border-radius: var(--radius-sm);
}

.fruit-info {
  flex: 1;
}

.fruit-name {
  font-size: 13px;
  font-weight: 600;
}

.fruit-effect {
  font-size: 11px;
  color: var(--text-secondary);
}

.fruit-amount {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* Active components badges */
.components-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.component-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  background: #E8F5E9;
  color: #2E7D32;
  border: 1px solid #C8E6C9;
}

/* Nutraceutical grid */
.nutra-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.nutra-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--space-md);
  background: var(--bg);
  border-radius: var(--radius-sm);
}

.nutra-amount {
  font-size: 14px;
  font-weight: 700;
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  align-self: flex-start;
}

.nutra-name {
  font-size: 13px;
  font-weight: 600;
}

.nutra-effect {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.3;
}

/* Timeline compact */
.timeline-compact {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.tl-item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.tl-time {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
  width: 100px;
  min-width: 100px;
  text-align: center;
}

.tl-content {
  flex: 1;
}

.tl-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.tl-text {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.tl-feeling {
  font-size: 12px;
  font-style: italic;
  margin-top: 4px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  line-height: 1.3;
}

.timeline-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.timeline-effect {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.timeline-feeling {
  font-size: 13px;
  font-style: italic;
  margin-top: var(--space-xs);
  line-height: 1.4;
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
}

/* When useful / lifestyle */
.use-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.use-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: 14px;
  line-height: 1.5;
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.use-icon {
  flex-shrink: 0;
  font-size: 16px;
  margin-top: 1px;
}

/* Synergy block */
.synergy-block {
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  font-size: 14px;
  line-height: 1.6;
  font-style: italic;
  border: 2px solid;
  background: var(--bg-card);
  position: relative;
}

.synergy-block::before {
  content: '\201C';
  position: absolute;
  top: 8px;
  left: 12px;
  font-size: 36px;
  font-style: normal;
  line-height: 1;
  opacity: 0.2;
}

/* Sensor profile — progress bars */
.sensor-bars {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.sensor-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.sensor-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-width: 70px;
  color: var(--text-secondary);
}

.sensor-bar {
  flex: 1;
  height: 8px;
  background: var(--bg);
  border-radius: 4px;
  overflow: hidden;
}

.sensor-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
}

.sensor-pct {
  font-size: 12px;
  font-weight: 700;
  min-width: 36px;
  text-align: right;
}

/* Sensor text fallback */
.sensor-block {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 1.7;
  background: var(--bg-card);
  border-left: 4px solid;
  box-shadow: var(--shadow-sm);
}

/* Recommendation */
.recommendation-block {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
}

.recommendation-icon {
  font-size: 20px;
  flex-shrink: 0;
}

/* Doctor note */
.doctor-note {
  padding: var(--space-xl) var(--space-lg);
  border-radius: var(--radius-xl);
  background: #265B2D;
  color: white;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.doctor-note::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
}

.doctor-note-text {
  font-size: 14px;
  font-style: italic;
  line-height: 1.5;
  font-weight: 400;
  margin-bottom: var(--space-md);
}

.doctor-note-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.5;
}

/* Simple words block */
.simple-words {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

.simple-words-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.simple-words-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.simple-words-item {
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  line-height: 1.4;
}

/* CTA button */
.drink-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  width: 100%;
  padding: 16px;
  border-radius: var(--radius-lg);
  border: none;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  margin: var(--space-lg) 0 var(--space-lg);
  font-family: inherit;
  color: white;
  box-shadow: var(--shadow-md);
}

.drink-cta-btn:active {
  transform: scale(0.98);
}

.drink-cta-btn.active {
  background: #E53935 !important;
}

.drink-cta-btn svg {
  width: 20px;
  height: 20px;
  fill: white;
  stroke: white;
}

/* Bottom info block */
.drink-bottom-info {
  margin-top: var(--space-lg);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border);
}

/* Info lines: icon + text */
.drink-info-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.drink-info-sep {
  width: 1px;
  height: 16px;
  background: var(--border);
  margin: 0 4px;
}

.drink-info-icon {
  height: 24px;
  width: auto;
}

.drink-info-when {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drink-info-kcal {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 13px;
}

/* Temp cards */
.drink-temps {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: var(--space-xl);
  margin-bottom: 4px;
}

.drink-temps .temp-card-img {
  height: 48px;
  width: auto;
}

/* Price */
.drink-price-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.drink-temp-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.drink-temp-price-row .drink-temps {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
}

.drink-price-value {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  white-space: nowrap;
}


/* Function label above badge */
.drink-function-block {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
}

.drink-function-text {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* ========================================
   BOOSTERS SECTION
   ======================================== */
.boosters-section {
  padding: 0;
}

.boosters-section-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  padding: var(--space-md) var(--space-lg) var(--space-sm);
  margin-bottom: var(--space-sm);
}

.boosters-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: 0 var(--space-lg) var(--space-lg);
}

/* On drink pages, boosters is inside .drink-content which already has side padding */
.drink-content .boosters-section {
  margin-top: var(--space-xl);
  border-top: 1px solid #e8ede9;
  padding-top: var(--space-lg);
}
.drink-content .boosters-section-title {
  padding-left: 0;
  padding-right: 0;
}
.drink-content .boosters-grid {
  padding-left: 0;
  padding-right: 0;
}

/* Mono Herbs */
.mono-herbs-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mono-herb-card {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.mono-herb-header {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.mono-herb-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.mono-herb-part {
  font-size: 12px;
  color: var(--text-secondary);
}

.mono-herb-weight {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-left: auto;
}

.mono-herb-source {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
  line-height: 1.4;
}

.mono-herb-effect {
  font-size: 13px;
  font-weight: 500;
  margin-top: 4px;
}

.booster-card {
  border-radius: var(--radius-md);
  padding: var(--space-md) 0 var(--space-md) var(--space-lg);
  display: flex;
  flex-direction: row;
  align-items: stretch;
  overflow: hidden;
  min-height: 80px;
}

.booster-card-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-right: var(--space-sm);
}

.booster-img {
  width: 130px;
  height: 110px;
  object-fit: cover;
  object-position: left center;
  flex-shrink: 0;
  align-self: stretch;
}

.booster-name {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
}

.booster-name-ru {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
  line-height: 1.3;
}

.booster-function {
  font-size: 14px;
  font-weight: 400;
  opacity: 0.75;
  margin-top: 8px;
  line-height: 1.3;
}

.booster-ingredients {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: var(--space-xs);
}

.booster-price {
  font-size: 15px;
  font-weight: 700;
  margin-top: var(--space-sm);
}

/* ========================================
   FAVORITES PAGE
   ======================================== */
.favorites-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl) var(--space-lg);
  text-align: center;
}

.favorites-empty-icon {
  font-size: 48px;
  margin-bottom: var(--space-md);
  opacity: 0.5;
}

.favorites-empty h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.favorites-empty p {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 260px;
}

/* ========================================
   TRANSITIONS
   ======================================== */
.page-enter {
  animation: pageEnter 0.3s ease-out;
}

@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ========================================
   SHARE BUTTONS
   ======================================== */
.share-block {
  padding-top: var(--space-sm);
}

.share-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.share-buttons {
  display: flex;
  gap: var(--space-sm);
}

.share-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.share-btn:active {
  opacity: 0.7;
}

/* ========================================
   FIND US SECTION
   ======================================== */
.find-us-section {
  padding: 0 var(--space-lg);
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-xl);
}

.find-us-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

.find-us-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.find-us-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.find-us-info {
  padding: var(--space-md);
}

.find-us-address {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
}

.find-us-address svg {
  flex-shrink: 0;
  color: var(--text-secondary);
  margin-top: 2px;
}

.find-us-place {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.find-us-detail {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.find-us-maps {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.find-us-map-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: var(--cat-vitamins-light);
  color: var(--cat-vitamins);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}

.find-us-map-btn:active {
  opacity: 0.7;
}

.find-us-socials {
  margin-top: var(--space-sm);
}

.find-us-tg-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 10px;
  border-radius: var(--radius-sm);
  background: #E3F2FD;
  color: #2196F3;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}

.find-us-tg-btn:active {
  opacity: 0.7;
}

/* ========================================
   TABLET+
   ======================================== */
@media (min-width: 768px) {
  #app {
    max-width: 500px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-xl);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-lg);
    min-height: calc(100dvh - 48px);
  }

  .bottom-nav {
    max-width: 500px;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  }
}
