.food-catalog-page {
  background:
    radial-gradient(circle at top left, rgba(74, 197, 90, 0.12), transparent 28%),
    linear-gradient(180deg, #fbfdf9 0%, #f4f8f2 100%);
}

.food-catalog {
  padding: 28px 0 72px;
}

.food-shell {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 40px;
}

.food-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.food-hero-copy h1 {
  margin: 6px 0 10px;
  font-size: clamp(2rem, 2.8vw, 3.35rem);
  line-height: 1.04;
  color: #0b2233;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.food-hero-copy p {
  max-width: 700px;
  margin: 0;
  color: #5f6f7e;
  font-size: 1.02rem;
  line-height: 1.7;
}

.food-eyebrow,
.sidebar-label,
.results-subtitle,
.group-title {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 800;
  color: #8ca0af;
  margin: 0;
}

.food-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 28px;
}

.filter-chip {
  border: 1px solid #d9e2d7;
  background: rgba(255, 255, 255, 0.92);
  color: #51606f;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.filter-chip:hover,
.filter-chip.active {
  transform: translateY(-1px);
  background: #48c95b;
  border-color: #48c95b;
  color: #ffffff;
}

.food-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.food-sidebar {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e4ebe0;
  border-radius: 26px;
  padding: 24px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.06);
  position: sticky;
  top: 18px;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.sidebar-header h2 {
  margin: 8px 0 0;
  color: #0b2233;
  font-size: 1.45rem;
  line-height: 1.2;
}

.sidebar-group + .sidebar-group {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid #edf2eb;
}

.category-item,
.checkbox-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: none;
  color: #395163;
  font-weight: 600;
  font-size: 0.98rem;
  text-align: left;
  cursor: pointer;
  padding: 11px 12px;
  border-radius: 14px;
}

.category-item i {
  width: 18px;
  color: #87a095;
}

.category-item:hover,
.category-item.active {
  background: #ebf9ee;
  color: #24924e;
}

.category-item.active i,
.category-item:hover i {
  color: #24924e;
}

.checkbox-item {
  cursor: default;
  padding-left: 0;
  margin-top: 8px;
}

.checkbox-item input {
  accent-color: #48c95b;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.time-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mini-pill {
  border: none;
  padding: 9px 12px;
  border-radius: 999px;
  background: #f4f8f2;
  color: #51606f;
  border: 1px solid #e0e8dc;
  font-weight: 700;
  font-size: 0.84rem;
}

.mini-pill.active {
  background: #ebf9ee;
  border-color: #c8e9cd;
  color: #24924e;
}

.mini-pill:hover {
  background: #eef8ef;
}

.sidebar-actions {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.apply-button,
.reset-button,
.load-more-button {
  border-radius: 14px;
  padding: 13px 16px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.apply-button,
.load-more-button {
  background: linear-gradient(135deg, #4ccc5a 0%, #2fbf69 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 14px 30px rgba(47, 191, 105, 0.2);
}

.reset-button {
  background: #ffffff;
  border: 1px solid #d9e5d8;
  color: #51606f;
}

.apply-button:hover,
.reset-button:hover,
.load-more-button:hover {
  transform: translateY(-1px);
}

.food-results {
  min-width: 0;
}

.results-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.results-header h2 {
  margin: 8px 0 0;
  font-size: 1.6rem;
  color: #0b2233;
}

.results-summary {
  font-size: 0.92rem;
  color: #728090;
  font-weight: 700;
  white-space: nowrap;
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.food-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e6ece4;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.food-card:hover {
  transform: translateY(-5px);
  border-color: #d5e7d7;
  box-shadow: 0 20px 36px rgba(15, 23, 42, 0.09);
}

.card-media {
  position: relative;
  padding: 14px;
}

.card-media img {
  width: 100%;
  aspect-ratio: 1.07 / 0.83;
  object-fit: cover;
  border-radius: 18px;
  display: block;
  background: #f0f5ef;
}

.match-badge {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 1;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(236, 249, 240, 0.96);
  color: #2a9a51;
  border: 1px solid #cce9d3;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.card-favorite {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  display: grid;
  place-items: center;
  color: #748494;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  cursor: pointer;
}

.card-body {
  padding: 0 18px 18px;
}

.card-title-row,
.card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.card-title-row h4 {
  margin: 0;
  font-size: 1.12rem;
  color: #0b2233;
}

.card-rating {
  color: #f39b2d;
  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;
}

.card-meta-row {
  margin-top: 10px;
  color: #6b7b88;
  font-size: 0.86rem;
  font-weight: 700;
}

.card-meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-nutrition {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f0f5ef;
}

.nutrition-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  text-align: center;
}

.nutrition-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0b2233;
  line-height: 1.2;
}

.nutrition-label {
  font-size: 0.7rem;
  color: #6b7b88;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: 600;
}

.difficulty {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.results-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-top: 30px;
}

.results-footer p {
  margin: 0;
  color: #a0ad9c;
  font-size: 0.84rem;
}

.load-more-button {
  min-width: 260px;
}

.food-card.is-hidden {
  display: none;
}

.card-favorite.is-saved {
  background: #ebf9ee;
  color: #2a9a51;
}

.card-favorite.is-saved i:before {
  content: "\f004";
  font-weight: 900;
}

.clickable-recipe-card {
  outline: none;
}

.clickable-recipe-card:focus-visible {
  box-shadow: 0 0 0 4px rgba(72, 201, 91, 0.25), 0 20px 36px rgba(15, 23, 42, 0.09);
}

@media (max-width: 1180px) {
  .food-layout {
    grid-template-columns: 1fr;
  }

  .food-sidebar {
    position: static;
  }

  .recipe-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .food-shell {
    padding: 0 20px;
  }

  .food-hero,
  .results-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .recipe-grid {
    grid-template-columns: 1fr;
  }

  .food-sidebar {
    padding: 20px;
    border-radius: 22px;
  }

  .results-summary {
    white-space: normal;
  }

  .load-more-button {
    width: 100%;
    min-width: 0;
  }
}