:root {
  color-scheme: light;
  --brand-green: #2bb673;
  --brand-green-dark: #249760;
  --brand-ink: #0c1624;
  --brand-muted: #5b6d82;
  --brand-bg: #f4f7fb;
  --surface: #ffffff;
  --surface-alt: #f1f4fa;
  --surface-shadow: 0 18px 40px rgba(12, 22, 36, 0.12);
  --border: rgba(12, 22, 36, 0.08);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --font-body: "Inter", "Segoe UI", Roboto, system-ui, -apple-system, sans-serif;
  --transition: 200ms ease;
  --menu-nav-offset: 96px;
}

@media (max-width: 960px) {
  :root {
    --menu-nav-offset: 84px;
  }
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* Fallback for browsers without native inert support */
[inert] {
  pointer-events: none;
  user-select: none;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--brand-bg);
  color: var(--brand-ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-public {
  --menu-nav-offset: 72px;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

img {
  display: block;
  max-width: 100%;
}

.hidden {
  display: none !important;
}

.shell {
  width: min(1180px, 100% - 2.5rem);
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header */
.kf-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.kf-header__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: clamp(0.85rem, 2vw, 1.2rem) 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 600;
}

.brand__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: radial-gradient(circle at top left, #47d692, var(--brand-green));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.brand__logo img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand__name {
  font-size: 1.25rem;
  letter-spacing: 0.01em;
}

.brand__tagline {
  font-size: 0.85rem;
  color: var(--brand-muted);
}

.header-search {
  flex: 1;
  display: flex;
  justify-content: center;
}

.header-search input {
  width: min(420px, 100%);
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: inherit;
  font: inherit;
  transition: border var(--transition), box-shadow var(--transition);
}

.header-search input::placeholder {
  color: var(--brand-muted);
}

.header-search input:focus-visible {
  outline: none;
  border-color: var(--brand-green);
  box-shadow: 0 0 0 3px rgba(43, 182, 115, 0.18);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-btn,
.btn,
button {
  font: inherit;
  border-radius: 999px;
  border: none;
  padding: 0.6rem 1.4rem;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}

.btn,
.nav-btn {
  background: var(--brand-green);
  color: #fff;
  font-weight: 600;
}

.btn:hover,
.nav-btn:hover,
.btn:focus-visible,
.nav-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(43, 182, 115, 0.2);
}

.btn:active,
.nav-btn:active {
  transform: translateY(0);
}

button:disabled,
.btn[disabled],
.btn:disabled,
.nav-btn[disabled],
.nav-btn:disabled,
.btn.is-disabled {
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
  transform: none;
}

.btn--link[disabled],
.btn--link.is-disabled {
  color: var(--brand-muted);
  pointer-events: none;
}

.btn--ghost {
  background: transparent;
  color: var(--brand-ink);
  border: 1px solid var(--border);
  box-shadow: none;
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--brand-green);
  color: var(--brand-green);
}

.btn--primary {
  background: var(--brand-green);
  color: #fff;
}

.btn--link {
  background: none;
  color: var(--brand-green);
  padding-left: 0;
  padding-right: 0;
}

.nav-btn--secondary {
  background: transparent;
  color: var(--brand-green);
  border: 1px solid rgba(43, 182, 115, 0.2);
}

.header-cart {
  position: relative;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--brand-ink);
  padding: 0.55rem 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.header-cart__count {
  background: var(--brand-green);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0 0.5rem;
}

.header-cart--disabled {
  opacity: 0.5;
}

.account-area {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.account-area__label {
  font-weight: 600;
}

/* Hero */
.hero {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 clamp(3.5rem, 7vw, 5rem);
  background: radial-gradient(circle at top right, rgba(43, 182, 115, 0.12), transparent 60%),
    linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.7) 100%);
}

.hero__inner {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.75rem;
  color: var(--brand-green);
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
}

.hero__content p {
  margin: 0.4rem 0 1rem;
  color: var(--brand-muted);
}

.hero__form {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  align-items: flex-end;
  margin: 1.5rem 0 0.5rem;
}

.hero__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
  min-width: 180px;
}

