:root {
  --bg: #fff7fb;
  --ink: #221426;
  --muted: #735f78;
  --line: #ead6ec;
  --panel: #ffffff;
  --berry: #7d256f;
  --berry-dark: #5d184f;
  --lime: #35a853;
  --cream: #fff2cf;
  --shadow: 0 18px 48px rgba(61, 21, 72, 0.16);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  margin: 0;
}

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

button {
  cursor: pointer;
}

.topbar {
  align-items: center;
  background: rgba(255, 247, 251, 0.95);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 74px;
  padding: 14px clamp(18px, 5vw, 72px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  align-items: center;
  color: inherit;
  display: inline-flex;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  aspect-ratio: 1;
  background: var(--berry);
  border-radius: 8px;
  color: white;
  display: inline-flex;
  font-weight: 950;
  justify-content: center;
  width: 46px;
}

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

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 2px;
}

.nav {
  display: flex;
  gap: 8px;
}

.nav a {
  border-radius: 8px;
  color: var(--muted);
  padding: 10px 12px;
  text-decoration: none;
}

.nav a:hover {
  background: #f2e2f4;
  color: var(--ink);
}

.hero {
  background:
    linear-gradient(90deg, rgba(34, 20, 38, 0.9), rgba(34, 20, 38, 0.22)),
    url("https://images.pexels.com/photos/5232939/pexels-photo-5232939.jpeg?cs=srgb&dl=pexels-jess-vide-5232939.jpg&fm=jpg") center/cover;
  color: white;
  min-height: min(650px, calc(100vh - 74px));
  padding: clamp(58px, 9vw, 116px) clamp(18px, 5vw, 72px);
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  color: var(--berry);
  font-size: 0.78rem;
  font-weight: 900;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd86f;
}

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

h1 {
  font-size: clamp(2.5rem, 7vw, 5.4rem);
  line-height: 0.98;
  margin-bottom: 22px;
  max-width: 900px;
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  line-height: 1.08;
  margin-bottom: 0;
}

.hero p {
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.6;
  max-width: 620px;
}

.primary-action,
.checkout {
  align-items: center;
  background: var(--berry);
  border: 0;
  border-radius: 8px;
  color: white;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  text-decoration: none;
}

.primary-action:hover,
.checkout:hover {
  background: var(--berry-dark);
}

.status-strip {
  background: var(--ink);
  color: white;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.status-strip span {
  background: rgba(255, 255, 255, 0.06);
  padding: 18px clamp(18px, 5vw, 72px);
}

.service-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: clamp(22px, 4vw, 42px) clamp(18px, 5vw, 72px) 0;
}

.service-grid article {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(61, 21, 72, 0.08);
  display: grid;
  gap: 8px;
  padding: 16px;
}

.service-grid strong {
  font-size: 1rem;
}

.service-grid span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.layout {
  align-items: start;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
  padding: clamp(36px, 6vw, 76px) clamp(18px, 5vw, 72px);
}

.section-heading {
  margin-bottom: 18px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.filter,
.ghost-button,
.qty-button {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
}

.filter {
  min-height: 42px;
  padding: 0 14px;
}

.filter.active {
  background: var(--lime);
  border-color: var(--lime);
  color: white;
}

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

.menu-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(61, 21, 72, 0.08);
  display: grid;
  grid-template-rows: 170px 1fr;
  overflow: hidden;
}

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

.item-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}

.item-badge {
  align-self: flex-start;
  background: #f1e2ff;
  border: 1px solid #d9b6ed;
  border-radius: 8px;
  color: var(--berry);
  font-size: 0.72rem;
  font-weight: 950;
  padding: 6px 8px;
  text-transform: uppercase;
}

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

.item-title h3 {
  font-size: 1.05rem;
  line-height: 1.25;
  margin: 0;
}

.price {
  color: var(--lime);
  font-weight: 950;
  white-space: nowrap;
}

.description {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
  margin: 0;
}

.add-button {
  background: var(--cream);
  border: 1px solid #edc76f;
  border-radius: 8px;
  color: #684106;
  font-weight: 900;
  min-height: 42px;
  margin-top: auto;
}

.order-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  padding: 20px;
  position: sticky;
  top: 92px;
}

.panel-header {
  align-items: start;
  display: flex;
  justify-content: space-between;
}

.order-number,
.empty-cart {
  color: var(--muted);
}

.order-number {
  font-size: 0.9rem;
  font-weight: 800;
  margin: 8px 0 0;
}

.ghost-button {
  min-height: 38px;
  padding: 0 12px;
}

.continue-order {
  background: var(--ink);
  border: 0;
  border-radius: 8px;
  color: white;
  font-weight: 900;
  min-height: 44px;
  padding: 0 16px;
  width: 100%;
}

.order-panel.order-focus {
  animation: orderPulse 1.6s ease;
  border-color: var(--berry);
}

@keyframes orderPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(125, 37, 111, 0.32), var(--shadow);
  }
  100% {
    box-shadow: 0 0 0 18px rgba(125, 37, 111, 0), var(--shadow);
  }
}

.cart-list {
  display: grid;
  gap: 12px;
}

.cart-row {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 10px;
  padding-bottom: 12px;
}

.cart-row-top,
.qty-controls,
.totals div {
  align-items: center;
  display: flex;
}

.cart-row-top,
.totals div {
  justify-content: space-between;
}

.qty-controls {
  gap: 8px;
}

.qty-button {
  aspect-ratio: 1;
  font-weight: 900;
  width: 34px;
}

.item-options,
.checkout-section,
.address-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 12px;
}

.item-options,
.address-group {
  background: #fffafd;
}

.checkout-section {
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  border-radius: 0;
  padding-left: 0;
  padding-right: 0;
}

.option-title,
.checkout-title,
.field-title {
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 950;
  margin: 0;
}

.field {
  display: grid;
  gap: 8px;
}

.field-row {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(92px, 0.7fr) minmax(0, 1.3fr);
}

.field span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.field input,
.field select,
.field textarea,
.line-note {
  background: #fffafd;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
}

.item-options .field select,
.item-options .line-note,
.address-group .field input {
  background: white;
}

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

.check-option {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.88rem;
  font-weight: 800;
  gap: 8px;
}

.check-option input {
  accent-color: var(--berry);
}

.line-note,
.field textarea {
  resize: vertical;
}

.field input:invalid,
.field textarea:invalid {
  border-color: #d977a9;
}

.hidden {
  display: none;
}

.totals {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  margin: 0;
  padding-top: 14px;
}

.totals dt {
  color: var(--muted);
}

.totals dd {
  font-weight: 900;
  margin: 0;
}

.grand-total {
  font-size: 1.2rem;
}

.checkout {
  width: 100%;
}

.checkout:disabled {
  background: #b9a8b9;
  cursor: not-allowed;
}

.order-message,
.order-message a {
  color: var(--lime);
  font-weight: 900;
}

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

  .order-panel {
    position: static;
  }

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

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

@media (max-width: 720px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    overflow-x: auto;
    width: 100%;
  }

  .status-strip,
  .service-grid,
  .menu-grid,
  .field-row,
  .check-grid {
    grid-template-columns: 1fr;
  }
}
