:root {
  --bg: #F1F7F2;
  --surface: #ffffff;
  --ink: #0C664A;
  --muted: #78716c;
  --accent: #b45309;
  --accent-soft: #fff7ed;
  --border: #CAE4CF;
  --shadow: 0 4px 24px rgba(28, 25, 23, 0.08);
  --radius: 14px;
  --tap: 40px;
  --font-display: Helvetica, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

h1,h2,h3,h4,h5,h6{ margin:0}

p{margin:0}

html {
  -webkit-text-size-adjust: 100%;
  overscroll-behavior-y: contain;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family:Helvetica, 'Roboto', sans-serif;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--ink);
  background: var(--bg);
  -webkit-tap-highlight-color: transparent;
}

.body--cart-open {
  overflow: hidden;
}

[v-cloak] {
  display: none;
}

.app-header {

  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.app-header h1 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.badge {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--border);
  color: var(--muted);
}

.badge--offline {
  background: #fef3c7;
  color: #92400e;
}


.categories {
      position: sticky;
  top: 0;
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

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

.cat-btn {
  flex-shrink: 0;
  min-height: var(--tap);
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.cat-btn__content {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cat-btn__icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

.cat-btn__label {
  white-space: nowrap;
}

.cat-btn[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.menu-main {
  padding: 8px 8px 100px;
}

.menu-sections {
  display: grid;
  gap: 24px;
}

.menu-section {
  display: grid;
  gap: 12px;
}

.menu-section__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-section__head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.menu-section__title {
  font-size: 1.4rem;
  font-weight: 700;
}

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

.item-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.item-card__body {
  padding: 10px;
}

.item-card__title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 4px;
}

.item-card__desc {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.item-card__price {
  color: var(--accent);
  font-weight: 700;
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 0.95rem;
}

.item-card__img-wrap {
  aspect-ratio: 1 / 1;
  background: var(--border);
  overflow: hidden;
}

.item-card__img-link {
  display: block;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
}

.item-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.btn {
  min-height: 44px;
  min-width: 44px;
  padding: 0 16px;
  border-radius: 10px;
  border: none;
  font-weight: 500;
  font-size: 1.1rem;
  cursor: pointer;
  background: var(--ink);
  color: #fff;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--border);
}

.btn--sm {
  min-height: 38px;
  min-width: 38px;
  padding: 0 14px;
  font-size: 0.95rem;
}

.btn--qty {
  min-width: var(--tap);
  padding: 0;
  font-size: 1.25rem;
  line-height: 1;
}

.item-added-control {
  display: grid;
  grid-template-columns: var(--tap) minmax(28px, auto) var(--tap);
  align-items: center;
  gap: 8px;
}

.qty-label {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.cart-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 32px rgba(28, 25, 23, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cart-bar.is-active {
  background: linear-gradient(180deg, var(--surface), var(--accent-soft));
}

.cart-bar__copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.cart-bar__title {
  display: block;
  font-size: 1rem;
}

.cart-bar__caption {
  color: var(--muted);
  font-size: 0.9rem;
}

.cart-bar__button {
  flex-shrink: 0;
  white-space: nowrap;
}


.cart-panel {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  visibility: hidden;
}

.cart-panel.is-open {
  pointer-events: auto;
  visibility: visible;
}

.cart-panel__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 25, 23, 0.45);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.cart-panel.is-open .cart-panel__backdrop {
  opacity: 1;
}

.cart-panel__sheet {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(100%, 420px);
  max-width: 100%;
  background: var(--surface);
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.12);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
}

.cart-panel.is-open .cart-panel__sheet {
  transform: translateX(0);
}

.cart-panel__head {
  padding: 20px 20px 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.cart-panel__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.cart-panel__hint {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.cart-lines {
  flex: 1;
  overflow-y: auto;
  padding: 8px 20px 20px;
}

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

.cart-line__title {
  font-weight: 600;
  font-size:1.2rem;
  margin: 0 0 4px;
}

.cart-line__meta {
  margin: 0;
  color: var(--muted);
}

.cart-line__controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn--remove {
  min-height: var(--tap);
  font-size: 0.95rem;
  padding: 0 14px;
}

.btn--remove:hover,
.btn--remove:focus-visible {
  color: #b91c1c;
  background: #fef2f2;
  border-color: #fecaca;
}

.cart-panel__foot {
  padding: 16px 20px calc(20px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.empty-cart {
  text-align: center;
  padding: 32px 16px;
  color: var(--muted);
}

@media (max-width: 640px) {
  
  .app-header .badge{
    display: none;
  }

  .cart-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .cart-bar__button {
    width: 100%;
    align-self: stretch;
  }

  .cart-panel__sheet {
    width: 100%;
  }

  .cart-line {
    grid-template-columns: 1fr;
  }

  .cart-line__controls {
    justify-content: flex-start;
  }
}


@media (min-width: 1300px) {

    .item-grid{
      grid-template-columns: repeat(3, minmax(0, 1fr))!important;
    }

}

.error-state {
  padding: 24px 16px;
  text-align: center;
  color: var(--muted);
}


.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;
}

.p-0{margin:0}
.p-1{padding: 4px;}
.p-2{padding: 8px;}
.p-3{padding: 12px;}
.p-4{padding: 16px;}
.p-5{padding: 20px;}

.mb-0{ margin-bottom: 0;}
.mb-1{ margin-bottom: 4px; }
.mb-2{ margin-bottom: 8px; }
.mb-3{ margin-bottom: 12px; }
.mb-4{ margin-bottom: 16px; }
.mb-5{ margin-bottom: 20px; }


.mt-0{ margin-top: 0px;}
.mt-1{ margin-top: 4px;}
.mt-2{ margin-top: 8px;}
.mt-3{ margin-top: 12px;}
.mt-4{ margin-top: 16px;}
.mt-5{ margin-top: 20px;}


.ml-0{ margin-left: 0px;}
.ml-1{ margin-left: 4px;}
.ml-2{ margin-left: 8px;}
.ml-3{ margin-left: 12px;}
.ml-4{ margin-left: 16px;}
.ml-5{ margin-left: 20px;}


.mr-0{ margin-right: 0px; }
.mr-1{ margin-right: 4px; }
.mr-2{ margin-right: 8px; }
.mr-3{ margin-right: 12px; }
.mr-4{ margin-right: 16px; }
.mr-5{ margin-right: 20px; }

.w-full{ width: 100%;}
