:root {
  --red: #ff3131;
  --red-deep: #d41f1f;
  --ink: #1a1a1a;
  --muted: #6b6b6b;
  --line: #ececec;
  --bg: #f6f6f6;
  --card: #ffffff;
  --green: #1c7c32;
  --sticky-top: 7.5rem;
  --font-brand: "Alfa Slab One", "Times New Roman", serif;
  --font-script: "Great Vibes", "Segoe Script", cursive;
  --font-ui: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Poppins", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--sticky-top) + 8px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  padding-bottom: calc(4.15rem + env(safe-area-inset-bottom, 0px));
}

body.sheet-open,
body.loc-gated {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
}

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

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  background: var(--red);
  color: #fff;
  padding: 0.55rem 0.8rem;
  z-index: 80;
}

.skip-link:focus {
  top: 0.6rem;
}

.order-top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.order-header {
  padding: 0.5rem 1rem 0.15rem;
}

.order-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  max-width: 40rem;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  flex: 1;
  overflow: hidden;
  pointer-events: auto;
}

.brand img {
  width: 3.1rem;
  height: 3.1rem;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.wordmark {
  display: block;
  width: max-content;
  font-family: var(--font-brand);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.12;
}

.wordmark-of {
  display: block;
  color: var(--red);
}

.wordmark-punjab {
  display: flex;
  justify-content: space-between;
  width: 100%;
  color: var(--ink);
}

.brand em {
  display: block;
  font-family: var(--font-script);
  font-style: normal;
  color: #b8860b;
  font-size: 0.95rem;
  line-height: 1;
}

.header-badges {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.lang-toggle {
  flex-shrink: 0;
  border: 1px solid var(--ink);
  background: #111;
  color: #fff;
  border-radius: 999px;
  min-width: 2.5rem;
  min-height: 2.1rem;
  padding: 0 0.55rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(255, 49, 49, 0.25);
}

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

.veg-pill {
  flex-shrink: 0;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid var(--green);
  border-radius: 999px;
  padding: 0.22rem 0.5rem;
}

.loc-chip {
  max-width: 40rem;
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem 0.3rem;
  box-sizing: border-box;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.loc-chip.is-warn {
  color: #b45309;
}

.loc-chip.is-err {
  color: var(--red-deep);
}

.cat-tabs {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  background: #fff;
  padding: 0.4rem 1rem 0.65rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.cat-tabs::-webkit-scrollbar {
  display: none;
}

.cat-tabs a {
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--ink);
  background: #f2f2f2;
  border-radius: 999px;
  padding: 0.38rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  scroll-snap-align: start;
}

.cat-tabs a.is-active {
  background: var(--red);
  color: #fff;
}

main {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0.4rem 0 0;
}

.menu-status {
  padding: 1.4rem 1rem;
  color: var(--muted);
  text-align: center;
}

.cat-block {
  padding: 0.4rem 0 0;
}

.cat-block h2 {
  margin: 0.7rem 1rem 0.35rem;
  font-size: 1.15rem;
}

.item-card {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  background: var(--card);
  margin: 0 0 1px;
  padding: 0.95rem 1rem;
  border-top: 1px solid var(--line);
}

.item-copy {
  min-width: 0;
}

.item-copy h3 {
  margin: 0 0 0.2rem;
  font-size: 0.98rem;
  font-weight: 600;
}

.item-copy p {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.item-price {
  font-weight: 600;
  font-size: 0.92rem;
}

.item-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 0.45rem;
  flex-shrink: 0;
}

.variants {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.3rem;
}

.variants button {
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
  font-size: 0.7rem;
  font-family: inherit;
}

.variants button.is-on {
  border-color: var(--red);
  color: var(--red);
  background: #fff1f1;
}

.stepper,
.add-btn {
  min-width: 5.4rem;
  height: 2.15rem;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 700;
}

.add-btn {
  border: 1px solid var(--red);
  background: #fff;
  color: var(--red);
}

.add-btn:disabled {
  opacity: 0.4;
  color: var(--muted);
  border-color: #ccc;
  cursor: not-allowed;
}

.stepper button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.stepper {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  background: var(--red);
  color: #fff;
  overflow: hidden;
}

.stepper button {
  width: 1.8rem;
  height: 100%;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.15rem;
  line-height: 1;
}

.stepper span {
  min-width: 1.2rem;
  text-align: center;
  font-size: 0.88rem;
}

.order-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom, 0px));
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.06);
}

.order-bar-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.order-bar-meta span {
  color: var(--muted);
  font-size: 0.82rem;
}

.btn-order {
  border: 0;
  background: var(--red);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  min-height: 2.7rem;
  padding: 0 1.1rem;
  border-radius: 8px;
}

.btn-order:disabled {
  opacity: 0.45;
}

.btn-ghost {
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 8px;
  min-height: 2.4rem;
  padding: 0 0.8rem;
  font-family: inherit;
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 60;
  touch-action: none;
}

.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 1.1rem 1rem calc(1.2rem + env(safe-area-inset-bottom, 0px));
  max-height: 88vh;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.sheet h2 {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
}

.sheet-lead,
.loc-status,
.form-error {
  margin: 0 0 0.8rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.loc-status,
.form-error {
  font-weight: 700;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.form-error {
  color: var(--red-deep);
}

.sheet label,
.loc-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  margin: 0 0 0.7rem;
}

.sheet input,
.sheet textarea {
  display: block;
  width: 100%;
  margin-top: 0.3rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0.7rem 0.75rem;
  font: inherit;
  background: #fafafa;
}

.loc-block {
  background: #f7f7f7;
  border-radius: 10px;
  padding: 0.8rem;
  margin-bottom: 0.8rem;
}

.loc-block .btn-ghost {
  margin: 0 0 0.7rem;
}

.addr-hint {
  margin: -0.35rem 0 0;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 400;
}

.sheet .btn-order {
  width: 100%;
}

.loc-gate {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.96);
  touch-action: none;
}

.loc-gate[hidden] {
  display: none;
}

.loc-gate-card {
  width: min(22rem, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.3rem 1.1rem 1.15rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.loc-gate-card h2 {
  margin: 0 0 0.45rem;
  font-size: 1.25rem;
}

.loc-gate-card p {
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.loc-gate-hint {
  font-size: 0.78rem !important;
}

.loc-gate-card .btn-order {
  width: 100%;
}

@media (min-width: 720px) {
  .item-card {
    border-radius: 10px;
    margin: 0 1rem 0.55rem;
    border: 1px solid var(--line);
  }
}
