@import url("https://fonts.googleapis.com/css2?family=Fraunces:wght@600;700&family=Manrope:wght@400;600;700;800&display=swap");

:root {
  --bg: #f7f1e7;
  --panel: rgba(255, 250, 242, 0.88);
  --panel-strong: #fff8ef;
  --ink: #1d1a16;
  --muted: #6d6256;
  --line: rgba(110, 84, 54, 0.16);
  --accent: #db6b2d;
  --accent-deep: #8e3214;
  --accent-soft: #f6d5bc;
  --green: #19734a;
  --amber: #946200;
  --rose: #8d3b35;
  --shadow: 0 20px 60px rgba(71, 38, 11, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 999px;
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(251, 197, 114, 0.4), transparent 28%),
    radial-gradient(circle at right 20%, rgba(219, 107, 45, 0.16), transparent 24%),
    linear-gradient(180deg, #fbf5eb 0%, #f3eadf 100%);
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 56px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.95fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}

.hero-copy,
.hero-panel,
.control-panel,
.featured,
.results-section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-copy {
  padding: 24px 28px;
}

.hero-copy-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.eyebrow {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.hero-status {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: rgba(246, 213, 188, 0.56);
  color: var(--accent-deep);
  font-size: 0.85rem;
  font-weight: 800;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.02;
}

h1 {
  max-width: 10ch;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 0.96;
}

.hero-text {
  max-width: 62ch;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #ef8e46);
  color: white;
  text-decoration: none;
  font-weight: 800;
}

.hero-link-secondary {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(110, 84, 54, 0.16);
  color: var(--ink);
}

.hero-panel {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: space-between;
  background:
    linear-gradient(180deg, rgba(255, 243, 227, 0.96), rgba(255, 248, 239, 0.9)),
    radial-gradient(circle at bottom right, rgba(219, 107, 45, 0.16), transparent 34%);
}

.hero-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hero-stat {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(110, 84, 54, 0.12);
}

.hero-stat strong {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
}

.hero-stat span {
  color: var(--muted);
  display: block;
  margin-top: 6px;
  font-size: 0.92rem;
  line-height: 1.35;
}

.hero-panel-footer {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.layout {
  display: grid;
  gap: 24px;
}

.control-panel {
  padding: 20px 22px;
}

.search-wrap label,
.filter-group label,
.filter-label {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.9rem;
  font-weight: 700;
}

.search-wrap input,
select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  font: inherit;
  color: var(--ink);
}

.search-wrap input:focus,
select:focus {
  outline: 2px solid rgba(219, 107, 45, 0.22);
  border-color: rgba(219, 107, 45, 0.5);
}

.filter-group {
  margin-top: 16px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  border: 1px solid rgba(110, 84, 54, 0.16);
  background: rgba(255, 255, 255, 0.66);
  color: var(--ink);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.chip:hover {
  transform: translateY(-1px);
}

.chip.active {
  background: linear-gradient(135deg, var(--accent), #ef8e46);
  border-color: transparent;
  color: white;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.featured,
.results-section {
  padding: 24px 22px 22px;
}

.section-heading,
.results-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 18px;
}

.section-heading h2,
.results-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.results-meta {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.section-note {
  margin: -6px 0 18px;
  color: var(--muted);
  max-width: 62ch;
  line-height: 1.6;
}

.featured-grid,
.card-grid {
  display: grid;
  gap: 16px;
}

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

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

#bestFocusChips {
  margin-bottom: 18px;
}

.meal-card {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(110, 84, 54, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 248, 239, 0.92)),
    radial-gradient(circle at top right, rgba(246, 213, 188, 0.5), transparent 25%);
}

.meal-media {
  position: relative;
  z-index: 1;
  aspect-ratio: 16 / 10;
  margin: -4px -4px 2px;
  overflow: hidden;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(246, 213, 188, 0.82), rgba(255, 243, 227, 0.94));
}

.meal-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.meal-card::after {
  content: "";
  position: absolute;
  inset: auto -22px -22px auto;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(219, 107, 45, 0.08);
}

.featured-card {
  background:
    linear-gradient(165deg, rgba(255, 237, 214, 0.98), rgba(255, 250, 242, 0.94)),
    radial-gradient(circle at top left, rgba(219, 107, 45, 0.14), transparent 28%);
}

.card-top,
.card-bottom {
  position: relative;
  z-index: 1;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 7px 11px;
  border-radius: var(--radius-sm);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pill.category {
  background: rgba(246, 213, 188, 0.56);
  color: var(--accent-deep);
}

.pill.reason {
  background: rgba(29, 26, 22, 0.08);
  color: var(--ink);
}

.pill.stock-in {
  background: rgba(25, 115, 74, 0.14);
  color: var(--green);
}

.pill.stock-variant {
  background: rgba(148, 98, 0, 0.14);
  color: var(--amber);
}

.pill.stock-manual {
  background: rgba(141, 59, 53, 0.14);
  color: var(--rose);
}

.meal-name {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.15;
}

.vendor {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.price-main {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.price-old {
  color: var(--muted);
  text-decoration: line-through;
  font-weight: 700;
}

.discount {
  color: var(--accent-deep);
  font-weight: 800;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.card-meta strong {
  color: var(--ink);
}

.pick-note {
  margin: 10px 0 0;
  color: var(--accent-deep);
  font-size: 0.94rem;
  font-weight: 800;
}

.card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.button-type {
  font-weight: 700;
  color: var(--muted);
}

.visit-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  border-radius: 14px;
  color: white;
  text-decoration: none;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), #ef8e46);
}

.empty-state {
  padding: 32px;
  border-radius: 22px;
  border: 1px dashed rgba(110, 84, 54, 0.26);
  background: rgba(255, 252, 247, 0.78);
  color: var(--muted);
}

#filters,
#best-picks {
  scroll-margin-top: 20px;
}

@media (max-width: 980px) {
  .featured-grid,
  .card-grid {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 16px;
  }

  .featured-grid,
  .card-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-panel,
  .control-panel,
  .featured,
  .results-section {
    border-radius: 22px;
  }

  .hero-copy,
  .hero-panel,
  .featured,
  .results-section {
    padding: 22px;
  }

  .hero-copy-top,
  .hero-actions,
  .hero-stat-grid {
    gap: 10px;
  }

  .hero-link {
    width: 100%;
  }

  .section-heading,
  .results-head {
    align-items: start;
    flex-direction: column;
  }

  .price-main {
    font-size: 1.6rem;
  }
}
