:root {
  --ef-card-shadow-soft: 0 10px 24px rgba(21, 33, 22, 0.08);
  --ef-card-shadow-strong: 0 18px 42px rgba(21, 33, 22, 0.1);
}

body {
  background:
    radial-gradient(circle at 12% 0%, #f5e4cd 0%, rgba(245, 228, 205, 0) 28%),
    radial-gradient(circle at 100% 10%, #e7f4ec 0%, rgba(231, 244, 236, 0) 30%),
    var(--ef-bg);
  color: var(--ef-text);
  font-family: "Sora", "Segoe UI", sans-serif;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page {
  flex: 1 1 auto;
}

.container,
.page-wrap {
  width: min(1240px, calc(100% - 32px));
  margin-inline: auto;
}

.discover-shell,
.storefront-shell {
  padding-top: 14px;
  padding-bottom: 28px;
}

.card-surface {
  background: #fff;
  border: 1px solid var(--ef-border);
  border-radius: 20px;
  box-shadow: var(--ef-card-shadow-soft);
}

.field-label {
  display: block;
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ef-text-muted);
}

.field-input,
select.field-input,
textarea.field-input {
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--ef-border);
  border-radius: 14px;
  background: #fbf8f3;
  color: var(--ef-text);
  font: inherit;
  outline: none;
}

.field-input:focus,
select.field-input:focus,
textarea.field-input:focus {
  border-color: rgba(15, 107, 69, 0.34);
  box-shadow: 0 0 0 4px rgba(15, 107, 69, 0.08);
}

.btn-primary,
.btn-primary-wide,
.btn-secondary,
.btn-secondary-wide {
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.btn-primary,
.btn-primary-wide {
  border: 0;
  padding: 11px 18px;
  background: var(--ef-green);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 12px 26px rgba(15, 107, 69, 0.18);
}

.btn-secondary,
.btn-secondary-wide {
  border: 1px solid var(--ef-border);
  padding: 10px 16px;
  background: #fff;
  color: var(--ef-text);
  font-size: 12px;
  font-weight: 700;
}

.btn-primary:hover,
.btn-primary-wide:hover,
.btn-secondary:hover,
.btn-secondary-wide:hover {
  transform: translateY(-1px);
}

.btn-primary-wide,
.btn-secondary-wide {
  width: 100%;
}

.muted,
.section-subtext,
.restaurant-meta {
  color: var(--ef-text-muted);
}

.tag-pill,
.metric-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--ef-border);
  background: #fbf8f3;
  color: var(--ef-text-muted);
  font-size: 11px;
  font-weight: 700;
}

.saved-button.is-active {
  border-color: #d7c1aa;
  background: #fff3e7;
  color: #9a5f20;
}

.section-heading {
  margin: 0;
  font-family: "Bricolage Grotesque", "Sora", sans-serif;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.section-subtext {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.5;
}

.discover-shell,
.storefront-shell {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ef-subhero {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--ef-shadow);
}

.ef-subhero-grid {
  display: grid;
  min-height: 320px;
  grid-template-columns: 0.44fr 0.56fr;
}

.ef-subhero-copy {
  padding: 28px 28px 18px;
  background: linear-gradient(90deg, #fff 0%, #fff 84%, rgba(255, 255, 255, 0.32) 100%);
}

.ef-subhero-title {
  max-width: 11ch;
  margin: 0;
  font-family: "Bricolage Grotesque", "Sora", sans-serif;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 0.94;
  letter-spacing: -0.055em;
}

.ef-subhero-title .green {
  color: var(--ef-green);
}

.ef-subhero-title .orange {
  color: var(--ef-orange);
}

.ef-subhero-subtitle {
  max-width: 34ch;
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ef-text-muted);
}

.ef-subhero-points {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.ef-subhero-points .ef-hero-point {
  font-size: 11px;
}

.ef-subhero-media {
  min-height: 240px;
}

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

.ef-subhero-form {
  margin-top: 18px;
  padding: 10px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 40px rgba(21, 33, 22, 0.12);
}

.discover-form {
  display: grid;
  gap: 12px;
}

.discover-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.discover-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.toggle-list,
.quick-filter-row,
.cuisine-shortcuts,
.storefront-tags,
.category-row,
.restaurant-tags,
.setup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.toggle-chip,
.quick-filter,
.category-chip,
.cuisine-shortcut {
  border: 1px solid var(--ef-border);
  background: #fff;
  color: var(--ef-text);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
}

.toggle-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.toggle-chip input {
  margin: 0;
}

.quick-filter {
  background: #f8f5ef;
}

.category-chip.is-active,
.quick-filter:hover,
.cuisine-shortcut:hover {
  background: #fff2e4;
  border-color: #e5c8a9;
  color: #8f5a22;
}

.results-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.discovery-panels {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 12px;
}

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

.dish-spotlight-card,
.featured-item,
.result-card {
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--ef-border);
  box-shadow: var(--ef-card-shadow-soft);
}

.dish-spotlight-media,
.result-card-media,
.featured-item img {
  width: 100%;
  display: block;
  object-fit: cover;
  background: #efe8df;
}

.dish-spotlight-media {
  height: 156px;
}

.result-card-media {
  height: 168px;
}

.dish-spotlight-body,
.featured-item-body,
.result-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.result-card-title,
.dish-spotlight-body h3,
.featured-item-body h3,
.menu-item-name {
  margin: 0;
  font-family: "Bricolage Grotesque", "Sora", sans-serif;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.dish-spotlight-body p,
.featured-item-body p,
.menu-item-copy,
.support-card p,
.storefront-meta,
.storefront-alert {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ef-text-muted);
}

.meta-row,
.menu-item-button-row,
.dish-detail-actions,
.dish-share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.restaurant-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.ef-card.result-card .ef-card-actions {
  flex-wrap: wrap;
}

.ef-card.result-card .ef-card-actions > * {
  flex: 1 1 calc(50% - 4px);
}

.restaurant-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 14px;
}