.hero__field--short {
  max-width: 140px;
}

.hero__field input {
  padding: 0.65rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  font: inherit;
  color: inherit;
}

.hero__field input:focus-visible {
  outline: none;
  border-color: var(--brand-green);
  box-shadow: 0 0 0 3px rgba(43, 182, 115, 0.18);
}

.hero__hint {
  margin-top: 0.5rem;
  color: var(--brand-muted);
  min-height: 1.5rem;
}

.hero__media {
  display: flex;
  justify-content: flex-end;
}

.hero-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--surface-shadow);
}

.hero-card h3 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.hero-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--brand-muted);
}

/* Categories */
.category-bar {
  margin-bottom: 2.5rem;
}

.category-bar .section-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.category-bar__scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(130px, 1fr);
  gap: 0.9rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}

.category-pill {
  background: var(--surface);
  border-radius: 18px;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  box-shadow: 0 12px 24px rgba(12, 22, 36, 0.08);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border var(--transition);
}

.category-pill:hover,
.category-pill:focus-visible,
.category-pill.is-active {
  transform: translateY(-4px);
  box-shadow: var(--surface-shadow);
  border-color: rgba(43, 182, 115, 0.35);
}

.category-pill__title {
  font-weight: 600;
}

.category-pill__count {
  color: var(--brand-muted);
  font-size: 0.85rem;
}

/* Catalog */
.section-title {
  margin: 0;
  font-size: 2rem;
}

.section-subtitle {
  margin: 0.4rem 0 0;
  color: var(--brand-muted);
}

.catalog {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.catalog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.filter-bar {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.filter-bar select,
.filter-bar input[type="checkbox"] {
  font: inherit;
}

.filter-bar select {
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: inherit;
}

.filter-bar select:focus-visible {
  outline: none;
  border-color: var(--brand-green);
  box-shadow: 0 0 0 3px rgba(43, 182, 115, 0.18);
}

.filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
}

.catalog__recommended {
  background: var(--surface);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--surface-shadow);
}

.catalog__recommended-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.place-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.place-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(12, 22, 36, 0.08);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.place-card:hover,
.place-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: var(--surface-shadow);
}

.place-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--surface-alt);
}

.place-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.place-card__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(12, 22, 36, 0.75);
  color: #fff;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.place-card__body {
  padding: 1.1rem 1.35rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.place-card__title-row {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: baseline;
}

.place-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.place-card__rating {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 600;
  color: #f28f3b;
}

.place-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--brand-muted);
}

.place-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.catalog__listing {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.auth-notice {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(12, 22, 36, 0.05);
  border: 1px dashed rgba(12, 22, 36, 0.1);
  color: var(--brand-ink);
}

/* Menu view */

.menu-view {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--surface-shadow);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.menu-view__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.menu-categories--loading .menu-category,
.menu-categories--loading .menu-items {
  display: none;
}

.menu-skeleton {
  display: grid;
  gap: 1.25rem;
}

.menu-item--skeleton {
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.6), rgba(244, 247, 251, 0.9), rgba(255, 255, 255, 0.6));
  border: 1px solid var(--border);
  overflow: hidden;
}

.menu-item--skeleton .menu-item__media {
  background: rgba(12, 22, 36, 0.04);
}

.skeleton-line,
.skeleton-pill {
  height: 12px;
  border-radius: 999px;
  background: rgba(12, 22, 36, 0.08);
  position: relative;
  overflow: hidden;
}

.skeleton-line::after,
.skeleton-pill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  animation: shimmer 1.6s infinite;
}

.skeleton-line--title {
  width: 60%;
  height: 16px;
}

.skeleton-line--short {
  width: 40%;
}

.skeleton-line--price {
  width: 80px;
  height: 16px;
}

