:root {
  --ink: #17201b;
  --muted: #617066;
  --line: #dce6df;
  --paper: #fbfaf6;
  --surface: #ffffff;
  --leaf: #2f7d4d;
  --leaf-dark: #235d3b;
  --tomato: #c84d3c;
  --sun: #f0b84a;
  --shadow: 0 18px 45px rgba(24, 38, 30, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  padding: 0 4vw;
  background: rgba(251, 250, 246, 0.92);
  border-bottom: 1px solid rgba(220, 230, 223, 0.86);
  backdrop-filter: blur(14px);
}

.brand,
.cart-pill,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.7rem;
  font-weight: 800;
  font-size: 1.08rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--leaf);
  color: #fff;
}

.nav-links {
  gap: 1.2rem;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
}

.cart-pill {
  gap: 0.45rem;
  min-width: 70px;
  height: 42px;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 6vw 4vw 9vw;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(18, 31, 24, 0.78), rgba(18, 31, 24, 0.42) 44%, rgba(18, 31, 24, 0.08));
}

.hero img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-copy {
  width: min(680px, 100%);
  color: #fff;
}

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

.hero .eyebrow {
  color: #ffd88a;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1rem;
  max-width: 12ch;
  font-size: clamp(2.65rem, 7vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.45rem, 2.2vw, 2.25rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-copy p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
}

.hero-actions,
.toolbar,
.form-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 850;
  cursor: pointer;
}

.button.primary {
  background: var(--leaf);
  color: #fff;
}

.button.primary:hover {
  background: var(--leaf-dark);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.52);
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.button.full {
  width: 100%;
}

.delivery-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.delivery-strip div {
  display: grid;
  gap: 0.15rem;
  min-height: 106px;
  padding: 1.4rem 4vw;
  background: var(--surface);
}

.delivery-strip strong {
  font-size: 1.02rem;
}

.delivery-strip span,
.section-heading p,
.product-card p,
.empty-cart,
.cart-line small,
label {
  color: var(--muted);
}

.shop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  gap: 1.4rem;
  align-items: start;
  padding: 3vw 4vw 5vw;
}

.shop-panel,
.cart-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.shop-panel {
  padding: clamp(1rem, 2vw, 1.6rem);
}

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

.toolbar {
  align-items: center;
  margin-bottom: 1rem;
}

.search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1 1 250px;
  min-height: 46px;
  padding: 0 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
}

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

.category-tabs button,
.qty button,
.icon-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.category-tabs button {
  min-height: 42px;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  font-weight: 800;
}

.category-tabs button[aria-selected="true"] {
  background: #e8f3ec;
  border-color: #b6d5c2;
  color: var(--leaf-dark);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}

.product-card {
  display: grid;
  gap: 0.85rem;
  min-height: 210px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.product-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 0.8rem;
}

.food-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #f5efe3;
  font-size: 1.35rem;
}

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

.product-card p {
  margin-bottom: 0;
  font-size: 0.92rem;
}

.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: auto;
}

.price {
  font-weight: 900;
}

.add-button {
  min-height: 40px;
  padding: 0.5rem 0.75rem;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 850;
  cursor: pointer;
}

.cart-panel {
  position: sticky;
  top: 88px;
  padding: 1.1rem;
}

.cart-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.3rem;
}

.cart-items {
  display: grid;
  gap: 0.7rem;
  min-height: 72px;
  margin: 1rem 0;
}

.cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}

.cart-line strong,
.cart-line small {
  display: block;
}

.qty {
  display: grid;
  grid-template-columns: 32px 32px 32px;
  align-items: center;
  text-align: center;
}

.qty button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-weight: 900;
}

.empty-cart {
  padding: 1rem;
  border: 1px dashed #cbd8cf;
  border-radius: 8px;
  text-align: center;
}

.totals {
  display: grid;
  gap: 0.55rem;
  padding: 0.9rem 0;
  border-block: 1px solid var(--line);
}

.totals div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.total-row {
  font-size: 1.18rem;
}

.checkout-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

label {
  display: grid;
  gap: 0.35rem;
  flex: 1 1 180px;
  font-size: 0.88rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0.72rem 0.78rem;
  outline-color: var(--leaf);
}

textarea {
  resize: vertical;
}

.confirmation {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 8px;
  background: #e8f3ec;
  color: var(--leaf-dark);
  font-weight: 750;
  white-space: pre-line;
}

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

  .cart-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 64px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 86vh;
    align-items: end;
    padding-top: 20vw;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(18, 31, 24, 0.1), rgba(18, 31, 24, 0.86));
  }

  h1 {
    font-size: clamp(2.5rem, 14vw, 4.5rem);
  }

  .delivery-strip {
    grid-template-columns: 1fr;
  }

  .shop-layout {
    padding: 1rem;
  }

  .section-heading {
    display: block;
  }
}