.restaurant-cart {
  position: sticky;
  top: 84px;
  align-self: start;
}

.cart-card {
  padding: 16px;
}

.cart-summary {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--ef-border-strong);
  color: var(--ef-text-muted);
}

.cart-total-row {
  color: var(--ef-text);
  font-weight: 800;
}

.storefront-hero {
  overflow: hidden;
  border-radius: 24px;
}

.storefront-banner {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  background: #efe8df;
}

.storefront-copy {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.storefront-title {
  margin: 0;
  font-family: "Bricolage Grotesque", "Sora", sans-serif;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.storefront-cue-grid,
.mk-stat-grid,
.featured-grid {
  display: grid;
  gap: 10px;
}

.storefront-cue-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mk-stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.storefront-cue {
  border: 1px solid var(--ef-border);
  border-radius: 16px;
  background: #fbf8f3;
  padding: 12px;
}

.storefront-cue strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
}

.storefront-cue span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--ef-text-muted);
  line-height: 1.5;
}

.storefront-alert {
  border: 1px solid #efdbc6;
  border-radius: 16px;
  background: #fff7ef;
  padding: 12px 14px;
}

.menu-toolbar {
  display: grid;
  gap: 12px;
}

.menu-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.menu-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.menu-item-card {
  overflow: hidden;
}

.menu-item-grid {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 200px;
  gap: 14px;
  align-items: center;
  padding: 14px;
}

.menu-item-image {
  width: 120px;
  height: 100px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--ef-border);
  background: #efe8df;
}

.menu-item-text {
  display: grid;
  gap: 8px;
}

.menu-item-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--ef-text);
}

.menu-item-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-empty,
.empty-state {
  padding: 24px;
  text-align: center;
}

.empty-state h3 {
  margin: 0 0 8px;
  font-family: "Bricolage Grotesque", "Sora", sans-serif;
}

.empty-state p {
  margin: 0;
  color: var(--ef-text-muted);
}

.support-card {
  padding: 16px;
}

.setup-actions {
  align-items: center;
}

.footer {
  margin-top: 0;
}

@media (max-width: 1180px) {
  .restaurant-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .discovery-panels,
  .restaurant-layout,
  .ef-subhero-grid,
  .featured-grid,
  .mk-stat-grid,
  .storefront-cue-grid {
    grid-template-columns: 1fr;
  }

  .restaurant-cart {
    position: static;
  }
}

@media (max-width: 980px) {
  .discover-grid,
  .dish-spotlight-grid,
  .restaurant-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .menu-item-grid {
    grid-template-columns: 1fr;
  }

  .menu-item-image {
    width: 100%;
    height: 180px;
  }
}

@media (max-width: 720px) {
  .container,
  .page-wrap {
    width: min(1240px, calc(100% - 18px));
  }

  .discover-shell,
  .storefront-shell {
    padding-top: 10px;
    padding-bottom: 24px;
  }

  .ef-subhero-copy {
    padding: 22px 18px 18px;
  }

  .ef-subhero-title {
    font-size: 40px;
  }

  .discover-grid,
  .dish-spotlight-grid,
  .restaurant-grid {
    grid-template-columns: 1fr;
  }
}