.skeleton-pill {
  width: 140px;
  height: 32px;
}

@keyframes shimmer {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

.kf-toast {
  position: fixed;
  left: 50%;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: rgba(12, 22, 36, 0.92);
  color: #fff;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  box-shadow: 0 12px 30px rgba(12, 22, 36, 0.28);
  z-index: 200;
}

.kf-toast__action {
  background: #fff;
  color: var(--brand-ink);
  border-radius: 999px;
  border: none;
  padding: 0.4rem 0.9rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
}

.menu-view__place h2,
.menu-view__place h3 {
  margin: 0;
  font-size: clamp(1.4rem, 2vw, 1.65rem);
}

.menu-view__place p {
  margin: 0.3rem 0 0;
  color: var(--brand-muted);
}

.menu-view__notice {
  padding: 1rem 1.2rem;
  border-radius: var(--radius-md);
  background: rgba(242, 143, 59, 0.1);
  border: 1px solid rgba(242, 143, 59, 0.35);
  color: #a65a1d;
}

.menu-view__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 2.5rem;
  align-items: flex-start;
}

.menu-view__content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.menu-nav {
  position: sticky;
  top: var(--menu-nav-offset);
  z-index: 15;
  background: var(--surface);
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(12, 22, 36, 0.08);
  box-shadow: 0 12px 32px rgba(12, 22, 36, 0.04);
}

.menu-nav__scroller {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
  margin: 0;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 768px) {
  .menu-nav__scroller {
    flex-wrap: wrap;
    overflow-x: visible;
    padding-bottom: 0;
  }
}

.menu-nav__scroller::-webkit-scrollbar {
  height: 6px;
}

.menu-nav__scroller::-webkit-scrollbar-thumb {
  background: rgba(12, 22, 36, 0.18);
  border-radius: 999px;
}

.menu-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  background: var(--surface-alt);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), border var(--transition);
}

.menu-nav__link:hover,
.menu-nav__link:focus-visible {
  outline: none;
  background: rgba(43, 182, 115, 0.12);
  border-color: rgba(43, 182, 115, 0.3);
}

.menu-nav__link--active {
  background: var(--brand-green);
  color: #fff;
  box-shadow: 0 10px 24px rgba(43, 182, 115, 0.25);
}

.menu-category {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  scroll-margin-top: calc(var(--menu-nav-offset) + 80px);
}

.menu-category__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.menu-category__title {
  font-size: clamp(1.25rem, 2vw, 1.45rem);
  margin: 0;
}

.menu-category__meta {
  color: var(--brand-muted);
  font-size: 0.9rem;
}

.menu-items {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .menu-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .menu-items {
    grid-template-columns: 1fr;
  }
}

.chat {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chat__messages {
  list-style: none;
  margin: 0;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--surface-alt);
  border-radius: var(--radius-md);
  max-height: 24rem;
  overflow-y: auto;
  box-shadow: inset 0 1px 0 rgba(12, 22, 36, 0.05);
}

.chat__bubble {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.75rem 1rem;
  border-radius: 18px;
  max-width: 80%;
  background: rgba(12, 22, 36, 0.06);
  color: inherit;
  align-self: flex-start;
}

.chat__bubble--self {
  background: var(--brand-green);
  color: #fff;
  align-self: flex-end;
}

.chat__bubble--other {
  background: rgba(12, 22, 36, 0.08);
  color: inherit;
}

.chat__author {
  font-weight: 600;
  font-size: 0.85rem;
}

.chat__body {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat__time {
  font-size: 0.75rem;
  opacity: 0.7;
}

.chat__form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chat__input-label textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  resize: vertical;
  min-height: 3rem;
  font: inherit;
  background: var(--surface);
  color: inherit;
}

.chat__input-label textarea:focus-visible {
  outline: none;
  border-color: var(--brand-green);
  box-shadow: 0 0 0 3px rgba(43, 182, 115, 0.18);
}

.chat__form button {
  align-self: flex-end;
}

