:root {
  --bg: #050505;
  --panel: rgba(10, 10, 10, 0.72);
  --panel-strong: rgba(12, 12, 12, 0.9);
  --text: #f7f0e8;
  --muted: rgba(247, 240, 232, 0.74);
  --line: rgba(255, 255, 255, 0.14);
  --accent: #ff6a3d;
  --accent-soft: rgba(255, 106, 61, 0.18);
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  font-family: "Instrument Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(255, 106, 61, 0.2), transparent 24%),
    linear-gradient(180deg, #170d0a 0%, #050505 30%, #050505 100%);
}

button,
a {
  font: inherit;
}

button,
a {
  color: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

.app-shell {
  position: relative;
  height: 100vh;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: max(18px, env(safe-area-inset-top)) 16px 14px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0));
}

.brand {
  display: grid;
  gap: 4px;
}

.brand__eyebrow,
.cart-dock__label,
.dish__meta,
.slide-actions__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.brand__eyebrow,
.dish__meta {
  color: #ffd4c7;
}

.topbar__meta {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ffbf47;
  box-shadow: 0 0 18px rgba(255, 191, 71, 0.5);
}

.feed {
  height: 100vh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
}

.feed::-webkit-scrollbar {
  display: none;
}

.slide {
  position: relative;
  display: grid;
  min-height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.34) 0%, rgba(0, 0, 0, 0.08) 24%, rgba(0, 0, 0, 0.78) 76%, rgba(0, 0, 0, 0.94) 100%),
    linear-gradient(0deg, rgba(255, 106, 61, 0.16), rgba(255, 106, 61, 0));
}

.slide__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide__content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  justify-content: flex-end;
  padding: 104px 16px calc(136px + env(safe-area-inset-bottom));
}

.dish {
  display: grid;
  gap: 18px;
  max-width: min(100%, 540px);
}

.dish__badge-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.dish__badge,
.dish__price,
.slide-actions__pill {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
}

.dish__badge,
.slide-actions__pill {
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: 999px;
}

.dish__title {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(2rem, 9vw, 4.3rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.dish__description {
  margin: 0;
  max-width: 34ch;
  font-size: 1rem;
  line-height: 1.48;
  color: var(--muted);
}

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

.dish__price {
  padding: 12px 14px;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.dish__price strong {
  display: block;
  font-size: 1.4rem;
}

.dish__price small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
}

.slide-actions {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.slide-actions__button {
  min-width: 142px;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: 18px;
  font-weight: 700;
  color: #fff8f2;
  background: linear-gradient(135deg, #ff6a3d, #ff814d);
  box-shadow: 0 14px 30px rgba(255, 106, 61, 0.35);
}

.slide-actions__button.is-added {
  background: linear-gradient(135deg, #2a8f64, #47b37b);
  box-shadow: 0 14px 30px rgba(33, 118, 81, 0.34);
}

.slide-actions__pill {
  gap: 8px;
  color: var(--muted);
}

.feed-nav {
  position: fixed;
  top: 50%;
  right: 16px;
  z-index: 15;
  display: grid;
  gap: 16px;
  justify-items: center;
  transform: translateY(-50%);
}

.feed-nav__label {
  display: inline-flex;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.82);
}

.feed-nav__dots {
  display: grid;
  gap: 8px;
}

.feed-nav__dot {
  width: 4px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  transition: height 180ms ease, background-color 180ms ease;
}

.feed-nav__dot.is-active {
  height: 42px;
  background: var(--accent);
}

.cart-dock {
  position: fixed;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 18;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--panel-strong);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
}

.cart-dock strong {
  font-size: 1rem;
}

.cart-dock__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  border-radius: 18px;
  font-weight: 700;
  text-decoration: none;
  color: #1b0f0b;
  background: #fff2eb;
}

@media (min-width: 768px) {
  .topbar,
  .cart-dock {
    width: min(100%, 480px);
    left: 50%;
    transform: translateX(-50%);
  }

  .feed-nav {
    right: calc(50% - 228px);
  }
}
