:root {
  color-scheme: light;
  --orange: #eb6600;
  --orange-dark: #bb4d00;
  --ink: #211713;
  --muted: #756862;
  --paper: #fffaf4;
  --panel: #ffffff;
  --cream: #fff1df;
  --line: rgba(33, 23, 19, 0.12);
  --green: #157447;
  --shadow: 0 24px 70px rgba(70, 35, 10, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(135deg, rgba(235, 102, 0, 0.14), transparent 24rem),
    linear-gradient(25deg, rgba(21, 116, 71, 0.09), transparent 36rem),
    var(--paper);
  color: var(--ink);
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.enter-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 100vh;
  background: #120c09;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.enter-screen.hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.enter-photo {
  min-height: 100%;
  background:
    linear-gradient(90deg, rgba(18, 12, 9, 0.24), rgba(18, 12, 9, 0.84)),
    url("https://images.unsplash.com/photo-1568901346375-23c9450c58cd?auto=format&fit=crop&w=1500&q=80") center / cover;
}

.enter-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 1rem;
  padding: clamp(1.5rem, 5vw, 4.5rem);
  color: white;
}

.logo {
  width: 7rem;
  height: 7rem;
  object-fit: contain;
  border-radius: 18px;
  background: white;
  padding: 0.7rem;
}

.enter-panel h1,
.hero h2,
.section-title h2,
.loyalty-layout h2 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2.4rem, 8vw, 5.8rem);
  line-height: 0.92;
  font-weight: 900;
}

.enter-panel p,
.hero p,
.loyalty-layout p {
  margin: 0;
  max-width: 38rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.04rem;
  line-height: 1.7;
}

.eyebrow {
  margin: 0 0 0.45rem;
  color: var(--orange);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.primary-action,
.secondary-action,
.category-tabs button,
.reward-grid button,
.basket-pill,
.icon-button {
  min-height: 2.85rem;
  border: 0;
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.25rem;
  background: var(--orange);
  color: white;
  box-shadow: 0 18px 34px rgba(235, 102, 0, 0.28);
}

.primary-action:hover,
.reward-grid button:hover,
.category-tabs button.active {
  background: var(--orange-dark);
  color: white;
}

.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.15rem;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem clamp(1rem, 4vw, 2.4rem);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 244, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  text-decoration: none;
}

.brand img {
  width: 3.1rem;
  height: 3.1rem;
  object-fit: contain;
  border-radius: 8px;
  background: white;
  padding: 0.2rem;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-weight: 900;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

nav {
  display: flex;
  gap: 0.35rem;
}

nav a {
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 900;
  text-decoration: none;
}

nav a:hover {
  background: var(--cream);
  color: var(--ink);
}

.basket-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: white;
}

.basket-pill span {
  display: inline-grid;
  place-items: center;
  min-width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  background: white;
  color: var(--ink);
}

main {
  padding-bottom: 4rem;
}

.hero,
.section-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22rem;
  gap: 1.4rem;
  align-items: end;
  min-height: 70vh;
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.hero h2,
.section-title h2,
.loyalty-layout h2 {
  max-width: 13ch;
  color: var(--ink);
  font-size: clamp(2.2rem, 6vw, 4.8rem);
}

.hero p,
.loyalty-layout p {
  margin-top: 1rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.deal-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.25rem;
  background:
    linear-gradient(135deg, rgba(235, 102, 0, 0.12), transparent),
    white;
  box-shadow: var(--shadow);
}

.deal-card span {
  display: inline-flex;
  margin-bottom: 0.9rem;
  padding: 0.32rem 0.55rem;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-size: 0.78rem;
  font-weight: 900;
}

.deal-card strong {
  display: block;
  font-size: 1.55rem;
  line-height: 1.1;
}

.deal-card p {
  color: var(--muted);
  line-height: 1.55;
}

.section-shell {
  padding: clamp(2rem, 5vw, 3.5rem) 0;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.category-tabs button {
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--line);
  background: white;
  color: var(--muted);
}

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

.menu-card,
.reward-grid article,
.stamp-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 16px 38px rgba(70, 35, 10, 0.09);
  overflow: hidden;
}

.menu-card figure {
  margin: 0;
  aspect-ratio: 1.25;
  background: var(--cream);
}

.menu-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.menu-card .content {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
}

.menu-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.menu-card p {
  margin: 0;
  min-height: 3.2rem;
  color: var(--muted);
  line-height: 1.55;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.price-row strong {
  font-size: 1.15rem;
}

.price-row button {
  min-height: 2.55rem;
  padding: 0.5rem 0.8rem;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-weight: 900;
}

.rewards-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.reward-grid article {
  padding: 1.1rem;
}

.reward-grid span {
  color: var(--orange);
  font-weight: 900;
}

.reward-grid h3 {
  margin: 0.55rem 0;
  font-size: 1.35rem;
}

.reward-grid p {
  min-height: 3rem;
  color: var(--muted);
  line-height: 1.5;
}

.reward-grid button {
  width: 100%;
  background: var(--cream);
  color: var(--ink);
}

.loyalty-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24rem;
  gap: 1.2rem;
  align-items: center;
}

.loyalty-layout .secondary-action {
  margin-top: 1.3rem;
}

.stamp-card {
  padding: 1.1rem;
  background:
    linear-gradient(135deg, rgba(235, 102, 0, 0.15), transparent),
    white;
}

#stampGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
}

.stamp {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px dashed rgba(33, 23, 19, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--muted);
  font-weight: 900;
}

.stamp.filled {
  border: 0;
  background: var(--orange);
  color: white;
  box-shadow: 0 12px 24px rgba(235, 102, 0, 0.26);
}

#stampMessage {
  display: block;
  margin-top: 1rem;
  text-align: center;
}

.basket-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: min(24rem, 100vw);
  height: 100vh;
  padding: 1rem;
  border-left: 1px solid var(--line);
  background: white;
  box-shadow: -28px 0 70px rgba(33, 23, 19, 0.18);
  transform: translateX(105%);
  transition: transform 220ms ease;
}

.basket-drawer.open {
  transform: translateX(0);
}

.basket-header,
.basket-total,
.basket-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.icon-button {
  width: 2.5rem;
  min-height: 2.5rem;
  background: var(--cream);
}

.basket-items {
  display: grid;
  gap: 0.75rem;
  overflow: auto;
}

.basket-row {
  align-items: flex-start;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.basket-row small {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-weight: 800;
}

.basket-total {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 1.2rem;
}

.full {
  width: 100%;
}

.toast-zone {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 120;
  display: grid;
  gap: 0.55rem;
}

.toast {
  max-width: 22rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  box-shadow: var(--shadow);
  font-weight: 800;
}

@media (max-width: 900px) {
  .enter-screen,
  .hero,
  .loyalty-layout {
    grid-template-columns: 1fr;
  }

  .enter-photo {
    min-height: 38vh;
  }

  .enter-panel {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
  }

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

  .section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .category-tabs {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .app-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  nav a {
    flex: 1;
    text-align: center;
  }

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

  .enter-panel h1,
  .hero h2,
  .section-title h2,
  .loyalty-layout h2 {
    font-size: 2.45rem;
  }
}