@media (max-width: 640px) {
  .chat__messages {
    max-height: 18rem;
  }

  .chat__bubble {
    max-width: 100%;
  }

  .chat__form button {
    width: 100%;
  }
}

.menu-item {
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-shadow: 0 12px 28px rgba(12, 22, 36, 0.08);
  transition: transform var(--transition), box-shadow var(--transition);
}

.menu-item:hover,
.menu-item:focus-within {
  transform: translateY(-6px);
  box-shadow: var(--surface-shadow);
}

.menu-item__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--surface-alt);
}

.menu-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.menu-item__body {
  padding: 1.25rem 1.35rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.menu-item__title {
  margin: 0;
  font-size: 1.05rem;
}

.menu-item__desc {
  margin: 0;
  color: var(--brand-muted);
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.2em * 2);
}

.menu-item__footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.menu-item__price {
  font-weight: 600;
  font-size: 1.05rem;
}

.menu-item__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

@media (max-width: 640px) {
  .menu-item__footer {
    align-items: stretch;
  }

  .menu-item__button {
    width: 100%;
  }
}

.menu-cart {
  position: sticky;
  top: calc(var(--menu-nav-offset) + 24px);
}

.menu-cart__inner {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--surface-shadow);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.menu-cart ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.menu-cart__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
}

.menu-cart__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.menu-cart__actions .btn {
  display: inline-flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 120px;
  justify-content: center;
}

@media (max-width: 1024px) {
  .menu-view__layout {
    grid-template-columns: 1fr;
  }

  .menu-cart {
    position: static;
  }
}

.btn--requires-auth {
  filter: grayscale(0.8);
  opacity: 0.6;
}

/* Dashboard */
.dashboard {
  margin-bottom: 5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.dashboard__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 2.5rem;
  align-items: flex-start;
}

.dashboard__main {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.surface {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--surface-shadow);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.surface__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.surface__actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.surface__actions--start {
  justify-content: flex-start;
}

.product-tools {
  gap: 1rem;
  align-items: flex-end;
}

.product-tools label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.product-tools select,
.product-tools input[type="search"] {
  min-width: 200px;
}

.muted {
  color: var(--brand-muted);
}

.small {
  font-size: 0.85rem;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem 1.5rem;
}

.form__file-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.form__file-row input[type="file"] {
  flex: 1 1 220px;
}

.surface__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.surface__note {
  margin: 0;
}

.surface__status-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.surface__status-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form__error {
  margin: 0;
  color: #ef4444;
  font-size: 0.85rem;
  font-weight: 500;
}

.form input {
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  font: inherit;
  color: inherit;
}

.form input:focus-visible {
  outline: none;
  border-color: var(--brand-green);
  box-shadow: 0 0 0 3px rgba(43, 182, 115, 0.18);
}

.fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--surface-alt);
}

.fieldset legend {
  font-weight: 600;
}

.payment-options {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.payment-options label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.order-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.order-card {
  background: var(--surface-alt);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.order-card__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.order-card__total {
  text-align: right;
  min-width: 150px;
}

.order-card__items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.order-card__items li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--brand-muted);
}

.order-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.order-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(43, 182, 115, 0.12);
  color: var(--brand-green);
}

.order-card__badge[data-variant='driver'] {
  background: rgba(59, 130, 246, 0.14);
  color: #1d4ed8;
}

.order-card__badge[data-variant='contactless'] {
  background: rgba(251, 191, 36, 0.18);
  color: #b45309;
}

.order-card__badge-icon {
  font-size: 0.9rem;
  line-height: 1;
}

.order-card__note {
  display: grid;
  gap: 0.5rem;
  background: rgba(12, 22, 36, 0.04);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  border-left: 4px solid rgba(43, 182, 115, 0.4);
}

.order-card__note[data-variant='driver'] {
  border-left-color: rgba(59, 130, 246, 0.4);
}

.order-card__media {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.order-card__media img {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid rgba(12, 22, 36, 0.12);
  max-height: 220px;
  object-fit: cover;
}

.order-card__media-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-green);
}

.order-card__note-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brand-ink);
}

.order-card__note-text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--brand-ink);
  line-height: 1.5;
}

.order-card__note-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.order-card__note-text br {
  content: "";
}

.order-tracking {
  border-top: 1px solid rgba(12, 22, 36, 0.08);
  padding-top: 1rem;
  display: grid;
  gap: 0.6rem;
}

.order-tracking__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.order-tracking__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brand-ink);
}

.order-tracking__status {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
  color: var(--brand-muted);
}

.order-tracking__map {
  width: 100%;
  min-height: 260px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(12, 22, 36, 0.12);
  overflow: hidden;
  background: #f8fafc;
}

.order-tracking__message {
  margin: 0;
  font-size: 0.85rem;
  color: var(--brand-muted);
}

.order-tracking__pulse {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 rgba(34, 197, 94, 0.5);
  animation: order-tracking-pulse 1.8s ease-out infinite;
}

.order-tracking--inactive .order-tracking__pulse {
  background: #94a3b8;
  box-shadow: none;
  animation: none;
}

.order-tracking__pin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #0f172a;
  background: #fff;
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.35);
}

.order-tracking__pin--driver {
  background: #0f172a;
  color: #fff;
}

.order-tracking__pin--dropoff {
  background: #fef08a;
  border-color: #ca8a04;
  color: #854d0e;
}

@keyframes order-tracking-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

body.theme-dark .order-card__badge {
  background: rgba(43, 182, 115, 0.22);
  color: #86efac;
}

body.theme-dark .order-card__badge[data-variant='driver'] {
  background: rgba(59, 130, 246, 0.26);
  color: #bfdbfe;
}

body.theme-dark .order-card__badge[data-variant='contactless'] {
  background: rgba(251, 191, 36, 0.32);
  color: #fcd34d;
}

body.theme-dark .order-card__note {
  background: rgba(15, 23, 42, 0.7);
  border-left-color: rgba(43, 182, 115, 0.6);
}

body.theme-dark .order-card__note[data-variant='driver'] {
  border-left-color: rgba(96, 165, 250, 0.6);
}

body.theme-dark .order-card__media img {
  border-color: rgba(255, 255, 255, 0.18);
}

body.theme-dark .order-card__media-link {
  color: #fcd34d;
}

body.theme-dark .order-card__note-title,
body.theme-dark .order-card__note-text {
  color: #e2e8f0;
}

body.theme-dark .order-tracking {
  border-top-color: rgba(255, 255, 255, 0.12);
}

body.theme-dark .order-tracking__title {
  color: #e2e8f0;
}

body.theme-dark .order-tracking__status,
body.theme-dark .order-tracking__message {
  color: #cbd5f5;
}

body.theme-dark .order-tracking__map {
  border-color: rgba(255, 255, 255, 0.16);
  background: #0f172a;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(43, 182, 115, 0.12);
  color: var(--brand-green);
  font-weight: 600;
}

.status-pill--muted {
  background: rgba(148, 163, 184, 0.16);
  color: #64748b;
}

.status-pill--warning {
  background: rgba(247, 181, 0, 0.18);
  color: #b45309;
}

.status-pill--danger {
  background: rgba(239, 68, 68, 0.16);
  color: #dc2626;
}

/* Cart */
.cart-inline {
  position: sticky;
  top: calc(var(--menu-nav-offset) + 16px);
  max-height: calc(100vh - (var(--menu-nav-offset) + 48px));
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  transition: box-shadow var(--transition);
}

.cart-inline--active {
  box-shadow: var(--surface-shadow), 0 0 0 3px rgba(43, 182, 115, 0.25);
}

.cart-inline__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}

.cart-inline__header h3 {
  margin: 0;
  font-size: 1.35rem;
}

.cart-inline__header p {
  margin: 0;
}

.cart-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
}

.cart-item__info {
  display: flex;
  flex-direction: column;
}

.cart-item__price {
  color: var(--brand-muted);
  font-size: 0.9rem;
}

.cart-item__actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.cart-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--brand-ink);
}

.cart-btn--remove {
  width: 30px;
  height: 30px;
  border-radius: 10px;
}

.delivery-status {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  background: #f3f5f9;
  color: var(--brand-muted);
  transition: background var(--transition), color var(--transition);
}

.delivery-status--loading,
.delivery-status--neutral {
  background: #f3f5f9;
  color: var(--brand-muted);
}

.delivery-status--success {
  background: rgba(43, 182, 115, 0.12);
  color: #1f8a55;
}

.delivery-status--error {
  background: rgba(255, 98, 102, 0.15);
  color: #b33a3a;
}

.cart-summary {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: var(--surface-alt);
}

.cart-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-weight: 600;
}

.cart-summary__row--total {
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  margin-top: 0.25rem;
  font-size: 1.05rem;
}

.cart-summary__row--meta {
  font-weight: 500;
  color: var(--brand-muted);
}

.cart-summary__message {
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--brand-muted);
  margin: 0;
}

.cart-summary__message--success {
  color: #2bb673;
}

.cart-summary__message--warning {
  color: #b37a00;
}

.cart-summary__message--error {
  color: #c0392b;
}

.cart-notes {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.cart-notes label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.95rem;
  color: var(--brand-muted);
}

.cart-notes textarea {
  width: 100%;
  min-height: 96px;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fff;
  color: var(--brand-ink);
  resize: vertical;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.5;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.cart-notes textarea:focus {
  outline: none;
  border-color: rgba(43, 182, 115, 0.5);
  box-shadow: 0 0 0 3px rgba(43, 182, 115, 0.18);
}

.cart-inline__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: auto;
}

.cart-inline__actions .btn {
  flex: 1 1 140px;
  justify-content: center;
}

/* Footer */
.site-footer {
  padding: 2.5rem 0 3rem;
  background: #fff;
  border-top: 1px solid var(--border);
  text-align: center;
}

.site-footer small {
  color: var(--brand-muted);
}

/* Modal (reuse existing styles) */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal.hidden {
  display: none;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 22, 36, 0.45);
}

.modal__dialog {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  width: min(520px, calc(100% - 2.5rem));
  padding: 2rem;
  box-shadow: var(--surface-shadow);
}

.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modal__close {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.modal__tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.modal__tab {
  border-radius: 12px;
  padding: 0.65rem 1rem;
  background: var(--surface-alt);
  border: 1px solid transparent;
  font-weight: 600;
}

.modal__tab.is-active {
  background: rgba(43, 182, 115, 0.12);
  border-color: rgba(43, 182, 115, 0.45);
  color: var(--brand-green);
}

.modal__body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.modal__panel {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.modal__panel.hidden {
  display: none;
}

.modal__panel input {
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  font: inherit;
}

.form-error {
  color: #c0392b;
  font-size: 0.85rem;
  min-height: 1rem;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.link-btn {
  background: none;
  border: none;
  color: var(--brand-green);
  font: inherit;
  padding: 0;
  text-decoration: underline;
  cursor: pointer;
}

@media (max-width: 960px) {
  .kf-header__inner {
    flex-wrap: wrap;
  }

  .header-search {
    order: 3;
    width: 100%;
  }

  .catalog__header {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard__layout {
    grid-template-columns: 1fr;
  }

  .cart-inline {
    position: static;
    top: auto;
    max-height: none;
    order: -1;
    overflow: visible;
  }
}

@media (max-width: 640px) {
  .hero__form {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__field,
  .hero__field--short {
    max-width: none;
    width: 100%;
  }

  .menu-items {
    grid-template-columns: 1fr;
  }
}

.menu-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  font-size: 0.9rem;
  color: var(--brand-muted);
}

.menu-meta__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
}

.restaurant-info {
  margin-top: 1.5rem;
  padding: 1.3rem 1.4rem;
  border-radius: var(--radius-md);
  background: var(--surface-alt);
  border: 1px solid var(--border);
}

.restaurant-info__title {
  margin: 0 0 0.6rem;
  font-size: 1.1rem;
}

.restaurant-info__body p {
  margin: 0.2rem 0;
  color: var(--brand-muted);
}

/* ===== Produktinfo-modal (Wolt-style) ===== */
.kf-pimodal.hidden { display: none !important; }

.kf-pimodal{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 18px;
}

.kf-pimodal__overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}

.kf-pimodal__dialog{
  position: relative;
  width: min(520px, calc(100vw - 28px));
  max-height: min(80vh, 720px);
  overflow: auto;
  background: #111827; /* mørk wolt-følelse */
  color: #e5e7eb;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.10);
}

.kf-pimodal__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.kf-pimodal__title{
  margin:0;
  font-size: 16px;
  font-weight: 800;
}

.kf-pimodal__close{
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: #fff;
  padding: 0;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.kf-pimodal__body{ padding: 16px; }

.kf-pimodal__name{
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.kf-pimodal__desc{
  margin: 0 0 14px;
  color: rgba(229,231,235,.86);
}

.kf-pimodal__section{
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.10);
}

.kf-pimodal__sectionTitle{
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 800;
  color: rgba(229,231,235,.92);
}

.kf-pimodal__list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.kf-pimodal__list li{
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  font-weight: 700;
}

/* (i)-knappen på produktkort */
.menu-item__infoBtn{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(12,22,36,.16);
  background: #fff;
  color: #0c1624;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.menu-item__infoBtn:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(12,22,36,.12);
}

body.theme-dark .menu-item__infoBtn{
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: #fff;
}

@media (max-width:640px){

  .menu-item{
    flex-direction:row;
    border-radius:0;
    box-shadow:none;
  }

}

/* ===== PENERE KOMPAKT PRODUKTVISNING PÅ MOBIL ===== */
@media (max-width: 640px){

  .menu-items{
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .menu-category{
    margin-top: 18px;
  }

  .menu-category__header{
    margin-bottom: 10px;
    align-items: center;
  }

  .menu-category__title{
    font-size: 24px;
    line-height: 1.15;
    margin: 0;
  }

  .menu-category__meta{
    font-size: 14px;
  }

  .menu-item{
    display: grid;
    grid-template-columns: minmax(0, 1fr) 88px;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(0,0,0,.08);
    border-radius: 0;
    box-shadow: none;
    min-height: auto;
  }

  .menu-item:hover,
  .menu-item:focus-within{
    transform: none;
    box-shadow: none;
  }

  .menu-item__media{
    order: 2;
    aspect-ratio: auto;
    background: transparent;
    border: 0;
  }

  .menu-item__media img{
    width: 88px;
    height: 88px;
    border-radius: 14px;
    object-fit: cover;
    display: block;
  }

  .menu-item__body{
    order: 1;
    padding: 0;
    min-width: 0;
    gap: 0;
  }

  .menu-item__title{
    margin: 0 0 4px;
    font-size: 17px;
    line-height: 1.2;
    font-weight: 800;
  }

  .menu-item__desc{
    margin: 0 0 8px;
    font-size: 13px;
    line-height: 1.35;
    color: var(--brand-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 0;
  }

  .menu-item__footer{
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: nowrap;
  }

  .menu-item__price{
    font-size: 18px;
    font-weight: 900;
    color: var(--brand-ink);
    white-space: nowrap;
  }

  .menu-item__infoBtn{
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,.14);
    background: #fff;
    color: var(--brand-ink);
    font-size: 16px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: none;
  }

  .menu-item__button{
    min-width: 40px;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
    font-weight: 700;
    flex-shrink: 0;
  }

  .menu-item__button--icon span{
    transform: translateY(-1px);
  }
}